diff --git a/internal/admin/server.go b/internal/admin/server.go index 8659531..497b052 100644 --- a/internal/admin/server.go +++ b/internal/admin/server.go @@ -107,6 +107,7 @@ func NewServer(opts Options) *Server { mux.HandleFunc("POST /api/rules", s.mutateGuard(s.auth(s.handleRulesAdd))) mux.HandleFunc("DELETE /api/rules", s.mutateGuard(s.auth(s.handleRulesRemove))) mux.HandleFunc("GET /api/traffic", s.mutateGuard(s.auth(s.handleTraffic))) + mux.HandleFunc("GET /api/totals", s.mutateGuard(s.auth(s.handleTotals))) mux.HandleFunc("GET /api/history", s.mutateGuard(s.auth(s.handleHistory))) mux.HandleFunc("GET /api/stream", s.mutateGuard(s.auth(s.handleStream))) if s.opts.Stats != nil { @@ -447,6 +448,16 @@ func (s *Server) handleTraffic(w http.ResponseWriter, r *http.Request) { writeJSON(w, http.StatusOK, s.opts.Stats.Snapshot(sort, source, client)) } +// handleTotals serves the from-start cumulative traffic view. It ignores +// staleness and query filters: totals are the whole picture, not a window. +func (s *Server) handleTotals(w http.ResponseWriter, r *http.Request) { + if s.opts.Stats == nil { + writeError(w, http.StatusInternalServerError, "stats unavailable") + return + } + writeJSON(w, http.StatusOK, s.opts.Stats.Totals()) +} + // parseTrafficQuery extracts the domain sort, source, and client filters // shared by /api/traffic and the SSE stream. func parseTrafficQuery(r *http.Request) (sort DomainSort, source Source, client string) { @@ -508,11 +519,14 @@ func (s *Server) handleStream(w http.ResponseWriter, r *http.Request) { send("status", s.statusPayload()) send("traffic", s.opts.Stats.Snapshot(sort, source, client)) send("history", s.opts.Stats.History()) + send("totals", s.opts.Stats.Totals()) ticker := time.NewTicker(5 * time.Second) defer ticker.Stop() historyTicker := time.NewTicker(10 * time.Second) defer historyTicker.Stop() + totalsTicker := time.NewTicker(30 * time.Second) + defer totalsTicker.Stop() for { select { @@ -527,6 +541,8 @@ func (s *Server) handleStream(w http.ResponseWriter, r *http.Request) { send("traffic", s.opts.Stats.Snapshot(sort, source, client)) case <-historyTicker.C: send("history", s.opts.Stats.History()) + case <-totalsTicker.C: + send("totals", s.opts.Stats.Totals()) } } } diff --git a/internal/admin/server_test.go b/internal/admin/server_test.go index c58bee3..58ebdef 100644 --- a/internal/admin/server_test.go +++ b/internal/admin/server_test.go @@ -403,6 +403,28 @@ func TestTrafficEndpoint(t *testing.T) { } } +func TestTotalsEndpoint(t *testing.T) { + stats := newTestStats(t) + s := NewServer(Options{Password: "secret", Version: "v1.2.3", Date: "2026-01-01", Rules: newFakeRules(), Stats: stats}) + ts := httptest.NewServer(s.http.Handler) + t.Cleanup(ts.Close) + + cookie := login(t, ts, "secret") + stats.RecordDNS("example.com.", "192.168.1.10") + + resp := authedRequest(t, ts, http.MethodGet, "/api/totals", cookie, "") + if resp.StatusCode != http.StatusOK { + t.Fatalf("expected 200, got %d", resp.StatusCode) + } + body := decodeBody(t, resp) + if domains, ok := body["domains"].([]any); !ok || len(domains) != 1 { + t.Fatalf("expected 1 domain in totals, got %v", body["domains"]) + } + if clients, ok := body["clients"].([]any); !ok || len(clients) != 1 { + t.Fatalf("expected 1 client in totals, got %v", body["clients"]) + } +} + func TestTrafficEndpointRejectsMissingStats(t *testing.T) { s := NewServer(Options{Password: "secret", Rules: newFakeRules()}) ts := httptest.NewServer(s.http.Handler) diff --git a/internal/admin/stats.go b/internal/admin/stats.go index 32ce302..22a048a 100644 --- a/internal/admin/stats.go +++ b/internal/admin/stats.go @@ -14,10 +14,19 @@ import ( ) const ( - maxDomainEntries = 10000 - staleDomainAge = time.Hour - snapshotTopN = 100 - clientsTopN = 50 + // maxTotalDomains bounds the cumulative domain map. Domains are never + // dropped for staleness (unlike the old window-only table); the map only + // evicts its least-recently-seen entry once full, so from-start totals + // survive while memory stays bounded. + maxTotalDomains = 100000 + // maxTotalClients bounds the cumulative per-client table. + maxTotalClients = 4096 + // maxClientsPerDomain guards one domain's per-client breakdown against a + // pathological number of source IPs; extra clients are not attributed. + maxClientsPerDomain = 64 + staleDomainAge = time.Hour + snapshotTopN = 100 + clientsTopN = 50 // historyCapacity keeps one hour of samples at the 5s poll cadence. historyCapacity = 720 @@ -181,6 +190,9 @@ type Stats struct { mu sync.Mutex domains map[string]*domainStat + // clients holds the from-start cumulative per-client totals. It is + // independent of the domain map so client totals survive domain eviction. + clients map[string]*clientStat histMu sync.Mutex history []HistorySample @@ -236,6 +248,7 @@ func NewStats() (*Stats, error) { start: time.Now(), metrics: m, domains: make(map[string]*domainStat), + clients: make(map[string]*clientStat), }, nil } @@ -250,7 +263,7 @@ func (s *Stats) RecordDNS(qname string, clientIP string) { if domain == "" { return } - s.record(domain, SourceDNS, clientIP, func(d *domainStat, src *sourceStat, dc *clientStat) { + s.record(domain, SourceDNS, clientIP, 1, 0, 0, func(d *domainStat, src *sourceStat, dc *clientStat) { d.conns++ src.conns++ if dc != nil { @@ -312,7 +325,7 @@ func (s *Stats) BindConn(conn net.Conn, domain string) { } cc.bind(domain) source := Source(cc.kind) - s.record(domain, source, cc.clientIP, func(d *domainStat, src *sourceStat, dc *clientStat) { + s.record(domain, source, cc.clientIP, 1, 0, 0, func(d *domainStat, src *sourceStat, dc *clientStat) { d.conns++ src.conns++ if dc != nil { @@ -321,11 +334,12 @@ func (s *Stats) BindConn(conn net.Conn, domain string) { }) } -// Snapshot returns an immutable view of the current stats, advancing the -// history ring and evicting stale domains along the way. sort selects the -// domain ordering, source restricts domains to one entry point, and client -// restricts them to one client IP; invalid values fall back to -// DomainSortBytes and SourceAll, and an empty client disables the filter. +// Snapshot returns the window view of the current stats, advancing the +// history ring along the way. Domains stale for over staleDomainAge are +// hidden from the window but kept in the map for the cumulative Totals view. +// sort selects the domain ordering, source restricts domains to one entry +// point, and client restricts them to one client IP; invalid values fall back +// to DomainSortBytes and SourceAll, and an empty client disables the filter. // Clients aggregates per-client counters over the source-filtered view and // is intentionally unaffected by the client filter, so the console's client // chips stay stable while one is selected. @@ -357,7 +371,8 @@ func (s *Stats) Snapshot(sort DomainSort, source Source, client string) TrafficS clientAgg := make(map[string]*ClientStat) for domain, d := range s.domains { if time.Since(d.lastSeen) > staleDomainAge { - delete(s.domains, domain) + // Window view only: the entry stays in the map so the cumulative + // Totals view keeps its from-start counters. continue } ds := DomainStat{ @@ -445,6 +460,67 @@ func topClients(agg map[string]*ClientStat) []ClientStat { return out } +// Totals is the from-start cumulative traffic view, independent of the +// window's staleness filter. +type Totals struct { + Domains []DomainStat `json:"domains"` + Clients []ClientStat `json:"clients"` +} + +// Totals returns the cumulative top domains and clients since start, each +// ordered by total bytes. Unlike Snapshot it ignores staleness: counters +// accumulate until the bounded maps evict their least-recently-seen entries. +func (s *Stats) Totals() Totals { + s.mu.Lock() + defer s.mu.Unlock() + + domains := make([]DomainStat, 0, len(s.domains)) + for domain, d := range s.domains { + ds := DomainStat{ + Domain: domain, + Conns: d.conns, + BytesUp: d.bytesUp, + BytesDown: d.bytesDown, + LastSeen: d.lastSeen, + } + var latest time.Time + for ip, c := range d.byClient { + if c.lastSeen.After(latest) { + latest, ds.LastClientIP = c.lastSeen, ip + } + } + domains = append(domains, ds) + } + sortDomains(domains, DomainSortBytes) + if len(domains) > snapshotTopN { + domains = domains[:snapshotTopN] + } + + clients := make([]ClientStat, 0, len(s.clients)) + for ip, c := range s.clients { + clients = append(clients, ClientStat{ + IP: ip, + Conns: c.conns, + BytesUp: c.bytesUp, + BytesDown: c.bytesDown, + LastSeen: c.lastSeen, + }) + } + sort.Slice(clients, func(i, j int) bool { + ti := clients[i].BytesUp + clients[i].BytesDown + tj := clients[j].BytesUp + clients[j].BytesDown + if ti == tj { + return clients[i].IP < clients[j].IP + } + return ti > tj + }) + if len(clients) > clientsTopN { + clients = clients[:clientsTopN] + } + + return Totals{Domains: domains, Clients: clients} +} + // sortDomains orders domains by the selected mode: total bytes (default), // most recently seen, or connection count. Ties break alphabetically. func sortDomains(ds []DomainStat, mode DomainSort) { @@ -562,14 +638,16 @@ func (s *Stats) rates() (up, down, dns, conns float64) { } // record attributes one event to a domain, its source, and optionally its -// client IP. The client IP may be empty when it cannot be determined; the -// per-client stat is then nil and callers must guard. -func (s *Stats) record(domain string, source Source, clientIP string, update func(*domainStat, *sourceStat, *clientStat)) { +// client IP, with the given counter deltas. The client IP may be empty when it +// cannot be determined; the per-client stat is then nil and callers must +// guard. The deltas also feed the independent cumulative client table, so +// client totals are exact regardless of domain eviction. +func (s *Stats) record(domain string, source Source, clientIP string, conns, up, down uint64, update func(*domainStat, *sourceStat, *clientStat)) { s.mu.Lock() defer s.mu.Unlock() d := s.domains[domain] if d == nil { - if len(s.domains) >= maxDomainEntries { + if len(s.domains) >= maxTotalDomains { s.evictOldestLocked() } d = &domainStat{bySource: make(map[Source]*sourceStat)} @@ -586,16 +664,32 @@ func (s *Stats) record(domain string, source Source, clientIP string, update fun d.byClient = make(map[string]*clientStat) } dc = d.byClient[clientIP] - if dc == nil { + if dc == nil && len(d.byClient) < maxClientsPerDomain { dc = &clientStat{} d.byClient[clientIP] = dc } } update(d, src, dc) - d.lastSeen = time.Now() - src.lastSeen = time.Now() + now := time.Now() + d.lastSeen = now + src.lastSeen = now if dc != nil { - dc.lastSeen = time.Now() + dc.lastSeen = now + } + + if clientIP != "" { + cc := s.clients[clientIP] + if cc == nil { + if len(s.clients) >= maxTotalClients { + s.evictOldestClientLocked() + } + cc = &clientStat{} + s.clients[clientIP] = cc + } + cc.conns += conns + cc.bytesUp += up + cc.bytesDown += down + cc.lastSeen = now } } @@ -615,6 +709,22 @@ func (s *Stats) evictOldestLocked() { } } +// evictOldestClientLocked drops the single least-recently-seen client to keep +// the cumulative client table bounded. +func (s *Stats) evictOldestClientLocked() { + var oldestKey string + var oldest time.Time + for ip, c := range s.clients { + if oldestKey == "" || c.lastSeen.Before(oldest) { + oldestKey = ip + oldest = c.lastSeen + } + } + if oldestKey != "" { + delete(s.clients, oldestKey) + } +} + // countingConn wraps a client connection and feeds byte counts into Stats. type countingConn struct { net.Conn @@ -675,7 +785,13 @@ func (c *countingConn) recordBytes(n int, up bool) { return } source := Source(c.kind) - c.stats.record(domain, source, c.clientIP, func(d *domainStat, src *sourceStat, dc *clientStat) { + var upBytes, downBytes uint64 + if up { + upBytes = uint64(n) + } else { + downBytes = uint64(n) + } + c.stats.record(domain, source, c.clientIP, 0, upBytes, downBytes, func(d *domainStat, src *sourceStat, dc *clientStat) { if up { d.bytesUp += uint64(n) src.bytesUp += uint64(n) diff --git a/internal/admin/stats_test.go b/internal/admin/stats_test.go index 0e91a8e..7fd5b07 100644 --- a/internal/admin/stats_test.go +++ b/internal/admin/stats_test.go @@ -139,13 +139,13 @@ func TestStatsSnapshotEvictsStaleDomains(t *testing.T) { func TestStatsDomainCapIsEnforced(t *testing.T) { s := newTestStats(t) - for i := 0; i < maxDomainEntries+50; i++ { - s.record(fmt.Sprintf("host%d.example", i), SourceHTTP, "", func(d *domainStat, src *sourceStat, dc *clientStat) {}) + for i := 0; i < maxTotalDomains+50; i++ { + s.record(fmt.Sprintf("host%d.example", i), SourceHTTP, "", 1, 0, 0, func(d *domainStat, src *sourceStat, dc *clientStat) {}) } s.mu.Lock() n := len(s.domains) s.mu.Unlock() - if n > maxDomainEntries { + if n > maxTotalDomains { t.Fatalf("expected domain cap enforced, got %d entries", n) } if n == 0 { @@ -169,15 +169,15 @@ func TestEvictOldestLocked(t *testing.T) { func TestStatsSnapshotSortsByTotalBytes(t *testing.T) { s := newTestStats(t) - s.record("small.example", SourceHTTP, "", func(d *domainStat, src *sourceStat, dc *clientStat) { + s.record("small.example", SourceHTTP, "", 0, 0, 0, func(d *domainStat, src *sourceStat, dc *clientStat) { d.bytesUp, d.bytesDown = 1, 1 src.bytesUp, src.bytesDown = 1, 1 }) - s.record("big.example", SourceHTTP, "", func(d *domainStat, src *sourceStat, dc *clientStat) { + s.record("big.example", SourceHTTP, "", 0, 0, 0, func(d *domainStat, src *sourceStat, dc *clientStat) { d.bytesUp, d.bytesDown = 100, 100 src.bytesUp, src.bytesDown = 100, 100 }) - s.record("mid.example", SourceHTTP, "", func(d *domainStat, src *sourceStat, dc *clientStat) { + s.record("mid.example", SourceHTTP, "", 0, 0, 0, func(d *domainStat, src *sourceStat, dc *clientStat) { d.bytesUp, d.bytesDown = 10, 10 src.bytesUp, src.bytesDown = 10, 10 }) @@ -531,3 +531,75 @@ func TestStatsSnapshotClientsAggregate(t *testing.T) { t.Fatalf("unexpected second client: %+v", snap.Clients[1]) } } + +func TestStatsTotalsSurviveStaleness(t *testing.T) { + s := newTestStats(t) + old := time.Now().Add(-2 * staleDomainAge) + s.mu.Lock() + s.domains["old.example"] = &domainStat{ + conns: 5, bytesUp: 500, bytesDown: 500, lastSeen: old, + bySource: map[Source]*sourceStat{ + SourceHTTP: {conns: 5, bytesUp: 500, bytesDown: 500, lastSeen: old}, + }, + } + s.mu.Unlock() + + // the window view hides the stale domain, the totals keep it + snap := s.Snapshot(DomainSortBytes, SourceAll, "") + if len(snap.Domains) != 0 { + t.Fatalf("expected stale domain hidden from window, got %+v", snap.Domains) + } + tot := s.Totals() + if len(tot.Domains) != 1 || tot.Domains[0].Domain != "old.example" || tot.Domains[0].Conns != 5 { + t.Fatalf("expected stale domain kept in totals, got %+v", tot.Domains) + } +} + +func TestStatsTotalsClientsSurviveDomainEviction(t *testing.T) { + s := newTestStats(t) + s.record("evicted.example", SourceHTTP, "192.168.1.10", 2, 100, 200, func(d *domainStat, src *sourceStat, dc *clientStat) { + d.conns += 2 + src.conns += 2 + }) + s.mu.Lock() + delete(s.domains, "evicted.example") // simulate cap eviction + s.mu.Unlock() + + tot := s.Totals() + if len(tot.Domains) != 0 { + t.Fatalf("expected no domains after eviction, got %+v", tot.Domains) + } + if len(tot.Clients) != 1 || tot.Clients[0].IP != "192.168.1.10" || + tot.Clients[0].Conns != 2 || tot.Clients[0].BytesUp != 100 || tot.Clients[0].BytesDown != 200 { + t.Fatalf("expected client totals to survive domain eviction, got %+v", tot.Clients) + } +} + +func TestStatsClientCapIsEnforced(t *testing.T) { + s := newTestStats(t) + for i := 0; i < maxTotalClients+10; i++ { + s.record(fmt.Sprintf("host%d.example", i), SourceHTTP, fmt.Sprintf("192.168.%d.%d", i/256, i%256), 1, 0, 0, func(d *domainStat, src *sourceStat, dc *clientStat) {}) + } + s.mu.Lock() + n := len(s.clients) + s.mu.Unlock() + if n > maxTotalClients { + t.Fatalf("expected client cap enforced, got %d entries", n) + } + if n == 0 { + t.Fatal("expected some clients to survive") + } +} + +func TestStatsClientsPerDomainCap(t *testing.T) { + s := newTestStats(t) + for i := 0; i < maxClientsPerDomain+10; i++ { + s.record("shared.example", SourceHTTP, fmt.Sprintf("192.0.2.%d", i), 1, 0, 0, func(d *domainStat, src *sourceStat, dc *clientStat) {}) + } + s.mu.Lock() + n := len(s.domains["shared.example"].byClient) + s.mu.Unlock() + if n > maxClientsPerDomain { + t.Fatalf("expected per-domain client cap, got %d entries", n) + } +} diff --git a/web/dist/assets/index-5cU5DjAW.js b/web/dist/assets/index-5cU5DjAW.js deleted file mode 100644 index df99d15..0000000 --- a/web/dist/assets/index-5cU5DjAW.js +++ /dev/null @@ -1,1233 +0,0 @@ -var zp=Object.defineProperty;var Rp=Object.getPrototypeOf;var Fp=Reflect.get;var of=t=>{throw TypeError(t)};var Lp=(t,e,r)=>e in t?zp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ae=(t,e,r)=>Lp(t,typeof e!="symbol"?e+"":e,r),Cc=(t,e,r)=>e.has(t)||of("Cannot "+r);var l=(t,e,r)=>(Cc(t,e,"read from private field"),r?r.call(t):e.get(t)),_=(t,e,r)=>e.has(t)?of("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),I=(t,e,r,n)=>(Cc(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),j=(t,e,r)=>(Cc(t,e,"access private method"),r);var sf=(t,e,r,n)=>({set _(o){I(t,e,o,r)},get _(){return l(t,e,n)}}),af=(t,e,r)=>Fp(Rp(t),r,e);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();const Oh=!1;var Qu=Array.isArray,Dp=Array.prototype.indexOf,yl=Array.prototype.includes,hc=Array.from,Bp=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,$h=Object.getOwnPropertyDescriptors,Vp=Object.prototype,Wp=Array.prototype,ed=Object.getPrototypeOf,lf=Object.isExtensible;function Xo(t){return typeof t=="function"}const ze=()=>{};function jp(t){return t()}function Xc(t){for(var e=0;e{t=n,e=o});return{promise:r,resolve:t,reject:e}}function Gp(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const r=[];for(const n of t)if(r.push(n),r.length===e)break;return r}const _t=2,Ts=4,Aa=8,td=1<<24,mr=16,yr=32,Yr=64,Zc=128,br=512,wt=1024,ft=2048,Or=4096,Bt=8192,ir=16384,Bo=32768,Jc=1<<25,Xr=65536,wl=1<<17,Hp=1<<18,Vo=1<<19,Ih=1<<20,Vr=1<<25,zo=65536,xl=1<<21,ns=1<<22,Xn=1<<23,Gr=Symbol("$state"),Nh=Symbol("legacy props"),Kp=Symbol(""),el=Symbol("attributes"),Qc=Symbol("class"),eu=Symbol("style"),Qs=Symbol("text"),tl=Symbol("form reset"),Ea=new class extends Error{constructor(){super(...arguments);ae(this,"name","StaleReactionError");ae(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Ah;const rd=!!((Ah=globalThis.document)!=null&&Ah.contentType)&&globalThis.document.contentType.includes("xml");function zh(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Up(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function qp(t,e,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Yp(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Xp(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zp(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Jp(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Qp(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function em(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function tm(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function rm(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function nm(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const om=1,sm=2,Rh=4,im=8,am=16,lm=1,cm=2,Fh=4,um=8,dm=16,fm=4,hm=1,vm=2,dt=Symbol("uninitialized"),Lh="http://www.w3.org/1999/xhtml",gm="http://www.w3.org/2000/svg",Dh="@attach";function pm(){console.warn("https://svelte.dev/e/derived_inert")}function mm(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function bm(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Bh(t){return t===this.v}function ym(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Vh(t){return!ym(t,this.v)}let Ls=!1,wm=!1;function xm(){Ls=!0}let Ue=null;function Os(t){Ue=t}function cf(t){return vc().get(t)}function _m(t,e){return vc().set(t,e),e}function km(t){return vc().has(t)}function Sm(){return vc()}function Me(t,e=!1,r){Ue={p:Ue,i:!1,c:null,e:null,s:t,x:null,r:Re,l:Ls&&!e?{s:null,u:null,$:[]}:null}}function Ie(t){var e=Ue,r=e.e;if(r!==null){e.e=null;for(var n of r)uv(n)}return e.i=!0,Ue=e.p,{}}function Ds(){return!Ls||Ue!==null&&Ue.l===null}function vc(t){return Ue===null&&zh(),Ue.c??(Ue.c=new Map(Pm(Ue)||void 0))}function Pm(t){let e=t.p;for(;e!==null;){const r=e.c;if(r!==null)return r;e=e.p}return null}let po=[];function Wh(){var t=po;po=[],Xc(t)}function Ar(t){if(po.length===0&&!ui){var e=po;queueMicrotask(()=>{e===po&&Wh()})}po.push(t)}function Cm(){for(;po.length>0;)Wh()}function jh(t){var e=Re;if(e===null)return We.f|=Xn,t;if((e.f&Bo)===0&&(e.f&Ts)===0)throw t;qn(t,e)}function qn(t,e){if(!(e!==null&&(e.f&ir)!==0)){for(;e!==null;){if((e.f&Zc)!==0){if((e.f&Bo)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}}const Am=-7169;function nt(t,e){t.f=t.f&Am|e}function nd(t){(t.f&br)!==0||t.deps===null?nt(t,wt):nt(t,Or)}function Gh(t){if(t!==null)for(const e of t)(e.f&_t)===0||(e.f&zo)===0||(e.f^=zo,Gh(e.deps))}function Hh(t,e,r){(t.f&ft)!==0?e.add(t):(t.f&Or)!==0&&r.add(t),Gh(t.deps),nt(t,wt)}let La=!1;function Em(t){var e=La;try{return La=!1,[t(),La]}finally{La=e}}function Tm(t,e){if(e){const r=document.body;t.autofocus=!0,Ar(()=>{document.activeElement===r&&t.focus()})}}let uf=!1;function Om(){uf||(uf=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const r of t.target.elements)(e=r[tl])==null||e.call(r)})},{capture:!0}))}function no(t){var e=We,r=Re;wr(null),xr(null);try{return t()}finally{wr(e),xr(r)}}function Kh(t,e,r,n=r){t.addEventListener(e,()=>no(r));const o=t[tl];o?t[tl]=()=>{o(),n(!0)}:t[tl]=()=>n(!0),Om()}function od(t){let e=0,r=Pn(0),n;return()=>{cd()&&(d(r),mc(()=>(e===0&&(n=_r(()=>t(()=>Dr(r)))),e+=1,()=>{Ar(()=>{e-=1,e===0&&(n==null||n(),n=void 0,Dr(r))})})))}}var $m=Xr|Vo;function Mm(t,e,r,n){new Im(t,e,r,n)}var dr,Ju,fr,yo,Wt,hr,Rt,or,nn,wo,Fn,as,yi,wi,on,Dl,Xe,Nm,zm,tu,Rm,ru,rl,nl,nu,ou;class Im{constructor(e,r,n,o){_(this,Xe);ae(this,"parent");ae(this,"is_pending",!1);ae(this,"transform_error");_(this,dr);_(this,Ju,null);_(this,fr);_(this,yo);_(this,Wt);_(this,hr,null);_(this,Rt,null);_(this,or,null);_(this,nn,null);_(this,wo,0);_(this,Fn,0);_(this,as,!1);_(this,yi,new Set);_(this,wi,new Set);_(this,on,null);_(this,Dl,od(()=>(I(this,on,Pn(l(this,wo))),()=>{I(this,on,null)})));var s;I(this,dr,e),I(this,fr,r),I(this,yo,i=>{var a=Re;a.b=this,a.f|=Zc,n(i)}),this.parent=Re.b,this.transform_error=o??((s=this.parent)==null?void 0:s.transform_error)??(i=>i),I(this,Wt,Wo(()=>{j(this,Xe,ru).call(this)},$m))}defer_effect(e){Hh(e,l(this,yi),l(this,wi))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!l(this,fr).pending}update_pending_count(e,r){j(this,Xe,nu).call(this,e,r),I(this,wo,l(this,wo)+e),!(!l(this,on)||l(this,as))&&(I(this,as,!0),Ar(()=>{I(this,as,!1),l(this,on)&&Ms(l(this,on),l(this,wo))}))}get_effect_pending(){return l(this,Dl).call(this),d(l(this,on))}error(e){if(!l(this,fr).onerror&&!l(this,fr).failed)throw e;$e!=null&&$e.is_fork?(l(this,hr)&&$e.skip_effect(l(this,hr)),l(this,Rt)&&$e.skip_effect(l(this,Rt)),l(this,or)&&$e.skip_effect(l(this,or)),$e.oncommit(()=>{j(this,Xe,ou).call(this,e)})):j(this,Xe,ou).call(this,e)}}dr=new WeakMap,Ju=new WeakMap,fr=new WeakMap,yo=new WeakMap,Wt=new WeakMap,hr=new WeakMap,Rt=new WeakMap,or=new WeakMap,nn=new WeakMap,wo=new WeakMap,Fn=new WeakMap,as=new WeakMap,yi=new WeakMap,wi=new WeakMap,on=new WeakMap,Dl=new WeakMap,Xe=new WeakSet,Nm=function(){try{I(this,hr,Yt(()=>l(this,yo).call(this,l(this,dr))))}catch(e){this.error(e)}},zm=function(e){const r=l(this,fr).failed,{reset:n,invoke_onerror:o}=j(this,Xe,tu).call(this,e);Ar(o),r&&I(this,or,Yt(()=>{r(l(this,dr),()=>e,()=>n)}))},tu=function(e){var r=!1,n=!1;const o=()=>{if(r){bm();return}r=!0,n&&nm(),l(this,or)!==null&&No(l(this,or),()=>{I(this,or,null)}),j(this,Xe,nl).call(this,()=>{j(this,Xe,ru).call(this)})};return{reset:o,invoke_onerror:()=>{var i,a;try{n=!0,(a=(i=l(this,fr)).onerror)==null||a.call(i,e,o),n=!1}catch(c){qn(c,l(this,Wt)&&l(this,Wt).parent)}}}},Rm=function(){const e=l(this,fr).pending;e&&(this.is_pending=!0,I(this,Rt,Yt(()=>e(l(this,dr)))),Ar(()=>{var r=I(this,nn,document.createDocumentFragment()),n=Hr();r.append(n),I(this,hr,j(this,Xe,nl).call(this,()=>Yt(()=>l(this,yo).call(this,n)))),l(this,Fn)===0&&(l(this,dr).before(r),I(this,nn,null),No(l(this,Rt),()=>{I(this,Rt,null)}),j(this,Xe,rl).call(this,$e))}))},ru=function(){try{if(this.is_pending=this.has_pending_snippet(),I(this,Fn,0),I(this,wo,0),I(this,hr,Yt(()=>{l(this,yo).call(this,l(this,dr))})),l(this,Fn)>0){var e=I(this,nn,document.createDocumentFragment());dd(l(this,hr),e);const r=l(this,fr).pending;I(this,Rt,Yt(()=>r(l(this,dr))))}else j(this,Xe,rl).call(this,$e)}catch(r){this.error(r)}},rl=function(e){this.is_pending=!1,e.transfer_effects(l(this,yi),l(this,wi))},nl=function(e){var r=Re,n=We,o=Ue;xr(l(this,Wt)),wr(l(this,Wt)),Os(l(this,Wt).ctx);try{return Jn.ensure(),e()}catch(s){return jh(s),null}finally{xr(r),wr(n),Os(o)}},nu=function(e,r){var n;if(!this.has_pending_snippet()){this.parent&&j(n=this.parent,Xe,nu).call(n,e,r);return}I(this,Fn,l(this,Fn)+e),l(this,Fn)===0&&(j(this,Xe,rl).call(this,r),l(this,Rt)&&No(l(this,Rt),()=>{I(this,Rt,null)}),l(this,nn)&&(l(this,dr).before(l(this,nn)),I(this,nn,null)))},ou=function(e){l(this,hr)&&(kt(l(this,hr)),I(this,hr,null)),l(this,Rt)&&(kt(l(this,Rt)),I(this,Rt,null)),l(this,or)&&(kt(l(this,or)),I(this,or,null));let r=l(this,fr).failed;const n=o=>{const{reset:s,invoke_onerror:i}=j(this,Xe,tu).call(this,o);i(),r&&I(this,or,j(this,Xe,nl).call(this,()=>{try{return Yt(()=>{var a=Re;a.b=this,a.f|=Zc,r(l(this,dr),()=>o,()=>s)})}catch(a){return qn(a,l(this,Wt).parent),null}}))};Ar(()=>{var o;try{o=this.transform_error(e)}catch(s){qn(s,l(this,Wt)&&l(this,Wt).parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(n,s=>qn(s,l(this,Wt)&&l(this,Wt).parent)):n(o)})};function Uh(t,e,r,n){const o=Ds()?$s:sd;var s=t.filter(g=>!g.settled),i=e.map(o);if(r.length===0&&s.length===0){n(i);return}var a=Re,c=Fm(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(g=>g.promise)):null;function f(g){if((a.f&ir)===0){c();try{n([...i,...g])}catch(p){qn(p,a)}_l()}}var v=qh();if(r.length===0){u.then(()=>f([])).finally(v);return}function h(){Promise.all(r.map(g=>Lm(g))).then(f).catch(g=>qn(g,a)).finally(v)}u?u.then(()=>{c(),h(),_l()}):h()}function Fm(){var t=Re,e=We,r=Ue,n=$e;return function(s=!0){xr(t),wr(e),Os(r),s&&(t.f&ir)===0&&(n==null||n.activate(),n==null||n.apply())}}function _l(t=!0){xr(null),wr(null),Os(null),t&&($e==null||$e.deactivate())}function qh(){var t=Re,e=t.b,r=$e,n=!!(e!=null&&e.is_rendered());return e==null||e.update_pending_count(1,r),r.increment(n,t),()=>{e==null||e.update_pending_count(-1,r),r.decrement(n,t)}}function $s(t){var e=_t|ft;return Re!==null&&(Re.f|=Vo),{ctx:Ue,deps:null,effects:null,equals:Bh,f:e,fn:t,reactions:null,rv:0,v:dt,wv:0,parent:Re,ac:null}}const ei=Symbol("obsolete");function Lm(t,e,r){let n=Re;n===null&&Up();var o=void 0,s=Pn(dt),i=!We,a=new Set;return Jm(()=>{var g,p;var c=Re,u=Mh();o=u.promise;try{Promise.resolve(t()).then(u.resolve,m=>{m!==Ea&&u.reject(m)}).finally(_l)}catch(m){u.reject(m),_l()}var f=$e;if(i){if((c.f&Bo)!==0)var v=qh();if((g=n.b)!=null&&g.is_rendered())(p=f.async_deriveds.get(c))==null||p.reject(ei);else for(const m of a.values())m.reject(ei);a.add(u),f.async_deriveds.set(c,u)}const h=(m,y=void 0)=>{v==null||v(),a.delete(u),y!==ei&&(f.activate(),y?(s.f|=Xn,Ms(s,y)):((s.f&Xn)!==0&&(s.f^=Xn),Ms(s,m)),f.deactivate())};u.promise.then(h,m=>h(null,m||"unknown"))}),gc(()=>{for(const c of a)c.reject(ei)}),new Promise(c=>{function u(f){function v(){f===o?c(s):u(o)}f.then(v,v)}u(o)})}function W(t){const e=$s(t);return bv(e),e}function sd(t){const e=$s(t);return e.equals=Vh,e}function Dm(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r{r.ac.abort(Ea),r.ac=null}),r.fn!==null&&(r.teardown=ze),gi(r,0),ud(r))}function Xh(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&Ns(e)}let Ac=null,qo=null,$e=null,ci=null,At=null,su=null,ui=!1,Ec=!1,es=null,ol=null;var df=0;let Vm=1;var ls,Ln,xo,cs,us,ds,sn,fs,jt,xi,an,Pr,Nr,hs,_o,qe,iu,ti,au,Zh,Jh,Zo,Wm,ri;const Bl=class Bl{constructor(){_(this,qe);ae(this,"id",Vm++);_(this,ls,!1);ae(this,"linked",!0);_(this,Ln,null);_(this,xo,null);ae(this,"async_deriveds",new Map);ae(this,"current",new Map);ae(this,"previous",new Map);_(this,cs,new Set);_(this,us,new Set);_(this,ds,0);_(this,sn,new Map);_(this,fs,null);_(this,jt,[]);_(this,xi,[]);_(this,an,new Set);_(this,Pr,new Set);_(this,Nr,new Map);_(this,hs,new Set);ae(this,"is_fork",!1);_(this,_o,!1);qo===null?Ac=qo=this:(I(qo,xo,this),I(this,Ln,qo)),qo=this}skip_effect(e){l(this,Nr).has(e)||l(this,Nr).set(e,{d:[],m:[]}),l(this,hs).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=l(this,Nr).get(e);if(n){l(this,Nr).delete(e);for(var o of n.d)nt(o,ft),r(o);for(o of n.m)nt(o,Or),r(o)}l(this,hs).add(e)}capture(e,r,n=!1){e.v!==dt&&!this.previous.has(e)&&this.previous.set(e,e.v),(e.f&Xn)===0&&(this.current.set(e,[r,n]),At==null||At.set(e,r)),this.is_fork||(e.v=r)}activate(){$e=this}deactivate(){$e=null,At=null}flush(){try{Ec=!0,$e=this,j(this,qe,ti).call(this)}finally{df=0,su=null,es=null,ol=null,Ec=!1,$e=null,At=null,Io.clear()}}discard(){var e;for(const r of l(this,us))r(this);l(this,us).clear();for(const r of this.async_deriveds.values())r.reject(ei);j(this,qe,ri).call(this),(e=l(this,fs))==null||e.resolve()}register_created_effect(e){l(this,xi).push(e)}increment(e,r){if(I(this,ds,l(this,ds)+1),e){let n=l(this,sn).get(r)??0;l(this,sn).set(r,n+1)}}decrement(e,r){if(I(this,ds,l(this,ds)-1),e){let n=l(this,sn).get(r)??0;n===1?l(this,sn).delete(r):l(this,sn).set(r,n-1)}l(this,_o)||(I(this,_o,!0),Ar(()=>{I(this,_o,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)l(this,an).add(n);for(const n of r)l(this,Pr).add(n);e.clear(),r.clear()}oncommit(e){l(this,cs).add(e)}ondiscard(e){l(this,us).add(e)}settled(){return(l(this,fs)??I(this,fs,Mh())).promise}static ensure(){if($e===null){const e=$e=new Bl;!Ec&&!ui&&Ar(()=>{l(e,ls)||e.flush()})}return $e}apply(){{At=null;return}}schedule(e){var o;if(su=e,(o=e.b)!=null&&o.is_pending&&(e.f&(Ts|Aa|td))!==0&&(e.f&Bo)===0){e.b.defer_effect(e);return}for(var r=e;r.parent!==null;){r=r.parent;var n=r.f;if(es!==null&&r===Re&&(We===null||(We.f&_t)===0))return;if((n&(Yr|yr))!==0){if((n&wt)===0)return;r.f^=wt}}l(this,jt).push(r)}};ls=new WeakMap,Ln=new WeakMap,xo=new WeakMap,cs=new WeakMap,us=new WeakMap,ds=new WeakMap,sn=new WeakMap,fs=new WeakMap,jt=new WeakMap,xi=new WeakMap,an=new WeakMap,Pr=new WeakMap,Nr=new WeakMap,hs=new WeakMap,_o=new WeakMap,qe=new WeakSet,iu=function(){if(this.is_fork)return!0;for(const n of l(this,sn).keys()){for(var e=n,r=!1;e.parent!==null;){if(l(this,Nr).has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1},ti=function(){var c,u,f,v;I(this,ls,!0),df++>1e3&&(j(this,qe,ri).call(this),Gm());for(const h of l(this,an))l(this,Pr).delete(h),nt(h,ft),this.schedule(h);for(const h of l(this,Pr))nt(h,Or),this.schedule(h);const e=l(this,jt);I(this,jt,[]),this.apply();var r=es=[],n=[],o=ol=[];for(const h of e)try{j(this,qe,au).call(this,h,r,n)}catch(g){throw tv(h),j(this,qe,iu).call(this)||this.discard(),g}if($e=null,o.length>0){var s=Bl.ensure();for(const h of o)s.schedule(h)}if(es=null,ol=null,j(this,qe,iu).call(this)){j(this,qe,Zo).call(this,n),j(this,qe,Zo).call(this,r);for(const[h,g]of l(this,Nr))ev(h,g);o.length>0&&j(c=$e,qe,ti).call(c);return}const i=j(this,qe,Zh).call(this);if(i){j(this,qe,Zo).call(this,n),j(this,qe,Zo).call(this,r),j(u=i,qe,Jh).call(u,this);return}l(this,an).clear(),l(this,Pr).clear();for(const h of l(this,cs))h(this);l(this,cs).clear(),ci=this,ff(n),ff(r),ci=null,(f=l(this,fs))==null||f.resolve();var a=$e;if(l(this,ds)===0&&(l(this,jt).length===0||a!==null)&&j(this,qe,ri).call(this),l(this,jt).length>0)if(a!==null){const h=a;l(h,jt).push(...l(this,jt).filter(g=>!l(h,jt).includes(g)))}else a=this;a!==null&&j(v=a,qe,ti).call(v)},au=function(e,r,n){e.f^=wt;for(var o=e.first;o!==null;){var s=o.f,i=(s&(yr|Yr))!==0,a=i&&(s&wt)!==0,c=a||(s&Bt)!==0||l(this,Nr).has(o);if(!c&&o.fn!==null){i?o.f^=wt:(s&Ts)!==0?r.push(o):Oa(o)&&((s&mr)!==0&&l(this,Pr).add(o),Ns(o));var u=o.first;if(u!==null){o=u;continue}}for(;o!==null;){var f=o.next;if(f!==null){o=f;break}o=o.parent}}},Zh=function(){for(var e=l(this,Ln);e!==null;){if(!e.is_fork){for(const[r,[,n]]of this.current)if(e.current.has(r)&&!n)return e}e=l(e,Ln)}return null},Jh=function(e){var n;for(const[o,s]of e.current)!this.previous.has(o)&&e.previous.has(o)&&this.previous.set(o,e.previous.get(o)),this.current.set(o,s);for(const[o,s]of e.async_deriveds){const i=this.async_deriveds.get(o);i&&s.promise.then(i.resolve).catch(i.reject)}e.async_deriveds.clear(),this.transfer_effects(l(e,an),l(e,Pr));const r=o=>{var s=o.reactions;if(s!==null&&!((o.f&_t)!==0&&(o.f&(ft|Or))===0))for(const c of s){var i=c.f;if((i&_t)!==0)r(c);else{var a=c;i&(ns|mr)&&!this.async_deriveds.has(a)&&(l(this,Pr).delete(a),nt(a,ft),this.schedule(a))}}};for(const o of this.current.keys())r(o);this.oncommit(()=>e.discard()),j(n=e,qe,ri).call(n),$e=this,j(this,qe,ti).call(this)},Zo=function(e){for(var r=0;r!h.current.get(g)[1]);if(!(!l(h,ls)||o.length===0)){var s=o.filter(g=>!this.current.has(g));if(s.length===0)e&&h.discard();else if(r.length>0){if(e)for(const g of l(this,hs))h.unskip_effect(g,p=>{var m;(p.f&(mr|ns))!==0?h.schedule(p):j(m=h,qe,Zo).call(m,[p])});h.activate();var i=new Set,a=new Map;for(var c of r)Qh(c,s,i,a);a=new Map;var u=[...h.current].filter(([g,p])=>{const m=this.current.get(g);return m?m[0]!==p[0]||m[1]!==p[1]:!0}).map(([g])=>g);if(u.length>0)for(const g of l(this,xi))(g.f&(ir|Bt|wl))===0&&ad(g,u,a)&&((g.f&(ns|mr))!==0?(nt(g,ft),h.schedule(g)):l(h,an).add(g));if(l(h,jt).length>0&&!l(h,_o)){h.apply();for(var f of l(h,jt))j(v=h,qe,au).call(v,f,[],[]);I(h,jt,[])}h.deactivate()}}}},ri=function(){if(this.linked){var e=l(this,Ln),r=l(this,xo);e===null?Ac=r:I(e,xo,r),r===null?qo=e:I(r,Ln,e),this.linked=!1}};let Jn=Bl;function jm(t){var e=ui;ui=!0;try{for(var r;;){if(Cm(),$e===null)return r;$e.flush()}}finally{ui=e}}function Gm(){try{Jp()}catch(t){qn(t,su)}}let Sr=null;function ff(t){var e=t.length;if(e!==0){for(var r=0;r0)){Io.clear();for(const o of Sr){if((o.f&(ir|Bt))!==0)continue;const s=[o];let i=o.parent;for(;i!==null;)Sr.has(i)&&(Sr.delete(i),s.push(i)),i=i.parent;for(let a=s.length-1;a>=0;a--){const c=s[a];(c.f&(ir|Bt))===0&&Ns(c)}}Sr.clear()}}Sr=null}}function Qh(t,e,r,n){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const o of t.reactions){const s=o.f;(s&_t)!==0?Qh(o,e,r,n):(s&(ns|mr))!==0&&(s&ft)===0&&ad(o,e,n)&&(nt(o,ft),ld(o))}}function ad(t,e,r){const n=r.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const o of t.deps){if(yl.call(e,o))return!0;if((o.f&_t)!==0&&ad(o,e,r))return r.set(o,!0),!0}return r.set(t,!1),!1}function ld(t){$e.schedule(t)}function ev(t,e){if(!((t.f&yr)!==0&&(t.f&wt)!==0)){(t.f&ft)!==0?e.d.push(t):(t.f&Or)!==0&&e.m.push(t),nt(t,wt);for(var r=t.first;r!==null;)ev(r,e),r=r.next}}function tv(t){nt(t,wt);for(var e=t.first;e!==null;)tv(e),e=e.next}let kl=new Set;const Io=new Map;let rv=!1;function Pn(t,e){var r={f:0,v:t,reactions:null,equals:Bh,rv:0,wv:0};return r}function Ae(t,e){const r=Pn(t);return bv(r),r}function Hm(t,e=!1,r=!0){var o;const n=Pn(t);return e||(n.equals=Vh),Ls&&r&&Ue!==null&&Ue.l!==null&&((o=Ue.l).s??(o.s=[])).push(n),n}function R(t,e,r=!1){We!==null&&(!Er||(We.f&wl)!==0)&&Ds()&&(We.f&(_t|mr|ns|wl))!==0&&(Kr===null||!Kr.has(t))&&rm();let n=r?Zt(e):e;return Ms(t,n,ol)}function Ms(t,e,r=null){if(!t.equals(e)){Io.set(t,Cn?e:t.v);var n=Jn.ensure();if(n.capture(t,e),(t.f&_t)!==0){const o=t;(t.f&ft)!==0&&id(o),At===null&&nd(o)}t.wv=wv(),nv(t,ft,r),Ds()&&Re!==null&&(Re.f&wt)!==0&&(Re.f&(yr|Yr))===0&&(ur===null?tb([t]):ur.push(t)),!n.is_fork&&kl.size>0&&!rv&&Km()}return e}function Km(){rv=!1;for(const t of kl){(t.f&wt)!==0&&nt(t,Or);let e;try{e=Oa(t)}catch{e=!0}e&&Ns(t)}kl.clear()}function hf(t,e=1){var r=d(t),n=e===1?r++:r--;return R(t,r),n}function Dr(t){R(t,t.v+1)}function nv(t,e,r){var n=t.reactions;if(n!==null)for(var o=Ds(),s=n.length,i=0;i{if(_n===s)return a();var c=We,u=_n;wr(null),mf(s);var f=a();return wr(c),mf(u),f};return n&&r.set("length",Ae(t.length)),new Proxy(t,{defineProperty(a,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&em();var f=r.get(c);return f===void 0?i(()=>{var v=Ae(u.value);return r.set(c,v),v}):R(f,u.value,!0),!0},deleteProperty(a,c){var u=r.get(c);if(u===void 0){if(c in a){const f=i(()=>Ae(dt));r.set(c,f),Dr(o)}}else R(u,dt),Dr(o);return!0},get(a,c,u){var g;if(c===Gr)return t;var f=r.get(c),v=c in a;if(f===void 0&&(!v||(g=Yn(a,c))!=null&&g.writable)&&(f=i(()=>{var p=Zt(v?a[c]:dt),m=Ae(p);return m}),r.set(c,f)),f!==void 0){var h=d(f);return h===dt?void 0:h}return Reflect.get(a,c,u)},getOwnPropertyDescriptor(a,c){var u=Reflect.getOwnPropertyDescriptor(a,c);if(u&&"value"in u){var f=r.get(c);f&&(u.value=d(f))}else if(u===void 0){var v=r.get(c),h=v==null?void 0:v.v;if(v!==void 0&&h!==dt)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(a,c){var h;if(c===Gr)return!0;var u=r.get(c),f=u!==void 0&&u.v!==dt||Reflect.has(a,c);if(u!==void 0||Re!==null&&(!f||(h=Yn(a,c))!=null&&h.writable)){u===void 0&&(u=i(()=>{var g=f?Zt(a[c]):dt,p=Ae(g);return p}),r.set(c,u));var v=d(u);if(v===dt)return!1}return f},set(a,c,u,f){var O;var v=r.get(c),h=c in a;if(n&&c==="length")for(var g=u;gAe(dt)),r.set(g+"",p))}if(v===void 0)(!h||(O=Yn(a,c))!=null&&O.writable)&&(v=i(()=>Ae(void 0)),R(v,Zt(u)),r.set(c,v));else{h=v.v!==dt;var m=i(()=>Zt(u));R(v,m)}var y=Reflect.getOwnPropertyDescriptor(a,c);if(y!=null&&y.set&&y.set.call(f,u),!h){if(n&&typeof c=="string"){var w=r.get("length"),k=Number(c);Number.isInteger(k)&&k>=w.v&&R(w,k+1)}Dr(o)}return!0},ownKeys(a){d(o);var c=Reflect.ownKeys(a).filter(v=>{var h=r.get(v);return h===void 0||h.v!==dt});for(var[u,f]of r)f.v!==dt&&!(u in a)&&c.push(u);return c},setPrototypeOf(){tm()}})}function vf(t){try{if(t!==null&&typeof t=="object"&&Gr in t)return t[Gr]}catch{}return t}function Um(t,e){return Object.is(vf(t),vf(e))}var gf,ov,sv,iv;function qm(){if(gf===void 0){gf=window,ov=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;sv=Yn(e,"firstChild").get,iv=Yn(e,"nextSibling").get,lf(t)&&(t[Qc]=void 0,t[el]=null,t[eu]=void 0,t.__e=void 0),lf(r)&&(r[Qs]=void 0)}}function Hr(t=""){return document.createTextNode(t)}function Is(t){return sv.call(t)}function Ta(t){return iv.call(t)}function B(t,e){return Is(t)}function E(t,e=!1){{var r=Is(t);return r instanceof Comment&&r.data===""?Ta(r):r}}function C(t,e=1,r=!1){let n=t;for(;e--;)n=Ta(n);return n}function Ym(t){t.textContent=""}function av(){return!1}function lv(t,e,r){return e==null||e===Lh?r?document.createElement(t,{is:r}):document.createElement(t):r?document.createElementNS(e,t,{is:r}):document.createElementNS(e,t)}function cv(t){Re===null&&(We===null&&Zp(),Xp()),Cn&&Yp()}function Xm(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function kr(t,e){var r=Re;r!==null&&(r.f&Bt)!==0&&(t|=Bt);var n={ctx:Ue,deps:null,nodes:null,f:t|ft|br,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};$e==null||$e.register_created_effect(n);var o=n;if((t&Ts)!==0)es!==null?es.push(n):Jn.ensure().schedule(n);else if(e!==null){try{Ns(n)}catch(i){throw kt(n),i}o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Vo)===0&&(o=o.first,(t&mr)!==0&&(t&Xr)!==0&&o!==null&&(o.f|=Xr))}if(o!==null&&(o.parent=r,r!==null&&Xm(o,r),We!==null&&(We.f&_t)!==0&&(t&Yr)===0)){var s=We;(s.effects??(s.effects=[])).push(o)}return n}function cd(){return We!==null&&!Er}function gc(t){const e=kr(Aa,null);return nt(e,wt),e.teardown=t,e}function it(t){cv();var e=Re.f,r=!We&&(e&yr)!==0&&Ue!==null&&!Ue.i;if(r){var n=Ue;(n.e??(n.e=[])).push(t)}else return uv(t)}function uv(t){return kr(Ts|Ih,t)}function dv(t){return cv(),kr(Aa|Ih,t)}function fv(t){Jn.ensure();const e=kr(Yr|Vo,t);return()=>{kt(e)}}function Zm(t){Jn.ensure();const e=kr(Yr|Vo,t);return(r={})=>new Promise(n=>{r.outro?No(e,()=>{kt(e),n(void 0)}):(kt(e),n(void 0))})}function pc(t){return kr(Ts,t)}function Jm(t){return kr(ns|Vo,t)}function mc(t,e=0){return kr(Aa|e,t)}function Ee(t,e=[],r=[],n=[]){Uh(n,e,r,o=>{kr(Aa,()=>{t(...o.map(d))})})}function Wo(t,e=0){var r=kr(mr|e,t);return r}function hv(t,e=0){var r=kr(td|e,t);return r}function Yt(t){return kr(yr|Vo,t)}function vv(t){var e=t.teardown;if(e!==null){const r=Cn,n=We;pf(!0),wr(null);try{e.call(null)}finally{pf(r),wr(n)}}}function ud(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const o=r.ac;o!==null&&no(()=>{o.abort(Ea)});var n=r.next;(r.f&Yr)!==0?r.parent=null:kt(r,e),r=n}}function Qm(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&yr)===0&&kt(e),e=r}}function kt(t,e=!0){var r=!1;(e||(t.f&Hp)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(eb(t.nodes.start,t.nodes.end),r=!0),t.f|=Jc,ud(t,e&&!r),gi(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)s.stop();vv(t),t.f^=Jc,t.f|=ir;var o=t.parent;o!==null&&o.first!==null&&gv(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function eb(t,e){for(;t!==null;){var r=t===e?null:Ta(t);t.remove(),t=r}}function gv(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function No(t,e,r=!0){var n=[];pv(t,n,!0);var o=()=>{r&&kt(t),e&&e()},s=n.length;if(s>0){var i=()=>--s||o();for(var a of n)a.out(i)}else o()}function pv(t,e,r){if((t.f&Bt)===0){t.f^=Bt;var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&e.push(a);for(var o=t.first;o!==null;){var s=o.next;if((o.f&Yr)===0){var i=(o.f&Xr)!==0||(o.f&yr)!==0&&(t.f&mr)!==0;pv(o,e,i?r:!1)}o=s}}}function Sl(t){mv(t,!0)}function mv(t,e){if((t.f&Bt)!==0){t.f^=Bt,(t.f&wt)===0&&(nt(t,ft),Jn.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Xr)!==0||(r.f&yr)!==0;mv(r,o?e:!1),r=n}var s=t.nodes&&t.nodes.t;if(s!==null)for(const i of s)(i.is_global||e)&&i.in()}}function dd(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var o=r===n?null:Ta(r);e.append(r),r=o}}let sl=!1,Cn=!1;function pf(t){Cn=t}let We=null,Er=!1;function wr(t){We=t}let Re=null;function xr(t){Re=t}let Kr=null;function bv(t){We!==null&&(Kr??(Kr=new Set)).add(t)}let qt=null,nr=0,ur=null;function tb(t){ur=t}let yv=1,mo=0,_n=mo;function mf(t){_n=t}function wv(){return++yv}function Oa(t){var e=t.f;if((e&ft)!==0)return!0;if(e&_t&&(t.f&=~zo),(e&Or)!==0){for(var r=t.deps,n=r.length,o=0;ot.wv)return!0}(e&br)!==0&&At===null&&nt(t,wt)}return!1}function xv(t,e,r=!0){var n=t.reactions;if(n!==null&&!(Kr!==null&&Kr.has(t)))for(var o=0;o{t.ac.abort(Ea)}),t.ac=null);try{t.f|=xl;var f=t.fn,v=f();t.f|=Bo;var h=t.deps,g=$e==null?void 0:$e.is_fork;if(qt!==null){var p;if(g||gi(t,nr),h!==null&&nr>0)for(h.length=nr+qt.length,p=0;p{s.ac.abort(Ea),s.ac=null,nt(s,ft)}),Bm(s),gi(s,0)}}function gi(t,e){var r=t.deps;if(r!==null)for(var n=e;nr==null?void 0:r.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ar(()=>{e.addEventListener(t,o,n)}):e.addEventListener(t,o,n),o}function Nt(t,e,r,n={}){var o=fd(e,t,r,n);return()=>{t.removeEventListener(e,o,n)}}function Av(t,e,r,n,o){var s={capture:n,passive:o},i=fd(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&gc(()=>{e.removeEventListener(t,i,s)})}function di(t,e,r){(e[bo]??(e[bo]={}))[t]=r}function hd(t){for(var e=0;e{throw w});throw h}}finally{t[bo]=e,delete t.currentTarget,wr(f),xr(v)}}}var Eh;const Tc=((Eh=globalThis==null?void 0:globalThis.window)==null?void 0:Eh.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function db(t){return(Tc==null?void 0:Tc.createHTML(t))??t}function Ev(t){var e=lv("template");return e.innerHTML=db(t.replaceAll("","")),e.content}function zs(t,e){var r=Re;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function le(t,e){var r=(e&hm)!==0,n=(e&vm)!==0,o,s=!t.startsWith("");return()=>{o===void 0&&(o=Ev(s?t:""+t),r||(o=Is(o)));var i=n||ov?document.importNode(o,!0):o.cloneNode(!0);if(r){var a=Is(i),c=i.lastChild;zs(a,c)}else zs(i,i);return i}}function fb(t,e,r="svg"){var n=!t.startsWith(""),o=`<${r}>${n?t:""+t}`,s;return()=>{if(!s){var i=Ev(o),a=Is(i);s=Is(a)}var c=s.cloneNode(!0);return zs(c,c),c}}function $a(t,e){return fb(t,e,"svg")}function Pe(t=""){{var e=Hr(t+"");return zs(e,e),e}}function te(){var t=document.createDocumentFragment(),e=document.createComment(""),r=Hr();return t.append(e,r),zs(e,r),t}function b(t,e){t!==null&&t.before(e)}function Ma(){var t;return(t=window.__svelte??(window.__svelte={})).uid??(t.uid=1),`c${window.__svelte.uid++}`}let Pl=!0;function Da(t){Pl=t}function Ce(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[Qs]??(t[Qs]=t.nodeValue))&&(t[Qs]=r,t.nodeValue=`${r}`)}function Tv(t,e){return hb(t,e)}const Ba=new Map;function hb(t,{target:e,anchor:r,props:n={},events:o,context:s,intro:i=!0,transformError:a}){qm();var c=void 0,u=Zm(()=>{var f=r??e.appendChild(Hr());Mm(f,{pending:()=>{}},g=>{Me({});var p=Ue;s&&(p.c=s),o&&(n.$$events=o),Pl=i,c=t(g,n)||{},Pl=!0,Ie()},a);var v=new Set,h=g=>{for(var p=0;p{var y;for(var g of v)for(const w of[e,document]){var p=Ba.get(w),m=p.get(g);--m==0?(w.removeEventListener(g,uu),p.delete(g),p.size===0&&Ba.delete(w)):p.set(g,m)}cu.delete(h),f!==r&&((y=f.parentNode)==null||y.removeChild(f))}});return du.set(c,u),c}let du=new WeakMap;function vb(t,e){const r=du.get(t);return r?(du.delete(t),r(e)):Promise.resolve()}var Cr,zr,sr,ko,_i,ki,Vl;class Ia{constructor(e,r=!0){ae(this,"anchor");_(this,Cr,new Map);_(this,zr,new Map);_(this,sr,new Map);_(this,ko,new Set);_(this,_i,!0);_(this,ki,e=>{if(l(this,Cr).has(e)){var r=l(this,Cr).get(e),n=l(this,zr).get(r);if(n)Sl(n),l(this,ko).delete(r);else{var o=l(this,sr).get(r);o&&(Sl(o.effect),l(this,zr).set(r,o.effect),l(this,sr).delete(r),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[s,i]of l(this,Cr)){if(l(this,Cr).delete(s),s===e)break;const a=l(this,sr).get(i);a&&(kt(a.effect),l(this,sr).delete(i))}for(const[s,i]of l(this,zr)){if(s===r||l(this,ko).has(s))continue;const a=()=>{if(Array.from(l(this,Cr).values()).includes(s)){var u=document.createDocumentFragment();dd(i,u),u.append(Hr()),l(this,sr).set(s,{effect:i,fragment:u})}else kt(i);l(this,ko).delete(s),l(this,zr).delete(s)};l(this,_i)||!n?(l(this,ko).add(s),No(i,a,!1)):a()}}});_(this,Vl,e=>{l(this,Cr).delete(e);const r=Array.from(l(this,Cr).values());for(const[n,o]of l(this,sr))r.includes(n)||(kt(o.effect),l(this,sr).delete(n))});this.anchor=e,I(this,_i,r)}ensure(e,r){var n=$e,o=av();if(r&&!l(this,zr).has(e)&&!l(this,sr).has(e))if(o){var s=document.createDocumentFragment(),i=Hr();s.append(i),l(this,sr).set(e,{effect:Yt(()=>r(i)),fragment:s})}else l(this,zr).set(e,Yt(()=>r(this.anchor)));if(l(this,Cr).set(n,e),o){for(const[a,c]of l(this,zr))a===e?n.unskip_effect(c):n.skip_effect(c);for(const[a,c]of l(this,sr))a===e?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(l(this,ki)),n.ondiscard(l(this,Vl))}else l(this,ki).call(this,n)}}Cr=new WeakMap,zr=new WeakMap,sr=new WeakMap,ko=new WeakMap,_i=new WeakMap,ki=new WeakMap,Vl=new WeakMap;function Le(t,e,r=!1){var n=new Ia(t),o=r?Xr:0;function s(i,a){n.ensure(i,a)}Wo(()=>{var i=!1;e((a,c=0)=>{i=!0,s(c,a)}),i||s(-1,null)},o)}const gb=Symbol("NaN");function Ov(t,e,r){var n=new Ia(t),o=!Ds();Wo(()=>{var s=e();s!==s&&(s=gb),o&&s!==null&&typeof s=="object"&&(s={}),n.ensure(s,r)})}function Xt(t,e){return e}function pb(t,e,r){for(var n=[],o=e.length,s,i=e.length,a=0;a{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var h=t.outrogroups;fu(t,hc(s.done)),h.delete(s),h.size===0&&(t.outrogroups=null)}}else i-=1},!1)}if(i===0){var c=n.length===0&&r!==null;if(c){var u=r,f=u.parentNode;Ym(f),f.append(u),t.items.clear()}fu(t,e,!c)}else s={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(s)}function fu(t,e,r=!0){var n;if(t.pending.size>0){n=new Set;for(const i of t.pending.values())for(const a of i)n.add(t.items.get(a).e)}for(var o=0;o{var O=r();return Qu(O)?O:O==null?[]:hc(O)}),h,g=new Map,p=!0;function m(O){(k.effect.f&ir)===0&&(k.pending.delete(O),k.fallback=f,mb(k,h,i,e,n),f!==null&&(h.length===0?(f.f&Vr)===0?Sl(f):(f.f^=Vr,ni(f,null,i)):No(f,()=>{f=null})))}function y(O){k.pending.delete(O)}var w=Wo(()=>{h=d(v);for(var O=h.length,S=new Set,P=$e,T=av(),N=0;Ns(i)):(f=Yt(()=>s(yf??(yf=Hr()))),f.f|=Vr)),O>S.size&&qp(),!p)if(g.set(P,S),T){for(const[K,L]of a)S.has(K)||P.skip_effect(L.e);P.oncommit(m),P.ondiscard(y)}else m(P);d(v)}),k={effect:w,items:a,pending:g,outrogroups:null,fallback:f};p=!1}function Hs(t){for(;t!==null&&(t.f&yr)===0;)t=t.next;return t}function mb(t,e,r,n,o){var G,K,L,U,Z,z,F,fe,de;var s=(n&im)!==0,i=e.length,a=t.items,c=Hs(t.effect.first),u,f=null,v,h=[],g=[],p,m,y,w;if(s)for(w=0;w0){var D=(n&Rh)!==0&&i===0?r:null;if(s){for(w=0;w{var ce,A;if(v!==void 0)for(y of v)(A=(ce=y.nodes)==null?void 0:ce.a)==null||A.apply()})}function bb(t,e,r,n,o,s,i,a){var c=(i&om)!==0?(i&am)===0?Hm(r,!1,!1):Pn(r):null,u=(i&sm)!==0?Pn(o):null;return{v:c,i:u,e:Yt(()=>(s(e,c??r,u??o,a),()=>{t.delete(n)}))}}function ni(t,e,r){if(t.nodes)for(var n=t.nodes.start,o=t.nodes.end,s=e&&(e.f&Vr)===0?e.nodes.start:r;n!==null;){var i=Ta(n);if(s.before(n),n===o)return;n=i}}function On(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function Qe(t,e,r,n,o){var a;var s=(a=e.$$slots)==null?void 0:a[r],i=!1;s===!0&&(s=e.children,i=!0),s===void 0||s(t,i?()=>n:n)}function Fe(t,e,...r){var n=new Ia(t);Wo(()=>{const o=e()??null;n.ensure(o,o&&(s=>o(s,...r)))},Xr)}function $(t,e,r){var n=new Ia(t);Wo(()=>{var o=e()??null;n.ensure(o,o&&(s=>r(s,o)))},Xr)}const yb=()=>performance.now(),wn={tick:t=>requestAnimationFrame(t),now:()=>yb(),tasks:new Set};function $v(){const t=wn.now();wn.tasks.forEach(e=>{e.c(t)||(wn.tasks.delete(e),e.f())}),wn.tasks.size!==0&&wn.tick($v)}function wb(t){let e;return wn.tasks.size===0&&wn.tick($v),{promise:new Promise(r=>{wn.tasks.add(e={c:t,f:r})}),abort(){wn.tasks.delete(e)}}}function wf(t,e){no(()=>{t.dispatchEvent(new CustomEvent(e))})}function xb(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function xf(t){const e={},r=t.split(";");for(const n of r){const[o,s]=n.split(":");if(!o||s===void 0)break;const i=xb(o.trim());e[i]=s.trim()}return e}const _b=t=>t;function kb(t,e,r,n){var y;var o=(t&fm)!==0,s="in",i,a=e.inert,c=e.style.overflow,u,f;function v(){return no(()=>i??(i=r()(e,(n==null?void 0:n())??{},{direction:s})))}var h={is_global:o,in(){e.inert=a,u==null||u.abort(),u=Mv(e,v(),f,1,()=>{wf(e,"introstart")},()=>{wf(e,"introend"),u==null||u.abort(),u=i=void 0,e.style.overflow=c})},out(w){{w==null||w(),i=void 0;return}},stop:()=>{u==null||u.abort()}},g=Re;if(((y=g.nodes).t??(y.t=[])).push(h),Pl){var p=o;if(!p){for(var m=g.parent;m&&(m.f&Xr)!==0;)for(;(m=m.parent)&&(m.f&mr)===0;);p=!m||(m.f&Bo)!==0}p&&pc(()=>{_r(()=>h.in())})}}function Mv(t,e,r,n,o,s){if(Xo(e)){var i,a=!1;return Ar(()=>{if(!a){var y=e({direction:"in"});i=Mv(t,y,r,n,o,s)}}),{abort:()=>{a=!0,i==null||i.abort()},deactivate:()=>i.deactivate(),reset:()=>i.reset(),t:()=>i.t()}}if(!(e!=null&&e.duration)&&!(e!=null&&e.delay))return o(),s(),{abort:ze,deactivate:ze,reset:ze,t:()=>n};const{delay:c=0,css:u,tick:f,easing:v=_b}=e;var h=[];if(f&&f(0,1),u){var g=xf(u(0,1));h.push(g,g)}var p=()=>1-n,m=t.animate(h,{duration:c,fill:"forwards"});return m.onfinish=()=>{m.cancel(),o();var y=1-n,w=n-y,k=e.duration*Math.abs(w),O=[];if(k>0){var S=!1;if(u)for(var P=Math.ceil(k/16.666666666666668),T=0;T<=P;T+=1){var N=y+w*v(T/P),x=xf(u(N,1-N));O.push(x),S||(S=x.overflow==="hidden")}S&&(t.style.overflow="hidden"),p=()=>{var D=m.currentTime;return y+w*v(D/k)},f&&wb(()=>{if(m.playState!=="running")return!1;var D=p();return f(D,1-D),!0})}m=t.animate(O,{duration:k,fill:"forwards"}),m.onfinish=()=>{p=()=>n,f==null||f(n,1-n),s()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=ze)},deactivate:()=>{s=ze},reset:()=>{},t:()=>p()}}function Iv(t,e,r,n,o,s){var i=null,a=t,c=new Ia(a,!1);Wo(()=>{const u=e()||null;var f=r||u==="svg"?gm:void 0;if(u===null){c.ensure(null,null),Da(!0);return}return c.ensure(u,v=>{if(u){if(i=lv(u,f),zs(i,i),n){var h=null,g=i.appendChild(Hr());n(i,g),h==null||h.remove()}Re.nodes.end=i,v.before(i)}}),Da(!0),()=>{u&&Da(!1)}},Xr),gc(()=>{Da(!0)})}function Sb(t,e){var r=void 0,n;hv(()=>{r!==(r=e())&&(n&&(kt(n),n=null),r&&(n=Yt(()=>{pc(()=>r(t))})))})}function Nv(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e=0;){var a=i+s;(i===0||_f.includes(n[i-1]))&&(a===n.length||_f.includes(n[a]))?n=(i===0?"":n.substring(0,i))+n.substring(a+1):i=a}}return n===""?null:n}function kf(t,e=!1){var r=e?" !important;":";",n="";for(var o of Object.keys(t)){var s=t[o];s!=null&&s!==""&&(n+=" "+o+": "+s+r)}return n}function Oc(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Cb(t,e){if(e){var r="",n,o;if(Array.isArray(e)?(n=e[0],o=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,i=0,a=!1,c=[];n&&c.push(...Object.keys(n).map(Oc)),o&&c.push(...Object.keys(o).map(Oc));var u=0,f=-1;const m=t.length;for(var v=0;v{"__value"in t&&vu(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),gc(()=>{e.disconnect()})}function Sf(t){return"__value"in t?t.__value:t.value}const Ks=Symbol("class"),Us=Symbol("style"),zv=Symbol("is custom element"),Rv=Symbol("is html"),Eb=rd?"input":"INPUT",Tb=rd?"option":"OPTION",Ob=rd?"select":"SELECT";function $b(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ct(t,e,r,n){var o=Fv(t);o[e]!==(o[e]=r)&&(e==="loading"&&(t[Kp]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Lv(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Mb(t,e,r,n,o=!1,s=!1){var i=Fv(t),a=i[zv],c=!i[Rv],u=e||{},f=t.nodeName===Tb;for(var v in e)v in r||(r[v]=null);r.class?r.class=hu(r.class):r[Ks]&&(r.class=null),r[Us]&&(r.style??(r.style=null));var h=Lv(t);if(t.nodeName===Eb&&"type"in r&&("value"in r||"__value"in r)){var g=r.type;(g!==u.type||g===void 0&&t.hasAttribute("type"))&&(u.type=g,Ct(t,"type",g))}for(const P in r){let T=r[P];if(f&&P==="value"&&T==null){t.value=t.__value="",u[P]=T;continue}if(P==="class"){var p=t.namespaceURI==="http://www.w3.org/1999/xhtml";os(t,p,T,n,e==null?void 0:e[Ks],r[Ks]),u[P]=T,u[Ks]=r[Ks];continue}if(P==="style"){Jo(t,T,e==null?void 0:e[Us],r[Us]),u[P]=T,u[Us]=r[Us];continue}var m=u[P];if(!(T===m&&!(T===void 0&&t.hasAttribute(P)))){u[P]=T;var y=P[0]+P[1];if(y!=="$$")if(y==="on"){const N={},x="$$"+P;let D=P.slice(2);var w=ib(D);if(ob(D)&&(D=D.slice(0,-7),N.capture=!0),!w&&m){if(T!=null)continue;t.removeEventListener(D,u[x],N),u[x]=null}if(w)di(D,t,T),hd([D]);else if(T!=null){let G=function(K){u[P].call(this,K)};var S=G;u[x]=fd(D,t,G,N)}}else if(P==="style")Ct(t,P,T);else if(P==="autofocus")Tm(t,!!T);else if(!a&&(P==="__value"||P==="value"&&T!=null))t.value=t.__value=T;else if(P==="selected"&&f)$b(t,T);else{var k=P;c||(k=lb(k));var O=k==="defaultValue"||k==="defaultChecked";if(T==null&&!a&&!O)if(i[P]=null,k==="value"||k==="checked"){let N=t;const x=e===void 0;if(k==="value"){let D=N.defaultValue;N.removeAttribute(k),N.defaultValue=D,N.value=N.__value=x?D:null}else{let D=N.defaultChecked;N.removeAttribute(k),N.defaultChecked=D,N.checked=x?D:!1}}else t.removeAttribute(P);else O||h.includes(k)&&(a||typeof T!="string")?(t[k]=T,k in i&&(i[k]=dt)):typeof T!="function"&&Ct(t,k,T)}}}return u}function Ke(t,e,r=[],n=[],o=[],s,i=!1,a=!1){Uh(o,r,n,c=>{var u=void 0,f={},v=t.nodeName===Ob,h=!1;if(hv(()=>{var p=e(...c.map(d)),m=Mb(t,u,p,s,i,a);h&&v&&"value"in p&&vu(t,p.value);for(let w of Object.getOwnPropertySymbols(f))p[w]||kt(f[w]);for(let w of Object.getOwnPropertySymbols(p)){var y=p[w];w.description===Dh&&(!u||y!==u[w])&&(f[w]&&kt(f[w]),f[w]=Yt(()=>Sb(t,()=>y))),m[w]=y}u=m}),v){var g=t;pc(()=>{vu(g,u.value,!0),Ab(g)})}h=!0})}function Fv(t){return t[el]??(t[el]={[zv]:t.nodeName.includes("-"),[Rv]:t.namespaceURI===Lh})}var Pf=new Map;function Lv(t){var e=t.getAttribute("is")||t.nodeName,r=Pf.get(e);if(r)return r;Pf.set(e,r=[]);for(var n,o=t,s=Element.prototype;s!==o;){n=$h(o);for(var i in n)n[i].set&&i!=="innerHTML"&&i!=="textContent"&&i!=="innerText"&&r.push(i);o=ed(o)}return r}function gu(t,e,r=e){var n=new WeakSet;Kh(t,"input",async o=>{var s=o?t.defaultValue:t.value;if(s=Mc(t)?Ic(s):s,r(s),$e!==null&&n.add($e),await kv(),s!==(s=e())){var i=t.selectionStart,a=t.selectionEnd,c=t.value.length;if(t.value=s??"",a!==null){var u=t.value.length;i===a&&a===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=i,t.selectionEnd=Math.min(a,u))}}}),_r(e)==null&&t.value&&(r(Mc(t)?Ic(t.value):t.value),$e!==null&&n.add($e)),mc(()=>{var o=e();if(t===document.activeElement){var s=$e;if(n.has(s))return}Mc(t)&&o===Ic(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Mc(t){var e=t.type;return e==="number"||e==="range"}function Ic(t){return t===""?null:+t}function Ib(t,e,r=e){Kh(t,"change",()=>{r(t.files)}),mc(()=>{t.files=e()})}function Nc(t,e){return t===e||(t==null?void 0:t[Gr])===e}function at(t={},e,r,n){var o=Ue.r,s=Re;return pc(()=>{var i,a;return mc(()=>{i=a,a=[],_r(()=>{Nc(r(...a),t)||(e(t,...a),i&&Nc(r(...i),t)&&e(null,...i))})}),()=>{let c=s;for(;c!==o&&c.parent!==null&&c.parent.f&Jc;)c=c.parent;const u=()=>{a&&Nc(r(...a),t)&&e(null,...a)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Nb(t=!1){const e=Ue,r=e.l.u;if(!r)return;let n=()=>vo(e.s);if(t){let o=0,s={};const i=$s(()=>{let a=!1;const c=e.s;for(const u in c)c[u]!==s[u]&&(s[u]=c[u],a=!0);return a&&o++,o});n=()=>d(i)}r.b.length&&dv(()=>{Cf(e,n),Xc(r.b)}),it(()=>{const o=_r(()=>r.m.map(jp));return()=>{for(const s of o)typeof s=="function"&&s()}}),r.a.length&&it(()=>{Cf(e,n),Xc(r.a)})}function Cf(t,e){if(t.l.s)for(const r of t.l.s)d(r);e()}const zb={get(t,e){if(!t.exclude.has(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.has(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.has(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.has(e))}};function Ge(t,e,r){return new Proxy({props:t,exclude:e},zb)}const Rb={get(t,e){if(!t.exclude.includes(e))return d(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,r){if(!(e in t.special)){var n=Re;try{xr(t.parent_effect),t.special[e]=M({get[e](){return t.props[e]}},e,Fh)}finally{xr(n)}}return t.special[e](r),hf(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),hf(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ze(t,e){return new Proxy({props:t,exclude:e,special:{},version:Pn(0),parent_effect:Re},Rb)}const Fb={get(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Xo(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n)return n[e]}},set(t,e,r){let n=t.props.length;for(;n--;){let o=t.props[n];Xo(o)&&(o=o());const s=Yn(o,e);if(s&&s.set)return s.set(r),!0}return!1},getOwnPropertyDescriptor(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Xo(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n){const o=Yn(n,e);return o&&!o.configurable&&(o.configurable=!0),o}}},has(t,e){if(e===Gr||e===Nh)return!1;for(let r of t.props)if(Xo(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(Xo(r)&&(r=r()),!!r){for(const n in r)e.includes(n)||e.push(n);for(const n of Object.getOwnPropertySymbols(r))e.includes(n)||e.push(n)}return e}};function je(...t){return new Proxy({props:t},Fb)}function M(t,e,r,n){var S;var o=!Ls||(r&cm)!==0,s=(r&um)!==0,i=(r&dm)!==0,a=n,c=!0,u=void 0,f=()=>i&&o?(u??(u=$s(n)),d(u)):(c&&(c=!1,a=i?_r(n):n),a);let v;if(s){var h=Gr in t||Nh in t;v=((S=Yn(t,e))==null?void 0:S.set)??(h&&e in t?P=>t[e]=P:void 0)}var g,p=!1;s?[g,p]=Em(()=>t[e]):g=t[e],g===void 0&&n!==void 0&&(g=f(),v&&(o&&Qp(),v(g)));var m;if(o?m=()=>{var P=t[e];return P===void 0?f():(c=!0,P)}:m=()=>{var P=t[e];return P!==void 0&&(a=void 0),P===void 0?a:P},o&&(r&Fh)===0)return m;if(v){var y=t.$$legacy;return(function(P,T){return arguments.length>0?((!o||!T||y||p)&&v(T?m():P),P):m()})}var w=!1,k=((r&lm)!==0?$s:sd)(()=>(w=!1,m()));s&&d(k);var O=Re;return(function(P,T){if(arguments.length>0){const N=T?d(k):o&&s?Zt(P):P;return R(k,N),w=!0,a!==void 0&&(a=N),P}return Cn&&w||(O.f&ir)!==0?k.v:d(k)})}function vd(t){Ue===null&&zh(),Ls&&Ue.l!==null?Lb(Ue).m.push(t):it(()=>{const e=_r(t);if(typeof e=="function")return e})}function Lb(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Db="5";var Th;typeof window<"u"&&((Th=window.__svelte??(window.__svelte={})).v??(Th.v=new Set)).add(Db);const Bb=t=>t;function Vb(t,{delay:e=0,duration:r=400,easing:n=Bb}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:s=>`opacity: ${s*o}`}}class oi extends Error{constructor(e,r){super(r),this.status=e}}async function $n(t,e){const r=await fetch(t,{headers:{"Content-Type":"application/json"},...e});if(!r.ok){let n=`HTTP ${r.status}`;try{const o=await r.json();o&&typeof o.error=="string"&&(n=o.error)}catch{}throw new oi(r.status,n)}if(r.status!==204)return await r.json()}const ts={login:t=>$n("/api/session",{method:"POST",body:JSON.stringify({password:t})}),logout:()=>$n("/api/session",{method:"DELETE"}),status:()=>$n("/api/status"),rules:(t,e)=>{const r=new URLSearchParams({category:t});return e!=null&&e.q&&r.set("q",e.q),(e==null?void 0:e.offset)!=null&&r.set("offset",String(e.offset)),(e==null?void 0:e.limit)!=null&&r.set("limit",String(e.limit)),$n(`/api/rules?${r}`)},addRules:(t,e)=>$n("/api/rules",{method:"POST",body:JSON.stringify({category:t,rules:e})}),removeRules:(t,e)=>$n("/api/rules",{method:"DELETE",body:JSON.stringify({category:t,rules:e})}),traffic:(t,e,r)=>{const n=[];return t&&n.push(`sort=${t}`),e&&e!=="all"&&n.push(`source=${e}`),r&&n.push(`client=${encodeURIComponent(r)}`),$n(n.length?`/api/traffic?${n.join("&")}`:"/api/traffic")},history:()=>$n("/api/history")},Wb=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n({classGroupId:t,validator:e}),Dv=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),Cl="-",Af=[],Gb="arbitrary..",Hb=t=>{const e=Ub(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Kb(i);const a=i.split(Cl),c=a[0]===""&&a.length>1?1:0;return Bv(a,c,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=n[i],u=r[i];return c?u?Wb(u,c):c:u||Af}return r[i]||Af}}},Bv=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],s=r.nextPart.get(o);if(s){const u=Bv(t,e+1,s);if(u)return u}const i=r.validators;if(i===null)return;const a=e===0?t.join(Cl):t.slice(e).join(Cl),c=i.length;for(let u=0;ut.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?Gb+n:void 0})(),Ub=t=>{const{theme:e,classGroups:r}=t;return qb(r,e)},qb=(t,e)=>{const r=Dv();for(const n in t){const o=t[n];gd(o,r,n,e)}return r},gd=(t,e,r,n)=>{const o=t.length;for(let s=0;s{if(typeof t=="string"){Xb(t,e,r);return}if(typeof t=="function"){Zb(t,e,r,n);return}Jb(t,e,r,n)},Xb=(t,e,r)=>{const n=t===""?e:Vv(e,t);n.classGroupId=r},Zb=(t,e,r,n)=>{if(Qb(t)){gd(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(jb(r,t))},Jb=(t,e,r,n)=>{const o=Object.entries(t),s=o.length;for(let i=0;i{let r=t;const n=e.split(Cl),o=n.length;for(let s=0;s"isThemeGetter"in t&&t.isThemeGetter===!0,ey=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const o=(s,i)=>{r[s]=i,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(s){let i=r[s];if(i!==void 0)return i;if((i=n[s])!==void 0)return o(s,i),i},set(s,i){s in r?r[s]=i:o(s,i)}}},pu="!",Ef=":",ty=[],Tf=(t,e,r,n,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),ry=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const s=[];let i=0,a=0,c=0,u;const f=o.length;for(let m=0;mc?u-c:void 0;return Tf(s,g,h,p)};if(e){const o=e+Ef,s=n;n=i=>i.startsWith(o)?s(i.slice(o.length)):Tf(ty,!1,i,void 0,!0)}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},ny=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let s=0;s0&&(o.sort(),n.push(...o),o=[]),n.push(i)):o.push(i)}return o.length>0&&(o.sort(),n.push(...o)),n}},oy=t=>({cache:ey(t.cacheSize),parseClassName:ry(t),sortModifiers:ny(t),postfixLookupClassGroupIds:sy(t),...Hb(t)}),sy=t=>{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:i}=e,a=[],c=t.trim().split(iy);let u="";for(let f=c.length-1;f>=0;f-=1){const v=c[f],{isExternal:h,modifiers:g,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=r(v);if(h){u=v+(u.length>0?" "+u:u);continue}let w=!!y,k;if(w){const N=m.substring(0,y);k=n(N);const x=k&&i[k]?n(m):void 0;x&&x!==k&&(k=x,w=!1)}else k=n(m);if(!k){if(!w){u=v+(u.length>0?" "+u:u);continue}if(k=n(m),!k){u=v+(u.length>0?" "+u:u);continue}w=!1}const O=g.length===0?"":g.length===1?g[0]:s(g).join(":"),S=p?O+pu:O,P=S+k;if(a.indexOf(P)>-1)continue;a.push(P);const T=o(k,w);for(let N=0;N0?" "+u:u)}return u},ly=(...t)=>{let e=0,r,n,o="";for(;e{if(typeof t=="string")return t;let e,r="";for(let n=0;n{let r,n,o,s;const i=c=>{const u=e.reduce((f,v)=>v(f),t());return r=oy(u),n=r.cache.get,o=r.cache.set,s=a,a(c)},a=c=>{const u=n(c);if(u)return u;const f=ay(c,r);return o(c,f),f};return s=i,(...c)=>s(ly(...c))},uy=[],mt=t=>{const e=r=>r[t]||uy;return e.isThemeGetter=!0,e},jv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Gv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dy=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,fy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hy=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,py=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mn=t=>dy.test(t),Be=t=>!!t&&!Number.isNaN(Number(t)),Mr=t=>!!t&&Number.isInteger(Number(t)),zc=t=>t.endsWith("%")&&Be(t.slice(0,-1)),en=t=>fy.test(t),Hv=()=>!0,my=t=>hy.test(t)&&!vy.test(t),pd=()=>!1,by=t=>gy.test(t),yy=t=>py.test(t),wy=t=>!be(t)&&!xe(t),xy=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),_y=t=>oo(t,qv,pd),be=t=>jv.test(t),ao=t=>oo(t,Yv,my),Of=t=>oo(t,Oy,Be),ky=t=>oo(t,Zv,Hv),Sy=t=>oo(t,Xv,pd),$f=t=>oo(t,Kv,pd),Py=t=>oo(t,Uv,yy),Va=t=>oo(t,Jv,by),xe=t=>Gv.test(t),qs=t=>jo(t,Yv),Cy=t=>jo(t,Xv),Mf=t=>jo(t,Kv),Ay=t=>jo(t,qv),Ey=t=>jo(t,Uv),Wa=t=>jo(t,Jv,!0),Ty=t=>jo(t,Zv,!0),oo=(t,e,r)=>{const n=jv.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},jo=(t,e,r=!1)=>{const n=Gv.exec(t);return n?n[1]?e(n[1]):r:!1},Kv=t=>t==="position"||t==="percentage",Uv=t=>t==="image"||t==="url",qv=t=>t==="length"||t==="size"||t==="bg-size",Yv=t=>t==="length",Oy=t=>t==="number",Xv=t=>t==="family-name",Zv=t=>t==="number"||t==="weight",Jv=t=>t==="shadow",$y=()=>{const t=mt("color"),e=mt("font"),r=mt("text"),n=mt("font-weight"),o=mt("tracking"),s=mt("leading"),i=mt("breakpoint"),a=mt("container"),c=mt("spacing"),u=mt("radius"),f=mt("shadow"),v=mt("inset-shadow"),h=mt("text-shadow"),g=mt("drop-shadow"),p=mt("blur"),m=mt("perspective"),y=mt("aspect"),w=mt("ease"),k=mt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...S(),xe,be],T=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],x=()=>[xe,be,c],D=()=>[Mn,"full","auto",...x()],G=()=>[Mr,"none","subgrid",xe,be],K=()=>["auto",{span:["full",Mr,xe,be]},Mr,xe,be],L=()=>[Mr,"auto",xe,be],U=()=>["auto","min","max","fr",xe,be],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...x()],fe=()=>[Mn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],de=()=>[Mn,"screen","full","dvw","lvw","svw","min","max","fit",...x()],ce=()=>[Mn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],A=()=>[t,xe,be],we=()=>[...S(),Mf,$f,{position:[xe,be]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",Ay,_y,{size:[xe,be]}],re=()=>[zc,qs,ao],H=()=>["","none","full",u,xe,be],ne=()=>["",Be,qs,ao],X=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Be,zc,Mf,$f],Q=()=>["","none",p,xe,be],se=()=>["none",Be,xe,be],ee=()=>["none",Be,xe,be],Oe=()=>[Be,xe,be],V=()=>[Mn,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[en],breakpoint:[en],color:[Hv],container:[en],"drop-shadow":[en],ease:["in","out","in-out"],font:[wy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[en],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[en],shadow:[en],spacing:["px",Be],text:[en],"text-shadow":[en],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mn,be,xe,y]}],container:["container"],"container-type":[{"@container":["","normal","size",xe,be]}],"container-named":[xy],columns:[{columns:[Be,be,xe,a]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Mr,"auto",xe,be]}],basis:[{basis:[Mn,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,Mn,"auto","initial","none",be]}],grow:[{grow:["",Be,xe,be]}],shrink:[{shrink:["",Be,xe,be]}],order:[{order:[Mr,"first","last","none",xe,be]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[a,"screen",...fe()]}],"min-w":[{"min-w":[a,"screen","none",...fe()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...fe()]}],h:[{h:["screen","lh",...fe()]}],"min-h":[{"min-h":["screen","lh","none",...fe()]}],"max-h":[{"max-h":["screen","lh",...fe()]}],"font-size":[{text:["base",r,qs,ao]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ty,ky]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zc,be]}],"font-family":[{font:[Cy,Sy,e]}],"font-features":[{"font-features":[be]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,xe,be]}],"line-clamp":[{"line-clamp":[Be,"none",xe,Of]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",xe,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",xe,ao]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Be,"auto",xe,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[Mr,xe,be]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mr,xe,be],radial:["",xe,be],conic:[Mr,xe,be]},Ey,Py]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,xe,be]}],"outline-w":[{outline:["",Be,qs,ao]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",f,Wa,Va]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",v,Wa,Va]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Be,ao]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",h,Wa,Va]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Be,xe,be]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[xe,be]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,be]}],filter:[{filter:["","none",xe,be]}],blur:[{blur:Q()}],brightness:[{brightness:[Be,xe,be]}],contrast:[{contrast:[Be,xe,be]}],"drop-shadow":[{"drop-shadow":["","none",g,Wa,Va]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Be,xe,be]}],"hue-rotate":[{"hue-rotate":[Be,xe,be]}],invert:[{invert:["",Be,xe,be]}],saturate:[{saturate:[Be,xe,be]}],sepia:[{sepia:["",Be,xe,be]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,be]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[Be,xe,be]}],"backdrop-contrast":[{"backdrop-contrast":[Be,xe,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,xe,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,xe,be]}],"backdrop-invert":[{"backdrop-invert":["",Be,xe,be]}],"backdrop-opacity":[{"backdrop-opacity":[Be,xe,be]}],"backdrop-saturate":[{"backdrop-saturate":[Be,xe,be]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,xe,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",xe,be]}],ease:[{ease:["linear","initial",w,xe,be]}],delay:[{delay:[Be,xe,be]}],animate:[{animate:["none",k,xe,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,xe,be]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[xe,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],zoom:[{zoom:[Mr,xe,be]}],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,be]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Be,qs,ao,Of]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},My=cy($y);function He(...t){return My(fi(t))}var Iy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Ny=le("
");function xt(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Iy);var o=Ny();Ke(o,i=>({"data-slot":"card-content",class:i,...n}),[()=>He("px-(--card-spacing)",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var zy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Ry=le("

");function Tt(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,zy);var o=Ry();Ke(o,i=>({"data-slot":"card-description",class:i,...n}),[()=>He("text-sm text-muted-foreground",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var Fy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Ly=le("
");function Ot(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Fy);var o=Ly();Ke(o,i=>({"data-slot":"card-header",class:i,...n}),[()=>He("gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var Dy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),By=le("
");function rr(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Dy);var o=By();Ke(o,i=>({"data-slot":"card-title",class:i,...n}),[()=>He("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var Vy=new Set(["$$slots","$$events","$$legacy","ref","class","children","size"]),Wy=le("
");function yt(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=M(e,"size",3,"default"),o=Ge(e,Vy);var s=Wy();Ke(s,a=>({"data-slot":"card","data-size":n(),class:a,...o}),[()=>He("gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col",e.class)]);var i=B(s);Fe(i,()=>e.children??ze),at(s,a=>r(a),()=>r()),b(t,s),Ie()}var jy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Gy=le("
");function md(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,jy);var o=Gy();Ke(o,i=>({"data-slot":"alert-description",class:i,...n}),[()=>He("text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var Hy=Array.isArray,bc=t=>{if(!t&&t!==0&&t!==0n)return"";if(typeof t=="string")return t;if(typeof t=="number")return t!==t?"":""+t;if(typeof t=="bigint")return""+t;let e="";if(Hy(t)){const r=t.length;for(let n=0;ntypeof t!="string"||!t?t:t.replace(Ky," ").trim(),qy=t=>{const e=t.length;if(e===0)return!1;const r=t.charCodeAt(0),n=t.charCodeAt(e-1);if(r===32||n===32||r>=9&&r<=13||r===160||n>=9&&n<=13||n===160)return!0;for(let o=0;o=9&&s<=13||s===160||s===32&&o+1{const e=bc(t);if(e)return qy(e)?Uy(e):e},bu=t=>t===!1?"false":t===!0?"true":t===0?"0":t,pr=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},Qv=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const r=t,n=e,o=Object.keys(r),s=Object.keys(n);if(o.length!==s.length)return!1;for(let i=0;i{const r=t;for(const n in e)if(Object.hasOwn(e,n)){const o=e[n];n in r?r[n]=il(r[n],o):r[n]=o}return t},eg=(t,e)=>{for(let r=0;r{const e=[];eg(t,e);const r=[];for(let n=0;n{const r=t,n=e,o={};for(const s in r){const i=r[s];if(s in n){const a=n[s];mu(i)||mu(a)?o[s]=yu(a,i):typeof i=="object"&&typeof a=="object"&&i&&a?o[s]=bd(i,a):o[s]=a+" "+i}else o[s]=i}for(const s in n)s in r||(o[s]=n[s]);return o},Xy={twMerge:!0,twMergeConfig:{}},tg=256,Zy=128,Ro=Symbol("tv-cache-miss"),Jy=t=>(t==null?void 0:t.class)!=null&&t.class!==""||(t==null?void 0:t.className)!=null&&t.className!=="",If=t=>{if(t===void 0)return"";if(t===null)return"null";if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number")return t===0?"0":String(t);if(typeof t=="bigint")return String(t);const e=bu(t),r=typeof e;if(r==="string"||r==="number"||r==="boolean"||r==="bigint")return String(e);if(r==="object")try{return JSON.stringify(e)}catch{return null}return null},Yo=(t,e)=>{if(e===void 0)return t;if(e===null)return t+"null";const r=typeof e;if(r==="string"||r==="number"||r==="boolean"||r==="bigint")return t+String(e);if(Array.isArray(e))return t+e.join("\0");try{return t+JSON.stringify(e)}catch{return t+"?"}},rg=(t,e,r,n)=>{let o="";const s=Object.create(null);for(let a=0;a1&&i.sort();for(let a=0;a{let r="";for(let n=0;n{let e=new Map,r=null;return{get(n){if(e.has(n))return e.get(n);if(r!=null&&r.has(n)){const o=r.get(n);return e.set(n,o),o}return Ro},set(n,o){e.size>=t&&(r=e,e=new Map),e.set(n,o)}}},Qy=(t=tg)=>{const e=og(t);return{get(r){return e.get(r)},set(r,n){e.set(r,n)}}},ew=(t=Zy)=>{let e=new Map,r=null,n=0;return{get(o,s){const i=e.get(o);if(i){const a=i.get(s);if(a!==void 0||i.has(s))return a}if(r){const a=r.get(o);if(a){const c=a.get(s);if(c!==void 0||a.has(s)){let u=e.get(o);return u||(u=new Map,e.set(o,u)),u.has(s)||n++,u.set(s,c),c}}}return Ro},set(o,s,i){n>=t&&(r=e,e=new Map,n=0);let a=e.get(o);a||(a=new Map,e.set(o,a)),a.has(s)||n++,a.set(s,i)}}},yd=(t,e)=>{let r=null;return(n,o)=>{if(!Jy(o))return n;const s=o.class,i=o.className;if(s!=null&&s!==""&&typeof s!="string"||i!=null&&i!==""&&typeof i!="string")return t(e,n,s,i);r??(r=ew());const a=n??"",c=(typeof s=="string"?s:"")+"\0"+(typeof i=="string"?i:""),u=r.get(a,c);if(u!==Ro)return u;const f=t(e,n,s,i);return r.set(a,c,f),f}};function tw(){let t=null,e={},r=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(n){t=n},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(n){e=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){t=null,e={},r=!1}}}var Lt=tw(),rw=t=>{!pr(t.twMergeConfig)&&!Qv(t.twMergeConfig,Lt.cachedTwMergeConfig)&&(Lt.didTwMergeConfigChange=!0,Lt.cachedTwMergeConfig=t.twMergeConfig)},nw=(t,e)=>{const r=[];for(let n=0;n{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let r=0;r{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let r=0;r{const e={};for(let r=0;r{const{extend:r=null,slots:n={},variants:o={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:a={}}=t,c={...Xy,...e},u=t.slots!==void 0,f=r!=null&&r.base?il(r.base,t==null?void 0:t.base):t==null?void 0:t.base,v=r!=null&&r.variants&&!pr(r.variants)?bd(o,r.variants):o,h=r!=null&&r.defaultVariants&&!pr(r.defaultVariants)?{...r.defaultVariants,...a}:a;rw(c);const g=!(r!=null&&r.slots)||pr(r.slots),p=u?g&&(r!=null&&r.base)?il(t==null?void 0:t.base,r.base):typeof(t==null?void 0:t.base)=="string"||(t==null?void 0:t.base)==null?t.base:il(t.base):void 0,m=u?{base:p,...n}:{},y=g?m:Yy({...r==null?void 0:r.slots},pr(m)?{base:t==null?void 0:t.base}:m),w=!(r!=null&&r.compoundVariants)||pr(r.compoundVariants)?s:yu(r==null?void 0:r.compoundVariants,s),k=!(r!=null&&r.compoundSlots)||pr(r.compoundSlots)?i:yu(r==null?void 0:r.compoundSlots,i),O=Object.keys(v),S=w&&!Array.isArray(w)?new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof w}`):k&&!Array.isArray(k)?new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof k}`):null,P=u||!g?"slots":O.length===0?"plain":"variants";return{config:c,extend:r,base:f,variants:v,defaultVariants:h,slots:y,compoundVariants:w,compoundSlots:k,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:S,mode:P,slotKeys:null,variantKeys:O}},sg=t=>(t.compiledVariants!==null||(t.compiledVariants=nw(t.variants,t.variantKeys),t.compiledCompoundVariants=ow(t.compoundVariants),t.compiledCompoundSlots=sw(t.compoundSlots),t.compiledCompoundSlotsBySlot=iw(t.compiledCompoundSlots),t.slotKeys=t.slots&&typeof t.slots=="object"?Object.keys(t.slots):[]),t),wu=[],ig=[],lw=[],cw=[],uw=[],ag=(t,e,r)=>{const n={};for(const o in t)n[o]=t[o];if(e)for(const o in e)e[o]!==void 0&&(n[o]=e[o]);if(r)for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n},ja=t=>t==null||t===!1,dw=(t,e)=>{if(!Array.isArray(t))return t===e||ja(t)&&ja(e);for(let r=0;r{if(t.isEmpty)return null;const o=(n==null?void 0:n[t.key])??(r==null?void 0:r[t.key]);if(o===null)return null;const s=bu(o);if(typeof s=="object")return null;const i=e==null?void 0:e[t.key],a=s??bu(i);return t.values[a||"false"]},wd=(t,e)=>{const{conditionKeys:r,source:n}=t;for(let o=0;o{typeof r=="string"?e==="base"&&t.push(r):r&&typeof r=="object"&&r[e]&&t.push(r[e])},fw=(t,e,r)=>{const n=ig;n.length=0;for(let o=0;o{const s=ig;s.length=0;for(let i=0;i{const r=lw;r.length=0;for(let n=0;n{const n=cw;n.length=0;for(let o=0;o{const r=uw;r.length=0;for(let n=0;n{const{base:r,config:n}=t;let o=Ro;const s=yd(e,n);return(i=>(o===Ro&&(o=e(n,r)),s(o,i)))},bw=(t,e)=>{const{base:r,config:n,defaultVariants:o,deferredError:s,variantKeys:i}=t;let a=t.compiledCompoundVariants,c=t.compiledVariants,u=wu,f=null;const v=yd(e,n);let h=1;const g=p=>{const m=a.length>0?vw(a,ag(o,p)):void 0;return e(n,r,fw(c,o,p),m)};return(p=>{if(s)throw s;(c===null||a===null)&&(sg(t),c=t.compiledVariants,a=t.compiledCompoundVariants,u=t.compiledCompoundSlots??wu);let m;if(h>0)h--,m=g(p);else{f??(f=Qy());const y=rg(i,o,p);if(y!==null){const w=a.length>0||u.length>0?ng(a,u):"",k=y+"#"+w,O=f.get(k);O!==Ro?m=O:(m=g(p),f.set(k,m))}else m=g(p)}return v(m,p)})},yw=(t,e)=>{const{config:r,defaultVariants:n,deferredError:o,slots:s,variantKeys:i}=t;let a=null,c=null,u=null,f=null,v=!1,h=null,g=null,p=1;const m=()=>{if(u!==null)return;(t.compiledVariants===null||t.compiledCompoundVariants===null||t.compiledCompoundSlots===null||t.compiledCompoundSlotsBySlot===null||t.slotKeys===null)&&sg(t);const w=t.compiledVariants;a=t.compiledCompoundVariants,c=t.compiledCompoundSlots;const k=t.compiledCompoundSlotsBySlot;u=t.slotKeys,v=a.length>0||c.length>0,h=yd(e,r);const O=new Array(u.length);for(let S=0;S{const D=v?ag(n,N,x):void 0,G=D?gw(P,a,D):void 0,K=D?pw(T,D):void 0;return e(r,s[P],hw(P,w,n,N,x),G,K)}}f=O},y=w=>{const k=u,O=f,S=h,P={};for(let T=0;T{if(D==null)return x;let G=!1;for(const K in D)if(!(K==="class"||K==="className")&&D[K]!==void 0){G=!0;break}return S(G?N(w,D):x,D)}}return P};return(w=>{if(o)throw o;if(m(),p>0)return p--,y(w);const k=rg(i,n,w);if(k===null)return y(w);const O=v?ng(a,c):"",S=k+"#"+O;g??(g=og());const P=g.get(S);if(P!==Ro)return P;const T=y(w);return g.set(S,T),T})},ww=(t,e)=>{if(t.mode==="plain")return mw(t,e);let r;return(n=>(r??(r=t.mode==="slots"?yw(t,e):bw(t,e)),r(n)))},xw=(t,e)=>{t.variantKeys=e.variantKeys,t.extend=e.extend,t.base=e.base,t.slots=e.slots,t.variants=e.variants,t.defaultVariants=e.defaultVariants,t.compoundSlots=e.compoundSlots,t.compoundVariants=e.compoundVariants},_w=t=>{const e=(n,o)=>{const s=aw(n,o),i=ww(s,t);return xw(i,s),i};return{tv:e,createTV:n=>(o,s)=>e(o,s?bd(n,s):n)}},kw=(t,e)=>{const r=t.length,n=e.length,o=new Array(r+n);for(let s=0;s({classGroupId:t,validator:e}),cg=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),Al="-",zf=[],Pw="arbitrary..",Cw=t=>{const e=Ew(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{if(i[0]==="["&&i[i.length-1]==="]")return Aw(i);const a=i.split(Al),c=a[0]===""&&a.length>1?1:0;return ug(a,c,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=n[i],u=r[i];return c?u?kw(u,c):c:u||zf}return r[i]||zf}}},ug=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],s=r.nextPart.get(o);if(s){const u=ug(t,e+1,s);if(u)return u}const i=r.validators;if(i===null)return;const a=e===0?t.join(Al):t.slice(e).join(Al),c=i.length;for(let u=0;u{const e=t.slice(1,-1),r=e.indexOf(":");if(r===-1)return;const n=e.slice(0,r);return n?Pw+n:void 0},Ew=t=>{const{theme:e,classGroups:r}=t;return Tw(r,e)},Tw=(t,e)=>{const r=cg();for(const n in t){const o=t[n];xd(o,r,n,e)}return r},xd=(t,e,r,n)=>{const o=t.length;for(let s=0;s{if(typeof t=="string"){$w(t,e,r);return}if(typeof t=="function"){Mw(t,e,r,n);return}Iw(t,e,r,n)},$w=(t,e,r)=>{const n=t===""?e:dg(e,t);n.classGroupId=r},Mw=(t,e,r,n)=>{if(Nw(t)){xd(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(Sw(r,t))},Iw=(t,e,r,n)=>{const o=Object.entries(t),s=o.length;for(let i=0;i{let r=t;const n=e.split(Al),o=n.length;for(let s=0;s"isThemeGetter"in t&&t.isThemeGetter===!0,zw="!",Rw=58,Fw=47,Lw=91,Dw=93,Bw=40,Vw=41,Rf=33,Ww=(t,e,r,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:void 0}),Ff=t=>{const e=[];let r=0,n=0,o=0,s;const i=t.length;for(let h=0;ho?s-o:void 0;return Ww(e,u,c,v)},jw=t=>{const e=new Set(t.orderSensitiveModifiers);return r=>{const n=[];let o=[];for(let s=0;s0){o.sort();for(let u=0;u0){o.sort();for(let s=0;s{const e=jw(t),r=Uw(t),{getClassGroupId:n,getConflictingClassGroupIds:o}=Cw(t);let s=Object.create(null),i=Object.create(null),a=0,c=new Int32Array(256),u=0,f=new Uint8Array(64),v=!1;const h=O=>{const S=[],P=O.length;let T=-1;v=!1;for(let N=0;N=9&&x<=13?(v=!0,T!==-1&&(S.push(O.slice(T,N)),T=-1)):T===-1&&(T=N)}return T!==-1&&S.push(O.slice(T)),S},g=new Map;let p=0;const m=O=>{let S=g.get(O);if(S===void 0&&(S=p++,g.set(O,S),S>=c.length)){const P=new Int32Array(c.length*2);P.set(c),c=P}return S},y=O=>{const{isExternal:S,modifiers:P,hasImportantModifier:T,baseClassName:N,maybePostfixModifierPosition:x}=Ff(O);if(S)return Rc;let D=!!x,G;if(D){const z=N.substring(0,x);G=n(z);const F=G&&r[G]?n(N):void 0;F&&F!==G&&(G=F,D=!1)}else G=n(N);if(!G){if(!D||(G=n(N),!G))return Rc;D=!1}const K=P.length===0?"":P.length===1?P[0]:e(P).join(":"),L=T?K+zw:K,U=o(G,D),Z=[];for(let z=0;z{let S=s[O];return S!==void 0||(S=i[O],S===void 0&&(S=y(O)),s[O]=S,++a>Gw&&(a=0,i=s,s=Object.create(null))),S};return{parseClassName:Ff,sortModifiers:e,postfixLookupClassGroupIds:r,getClassGroupId:n,getConflictingClassGroupIds:o,getClassDescriptor:w,mergeClassList:O=>{const S=h(O),P=S.length;if(P===1)return S[0];p>Hw&&(g.clear(),p=0,s=Object.create(null),i=Object.create(null),a=0),u=u+1|0,u===0&&(u=1);const T=u;if(P>f.length){let G=f.length;for(;G=0;G-=1){const K=S[G];x+=K.length;const L=w(K);if(L.isExternal){f[G]=1;continue}const U=L.classId;if(c[U]===T){f[G]=0,N=!0;continue}c[U]=T;const Z=L.conflictIds;for(let z=0;z{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n{let e,r,n=Object.create(null),o=Object.create(null),s=0;const i=u=>(e=Kw(t()),r=e.mergeClassList,c.mergeString=a,a(u)),a=u=>{let f=n[u];return f!==void 0||(f=o[u],f===void 0&&(f=r(u)),n[u]=f,++s>qw&&(s=0,o=n,n=Object.create(null))),f},c=(...u)=>c.mergeString(bc(u));return c.mergeString=i,c},Yw=[],bt=t=>{const e=r=>r[t]||Yw;return e.isThemeGetter=!0,e},fg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Zw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vg=Number,rx=Number.isNaN,nx=Number.isInteger,In=t=>Xw.test(t),Ve=t=>!!t&&!rx(vg(t)),Ir=t=>!!t&&nx(vg(t)),Fc=t=>t.endsWith("%")&&Ve(t.slice(0,-1)),tn=t=>Zw.test(t),gg=()=>!0,ox=t=>Jw.test(t)&&!Qw.test(t),_d=()=>!1,sx=t=>ex.test(t),ix=t=>tx.test(t),ax=t=>!ye(t)&&!_e(t),lx=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),cx=t=>so(t,bg,_d),ye=t=>fg.test(t),lo=t=>so(t,yg,ox),Df=t=>so(t,mx,Ve),ux=t=>so(t,xg,gg),dx=t=>so(t,wg,_d),Bf=t=>so(t,pg,_d),fx=t=>so(t,mg,ix),Ga=t=>so(t,_g,sx),_e=t=>hg.test(t),Ys=t=>Go(t,yg),hx=t=>Go(t,wg),Vf=t=>Go(t,pg),vx=t=>Go(t,bg),gx=t=>Go(t,mg),Ha=t=>Go(t,_g,!0),px=t=>Go(t,xg,!0),so=(t,e,r)=>{const n=fg.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Go=(t,e,r=!1)=>{const n=hg.exec(t);return n?n[1]?e(n[1]):r:!1},pg=t=>t==="position"||t==="percentage",mg=t=>t==="image"||t==="url",bg=t=>t==="length"||t==="size"||t==="bg-size",yg=t=>t==="length",mx=t=>t==="number",wg=t=>t==="family-name",xg=t=>t==="number"||t==="weight",_g=t=>t==="shadow",Lc=()=>{const t=bt("color"),e=bt("font"),r=bt("text"),n=bt("font-weight"),o=bt("tracking"),s=bt("leading"),i=bt("breakpoint"),a=bt("container"),c=bt("spacing"),u=bt("radius"),f=bt("shadow"),v=bt("inset-shadow"),h=bt("text-shadow"),g=bt("drop-shadow"),p=bt("blur"),m=bt("perspective"),y=bt("aspect"),w=bt("ease"),k=bt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...S(),_e,ye],T=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],x=()=>[_e,ye,c],D=()=>[In,"full","auto",...x()],G=()=>[Ir,"none","subgrid",_e,ye],K=()=>["auto",{span:["full",Ir,_e,ye]},Ir,_e,ye],L=()=>[Ir,"auto",_e,ye],U=()=>["auto","min","max","fr",_e,ye],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...x()],fe=()=>[In,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],de=()=>[In,"screen","full","dvw","lvw","svw","min","max","fit",...x()],ce=()=>[In,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],A=()=>[t,_e,ye],we=()=>[...S(),Vf,Bf,{position:[_e,ye]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",vx,cx,{size:[_e,ye]}],re=()=>[Fc,Ys,lo],H=()=>["","none","full",u,_e,ye],ne=()=>["",Ve,Ys,lo],X=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Ve,Fc,Vf,Bf],Q=()=>["","none",p,_e,ye],se=()=>["none",Ve,_e,ye],ee=()=>["none",Ve,_e,ye],Oe=()=>[Ve,_e,ye],V=()=>[In,"full",...x()];return{theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[tn],breakpoint:[tn],color:[gg],container:[tn],"drop-shadow":[tn],ease:["in","out","in-out"],font:[ax],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[tn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[tn],shadow:[tn],spacing:["px",Ve],text:[tn],"text-shadow":[tn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",In,ye,_e,y]}],container:["container"],"container-type":[{"@container":["","normal","size",_e,ye]}],"container-named":[lx],columns:[{columns:[Ve,ye,_e,a]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Ir,"auto",_e,ye]}],basis:[{basis:[In,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ve,In,"auto","initial","none",ye]}],grow:[{grow:["",Ve,_e,ye]}],shrink:[{shrink:["",Ve,_e,ye]}],order:[{order:[Ir,"first","last","none",_e,ye]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[a,"screen",...fe()]}],"min-w":[{"min-w":[a,"screen","none",...fe()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...fe()]}],h:[{h:["screen","lh",...fe()]}],"min-h":[{"min-h":["screen","lh","none",...fe()]}],"max-h":[{"max-h":["screen","lh",...fe()]}],"font-size":[{text:["base",r,Ys,lo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,px,ux]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fc,ye]}],"font-family":[{font:[hx,dx,e]}],"font-features":[{"font-features":[ye]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,_e,ye]}],"line-clamp":[{"line-clamp":[Ve,"none",_e,Df]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",_e,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_e,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ve,"from-font","auto",_e,lo]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Ve,"auto",_e,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[Ir,_e,ye]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_e,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ir,_e,ye],radial:["",_e,ye],conic:[Ir,_e,ye]},gx,fx]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ve,_e,ye]}],"outline-w":[{outline:["",Ve,Ys,lo]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",f,Ha,Ga]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",v,Ha,Ga]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Ve,lo]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",h,Ha,Ga]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Ve,_e,ye]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[_e,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_e,ye]}],filter:[{filter:["","none",_e,ye]}],blur:[{blur:Q()}],brightness:[{brightness:[Ve,_e,ye]}],contrast:[{contrast:[Ve,_e,ye]}],"drop-shadow":[{"drop-shadow":["","none",g,Ha,Ga]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Ve,_e,ye]}],"hue-rotate":[{"hue-rotate":[Ve,_e,ye]}],invert:[{invert:["",Ve,_e,ye]}],saturate:[{saturate:[Ve,_e,ye]}],sepia:[{sepia:["",Ve,_e,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",_e,ye]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[Ve,_e,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Ve,_e,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ve,_e,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ve,_e,ye]}],"backdrop-invert":[{"backdrop-invert":["",Ve,_e,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Ve,_e,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Ve,_e,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Ve,_e,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_e,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ve,"initial",_e,ye]}],ease:[{ease:["linear","initial",w,_e,ye]}],delay:[{delay:[Ve,_e,ye]}],animate:[{animate:["none",k,_e,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,_e,ye]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[_e,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],zoom:[{zoom:[Ir,_e,ye]}],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_e,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_e,ye]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Ve,Ys,lo,Df]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bx=(t,{extend:e={},override:r={}})=>(Ka(t.theme,r.theme),Ka(t.classGroups,r.classGroups),Ka(t.conflictingClassGroups,r.conflictingClassGroups),Ka(t.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),xu(t,"postfixLookupClassGroups",r.postfixLookupClassGroups),xu(t,"orderSensitiveModifiers",r.orderSensitiveModifiers),Ua(t.theme,e.theme),Ua(t.classGroups,e.classGroups),Ua(t.conflictingClassGroups,e.conflictingClassGroups),Ua(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),_u(t,e,"postfixLookupClassGroups"),_u(t,e,"orderSensitiveModifiers"),t),xu=(t,e,r)=>{r!==void 0&&(t[e]=r)},Ka=(t,e)=>{if(e)for(const r in e)xu(t,r,e[r])},Ua=(t,e)=>{if(e)for(const r in e)_u(t,e,r)},_u=(t,e,r)=>{const n=e[r];n!==void 0&&(t[r]=t[r]?t[r].concat(n):n)},kg=t=>Lf(t?typeof t=="function"?()=>t(Lc()):()=>bx(Lc(),t):Lc),yx=t=>{if(pr(t))return;const e=t,r={...e.extend??{}};for(const o of["theme","classGroups","conflictingClassGroups","conflictingClassGroupModifiers","postfixLookupClassGroups","orderSensitiveModifiers","cacheSize","prefix","separator","experimentalParseClassName"])e[o]!==void 0&&r[o]===void 0&&(r[o]=e[o]);const n={};if(Object.keys(r).length>0&&(n.extend=r),e.override!=null&&!pr(e.override)&&(n.override=e.override),!(!n.extend&&!n.override))return n},wx=t=>{const e=yx(t),r=kg(e);return n=>r.mergeString(n)},al,xx=()=>(al||(al=kg()),al),_x=()=>((!Lt.cachedTwMerge||Lt.didTwMergeConfigChange)&&(Lt.didTwMergeConfigChange=!1,Lt.cachedTwMerge=wx(Lt.cachedTwMergeConfig)),Lt.cachedTwMerge),kx=t=>{const e=t==null?void 0:t.twMergeConfig;!e||pr(e)||Qv(e,Lt.cachedTwMergeConfig)||(Lt.cachedTwMergeConfig=e,Lt.didTwMergeConfigChange=!0)},Sx=t=>bc(t),Px=Lt.reset.bind(Lt);Lt.reset=()=>{al=void 0,Px()};var Cx=(t,e)=>{const r=Sx(t);return!r||!((e==null?void 0:e.twMerge)??!0)?r||void 0:r.indexOf(" ")===-1?r:(kx(e),(!!(e!=null&&e.twMergeConfig&&!pr(e.twMergeConfig))?_x():xx().mergeString)(r)||void 0)},Ax=(t,...e)=>Cx(e,t),Ex=_w(Ax),kd=Ex.tv;const Tx=kd({base:"grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full",variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});var Ox=new Set(["$$slots","$$events","$$legacy","ref","class","variant","children"]),$x=le("
");function Sd(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=M(e,"variant",3,"default"),o=Ge(e,Ox);var s=$x();Ke(s,a=>({"data-slot":"alert",role:"alert",class:a,...o}),[()=>He(Tx({variant:n()}),e.class)]);var i=B(s);Fe(i,()=>e.children??ze),at(s,a=>r(a),()=>r()),b(t,s),Ie()}var Mx=new Set(["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]),Wf=le("");function Pd(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=M(e,"value",15),o=M(e,"files",15),s=M(e,"data-slot",3,"input"),i=Ge(e,Mx);var a=te(),c=E(a);{var u=v=>{var h=Wf();Ke(h,g=>({"data-slot":s(),class:g,type:"file",...i}),[()=>He("h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e.class)],void 0,void 0,void 0,!0),at(h,g=>r(g),()=>r()),Ib(h,o),gu(h,n),b(v,h)},f=v=>{var h=Wf();Ke(h,g=>({"data-slot":s(),class:g,type:e.type,...i}),[()=>He("h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e.class)],void 0,void 0,void 0,!0),at(h,g=>r(g),()=>r()),gu(h,n),b(v,h)};Le(c,v=>{e.type==="file"?v(u):v(f,-1)})}b(t,a),Ie()}function Ix(t){return typeof t=="function"}function Na(t){return t!==null&&typeof t=="object"}const Nx=["string","number","bigint","boolean"];function ku(t){return t==null||Nx.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>ku(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const Rs=Symbol("box"),yc=Symbol("is-writable");function ge(t,e){const r=W(t);return e?{[Rs]:!0,[yc]:!0,get current(){return d(r)},set current(n){e(n)}}:{[Rs]:!0,get current(){return t()}}}function za(t){return Na(t)&&Rs in t}function Cd(t){return za(t)&&yc in t}function Sg(t){return za(t)?t:Ix(t)?ge(t):Wr(t)}function zx(t){return Object.entries(t).reduce((e,[r,n])=>za(n)?(Cd(n)?Object.defineProperty(e,r,{get(){return n.current},set(o){n.current=o}}):Object.defineProperty(e,r,{get(){return n.current}}),e):Object.assign(e,{[r]:n}),{})}function Rx(t){return Cd(t)?{[Rs]:!0,get current(){return t.current}}:t}function Wr(t){let e=Ae(Zt(t));return{[Rs]:!0,[yc]:!0,get current(){return d(e)},set current(r){R(e,r,!0)}}}function Ho(t){let e=Ae(Zt(t));return{[Rs]:!0,[yc]:!0,get current(){return d(e)},set current(r){R(e,r,!0)}}}Ho.from=Sg;Ho.with=ge;Ho.flatten=zx;Ho.readonly=Rx;Ho.isBox=za;Ho.isWritableBox=Cd;function Pg(...t){return function(e){var r;for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):(r=n.current)==null||r.call(this,e)}}}var jf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fx=/\n/g,Lx=/^\s*/,Dx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Bx=/^:\s*/,Vx=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Wx=/^[;\s]*/,jx=/^\s+|\s+$/g,Gx=` -`,Gf="/",Hf="*",go="",Hx="comment",Kx="declaration";function Ux(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var r=1,n=1;function o(p){var m=p.match(Fx);m&&(r+=m.length);var y=p.lastIndexOf(Gx);n=~y?p.length-y:n+p.length}function s(){var p={line:r,column:n};return function(m){return m.position=new i(p),u(),m}}function i(p){this.start=p,this.end={line:r,column:n},this.source=e.source}i.prototype.content=t;function a(p){var m=new Error(e.source+":"+r+":"+n+": "+p);if(m.reason=p,m.filename=e.source,m.line=r,m.column=n,m.source=t,!e.silent)throw m}function c(p){var m=p.exec(t);if(m){var y=m[0];return o(y),t=t.slice(y.length),m}}function u(){c(Lx)}function f(p){var m;for(p=p||[];m=v();)m!==!1&&p.push(m);return p}function v(){var p=s();if(!(Gf!=t.charAt(0)||Hf!=t.charAt(1))){for(var m=2;go!=t.charAt(m)&&(Hf!=t.charAt(m)||Gf!=t.charAt(m+1));)++m;if(m+=2,go===t.charAt(m-1))return a("End of comment missing");var y=t.slice(2,m-2);return n+=2,o(y),t=t.slice(m),n+=2,p({type:Hx,comment:y})}}function h(){var p=s(),m=c(Dx);if(m){if(v(),!c(Bx))return a("property missing ':'");var y=c(Vx),w=p({type:Kx,property:Kf(m[0].replace(jf,go)),value:y?Kf(y[0].replace(jf,go)):go});return c(Wx),w}}function g(){var p=[];f(p);for(var m;m=h();)m!==!1&&(p.push(m),f(p));return p}return u(),g()}function Kf(t){return t?t.replace(jx,go):go}function qx(t,e){let r=null;if(!t||typeof t!="string")return r;const n=Ux(t),o=typeof e=="function";return n.forEach(s=>{if(s.type!=="declaration")return;const{property:i,value:a}=s;o?e(i,a,s):a&&(r=r||{},r[i]=a)}),r}const Yx=/\d/,Xx=["-","_","/","."];function Zx(t=""){if(!Yx.test(t))return t!==t.toLowerCase()}function Jx(t){const e=[];let r="",n,o;for(const s of t){const i=Xx.includes(s);if(i===!0){e.push(r),r="",n=void 0;continue}const a=Zx(s);if(o===!1){if(n===!1&&a===!0){e.push(r),r=s,n=a;continue}if(n===!0&&a===!1&&r.length>1){const c=r.at(-1);e.push(r.slice(0,Math.max(0,r.length-1))),r=c+s,n=a;continue}}r+=s,n=a,o=i}return e.push(r),e}function Cg(t){return t?Jx(t).map(e=>e_(e)).join(""):""}function Qx(t){return t_(Cg(t||""))}function e_(t){return t?t[0].toUpperCase()+t.slice(1):""}function t_(t){return t?t[0].toLowerCase()+t.slice(1):""}function si(t){if(!t)return{};const e={};function r(n,o){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){e[Cg(n)]=o;return}if(n.startsWith("--")){e[n]=o;return}e[Qx(n)]=o}return qx(t,r),e}function ss(...t){return(...e)=>{for(const r of t)typeof r=="function"&&r(...e)}}function r_(t,e){const r=RegExp(t,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,e):n}}const n_=r_(/[A-Z]/,t=>`-${t.toLowerCase()}`);function o_(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${n_(e)}: ${t[e]};`).join(` -`)}function Ag(t={}){return o_(t).replace(` -`," ")}const s_=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],i_=new Set(s_);function a_(t){return i_.has(t)}function Ur(...t){const e={...t[0]};for(let r=1;ru.has(h)));f&&Dr(c)}return a}delete(r){var n=l(this,Rr),o=n.get(r),s=super.delete(r);return o!==void 0&&(n.delete(r),R(o,-1)),s&&(R(l(this,ln),super.size),Dr(l(this,Fr))),s}clear(){if(super.size!==0){super.clear();var r=l(this,Rr);R(l(this,ln),0);for(var n of r.values())R(n,-1);Dr(l(this,Fr)),r.clear()}}keys(){return d(l(this,Fr)),super.keys()}values(){return j(this,Tr,ll).call(this),super.values()}entries(){return j(this,Tr,ll).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return d(l(this,ln)),super.size}};Rr=new WeakMap,Fr=new WeakMap,ln=new WeakMap,Wl=new WeakMap,Tr=new WeakSet,ii=function(r){return _n===l(this,Wl)?Ae(r):Pn(r)},ll=function(){d(l(this,Fr));var r=l(this,Rr);if(l(this,ln).v!==r.size){for(var n of af(Hd.prototype,this,"keys").call(this))if(!r.has(n)){var o=j(this,Tr,ii).call(this,0);r.set(n,o)}}for([,o]of l(this,Rr))d(o)};let Su=Hd;var vs,Si;class c_{constructor(e={}){_(this,vs);_(this,Si);const{window:r=Eg,document:n=r==null?void 0:r.document}=e;r!==void 0&&(I(this,vs,n),I(this,Si,od(o=>{const s=Nt(r,"focusin",o),i=Nt(r,"focusout",o);return()=>{s(),i()}})))}get current(){var e;return(e=l(this,Si))==null||e.call(this),l(this,vs)?l_(l(this,vs)):null}}vs=new WeakMap,Si=new WeakMap;new c_;function u_(t){return typeof t=="function"}var Pi,cn;class Ko{constructor(e){_(this,Pi);_(this,cn);I(this,Pi,e),I(this,cn,Symbol(e))}get key(){return l(this,cn)}exists(){return km(l(this,cn))}get(){const e=cf(l(this,cn));if(e===void 0)throw new Error(`Context "${l(this,Pi)}" not found`);return e}getOr(e){const r=cf(l(this,cn));return r===void 0?e:r}set(e){return _m(l(this,cn),e)}}Pi=new WeakMap,cn=new WeakMap;function d_(t,e){switch(t){case"post":it(e);break;case"pre":dv(e);break}}function Tg(t,e,r,n={}){const{lazy:o=!1}=n;let s=!o,i=Array.isArray(t)?[]:void 0;d_(e,()=>{const a=Array.isArray(t)?t.map(u=>u()):t();if(!s){s=!0,i=a;return}const c=_r(()=>r(a,i));return i=a,c})}function ar(t,e,r){Tg(t,"post",e,r)}function f_(t,e,r){Tg(t,"pre",e,r)}ar.pre=f_;function Uf(t){return u_(t)?t():t}var Dn,gs,ps,ms,Bn,jl,Gl,bs;class h_{constructor(e,r={box:"border-box"}){_(this,Dn,{width:0,height:0});_(this,gs,!1);_(this,ps);_(this,ms);_(this,Bn);_(this,jl,W(()=>{var e;return(e=d(l(this,bs)))==null||e(),this.getSize().width}));_(this,Gl,W(()=>{var e;return(e=d(l(this,bs)))==null||e(),this.getSize().height}));_(this,bs,W(()=>{const e=Uf(l(this,ms));if(e)return od(r=>{if(!l(this,Bn))return;const n=new(l(this,Bn)).ResizeObserver(o=>{I(this,gs,!0);for(const s of o){const i=l(this,ps).box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];l(this,Dn).width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),l(this,Dn).height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}r()});return n.observe(e),()=>{I(this,gs,!1),n.disconnect()}})}));I(this,Bn,r.window??Eg),I(this,ps,r),I(this,ms,e),I(this,Dn,{width:0,height:0})}calculateSize(){const e=Uf(l(this,ms));if(!e||!l(this,Bn))return;const r=e.offsetWidth,n=e.offsetHeight;if(l(this,ps).box==="border-box")return{width:r,height:n};const o=l(this,Bn).getComputedStyle(e),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),u=r-s-a,f=n-i-c;return{width:u,height:f}}getSize(){return l(this,gs)?l(this,Dn):this.calculateSize()??l(this,Dn)}get current(){var e;return(e=d(l(this,bs)))==null||e(),this.getSize()}get width(){return d(l(this,jl))}get height(){return d(l(this,Gl))}}Dn=new WeakMap,gs=new WeakMap,ps=new WeakMap,ms=new WeakMap,Bn=new WeakMap,jl=new WeakMap,Gl=new WeakMap,bs=new WeakMap;function Uo(t){it(()=>()=>{t()})}function v_(t,e){return setTimeout(e,t)}function Br(t){kv().then(t)}const g_=1,p_=9,m_=11;function Pu(t){return Na(t)&&t.nodeType===g_&&typeof t.nodeName=="string"}function Og(t){return Na(t)&&t.nodeType===p_}function b_(t){var e;return Na(t)&&((e=t.constructor)==null?void 0:e.name)==="VisualViewport"}function y_(t){return Na(t)&&t.nodeType!==void 0}function $g(t){return y_(t)&&t.nodeType===m_&&"host"in t}function w_(t,e){var n;if(!t||!e||!Pu(t)||!Pu(e))return!1;const r=(n=e.getRootNode)==null?void 0:n.call(e);if(t===e||t.contains(e))return!0;if(r&&$g(r)){let o=e;for(;o;){if(t===o)return!0;o=o.parentNode||o.host}}return!1}function Ra(t){return Og(t)?t:b_(t)?t.document:(t==null?void 0:t.ownerDocument)??document}function Mg(t){var e;return $g(t)?Mg(t.host):Og(t)?t.defaultView??window:Pu(t)?((e=t.ownerDocument)==null?void 0:e.defaultView)??window:window}function x_(t){let e=t.activeElement;for(;e!=null&&e.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}var Ci;class Ad{constructor(e){ae(this,"element");_(this,Ci,W(()=>this.element.current?this.element.current.getRootNode()??document:document));ae(this,"getDocument",()=>Ra(this.root));ae(this,"getWindow",()=>this.getDocument().defaultView??window);ae(this,"getActiveElement",()=>x_(this.root));ae(this,"isActiveElement",e=>e===this.getActiveElement());ae(this,"querySelector",e=>this.root?this.root.querySelector(e):null);ae(this,"querySelectorAll",e=>this.root?this.root.querySelectorAll(e):[]);ae(this,"setTimeout",(e,r)=>this.getWindow().setTimeout(e,r));ae(this,"clearTimeout",e=>this.getWindow().clearTimeout(e));typeof e=="function"?this.element=ge(e):this.element=e}get root(){return d(l(this,Ci))}set root(e){R(l(this,Ci),e)}getElementById(e){return this.root.getElementById(e)}}Ci=new WeakMap;function Zn(t,e){return{[nb()]:r=>za(t)?(t.current=r,_r(()=>e==null?void 0:e(r)),()=>{"isConnected"in r&&r.isConnected||(t.current=null,e==null||e(null))}):(t(r),_r(()=>e==null?void 0:e(r)),()=>{"isConnected"in r&&r.isConnected||(t(null),e==null||e(null))})}}function Ig(t){return t?"true":"false"}function Ng(t){return t?"":void 0}function zg(t){return t?"open":"closed"}function __(t){return t==="starting"?{"data-starting-style":""}:t==="ending"?{"data-ending-style":""}:{}}var ys,Ai;class k_{constructor(e){_(this,ys);_(this,Ai);ae(this,"attrs");I(this,ys,e.getVariant?e.getVariant():null),I(this,Ai,l(this,ys)?`data-${l(this,ys)}-`:`data-${e.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(r=>[r,this.getAttr(r)]))}getAttr(e,r){return r?`data-${r}-${e}`:`${l(this,Ai)}${e}`}selector(e,r){return`[${this.getAttr(e,r)}]`}}ys=new WeakMap,Ai=new WeakMap;function Rg(t){const e=new k_(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}const pi="ArrowDown",Ed="ArrowLeft",Td="ArrowRight",El="ArrowUp",Fg="End",Lg="Enter",S_="Escape",Dg="Home",P_="PageDown",C_="PageUp",Od=" ",A_="Tab";function E_(t){return window.getComputedStyle(t).getPropertyValue("direction")}function T_(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?Ed:Td,vertical:pi}[e]}function O_(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?Td:Ed,vertical:El}[e]}function $_(t="ltr",e="horizontal"){return["ltr","rtl"].includes(t)||(t="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:T_(t,e),prevKey:O_(t,e)}}const Bg=typeof document<"u",qf=M_();function M_(){var t,e;return Bg&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Qn(t){return t instanceof HTMLElement}function hi(t){return t instanceof Element}function Vg(t){return t instanceof Element||t instanceof SVGElement}function I_(t){return t!==null}function N_(t){return t instanceof HTMLInputElement&&"select"in t}var $t,un;class z_{constructor(e){_(this,$t);_(this,un,Ho(null));I(this,$t,e)}getCandidateNodes(){return l(this,$t).rootNode.current?l(this,$t).candidateSelector?Array.from(l(this,$t).rootNode.current.querySelectorAll(l(this,$t).candidateSelector)):l(this,$t).candidateAttr?Array.from(l(this,$t).rootNode.current.querySelectorAll(`[${l(this,$t).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){var r;const e=this.getCandidateNodes();e.length&&((r=e[0])==null||r.focus())}handleKeydown(e,r,n=!1){var p,m;const o=l(this,$t).rootNode.current;if(!o||!e)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(e),a=E_(o),{nextKey:c,prevKey:u}=$_(a,l(this,$t).orientation.current),f=l(this,$t).loop.current,v={[c]:i+1,[u]:i-1,[Dg]:0,[Fg]:s.length-1};if(n){const y=c===pi?Td:pi,w=u===El?Ed:El;v[y]=i+1,v[w]=i-1}let h=v[r.key];if(h===void 0)return;r.preventDefault(),h<0&&f?h=s.length-1:h===s.length&&f&&(h=0);const g=s[h];if(g)return g.focus(),l(this,un).current=g.id,(m=(p=l(this,$t)).onCandidateFocus)==null||m.call(p,g),g}getTabIndex(e){const r=this.getCandidateNodes(),n=l(this,un).current!==null;return e&&!n&&r[0]===e?(l(this,un).current=e.id,0):(e==null?void 0:e.id)===l(this,un).current?0:-1}setCurrentTabStopId(e){l(this,un).current=e}focusCurrentTabStop(){var n;const e=l(this,un).current;if(!e)return;const r=(n=l(this,$t).rootNode.current)==null?void 0:n.querySelector(`#${e}`);!r||!Qn(r)||r.focus()}}$t=new WeakMap,un=new WeakMap;var So,Lr,dn,fn,ro,Cu,Au;class R_{constructor(e){_(this,ro);_(this,So);_(this,Lr,null);_(this,dn,null);_(this,fn,0);I(this,So,e),Uo(()=>j(this,ro,Cu).call(this))}run(e){j(this,ro,Cu).call(this);const r=l(this,So).ref.current;if(!r)return;if(typeof r.getAnimations!="function"){j(this,ro,Au).call(this,e);return}const n=l(this,fn),o=()=>{n===l(this,fn)&&j(this,ro,Au).call(this,e)},s=()=>{if(n!==l(this,fn))return;const a=r.getAnimations();if(a.length===0){o();return}Promise.all(a.map(c=>c.finished)).then(()=>{o()}).catch(()=>{if(n!==l(this,fn))return;if(r.getAnimations().some(f=>f.pending||f.playState!=="finished")){s();return}o()})},i=()=>{I(this,Lr,window.requestAnimationFrame(()=>{I(this,Lr,null),s()}))};if(!l(this,So).afterTick.current){i();return}I(this,Lr,window.requestAnimationFrame(()=>{I(this,Lr,null);const a="data-starting-style";if(!r.hasAttribute(a)){i();return}I(this,dn,new MutationObserver(()=>{var c;n===l(this,fn)&&(r.hasAttribute(a)||((c=l(this,dn))==null||c.disconnect(),I(this,dn,null),i()))})),l(this,dn).observe(r,{attributes:!0,attributeFilter:[a]})}))}}So=new WeakMap,Lr=new WeakMap,dn=new WeakMap,fn=new WeakMap,ro=new WeakSet,Cu=function(){var e;l(this,Lr)!==null&&(window.cancelAnimationFrame(l(this,Lr)),I(this,Lr,null)),(e=l(this,dn))==null||e.disconnect(),I(this,dn,null),sf(this,fn)._++},Au=function(e){const r=()=>{e()};l(this,So).afterTick?Br(r):r()};var Gt,Ei,Ti,hn,vn,Oi,Vn,$i,Eu;class F_{constructor(e){_(this,$i);_(this,Gt);_(this,Ei);_(this,Ti);_(this,hn,Ae(!1));_(this,vn,Ae(void 0));_(this,Oi,!1);_(this,Vn,null);I(this,Gt,e),R(l(this,hn),e.open.current,!0),I(this,Ei,e.enabled??!0),I(this,Ti,new R_({ref:l(this,Gt).ref,afterTick:l(this,Gt).open})),Uo(()=>j(this,$i,Eu).call(this)),ar(()=>l(this,Gt).open.current,r=>{var n,o,s,i,a,c;if(!l(this,Oi)){I(this,Oi,!0);return}if(j(this,$i,Eu).call(this),!r&&((o=(n=l(this,Gt)).shouldSkipExitAnimation)!=null&&o.call(n))){R(l(this,hn),!1),R(l(this,vn),void 0),(i=(s=l(this,Gt)).onComplete)==null||i.call(s);return}if(r&&R(l(this,hn),!0),R(l(this,vn),r?"starting":"ending",!0),r&&I(this,Vn,window.requestAnimationFrame(()=>{I(this,Vn,null),l(this,Gt).open.current&&R(l(this,vn),void 0)})),!l(this,Ei)){r||R(l(this,hn),!1),R(l(this,vn),void 0),(c=(a=l(this,Gt)).onComplete)==null||c.call(a);return}l(this,Ti).run(()=>{var u,f;r===l(this,Gt).open.current&&(l(this,Gt).open.current||R(l(this,hn),!1),R(l(this,vn),void 0),(f=(u=l(this,Gt)).onComplete)==null||f.call(u))})})}get shouldRender(){return d(l(this,hn))}get transitionStatus(){return d(l(this,vn))}}Gt=new WeakMap,Ei=new WeakMap,Ti=new WeakMap,hn=new WeakMap,vn=new WeakMap,Oi=new WeakMap,Vn=new WeakMap,$i=new WeakSet,Eu=function(){l(this,Vn)!==null&&(window.cancelAnimationFrame(l(this,Vn)),I(this,Vn,null))};function ht(){}function Fa(t,e){return`bits-${t}`}function L_(t,e){var r=te(),n=E(r);Ov(n,()=>e.children,o=>{var s=te(),i=E(s);Fe(i,()=>e.children??ze),b(o,s)}),b(t,r)}const D_=new Ko("BitsConfig");function B_(){const t=new V_(null,{});return D_.getOr(t).opts}class V_{constructor(e,r){ae(this,"opts");const n=W_(e,r);this.opts={defaultPortalTo:n(o=>o.defaultPortalTo),defaultLocale:n(o=>o.defaultLocale)}}}function W_(t,e){return r=>ge(()=>{var s,i;const o=(s=r(e))==null?void 0:s.current;if(o!==void 0)return o;if(t!==null)return(i=r(t.opts))==null?void 0:i.current})}function j_(t,e){return r=>{const n=B_();return ge(()=>{const o=r();if(o!==void 0)return o;const s=t(n).current;return s!==void 0?s:e})}}const G_=j_(t=>t.defaultPortalTo,"body");function H_(t,e){Me(e,!0);const r=G_(()=>e.to),n=Sm();let o=W(s);function s(){if(!Bg||e.disabled)return null;let v=null;return typeof r.current=="string"?v=document.querySelector(r.current):v=r.current,v}let i;function a(){i&&(vb(i),i=null)}ar([()=>d(o),()=>e.disabled],([v,h])=>{if(!v||h){a();return}return i=Tv(L_,{target:v,props:{children:e.children},context:n}),()=>{a()}});var c=te(),u=E(c);{var f=v=>{var h=te(),g=E(h);Fe(g,()=>e.children??ze),b(v,h)};Le(u,v=>{e.disabled&&v(f)})}b(t,c),Ie()}class K_{constructor(e,r={bubbles:!0,cancelable:!0}){ae(this,"eventName");ae(this,"options");this.eventName=e,this.options=r}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,r){const n=this.createEvent(r);return e.dispatchEvent(n),n}listen(e,r,n){const o=s=>{r(s)};return Nt(e,this.eventName,o,n)}}function Yf(t,e=500){let r=null;const n=(...o)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...o)},e)};return n.destroy=()=>{r!==null&&(clearTimeout(r),r=null)},n}function Wg(t,e){return t===e||t.contains(e)}function jg(t){return(t==null?void 0:t.ownerDocument)??document}function U_(t,e){const{clientX:r,clientY:n}=t,o=e.getBoundingClientRect();return ro.right||no.bottom}const q_=[Lg,Od],Y_=[pi,C_,Dg],Gg=[El,P_,Fg],X_=[...Y_,...Gg];function rn(t){return t.pointerType==="mouse"}function Z_(t,{select:e=!1}={}){if(!t||!t.focus)return;const r=Ra(t);if(r.activeElement===t)return;const n=r.activeElement;t.focus({preventScroll:!0}),t!==n&&N_(t)&&e&&t.select()}function J_(t,{select:e=!1}={},r){const n=r();for(const o of t)if(Z_(o,{select:e}),r()!==n)return!0}let Xs=Ae(!1);const cr=class cr{constructor(){it(()=>(cr._refs===0&&(cr._cleanup=fv(()=>{const e=[],r=o=>{R(Xs,!1)},n=o=>{R(Xs,!0)};return e.push(Nt(document,"pointerdown",r,{capture:!0}),Nt(document,"pointermove",r,{capture:!0}),Nt(document,"keydown",n,{capture:!0})),ss(...e)})),cr._refs++,()=>{var e;cr._refs--,cr._refs===0&&(R(Xs,!1),(e=cr._cleanup)==null||e.call(cr))}))}get current(){return d(Xs)}set current(e){R(Xs,e,!0)}};ae(cr,"_refs",0),ae(cr,"_cleanup");let Tu=cr;/*! -* tabbable 6.5.0 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var Hg=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Tl=Hg.join(","),Kg=typeof Element>"u",Fo=Kg?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ol=!Kg&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},$l=function(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),s=o===""||o==="true",i=s||r&&e&&(typeof e.closest=="function"?e.closest("[inert]"):$l(e.parentNode));return i},Q_=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},Ug=function(e,r,n){if($l(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Tl));return r&&Fo.call(e,Tl)&&o.unshift(e),o=o.filter(n),o},Ml=function(e,r,n){for(var o=[],s=Array.from(e);s.length;){var i=s.shift();if(!$l(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,u=Ml(c,!0,n);n.flatten?o.push.apply(o,u):o.push({scopeParent:i,candidates:u})}else{var f=Fo.call(i,Tl);f&&n.filter(i)&&(r||!e.includes(i))&&o.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!$l(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(v&&h){var g=Ml(v===!0?i.children:v.children,!0,n);n.flatten?o.push.apply(o,g):o.push({scopeParent:i,candidates:g})}else s.unshift.apply(s,i.children)}}return o},qg=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Yg=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Q_(e))&&!qg(e)?0:e.tabIndex},e0=function(e,r){var n=Yg(e);return n<0&&r&&!qg(e)?0:n},t0=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Xg=function(e){return e.tagName==="INPUT"},r0=function(e){return Xg(e)&&e.type==="hidden"},n0=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},o0=function(e,r){for(var n=0;nsummary:first-of-type"),u=c?e.parentElement:e;if(Fo.call(u,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var f=e;e;){var v=e.parentElement,h=Ol(e);if(v&&!v.shadowRoot&&o(v)===!0)return Xf(e);e.assignedSlot?e=e.assignedSlot:!v&&h!==e.ownerDocument?e=h.host:e=v}e=f}if(l0(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Xf(e);return!1},u0=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},Zg=function(e){var r=[],n=[];return e.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=e0(a,i),u=i?Zg(o.candidates):a;c===0?i?r.push.apply(r,u):r.push(a):n.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:u})}),n.sort(t0).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(r)},Jg=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Ml([e],r.includeContainer,{filter:Ou.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:d0}):n=Ug(e,r.includeContainer,Ou.bind(null,r)),Zg(n)},Qg=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Ml([e],r.includeContainer,{filter:Il.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=Ug(e,r.includeContainer,Il.bind(null,r)),n},$d=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Fo.call(e,Tl)===!1?!1:Ou(r,e)},f0=Hg.concat("iframe:not([inert]):not([inert] *)").join(","),ep=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Fo.call(e,f0)===!1?!1:Il(r,e)};function vi(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function h0(t,e){if(!$d(t,vi()))return v0(t,e);const r=Ra(t),n=Jg(r.body,vi());e==="prev"&&n.reverse();const o=n.indexOf(t);return o===-1?r.body:n.slice(o+1)[0]}function v0(t,e){const r=Ra(t);if(!ep(t,vi()))return r.body;const n=Qg(r.body,vi());e==="prev"&&n.reverse();const o=n.indexOf(t);return o===-1?r.body:n.slice(o+1).find(i=>$d(i,vi()))??r.body}function tp(t,e,r){const n=e.toLowerCase();if(n.endsWith(" ")){const v=n.slice(0,-1);if(t.filter(m=>m.toLowerCase().startsWith(v)).length<=1)return tp(t,v,r);const g=r==null?void 0:r.toLowerCase();if(g&&g.startsWith(v)&&g.charAt(v.length)===" "&&e.trim()===v)return r;const p=t.filter(m=>m.toLowerCase().startsWith(n));if(p.length>0){const m=r?t.indexOf(r):-1;return Zf(p,Math.max(m,0)).find(k=>k!==r)||r}}const s=e.length>1&&Array.from(e).every(v=>v===e[0])?e[0]:e,i=s.toLowerCase(),a=r?t.indexOf(r):-1;let c=Zf(t,Math.max(a,0));s.length===1&&(c=c.filter(v=>v!==r));const f=c.find(v=>v==null?void 0:v.toLowerCase().startsWith(i));return f!==r?f:void 0}function Zf(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const g0={afterMs:1e4,onChange:ht};function p0(t,e){const{afterMs:r,onChange:n,getWindow:o}={...g0,...e};let s=null,i=Ae(Zt(t));function a(){return o().setTimeout(()=>{R(i,t,!0),n==null||n(t)},r)}return it(()=>()=>{s&&o().clearTimeout(s)}),ge(()=>d(i),c=>{R(i,c,!0),n==null||n(c),s&&o().clearTimeout(s),s=a()})}var gn,pn,Hl,Kl;class m0{constructor(e){_(this,gn);_(this,pn);_(this,Hl,W(()=>l(this,gn).onMatch?l(this,gn).onMatch:e=>e.focus()));_(this,Kl,W(()=>l(this,gn).getCurrentItem?l(this,gn).getCurrentItem:l(this,gn).getActiveElement));I(this,gn,e),I(this,pn,p0("",{afterMs:1e3,getWindow:e.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,r){var c,u;if(!r.length)return;l(this,pn).current=l(this,pn).current+e;const n=d(l(this,Kl))(),o=((u=(c=r.find(f=>f===n))==null?void 0:c.textContent)==null?void 0:u.trim())??"",s=r.map(f=>{var v;return((v=f.textContent)==null?void 0:v.trim())??""}),i=tp(s,l(this,pn).current,o),a=r.find(f=>{var v;return((v=f.textContent)==null?void 0:v.trim())===i});return a&&d(l(this,Hl))(a),a}resetTypeahead(){l(this,pn).current=""}get search(){return l(this,pn).current}}gn=new WeakMap,pn=new WeakMap,Hl=new WeakMap,Kl=new WeakMap;const b0="data-context-menu-trigger",y0="data-context-menu-content",rp=new Ko("Menu.Root"),Md=new Ko("Menu.Root | Menu.Sub"),np=new Ko("Menu.Content"),w0=new K_("bitsmenuopen",{bubbles:!1,cancelable:!0}),x0=Rg({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});var Je,Po,Wn,Ht,vr,Co,mn,ws,Te,op,cl,$u,Mu,Iu,jn,ai,ul,li,dl,sp,Mi,ip,fl,hl,Qo,vl;class _0{constructor(e){_(this,Te);_(this,Je);_(this,Po,null);_(this,Wn,null);_(this,Ht,!1);_(this,vr,null);_(this,Co,null);_(this,mn,null);_(this,ws,null);_(this,jn,null);_(this,Mi,e=>{if(!l(this,Ht)||!l(this,vr)||!rn(e))return;const r=l(this,Je).triggerNode(),n=l(this,Je).contentNode();if(!r||!n){j(this,Te,li).call(this);return}j(this,Te,Qo).call(this);const o={x:e.clientX,y:e.clientY};I(this,mn,o);const s=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(l(this,vr)==="content"&&Qf(o,i)){j(this,Te,ai).call(this);return}if(l(this,vr)==="trigger"&&k0(o,s,4)){j(this,Te,ai).call(this);return}if(j(this,Te,sp).call(this,o)){j(this,Te,hl).call(this);return}const a=j(this,Te,cl).call(this,o,l(this,vr));if(!a){j(this,Te,li).call(this);return}if(j(this,Te,$u).call(this,o,a.corridor,a.intent)){j(this,Te,hl).call(this);return}j(this,Te,li).call(this)});I(this,Je,e),ar([e.triggerNode,e.contentNode,e.enabled],([r,n,o])=>{if(j(this,Te,dl).call(this),!r||!n||!o)return;const s=v=>{rn(v)&&(I(this,ws,{x:v.clientX,y:v.clientY}),l(this,Ht)||j(this,Te,Mu).call(this,v,"content"))},i=v=>{rn(v)&&j(this,Te,Iu).call(this,v,"content")},a=v=>{rn(v)&&(l(this,Ht)||j(this,Te,Mu).call(this,v,"trigger"))},c=v=>{if(rn(v)){if(hi(v.relatedTarget)){const h=l(this,Je).subContentSelector(),g=v.relatedTarget.closest(h);if(g&&g!==n&&g.id&&!!n.querySelector(`[aria-controls="${g.id}"]`))return}j(this,Te,Iu).call(this,v,"trigger")}},u=v=>{rn(v)&&j(this,Te,ai).call(this)},f=v=>{rn(v)&&j(this,Te,ai).call(this)};return r.addEventListener("pointermove",s),r.addEventListener("pointerleave",i),r.addEventListener("pointerenter",u),n.addEventListener("pointermove",a),n.addEventListener("pointerleave",c),n.addEventListener("pointerenter",f),()=>{r.removeEventListener("pointermove",s),r.removeEventListener("pointerleave",i),r.removeEventListener("pointerenter",u),n.removeEventListener("pointermove",a),n.removeEventListener("pointerleave",c),n.removeEventListener("pointerenter",f),j(this,Te,dl).call(this)}}),Uo(()=>{j(this,Te,dl).call(this)})}}Je=new WeakMap,Po=new WeakMap,Wn=new WeakMap,Ht=new WeakMap,vr=new WeakMap,Co=new WeakMap,mn=new WeakMap,ws=new WeakMap,Te=new WeakSet,op=function(){var r;const e=l(this,Je).parentContentNode();return e?e.getBoundingClientRect():((r=l(this,Je).triggerNode())==null?void 0:r.getBoundingClientRect())??null},cl=function(e,r){const n=l(this,Je).triggerNode(),o=l(this,Je).contentNode();if(!n||!o)return null;const s=n.getBoundingClientRect(),i=o.getBoundingClientRect(),a=S0(s,i);let c,u,f;return r==="content"?(c=l(this,Ht)?l(this,Co)??e:e,u=i):(c=l(this,ws)??e,u=j(this,Te,op).call(this)??s,f=i),I(this,Co,c),{corridor:P0(s,i,a),intent:C0(c,u,a,r,f),targetRect:u,side:a}},$u=function(e,r,n){return Jf(e,r)||Jf(e,n)},Mu=function(e,r){const n={x:e.clientX,y:e.clientY};j(this,Te,cl).call(this,n,r)&&(I(this,vr,r),I(this,mn,n))},Iu=function(e,r){if(!l(this,Je).enabled())return;const n=l(this,Je).triggerNode(),o=l(this,Je).contentNode();if(!n||!o)return;const s=e.relatedTarget;if(hi(s)&&(r==="content"&&o.contains(s)||r==="trigger"&&n.contains(s)))return;const i={x:e.clientX,y:e.clientY},a=j(this,Te,cl).call(this,i,r);if(a){if(!Qf(i,a.targetRect)&&!j(this,Te,$u).call(this,i,a.corridor,a.intent)){j(this,Te,vl).call(this);return}I(this,Ht,!0),I(this,vr,r),I(this,mn,i),l(this,Je).setIsPointerInTransit(!0),j(this,Te,ip).call(this),j(this,Te,hl).call(this)}},jn=new WeakMap,ai=function(){if(!l(this,Ht))return;const e=l(this,vr)==="trigger";j(this,Te,fl).call(this),j(this,Te,Qo).call(this),I(this,Ht,!1),j(this,Te,vl).call(this),e?(j(this,Te,ul).call(this),I(this,jn,setTimeout(()=>{I(this,jn,null),l(this,Je).setIsPointerInTransit(!1)},100))):l(this,Je).setIsPointerInTransit(!1)},ul=function(){l(this,jn)!==null&&(clearTimeout(l(this,jn)),I(this,jn,null))},li=function(){const e=l(this,mn);j(this,Te,fl).call(this),j(this,Te,Qo).call(this),j(this,Te,ul).call(this),I(this,Ht,!1),l(this,Je).setIsPointerInTransit(!1),j(this,Te,vl).call(this),l(this,Je).onIntentExit(e)},dl=function(){j(this,Te,fl).call(this),j(this,Te,Qo).call(this),j(this,Te,ul).call(this),l(this,Ht)&&l(this,Je).setIsPointerInTransit(!1),I(this,Ht,!1),I(this,vr,null),I(this,Co,null),I(this,mn,null),I(this,ws,null)},sp=function(e){const r=l(this,Je).contentNode();if(!r)return!1;const o=r.ownerDocument.elementFromPoint(e.x,e.y);if(!o)return!1;const s=l(this,Je).subContentSelector(),i=o.closest(s);return!i||i===r?!1:i.id?!!r.querySelector(`[aria-controls="${i.id}"]`):!1},Mi=new WeakMap,ip=function(){if(l(this,Po))return;const e=Ra(l(this,Je).triggerNode()??l(this,Je).contentNode());e&&(e.addEventListener("pointermove",l(this,Mi),!0),I(this,Po,()=>{e.removeEventListener("pointermove",l(this,Mi),!0),I(this,Po,null)}))},fl=function(){var e;(e=l(this,Po))==null||e.call(this)},hl=function(){j(this,Te,Qo).call(this),I(this,Wn,setTimeout(()=>{I(this,Wn,null),l(this,Ht)&&j(this,Te,li).call(this)},500))},Qo=function(){l(this,Wn)!==null&&(clearTimeout(l(this,Wn)),I(this,Wn,null))},vl=function(){I(this,vr,null),I(this,Co,null),I(this,mn,null)};function Jf(t,e){const{x:r,y:n}=t;let o=!1;for(let s=0,i=e.length-1;sn!=f>n&&r<(u-a)*(n-c)/(f-c)+a&&(o=!o)}return o}function Qf(t,e){return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom}function k0(t,e,r){return t.x>=e.left+r&&t.x<=e.right-r&&t.y>=e.top+r&&t.y<=e.bottom-r}function S0(t,e){const r=t.left+t.width/2,n=t.top+t.height/2,o=e.left+e.width/2,s=e.top+e.height/2,i=o-r,a=s-n;return Math.abs(i)>Math.abs(a)?i>0?"right":"left":a>0?"bottom":"top"}function P0(t,e,r){switch(r){case"top":return[{x:Math.min(t.left,e.left)-2,y:t.top},{x:Math.min(t.left,e.left)-2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:t.top}];case"bottom":return[{x:Math.min(t.left,e.left)-2,y:t.bottom},{x:Math.min(t.left,e.left)-2,y:e.top},{x:Math.max(t.right,e.right)+2,y:e.top},{x:Math.max(t.right,e.right)+2,y:t.bottom}];case"left":return[{x:t.left,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.max(t.bottom,e.bottom)+2},{x:t.left,y:Math.max(t.bottom,e.bottom)+2}];case"right":return[{x:t.right,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.max(t.bottom,e.bottom)+2},{x:t.right,y:Math.max(t.bottom,e.bottom)+2}]}}function C0(t,e,r,n,o){const i=n==="trigger"?A0(r):r,a=o?Math.min(e.top,o.top)-8:e.top-8,c=o?Math.max(e.bottom,o.bottom)+8:e.bottom+8,u=o?Math.min(e.left,o.left)-8:e.left-8,f=o?Math.max(e.right,o.right)+8:e.right+8;switch(i){case"right":return[t,{x:e.left,y:a},{x:e.left,y:c}];case"left":return[t,{x:e.right,y:a},{x:e.right,y:c}];case"bottom":return[t,{x:u,y:e.top},{x:f,y:e.top}];case"top":return[t,{x:u,y:e.bottom},{x:f,y:e.bottom}]}}function A0(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}var Ii,Ni;const Kd=class Kd{constructor(e){ae(this,"opts");ae(this,"isUsingKeyboard",new Tu);_(this,Ii,Ae(!1));_(this,Ni,Ae(!1));ae(this,"getBitsAttr",e=>x0.getAttr(e,this.opts.variant.current));this.opts=e}static create(e){const r=new Kd(e);return rp.set(r)}get ignoreCloseAutoFocus(){return d(l(this,Ii))}set ignoreCloseAutoFocus(e){R(l(this,Ii),e,!0)}get isPointerInTransit(){return d(l(this,Ni))}set isPointerInTransit(e){R(l(this,Ni),e,!0)}};Ii=new WeakMap,Ni=new WeakMap;let Nu=Kd;var zi,Ri;const Ud=class Ud{constructor(e,r,n){ae(this,"opts");ae(this,"root");ae(this,"parentMenu");ae(this,"contentId",ge(()=>""));_(this,zi,Ae(null));ae(this,"contentPresence");_(this,Ri,Ae(null));this.opts=e,this.root=r,this.parentMenu=n,this.contentPresence=new F_({ref:ge(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>{var o,s;return this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:((s=(o=this.root.opts).shouldSkipExitAnimation)==null?void 0:s.call(o))??!1}}),n&&ar(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}static create(e,r){return Md.set(new Ud(e,r,null))}get contentNode(){return d(l(this,zi))}set contentNode(e){R(l(this,zi),e,!0)}get triggerNode(){return d(l(this,Ri))}set triggerNode(e){R(l(this,Ri),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};zi=new WeakMap,Ri=new WeakMap;let zu=Ud;var Fi,Li,Di,Bi,Vi,qr,ap,gl,lp,Wi,ji;const qd=class qd{constructor(e,r){_(this,qr);ae(this,"opts");ae(this,"parentMenu");ae(this,"rovingFocusGroup");ae(this,"domContext");ae(this,"attachment");_(this,Fi,Ae(""));_(this,Li,0);_(this,Di);_(this,Bi,Ae(!1));_(this,Vi);ae(this,"onCloseAutoFocus",e=>{var r,n;if((n=(r=this.opts.onCloseAutoFocus).current)==null||n.call(r,e),!(e.defaultPrevented||l(this,Vi))){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&$d(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}});_(this,Wi,W(()=>({open:this.parentMenu.opts.open.current})));_(this,ji,W(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":zg(this.parentMenu.opts.open.current),...__(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment})));ae(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=r,this.domContext=new Ad(e.ref),this.attachment=Zn(this.opts.ref,n=>{this.parentMenu.contentNode!==n&&(this.parentMenu.contentNode=n)}),r.contentId=e.id,I(this,Vi,e.isSub??!1),this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new _0({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>{var n;return((n=this.parentMenu.parentMenu)==null?void 0:n.contentNode)??null},subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>{var n;return this.parentMenu.opts.open.current&&!!((n=this.parentMenu.triggerNode)!=null&&n.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")))},onIntentExit:n=>{this.parentMenu.opts.open.current=!1,j(this,qr,lp).call(this,n)},setIsPointerInTransit:n=>{this.parentMenu.root.isPointerInTransit=n}}),I(this,Di,new m0({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new z_({rootNode:ge(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:ge(()=>"vertical")}),ar(()=>this.parentMenu.contentNode,n=>{if(!n)return;const o=()=>{Br(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return w0.listen(n,o)}),it(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(l(this,Li))})}static create(e){return np.set(new qd(e,Md.get()))}get search(){return d(l(this,Fi))}set search(e){R(l(this,Fi),e,!0)}get mounted(){return d(l(this,Bi))}set mounted(e){R(l(this,Bi),e,!0)}handleTabKeyDown(e){let r=this.parentMenu;for(;r.parentMenu!==null;)r=r.parentMenu;if(!r.triggerNode)return;e.preventDefault();const n=h0(r.triggerNode,e.shiftKey?"prev":"next");n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,r.onClose(),Br(()=>{n.focus(),Br(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){var u,f;if(e.defaultPrevented)return;if(e.key===A_){this.handleTabKeyDown(e);return}const r=e.target,n=e.currentTarget;if(!Qn(r)||!Qn(n))return;const o=((u=r.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`))==null?void 0:u.id)===this.parentMenu.contentId.current,s=e.ctrlKey||e.altKey||e.metaKey,i=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(r,e)||e.code==="Space")return;const c=j(this,qr,ap).call(this);o&&!s&&i&&l(this,Di).call(this,e.key,c),((f=e.target)==null?void 0:f.id)===this.parentMenu.contentId.current&&X_.includes(e.key)&&(e.preventDefault(),Gg.includes(e.key)&&c.reverse(),J_(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){var r,n;hi(e.currentTarget)&&hi(e.target)&&((n=(r=e.currentTarget).contains)!=null&&n.call(r,e.target)||(this.domContext.getWindow().clearTimeout(l(this,Li)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&Br(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return j(this,qr,gl).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||j(this,qr,gl).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;const r=this.parentMenu.contentNode;r==null||r.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!j(this,qr,gl).call(this)}handleInteractOutside(e){var n;if(!Vg(e.target))return;const r=(n=this.parentMenu.triggerNode)==null?void 0:n.id;if(e.target.id===r){e.preventDefault();return}if(e.target.closest(`#${r}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,Br(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return d(l(this,Wi))}set snippetProps(e){R(l(this,Wi),e)}get props(){return d(l(this,ji))}set props(e){R(l(this,ji),e)}};Fi=new WeakMap,Li=new WeakMap,Di=new WeakMap,Bi=new WeakMap,Vi=new WeakMap,qr=new WeakSet,ap=function(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},gl=function(){return this.parentMenu.root.isPointerInTransit},lp=function(e){var s;if(!e)return;const r=(s=this.parentMenu.parentMenu)==null?void 0:s.contentNode;if(!r)return;const n=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!hi(n))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!o||!r.contains(o)||o!==this.parentMenu.triggerNode&&o.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))},Wi=new WeakMap,ji=new WeakMap;let Ru=qd;var xs,Gi;class E0{constructor(e,r){ae(this,"opts");ae(this,"content");ae(this,"attachment");_(this,xs,Ae(!1));_(this,Gi,W(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":Ig(this.opts.disabled.current),"data-disabled":Ng(this.opts.disabled.current),"data-highlighted":d(l(this,xs))?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment})));this.opts=e,this.content=r,this.attachment=Zn(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&rn(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const n=e.currentTarget;if(!Qn(n))return;n.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||rn(e)&&this.content.onItemLeave(e)}onfocus(e){Br(()=>{e.defaultPrevented||this.opts.disabled.current||R(l(this,xs),!0)})}onblur(e){Br(()=>{e.defaultPrevented||R(l(this,xs),!1)})}get props(){return d(l(this,Gi))}set props(e){R(l(this,Gi),e)}}xs=new WeakMap,Gi=new WeakMap;var Hi,Ul,cp,Ki;const Yd=class Yd{constructor(e,r){_(this,Ul);ae(this,"opts");ae(this,"item");ae(this,"root");_(this,Hi,!1);_(this,Ki,W(()=>Ur(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown})));this.opts=e,this.item=r,this.root=r.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(e){const r=new E0(e,np.get());return new Yd(e,r)}onkeydown(e){const r=this.item.content.search!=="";if(!(this.item.opts.disabled.current||r&&e.key===Od)&&q_.includes(e.key)){if(!Qn(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||j(this,Ul,cp).call(this)}onpointerup(e){var r;if(!e.defaultPrevented&&!l(this,Hi)){if(!Qn(e.currentTarget))return;(r=e.currentTarget)==null||r.click()}}onpointerdown(e){I(this,Hi,!0)}get props(){return d(l(this,Ki))}set props(e){R(l(this,Ki),e)}};Hi=new WeakMap,Ul=new WeakSet,cp=function(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()},Ki=new WeakMap;let Fu=Yd;var Ui;const Xd=class Xd{constructor(e,r){ae(this,"opts");ae(this,"root");ae(this,"attachment");_(this,Ui,W(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment})));this.opts=e,this.root=r,this.attachment=Zn(this.opts.ref)}static create(e){return new Xd(e,rp.get())}get props(){return d(l(this,Ui))}set props(e){R(l(this,Ui),e)}};Ui=new WeakMap;let Lu=Xd;var ql,qi;const Zd=class Zd{constructor(e,r){ae(this,"opts");ae(this,"parentMenu");ae(this,"attachment");ae(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});ae(this,"onpointerdown",e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}});ae(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});ae(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Od||e.key===Lg){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===pi&&(this.parentMenu.onOpen(),e.preventDefault())}});_(this,ql,W(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));_(this,qi,W(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":Ig(this.parentMenu.opts.open.current),"aria-controls":d(l(this,ql)),"data-disabled":Ng(this.opts.disabled.current),"data-state":zg(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.parentMenu=r,this.attachment=Zn(this.opts.ref,n=>this.parentMenu.triggerNode=n)}static create(e){return new Zd(e,Md.get())}get props(){return d(l(this,qi))}set props(e){R(l(this,qi),e)}};ql=new WeakMap,qi=new WeakMap;let Du=Zd;globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var _s,Ao,Gn,ks,Ss,Hn,Yi,bn,Yl,Fs,up,Xl,Ps,Zl,Jl,Ql,ec,Xi,dp,tc,rc;const Jd=class Jd{constructor(e){_(this,Fs);ae(this,"opts");_(this,_s);_(this,Ao);_(this,Gn,{pointerdown:!1});_(this,ks,!1);_(this,Ss,!1);_(this,Hn);_(this,Yi);_(this,bn,ht);_(this,Yl,e=>{e.defaultPrevented||this.opts.ref.current&&Br(()=>{var r,n;!this.opts.ref.current||l(this,ec).call(this,e.target)||e.target&&!l(this,Ss)&&((n=(r=l(this,Yi)).current)==null||n.call(r,e))})});_(this,Xl,e=>{let r=e;r.defaultPrevented&&(r=eh(e)),l(this,_s).current(e)});_(this,Ps,Yf(e=>{if(!this.opts.ref.current){l(this,bn).call(this);return}const r=this.opts.isValidEvent.current(e,this.opts.ref.current)||$0(e,this.opts.ref.current);if(!l(this,ks)||j(this,Fs,dp).call(this)||!r){l(this,bn).call(this);return}let n=e;if(n.defaultPrevented&&(n=eh(n)),l(this,Ao).current!=="close"&&l(this,Ao).current!=="defer-otherwise-close"){l(this,bn).call(this);return}e.pointerType==="touch"?(l(this,bn).call(this),I(this,bn,Nt(l(this,Hn),"click",l(this,Xl),{once:!0}))):l(this,_s).current(n)},10));_(this,Zl,e=>{l(this,Gn)[e.type]=!0});_(this,Jl,e=>{l(this,Gn)[e.type]=!1});_(this,Ql,()=>{this.opts.ref.current&&I(this,ks,O0(this.opts.ref.current))});_(this,ec,e=>this.opts.ref.current?Wg(this.opts.ref.current,e):!1);_(this,Xi,Yf(()=>{for(const e in l(this,Gn))l(this,Gn)[e]=!1;I(this,ks,!1)},20));_(this,tc,()=>{I(this,Ss,!0)});_(this,rc,()=>{I(this,Ss,!1)});ae(this,"props",{onfocuscapture:l(this,tc),onblurcapture:l(this,rc)});this.opts=e,I(this,Ao,e.interactOutsideBehavior),I(this,_s,e.onInteractOutside),I(this,Yi,e.onFocusOutside),it(()=>{I(this,Hn,jg(this.opts.ref.current))});let r=ht;const n=()=>{l(this,Xi).call(this),globalThis.bitsDismissableLayers.delete(this),l(this,Ps).destroy(),r()};ar([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return v_(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,l(this,Ao)),r(),r=j(this,Fs,up).call(this))}),n}),Uo(()=>{l(this,Xi).destroy(),globalThis.bitsDismissableLayers.delete(this),l(this,Ps).destroy(),l(this,bn).call(this),r()})}static create(e){return new Jd(e)}};_s=new WeakMap,Ao=new WeakMap,Gn=new WeakMap,ks=new WeakMap,Ss=new WeakMap,Hn=new WeakMap,Yi=new WeakMap,bn=new WeakMap,Yl=new WeakMap,Fs=new WeakSet,up=function(){return ss(Nt(l(this,Hn),"pointerdown",ss(l(this,Zl),l(this,Ql)),{capture:!0}),Nt(l(this,Hn),"pointerdown",ss(l(this,Jl),l(this,Ps))),Nt(l(this,Hn),"focusin",l(this,Yl)))},Xl=new WeakMap,Ps=new WeakMap,Zl=new WeakMap,Jl=new WeakMap,Ql=new WeakMap,ec=new WeakMap,Xi=new WeakMap,dp=function(){return Object.values(l(this,Gn)).some(Boolean)},tc=new WeakMap,rc=new WeakMap;let Bu=Jd;function T0(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:r}])=>r==="close"||r==="ignore")}function O0(t){const e=[...globalThis.bitsDismissableLayers],r=T0(e);if(r)return r[0].opts.ref.current===t;const[n]=e[0];return n.opts.ref.current===t}function $0(t,e){const r=t.target;if(!Vg(r))return!1;const n=!!r.closest(`[${b0}]`),o=!!e.closest(`[${y0}]`);return"button"in t&&t.button>0&&!n?!1:"button"in t&&t.button===0&&n&&o?!0:n&&o?!1:jg(r).documentElement.contains(r)&&!Wg(e,r)&&U_(t,e)}function eh(t){const e=t.currentTarget,r=t.target;let n;t instanceof PointerEvent?n=new PointerEvent(t.type,t):n=new PointerEvent("pointerdown",t);let o=!1;return new Proxy(n,{get:(i,a)=>a==="currentTarget"?e:a==="target"?r:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:t[a]})}function M0(t,e){Me(e,!0);let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"onInteractOutside",3,ht),o=M(e,"onFocusOutside",3,ht),s=M(e,"isValidEvent",3,()=>!1);const i=Bu.create({id:ge(()=>e.id),interactOutsideBehavior:ge(()=>r()),onInteractOutside:ge(()=>n()),enabled:ge(()=>e.enabled),onFocusOutside:ge(()=>o()),isValidEvent:ge(()=>s()),ref:e.ref});var a=te(),c=E(a);Fe(c,()=>e.children??ze,()=>({props:i.props})),b(t,a),Ie()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var nc,oc;const Qd=class Qd{constructor(e){ae(this,"opts");ae(this,"domContext");_(this,nc,()=>Nt(this.domContext.getDocument(),"keydown",l(this,oc),{passive:!1}));_(this,oc,e=>{if(e.key!==S_||!I0(this))return;const r=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(r)});this.opts=e,this.domContext=new Ad(this.opts.ref);let r=ht;ar(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),r=l(this,nc).call(this)),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new Qd(e)}};nc=new WeakMap,oc=new WeakMap;let Vu=Qd;function I0(t){const e=[...globalThis.bitsEscapeLayers],r=e.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(r)return r[0]===t;const[n]=e[0];return n===t}function N0(t,e){Me(e,!0);let r=M(e,"escapeKeydownBehavior",3,"close"),n=M(e,"onEscapeKeydown",3,ht);Vu.create({escapeKeydownBehavior:ge(()=>r()),onEscapeKeydown:ge(()=>n()),enabled:ge(()=>e.enabled),ref:e.ref});var o=te(),s=E(o);Fe(s,()=>e.children??ze),b(t,o),Ie()}var yn,Zi,Eo;const sc=class sc{constructor(){_(this,yn,Wr([]));_(this,Zi,new WeakMap);_(this,Eo,new WeakMap)}static getInstance(){return this.instance||(this.instance=new sc),this.instance}register(e){const r=this.getActive();r&&r!==e&&r.pause();const n=document.activeElement;n&&n!==document.body&&l(this,Eo).set(e,n),l(this,yn).current=l(this,yn).current.filter(o=>o!==e),l(this,yn).current.unshift(e)}unregister(e){l(this,yn).current=l(this,yn).current.filter(n=>n!==e);const r=this.getActive();r&&r.resume()}getActive(){return l(this,yn).current[0]}setFocusMemory(e,r){l(this,Zi).set(e,r)}getFocusMemory(e){return l(this,Zi).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,r){l(this,Eo).set(e,r)}getPreFocusMemory(e){return l(this,Eo).get(e)}clearPreFocusMemory(e){l(this,Eo).delete(e)}};yn=new WeakMap,Zi=new WeakMap,Eo=new WeakMap,ae(sc,"instance");let Wu=sc;var Kn,Mt,Kt,To,Un,vt,fp,hp,vp,gp,Gu,pl,Hu;const ef=class ef{constructor(e){_(this,vt);_(this,Kn,!1);_(this,Mt,null);_(this,Kt,Wu.getInstance());_(this,To,[]);_(this,Un);I(this,Un,e)}get paused(){return l(this,Kn)}pause(){I(this,Kn,!0)}resume(){I(this,Kn,!1)}mount(e){l(this,Mt)&&this.unmount(),I(this,Mt,e),l(this,Kt).register(this),j(this,vt,gp).call(this),j(this,vt,hp).call(this)}unmount(){l(this,Mt)&&(j(this,vt,fp).call(this),j(this,vt,vp).call(this),l(this,Kt).unregister(this),l(this,Kt).clearPreFocusMemory(this),I(this,Mt,null))}static use(e){let r=null;return ar([()=>e.ref.current,()=>e.enabled.current],([n,o])=>{n&&o?(r||(r=new ef(e)),r.mount(n)):r&&(r.unmount(),r=null)}),Uo(()=>{r==null||r.unmount()}),{get props(){return{tabindex:-1}}}}};Kn=new WeakMap,Mt=new WeakMap,Kt=new WeakMap,To=new WeakMap,Un=new WeakMap,vt=new WeakSet,fp=function(){for(const e of l(this,To))e();I(this,To,[])},hp=function(){if(!l(this,Mt))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});l(this,Un).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!l(this,Mt))return;const r=j(this,vt,pl).call(this);r?(r.focus(),l(this,Kt).setFocusMemory(this,r)):l(this,Mt).focus()})},vp=function(){var r,n;const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((n=(r=l(this,Un).onCloseAutoFocus).current)==null||n.call(r,e),!e.defaultPrevented){const o=l(this,Kt).getPreFocusMemory(this);if(o&&document.contains(o))try{o.focus()}catch{document.body.focus()}}},gp=function(){if(!l(this,Mt)||!l(this,Un).trap.current)return;const e=l(this,Mt),r=e.ownerDocument,n=i=>{if(l(this,Kn)||!l(this,Kt).isActiveScope(this))return;const a=i.target;if(!a)return;if(e.contains(a))l(this,Kt).setFocusMemory(this,a);else{const u=l(this,Kt).getFocusMemory(this);if(u&&e.contains(u)&&ep(u))i.preventDefault(),u.focus();else{const f=j(this,vt,pl).call(this),v=j(this,vt,Hu).call(this)[0];(f||v||e).focus()}}},o=i=>{if(!l(this,Un).loop||l(this,Kn)||i.key!=="Tab"||!l(this,Kt).isActiveScope(this))return;const a=j(this,vt,Gu).call(this);if(a.length===0)return;const c=a[0],u=a[a.length-1];!i.shiftKey&&r.activeElement===u?(i.preventDefault(),c.focus()):i.shiftKey&&r.activeElement===c&&(i.preventDefault(),u.focus())};l(this,To).push(Nt(r,"focusin",n,{capture:!0}),Nt(e,"keydown",o));const s=new MutationObserver(()=>{const i=l(this,Kt).getFocusMemory(this);if(i&&!e.contains(i)){const a=j(this,vt,pl).call(this),c=j(this,vt,Hu).call(this)[0],u=a||c;u?(u.focus(),l(this,Kt).setFocusMemory(this,u)):e.focus()}});s.observe(e,{childList:!0,subtree:!0}),l(this,To).push(()=>s.disconnect())},Gu=function(){return l(this,Mt)?Jg(l(this,Mt),{includeContainer:!1,getShadowRoot:!0}):[]},pl=function(){return j(this,vt,Gu).call(this)[0]||null},Hu=function(){return l(this,Mt)?Qg(l(this,Mt),{includeContainer:!1,getShadowRoot:!0}):[]};let ju=ef;function z0(t,e){Me(e,!0);let r=M(e,"enabled",3,!1),n=M(e,"trapFocus",3,!1),o=M(e,"loop",3,!1),s=M(e,"onCloseAutoFocus",3,ht),i=M(e,"onOpenAutoFocus",3,ht);const a=ju.use({enabled:ge(()=>r()),trap:ge(()=>n()),loop:o(),onCloseAutoFocus:ge(()=>s()),onOpenAutoFocus:ge(()=>i()),ref:e.ref});var c=te(),u=E(c);Fe(u,()=>e.focusScope??ze,()=>({props:a.props})),b(t,c),Ie()}const th=()=>{};globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var Cs,As,Ji,Qi,ic,pp,ac,lc,ea;const tf=class tf{constructor(e){_(this,ic);ae(this,"opts");ae(this,"domContext");_(this,Cs,ht);_(this,As,!1);_(this,Ji,th);_(this,Qi,th);_(this,ac,e=>{l(this,Qi).call(this,e)});_(this,lc,e=>{const r=this.opts.ref.current,n=e.target;!Qn(r)||!Qn(n)||!l(this,As)||!F0(this)||!w_(r,n)||(l(this,Ji).call(this,e),!e.defaultPrevented&&I(this,Cs,R0(r,this.domContext.getDocument().body)))});_(this,ea,()=>{l(this,Cs).call(this),I(this,Cs,ht)});this.opts=e,this.domContext=new Ad(e.ref);let r=ht;ar(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([n,o,s])=>(I(this,As,n),I(this,Ji,o),I(this,Qi,s),n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=j(this,ic,pp).call(this)),()=>{I(this,As,!1),r(),l(this,ea).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new tf(e)}};Cs=new WeakMap,As=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,ic=new WeakSet,pp=function(){return ss(Nt(this.domContext.getDocument(),"pointerdown",l(this,lc)),Nt(this.domContext.getDocument(),"pointerup",Pg(l(this,ea),l(this,ac))))},ac=new WeakMap,lc=new WeakMap,ea=new WeakMap;let Ku=tf;const rh=t=>t.style.userSelect||t.style.webkitUserSelect;function R0(t,e){const r=rh(e),n=rh(t);return qa(e,"none"),qa(t,"text"),()=>{qa(e,r),qa(t,n)}}function qa(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function F0(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const r=e.at(-1);return r?r[0]===t:!1}function L0(t,e){Me(e,!0);let r=M(e,"preventOverflowTextSelection",3,!0),n=M(e,"onPointerDown",3,ht),o=M(e,"onPointerUp",3,ht);Ku.create({id:ge(()=>e.id),onPointerDown:ge(()=>n()),onPointerUp:ge(()=>o()),enabled:ge(()=>e.enabled&&r()),ref:e.ref});var s=te(),i=E(s);Fe(i,()=>e.children??ze),b(t,s),Ie()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function Id(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}var ta,Es,Oo,$o,cc,mp;class D0{constructor(e){_(this,cc);_(this,ta);_(this,Es,0);_(this,Oo,Ae());_(this,$o);I(this,ta,e)}get(...e){return I(this,Es,l(this,Es)+1),d(l(this,Oo))===void 0&&I(this,$o,fv(()=>{R(l(this,Oo),l(this,ta).call(this,...e),!0)})),it(()=>()=>{j(this,cc,mp).call(this)}),d(l(this,Oo))}}ta=new WeakMap,Es=new WeakMap,Oo=new WeakMap,$o=new WeakMap,cc=new WeakSet,mp=function(){I(this,Es,l(this,Es)-1),l(this,$o)&&l(this,Es)<=0&&(l(this,$o).call(this),R(l(this,Oo),void 0),I(this,$o,void 0))};const ml=new Su;let Ya=Ae(null),co=null,Zs=null,Js=!1;const nh=ge(()=>{for(const t of ml.values())if(t)return!0;return!1});let Dc=null;const B0=new D0(()=>{function t(){document.body.setAttribute("style",d(Ya)??""),document.body.style.removeProperty("--scrollbar-width"),qf&&(co==null||co()),R(Ya,null)}function e(){Zs!==null&&(window.clearTimeout(Zs),Zs=null)}function r(o,s){e(),Js=!0,Dc=Date.now();const i=Dc,a=()=>{Zs=null,Dc===i&&(bp(ml)?Js=!1:(Js=!1,s()))},c=o===null?24:o;Zs=window.setTimeout(a,c)}function n(){d(Ya)===null&&ml.size===0&&!Js&&R(Ya,document.body.getAttribute("style"),!0)}return ar(()=>nh.current,()=>{var f,v;if(!nh.current)return;n(),Js=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=((f=o.scrollbarGutter)==null?void 0:f.includes("stable"))||((v=s.scrollbarGutter)==null?void 0:v.includes("stable")),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",qf&&(co=Nt(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),Br(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Uo(()=>()=>{co==null||co()}),{get lockMap(){return ml},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:r,cancelPendingCleanup:e,ensureInitialStyleCaptured:n}});var Mo,ra,na,Ut;class V0{constructor(e,r=()=>null){_(this,Mo,Id());_(this,ra);_(this,na,()=>null);_(this,Ut);ae(this,"locked");I(this,ra,e),I(this,na,r),I(this,Ut,B0.get()),l(this,Ut)&&(l(this,Ut).cancelPendingCleanup(),l(this,Ut).ensureInitialStyleCaptured(),l(this,Ut).lockMap.set(l(this,Mo),l(this,ra)??!1),this.locked=ge(()=>l(this,Ut).lockMap.get(l(this,Mo))??!1,n=>l(this,Ut).lockMap.set(l(this,Mo),n)),Uo(()=>{if(l(this,Ut).lockMap.delete(l(this,Mo)),bp(l(this,Ut).lockMap))return;const n=l(this,na).call(this);l(this,Ut).scheduleCleanupIfNoNewLocks(n,()=>{l(this,Ut).resetBodyStyle()})}))}}Mo=new WeakMap,ra=new WeakMap,na=new WeakMap,Ut=new WeakMap;function bp(t){for(const[e,r]of t)if(r)return!0;return!1}function oh(t,e){Me(e,!0);let r=M(e,"preventScroll",3,!0),n=M(e,"restoreScrollDelay",3,null);r()&&new V0(r(),()=>n()),Ie()}xm();const W0=["top","right","bottom","left"],eo=Math.min,kn=Math.max,Nl=Math.round,Xa=Math.floor,Sn=t=>({x:t,y:t}),j0={left:"right",right:"left",bottom:"top",top:"bottom"};function yp(t,e,r){return kn(t,eo(e,r))}function An(t,e){return typeof t=="function"?t(e):t}function to(t){return t.split("-")[0]}function Bs(t){return t.split("-")[1]}function Nd(t){return t==="x"?"y":"x"}function zd(t){return t==="y"?"height":"width"}function jr(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Rd(t){return Nd(jr(t))}function G0(t,e,r){r===void 0&&(r=!1);const n=Bs(t),o=Rd(t),s=zd(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=zl(i)),[i,zl(i)]}function H0(t){const e=zl(t);return[Uu(t),e,Uu(e)]}function Uu(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const sh=["left","right"],ih=["right","left"],K0=["top","bottom"],U0=["bottom","top"];function q0(t,e,r){switch(t){case"top":case"bottom":return r?e?ih:sh:e?sh:ih;case"left":case"right":return e?K0:U0;default:return[]}}function Y0(t,e,r,n){const o=Bs(t);let s=q0(to(t),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),e&&(s=s.concat(s.map(Uu)))),s}function zl(t){const e=to(t);return j0[e]+t.slice(e.length)}function X0(t){var e,r,n,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(n=t.bottom)!=null?n:0,left:(o=t.left)!=null?o:0}}function wp(t){return typeof t!="number"?X0(t):{top:t,right:t,bottom:t,left:t}}function Rl(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function ah(t,e,r){let{reference:n,floating:o}=t;const s=jr(e),i=Rd(e),a=zd(i),c=to(e),u=s==="y",f=n.x+n.width/2-o.width/2,v=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let g;switch(c){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:v};break;case"left":g={x:n.x-o.width,y:v};break;default:g={x:n.x,y:n.y}}const p=Bs(e);return p&&(g[i]+=h*(p==="end"?1:-1)*(r&&u?-1:1)),g}async function Z0(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:v="floating",altBoundary:h=!1,padding:g=0}=An(e,t),p=wp(g),y=a[h?v==="floating"?"reference":"floating":v],w=Rl(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(y)))==null||r?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),k=v==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(O))&&await(s.getScale==null?void 0:s.getScale(O))||{x:1,y:1},P=Rl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:k,offsetParent:O,strategy:c}):k);return{top:(w.top-P.top+p.top)/S.y,bottom:(P.bottom-w.bottom+p.bottom)/S.y,left:(w.left-P.left+p.left)/S.x,right:(P.right-w.right+p.right)/S.x}}const J0=50,Q0=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=i.detectOverflow?i:{...i,detectOverflow:Z0},c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:v}=ah(u,n,c),h=n,g=0;const p={};for(let m=0;m({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=e,{element:u,padding:f=0}=An(t,e)||{};if(u==null)return{};const v=wp(f),h={x:r,y:n},g=Rd(o),p=zd(g),m=await i.getDimensions(u),y=g==="y",w=y?"top":"left",k=y?"bottom":"right",O=y?"clientHeight":"clientWidth",S=s.reference[p]+s.reference[g]-h[g]-s.floating[p],P=h[g]-s.reference[g],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let N=T?T[O]:0;(!N||!await(i.isElement==null?void 0:i.isElement(T)))&&(N=a.floating[O]||s.floating[p]);const x=S/2-P/2,D=N/2-m[p]/2-1,G=eo(v[w],D),K=eo(v[k],D),L=N-m[p]-K,U=N/2-m[p]/2+x,Z=yp(G,U,L),z=!c.arrow&&Bs(o)!=null&&U!==Z&&s.reference[p]/2-(UZ<=0)){var K,L;const Z=(((K=s.flip)==null?void 0:K.index)||0)+1,z=N[Z];if(z&&(!(v==="alignment"?k!==jr(z):!1)||G.every(de=>jr(de.placement)===k?de.overflows[0]>0:!0)))return{data:{index:Z,overflows:G},reset:{placement:z}};let F=(L=G.filter(fe=>fe.overflows[0]<=0).sort((fe,de)=>fe.overflows[1]-de.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(g){case"bestFit":{var U;const fe=(U=G.filter(de=>{if(T){const ce=jr(de.placement);return ce===k||ce==="y"}return!0}).map(de=>[de.placement,de.overflows.filter(ce=>ce>0).reduce((ce,A)=>ce+A,0)]).sort((de,ce)=>de[1]-ce[1])[0])==null?void 0:U[0];fe&&(F=fe);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function lh(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ch(t){return W0.some(e=>t[e]>=0)}const r1=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r,platform:n}=e,{strategy:o="referenceHidden",...s}=An(t,e);switch(o){case"referenceHidden":{const i=await n.detectOverflow(e,{...s,elementContext:"reference"}),a=lh(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ch(a)}}}case"escaped":{const i=await n.detectOverflow(e,{...s,altBoundary:!0}),a=lh(i,r.floating);return{data:{escapedOffsets:a,escaped:ch(a)}}}default:return{}}}}},xp=new Set(["left","top"]);async function n1(t,e){const{placement:r,platform:n,elements:o}=t,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=to(r),a=Bs(r),c=jr(r)==="y",u=xp.has(i)?-1:1,f=s&&c?-1:1,v=An(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return a&&typeof p=="number"&&(g=a==="end"?p*-1:p),c?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const o1=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=e,c=await n1(e,t);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},s1=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:k=>{let{x:O,y:S}=k;return{x:O,y:S}}},...u}=An(t,e),f={x:r,y:n},v=await s.detectOverflow(e,u),h=jr(o),g=Nd(h);let p=f[g],m=f[h];const y=(k,O)=>yp(O+v[k==="y"?"top":"left"],O,O-v[k==="y"?"bottom":"right"]);i&&(p=y(g,p)),a&&(m=y(h,m));const w=c.fn({...e,[g]:p,[h]:m});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[g]:i,[h]:a}}}}}},i1=function(t){return t===void 0&&(t={}),{options:t,fn(e){var r,n;const{x:o,y:s,placement:i,rects:a,middlewareData:c}=e,{offset:u=0,mainAxis:f=!0,crossAxis:v=!0}=An(t,e),h={x:o,y:s},g=jr(i),p=Nd(g);let m=h[p],y=h[g];const w=An(u,e),k=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(r=w.mainAxis)!=null?r:0,crossAxis:(n=w.crossAxis)!=null?n:0};if(f){const P=p==="y"?"height":"width",T=a.reference[p]-a.floating[P]+k.mainAxis,N=a.reference[p]+a.reference[P]-k.mainAxis;mN&&(m=N)}if(v){var O,S;const P=p==="y"?"width":"height",T=xp.has(to(i)),N=a.reference[g]-a.floating[P]+(T&&((O=c.offset)==null?void 0:O[g])||0)+(T?0:k.crossAxis),x=a.reference[g]+a.reference[P]+(T?0:((S=c.offset)==null?void 0:S[g])||0)-(T?k.crossAxis:0);yx&&(y=x)}return{[p]:m,[g]:y}}}},a1=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:o,elements:s}=e,{apply:i=()=>{},...a}=An(t,e),c=await o.detectOverflow(e,a),u=to(r),f=Bs(r),v=jr(r)==="y",{width:h,height:g}=n.floating;let p,m;u==="top"||u==="bottom"?(p=u,m=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=u,p=f==="end"?"top":"bottom");const y=g-c.top-c.bottom,w=h-c.left-c.right,k=eo(g-c[p],y),O=eo(h-c[m],w),S=e.middlewareData.shift,P=!S;let T=k,N=O;S!=null&&S.enabled.x&&(N=w),S!=null&&S.enabled.y&&(T=y),P&&!f&&(v?N=h-2*kn(c.left,c.right):T=g-2*kn(c.top,c.bottom)),await i({...e,availableWidth:N,availableHeight:T});const x=await o.getDimensions(s.floating);return h!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}};function wc(){return typeof window<"u"}function Vs(t){return _p(t)?(t.nodeName||"").toLowerCase():"#document"}function Jt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function En(t){var e;return(e=(_p(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function _p(t){return wc()?t instanceof Node||t instanceof Jt(t).Node:!1}function Zr(t){return wc()?t instanceof Element||t instanceof Jt(t).Element:!1}function io(t){return wc()?t instanceof HTMLElement||t instanceof Jt(t).HTMLElement:!1}function uh(t){return!wc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Jt(t).ShadowRoot}function xc(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Jr(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&o!=="inline"&&o!=="contents"}function l1(t){return/^(table|td|th)$/.test(Vs(t))}function _c(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const c1=/transform|translate|scale|rotate|perspective|filter/,u1=/paint|layout|strict|content/,uo=t=>!!t&&t!=="none";let Bc;function Fd(t){const e=Zr(t)?Jr(t):t;return uo(e.transform)||uo(e.translate)||uo(e.scale)||uo(e.rotate)||uo(e.perspective)||!Ld()&&(uo(e.backdropFilter)||uo(e.filter))||c1.test(e.willChange||"")||u1.test(e.contain||"")}function d1(t){let e=Lo(t);for(;io(e)&&!mi(e);){if(Fd(e))return e;if(_c(e))return null;e=Lo(e)}return null}function Ld(){return Bc==null&&(Bc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Bc}function mi(t){return/^(html|body|#document)$/.test(Vs(t))}function Jr(t){return Jt(t).getComputedStyle(t)}function kc(t){return Zr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Lo(t){if(Vs(t)==="html")return t;const e=t.assignedSlot||t.parentNode||uh(t)&&t.host||En(t);return uh(e)?e.host:e}function kp(t){const e=Lo(t);return mi(e)?(t.ownerDocument||t).body:io(e)&&xc(e)?e:kp(e)}function bi(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=kp(t),s=o===((n=t.ownerDocument)==null?void 0:n.body),i=Jt(o);if(s){const a=qu(i);return e.concat(i,i.visualViewport||[],xc(o)?o:[],a&&r?bi(a):[])}else return e.concat(o,bi(o,[],r))}function qu(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Sp(t){const e=Jr(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=io(t),s=o?t.offsetWidth:r,i=o?t.offsetHeight:n,a=Nl(r)!==s||Nl(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function Dd(t){return Zr(t)?t:t.contextElement}function is(t){const e=Dd(t);if(!io(e))return Sn(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:s}=Sp(e);let i=(s?Nl(r.width):r.width)/n,a=(s?Nl(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const f1=Sn(0);function Pp(t){const e=Jt(t);return!Ld()||!e.visualViewport?f1:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function h1(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Jt(t)}function Do(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),s=Dd(t);let i=Sn(1);e&&(n?Zr(n)&&(i=is(n)):i=is(t));const a=h1(s,r,n)?Pp(s):Sn(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,f=o.width/i.x,v=o.height/i.y;if(s&&n){const h=Jt(s),g=Zr(n)?Jt(n):n;let p=h,m=qu(p);for(;m&&g!==p;){const y=is(m),w=m.getBoundingClientRect(),k=Jr(m),O=w.left+(m.clientLeft+parseFloat(k.paddingLeft))*y.x,S=w.top+(m.clientTop+parseFloat(k.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,v*=y.y,c+=O,u+=S,p=Jt(m),m=qu(p)}}return Rl({width:f,height:v,x:c,y:u})}function Sc(t,e){const r=kc(t).scrollLeft;return e?e.left+r:Do(En(t)).left+r}function Cp(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-Sc(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function v1(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const s=o==="fixed",i=En(n),a=e?_c(e.floating):!1;if(n===i||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=Sn(1);const f=Sn(0),v=io(n);if((v||!s)&&((Vs(n)!=="body"||xc(i))&&(c=kc(n)),v)){const g=Do(n);u=is(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const h=i&&!v&&!s?Cp(i,c):Sn(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:r.y*u.y-c.scrollTop*u.y+f.y+h.y}}function g1(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function p1(t){const e=kc(t),r=t.ownerDocument.body,n=kn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=kn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-e.scrollLeft+Sc(t);const i=-e.scrollTop;return Jr(r).direction==="rtl"&&(s+=kn(t.clientWidth,r.clientWidth)-n),{width:n,height:o,x:s,y:i}}const m1=25;function b1(t,e,r){r===void 0&&(r="viewport");const n=r==="layoutViewport",o=Jt(t),s=En(t),i=o.visualViewport;let a=s.clientWidth,c=s.clientHeight,u=0,f=0;if(i){const h=!Ld()||e==="fixed";n?h||(u=-i.offsetLeft,f=-i.offsetTop):(a=i.width,c=i.height,h&&(u=i.offsetLeft,f=i.offsetTop))}if(Sc(s)<=0){const h=s.ownerDocument,g=h.body,p=getComputedStyle(g),m=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(s.clientWidth-g.clientWidth-m),w=getComputedStyle(s).scrollbarGutter==="stable both-edges"?y/2:y;w<=m1&&(a-=w)}return{width:a,height:c,x:u,y:f}}function y1(t,e){const r=Do(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,s=is(t),i=t.clientWidth*s.x,a=t.clientHeight*s.y,c=o*s.x,u=n*s.y;return{width:i,height:a,x:c,y:u}}function dh(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=b1(t,r,e);else if(e==="document")n=p1(En(t));else if(Zr(e))n=y1(e,r);else{const o=Pp(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Rl(n)}function w1(t,e){const r=e.get(t);if(r)return r;let n=bi(t,[],!1).filter(a=>Zr(a)&&Vs(a)!=="body"),o=null;const s=Jr(t).position==="fixed";let i=s?Lo(t):t;for(;Zr(i)&&!mi(i);){const a=Jr(i),c=Fd(i),u=o?o.position:s?"fixed":"";!c&&(u==="fixed"||u==="absolute"&&a.position==="static")?n=n.filter(v=>v!==i):o=a,i=Lo(i)}return e.set(t,n),n}function x1(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?_c(e)?[]:w1(e,this._c):[].concat(r),n],a=dh(e,i[0],o);let c=a.top,u=a.right,f=a.bottom,v=a.left;for(let h=1;h{a(!1,1e-7)},1e3)}N=!1}try{n=new IntersectionObserver(x,{...T,root:s.ownerDocument})}catch{n=new IntersectionObserver(x,T)}n.observe(t)}const c=Jt(t),u=()=>a(r);return c.addEventListener("resize",u),a(!0),()=>{c.removeEventListener("resize",u),i()}}function E1(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Dd(t),f=o||s?[...u?bi(u):[],...e?bi(e):[]]:[];f.forEach(w=>{o&&w.addEventListener("scroll",r),s&&w.addEventListener("resize",r)});const v=u&&a?A1(u,r,s):null;let h=-1,g=null;i&&(g=new ResizeObserver(w=>{let[k]=w;k&&k.target===u&&g&&e&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var O;(O=g)==null||O.observe(e)})),r()}),u&&!c&&g.observe(u),e&&g.observe(e));let p,m=c?Do(t):null;c&&y();function y(){const w=Do(t);m&&!Ep(m,w)&&r(),m=w,p=requestAnimationFrame(y)}return r(),()=>{var w;f.forEach(k=>{o&&k.removeEventListener("scroll",r),s&&k.removeEventListener("resize",r)}),v==null||v(),(w=g)==null||w.disconnect(),g=null,c&&cancelAnimationFrame(p)}}const T1=o1,O1=s1,$1=t1,M1=a1,I1=r1,N1=e1,z1=i1,R1=(t,e,r)=>{const n=new Map,o=r??{},s={...C1,...o.platform,_c:n};return Q0(t,e,{...o,platform:s})};function fo(t){return typeof t=="function"?t():t}function Tp(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function hh(t,e){const r=Tp(t);return Math.round(e*r)/r}function vh(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function F1(t){const e=t.whileElementsMounted,r=W(()=>fo(t.open)??!0),n=W(()=>fo(t.middleware)),o=W(()=>fo(t.transform)??!0),s=W(()=>fo(t.placement)??"bottom"),i=W(()=>fo(t.strategy)??"absolute"),a=W(()=>fo(t.sideOffset)??0),c=W(()=>fo(t.alignOffset)??0),u=t.reference;let f=Ae(0),v=Ae(0);const h=Wr(null);let g=Ae(Zt(d(i))),p=Ae(Zt(d(s))),m=Ae(Zt({})),y=Ae(!1),w=!1,k=0;const O=W(()=>{const G=h.current?hh(h.current,d(f)):d(f),K=h.current?hh(h.current,d(v)):d(v);return d(o)?{position:d(g),left:"0",top:"0",transform:`translate(${G}px, ${K}px)`,...h.current&&Tp(h.current)>=1.5&&{willChange:"transform"}}:{position:d(g),left:`${G}px`,top:`${K}px`}});let S;function P(){if(u.current===null||h.current===null)return;const G=u.current,K=h.current,L=++k;R1(G,K,{middleware:d(n),placement:d(s),strategy:d(i)}).then(U=>{if(L!==k||u.current!==G||h.current!==K)return;if(L1(G)){R(m,{...d(m),hide:{...d(m).hide,referenceHidden:!0}},!0);return}if(!d(r)&&d(f)!==0&&d(v)!==0){const z=Math.max(Math.abs(d(a)),Math.abs(d(c)),15);if(U.x<=z&&U.y<=z)return}R(f,U.x,!0),R(v,U.y,!0),R(g,U.strategy,!0),R(p,U.placement,!0),R(m,U.middlewareData,!0),R(y,!0)})}function T(){typeof S=="function"&&(S(),S=void 0),k++}function N(){if(T(),e===void 0){P();return}d(r)&&(u.current===null||h.current===null||(S=e(u.current,h.current,P)))}function x(){!d(r)&&h.current===null&&R(y,!1)}function D(){return[d(n),d(s),d(i),d(a),d(c),d(r)]}return it(()=>{e===void 0&&d(r)&&P()}),it(N),it(()=>{if(e!==void 0){if(D(),!d(r)){w=!1;return}if(!d(y)){w=!1;return}if(!w){w=!0;return}P()}}),it(x),it(()=>T),{floating:h,reference:u,get strategy(){return d(g)},get placement(){return d(p)},get middlewareData(){return d(m)},get isPositioned(){return d(y)},get floatingStyles(){return d(O)},get update(){return P}}}function L1(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const D1={top:"bottom",right:"left",bottom:"top",left:"right"},Bd=new Ko("Floating.Root"),gh=new Ko("Floating.Content"),Vd=new Ko("Floating.Root");class Fl{constructor(){ae(this,"anchorNode",Wr(null));ae(this,"customAnchorNode",Wr(null));ae(this,"triggerNode",Wr(null));it(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(e=!1){return e?Vd.set(new Fl):Bd.set(new Fl)}}var oa,sa,ia,uc,aa,dc,la,ca,ua,da,fa,ha,va,ga,pa,ma,ba,ya,wa,xa,_a,ka,Sa,Pa;const fc=class fc{constructor(e,r){ae(this,"opts");ae(this,"root");ae(this,"contentRef",Wr(null));ae(this,"wrapperRef",Wr(null));ae(this,"arrowRef",Wr(null));ae(this,"contentAttachment",Zn(this.contentRef));ae(this,"wrapperAttachment",Zn(this.wrapperRef));ae(this,"arrowAttachment",Zn(this.arrowRef));ae(this,"arrowId",Wr(Id()));_(this,oa,W(()=>{if(typeof this.opts.style=="string")return si(this.opts.style);if(!this.opts.style)return{}}));_(this,sa);_(this,ia,new h_(()=>this.arrowRef.current??void 0));_(this,uc,W(()=>{var e;return((e=l(this,ia))==null?void 0:e.width)??0}));_(this,aa,W(()=>{var e;return((e=l(this,ia))==null?void 0:e.height)??0}));_(this,dc,W(()=>{var e;return((e=this.opts.side)==null?void 0:e.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));_(this,la,W(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));_(this,ca,W(()=>d(l(this,la)).length>0));_(this,ua,W(()=>({padding:this.opts.collisionPadding.current,boundary:d(l(this,la)).filter(I_),altBoundary:this.hasExplicitBoundaries})));_(this,da,Ae(void 0));_(this,fa,Ae(void 0));_(this,ha,Ae(void 0));_(this,va,Ae(void 0));_(this,ga,W(()=>[T1({mainAxis:this.opts.sideOffset.current+d(l(this,aa)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&O1({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?z1():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&$1({...this.detectOverflowOptions}),M1({...this.detectOverflowOptions,apply:({rects:e,availableWidth:r,availableHeight:n})=>{const{width:o,height:s}=e.reference;R(l(this,da),r,!0),R(l(this,fa),n,!0),R(l(this,ha),o,!0),R(l(this,va),s,!0)}}),this.arrowRef.current&&N1({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),B1({arrowWidth:d(l(this,uc)),arrowHeight:d(l(this,aa))}),this.opts.hideWhenDetached.current&&I1({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));ae(this,"floating");_(this,pa,W(()=>V1(this.floating.placement)));_(this,ma,W(()=>W1(this.floating.placement)));_(this,ba,W(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.x)??0}));_(this,ya,W(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.y)??0}));_(this,wa,W(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.centerOffset)!==0}));_(this,xa,Ae());_(this,_a,W(()=>D1[this.placedSide]));_(this,ka,W(()=>{var e,r,n;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(e=this.floating.middlewareData.transformOrigin)==null?void 0:e.x} ${(r=this.floating.middlewareData.transformOrigin)==null?void 0:r.y}`,"--bits-floating-available-width":`${d(l(this,da))}px`,"--bits-floating-available-height":`${d(l(this,fa))}px`,"--bits-floating-anchor-width":`${d(l(this,ha))}px`,"--bits-floating-anchor-height":`${d(l(this,va))}px`,...((n=this.floating.middlewareData.hide)==null?void 0:n.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...d(l(this,oa))},dir:this.opts.dir.current,...this.wrapperAttachment}}));_(this,Sa,W(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Ag({...d(l(this,oa))}),...this.contentAttachment})));_(this,Pa,W(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=e,this.root=r,I(this,sa,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),ar(()=>e.customAnchor.current,n=>{this.root.customAnchorNode.current=n}),this.floating=F1({strategy:()=>this.opts.strategy.current,placement:()=>d(l(this,dc)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...n)=>{var s;return E1(...n,{animationFrame:((s=l(this,sa))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),it(()=>{var n;this.floating.isPositioned&&((n=this.opts.onPlaced)==null||n.current())}),ar(()=>this.contentRef.current,n=>{if(!n||!this.opts.enabled.current)return;const o=Mg(n),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==n||!this.opts.enabled.current)return;const i=o.getComputedStyle(n).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),it(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(e,r=!1){return r?gh.set(new fc(e,Vd.get())):gh.set(new fc(e,Bd.get()))}get hasExplicitBoundaries(){return d(l(this,ca))}set hasExplicitBoundaries(e){R(l(this,ca),e)}get detectOverflowOptions(){return d(l(this,ua))}set detectOverflowOptions(e){R(l(this,ua),e)}get middleware(){return d(l(this,ga))}set middleware(e){R(l(this,ga),e)}get placedSide(){return d(l(this,pa))}set placedSide(e){R(l(this,pa),e)}get placedAlign(){return d(l(this,ma))}set placedAlign(e){R(l(this,ma),e)}get arrowX(){return d(l(this,ba))}set arrowX(e){R(l(this,ba),e)}get arrowY(){return d(l(this,ya))}set arrowY(e){R(l(this,ya),e)}get cannotCenterArrow(){return d(l(this,wa))}set cannotCenterArrow(e){R(l(this,wa),e)}get contentZIndex(){return d(l(this,xa))}set contentZIndex(e){R(l(this,xa),e,!0)}get arrowBaseSide(){return d(l(this,_a))}set arrowBaseSide(e){R(l(this,_a),e)}get wrapperProps(){return d(l(this,ka))}set wrapperProps(e){R(l(this,ka),e)}get props(){return d(l(this,Sa))}set props(e){R(l(this,Sa),e)}get arrowStyle(){return d(l(this,Pa))}set arrowStyle(e){R(l(this,Pa),e)}};oa=new WeakMap,sa=new WeakMap,ia=new WeakMap,uc=new WeakMap,aa=new WeakMap,dc=new WeakMap,la=new WeakMap,ca=new WeakMap,ua=new WeakMap,da=new WeakMap,fa=new WeakMap,ha=new WeakMap,va=new WeakMap,ga=new WeakMap,pa=new WeakMap,ma=new WeakMap,ba=new WeakMap,ya=new WeakMap,wa=new WeakMap,xa=new WeakMap,_a=new WeakMap,ka=new WeakMap,Sa=new WeakMap,Pa=new WeakMap;let Yu=fc;class Ll{constructor(e,r){ae(this,"opts");ae(this,"root");this.opts=e,this.root=r,e.virtualEl&&e.virtualEl.current?r.triggerNode=Sg(e.virtualEl.current):r.triggerNode=e.ref}static create(e,r=!1){return r?new Ll(e,Vd.get()):new Ll(e,Bd.get())}}function B1(t){return{name:"transformOrigin",options:t,fn(e){var y,w,k;const{placement:r,rects:n,middlewareData:o}=e,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:t.arrowWidth,c=i?0:t.arrowHeight,[u,f]=Wd(r),v={start:"0%",center:"50%",end:"100%"}[f],h=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,g=(((k=o.arrow)==null?void 0:k.y)??0)+c/2;let p="",m="";return u==="bottom"?(p=i?v:`${h}px`,m=`${-c}px`):u==="top"?(p=i?v:`${h}px`,m=`${n.floating.height+c}px`):u==="right"?(p=`${-c}px`,m=i?v:`${g}px`):u==="left"&&(p=`${n.floating.width+c}px`,m=i?v:`${g}px`),{data:{x:p,y:m}}}}}function Wd(t){const[e,r="center"]=t.split("-");return[e,r]}function V1(t){return Wd(t)[0]}function W1(t){return Wd(t)[1]}function j1(t,e){Me(e,!0);let r=M(e,"tooltip",3,!1);Fl.create(r());var n=te(),o=E(n);Fe(o,()=>e.children??ze),b(t,n),Ie()}function G1(t,e){Me(e,!0);let r=M(e,"tooltip",3,!1);Ll.create({id:ge(()=>e.id),virtualEl:ge(()=>e.virtualEl),ref:e.ref},r());var n=te(),o=E(n);Fe(o,()=>e.children??ze),b(t,n),Ie()}function H1(t,e){Me(e,!0);let r=M(e,"side",3,"bottom"),n=M(e,"sideOffset",3,0),o=M(e,"align",3,"center"),s=M(e,"alignOffset",3,0),i=M(e,"arrowPadding",3,0),a=M(e,"avoidCollisions",3,!0),c=M(e,"collisionBoundary",19,()=>[]),u=M(e,"collisionPadding",3,0),f=M(e,"hideWhenDetached",3,!1),v=M(e,"onPlaced",3,()=>{}),h=M(e,"sticky",3,"partial"),g=M(e,"updatePositionStrategy",3,"optimized"),p=M(e,"strategy",3,"fixed"),m=M(e,"dir",3,"ltr"),y=M(e,"style",19,()=>({})),w=M(e,"wrapperId",19,Id),k=M(e,"customAnchor",3,null),O=M(e,"tooltip",3,!1);const S=Yu.create({side:ge(()=>r()),sideOffset:ge(()=>n()),align:ge(()=>o()),alignOffset:ge(()=>s()),id:ge(()=>e.id),arrowPadding:ge(()=>i()),avoidCollisions:ge(()=>a()),collisionBoundary:ge(()=>c()),collisionPadding:ge(()=>u()),hideWhenDetached:ge(()=>f()),onPlaced:ge(()=>v()),sticky:ge(()=>h()),updatePositionStrategy:ge(()=>g()),strategy:ge(()=>p()),dir:ge(()=>m()),style:ge(()=>y()),enabled:ge(()=>e.enabled),wrapperId:ge(()=>w()),customAnchor:ge(()=>k())},O()),P=W(()=>Ur(S.wrapperProps,{style:{pointerEvents:"auto"}}));var T=te(),N=E(T);Fe(N,()=>e.content??ze,()=>({props:S.props,wrapperProps:d(P)})),b(t,T),Ie()}function K1(t,e){Me(e,!0),vd(()=>{var o;(o=e.onPlaced)==null||o.call(e)});var r=te(),n=E(r);Fe(n,()=>e.content??ze,()=>({props:{},wrapperProps:{}})),b(t,r),Ie()}var U1=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function q1(t,e){let r=M(e,"isStatic",3,!1),n=Ge(e,U1);var o=te(),s=E(o);{var i=c=>{K1(c,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},a=c=>{H1(c,je({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>n))};Le(s,c=>{r()?c(i):c(a,-1)})}b(t,o)}var Y1=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]),X1=le(" ",1);function Op(t,e){Me(e,!0);let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"trapFocus",3,!0),o=M(e,"isValidEvent",3,()=>!1),s=M(e,"customAnchor",3,null),i=M(e,"isStatic",3,!1),a=M(e,"tooltip",3,!1),c=M(e,"contentPointerEvents",3,"auto"),u=Ge(e,Y1);const f=W(()=>e.preventScroll??!0),v=W(()=>e.strategy??(d(f)?"fixed":"absolute"));q1(t,{get isStatic(){return i()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return d(v)},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get enabled(){return e.enabled},get tooltip(){return a()},content:(g,p)=>{let m=()=>(p==null?void 0:p()).props,y=()=>(p==null?void 0:p()).wrapperProps;var w=X1(),k=E(w);{var O=T=>{oh(T,{get preventScroll(){return d(f)}})},S=T=>{oh(T,{get preventScroll(){return d(f)}})};Le(k,T=>{e.forceMount&&e.enabled?T(O):e.forceMount||T(S,1)})}var P=C(k,2);z0(P,{get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get enabled(){return e.enabled},get trapFocus(){return n()},get forceMount(){return e.forceMount},get ref(){return e.ref},focusScope:(N,x)=>{let D=()=>(x==null?void 0:x()).props;N0(N,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},get ref(){return e.ref},children:(G,K)=>{M0(G,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return r()},get isValidEvent(){return o()},get enabled(){return e.enabled},get ref(){return e.ref},children:(U,Z)=>{let z=()=>(Z==null?void 0:Z()).props;L0(U,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},get ref(){return e.ref},children:(F,fe)=>{var de=te(),ce=E(de);{let A=W(()=>({props:Ur(u,m(),z(),D(),{style:{pointerEvents:c()}}),wrapperProps:y()}));Fe(ce,()=>e.popper??ze,()=>d(A))}b(F,de)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),b(g,w)},$$slots:{content:!0}}),Ie()}var Z1=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function J1(t,e){let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"trapFocus",3,!0),o=M(e,"isValidEvent",3,()=>!1),s=M(e,"customAnchor",3,null),i=M(e,"isStatic",3,!1),a=Ge(e,Z1);var c=te(),u=E(c);{var f=v=>{Op(v,je({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return e.open},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return o()},get onFocusOutside(){return e.onFocusOutside},forceMount:!1,get ref(){return e.ref}},()=>a))};Le(u,v=>{e.shouldRender&&v(f)})}b(t,c)}var Q1=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function ek(t,e){let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"trapFocus",3,!0),o=M(e,"isValidEvent",3,()=>!1),s=M(e,"customAnchor",3,null),i=M(e,"isStatic",3,!1),a=Ge(e,Q1);Op(t,je({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return o()},get onFocusOutside(){return e.onFocusOutside}},()=>a,{forceMount:!0}))}var tk=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]),rk=le("
");function nk(t,e){const r=Ma();Me(e,!0);let n=M(e,"ref",15,null),o=M(e,"id",19,()=>Fa(r)),s=M(e,"disabled",3,!1),i=M(e,"onSelect",3,ht),a=M(e,"closeOnSelect",3,!0),c=Ge(e,tk);const u=Fu.create({id:ge(()=>o()),disabled:ge(()=>s()),onSelect:ge(()=>i()),ref:ge(()=>n(),m=>n(m)),closeOnSelect:ge(()=>a())}),f=W(()=>Ur(c,u.props));var v=te(),h=E(v);{var g=m=>{var y=te(),w=E(y);Fe(w,()=>e.child,()=>({props:d(f)})),b(m,y)},p=m=>{var y=rk();Ke(y,()=>({...d(f)}));var w=B(y);Fe(w,()=>e.children??ze),b(m,y)};Le(h,m=>{e.child?m(g):m(p,-1)})}b(t,v),Ie()}var ok=new Set(["$$slots","$$events","$$legacy","ref","id","child","children"]),sk=le("
");function ik(t,e){const r=Ma();Me(e,!0);let n=M(e,"ref",15,null),o=M(e,"id",19,()=>Fa(r)),s=Ge(e,ok);const i=Lu.create({id:ge(()=>o()),ref:ge(()=>n(),h=>n(h))}),a=W(()=>Ur(s,i.props));var c=te(),u=E(c);{var f=h=>{var g=te(),p=E(g);Fe(p,()=>e.child,()=>({props:d(a)})),b(h,g)},v=h=>{var g=sk();Ke(g,()=>({...d(a)}));var p=B(g);Fe(p,()=>e.children??ze),b(h,g)};Le(u,h=>{e.child?h(f):h(v,-1)})}b(t,c),Ie()}function ak(t,e){Me(e,!0);let r=M(e,"open",15,!1),n=M(e,"dir",3,"ltr"),o=M(e,"onOpenChange",3,ht),s=M(e,"onOpenChangeComplete",3,ht),i=M(e,"_internal_variant",3,"dropdown-menu"),a=M(e,"_internal_should_skip_exit_animation",3,void 0);const c=Nu.create({variant:ge(()=>i()),dir:ge(()=>n()),onClose:()=>{r(!1),o()(!1)},shouldSkipExitAnimation:()=>{var u;return((u=a())==null?void 0:u())??!1}});zu.create({open:ge(()=>r(),u=>{r(u),o()(u)}),onOpenChangeComplete:ge(()=>s())},c),j1(t,{children:(u,f)=>{var v=te(),h=E(v);Fe(h,()=>e.children??ze),b(u,v)},$$slots:{default:!0}}),Ie()}var lk=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]),ph=le("
");function ck(t,e){const r=Ma();Me(e,!0);let n=M(e,"id",19,()=>Fa(r)),o=M(e,"ref",15,null),s=M(e,"loop",3,!0),i=M(e,"onInteractOutside",3,ht),a=M(e,"onEscapeKeydown",3,ht),c=M(e,"onCloseAutoFocus",3,ht),u=M(e,"forceMount",3,!1),f=M(e,"trapFocus",3,!1),v=Ge(e,lk);const h=Ru.create({id:ge(()=>n()),loop:ge(()=>s()),ref:ge(()=>o(),S=>o(S)),onCloseAutoFocus:ge(()=>c())}),g=W(()=>Ur(v,h.props));function p(S){if(h.handleInteractOutside(S),!S.defaultPrevented&&(i()(S),!S.defaultPrevented)){if(S.target&&S.target instanceof Element){const P=`[${h.parentMenu.root.getBitsAttr("sub-content")}]`;if(S.target.closest(P))return}h.parentMenu.onClose()}}function m(S){a()(S),!S.defaultPrevented&&h.parentMenu.onClose()}var y=te(),w=E(y);{var k=S=>{ek(S,je(()=>d(g),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.parentMenu.opts.open.current},onInteractOutside:p,onEscapeKeydown:m,get trapFocus(){return f()},get loop(){return s()},forceMount:!0,get id(){return n()},get shouldRender(){return h.shouldRender},popper:(T,N)=>{let x=()=>(N==null?void 0:N()).props,D=()=>(N==null?void 0:N()).wrapperProps;const G=W(()=>Ur(x(),{style:vh("dropdown-menu")},{style:e.style}));var K=te(),L=E(K);{var U=z=>{var F=te(),fe=E(F);{let de=W(()=>({props:d(G),wrapperProps:D(),...h.snippetProps}));Fe(fe,()=>e.child,()=>d(de))}b(z,F)},Z=z=>{var F=ph();Ke(F,()=>({...D()}));var fe=B(F);Ke(fe,()=>({...d(G)}));var de=B(fe);Fe(de,()=>e.children??ze),b(z,F)};Le(L,z=>{e.child?z(U):z(Z,-1)})}b(T,K)},$$slots:{popper:!0}}))},O=S=>{J1(S,je(()=>d(g),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.parentMenu.opts.open.current},onInteractOutside:p,onEscapeKeydown:m,get trapFocus(){return f()},get loop(){return s()},forceMount:!1,get id(){return n()},get shouldRender(){return h.shouldRender},popper:(T,N)=>{let x=()=>(N==null?void 0:N()).props,D=()=>(N==null?void 0:N()).wrapperProps;const G=W(()=>Ur(x(),{style:vh("dropdown-menu")},{style:e.style}));var K=te(),L=E(K);{var U=z=>{var F=te(),fe=E(F);{let de=W(()=>({props:d(G),wrapperProps:D(),...h.snippetProps}));Fe(fe,()=>e.child,()=>d(de))}b(z,F)},Z=z=>{var F=ph();Ke(F,()=>({...D()}));var fe=B(F);Ke(fe,()=>({...d(G)}));var de=B(fe);Fe(de,()=>e.children??ze),b(z,F)};Le(L,z=>{e.child?z(U):z(Z,-1)})}b(T,K)},$$slots:{popper:!0}}))};Le(w,S=>{u()?S(k):u()||S(O,1)})}b(t,y),Ie()}var uk=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]),dk=le("");function fk(t,e){const r=Ma();Me(e,!0);let n=M(e,"id",19,()=>Fa(r)),o=M(e,"ref",15,null),s=M(e,"disabled",3,!1),i=M(e,"type",3,"button"),a=Ge(e,uk);const c=Du.create({id:ge(()=>n()),disabled:ge(()=>s()??!1),ref:ge(()=>o(),f=>o(f))}),u=W(()=>Ur(a,c.props,{type:i()}));G1(t,{get id(){return n()},get ref(){return c.opts.ref},children:(f,v)=>{var h=te(),g=E(h);{var p=y=>{var w=te(),k=E(w);Fe(k,()=>e.child,()=>({props:d(u)})),b(y,w)},m=y=>{var w=dk();Ke(w,()=>({...d(u)}));var k=B(w);Fe(k,()=>e.children??ze),b(y,w)};Le(g,y=>{e.child?y(p):y(m,-1)})}b(f,h)},$$slots:{default:!0}}),Ie()}const hk=Rg({component:"label",parts:["root"]});var Ca;const rf=class rf{constructor(e){ae(this,"opts");ae(this,"attachment");_(this,Ca,W(()=>({id:this.opts.id.current,[hk.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=Zn(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new rf(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return d(l(this,Ca))}set props(e){R(l(this,Ca),e)}};Ca=new WeakMap;let Xu=rf;var vk=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),gk=le("");function pk(t,e){const r=Ma();Me(e,!0);let n=M(e,"id",19,()=>Fa(r)),o=M(e,"ref",15,null),s=Ge(e,vk);const i=Xu.create({id:ge(()=>n()),ref:ge(()=>o(),h=>o(h))}),a=W(()=>Ur(s,i.props,{for:e.for}));var c=te(),u=E(c);{var f=h=>{var g=te(),p=E(g);Fe(p,()=>e.child,()=>({props:d(a)})),b(h,g)},v=h=>{var g=gk();Ke(g,()=>({...d(a),for:e.for}));var p=B(g);Fe(p,()=>e.children??ze),b(h,g)};Le(u,h=>{e.child?h(f):h(v,-1)})}b(t,c),Ie()}var mk=new Set(["$$slots","$$events","$$legacy","ref","class"]);function bk(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,mk);var o=te(),s=E(o);{let i=W(()=>He("gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",e.class));$(s,()=>pk,(a,c)=>{c(a,je({"data-slot":"label",get class(){return d(i)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}b(t,o),Ie()}const mh=kd({base:"rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});var yk=new Set(["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]),wk=le(""),xk=le("");function xn(t,e){Me(e,!0);let r=M(e,"variant",3,"default"),n=M(e,"size",3,"default"),o=M(e,"ref",15,null),s=M(e,"href",3,void 0),i=M(e,"type",3,"button"),a=Ge(e,yk);var c=te(),u=E(c);{var f=h=>{var g=wk();Ke(g,m=>({"data-slot":"button",class:m,href:e.disabled?void 0:s(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...a}),[()=>He(mh({variant:r(),size:n()}),e.class)]);var p=B(g);Fe(p,()=>e.children??ze),at(g,m=>o(m),()=>o()),b(h,g)},v=h=>{var g=xk();Ke(g,m=>({"data-slot":"button",class:m,type:i(),disabled:e.disabled,...a}),[()=>He(mh({variant:r(),size:n()}),e.class)]);var p=B(g);Fe(p,()=>e.children??ze),at(g,m=>o(m),()=>o()),b(h,g)};Le(u,h=>{s()?h(f):h(v,-1)})}b(t,c),Ie()}/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const _k={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const kk=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const bh=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();var Sk=$a("");function tt(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]),n=Ze(r,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);Me(e,!1);let o=M(e,"name",8,void 0),s=M(e,"color",8,"currentColor"),i=M(e,"size",8,24),a=M(e,"strokeWidth",8,2),c=M(e,"absoluteStrokeWidth",8,!1),u=M(e,"iconNode",24,()=>[]);Nb();var f=Sk();Ke(f,(g,p,m)=>({..._k,...g,...n,width:i(),height:i(),stroke:s(),"stroke-width":p,class:m}),[()=>kk(n)?void 0:{"aria-hidden":"true"},()=>(vo(c()),vo(a()),vo(i()),_r(()=>c()?Number(a())*24/Number(i()):a())),()=>(vo(bh),vo(o()),vo(r),_r(()=>bh("lucide-icon","lucide",o()?`lucide-${o()}`:"",r.class)))]);var v=B(f);It(v,1,u,Xt,(g,p)=>{var m=W(()=>Gp(d(p),2));let y=()=>d(m)[0],w=()=>d(m)[1];var k=te(),O=E(k);Iv(O,y,!0,(S,P)=>{Ke(S,()=>({...w()}))}),b(g,k)});var h=C(v);Qe(h,e,"default",{}),b(t,f),Ie()}function Pk(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["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"}]];tt(t,je({name:"activity"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ck(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];tt(t,je({name:"arrow-down-up"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ak(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]];tt(t,je({name:"arrow-down"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ek(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];tt(t,je({name:"arrow-up"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Wc(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m6 9 6 6 6-6"}]];tt(t,je({name:"chevron-down"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function jd(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]];tt(t,je({name:"circle-alert"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function yh(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["circle",{cx:"12",cy:"12",r:"1"}]];tt(t,je({name:"circle-dot"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Tk(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6h4"}]];tt(t,je({name:"clock-3"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Rn(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];tt(t,je({name:"gauge"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function wh(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];tt(t,je({name:"globe"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ok(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}]];tt(t,je({name:"inbox"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function $k(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}]];tt(t,je({name:"layout-panel-top"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Mk(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]];tt(t,je({name:"link"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ik(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M16 5H3"}],["path",{d:"M11 12H3"}],["path",{d:"M16 19H3"}],["path",{d:"m15.5 9.5 5 5"}],["path",{d:"m20.5 9.5-5 5"}]];tt(t,je({name:"list-x"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function $p(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];tt(t,je({name:"loader-circle"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Nk(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];tt(t,je({name:"log-out"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function zk(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]];tt(t,je({name:"network"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Rk(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["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"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];tt(t,je({name:"package"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Fk(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["circle",{cx:"6",cy:"19",r:"3"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"}],["circle",{cx:"18",cy:"5",r:"3"}]];tt(t,je({name:"route"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Mp(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];tt(t,je({name:"search"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Lk(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M10 5H3"}],["path",{d:"M12 19H3"}],["path",{d:"M14 3v4"}],["path",{d:"M16 17v4"}],["path",{d:"M21 12h-9"}],["path",{d:"M21 19h-5"}],["path",{d:"M21 5h-7"}],["path",{d:"M8 10v4"}],["path",{d:"M8 12H3"}]];tt(t,je({name:"sliders-horizontal"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Dk(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4"}],["path",{d:"M5 21h14"}]];tt(t,je({name:"sprout"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function xh(t,e){const r=Ze(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]];tt(t,je({name:"star"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}var Bk=le('
',1),_h=le(" ",1),Vk=le(" Signing in…",1),Wk=le('
'),jk=le('
');function Gk(t,e){Me(e,!0);let r=Ae(""),n=Ae(""),o=Ae(!1),s=Ae(null);vd(()=>{var u;(u=d(s))==null||u.focus()});async function i(){if(!(!d(r)||d(o))){R(o,!0),R(n,"");try{await ts.login(d(r)),R(r,""),e.onLogin()}catch(u){R(n,u instanceof Error?u.message:"login failed",!0)}finally{R(o,!1)}}}var a=jk(),c=B(a);$(c,()=>yt,(u,f)=>{f(u,{class:"w-full max-w-sm",children:(v,h)=>{var g=_h(),p=E(g);$(p,()=>Ot,(y,w)=>{w(y,{children:(k,O)=>{var S=Bk(),P=E(S),T=B(P);Dk(T,{class:"size-5","aria-hidden":"true"});var N=C(P,2);$(N,()=>rr,(D,G)=>{G(D,{children:(K,L)=>{var U=Pe("Sower Admin");b(K,U)},$$slots:{default:!0}})});var x=C(N,2);$(x,()=>Tt,(D,G)=>{G(D,{children:(K,L)=>{var U=Pe("输入 sower 配置中的 admin 密码。");b(K,U)},$$slots:{default:!0}})}),b(k,S)},$$slots:{default:!0}})});var m=C(p,2);$(m,()=>xt,(y,w)=>{w(y,{children:(k,O)=>{var S=Wk(),P=B(S),T=B(P);bk(T,{for:"admin-password",children:(K,L)=>{var U=Pe("Password");b(K,U)},$$slots:{default:!0}});var N=C(T,2);Pd(N,{id:"admin-password",type:"password",placeholder:"Password",autocomplete:"current-password",get ref(){return d(s)},set ref(K){R(s,K,!0)},get value(){return d(r)},set value(K){R(r,K,!0)}});var x=C(P,2);{var D=K=>{var L=te(),U=E(L);$(U,()=>Sd,(Z,z)=>{z(Z,{variant:"destructive",children:(F,fe)=>{var de=_h(),ce=E(de);jd(ce,{class:"size-4"});var A=C(ce,2);$(A,()=>md,(we,Se)=>{Se(we,{children:(q,re)=>{var H=Pe();Ee(()=>Ce(H,d(n))),b(q,H)},$$slots:{default:!0}})}),b(F,de)},$$slots:{default:!0}})}),b(K,L)};Le(x,K=>{d(n)&&K(D)})}var G=C(x,2);{let K=W(()=>d(o)||!d(r));xn(G,{type:"submit",get disabled(){return d(K)},children:(L,U)=>{var Z=te(),z=E(Z);{var F=de=>{var ce=Vk(),A=E(ce);$p(A,{class:"size-4 animate-spin","aria-hidden":"true"}),b(de,ce)},fe=de=>{var ce=Pe("Sign in");b(de,ce)};Le(z,de=>{d(o)?de(F):de(fe,-1)})}b(L,Z)},$$slots:{default:!0}})}Av("submit",S,K=>{K.preventDefault(),i()}),b(k,S)},$$slots:{default:!0}})}),b(v,g)},$$slots:{default:!0}})}),b(t,a),Ie()}function gr(t){if(!Number.isFinite(t)||t<0)return"-";if(t<1024)return`${t} B`;const e=["KB","MB","GB","TB","PB"];let r=t,n=-1;do r/=1024,n++;while(r>=1024&&n0?`${e}d ${r}h`:r>0?`${r}h ${n}m`:n>0?`${n}m ${o}s`:`${o}s`}function et(t){return t>=1e9?`${(t/1e9).toFixed(1)}B`:t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:`${t}`}function Kk(t){const e=new Date(t);if(Number.isNaN(e.getTime()))return"-";const r=o=>String(o).padStart(2,"0"),n=`${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`;return e.toDateString()===new Date().toDateString()?n:`${e.getFullYear()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${n}`}const Dt=Zt({status:null,traffic:null,history:[],connected:!1});let Ft=null,Zu="",bl=null;function jc(t){try{return JSON.parse(t)}catch{return null}}function Uk(t){bl=t}function Ip(t=""){Ft&&t===Zu||(Zu=t,Ft==null||Ft.close(),Ft=new EventSource(`/api/stream${t?`?${t}`:""}`),Ft.onopen=()=>Dt.connected=!0,Ft.onerror=()=>Dt.connected=!1,Ft.addEventListener("status",e=>{const r=jc(e.data);r&&(Dt.status=r)}),Ft.addEventListener("traffic",e=>{const r=jc(e.data);r&&(Dt.traffic=r)}),Ft.addEventListener("history",e=>{const r=jc(e.data);r&&(Dt.history=r.samples)}),Ft.addEventListener("auth",()=>{bl==null||bl()}))}function qk(){Ft==null||Ft.close(),Ft=null,Zu="",Dt.status=null,Dt.traffic=null,Dt.history=[],Dt.connected=!1}const Yk=kd({base:"h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none",variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});var Xk=new Set(["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);function Pc(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=M(e,"variant",3,"default"),o=Ge(e,Xk);var s=te(),i=E(s);Iv(i,()=>e.href?"a":"span",!1,(a,c)=>{at(a,v=>r(v),()=>r()),Ke(a,v=>({"data-slot":"badge",href:e.href,class:v,...o}),[()=>He(Yk({variant:n()}),e.class)]);var u=te(),f=E(u);Fe(f,()=>e.children??ze),b(c,u)}),b(t,s),Ie()}var Zk=le('
');function Gd(t,e){let r=M(e,"label",3,"加载中…");var n=Zk(),o=B(n);$p(o,{class:"size-4 animate-spin","aria-hidden":"true"});var s=C(o,2),i=B(s);Ee(()=>Ce(i,r())),b(t,n)}var Jk=$a(''),Qk=$a(''),eS=$a(''),tS=$a(''),rS=le(" "),nS=le('
',1),oS=le('
等待采样数据…
'),sS=le(' '),iS=le(' '),aS=le('
');function Za(t,e){Me(e,!0);let r=M(e,"height",3,160),n=M(e,"format",3,L=>String(L));const o=600,s=W(r),i=W(()=>e.series.flatMap(L=>L.values)),a=W(()=>d(i).length?Math.max(...d(i)):0),c=W(()=>d(i).length?Math.min(...d(i)):0),u=W(()=>d(a)-d(c)||1),f=W(()=>d(u)*.12),v=W(()=>d(a)+d(f)),h=W(()=>Math.max(0,d(c)-d(f))),g=W(()=>L=>e.labels.length<=1?0:L/(e.labels.length-1)*o),p=W(()=>L=>d(s)-(L-d(h))/(d(v)-d(h))*d(s)),m=W(()=>L=>L.length?L.map((U,Z)=>`${Z===0?"M":"L"}${d(g)(Z).toFixed(1)},${d(p)(U).toFixed(1)}`).join(" "):""),y=W(()=>L=>L.length?`${d(m)(L)} L${d(g)(L.length-1).toFixed(1)},${d(s)} L${d(g)(0).toFixed(1)},${d(s)} Z`:""),w=W(()=>e.labels.length<=2?[0,e.labels.length-1]:[0,Math.floor(e.labels.length/2),e.labels.length-1]),k=W(()=>d(w).map(L=>e.labels[L])),O=W(()=>e.labels.length>=2);let S=Ae(null),P=Ae(void 0);function T(L){if(!d(P))return;const U=d(P).getBoundingClientRect();if(U.width===0||e.labels.length<2)return;const Z=(L.clientX-U.left)/U.width;R(S,Math.max(0,Math.min(e.labels.length-1,Math.round(Z*(e.labels.length-1)))),!0)}var N=aS(),x=B(N);{var D=L=>{var U=nS(),Z=E(U),z=B(Z);It(z,16,()=>[.25,.5,.75],Xt,(we,Se)=>{var q=Jk();Ct(q,"x2",o),Ee(()=>{Ct(q,"y1",d(s)*Se),Ct(q,"y2",d(s)*Se)}),b(we,q)});var F=C(z);It(F,17,()=>e.series,Xt,(we,Se)=>{var q=Qk();Ee(re=>{Ct(q,"d",re),Jo(q,`fill:${d(Se).color}`)},[()=>d(y)(d(Se).values)]),b(we,q)});var fe=C(F);It(fe,17,()=>e.series,Xt,(we,Se)=>{var q=eS();Ee(re=>{Ct(q,"d",re),Jo(q,`stroke:${d(Se).color}`)},[()=>d(m)(d(Se).values)]),b(we,q)});var de=C(fe);{var ce=we=>{var Se=tS();Ee((q,re)=>{Ct(Se,"x1",q),Ct(Se,"x2",re),Ct(Se,"y2",d(s))},[()=>d(g)(d(S)),()=>d(g)(d(S))]),b(we,Se)};Le(de,we=>{d(S)!==null&&we(ce)})}at(Z,we=>R(P,we),()=>d(P));var A=C(Z,2);It(A,21,()=>d(k),Xt,(we,Se)=>{var q=rS(),re=B(q);Ee(()=>Ce(re,d(Se))),b(we,q)}),Ee(()=>{Ct(Z,"viewBox",`0 0 ${o} ${d(s)}`),Jo(Z,`height:${d(s)}px`)}),di("mousemove",Z,T),Av("mouseleave",Z,()=>R(S,null)),b(L,U)},G=L=>{var U=oS();Ee(()=>Jo(U,`height:${d(s)}px`)),b(L,U)};Le(x,L=>{d(O)?L(D):L(G,-1)})}var K=C(x,2);It(K,21,()=>e.series,Xt,(L,U)=>{var Z=iS(),z=B(Z),F=C(z),fe=C(F);{var de=ce=>{var A=sS(),we=B(A);Ee(Se=>Ce(we,Se),[()=>n()(d(U).values[d(S)]??0)]),b(ce,A)};Le(fe,ce=>{d(S)!==null&&ce(de)})}Ee(()=>{Jo(z,`background:${d(U).color}`),Ce(F,` ${d(U).name??""} `)}),b(L,Z)}),b(t,N),Ie()}hd(["mousemove"]);var ut=le(" ",1),Nn=le('
',1),lS=le('

自启动以来

'),cS=le('

全部上游查询

'),uS=le('

'),Ja=le('

近 60 秒均值

'),Gc=le('
'),dS=le('
HTTP
HTTPS
SOCKS5

',1),fS=le('
Block
Direct
Proxy

',1),hS=le('
Goroutines
堆内存
',1),vS=le('

',1);function gS(t,e){Me(e,!0);const r=W(()=>Dt.traffic),n=W(()=>Dt.history),o=p=>new Date(p).toTimeString().slice(0,5),s=W(()=>d(n).map(p=>o(p.at)));function i(p){return d(n).map((m,y)=>{if(y===0)return 0;const w=d(n)[y-1];if(!w)return 0;const k=(new Date(m.at).getTime()-new Date(w.at).getTime())/1e3;return k>0?m[p]/k:0})}const a=p=>`${gr(p)}/s`,c=p=>`${p.toFixed(1)}/s`,u=W(()=>{const p=d(n)[0],m=d(n)[d(n).length-1];return p&&m?`${o(p.at)} – ${o(m.at)} · 进程内历史,重启后清空`:"进程内历史,重启后清空"});var f=te(),v=E(f);{var h=p=>{Gd(p,{})},g=p=>{var m=vS(),y=E(m);{var w=q=>{var re=te(),H=E(re);$(H,()=>Sd,(ne,X)=>{X(ne,{variant:"destructive",class:"mb-4",children:(ie,J)=>{var Q=ut(),se=E(Q);jd(se,{class:"size-4"});var ee=C(se,2);$(ee,()=>md,(Oe,V)=>{V(Oe,{children:(Y,he)=>{var ve=Pe("实时连接已断开,正在重连…");b(Y,ve)},$$slots:{default:!0}})}),b(ie,Q)},$$slots:{default:!0}})}),b(q,re)};Le(y,q=>{Dt.connected||q(w)})}var k=C(y,2),O=B(k);$(O,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Nn(),Y=E(V),he=B(Y);$(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,De)=>{var pe=Pe("版本");b(ue,pe)},$$slots:{default:!0}})});var ve=C(he,2);Rk(ve,{class:"size-4 text-muted-foreground"});var ke=C(Y,2);$(ke,()=>rr,(oe,me)=>{me(oe,{class:"text-xl",children:(ue,De)=>{var pe=Pe();Ee(()=>Ce(pe,e.status.version||"-")),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{Pc(ee,{variant:"secondary",children:(V,Y)=>{var he=Pe();Ee(()=>Ce(he,e.status.date||"unknown build date")),b(V,he)},$$slots:{default:!0}})},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var S=C(O,2);$(S,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Nn(),Y=E(V),he=B(Y);$(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,De)=>{var pe=Pe("运行时长");b(ue,pe)},$$slots:{default:!0}})});var ve=C(he,2);Tk(ve,{class:"size-4 text-muted-foreground"});var ke=C(Y,2);$(ke,()=>rr,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,De)=>{var pe=Pe();Ee(Ne=>Ce(pe,Ne),[()=>Hk(d(r).uptime)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=lS();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var P=C(S,2);$(P,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Nn(),Y=E(V),he=B(Y);$(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,De)=>{var pe=Pe("DNS 查询");b(ue,pe)},$$slots:{default:!0}})});var ve=C(he,2);wh(ve,{class:"size-4 text-muted-foreground"});var ke=C(Y,2);$(ke,()=>rr,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,De)=>{var pe=Pe();Ee(Ne=>Ce(pe,Ne),[()=>et(d(r).dnsQueries)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=cS();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var T=C(P,2);$(T,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Nn(),Y=E(V),he=B(Y);$(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,De)=>{var pe=Pe("代理流量");b(ue,pe)},$$slots:{default:!0}})});var ve=C(he,2);Ck(ve,{class:"size-4 text-muted-foreground"});var ke=C(Y,2);$(ke,()=>rr,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,De)=>{var pe=Pe();Ee(Ne=>Ce(pe,Ne),[()=>gr(d(r).bytesUp+d(r).bytesDown)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=uS(),Y=B(V);Ee((he,ve)=>Ce(Y,`↑ ${he??""} / ↓ ${ve??""}`),[()=>gr(d(r).bytesUp),()=>gr(d(r).bytesDown)]),b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var N=C(k,2),x=B(N);$(x,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Nn(),Y=E(V),he=B(Y);$(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,De)=>{var pe=Pe("上行速率");b(ue,pe)},$$slots:{default:!0}})});var ve=C(he,2);Ek(ve,{class:"size-4 text-muted-foreground"});var ke=C(Y,2);$(ke,()=>rr,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,De)=>{var pe=Pe();Ee(Ne=>Ce(pe,`${Ne??""}/s`),[()=>gr(d(r).rates.bytesUpPerSec)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Ja();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var D=C(x,2);$(D,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Nn(),Y=E(V),he=B(Y);$(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,De)=>{var pe=Pe("下行速率");b(ue,pe)},$$slots:{default:!0}})});var ve=C(he,2);Ak(ve,{class:"size-4 text-muted-foreground"});var ke=C(Y,2);$(ke,()=>rr,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,De)=>{var pe=Pe();Ee(Ne=>Ce(pe,`${Ne??""}/s`),[()=>gr(d(r).rates.bytesDownPerSec)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Ja();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var G=C(D,2);$(G,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Nn(),Y=E(V),he=B(Y);$(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,De)=>{var pe=Pe("DNS 速率");b(ue,pe)},$$slots:{default:!0}})});var ve=C(he,2);wh(ve,{class:"size-4 text-muted-foreground"});var ke=C(Y,2);$(ke,()=>rr,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,De)=>{var pe=Pe();Ee(Ne=>Ce(pe,`${Ne??""}/s`),[()=>d(r).rates.dnsPerSec.toFixed(1)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Ja();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var K=C(G,2);$(K,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Nn(),Y=E(V),he=B(Y);$(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,De)=>{var pe=Pe("连接速率");b(ue,pe)},$$slots:{default:!0}})});var ve=C(he,2);Mk(ve,{class:"size-4 text-muted-foreground"});var ke=C(Y,2);$(ke,()=>rr,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,De)=>{var pe=Pe();Ee(Ne=>Ce(pe,`${Ne??""}/s`),[()=>d(r).rates.connsPerSec.toFixed(1)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Ja();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var L=C(N,2),U=B(L);$(U,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Gc(),Y=B(V);$(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Pe("活跃连接");b(oe,ue)},$$slots:{default:!0}})});var he=C(Y,2);zk(he,{class:"size-4 text-muted-foreground"}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{class:"space-y-2",children:(ee,Oe)=>{var V=dS(),Y=E(V),he=C(B(Y),2),ve=B(he),ke=C(Y,2),oe=C(B(ke),2),me=B(oe),ue=C(ke,2),De=C(B(ue),2),pe=B(De),Ne=C(ue,2),ot=B(Ne);Ee((gt,lt,pt)=>{Ce(ve,d(r).active.http),Ce(me,d(r).active.https),Ce(pe,d(r).active.socks5),Ce(ot,`累计 ${gt??""} / ${lt??""} / ${pt??""}`)},[()=>et(d(r).conns.http),()=>et(d(r).conns.https),()=>et(d(r).conns.socks5)]),b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var Z=C(U,2);$(Z,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Gc(),Y=B(V);$(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Pe("规则命中");b(oe,ue)},$$slots:{default:!0}})});var he=C(Y,2);Fk(he,{class:"size-4 text-muted-foreground"}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{class:"space-y-2",children:(ee,Oe)=>{var V=fS(),Y=E(V),he=C(B(Y),2),ve=B(he),ke=C(Y,2),oe=C(B(ke),2),me=B(oe),ue=C(ke,2),De=C(B(ue),2),pe=B(De),Ne=C(ue,2),ot=B(Ne);Ee((gt,lt,pt,ct,St,Vt)=>{Ce(ve,gt),Ce(me,lt),Ce(pe,pt),Ce(ot,`已配置 ${ct??""} / ${St??""} / ${Vt??""} 条`)},[()=>et(d(r).ruleHits.block),()=>et(d(r).ruleHits.direct),()=>et(d(r).ruleHits.proxy),()=>et(e.status.rules.block),()=>et(e.status.rules.direct),()=>et(e.status.rules.proxy)]),b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var z=C(Z,2);$(z,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=Gc(),Y=B(V);$(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Pe("系统");b(oe,ue)},$$slots:{default:!0}})});var he=C(Y,2);Rn(he,{class:"size-4 text-muted-foreground"}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{class:"space-y-2",children:(ee,Oe)=>{var V=hS(),Y=E(V),he=C(B(Y),2),ve=B(he),ke=C(Y,2),oe=C(B(ke),2),me=B(oe);Ee((ue,De)=>{Ce(ve,ue),Ce(me,De)},[()=>et(d(r).system.goroutines),()=>gr(d(r).system.heapAlloc)]),b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var F=C(L,2),fe=B(F);$(fe,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=ut(),Y=E(V);$(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Pe("流量历史");b(oe,ue)},$$slots:{default:!0}})});var he=C(Y,2);$(he,()=>rr,(ve,ke)=>{ke(ve,{class:"text-base",children:(oe,me)=>{var ue=Pe("上下行速率");b(oe,ue)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{{let V=W(()=>[{name:"下行",color:"var(--chart-1)",values:i("bytesDown")},{name:"上行",color:"var(--chart-4)",values:i("bytesUp")}]);Za(ee,{get series(){return d(V)},get labels(){return d(s)},format:a})}},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var de=C(fe,2);$(de,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=ut(),Y=E(V);$(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Pe("DNS 与连接");b(oe,ue)},$$slots:{default:!0}})});var he=C(Y,2);$(he,()=>rr,(ve,ke)=>{ke(ve,{class:"text-base",children:(oe,me)=>{var ue=Pe("每秒查询 / 新建连接");b(oe,ue)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{{let V=W(()=>[{name:"DNS",color:"var(--chart-2)",values:i("dns")},{name:"连接",color:"var(--chart-3)",values:i("conns")}]);Za(ee,{get series(){return d(V)},get labels(){return d(s)},format:c})}},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var ce=C(de,2);$(ce,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=ut(),Y=E(V);$(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Pe("活跃连接");b(oe,ue)},$$slots:{default:!0}})});var he=C(Y,2);$(he,()=>rr,(ve,ke)=>{ke(ve,{class:"text-base",children:(oe,me)=>{var ue=Pe("分协议在线数");b(oe,ue)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{{let V=W(()=>[{name:"HTTP",color:"var(--chart-1)",values:d(n).map(Y=>Y.activeHttp)},{name:"HTTPS",color:"var(--chart-4)",values:d(n).map(Y=>Y.activeHttps)},{name:"SOCKS5",color:"var(--chart-3)",values:d(n).map(Y=>Y.activeSocks)}]);Za(ee,{get series(){return d(V)},get labels(){return d(s)},get format(){return et}})}},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var A=C(ce,2);$(A,()=>yt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ut(),ie=E(X);$(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Oe)=>{var V=ut(),Y=E(V);$(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Pe("规则命中");b(oe,ue)},$$slots:{default:!0}})});var he=C(Y,2);$(he,()=>rr,(ve,ke)=>{ke(ve,{class:"text-base",children:(oe,me)=>{var ue=Pe("每秒路由决策");b(oe,ue)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=C(ie,2);$(J,()=>xt,(Q,se)=>{se(Q,{children:(ee,Oe)=>{{let V=W(()=>[{name:"Proxy",color:"var(--chart-1)",values:i("proxy")},{name:"Direct",color:"var(--chart-2)",values:i("direct")},{name:"Block",color:"var(--chart-5)",values:i("block")}]);Za(ee,{get series(){return d(V)},get labels(){return d(s)},format:c})}},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var we=C(F,2),Se=B(we);Ee(()=>Ce(Se,d(u))),b(p,m)};Le(v,p=>{!e.status||!d(r)?p(h):p(g,-1)})}b(t,f),Ie()}var pS=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),mS=le("");function bS(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=M(e,"value",15),o=M(e,"data-slot",3,"textarea"),s=Ge(e,pS);var i=mS();Ke(i,a=>({"data-slot":o(),class:a,...s}),[()=>He("rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e.class)]),at(i,a=>r(a),()=>r()),gu(i,n),b(t,i),Ie()}var yS=le(" ",1),wS=le('
',1),xS=le('

'),_S=le('
'),kS=le('
',1),SS=le(" ",1);function PS(t,e){Me(e,!0);const r=200;let n=Ae(null),o=Ae(0),s=Ae(0),i=Ae(""),a=Ae(""),c=Ae(""),u=Ae(!1),f=Ae(!1),v=0,h;function g(K,L){return K===v&&L===e.category}async function p(K){const L=++v,U=e.category,Z=d(a);K||R(f,!0);try{const z=await ts.rules(U,{q:Z,offset:K?0:d(s),limit:r});if(!g(L,U))return;R(n,K?z.rules:[...d(n)??[],...z.rules],!0),R(o,z.total,!0),R(s,z.offset+z.rules.length),R(c,"")}catch(z){if(!g(L,U))return;if(z instanceof oi&&z.status===401){e.onUnauthorized();return}R(c,z instanceof Error?z.message:"load failed",!0)}finally{g(L,U)&&R(f,!1)}}async function m(){var Z;const K=++v,L=e.category,U=Math.max(((Z=d(n))==null?void 0:Z.length)??r,r);try{const z=await ts.rules(L,{q:d(a),offset:0,limit:U});if(!g(K,L))return;R(n,z.rules,!0),R(o,z.total,!0),R(s,z.offset+z.rules.length),R(c,"")}catch(z){if(!g(K,L))return;if(z instanceof oi&&z.status===401){e.onUnauthorized();return}R(c,z instanceof Error?z.message:"refresh failed",!0)}}async function y(){const K=d(i).split(` -`).map(Z=>Z.trim()).filter(Z=>Z.length>0);if(K.length===0||d(u))return;const L=++v,U=e.category;R(u,!0),R(c,"");try{if(await ts.addRules(U,K),!g(L,U))return;R(i,""),await m()}catch(Z){if(!g(L,U))return;if(Z instanceof oi&&Z.status===401){e.onUnauthorized();return}R(c,Z instanceof Error?Z.message:"add failed",!0)}finally{g(L,U)&&R(u,!1)}}async function w(K){if(d(u))return;const L=++v,U=e.category;R(u,!0),R(c,"");try{if(await ts.removeRules(U,[K]),!g(L,U))return;await m()}catch(Z){if(!g(L,U))return;if(Z instanceof oi&&Z.status===401){e.onUnauthorized();return}R(c,Z instanceof Error?Z.message:"remove failed",!0)}finally{g(L,U)&&R(u,!1)}}it(()=>{e.category,clearTimeout(h),R(n,null),R(o,0),R(s,0),R(a,""),R(c,""),R(u,!1),p(!0)});function k(K){R(a,K.currentTarget.value,!0),clearTimeout(h),h=setTimeout(()=>{R(s,0),p(!0)},300)}var O=SS(),S=E(O);{var P=K=>{var L=te(),U=E(L);$(U,()=>Sd,(Z,z)=>{z(Z,{variant:"destructive",class:"mb-4",children:(F,fe)=>{var de=yS(),ce=E(de);jd(ce,{class:"size-4"});var A=C(ce,2);$(A,()=>md,(we,Se)=>{Se(we,{children:(q,re)=>{var H=Pe();Ee(()=>Ce(H,d(c))),b(q,H)},$$slots:{default:!0}})}),b(F,de)},$$slots:{default:!0}})}),b(K,L)};Le(S,K=>{d(c)&&K(P)})}var T=C(S,2);$(T,()=>yt,(K,L)=>{L(K,{class:"mb-4",children:(U,Z)=>{var z=te(),F=E(z);$(F,()=>xt,(fe,de)=>{de(fe,{class:"grid gap-3 pt-6",children:(ce,A)=>{var we=wS(),Se=E(we);bS(Se,{rows:3,placeholder:`One rule per line, e.g. example.com or **.cn -Rules take effect immediately and reset on restart.`,get value(){return d(i)},set value(ne){R(i,ne,!0)}});var q=C(Se,2),re=B(q);{let ne=W(()=>d(u)||!d(i).trim());xn(re,{onclick:y,get disabled(){return d(ne)},children:(X,ie)=>{var J=Pe("Add rules");b(X,J)},$$slots:{default:!0}})}var H=C(re,2);xn(H,{variant:"outline",onclick:()=>p(!0),get disabled(){return d(u)},children:(ne,X)=>{var ie=Pe("Refresh");b(ne,ie)},$$slots:{default:!0}}),b(ce,we)},$$slots:{default:!0}})}),b(U,z)},$$slots:{default:!0}})});var N=C(T,2);{var x=K=>{Gd(K,{})},D=K=>{var L=xS(),U=B(L);Ik(U,{class:"size-5","aria-hidden":"true"});var Z=C(U,2),z=B(Z);Ee(F=>Ce(z,F),[()=>d(a).trim()?`没有匹配“${d(a).trim()}”的规则。`:"该分类暂无规则。"]),b(K,L)},G=K=>{var L=kS(),U=E(L),Z=B(U),z=B(Z);Mp(z,{class:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"});var F=C(z,2);Pd(F,{get value(){return d(a)},oninput:k,placeholder:"搜索规则…","aria-label":"搜索规则",class:"pl-8"});var fe=C(Z,2);Pc(fe,{variant:"secondary",class:"ml-auto shrink-0",children:(we,Se)=>{var q=te(),re=E(q);{var H=X=>{var ie=Pe();Ee(J=>Ce(ie,`${J??""} rules`),[()=>et(d(o))]),b(X,ie)},ne=X=>{var ie=Pe();Ee((J,Q)=>Ce(ie,`${J??""} / ${Q??""} rules`),[()=>et(d(n).length),()=>et(d(o))]),b(X,ie)};Le(re,X=>{d(n).length===d(o)?X(H):X(ne,-1)})}b(we,q)},$$slots:{default:!0}});var de=C(U,2);$(de,()=>yt,(we,Se)=>{Se(we,{children:(q,re)=>{var H=te(),ne=E(H);$(ne,()=>xt,(X,ie)=>{ie(X,{class:"divide-y p-0",children:(J,Q)=>{var se=te(),ee=E(se);It(ee,16,()=>d(n),Oe=>Oe,(Oe,V)=>{var Y=_S(),he=B(Y),ve=B(he),ke=C(he,2);xn(ke,{variant:"ghost",size:"sm",class:"shrink-0 text-destructive hover:bg-destructive/10 hover:text-destructive",onclick:()=>w(V),get disabled(){return d(u)},children:(oe,me)=>{var ue=Pe("Remove");b(oe,ue)},$$slots:{default:!0}}),Ee(()=>Ce(ve,V)),b(Oe,Y)}),b(J,se)},$$slots:{default:!0}})}),b(q,H)},$$slots:{default:!0}})});var ce=C(de,2);{var A=we=>{{let Se=W(()=>d(f)||d(u));xn(we,{variant:"outline",class:"mt-3 w-full",onclick:()=>p(!1),get disabled(){return d(Se)},children:(q,re)=>{var H=Pe();Ee(ne=>Ce(H,ne),[()=>d(f)?"加载中…":`加载更多(已加载 ${et(d(n).length)} / ${et(d(o))})`]),b(q,H)},$$slots:{default:!0}})}};Le(ce,we=>{d(n).length{d(n)===null?K(x):d(o)===0?K(D,1):K(G,-1)})}b(t,O),Ie()}var CS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),AS=le("");function ES(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,CS);var o=AS();Ke(o,i=>({"data-slot":"table-body",class:i,...n}),[()=>He("[&_tr:last-child]:border-0",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var TS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),OS=le("");function zn(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,TS);var o=OS();Ke(o,i=>({"data-slot":"table-cell",class:i,...n}),[()=>He("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var $S=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),MS=le("");function ho(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,$S);var o=MS();Ke(o,i=>({"data-slot":"table-head",class:i,...n}),[()=>He("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var IS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),NS=le("");function zS(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,IS);var o=NS();Ke(o,i=>({"data-slot":"table-header",class:i,...n}),[()=>He("[&_tr]:border-b",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var RS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),FS=le("");function Hc(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,RS);var o=FS();Ke(o,i=>({"data-slot":"table-row",class:i,...n}),[()=>He("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var LS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),DS=le('
');function BS(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,LS);var o=DS(),s=B(o);Ke(s,a=>({"data-slot":"table",class:a,...n}),[()=>He("w-full caption-bottom text-sm",e.class)]);var i=B(s);Fe(i,()=>e.children??ze),at(s,a=>r(a),()=>r()),b(t,o),Ie()}var VS=le('

实时连接已断开,正在自动重连…

'),WS=le(''),jS=le(''),GS=le('
'),HS=le('

'),kh=le(" ",1),Sh=le(" ",1),Ph=le(" ",1),KS=le('

',1);function US(t,e){Me(e,!0);let r=M(e,"source",3,"all");const n=[{value:"bytes",label:"流量"},{value:"recent",label:"最近"},{value:"conns",label:"连接数"}],o=W(()=>Dt.traffic);let s=Ae(""),i=Ae("bytes"),a=Ae("");const c=W(()=>{var k;return((k=n.find(O=>O.value===d(i)))==null?void 0:k.label)??"流量"}),u={all:"流量",http:"HTTP",https:"HTTPS",socks5:"SOCKS5",dns:"DNS"},f=W(()=>u[r()]),v=W(()=>r()==="dns"),h=W(()=>{var S;const k=((S=d(o))==null?void 0:S.domains)??[],O=d(s).trim().toLowerCase();return O?k.filter(P=>P.domain.toLowerCase().includes(O)):k});it(()=>{const k=new URLSearchParams;d(i)!=="bytes"&&k.set("sort",d(i)),r()!=="all"&&k.set("source",r()),d(a)&&k.set("client",d(a)),Ip(k.toString())});const g="sticky top-0 z-10 bg-card";var p=te(),m=E(p);{var y=k=>{Gd(k,{})},w=k=>{var O=KS(),S=E(O);{var P=ce=>{var A=VS();b(ce,A)};Le(S,ce=>{Dt.connected||ce(P)})}var T=C(S,2),N=B(T),x=B(N);Mp(x,{class:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"});var D=C(x,2);Pd(D,{placeholder:"过滤域名…","aria-label":"过滤域名",class:"pl-8",get value(){return d(s)},set value(ce){R(s,ce,!0)}});var G=C(N,2);It(G,21,()=>n,Xt,(ce,A)=>{var we=WS(),Se=B(we);Ee(()=>{os(we,1,`rounded-sm px-2.5 py-1 text-xs font-medium transition-colors ${d(i)===d(A).value?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`),Ct(we,"aria-pressed",d(i)===d(A).value),Ce(Se,d(A).label)}),di("click",we,()=>R(i,d(A).value,!0)),b(ce,we)});var K=C(G,2);Pc(K,{variant:"secondary",class:"ml-auto shrink-0",children:(ce,A)=>{var we=te(),Se=E(we);{var q=H=>{var ne=Pe();Ee(X=>Ce(ne,`${X??""} domains`),[()=>et(d(h).length)]),b(H,ne)},re=H=>{var ne=Pe();Ee((X,ie)=>Ce(ne,`${X??""} / ${ie??""} domains`),[()=>et(d(h).length),()=>et((d(o).domains??[]).length)]),b(H,ne)};Le(Se,H=>{d(h).length===(d(o).domains??[]).length?H(q):H(re,-1)})}b(ce,we)},$$slots:{default:!0}});var L=C(T,2);{var U=ce=>{var A=GS(),we=B(A),Se=C(we,2);It(Se,17,()=>d(o).clients,Xt,(q,re)=>{var H=jS(),ne=B(H),X=C(ne),ie=B(X);Ee((J,Q)=>{os(H,1,`rounded-full border px-3 py-1 font-mono text-xs transition-colors ${d(a)===d(re).ip?"border-primary/40 bg-primary/10 text-foreground":"text-muted-foreground hover:text-foreground"}`),Ct(H,"aria-pressed",d(a)===d(re).ip),Ct(H,"title",J),Ce(ne,`${d(re).ip??""} `),Ce(ie,Q)},[()=>`${et(d(re).conns)} 次 · ↑${gr(d(re).bytesUp)} ↓${gr(d(re).bytesDown)}`,()=>et(d(re).conns)]),di("click",H,()=>R(a,d(re).ip,!0)),b(q,H)}),Ee(()=>{os(we,1,`rounded-full border px-3 py-1 text-xs font-medium transition-colors ${d(a)?"text-muted-foreground hover:text-foreground":"border-primary/40 bg-primary/10 text-foreground"}`),Ct(we,"aria-pressed",!d(a))}),di("click",we,()=>R(a,"")),b(ce,A)};Le(L,ce=>{(d(o).clients??[]).length>0&&ce(U)})}var Z=C(L,2);{var z=ce=>{var A=HS(),we=B(A);Ok(we,{class:"size-5","aria-hidden":"true"});var Se=C(we,2),q=B(Se);Ee(()=>Ce(q,`暂无${d(f)??""}记录。`)),b(ce,A)},F=ce=>{var A=te(),we=E(A);$(we,()=>yt,(Se,q)=>{q(Se,{class:"max-h-[70vh] overflow-auto",children:(re,H)=>{var ne=te(),X=E(ne);$(X,()=>BS,(ie,J)=>{J(ie,{children:(Q,se)=>{var ee=Ph(),Oe=E(ee);$(Oe,()=>zS,(Y,he)=>{he(Y,{children:(ve,ke)=>{var oe=te(),me=E(oe);$(me,()=>Hc,(ue,De)=>{De(ue,{children:(pe,Ne)=>{var ot=Sh(),gt=E(ot);$(gt,()=>ho,(rt,st)=>{st(rt,{class:g,children:(Ye,Qt)=>{var zt=Pe("Domain");b(Ye,zt)},$$slots:{default:!0}})});var lt=C(gt,2);$(lt,()=>ho,(rt,st)=>{st(rt,{class:g+" text-right",children:(Ye,Qt)=>{var zt=Pe("Requests");b(Ye,zt)},$$slots:{default:!0}})});var pt=C(lt,2);{var ct=rt=>{var st=kh(),Ye=E(st);$(Ye,()=>ho,($r,Pt)=>{Pt($r,{class:g+" text-right",children:(Et,er)=>{var lr=Pe("Up");b(Et,lr)},$$slots:{default:!0}})});var Qt=C(Ye,2);$(Qt,()=>ho,($r,Pt)=>{Pt($r,{class:g+" text-right",children:(Et,er)=>{var lr=Pe("Down");b(Et,lr)},$$slots:{default:!0}})});var zt=C(Qt,2);$(zt,()=>ho,($r,Pt)=>{Pt($r,{class:g+" text-right",children:(Et,er)=>{var lr=Pe("Total");b(Et,lr)},$$slots:{default:!0}})}),b(rt,st)};Le(pt,rt=>{d(v)||rt(ct)})}var St=C(pt,2);$(St,()=>ho,(rt,st)=>{st(rt,{class:g,children:(Ye,Qt)=>{var zt=Pe("Client");b(Ye,zt)},$$slots:{default:!0}})});var Vt=C(St,2);$(Vt,()=>ho,(rt,st)=>{st(rt,{class:g+" text-right",children:(Ye,Qt)=>{var zt=Pe("Last seen");b(Ye,zt)},$$slots:{default:!0}})}),b(pe,ot)},$$slots:{default:!0}})}),b(ve,oe)},$$slots:{default:!0}})});var V=C(Oe,2);$(V,()=>ES,(Y,he)=>{he(Y,{children:(ve,ke)=>{var oe=Ph(),me=E(oe);{var ue=pe=>{var Ne=te(),ot=E(Ne);$(ot,()=>Hc,(gt,lt)=>{lt(gt,{children:(pt,ct)=>{var St=te(),Vt=E(St);{let rt=W(()=>d(v)?4:7);$(Vt,()=>zn,(st,Ye)=>{Ye(st,{get colspan(){return d(rt)},class:"py-8 text-center text-sm text-muted-foreground",children:(Qt,zt)=>{var $r=Pe();Ee(()=>Ce($r,`没有匹配“${d(s)??""}”的域名。`)),b(Qt,$r)},$$slots:{default:!0}})})}b(pt,St)},$$slots:{default:!0}})}),b(pe,Ne)};Le(me,pe=>{d(h).length===0&&pe(ue)})}var De=C(me,2);It(De,17,()=>d(h),pe=>pe.domain,(pe,Ne)=>{var ot=te(),gt=E(ot);$(gt,()=>Hc,(lt,pt)=>{pt(lt,{children:(ct,St)=>{var Vt=Sh(),rt=E(Vt);$(rt,()=>zn,(Pt,Et)=>{Et(Pt,{class:"max-w-[20rem] truncate font-mono text-xs",children:(er,lr)=>{var tr=Pe();Ee(()=>Ce(tr,d(Ne).domain)),b(er,tr)},$$slots:{default:!0}})});var st=C(rt,2);$(st,()=>zn,(Pt,Et)=>{Et(Pt,{class:"text-right tabular-nums",children:(er,lr)=>{var tr=Pe();Ee(Qr=>Ce(tr,Qr),[()=>et(d(Ne).conns)]),b(er,tr)},$$slots:{default:!0}})});var Ye=C(st,2);{var Qt=Pt=>{var Et=kh(),er=E(Et);$(er,()=>zn,(Qr,Ws)=>{Ws(Qr,{class:"text-right tabular-nums",children:(js,nf)=>{var Tn=Pe();Ee(Gs=>Ce(Tn,Gs),[()=>gr(d(Ne).bytesUp)]),b(js,Tn)},$$slots:{default:!0}})});var lr=C(er,2);$(lr,()=>zn,(Qr,Ws)=>{Ws(Qr,{class:"text-right tabular-nums",children:(js,nf)=>{var Tn=Pe();Ee(Gs=>Ce(Tn,Gs),[()=>gr(d(Ne).bytesDown)]),b(js,Tn)},$$slots:{default:!0}})});var tr=C(lr,2);$(tr,()=>zn,(Qr,Ws)=>{Ws(Qr,{class:"text-right font-medium tabular-nums",children:(js,nf)=>{var Tn=Pe();Ee(Gs=>Ce(Tn,Gs),[()=>gr(d(Ne).bytesUp+d(Ne).bytesDown)]),b(js,Tn)},$$slots:{default:!0}})}),b(Pt,Et)};Le(Ye,Pt=>{d(v)||Pt(Qt)})}var zt=C(Ye,2);$(zt,()=>zn,(Pt,Et)=>{Et(Pt,{class:"max-w-[9rem] truncate font-mono text-xs text-muted-foreground",get title(){return d(Ne).lastClientIP},children:(er,lr)=>{var tr=Pe();Ee(()=>Ce(tr,d(Ne).lastClientIP||"—")),b(er,tr)},$$slots:{default:!0}})});var $r=C(zt,2);$($r,()=>zn,(Pt,Et)=>{Et(Pt,{class:"text-right text-muted-foreground tabular-nums",children:(er,lr)=>{var tr=Pe();Ee(Qr=>Ce(tr,Qr),[()=>Kk(d(Ne).lastSeen)]),b(er,tr)},$$slots:{default:!0}})}),b(ct,Vt)},$$slots:{default:!0}})}),b(pe,ot)}),b(ve,oe)},$$slots:{default:!0}})}),b(Q,ee)},$$slots:{default:!0}})}),b(re,ne)},$$slots:{default:!0}})}),b(ce,A)};Le(Z,ce=>{(d(o).domains??[]).length===0?ce(z):ce(F,-1)})}var fe=C(Z,2),de=B(fe);Ee(()=>Ce(de,`按${d(c)??""}排序的前 100 个${d(v)?"DNS 查询域名":d(f)+"域名"},实时推送。`)),b(k,O)};Le(m,k=>{d(o)?k(w,-1):k(y)})}b(t,p),Ie()}hd(["click"]);var qS=new Set(["$$slots","$$events","$$legacy"]);function YS(t,e){let r=Ge(e,qS);var n=te(),o=E(n);$(o,()=>H_,(s,i)=>{i(s,je(()=>r))}),b(t,n)}var XS=new Set(["$$slots","$$events","$$legacy","ref","sideOffset","align","portalProps","class"]);function Kc(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=M(e,"sideOffset",3,4),o=M(e,"align",3,"start"),s=Ge(e,XS);YS(t,je(()=>e.portalProps,{children:(i,a)=>{var c=te(),u=E(c);{let f=W(()=>He("min-w-32 rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 z-50 w-(--bits-dropdown-menu-anchor-width) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden",e.class));$(u,()=>ck,(v,h)=>{h(v,je({"data-slot":"dropdown-menu-content",get sideOffset(){return n()},get align(){return o()},get class(){return d(f)}},()=>s,{get ref(){return r()},set ref(g){r(g)}}))})}b(i,c)},$$slots:{default:!0}})),Ie()}var ZS=new Set(["$$slots","$$events","$$legacy","ref","class","inset","variant"]);function Qa(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=M(e,"variant",3,"default"),o=Ge(e,ZS);var s=te(),i=E(s);{let a=W(()=>He("gap-1.5 rounded-md px-1.5 py-1 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e.class));$(i,()=>nk,(c,u)=>{u(c,je({"data-slot":"dropdown-menu-item",get"data-inset"(){return e.inset},get"data-variant"(){return n()},get class(){return d(a)}},()=>o,{get ref(){return r()},set ref(f){r(f)}}))})}b(t,s),Ie()}var JS=new Set(["$$slots","$$events","$$legacy","ref","class","inset","children"]),QS=le("
");function Ch(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,JS);var o=QS();Ke(o,i=>({"data-slot":"dropdown-menu-label","data-inset":e.inset,class:i,...n}),[()=>He("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7 data-[inset]:pl-8",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),at(o,i=>r(i),()=>r()),b(t,o),Ie()}var eP=new Set(["$$slots","$$events","$$legacy","ref","class"]);function tP(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,eP);var o=te(),s=E(o);{let i=W(()=>He("-mx-1 my-1 h-px bg-border",e.class));$(s,()=>ik,(a,c)=>{c(a,je({"data-slot":"dropdown-menu-separator",get class(){return d(i)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}b(t,o),Ie()}var rP=new Set(["$$slots","$$events","$$legacy","ref"]);function Uc(t,e){Me(e,!0);let r=M(e,"ref",15,null),n=Ge(e,rP);var o=te(),s=E(o);$(s,()=>fk,(i,a)=>{a(i,je({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),b(t,o),Ie()}var nP=new Set(["$$slots","$$events","$$legacy","open"]);function qc(t,e){Me(e,!0);let r=M(e,"open",15,!1),n=Ge(e,nP);var o=te(),s=E(o);$(s,()=>ak,(i,a)=>{a(i,je(()=>n,{get open(){return r()},set open(c){r(c)}}))}),b(t,o),Ie()}const rs=[{key:"overview",label:"概览",description:"运行状态与流量总览"},{key:"rules",label:"规则",description:"运行期路由规则管理"},{key:"traffic",label:"流量",description:"按域名聚合的实时流量"}];var oP=le(' Sower Admin',1),sP=le(' ',1),iP=le(' ',1),Yc=le(" ",1),aP=le(' ',1),lP=le(' '),cP=le(' ',1),uP=le(' '),dP=le('
  • /
  • ',1),fP=le(' ',1),hP=le(''),vP=le(' ',1),gP=le(' ',1),pP=le('
    '),mP=le('

    暂无收藏。点击下方星标加入常用入口。

    '),bP=le(' ',1),yP=le("
    "),wP=le('
    ',1),xP=le('
    ');function _P(t,e){Me(e,!0);let r=M(e,"contextSegments",19,()=>[]),n=M(e,"onContextSelect",3,()=>{}),o=M(e,"onSelectItem",3,()=>{}),s=M(e,"onLogout",3,()=>{}),i=M(e,"status",3,null),a=M(e,"statusError",3,"");const c={overview:Rn,rules:Lk,traffic:Pk};let u=Ae(Zt([])),f=W(()=>new Set(d(u))),v=W(()=>d(u).map(z=>rs.find(F=>F.key===z)).filter(z=>!!z));const h="sower.admin.favoritePages.v1";vd(()=>{R(u,g(),!0);const z=F=>{F.key===h&&R(u,g(),!0)};return window.addEventListener("storage",z),()=>window.removeEventListener("storage",z)});function g(){const z=new Set(rs.map(F=>F.key));try{const F=JSON.parse(localStorage.getItem(h)??"[]");return(Array.isArray(F)?F:[]).filter(fe=>z.has(fe))}catch{return[]}}function p(z){R(u,z.filter((F,fe)=>z.indexOf(F)===fe),!0);try{localStorage.setItem(h,JSON.stringify(d(u)))}catch{}}function m(z,F){if(z.preventDefault(),z.stopPropagation(),d(f).has(F)){p(d(u).filter(fe=>fe!==F));return}p([...d(u),F])}function y(z){switch(z.tone){case"strong":return"text-foreground font-semibold";case"method":return"text-primary font-mono";default:return"text-muted-foreground font-medium"}}var w=xP(),k=B(w),O=B(k),S=B(O),P=B(S);xn(P,{variant:"ghost",class:"h-9 gap-1.5 px-2 text-foreground",onclick:()=>o()("overview"),title:"回到概览",children:(z,F)=>{var fe=oP(),de=E(fe);Rn(de,{class:"size-4 text-primary"}),b(z,fe)},$$slots:{default:!0}});var T=C(S,4),N=B(T);$(N,()=>qc,(z,F)=>{F(z,{children:(fe,de)=>{const ce=W(()=>c[e.activeItem.key]??Rn);var A=Yc(),we=E(A);$(we,()=>Uc,(q,re)=>{re(q,{class:"inline-flex h-9 max-w-[14rem] items-center gap-1.5 rounded-md px-2 text-sm font-semibold text-foreground transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted","aria-label":"控制台分区",children:(H,ne)=>{var X=sP(),ie=E(X);$(ie,()=>d(ce),(ee,Oe)=>{Oe(ee,{class:"size-4 shrink-0 text-primary"})});var J=C(ie,2),Q=B(J),se=C(J,2);Wc(se,{class:"size-3.5 shrink-0 text-muted-foreground"}),Ee(()=>Ce(Q,e.activeItem.label)),b(H,X)},$$slots:{default:!0}})});var Se=C(we,2);$(Se,()=>Kc,(q,re)=>{re(q,{class:"min-w-56",align:"start",children:(H,ne)=>{var X=te(),ie=E(X);It(ie,17,()=>rs,Xt,(J,Q)=>{const se=W(()=>c[d(Q).key]??Rn);var ee=te(),Oe=E(ee);{let V=W(()=>He("gap-2.5 py-2",d(Q).key===e.activeItem.key&&"bg-accent text-accent-foreground"));$(Oe,()=>Qa,(Y,he)=>{he(Y,{onSelect:()=>o()(d(Q).key),get class(){return d(V)},children:(ve,ke)=>{var oe=iP(),me=E(oe),ue=B(me);$(ue,()=>d(se),(ct,St)=>{St(ct,{class:"size-4"})});var De=C(me,2),pe=B(De),Ne=B(pe),ot=C(pe,2),gt=B(ot),lt=C(De,2);{var pt=ct=>{yh(ct,{class:"ms-auto size-4 text-primary"})};Le(lt,ct=>{d(Q).key===e.activeItem.key&&ct(pt)})}Ee(()=>{Ce(Ne,d(Q).label),Ce(gt,d(Q).description)}),b(ve,oe)},$$slots:{default:!0}})})}b(J,ee)}),b(H,X)},$$slots:{default:!0}})}),b(fe,A)},$$slots:{default:!0}})});var x=C(T,2);It(x,17,r,Xt,(z,F)=>{var fe=dP(),de=C(E(fe),2),ce=B(de);{var A=Se=>{var q=te(),re=E(q);$(re,()=>qc,(H,ne)=>{ne(H,{children:(X,ie)=>{var J=Yc(),Q=E(J);{let ee=W(()=>He("inline-flex h-9 max-w-[16rem] items-center gap-1.5 rounded-md px-2 text-sm transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted",y(d(F)))),Oe=W(()=>d(F).title??`${d(F).label}: ${d(F).value}`),V=W(()=>`${d(F).label}: ${d(F).value}`);$(Q,()=>Uc,(Y,he)=>{he(Y,{get class(){return d(ee)},get title(){return d(Oe)},get"aria-label"(){return d(V)},children:(ve,ke)=>{var oe=aP(),me=E(oe),ue=B(me),De=C(me,2),pe=B(De),Ne=C(De,2);Wc(Ne,{class:"size-3.5 shrink-0 text-muted-foreground"}),Ee(()=>{Ce(ue,d(F).label),Ce(pe,d(F).value)}),b(ve,oe)},$$slots:{default:!0}})})}var se=C(Q,2);$(se,()=>Kc,(ee,Oe)=>{Oe(ee,{class:"min-w-44",align:"start",children:(V,Y)=>{var he=te(),ve=E(he);It(ve,17,()=>d(F).options,Xt,(ke,oe)=>{var me=te(),ue=E(me);{let De=W(()=>He("gap-2",d(oe).active&&"bg-accent text-accent-foreground"));$(ue,()=>Qa,(pe,Ne)=>{Ne(pe,{onSelect:()=>n()(d(F).label,d(oe).value),get class(){return d(De)},children:(ot,gt)=>{var lt=cP(),pt=E(lt),ct=B(pt),St=C(pt,2);{var Vt=Ye=>{var Qt=lP(),zt=B(Qt);Ee(()=>Ce(zt,d(oe).description)),b(Ye,Qt)};Le(St,Ye=>{d(oe).description&&Ye(Vt)})}var rt=C(St,2);{var st=Ye=>{yh(Ye,{class:"ms-auto size-4 text-primary"})};Le(rt,Ye=>{d(oe).active&&Ye(st)})}Ee(()=>Ce(ct,d(oe).label)),b(ot,lt)},$$slots:{default:!0}})})}b(ke,me)}),b(V,he)},$$slots:{default:!0}})}),b(X,J)},$$slots:{default:!0}})}),b(Se,q)},we=Se=>{var q=uP(),re=B(q),H=B(re),ne=C(re,2),X=B(ne);Ee(ie=>{os(q,1,ie),Ct(q,"title",d(F).title??`${d(F).label}: ${d(F).value}`),Ce(H,d(F).label),Ce(X,d(F).value)},[()=>hu(He("inline-flex h-9 max-w-[16rem] items-center gap-1.5 px-2",y(d(F))))]),b(Se,q)};Le(ce,Se=>{var q;(q=d(F).options)!=null&&q.length?Se(A):Se(we,-1)})}b(z,fe)});var D=C(k,2),G=B(D);{var K=z=>{var F=hP();It(F,21,()=>d(v).slice(0,4),Xt,(fe,de)=>{const ce=W(()=>c[d(de).key]??Rn);{let A=W(()=>He("gap-1.5",d(de).key===e.activeItem.key&&"border-primary/40 bg-primary/10")),we=W(()=>`打开 ${d(de).label}`);xn(fe,{variant:"outline",size:"sm",get class(){return d(A)},get title(){return d(we)},onclick:()=>o()(d(de).key),children:(Se,q)=>{var re=fP(),H=E(re);$(H,()=>d(ce),(ie,J)=>{J(ie,{class:"size-3.5"})});var ne=C(H,2),X=B(ne);Ee(()=>Ce(X,d(de).label)),b(Se,re)},$$slots:{default:!0}})}}),b(z,F)};Le(G,z=>{d(v).length>0&&z(K)})}var L=C(G,2);$(L,()=>qc,(z,F)=>{F(z,{children:(fe,de)=>{var ce=Yc(),A=E(ce);$(A,()=>Uc,(Se,q)=>{q(Se,{class:"inline-flex h-7 items-center gap-1.5 rounded-md border border-input bg-background px-2.5 text-sm font-medium text-foreground transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted","aria-label":"页面与收藏夹",children:(re,H)=>{var ne=vP(),X=E(ne);$k(X,{class:"size-3.5"});var ie=C(X,4);Wc(ie,{class:"size-3 text-muted-foreground"}),b(re,ne)},$$slots:{default:!0}})});var we=C(A,2);$(we,()=>Kc,(Se,q)=>{q(Se,{class:"w-64",children:(re,H)=>{var ne=wP(),X=E(ne);$(X,()=>Ch,(V,Y)=>{Y(V,{children:(he,ve)=>{var ke=Pe("收藏夹");b(he,ke)},$$slots:{default:!0}})});var ie=C(X,2);{var J=V=>{var Y=pP();It(Y,21,()=>d(v),Xt,(he,ve)=>{const ke=W(()=>c[d(ve).key]??Rn);var oe=te(),me=E(oe);{let ue=W(()=>He("gap-2 py-1.5",d(ve).key===e.activeItem.key&&"bg-accent text-accent-foreground"));$(me,()=>Qa,(De,pe)=>{pe(De,{onSelect:()=>o()(d(ve).key),get class(){return d(ue)},children:(Ne,ot)=>{var gt=gP(),lt=E(gt),pt=B(lt);$(pt,()=>d(ke),(rt,st)=>{st(rt,{class:"size-3.5"})});var ct=C(lt,2),St=B(ct),Vt=C(ct,2);xh(Vt,{class:"ms-auto size-3.5 fill-current text-primary"}),Ee(()=>Ce(St,d(ve).label)),b(Ne,gt)},$$slots:{default:!0}})})}b(he,oe)}),b(V,Y)},Q=V=>{var Y=mP();b(V,Y)};Le(ie,V=>{d(v).length>0?V(J):V(Q,-1)})}var se=C(ie,2);$(se,()=>tP,(V,Y)=>{Y(V,{})});var ee=C(se,2);$(ee,()=>Ch,(V,Y)=>{Y(V,{children:(he,ve)=>{var ke=Pe("全部页面");b(he,ke)},$$slots:{default:!0}})});var Oe=C(ee,2);It(Oe,21,()=>rs,Xt,(V,Y)=>{const he=W(()=>c[d(Y).key]??Rn),ve=W(()=>d(f).has(d(Y).key));var ke=yP(),oe=B(ke);$(oe,()=>Qa,(ue,De)=>{De(ue,{onSelect:()=>o()(d(Y).key),class:"min-w-0 flex-1 gap-2 py-1.5",children:(pe,Ne)=>{var ot=bP(),gt=E(ot),lt=B(gt);$(lt,()=>d(he),(st,Ye)=>{Ye(st,{class:"size-4"})});var pt=C(gt,2),ct=B(pt),St=B(ct),Vt=C(ct,2),rt=B(Vt);Ee(()=>{Ce(St,d(Y).label),Ce(rt,d(Y).description)}),b(pe,ot)},$$slots:{default:!0}})});var me=C(oe,2);{let ue=W(()=>He("mx-0.5 shrink-0",d(ve)&&"text-primary")),De=W(()=>`${d(ve)?"取消收藏":"收藏"} ${d(Y).label}`);xn(me,{variant:"ghost",size:"icon-sm",get class(){return d(ue)},get"aria-label"(){return d(De)},get"aria-pressed"(){return d(ve)},onclick:pe=>m(pe,d(Y).key),children:(pe,Ne)=>{{let ot=W(()=>He("size-4",d(ve)&&"fill-current"));xh(pe,{get class(){return d(ot)}})}},$$slots:{default:!0}})}Ee(ue=>os(ke,1,ue),[()=>hu(He("flex items-center gap-0.5 rounded-md",d(Y).key===e.activeItem.key&&"bg-accent text-accent-foreground"))]),b(V,ke)}),b(re,ne)},$$slots:{default:!0}})}),b(fe,ce)},$$slots:{default:!0}})});var U=C(L,2);{let z=W(()=>a()?"destructive":i()?"secondary":"outline");Pc(U,{get variant(){return d(z)},class:"hidden sm:inline-flex",children:(F,fe)=>{var de=Pe();Ee(()=>Ce(de,a()?"Error":i()?"Ready":"Loading")),b(F,de)},$$slots:{default:!0}})}var Z=C(U,2);xn(Z,{variant:"ghost",size:"icon-sm",title:"退出登录","aria-label":"退出登录",get onclick(){return s()},children:(z,F)=>{Nk(z,{class:"size-4"})},$$slots:{default:!0}}),b(t,w),Ie()}var kP=le("
    "),SP=le('
    ',1);function PP(t,e){Me(e,!0);let r=Ae(!1),n=Ae("overview"),o=Ae("proxy"),s=Ae("all");const i=W(()=>Dt.status),a=W(()=>rs.find(w=>w.key===d(n))??rs[0]),c=W(()=>{switch(d(n)){case"overview":return d(i)?[{label:"version",value:d(i).version||"-",tone:"strong",title:`构建日期 ${d(i).date||"未知"}`}]:[];case"rules":return[{label:"category",value:d(o),tone:"strong",options:["block","direct","proxy"].map(w=>({label:w,value:w,active:w===d(o)}))}];case"traffic":return[{label:"source",value:d(s),tone:"strong",options:["all","http","https","socks5","dns"].map(w=>({label:w,value:w,active:w===d(s)}))}]}});function u(){R(r,!0),R(n,"overview"),Ip()}async function f(){try{await ts.logout()}catch{}finally{v()}}function v(){R(r,!1),qk()}it(()=>{Uk(v)});function h(w,k){w==="category"?R(o,k,!0):w==="source"&&R(s,k,!0)}var g=te(),p=E(g);{var m=w=>{Gk(w,{onLogin:u})},y=w=>{var k=SP(),O=E(k);_P(O,{get activeItem(){return d(a)},get contextSegments(){return d(c)},onContextSelect:h,onSelectItem:T=>R(n,T,!0),get status(){return d(i)},onLogout:f});var S=C(O,2),P=B(S);Ov(P,()=>d(n),T=>{var N=kP(),x=B(N);{var D=L=>{gS(L,{get status(){return d(i)}})},G=L=>{PS(L,{get category(){return d(o)},onUnauthorized:v})},K=L=>{US(L,{get source(){return d(s)}})};Le(x,L=>{d(n)==="overview"?L(D):d(n)==="rules"?L(G,1):L(K,-1)})}kb(1,N,()=>Vb,()=>({duration:120})),b(T,N)}),b(w,k)};Le(p,w=>{d(r)?w(y,-1):w(m)})}b(t,g),Ie()}document.documentElement.classList.add("dark");const Np=document.querySelector("#app");if(!Np)throw new Error("missing #app mount point");Tv(PP,{target:Np}); diff --git a/web/dist/assets/index-G9FsEZaz.js b/web/dist/assets/index-G9FsEZaz.js new file mode 100644 index 0000000..f303e04 --- /dev/null +++ b/web/dist/assets/index-G9FsEZaz.js @@ -0,0 +1,1233 @@ +var Gp=Object.defineProperty;var Hp=Object.getPrototypeOf;var Kp=Reflect.get;var hf=t=>{throw TypeError(t)};var Up=(t,e,r)=>e in t?Gp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>Up(t,typeof e!="symbol"?e+"":e,r),zc=(t,e,r)=>e.has(t)||hf("Cannot "+r);var c=(t,e,r)=>(zc(t,e,"read from private field"),r?r.call(t):e.get(t)),_=(t,e,r)=>e.has(t)?hf("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),M=(t,e,r,n)=>(zc(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),G=(t,e,r)=>(zc(t,e,"access private method"),r);var vf=(t,e,r,n)=>({set _(o){M(t,e,o,r)},get _(){return c(t,e,n)}}),gf=(t,e,r)=>Kp(Hp(t),r,e);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();const Dh=!1;var ad=Array.isArray,qp=Array.prototype.indexOf,El=Array.prototype.includes,_c=Array.from,Yp=Object.defineProperty,to=Object.getOwnPropertyDescriptor,Bh=Object.getOwnPropertyDescriptors,Xp=Object.prototype,Zp=Array.prototype,ld=Object.getPrototypeOf,pf=Object.isExtensible;function ss(t){return typeof t=="function"}const ze=()=>{};function Jp(t){return t()}function ou(t){for(var e=0;e{t=n,e=o});return{promise:r,resolve:t,reject:e}}function Qp(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const r=[];for(const n of t)if(r.push(n),r.length===e)break;return r}const yt=2,Fs=4,Na=8,cd=1<<24,yr=16,xr=32,Jr=64,su=128,wr=512,mt=1024,at=2048,Mr=4096,Bt=8192,lr=16384,Uo=32768,iu=1<<25,Qr=65536,Tl=1<<17,em=1<<18,qo=1<<19,Wh=1<<20,Gr=1<<25,Wo=65536,Ol=1<<21,fs=1<<22,ro=1<<23,Ur=Symbol("$state"),jh=Symbol("legacy props"),tm=Symbol(""),cl=Symbol("attributes"),au=Symbol("class"),lu=Symbol("style"),ai=Symbol("text"),ul=Symbol("form reset"),za=new class extends Error{constructor(){super(...arguments);se(this,"name","StaleReactionError");se(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Rh;const ud=!!((Rh=globalThis.document)!=null&&Rh.contentType)&&globalThis.document.contentType.includes("xml");function Gh(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function rm(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function nm(t,e,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function om(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function sm(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function im(t){throw new Error("https://svelte.dev/e/effect_orphan")}function am(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function lm(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function cm(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function um(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function dm(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function fm(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const hm=1,vm=2,Hh=4,gm=8,pm=16,mm=1,bm=2,Kh=4,ym=8,wm=16,xm=4,_m=1,km=2,it=Symbol("uninitialized"),Uh="http://www.w3.org/1999/xhtml",Sm="http://www.w3.org/2000/svg",qh="@attach";function Pm(){console.warn("https://svelte.dev/e/derived_inert")}function Cm(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Am(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Yh(t){return t===this.v}function Em(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Xh(t){return!Em(t,this.v)}let Ks=!1,Tm=!1;function Om(){Ks=!0}let Ue=null;function Ls(t){Ue=t}function mf(t){return kc().get(t)}function $m(t,e){return kc().set(t,e),e}function Mm(t){return kc().has(t)}function Im(){return kc()}function Me(t,e=!1,r){Ue={p:Ue,i:!1,c:null,e:null,s:t,x:null,r:Re,l:Ks&&!e?{s:null,u:null,$:[]}:null}}function Ie(t){var e=Ue,r=e.e;if(r!==null){e.e=null;for(var n of r)yv(n)}return e.i=!0,Ue=e.p,{}}function Us(){return!Ks||Ue!==null&&Ue.l===null}function kc(t){return Ue===null&&Gh(),Ue.c??(Ue.c=new Map(Nm(Ue)||void 0))}function Nm(t){let e=t.p;for(;e!==null;){const r=e.c;if(r!==null)return r;e=e.p}return null}let ko=[];function Zh(){var t=ko;ko=[],ou(t)}function Tr(t){if(ko.length===0&&!bi){var e=ko;queueMicrotask(()=>{e===ko&&Zh()})}ko.push(t)}function zm(){for(;ko.length>0;)Zh()}function Jh(t){var e=Re;if(e===null)return Ve.f|=ro,t;if((e.f&Uo)===0&&(e.f&Fs)===0)throw t;eo(t,e)}function eo(t,e){if(!(e!==null&&(e.f&lr)!==0)){for(;e!==null;){if((e.f&su)!==0){if((e.f&Uo)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}}const Rm=-7169;function rt(t,e){t.f=t.f&Rm|e}function dd(t){(t.f&wr)!==0||t.deps===null?rt(t,mt):rt(t,Mr)}function Qh(t){if(t!==null)for(const e of t)(e.f&yt)===0||(e.f&Wo)===0||(e.f^=Wo,Qh(e.deps))}function ev(t,e,r){(t.f&at)!==0?e.add(t):(t.f&Mr)!==0&&r.add(t),Qh(t.deps),rt(t,mt)}let Ka=!1;function Fm(t){var e=Ka;try{return Ka=!1,[t(),Ka]}finally{Ka=e}}function Lm(t,e){if(e){const r=document.body;t.autofocus=!0,Tr(()=>{document.activeElement===r&&t.focus()})}}let bf=!1;function Dm(){bf||(bf=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const r of t.target.elements)(e=r[ul])==null||e.call(r)})},{capture:!0}))}function co(t){var e=Ve,r=Re;_r(null),kr(null);try{return t()}finally{_r(e),kr(r)}}function tv(t,e,r,n=r){t.addEventListener(e,()=>co(r));const o=t[ul];o?t[ul]=()=>{o(),n(!0)}:t[ul]=()=>n(!0),Dm()}function fd(t){let e=0,r=Tn(0),n;return()=>{md()&&(d(r),Cc(()=>(e===0&&(n=Sr(()=>t(()=>Wr(r)))),e+=1,()=>{Tr(()=>{e-=1,e===0&&(n==null||n(),n=void 0,Wr(r))})})))}}var Bm=Qr|qo;function Vm(t,e,r,n){new Wm(t,e,r,n)}var hr,id,vr,Co,jt,gr,Lt,ir,ln,Ao,jn,gs,Ci,Ai,cn,ql,Ye,jm,Gm,cu,Hm,uu,dl,fl,du,fu;class Wm{constructor(e,r,n,o){_(this,Ye);se(this,"parent");se(this,"is_pending",!1);se(this,"transform_error");_(this,hr);_(this,id,null);_(this,vr);_(this,Co);_(this,jt);_(this,gr,null);_(this,Lt,null);_(this,ir,null);_(this,ln,null);_(this,Ao,0);_(this,jn,0);_(this,gs,!1);_(this,Ci,new Set);_(this,Ai,new Set);_(this,cn,null);_(this,ql,fd(()=>(M(this,cn,Tn(c(this,Ao))),()=>{M(this,cn,null)})));var s;M(this,hr,e),M(this,vr,r),M(this,Co,i=>{var a=Re;a.b=this,a.f|=su,n(i)}),this.parent=Re.b,this.transform_error=o??((s=this.parent)==null?void 0:s.transform_error)??(i=>i),M(this,jt,Yo(()=>{G(this,Ye,uu).call(this)},Bm))}defer_effect(e){ev(e,c(this,Ci),c(this,Ai))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!c(this,vr).pending}update_pending_count(e,r){G(this,Ye,du).call(this,e,r),M(this,Ao,c(this,Ao)+e),!(!c(this,cn)||c(this,gs))&&(M(this,gs,!0),Tr(()=>{M(this,gs,!1),c(this,cn)&&Bs(c(this,cn),c(this,Ao))}))}get_effect_pending(){return c(this,ql).call(this),d(c(this,cn))}error(e){if(!c(this,vr).onerror&&!c(this,vr).failed)throw e;$e!=null&&$e.is_fork?(c(this,gr)&&$e.skip_effect(c(this,gr)),c(this,Lt)&&$e.skip_effect(c(this,Lt)),c(this,ir)&&$e.skip_effect(c(this,ir)),$e.oncommit(()=>{G(this,Ye,fu).call(this,e)})):G(this,Ye,fu).call(this,e)}}hr=new WeakMap,id=new WeakMap,vr=new WeakMap,Co=new WeakMap,jt=new WeakMap,gr=new WeakMap,Lt=new WeakMap,ir=new WeakMap,ln=new WeakMap,Ao=new WeakMap,jn=new WeakMap,gs=new WeakMap,Ci=new WeakMap,Ai=new WeakMap,cn=new WeakMap,ql=new WeakMap,Ye=new WeakSet,jm=function(){try{M(this,gr,Xt(()=>c(this,Co).call(this,c(this,hr))))}catch(e){this.error(e)}},Gm=function(e){const r=c(this,vr).failed,{reset:n,invoke_onerror:o}=G(this,Ye,cu).call(this,e);Tr(o),r&&M(this,ir,Xt(()=>{r(c(this,hr),()=>e,()=>n)}))},cu=function(e){var r=!1,n=!1;const o=()=>{if(r){Am();return}r=!0,n&&fm(),c(this,ir)!==null&&Vo(c(this,ir),()=>{M(this,ir,null)}),G(this,Ye,fl).call(this,()=>{G(this,Ye,uu).call(this)})};return{reset:o,invoke_onerror:()=>{var i,a;try{n=!0,(a=(i=c(this,vr)).onerror)==null||a.call(i,e,o),n=!1}catch(l){eo(l,c(this,jt)&&c(this,jt).parent)}}}},Hm=function(){const e=c(this,vr).pending;e&&(this.is_pending=!0,M(this,Lt,Xt(()=>e(c(this,hr)))),Tr(()=>{var r=M(this,ln,document.createDocumentFragment()),n=qr();r.append(n),M(this,gr,G(this,Ye,fl).call(this,()=>Xt(()=>c(this,Co).call(this,n)))),c(this,jn)===0&&(c(this,hr).before(r),M(this,ln,null),Vo(c(this,Lt),()=>{M(this,Lt,null)}),G(this,Ye,dl).call(this,$e))}))},uu=function(){try{if(this.is_pending=this.has_pending_snippet(),M(this,jn,0),M(this,Ao,0),M(this,gr,Xt(()=>{c(this,Co).call(this,c(this,hr))})),c(this,jn)>0){var e=M(this,ln,document.createDocumentFragment());yd(c(this,gr),e);const r=c(this,vr).pending;M(this,Lt,Xt(()=>r(c(this,hr))))}else G(this,Ye,dl).call(this,$e)}catch(r){this.error(r)}},dl=function(e){this.is_pending=!1,e.transfer_effects(c(this,Ci),c(this,Ai))},fl=function(e){var r=Re,n=Ve,o=Ue;kr(c(this,jt)),_r(c(this,jt)),Ls(c(this,jt).ctx);try{return oo.ensure(),e()}catch(s){return Jh(s),null}finally{kr(r),_r(n),Ls(o)}},du=function(e,r){var n;if(!this.has_pending_snippet()){this.parent&&G(n=this.parent,Ye,du).call(n,e,r);return}M(this,jn,c(this,jn)+e),c(this,jn)===0&&(G(this,Ye,dl).call(this,r),c(this,Lt)&&Vo(c(this,Lt),()=>{M(this,Lt,null)}),c(this,ln)&&(c(this,hr).before(c(this,ln)),M(this,ln,null)))},fu=function(e){c(this,gr)&&(wt(c(this,gr)),M(this,gr,null)),c(this,Lt)&&(wt(c(this,Lt)),M(this,Lt,null)),c(this,ir)&&(wt(c(this,ir)),M(this,ir,null));let r=c(this,vr).failed;const n=o=>{const{reset:s,invoke_onerror:i}=G(this,Ye,cu).call(this,o);i(),r&&M(this,ir,G(this,Ye,fl).call(this,()=>{try{return Xt(()=>{var a=Re;a.b=this,a.f|=su,r(c(this,hr),()=>o,()=>s)})}catch(a){return eo(a,c(this,jt).parent),null}}))};Tr(()=>{var o;try{o=this.transform_error(e)}catch(s){eo(s,c(this,jt)&&c(this,jt).parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(n,s=>eo(s,c(this,jt)&&c(this,jt).parent)):n(o)})};function rv(t,e,r,n){const o=Us()?Ds:hd;var s=t.filter(g=>!g.settled),i=e.map(o);if(r.length===0&&s.length===0){n(i);return}var a=Re,l=Km(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(g=>g.promise)):null;function f(g){if((a.f&lr)===0){l();try{n([...i,...g])}catch(p){eo(p,a)}$l()}}var v=nv();if(r.length===0){u.then(()=>f([])).finally(v);return}function h(){Promise.all(r.map(g=>Um(g))).then(f).catch(g=>eo(g,a)).finally(v)}u?u.then(()=>{l(),h(),$l()}):h()}function Km(){var t=Re,e=Ve,r=Ue,n=$e;return function(s=!0){kr(t),_r(e),Ls(r),s&&(t.f&lr)===0&&(n==null||n.activate(),n==null||n.apply())}}function $l(t=!0){kr(null),_r(null),Ls(null),t&&($e==null||$e.deactivate())}function nv(){var t=Re,e=t.b,r=$e,n=!!(e!=null&&e.is_rendered());return e==null||e.update_pending_count(1,r),r.increment(n,t),()=>{e==null||e.update_pending_count(-1,r),r.decrement(n,t)}}function Ds(t){var e=yt|at;return Re!==null&&(Re.f|=qo),{ctx:Ue,deps:null,effects:null,equals:Yh,f:e,fn:t,reactions:null,rv:0,v:it,wv:0,parent:Re,ac:null}}const li=Symbol("obsolete");function Um(t,e,r){let n=Re;n===null&&rm();var o=void 0,s=Tn(it),i=!Ve,a=new Set;return ab(()=>{var g,p;var l=Re,u=Vh();o=u.promise;try{Promise.resolve(t()).then(u.resolve,m=>{m!==za&&u.reject(m)}).finally($l)}catch(m){u.reject(m),$l()}var f=$e;if(i){if((l.f&Uo)!==0)var v=nv();if((g=n.b)!=null&&g.is_rendered())(p=f.async_deriveds.get(l))==null||p.reject(li);else for(const m of a.values())m.reject(li);a.add(u),f.async_deriveds.set(l,u)}const h=(m,y=void 0)=>{v==null||v(),a.delete(u),y!==li&&(f.activate(),y?(s.f|=ro,Bs(s,y)):((s.f&ro)!==0&&(s.f^=ro),Bs(s,m)),f.deactivate())};u.promise.then(h,m=>h(null,m||"unknown"))}),Sc(()=>{for(const l of a)l.reject(li)}),new Promise(l=>{function u(f){function v(){f===o?l(s):u(o)}f.then(v,v)}u(o)})}function j(t){const e=Ds(t);return Av(e),e}function hd(t){const e=Ds(t);return e.equals=Xh,e}function qm(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r{r.ac.abort(za),r.ac=null}),r.fn!==null&&(r.teardown=ze),_i(r,0),bd(r))}function sv(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&Ws(e)}let Rc=null,ns=null,$e=null,mi=null,Pt=null,hu=null,bi=!1,Fc=!1,cs=null,hl=null;var yf=0;let Xm=1;var ps,Gn,Eo,ms,bs,ys,un,ws,Gt,Ei,dn,Ar,Fr,xs,To,qe,vu,ci,gu,iv,av,is,Zm,ui;const Yl=class Yl{constructor(){_(this,qe);se(this,"id",Xm++);_(this,ps,!1);se(this,"linked",!0);_(this,Gn,null);_(this,Eo,null);se(this,"async_deriveds",new Map);se(this,"current",new Map);se(this,"previous",new Map);_(this,ms,new Set);_(this,bs,new Set);_(this,ys,0);_(this,un,new Map);_(this,ws,null);_(this,Gt,[]);_(this,Ei,[]);_(this,dn,new Set);_(this,Ar,new Set);_(this,Fr,new Map);_(this,xs,new Set);se(this,"is_fork",!1);_(this,To,!1);ns===null?Rc=ns=this:(M(ns,Eo,this),M(this,Gn,ns)),ns=this}skip_effect(e){c(this,Fr).has(e)||c(this,Fr).set(e,{d:[],m:[]}),c(this,xs).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=c(this,Fr).get(e);if(n){c(this,Fr).delete(e);for(var o of n.d)rt(o,at),r(o);for(o of n.m)rt(o,Mr),r(o)}c(this,xs).add(e)}capture(e,r,n=!1){e.v!==it&&!this.previous.has(e)&&this.previous.set(e,e.v),(e.f&ro)===0&&(this.current.set(e,[r,n]),Pt==null||Pt.set(e,r)),this.is_fork||(e.v=r)}activate(){$e=this}deactivate(){$e=null,Pt=null}flush(){try{Fc=!0,$e=this,G(this,qe,ci).call(this)}finally{yf=0,hu=null,cs=null,hl=null,Fc=!1,$e=null,Pt=null,Bo.clear()}}discard(){var e;for(const r of c(this,bs))r(this);c(this,bs).clear();for(const r of this.async_deriveds.values())r.reject(li);G(this,qe,ui).call(this),(e=c(this,ws))==null||e.resolve()}register_created_effect(e){c(this,Ei).push(e)}increment(e,r){if(M(this,ys,c(this,ys)+1),e){let n=c(this,un).get(r)??0;c(this,un).set(r,n+1)}}decrement(e,r){if(M(this,ys,c(this,ys)-1),e){let n=c(this,un).get(r)??0;n===1?c(this,un).delete(r):c(this,un).set(r,n-1)}c(this,To)||(M(this,To,!0),Tr(()=>{M(this,To,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)c(this,dn).add(n);for(const n of r)c(this,Ar).add(n);e.clear(),r.clear()}oncommit(e){c(this,ms).add(e)}ondiscard(e){c(this,bs).add(e)}settled(){return(c(this,ws)??M(this,ws,Vh())).promise}static ensure(){if($e===null){const e=$e=new Yl;!Fc&&!bi&&Tr(()=>{c(e,ps)||e.flush()})}return $e}apply(){{Pt=null;return}}schedule(e){var o;if(hu=e,(o=e.b)!=null&&o.is_pending&&(e.f&(Fs|Na|cd))!==0&&(e.f&Uo)===0){e.b.defer_effect(e);return}for(var r=e;r.parent!==null;){r=r.parent;var n=r.f;if(cs!==null&&r===Re&&(Ve===null||(Ve.f&yt)===0))return;if((n&(Jr|xr))!==0){if((n&mt)===0)return;r.f^=mt}}c(this,Gt).push(r)}};ps=new WeakMap,Gn=new WeakMap,Eo=new WeakMap,ms=new WeakMap,bs=new WeakMap,ys=new WeakMap,un=new WeakMap,ws=new WeakMap,Gt=new WeakMap,Ei=new WeakMap,dn=new WeakMap,Ar=new WeakMap,Fr=new WeakMap,xs=new WeakMap,To=new WeakMap,qe=new WeakSet,vu=function(){if(this.is_fork)return!0;for(const n of c(this,un).keys()){for(var e=n,r=!1;e.parent!==null;){if(c(this,Fr).has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1},ci=function(){var l,u,f,v;M(this,ps,!0),yf++>1e3&&(G(this,qe,ui).call(this),Qm());for(const h of c(this,dn))c(this,Ar).delete(h),rt(h,at),this.schedule(h);for(const h of c(this,Ar))rt(h,Mr),this.schedule(h);const e=c(this,Gt);M(this,Gt,[]),this.apply();var r=cs=[],n=[],o=hl=[];for(const h of e)try{G(this,qe,gu).call(this,h,r,n)}catch(g){throw uv(h),G(this,qe,vu).call(this)||this.discard(),g}if($e=null,o.length>0){var s=Yl.ensure();for(const h of o)s.schedule(h)}if(cs=null,hl=null,G(this,qe,vu).call(this)){G(this,qe,is).call(this,n),G(this,qe,is).call(this,r);for(const[h,g]of c(this,Fr))cv(h,g);o.length>0&&G(l=$e,qe,ci).call(l);return}const i=G(this,qe,iv).call(this);if(i){G(this,qe,is).call(this,n),G(this,qe,is).call(this,r),G(u=i,qe,av).call(u,this);return}c(this,dn).clear(),c(this,Ar).clear();for(const h of c(this,ms))h(this);c(this,ms).clear(),mi=this,wf(n),wf(r),mi=null,(f=c(this,ws))==null||f.resolve();var a=$e;if(c(this,ys)===0&&(c(this,Gt).length===0||a!==null)&&G(this,qe,ui).call(this),c(this,Gt).length>0)if(a!==null){const h=a;c(h,Gt).push(...c(this,Gt).filter(g=>!c(h,Gt).includes(g)))}else a=this;a!==null&&G(v=a,qe,ci).call(v)},gu=function(e,r,n){e.f^=mt;for(var o=e.first;o!==null;){var s=o.f,i=(s&(xr|Jr))!==0,a=i&&(s&mt)!==0,l=a||(s&Bt)!==0||c(this,Fr).has(o);if(!l&&o.fn!==null){i?o.f^=mt:(s&Fs)!==0?r.push(o):Fa(o)&&((s&yr)!==0&&c(this,Ar).add(o),Ws(o));var u=o.first;if(u!==null){o=u;continue}}for(;o!==null;){var f=o.next;if(f!==null){o=f;break}o=o.parent}}},iv=function(){for(var e=c(this,Gn);e!==null;){if(!e.is_fork){for(const[r,[,n]]of this.current)if(e.current.has(r)&&!n)return e}e=c(e,Gn)}return null},av=function(e){var n;for(const[o,s]of e.current)!this.previous.has(o)&&e.previous.has(o)&&this.previous.set(o,e.previous.get(o)),this.current.set(o,s);for(const[o,s]of e.async_deriveds){const i=this.async_deriveds.get(o);i&&s.promise.then(i.resolve).catch(i.reject)}e.async_deriveds.clear(),this.transfer_effects(c(e,dn),c(e,Ar));const r=o=>{var s=o.reactions;if(s!==null&&!((o.f&yt)!==0&&(o.f&(at|Mr))===0))for(const l of s){var i=l.f;if((i&yt)!==0)r(l);else{var a=l;i&(fs|yr)&&!this.async_deriveds.has(a)&&(c(this,Ar).delete(a),rt(a,at),this.schedule(a))}}};for(const o of this.current.keys())r(o);this.oncommit(()=>e.discard()),G(n=e,qe,ui).call(n),$e=this,G(this,qe,ci).call(this)},is=function(e){for(var r=0;r!h.current.get(g)[1]);if(!(!c(h,ps)||o.length===0)){var s=o.filter(g=>!this.current.has(g));if(s.length===0)e&&h.discard();else if(r.length>0){if(e)for(const g of c(this,xs))h.unskip_effect(g,p=>{var m;(p.f&(yr|fs))!==0?h.schedule(p):G(m=h,qe,is).call(m,[p])});h.activate();var i=new Set,a=new Map;for(var l of r)lv(l,s,i,a);a=new Map;var u=[...h.current].filter(([g,p])=>{const m=this.current.get(g);return m?m[0]!==p[0]||m[1]!==p[1]:!0}).map(([g])=>g);if(u.length>0)for(const g of c(this,Ei))(g.f&(lr|Bt|Tl))===0&&gd(g,u,a)&&((g.f&(fs|yr))!==0?(rt(g,at),h.schedule(g)):c(h,dn).add(g));if(c(h,Gt).length>0&&!c(h,To)){h.apply();for(var f of c(h,Gt))G(v=h,qe,gu).call(v,f,[],[]);M(h,Gt,[])}h.deactivate()}}}},ui=function(){if(this.linked){var e=c(this,Gn),r=c(this,Eo);e===null?Rc=r:M(e,Eo,r),r===null?ns=e:M(r,Gn,e),this.linked=!1}};let oo=Yl;function Jm(t){var e=bi;bi=!0;try{for(var r;;){if(zm(),$e===null)return r;$e.flush()}}finally{bi=e}}function Qm(){try{am()}catch(t){eo(t,hu)}}let Cr=null;function wf(t){var e=t.length;if(e!==0){for(var r=0;r0)){Bo.clear();for(const o of Cr){if((o.f&(lr|Bt))!==0)continue;const s=[o];let i=o.parent;for(;i!==null;)Cr.has(i)&&(Cr.delete(i),s.push(i)),i=i.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(lr|Bt))===0&&Ws(l)}}Cr.clear()}}Cr=null}}function lv(t,e,r,n){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const o of t.reactions){const s=o.f;(s&yt)!==0?lv(o,e,r,n):(s&(fs|yr))!==0&&(s&at)===0&&gd(o,e,n)&&(rt(o,at),pd(o))}}function gd(t,e,r){const n=r.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const o of t.deps){if(El.call(e,o))return!0;if((o.f&yt)!==0&&gd(o,e,r))return r.set(o,!0),!0}return r.set(t,!1),!1}function pd(t){$e.schedule(t)}function cv(t,e){if(!((t.f&xr)!==0&&(t.f&mt)!==0)){(t.f&at)!==0?e.d.push(t):(t.f&Mr)!==0&&e.m.push(t),rt(t,mt);for(var r=t.first;r!==null;)cv(r,e),r=r.next}}function uv(t){rt(t,mt);for(var e=t.first;e!==null;)uv(e),e=e.next}let Ml=new Set;const Bo=new Map;let dv=!1;function Tn(t,e){var r={f:0,v:t,reactions:null,equals:Yh,rv:0,wv:0};return r}function Ce(t,e){const r=Tn(t);return Av(r),r}function eb(t,e=!1,r=!0){var o;const n=Tn(t);return e||(n.equals=Xh),Ks&&r&&Ue!==null&&Ue.l!==null&&((o=Ue.l).s??(o.s=[])).push(n),n}function N(t,e,r=!1){Ve!==null&&(!Or||(Ve.f&Tl)!==0)&&Us()&&(Ve.f&(yt|yr|fs|Tl))!==0&&(Yr===null||!Yr.has(t))&&dm();let n=r?Jt(e):e;return Bs(t,n,hl)}function Bs(t,e,r=null){if(!t.equals(e)){Bo.set(t,On?e:t.v);var n=oo.ensure();if(n.capture(t,e),(t.f&yt)!==0){const o=t;(t.f&at)!==0&&vd(o),Pt===null&&dd(o)}t.wv=Tv(),fv(t,at,r),Us()&&Re!==null&&(Re.f&mt)!==0&&(Re.f&(xr|Jr))===0&&(fr===null?ub([t]):fr.push(t)),!n.is_fork&&Ml.size>0&&!dv&&tb()}return e}function tb(){dv=!1;for(const t of Ml){(t.f&mt)!==0&&rt(t,Mr);let e;try{e=Fa(t)}catch{e=!0}e&&Ws(t)}Ml.clear()}function xf(t,e=1){var r=d(t),n=e===1?r++:r--;return N(t,r),n}function Wr(t){N(t,t.v+1)}function fv(t,e,r){var n=t.reactions;if(n!==null)for(var o=Us(),s=n.length,i=0;i{if(Cn===s)return a();var l=Ve,u=Cn;_r(null),Pf(s);var f=a();return _r(l),Pf(u),f};return n&&r.set("length",Ce(t.length)),new Proxy(t,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&cm();var f=r.get(l);return f===void 0?i(()=>{var v=Ce(u.value);return r.set(l,v),v}):N(f,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const f=i(()=>Ce(it));r.set(l,f),Wr(o)}}else N(u,it),Wr(o);return!0},get(a,l,u){var g;if(l===Ur)return t;var f=r.get(l),v=l in a;if(f===void 0&&(!v||(g=to(a,l))!=null&&g.writable)&&(f=i(()=>{var p=Jt(v?a[l]:it),m=Ce(p);return m}),r.set(l,f)),f!==void 0){var h=d(f);return h===it?void 0:h}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=d(f))}else if(u===void 0){var v=r.get(l),h=v==null?void 0:v.v;if(v!==void 0&&h!==it)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(a,l){var h;if(l===Ur)return!0;var u=r.get(l),f=u!==void 0&&u.v!==it||Reflect.has(a,l);if(u!==void 0||Re!==null&&(!f||(h=to(a,l))!=null&&h.writable)){u===void 0&&(u=i(()=>{var g=f?Jt(a[l]):it,p=Ce(g);return p}),r.set(l,u));var v=d(u);if(v===it)return!1}return f},set(a,l,u,f){var z;var v=r.get(l),h=l in a;if(n&&l==="length")for(var g=u;gCe(it)),r.set(g+"",p))}if(v===void 0)(!h||(z=to(a,l))!=null&&z.writable)&&(v=i(()=>Ce(void 0)),N(v,Jt(u)),r.set(l,v));else{h=v.v!==it;var m=i(()=>Jt(u));N(v,m)}var y=Reflect.getOwnPropertyDescriptor(a,l);if(y!=null&&y.set&&y.set.call(f,u),!h){if(n&&typeof l=="string"){var w=r.get("length"),P=Number(l);Number.isInteger(P)&&P>=w.v&&N(w,P+1)}Wr(o)}return!0},ownKeys(a){d(o);var l=Reflect.ownKeys(a).filter(v=>{var h=r.get(v);return h===void 0||h.v!==it});for(var[u,f]of r)f.v!==it&&!(u in a)&&l.push(u);return l},setPrototypeOf(){um()}})}function _f(t){try{if(t!==null&&typeof t=="object"&&Ur in t)return t[Ur]}catch{}return t}function rb(t,e){return Object.is(_f(t),_f(e))}var kf,hv,vv,gv;function nb(){if(kf===void 0){kf=window,hv=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;vv=to(e,"firstChild").get,gv=to(e,"nextSibling").get,pf(t)&&(t[au]=void 0,t[cl]=null,t[lu]=void 0,t.__e=void 0),pf(r)&&(r[ai]=void 0)}}function qr(t=""){return document.createTextNode(t)}function Vs(t){return vv.call(t)}function Ra(t){return gv.call(t)}function D(t,e){return Vs(t)}function E(t,e=!1){{var r=Vs(t);return r instanceof Comment&&r.data===""?Ra(r):r}}function A(t,e=1,r=!1){let n=t;for(;e--;)n=Ra(n);return n}function ob(t){t.textContent=""}function pv(){return!1}function mv(t,e,r){return e==null||e===Uh?r?document.createElement(t,{is:r}):document.createElement(t):r?document.createElementNS(e,t,{is:r}):document.createElementNS(e,t)}function bv(t){Re===null&&(Ve===null&&im(),sm()),On&&om()}function sb(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function Pr(t,e){var r=Re;r!==null&&(r.f&Bt)!==0&&(t|=Bt);var n={ctx:Ue,deps:null,nodes:null,f:t|at|wr,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};$e==null||$e.register_created_effect(n);var o=n;if((t&Fs)!==0)cs!==null?cs.push(n):oo.ensure().schedule(n);else if(e!==null){try{Ws(n)}catch(i){throw wt(n),i}o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&qo)===0&&(o=o.first,(t&yr)!==0&&(t&Qr)!==0&&o!==null&&(o.f|=Qr))}if(o!==null&&(o.parent=r,r!==null&&sb(o,r),Ve!==null&&(Ve.f&yt)!==0&&(t&Jr)===0)){var s=Ve;(s.effects??(s.effects=[])).push(o)}return n}function md(){return Ve!==null&&!Or}function Sc(t){const e=Pr(Na,null);return rt(e,mt),e.teardown=t,e}function nt(t){bv();var e=Re.f,r=!Ve&&(e&xr)!==0&&Ue!==null&&!Ue.i;if(r){var n=Ue;(n.e??(n.e=[])).push(t)}else return yv(t)}function yv(t){return Pr(Fs|Wh,t)}function wv(t){return bv(),Pr(Na|Wh,t)}function xv(t){oo.ensure();const e=Pr(Jr|qo,t);return()=>{wt(e)}}function ib(t){oo.ensure();const e=Pr(Jr|qo,t);return(r={})=>new Promise(n=>{r.outro?Vo(e,()=>{wt(e),n(void 0)}):(wt(e),n(void 0))})}function Pc(t){return Pr(Fs,t)}function ab(t){return Pr(fs|qo,t)}function Cc(t,e=0){return Pr(Na|e,t)}function Ae(t,e=[],r=[],n=[]){rv(n,e,r,o=>{Pr(Na,()=>{t(...o.map(d))})})}function Yo(t,e=0){var r=Pr(yr|e,t);return r}function _v(t,e=0){var r=Pr(cd|e,t);return r}function Xt(t){return Pr(xr|qo,t)}function kv(t){var e=t.teardown;if(e!==null){const r=On,n=Ve;Sf(!0),_r(null);try{e.call(null)}finally{Sf(r),_r(n)}}}function bd(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const o=r.ac;o!==null&&co(()=>{o.abort(za)});var n=r.next;(r.f&Jr)!==0?r.parent=null:wt(r,e),r=n}}function lb(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&xr)===0&&wt(e),e=r}}function wt(t,e=!0){var r=!1;(e||(t.f&em)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(cb(t.nodes.start,t.nodes.end),r=!0),t.f|=iu,bd(t,e&&!r),_i(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)s.stop();kv(t),t.f^=iu,t.f|=lr;var o=t.parent;o!==null&&o.first!==null&&Sv(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function cb(t,e){for(;t!==null;){var r=t===e?null:Ra(t);t.remove(),t=r}}function Sv(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Vo(t,e,r=!0){var n=[];Pv(t,n,!0);var o=()=>{r&&wt(t),e&&e()},s=n.length;if(s>0){var i=()=>--s||o();for(var a of n)a.out(i)}else o()}function Pv(t,e,r){if((t.f&Bt)===0){t.f^=Bt;var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&e.push(a);for(var o=t.first;o!==null;){var s=o.next;if((o.f&Jr)===0){var i=(o.f&Qr)!==0||(o.f&xr)!==0&&(t.f&yr)!==0;Pv(o,e,i?r:!1)}o=s}}}function Il(t){Cv(t,!0)}function Cv(t,e){if((t.f&Bt)!==0){t.f^=Bt,(t.f&mt)===0&&(rt(t,at),oo.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Qr)!==0||(r.f&xr)!==0;Cv(r,o?e:!1),r=n}var s=t.nodes&&t.nodes.t;if(s!==null)for(const i of s)(i.is_global||e)&&i.in()}}function yd(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var o=r===n?null:Ra(r);e.append(r),r=o}}let vl=!1,On=!1;function Sf(t){On=t}let Ve=null,Or=!1;function _r(t){Ve=t}let Re=null;function kr(t){Re=t}let Yr=null;function Av(t){Ve!==null&&(Yr??(Yr=new Set)).add(t)}let Yt=null,sr=0,fr=null;function ub(t){fr=t}let Ev=1,So=0,Cn=So;function Pf(t){Cn=t}function Tv(){return++Ev}function Fa(t){var e=t.f;if((e&at)!==0)return!0;if(e&yt&&(t.f&=~Wo),(e&Mr)!==0){for(var r=t.deps,n=r.length,o=0;ot.wv)return!0}(e&wr)!==0&&Pt===null&&rt(t,mt)}return!1}function Ov(t,e,r=!0){var n=t.reactions;if(n!==null&&!(Yr!==null&&Yr.has(t)))for(var o=0;o{t.ac.abort(za)}),t.ac=null);try{t.f|=Ol;var f=t.fn,v=f();t.f|=Uo;var h=t.deps,g=$e==null?void 0:$e.is_fork;if(Yt!==null){var p;if(g||_i(t,sr),h!==null&&sr>0)for(h.length=sr+Yt.length,p=0;p{s.ac.abort(za),s.ac=null,rt(s,at)}),Ym(s),_i(s,0)}}function _i(t,e){var r=t.deps;if(r!==null)for(var n=e;nr==null?void 0:r.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Tr(()=>{e.addEventListener(t,o,n)}):e.addEventListener(t,o,n),o}function zt(t,e,r,n={}){var o=wd(e,t,r,n);return()=>{t.removeEventListener(e,o,n)}}function Rv(t,e,r,n,o){var s={capture:n,passive:o},i=wd(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Sc(()=>{e.removeEventListener(t,i,s)})}function xo(t,e,r){(e[Po]??(e[Po]={}))[t]=r}function xd(t){for(var e=0;e{throw w});throw h}}finally{t[Po]=e,delete t.currentTarget,_r(f),kr(v)}}}var Fh;const Lc=((Fh=globalThis==null?void 0:globalThis.window)==null?void 0:Fh.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function wb(t){return(Lc==null?void 0:Lc.createHTML(t))??t}function Fv(t){var e=mv("template");return e.innerHTML=wb(t.replaceAll("","")),e.content}function js(t,e){var r=Re;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function oe(t,e){var r=(e&_m)!==0,n=(e&km)!==0,o,s=!t.startsWith("");return()=>{o===void 0&&(o=Fv(s?t:""+t),r||(o=Vs(o)));var i=n||hv?document.importNode(o,!0):o.cloneNode(!0);if(r){var a=Vs(i),l=i.lastChild;js(a,l)}else js(i,i);return i}}function xb(t,e,r="svg"){var n=!t.startsWith(""),o=`<${r}>${n?t:""+t}`,s;return()=>{if(!s){var i=Fv(o),a=Vs(i);s=Vs(a)}var l=s.cloneNode(!0);return js(l,l),l}}function La(t,e){return xb(t,e,"svg")}function Pe(t=""){{var e=qr(t+"");return js(e,e),e}}function ne(){var t=document.createDocumentFragment(),e=document.createComment(""),r=qr();return t.append(e,r),js(e,r),t}function b(t,e){t!==null&&t.before(e)}function Da(){var t;return(t=window.__svelte??(window.__svelte={})).uid??(t.uid=1),`c${window.__svelte.uid++}`}let Nl=!0;function Ua(t){Nl=t}function Se(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[ai]??(t[ai]=t.nodeValue))&&(t[ai]=r,t.nodeValue=`${r}`)}function Lv(t,e){return _b(t,e)}const qa=new Map;function _b(t,{target:e,anchor:r,props:n={},events:o,context:s,intro:i=!0,transformError:a}){nb();var l=void 0,u=ib(()=>{var f=r??e.appendChild(qr());Vm(f,{pending:()=>{}},g=>{Me({});var p=Ue;s&&(p.c=s),o&&(n.$$events=o),Nl=i,l=t(g,n)||{},Nl=!0,Ie()},a);var v=new Set,h=g=>{for(var p=0;p{var y;for(var g of v)for(const w of[e,document]){var p=qa.get(w),m=p.get(g);--m==0?(w.removeEventListener(g,bu),p.delete(g),p.size===0&&qa.delete(w)):p.set(g,m)}mu.delete(h),f!==r&&((y=f.parentNode)==null||y.removeChild(f))}});return yu.set(l,u),l}let yu=new WeakMap;function kb(t,e){const r=yu.get(t);return r?(yu.delete(t),r(e)):Promise.resolve()}var Er,Lr,ar,Oo,Ti,Oi,Xl;class Ba{constructor(e,r=!0){se(this,"anchor");_(this,Er,new Map);_(this,Lr,new Map);_(this,ar,new Map);_(this,Oo,new Set);_(this,Ti,!0);_(this,Oi,e=>{if(c(this,Er).has(e)){var r=c(this,Er).get(e),n=c(this,Lr).get(r);if(n)Il(n),c(this,Oo).delete(r);else{var o=c(this,ar).get(r);o&&(Il(o.effect),c(this,Lr).set(r,o.effect),c(this,ar).delete(r),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[s,i]of c(this,Er)){if(c(this,Er).delete(s),s===e)break;const a=c(this,ar).get(i);a&&(wt(a.effect),c(this,ar).delete(i))}for(const[s,i]of c(this,Lr)){if(s===r||c(this,Oo).has(s))continue;const a=()=>{if(Array.from(c(this,Er).values()).includes(s)){var u=document.createDocumentFragment();yd(i,u),u.append(qr()),c(this,ar).set(s,{effect:i,fragment:u})}else wt(i);c(this,Oo).delete(s),c(this,Lr).delete(s)};c(this,Ti)||!n?(c(this,Oo).add(s),Vo(i,a,!1)):a()}}});_(this,Xl,e=>{c(this,Er).delete(e);const r=Array.from(c(this,Er).values());for(const[n,o]of c(this,ar))r.includes(n)||(wt(o.effect),c(this,ar).delete(n))});this.anchor=e,M(this,Ti,r)}ensure(e,r){var n=$e,o=pv();if(r&&!c(this,Lr).has(e)&&!c(this,ar).has(e))if(o){var s=document.createDocumentFragment(),i=qr();s.append(i),c(this,ar).set(e,{effect:Xt(()=>r(i)),fragment:s})}else c(this,Lr).set(e,Xt(()=>r(this.anchor)));if(c(this,Er).set(n,e),o){for(const[a,l]of c(this,Lr))a===e?n.unskip_effect(l):n.skip_effect(l);for(const[a,l]of c(this,ar))a===e?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit(c(this,Oi)),n.ondiscard(c(this,Xl))}else c(this,Oi).call(this,n)}}Er=new WeakMap,Lr=new WeakMap,ar=new WeakMap,Oo=new WeakMap,Ti=new WeakMap,Oi=new WeakMap,Xl=new WeakMap;function Ne(t,e,r=!1){var n=new Ba(t),o=r?Qr:0;function s(i,a){n.ensure(i,a)}Yo(()=>{var i=!1;e((a,l=0)=>{i=!0,s(l,a)}),i||s(-1,null)},o)}const Sb=Symbol("NaN");function Dv(t,e,r){var n=new Ba(t),o=!Us();Yo(()=>{var s=e();s!==s&&(s=Sb),o&&s!==null&&typeof s=="object"&&(s={}),n.ensure(s,r)})}function Zt(t,e){return e}function Pb(t,e,r){for(var n=[],o=e.length,s,i=e.length,a=0;a{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var h=t.outrogroups;wu(t,_c(s.done)),h.delete(s),h.size===0&&(t.outrogroups=null)}}else i-=1},!1)}if(i===0){var l=n.length===0&&r!==null;if(l){var u=r,f=u.parentNode;ob(f),f.append(u),t.items.clear()}wu(t,e,!l)}else s={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(s)}function wu(t,e,r=!0){var n;if(t.pending.size>0){n=new Set;for(const i of t.pending.values())for(const a of i)n.add(t.items.get(a).e)}for(var o=0;o{var z=r();return ad(z)?z:z==null?[]:_c(z)}),h,g=new Map,p=!0;function m(z){(P.effect.f&lr)===0&&(P.pending.delete(z),P.fallback=f,Cb(P,h,i,e,n),f!==null&&(h.length===0?(f.f&Gr)===0?Il(f):(f.f^=Gr,di(f,null,i)):Vo(f,()=>{f=null})))}function y(z){P.pending.delete(z)}var w=Yo(()=>{h=d(v);for(var z=h.length,S=new Set,k=$e,C=pv(),R=0;Rs(i)):(f=Xt(()=>s(Af??(Af=qr()))),f.f|=Gr)),z>S.size&&nm(),!p)if(g.set(k,S),C){for(const[U,V]of a)S.has(U)||k.skip_effect(V.e);k.oncommit(m),k.ondiscard(y)}else m(k);d(v)}),P={effect:w,items:a,pending:g,outrogroups:null,fallback:f};p=!1}function Qs(t){for(;t!==null&&(t.f&xr)===0;)t=t.next;return t}function Cb(t,e,r,n,o){var H,U,V,q,ee,I,L,de,ce;var s=(n&gm)!==0,i=e.length,a=t.items,l=Qs(t.effect.first),u,f=null,v,h=[],g=[],p,m,y,w;if(s)for(w=0;w0){var B=(n&Hh)!==0&&i===0?r:null;if(s){for(w=0;w{var _e,T;if(v!==void 0)for(y of v)(T=(_e=y.nodes)==null?void 0:_e.a)==null||T.apply()})}function Ab(t,e,r,n,o,s,i,a){var l=(i&hm)!==0?(i&pm)===0?eb(r,!1,!1):Tn(r):null,u=(i&vm)!==0?Tn(o):null;return{v:l,i:u,e:Xt(()=>(s(e,l??r,u??o,a),()=>{t.delete(n)}))}}function di(t,e,r){if(t.nodes)for(var n=t.nodes.start,o=t.nodes.end,s=e&&(e.f&Gr)===0?e.nodes.start:r;n!==null;){var i=Ra(n);if(s.before(n),n===o)return;n=i}}function zn(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function Qe(t,e,r,n,o){var a;var s=(a=e.$$slots)==null?void 0:a[r],i=!1;s===!0&&(s=e.children,i=!0),s===void 0||s(t,i?()=>n:n)}function Fe(t,e,...r){var n=new Ba(t);Yo(()=>{const o=e()??null;n.ensure(o,o&&(s=>o(s,...r)))},Qr)}function O(t,e,r){var n=new Ba(t);Yo(()=>{var o=e()??null;n.ensure(o,o&&(s=>r(s,o)))},Qr)}const Eb=()=>performance.now(),Sn={tick:t=>requestAnimationFrame(t),now:()=>Eb(),tasks:new Set};function Bv(){const t=Sn.now();Sn.tasks.forEach(e=>{e.c(t)||(Sn.tasks.delete(e),e.f())}),Sn.tasks.size!==0&&Sn.tick(Bv)}function Tb(t){let e;return Sn.tasks.size===0&&Sn.tick(Bv),{promise:new Promise(r=>{Sn.tasks.add(e={c:t,f:r})}),abort(){Sn.tasks.delete(e)}}}function Ef(t,e){co(()=>{t.dispatchEvent(new CustomEvent(e))})}function Ob(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function Tf(t){const e={},r=t.split(";");for(const n of r){const[o,s]=n.split(":");if(!o||s===void 0)break;const i=Ob(o.trim());e[i]=s.trim()}return e}const $b=t=>t;function Mb(t,e,r,n){var y;var o=(t&xm)!==0,s="in",i,a=e.inert,l=e.style.overflow,u,f;function v(){return co(()=>i??(i=r()(e,(n==null?void 0:n())??{},{direction:s})))}var h={is_global:o,in(){e.inert=a,u==null||u.abort(),u=Vv(e,v(),f,1,()=>{Ef(e,"introstart")},()=>{Ef(e,"introend"),u==null||u.abort(),u=i=void 0,e.style.overflow=l})},out(w){{w==null||w(),i=void 0;return}},stop:()=>{u==null||u.abort()}},g=Re;if(((y=g.nodes).t??(y.t=[])).push(h),Nl){var p=o;if(!p){for(var m=g.parent;m&&(m.f&Qr)!==0;)for(;(m=m.parent)&&(m.f&yr)===0;);p=!m||(m.f&Uo)!==0}p&&Pc(()=>{Sr(()=>h.in())})}}function Vv(t,e,r,n,o,s){if(ss(e)){var i,a=!1;return Tr(()=>{if(!a){var y=e({direction:"in"});i=Vv(t,y,r,n,o,s)}}),{abort:()=>{a=!0,i==null||i.abort()},deactivate:()=>i.deactivate(),reset:()=>i.reset(),t:()=>i.t()}}if(!(e!=null&&e.duration)&&!(e!=null&&e.delay))return o(),s(),{abort:ze,deactivate:ze,reset:ze,t:()=>n};const{delay:l=0,css:u,tick:f,easing:v=$b}=e;var h=[];if(f&&f(0,1),u){var g=Tf(u(0,1));h.push(g,g)}var p=()=>1-n,m=t.animate(h,{duration:l,fill:"forwards"});return m.onfinish=()=>{m.cancel(),o();var y=1-n,w=n-y,P=e.duration*Math.abs(w),z=[];if(P>0){var S=!1;if(u)for(var k=Math.ceil(P/16.666666666666668),C=0;C<=k;C+=1){var R=y+w*v(C/k),x=Tf(u(R,1-R));z.push(x),S||(S=x.overflow==="hidden")}S&&(t.style.overflow="hidden"),p=()=>{var B=m.currentTime;return y+w*v(B/P)},f&&Tb(()=>{if(m.playState!=="running")return!1;var B=p();return f(B,1-B),!0})}m=t.animate(z,{duration:P,fill:"forwards"}),m.onfinish=()=>{p=()=>n,f==null||f(n,1-n),s()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=ze)},deactivate:()=>{s=ze},reset:()=>{},t:()=>p()}}function Wv(t,e,r,n,o,s){var i=null,a=t,l=new Ba(a,!1);Yo(()=>{const u=e()||null;var f=r||u==="svg"?Sm:void 0;if(u===null){l.ensure(null,null),Ua(!0);return}return l.ensure(u,v=>{if(u){if(i=mv(u,f),js(i,i),n){var h=null,g=i.appendChild(qr());n(i,g),h==null||h.remove()}Re.nodes.end=i,v.before(i)}}),Ua(!0),()=>{u&&Ua(!1)}},Qr),Sc(()=>{Ua(!0)})}function Ib(t,e){var r=void 0,n;_v(()=>{r!==(r=e())&&(n&&(wt(n),n=null),r&&(n=Xt(()=>{Pc(()=>r(t))})))})}function jv(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e=0;){var a=i+s;(i===0||Of.includes(n[i-1]))&&(a===n.length||Of.includes(n[a]))?n=(i===0?"":n.substring(0,i))+n.substring(a+1):i=a}}return n===""?null:n}function $f(t,e=!1){var r=e?" !important;":";",n="";for(var o of Object.keys(t)){var s=t[o];s!=null&&s!==""&&(n+=" "+o+": "+s+r)}return n}function Dc(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function zb(t,e){if(e){var r="",n,o;if(Array.isArray(e)?(n=e[0],o=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,i=0,a=!1,l=[];n&&l.push(...Object.keys(n).map(Dc)),o&&l.push(...Object.keys(o).map(Dc));var u=0,f=-1;const m=t.length;for(var v=0;v{"__value"in t&&_u(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Sc(()=>{e.disconnect()})}function Mf(t){return"__value"in t?t.__value:t.value}const ei=Symbol("class"),ti=Symbol("style"),Gv=Symbol("is custom element"),Hv=Symbol("is html"),Fb=ud?"input":"INPUT",Lb=ud?"option":"OPTION",Db=ud?"select":"SELECT";function Bb(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function pt(t,e,r,n){var o=Kv(t);o[e]!==(o[e]=r)&&(e==="loading"&&(t[tm]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Uv(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Vb(t,e,r,n,o=!1,s=!1){var i=Kv(t),a=i[Gv],l=!i[Hv],u=e||{},f=t.nodeName===Lb;for(var v in e)v in r||(r[v]=null);r.class?r.class=xu(r.class):r[ei]&&(r.class=null),r[ti]&&(r.style??(r.style=null));var h=Uv(t);if(t.nodeName===Fb&&"type"in r&&("value"in r||"__value"in r)){var g=r.type;(g!==u.type||g===void 0&&t.hasAttribute("type"))&&(u.type=g,pt(t,"type",g))}for(const k in r){let C=r[k];if(f&&k==="value"&&C==null){t.value=t.__value="",u[k]=C;continue}if(k==="class"){var p=t.namespaceURI==="http://www.w3.org/1999/xhtml";Wn(t,p,C,n,e==null?void 0:e[ei],r[ei]),u[k]=C,u[ei]=r[ei];continue}if(k==="style"){as(t,C,e==null?void 0:e[ti],r[ti]),u[k]=C,u[ti]=r[ti];continue}var m=u[k];if(!(C===m&&!(C===void 0&&t.hasAttribute(k)))){u[k]=C;var y=k[0]+k[1];if(y!=="$$")if(y==="on"){const R={},x="$$"+k;let B=k.slice(2);var w=gb(B);if(hb(B)&&(B=B.slice(0,-7),R.capture=!0),!w&&m){if(C!=null)continue;t.removeEventListener(B,u[x],R),u[x]=null}if(w)xo(B,t,C),xd([B]);else if(C!=null){let H=function(U){u[k].call(this,U)};var S=H;u[x]=wd(B,t,H,R)}}else if(k==="style")pt(t,k,C);else if(k==="autofocus")Lm(t,!!C);else if(!a&&(k==="__value"||k==="value"&&C!=null))t.value=t.__value=C;else if(k==="selected"&&f)Bb(t,C);else{var P=k;l||(P=mb(P));var z=P==="defaultValue"||P==="defaultChecked";if(C==null&&!a&&!z)if(i[k]=null,P==="value"||P==="checked"){let R=t;const x=e===void 0;if(P==="value"){let B=R.defaultValue;R.removeAttribute(P),R.defaultValue=B,R.value=R.__value=x?B:null}else{let B=R.defaultChecked;R.removeAttribute(P),R.defaultChecked=B,R.checked=x?B:!1}}else t.removeAttribute(k);else z||h.includes(P)&&(a||typeof C!="string")?(t[P]=C,P in i&&(i[P]=it)):typeof C!="function"&&pt(t,P,C)}}}return u}function Ke(t,e,r=[],n=[],o=[],s,i=!1,a=!1){rv(o,r,n,l=>{var u=void 0,f={},v=t.nodeName===Db,h=!1;if(_v(()=>{var p=e(...l.map(d)),m=Vb(t,u,p,s,i,a);h&&v&&"value"in p&&_u(t,p.value);for(let w of Object.getOwnPropertySymbols(f))p[w]||wt(f[w]);for(let w of Object.getOwnPropertySymbols(p)){var y=p[w];w.description===qh&&(!u||y!==u[w])&&(f[w]&&wt(f[w]),f[w]=Xt(()=>Ib(t,()=>y))),m[w]=y}u=m}),v){var g=t;Pc(()=>{_u(g,u.value,!0),Rb(g)})}h=!0})}function Kv(t){return t[cl]??(t[cl]={[Gv]:t.nodeName.includes("-"),[Hv]:t.namespaceURI===Uh})}var If=new Map;function Uv(t){var e=t.getAttribute("is")||t.nodeName,r=If.get(e);if(r)return r;If.set(e,r=[]);for(var n,o=t,s=Element.prototype;s!==o;){n=Bh(o);for(var i in n)n[i].set&&i!=="innerHTML"&&i!=="textContent"&&i!=="innerText"&&r.push(i);o=ld(o)}return r}function ku(t,e,r=e){var n=new WeakSet;tv(t,"input",async o=>{var s=o?t.defaultValue:t.value;if(s=Vc(t)?Wc(s):s,r(s),$e!==null&&n.add($e),await Mv(),s!==(s=e())){var i=t.selectionStart,a=t.selectionEnd,l=t.value.length;if(t.value=s??"",a!==null){var u=t.value.length;i===a&&a===l&&u>l?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=i,t.selectionEnd=Math.min(a,u))}}}),Sr(e)==null&&t.value&&(r(Vc(t)?Wc(t.value):t.value),$e!==null&&n.add($e)),Cc(()=>{var o=e();if(t===document.activeElement){var s=$e;if(n.has(s))return}Vc(t)&&o===Wc(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Vc(t){var e=t.type;return e==="number"||e==="range"}function Wc(t){return t===""?null:+t}function Wb(t,e,r=e){tv(t,"change",()=>{r(t.files)}),Cc(()=>{t.files=e()})}function jc(t,e){return t===e||(t==null?void 0:t[Ur])===e}function ot(t={},e,r,n){var o=Ue.r,s=Re;return Pc(()=>{var i,a;return Cc(()=>{i=a,a=[],Sr(()=>{jc(r(...a),t)||(e(t,...a),i&&jc(r(...i),t)&&e(null,...i))})}),()=>{let l=s;for(;l!==o&&l.parent!==null&&l.parent.f&iu;)l=l.parent;const u=()=>{a&&jc(r(...a),t)&&e(null,...a)},f=l.teardown;l.teardown=()=>{u(),f==null||f()}}}),t}function jb(t=!1){const e=Ue,r=e.l.u;if(!r)return;let n=()=>wo(e.s);if(t){let o=0,s={};const i=Ds(()=>{let a=!1;const l=e.s;for(const u in l)l[u]!==s[u]&&(s[u]=l[u],a=!0);return a&&o++,o});n=()=>d(i)}r.b.length&&wv(()=>{Nf(e,n),ou(r.b)}),nt(()=>{const o=Sr(()=>r.m.map(Jp));return()=>{for(const s of o)typeof s=="function"&&s()}}),r.a.length&&nt(()=>{Nf(e,n),ou(r.a)})}function Nf(t,e){if(t.l.s)for(const r of t.l.s)d(r);e()}const Gb={get(t,e){if(!t.exclude.has(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.has(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.has(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.has(e))}};function je(t,e,r){return new Proxy({props:t,exclude:e},Gb)}const Hb={get(t,e){if(!t.exclude.includes(e))return d(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,r){if(!(e in t.special)){var n=Re;try{kr(t.parent_effect),t.special[e]=$({get[e](){return t.props[e]}},e,Kh)}finally{kr(n)}}return t.special[e](r),xf(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),xf(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Xe(t,e){return new Proxy({props:t,exclude:e,special:{},version:Tn(0),parent_effect:Re},Hb)}const Kb={get(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(ss(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n)return n[e]}},set(t,e,r){let n=t.props.length;for(;n--;){let o=t.props[n];ss(o)&&(o=o());const s=to(o,e);if(s&&s.set)return s.set(r),!0}return!1},getOwnPropertyDescriptor(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(ss(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n){const o=to(n,e);return o&&!o.configurable&&(o.configurable=!0),o}}},has(t,e){if(e===Ur||e===jh)return!1;for(let r of t.props)if(ss(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(ss(r)&&(r=r()),!!r){for(const n in r)e.includes(n)||e.push(n);for(const n of Object.getOwnPropertySymbols(r))e.includes(n)||e.push(n)}return e}};function We(...t){return new Proxy({props:t},Kb)}function $(t,e,r,n){var S;var o=!Ks||(r&bm)!==0,s=(r&ym)!==0,i=(r&wm)!==0,a=n,l=!0,u=void 0,f=()=>i&&o?(u??(u=Ds(n)),d(u)):(l&&(l=!1,a=i?Sr(n):n),a);let v;if(s){var h=Ur in t||jh in t;v=((S=to(t,e))==null?void 0:S.set)??(h&&e in t?k=>t[e]=k:void 0)}var g,p=!1;s?[g,p]=Fm(()=>t[e]):g=t[e],g===void 0&&n!==void 0&&(g=f(),v&&(o&&lm(),v(g)));var m;if(o?m=()=>{var k=t[e];return k===void 0?f():(l=!0,k)}:m=()=>{var k=t[e];return k!==void 0&&(a=void 0),k===void 0?a:k},o&&(r&Kh)===0)return m;if(v){var y=t.$$legacy;return(function(k,C){return arguments.length>0?((!o||!C||y||p)&&v(C?m():k),k):m()})}var w=!1,P=((r&mm)!==0?Ds:hd)(()=>(w=!1,m()));s&&d(P);var z=Re;return(function(k,C){if(arguments.length>0){const R=C?d(P):o&&s?Jt(k):k;return N(P,R),w=!0,a!==void 0&&(a=R),k}return On&&w||(z.f&lr)!==0?P.v:d(P)})}function _d(t){Ue===null&&Gh(),Ks&&Ue.l!==null?Ub(Ue).m.push(t):nt(()=>{const e=Sr(t);if(typeof e=="function")return e})}function Ub(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const qb="5";var Lh;typeof window<"u"&&((Lh=window.__svelte??(window.__svelte={})).v??(Lh.v=new Set)).add(qb);const Yb=t=>t;function Xb(t,{delay:e=0,duration:r=400,easing:n=Yb}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:s=>`opacity: ${s*o}`}}class fi extends Error{constructor(e,r){super(r),this.status=e}}async function Rn(t,e){const r=await fetch(t,{headers:{"Content-Type":"application/json"},...e});if(!r.ok){let n=`HTTP ${r.status}`;try{const o=await r.json();o&&typeof o.error=="string"&&(n=o.error)}catch{}throw new fi(r.status,n)}if(r.status!==204)return await r.json()}const us={login:t=>Rn("/api/session",{method:"POST",body:JSON.stringify({password:t})}),logout:()=>Rn("/api/session",{method:"DELETE"}),status:()=>Rn("/api/status"),rules:(t,e)=>{const r=new URLSearchParams({category:t});return e!=null&&e.q&&r.set("q",e.q),(e==null?void 0:e.offset)!=null&&r.set("offset",String(e.offset)),(e==null?void 0:e.limit)!=null&&r.set("limit",String(e.limit)),Rn(`/api/rules?${r}`)},addRules:(t,e)=>Rn("/api/rules",{method:"POST",body:JSON.stringify({category:t,rules:e})}),removeRules:(t,e)=>Rn("/api/rules",{method:"DELETE",body:JSON.stringify({category:t,rules:e})}),traffic:(t,e,r)=>{const n=[];return t&&n.push(`sort=${t}`),e&&e!=="all"&&n.push(`source=${e}`),r&&n.push(`client=${encodeURIComponent(r)}`),Rn(n.length?`/api/traffic?${n.join("&")}`:"/api/traffic")},history:()=>Rn("/api/history")},Zb=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n({classGroupId:t,validator:e}),qv=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),zl="-",zf=[],Qb="arbitrary..",ey=t=>{const e=ry(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ty(i);const a=i.split(zl),l=a[0]===""&&a.length>1?1:0;return Yv(a,l,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=n[i],u=r[i];return l?u?Zb(u,l):l:u||zf}return r[i]||zf}}},Yv=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],s=r.nextPart.get(o);if(s){const u=Yv(t,e+1,s);if(u)return u}const i=r.validators;if(i===null)return;const a=e===0?t.join(zl):t.slice(e).join(zl),l=i.length;for(let u=0;ut.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?Qb+n:void 0})(),ry=t=>{const{theme:e,classGroups:r}=t;return ny(r,e)},ny=(t,e)=>{const r=qv();for(const n in t){const o=t[n];kd(o,r,n,e)}return r},kd=(t,e,r,n)=>{const o=t.length;for(let s=0;s{if(typeof t=="string"){sy(t,e,r);return}if(typeof t=="function"){iy(t,e,r,n);return}ay(t,e,r,n)},sy=(t,e,r)=>{const n=t===""?e:Xv(e,t);n.classGroupId=r},iy=(t,e,r,n)=>{if(ly(t)){kd(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(Jb(r,t))},ay=(t,e,r,n)=>{const o=Object.entries(t),s=o.length;for(let i=0;i{let r=t;const n=e.split(zl),o=n.length;for(let s=0;s"isThemeGetter"in t&&t.isThemeGetter===!0,cy=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const o=(s,i)=>{r[s]=i,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(s){let i=r[s];if(i!==void 0)return i;if((i=n[s])!==void 0)return o(s,i),i},set(s,i){s in r?r[s]=i:o(s,i)}}},Su="!",Rf=":",uy=[],Ff=(t,e,r,n,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),dy=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const s=[];let i=0,a=0,l=0,u;const f=o.length;for(let m=0;ml?u-l:void 0;return Ff(s,g,h,p)};if(e){const o=e+Rf,s=n;n=i=>i.startsWith(o)?s(i.slice(o.length)):Ff(uy,!1,i,void 0,!0)}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},fy=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let s=0;s0&&(o.sort(),n.push(...o),o=[]),n.push(i)):o.push(i)}return o.length>0&&(o.sort(),n.push(...o)),n}},hy=t=>({cache:cy(t.cacheSize),parseClassName:dy(t),sortModifiers:fy(t),postfixLookupClassGroupIds:vy(t),...ey(t)}),vy=t=>{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:i}=e,a=[],l=t.trim().split(gy);let u="";for(let f=l.length-1;f>=0;f-=1){const v=l[f],{isExternal:h,modifiers:g,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=r(v);if(h){u=v+(u.length>0?" "+u:u);continue}let w=!!y,P;if(w){const R=m.substring(0,y);P=n(R);const x=P&&i[P]?n(m):void 0;x&&x!==P&&(P=x,w=!1)}else P=n(m);if(!P){if(!w){u=v+(u.length>0?" "+u:u);continue}if(P=n(m),!P){u=v+(u.length>0?" "+u:u);continue}w=!1}const z=g.length===0?"":g.length===1?g[0]:s(g).join(":"),S=p?z+Su:z,k=S+P;if(a.indexOf(k)>-1)continue;a.push(k);const C=o(P,w);for(let R=0;R0?" "+u:u)}return u},my=(...t)=>{let e=0,r,n,o="";for(;e{if(typeof t=="string")return t;let e,r="";for(let n=0;n{let r,n,o,s;const i=l=>{const u=e.reduce((f,v)=>v(f),t());return r=hy(u),n=r.cache.get,o=r.cache.set,s=a,a(l)},a=l=>{const u=n(l);if(u)return u;const f=py(l,r);return o(l,f),f};return s=i,(...l)=>s(my(...l))},yy=[],ht=t=>{const e=r=>r[t]||yy;return e.isThemeGetter=!0,e},Jv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wy=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ky=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Sy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Py=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fn=t=>wy.test(t),Le=t=>!!t&&!Number.isNaN(Number(t)),zr=t=>!!t&&Number.isInteger(Number(t)),Gc=t=>t.endsWith("%")&&Le(t.slice(0,-1)),on=t=>xy.test(t),eg=()=>!0,Cy=t=>_y.test(t)&&!ky.test(t),Sd=()=>!1,Ay=t=>Sy.test(t),Ey=t=>Py.test(t),Ty=t=>!pe(t)&&!be(t),Oy=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),$y=t=>uo(t,ng,Sd),pe=t=>Jv.test(t),vo=t=>uo(t,og,Cy),Lf=t=>uo(t,Dy,Le),My=t=>uo(t,ig,eg),Iy=t=>uo(t,sg,Sd),Df=t=>uo(t,tg,Sd),Ny=t=>uo(t,rg,Ey),Ya=t=>uo(t,ag,Ay),be=t=>Qv.test(t),ri=t=>Xo(t,og),zy=t=>Xo(t,sg),Bf=t=>Xo(t,tg),Ry=t=>Xo(t,ng),Fy=t=>Xo(t,rg),Xa=t=>Xo(t,ag,!0),Ly=t=>Xo(t,ig,!0),uo=(t,e,r)=>{const n=Jv.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Xo=(t,e,r=!1)=>{const n=Qv.exec(t);return n?n[1]?e(n[1]):r:!1},tg=t=>t==="position"||t==="percentage",rg=t=>t==="image"||t==="url",ng=t=>t==="length"||t==="size"||t==="bg-size",og=t=>t==="length",Dy=t=>t==="number",sg=t=>t==="family-name",ig=t=>t==="number"||t==="weight",ag=t=>t==="shadow",By=()=>{const t=ht("color"),e=ht("font"),r=ht("text"),n=ht("font-weight"),o=ht("tracking"),s=ht("leading"),i=ht("breakpoint"),a=ht("container"),l=ht("spacing"),u=ht("radius"),f=ht("shadow"),v=ht("inset-shadow"),h=ht("text-shadow"),g=ht("drop-shadow"),p=ht("blur"),m=ht("perspective"),y=ht("aspect"),w=ht("ease"),P=ht("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...S(),be,pe],C=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],x=()=>[be,pe,l],B=()=>[Fn,"full","auto",...x()],H=()=>[zr,"none","subgrid",be,pe],U=()=>["auto",{span:["full",zr,be,pe]},zr,be,pe],V=()=>[zr,"auto",be,pe],q=()=>["auto","min","max","fr",be,pe],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...x()],de=()=>[Fn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],ce=()=>[Fn,"screen","full","dvw","lvw","svw","min","max","fit",...x()],_e=()=>[Fn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],T=()=>[t,be,pe],Oe=()=>[...S(),Bf,Df,{position:[be,pe]}],Te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",Ry,$y,{size:[be,pe]}],ue=()=>[Gc,ri,vo],te=()=>["","none","full",u,be,pe],le=()=>["",Le,ri,vo],W=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[Le,Gc,Bf,Df],Y=()=>["","none",p,be,pe],Q=()=>["none",Le,be,pe],X=()=>["none",Le,be,pe],ge=()=>[Le,be,pe],F=()=>[Fn,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[on],breakpoint:[on],color:[eg],container:[on],"drop-shadow":[on],ease:["in","out","in-out"],font:[Ty],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[on],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[on],shadow:[on],spacing:["px",Le],text:[on],"text-shadow":[on],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fn,pe,be,y]}],container:["container"],"container-type":[{"@container":["","normal","size",be,pe]}],"container-named":[Oy],columns:[{columns:[Le,pe,be,a]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[zr,"auto",be,pe]}],basis:[{basis:[Fn,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Fn,"auto","initial","none",pe]}],grow:[{grow:["",Le,be,pe]}],shrink:[{shrink:["",Le,be,pe]}],order:[{order:[zr,"first","last","none",be,pe]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",..._e()]}],"min-block-size":[{"min-block":["auto",..._e()]}],"max-block-size":[{"max-block":["none",..._e()]}],w:[{w:[a,"screen",...de()]}],"min-w":[{"min-w":[a,"screen","none",...de()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",r,ri,vo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ly,My]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gc,pe]}],"font-family":[{font:[zy,Iy,e]}],"font-features":[{"font-features":[pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,be,pe]}],"line-clamp":[{"line-clamp":[Le,"none",be,Lf]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",be,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",be,vo]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Le,"auto",be,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[zr,be,pe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Oe()}],"bg-repeat":[{bg:Te()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zr,be,pe],radial:["",be,pe],conic:[zr,be,pe]},Fy,Ny]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,be,pe]}],"outline-w":[{outline:["",Le,ri,vo]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",f,Xa,Ya]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",v,Xa,Ya]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Le,vo]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",h,Xa,Ya]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Le,be,pe]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[be,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Oe()}],"mask-repeat":[{mask:Te()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,pe]}],filter:[{filter:["","none",be,pe]}],blur:[{blur:Y()}],brightness:[{brightness:[Le,be,pe]}],contrast:[{contrast:[Le,be,pe]}],"drop-shadow":[{"drop-shadow":["","none",g,Xa,Ya]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Le,be,pe]}],"hue-rotate":[{"hue-rotate":[Le,be,pe]}],invert:[{invert:["",Le,be,pe]}],saturate:[{saturate:[Le,be,pe]}],sepia:[{sepia:["",Le,be,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",be,pe]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[Le,be,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Le,be,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,be,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,be,pe]}],"backdrop-invert":[{"backdrop-invert":["",Le,be,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Le,be,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Le,be,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,be,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",be,pe]}],ease:[{ease:["linear","initial",w,be,pe]}],delay:[{delay:[Le,be,pe]}],animate:[{animate:["none",P,be,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,be,pe]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[be,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],zoom:[{zoom:[zr,be,pe]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be,pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be,pe]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Le,ri,vo,Lf]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Vy=by(By);function Ge(...t){return Vy(yi(t))}var Wy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),jy=oe("
    ");function bt(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,Wy);var o=jy();Ke(o,i=>({"data-slot":"card-content",class:i,...n}),[()=>Ge("px-(--card-spacing)",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var Gy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Hy=oe("

    ");function Tt(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,Gy);var o=Hy();Ke(o,i=>({"data-slot":"card-description",class:i,...n}),[()=>Ge("text-sm text-muted-foreground",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var Ky=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Uy=oe("
    ");function Ot(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,Ky);var o=Uy();Ke(o,i=>({"data-slot":"card-header",class:i,...n}),[()=>Ge("gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var qy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Yy=oe("
    ");function or(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,qy);var o=Yy();Ke(o,i=>({"data-slot":"card-title",class:i,...n}),[()=>Ge("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var Xy=new Set(["$$slots","$$events","$$legacy","ref","class","children","size"]),Zy=oe("
    ");function gt(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=$(e,"size",3,"default"),o=je(e,Xy);var s=Zy();Ke(s,a=>({"data-slot":"card","data-size":n(),class:a,...o}),[()=>Ge("gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col",e.class)]);var i=D(s);Fe(i,()=>e.children??ze),ot(s,a=>r(a),()=>r()),b(t,s),Ie()}var Jy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Qy=oe("
    ");function Pd(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,Jy);var o=Qy();Ke(o,i=>({"data-slot":"alert-description",class:i,...n}),[()=>Ge("text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var ew=Array.isArray,Ac=t=>{if(!t&&t!==0&&t!==0n)return"";if(typeof t=="string")return t;if(typeof t=="number")return t!==t?"":""+t;if(typeof t=="bigint")return""+t;let e="";if(ew(t)){const r=t.length;for(let n=0;ntypeof t!="string"||!t?t:t.replace(tw," ").trim(),nw=t=>{const e=t.length;if(e===0)return!1;const r=t.charCodeAt(0),n=t.charCodeAt(e-1);if(r===32||n===32||r>=9&&r<=13||r===160||n>=9&&n<=13||n===160)return!0;for(let o=0;o=9&&s<=13||s===160||s===32&&o+1{const e=Ac(t);if(e)return nw(e)?rw(e):e},Cu=t=>t===!1?"false":t===!0?"true":t===0?"0":t,br=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},lg=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const r=t,n=e,o=Object.keys(r),s=Object.keys(n);if(o.length!==s.length)return!1;for(let i=0;i{const r=t;for(const n in e)if(Object.hasOwn(e,n)){const o=e[n];n in r?r[n]=gl(r[n],o):r[n]=o}return t},cg=(t,e)=>{for(let r=0;r{const e=[];cg(t,e);const r=[];for(let n=0;n{const r=t,n=e,o={};for(const s in r){const i=r[s];if(s in n){const a=n[s];Pu(i)||Pu(a)?o[s]=Au(a,i):typeof i=="object"&&typeof a=="object"&&i&&a?o[s]=Cd(i,a):o[s]=a+" "+i}else o[s]=i}for(const s in n)s in r||(o[s]=n[s]);return o},sw={twMerge:!0,twMergeConfig:{}},ug=256,iw=128,jo=Symbol("tv-cache-miss"),aw=t=>(t==null?void 0:t.class)!=null&&t.class!==""||(t==null?void 0:t.className)!=null&&t.className!=="",Vf=t=>{if(t===void 0)return"";if(t===null)return"null";if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number")return t===0?"0":String(t);if(typeof t=="bigint")return String(t);const e=Cu(t),r=typeof e;if(r==="string"||r==="number"||r==="boolean"||r==="bigint")return String(e);if(r==="object")try{return JSON.stringify(e)}catch{return null}return null},os=(t,e)=>{if(e===void 0)return t;if(e===null)return t+"null";const r=typeof e;if(r==="string"||r==="number"||r==="boolean"||r==="bigint")return t+String(e);if(Array.isArray(e))return t+e.join("\0");try{return t+JSON.stringify(e)}catch{return t+"?"}},dg=(t,e,r,n)=>{let o="";const s=Object.create(null);for(let a=0;a1&&i.sort();for(let a=0;a{let r="";for(let n=0;n{let e=new Map,r=null;return{get(n){if(e.has(n))return e.get(n);if(r!=null&&r.has(n)){const o=r.get(n);return e.set(n,o),o}return jo},set(n,o){e.size>=t&&(r=e,e=new Map),e.set(n,o)}}},lw=(t=ug)=>{const e=hg(t);return{get(r){return e.get(r)},set(r,n){e.set(r,n)}}},cw=(t=iw)=>{let e=new Map,r=null,n=0;return{get(o,s){const i=e.get(o);if(i){const a=i.get(s);if(a!==void 0||i.has(s))return a}if(r){const a=r.get(o);if(a){const l=a.get(s);if(l!==void 0||a.has(s)){let u=e.get(o);return u||(u=new Map,e.set(o,u)),u.has(s)||n++,u.set(s,l),l}}}return jo},set(o,s,i){n>=t&&(r=e,e=new Map,n=0);let a=e.get(o);a||(a=new Map,e.set(o,a)),a.has(s)||n++,a.set(s,i)}}},Ad=(t,e)=>{let r=null;return(n,o)=>{if(!aw(o))return n;const s=o.class,i=o.className;if(s!=null&&s!==""&&typeof s!="string"||i!=null&&i!==""&&typeof i!="string")return t(e,n,s,i);r??(r=cw());const a=n??"",l=(typeof s=="string"?s:"")+"\0"+(typeof i=="string"?i:""),u=r.get(a,l);if(u!==jo)return u;const f=t(e,n,s,i);return r.set(a,l,f),f}};function uw(){let t=null,e={},r=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(n){t=n},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(n){e=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){t=null,e={},r=!1}}}var Dt=uw(),dw=t=>{!br(t.twMergeConfig)&&!lg(t.twMergeConfig,Dt.cachedTwMergeConfig)&&(Dt.didTwMergeConfigChange=!0,Dt.cachedTwMergeConfig=t.twMergeConfig)},fw=(t,e)=>{const r=[];for(let n=0;n{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let r=0;r{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let r=0;r{const e={};for(let r=0;r{const{extend:r=null,slots:n={},variants:o={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:a={}}=t,l={...sw,...e},u=t.slots!==void 0,f=r!=null&&r.base?gl(r.base,t==null?void 0:t.base):t==null?void 0:t.base,v=r!=null&&r.variants&&!br(r.variants)?Cd(o,r.variants):o,h=r!=null&&r.defaultVariants&&!br(r.defaultVariants)?{...r.defaultVariants,...a}:a;dw(l);const g=!(r!=null&&r.slots)||br(r.slots),p=u?g&&(r!=null&&r.base)?gl(t==null?void 0:t.base,r.base):typeof(t==null?void 0:t.base)=="string"||(t==null?void 0:t.base)==null?t.base:gl(t.base):void 0,m=u?{base:p,...n}:{},y=g?m:ow({...r==null?void 0:r.slots},br(m)?{base:t==null?void 0:t.base}:m),w=!(r!=null&&r.compoundVariants)||br(r.compoundVariants)?s:Au(r==null?void 0:r.compoundVariants,s),P=!(r!=null&&r.compoundSlots)||br(r.compoundSlots)?i:Au(r==null?void 0:r.compoundSlots,i),z=Object.keys(v),S=w&&!Array.isArray(w)?new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof w}`):P&&!Array.isArray(P)?new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof P}`):null,k=u||!g?"slots":z.length===0?"plain":"variants";return{config:l,extend:r,base:f,variants:v,defaultVariants:h,slots:y,compoundVariants:w,compoundSlots:P,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:S,mode:k,slotKeys:null,variantKeys:z}},vg=t=>(t.compiledVariants!==null||(t.compiledVariants=fw(t.variants,t.variantKeys),t.compiledCompoundVariants=hw(t.compoundVariants),t.compiledCompoundSlots=vw(t.compoundSlots),t.compiledCompoundSlotsBySlot=gw(t.compiledCompoundSlots),t.slotKeys=t.slots&&typeof t.slots=="object"?Object.keys(t.slots):[]),t),Eu=[],gg=[],mw=[],bw=[],yw=[],pg=(t,e,r)=>{const n={};for(const o in t)n[o]=t[o];if(e)for(const o in e)e[o]!==void 0&&(n[o]=e[o]);if(r)for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n},Za=t=>t==null||t===!1,ww=(t,e)=>{if(!Array.isArray(t))return t===e||Za(t)&&Za(e);for(let r=0;r{if(t.isEmpty)return null;const o=(n==null?void 0:n[t.key])??(r==null?void 0:r[t.key]);if(o===null)return null;const s=Cu(o);if(typeof s=="object")return null;const i=e==null?void 0:e[t.key],a=s??Cu(i);return t.values[a||"false"]},Ed=(t,e)=>{const{conditionKeys:r,source:n}=t;for(let o=0;o{typeof r=="string"?e==="base"&&t.push(r):r&&typeof r=="object"&&r[e]&&t.push(r[e])},xw=(t,e,r)=>{const n=gg;n.length=0;for(let o=0;o{const s=gg;s.length=0;for(let i=0;i{const r=mw;r.length=0;for(let n=0;n{const n=bw;n.length=0;for(let o=0;o{const r=yw;r.length=0;for(let n=0;n{const{base:r,config:n}=t;let o=jo;const s=Ad(e,n);return(i=>(o===jo&&(o=e(n,r)),s(o,i)))},Aw=(t,e)=>{const{base:r,config:n,defaultVariants:o,deferredError:s,variantKeys:i}=t;let a=t.compiledCompoundVariants,l=t.compiledVariants,u=Eu,f=null;const v=Ad(e,n);let h=1;const g=p=>{const m=a.length>0?kw(a,pg(o,p)):void 0;return e(n,r,xw(l,o,p),m)};return(p=>{if(s)throw s;(l===null||a===null)&&(vg(t),l=t.compiledVariants,a=t.compiledCompoundVariants,u=t.compiledCompoundSlots??Eu);let m;if(h>0)h--,m=g(p);else{f??(f=lw());const y=dg(i,o,p);if(y!==null){const w=a.length>0||u.length>0?fg(a,u):"",P=y+"#"+w,z=f.get(P);z!==jo?m=z:(m=g(p),f.set(P,m))}else m=g(p)}return v(m,p)})},Ew=(t,e)=>{const{config:r,defaultVariants:n,deferredError:o,slots:s,variantKeys:i}=t;let a=null,l=null,u=null,f=null,v=!1,h=null,g=null,p=1;const m=()=>{if(u!==null)return;(t.compiledVariants===null||t.compiledCompoundVariants===null||t.compiledCompoundSlots===null||t.compiledCompoundSlotsBySlot===null||t.slotKeys===null)&&vg(t);const w=t.compiledVariants;a=t.compiledCompoundVariants,l=t.compiledCompoundSlots;const P=t.compiledCompoundSlotsBySlot;u=t.slotKeys,v=a.length>0||l.length>0,h=Ad(e,r);const z=new Array(u.length);for(let S=0;S{const B=v?pg(n,R,x):void 0,H=B?Sw(k,a,B):void 0,U=B?Pw(C,B):void 0;return e(r,s[k],_w(k,w,n,R,x),H,U)}}f=z},y=w=>{const P=u,z=f,S=h,k={};for(let C=0;C{if(B==null)return x;let H=!1;for(const U in B)if(!(U==="class"||U==="className")&&B[U]!==void 0){H=!0;break}return S(H?R(w,B):x,B)}}return k};return(w=>{if(o)throw o;if(m(),p>0)return p--,y(w);const P=dg(i,n,w);if(P===null)return y(w);const z=v?fg(a,l):"",S=P+"#"+z;g??(g=hg());const k=g.get(S);if(k!==jo)return k;const C=y(w);return g.set(S,C),C})},Tw=(t,e)=>{if(t.mode==="plain")return Cw(t,e);let r;return(n=>(r??(r=t.mode==="slots"?Ew(t,e):Aw(t,e)),r(n)))},Ow=(t,e)=>{t.variantKeys=e.variantKeys,t.extend=e.extend,t.base=e.base,t.slots=e.slots,t.variants=e.variants,t.defaultVariants=e.defaultVariants,t.compoundSlots=e.compoundSlots,t.compoundVariants=e.compoundVariants},$w=t=>{const e=(n,o)=>{const s=pw(n,o),i=Tw(s,t);return Ow(i,s),i};return{tv:e,createTV:n=>(o,s)=>e(o,s?Cd(n,s):n)}},Mw=(t,e)=>{const r=t.length,n=e.length,o=new Array(r+n);for(let s=0;s({classGroupId:t,validator:e}),bg=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),Rl="-",jf=[],Nw="arbitrary..",zw=t=>{const e=Fw(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{if(i[0]==="["&&i[i.length-1]==="]")return Rw(i);const a=i.split(Rl),l=a[0]===""&&a.length>1?1:0;return yg(a,l,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=n[i],u=r[i];return l?u?Mw(u,l):l:u||jf}return r[i]||jf}}},yg=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],s=r.nextPart.get(o);if(s){const u=yg(t,e+1,s);if(u)return u}const i=r.validators;if(i===null)return;const a=e===0?t.join(Rl):t.slice(e).join(Rl),l=i.length;for(let u=0;u{const e=t.slice(1,-1),r=e.indexOf(":");if(r===-1)return;const n=e.slice(0,r);return n?Nw+n:void 0},Fw=t=>{const{theme:e,classGroups:r}=t;return Lw(r,e)},Lw=(t,e)=>{const r=bg();for(const n in t){const o=t[n];Td(o,r,n,e)}return r},Td=(t,e,r,n)=>{const o=t.length;for(let s=0;s{if(typeof t=="string"){Bw(t,e,r);return}if(typeof t=="function"){Vw(t,e,r,n);return}Ww(t,e,r,n)},Bw=(t,e,r)=>{const n=t===""?e:wg(e,t);n.classGroupId=r},Vw=(t,e,r,n)=>{if(jw(t)){Td(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(Iw(r,t))},Ww=(t,e,r,n)=>{const o=Object.entries(t),s=o.length;for(let i=0;i{let r=t;const n=e.split(Rl),o=n.length;for(let s=0;s"isThemeGetter"in t&&t.isThemeGetter===!0,Gw="!",Hw=58,Kw=47,Uw=91,qw=93,Yw=40,Xw=41,Gf=33,Zw=(t,e,r,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:void 0}),Hf=t=>{const e=[];let r=0,n=0,o=0,s;const i=t.length;for(let h=0;ho?s-o:void 0;return Zw(e,u,l,v)},Jw=t=>{const e=new Set(t.orderSensitiveModifiers);return r=>{const n=[];let o=[];for(let s=0;s0){o.sort();for(let u=0;u0){o.sort();for(let s=0;s{const e=Jw(t),r=rx(t),{getClassGroupId:n,getConflictingClassGroupIds:o}=zw(t);let s=Object.create(null),i=Object.create(null),a=0,l=new Int32Array(256),u=0,f=new Uint8Array(64),v=!1;const h=z=>{const S=[],k=z.length;let C=-1;v=!1;for(let R=0;R=9&&x<=13?(v=!0,C!==-1&&(S.push(z.slice(C,R)),C=-1)):C===-1&&(C=R)}return C!==-1&&S.push(z.slice(C)),S},g=new Map;let p=0;const m=z=>{let S=g.get(z);if(S===void 0&&(S=p++,g.set(z,S),S>=l.length)){const k=new Int32Array(l.length*2);k.set(l),l=k}return S},y=z=>{const{isExternal:S,modifiers:k,hasImportantModifier:C,baseClassName:R,maybePostfixModifierPosition:x}=Hf(z);if(S)return Hc;let B=!!x,H;if(B){const I=R.substring(0,x);H=n(I);const L=H&&r[H]?n(R):void 0;L&&L!==H&&(H=L,B=!1)}else H=n(R);if(!H){if(!B||(H=n(R),!H))return Hc;B=!1}const U=k.length===0?"":k.length===1?k[0]:e(k).join(":"),V=C?U+Gw:U,q=o(H,B),ee=[];for(let I=0;I{let S=s[z];return S!==void 0||(S=i[z],S===void 0&&(S=y(z)),s[z]=S,++a>Qw&&(a=0,i=s,s=Object.create(null))),S};return{parseClassName:Hf,sortModifiers:e,postfixLookupClassGroupIds:r,getClassGroupId:n,getConflictingClassGroupIds:o,getClassDescriptor:w,mergeClassList:z=>{const S=h(z),k=S.length;if(k===1)return S[0];p>ex&&(g.clear(),p=0,s=Object.create(null),i=Object.create(null),a=0),u=u+1|0,u===0&&(u=1);const C=u;if(k>f.length){let H=f.length;for(;H=0;H-=1){const U=S[H];x+=U.length;const V=w(U);if(V.isExternal){f[H]=1;continue}const q=V.classId;if(l[q]===C){f[H]=0,R=!0;continue}l[q]=C;const ee=V.conflictIds;for(let I=0;I{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n{let e,r,n=Object.create(null),o=Object.create(null),s=0;const i=u=>(e=tx(t()),r=e.mergeClassList,l.mergeString=a,a(u)),a=u=>{let f=n[u];return f!==void 0||(f=o[u],f===void 0&&(f=r(u)),n[u]=f,++s>nx&&(s=0,o=n,n=Object.create(null))),f},l=(...u)=>l.mergeString(Ac(u));return l.mergeString=i,l},ox=[],vt=t=>{const e=r=>r[t]||ox;return e.isThemeGetter=!0,e},xg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_g=/^\((?:(\w[\w-]*):)?(.+)\)$/i,sx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ix=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ax=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ux=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kg=Number,dx=Number.isNaN,fx=Number.isInteger,Ln=t=>sx.test(t),De=t=>!!t&&!dx(kg(t)),Rr=t=>!!t&&fx(kg(t)),Kc=t=>t.endsWith("%")&&De(t.slice(0,-1)),sn=t=>ix.test(t),Sg=()=>!0,hx=t=>ax.test(t)&&!lx.test(t),Od=()=>!1,vx=t=>cx.test(t),gx=t=>ux.test(t),px=t=>!me(t)&&!ye(t),mx=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),bx=t=>fo(t,Ag,Od),me=t=>xg.test(t),go=t=>fo(t,Eg,hx),Uf=t=>fo(t,Cx,De),yx=t=>fo(t,Og,Sg),wx=t=>fo(t,Tg,Od),qf=t=>fo(t,Pg,Od),xx=t=>fo(t,Cg,gx),Ja=t=>fo(t,$g,vx),ye=t=>_g.test(t),ni=t=>Zo(t,Eg),_x=t=>Zo(t,Tg),Yf=t=>Zo(t,Pg),kx=t=>Zo(t,Ag),Sx=t=>Zo(t,Cg),Qa=t=>Zo(t,$g,!0),Px=t=>Zo(t,Og,!0),fo=(t,e,r)=>{const n=xg.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Zo=(t,e,r=!1)=>{const n=_g.exec(t);return n?n[1]?e(n[1]):r:!1},Pg=t=>t==="position"||t==="percentage",Cg=t=>t==="image"||t==="url",Ag=t=>t==="length"||t==="size"||t==="bg-size",Eg=t=>t==="length",Cx=t=>t==="number",Tg=t=>t==="family-name",Og=t=>t==="number"||t==="weight",$g=t=>t==="shadow",Uc=()=>{const t=vt("color"),e=vt("font"),r=vt("text"),n=vt("font-weight"),o=vt("tracking"),s=vt("leading"),i=vt("breakpoint"),a=vt("container"),l=vt("spacing"),u=vt("radius"),f=vt("shadow"),v=vt("inset-shadow"),h=vt("text-shadow"),g=vt("drop-shadow"),p=vt("blur"),m=vt("perspective"),y=vt("aspect"),w=vt("ease"),P=vt("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...S(),ye,me],C=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],x=()=>[ye,me,l],B=()=>[Ln,"full","auto",...x()],H=()=>[Rr,"none","subgrid",ye,me],U=()=>["auto",{span:["full",Rr,ye,me]},Rr,ye,me],V=()=>[Rr,"auto",ye,me],q=()=>["auto","min","max","fr",ye,me],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...x()],de=()=>[Ln,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],ce=()=>[Ln,"screen","full","dvw","lvw","svw","min","max","fit",...x()],_e=()=>[Ln,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],T=()=>[t,ye,me],Oe=()=>[...S(),Yf,qf,{position:[ye,me]}],Te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",kx,bx,{size:[ye,me]}],ue=()=>[Kc,ni,go],te=()=>["","none","full",u,ye,me],le=()=>["",De,ni,go],W=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[De,Kc,Yf,qf],Y=()=>["","none",p,ye,me],Q=()=>["none",De,ye,me],X=()=>["none",De,ye,me],ge=()=>[De,ye,me],F=()=>[Ln,"full",...x()];return{theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sn],breakpoint:[sn],color:[Sg],container:[sn],"drop-shadow":[sn],ease:["in","out","in-out"],font:[px],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sn],shadow:[sn],spacing:["px",De],text:[sn],"text-shadow":[sn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ln,me,ye,y]}],container:["container"],"container-type":[{"@container":["","normal","size",ye,me]}],"container-named":[mx],columns:[{columns:[De,me,ye,a]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Rr,"auto",ye,me]}],basis:[{basis:[Ln,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,Ln,"auto","initial","none",me]}],grow:[{grow:["",De,ye,me]}],shrink:[{shrink:["",De,ye,me]}],order:[{order:[Rr,"first","last","none",ye,me]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",..._e()]}],"min-block-size":[{"min-block":["auto",..._e()]}],"max-block-size":[{"max-block":["none",..._e()]}],w:[{w:[a,"screen",...de()]}],"min-w":[{"min-w":[a,"screen","none",...de()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",r,ni,go]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Px,yx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kc,me]}],"font-family":[{font:[_x,wx,e]}],"font-features":[{"font-features":[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ye,me]}],"line-clamp":[{"line-clamp":[De,"none",ye,Uf]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",ye,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",ye,go]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[De,"auto",ye,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[Rr,ye,me]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Oe()}],"bg-repeat":[{bg:Te()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rr,ye,me],radial:["",ye,me],conic:[Rr,ye,me]},Sx,xx]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,ye,me]}],"outline-w":[{outline:["",De,ni,go]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",f,Qa,Ja]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",v,Qa,Ja]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[De,go]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",h,Qa,Ja]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[De,ye,me]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[ye,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Oe()}],"mask-repeat":[{mask:Te()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,me]}],filter:[{filter:["","none",ye,me]}],blur:[{blur:Y()}],brightness:[{brightness:[De,ye,me]}],contrast:[{contrast:[De,ye,me]}],"drop-shadow":[{"drop-shadow":["","none",g,Qa,Ja]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",De,ye,me]}],"hue-rotate":[{"hue-rotate":[De,ye,me]}],invert:[{invert:["",De,ye,me]}],saturate:[{saturate:[De,ye,me]}],sepia:[{sepia:["",De,ye,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,me]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[De,ye,me]}],"backdrop-contrast":[{"backdrop-contrast":[De,ye,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,ye,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,ye,me]}],"backdrop-invert":[{"backdrop-invert":["",De,ye,me]}],"backdrop-opacity":[{"backdrop-opacity":[De,ye,me]}],"backdrop-saturate":[{"backdrop-saturate":[De,ye,me]}],"backdrop-sepia":[{"backdrop-sepia":["",De,ye,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",ye,me]}],ease:[{ease:["linear","initial",w,ye,me]}],delay:[{delay:[De,ye,me]}],animate:[{animate:["none",P,ye,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ye,me]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[ye,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],zoom:[{zoom:[Rr,ye,me]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,me]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[De,ni,go,Uf]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ax=(t,{extend:e={},override:r={}})=>(el(t.theme,r.theme),el(t.classGroups,r.classGroups),el(t.conflictingClassGroups,r.conflictingClassGroups),el(t.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Tu(t,"postfixLookupClassGroups",r.postfixLookupClassGroups),Tu(t,"orderSensitiveModifiers",r.orderSensitiveModifiers),tl(t.theme,e.theme),tl(t.classGroups,e.classGroups),tl(t.conflictingClassGroups,e.conflictingClassGroups),tl(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),Ou(t,e,"postfixLookupClassGroups"),Ou(t,e,"orderSensitiveModifiers"),t),Tu=(t,e,r)=>{r!==void 0&&(t[e]=r)},el=(t,e)=>{if(e)for(const r in e)Tu(t,r,e[r])},tl=(t,e)=>{if(e)for(const r in e)Ou(t,e,r)},Ou=(t,e,r)=>{const n=e[r];n!==void 0&&(t[r]=t[r]?t[r].concat(n):n)},Mg=t=>Kf(t?typeof t=="function"?()=>t(Uc()):()=>Ax(Uc(),t):Uc),Ex=t=>{if(br(t))return;const e=t,r={...e.extend??{}};for(const o of["theme","classGroups","conflictingClassGroups","conflictingClassGroupModifiers","postfixLookupClassGroups","orderSensitiveModifiers","cacheSize","prefix","separator","experimentalParseClassName"])e[o]!==void 0&&r[o]===void 0&&(r[o]=e[o]);const n={};if(Object.keys(r).length>0&&(n.extend=r),e.override!=null&&!br(e.override)&&(n.override=e.override),!(!n.extend&&!n.override))return n},Tx=t=>{const e=Ex(t),r=Mg(e);return n=>r.mergeString(n)},pl,Ox=()=>(pl||(pl=Mg()),pl),$x=()=>((!Dt.cachedTwMerge||Dt.didTwMergeConfigChange)&&(Dt.didTwMergeConfigChange=!1,Dt.cachedTwMerge=Tx(Dt.cachedTwMergeConfig)),Dt.cachedTwMerge),Mx=t=>{const e=t==null?void 0:t.twMergeConfig;!e||br(e)||lg(e,Dt.cachedTwMergeConfig)||(Dt.cachedTwMergeConfig=e,Dt.didTwMergeConfigChange=!0)},Ix=t=>Ac(t),Nx=Dt.reset.bind(Dt);Dt.reset=()=>{pl=void 0,Nx()};var zx=(t,e)=>{const r=Ix(t);return!r||!((e==null?void 0:e.twMerge)??!0)?r||void 0:r.indexOf(" ")===-1?r:(Mx(e),(!!(e!=null&&e.twMergeConfig&&!br(e.twMergeConfig))?$x():Ox().mergeString)(r)||void 0)},Rx=(t,...e)=>zx(e,t),Fx=$w(Rx),$d=Fx.tv;const Lx=$d({base:"grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full",variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});var Dx=new Set(["$$slots","$$events","$$legacy","ref","class","variant","children"]),Bx=oe("
    ");function Md(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=$(e,"variant",3,"default"),o=je(e,Dx);var s=Bx();Ke(s,a=>({"data-slot":"alert",role:"alert",class:a,...o}),[()=>Ge(Lx({variant:n()}),e.class)]);var i=D(s);Fe(i,()=>e.children??ze),ot(s,a=>r(a),()=>r()),b(t,s),Ie()}var Vx=new Set(["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]),Xf=oe("");function Id(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=$(e,"value",15),o=$(e,"files",15),s=$(e,"data-slot",3,"input"),i=je(e,Vx);var a=ne(),l=E(a);{var u=v=>{var h=Xf();Ke(h,g=>({"data-slot":s(),class:g,type:"file",...i}),[()=>Ge("h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e.class)],void 0,void 0,void 0,!0),ot(h,g=>r(g),()=>r()),Wb(h,o),ku(h,n),b(v,h)},f=v=>{var h=Xf();Ke(h,g=>({"data-slot":s(),class:g,type:e.type,...i}),[()=>Ge("h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e.class)],void 0,void 0,void 0,!0),ot(h,g=>r(g),()=>r()),ku(h,n),b(v,h)};Ne(l,v=>{e.type==="file"?v(u):v(f,-1)})}b(t,a),Ie()}function Wx(t){return typeof t=="function"}function Va(t){return t!==null&&typeof t=="object"}const jx=["string","number","bigint","boolean"];function $u(t){return t==null||jx.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>$u(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const Gs=Symbol("box"),Ec=Symbol("is-writable");function ve(t,e){const r=j(t);return e?{[Gs]:!0,[Ec]:!0,get current(){return d(r)},set current(n){e(n)}}:{[Gs]:!0,get current(){return t()}}}function Wa(t){return Va(t)&&Gs in t}function Nd(t){return Wa(t)&&Ec in t}function Ig(t){return Wa(t)?t:Wx(t)?ve(t):Hr(t)}function Gx(t){return Object.entries(t).reduce((e,[r,n])=>Wa(n)?(Nd(n)?Object.defineProperty(e,r,{get(){return n.current},set(o){n.current=o}}):Object.defineProperty(e,r,{get(){return n.current}}),e):Object.assign(e,{[r]:n}),{})}function Hx(t){return Nd(t)?{[Gs]:!0,get current(){return t.current}}:t}function Hr(t){let e=Ce(Jt(t));return{[Gs]:!0,[Ec]:!0,get current(){return d(e)},set current(r){N(e,r,!0)}}}function Jo(t){let e=Ce(Jt(t));return{[Gs]:!0,[Ec]:!0,get current(){return d(e)},set current(r){N(e,r,!0)}}}Jo.from=Ig;Jo.with=ve;Jo.flatten=Gx;Jo.readonly=Hx;Jo.isBox=Wa;Jo.isWritableBox=Nd;function Ng(...t){return function(e){var r;for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):(r=n.current)==null||r.call(this,e)}}}var Zf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Kx=/\n/g,Ux=/^\s*/,qx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Yx=/^:\s*/,Xx=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Zx=/^[;\s]*/,Jx=/^\s+|\s+$/g,Qx=` +`,Jf="/",Qf="*",_o="",e_="comment",t_="declaration";function r_(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var r=1,n=1;function o(p){var m=p.match(Kx);m&&(r+=m.length);var y=p.lastIndexOf(Qx);n=~y?p.length-y:n+p.length}function s(){var p={line:r,column:n};return function(m){return m.position=new i(p),u(),m}}function i(p){this.start=p,this.end={line:r,column:n},this.source=e.source}i.prototype.content=t;function a(p){var m=new Error(e.source+":"+r+":"+n+": "+p);if(m.reason=p,m.filename=e.source,m.line=r,m.column=n,m.source=t,!e.silent)throw m}function l(p){var m=p.exec(t);if(m){var y=m[0];return o(y),t=t.slice(y.length),m}}function u(){l(Ux)}function f(p){var m;for(p=p||[];m=v();)m!==!1&&p.push(m);return p}function v(){var p=s();if(!(Jf!=t.charAt(0)||Qf!=t.charAt(1))){for(var m=2;_o!=t.charAt(m)&&(Qf!=t.charAt(m)||Jf!=t.charAt(m+1));)++m;if(m+=2,_o===t.charAt(m-1))return a("End of comment missing");var y=t.slice(2,m-2);return n+=2,o(y),t=t.slice(m),n+=2,p({type:e_,comment:y})}}function h(){var p=s(),m=l(qx);if(m){if(v(),!l(Yx))return a("property missing ':'");var y=l(Xx),w=p({type:t_,property:eh(m[0].replace(Zf,_o)),value:y?eh(y[0].replace(Zf,_o)):_o});return l(Zx),w}}function g(){var p=[];f(p);for(var m;m=h();)m!==!1&&(p.push(m),f(p));return p}return u(),g()}function eh(t){return t?t.replace(Jx,_o):_o}function n_(t,e){let r=null;if(!t||typeof t!="string")return r;const n=r_(t),o=typeof e=="function";return n.forEach(s=>{if(s.type!=="declaration")return;const{property:i,value:a}=s;o?e(i,a,s):a&&(r=r||{},r[i]=a)}),r}const o_=/\d/,s_=["-","_","/","."];function i_(t=""){if(!o_.test(t))return t!==t.toLowerCase()}function a_(t){const e=[];let r="",n,o;for(const s of t){const i=s_.includes(s);if(i===!0){e.push(r),r="",n=void 0;continue}const a=i_(s);if(o===!1){if(n===!1&&a===!0){e.push(r),r=s,n=a;continue}if(n===!0&&a===!1&&r.length>1){const l=r.at(-1);e.push(r.slice(0,Math.max(0,r.length-1))),r=l+s,n=a;continue}}r+=s,n=a,o=i}return e.push(r),e}function zg(t){return t?a_(t).map(e=>c_(e)).join(""):""}function l_(t){return u_(zg(t||""))}function c_(t){return t?t[0].toUpperCase()+t.slice(1):""}function u_(t){return t?t[0].toLowerCase()+t.slice(1):""}function hi(t){if(!t)return{};const e={};function r(n,o){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){e[zg(n)]=o;return}if(n.startsWith("--")){e[n]=o;return}e[l_(n)]=o}return n_(t,r),e}function hs(...t){return(...e)=>{for(const r of t)typeof r=="function"&&r(...e)}}function d_(t,e){const r=RegExp(t,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,e):n}}const f_=d_(/[A-Z]/,t=>`-${t.toLowerCase()}`);function h_(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${f_(e)}: ${t[e]};`).join(` +`)}function Rg(t={}){return h_(t).replace(` +`," ")}const v_=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],g_=new Set(v_);function p_(t){return g_.has(t)}function Xr(...t){const e={...t[0]};for(let r=1;ru.has(h)));f&&Wr(l)}return a}delete(r){var n=c(this,Dr),o=n.get(r),s=super.delete(r);return o!==void 0&&(n.delete(r),N(o,-1)),s&&(N(c(this,fn),super.size),Wr(c(this,Br))),s}clear(){if(super.size!==0){super.clear();var r=c(this,Dr);N(c(this,fn),0);for(var n of r.values())N(n,-1);Wr(c(this,Br)),r.clear()}}keys(){return d(c(this,Br)),super.keys()}values(){return G(this,$r,ml).call(this),super.values()}entries(){return G(this,$r,ml).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return d(c(this,fn)),super.size}};Dr=new WeakMap,Br=new WeakMap,fn=new WeakMap,Zl=new WeakMap,$r=new WeakSet,vi=function(r){return Cn===c(this,Zl)?Ce(r):Tn(r)},ml=function(){d(c(this,Br));var r=c(this,Dr);if(c(this,fn).v!==r.size){for(var n of gf(Qd.prototype,this,"keys").call(this))if(!r.has(n)){var o=G(this,$r,vi).call(this,0);r.set(n,o)}}for([,o]of c(this,Dr))d(o)};let Mu=Qd;var _s,$i;class b_{constructor(e={}){_(this,_s);_(this,$i);const{window:r=Fg,document:n=r==null?void 0:r.document}=e;r!==void 0&&(M(this,_s,n),M(this,$i,fd(o=>{const s=zt(r,"focusin",o),i=zt(r,"focusout",o);return()=>{s(),i()}})))}get current(){var e;return(e=c(this,$i))==null||e.call(this),c(this,_s)?m_(c(this,_s)):null}}_s=new WeakMap,$i=new WeakMap;new b_;function y_(t){return typeof t=="function"}var Mi,hn;class Qo{constructor(e){_(this,Mi);_(this,hn);M(this,Mi,e),M(this,hn,Symbol(e))}get key(){return c(this,hn)}exists(){return Mm(c(this,hn))}get(){const e=mf(c(this,hn));if(e===void 0)throw new Error(`Context "${c(this,Mi)}" not found`);return e}getOr(e){const r=mf(c(this,hn));return r===void 0?e:r}set(e){return $m(c(this,hn),e)}}Mi=new WeakMap,hn=new WeakMap;function w_(t,e){switch(t){case"post":nt(e);break;case"pre":wv(e);break}}function Lg(t,e,r,n={}){const{lazy:o=!1}=n;let s=!o,i=Array.isArray(t)?[]:void 0;w_(e,()=>{const a=Array.isArray(t)?t.map(u=>u()):t();if(!s){s=!0,i=a;return}const l=Sr(()=>r(a,i));return i=a,l})}function cr(t,e,r){Lg(t,"post",e,r)}function x_(t,e,r){Lg(t,"pre",e,r)}cr.pre=x_;function th(t){return y_(t)?t():t}var Hn,ks,Ss,Ps,Kn,Jl,Ql,Cs;class __{constructor(e,r={box:"border-box"}){_(this,Hn,{width:0,height:0});_(this,ks,!1);_(this,Ss);_(this,Ps);_(this,Kn);_(this,Jl,j(()=>{var e;return(e=d(c(this,Cs)))==null||e(),this.getSize().width}));_(this,Ql,j(()=>{var e;return(e=d(c(this,Cs)))==null||e(),this.getSize().height}));_(this,Cs,j(()=>{const e=th(c(this,Ps));if(e)return fd(r=>{if(!c(this,Kn))return;const n=new(c(this,Kn)).ResizeObserver(o=>{M(this,ks,!0);for(const s of o){const i=c(this,Ss).box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];c(this,Hn).width=a.reduce((l,u)=>Math.max(l,u.inlineSize),0),c(this,Hn).height=a.reduce((l,u)=>Math.max(l,u.blockSize),0)}r()});return n.observe(e),()=>{M(this,ks,!1),n.disconnect()}})}));M(this,Kn,r.window??Fg),M(this,Ss,r),M(this,Ps,e),M(this,Hn,{width:0,height:0})}calculateSize(){const e=th(c(this,Ps));if(!e||!c(this,Kn))return;const r=e.offsetWidth,n=e.offsetHeight;if(c(this,Ss).box==="border-box")return{width:r,height:n};const o=c(this,Kn).getComputedStyle(e),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),l=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),u=r-s-a,f=n-i-l;return{width:u,height:f}}getSize(){return c(this,ks)?c(this,Hn):this.calculateSize()??c(this,Hn)}get current(){var e;return(e=d(c(this,Cs)))==null||e(),this.getSize()}get width(){return d(c(this,Jl))}get height(){return d(c(this,Ql))}}Hn=new WeakMap,ks=new WeakMap,Ss=new WeakMap,Ps=new WeakMap,Kn=new WeakMap,Jl=new WeakMap,Ql=new WeakMap,Cs=new WeakMap;function es(t){nt(()=>()=>{t()})}function k_(t,e){return setTimeout(e,t)}function jr(t){Mv().then(t)}const S_=1,P_=9,C_=11;function Iu(t){return Va(t)&&t.nodeType===S_&&typeof t.nodeName=="string"}function Dg(t){return Va(t)&&t.nodeType===P_}function A_(t){var e;return Va(t)&&((e=t.constructor)==null?void 0:e.name)==="VisualViewport"}function E_(t){return Va(t)&&t.nodeType!==void 0}function Bg(t){return E_(t)&&t.nodeType===C_&&"host"in t}function T_(t,e){var n;if(!t||!e||!Iu(t)||!Iu(e))return!1;const r=(n=e.getRootNode)==null?void 0:n.call(e);if(t===e||t.contains(e))return!0;if(r&&Bg(r)){let o=e;for(;o;){if(t===o)return!0;o=o.parentNode||o.host}}return!1}function ja(t){return Dg(t)?t:A_(t)?t.document:(t==null?void 0:t.ownerDocument)??document}function Vg(t){var e;return Bg(t)?Vg(t.host):Dg(t)?t.defaultView??window:Iu(t)?((e=t.ownerDocument)==null?void 0:e.defaultView)??window:window}function O_(t){let e=t.activeElement;for(;e!=null&&e.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}var Ii;class zd{constructor(e){se(this,"element");_(this,Ii,j(()=>this.element.current?this.element.current.getRootNode()??document:document));se(this,"getDocument",()=>ja(this.root));se(this,"getWindow",()=>this.getDocument().defaultView??window);se(this,"getActiveElement",()=>O_(this.root));se(this,"isActiveElement",e=>e===this.getActiveElement());se(this,"querySelector",e=>this.root?this.root.querySelector(e):null);se(this,"querySelectorAll",e=>this.root?this.root.querySelectorAll(e):[]);se(this,"setTimeout",(e,r)=>this.getWindow().setTimeout(e,r));se(this,"clearTimeout",e=>this.getWindow().clearTimeout(e));typeof e=="function"?this.element=ve(e):this.element=e}get root(){return d(c(this,Ii))}set root(e){N(c(this,Ii),e)}getElementById(e){return this.root.getElementById(e)}}Ii=new WeakMap;function no(t,e){return{[fb()]:r=>Wa(t)?(t.current=r,Sr(()=>e==null?void 0:e(r)),()=>{"isConnected"in r&&r.isConnected||(t.current=null,e==null||e(null))}):(t(r),Sr(()=>e==null?void 0:e(r)),()=>{"isConnected"in r&&r.isConnected||(t(null),e==null||e(null))})}}function Wg(t){return t?"true":"false"}function jg(t){return t?"":void 0}function Gg(t){return t?"open":"closed"}function $_(t){return t==="starting"?{"data-starting-style":""}:t==="ending"?{"data-ending-style":""}:{}}var As,Ni;class M_{constructor(e){_(this,As);_(this,Ni);se(this,"attrs");M(this,As,e.getVariant?e.getVariant():null),M(this,Ni,c(this,As)?`data-${c(this,As)}-`:`data-${e.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(r=>[r,this.getAttr(r)]))}getAttr(e,r){return r?`data-${r}-${e}`:`${c(this,Ni)}${e}`}selector(e,r){return`[${this.getAttr(e,r)}]`}}As=new WeakMap,Ni=new WeakMap;function Hg(t){const e=new M_(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}const ki="ArrowDown",Rd="ArrowLeft",Fd="ArrowRight",Fl="ArrowUp",Kg="End",Ug="Enter",I_="Escape",qg="Home",N_="PageDown",z_="PageUp",Ld=" ",R_="Tab";function F_(t){return window.getComputedStyle(t).getPropertyValue("direction")}function L_(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?Rd:Fd,vertical:ki}[e]}function D_(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?Fd:Rd,vertical:Fl}[e]}function B_(t="ltr",e="horizontal"){return["ltr","rtl"].includes(t)||(t="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:L_(t,e),prevKey:D_(t,e)}}const Yg=typeof document<"u",rh=V_();function V_(){var t,e;return Yg&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function so(t){return t instanceof HTMLElement}function wi(t){return t instanceof Element}function Xg(t){return t instanceof Element||t instanceof SVGElement}function W_(t){return t!==null}function j_(t){return t instanceof HTMLInputElement&&"select"in t}var $t,vn;class G_{constructor(e){_(this,$t);_(this,vn,Jo(null));M(this,$t,e)}getCandidateNodes(){return c(this,$t).rootNode.current?c(this,$t).candidateSelector?Array.from(c(this,$t).rootNode.current.querySelectorAll(c(this,$t).candidateSelector)):c(this,$t).candidateAttr?Array.from(c(this,$t).rootNode.current.querySelectorAll(`[${c(this,$t).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){var r;const e=this.getCandidateNodes();e.length&&((r=e[0])==null||r.focus())}handleKeydown(e,r,n=!1){var p,m;const o=c(this,$t).rootNode.current;if(!o||!e)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(e),a=F_(o),{nextKey:l,prevKey:u}=B_(a,c(this,$t).orientation.current),f=c(this,$t).loop.current,v={[l]:i+1,[u]:i-1,[qg]:0,[Kg]:s.length-1};if(n){const y=l===ki?Fd:ki,w=u===Fl?Rd:Fl;v[y]=i+1,v[w]=i-1}let h=v[r.key];if(h===void 0)return;r.preventDefault(),h<0&&f?h=s.length-1:h===s.length&&f&&(h=0);const g=s[h];if(g)return g.focus(),c(this,vn).current=g.id,(m=(p=c(this,$t)).onCandidateFocus)==null||m.call(p,g),g}getTabIndex(e){const r=this.getCandidateNodes(),n=c(this,vn).current!==null;return e&&!n&&r[0]===e?(c(this,vn).current=e.id,0):(e==null?void 0:e.id)===c(this,vn).current?0:-1}setCurrentTabStopId(e){c(this,vn).current=e}focusCurrentTabStop(){var n;const e=c(this,vn).current;if(!e)return;const r=(n=c(this,$t).rootNode.current)==null?void 0:n.querySelector(`#${e}`);!r||!so(r)||r.focus()}}$t=new WeakMap,vn=new WeakMap;var $o,Vr,gn,pn,lo,Nu,zu;class H_{constructor(e){_(this,lo);_(this,$o);_(this,Vr,null);_(this,gn,null);_(this,pn,0);M(this,$o,e),es(()=>G(this,lo,Nu).call(this))}run(e){G(this,lo,Nu).call(this);const r=c(this,$o).ref.current;if(!r)return;if(typeof r.getAnimations!="function"){G(this,lo,zu).call(this,e);return}const n=c(this,pn),o=()=>{n===c(this,pn)&&G(this,lo,zu).call(this,e)},s=()=>{if(n!==c(this,pn))return;const a=r.getAnimations();if(a.length===0){o();return}Promise.all(a.map(l=>l.finished)).then(()=>{o()}).catch(()=>{if(n!==c(this,pn))return;if(r.getAnimations().some(f=>f.pending||f.playState!=="finished")){s();return}o()})},i=()=>{M(this,Vr,window.requestAnimationFrame(()=>{M(this,Vr,null),s()}))};if(!c(this,$o).afterTick.current){i();return}M(this,Vr,window.requestAnimationFrame(()=>{M(this,Vr,null);const a="data-starting-style";if(!r.hasAttribute(a)){i();return}M(this,gn,new MutationObserver(()=>{var l;n===c(this,pn)&&(r.hasAttribute(a)||((l=c(this,gn))==null||l.disconnect(),M(this,gn,null),i()))})),c(this,gn).observe(r,{attributes:!0,attributeFilter:[a]})}))}}$o=new WeakMap,Vr=new WeakMap,gn=new WeakMap,pn=new WeakMap,lo=new WeakSet,Nu=function(){var e;c(this,Vr)!==null&&(window.cancelAnimationFrame(c(this,Vr)),M(this,Vr,null)),(e=c(this,gn))==null||e.disconnect(),M(this,gn,null),vf(this,pn)._++},zu=function(e){const r=()=>{e()};c(this,$o).afterTick?jr(r):r()};var Ht,zi,Ri,mn,bn,Fi,Un,Li,Ru;class K_{constructor(e){_(this,Li);_(this,Ht);_(this,zi);_(this,Ri);_(this,mn,Ce(!1));_(this,bn,Ce(void 0));_(this,Fi,!1);_(this,Un,null);M(this,Ht,e),N(c(this,mn),e.open.current,!0),M(this,zi,e.enabled??!0),M(this,Ri,new H_({ref:c(this,Ht).ref,afterTick:c(this,Ht).open})),es(()=>G(this,Li,Ru).call(this)),cr(()=>c(this,Ht).open.current,r=>{var n,o,s,i,a,l;if(!c(this,Fi)){M(this,Fi,!0);return}if(G(this,Li,Ru).call(this),!r&&((o=(n=c(this,Ht)).shouldSkipExitAnimation)!=null&&o.call(n))){N(c(this,mn),!1),N(c(this,bn),void 0),(i=(s=c(this,Ht)).onComplete)==null||i.call(s);return}if(r&&N(c(this,mn),!0),N(c(this,bn),r?"starting":"ending",!0),r&&M(this,Un,window.requestAnimationFrame(()=>{M(this,Un,null),c(this,Ht).open.current&&N(c(this,bn),void 0)})),!c(this,zi)){r||N(c(this,mn),!1),N(c(this,bn),void 0),(l=(a=c(this,Ht)).onComplete)==null||l.call(a);return}c(this,Ri).run(()=>{var u,f;r===c(this,Ht).open.current&&(c(this,Ht).open.current||N(c(this,mn),!1),N(c(this,bn),void 0),(f=(u=c(this,Ht)).onComplete)==null||f.call(u))})})}get shouldRender(){return d(c(this,mn))}get transitionStatus(){return d(c(this,bn))}}Ht=new WeakMap,zi=new WeakMap,Ri=new WeakMap,mn=new WeakMap,bn=new WeakMap,Fi=new WeakMap,Un=new WeakMap,Li=new WeakSet,Ru=function(){c(this,Un)!==null&&(window.cancelAnimationFrame(c(this,Un)),M(this,Un,null))};function lt(){}function Ga(t,e){return`bits-${t}`}function U_(t,e){var r=ne(),n=E(r);Dv(n,()=>e.children,o=>{var s=ne(),i=E(s);Fe(i,()=>e.children??ze),b(o,s)}),b(t,r)}const q_=new Qo("BitsConfig");function Y_(){const t=new X_(null,{});return q_.getOr(t).opts}class X_{constructor(e,r){se(this,"opts");const n=Z_(e,r);this.opts={defaultPortalTo:n(o=>o.defaultPortalTo),defaultLocale:n(o=>o.defaultLocale)}}}function Z_(t,e){return r=>ve(()=>{var s,i;const o=(s=r(e))==null?void 0:s.current;if(o!==void 0)return o;if(t!==null)return(i=r(t.opts))==null?void 0:i.current})}function J_(t,e){return r=>{const n=Y_();return ve(()=>{const o=r();if(o!==void 0)return o;const s=t(n).current;return s!==void 0?s:e})}}const Q_=J_(t=>t.defaultPortalTo,"body");function e0(t,e){Me(e,!0);const r=Q_(()=>e.to),n=Im();let o=j(s);function s(){if(!Yg||e.disabled)return null;let v=null;return typeof r.current=="string"?v=document.querySelector(r.current):v=r.current,v}let i;function a(){i&&(kb(i),i=null)}cr([()=>d(o),()=>e.disabled],([v,h])=>{if(!v||h){a();return}return i=Lv(U_,{target:v,props:{children:e.children},context:n}),()=>{a()}});var l=ne(),u=E(l);{var f=v=>{var h=ne(),g=E(h);Fe(g,()=>e.children??ze),b(v,h)};Ne(u,v=>{e.disabled&&v(f)})}b(t,l),Ie()}class t0{constructor(e,r={bubbles:!0,cancelable:!0}){se(this,"eventName");se(this,"options");this.eventName=e,this.options=r}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,r){const n=this.createEvent(r);return e.dispatchEvent(n),n}listen(e,r,n){const o=s=>{r(s)};return zt(e,this.eventName,o,n)}}function nh(t,e=500){let r=null;const n=(...o)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...o)},e)};return n.destroy=()=>{r!==null&&(clearTimeout(r),r=null)},n}function Zg(t,e){return t===e||t.contains(e)}function Jg(t){return(t==null?void 0:t.ownerDocument)??document}function r0(t,e){const{clientX:r,clientY:n}=t,o=e.getBoundingClientRect();return ro.right||no.bottom}const n0=[Ug,Ld],o0=[ki,z_,qg],Qg=[Fl,N_,Kg],s0=[...o0,...Qg];function an(t){return t.pointerType==="mouse"}function i0(t,{select:e=!1}={}){if(!t||!t.focus)return;const r=ja(t);if(r.activeElement===t)return;const n=r.activeElement;t.focus({preventScroll:!0}),t!==n&&j_(t)&&e&&t.select()}function a0(t,{select:e=!1}={},r){const n=r();for(const o of t)if(i0(o,{select:e}),r()!==n)return!0}let oi=Ce(!1);const dr=class dr{constructor(){nt(()=>(dr._refs===0&&(dr._cleanup=xv(()=>{const e=[],r=o=>{N(oi,!1)},n=o=>{N(oi,!0)};return e.push(zt(document,"pointerdown",r,{capture:!0}),zt(document,"pointermove",r,{capture:!0}),zt(document,"keydown",n,{capture:!0})),hs(...e)})),dr._refs++,()=>{var e;dr._refs--,dr._refs===0&&(N(oi,!1),(e=dr._cleanup)==null||e.call(dr))}))}get current(){return d(oi)}set current(e){N(oi,e,!0)}};se(dr,"_refs",0),se(dr,"_cleanup");let Fu=dr;/*! +* tabbable 6.5.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var ep=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Ll=ep.join(","),tp=typeof Element>"u",Go=tp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Dl=!tp&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Bl=function(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),s=o===""||o==="true",i=s||r&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Bl(e.parentNode));return i},l0=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},rp=function(e,r,n){if(Bl(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Ll));return r&&Go.call(e,Ll)&&o.unshift(e),o=o.filter(n),o},Vl=function(e,r,n){for(var o=[],s=Array.from(e);s.length;){var i=s.shift();if(!Bl(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),l=a.length?a:i.children,u=Vl(l,!0,n);n.flatten?o.push.apply(o,u):o.push({scopeParent:i,candidates:u})}else{var f=Go.call(i,Ll);f&&n.filter(i)&&(r||!e.includes(i))&&o.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Bl(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(v&&h){var g=Vl(v===!0?i.children:v.children,!0,n);n.flatten?o.push.apply(o,g):o.push({scopeParent:i,candidates:g})}else s.unshift.apply(s,i.children)}}return o},np=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},op=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||l0(e))&&!np(e)?0:e.tabIndex},c0=function(e,r){var n=op(e);return n<0&&r&&!np(e)?0:n},u0=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},sp=function(e){return e.tagName==="INPUT"},d0=function(e){return sp(e)&&e.type==="hidden"},f0=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},h0=function(e,r){for(var n=0;nsummary:first-of-type"),u=l?e.parentElement:e;if(Go.call(u,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var f=e;e;){var v=e.parentElement,h=Dl(e);if(v&&!v.shadowRoot&&o(v)===!0)return oh(e);e.assignedSlot?e=e.assignedSlot:!v&&h!==e.ownerDocument?e=h.host:e=v}e=f}if(m0(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return oh(e);return!1},y0=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},ip=function(e){var r=[],n=[];return e.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,l=c0(a,i),u=i?ip(o.candidates):a;l===0?i?r.push.apply(r,u):r.push(a):n.push({documentOrder:s,tabIndex:l,item:o,isScope:i,content:u})}),n.sort(u0).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(r)},ap=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Vl([e],r.includeContainer,{filter:Lu.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:w0}):n=rp(e,r.includeContainer,Lu.bind(null,r)),ip(n)},lp=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Vl([e],r.includeContainer,{filter:Wl.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=rp(e,r.includeContainer,Wl.bind(null,r)),n},Dd=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Go.call(e,Ll)===!1?!1:Lu(r,e)},x0=ep.concat("iframe:not([inert]):not([inert] *)").join(","),cp=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Go.call(e,x0)===!1?!1:Wl(r,e)};function xi(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function _0(t,e){if(!Dd(t,xi()))return k0(t,e);const r=ja(t),n=ap(r.body,xi());e==="prev"&&n.reverse();const o=n.indexOf(t);return o===-1?r.body:n.slice(o+1)[0]}function k0(t,e){const r=ja(t);if(!cp(t,xi()))return r.body;const n=lp(r.body,xi());e==="prev"&&n.reverse();const o=n.indexOf(t);return o===-1?r.body:n.slice(o+1).find(i=>Dd(i,xi()))??r.body}function up(t,e,r){const n=e.toLowerCase();if(n.endsWith(" ")){const v=n.slice(0,-1);if(t.filter(m=>m.toLowerCase().startsWith(v)).length<=1)return up(t,v,r);const g=r==null?void 0:r.toLowerCase();if(g&&g.startsWith(v)&&g.charAt(v.length)===" "&&e.trim()===v)return r;const p=t.filter(m=>m.toLowerCase().startsWith(n));if(p.length>0){const m=r?t.indexOf(r):-1;return sh(p,Math.max(m,0)).find(P=>P!==r)||r}}const s=e.length>1&&Array.from(e).every(v=>v===e[0])?e[0]:e,i=s.toLowerCase(),a=r?t.indexOf(r):-1;let l=sh(t,Math.max(a,0));s.length===1&&(l=l.filter(v=>v!==r));const f=l.find(v=>v==null?void 0:v.toLowerCase().startsWith(i));return f!==r?f:void 0}function sh(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const S0={afterMs:1e4,onChange:lt};function P0(t,e){const{afterMs:r,onChange:n,getWindow:o}={...S0,...e};let s=null,i=Ce(Jt(t));function a(){return o().setTimeout(()=>{N(i,t,!0),n==null||n(t)},r)}return nt(()=>()=>{s&&o().clearTimeout(s)}),ve(()=>d(i),l=>{N(i,l,!0),n==null||n(l),s&&o().clearTimeout(s),s=a()})}var yn,wn,ec,tc;class C0{constructor(e){_(this,yn);_(this,wn);_(this,ec,j(()=>c(this,yn).onMatch?c(this,yn).onMatch:e=>e.focus()));_(this,tc,j(()=>c(this,yn).getCurrentItem?c(this,yn).getCurrentItem:c(this,yn).getActiveElement));M(this,yn,e),M(this,wn,P0("",{afterMs:1e3,getWindow:e.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,r){var l,u;if(!r.length)return;c(this,wn).current=c(this,wn).current+e;const n=d(c(this,tc))(),o=((u=(l=r.find(f=>f===n))==null?void 0:l.textContent)==null?void 0:u.trim())??"",s=r.map(f=>{var v;return((v=f.textContent)==null?void 0:v.trim())??""}),i=up(s,c(this,wn).current,o),a=r.find(f=>{var v;return((v=f.textContent)==null?void 0:v.trim())===i});return a&&d(c(this,ec))(a),a}resetTypeahead(){c(this,wn).current=""}get search(){return c(this,wn).current}}yn=new WeakMap,wn=new WeakMap,ec=new WeakMap,tc=new WeakMap;const A0="data-context-menu-trigger",E0="data-context-menu-content",dp=new Qo("Menu.Root"),Bd=new Qo("Menu.Root | Menu.Sub"),fp=new Qo("Menu.Content"),T0=new t0("bitsmenuopen",{bubbles:!1,cancelable:!0}),O0=Hg({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});var Ze,Mo,qn,Kt,pr,Io,xn,Es,Ee,hp,bl,Du,Bu,Vu,Yn,gi,yl,pi,wl,vp,Di,gp,xl,_l,ls,kl;class $0{constructor(e){_(this,Ee);_(this,Ze);_(this,Mo,null);_(this,qn,null);_(this,Kt,!1);_(this,pr,null);_(this,Io,null);_(this,xn,null);_(this,Es,null);_(this,Yn,null);_(this,Di,e=>{if(!c(this,Kt)||!c(this,pr)||!an(e))return;const r=c(this,Ze).triggerNode(),n=c(this,Ze).contentNode();if(!r||!n){G(this,Ee,pi).call(this);return}G(this,Ee,ls).call(this);const o={x:e.clientX,y:e.clientY};M(this,xn,o);const s=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(c(this,pr)==="content"&&ah(o,i)){G(this,Ee,gi).call(this);return}if(c(this,pr)==="trigger"&&M0(o,s,4)){G(this,Ee,gi).call(this);return}if(G(this,Ee,vp).call(this,o)){G(this,Ee,_l).call(this);return}const a=G(this,Ee,bl).call(this,o,c(this,pr));if(!a){G(this,Ee,pi).call(this);return}if(G(this,Ee,Du).call(this,o,a.corridor,a.intent)){G(this,Ee,_l).call(this);return}G(this,Ee,pi).call(this)});M(this,Ze,e),cr([e.triggerNode,e.contentNode,e.enabled],([r,n,o])=>{if(G(this,Ee,wl).call(this),!r||!n||!o)return;const s=v=>{an(v)&&(M(this,Es,{x:v.clientX,y:v.clientY}),c(this,Kt)||G(this,Ee,Bu).call(this,v,"content"))},i=v=>{an(v)&&G(this,Ee,Vu).call(this,v,"content")},a=v=>{an(v)&&(c(this,Kt)||G(this,Ee,Bu).call(this,v,"trigger"))},l=v=>{if(an(v)){if(wi(v.relatedTarget)){const h=c(this,Ze).subContentSelector(),g=v.relatedTarget.closest(h);if(g&&g!==n&&g.id&&!!n.querySelector(`[aria-controls="${g.id}"]`))return}G(this,Ee,Vu).call(this,v,"trigger")}},u=v=>{an(v)&&G(this,Ee,gi).call(this)},f=v=>{an(v)&&G(this,Ee,gi).call(this)};return r.addEventListener("pointermove",s),r.addEventListener("pointerleave",i),r.addEventListener("pointerenter",u),n.addEventListener("pointermove",a),n.addEventListener("pointerleave",l),n.addEventListener("pointerenter",f),()=>{r.removeEventListener("pointermove",s),r.removeEventListener("pointerleave",i),r.removeEventListener("pointerenter",u),n.removeEventListener("pointermove",a),n.removeEventListener("pointerleave",l),n.removeEventListener("pointerenter",f),G(this,Ee,wl).call(this)}}),es(()=>{G(this,Ee,wl).call(this)})}}Ze=new WeakMap,Mo=new WeakMap,qn=new WeakMap,Kt=new WeakMap,pr=new WeakMap,Io=new WeakMap,xn=new WeakMap,Es=new WeakMap,Ee=new WeakSet,hp=function(){var r;const e=c(this,Ze).parentContentNode();return e?e.getBoundingClientRect():((r=c(this,Ze).triggerNode())==null?void 0:r.getBoundingClientRect())??null},bl=function(e,r){const n=c(this,Ze).triggerNode(),o=c(this,Ze).contentNode();if(!n||!o)return null;const s=n.getBoundingClientRect(),i=o.getBoundingClientRect(),a=I0(s,i);let l,u,f;return r==="content"?(l=c(this,Kt)?c(this,Io)??e:e,u=i):(l=c(this,Es)??e,u=G(this,Ee,hp).call(this)??s,f=i),M(this,Io,l),{corridor:N0(s,i,a),intent:z0(l,u,a,r,f),targetRect:u,side:a}},Du=function(e,r,n){return ih(e,r)||ih(e,n)},Bu=function(e,r){const n={x:e.clientX,y:e.clientY};G(this,Ee,bl).call(this,n,r)&&(M(this,pr,r),M(this,xn,n))},Vu=function(e,r){if(!c(this,Ze).enabled())return;const n=c(this,Ze).triggerNode(),o=c(this,Ze).contentNode();if(!n||!o)return;const s=e.relatedTarget;if(wi(s)&&(r==="content"&&o.contains(s)||r==="trigger"&&n.contains(s)))return;const i={x:e.clientX,y:e.clientY},a=G(this,Ee,bl).call(this,i,r);if(a){if(!ah(i,a.targetRect)&&!G(this,Ee,Du).call(this,i,a.corridor,a.intent)){G(this,Ee,kl).call(this);return}M(this,Kt,!0),M(this,pr,r),M(this,xn,i),c(this,Ze).setIsPointerInTransit(!0),G(this,Ee,gp).call(this),G(this,Ee,_l).call(this)}},Yn=new WeakMap,gi=function(){if(!c(this,Kt))return;const e=c(this,pr)==="trigger";G(this,Ee,xl).call(this),G(this,Ee,ls).call(this),M(this,Kt,!1),G(this,Ee,kl).call(this),e?(G(this,Ee,yl).call(this),M(this,Yn,setTimeout(()=>{M(this,Yn,null),c(this,Ze).setIsPointerInTransit(!1)},100))):c(this,Ze).setIsPointerInTransit(!1)},yl=function(){c(this,Yn)!==null&&(clearTimeout(c(this,Yn)),M(this,Yn,null))},pi=function(){const e=c(this,xn);G(this,Ee,xl).call(this),G(this,Ee,ls).call(this),G(this,Ee,yl).call(this),M(this,Kt,!1),c(this,Ze).setIsPointerInTransit(!1),G(this,Ee,kl).call(this),c(this,Ze).onIntentExit(e)},wl=function(){G(this,Ee,xl).call(this),G(this,Ee,ls).call(this),G(this,Ee,yl).call(this),c(this,Kt)&&c(this,Ze).setIsPointerInTransit(!1),M(this,Kt,!1),M(this,pr,null),M(this,Io,null),M(this,xn,null),M(this,Es,null)},vp=function(e){const r=c(this,Ze).contentNode();if(!r)return!1;const o=r.ownerDocument.elementFromPoint(e.x,e.y);if(!o)return!1;const s=c(this,Ze).subContentSelector(),i=o.closest(s);return!i||i===r?!1:i.id?!!r.querySelector(`[aria-controls="${i.id}"]`):!1},Di=new WeakMap,gp=function(){if(c(this,Mo))return;const e=ja(c(this,Ze).triggerNode()??c(this,Ze).contentNode());e&&(e.addEventListener("pointermove",c(this,Di),!0),M(this,Mo,()=>{e.removeEventListener("pointermove",c(this,Di),!0),M(this,Mo,null)}))},xl=function(){var e;(e=c(this,Mo))==null||e.call(this)},_l=function(){G(this,Ee,ls).call(this),M(this,qn,setTimeout(()=>{M(this,qn,null),c(this,Kt)&&G(this,Ee,pi).call(this)},500))},ls=function(){c(this,qn)!==null&&(clearTimeout(c(this,qn)),M(this,qn,null))},kl=function(){M(this,pr,null),M(this,Io,null),M(this,xn,null)};function ih(t,e){const{x:r,y:n}=t;let o=!1;for(let s=0,i=e.length-1;sn!=f>n&&r<(u-a)*(n-l)/(f-l)+a&&(o=!o)}return o}function ah(t,e){return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom}function M0(t,e,r){return t.x>=e.left+r&&t.x<=e.right-r&&t.y>=e.top+r&&t.y<=e.bottom-r}function I0(t,e){const r=t.left+t.width/2,n=t.top+t.height/2,o=e.left+e.width/2,s=e.top+e.height/2,i=o-r,a=s-n;return Math.abs(i)>Math.abs(a)?i>0?"right":"left":a>0?"bottom":"top"}function N0(t,e,r){switch(r){case"top":return[{x:Math.min(t.left,e.left)-2,y:t.top},{x:Math.min(t.left,e.left)-2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:t.top}];case"bottom":return[{x:Math.min(t.left,e.left)-2,y:t.bottom},{x:Math.min(t.left,e.left)-2,y:e.top},{x:Math.max(t.right,e.right)+2,y:e.top},{x:Math.max(t.right,e.right)+2,y:t.bottom}];case"left":return[{x:t.left,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.max(t.bottom,e.bottom)+2},{x:t.left,y:Math.max(t.bottom,e.bottom)+2}];case"right":return[{x:t.right,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.max(t.bottom,e.bottom)+2},{x:t.right,y:Math.max(t.bottom,e.bottom)+2}]}}function z0(t,e,r,n,o){const i=n==="trigger"?R0(r):r,a=o?Math.min(e.top,o.top)-8:e.top-8,l=o?Math.max(e.bottom,o.bottom)+8:e.bottom+8,u=o?Math.min(e.left,o.left)-8:e.left-8,f=o?Math.max(e.right,o.right)+8:e.right+8;switch(i){case"right":return[t,{x:e.left,y:a},{x:e.left,y:l}];case"left":return[t,{x:e.right,y:a},{x:e.right,y:l}];case"bottom":return[t,{x:u,y:e.top},{x:f,y:e.top}];case"top":return[t,{x:u,y:e.bottom},{x:f,y:e.bottom}]}}function R0(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}var Bi,Vi;const ef=class ef{constructor(e){se(this,"opts");se(this,"isUsingKeyboard",new Fu);_(this,Bi,Ce(!1));_(this,Vi,Ce(!1));se(this,"getBitsAttr",e=>O0.getAttr(e,this.opts.variant.current));this.opts=e}static create(e){const r=new ef(e);return dp.set(r)}get ignoreCloseAutoFocus(){return d(c(this,Bi))}set ignoreCloseAutoFocus(e){N(c(this,Bi),e,!0)}get isPointerInTransit(){return d(c(this,Vi))}set isPointerInTransit(e){N(c(this,Vi),e,!0)}};Bi=new WeakMap,Vi=new WeakMap;let Wu=ef;var Wi,ji;const tf=class tf{constructor(e,r,n){se(this,"opts");se(this,"root");se(this,"parentMenu");se(this,"contentId",ve(()=>""));_(this,Wi,Ce(null));se(this,"contentPresence");_(this,ji,Ce(null));this.opts=e,this.root=r,this.parentMenu=n,this.contentPresence=new K_({ref:ve(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>{var o,s;return this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:((s=(o=this.root.opts).shouldSkipExitAnimation)==null?void 0:s.call(o))??!1}}),n&&cr(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}static create(e,r){return Bd.set(new tf(e,r,null))}get contentNode(){return d(c(this,Wi))}set contentNode(e){N(c(this,Wi),e,!0)}get triggerNode(){return d(c(this,ji))}set triggerNode(e){N(c(this,ji),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};Wi=new WeakMap,ji=new WeakMap;let ju=tf;var Gi,Hi,Ki,Ui,qi,Zr,pp,Sl,mp,Yi,Xi;const rf=class rf{constructor(e,r){_(this,Zr);se(this,"opts");se(this,"parentMenu");se(this,"rovingFocusGroup");se(this,"domContext");se(this,"attachment");_(this,Gi,Ce(""));_(this,Hi,0);_(this,Ki);_(this,Ui,Ce(!1));_(this,qi);se(this,"onCloseAutoFocus",e=>{var r,n;if((n=(r=this.opts.onCloseAutoFocus).current)==null||n.call(r,e),!(e.defaultPrevented||c(this,qi))){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&Dd(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}});_(this,Yi,j(()=>({open:this.parentMenu.opts.open.current})));_(this,Xi,j(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Gg(this.parentMenu.opts.open.current),...$_(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment})));se(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=r,this.domContext=new zd(e.ref),this.attachment=no(this.opts.ref,n=>{this.parentMenu.contentNode!==n&&(this.parentMenu.contentNode=n)}),r.contentId=e.id,M(this,qi,e.isSub??!1),this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new $0({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>{var n;return((n=this.parentMenu.parentMenu)==null?void 0:n.contentNode)??null},subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>{var n;return this.parentMenu.opts.open.current&&!!((n=this.parentMenu.triggerNode)!=null&&n.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")))},onIntentExit:n=>{this.parentMenu.opts.open.current=!1,G(this,Zr,mp).call(this,n)},setIsPointerInTransit:n=>{this.parentMenu.root.isPointerInTransit=n}}),M(this,Ki,new C0({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new G_({rootNode:ve(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:ve(()=>"vertical")}),cr(()=>this.parentMenu.contentNode,n=>{if(!n)return;const o=()=>{jr(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return T0.listen(n,o)}),nt(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(c(this,Hi))})}static create(e){return fp.set(new rf(e,Bd.get()))}get search(){return d(c(this,Gi))}set search(e){N(c(this,Gi),e,!0)}get mounted(){return d(c(this,Ui))}set mounted(e){N(c(this,Ui),e,!0)}handleTabKeyDown(e){let r=this.parentMenu;for(;r.parentMenu!==null;)r=r.parentMenu;if(!r.triggerNode)return;e.preventDefault();const n=_0(r.triggerNode,e.shiftKey?"prev":"next");n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,r.onClose(),jr(()=>{n.focus(),jr(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){var u,f;if(e.defaultPrevented)return;if(e.key===R_){this.handleTabKeyDown(e);return}const r=e.target,n=e.currentTarget;if(!so(r)||!so(n))return;const o=((u=r.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`))==null?void 0:u.id)===this.parentMenu.contentId.current,s=e.ctrlKey||e.altKey||e.metaKey,i=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(r,e)||e.code==="Space")return;const l=G(this,Zr,pp).call(this);o&&!s&&i&&c(this,Ki).call(this,e.key,l),((f=e.target)==null?void 0:f.id)===this.parentMenu.contentId.current&&s0.includes(e.key)&&(e.preventDefault(),Qg.includes(e.key)&&l.reverse(),a0(l,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){var r,n;wi(e.currentTarget)&&wi(e.target)&&((n=(r=e.currentTarget).contains)!=null&&n.call(r,e.target)||(this.domContext.getWindow().clearTimeout(c(this,Hi)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&jr(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return G(this,Zr,Sl).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||G(this,Zr,Sl).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;const r=this.parentMenu.contentNode;r==null||r.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!G(this,Zr,Sl).call(this)}handleInteractOutside(e){var n;if(!Xg(e.target))return;const r=(n=this.parentMenu.triggerNode)==null?void 0:n.id;if(e.target.id===r){e.preventDefault();return}if(e.target.closest(`#${r}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,jr(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return d(c(this,Yi))}set snippetProps(e){N(c(this,Yi),e)}get props(){return d(c(this,Xi))}set props(e){N(c(this,Xi),e)}};Gi=new WeakMap,Hi=new WeakMap,Ki=new WeakMap,Ui=new WeakMap,qi=new WeakMap,Zr=new WeakSet,pp=function(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},Sl=function(){return this.parentMenu.root.isPointerInTransit},mp=function(e){var s;if(!e)return;const r=(s=this.parentMenu.parentMenu)==null?void 0:s.contentNode;if(!r)return;const n=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!wi(n))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!o||!r.contains(o)||o!==this.parentMenu.triggerNode&&o.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))},Yi=new WeakMap,Xi=new WeakMap;let Gu=rf;var Ts,Zi;class F0{constructor(e,r){se(this,"opts");se(this,"content");se(this,"attachment");_(this,Ts,Ce(!1));_(this,Zi,j(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":Wg(this.opts.disabled.current),"data-disabled":jg(this.opts.disabled.current),"data-highlighted":d(c(this,Ts))?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment})));this.opts=e,this.content=r,this.attachment=no(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&an(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const n=e.currentTarget;if(!so(n))return;n.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||an(e)&&this.content.onItemLeave(e)}onfocus(e){jr(()=>{e.defaultPrevented||this.opts.disabled.current||N(c(this,Ts),!0)})}onblur(e){jr(()=>{e.defaultPrevented||N(c(this,Ts),!1)})}get props(){return d(c(this,Zi))}set props(e){N(c(this,Zi),e)}}Ts=new WeakMap,Zi=new WeakMap;var Ji,rc,bp,Qi;const nf=class nf{constructor(e,r){_(this,rc);se(this,"opts");se(this,"item");se(this,"root");_(this,Ji,!1);_(this,Qi,j(()=>Xr(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown})));this.opts=e,this.item=r,this.root=r.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(e){const r=new F0(e,fp.get());return new nf(e,r)}onkeydown(e){const r=this.item.content.search!=="";if(!(this.item.opts.disabled.current||r&&e.key===Ld)&&n0.includes(e.key)){if(!so(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||G(this,rc,bp).call(this)}onpointerup(e){var r;if(!e.defaultPrevented&&!c(this,Ji)){if(!so(e.currentTarget))return;(r=e.currentTarget)==null||r.click()}}onpointerdown(e){M(this,Ji,!0)}get props(){return d(c(this,Qi))}set props(e){N(c(this,Qi),e)}};Ji=new WeakMap,rc=new WeakSet,bp=function(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()},Qi=new WeakMap;let Hu=nf;var ea;const of=class of{constructor(e,r){se(this,"opts");se(this,"root");se(this,"attachment");_(this,ea,j(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment})));this.opts=e,this.root=r,this.attachment=no(this.opts.ref)}static create(e){return new of(e,dp.get())}get props(){return d(c(this,ea))}set props(e){N(c(this,ea),e)}};ea=new WeakMap;let Ku=of;var nc,ta;const sf=class sf{constructor(e,r){se(this,"opts");se(this,"parentMenu");se(this,"attachment");se(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});se(this,"onpointerdown",e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}});se(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});se(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Ld||e.key===Ug){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===ki&&(this.parentMenu.onOpen(),e.preventDefault())}});_(this,nc,j(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));_(this,ta,j(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":Wg(this.parentMenu.opts.open.current),"aria-controls":d(c(this,nc)),"data-disabled":jg(this.opts.disabled.current),"data-state":Gg(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.parentMenu=r,this.attachment=no(this.opts.ref,n=>this.parentMenu.triggerNode=n)}static create(e){return new sf(e,Bd.get())}get props(){return d(c(this,ta))}set props(e){N(c(this,ta),e)}};nc=new WeakMap,ta=new WeakMap;let Uu=sf;globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var Os,No,Xn,$s,Ms,Zn,ra,_n,oc,Hs,yp,sc,Is,ic,ac,lc,cc,na,wp,uc,dc;const af=class af{constructor(e){_(this,Hs);se(this,"opts");_(this,Os);_(this,No);_(this,Xn,{pointerdown:!1});_(this,$s,!1);_(this,Ms,!1);_(this,Zn);_(this,ra);_(this,_n,lt);_(this,oc,e=>{e.defaultPrevented||this.opts.ref.current&&jr(()=>{var r,n;!this.opts.ref.current||c(this,cc).call(this,e.target)||e.target&&!c(this,Ms)&&((n=(r=c(this,ra)).current)==null||n.call(r,e))})});_(this,sc,e=>{let r=e;r.defaultPrevented&&(r=lh(e)),c(this,Os).current(e)});_(this,Is,nh(e=>{if(!this.opts.ref.current){c(this,_n).call(this);return}const r=this.opts.isValidEvent.current(e,this.opts.ref.current)||B0(e,this.opts.ref.current);if(!c(this,$s)||G(this,Hs,wp).call(this)||!r){c(this,_n).call(this);return}let n=e;if(n.defaultPrevented&&(n=lh(n)),c(this,No).current!=="close"&&c(this,No).current!=="defer-otherwise-close"){c(this,_n).call(this);return}e.pointerType==="touch"?(c(this,_n).call(this),M(this,_n,zt(c(this,Zn),"click",c(this,sc),{once:!0}))):c(this,Os).current(n)},10));_(this,ic,e=>{c(this,Xn)[e.type]=!0});_(this,ac,e=>{c(this,Xn)[e.type]=!1});_(this,lc,()=>{this.opts.ref.current&&M(this,$s,D0(this.opts.ref.current))});_(this,cc,e=>this.opts.ref.current?Zg(this.opts.ref.current,e):!1);_(this,na,nh(()=>{for(const e in c(this,Xn))c(this,Xn)[e]=!1;M(this,$s,!1)},20));_(this,uc,()=>{M(this,Ms,!0)});_(this,dc,()=>{M(this,Ms,!1)});se(this,"props",{onfocuscapture:c(this,uc),onblurcapture:c(this,dc)});this.opts=e,M(this,No,e.interactOutsideBehavior),M(this,Os,e.onInteractOutside),M(this,ra,e.onFocusOutside),nt(()=>{M(this,Zn,Jg(this.opts.ref.current))});let r=lt;const n=()=>{c(this,na).call(this),globalThis.bitsDismissableLayers.delete(this),c(this,Is).destroy(),r()};cr([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return k_(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,c(this,No)),r(),r=G(this,Hs,yp).call(this))}),n}),es(()=>{c(this,na).destroy(),globalThis.bitsDismissableLayers.delete(this),c(this,Is).destroy(),c(this,_n).call(this),r()})}static create(e){return new af(e)}};Os=new WeakMap,No=new WeakMap,Xn=new WeakMap,$s=new WeakMap,Ms=new WeakMap,Zn=new WeakMap,ra=new WeakMap,_n=new WeakMap,oc=new WeakMap,Hs=new WeakSet,yp=function(){return hs(zt(c(this,Zn),"pointerdown",hs(c(this,ic),c(this,lc)),{capture:!0}),zt(c(this,Zn),"pointerdown",hs(c(this,ac),c(this,Is))),zt(c(this,Zn),"focusin",c(this,oc)))},sc=new WeakMap,Is=new WeakMap,ic=new WeakMap,ac=new WeakMap,lc=new WeakMap,cc=new WeakMap,na=new WeakMap,wp=function(){return Object.values(c(this,Xn)).some(Boolean)},uc=new WeakMap,dc=new WeakMap;let qu=af;function L0(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:r}])=>r==="close"||r==="ignore")}function D0(t){const e=[...globalThis.bitsDismissableLayers],r=L0(e);if(r)return r[0].opts.ref.current===t;const[n]=e[0];return n.opts.ref.current===t}function B0(t,e){const r=t.target;if(!Xg(r))return!1;const n=!!r.closest(`[${A0}]`),o=!!e.closest(`[${E0}]`);return"button"in t&&t.button>0&&!n?!1:"button"in t&&t.button===0&&n&&o?!0:n&&o?!1:Jg(r).documentElement.contains(r)&&!Zg(e,r)&&r0(t,e)}function lh(t){const e=t.currentTarget,r=t.target;let n;t instanceof PointerEvent?n=new PointerEvent(t.type,t):n=new PointerEvent("pointerdown",t);let o=!1;return new Proxy(n,{get:(i,a)=>a==="currentTarget"?e:a==="target"?r:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:t[a]})}function V0(t,e){Me(e,!0);let r=$(e,"interactOutsideBehavior",3,"close"),n=$(e,"onInteractOutside",3,lt),o=$(e,"onFocusOutside",3,lt),s=$(e,"isValidEvent",3,()=>!1);const i=qu.create({id:ve(()=>e.id),interactOutsideBehavior:ve(()=>r()),onInteractOutside:ve(()=>n()),enabled:ve(()=>e.enabled),onFocusOutside:ve(()=>o()),isValidEvent:ve(()=>s()),ref:e.ref});var a=ne(),l=E(a);Fe(l,()=>e.children??ze,()=>({props:i.props})),b(t,a),Ie()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var fc,hc;const lf=class lf{constructor(e){se(this,"opts");se(this,"domContext");_(this,fc,()=>zt(this.domContext.getDocument(),"keydown",c(this,hc),{passive:!1}));_(this,hc,e=>{if(e.key!==I_||!W0(this))return;const r=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(r)});this.opts=e,this.domContext=new zd(this.opts.ref);let r=lt;cr(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),r=c(this,fc).call(this)),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new lf(e)}};fc=new WeakMap,hc=new WeakMap;let Yu=lf;function W0(t){const e=[...globalThis.bitsEscapeLayers],r=e.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(r)return r[0]===t;const[n]=e[0];return n===t}function j0(t,e){Me(e,!0);let r=$(e,"escapeKeydownBehavior",3,"close"),n=$(e,"onEscapeKeydown",3,lt);Yu.create({escapeKeydownBehavior:ve(()=>r()),onEscapeKeydown:ve(()=>n()),enabled:ve(()=>e.enabled),ref:e.ref});var o=ne(),s=E(o);Fe(s,()=>e.children??ze),b(t,o),Ie()}var kn,oa,zo;const vc=class vc{constructor(){_(this,kn,Hr([]));_(this,oa,new WeakMap);_(this,zo,new WeakMap)}static getInstance(){return this.instance||(this.instance=new vc),this.instance}register(e){const r=this.getActive();r&&r!==e&&r.pause();const n=document.activeElement;n&&n!==document.body&&c(this,zo).set(e,n),c(this,kn).current=c(this,kn).current.filter(o=>o!==e),c(this,kn).current.unshift(e)}unregister(e){c(this,kn).current=c(this,kn).current.filter(n=>n!==e);const r=this.getActive();r&&r.resume()}getActive(){return c(this,kn).current[0]}setFocusMemory(e,r){c(this,oa).set(e,r)}getFocusMemory(e){return c(this,oa).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,r){c(this,zo).set(e,r)}getPreFocusMemory(e){return c(this,zo).get(e)}clearPreFocusMemory(e){c(this,zo).delete(e)}};kn=new WeakMap,oa=new WeakMap,zo=new WeakMap,se(vc,"instance");let Xu=vc;var Jn,Mt,Ut,Ro,Qn,ct,xp,_p,kp,Sp,Ju,Pl,Qu;const cf=class cf{constructor(e){_(this,ct);_(this,Jn,!1);_(this,Mt,null);_(this,Ut,Xu.getInstance());_(this,Ro,[]);_(this,Qn);M(this,Qn,e)}get paused(){return c(this,Jn)}pause(){M(this,Jn,!0)}resume(){M(this,Jn,!1)}mount(e){c(this,Mt)&&this.unmount(),M(this,Mt,e),c(this,Ut).register(this),G(this,ct,Sp).call(this),G(this,ct,_p).call(this)}unmount(){c(this,Mt)&&(G(this,ct,xp).call(this),G(this,ct,kp).call(this),c(this,Ut).unregister(this),c(this,Ut).clearPreFocusMemory(this),M(this,Mt,null))}static use(e){let r=null;return cr([()=>e.ref.current,()=>e.enabled.current],([n,o])=>{n&&o?(r||(r=new cf(e)),r.mount(n)):r&&(r.unmount(),r=null)}),es(()=>{r==null||r.unmount()}),{get props(){return{tabindex:-1}}}}};Jn=new WeakMap,Mt=new WeakMap,Ut=new WeakMap,Ro=new WeakMap,Qn=new WeakMap,ct=new WeakSet,xp=function(){for(const e of c(this,Ro))e();M(this,Ro,[])},_p=function(){if(!c(this,Mt))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});c(this,Qn).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!c(this,Mt))return;const r=G(this,ct,Pl).call(this);r?(r.focus(),c(this,Ut).setFocusMemory(this,r)):c(this,Mt).focus()})},kp=function(){var r,n;const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((n=(r=c(this,Qn).onCloseAutoFocus).current)==null||n.call(r,e),!e.defaultPrevented){const o=c(this,Ut).getPreFocusMemory(this);if(o&&document.contains(o))try{o.focus()}catch{document.body.focus()}}},Sp=function(){if(!c(this,Mt)||!c(this,Qn).trap.current)return;const e=c(this,Mt),r=e.ownerDocument,n=i=>{if(c(this,Jn)||!c(this,Ut).isActiveScope(this))return;const a=i.target;if(!a)return;if(e.contains(a))c(this,Ut).setFocusMemory(this,a);else{const u=c(this,Ut).getFocusMemory(this);if(u&&e.contains(u)&&cp(u))i.preventDefault(),u.focus();else{const f=G(this,ct,Pl).call(this),v=G(this,ct,Qu).call(this)[0];(f||v||e).focus()}}},o=i=>{if(!c(this,Qn).loop||c(this,Jn)||i.key!=="Tab"||!c(this,Ut).isActiveScope(this))return;const a=G(this,ct,Ju).call(this);if(a.length===0)return;const l=a[0],u=a[a.length-1];!i.shiftKey&&r.activeElement===u?(i.preventDefault(),l.focus()):i.shiftKey&&r.activeElement===l&&(i.preventDefault(),u.focus())};c(this,Ro).push(zt(r,"focusin",n,{capture:!0}),zt(e,"keydown",o));const s=new MutationObserver(()=>{const i=c(this,Ut).getFocusMemory(this);if(i&&!e.contains(i)){const a=G(this,ct,Pl).call(this),l=G(this,ct,Qu).call(this)[0],u=a||l;u?(u.focus(),c(this,Ut).setFocusMemory(this,u)):e.focus()}});s.observe(e,{childList:!0,subtree:!0}),c(this,Ro).push(()=>s.disconnect())},Ju=function(){return c(this,Mt)?ap(c(this,Mt),{includeContainer:!1,getShadowRoot:!0}):[]},Pl=function(){return G(this,ct,Ju).call(this)[0]||null},Qu=function(){return c(this,Mt)?lp(c(this,Mt),{includeContainer:!1,getShadowRoot:!0}):[]};let Zu=cf;function G0(t,e){Me(e,!0);let r=$(e,"enabled",3,!1),n=$(e,"trapFocus",3,!1),o=$(e,"loop",3,!1),s=$(e,"onCloseAutoFocus",3,lt),i=$(e,"onOpenAutoFocus",3,lt);const a=Zu.use({enabled:ve(()=>r()),trap:ve(()=>n()),loop:o(),onCloseAutoFocus:ve(()=>s()),onOpenAutoFocus:ve(()=>i()),ref:e.ref});var l=ne(),u=E(l);Fe(u,()=>e.focusScope??ze,()=>({props:a.props})),b(t,l),Ie()}const ch=()=>{};globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var Ns,zs,sa,ia,gc,Pp,pc,mc,aa;const uf=class uf{constructor(e){_(this,gc);se(this,"opts");se(this,"domContext");_(this,Ns,lt);_(this,zs,!1);_(this,sa,ch);_(this,ia,ch);_(this,pc,e=>{c(this,ia).call(this,e)});_(this,mc,e=>{const r=this.opts.ref.current,n=e.target;!so(r)||!so(n)||!c(this,zs)||!K0(this)||!T_(r,n)||(c(this,sa).call(this,e),!e.defaultPrevented&&M(this,Ns,H0(r,this.domContext.getDocument().body)))});_(this,aa,()=>{c(this,Ns).call(this),M(this,Ns,lt)});this.opts=e,this.domContext=new zd(e.ref);let r=lt;cr(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([n,o,s])=>(M(this,zs,n),M(this,sa,o),M(this,ia,s),n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=G(this,gc,Pp).call(this)),()=>{M(this,zs,!1),r(),c(this,aa).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new uf(e)}};Ns=new WeakMap,zs=new WeakMap,sa=new WeakMap,ia=new WeakMap,gc=new WeakSet,Pp=function(){return hs(zt(this.domContext.getDocument(),"pointerdown",c(this,mc)),zt(this.domContext.getDocument(),"pointerup",Ng(c(this,aa),c(this,pc))))},pc=new WeakMap,mc=new WeakMap,aa=new WeakMap;let ed=uf;const uh=t=>t.style.userSelect||t.style.webkitUserSelect;function H0(t,e){const r=uh(e),n=uh(t);return rl(e,"none"),rl(t,"text"),()=>{rl(e,r),rl(t,n)}}function rl(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function K0(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const r=e.at(-1);return r?r[0]===t:!1}function U0(t,e){Me(e,!0);let r=$(e,"preventOverflowTextSelection",3,!0),n=$(e,"onPointerDown",3,lt),o=$(e,"onPointerUp",3,lt);ed.create({id:ve(()=>e.id),onPointerDown:ve(()=>n()),onPointerUp:ve(()=>o()),enabled:ve(()=>e.enabled&&r()),ref:e.ref});var s=ne(),i=E(s);Fe(i,()=>e.children??ze),b(t,s),Ie()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function Vd(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}var la,Rs,Fo,Lo,bc,Cp;class q0{constructor(e){_(this,bc);_(this,la);_(this,Rs,0);_(this,Fo,Ce());_(this,Lo);M(this,la,e)}get(...e){return M(this,Rs,c(this,Rs)+1),d(c(this,Fo))===void 0&&M(this,Lo,xv(()=>{N(c(this,Fo),c(this,la).call(this,...e),!0)})),nt(()=>()=>{G(this,bc,Cp).call(this)}),d(c(this,Fo))}}la=new WeakMap,Rs=new WeakMap,Fo=new WeakMap,Lo=new WeakMap,bc=new WeakSet,Cp=function(){M(this,Rs,c(this,Rs)-1),c(this,Lo)&&c(this,Rs)<=0&&(c(this,Lo).call(this),N(c(this,Fo),void 0),M(this,Lo,void 0))};const Cl=new Mu;let nl=Ce(null),po=null,si=null,ii=!1;const dh=ve(()=>{for(const t of Cl.values())if(t)return!0;return!1});let qc=null;const Y0=new q0(()=>{function t(){document.body.setAttribute("style",d(nl)??""),document.body.style.removeProperty("--scrollbar-width"),rh&&(po==null||po()),N(nl,null)}function e(){si!==null&&(window.clearTimeout(si),si=null)}function r(o,s){e(),ii=!0,qc=Date.now();const i=qc,a=()=>{si=null,qc===i&&(Ap(Cl)?ii=!1:(ii=!1,s()))},l=o===null?24:o;si=window.setTimeout(a,l)}function n(){d(nl)===null&&Cl.size===0&&!ii&&N(nl,document.body.getAttribute("style"),!0)}return cr(()=>dh.current,()=>{var f,v;if(!dh.current)return;n(),ii=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=((f=o.scrollbarGutter)==null?void 0:f.includes("stable"))||((v=s.scrollbarGutter)==null?void 0:v.includes("stable")),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",rh&&(po=zt(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),jr(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),es(()=>()=>{po==null||po()}),{get lockMap(){return Cl},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:r,cancelPendingCleanup:e,ensureInitialStyleCaptured:n}});var Do,ca,ua,qt;class X0{constructor(e,r=()=>null){_(this,Do,Vd());_(this,ca);_(this,ua,()=>null);_(this,qt);se(this,"locked");M(this,ca,e),M(this,ua,r),M(this,qt,Y0.get()),c(this,qt)&&(c(this,qt).cancelPendingCleanup(),c(this,qt).ensureInitialStyleCaptured(),c(this,qt).lockMap.set(c(this,Do),c(this,ca)??!1),this.locked=ve(()=>c(this,qt).lockMap.get(c(this,Do))??!1,n=>c(this,qt).lockMap.set(c(this,Do),n)),es(()=>{if(c(this,qt).lockMap.delete(c(this,Do)),Ap(c(this,qt).lockMap))return;const n=c(this,ua).call(this);c(this,qt).scheduleCleanupIfNoNewLocks(n,()=>{c(this,qt).resetBodyStyle()})}))}}Do=new WeakMap,ca=new WeakMap,ua=new WeakMap,qt=new WeakMap;function Ap(t){for(const[e,r]of t)if(r)return!0;return!1}function fh(t,e){Me(e,!0);let r=$(e,"preventScroll",3,!0),n=$(e,"restoreScrollDelay",3,null);r()&&new X0(r(),()=>n()),Ie()}Om();const Z0=["top","right","bottom","left"],io=Math.min,An=Math.max,jl=Math.round,ol=Math.floor,En=t=>({x:t,y:t}),J0={left:"right",right:"left",bottom:"top",top:"bottom"};function Ep(t,e,r){return An(t,io(e,r))}function $n(t,e){return typeof t=="function"?t(e):t}function ao(t){return t.split("-")[0]}function qs(t){return t.split("-")[1]}function Wd(t){return t==="x"?"y":"x"}function jd(t){return t==="y"?"height":"width"}function Kr(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Gd(t){return Wd(Kr(t))}function Q0(t,e,r){r===void 0&&(r=!1);const n=qs(t),o=Gd(t),s=jd(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=Gl(i)),[i,Gl(i)]}function e1(t){const e=Gl(t);return[td(t),e,td(e)]}function td(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const hh=["left","right"],vh=["right","left"],t1=["top","bottom"],r1=["bottom","top"];function n1(t,e,r){switch(t){case"top":case"bottom":return r?e?vh:hh:e?hh:vh;case"left":case"right":return e?t1:r1;default:return[]}}function o1(t,e,r,n){const o=qs(t);let s=n1(ao(t),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),e&&(s=s.concat(s.map(td)))),s}function Gl(t){const e=ao(t);return J0[e]+t.slice(e.length)}function s1(t){var e,r,n,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(n=t.bottom)!=null?n:0,left:(o=t.left)!=null?o:0}}function Tp(t){return typeof t!="number"?s1(t):{top:t,right:t,bottom:t,left:t}}function Hl(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function gh(t,e,r){let{reference:n,floating:o}=t;const s=Kr(e),i=Gd(e),a=jd(i),l=ao(e),u=s==="y",f=n.x+n.width/2-o.width/2,v=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let g;switch(l){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:v};break;case"left":g={x:n.x-o.width,y:v};break;default:g={x:n.x,y:n.y}}const p=qs(e);return p&&(g[i]+=h*(p==="end"?1:-1)*(r&&u?-1:1)),g}async function i1(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:v="floating",altBoundary:h=!1,padding:g=0}=$n(e,t),p=Tp(g),y=a[h?v==="floating"?"reference":"floating":v],w=Hl(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(y)))==null||r?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),P=v==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,z=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(z))&&await(s.getScale==null?void 0:s.getScale(z))||{x:1,y:1},k=Hl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:z,strategy:l}):P);return{top:(w.top-k.top+p.top)/S.y,bottom:(k.bottom-w.bottom+p.bottom)/S.y,left:(w.left-k.left+p.left)/S.x,right:(k.right-w.right+p.right)/S.x}}const a1=50,l1=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=i.detectOverflow?i:{...i,detectOverflow:i1},l=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:v}=gh(u,n,l),h=n,g=0;const p={};for(let m=0;m({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=e,{element:u,padding:f=0}=$n(t,e)||{};if(u==null)return{};const v=Tp(f),h={x:r,y:n},g=Gd(o),p=jd(g),m=await i.getDimensions(u),y=g==="y",w=y?"top":"left",P=y?"bottom":"right",z=y?"clientHeight":"clientWidth",S=s.reference[p]+s.reference[g]-h[g]-s.floating[p],k=h[g]-s.reference[g],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let R=C?C[z]:0;(!R||!await(i.isElement==null?void 0:i.isElement(C)))&&(R=a.floating[z]||s.floating[p]);const x=S/2-k/2,B=R/2-m[p]/2-1,H=io(v[w],B),U=io(v[P],B),V=R-m[p]-U,q=R/2-m[p]/2+x,ee=Ep(H,q,V),I=!l.arrow&&qs(o)!=null&&q!==ee&&s.reference[p]/2-(qee<=0)){var U,V;const ee=(((U=s.flip)==null?void 0:U.index)||0)+1,I=R[ee];if(I&&(!(v==="alignment"?P!==Kr(I):!1)||H.every(ce=>Kr(ce.placement)===P?ce.overflows[0]>0:!0)))return{data:{index:ee,overflows:H},reset:{placement:I}};let L=(V=H.filter(de=>de.overflows[0]<=0).sort((de,ce)=>de.overflows[1]-ce.overflows[1])[0])==null?void 0:V.placement;if(!L)switch(g){case"bestFit":{var q;const de=(q=H.filter(ce=>{if(C){const _e=Kr(ce.placement);return _e===P||_e==="y"}return!0}).map(ce=>[ce.placement,ce.overflows.filter(_e=>_e>0).reduce((_e,T)=>_e+T,0)]).sort((ce,_e)=>ce[1]-_e[1])[0])==null?void 0:q[0];de&&(L=de);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function ph(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function mh(t){return Z0.some(e=>t[e]>=0)}const d1=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r,platform:n}=e,{strategy:o="referenceHidden",...s}=$n(t,e);switch(o){case"referenceHidden":{const i=await n.detectOverflow(e,{...s,elementContext:"reference"}),a=ph(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:mh(a)}}}case"escaped":{const i=await n.detectOverflow(e,{...s,altBoundary:!0}),a=ph(i,r.floating);return{data:{escapedOffsets:a,escaped:mh(a)}}}default:return{}}}}},Op=new Set(["left","top"]);async function f1(t,e){const{placement:r,platform:n,elements:o}=t,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=ao(r),a=qs(r),l=Kr(r)==="y",u=Op.has(i)?-1:1,f=s&&l?-1:1,v=$n(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return a&&typeof p=="number"&&(g=a==="end"?p*-1:p),l?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const h1=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=e,l=await f1(e,t);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},v1=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x:z,y:S}=P;return{x:z,y:S}}},...u}=$n(t,e),f={x:r,y:n},v=await s.detectOverflow(e,u),h=Kr(o),g=Wd(h);let p=f[g],m=f[h];const y=(P,z)=>Ep(z+v[P==="y"?"top":"left"],z,z-v[P==="y"?"bottom":"right"]);i&&(p=y(g,p)),a&&(m=y(h,m));const w=l.fn({...e,[g]:p,[h]:m});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[g]:i,[h]:a}}}}}},g1=function(t){return t===void 0&&(t={}),{options:t,fn(e){var r,n;const{x:o,y:s,placement:i,rects:a,middlewareData:l}=e,{offset:u=0,mainAxis:f=!0,crossAxis:v=!0}=$n(t,e),h={x:o,y:s},g=Kr(i),p=Wd(g);let m=h[p],y=h[g];const w=$n(u,e),P=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(r=w.mainAxis)!=null?r:0,crossAxis:(n=w.crossAxis)!=null?n:0};if(f){const k=p==="y"?"height":"width",C=a.reference[p]-a.floating[k]+P.mainAxis,R=a.reference[p]+a.reference[k]-P.mainAxis;mR&&(m=R)}if(v){var z,S;const k=p==="y"?"width":"height",C=Op.has(ao(i)),R=a.reference[g]-a.floating[k]+(C&&((z=l.offset)==null?void 0:z[g])||0)+(C?0:P.crossAxis),x=a.reference[g]+a.reference[k]+(C?0:((S=l.offset)==null?void 0:S[g])||0)-(C?P.crossAxis:0);yx&&(y=x)}return{[p]:m,[g]:y}}}},p1=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:o,elements:s}=e,{apply:i=()=>{},...a}=$n(t,e),l=await o.detectOverflow(e,a),u=ao(r),f=qs(r),v=Kr(r)==="y",{width:h,height:g}=n.floating;let p,m;u==="top"||u==="bottom"?(p=u,m=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=u,p=f==="end"?"top":"bottom");const y=g-l.top-l.bottom,w=h-l.left-l.right,P=io(g-l[p],y),z=io(h-l[m],w),S=e.middlewareData.shift,k=!S;let C=P,R=z;S!=null&&S.enabled.x&&(R=w),S!=null&&S.enabled.y&&(C=y),k&&!f&&(v?R=h-2*An(l.left,l.right):C=g-2*An(l.top,l.bottom)),await i({...e,availableWidth:R,availableHeight:C});const x=await o.getDimensions(s.floating);return h!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}};function Tc(){return typeof window<"u"}function Ys(t){return $p(t)?(t.nodeName||"").toLowerCase():"#document"}function Qt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Mn(t){var e;return(e=($p(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function $p(t){return Tc()?t instanceof Node||t instanceof Qt(t).Node:!1}function en(t){return Tc()?t instanceof Element||t instanceof Qt(t).Element:!1}function ho(t){return Tc()?t instanceof HTMLElement||t instanceof Qt(t).HTMLElement:!1}function bh(t){return!Tc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qt(t).ShadowRoot}function Oc(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=tn(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&o!=="inline"&&o!=="contents"}function m1(t){return/^(table|td|th)$/.test(Ys(t))}function $c(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const b1=/transform|translate|scale|rotate|perspective|filter/,y1=/paint|layout|strict|content/,mo=t=>!!t&&t!=="none";let Yc;function Hd(t){const e=en(t)?tn(t):t;return mo(e.transform)||mo(e.translate)||mo(e.scale)||mo(e.rotate)||mo(e.perspective)||!Kd()&&(mo(e.backdropFilter)||mo(e.filter))||b1.test(e.willChange||"")||y1.test(e.contain||"")}function w1(t){let e=Ho(t);for(;ho(e)&&!Si(e);){if(Hd(e))return e;if($c(e))return null;e=Ho(e)}return null}function Kd(){return Yc==null&&(Yc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Yc}function Si(t){return/^(html|body|#document)$/.test(Ys(t))}function tn(t){return Qt(t).getComputedStyle(t)}function Mc(t){return en(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ho(t){if(Ys(t)==="html")return t;const e=t.assignedSlot||t.parentNode||bh(t)&&t.host||Mn(t);return bh(e)?e.host:e}function Mp(t){const e=Ho(t);return Si(e)?(t.ownerDocument||t).body:ho(e)&&Oc(e)?e:Mp(e)}function Pi(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Mp(t),s=o===((n=t.ownerDocument)==null?void 0:n.body),i=Qt(o);if(s){const a=rd(i);return e.concat(i,i.visualViewport||[],Oc(o)?o:[],a&&r?Pi(a):[])}else return e.concat(o,Pi(o,[],r))}function rd(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ip(t){const e=tn(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=ho(t),s=o?t.offsetWidth:r,i=o?t.offsetHeight:n,a=jl(r)!==s||jl(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function Ud(t){return en(t)?t:t.contextElement}function vs(t){const e=Ud(t);if(!ho(e))return En(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:s}=Ip(e);let i=(s?jl(r.width):r.width)/n,a=(s?jl(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const x1=En(0);function Np(t){const e=Qt(t);return!Kd()||!e.visualViewport?x1:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _1(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Qt(t)}function Ko(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),s=Ud(t);let i=En(1);e&&(n?en(n)&&(i=vs(n)):i=vs(t));const a=_1(s,r,n)?Np(s):En(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,f=o.width/i.x,v=o.height/i.y;if(s&&n){const h=Qt(s),g=en(n)?Qt(n):n;let p=h,m=rd(p);for(;m&&g!==p;){const y=vs(m),w=m.getBoundingClientRect(),P=tn(m),z=w.left+(m.clientLeft+parseFloat(P.paddingLeft))*y.x,S=w.top+(m.clientTop+parseFloat(P.paddingTop))*y.y;l*=y.x,u*=y.y,f*=y.x,v*=y.y,l+=z,u+=S,p=Qt(m),m=rd(p)}}return Hl({width:f,height:v,x:l,y:u})}function Ic(t,e){const r=Mc(t).scrollLeft;return e?e.left+r:Ko(Mn(t)).left+r}function zp(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-Ic(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function k1(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const s=o==="fixed",i=Mn(n),a=e?$c(e.floating):!1;if(n===i||a&&s)return r;let l={scrollLeft:0,scrollTop:0},u=En(1);const f=En(0),v=ho(n);if((v||!s)&&((Ys(n)!=="body"||Oc(i))&&(l=Mc(n)),v)){const g=Ko(n);u=vs(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const h=i&&!v&&!s?zp(i,l):En(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+f.x+h.x,y:r.y*u.y-l.scrollTop*u.y+f.y+h.y}}function S1(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function P1(t){const e=Mc(t),r=t.ownerDocument.body,n=An(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=An(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-e.scrollLeft+Ic(t);const i=-e.scrollTop;return tn(r).direction==="rtl"&&(s+=An(t.clientWidth,r.clientWidth)-n),{width:n,height:o,x:s,y:i}}const C1=25;function A1(t,e,r){r===void 0&&(r="viewport");const n=r==="layoutViewport",o=Qt(t),s=Mn(t),i=o.visualViewport;let a=s.clientWidth,l=s.clientHeight,u=0,f=0;if(i){const h=!Kd()||e==="fixed";n?h||(u=-i.offsetLeft,f=-i.offsetTop):(a=i.width,l=i.height,h&&(u=i.offsetLeft,f=i.offsetTop))}if(Ic(s)<=0){const h=s.ownerDocument,g=h.body,p=getComputedStyle(g),m=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(s.clientWidth-g.clientWidth-m),w=getComputedStyle(s).scrollbarGutter==="stable both-edges"?y/2:y;w<=C1&&(a-=w)}return{width:a,height:l,x:u,y:f}}function E1(t,e){const r=Ko(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,s=vs(t),i=t.clientWidth*s.x,a=t.clientHeight*s.y,l=o*s.x,u=n*s.y;return{width:i,height:a,x:l,y:u}}function yh(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=A1(t,r,e);else if(e==="document")n=P1(Mn(t));else if(en(e))n=E1(e,r);else{const o=Np(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Hl(n)}function T1(t,e){const r=e.get(t);if(r)return r;let n=Pi(t,[],!1).filter(a=>en(a)&&Ys(a)!=="body"),o=null;const s=tn(t).position==="fixed";let i=s?Ho(t):t;for(;en(i)&&!Si(i);){const a=tn(i),l=Hd(i),u=o?o.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?n=n.filter(v=>v!==i):o=a,i=Ho(i)}return e.set(t,n),n}function O1(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?$c(e)?[]:T1(e,this._c):[].concat(r),n],a=yh(e,i[0],o);let l=a.top,u=a.right,f=a.bottom,v=a.left;for(let h=1;h{a(!1,1e-7)},1e3)}R=!1}try{n=new IntersectionObserver(x,{...C,root:s.ownerDocument})}catch{n=new IntersectionObserver(x,C)}n.observe(t)}const l=Qt(t),u=()=>a(r);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),i()}}function F1(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Ud(t),f=o||s?[...u?Pi(u):[],...e?Pi(e):[]]:[];f.forEach(w=>{o&&w.addEventListener("scroll",r),s&&w.addEventListener("resize",r)});const v=u&&a?R1(u,r,s):null;let h=-1,g=null;i&&(g=new ResizeObserver(w=>{let[P]=w;P&&P.target===u&&g&&e&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var z;(z=g)==null||z.observe(e)})),r()}),u&&!l&&g.observe(u),e&&g.observe(e));let p,m=l?Ko(t):null;l&&y();function y(){const w=Ko(t);m&&!Fp(m,w)&&r(),m=w,p=requestAnimationFrame(y)}return r(),()=>{var w;f.forEach(P=>{o&&P.removeEventListener("scroll",r),s&&P.removeEventListener("resize",r)}),v==null||v(),(w=g)==null||w.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const L1=h1,D1=v1,B1=u1,V1=p1,W1=d1,j1=c1,G1=g1,H1=(t,e,r)=>{const n=new Map,o=r??{},s={...z1,...o.platform,_c:n};return l1(t,e,{...o,platform:s})};function bo(t){return typeof t=="function"?t():t}function Lp(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function xh(t,e){const r=Lp(t);return Math.round(e*r)/r}function _h(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function K1(t){const e=t.whileElementsMounted,r=j(()=>bo(t.open)??!0),n=j(()=>bo(t.middleware)),o=j(()=>bo(t.transform)??!0),s=j(()=>bo(t.placement)??"bottom"),i=j(()=>bo(t.strategy)??"absolute"),a=j(()=>bo(t.sideOffset)??0),l=j(()=>bo(t.alignOffset)??0),u=t.reference;let f=Ce(0),v=Ce(0);const h=Hr(null);let g=Ce(Jt(d(i))),p=Ce(Jt(d(s))),m=Ce(Jt({})),y=Ce(!1),w=!1,P=0;const z=j(()=>{const H=h.current?xh(h.current,d(f)):d(f),U=h.current?xh(h.current,d(v)):d(v);return d(o)?{position:d(g),left:"0",top:"0",transform:`translate(${H}px, ${U}px)`,...h.current&&Lp(h.current)>=1.5&&{willChange:"transform"}}:{position:d(g),left:`${H}px`,top:`${U}px`}});let S;function k(){if(u.current===null||h.current===null)return;const H=u.current,U=h.current,V=++P;H1(H,U,{middleware:d(n),placement:d(s),strategy:d(i)}).then(q=>{if(V!==P||u.current!==H||h.current!==U)return;if(U1(H)){N(m,{...d(m),hide:{...d(m).hide,referenceHidden:!0}},!0);return}if(!d(r)&&d(f)!==0&&d(v)!==0){const I=Math.max(Math.abs(d(a)),Math.abs(d(l)),15);if(q.x<=I&&q.y<=I)return}N(f,q.x,!0),N(v,q.y,!0),N(g,q.strategy,!0),N(p,q.placement,!0),N(m,q.middlewareData,!0),N(y,!0)})}function C(){typeof S=="function"&&(S(),S=void 0),P++}function R(){if(C(),e===void 0){k();return}d(r)&&(u.current===null||h.current===null||(S=e(u.current,h.current,k)))}function x(){!d(r)&&h.current===null&&N(y,!1)}function B(){return[d(n),d(s),d(i),d(a),d(l),d(r)]}return nt(()=>{e===void 0&&d(r)&&k()}),nt(R),nt(()=>{if(e!==void 0){if(B(),!d(r)){w=!1;return}if(!d(y)){w=!1;return}if(!w){w=!0;return}k()}}),nt(x),nt(()=>C),{floating:h,reference:u,get strategy(){return d(g)},get placement(){return d(p)},get middlewareData(){return d(m)},get isPositioned(){return d(y)},get floatingStyles(){return d(z)},get update(){return k}}}function U1(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const q1={top:"bottom",right:"left",bottom:"top",left:"right"},qd=new Qo("Floating.Root"),kh=new Qo("Floating.Content"),Yd=new Qo("Floating.Root");class Kl{constructor(){se(this,"anchorNode",Hr(null));se(this,"customAnchorNode",Hr(null));se(this,"triggerNode",Hr(null));nt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(e=!1){return e?Yd.set(new Kl):qd.set(new Kl)}}var da,fa,ha,yc,va,wc,ga,pa,ma,ba,ya,wa,xa,_a,ka,Sa,Pa,Ca,Aa,Ea,Ta,Oa,$a,Ma;const xc=class xc{constructor(e,r){se(this,"opts");se(this,"root");se(this,"contentRef",Hr(null));se(this,"wrapperRef",Hr(null));se(this,"arrowRef",Hr(null));se(this,"contentAttachment",no(this.contentRef));se(this,"wrapperAttachment",no(this.wrapperRef));se(this,"arrowAttachment",no(this.arrowRef));se(this,"arrowId",Hr(Vd()));_(this,da,j(()=>{if(typeof this.opts.style=="string")return hi(this.opts.style);if(!this.opts.style)return{}}));_(this,fa);_(this,ha,new __(()=>this.arrowRef.current??void 0));_(this,yc,j(()=>{var e;return((e=c(this,ha))==null?void 0:e.width)??0}));_(this,va,j(()=>{var e;return((e=c(this,ha))==null?void 0:e.height)??0}));_(this,wc,j(()=>{var e;return((e=this.opts.side)==null?void 0:e.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));_(this,ga,j(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));_(this,pa,j(()=>d(c(this,ga)).length>0));_(this,ma,j(()=>({padding:this.opts.collisionPadding.current,boundary:d(c(this,ga)).filter(W_),altBoundary:this.hasExplicitBoundaries})));_(this,ba,Ce(void 0));_(this,ya,Ce(void 0));_(this,wa,Ce(void 0));_(this,xa,Ce(void 0));_(this,_a,j(()=>[L1({mainAxis:this.opts.sideOffset.current+d(c(this,va)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&D1({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?G1():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&B1({...this.detectOverflowOptions}),V1({...this.detectOverflowOptions,apply:({rects:e,availableWidth:r,availableHeight:n})=>{const{width:o,height:s}=e.reference;N(c(this,ba),r,!0),N(c(this,ya),n,!0),N(c(this,wa),o,!0),N(c(this,xa),s,!0)}}),this.arrowRef.current&&j1({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Y1({arrowWidth:d(c(this,yc)),arrowHeight:d(c(this,va))}),this.opts.hideWhenDetached.current&&W1({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));se(this,"floating");_(this,ka,j(()=>X1(this.floating.placement)));_(this,Sa,j(()=>Z1(this.floating.placement)));_(this,Pa,j(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.x)??0}));_(this,Ca,j(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.y)??0}));_(this,Aa,j(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.centerOffset)!==0}));_(this,Ea,Ce());_(this,Ta,j(()=>q1[this.placedSide]));_(this,Oa,j(()=>{var e,r,n;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(e=this.floating.middlewareData.transformOrigin)==null?void 0:e.x} ${(r=this.floating.middlewareData.transformOrigin)==null?void 0:r.y}`,"--bits-floating-available-width":`${d(c(this,ba))}px`,"--bits-floating-available-height":`${d(c(this,ya))}px`,"--bits-floating-anchor-width":`${d(c(this,wa))}px`,"--bits-floating-anchor-height":`${d(c(this,xa))}px`,...((n=this.floating.middlewareData.hide)==null?void 0:n.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...d(c(this,da))},dir:this.opts.dir.current,...this.wrapperAttachment}}));_(this,$a,j(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Rg({...d(c(this,da))}),...this.contentAttachment})));_(this,Ma,j(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=e,this.root=r,M(this,fa,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),cr(()=>e.customAnchor.current,n=>{this.root.customAnchorNode.current=n}),this.floating=K1({strategy:()=>this.opts.strategy.current,placement:()=>d(c(this,wc)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...n)=>{var s;return F1(...n,{animationFrame:((s=c(this,fa))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),nt(()=>{var n;this.floating.isPositioned&&((n=this.opts.onPlaced)==null||n.current())}),cr(()=>this.contentRef.current,n=>{if(!n||!this.opts.enabled.current)return;const o=Vg(n),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==n||!this.opts.enabled.current)return;const i=o.getComputedStyle(n).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),nt(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(e,r=!1){return r?kh.set(new xc(e,Yd.get())):kh.set(new xc(e,qd.get()))}get hasExplicitBoundaries(){return d(c(this,pa))}set hasExplicitBoundaries(e){N(c(this,pa),e)}get detectOverflowOptions(){return d(c(this,ma))}set detectOverflowOptions(e){N(c(this,ma),e)}get middleware(){return d(c(this,_a))}set middleware(e){N(c(this,_a),e)}get placedSide(){return d(c(this,ka))}set placedSide(e){N(c(this,ka),e)}get placedAlign(){return d(c(this,Sa))}set placedAlign(e){N(c(this,Sa),e)}get arrowX(){return d(c(this,Pa))}set arrowX(e){N(c(this,Pa),e)}get arrowY(){return d(c(this,Ca))}set arrowY(e){N(c(this,Ca),e)}get cannotCenterArrow(){return d(c(this,Aa))}set cannotCenterArrow(e){N(c(this,Aa),e)}get contentZIndex(){return d(c(this,Ea))}set contentZIndex(e){N(c(this,Ea),e,!0)}get arrowBaseSide(){return d(c(this,Ta))}set arrowBaseSide(e){N(c(this,Ta),e)}get wrapperProps(){return d(c(this,Oa))}set wrapperProps(e){N(c(this,Oa),e)}get props(){return d(c(this,$a))}set props(e){N(c(this,$a),e)}get arrowStyle(){return d(c(this,Ma))}set arrowStyle(e){N(c(this,Ma),e)}};da=new WeakMap,fa=new WeakMap,ha=new WeakMap,yc=new WeakMap,va=new WeakMap,wc=new WeakMap,ga=new WeakMap,pa=new WeakMap,ma=new WeakMap,ba=new WeakMap,ya=new WeakMap,wa=new WeakMap,xa=new WeakMap,_a=new WeakMap,ka=new WeakMap,Sa=new WeakMap,Pa=new WeakMap,Ca=new WeakMap,Aa=new WeakMap,Ea=new WeakMap,Ta=new WeakMap,Oa=new WeakMap,$a=new WeakMap,Ma=new WeakMap;let nd=xc;class Ul{constructor(e,r){se(this,"opts");se(this,"root");this.opts=e,this.root=r,e.virtualEl&&e.virtualEl.current?r.triggerNode=Ig(e.virtualEl.current):r.triggerNode=e.ref}static create(e,r=!1){return r?new Ul(e,Yd.get()):new Ul(e,qd.get())}}function Y1(t){return{name:"transformOrigin",options:t,fn(e){var y,w,P;const{placement:r,rects:n,middlewareData:o}=e,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:t.arrowWidth,l=i?0:t.arrowHeight,[u,f]=Xd(r),v={start:"0%",center:"50%",end:"100%"}[f],h=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,g=(((P=o.arrow)==null?void 0:P.y)??0)+l/2;let p="",m="";return u==="bottom"?(p=i?v:`${h}px`,m=`${-l}px`):u==="top"?(p=i?v:`${h}px`,m=`${n.floating.height+l}px`):u==="right"?(p=`${-l}px`,m=i?v:`${g}px`):u==="left"&&(p=`${n.floating.width+l}px`,m=i?v:`${g}px`),{data:{x:p,y:m}}}}}function Xd(t){const[e,r="center"]=t.split("-");return[e,r]}function X1(t){return Xd(t)[0]}function Z1(t){return Xd(t)[1]}function J1(t,e){Me(e,!0);let r=$(e,"tooltip",3,!1);Kl.create(r());var n=ne(),o=E(n);Fe(o,()=>e.children??ze),b(t,n),Ie()}function Q1(t,e){Me(e,!0);let r=$(e,"tooltip",3,!1);Ul.create({id:ve(()=>e.id),virtualEl:ve(()=>e.virtualEl),ref:e.ref},r());var n=ne(),o=E(n);Fe(o,()=>e.children??ze),b(t,n),Ie()}function ek(t,e){Me(e,!0);let r=$(e,"side",3,"bottom"),n=$(e,"sideOffset",3,0),o=$(e,"align",3,"center"),s=$(e,"alignOffset",3,0),i=$(e,"arrowPadding",3,0),a=$(e,"avoidCollisions",3,!0),l=$(e,"collisionBoundary",19,()=>[]),u=$(e,"collisionPadding",3,0),f=$(e,"hideWhenDetached",3,!1),v=$(e,"onPlaced",3,()=>{}),h=$(e,"sticky",3,"partial"),g=$(e,"updatePositionStrategy",3,"optimized"),p=$(e,"strategy",3,"fixed"),m=$(e,"dir",3,"ltr"),y=$(e,"style",19,()=>({})),w=$(e,"wrapperId",19,Vd),P=$(e,"customAnchor",3,null),z=$(e,"tooltip",3,!1);const S=nd.create({side:ve(()=>r()),sideOffset:ve(()=>n()),align:ve(()=>o()),alignOffset:ve(()=>s()),id:ve(()=>e.id),arrowPadding:ve(()=>i()),avoidCollisions:ve(()=>a()),collisionBoundary:ve(()=>l()),collisionPadding:ve(()=>u()),hideWhenDetached:ve(()=>f()),onPlaced:ve(()=>v()),sticky:ve(()=>h()),updatePositionStrategy:ve(()=>g()),strategy:ve(()=>p()),dir:ve(()=>m()),style:ve(()=>y()),enabled:ve(()=>e.enabled),wrapperId:ve(()=>w()),customAnchor:ve(()=>P())},z()),k=j(()=>Xr(S.wrapperProps,{style:{pointerEvents:"auto"}}));var C=ne(),R=E(C);Fe(R,()=>e.content??ze,()=>({props:S.props,wrapperProps:d(k)})),b(t,C),Ie()}function tk(t,e){Me(e,!0),_d(()=>{var o;(o=e.onPlaced)==null||o.call(e)});var r=ne(),n=E(r);Fe(n,()=>e.content??ze,()=>({props:{},wrapperProps:{}})),b(t,r),Ie()}var rk=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function nk(t,e){let r=$(e,"isStatic",3,!1),n=je(e,rk);var o=ne(),s=E(o);{var i=l=>{tk(l,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},a=l=>{ek(l,We({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>n))};Ne(s,l=>{r()?l(i):l(a,-1)})}b(t,o)}var ok=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]),sk=oe(" ",1);function Dp(t,e){Me(e,!0);let r=$(e,"interactOutsideBehavior",3,"close"),n=$(e,"trapFocus",3,!0),o=$(e,"isValidEvent",3,()=>!1),s=$(e,"customAnchor",3,null),i=$(e,"isStatic",3,!1),a=$(e,"tooltip",3,!1),l=$(e,"contentPointerEvents",3,"auto"),u=je(e,ok);const f=j(()=>e.preventScroll??!0),v=j(()=>e.strategy??(d(f)?"fixed":"absolute"));nk(t,{get isStatic(){return i()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return d(v)},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get enabled(){return e.enabled},get tooltip(){return a()},content:(g,p)=>{let m=()=>(p==null?void 0:p()).props,y=()=>(p==null?void 0:p()).wrapperProps;var w=sk(),P=E(w);{var z=C=>{fh(C,{get preventScroll(){return d(f)}})},S=C=>{fh(C,{get preventScroll(){return d(f)}})};Ne(P,C=>{e.forceMount&&e.enabled?C(z):e.forceMount||C(S,1)})}var k=A(P,2);G0(k,{get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get enabled(){return e.enabled},get trapFocus(){return n()},get forceMount(){return e.forceMount},get ref(){return e.ref},focusScope:(R,x)=>{let B=()=>(x==null?void 0:x()).props;j0(R,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},get ref(){return e.ref},children:(H,U)=>{V0(H,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return r()},get isValidEvent(){return o()},get enabled(){return e.enabled},get ref(){return e.ref},children:(q,ee)=>{let I=()=>(ee==null?void 0:ee()).props;U0(q,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},get ref(){return e.ref},children:(L,de)=>{var ce=ne(),_e=E(ce);{let T=j(()=>({props:Xr(u,m(),I(),B(),{style:{pointerEvents:l()}}),wrapperProps:y()}));Fe(_e,()=>e.popper??ze,()=>d(T))}b(L,ce)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),b(g,w)},$$slots:{content:!0}}),Ie()}var ik=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function ak(t,e){let r=$(e,"interactOutsideBehavior",3,"close"),n=$(e,"trapFocus",3,!0),o=$(e,"isValidEvent",3,()=>!1),s=$(e,"customAnchor",3,null),i=$(e,"isStatic",3,!1),a=je(e,ik);var l=ne(),u=E(l);{var f=v=>{Dp(v,We({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return e.open},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return o()},get onFocusOutside(){return e.onFocusOutside},forceMount:!1,get ref(){return e.ref}},()=>a))};Ne(u,v=>{e.shouldRender&&v(f)})}b(t,l)}var lk=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function ck(t,e){let r=$(e,"interactOutsideBehavior",3,"close"),n=$(e,"trapFocus",3,!0),o=$(e,"isValidEvent",3,()=>!1),s=$(e,"customAnchor",3,null),i=$(e,"isStatic",3,!1),a=je(e,lk);Dp(t,We({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return o()},get onFocusOutside(){return e.onFocusOutside}},()=>a,{forceMount:!0}))}var uk=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]),dk=oe("
    ");function fk(t,e){const r=Da();Me(e,!0);let n=$(e,"ref",15,null),o=$(e,"id",19,()=>Ga(r)),s=$(e,"disabled",3,!1),i=$(e,"onSelect",3,lt),a=$(e,"closeOnSelect",3,!0),l=je(e,uk);const u=Hu.create({id:ve(()=>o()),disabled:ve(()=>s()),onSelect:ve(()=>i()),ref:ve(()=>n(),m=>n(m)),closeOnSelect:ve(()=>a())}),f=j(()=>Xr(l,u.props));var v=ne(),h=E(v);{var g=m=>{var y=ne(),w=E(y);Fe(w,()=>e.child,()=>({props:d(f)})),b(m,y)},p=m=>{var y=dk();Ke(y,()=>({...d(f)}));var w=D(y);Fe(w,()=>e.children??ze),b(m,y)};Ne(h,m=>{e.child?m(g):m(p,-1)})}b(t,v),Ie()}var hk=new Set(["$$slots","$$events","$$legacy","ref","id","child","children"]),vk=oe("
    ");function gk(t,e){const r=Da();Me(e,!0);let n=$(e,"ref",15,null),o=$(e,"id",19,()=>Ga(r)),s=je(e,hk);const i=Ku.create({id:ve(()=>o()),ref:ve(()=>n(),h=>n(h))}),a=j(()=>Xr(s,i.props));var l=ne(),u=E(l);{var f=h=>{var g=ne(),p=E(g);Fe(p,()=>e.child,()=>({props:d(a)})),b(h,g)},v=h=>{var g=vk();Ke(g,()=>({...d(a)}));var p=D(g);Fe(p,()=>e.children??ze),b(h,g)};Ne(u,h=>{e.child?h(f):h(v,-1)})}b(t,l),Ie()}function pk(t,e){Me(e,!0);let r=$(e,"open",15,!1),n=$(e,"dir",3,"ltr"),o=$(e,"onOpenChange",3,lt),s=$(e,"onOpenChangeComplete",3,lt),i=$(e,"_internal_variant",3,"dropdown-menu"),a=$(e,"_internal_should_skip_exit_animation",3,void 0);const l=Wu.create({variant:ve(()=>i()),dir:ve(()=>n()),onClose:()=>{r(!1),o()(!1)},shouldSkipExitAnimation:()=>{var u;return((u=a())==null?void 0:u())??!1}});ju.create({open:ve(()=>r(),u=>{r(u),o()(u)}),onOpenChangeComplete:ve(()=>s())},l),J1(t,{children:(u,f)=>{var v=ne(),h=E(v);Fe(h,()=>e.children??ze),b(u,v)},$$slots:{default:!0}}),Ie()}var mk=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]),Sh=oe("
    ");function bk(t,e){const r=Da();Me(e,!0);let n=$(e,"id",19,()=>Ga(r)),o=$(e,"ref",15,null),s=$(e,"loop",3,!0),i=$(e,"onInteractOutside",3,lt),a=$(e,"onEscapeKeydown",3,lt),l=$(e,"onCloseAutoFocus",3,lt),u=$(e,"forceMount",3,!1),f=$(e,"trapFocus",3,!1),v=je(e,mk);const h=Gu.create({id:ve(()=>n()),loop:ve(()=>s()),ref:ve(()=>o(),S=>o(S)),onCloseAutoFocus:ve(()=>l())}),g=j(()=>Xr(v,h.props));function p(S){if(h.handleInteractOutside(S),!S.defaultPrevented&&(i()(S),!S.defaultPrevented)){if(S.target&&S.target instanceof Element){const k=`[${h.parentMenu.root.getBitsAttr("sub-content")}]`;if(S.target.closest(k))return}h.parentMenu.onClose()}}function m(S){a()(S),!S.defaultPrevented&&h.parentMenu.onClose()}var y=ne(),w=E(y);{var P=S=>{ck(S,We(()=>d(g),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.parentMenu.opts.open.current},onInteractOutside:p,onEscapeKeydown:m,get trapFocus(){return f()},get loop(){return s()},forceMount:!0,get id(){return n()},get shouldRender(){return h.shouldRender},popper:(C,R)=>{let x=()=>(R==null?void 0:R()).props,B=()=>(R==null?void 0:R()).wrapperProps;const H=j(()=>Xr(x(),{style:_h("dropdown-menu")},{style:e.style}));var U=ne(),V=E(U);{var q=I=>{var L=ne(),de=E(L);{let ce=j(()=>({props:d(H),wrapperProps:B(),...h.snippetProps}));Fe(de,()=>e.child,()=>d(ce))}b(I,L)},ee=I=>{var L=Sh();Ke(L,()=>({...B()}));var de=D(L);Ke(de,()=>({...d(H)}));var ce=D(de);Fe(ce,()=>e.children??ze),b(I,L)};Ne(V,I=>{e.child?I(q):I(ee,-1)})}b(C,U)},$$slots:{popper:!0}}))},z=S=>{ak(S,We(()=>d(g),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.parentMenu.opts.open.current},onInteractOutside:p,onEscapeKeydown:m,get trapFocus(){return f()},get loop(){return s()},forceMount:!1,get id(){return n()},get shouldRender(){return h.shouldRender},popper:(C,R)=>{let x=()=>(R==null?void 0:R()).props,B=()=>(R==null?void 0:R()).wrapperProps;const H=j(()=>Xr(x(),{style:_h("dropdown-menu")},{style:e.style}));var U=ne(),V=E(U);{var q=I=>{var L=ne(),de=E(L);{let ce=j(()=>({props:d(H),wrapperProps:B(),...h.snippetProps}));Fe(de,()=>e.child,()=>d(ce))}b(I,L)},ee=I=>{var L=Sh();Ke(L,()=>({...B()}));var de=D(L);Ke(de,()=>({...d(H)}));var ce=D(de);Fe(ce,()=>e.children??ze),b(I,L)};Ne(V,I=>{e.child?I(q):I(ee,-1)})}b(C,U)},$$slots:{popper:!0}}))};Ne(w,S=>{u()?S(P):u()||S(z,1)})}b(t,y),Ie()}var yk=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]),wk=oe("");function xk(t,e){const r=Da();Me(e,!0);let n=$(e,"id",19,()=>Ga(r)),o=$(e,"ref",15,null),s=$(e,"disabled",3,!1),i=$(e,"type",3,"button"),a=je(e,yk);const l=Uu.create({id:ve(()=>n()),disabled:ve(()=>s()??!1),ref:ve(()=>o(),f=>o(f))}),u=j(()=>Xr(a,l.props,{type:i()}));Q1(t,{get id(){return n()},get ref(){return l.opts.ref},children:(f,v)=>{var h=ne(),g=E(h);{var p=y=>{var w=ne(),P=E(w);Fe(P,()=>e.child,()=>({props:d(u)})),b(y,w)},m=y=>{var w=wk();Ke(w,()=>({...d(u)}));var P=D(w);Fe(P,()=>e.children??ze),b(y,w)};Ne(g,y=>{e.child?y(p):y(m,-1)})}b(f,h)},$$slots:{default:!0}}),Ie()}const _k=Hg({component:"label",parts:["root"]});var Ia;const df=class df{constructor(e){se(this,"opts");se(this,"attachment");_(this,Ia,j(()=>({id:this.opts.id.current,[_k.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=no(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new df(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return d(c(this,Ia))}set props(e){N(c(this,Ia),e)}};Ia=new WeakMap;let od=df;var kk=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),Sk=oe("");function Pk(t,e){const r=Da();Me(e,!0);let n=$(e,"id",19,()=>Ga(r)),o=$(e,"ref",15,null),s=je(e,kk);const i=od.create({id:ve(()=>n()),ref:ve(()=>o(),h=>o(h))}),a=j(()=>Xr(s,i.props,{for:e.for}));var l=ne(),u=E(l);{var f=h=>{var g=ne(),p=E(g);Fe(p,()=>e.child,()=>({props:d(a)})),b(h,g)},v=h=>{var g=Sk();Ke(g,()=>({...d(a),for:e.for}));var p=D(g);Fe(p,()=>e.children??ze),b(h,g)};Ne(u,h=>{e.child?h(f):h(v,-1)})}b(t,l),Ie()}var Ck=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Ak(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,Ck);var o=ne(),s=E(o);{let i=j(()=>Ge("gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",e.class));O(s,()=>Pk,(a,l)=>{l(a,We({"data-slot":"label",get class(){return d(i)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}b(t,o),Ie()}const Ph=$d({base:"rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});var Ek=new Set(["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]),Tk=oe(""),Ok=oe("");function Pn(t,e){Me(e,!0);let r=$(e,"variant",3,"default"),n=$(e,"size",3,"default"),o=$(e,"ref",15,null),s=$(e,"href",3,void 0),i=$(e,"type",3,"button"),a=je(e,Ek);var l=ne(),u=E(l);{var f=h=>{var g=Tk();Ke(g,m=>({"data-slot":"button",class:m,href:e.disabled?void 0:s(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...a}),[()=>Ge(Ph({variant:r(),size:n()}),e.class)]);var p=D(g);Fe(p,()=>e.children??ze),ot(g,m=>o(m),()=>o()),b(h,g)},v=h=>{var g=Ok();Ke(g,m=>({"data-slot":"button",class:m,type:i(),disabled:e.disabled,...a}),[()=>Ge(Ph({variant:r(),size:n()}),e.class)]);var p=D(g);Fe(p,()=>e.children??ze),ot(g,m=>o(m),()=>o()),b(h,g)};Ne(u,h=>{s()?h(f):h(v,-1)})}b(t,l),Ie()}/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const $k={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const Mk=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const Ch=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();var Ik=La("");function et(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]),n=Xe(r,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);Me(e,!1);let o=$(e,"name",8,void 0),s=$(e,"color",8,"currentColor"),i=$(e,"size",8,24),a=$(e,"strokeWidth",8,2),l=$(e,"absoluteStrokeWidth",8,!1),u=$(e,"iconNode",24,()=>[]);jb();var f=Ik();Ke(f,(g,p,m)=>({...$k,...g,...n,width:i(),height:i(),stroke:s(),"stroke-width":p,class:m}),[()=>Mk(n)?void 0:{"aria-hidden":"true"},()=>(wo(l()),wo(a()),wo(i()),Sr(()=>l()?Number(a())*24/Number(i()):a())),()=>(wo(Ch),wo(o()),wo(r),Sr(()=>Ch("lucide-icon","lucide",o()?`lucide-${o()}`:"",r.class)))]);var v=D(f);Nt(v,1,u,Zt,(g,p)=>{var m=j(()=>Qp(d(p),2));let y=()=>d(m)[0],w=()=>d(m)[1];var P=ne(),z=E(P);Wv(z,y,!0,(S,k)=>{Ke(S,()=>({...w()}))}),b(g,P)});var h=A(v);Qe(h,e,"default",{}),b(t,f),Ie()}function Nk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["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"}]];et(t,We({name:"activity"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function zk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];et(t,We({name:"arrow-down-up"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Rk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]];et(t,We({name:"arrow-down"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Fk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];et(t,We({name:"arrow-up"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Zc(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m6 9 6 6 6-6"}]];et(t,We({name:"chevron-down"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Zd(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]];et(t,We({name:"circle-alert"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ah(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["circle",{cx:"12",cy:"12",r:"1"}]];et(t,We({name:"circle-dot"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Lk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6h4"}]];et(t,We({name:"clock-3"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Vn(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];et(t,We({name:"gauge"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Eh(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];et(t,We({name:"globe"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Dk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}]];et(t,We({name:"inbox"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Bk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}]];et(t,We({name:"layout-panel-top"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Vk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]];et(t,We({name:"link"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Wk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M16 5H3"}],["path",{d:"M11 12H3"}],["path",{d:"M16 19H3"}],["path",{d:"m15.5 9.5 5 5"}],["path",{d:"m20.5 9.5-5 5"}]];et(t,We({name:"list-x"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Bp(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];et(t,We({name:"loader-circle"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function jk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];et(t,We({name:"log-out"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Gk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]];et(t,We({name:"network"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Hk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["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"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];et(t,We({name:"package"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Kk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["circle",{cx:"6",cy:"19",r:"3"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"}],["circle",{cx:"18",cy:"5",r:"3"}]];et(t,We({name:"route"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Vp(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];et(t,We({name:"search"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Uk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M10 5H3"}],["path",{d:"M12 19H3"}],["path",{d:"M14 3v4"}],["path",{d:"M16 17v4"}],["path",{d:"M21 12h-9"}],["path",{d:"M21 19h-5"}],["path",{d:"M21 5h-7"}],["path",{d:"M8 10v4"}],["path",{d:"M8 12H3"}]];et(t,We({name:"sliders-horizontal"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function qk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4"}],["path",{d:"M5 21h14"}]];et(t,We({name:"sprout"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Th(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]];et(t,We({name:"star"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=ne(),a=E(i);Qe(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}var Yk=oe('
    ',1),Oh=oe(" ",1),Xk=oe(" Signing in…",1),Zk=oe('
    '),Jk=oe('
    ');function Qk(t,e){Me(e,!0);let r=Ce(""),n=Ce(""),o=Ce(!1),s=Ce(null);_d(()=>{var u;(u=d(s))==null||u.focus()});async function i(){if(!(!d(r)||d(o))){N(o,!0),N(n,"");try{await us.login(d(r)),N(r,""),e.onLogin()}catch(u){N(n,u instanceof Error?u.message:"login failed",!0)}finally{N(o,!1)}}}var a=Jk(),l=D(a);O(l,()=>gt,(u,f)=>{f(u,{class:"w-full max-w-sm",children:(v,h)=>{var g=Oh(),p=E(g);O(p,()=>Ot,(y,w)=>{w(y,{children:(P,z)=>{var S=Yk(),k=E(S),C=D(k);qk(C,{class:"size-5","aria-hidden":"true"});var R=A(k,2);O(R,()=>or,(B,H)=>{H(B,{children:(U,V)=>{var q=Pe("Sower Admin");b(U,q)},$$slots:{default:!0}})});var x=A(R,2);O(x,()=>Tt,(B,H)=>{H(B,{children:(U,V)=>{var q=Pe("输入 sower 配置中的 admin 密码。");b(U,q)},$$slots:{default:!0}})}),b(P,S)},$$slots:{default:!0}})});var m=A(p,2);O(m,()=>bt,(y,w)=>{w(y,{children:(P,z)=>{var S=Zk(),k=D(S),C=D(k);Ak(C,{for:"admin-password",children:(U,V)=>{var q=Pe("Password");b(U,q)},$$slots:{default:!0}});var R=A(C,2);Id(R,{id:"admin-password",type:"password",placeholder:"Password",autocomplete:"current-password",get ref(){return d(s)},set ref(U){N(s,U,!0)},get value(){return d(r)},set value(U){N(r,U,!0)}});var x=A(k,2);{var B=U=>{var V=ne(),q=E(V);O(q,()=>Md,(ee,I)=>{I(ee,{variant:"destructive",children:(L,de)=>{var ce=Oh(),_e=E(ce);Zd(_e,{class:"size-4"});var T=A(_e,2);O(T,()=>Pd,(Oe,Te)=>{Te(Oe,{children:(re,ue)=>{var te=Pe();Ae(()=>Se(te,d(n))),b(re,te)},$$slots:{default:!0}})}),b(L,ce)},$$slots:{default:!0}})}),b(U,V)};Ne(x,U=>{d(n)&&U(B)})}var H=A(x,2);{let U=j(()=>d(o)||!d(r));Pn(H,{type:"submit",get disabled(){return d(U)},children:(V,q)=>{var ee=ne(),I=E(ee);{var L=ce=>{var _e=Xk(),T=E(_e);Bp(T,{class:"size-4 animate-spin","aria-hidden":"true"}),b(ce,_e)},de=ce=>{var _e=Pe("Sign in");b(ce,_e)};Ne(I,ce=>{d(o)?ce(L):ce(de,-1)})}b(V,ee)},$$slots:{default:!0}})}Rv("submit",S,U=>{U.preventDefault(),i()}),b(P,S)},$$slots:{default:!0}})}),b(v,g)},$$slots:{default:!0}})}),b(t,a),Ie()}function mr(t){if(!Number.isFinite(t)||t<0)return"-";if(t<1024)return`${t} B`;const e=["KB","MB","GB","TB","PB"];let r=t,n=-1;do r/=1024,n++;while(r>=1024&&n0?`${e}d ${r}h`:r>0?`${r}h ${n}m`:n>0?`${n}m ${o}s`:`${o}s`}function Je(t){return t>=1e9?`${(t/1e9).toFixed(1)}B`:t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:`${t}`}function tS(t){const e=new Date(t);if(Number.isNaN(e.getTime()))return"-";const r=o=>String(o).padStart(2,"0"),n=`${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`;return e.toDateString()===new Date().toDateString()?n:`${e.getFullYear()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${n}`}const tt=Jt({status:null,traffic:null,history:[],totals:null,connected:!1});let It=null,sd="",Al=null;function sl(t){try{return JSON.parse(t)}catch{return null}}function rS(t){Al=t}function Wp(t=""){It&&t===sd||(sd=t,It==null||It.close(),It=new EventSource(`/api/stream${t?`?${t}`:""}`),It.onopen=()=>tt.connected=!0,It.onerror=()=>tt.connected=!1,It.addEventListener("status",e=>{const r=sl(e.data);r&&(tt.status=r)}),It.addEventListener("traffic",e=>{const r=sl(e.data);r&&(tt.traffic=r)}),It.addEventListener("history",e=>{const r=sl(e.data);r&&(tt.history=r.samples)}),It.addEventListener("totals",e=>{const r=sl(e.data);r&&(tt.totals=r)}),It.addEventListener("auth",()=>{Al==null||Al()}))}function nS(){It==null||It.close(),It=null,sd="",tt.status=null,tt.traffic=null,tt.history=[],tt.totals=null,tt.connected=!1}const oS=$d({base:"h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none",variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});var sS=new Set(["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);function Nc(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=$(e,"variant",3,"default"),o=je(e,sS);var s=ne(),i=E(s);Wv(i,()=>e.href?"a":"span",!1,(a,l)=>{ot(a,v=>r(v),()=>r()),Ke(a,v=>({"data-slot":"badge",href:e.href,class:v,...o}),[()=>Ge(oS({variant:n()}),e.class)]);var u=ne(),f=E(u);Fe(f,()=>e.children??ze),b(l,u)}),b(t,s),Ie()}var iS=oe('
    ');function Jd(t,e){let r=$(e,"label",3,"加载中…");var n=iS(),o=D(n);Bp(o,{class:"size-4 animate-spin","aria-hidden":"true"});var s=A(o,2),i=D(s);Ae(()=>Se(i,r())),b(t,n)}var aS=La(''),lS=La(''),cS=La(''),uS=La(''),dS=oe(" "),fS=oe('
    ',1),hS=oe('
    等待采样数据…
    '),vS=oe(' '),gS=oe(' '),pS=oe('
    ');function il(t,e){Me(e,!0);let r=$(e,"height",3,160),n=$(e,"format",3,V=>String(V));const o=600,s=j(r),i=j(()=>e.series.flatMap(V=>V.values)),a=j(()=>d(i).length?Math.max(...d(i)):0),l=j(()=>d(i).length?Math.min(...d(i)):0),u=j(()=>d(a)-d(l)||1),f=j(()=>d(u)*.12),v=j(()=>d(a)+d(f)),h=j(()=>Math.max(0,d(l)-d(f))),g=j(()=>V=>e.labels.length<=1?0:V/(e.labels.length-1)*o),p=j(()=>V=>d(s)-(V-d(h))/(d(v)-d(h))*d(s)),m=j(()=>V=>V.length?V.map((q,ee)=>`${ee===0?"M":"L"}${d(g)(ee).toFixed(1)},${d(p)(q).toFixed(1)}`).join(" "):""),y=j(()=>V=>V.length?`${d(m)(V)} L${d(g)(V.length-1).toFixed(1)},${d(s)} L${d(g)(0).toFixed(1)},${d(s)} Z`:""),w=j(()=>e.labels.length<=2?[0,e.labels.length-1]:[0,Math.floor(e.labels.length/2),e.labels.length-1]),P=j(()=>d(w).map(V=>e.labels[V])),z=j(()=>e.labels.length>=2);let S=Ce(null),k=Ce(void 0);function C(V){if(!d(k))return;const q=d(k).getBoundingClientRect();if(q.width===0||e.labels.length<2)return;const ee=(V.clientX-q.left)/q.width;N(S,Math.max(0,Math.min(e.labels.length-1,Math.round(ee*(e.labels.length-1)))),!0)}var R=pS(),x=D(R);{var B=V=>{var q=fS(),ee=E(q),I=D(ee);Nt(I,16,()=>[.25,.5,.75],Zt,(Oe,Te)=>{var re=aS();pt(re,"x2",o),Ae(()=>{pt(re,"y1",d(s)*Te),pt(re,"y2",d(s)*Te)}),b(Oe,re)});var L=A(I);Nt(L,17,()=>e.series,Zt,(Oe,Te)=>{var re=lS();Ae(ue=>{pt(re,"d",ue),as(re,`fill:${d(Te).color}`)},[()=>d(y)(d(Te).values)]),b(Oe,re)});var de=A(L);Nt(de,17,()=>e.series,Zt,(Oe,Te)=>{var re=cS();Ae(ue=>{pt(re,"d",ue),as(re,`stroke:${d(Te).color}`)},[()=>d(m)(d(Te).values)]),b(Oe,re)});var ce=A(de);{var _e=Oe=>{var Te=uS();Ae((re,ue)=>{pt(Te,"x1",re),pt(Te,"x2",ue),pt(Te,"y2",d(s))},[()=>d(g)(d(S)),()=>d(g)(d(S))]),b(Oe,Te)};Ne(ce,Oe=>{d(S)!==null&&Oe(_e)})}ot(ee,Oe=>N(k,Oe),()=>d(k));var T=A(ee,2);Nt(T,21,()=>d(P),Zt,(Oe,Te)=>{var re=dS(),ue=D(re);Ae(()=>Se(ue,d(Te))),b(Oe,re)}),Ae(()=>{pt(ee,"viewBox",`0 0 ${o} ${d(s)}`),as(ee,`height:${d(s)}px`)}),xo("mousemove",ee,C),Rv("mouseleave",ee,()=>N(S,null)),b(V,q)},H=V=>{var q=hS();Ae(()=>as(q,`height:${d(s)}px`)),b(V,q)};Ne(x,V=>{d(z)?V(B):V(H,-1)})}var U=A(x,2);Nt(U,21,()=>e.series,Zt,(V,q)=>{var ee=gS(),I=D(ee),L=A(I),de=A(L);{var ce=_e=>{var T=vS(),Oe=D(T);Ae(Te=>Se(Oe,Te),[()=>n()(d(q).values[d(S)]??0)]),b(_e,T)};Ne(de,_e=>{d(S)!==null&&_e(ce)})}Ae(()=>{as(I,`background:${d(q).color}`),Se(L,` ${d(q).name??""} `)}),b(V,ee)}),b(t,R),Ie()}xd(["mousemove"]);var st=oe(" ",1),Dn=oe('
    ',1),mS=oe('

    自启动以来

    '),bS=oe('

    全部上游查询

    '),yS=oe('

    '),al=oe('

    近 60 秒均值

    '),Jc=oe('
    '),wS=oe('
    HTTP
    HTTPS
    SOCKS5

    ',1),xS=oe('
    Block
    Direct
    Proxy

    ',1),_S=oe('
    Goroutines
    堆内存
    ',1),kS=oe('

    ',1);function SS(t,e){Me(e,!0);const r=j(()=>tt.traffic),n=j(()=>tt.history),o=p=>new Date(p).toTimeString().slice(0,5),s=j(()=>d(n).map(p=>o(p.at)));function i(p){return d(n).map((m,y)=>{if(y===0)return 0;const w=d(n)[y-1];if(!w)return 0;const P=(new Date(m.at).getTime()-new Date(w.at).getTime())/1e3;return P>0?m[p]/P:0})}const a=p=>`${mr(p)}/s`,l=p=>`${p.toFixed(1)}/s`,u=j(()=>{const p=d(n)[0],m=d(n)[d(n).length-1];return p&&m?`${o(p.at)} – ${o(m.at)} · 进程内历史,重启后清空`:"进程内历史,重启后清空"});var f=ne(),v=E(f);{var h=p=>{Jd(p,{})},g=p=>{var m=kS(),y=E(m);{var w=re=>{var ue=ne(),te=E(ue);O(te,()=>Md,(le,W)=>{W(le,{variant:"destructive",class:"mb-4",children:(J,K)=>{var Y=st(),Q=E(Y);Zd(Q,{class:"size-4"});var X=A(Q,2);O(X,()=>Pd,(ge,F)=>{F(ge,{children:(Z,fe)=>{var he=Pe("实时连接已断开,正在重连…");b(Z,he)},$$slots:{default:!0}})}),b(J,Y)},$$slots:{default:!0}})}),b(re,ue)};Ne(y,re=>{tt.connected||re(w)})}var P=A(y,2),z=D(P);O(z,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Dn(),Z=E(F),fe=D(Z);O(fe,()=>Tt,(ie,xe)=>{xe(ie,{children:(ae,Be)=>{var ke=Pe("版本");b(ae,ke)},$$slots:{default:!0}})});var he=A(fe,2);Hk(he,{class:"size-4 text-muted-foreground"});var we=A(Z,2);O(we,()=>or,(ie,xe)=>{xe(ie,{class:"text-xl",children:(ae,Be)=>{var ke=Pe();Ae(()=>Se(ke,e.status.version||"-")),b(ae,ke)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{Nc(X,{variant:"secondary",children:(F,Z)=>{var fe=Pe();Ae(()=>Se(fe,e.status.date||"unknown build date")),b(F,fe)},$$slots:{default:!0}})},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var S=A(z,2);O(S,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Dn(),Z=E(F),fe=D(Z);O(fe,()=>Tt,(ie,xe)=>{xe(ie,{children:(ae,Be)=>{var ke=Pe("运行时长");b(ae,ke)},$$slots:{default:!0}})});var he=A(fe,2);Lk(he,{class:"size-4 text-muted-foreground"});var we=A(Z,2);O(we,()=>or,(ie,xe)=>{xe(ie,{class:"text-xl tabular-nums",children:(ae,Be)=>{var ke=Pe();Ae(He=>Se(ke,He),[()=>eS(d(r).uptime)]),b(ae,ke)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=mS();b(X,F)},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var k=A(S,2);O(k,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Dn(),Z=E(F),fe=D(Z);O(fe,()=>Tt,(ie,xe)=>{xe(ie,{children:(ae,Be)=>{var ke=Pe("DNS 查询");b(ae,ke)},$$slots:{default:!0}})});var he=A(fe,2);Eh(he,{class:"size-4 text-muted-foreground"});var we=A(Z,2);O(we,()=>or,(ie,xe)=>{xe(ie,{class:"text-xl tabular-nums",children:(ae,Be)=>{var ke=Pe();Ae(He=>Se(ke,He),[()=>Je(d(r).dnsQueries)]),b(ae,ke)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=bS();b(X,F)},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var C=A(k,2);O(C,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Dn(),Z=E(F),fe=D(Z);O(fe,()=>Tt,(ie,xe)=>{xe(ie,{children:(ae,Be)=>{var ke=Pe("代理流量");b(ae,ke)},$$slots:{default:!0}})});var he=A(fe,2);zk(he,{class:"size-4 text-muted-foreground"});var we=A(Z,2);O(we,()=>or,(ie,xe)=>{xe(ie,{class:"text-xl tabular-nums",children:(ae,Be)=>{var ke=Pe();Ae(He=>Se(ke,He),[()=>mr(d(r).bytesUp+d(r).bytesDown)]),b(ae,ke)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=yS(),Z=D(F);Ae((fe,he)=>Se(Z,`↑ ${fe??""} / ↓ ${he??""}`),[()=>mr(d(r).bytesUp),()=>mr(d(r).bytesDown)]),b(X,F)},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var R=A(P,2),x=D(R);O(x,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Dn(),Z=E(F),fe=D(Z);O(fe,()=>Tt,(ie,xe)=>{xe(ie,{children:(ae,Be)=>{var ke=Pe("上行速率");b(ae,ke)},$$slots:{default:!0}})});var he=A(fe,2);Fk(he,{class:"size-4 text-muted-foreground"});var we=A(Z,2);O(we,()=>or,(ie,xe)=>{xe(ie,{class:"text-xl tabular-nums",children:(ae,Be)=>{var ke=Pe();Ae(He=>Se(ke,`${He??""}/s`),[()=>mr(d(r).rates.bytesUpPerSec)]),b(ae,ke)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=al();b(X,F)},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var B=A(x,2);O(B,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Dn(),Z=E(F),fe=D(Z);O(fe,()=>Tt,(ie,xe)=>{xe(ie,{children:(ae,Be)=>{var ke=Pe("下行速率");b(ae,ke)},$$slots:{default:!0}})});var he=A(fe,2);Rk(he,{class:"size-4 text-muted-foreground"});var we=A(Z,2);O(we,()=>or,(ie,xe)=>{xe(ie,{class:"text-xl tabular-nums",children:(ae,Be)=>{var ke=Pe();Ae(He=>Se(ke,`${He??""}/s`),[()=>mr(d(r).rates.bytesDownPerSec)]),b(ae,ke)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=al();b(X,F)},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var H=A(B,2);O(H,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Dn(),Z=E(F),fe=D(Z);O(fe,()=>Tt,(ie,xe)=>{xe(ie,{children:(ae,Be)=>{var ke=Pe("DNS 速率");b(ae,ke)},$$slots:{default:!0}})});var he=A(fe,2);Eh(he,{class:"size-4 text-muted-foreground"});var we=A(Z,2);O(we,()=>or,(ie,xe)=>{xe(ie,{class:"text-xl tabular-nums",children:(ae,Be)=>{var ke=Pe();Ae(He=>Se(ke,`${He??""}/s`),[()=>d(r).rates.dnsPerSec.toFixed(1)]),b(ae,ke)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=al();b(X,F)},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var U=A(H,2);O(U,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Dn(),Z=E(F),fe=D(Z);O(fe,()=>Tt,(ie,xe)=>{xe(ie,{children:(ae,Be)=>{var ke=Pe("连接速率");b(ae,ke)},$$slots:{default:!0}})});var he=A(fe,2);Vk(he,{class:"size-4 text-muted-foreground"});var we=A(Z,2);O(we,()=>or,(ie,xe)=>{xe(ie,{class:"text-xl tabular-nums",children:(ae,Be)=>{var ke=Pe();Ae(He=>Se(ke,`${He??""}/s`),[()=>d(r).rates.connsPerSec.toFixed(1)]),b(ae,ke)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=al();b(X,F)},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var V=A(R,2),q=D(V);O(q,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Jc(),Z=D(F);O(Z,()=>Tt,(he,we)=>{we(he,{children:(ie,xe)=>{var ae=Pe("活跃连接");b(ie,ae)},$$slots:{default:!0}})});var fe=A(Z,2);Gk(fe,{class:"size-4 text-muted-foreground"}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{class:"space-y-2",children:(X,ge)=>{var F=wS(),Z=E(F),fe=A(D(Z),2),he=D(fe),we=A(Z,2),ie=A(D(we),2),xe=D(ie),ae=A(we,2),Be=A(D(ae),2),ke=D(Be),He=A(ae,2),xt=D(He);Ae((Vt,ut,_t)=>{Se(he,d(r).active.http),Se(xe,d(r).active.https),Se(ke,d(r).active.socks5),Se(xt,`累计 ${Vt??""} / ${ut??""} / ${_t??""}`)},[()=>Je(d(r).conns.http),()=>Je(d(r).conns.https),()=>Je(d(r).conns.socks5)]),b(X,F)},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var ee=A(q,2);O(ee,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Jc(),Z=D(F);O(Z,()=>Tt,(he,we)=>{we(he,{children:(ie,xe)=>{var ae=Pe("规则命中");b(ie,ae)},$$slots:{default:!0}})});var fe=A(Z,2);Kk(fe,{class:"size-4 text-muted-foreground"}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{class:"space-y-2",children:(X,ge)=>{var F=xS(),Z=E(F),fe=A(D(Z),2),he=D(fe),we=A(Z,2),ie=A(D(we),2),xe=D(ie),ae=A(we,2),Be=A(D(ae),2),ke=D(Be),He=A(ae,2),xt=D(He);Ae((Vt,ut,_t,dt,Wt,kt)=>{Se(he,Vt),Se(xe,ut),Se(ke,_t),Se(xt,`已配置 ${dt??""} / ${Wt??""} / ${kt??""} 条`)},[()=>Je(d(r).ruleHits.block),()=>Je(d(r).ruleHits.direct),()=>Je(d(r).ruleHits.proxy),()=>Je(e.status.rules.block),()=>Je(e.status.rules.direct),()=>Je(e.status.rules.proxy)]),b(X,F)},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var I=A(ee,2);O(I,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=Jc(),Z=D(F);O(Z,()=>Tt,(he,we)=>{we(he,{children:(ie,xe)=>{var ae=Pe("系统");b(ie,ae)},$$slots:{default:!0}})});var fe=A(Z,2);Vn(fe,{class:"size-4 text-muted-foreground"}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{class:"space-y-2",children:(X,ge)=>{var F=_S(),Z=E(F),fe=A(D(Z),2),he=D(fe),we=A(Z,2),ie=A(D(we),2),xe=D(ie);Ae((ae,Be)=>{Se(he,ae),Se(xe,Be)},[()=>Je(d(r).system.goroutines),()=>mr(d(r).system.heapAlloc)]),b(X,F)},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var L=A(V,2),de=D(L);O(de,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=st(),Z=E(F);O(Z,()=>Tt,(he,we)=>{we(he,{children:(ie,xe)=>{var ae=Pe("流量历史");b(ie,ae)},$$slots:{default:!0}})});var fe=A(Z,2);O(fe,()=>or,(he,we)=>{we(he,{class:"text-base",children:(ie,xe)=>{var ae=Pe("上下行速率");b(ie,ae)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{{let F=j(()=>[{name:"下行",color:"var(--chart-1)",values:i("bytesDown")},{name:"上行",color:"var(--chart-4)",values:i("bytesUp")}]);il(X,{get series(){return d(F)},get labels(){return d(s)},format:a})}},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var ce=A(de,2);O(ce,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=st(),Z=E(F);O(Z,()=>Tt,(he,we)=>{we(he,{children:(ie,xe)=>{var ae=Pe("DNS 与连接");b(ie,ae)},$$slots:{default:!0}})});var fe=A(Z,2);O(fe,()=>or,(he,we)=>{we(he,{class:"text-base",children:(ie,xe)=>{var ae=Pe("每秒查询 / 新建连接");b(ie,ae)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{{let F=j(()=>[{name:"DNS",color:"var(--chart-2)",values:i("dns")},{name:"连接",color:"var(--chart-3)",values:i("conns")}]);il(X,{get series(){return d(F)},get labels(){return d(s)},format:l})}},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var _e=A(ce,2);O(_e,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=st(),Z=E(F);O(Z,()=>Tt,(he,we)=>{we(he,{children:(ie,xe)=>{var ae=Pe("活跃连接");b(ie,ae)},$$slots:{default:!0}})});var fe=A(Z,2);O(fe,()=>or,(he,we)=>{we(he,{class:"text-base",children:(ie,xe)=>{var ae=Pe("分协议在线数");b(ie,ae)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{{let F=j(()=>[{name:"HTTP",color:"var(--chart-1)",values:d(n).map(Z=>Z.activeHttp)},{name:"HTTPS",color:"var(--chart-4)",values:d(n).map(Z=>Z.activeHttps)},{name:"SOCKS5",color:"var(--chart-3)",values:d(n).map(Z=>Z.activeSocks)}]);il(X,{get series(){return d(F)},get labels(){return d(s)},get format(){return Je}})}},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var T=A(_e,2);O(T,()=>gt,(re,ue)=>{ue(re,{children:(te,le)=>{var W=st(),J=E(W);O(J,()=>Ot,(Y,Q)=>{Q(Y,{children:(X,ge)=>{var F=st(),Z=E(F);O(Z,()=>Tt,(he,we)=>{we(he,{children:(ie,xe)=>{var ae=Pe("规则命中");b(ie,ae)},$$slots:{default:!0}})});var fe=A(Z,2);O(fe,()=>or,(he,we)=>{we(he,{class:"text-base",children:(ie,xe)=>{var ae=Pe("每秒路由决策");b(ie,ae)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})});var K=A(J,2);O(K,()=>bt,(Y,Q)=>{Q(Y,{children:(X,ge)=>{{let F=j(()=>[{name:"Proxy",color:"var(--chart-1)",values:i("proxy")},{name:"Direct",color:"var(--chart-2)",values:i("direct")},{name:"Block",color:"var(--chart-5)",values:i("block")}]);il(X,{get series(){return d(F)},get labels(){return d(s)},format:l})}},$$slots:{default:!0}})}),b(te,W)},$$slots:{default:!0}})});var Oe=A(L,2),Te=D(Oe);Ae(()=>Se(Te,d(u))),b(p,m)};Ne(v,p=>{!e.status||!d(r)?p(h):p(g,-1)})}b(t,f),Ie()}var PS=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),CS=oe("");function AS(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=$(e,"value",15),o=$(e,"data-slot",3,"textarea"),s=je(e,PS);var i=CS();Ke(i,a=>({"data-slot":o(),class:a,...s}),[()=>Ge("rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e.class)]),ot(i,a=>r(a),()=>r()),ku(i,n),b(t,i),Ie()}var ES=oe(" ",1),TS=oe('
    ',1),OS=oe('

    '),$S=oe('
    '),MS=oe('
    ',1),IS=oe(" ",1);function NS(t,e){Me(e,!0);const r=200;let n=Ce(null),o=Ce(0),s=Ce(0),i=Ce(""),a=Ce(""),l=Ce(""),u=Ce(!1),f=Ce(!1),v=0,h;function g(U,V){return U===v&&V===e.category}async function p(U){const V=++v,q=e.category,ee=d(a);U||N(f,!0);try{const I=await us.rules(q,{q:ee,offset:U?0:d(s),limit:r});if(!g(V,q))return;N(n,U?I.rules:[...d(n)??[],...I.rules],!0),N(o,I.total,!0),N(s,I.offset+I.rules.length),N(l,"")}catch(I){if(!g(V,q))return;if(I instanceof fi&&I.status===401){e.onUnauthorized();return}N(l,I instanceof Error?I.message:"load failed",!0)}finally{g(V,q)&&N(f,!1)}}async function m(){var ee;const U=++v,V=e.category,q=Math.max(((ee=d(n))==null?void 0:ee.length)??r,r);try{const I=await us.rules(V,{q:d(a),offset:0,limit:q});if(!g(U,V))return;N(n,I.rules,!0),N(o,I.total,!0),N(s,I.offset+I.rules.length),N(l,"")}catch(I){if(!g(U,V))return;if(I instanceof fi&&I.status===401){e.onUnauthorized();return}N(l,I instanceof Error?I.message:"refresh failed",!0)}}async function y(){const U=d(i).split(` +`).map(ee=>ee.trim()).filter(ee=>ee.length>0);if(U.length===0||d(u))return;const V=++v,q=e.category;N(u,!0),N(l,"");try{if(await us.addRules(q,U),!g(V,q))return;N(i,""),await m()}catch(ee){if(!g(V,q))return;if(ee instanceof fi&&ee.status===401){e.onUnauthorized();return}N(l,ee instanceof Error?ee.message:"add failed",!0)}finally{g(V,q)&&N(u,!1)}}async function w(U){if(d(u))return;const V=++v,q=e.category;N(u,!0),N(l,"");try{if(await us.removeRules(q,[U]),!g(V,q))return;await m()}catch(ee){if(!g(V,q))return;if(ee instanceof fi&&ee.status===401){e.onUnauthorized();return}N(l,ee instanceof Error?ee.message:"remove failed",!0)}finally{g(V,q)&&N(u,!1)}}nt(()=>{e.category,clearTimeout(h),N(n,null),N(o,0),N(s,0),N(a,""),N(l,""),N(u,!1),p(!0)});function P(U){N(a,U.currentTarget.value,!0),clearTimeout(h),h=setTimeout(()=>{N(s,0),p(!0)},300)}var z=IS(),S=E(z);{var k=U=>{var V=ne(),q=E(V);O(q,()=>Md,(ee,I)=>{I(ee,{variant:"destructive",class:"mb-4",children:(L,de)=>{var ce=ES(),_e=E(ce);Zd(_e,{class:"size-4"});var T=A(_e,2);O(T,()=>Pd,(Oe,Te)=>{Te(Oe,{children:(re,ue)=>{var te=Pe();Ae(()=>Se(te,d(l))),b(re,te)},$$slots:{default:!0}})}),b(L,ce)},$$slots:{default:!0}})}),b(U,V)};Ne(S,U=>{d(l)&&U(k)})}var C=A(S,2);O(C,()=>gt,(U,V)=>{V(U,{class:"mb-4",children:(q,ee)=>{var I=ne(),L=E(I);O(L,()=>bt,(de,ce)=>{ce(de,{class:"grid gap-3 pt-6",children:(_e,T)=>{var Oe=TS(),Te=E(Oe);AS(Te,{rows:3,placeholder:`One rule per line, e.g. example.com or **.cn +Rules take effect immediately and reset on restart.`,get value(){return d(i)},set value(le){N(i,le,!0)}});var re=A(Te,2),ue=D(re);{let le=j(()=>d(u)||!d(i).trim());Pn(ue,{onclick:y,get disabled(){return d(le)},children:(W,J)=>{var K=Pe("Add rules");b(W,K)},$$slots:{default:!0}})}var te=A(ue,2);Pn(te,{variant:"outline",onclick:()=>p(!0),get disabled(){return d(u)},children:(le,W)=>{var J=Pe("Refresh");b(le,J)},$$slots:{default:!0}}),b(_e,Oe)},$$slots:{default:!0}})}),b(q,I)},$$slots:{default:!0}})});var R=A(C,2);{var x=U=>{Jd(U,{})},B=U=>{var V=OS(),q=D(V);Wk(q,{class:"size-5","aria-hidden":"true"});var ee=A(q,2),I=D(ee);Ae(L=>Se(I,L),[()=>d(a).trim()?`没有匹配“${d(a).trim()}”的规则。`:"该分类暂无规则。"]),b(U,V)},H=U=>{var V=MS(),q=E(V),ee=D(q),I=D(ee);Vp(I,{class:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"});var L=A(I,2);Id(L,{get value(){return d(a)},oninput:P,placeholder:"搜索规则…","aria-label":"搜索规则",class:"pl-8"});var de=A(ee,2);Nc(de,{variant:"secondary",class:"ml-auto shrink-0",children:(Oe,Te)=>{var re=ne(),ue=E(re);{var te=W=>{var J=Pe();Ae(K=>Se(J,`${K??""} rules`),[()=>Je(d(o))]),b(W,J)},le=W=>{var J=Pe();Ae((K,Y)=>Se(J,`${K??""} / ${Y??""} rules`),[()=>Je(d(n).length),()=>Je(d(o))]),b(W,J)};Ne(ue,W=>{d(n).length===d(o)?W(te):W(le,-1)})}b(Oe,re)},$$slots:{default:!0}});var ce=A(q,2);O(ce,()=>gt,(Oe,Te)=>{Te(Oe,{children:(re,ue)=>{var te=ne(),le=E(te);O(le,()=>bt,(W,J)=>{J(W,{class:"divide-y p-0",children:(K,Y)=>{var Q=ne(),X=E(Q);Nt(X,16,()=>d(n),ge=>ge,(ge,F)=>{var Z=$S(),fe=D(Z),he=D(fe),we=A(fe,2);Pn(we,{variant:"ghost",size:"sm",class:"shrink-0 text-destructive hover:bg-destructive/10 hover:text-destructive",onclick:()=>w(F),get disabled(){return d(u)},children:(ie,xe)=>{var ae=Pe("Remove");b(ie,ae)},$$slots:{default:!0}}),Ae(()=>Se(he,F)),b(ge,Z)}),b(K,Q)},$$slots:{default:!0}})}),b(re,te)},$$slots:{default:!0}})});var _e=A(ce,2);{var T=Oe=>{{let Te=j(()=>d(f)||d(u));Pn(Oe,{variant:"outline",class:"mt-3 w-full",onclick:()=>p(!1),get disabled(){return d(Te)},children:(re,ue)=>{var te=Pe();Ae(le=>Se(te,le),[()=>d(f)?"加载中…":`加载更多(已加载 ${Je(d(n).length)} / ${Je(d(o))})`]),b(re,te)},$$slots:{default:!0}})}};Ne(_e,Oe=>{d(n).length{d(n)===null?U(x):d(o)===0?U(B,1):U(H,-1)})}b(t,z),Ie()}var zS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),RS=oe("");function FS(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,zS);var o=RS();Ke(o,i=>({"data-slot":"table-body",class:i,...n}),[()=>Ge("[&_tr:last-child]:border-0",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var LS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),DS=oe("");function Bn(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,LS);var o=DS();Ke(o,i=>({"data-slot":"table-cell",class:i,...n}),[()=>Ge("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var BS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),VS=oe("");function yo(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,BS);var o=VS();Ke(o,i=>({"data-slot":"table-head",class:i,...n}),[()=>Ge("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var WS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),jS=oe("");function GS(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,WS);var o=jS();Ke(o,i=>({"data-slot":"table-header",class:i,...n}),[()=>Ge("[&_tr]:border-b",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var HS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),KS=oe("");function Qc(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,HS);var o=KS();Ke(o,i=>({"data-slot":"table-row",class:i,...n}),[()=>Ge("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var US=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),qS=oe('
    ');function YS(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,US);var o=qS(),s=D(o);Ke(s,a=>({"data-slot":"table",class:a,...n}),[()=>Ge("w-full caption-bottom text-sm",e.class)]);var i=D(s);Fe(i,()=>e.children??ze),ot(s,a=>r(a),()=>r()),b(t,o),Ie()}var XS=oe('

    实时连接已断开,正在自动重连…

    '),ZS=oe(''),JS=oe('
    '),QS=oe(''),eP=oe('
    '),tP=oe('

    '),$h=oe(" ",1),Mh=oe(" ",1),Ih=oe(" ",1),Nh=oe('

    '),rP=oe('
    ',1);function nP(t,e){Me(e,!0);let r=$(e,"source",3,"all");const n=[{value:"bytes",label:"流量"},{value:"recent",label:"最近"},{value:"conns",label:"连接数"}];let o=Ce("live");const s=j(()=>{var k,C;return d(o)==="totals"?((k=tt.totals)==null?void 0:k.domains)??[]:((C=tt.traffic)==null?void 0:C.domains)??[]}),i=j(()=>{var k,C;return d(o)==="totals"?((k=tt.totals)==null?void 0:k.clients)??[]:((C=tt.traffic)==null?void 0:C.clients)??[]});let a=Ce(""),l=Ce("bytes"),u=Ce("");const f=j(()=>{var k;return((k=n.find(C=>C.value===d(l)))==null?void 0:k.label)??"流量"}),v={all:"流量",http:"HTTP",https:"HTTPS",socks5:"SOCKS5",dns:"DNS"},h=j(()=>v[r()]),g=j(()=>r()==="dns"),p=j(()=>{const k=d(a).trim().toLowerCase();return k?d(s).filter(C=>C.domain.toLowerCase().includes(k)):d(s)}),m=j(()=>d(o)==="totals"||!d(g));nt(()=>{const k=new URLSearchParams;d(l)!=="bytes"&&k.set("sort",d(l)),r()!=="all"&&k.set("source",r()),d(u)&&k.set("client",d(u)),Wp(k.toString())});const y="sticky top-0 z-10 bg-card";var w=ne(),P=E(w);{var z=k=>{Jd(k,{})},S=k=>{var C=rP(),R=E(C);{var x=W=>{var J=XS();b(W,J)};Ne(R,W=>{tt.connected||W(x)})}var B=A(R,2),H=D(B),U=D(H);Vp(U,{class:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"});var V=A(U,2);Id(V,{placeholder:"过滤域名…","aria-label":"过滤域名",class:"pl-8",get value(){return d(a)},set value(W){N(a,W,!0)}});var q=A(H,2),ee=D(q),I=A(ee,2),L=A(q,2);{var de=W=>{var J=JS();Nt(J,21,()=>n,Zt,(K,Y)=>{var Q=ZS(),X=D(Q);Ae(()=>{Wn(Q,1,`rounded-sm px-2.5 py-1 text-xs font-medium transition-colors ${d(l)===d(Y).value?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`),pt(Q,"aria-pressed",d(l)===d(Y).value),Se(X,d(Y).label)}),xo("click",Q,()=>N(l,d(Y).value,!0)),b(K,Q)}),b(W,J)};Ne(L,W=>{d(o)==="live"&&W(de)})}var ce=A(L,2);Nc(ce,{variant:"secondary",class:"ml-auto shrink-0",children:(W,J)=>{var K=ne(),Y=E(K);{var Q=ge=>{var F=Pe();Ae(Z=>Se(F,`${Z??""} domains`),[()=>Je(d(p).length)]),b(ge,F)},X=ge=>{var F=Pe();Ae((Z,fe)=>Se(F,`${Z??""} / ${fe??""} domains`),[()=>Je(d(p).length),()=>Je(d(s).length)]),b(ge,F)};Ne(Y,ge=>{d(p).length===d(s).length?ge(Q):ge(X,-1)})}b(W,K)},$$slots:{default:!0}});var _e=A(B,2);{var T=W=>{var J=eP(),K=D(J),Y=A(K,2);Nt(Y,17,()=>d(i),Zt,(Q,X)=>{var ge=QS(),F=D(ge),Z=A(F),fe=D(Z);Ae((he,we)=>{Wn(ge,1,`rounded-full border px-3 py-1 font-mono text-xs transition-colors ${d(o)==="live"&&d(u)===d(X).ip?"border-primary/40 bg-primary/10 text-foreground":"text-muted-foreground hover:text-foreground"}`),pt(ge,"aria-pressed",d(o)==="live"&&d(u)===d(X).ip),pt(ge,"title",he),Se(F,`${d(X).ip??""} `),Se(fe,we)},[()=>`${Je(d(X).conns)} 次 · ↑${mr(d(X).bytesUp)} ↓${mr(d(X).bytesDown)}`,()=>Je(d(X).conns)]),xo("click",ge,()=>{d(o)==="totals"&&N(o,"live"),N(u,d(X).ip,!0)}),b(Q,ge)}),Ae(()=>{Wn(K,1,`rounded-full border px-3 py-1 text-xs font-medium transition-colors ${d(o)==="live"&&!d(u)?"border-primary/40 bg-primary/10 text-foreground":"text-muted-foreground hover:text-foreground"}`),pt(K,"aria-pressed",d(o)==="live"&&!d(u))}),xo("click",K,()=>N(u,"")),b(W,J)};Ne(_e,W=>{d(i).length>0&&W(T)})}var Oe=A(_e,2);{var Te=W=>{var J=tP(),K=D(J);Dk(K,{class:"size-5","aria-hidden":"true"});var Y=A(K,2),Q=D(Y);Ae(()=>Se(Q,d(o)==="totals"?"暂无总计记录。":`暂无${d(h)}记录。`)),b(W,J)},re=W=>{var J=ne(),K=E(J);O(K,()=>gt,(Y,Q)=>{Q(Y,{class:"max-h-[70vh] overflow-auto",children:(X,ge)=>{var F=ne(),Z=E(F);O(Z,()=>YS,(fe,he)=>{he(fe,{children:(we,ie)=>{var xe=Ih(),ae=E(xe);O(ae,()=>GS,(ke,He)=>{He(ke,{children:(xt,Vt)=>{var ut=ne(),_t=E(ut);O(_t,()=>Qc,(dt,Wt)=>{Wt(dt,{children:(kt,ft)=>{var er=Mh(),Ct=E(er);O(Ct,()=>yo,(At,Rt)=>{Rt(At,{class:y,children:(Ft,Ir)=>{var tr=Pe("Domain");b(Ft,tr)},$$slots:{default:!0}})});var rn=A(Ct,2);O(rn,()=>yo,(At,Rt)=>{Rt(At,{class:y+" text-right",children:(Ft,Ir)=>{var tr=Pe("Requests");b(Ft,tr)},$$slots:{default:!0}})});var In=A(rn,2);{var Ha=At=>{var Rt=$h(),Ft=E(Rt);O(Ft,()=>yo,(Nr,St)=>{St(Nr,{class:y+" text-right",children:(Et,rr)=>{var ur=Pe("Up");b(Et,ur)},$$slots:{default:!0}})});var Ir=A(Ft,2);O(Ir,()=>yo,(Nr,St)=>{St(Nr,{class:y+" text-right",children:(Et,rr)=>{var ur=Pe("Down");b(Et,ur)},$$slots:{default:!0}})});var tr=A(Ir,2);O(tr,()=>yo,(Nr,St)=>{St(Nr,{class:y+" text-right",children:(Et,rr)=>{var ur=Pe("Total");b(Et,ur)},$$slots:{default:!0}})}),b(At,Rt)};Ne(In,At=>{d(m)&&At(Ha)})}var ts=A(In,2);O(ts,()=>yo,(At,Rt)=>{Rt(At,{class:y,children:(Ft,Ir)=>{var tr=Pe("Client");b(Ft,tr)},$$slots:{default:!0}})});var rs=A(ts,2);O(rs,()=>yo,(At,Rt)=>{Rt(At,{class:y+" text-right",children:(Ft,Ir)=>{var tr=Pe("Last seen");b(Ft,tr)},$$slots:{default:!0}})}),b(kt,er)},$$slots:{default:!0}})}),b(xt,ut)},$$slots:{default:!0}})});var Be=A(ae,2);O(Be,()=>FS,(ke,He)=>{He(ke,{children:(xt,Vt)=>{var ut=Ih(),_t=E(ut);{var dt=kt=>{var ft=ne(),er=E(ft);O(er,()=>Qc,(Ct,rn)=>{rn(Ct,{children:(In,Ha)=>{var ts=ne(),rs=E(ts);{let At=j(()=>d(m)?7:4);O(rs,()=>Bn,(Rt,Ft)=>{Ft(Rt,{get colspan(){return d(At)},class:"py-8 text-center text-sm text-muted-foreground",children:(Ir,tr)=>{var Nr=Pe();Ae(()=>Se(Nr,`没有匹配“${d(a)??""}”的域名。`)),b(Ir,Nr)},$$slots:{default:!0}})})}b(In,ts)},$$slots:{default:!0}})}),b(kt,ft)};Ne(_t,kt=>{d(p).length===0&&kt(dt)})}var Wt=A(_t,2);Nt(Wt,17,()=>d(p),kt=>kt.domain,(kt,ft)=>{var er=ne(),Ct=E(er);O(Ct,()=>Qc,(rn,In)=>{In(rn,{children:(Ha,ts)=>{var rs=Mh(),At=E(rs);O(At,()=>Bn,(St,Et)=>{Et(St,{class:"max-w-[20rem] truncate font-mono text-xs",children:(rr,ur)=>{var nr=Pe();Ae(()=>Se(nr,d(ft).domain)),b(rr,nr)},$$slots:{default:!0}})});var Rt=A(At,2);O(Rt,()=>Bn,(St,Et)=>{Et(St,{class:"text-right tabular-nums",children:(rr,ur)=>{var nr=Pe();Ae(nn=>Se(nr,nn),[()=>Je(d(ft).conns)]),b(rr,nr)},$$slots:{default:!0}})});var Ft=A(Rt,2);{var Ir=St=>{var Et=$h(),rr=E(Et);O(rr,()=>Bn,(nn,Xs)=>{Xs(nn,{class:"text-right tabular-nums",children:(Zs,ff)=>{var Nn=Pe();Ae(Js=>Se(Nn,Js),[()=>mr(d(ft).bytesUp)]),b(Zs,Nn)},$$slots:{default:!0}})});var ur=A(rr,2);O(ur,()=>Bn,(nn,Xs)=>{Xs(nn,{class:"text-right tabular-nums",children:(Zs,ff)=>{var Nn=Pe();Ae(Js=>Se(Nn,Js),[()=>mr(d(ft).bytesDown)]),b(Zs,Nn)},$$slots:{default:!0}})});var nr=A(ur,2);O(nr,()=>Bn,(nn,Xs)=>{Xs(nn,{class:"text-right font-medium tabular-nums",children:(Zs,ff)=>{var Nn=Pe();Ae(Js=>Se(Nn,Js),[()=>mr(d(ft).bytesUp+d(ft).bytesDown)]),b(Zs,Nn)},$$slots:{default:!0}})}),b(St,Et)};Ne(Ft,St=>{d(m)&&St(Ir)})}var tr=A(Ft,2);O(tr,()=>Bn,(St,Et)=>{Et(St,{class:"max-w-[9rem] truncate font-mono text-xs text-muted-foreground",get title(){return d(ft).lastClientIP},children:(rr,ur)=>{var nr=Pe();Ae(()=>Se(nr,d(ft).lastClientIP||"—")),b(rr,nr)},$$slots:{default:!0}})});var Nr=A(tr,2);O(Nr,()=>Bn,(St,Et)=>{Et(St,{class:"text-right text-muted-foreground tabular-nums",children:(rr,ur)=>{var nr=Pe();Ae(nn=>Se(nr,nn),[()=>tS(d(ft).lastSeen)]),b(rr,nr)},$$slots:{default:!0}})}),b(Ha,rs)},$$slots:{default:!0}})}),b(kt,er)}),b(xt,ut)},$$slots:{default:!0}})}),b(we,xe)},$$slots:{default:!0}})}),b(X,F)},$$slots:{default:!0}})}),b(W,J)};Ne(Oe,W=>{d(s).length===0?W(Te):W(re,-1)})}var ue=A(Oe,2);{var te=W=>{var J=Nh(),K=D(J);Ae(Y=>Se(K,`自启动以来按流量排序的前 ${Y??""} 个域名与客户端,每 30 秒更新。`),[()=>Je(d(s).length)]),b(W,J)},le=W=>{var J=Nh(),K=D(J);Ae(()=>Se(K,`按${d(f)??""}排序的前 100 个${d(g)?"DNS 查询域名":d(h)+"域名"},实时推送。`)),b(W,J)};Ne(ue,W=>{d(o)==="totals"?W(te):W(le,-1)})}Ae(()=>{Wn(ee,1,`rounded-sm px-2.5 py-1 text-xs font-medium transition-colors ${d(o)==="live"?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`),pt(ee,"aria-pressed",d(o)==="live"),Wn(I,1,`rounded-sm px-2.5 py-1 text-xs font-medium transition-colors ${d(o)==="totals"?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`),pt(I,"aria-pressed",d(o)==="totals")}),xo("click",ee,()=>N(o,"live")),xo("click",I,()=>N(o,"totals")),b(k,C)};Ne(P,k=>{!tt.traffic&&!tt.totals?k(z):k(S,-1)})}b(t,w),Ie()}xd(["click"]);var oP=new Set(["$$slots","$$events","$$legacy"]);function sP(t,e){let r=je(e,oP);var n=ne(),o=E(n);O(o,()=>e0,(s,i)=>{i(s,We(()=>r))}),b(t,n)}var iP=new Set(["$$slots","$$events","$$legacy","ref","sideOffset","align","portalProps","class"]);function eu(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=$(e,"sideOffset",3,4),o=$(e,"align",3,"start"),s=je(e,iP);sP(t,We(()=>e.portalProps,{children:(i,a)=>{var l=ne(),u=E(l);{let f=j(()=>Ge("min-w-32 rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 z-50 w-(--bits-dropdown-menu-anchor-width) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden",e.class));O(u,()=>bk,(v,h)=>{h(v,We({"data-slot":"dropdown-menu-content",get sideOffset(){return n()},get align(){return o()},get class(){return d(f)}},()=>s,{get ref(){return r()},set ref(g){r(g)}}))})}b(i,l)},$$slots:{default:!0}})),Ie()}var aP=new Set(["$$slots","$$events","$$legacy","ref","class","inset","variant"]);function ll(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=$(e,"variant",3,"default"),o=je(e,aP);var s=ne(),i=E(s);{let a=j(()=>Ge("gap-1.5 rounded-md px-1.5 py-1 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e.class));O(i,()=>fk,(l,u)=>{u(l,We({"data-slot":"dropdown-menu-item",get"data-inset"(){return e.inset},get"data-variant"(){return n()},get class(){return d(a)}},()=>o,{get ref(){return r()},set ref(f){r(f)}}))})}b(t,s),Ie()}var lP=new Set(["$$slots","$$events","$$legacy","ref","class","inset","children"]),cP=oe("
    ");function zh(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,lP);var o=cP();Ke(o,i=>({"data-slot":"dropdown-menu-label","data-inset":e.inset,class:i,...n}),[()=>Ge("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7 data-[inset]:pl-8",e.class)]);var s=D(o);Fe(s,()=>e.children??ze),ot(o,i=>r(i),()=>r()),b(t,o),Ie()}var uP=new Set(["$$slots","$$events","$$legacy","ref","class"]);function dP(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,uP);var o=ne(),s=E(o);{let i=j(()=>Ge("-mx-1 my-1 h-px bg-border",e.class));O(s,()=>gk,(a,l)=>{l(a,We({"data-slot":"dropdown-menu-separator",get class(){return d(i)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}b(t,o),Ie()}var fP=new Set(["$$slots","$$events","$$legacy","ref"]);function tu(t,e){Me(e,!0);let r=$(e,"ref",15,null),n=je(e,fP);var o=ne(),s=E(o);O(s,()=>xk,(i,a)=>{a(i,We({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(l){r(l)}}))}),b(t,o),Ie()}var hP=new Set(["$$slots","$$events","$$legacy","open"]);function ru(t,e){Me(e,!0);let r=$(e,"open",15,!1),n=je(e,hP);var o=ne(),s=E(o);O(s,()=>pk,(i,a)=>{a(i,We(()=>n,{get open(){return r()},set open(l){r(l)}}))}),b(t,o),Ie()}const ds=[{key:"overview",label:"概览",description:"运行状态与流量总览"},{key:"rules",label:"规则",description:"运行期路由规则管理"},{key:"traffic",label:"流量",description:"按域名聚合的实时流量"}];var vP=oe(' Sower Admin',1),gP=oe(' ',1),pP=oe(' ',1),nu=oe(" ",1),mP=oe(' ',1),bP=oe(' '),yP=oe(' ',1),wP=oe(' '),xP=oe('
  • /
  • ',1),_P=oe(' ',1),kP=oe(''),SP=oe(' ',1),PP=oe(' ',1),CP=oe('
    '),AP=oe('

    暂无收藏。点击下方星标加入常用入口。

    '),EP=oe(' ',1),TP=oe("
    "),OP=oe('
    ',1),$P=oe('
    ');function MP(t,e){Me(e,!0);let r=$(e,"contextSegments",19,()=>[]),n=$(e,"onContextSelect",3,()=>{}),o=$(e,"onSelectItem",3,()=>{}),s=$(e,"onLogout",3,()=>{}),i=$(e,"status",3,null),a=$(e,"statusError",3,"");const l={overview:Vn,rules:Uk,traffic:Nk};let u=Ce(Jt([])),f=j(()=>new Set(d(u))),v=j(()=>d(u).map(I=>ds.find(L=>L.key===I)).filter(I=>!!I));const h="sower.admin.favoritePages.v1";_d(()=>{N(u,g(),!0);const I=L=>{L.key===h&&N(u,g(),!0)};return window.addEventListener("storage",I),()=>window.removeEventListener("storage",I)});function g(){const I=new Set(ds.map(L=>L.key));try{const L=JSON.parse(localStorage.getItem(h)??"[]");return(Array.isArray(L)?L:[]).filter(de=>I.has(de))}catch{return[]}}function p(I){N(u,I.filter((L,de)=>I.indexOf(L)===de),!0);try{localStorage.setItem(h,JSON.stringify(d(u)))}catch{}}function m(I,L){if(I.preventDefault(),I.stopPropagation(),d(f).has(L)){p(d(u).filter(de=>de!==L));return}p([...d(u),L])}function y(I){switch(I.tone){case"strong":return"text-foreground font-semibold";case"method":return"text-primary font-mono";default:return"text-muted-foreground font-medium"}}var w=$P(),P=D(w),z=D(P),S=D(z),k=D(S);Pn(k,{variant:"ghost",class:"h-9 gap-1.5 px-2 text-foreground",onclick:()=>o()("overview"),title:"回到概览",children:(I,L)=>{var de=vP(),ce=E(de);Vn(ce,{class:"size-4 text-primary"}),b(I,de)},$$slots:{default:!0}});var C=A(S,4),R=D(C);O(R,()=>ru,(I,L)=>{L(I,{children:(de,ce)=>{const _e=j(()=>l[e.activeItem.key]??Vn);var T=nu(),Oe=E(T);O(Oe,()=>tu,(re,ue)=>{ue(re,{class:"inline-flex h-9 max-w-[14rem] items-center gap-1.5 rounded-md px-2 text-sm font-semibold text-foreground transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted","aria-label":"控制台分区",children:(te,le)=>{var W=gP(),J=E(W);O(J,()=>d(_e),(X,ge)=>{ge(X,{class:"size-4 shrink-0 text-primary"})});var K=A(J,2),Y=D(K),Q=A(K,2);Zc(Q,{class:"size-3.5 shrink-0 text-muted-foreground"}),Ae(()=>Se(Y,e.activeItem.label)),b(te,W)},$$slots:{default:!0}})});var Te=A(Oe,2);O(Te,()=>eu,(re,ue)=>{ue(re,{class:"min-w-56",align:"start",children:(te,le)=>{var W=ne(),J=E(W);Nt(J,17,()=>ds,Zt,(K,Y)=>{const Q=j(()=>l[d(Y).key]??Vn);var X=ne(),ge=E(X);{let F=j(()=>Ge("gap-2.5 py-2",d(Y).key===e.activeItem.key&&"bg-accent text-accent-foreground"));O(ge,()=>ll,(Z,fe)=>{fe(Z,{onSelect:()=>o()(d(Y).key),get class(){return d(F)},children:(he,we)=>{var ie=pP(),xe=E(ie),ae=D(xe);O(ae,()=>d(Q),(dt,Wt)=>{Wt(dt,{class:"size-4"})});var Be=A(xe,2),ke=D(Be),He=D(ke),xt=A(ke,2),Vt=D(xt),ut=A(Be,2);{var _t=dt=>{Ah(dt,{class:"ms-auto size-4 text-primary"})};Ne(ut,dt=>{d(Y).key===e.activeItem.key&&dt(_t)})}Ae(()=>{Se(He,d(Y).label),Se(Vt,d(Y).description)}),b(he,ie)},$$slots:{default:!0}})})}b(K,X)}),b(te,W)},$$slots:{default:!0}})}),b(de,T)},$$slots:{default:!0}})});var x=A(C,2);Nt(x,17,r,Zt,(I,L)=>{var de=xP(),ce=A(E(de),2),_e=D(ce);{var T=Te=>{var re=ne(),ue=E(re);O(ue,()=>ru,(te,le)=>{le(te,{children:(W,J)=>{var K=nu(),Y=E(K);{let X=j(()=>Ge("inline-flex h-9 max-w-[16rem] items-center gap-1.5 rounded-md px-2 text-sm transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted",y(d(L)))),ge=j(()=>d(L).title??`${d(L).label}: ${d(L).value}`),F=j(()=>`${d(L).label}: ${d(L).value}`);O(Y,()=>tu,(Z,fe)=>{fe(Z,{get class(){return d(X)},get title(){return d(ge)},get"aria-label"(){return d(F)},children:(he,we)=>{var ie=mP(),xe=E(ie),ae=D(xe),Be=A(xe,2),ke=D(Be),He=A(Be,2);Zc(He,{class:"size-3.5 shrink-0 text-muted-foreground"}),Ae(()=>{Se(ae,d(L).label),Se(ke,d(L).value)}),b(he,ie)},$$slots:{default:!0}})})}var Q=A(Y,2);O(Q,()=>eu,(X,ge)=>{ge(X,{class:"min-w-44",align:"start",children:(F,Z)=>{var fe=ne(),he=E(fe);Nt(he,17,()=>d(L).options,Zt,(we,ie)=>{var xe=ne(),ae=E(xe);{let Be=j(()=>Ge("gap-2",d(ie).active&&"bg-accent text-accent-foreground"));O(ae,()=>ll,(ke,He)=>{He(ke,{onSelect:()=>n()(d(L).label,d(ie).value),get class(){return d(Be)},children:(xt,Vt)=>{var ut=yP(),_t=E(ut),dt=D(_t),Wt=A(_t,2);{var kt=Ct=>{var rn=bP(),In=D(rn);Ae(()=>Se(In,d(ie).description)),b(Ct,rn)};Ne(Wt,Ct=>{d(ie).description&&Ct(kt)})}var ft=A(Wt,2);{var er=Ct=>{Ah(Ct,{class:"ms-auto size-4 text-primary"})};Ne(ft,Ct=>{d(ie).active&&Ct(er)})}Ae(()=>Se(dt,d(ie).label)),b(xt,ut)},$$slots:{default:!0}})})}b(we,xe)}),b(F,fe)},$$slots:{default:!0}})}),b(W,K)},$$slots:{default:!0}})}),b(Te,re)},Oe=Te=>{var re=wP(),ue=D(re),te=D(ue),le=A(ue,2),W=D(le);Ae(J=>{Wn(re,1,J),pt(re,"title",d(L).title??`${d(L).label}: ${d(L).value}`),Se(te,d(L).label),Se(W,d(L).value)},[()=>xu(Ge("inline-flex h-9 max-w-[16rem] items-center gap-1.5 px-2",y(d(L))))]),b(Te,re)};Ne(_e,Te=>{var re;(re=d(L).options)!=null&&re.length?Te(T):Te(Oe,-1)})}b(I,de)});var B=A(P,2),H=D(B);{var U=I=>{var L=kP();Nt(L,21,()=>d(v).slice(0,4),Zt,(de,ce)=>{const _e=j(()=>l[d(ce).key]??Vn);{let T=j(()=>Ge("gap-1.5",d(ce).key===e.activeItem.key&&"border-primary/40 bg-primary/10")),Oe=j(()=>`打开 ${d(ce).label}`);Pn(de,{variant:"outline",size:"sm",get class(){return d(T)},get title(){return d(Oe)},onclick:()=>o()(d(ce).key),children:(Te,re)=>{var ue=_P(),te=E(ue);O(te,()=>d(_e),(J,K)=>{K(J,{class:"size-3.5"})});var le=A(te,2),W=D(le);Ae(()=>Se(W,d(ce).label)),b(Te,ue)},$$slots:{default:!0}})}}),b(I,L)};Ne(H,I=>{d(v).length>0&&I(U)})}var V=A(H,2);O(V,()=>ru,(I,L)=>{L(I,{children:(de,ce)=>{var _e=nu(),T=E(_e);O(T,()=>tu,(Te,re)=>{re(Te,{class:"inline-flex h-7 items-center gap-1.5 rounded-md border border-input bg-background px-2.5 text-sm font-medium text-foreground transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted","aria-label":"页面与收藏夹",children:(ue,te)=>{var le=SP(),W=E(le);Bk(W,{class:"size-3.5"});var J=A(W,4);Zc(J,{class:"size-3 text-muted-foreground"}),b(ue,le)},$$slots:{default:!0}})});var Oe=A(T,2);O(Oe,()=>eu,(Te,re)=>{re(Te,{class:"w-64",children:(ue,te)=>{var le=OP(),W=E(le);O(W,()=>zh,(F,Z)=>{Z(F,{children:(fe,he)=>{var we=Pe("收藏夹");b(fe,we)},$$slots:{default:!0}})});var J=A(W,2);{var K=F=>{var Z=CP();Nt(Z,21,()=>d(v),Zt,(fe,he)=>{const we=j(()=>l[d(he).key]??Vn);var ie=ne(),xe=E(ie);{let ae=j(()=>Ge("gap-2 py-1.5",d(he).key===e.activeItem.key&&"bg-accent text-accent-foreground"));O(xe,()=>ll,(Be,ke)=>{ke(Be,{onSelect:()=>o()(d(he).key),get class(){return d(ae)},children:(He,xt)=>{var Vt=PP(),ut=E(Vt),_t=D(ut);O(_t,()=>d(we),(ft,er)=>{er(ft,{class:"size-3.5"})});var dt=A(ut,2),Wt=D(dt),kt=A(dt,2);Th(kt,{class:"ms-auto size-3.5 fill-current text-primary"}),Ae(()=>Se(Wt,d(he).label)),b(He,Vt)},$$slots:{default:!0}})})}b(fe,ie)}),b(F,Z)},Y=F=>{var Z=AP();b(F,Z)};Ne(J,F=>{d(v).length>0?F(K):F(Y,-1)})}var Q=A(J,2);O(Q,()=>dP,(F,Z)=>{Z(F,{})});var X=A(Q,2);O(X,()=>zh,(F,Z)=>{Z(F,{children:(fe,he)=>{var we=Pe("全部页面");b(fe,we)},$$slots:{default:!0}})});var ge=A(X,2);Nt(ge,21,()=>ds,Zt,(F,Z)=>{const fe=j(()=>l[d(Z).key]??Vn),he=j(()=>d(f).has(d(Z).key));var we=TP(),ie=D(we);O(ie,()=>ll,(ae,Be)=>{Be(ae,{onSelect:()=>o()(d(Z).key),class:"min-w-0 flex-1 gap-2 py-1.5",children:(ke,He)=>{var xt=EP(),Vt=E(xt),ut=D(Vt);O(ut,()=>d(fe),(er,Ct)=>{Ct(er,{class:"size-4"})});var _t=A(Vt,2),dt=D(_t),Wt=D(dt),kt=A(dt,2),ft=D(kt);Ae(()=>{Se(Wt,d(Z).label),Se(ft,d(Z).description)}),b(ke,xt)},$$slots:{default:!0}})});var xe=A(ie,2);{let ae=j(()=>Ge("mx-0.5 shrink-0",d(he)&&"text-primary")),Be=j(()=>`${d(he)?"取消收藏":"收藏"} ${d(Z).label}`);Pn(xe,{variant:"ghost",size:"icon-sm",get class(){return d(ae)},get"aria-label"(){return d(Be)},get"aria-pressed"(){return d(he)},onclick:ke=>m(ke,d(Z).key),children:(ke,He)=>{{let xt=j(()=>Ge("size-4",d(he)&&"fill-current"));Th(ke,{get class(){return d(xt)}})}},$$slots:{default:!0}})}Ae(ae=>Wn(we,1,ae),[()=>xu(Ge("flex items-center gap-0.5 rounded-md",d(Z).key===e.activeItem.key&&"bg-accent text-accent-foreground"))]),b(F,we)}),b(ue,le)},$$slots:{default:!0}})}),b(de,_e)},$$slots:{default:!0}})});var q=A(V,2);{let I=j(()=>a()?"destructive":i()?"secondary":"outline");Nc(q,{get variant(){return d(I)},class:"hidden sm:inline-flex",children:(L,de)=>{var ce=Pe();Ae(()=>Se(ce,a()?"Error":i()?"Ready":"Loading")),b(L,ce)},$$slots:{default:!0}})}var ee=A(q,2);Pn(ee,{variant:"ghost",size:"icon-sm",title:"退出登录","aria-label":"退出登录",get onclick(){return s()},children:(I,L)=>{jk(I,{class:"size-4"})},$$slots:{default:!0}}),b(t,w),Ie()}var IP=oe("
    "),NP=oe('
    ',1);function zP(t,e){Me(e,!0);let r=Ce(!1),n=Ce("overview"),o=Ce("proxy"),s=Ce("all");const i=j(()=>tt.status),a=j(()=>ds.find(w=>w.key===d(n))??ds[0]),l=j(()=>{switch(d(n)){case"overview":return d(i)?[{label:"version",value:d(i).version||"-",tone:"strong",title:`构建日期 ${d(i).date||"未知"}`}]:[];case"rules":return[{label:"category",value:d(o),tone:"strong",options:["block","direct","proxy"].map(w=>({label:w,value:w,active:w===d(o)}))}];case"traffic":return[{label:"source",value:d(s),tone:"strong",options:["all","http","https","socks5","dns"].map(w=>({label:w,value:w,active:w===d(s)}))}]}});function u(){N(r,!0),N(n,"overview"),Wp()}async function f(){try{await us.logout()}catch{}finally{v()}}function v(){N(r,!1),nS()}nt(()=>{rS(v)});function h(w,P){w==="category"?N(o,P,!0):w==="source"&&N(s,P,!0)}var g=ne(),p=E(g);{var m=w=>{Qk(w,{onLogin:u})},y=w=>{var P=NP(),z=E(P);MP(z,{get activeItem(){return d(a)},get contextSegments(){return d(l)},onContextSelect:h,onSelectItem:C=>N(n,C,!0),get status(){return d(i)},onLogout:f});var S=A(z,2),k=D(S);Dv(k,()=>d(n),C=>{var R=IP(),x=D(R);{var B=V=>{SS(V,{get status(){return d(i)}})},H=V=>{NS(V,{get category(){return d(o)},onUnauthorized:v})},U=V=>{nP(V,{get source(){return d(s)}})};Ne(x,V=>{d(n)==="overview"?V(B):d(n)==="rules"?V(H,1):V(U,-1)})}Mb(1,R,()=>Xb,()=>({duration:120})),b(C,R)}),b(w,P)};Ne(p,w=>{d(r)?w(y,-1):w(m)})}b(t,g),Ie()}document.documentElement.classList.add("dark");const jp=document.querySelector("#app");if(!jp)throw new Error("missing #app mount point");Lv(zP,{target:jp}); diff --git a/web/dist/index.html b/web/dist/index.html index 630961c..4114989 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -5,7 +5,7 @@ Sower Admin - + diff --git a/web/src/lib/api.ts b/web/src/lib/api.ts index 53c0643..7da0e69 100644 --- a/web/src/lib/api.ts +++ b/web/src/lib/api.ts @@ -47,6 +47,11 @@ export interface TrafficSnapshot { clients: ClientStat[]; } +export interface Totals { + domains: DomainStat[]; + clients: ClientStat[]; +} + export interface HistorySample { at: string; bytesUp: number; @@ -138,7 +143,9 @@ export const api = { if (sort) params.push(`sort=${sort}`); if (source && source !== "all") params.push(`source=${source}`); if (client) params.push(`client=${encodeURIComponent(client)}`); - return request(params.length ? `/api/traffic?${params.join("&")}` : "/api/traffic"); + return request( + params.length ? `/api/traffic?${params.join("&")}` : "/api/traffic", + ); }, history: () => request("/api/history"), }; diff --git a/web/src/lib/live.svelte.ts b/web/src/lib/live.svelte.ts index 68c9d57..6c8dcdf 100644 --- a/web/src/lib/live.svelte.ts +++ b/web/src/lib/live.svelte.ts @@ -4,65 +4,71 @@ // /api/stream; the browser auto-reconnects on drops. The connection carries // the active page's sort/source/client filters, so switching a filter // re-points the stream (connectLive reconnects only when params change). -import type { HistorySample, Status, TrafficSnapshot } from '$lib/api' +import type { HistorySample, Status, Totals, TrafficSnapshot } from "$lib/api"; export const live = $state({ status: null as Status | null, traffic: null as TrafficSnapshot | null, history: [] as HistorySample[], + totals: null as Totals | null, connected: false, -}) +}); -let es: EventSource | null = null -let activeParams = '' -let unauthorizedHandler: (() => void) | null = null +let es: EventSource | null = null; +let activeParams = ""; +let unauthorizedHandler: (() => void) | null = null; // safeParse tolerates a malformed SSE payload without breaking the stream // handler; the previous value stays in place until a valid event arrives. function safeParse(data: string): T | null { try { - return JSON.parse(data) as T + return JSON.parse(data) as T; } catch { - return null + return null; } } export function setUnauthorizedHandler(fn: (() => void) | null) { - unauthorizedHandler = fn + unauthorizedHandler = fn; } // connectLive opens the SSE stream, or re-points it when the filter params // change. Calling it with the current params is a no-op. -export function connectLive(params = '') { - if (es && params === activeParams) return - activeParams = params - es?.close() - es = new EventSource(`/api/stream${params ? `?${params}` : ''}`) - es.onopen = () => (live.connected = true) - es.onerror = () => (live.connected = false) - es.addEventListener('status', (e) => { - const parsed = safeParse(e.data) - if (parsed) live.status = parsed - }) - es.addEventListener('traffic', (e) => { - const parsed = safeParse(e.data) - if (parsed) live.traffic = parsed - }) - es.addEventListener('history', (e) => { - const parsed = safeParse<{ samples: HistorySample[] }>(e.data) - if (parsed) live.history = parsed.samples - }) - es.addEventListener('auth', () => { - unauthorizedHandler?.() - }) +export function connectLive(params = "") { + if (es && params === activeParams) return; + activeParams = params; + es?.close(); + es = new EventSource(`/api/stream${params ? `?${params}` : ""}`); + es.onopen = () => (live.connected = true); + es.onerror = () => (live.connected = false); + es.addEventListener("status", (e) => { + const parsed = safeParse(e.data); + if (parsed) live.status = parsed; + }); + es.addEventListener("traffic", (e) => { + const parsed = safeParse(e.data); + if (parsed) live.traffic = parsed; + }); + es.addEventListener("history", (e) => { + const parsed = safeParse<{ samples: HistorySample[] }>(e.data); + if (parsed) live.history = parsed.samples; + }); + es.addEventListener("totals", (e) => { + const parsed = safeParse(e.data); + if (parsed) live.totals = parsed; + }); + es.addEventListener("auth", () => { + unauthorizedHandler?.(); + }); } export function closeLive() { - es?.close() - es = null - activeParams = '' - live.status = null - live.traffic = null - live.history = [] - live.connected = false + es?.close(); + es = null; + activeParams = ""; + live.status = null; + live.traffic = null; + live.history = []; + live.totals = null; + live.connected = false; } diff --git a/web/src/views/Traffic.svelte b/web/src/views/Traffic.svelte index f2bdcfd..374ecb4 100644 --- a/web/src/views/Traffic.svelte +++ b/web/src/views/Traffic.svelte @@ -18,9 +18,17 @@ { value: 'conns', label: '连接数' }, ] - // The domain table is fed by the shared SSE stream, filtered by the - // connection params below. - const traffic = $derived(live.traffic) + type View = 'live' | 'totals' + let view = $state('live') + + // Live view is fed by the SSE traffic events; totals are the cumulative + // since-start view pushed every 30s. + const domains = $derived( + view === 'totals' ? (live.totals?.domains ?? []) : (live.traffic?.domains ?? []), + ) + const clients = $derived( + view === 'totals' ? (live.totals?.clients ?? []) : (live.traffic?.clients ?? []), + ) let filter = $state('') let sort: SortMode = $state('bytes') let client = $state('') @@ -37,12 +45,15 @@ const isDNSView = $derived(source === 'dns') const visibleDomains = $derived.by(() => { - const domains = traffic?.domains ?? [] const q = filter.trim().toLowerCase() if (!q) return domains return domains.filter((d) => d.domain.toLowerCase().includes(q)) }) + // The totals view spans every source, so byte columns stay visible even + // when the breadcrumb has narrowed the live view to DNS. + const showBytes = $derived(view === 'totals' || !isDNSView) + // Re-point the SSE stream whenever a page filter changes. $effect(() => { const params = new URLSearchParams() @@ -55,7 +66,7 @@ const headCell = 'sticky top-0 z-10 bg-card' -{#if !traffic} +{#if !live.traffic && !live.totals} {:else} {#if !live.connected} @@ -76,50 +87,81 @@
    - {#each sortModes as m} - - {/each} + +
    + {#if view === 'live'} +
    + {#each sortModes as m} + + {/each} +
    + {/if} - {#if visibleDomains.length === (traffic.domains ?? []).length} + {#if visibleDomains.length === domains.length} {formatCount(visibleDomains.length)} domains {:else} - {formatCount(visibleDomains.length)} / {formatCount((traffic.domains ?? []).length)} domains + {formatCount(visibleDomains.length)} / {formatCount(domains.length)} domains {/if} - {#if (traffic.clients ?? []).length > 0} + {#if clients.length > 0}
    - {#each traffic.clients as c} + {#each clients as c}
    {/if} - {#if (traffic.domains ?? []).length === 0} + {#if domains.length === 0}
    {:else} @@ -139,7 +181,7 @@ Domain Requests - {#if !isDNSView} + {#if showBytes} Up Down Total @@ -151,7 +193,7 @@ {#if visibleDomains.length === 0} - + 没有匹配“{filter}”的域名。 @@ -160,7 +202,7 @@ {d.domain} {formatCount(d.conns)} - {#if !isDNSView} + {#if showBytes} {formatBytes(d.bytesUp)} {formatBytes(d.bytesDown)} @@ -179,7 +221,13 @@ {/if} -

    - 按{activeSortLabel}排序的前 100 个{isDNSView ? 'DNS 查询域名' : sourceLabel + '域名'},实时推送。 -

    + {#if view === 'totals'} +

    + 自启动以来按流量排序的前 {formatCount(domains.length)} 个域名与客户端,每 30 秒更新。 +

    + {:else} +

    + 按{activeSortLabel}排序的前 100 个{isDNSView ? 'DNS 查询域名' : sourceLabel + '域名'},实时推送。 +

    + {/if} {/if}