diff --git a/cmd/sower/admin.go b/cmd/sower/admin.go index a585614..a91778f 100644 --- a/cmd/sower/admin.go +++ b/cmd/sower/admin.go @@ -5,6 +5,7 @@ import ( "fmt" "log/slog" "net" + "strings" "time" "github.com/miekg/dns" @@ -76,6 +77,40 @@ func (a adminRules) rules(category admin.Category) (*router.RuleSet, error) { } } +// TestDomain reports which rule sets match the domain and the route a +// connection to it would take. It mirrors DialSmart's rule priority +// (block > direct > proxy); when no rule matches it reports "auto" without +// performing live detection. +func (a adminRules) TestDomain(domain string) (admin.DomainTest, error) { + domain = strings.ToLower(strings.TrimSpace(strings.TrimSuffix(domain, "."))) + if domain == "" { + return admin.DomainTest{}, fmt.Errorf("domain is required") + } + blockRule, blockOK := a.r.BlockRule.MatchRule(domain) + directRule, directOK := a.r.DirectRule.MatchRule(domain) + proxyRule, proxyOK := a.r.ProxyRule.MatchRule(domain) + res := admin.DomainTest{ + Domain: domain, + Matches: []admin.CategoryTest{ + {Category: admin.CategoryBlock, Matched: blockOK, Rule: blockRule}, + {Category: admin.CategoryDirect, Matched: directOK, Rule: directRule}, + {Category: admin.CategoryProxy, Matched: proxyOK, Rule: proxyRule}, + }, + } + switch { + case blockOK: + res.Route = "block" + case directOK: + res.Route = "direct" + case proxyOK: + res.Route = "proxy" + default: + res.Route = "auto" + res.Note = "未命中任何规则,将按自动检测(本地站点/可直连)或默认代理路由" + } + return res, nil +} + // dnsStatsHandler counts DNS queries before delegating to the router. type dnsStatsHandler struct { dns.Handler diff --git a/internal/admin/server.go b/internal/admin/server.go index 497b052..9241542 100644 --- a/internal/admin/server.go +++ b/internal/admin/server.go @@ -70,6 +70,7 @@ type RuleManager interface { RuleAdd(category Category, rules ...string) error RuleRemove(category Category, rule string) (bool, error) RuleCount(category Category) uint64 + TestDomain(domain string) (DomainTest, error) } // Options configures the admin server. @@ -106,6 +107,7 @@ func NewServer(opts Options) *Server { mux.HandleFunc("GET /api/rules", s.mutateGuard(s.auth(s.handleRulesList))) 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/rules/test", s.mutateGuard(s.auth(s.handleRulesTest))) 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))) @@ -369,6 +371,40 @@ type rulesRequest struct { Rules []string `json:"rules"` } +// CategoryTest reports whether one rule category matched a tested domain and +// which retained rule did so. +type CategoryTest struct { + Category Category `json:"category"` + Matched bool `json:"matched"` + Rule string `json:"rule"` +} + +// DomainTest is the result of testing a domain against the rule sets. Route +// is block, direct, or proxy when a rule decides it, or auto when no rule +// matched and the connection would fall through to detection / proxy. +type DomainTest struct { + Domain string `json:"domain"` + Route string `json:"route"` + Matches []CategoryTest `json:"matches"` + Note string `json:"note,omitempty"` +} + +// handleRulesTest reports which rules match the queried domain and the +// resulting route decision, without performing any live detection. +func (s *Server) handleRulesTest(w http.ResponseWriter, r *http.Request) { + domain := strings.TrimSpace(r.URL.Query().Get("domain")) + if domain == "" { + writeError(w, http.StatusBadRequest, "domain is required") + return + } + res, err := s.opts.Rules.TestDomain(domain) + if err != nil { + writeError(w, http.StatusBadRequest, err.Error()) + return + } + writeJSON(w, http.StatusOK, res) +} + func (s *Server) handleRulesList(w http.ResponseWriter, r *http.Request) { category := Category(r.URL.Query().Get("category")) if !category.valid() { diff --git a/internal/admin/server_test.go b/internal/admin/server_test.go index 58ebdef..b88edc0 100644 --- a/internal/admin/server_test.go +++ b/internal/admin/server_test.go @@ -70,6 +70,41 @@ func (f *fakeRules) RuleCount(c Category) uint64 { return uint64(len(f.lists[c])) } +func (f *fakeRules) TestDomain(domain string) (DomainTest, error) { + domain = strings.ToLower(strings.TrimSpace(strings.TrimSuffix(domain, "."))) + if domain == "" { + return DomainTest{}, fmt.Errorf("domain is required") + } + res := DomainTest{Domain: domain} + for _, c := range []Category{CategoryBlock, CategoryDirect, CategoryProxy} { + rule, ok := fakeRuleMatch(f.lists[c], domain) + res.Matches = append(res.Matches, CategoryTest{Category: c, Matched: ok, Rule: rule}) + if ok && res.Route == "" { + res.Route = string(c) + } + } + if res.Route == "" { + res.Route = "auto" + res.Note = "no rule matched" + } + return res, nil +} + +// fakeRuleMatch is the fake's linear matcher: exact match, "*", or "**." prefix. +func fakeRuleMatch(rules []string, item string) (string, bool) { + for _, rule := range rules { + switch { + case rule == "*": + return rule, true + case strings.HasPrefix(rule, "**.") && strings.HasSuffix(item, strings.TrimPrefix(rule, "**")): + return rule, true + case rule == item: + return rule, true + } + } + return "", false +} + func newTestServer(t *testing.T, rules RuleManager) *httptest.Server { t.Helper() s := NewServer(Options{Password: "secret", Version: "v1.2.3", Date: "2026-01-01", Rules: rules, Stats: newTestStats(t)}) @@ -425,6 +460,51 @@ func TestTotalsEndpoint(t *testing.T) { } } +func TestRulesTestEndpoint(t *testing.T) { + s := NewServer(Options{Password: "secret", Rules: newFakeRules()}) + if err := s.opts.Rules.RuleAdd(CategoryBlock, "ads.example.com"); err != nil { + t.Fatal(err) + } + if err := s.opts.Rules.RuleAdd(CategoryProxy, "**.example.org"); err != nil { + t.Fatal(err) + } + ts := httptest.NewServer(s.http.Handler) + t.Cleanup(ts.Close) + cookie := login(t, ts, "secret") + + resp := authedRequest(t, ts, http.MethodGet, "/api/rules/test?domain=ads.example.com", cookie, "") + if resp.StatusCode != http.StatusOK { + t.Fatalf("expected 200, got %d", resp.StatusCode) + } + body := decodeBody(t, resp) + if body["domain"] != "ads.example.com" || body["route"] != "block" { + t.Fatalf("unexpected test result: %v", body) + } + matches := body["matches"].([]any) + first := matches[0].(map[string]any) + if first["category"] != "block" || first["matched"] != true || first["rule"] != "ads.example.com" { + t.Fatalf("unexpected block match: %v", first) + } + + resp = authedRequest(t, ts, http.MethodGet, "/api/rules/test?domain=sub.example.org", cookie, "") + body = decodeBody(t, resp) + if body["route"] != "proxy" { + t.Fatalf("expected proxy route for wildcard match, got %v", body) + } + + // no rules matched: auto with a note, block takes priority over proxy + resp = authedRequest(t, ts, http.MethodGet, "/api/rules/test?domain=unknown.test", cookie, "") + body = decodeBody(t, resp) + if body["route"] != "auto" { + t.Fatalf("expected auto route, got %v", body) + } + + resp = authedRequest(t, ts, http.MethodGet, "/api/rules/test", cookie, "") + if resp.StatusCode != http.StatusBadRequest { + t.Fatalf("expected 400 without domain, got %d", resp.StatusCode) + } +} + func TestTrafficEndpointRejectsMissingStats(t *testing.T) { s := NewServer(Options{Password: "secret", Rules: newFakeRules()}) ts := httptest.NewServer(s.http.Handler) diff --git a/router/ruleset.go b/router/ruleset.go index 68865e7..a7b0d45 100644 --- a/router/ruleset.go +++ b/router/ruleset.go @@ -90,6 +90,57 @@ func (rs *RuleSet) Match(item string) bool { return rs.tree.Match(item) } +// MatchRule reports the first retained rule that matches item, mirroring the +// suffix semantics of Match: case-insensitive, trailing dot stripped, "*" +// matching one label and a trailing "**" any number. It is linear in the +// rule count and exists for the admin domain test; Match stays the fast path. +func (rs *RuleSet) MatchRule(item string) (string, bool) { + if rs == nil { + return "", false + } + + rs.mu.RLock() + defer rs.mu.RUnlock() + for _, rule := range rs.rules { + if matchRule(rule, item) { + return rule, true + } + } + return "", false +} + +// matchRule reports whether one rule pattern matches item. A "**" in the +// last label position matches any remaining labels (including none); in the +// middle it behaves like "*" (one label), matching the suffix-tree builder. +func matchRule(rule, item string) bool { + rule = strings.ToLower(strings.TrimSuffix(rule, ".")) + item = strings.ToLower(strings.TrimSuffix(item, ".")) + r := strings.Split(rule, ".") + i := strings.Split(item, ".") + ri, ii := len(r)-1, len(i)-1 + for ri >= 0 { + switch r[ri] { + case "**": + if ri == 0 { + return true // trailing "**" matches any remaining labels + } + fallthrough // mid-rule "**" behaves like "*" + case "*": + if ii < 0 { + return false + } + ii-- + default: + if ii < 0 || r[ri] != i[ii] { + return false + } + ii-- + } + ri-- + } + return ii < 0 +} + // List returns a copy of the retained rules. func (rs *RuleSet) List() []string { rs.mu.RLock() diff --git a/router/ruleset_test.go b/router/ruleset_test.go index b7e03a9..b00f22f 100644 --- a/router/ruleset_test.go +++ b/router/ruleset_test.go @@ -47,6 +47,49 @@ func TestRuleSetMatch(t *testing.T) { } } +func TestRuleSetMatchRule(t *testing.T) { + rs := NewRuleSet("example.com", "**.example.org", "ads.*.com") + + cases := []struct { + item string + want string + }{ + {"example.com", "example.com"}, + {"EXAMPLE.COM.", "example.com"}, // normalized like Match + {"sub.example.com", ""}, + {"sub.example.org", "**.example.org"}, + {"a.b.example.org", "**.example.org"}, + {"example.org", "**.example.org"}, + {"ads.cdn.com", "ads.*.com"}, + {"ads.a.b.com", ""}, // mid-rule * matches one label only + {"github.com", ""}, + } + for _, tc := range cases { + got, ok := rs.MatchRule(tc.item) + if tc.want == "" { + if ok { + t.Fatalf("MatchRule(%q) = %q, want no match", tc.item, got) + } + continue + } + if !ok || got != tc.want { + t.Fatalf("MatchRule(%q) = %q, %v; want %q", tc.item, got, ok, tc.want) + } + } + + // MatchRule agrees with Match on every case the tree sees + for _, item := range []string{"example.com", "sub.example.com", "sub.example.org", "anything"} { + if got, ok := rs.MatchRule(item); ok != rs.Match(item) { + t.Fatalf("MatchRule(%q) = %q, %v diverges from Match %v", item, got, ok, rs.Match(item)) + } + } + + var nilRS *RuleSet + if _, ok := nilRS.MatchRule("x"); ok { + t.Fatal("expected nil RuleSet MatchRule to miss") + } +} + func TestRuleSetRemoveRebuildsTree(t *testing.T) { rs := NewRuleSet("example.com", "github.com", "**.cn") diff --git a/web/dist/assets/index-BlS6lEQQ.js b/web/dist/assets/index-BlS6lEQQ.js new file mode 100644 index 0000000..cebfaf1 --- /dev/null +++ b/web/dist/assets/index-BlS6lEQQ.js @@ -0,0 +1,1231 @@ +var Gg=Object.defineProperty;var Hg=Object.getPrototypeOf;var Kg=Reflect.get;var ff=t=>{throw TypeError(t)};var Ug=(t,e,r)=>e in t?Gg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>Ug(t,typeof e!="symbol"?e+"":e,r),Rc=(t,e,r)=>e.has(t)||ff("Cannot "+r);var l=(t,e,r)=>(Rc(t,e,"read from private field"),r?r.call(t):e.get(t)),_=(t,e,r)=>e.has(t)?ff("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),O=(t,e,r,n)=>(Rc(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),K=(t,e,r)=>(Rc(t,e,"access private method"),r);var hf=(t,e,r,n)=>({set _(o){O(t,e,o,r)},get _(){return l(t,e,n)}}),vf=(t,e,r)=>Kg(Hg(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,qg=Array.prototype.indexOf,Tl=Array.prototype.includes,Sc=Array.from,Yg=Object.defineProperty,to=Object.getOwnPropertyDescriptor,Bh=Object.getOwnPropertyDescriptors,Xg=Object.prototype,Zg=Array.prototype,ld=Object.getPrototypeOf,pf=Object.isExtensible;function ss(t){return typeof t=="function"}const Fe=()=>{};function Jg(t){return t()}function su(t){for(var e=0;e{t=n,e=o});return{promise:r,resolve:t,reject:e}}function Qg(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 St=2,Ls=4,za=8,cd=1<<24,yr=16,xr=32,Jr=64,iu=128,wr=512,_t=1024,ht=2048,Mr=4096,Gt=8192,lr=16384,Uo=32768,au=1<<25,Qr=65536,$l=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(""),ul=Symbol("attributes"),lu=Symbol("class"),cu=Symbol("style"),li=Symbol("text"),dl=Symbol("form reset"),Ra=new class extends Error{constructor(){super(...arguments);ie(this,"name","StaleReactionError");ie(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,pm=8,gm=16,mm=1,bm=2,Kh=4,ym=8,wm=16,xm=4,_m=1,km=2,ft=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 Us=!1,Tm=!1;function $m(){Us=!0}let Ue=null;function Ds(t){Ue=t}function gf(t){return Pc().get(t)}function Om(t,e){return Pc().set(t,e),e}function Mm(t){return Pc().has(t)}function Im(){return Pc()}function Me(t,e=!1,r){Ue={p:Ue,i:!1,c:null,e:null,s:t,x:null,r:Le,l:Us&&!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 qs(){return!Us||Ue!==null&&Ue.l===null}function Pc(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=[],su(t)}function Tr(t){if(ko.length===0&&!yi){var e=ko;queueMicrotask(()=>{e===ko&&Zh()})}ko.push(t)}function zm(){for(;ko.length>0;)Zh()}function Jh(t){var e=Le;if(e===null)return We.f|=ro,t;if((e.f&Uo)===0&&(e.f&Ls)===0)throw t;Qn(t,e)}function Qn(t,e){if(!(e!==null&&(e.f&lr)!==0)){for(;e!==null;){if((e.f&iu)!==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 it(t,e){t.f=t.f&Rm|e}function dd(t){(t.f&wr)!==0||t.deps===null?it(t,_t):it(t,Mr)}function Qh(t){if(t!==null)for(const e of t)(e.f&St)===0||(e.f&Wo)===0||(e.f^=Wo,Qh(e.deps))}function ev(t,e,r){(t.f&ht)!==0?e.add(t):(t.f&Mr)!==0&&r.add(t),Qh(t.deps),it(t,_t)}let Ua=!1;function Fm(t){var e=Ua;try{return Ua=!1,[t(),Ua]}finally{Ua=e}}function Lm(t,e){if(e){const r=document.body;t.autofocus=!0,Tr(()=>{document.activeElement===r&&t.focus()})}}let mf=!1;function Dm(){mf||(mf=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const r of t.target.elements)(e=r[dl])==null||e.call(r)})},{capture:!0}))}function co(t){var e=We,r=Le;_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[dl];o?t[dl]=()=>{o(),n(!0)}:t[dl]=()=>n(!0),Dm()}function fd(t){let e=0,r=Tn(0),n;return()=>{md()&&(d(r),Ec(()=>(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,Ht,pr,Vt,ir,cn,Ao,Wn,gs,Ai,Ei,un,Xl,Ze,jm,Gm,uu,Hm,du,fl,hl,fu,hu;class Wm{constructor(e,r,n,o){_(this,Ze);ie(this,"parent");ie(this,"is_pending",!1);ie(this,"transform_error");_(this,hr);_(this,id,null);_(this,vr);_(this,Co);_(this,Ht);_(this,pr,null);_(this,Vt,null);_(this,ir,null);_(this,cn,null);_(this,Ao,0);_(this,Wn,0);_(this,gs,!1);_(this,Ai,new Set);_(this,Ei,new Set);_(this,un,null);_(this,Xl,fd(()=>(O(this,un,Tn(l(this,Ao))),()=>{O(this,un,null)})));var s;O(this,hr,e),O(this,vr,r),O(this,Co,i=>{var a=Le;a.b=this,a.f|=iu,n(i)}),this.parent=Le.b,this.transform_error=o??((s=this.parent)==null?void 0:s.transform_error)??(i=>i),O(this,Ht,Yo(()=>{K(this,Ze,du).call(this)},Bm))}defer_effect(e){ev(e,l(this,Ai),l(this,Ei))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!l(this,vr).pending}update_pending_count(e,r){K(this,Ze,fu).call(this,e,r),O(this,Ao,l(this,Ao)+e),!(!l(this,un)||l(this,gs))&&(O(this,gs,!0),Tr(()=>{O(this,gs,!1),l(this,un)&&Vs(l(this,un),l(this,Ao))}))}get_effect_pending(){return l(this,Xl).call(this),d(l(this,un))}error(e){if(!l(this,vr).onerror&&!l(this,vr).failed)throw e;Oe!=null&&Oe.is_fork?(l(this,pr)&&Oe.skip_effect(l(this,pr)),l(this,Vt)&&Oe.skip_effect(l(this,Vt)),l(this,ir)&&Oe.skip_effect(l(this,ir)),Oe.oncommit(()=>{K(this,Ze,hu).call(this,e)})):K(this,Ze,hu).call(this,e)}}hr=new WeakMap,id=new WeakMap,vr=new WeakMap,Co=new WeakMap,Ht=new WeakMap,pr=new WeakMap,Vt=new WeakMap,ir=new WeakMap,cn=new WeakMap,Ao=new WeakMap,Wn=new WeakMap,gs=new WeakMap,Ai=new WeakMap,Ei=new WeakMap,un=new WeakMap,Xl=new WeakMap,Ze=new WeakSet,jm=function(){try{O(this,pr,Jt(()=>l(this,Co).call(this,l(this,hr))))}catch(e){this.error(e)}},Gm=function(e){const r=l(this,vr).failed,{reset:n,invoke_onerror:o}=K(this,Ze,uu).call(this,e);Tr(o),r&&O(this,ir,Jt(()=>{r(l(this,hr),()=>e,()=>n)}))},uu=function(e){var r=!1,n=!1;const o=()=>{if(r){Am();return}r=!0,n&&fm(),l(this,ir)!==null&&Vo(l(this,ir),()=>{O(this,ir,null)}),K(this,Ze,hl).call(this,()=>{K(this,Ze,du).call(this)})};return{reset:o,invoke_onerror:()=>{var i,a;try{n=!0,(a=(i=l(this,vr)).onerror)==null||a.call(i,e,o),n=!1}catch(c){Qn(c,l(this,Ht)&&l(this,Ht).parent)}}}},Hm=function(){const e=l(this,vr).pending;e&&(this.is_pending=!0,O(this,Vt,Jt(()=>e(l(this,hr)))),Tr(()=>{var r=O(this,cn,document.createDocumentFragment()),n=qr();r.append(n),O(this,pr,K(this,Ze,hl).call(this,()=>Jt(()=>l(this,Co).call(this,n)))),l(this,Wn)===0&&(l(this,hr).before(r),O(this,cn,null),Vo(l(this,Vt),()=>{O(this,Vt,null)}),K(this,Ze,fl).call(this,Oe))}))},du=function(){try{if(this.is_pending=this.has_pending_snippet(),O(this,Wn,0),O(this,Ao,0),O(this,pr,Jt(()=>{l(this,Co).call(this,l(this,hr))})),l(this,Wn)>0){var e=O(this,cn,document.createDocumentFragment());yd(l(this,pr),e);const r=l(this,vr).pending;O(this,Vt,Jt(()=>r(l(this,hr))))}else K(this,Ze,fl).call(this,Oe)}catch(r){this.error(r)}},fl=function(e){this.is_pending=!1,e.transfer_effects(l(this,Ai),l(this,Ei))},hl=function(e){var r=Le,n=We,o=Ue;kr(l(this,Ht)),_r(l(this,Ht)),Ds(l(this,Ht).ctx);try{return oo.ensure(),e()}catch(s){return Jh(s),null}finally{kr(r),_r(n),Ds(o)}},fu=function(e,r){var n;if(!this.has_pending_snippet()){this.parent&&K(n=this.parent,Ze,fu).call(n,e,r);return}O(this,Wn,l(this,Wn)+e),l(this,Wn)===0&&(K(this,Ze,fl).call(this,r),l(this,Vt)&&Vo(l(this,Vt),()=>{O(this,Vt,null)}),l(this,cn)&&(l(this,hr).before(l(this,cn)),O(this,cn,null)))},hu=function(e){l(this,pr)&&(Pt(l(this,pr)),O(this,pr,null)),l(this,Vt)&&(Pt(l(this,Vt)),O(this,Vt,null)),l(this,ir)&&(Pt(l(this,ir)),O(this,ir,null));let r=l(this,vr).failed;const n=o=>{const{reset:s,invoke_onerror:i}=K(this,Ze,uu).call(this,o);i(),r&&O(this,ir,K(this,Ze,hl).call(this,()=>{try{return Jt(()=>{var a=Le;a.b=this,a.f|=iu,r(l(this,hr),()=>o,()=>s)})}catch(a){return Qn(a,l(this,Ht).parent),null}}))};Tr(()=>{var o;try{o=this.transform_error(e)}catch(s){Qn(s,l(this,Ht)&&l(this,Ht).parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(n,s=>Qn(s,l(this,Ht)&&l(this,Ht).parent)):n(o)})};function rv(t,e,r,n){const o=qs()?Bs:hd;var s=t.filter(p=>!p.settled),i=e.map(o);if(r.length===0&&s.length===0){n(i);return}var a=Le,c=Km(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(p=>p.promise)):null;function f(p){if((a.f&lr)===0){c();try{n([...i,...p])}catch(g){Qn(g,a)}Ml()}}var v=nv();if(r.length===0){u.then(()=>f([])).finally(v);return}function h(){Promise.all(r.map(p=>Um(p))).then(f).catch(p=>Qn(p,a)).finally(v)}u?u.then(()=>{c(),h(),Ml()}):h()}function Km(){var t=Le,e=We,r=Ue,n=Oe;return function(s=!0){kr(t),_r(e),Ds(r),s&&(t.f&lr)===0&&(n==null||n.activate(),n==null||n.apply())}}function Ml(t=!0){kr(null),_r(null),Ds(null),t&&(Oe==null||Oe.deactivate())}function nv(){var t=Le,e=t.b,r=Oe,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 Bs(t){var e=St|ht;return Le!==null&&(Le.f|=qo),{ctx:Ue,deps:null,effects:null,equals:Yh,f:e,fn:t,reactions:null,rv:0,v:ft,wv:0,parent:Le,ac:null}}const ci=Symbol("obsolete");function Um(t,e,r){let n=Le;n===null&&rm();var o=void 0,s=Tn(ft),i=!We,a=new Set;return ab(()=>{var p,g;var c=Le,u=Vh();o=u.promise;try{Promise.resolve(t()).then(u.resolve,b=>{b!==Ra&&u.reject(b)}).finally(Ml)}catch(b){u.reject(b),Ml()}var f=Oe;if(i){if((c.f&Uo)!==0)var v=nv();if((p=n.b)!=null&&p.is_rendered())(g=f.async_deriveds.get(c))==null||g.reject(ci);else for(const b of a.values())b.reject(ci);a.add(u),f.async_deriveds.set(c,u)}const h=(b,y=void 0)=>{v==null||v(),a.delete(u),y!==ci&&(f.activate(),y?(s.f|=ro,Vs(s,y)):((s.f&ro)!==0&&(s.f^=ro),Vs(s,b)),f.deactivate())};u.promise.then(h,b=>h(null,b||"unknown"))}),Cc(()=>{for(const c of a)c.reject(ci)}),new Promise(c=>{function u(f){function v(){f===o?c(s):u(o)}f.then(v,v)}u(o)})}function B(t){const e=Bs(t);return Av(e),e}function hd(t){const e=Bs(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(Ra),r.ac=null}),r.fn!==null&&(r.teardown=Fe),ki(r,0),bd(r))}function sv(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&js(e)}let Fc=null,ns=null,Oe=null,bi=null,At=null,vu=null,yi=!1,Lc=!1,cs=null,vl=null;var bf=0;let Xm=1;var ms,jn,Eo,bs,ys,ws,dn,xs,Kt,Ti,fn,Ar,Fr,_s,To,qe,pu,ui,gu,iv,av,is,Zm,di;const Zl=class Zl{constructor(){_(this,qe);ie(this,"id",Xm++);_(this,ms,!1);ie(this,"linked",!0);_(this,jn,null);_(this,Eo,null);ie(this,"async_deriveds",new Map);ie(this,"current",new Map);ie(this,"previous",new Map);_(this,bs,new Set);_(this,ys,new Set);_(this,ws,0);_(this,dn,new Map);_(this,xs,null);_(this,Kt,[]);_(this,Ti,[]);_(this,fn,new Set);_(this,Ar,new Set);_(this,Fr,new Map);_(this,_s,new Set);ie(this,"is_fork",!1);_(this,To,!1);ns===null?Fc=ns=this:(O(ns,Eo,this),O(this,jn,ns)),ns=this}skip_effect(e){l(this,Fr).has(e)||l(this,Fr).set(e,{d:[],m:[]}),l(this,_s).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=l(this,Fr).get(e);if(n){l(this,Fr).delete(e);for(var o of n.d)it(o,ht),r(o);for(o of n.m)it(o,Mr),r(o)}l(this,_s).add(e)}capture(e,r,n=!1){e.v!==ft&&!this.previous.has(e)&&this.previous.set(e,e.v),(e.f&ro)===0&&(this.current.set(e,[r,n]),At==null||At.set(e,r)),this.is_fork||(e.v=r)}activate(){Oe=this}deactivate(){Oe=null,At=null}flush(){try{Lc=!0,Oe=this,K(this,qe,ui).call(this)}finally{bf=0,vu=null,cs=null,vl=null,Lc=!1,Oe=null,At=null,Bo.clear()}}discard(){var e;for(const r of l(this,ys))r(this);l(this,ys).clear();for(const r of this.async_deriveds.values())r.reject(ci);K(this,qe,di).call(this),(e=l(this,xs))==null||e.resolve()}register_created_effect(e){l(this,Ti).push(e)}increment(e,r){if(O(this,ws,l(this,ws)+1),e){let n=l(this,dn).get(r)??0;l(this,dn).set(r,n+1)}}decrement(e,r){if(O(this,ws,l(this,ws)-1),e){let n=l(this,dn).get(r)??0;n===1?l(this,dn).delete(r):l(this,dn).set(r,n-1)}l(this,To)||(O(this,To,!0),Tr(()=>{O(this,To,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)l(this,fn).add(n);for(const n of r)l(this,Ar).add(n);e.clear(),r.clear()}oncommit(e){l(this,bs).add(e)}ondiscard(e){l(this,ys).add(e)}settled(){return(l(this,xs)??O(this,xs,Vh())).promise}static ensure(){if(Oe===null){const e=Oe=new Zl;!Lc&&!yi&&Tr(()=>{l(e,ms)||e.flush()})}return Oe}apply(){{At=null;return}}schedule(e){var o;if(vu=e,(o=e.b)!=null&&o.is_pending&&(e.f&(Ls|za|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===Le&&(We===null||(We.f&St)===0))return;if((n&(Jr|xr))!==0){if((n&_t)===0)return;r.f^=_t}}l(this,Kt).push(r)}};ms=new WeakMap,jn=new WeakMap,Eo=new WeakMap,bs=new WeakMap,ys=new WeakMap,ws=new WeakMap,dn=new WeakMap,xs=new WeakMap,Kt=new WeakMap,Ti=new WeakMap,fn=new WeakMap,Ar=new WeakMap,Fr=new WeakMap,_s=new WeakMap,To=new WeakMap,qe=new WeakSet,pu=function(){if(this.is_fork)return!0;for(const n of l(this,dn).keys()){for(var e=n,r=!1;e.parent!==null;){if(l(this,Fr).has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1},ui=function(){var c,u,f,v;O(this,ms,!0),bf++>1e3&&(K(this,qe,di).call(this),Qm());for(const h of l(this,fn))l(this,Ar).delete(h),it(h,ht),this.schedule(h);for(const h of l(this,Ar))it(h,Mr),this.schedule(h);const e=l(this,Kt);O(this,Kt,[]),this.apply();var r=cs=[],n=[],o=vl=[];for(const h of e)try{K(this,qe,gu).call(this,h,r,n)}catch(p){throw uv(h),K(this,qe,pu).call(this)||this.discard(),p}if(Oe=null,o.length>0){var s=Zl.ensure();for(const h of o)s.schedule(h)}if(cs=null,vl=null,K(this,qe,pu).call(this)){K(this,qe,is).call(this,n),K(this,qe,is).call(this,r);for(const[h,p]of l(this,Fr))cv(h,p);o.length>0&&K(c=Oe,qe,ui).call(c);return}const i=K(this,qe,iv).call(this);if(i){K(this,qe,is).call(this,n),K(this,qe,is).call(this,r),K(u=i,qe,av).call(u,this);return}l(this,fn).clear(),l(this,Ar).clear();for(const h of l(this,bs))h(this);l(this,bs).clear(),bi=this,yf(n),yf(r),bi=null,(f=l(this,xs))==null||f.resolve();var a=Oe;if(l(this,ws)===0&&(l(this,Kt).length===0||a!==null)&&K(this,qe,di).call(this),l(this,Kt).length>0)if(a!==null){const h=a;l(h,Kt).push(...l(this,Kt).filter(p=>!l(h,Kt).includes(p)))}else a=this;a!==null&&K(v=a,qe,ui).call(v)},gu=function(e,r,n){e.f^=_t;for(var o=e.first;o!==null;){var s=o.f,i=(s&(xr|Jr))!==0,a=i&&(s&_t)!==0,c=a||(s&Gt)!==0||l(this,Fr).has(o);if(!c&&o.fn!==null){i?o.f^=_t:(s&Ls)!==0?r.push(o):La(o)&&((s&yr)!==0&&l(this,Ar).add(o),js(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=l(this,jn);e!==null;){if(!e.is_fork){for(const[r,[,n]]of this.current)if(e.current.has(r)&&!n)return e}e=l(e,jn)}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(l(e,fn),l(e,Ar));const r=o=>{var s=o.reactions;if(s!==null&&!((o.f&St)!==0&&(o.f&(ht|Mr))===0))for(const c of s){var i=c.f;if((i&St)!==0)r(c);else{var a=c;i&(fs|yr)&&!this.async_deriveds.has(a)&&(l(this,Ar).delete(a),it(a,ht),this.schedule(a))}}};for(const o of this.current.keys())r(o);this.oncommit(()=>e.discard()),K(n=e,qe,di).call(n),Oe=this,K(this,qe,ui).call(this)},is=function(e){for(var r=0;r!h.current.get(p)[1]);if(!(!l(h,ms)||o.length===0)){var s=o.filter(p=>!this.current.has(p));if(s.length===0)e&&h.discard();else if(r.length>0){if(e)for(const p of l(this,_s))h.unskip_effect(p,g=>{var b;(g.f&(yr|fs))!==0?h.schedule(g):K(b=h,qe,is).call(b,[g])});h.activate();var i=new Set,a=new Map;for(var c of r)lv(c,s,i,a);a=new Map;var u=[...h.current].filter(([p,g])=>{const b=this.current.get(p);return b?b[0]!==g[0]||b[1]!==g[1]:!0}).map(([p])=>p);if(u.length>0)for(const p of l(this,Ti))(p.f&(lr|Gt|$l))===0&&pd(p,u,a)&&((p.f&(fs|yr))!==0?(it(p,ht),h.schedule(p)):l(h,fn).add(p));if(l(h,Kt).length>0&&!l(h,To)){h.apply();for(var f of l(h,Kt))K(v=h,qe,gu).call(v,f,[],[]);O(h,Kt,[])}h.deactivate()}}}},di=function(){if(this.linked){var e=l(this,jn),r=l(this,Eo);e===null?Fc=r:O(e,Eo,r),r===null?ns=e:O(r,jn,e),this.linked=!1}};let oo=Zl;function Jm(t){var e=yi;yi=!0;try{for(var r;;){if(zm(),Oe===null)return r;Oe.flush()}}finally{yi=e}}function Qm(){try{am()}catch(t){Qn(t,vu)}}let Cr=null;function yf(t){var e=t.length;if(e!==0){for(var r=0;r0)){Bo.clear();for(const o of Cr){if((o.f&(lr|Gt))!==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 c=s[a];(c.f&(lr|Gt))===0&&js(c)}}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&St)!==0?lv(o,e,r,n):(s&(fs|yr))!==0&&(s&ht)===0&&pd(o,e,n)&&(it(o,ht),gd(o))}}function pd(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(Tl.call(e,o))return!0;if((o.f&St)!==0&&pd(o,e,r))return r.set(o,!0),!0}return r.set(t,!1),!1}function gd(t){Oe.schedule(t)}function cv(t,e){if(!((t.f&xr)!==0&&(t.f&_t)!==0)){(t.f&ht)!==0?e.d.push(t):(t.f&Mr)!==0&&e.m.push(t),it(t,_t);for(var r=t.first;r!==null;)cv(r,e),r=r.next}}function uv(t){it(t,_t);for(var e=t.first;e!==null;)uv(e),e=e.next}let Il=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 Ae(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),Us&&r&&Ue!==null&&Ue.l!==null&&((o=Ue.l).s??(o.s=[])).push(n),n}function M(t,e,r=!1){We!==null&&(!$r||(We.f&$l)!==0)&&qs()&&(We.f&(St|yr|fs|$l))!==0&&(Yr===null||!Yr.has(t))&&dm();let n=r?Qt(e):e;return Vs(t,n,vl)}function Vs(t,e,r=null){if(!t.equals(e)){Bo.set(t,$n?e:t.v);var n=oo.ensure();if(n.capture(t,e),(t.f&St)!==0){const o=t;(t.f&ht)!==0&&vd(o),At===null&&dd(o)}t.wv=Tv(),fv(t,ht,r),qs()&&Le!==null&&(Le.f&_t)!==0&&(Le.f&(xr|Jr))===0&&(fr===null?ub([t]):fr.push(t)),!n.is_fork&&Il.size>0&&!dv&&tb()}return e}function tb(){dv=!1;for(const t of Il){(t.f&_t)!==0&&it(t,Mr);let e;try{e=La(t)}catch{e=!0}e&&js(t)}Il.clear()}function wf(t,e=1){var r=d(t),n=e===1?r++:r--;return M(t,r),n}function Wr(t){M(t,t.v+1)}function fv(t,e,r){var n=t.reactions;if(n!==null)for(var o=qs(),s=n.length,i=0;i{if(Cn===s)return a();var c=We,u=Cn;_r(null),Sf(s);var f=a();return _r(c),Sf(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)&&cm();var f=r.get(c);return f===void 0?i(()=>{var v=Ae(u.value);return r.set(c,v),v}):M(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(ft));r.set(c,f),Wr(o)}}else M(u,ft),Wr(o);return!0},get(a,c,u){var p;if(c===Ur)return t;var f=r.get(c),v=c in a;if(f===void 0&&(!v||(p=to(a,c))!=null&&p.writable)&&(f=i(()=>{var g=Qt(v?a[c]:ft),b=Ae(g);return b}),r.set(c,f)),f!==void 0){var h=d(f);return h===ft?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!==ft)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(a,c){var h;if(c===Ur)return!0;var u=r.get(c),f=u!==void 0&&u.v!==ft||Reflect.has(a,c);if(u!==void 0||Le!==null&&(!f||(h=to(a,c))!=null&&h.writable)){u===void 0&&(u=i(()=>{var p=f?Qt(a[c]):ft,g=Ae(p);return g}),r.set(c,u));var v=d(u);if(v===ft)return!1}return f},set(a,c,u,f){var N;var v=r.get(c),h=c in a;if(n&&c==="length")for(var p=u;pAe(ft)),r.set(p+"",g))}if(v===void 0)(!h||(N=to(a,c))!=null&&N.writable)&&(v=i(()=>Ae(void 0)),M(v,Qt(u)),r.set(c,v));else{h=v.v!==ft;var b=i(()=>Qt(u));M(v,b)}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"),P=Number(c);Number.isInteger(P)&&P>=w.v&&M(w,P+1)}Wr(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!==ft});for(var[u,f]of r)f.v!==ft&&!(u in a)&&c.push(u);return c},setPrototypeOf(){um()}})}function xf(t){try{if(t!==null&&typeof t=="object"&&Ur in t)return t[Ur]}catch{}return t}function rb(t,e){return Object.is(xf(t),xf(e))}var _f,hv,vv,pv;function nb(){if(_f===void 0){_f=window,hv=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;vv=to(e,"firstChild").get,pv=to(e,"nextSibling").get,pf(t)&&(t[lu]=void 0,t[ul]=null,t[cu]=void 0,t.__e=void 0),pf(r)&&(r[li]=void 0)}}function qr(t=""){return document.createTextNode(t)}function Ws(t){return vv.call(t)}function Fa(t){return pv.call(t)}function F(t,e){return Ws(t)}function E(t,e=!1){{var r=Ws(t);return r instanceof Comment&&r.data===""?Fa(r):r}}function S(t,e=1,r=!1){let n=t;for(;e--;)n=Fa(n);return n}function ob(t){t.textContent=""}function gv(){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){Le===null&&(We===null&&im(),sm()),$n&&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=Le;r!==null&&(r.f&Gt)!==0&&(t|=Gt);var n={ctx:Ue,deps:null,nodes:null,f:t|ht|wr,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};Oe==null||Oe.register_created_effect(n);var o=n;if((t&Ls)!==0)cs!==null?cs.push(n):oo.ensure().schedule(n);else if(e!==null){try{js(n)}catch(i){throw Pt(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),We!==null&&(We.f&St)!==0&&(t&Jr)===0)){var s=We;(s.effects??(s.effects=[])).push(o)}return n}function md(){return We!==null&&!$r}function Cc(t){const e=Pr(za,null);return it(e,_t),e.teardown=t,e}function ct(t){bv();var e=Le.f,r=!We&&(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(Ls|Wh,t)}function wv(t){return bv(),Pr(za|Wh,t)}function xv(t){oo.ensure();const e=Pr(Jr|qo,t);return()=>{Pt(e)}}function ib(t){oo.ensure();const e=Pr(Jr|qo,t);return(r={})=>new Promise(n=>{r.outro?Vo(e,()=>{Pt(e),n(void 0)}):(Pt(e),n(void 0))})}function Ac(t){return Pr(Ls,t)}function ab(t){return Pr(fs|qo,t)}function Ec(t,e=0){return Pr(za|e,t)}function Ce(t,e=[],r=[],n=[]){rv(n,e,r,o=>{Pr(za,()=>{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 Jt(t){return Pr(xr|qo,t)}function kv(t){var e=t.teardown;if(e!==null){const r=$n,n=We;kf(!0),_r(null);try{e.call(null)}finally{kf(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(Ra)});var n=r.next;(r.f&Jr)!==0?r.parent=null:Pt(r,e),r=n}}function lb(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&xr)===0&&Pt(e),e=r}}function Pt(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|=au,bd(t,e&&!r),ki(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)s.stop();kv(t),t.f^=au,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:Fa(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&&Pt(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&Gt)===0){t.f^=Gt;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 Nl(t){Cv(t,!0)}function Cv(t,e){if((t.f&Gt)!==0){t.f^=Gt,(t.f&_t)===0&&(it(t,ht),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:Fa(r);e.append(r),r=o}}let pl=!1,$n=!1;function kf(t){$n=t}let We=null,$r=!1;function _r(t){We=t}let Le=null;function kr(t){Le=t}let Yr=null;function Av(t){We!==null&&(Yr??(Yr=new Set)).add(t)}let Zt=null,sr=0,fr=null;function ub(t){fr=t}let Ev=1,So=0,Cn=So;function Sf(t){Cn=t}function Tv(){return++Ev}function La(t){var e=t.f;if((e&ht)!==0)return!0;if(e&St&&(t.f&=~Wo),(e&Mr)!==0){for(var r=t.deps,n=r.length,o=0;ot.wv)return!0}(e&wr)!==0&&At===null&&it(t,_t)}return!1}function $v(t,e,r=!0){var n=t.reactions;if(n!==null&&!(Yr!==null&&Yr.has(t)))for(var o=0;o{t.ac.abort(Ra)}),t.ac=null);try{t.f|=Ol;var f=t.fn,v=f();t.f|=Uo;var h=t.deps,p=Oe==null?void 0:Oe.is_fork;if(Zt!==null){var g;if(p||ki(t,sr),h!==null&&sr>0)for(h.length=sr+Zt.length,g=0;g{s.ac.abort(Ra),s.ac=null,it(s,ht)}),Ym(s),ki(s,0)}}function ki(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 Lt(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)&&Cc(()=>{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 Dc=((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(Dc==null?void 0:Dc.createHTML(t))??t}function Fv(t){var e=mv("template");return e.innerHTML=wb(t.replaceAll("","")),e.content}function Gs(t,e){var r=Le;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function ee(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=Ws(o)));var i=n||hv?document.importNode(o,!0):o.cloneNode(!0);if(r){var a=Ws(i),c=i.lastChild;Gs(a,c)}else Gs(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=Ws(i);s=Ws(a)}var c=s.cloneNode(!0);return Gs(c,c),c}}function Da(t,e){return xb(t,e,"svg")}function Ee(t=""){{var e=qr(t+"");return Gs(e,e),e}}function re(){var t=document.createDocumentFragment(),e=document.createComment(""),r=qr();return t.append(e,r),Gs(e,r),t}function m(t,e){t!==null&&t.before(e)}function Ba(){var t;return(t=window.__svelte??(window.__svelte={})).uid??(t.uid=1),`c${window.__svelte.uid++}`}let zl=!0;function qa(t){zl=t}function ye(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[li]??(t[li]=t.nodeValue))&&(t[li]=r,t.nodeValue=`${r}`)}function Lv(t,e){return _b(t,e)}const Ya=new Map;function _b(t,{target:e,anchor:r,props:n={},events:o,context:s,intro:i=!0,transformError:a}){nb();var c=void 0,u=ib(()=>{var f=r??e.appendChild(qr());Vm(f,{pending:()=>{}},p=>{Me({});var g=Ue;s&&(g.c=s),o&&(n.$$events=o),zl=i,c=t(p,n)||{},zl=!0,Ie()},a);var v=new Set,h=p=>{for(var g=0;g{var y;for(var p of v)for(const w of[e,document]){var g=Ya.get(w),b=g.get(p);--b==0?(w.removeEventListener(p,yu),g.delete(p),g.size===0&&Ya.delete(w)):g.set(p,b)}bu.delete(h),f!==r&&((y=f.parentNode)==null||y.removeChild(f))}});return wu.set(c,u),c}let wu=new WeakMap;function kb(t,e){const r=wu.get(t);return r?(wu.delete(t),r(e)):Promise.resolve()}var Er,Lr,ar,$o,$i,Oi,Jl;class Va{constructor(e,r=!0){ie(this,"anchor");_(this,Er,new Map);_(this,Lr,new Map);_(this,ar,new Map);_(this,$o,new Set);_(this,$i,!0);_(this,Oi,e=>{if(l(this,Er).has(e)){var r=l(this,Er).get(e),n=l(this,Lr).get(r);if(n)Nl(n),l(this,$o).delete(r);else{var o=l(this,ar).get(r);o&&(Nl(o.effect),l(this,Lr).set(r,o.effect),l(this,ar).delete(r),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[s,i]of l(this,Er)){if(l(this,Er).delete(s),s===e)break;const a=l(this,ar).get(i);a&&(Pt(a.effect),l(this,ar).delete(i))}for(const[s,i]of l(this,Lr)){if(s===r||l(this,$o).has(s))continue;const a=()=>{if(Array.from(l(this,Er).values()).includes(s)){var u=document.createDocumentFragment();yd(i,u),u.append(qr()),l(this,ar).set(s,{effect:i,fragment:u})}else Pt(i);l(this,$o).delete(s),l(this,Lr).delete(s)};l(this,$i)||!n?(l(this,$o).add(s),Vo(i,a,!1)):a()}}});_(this,Jl,e=>{l(this,Er).delete(e);const r=Array.from(l(this,Er).values());for(const[n,o]of l(this,ar))r.includes(n)||(Pt(o.effect),l(this,ar).delete(n))});this.anchor=e,O(this,$i,r)}ensure(e,r){var n=Oe,o=gv();if(r&&!l(this,Lr).has(e)&&!l(this,ar).has(e))if(o){var s=document.createDocumentFragment(),i=qr();s.append(i),l(this,ar).set(e,{effect:Jt(()=>r(i)),fragment:s})}else l(this,Lr).set(e,Jt(()=>r(this.anchor)));if(l(this,Er).set(n,e),o){for(const[a,c]of l(this,Lr))a===e?n.unskip_effect(c):n.skip_effect(c);for(const[a,c]of l(this,ar))a===e?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(l(this,Oi)),n.ondiscard(l(this,Jl))}else l(this,Oi).call(this,n)}}Er=new WeakMap,Lr=new WeakMap,ar=new WeakMap,$o=new WeakMap,$i=new WeakMap,Oi=new WeakMap,Jl=new WeakMap;function Ne(t,e,r=!1){var n=new Va(t),o=r?Qr:0;function s(i,a){n.ensure(i,a)}Yo(()=>{var i=!1;e((a,c=0)=>{i=!0,s(c,a)}),i||s(-1,null)},o)}const Sb=Symbol("NaN");function Dv(t,e,r){var n=new Va(t),o=!qs();Yo(()=>{var s=e();s!==s&&(s=Sb),o&&s!==null&&typeof s=="object"&&(s={}),n.ensure(s,r)})}function Wt(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;xu(t,Sc(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;ob(f),f.append(u),t.items.clear()}xu(t,e,!c)}else s={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(s)}function xu(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 N=r();return ad(N)?N:N==null?[]:Sc(N)}),h,p=new Map,g=!0;function b(N){(P.effect.f&lr)===0&&(P.pending.delete(N),P.fallback=f,Cb(P,h,i,e,n),f!==null&&(h.length===0?(f.f&Gr)===0?Nl(f):(f.f^=Gr,fi(f,null,i)):Vo(f,()=>{f=null})))}function y(N){P.pending.delete(N)}var w=Yo(()=>{h=d(v);for(var N=h.length,C=new Set,k=Oe,A=gv(),R=0;Rs(i)):(f=Jt(()=>s(Cf??(Cf=qr()))),f.f|=Gr)),N>C.size&&nm(),!g)if(p.set(k,C),A){for(const[he,Q]of a)C.has(he)||k.skip_effect(Q.e);k.oncommit(b),k.ondiscard(y)}else b(k);d(v)}),P={effect:w,items:a,pending:p,outrogroups:null,fallback:f};g=!1}function ei(t){for(;t!==null&&(t.f&xr)===0;)t=t.next;return t}function Cb(t,e,r,n,o){var H,he,Q,ue,pe,Y,D,q,Z;var s=(n&pm)!==0,i=e.length,a=t.items,c=ei(t.effect.first),u,f=null,v,h=[],p=[],g,b,y,w;if(s)for(w=0;w0){var L=(n&Hh)!==0&&i===0?r:null;if(s){for(w=0;w{var le,T;if(v!==void 0)for(y of v)(T=(le=y.nodes)==null?void 0:le.a)==null||T.apply()})}function Ab(t,e,r,n,o,s,i,a){var c=(i&hm)!==0?(i&gm)===0?eb(r,!1,!1):Tn(r):null,u=(i&vm)!==0?Tn(o):null;return{v:c,i:u,e:Jt(()=>(s(e,c??r,u??o,a),()=>{t.delete(n)}))}}function fi(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=Fa(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 tt(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 De(t,e,...r){var n=new Va(t);Yo(()=>{const o=e()??null;n.ensure(o,o&&(s=>o(s,...r)))},Qr)}function $(t,e,r){var n=new Va(t);Yo(()=>{var o=e()??null;n.ensure(o,o&&(s=>r(s,o)))},Qr)}const Eb=()=>performance.now(),Pn={tick:t=>requestAnimationFrame(t),now:()=>Eb(),tasks:new Set};function Bv(){const t=Pn.now();Pn.tasks.forEach(e=>{e.c(t)||(Pn.tasks.delete(e),e.f())}),Pn.tasks.size!==0&&Pn.tick(Bv)}function Tb(t){let e;return Pn.tasks.size===0&&Pn.tick(Bv),{promise:new Promise(r=>{Pn.tasks.add(e={c:t,f:r})}),abort(){Pn.tasks.delete(e)}}}function Af(t,e){co(()=>{t.dispatchEvent(new CustomEvent(e))})}function $b(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 Ef(t){const e={},r=t.split(";");for(const n of r){const[o,s]=n.split(":");if(!o||s===void 0)break;const i=$b(o.trim());e[i]=s.trim()}return e}const Ob=t=>t;function Mb(t,e,r,n){var y;var o=(t&xm)!==0,s="in",i,a=e.inert,c=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,()=>{Af(e,"introstart")},()=>{Af(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()}},p=Le;if(((y=p.nodes).t??(y.t=[])).push(h),zl){var g=o;if(!g){for(var b=p.parent;b&&(b.f&Qr)!==0;)for(;(b=b.parent)&&(b.f&yr)===0;);g=!b||(b.f&Uo)!==0}g&&Ac(()=>{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:Fe,deactivate:Fe,reset:Fe,t:()=>n};const{delay:c=0,css:u,tick:f,easing:v=Ob}=e;var h=[];if(f&&f(0,1),u){var p=Ef(u(0,1));h.push(p,p)}var g=()=>1-n,b=t.animate(h,{duration:c,fill:"forwards"});return b.onfinish=()=>{b.cancel(),o();var y=1-n,w=n-y,P=e.duration*Math.abs(w),N=[];if(P>0){var C=!1;if(u)for(var k=Math.ceil(P/16.666666666666668),A=0;A<=k;A+=1){var R=y+w*v(A/k),x=Ef(u(R,1-R));N.push(x),C||(C=x.overflow==="hidden")}C&&(t.style.overflow="hidden"),g=()=>{var L=b.currentTime;return y+w*v(L/P)},f&&Tb(()=>{if(b.playState!=="running")return!1;var L=g();return f(L,1-L),!0})}b=t.animate(N,{duration:P,fill:"forwards"}),b.onfinish=()=>{g=()=>n,f==null||f(n,1-n),s()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=Fe)},deactivate:()=>{s=Fe},reset:()=>{},t:()=>g()}}function Wv(t,e,r,n,o,s){var i=null,a=t,c=new Va(a,!1);Yo(()=>{const u=e()||null;var f=r||u==="svg"?Sm:void 0;if(u===null){c.ensure(null,null),qa(!0);return}return c.ensure(u,v=>{if(u){if(i=mv(u,f),Gs(i,i),n){var h=null,p=i.appendChild(qr());n(i,p),h==null||h.remove()}Le.nodes.end=i,v.before(i)}}),qa(!0),()=>{u&&qa(!1)}},Qr),Cc(()=>{qa(!0)})}function Ib(t,e){var r=void 0,n;_v(()=>{r!==(r=e())&&(n&&(Pt(n),n=null),r&&(n=Jt(()=>{Ac(()=>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||Tf.includes(n[i-1]))&&(a===n.length||Tf.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 Bc(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,c=[];n&&c.push(...Object.keys(n).map(Bc)),o&&c.push(...Object.keys(o).map(Bc));var u=0,f=-1;const b=t.length;for(var v=0;v{"__value"in t&&ku(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Cc(()=>{e.disconnect()})}function Of(t){return"__value"in t?t.__value:t.value}const ti=Symbol("class"),ri=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 xt(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],c=!i[Hv],u=e||{},f=t.nodeName===Lb;for(var v in e)v in r||(r[v]=null);r.class?r.class=_u(r.class):r[ti]&&(r.class=null),r[ri]&&(r.style??(r.style=null));var h=Uv(t);if(t.nodeName===Fb&&"type"in r&&("value"in r||"__value"in r)){var p=r.type;(p!==u.type||p===void 0&&t.hasAttribute("type"))&&(u.type=p,xt(t,"type",p))}for(const k in r){let A=r[k];if(f&&k==="value"&&A==null){t.value=t.__value="",u[k]=A;continue}if(k==="class"){var g=t.namespaceURI==="http://www.w3.org/1999/xhtml";Vn(t,g,A,n,e==null?void 0:e[ti],r[ti]),u[k]=A,u[ti]=r[ti];continue}if(k==="style"){as(t,A,e==null?void 0:e[ri],r[ri]),u[k]=A,u[ri]=r[ri];continue}var b=u[k];if(!(A===b&&!(A===void 0&&t.hasAttribute(k)))){u[k]=A;var y=k[0]+k[1];if(y!=="$$")if(y==="on"){const R={},x="$$"+k;let L=k.slice(2);var w=pb(L);if(hb(L)&&(L=L.slice(0,-7),R.capture=!0),!w&&b){if(A!=null)continue;t.removeEventListener(L,u[x],R),u[x]=null}if(w)xo(L,t,A),xd([L]);else if(A!=null){let H=function(he){u[k].call(this,he)};var C=H;u[x]=wd(L,t,H,R)}}else if(k==="style")xt(t,k,A);else if(k==="autofocus")Lm(t,!!A);else if(!a&&(k==="__value"||k==="value"&&A!=null))t.value=t.__value=A;else if(k==="selected"&&f)Bb(t,A);else{var P=k;c||(P=mb(P));var N=P==="defaultValue"||P==="defaultChecked";if(A==null&&!a&&!N)if(i[k]=null,P==="value"||P==="checked"){let R=t;const x=e===void 0;if(P==="value"){let L=R.defaultValue;R.removeAttribute(P),R.defaultValue=L,R.value=R.__value=x?L:null}else{let L=R.defaultChecked;R.removeAttribute(P),R.defaultChecked=L,R.checked=x?L:!1}}else t.removeAttribute(k);else N||h.includes(P)&&(a||typeof A!="string")?(t[P]=A,P in i&&(i[P]=ft)):typeof A!="function"&&xt(t,P,A)}}}return u}function Ye(t,e,r=[],n=[],o=[],s,i=!1,a=!1){rv(o,r,n,c=>{var u=void 0,f={},v=t.nodeName===Db,h=!1;if(_v(()=>{var g=e(...c.map(d)),b=Vb(t,u,g,s,i,a);h&&v&&"value"in g&&ku(t,g.value);for(let w of Object.getOwnPropertySymbols(f))g[w]||Pt(f[w]);for(let w of Object.getOwnPropertySymbols(g)){var y=g[w];w.description===qh&&(!u||y!==u[w])&&(f[w]&&Pt(f[w]),f[w]=Jt(()=>Ib(t,()=>y))),b[w]=y}u=b}),v){var p=t;Ac(()=>{ku(p,u.value,!0),Rb(p)})}h=!0})}function Kv(t){return t[ul]??(t[ul]={[Gv]:t.nodeName.includes("-"),[Hv]:t.namespaceURI===Uh})}var Mf=new Map;function Uv(t){var e=t.getAttribute("is")||t.nodeName,r=Mf.get(e);if(r)return r;Mf.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 If(t,e,r=e){var n=new WeakSet;tv(t,"input",async o=>{var s=o?t.defaultValue:t.value;if(s=Wc(t)?jc(s):s,r(s),Oe!==null&&n.add(Oe),await Mv(),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))}}}),Sr(e)==null&&t.value&&(r(Wc(t)?jc(t.value):t.value),Oe!==null&&n.add(Oe)),Ec(()=>{var o=e();if(t===document.activeElement){var s=Oe;if(n.has(s))return}Wc(t)&&o===jc(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Wc(t){var e=t.type;return e==="number"||e==="range"}function jc(t){return t===""?null:+t}function Wb(t,e,r=e){tv(t,"change",()=>{r(t.files)}),Ec(()=>{t.files=e()})}function Gc(t,e){return t===e||(t==null?void 0:t[Ur])===e}function gt(t={},e,r,n){var o=Ue.r,s=Le;return Ac(()=>{var i,a;return Ec(()=>{i=a,a=[],Sr(()=>{Gc(r(...a),t)||(e(t,...a),i&&Gc(r(...i),t)&&e(null,...i))})}),()=>{let c=s;for(;c!==o&&c.parent!==null&&c.parent.f&au;)c=c.parent;const u=()=>{a&&Gc(r(...a),t)&&e(null,...a)},f=c.teardown;c.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=Bs(()=>{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&&wv(()=>{Nf(e,n),su(r.b)}),ct(()=>{const o=Sr(()=>r.m.map(Jg));return()=>{for(const s of o)typeof s=="function"&&s()}}),r.a.length&&ct(()=>{Nf(e,n),su(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 Ge(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=Le;try{kr(t.parent_effect),t.special[e]=I({get[e](){return t.props[e]}},e,Kh)}finally{kr(n)}}return t.special[e](r),wf(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),wf(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 Je(t,e){return new Proxy({props:t,exclude:e,special:{},version:Tn(0),parent_effect:Le},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 je(...t){return new Proxy({props:t},Kb)}function I(t,e,r,n){var C;var o=!Us||(r&bm)!==0,s=(r&ym)!==0,i=(r&wm)!==0,a=n,c=!0,u=void 0,f=()=>i&&o?(u??(u=Bs(n)),d(u)):(c&&(c=!1,a=i?Sr(n):n),a);let v;if(s){var h=Ur in t||jh in t;v=((C=to(t,e))==null?void 0:C.set)??(h&&e in t?k=>t[e]=k:void 0)}var p,g=!1;s?[p,g]=Fm(()=>t[e]):p=t[e],p===void 0&&n!==void 0&&(p=f(),v&&(o&&lm(),v(p)));var b;if(o?b=()=>{var k=t[e];return k===void 0?f():(c=!0,k)}:b=()=>{var k=t[e];return k!==void 0&&(a=void 0),k===void 0?a:k},o&&(r&Kh)===0)return b;if(v){var y=t.$$legacy;return(function(k,A){return arguments.length>0?((!o||!A||y||g)&&v(A?b():k),k):b()})}var w=!1,P=((r&mm)!==0?Bs:hd)(()=>(w=!1,b()));s&&d(P);var N=Le;return(function(k,A){if(arguments.length>0){const R=A?d(P):o&&s?Qt(k):k;return M(P,R),w=!0,a!==void 0&&(a=R),k}return $n&&w||(N.f&lr)!==0?P.v:d(P)})}function _d(t){Ue===null&&Gh(),Us&&Ue.l!==null?Ub(Ue).m.push(t):ct(()=>{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 hi extends Error{constructor(e,r){super(r),this.status=e}}async function on(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 hi(r.status,n)}if(r.status!==204)return await r.json()}const us={login:t=>on("/api/session",{method:"POST",body:JSON.stringify({password:t})}),logout:()=>on("/api/session",{method:"DELETE"}),status:()=>on("/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)),on(`/api/rules?${r}`)},addRules:(t,e)=>on("/api/rules",{method:"POST",body:JSON.stringify({category:t,rules:e})}),removeRules:(t,e)=>on("/api/rules",{method:"DELETE",body:JSON.stringify({category:t,rules:e})}),rulesTest:t=>on(`/api/rules/test?domain=${encodeURIComponent(t)}`),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)}`),on(n.length?`/api/traffic?${n.join("&")}`:"/api/traffic")},history:()=>on("/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}),Rl="-",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(Rl),c=a[0]===""&&a.length>1?1:0;return Yv(a,c,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=n[i],u=r[i];return c?u?Zb(u,c):c: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(Rl):t.slice(e).join(Rl),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?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(Rl),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,c=0,u;const f=o.length;for(let b=0;bc?u-c:void 0;return Ff(s,p,h,g)};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=[],c=t.trim().split(py);let u="";for(let f=c.length-1;f>=0;f-=1){const v=c[f],{isExternal:h,modifiers:p,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:y}=r(v);if(h){u=v+(u.length>0?" "+u:u);continue}let w=!!y,P;if(w){const R=b.substring(0,y);P=n(R);const x=P&&i[P]?n(b):void 0;x&&x!==P&&(P=x,w=!1)}else P=n(b);if(!P){if(!w){u=v+(u.length>0?" "+u:u);continue}if(P=n(b),!P){u=v+(u.length>0?" "+u:u);continue}w=!1}const N=p.length===0?"":p.length===1?p[0]:s(p).join(":"),C=g?N+Su:N,k=C+P;if(a.indexOf(k)>-1)continue;a.push(k);const A=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=c=>{const u=e.reduce((f,v)=>v(f),t());return r=hy(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=gy(c,r);return o(c,f),f};return s=i,(...c)=>s(my(...c))},yy=[],bt=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)\(.+\)$/,Rn=t=>wy.test(t),Be=t=>!!t&&!Number.isNaN(Number(t)),zr=t=>!!t&&Number.isInteger(Number(t)),Hc=t=>t.endsWith("%")&&Be(t.slice(0,-1)),sn=t=>xy.test(t),ep=()=>!0,Cy=t=>_y.test(t)&&!ky.test(t),Sd=()=>!1,Ay=t=>Sy.test(t),Ey=t=>Py.test(t),Ty=t=>!xe(t)&&!Se(t),$y=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)),Oy=t=>uo(t,np,Sd),xe=t=>Jv.test(t),vo=t=>uo(t,op,Cy),Lf=t=>uo(t,Dy,Be),My=t=>uo(t,ip,ep),Iy=t=>uo(t,sp,Sd),Df=t=>uo(t,tp,Sd),Ny=t=>uo(t,rp,Ey),Xa=t=>uo(t,ap,Ay),Se=t=>Qv.test(t),ni=t=>Xo(t,op),zy=t=>Xo(t,sp),Bf=t=>Xo(t,tp),Ry=t=>Xo(t,np),Fy=t=>Xo(t,rp),Za=t=>Xo(t,ap,!0),Ly=t=>Xo(t,ip,!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},tp=t=>t==="position"||t==="percentage",rp=t=>t==="image"||t==="url",np=t=>t==="length"||t==="size"||t==="bg-size",op=t=>t==="length",Dy=t=>t==="number",sp=t=>t==="family-name",ip=t=>t==="number"||t==="weight",ap=t=>t==="shadow",By=()=>{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"),p=bt("drop-shadow"),g=bt("blur"),b=bt("perspective"),y=bt("aspect"),w=bt("ease"),P=bt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...C(),Se,xe],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],x=()=>[Se,xe,c],L=()=>[Rn,"full","auto",...x()],H=()=>[zr,"none","subgrid",Se,xe],he=()=>["auto",{span:["full",zr,Se,xe]},zr,Se,xe],Q=()=>[zr,"auto",Se,xe],ue=()=>["auto","min","max","fr",Se,xe],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...x()],q=()=>[Rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],Z=()=>[Rn,"screen","full","dvw","lvw","svw","min","max","fit",...x()],le=()=>[Rn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],T=()=>[t,Se,xe],we=()=>[...C(),Bf,Df,{position:[Se,xe]}],$e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",Ry,Oy,{size:[Se,xe]}],de=()=>[Hc,ni,vo],te=()=>["","none","full",u,Se,xe],me=()=>["",Be,ni,vo],V=()=>["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"],j=()=>[Be,Hc,Bf,Df],X=()=>["","none",g,Se,xe],G=()=>["none",Be,Se,xe],U=()=>["none",Be,Se,xe],fe=()=>[Be,Se,xe],z=()=>[Rn,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sn],breakpoint:[sn],color:[ep],container:[sn],"drop-shadow":[sn],ease:["in","out","in-out"],font:[Ty],"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",Be],text:[sn],"text-shadow":[sn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rn,xe,Se,y]}],container:["container"],"container-type":[{"@container":["","normal","size",Se,xe]}],"container-named":[$y],columns:[{columns:[Be,xe,Se,a]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[zr,"auto",Se,xe]}],basis:[{basis:[Rn,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,Rn,"auto","initial","none",xe]}],grow:[{grow:["",Be,Se,xe]}],shrink:[{shrink:["",Be,Se,xe]}],order:[{order:[zr,"first","last","none",Se,xe]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[a,"screen",...q()]}],"min-w":[{"min-w":[a,"screen","none",...q()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",r,ni,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",Hc,xe]}],"font-family":[{font:[zy,Iy,e]}],"font-features":[{"font-features":[xe]}],"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,Se,xe]}],"line-clamp":[{"line-clamp":[Be,"none",Se,Lf]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",Se,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Se,xe]}],"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:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",Se,vo]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Be,"auto",Se,xe]}],"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,Se,xe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se,xe]}],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",Se,xe]}],"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:$e()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zr,Se,xe],radial:["",Se,xe],conic:[zr,Se,xe]},Fy,Ny]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"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:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"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:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,Se,xe]}],"outline-w":[{outline:["",Be,ni,vo]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",f,Za,Xa]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",v,Za,Xa]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Be,vo]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",h,Za,Xa]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Be,Se,xe]}],"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":[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":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"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":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"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":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"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":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"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":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"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":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"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":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Se,xe]}],"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":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":C()}],"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":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:we()}],"mask-repeat":[{mask:$e()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Se,xe]}],filter:[{filter:["","none",Se,xe]}],blur:[{blur:X()}],brightness:[{brightness:[Be,Se,xe]}],contrast:[{contrast:[Be,Se,xe]}],"drop-shadow":[{"drop-shadow":["","none",p,Za,Xa]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Be,Se,xe]}],"hue-rotate":[{"hue-rotate":[Be,Se,xe]}],invert:[{invert:["",Be,Se,xe]}],saturate:[{saturate:[Be,Se,xe]}],sepia:[{sepia:["",Be,Se,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",Se,xe]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[Be,Se,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Be,Se,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,Se,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,Se,xe]}],"backdrop-invert":[{"backdrop-invert":["",Be,Se,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Be,Se,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Be,Se,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,Se,xe]}],"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",Se,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",Se,xe]}],ease:[{ease:["linear","initial",w,Se,xe]}],delay:[{delay:[Be,Se,xe]}],animate:[{animate:["none",P,Se,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Se,xe]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[Se,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],zoom:[{zoom:[zr,Se,xe]}],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",Se,xe]}],"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",Se,xe]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Be,ni,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 He(...t){return Vy(wi(t))}var Wy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),jy=ee("
");function kt(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,Wy);var o=jy();Ye(o,i=>({"data-slot":"card-content",class:i,...n}),[()=>He("px-(--card-spacing)",e.class)]);var s=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var Gy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Hy=ee("

");function It(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,Gy);var o=Hy();Ye(o,i=>({"data-slot":"card-description",class:i,...n}),[()=>He("text-sm text-muted-foreground",e.class)]);var s=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var Ky=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Uy=ee("
");function Nt(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,Ky);var o=Uy();Ye(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=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var qy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Yy=ee("
");function or(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,qy);var o=Yy();Ye(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=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var Xy=new Set(["$$slots","$$events","$$legacy","ref","class","children","size"]),Zy=ee("
");function wt(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=I(e,"size",3,"default"),o=Ge(e,Xy);var s=Zy();Ye(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=F(s);De(i,()=>e.children??Fe),gt(s,a=>r(a),()=>r()),m(t,s),Ie()}var Jy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Qy=ee("
");function Pd(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,Jy);var o=Qy();Ye(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=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var ew=Array.isArray,Tc=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=Tc(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},lp=(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},cp=(t,e)=>{for(let r=0;r{const e=[];cp(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:{}},up=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+"?"}},dp=(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=up)=>{const e=hp(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 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 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??"",c=(typeof s=="string"?s:"")+"\0"+(typeof i=="string"?i:""),u=r.get(a,c);if(u!==jo)return u;const f=t(e,n,s,i);return r.set(a,c,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 jt=uw(),dw=t=>{!br(t.twMergeConfig)&&!lp(t.twMergeConfig,jt.cachedTwMergeConfig)&&(jt.didTwMergeConfigChange=!0,jt.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,c={...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(c);const p=!(r!=null&&r.slots)||br(r.slots),g=u?p&&(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,b=u?{base:g,...n}:{},y=p?b:ow({...r==null?void 0:r.slots},br(b)?{base:t==null?void 0:t.base}:b),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),N=Object.keys(v),C=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||!p?"slots":N.length===0?"plain":"variants";return{config:c,extend:r,base:f,variants:v,defaultVariants:h,slots:y,compoundVariants:w,compoundSlots:P,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:C,mode:k,slotKeys:null,variantKeys:N}},vp=t=>(t.compiledVariants!==null||(t.compiledVariants=fw(t.variants,t.variantKeys),t.compiledCompoundVariants=hw(t.compoundVariants),t.compiledCompoundSlots=vw(t.compoundSlots),t.compiledCompoundSlotsBySlot=pw(t.compiledCompoundSlots),t.slotKeys=t.slots&&typeof t.slots=="object"?Object.keys(t.slots):[]),t),Eu=[],pp=[],mw=[],bw=[],yw=[],gp=(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,ww=(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=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=pp;n.length=0;for(let o=0;o{const s=pp;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,c=t.compiledVariants,u=Eu,f=null;const v=Ad(e,n);let h=1;const p=g=>{const b=a.length>0?kw(a,gp(o,g)):void 0;return e(n,r,xw(c,o,g),b)};return(g=>{if(s)throw s;(c===null||a===null)&&(vp(t),c=t.compiledVariants,a=t.compiledCompoundVariants,u=t.compiledCompoundSlots??Eu);let b;if(h>0)h--,b=p(g);else{f??(f=lw());const y=dp(i,o,g);if(y!==null){const w=a.length>0||u.length>0?fp(a,u):"",P=y+"#"+w,N=f.get(P);N!==jo?b=N:(b=p(g),f.set(P,b))}else b=p(g)}return v(b,g)})},Ew=(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,p=null,g=1;const b=()=>{if(u!==null)return;(t.compiledVariants===null||t.compiledCompoundVariants===null||t.compiledCompoundSlots===null||t.compiledCompoundSlotsBySlot===null||t.slotKeys===null)&&vp(t);const w=t.compiledVariants;a=t.compiledCompoundVariants,c=t.compiledCompoundSlots;const P=t.compiledCompoundSlotsBySlot;u=t.slotKeys,v=a.length>0||c.length>0,h=Ad(e,r);const N=new Array(u.length);for(let C=0;C{const L=v?gp(n,R,x):void 0,H=L?Sw(k,a,L):void 0,he=L?Pw(A,L):void 0;return e(r,s[k],_w(k,w,n,R,x),H,he)}}f=N},y=w=>{const P=u,N=f,C=h,k={};for(let A=0;A{if(L==null)return x;let H=!1;for(const he in L)if(!(he==="class"||he==="className")&&L[he]!==void 0){H=!0;break}return C(H?R(w,L):x,L)}}return k};return(w=>{if(o)throw o;if(b(),g>0)return g--,y(w);const P=dp(i,n,w);if(P===null)return y(w);const N=v?fp(a,c):"",C=P+"#"+N;p??(p=hp());const k=p.get(C);if(k!==jo)return k;const A=y(w);return p.set(C,A),A})},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)))},$w=(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},Ow=t=>{const e=(n,o)=>{const s=gw(n,o),i=Tw(s,t);return $w(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}),bp=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),Fl="-",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(Fl),c=a[0]===""&&a.length>1?1:0;return yp(a,c,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=n[i],u=r[i];return c?u?Mw(u,c):c:u||jf}return r[i]||jf}}},yp=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],s=r.nextPart.get(o);if(s){const u=yp(t,e+1,s);if(u)return u}const i=r.validators;if(i===null)return;const a=e===0?t.join(Fl):t.slice(e).join(Fl),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?Nw+n:void 0},Fw=t=>{const{theme:e,classGroups:r}=t;return Lw(r,e)},Lw=(t,e)=>{const r=bp();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:wp(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(Fl),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,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=rx(t),{getClassGroupId:n,getConflictingClassGroupIds:o}=zw(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=N=>{const C=[],k=N.length;let A=-1;v=!1;for(let R=0;R=9&&x<=13?(v=!0,A!==-1&&(C.push(N.slice(A,R)),A=-1)):A===-1&&(A=R)}return A!==-1&&C.push(N.slice(A)),C},p=new Map;let g=0;const b=N=>{let C=p.get(N);if(C===void 0&&(C=g++,p.set(N,C),C>=c.length)){const k=new Int32Array(c.length*2);k.set(c),c=k}return C},y=N=>{const{isExternal:C,modifiers:k,hasImportantModifier:A,baseClassName:R,maybePostfixModifierPosition:x}=Hf(N);if(C)return Kc;let L=!!x,H;if(L){const Y=R.substring(0,x);H=n(Y);const D=H&&r[H]?n(R):void 0;D&&D!==H&&(H=D,L=!1)}else H=n(R);if(!H){if(!L||(H=n(R),!H))return Kc;L=!1}const he=k.length===0?"":k.length===1?k[0]:e(k).join(":"),Q=A?he+Gw:he,ue=o(H,L),pe=[];for(let Y=0;Y{let C=s[N];return C!==void 0||(C=i[N],C===void 0&&(C=y(N)),s[N]=C,++a>Qw&&(a=0,i=s,s=Object.create(null))),C};return{parseClassName:Hf,sortModifiers:e,postfixLookupClassGroupIds:r,getClassGroupId:n,getConflictingClassGroupIds:o,getClassDescriptor:w,mergeClassList:N=>{const C=h(N),k=C.length;if(k===1)return C[0];g>ex&&(p.clear(),g=0,s=Object.create(null),i=Object.create(null),a=0),u=u+1|0,u===0&&(u=1);const A=u;if(k>f.length){let H=f.length;for(;H=0;H-=1){const he=C[H];x+=he.length;const Q=w(he);if(Q.isExternal){f[H]=1;continue}const ue=Q.classId;if(c[ue]===A){f[H]=0,R=!0;continue}c[ue]=A;const pe=Q.conflictIds;for(let Y=0;Y{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,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>nx&&(s=0,o=n,n=Object.create(null))),f},c=(...u)=>c.mergeString(Tc(u));return c.mergeString=i,c},ox=[],yt=t=>{const e=r=>r[t]||ox;return e.isThemeGetter=!0,e},xp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_p=/^\((?:(\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)\(.+\)$/,kp=Number,dx=Number.isNaN,fx=Number.isInteger,Fn=t=>sx.test(t),Ve=t=>!!t&&!dx(kp(t)),Rr=t=>!!t&&fx(kp(t)),Uc=t=>t.endsWith("%")&&Ve(t.slice(0,-1)),an=t=>ix.test(t),Sp=()=>!0,hx=t=>ax.test(t)&&!lx.test(t),$d=()=>!1,vx=t=>cx.test(t),px=t=>ux.test(t),gx=t=>!_e(t)&&!Pe(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,Ap,$d),_e=t=>xp.test(t),po=t=>fo(t,Ep,hx),Uf=t=>fo(t,Cx,Ve),yx=t=>fo(t,$p,Sp),wx=t=>fo(t,Tp,$d),qf=t=>fo(t,Pp,$d),xx=t=>fo(t,Cp,px),Qa=t=>fo(t,Op,vx),Pe=t=>_p.test(t),oi=t=>Zo(t,Ep),_x=t=>Zo(t,Tp),Yf=t=>Zo(t,Pp),kx=t=>Zo(t,Ap),Sx=t=>Zo(t,Cp),el=t=>Zo(t,Op,!0),Px=t=>Zo(t,$p,!0),fo=(t,e,r)=>{const n=xp.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Zo=(t,e,r=!1)=>{const n=_p.exec(t);return n?n[1]?e(n[1]):r:!1},Pp=t=>t==="position"||t==="percentage",Cp=t=>t==="image"||t==="url",Ap=t=>t==="length"||t==="size"||t==="bg-size",Ep=t=>t==="length",Cx=t=>t==="number",Tp=t=>t==="family-name",$p=t=>t==="number"||t==="weight",Op=t=>t==="shadow",qc=()=>{const t=yt("color"),e=yt("font"),r=yt("text"),n=yt("font-weight"),o=yt("tracking"),s=yt("leading"),i=yt("breakpoint"),a=yt("container"),c=yt("spacing"),u=yt("radius"),f=yt("shadow"),v=yt("inset-shadow"),h=yt("text-shadow"),p=yt("drop-shadow"),g=yt("blur"),b=yt("perspective"),y=yt("aspect"),w=yt("ease"),P=yt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...C(),Pe,_e],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],x=()=>[Pe,_e,c],L=()=>[Fn,"full","auto",...x()],H=()=>[Rr,"none","subgrid",Pe,_e],he=()=>["auto",{span:["full",Rr,Pe,_e]},Rr,Pe,_e],Q=()=>[Rr,"auto",Pe,_e],ue=()=>["auto","min","max","fr",Pe,_e],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...x()],q=()=>[Fn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],Z=()=>[Fn,"screen","full","dvw","lvw","svw","min","max","fit",...x()],le=()=>[Fn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],T=()=>[t,Pe,_e],we=()=>[...C(),Yf,qf,{position:[Pe,_e]}],$e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",kx,bx,{size:[Pe,_e]}],de=()=>[Uc,oi,po],te=()=>["","none","full",u,Pe,_e],me=()=>["",Ve,oi,po],V=()=>["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"],j=()=>[Ve,Uc,Yf,qf],X=()=>["","none",g,Pe,_e],G=()=>["none",Ve,Pe,_e],U=()=>["none",Ve,Pe,_e],fe=()=>[Ve,Pe,_e],z=()=>[Fn,"full",...x()];return{theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[an],breakpoint:[an],color:[Sp],container:[an],"drop-shadow":[an],ease:["in","out","in-out"],font:[gx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[an],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[an],shadow:[an],spacing:["px",Ve],text:[an],"text-shadow":[an],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fn,_e,Pe,y]}],container:["container"],"container-type":[{"@container":["","normal","size",Pe,_e]}],"container-named":[mx],columns:[{columns:[Ve,_e,Pe,a]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Rr,"auto",Pe,_e]}],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:[Ve,Fn,"auto","initial","none",_e]}],grow:[{grow:["",Ve,Pe,_e]}],shrink:[{shrink:["",Ve,Pe,_e]}],order:[{order:[Rr,"first","last","none",Pe,_e]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[a,"screen",...q()]}],"min-w":[{"min-w":[a,"screen","none",...q()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",r,oi,po]}],"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",Uc,_e]}],"font-family":[{font:[_x,wx,e]}],"font-features":[{"font-features":[_e]}],"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,Pe,_e]}],"line-clamp":[{"line-clamp":[Ve,"none",Pe,Uf]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",Pe,_e]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Pe,_e]}],"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:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ve,"from-font","auto",Pe,po]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Ve,"auto",Pe,_e]}],"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,Pe,_e]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe,_e]}],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",Pe,_e]}],"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:$e()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rr,Pe,_e],radial:["",Pe,_e],conic:[Rr,Pe,_e]},Sx,xx]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"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:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"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:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ve,Pe,_e]}],"outline-w":[{outline:["",Ve,oi,po]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",f,el,Qa]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",v,el,Qa]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Ve,po]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",h,el,Qa]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Ve,Pe,_e]}],"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":[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":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"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":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"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":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"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":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"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":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"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":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"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":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Pe,_e]}],"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":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":C()}],"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":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:we()}],"mask-repeat":[{mask:$e()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Pe,_e]}],filter:[{filter:["","none",Pe,_e]}],blur:[{blur:X()}],brightness:[{brightness:[Ve,Pe,_e]}],contrast:[{contrast:[Ve,Pe,_e]}],"drop-shadow":[{"drop-shadow":["","none",p,el,Qa]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Ve,Pe,_e]}],"hue-rotate":[{"hue-rotate":[Ve,Pe,_e]}],invert:[{invert:["",Ve,Pe,_e]}],saturate:[{saturate:[Ve,Pe,_e]}],sepia:[{sepia:["",Ve,Pe,_e]}],"backdrop-filter":[{"backdrop-filter":["","none",Pe,_e]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[Ve,Pe,_e]}],"backdrop-contrast":[{"backdrop-contrast":[Ve,Pe,_e]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ve,Pe,_e]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ve,Pe,_e]}],"backdrop-invert":[{"backdrop-invert":["",Ve,Pe,_e]}],"backdrop-opacity":[{"backdrop-opacity":[Ve,Pe,_e]}],"backdrop-saturate":[{"backdrop-saturate":[Ve,Pe,_e]}],"backdrop-sepia":[{"backdrop-sepia":["",Ve,Pe,_e]}],"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",Pe,_e]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ve,"initial",Pe,_e]}],ease:[{ease:["linear","initial",w,Pe,_e]}],delay:[{delay:[Ve,Pe,_e]}],animate:[{animate:["none",P,Pe,_e]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Pe,_e]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[Pe,_e,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],zoom:[{zoom:[Rr,Pe,_e]}],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",Pe,_e]}],"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",Pe,_e]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Ve,oi,po,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={}})=>(tl(t.theme,r.theme),tl(t.classGroups,r.classGroups),tl(t.conflictingClassGroups,r.conflictingClassGroups),tl(t.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Tu(t,"postfixLookupClassGroups",r.postfixLookupClassGroups),Tu(t,"orderSensitiveModifiers",r.orderSensitiveModifiers),rl(t.theme,e.theme),rl(t.classGroups,e.classGroups),rl(t.conflictingClassGroups,e.conflictingClassGroups),rl(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),$u(t,e,"postfixLookupClassGroups"),$u(t,e,"orderSensitiveModifiers"),t),Tu=(t,e,r)=>{r!==void 0&&(t[e]=r)},tl=(t,e)=>{if(e)for(const r in e)Tu(t,r,e[r])},rl=(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)},Mp=t=>Kf(t?typeof t=="function"?()=>t(qc()):()=>Ax(qc(),t):qc),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=Mp(e);return n=>r.mergeString(n)},ml,$x=()=>(ml||(ml=Mp()),ml),Ox=()=>((!jt.cachedTwMerge||jt.didTwMergeConfigChange)&&(jt.didTwMergeConfigChange=!1,jt.cachedTwMerge=Tx(jt.cachedTwMergeConfig)),jt.cachedTwMerge),Mx=t=>{const e=t==null?void 0:t.twMergeConfig;!e||br(e)||lp(e,jt.cachedTwMergeConfig)||(jt.cachedTwMergeConfig=e,jt.didTwMergeConfigChange=!0)},Ix=t=>Tc(t),Nx=jt.reset.bind(jt);jt.reset=()=>{ml=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))?Ox():$x().mergeString)(r)||void 0)},Rx=(t,...e)=>zx(e,t),Fx=Ow(Rx),Od=Fx.tv;const Lx=Od({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=ee("
");function Md(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=I(e,"variant",3,"default"),o=Ge(e,Dx);var s=Bx();Ye(s,a=>({"data-slot":"alert",role:"alert",class:a,...o}),[()=>He(Lx({variant:n()}),e.class)]);var i=F(s);De(i,()=>e.children??Fe),gt(s,a=>r(a),()=>r()),m(t,s),Ie()}var Vx=new Set(["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]),Xf=ee("");function Ll(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=I(e,"value",15),o=I(e,"files",15),s=I(e,"data-slot",3,"input"),i=Ge(e,Vx);var a=re(),c=E(a);{var u=v=>{var h=Xf();Ye(h,p=>({"data-slot":s(),class:p,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),gt(h,p=>r(p),()=>r()),Wb(h,o),If(h,n),m(v,h)},f=v=>{var h=Xf();Ye(h,p=>({"data-slot":s(),class:p,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),gt(h,p=>r(p),()=>r()),If(h,n),m(v,h)};Ne(c,v=>{e.type==="file"?v(u):v(f,-1)})}m(t,a),Ie()}function Wx(t){return typeof t=="function"}function Wa(t){return t!==null&&typeof t=="object"}const jx=["string","number","bigint","boolean"];function Ou(t){return t==null||jx.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>Ou(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const Hs=Symbol("box"),$c=Symbol("is-writable");function ge(t,e){const r=B(t);return e?{[Hs]:!0,[$c]:!0,get current(){return d(r)},set current(n){e(n)}}:{[Hs]:!0,get current(){return t()}}}function ja(t){return Wa(t)&&Hs in t}function Id(t){return ja(t)&&$c in t}function Ip(t){return ja(t)?t:Wx(t)?ge(t):Hr(t)}function Gx(t){return Object.entries(t).reduce((e,[r,n])=>ja(n)?(Id(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 Id(t)?{[Hs]:!0,get current(){return t.current}}:t}function Hr(t){let e=Ae(Qt(t));return{[Hs]:!0,[$c]:!0,get current(){return d(e)},set current(r){M(e,r,!0)}}}function Jo(t){let e=Ae(Qt(t));return{[Hs]:!0,[$c]:!0,get current(){return d(e)},set current(r){M(e,r,!0)}}}Jo.from=Ip;Jo.with=ge;Jo.flatten=Gx;Jo.readonly=Hx;Jo.isBox=ja;Jo.isWritableBox=Id;function Np(...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(g){var b=g.match(Kx);b&&(r+=b.length);var y=g.lastIndexOf(Qx);n=~y?g.length-y:n+g.length}function s(){var g={line:r,column:n};return function(b){return b.position=new i(g),u(),b}}function i(g){this.start=g,this.end={line:r,column:n},this.source=e.source}i.prototype.content=t;function a(g){var b=new Error(e.source+":"+r+":"+n+": "+g);if(b.reason=g,b.filename=e.source,b.line=r,b.column=n,b.source=t,!e.silent)throw b}function c(g){var b=g.exec(t);if(b){var y=b[0];return o(y),t=t.slice(y.length),b}}function u(){c(Ux)}function f(g){var b;for(g=g||[];b=v();)b!==!1&&g.push(b);return g}function v(){var g=s();if(!(Jf!=t.charAt(0)||Qf!=t.charAt(1))){for(var b=2;_o!=t.charAt(b)&&(Qf!=t.charAt(b)||Jf!=t.charAt(b+1));)++b;if(b+=2,_o===t.charAt(b-1))return a("End of comment missing");var y=t.slice(2,b-2);return n+=2,o(y),t=t.slice(b),n+=2,g({type:e_,comment:y})}}function h(){var g=s(),b=c(qx);if(b){if(v(),!c(Yx))return a("property missing ':'");var y=c(Xx),w=g({type:t_,property:eh(b[0].replace(Zf,_o)),value:y?eh(y[0].replace(Zf,_o)):_o});return c(Zx),w}}function p(){var g=[];f(g);for(var b;b=h();)b!==!1&&(g.push(b),f(g));return g}return u(),p()}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 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 zp(t){return t?a_(t).map(e=>c_(e)).join(""):""}function l_(t){return u_(zp(t||""))}function c_(t){return t?t[0].toUpperCase()+t.slice(1):""}function u_(t){return t?t[0].toLowerCase()+t.slice(1):""}function vi(t){if(!t)return{};const e={};function r(n,o){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){e[zp(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 Rp(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"],p_=new Set(v_);function g_(t){return p_.has(t)}function Xr(...t){const e={...t[0]};for(let r=1;ru.has(h)));f&&Wr(c)}return a}delete(r){var n=l(this,Dr),o=n.get(r),s=super.delete(r);return o!==void 0&&(n.delete(r),M(o,-1)),s&&(M(l(this,hn),super.size),Wr(l(this,Br))),s}clear(){if(super.size!==0){super.clear();var r=l(this,Dr);M(l(this,hn),0);for(var n of r.values())M(n,-1);Wr(l(this,Br)),r.clear()}}keys(){return d(l(this,Br)),super.keys()}values(){return K(this,Or,bl).call(this),super.values()}entries(){return K(this,Or,bl).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return d(l(this,hn)),super.size}};Dr=new WeakMap,Br=new WeakMap,hn=new WeakMap,Ql=new WeakMap,Or=new WeakSet,pi=function(r){return Cn===l(this,Ql)?Ae(r):Tn(r)},bl=function(){d(l(this,Br));var r=l(this,Dr);if(l(this,hn).v!==r.size){for(var n of vf(Jd.prototype,this,"keys").call(this))if(!r.has(n)){var o=K(this,Or,pi).call(this,0);r.set(n,o)}}for([,o]of l(this,Dr))d(o)};let Mu=Jd;var ks,Mi;class b_{constructor(e={}){_(this,ks);_(this,Mi);const{window:r=Fp,document:n=r==null?void 0:r.document}=e;r!==void 0&&(O(this,ks,n),O(this,Mi,fd(o=>{const s=Lt(r,"focusin",o),i=Lt(r,"focusout",o);return()=>{s(),i()}})))}get current(){var e;return(e=l(this,Mi))==null||e.call(this),l(this,ks)?m_(l(this,ks)):null}}ks=new WeakMap,Mi=new WeakMap;new b_;function y_(t){return typeof t=="function"}var Ii,vn;class Qo{constructor(e){_(this,Ii);_(this,vn);O(this,Ii,e),O(this,vn,Symbol(e))}get key(){return l(this,vn)}exists(){return Mm(l(this,vn))}get(){const e=gf(l(this,vn));if(e===void 0)throw new Error(`Context "${l(this,Ii)}" not found`);return e}getOr(e){const r=gf(l(this,vn));return r===void 0?e:r}set(e){return Om(l(this,vn),e)}}Ii=new WeakMap,vn=new WeakMap;function w_(t,e){switch(t){case"post":ct(e);break;case"pre":wv(e);break}}function Lp(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 c=Sr(()=>r(a,i));return i=a,c})}function cr(t,e,r){Lp(t,"post",e,r)}function x_(t,e,r){Lp(t,"pre",e,r)}cr.pre=x_;function th(t){return y_(t)?t():t}var Gn,Ss,Ps,Cs,Hn,ec,tc,As;class __{constructor(e,r={box:"border-box"}){_(this,Gn,{width:0,height:0});_(this,Ss,!1);_(this,Ps);_(this,Cs);_(this,Hn);_(this,ec,B(()=>{var e;return(e=d(l(this,As)))==null||e(),this.getSize().width}));_(this,tc,B(()=>{var e;return(e=d(l(this,As)))==null||e(),this.getSize().height}));_(this,As,B(()=>{const e=th(l(this,Cs));if(e)return fd(r=>{if(!l(this,Hn))return;const n=new(l(this,Hn)).ResizeObserver(o=>{O(this,Ss,!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,Gn).width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),l(this,Gn).height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}r()});return n.observe(e),()=>{O(this,Ss,!1),n.disconnect()}})}));O(this,Hn,r.window??Fp),O(this,Ps,r),O(this,Cs,e),O(this,Gn,{width:0,height:0})}calculateSize(){const e=th(l(this,Cs));if(!e||!l(this,Hn))return;const r=e.offsetWidth,n=e.offsetHeight;if(l(this,Ps).box==="border-box")return{width:r,height:n};const o=l(this,Hn).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,Ss)?l(this,Gn):this.calculateSize()??l(this,Gn)}get current(){var e;return(e=d(l(this,As)))==null||e(),this.getSize()}get width(){return d(l(this,ec))}get height(){return d(l(this,tc))}}Gn=new WeakMap,Ss=new WeakMap,Ps=new WeakMap,Cs=new WeakMap,Hn=new WeakMap,ec=new WeakMap,tc=new WeakMap,As=new WeakMap;function es(t){ct(()=>()=>{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 Wa(t)&&t.nodeType===S_&&typeof t.nodeName=="string"}function Dp(t){return Wa(t)&&t.nodeType===P_}function A_(t){var e;return Wa(t)&&((e=t.constructor)==null?void 0:e.name)==="VisualViewport"}function E_(t){return Wa(t)&&t.nodeType!==void 0}function Bp(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&&Bp(r)){let o=e;for(;o;){if(t===o)return!0;o=o.parentNode||o.host}}return!1}function Ga(t){return Dp(t)?t:A_(t)?t.document:(t==null?void 0:t.ownerDocument)??document}function Vp(t){var e;return Bp(t)?Vp(t.host):Dp(t)?t.defaultView??window:Iu(t)?((e=t.ownerDocument)==null?void 0:e.defaultView)??window:window}function $_(t){let e=t.activeElement;for(;e!=null&&e.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}var Ni;class Nd{constructor(e){ie(this,"element");_(this,Ni,B(()=>this.element.current?this.element.current.getRootNode()??document:document));ie(this,"getDocument",()=>Ga(this.root));ie(this,"getWindow",()=>this.getDocument().defaultView??window);ie(this,"getActiveElement",()=>$_(this.root));ie(this,"isActiveElement",e=>e===this.getActiveElement());ie(this,"querySelector",e=>this.root?this.root.querySelector(e):null);ie(this,"querySelectorAll",e=>this.root?this.root.querySelectorAll(e):[]);ie(this,"setTimeout",(e,r)=>this.getWindow().setTimeout(e,r));ie(this,"clearTimeout",e=>this.getWindow().clearTimeout(e));typeof e=="function"?this.element=ge(e):this.element=e}get root(){return d(l(this,Ni))}set root(e){M(l(this,Ni),e)}getElementById(e){return this.root.getElementById(e)}}Ni=new WeakMap;function no(t,e){return{[fb()]:r=>ja(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 Wp(t){return t?"true":"false"}function jp(t){return t?"":void 0}function Gp(t){return t?"open":"closed"}function O_(t){return t==="starting"?{"data-starting-style":""}:t==="ending"?{"data-ending-style":""}:{}}var Es,zi;class M_{constructor(e){_(this,Es);_(this,zi);ie(this,"attrs");O(this,Es,e.getVariant?e.getVariant():null),O(this,zi,l(this,Es)?`data-${l(this,Es)}-`:`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,zi)}${e}`}selector(e,r){return`[${this.getAttr(e,r)}]`}}Es=new WeakMap,zi=new WeakMap;function Hp(t){const e=new M_(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}const Si="ArrowDown",zd="ArrowLeft",Rd="ArrowRight",Dl="ArrowUp",Kp="End",Up="Enter",I_="Escape",qp="Home",N_="PageDown",z_="PageUp",Fd=" ",R_="Tab";function F_(t){return window.getComputedStyle(t).getPropertyValue("direction")}function L_(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?zd:Rd,vertical:Si}[e]}function D_(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?Rd:zd,vertical:Dl}[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 Yp=typeof document<"u",rh=V_();function V_(){var t,e;return Yp&&((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 xi(t){return t instanceof Element}function Xp(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 zt,pn;class G_{constructor(e){_(this,zt);_(this,pn,Jo(null));O(this,zt,e)}getCandidateNodes(){return l(this,zt).rootNode.current?l(this,zt).candidateSelector?Array.from(l(this,zt).rootNode.current.querySelectorAll(l(this,zt).candidateSelector)):l(this,zt).candidateAttr?Array.from(l(this,zt).rootNode.current.querySelectorAll(`[${l(this,zt).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 g,b;const o=l(this,zt).rootNode.current;if(!o||!e)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(e),a=F_(o),{nextKey:c,prevKey:u}=B_(a,l(this,zt).orientation.current),f=l(this,zt).loop.current,v={[c]:i+1,[u]:i-1,[qp]:0,[Kp]:s.length-1};if(n){const y=c===Si?Rd:Si,w=u===Dl?zd:Dl;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 p=s[h];if(p)return p.focus(),l(this,pn).current=p.id,(b=(g=l(this,zt)).onCandidateFocus)==null||b.call(g,p),p}getTabIndex(e){const r=this.getCandidateNodes(),n=l(this,pn).current!==null;return e&&!n&&r[0]===e?(l(this,pn).current=e.id,0):(e==null?void 0:e.id)===l(this,pn).current?0:-1}setCurrentTabStopId(e){l(this,pn).current=e}focusCurrentTabStop(){var n;const e=l(this,pn).current;if(!e)return;const r=(n=l(this,zt).rootNode.current)==null?void 0:n.querySelector(`#${e}`);!r||!so(r)||r.focus()}}zt=new WeakMap,pn=new WeakMap;var Oo,Vr,gn,mn,lo,Nu,zu;class H_{constructor(e){_(this,lo);_(this,Oo);_(this,Vr,null);_(this,gn,null);_(this,mn,0);O(this,Oo,e),es(()=>K(this,lo,Nu).call(this))}run(e){K(this,lo,Nu).call(this);const r=l(this,Oo).ref.current;if(!r)return;if(typeof r.getAnimations!="function"){K(this,lo,zu).call(this,e);return}const n=l(this,mn),o=()=>{n===l(this,mn)&&K(this,lo,zu).call(this,e)},s=()=>{if(n!==l(this,mn))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,mn))return;if(r.getAnimations().some(f=>f.pending||f.playState!=="finished")){s();return}o()})},i=()=>{O(this,Vr,window.requestAnimationFrame(()=>{O(this,Vr,null),s()}))};if(!l(this,Oo).afterTick.current){i();return}O(this,Vr,window.requestAnimationFrame(()=>{O(this,Vr,null);const a="data-starting-style";if(!r.hasAttribute(a)){i();return}O(this,gn,new MutationObserver(()=>{var c;n===l(this,mn)&&(r.hasAttribute(a)||((c=l(this,gn))==null||c.disconnect(),O(this,gn,null),i()))})),l(this,gn).observe(r,{attributes:!0,attributeFilter:[a]})}))}}Oo=new WeakMap,Vr=new WeakMap,gn=new WeakMap,mn=new WeakMap,lo=new WeakSet,Nu=function(){var e;l(this,Vr)!==null&&(window.cancelAnimationFrame(l(this,Vr)),O(this,Vr,null)),(e=l(this,gn))==null||e.disconnect(),O(this,gn,null),hf(this,mn)._++},zu=function(e){const r=()=>{e()};l(this,Oo).afterTick?jr(r):r()};var Ut,Ri,Fi,bn,yn,Li,Kn,Di,Ru;class K_{constructor(e){_(this,Di);_(this,Ut);_(this,Ri);_(this,Fi);_(this,bn,Ae(!1));_(this,yn,Ae(void 0));_(this,Li,!1);_(this,Kn,null);O(this,Ut,e),M(l(this,bn),e.open.current,!0),O(this,Ri,e.enabled??!0),O(this,Fi,new H_({ref:l(this,Ut).ref,afterTick:l(this,Ut).open})),es(()=>K(this,Di,Ru).call(this)),cr(()=>l(this,Ut).open.current,r=>{var n,o,s,i,a,c;if(!l(this,Li)){O(this,Li,!0);return}if(K(this,Di,Ru).call(this),!r&&((o=(n=l(this,Ut)).shouldSkipExitAnimation)!=null&&o.call(n))){M(l(this,bn),!1),M(l(this,yn),void 0),(i=(s=l(this,Ut)).onComplete)==null||i.call(s);return}if(r&&M(l(this,bn),!0),M(l(this,yn),r?"starting":"ending",!0),r&&O(this,Kn,window.requestAnimationFrame(()=>{O(this,Kn,null),l(this,Ut).open.current&&M(l(this,yn),void 0)})),!l(this,Ri)){r||M(l(this,bn),!1),M(l(this,yn),void 0),(c=(a=l(this,Ut)).onComplete)==null||c.call(a);return}l(this,Fi).run(()=>{var u,f;r===l(this,Ut).open.current&&(l(this,Ut).open.current||M(l(this,bn),!1),M(l(this,yn),void 0),(f=(u=l(this,Ut)).onComplete)==null||f.call(u))})})}get shouldRender(){return d(l(this,bn))}get transitionStatus(){return d(l(this,yn))}}Ut=new WeakMap,Ri=new WeakMap,Fi=new WeakMap,bn=new WeakMap,yn=new WeakMap,Li=new WeakMap,Kn=new WeakMap,Di=new WeakSet,Ru=function(){l(this,Kn)!==null&&(window.cancelAnimationFrame(l(this,Kn)),O(this,Kn,null))};function vt(){}function Ha(t,e){return`bits-${t}`}function U_(t,e){var r=re(),n=E(r);Dv(n,()=>e.children,o=>{var s=re(),i=E(s);De(i,()=>e.children??Fe),m(o,s)}),m(t,r)}const q_=new Qo("BitsConfig");function Y_(){const t=new X_(null,{});return q_.getOr(t).opts}class X_{constructor(e,r){ie(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=>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=Y_();return ge(()=>{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=B(s);function s(){if(!Yp||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 c=re(),u=E(c);{var f=v=>{var h=re(),p=E(h);De(p,()=>e.children??Fe),m(v,h)};Ne(u,v=>{e.disabled&&v(f)})}m(t,c),Ie()}class t0{constructor(e,r={bubbles:!0,cancelable:!0}){ie(this,"eventName");ie(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 Lt(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 Zp(t,e){return t===e||t.contains(e)}function Jp(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=[Up,Fd],o0=[Si,z_,qp],Qp=[Dl,N_,Kp],s0=[...o0,...Qp];function ln(t){return t.pointerType==="mouse"}function i0(t,{select:e=!1}={}){if(!t||!t.focus)return;const r=Ga(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 si=Ae(!1);const dr=class dr{constructor(){ct(()=>(dr._refs===0&&(dr._cleanup=xv(()=>{const e=[],r=o=>{M(si,!1)},n=o=>{M(si,!0)};return e.push(Lt(document,"pointerdown",r,{capture:!0}),Lt(document,"pointermove",r,{capture:!0}),Lt(document,"keydown",n,{capture:!0})),hs(...e)})),dr._refs++,()=>{var e;dr._refs--,dr._refs===0&&(M(si,!1),(e=dr._cleanup)==null||e.call(dr))}))}get current(){return d(si)}set current(e){M(si,e,!0)}};ie(dr,"_refs",0),ie(dr,"_cleanup");let Fu=dr;/*! +* tabbable 6.5.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var eg=["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] *)"],Bl=eg.join(","),tg=typeof Element>"u",Go=tg?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Vl=!tg&&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},Wl=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]"):Wl(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"},rg=function(e,r,n){if(Wl(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Bl));return r&&Go.call(e,Bl)&&o.unshift(e),o=o.filter(n),o},jl=function(e,r,n){for(var o=[],s=Array.from(e);s.length;){var i=s.shift();if(!Wl(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,u=jl(c,!0,n);n.flatten?o.push.apply(o,u):o.push({scopeParent:i,candidates:u})}else{var f=Go.call(i,Bl);f&&n.filter(i)&&(r||!e.includes(i))&&o.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Wl(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(v&&h){var p=jl(v===!0?i.children:v.children,!0,n);n.flatten?o.push.apply(o,p):o.push({scopeParent:i,candidates:p})}else s.unshift.apply(s,i.children)}}return o},ng=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},og=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||l0(e))&&!ng(e)?0:e.tabIndex},c0=function(e,r){var n=og(e);return n<0&&r&&!ng(e)?0:n},u0=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},sg=function(e){return e.tagName==="INPUT"},d0=function(e){return sg(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=c?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=Vl(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)},ig=function(e){var r=[],n=[];return e.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=c0(a,i),u=i?ig(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(u0).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(r)},ag=function(e,r){r=r||{};var n;return r.getShadowRoot?n=jl([e],r.includeContainer,{filter:Lu.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:w0}):n=rg(e,r.includeContainer,Lu.bind(null,r)),ig(n)},lg=function(e,r){r=r||{};var n;return r.getShadowRoot?n=jl([e],r.includeContainer,{filter:Gl.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=rg(e,r.includeContainer,Gl.bind(null,r)),n},Ld=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Go.call(e,Bl)===!1?!1:Lu(r,e)},x0=eg.concat("iframe:not([inert]):not([inert] *)").join(","),cg=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Go.call(e,x0)===!1?!1:Gl(r,e)};function _i(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function _0(t,e){if(!Ld(t,_i()))return k0(t,e);const r=Ga(t),n=ag(r.body,_i());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=Ga(t);if(!cg(t,_i()))return r.body;const n=lg(r.body,_i());e==="prev"&&n.reverse();const o=n.indexOf(t);return o===-1?r.body:n.slice(o+1).find(i=>Ld(i,_i()))??r.body}function ug(t,e,r){const n=e.toLowerCase();if(n.endsWith(" ")){const v=n.slice(0,-1);if(t.filter(b=>b.toLowerCase().startsWith(v)).length<=1)return ug(t,v,r);const p=r==null?void 0:r.toLowerCase();if(p&&p.startsWith(v)&&p.charAt(v.length)===" "&&e.trim()===v)return r;const g=t.filter(b=>b.toLowerCase().startsWith(n));if(g.length>0){const b=r?t.indexOf(r):-1;return sh(g,Math.max(b,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 c=sh(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 sh(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const S0={afterMs:1e4,onChange:vt};function P0(t,e){const{afterMs:r,onChange:n,getWindow:o}={...S0,...e};let s=null,i=Ae(Qt(t));function a(){return o().setTimeout(()=>{M(i,t,!0),n==null||n(t)},r)}return ct(()=>()=>{s&&o().clearTimeout(s)}),ge(()=>d(i),c=>{M(i,c,!0),n==null||n(c),s&&o().clearTimeout(s),s=a()})}var wn,xn,rc,nc;class C0{constructor(e){_(this,wn);_(this,xn);_(this,rc,B(()=>l(this,wn).onMatch?l(this,wn).onMatch:e=>e.focus()));_(this,nc,B(()=>l(this,wn).getCurrentItem?l(this,wn).getCurrentItem:l(this,wn).getActiveElement));O(this,wn,e),O(this,xn,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,xn).current=l(this,xn).current+e;const n=d(l(this,nc))(),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=ug(s,l(this,xn).current,o),a=r.find(f=>{var v;return((v=f.textContent)==null?void 0:v.trim())===i});return a&&d(l(this,rc))(a),a}resetTypeahead(){l(this,xn).current=""}get search(){return l(this,xn).current}}wn=new WeakMap,xn=new WeakMap,rc=new WeakMap,nc=new WeakMap;const A0="data-context-menu-trigger",E0="data-context-menu-content",dg=new Qo("Menu.Root"),Dd=new Qo("Menu.Root | Menu.Sub"),fg=new Qo("Menu.Content"),T0=new t0("bitsmenuopen",{bubbles:!1,cancelable:!0}),$0=Hp({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});var Qe,Mo,Un,qt,gr,Io,_n,Ts,Te,hg,yl,Du,Bu,Vu,qn,gi,wl,mi,xl,vg,Bi,pg,_l,kl,ls,Sl;class O0{constructor(e){_(this,Te);_(this,Qe);_(this,Mo,null);_(this,Un,null);_(this,qt,!1);_(this,gr,null);_(this,Io,null);_(this,_n,null);_(this,Ts,null);_(this,qn,null);_(this,Bi,e=>{if(!l(this,qt)||!l(this,gr)||!ln(e))return;const r=l(this,Qe).triggerNode(),n=l(this,Qe).contentNode();if(!r||!n){K(this,Te,mi).call(this);return}K(this,Te,ls).call(this);const o={x:e.clientX,y:e.clientY};O(this,_n,o);const s=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(l(this,gr)==="content"&&ah(o,i)){K(this,Te,gi).call(this);return}if(l(this,gr)==="trigger"&&M0(o,s,4)){K(this,Te,gi).call(this);return}if(K(this,Te,vg).call(this,o)){K(this,Te,kl).call(this);return}const a=K(this,Te,yl).call(this,o,l(this,gr));if(!a){K(this,Te,mi).call(this);return}if(K(this,Te,Du).call(this,o,a.corridor,a.intent)){K(this,Te,kl).call(this);return}K(this,Te,mi).call(this)});O(this,Qe,e),cr([e.triggerNode,e.contentNode,e.enabled],([r,n,o])=>{if(K(this,Te,xl).call(this),!r||!n||!o)return;const s=v=>{ln(v)&&(O(this,Ts,{x:v.clientX,y:v.clientY}),l(this,qt)||K(this,Te,Bu).call(this,v,"content"))},i=v=>{ln(v)&&K(this,Te,Vu).call(this,v,"content")},a=v=>{ln(v)&&(l(this,qt)||K(this,Te,Bu).call(this,v,"trigger"))},c=v=>{if(ln(v)){if(xi(v.relatedTarget)){const h=l(this,Qe).subContentSelector(),p=v.relatedTarget.closest(h);if(p&&p!==n&&p.id&&!!n.querySelector(`[aria-controls="${p.id}"]`))return}K(this,Te,Vu).call(this,v,"trigger")}},u=v=>{ln(v)&&K(this,Te,gi).call(this)},f=v=>{ln(v)&&K(this,Te,gi).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),K(this,Te,xl).call(this)}}),es(()=>{K(this,Te,xl).call(this)})}}Qe=new WeakMap,Mo=new WeakMap,Un=new WeakMap,qt=new WeakMap,gr=new WeakMap,Io=new WeakMap,_n=new WeakMap,Ts=new WeakMap,Te=new WeakSet,hg=function(){var r;const e=l(this,Qe).parentContentNode();return e?e.getBoundingClientRect():((r=l(this,Qe).triggerNode())==null?void 0:r.getBoundingClientRect())??null},yl=function(e,r){const n=l(this,Qe).triggerNode(),o=l(this,Qe).contentNode();if(!n||!o)return null;const s=n.getBoundingClientRect(),i=o.getBoundingClientRect(),a=I0(s,i);let c,u,f;return r==="content"?(c=l(this,qt)?l(this,Io)??e:e,u=i):(c=l(this,Ts)??e,u=K(this,Te,hg).call(this)??s,f=i),O(this,Io,c),{corridor:N0(s,i,a),intent:z0(c,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};K(this,Te,yl).call(this,n,r)&&(O(this,gr,r),O(this,_n,n))},Vu=function(e,r){if(!l(this,Qe).enabled())return;const n=l(this,Qe).triggerNode(),o=l(this,Qe).contentNode();if(!n||!o)return;const s=e.relatedTarget;if(xi(s)&&(r==="content"&&o.contains(s)||r==="trigger"&&n.contains(s)))return;const i={x:e.clientX,y:e.clientY},a=K(this,Te,yl).call(this,i,r);if(a){if(!ah(i,a.targetRect)&&!K(this,Te,Du).call(this,i,a.corridor,a.intent)){K(this,Te,Sl).call(this);return}O(this,qt,!0),O(this,gr,r),O(this,_n,i),l(this,Qe).setIsPointerInTransit(!0),K(this,Te,pg).call(this),K(this,Te,kl).call(this)}},qn=new WeakMap,gi=function(){if(!l(this,qt))return;const e=l(this,gr)==="trigger";K(this,Te,_l).call(this),K(this,Te,ls).call(this),O(this,qt,!1),K(this,Te,Sl).call(this),e?(K(this,Te,wl).call(this),O(this,qn,setTimeout(()=>{O(this,qn,null),l(this,Qe).setIsPointerInTransit(!1)},100))):l(this,Qe).setIsPointerInTransit(!1)},wl=function(){l(this,qn)!==null&&(clearTimeout(l(this,qn)),O(this,qn,null))},mi=function(){const e=l(this,_n);K(this,Te,_l).call(this),K(this,Te,ls).call(this),K(this,Te,wl).call(this),O(this,qt,!1),l(this,Qe).setIsPointerInTransit(!1),K(this,Te,Sl).call(this),l(this,Qe).onIntentExit(e)},xl=function(){K(this,Te,_l).call(this),K(this,Te,ls).call(this),K(this,Te,wl).call(this),l(this,qt)&&l(this,Qe).setIsPointerInTransit(!1),O(this,qt,!1),O(this,gr,null),O(this,Io,null),O(this,_n,null),O(this,Ts,null)},vg=function(e){const r=l(this,Qe).contentNode();if(!r)return!1;const o=r.ownerDocument.elementFromPoint(e.x,e.y);if(!o)return!1;const s=l(this,Qe).subContentSelector(),i=o.closest(s);return!i||i===r?!1:i.id?!!r.querySelector(`[aria-controls="${i.id}"]`):!1},Bi=new WeakMap,pg=function(){if(l(this,Mo))return;const e=Ga(l(this,Qe).triggerNode()??l(this,Qe).contentNode());e&&(e.addEventListener("pointermove",l(this,Bi),!0),O(this,Mo,()=>{e.removeEventListener("pointermove",l(this,Bi),!0),O(this,Mo,null)}))},_l=function(){var e;(e=l(this,Mo))==null||e.call(this)},kl=function(){K(this,Te,ls).call(this),O(this,Un,setTimeout(()=>{O(this,Un,null),l(this,qt)&&K(this,Te,mi).call(this)},500))},ls=function(){l(this,Un)!==null&&(clearTimeout(l(this,Un)),O(this,Un,null))},Sl=function(){O(this,gr,null),O(this,Io,null),O(this,_n,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-c)/(f-c)+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,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 R0(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}var Vi,Wi;const Qd=class Qd{constructor(e){ie(this,"opts");ie(this,"isUsingKeyboard",new Fu);_(this,Vi,Ae(!1));_(this,Wi,Ae(!1));ie(this,"getBitsAttr",e=>$0.getAttr(e,this.opts.variant.current));this.opts=e}static create(e){const r=new Qd(e);return dg.set(r)}get ignoreCloseAutoFocus(){return d(l(this,Vi))}set ignoreCloseAutoFocus(e){M(l(this,Vi),e,!0)}get isPointerInTransit(){return d(l(this,Wi))}set isPointerInTransit(e){M(l(this,Wi),e,!0)}};Vi=new WeakMap,Wi=new WeakMap;let Wu=Qd;var ji,Gi;const ef=class ef{constructor(e,r,n){ie(this,"opts");ie(this,"root");ie(this,"parentMenu");ie(this,"contentId",ge(()=>""));_(this,ji,Ae(null));ie(this,"contentPresence");_(this,Gi,Ae(null));this.opts=e,this.root=r,this.parentMenu=n,this.contentPresence=new K_({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&&cr(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}static create(e,r){return Dd.set(new ef(e,r,null))}get contentNode(){return d(l(this,ji))}set contentNode(e){M(l(this,ji),e,!0)}get triggerNode(){return d(l(this,Gi))}set triggerNode(e){M(l(this,Gi),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};ji=new WeakMap,Gi=new WeakMap;let ju=ef;var Hi,Ki,Ui,qi,Yi,Zr,gg,Pl,mg,Xi,Zi;const tf=class tf{constructor(e,r){_(this,Zr);ie(this,"opts");ie(this,"parentMenu");ie(this,"rovingFocusGroup");ie(this,"domContext");ie(this,"attachment");_(this,Hi,Ae(""));_(this,Ki,0);_(this,Ui);_(this,qi,Ae(!1));_(this,Yi);ie(this,"onCloseAutoFocus",e=>{var r,n;if((n=(r=this.opts.onCloseAutoFocus).current)==null||n.call(r,e),!(e.defaultPrevented||l(this,Yi))){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&Ld(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}});_(this,Xi,B(()=>({open:this.parentMenu.opts.open.current})));_(this,Zi,B(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Gp(this.parentMenu.opts.open.current),...O_(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})));ie(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=r,this.domContext=new Nd(e.ref),this.attachment=no(this.opts.ref,n=>{this.parentMenu.contentNode!==n&&(this.parentMenu.contentNode=n)}),r.contentId=e.id,O(this,Yi,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 O0({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,K(this,Zr,mg).call(this,n)},setIsPointerInTransit:n=>{this.parentMenu.root.isPointerInTransit=n}}),O(this,Ui,new C0({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new G_({rootNode:ge(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:ge(()=>"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)}),ct(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(l(this,Ki))})}static create(e){return fg.set(new tf(e,Dd.get()))}get search(){return d(l(this,Hi))}set search(e){M(l(this,Hi),e,!0)}get mounted(){return d(l(this,qi))}set mounted(e){M(l(this,qi),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 c=K(this,Zr,gg).call(this);o&&!s&&i&&l(this,Ui).call(this,e.key,c),((f=e.target)==null?void 0:f.id)===this.parentMenu.contentId.current&&s0.includes(e.key)&&(e.preventDefault(),Qp.includes(e.key)&&c.reverse(),a0(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){var r,n;xi(e.currentTarget)&&xi(e.target)&&((n=(r=e.currentTarget).contains)!=null&&n.call(r,e.target)||(this.domContext.getWindow().clearTimeout(l(this,Ki)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&jr(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return K(this,Zr,Pl).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||K(this,Zr,Pl).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;const r=this.parentMenu.contentNode;r==null||r.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!K(this,Zr,Pl).call(this)}handleInteractOutside(e){var n;if(!Xp(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(l(this,Xi))}set snippetProps(e){M(l(this,Xi),e)}get props(){return d(l(this,Zi))}set props(e){M(l(this,Zi),e)}};Hi=new WeakMap,Ki=new WeakMap,Ui=new WeakMap,qi=new WeakMap,Yi=new WeakMap,Zr=new WeakSet,gg=function(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},Pl=function(){return this.parentMenu.root.isPointerInTransit},mg=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(!xi(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}))},Xi=new WeakMap,Zi=new WeakMap;let Gu=tf;var $s,Ji;class F0{constructor(e,r){ie(this,"opts");ie(this,"content");ie(this,"attachment");_(this,$s,Ae(!1));_(this,Ji,B(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":Wp(this.opts.disabled.current),"data-disabled":jp(this.opts.disabled.current),"data-highlighted":d(l(this,$s))?"":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&&ln(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||ln(e)&&this.content.onItemLeave(e)}onfocus(e){jr(()=>{e.defaultPrevented||this.opts.disabled.current||M(l(this,$s),!0)})}onblur(e){jr(()=>{e.defaultPrevented||M(l(this,$s),!1)})}get props(){return d(l(this,Ji))}set props(e){M(l(this,Ji),e)}}$s=new WeakMap,Ji=new WeakMap;var Qi,oc,bg,ea;const rf=class rf{constructor(e,r){_(this,oc);ie(this,"opts");ie(this,"item");ie(this,"root");_(this,Qi,!1);_(this,ea,B(()=>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,fg.get());return new rf(e,r)}onkeydown(e){const r=this.item.content.search!=="";if(!(this.item.opts.disabled.current||r&&e.key===Fd)&&n0.includes(e.key)){if(!so(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||K(this,oc,bg).call(this)}onpointerup(e){var r;if(!e.defaultPrevented&&!l(this,Qi)){if(!so(e.currentTarget))return;(r=e.currentTarget)==null||r.click()}}onpointerdown(e){O(this,Qi,!0)}get props(){return d(l(this,ea))}set props(e){M(l(this,ea),e)}};Qi=new WeakMap,oc=new WeakSet,bg=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()},ea=new WeakMap;let Hu=rf;var ta;const nf=class nf{constructor(e,r){ie(this,"opts");ie(this,"root");ie(this,"attachment");_(this,ta,B(()=>({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 nf(e,dg.get())}get props(){return d(l(this,ta))}set props(e){M(l(this,ta),e)}};ta=new WeakMap;let Ku=nf;var sc,ra;const of=class of{constructor(e,r){ie(this,"opts");ie(this,"parentMenu");ie(this,"attachment");ie(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});ie(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())}});ie(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});ie(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Fd||e.key===Up){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===Si&&(this.parentMenu.onOpen(),e.preventDefault())}});_(this,sc,B(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));_(this,ra,B(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":Wp(this.parentMenu.opts.open.current),"aria-controls":d(l(this,sc)),"data-disabled":jp(this.opts.disabled.current),"data-state":Gp(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 of(e,Dd.get())}get props(){return d(l(this,ra))}set props(e){M(l(this,ra),e)}};sc=new WeakMap,ra=new WeakMap;let Uu=of;globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var Os,No,Yn,Ms,Is,Xn,na,kn,ic,Ks,yg,ac,Ns,lc,cc,uc,dc,oa,wg,fc,hc;const sf=class sf{constructor(e){_(this,Ks);ie(this,"opts");_(this,Os);_(this,No);_(this,Yn,{pointerdown:!1});_(this,Ms,!1);_(this,Is,!1);_(this,Xn);_(this,na);_(this,kn,vt);_(this,ic,e=>{e.defaultPrevented||this.opts.ref.current&&jr(()=>{var r,n;!this.opts.ref.current||l(this,dc).call(this,e.target)||e.target&&!l(this,Is)&&((n=(r=l(this,na)).current)==null||n.call(r,e))})});_(this,ac,e=>{let r=e;r.defaultPrevented&&(r=lh(e)),l(this,Os).current(e)});_(this,Ns,nh(e=>{if(!this.opts.ref.current){l(this,kn).call(this);return}const r=this.opts.isValidEvent.current(e,this.opts.ref.current)||B0(e,this.opts.ref.current);if(!l(this,Ms)||K(this,Ks,wg).call(this)||!r){l(this,kn).call(this);return}let n=e;if(n.defaultPrevented&&(n=lh(n)),l(this,No).current!=="close"&&l(this,No).current!=="defer-otherwise-close"){l(this,kn).call(this);return}e.pointerType==="touch"?(l(this,kn).call(this),O(this,kn,Lt(l(this,Xn),"click",l(this,ac),{once:!0}))):l(this,Os).current(n)},10));_(this,lc,e=>{l(this,Yn)[e.type]=!0});_(this,cc,e=>{l(this,Yn)[e.type]=!1});_(this,uc,()=>{this.opts.ref.current&&O(this,Ms,D0(this.opts.ref.current))});_(this,dc,e=>this.opts.ref.current?Zp(this.opts.ref.current,e):!1);_(this,oa,nh(()=>{for(const e in l(this,Yn))l(this,Yn)[e]=!1;O(this,Ms,!1)},20));_(this,fc,()=>{O(this,Is,!0)});_(this,hc,()=>{O(this,Is,!1)});ie(this,"props",{onfocuscapture:l(this,fc),onblurcapture:l(this,hc)});this.opts=e,O(this,No,e.interactOutsideBehavior),O(this,Os,e.onInteractOutside),O(this,na,e.onFocusOutside),ct(()=>{O(this,Xn,Jp(this.opts.ref.current))});let r=vt;const n=()=>{l(this,oa).call(this),globalThis.bitsDismissableLayers.delete(this),l(this,Ns).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,l(this,No)),r(),r=K(this,Ks,yg).call(this))}),n}),es(()=>{l(this,oa).destroy(),globalThis.bitsDismissableLayers.delete(this),l(this,Ns).destroy(),l(this,kn).call(this),r()})}static create(e){return new sf(e)}};Os=new WeakMap,No=new WeakMap,Yn=new WeakMap,Ms=new WeakMap,Is=new WeakMap,Xn=new WeakMap,na=new WeakMap,kn=new WeakMap,ic=new WeakMap,Ks=new WeakSet,yg=function(){return hs(Lt(l(this,Xn),"pointerdown",hs(l(this,lc),l(this,uc)),{capture:!0}),Lt(l(this,Xn),"pointerdown",hs(l(this,cc),l(this,Ns))),Lt(l(this,Xn),"focusin",l(this,ic)))},ac=new WeakMap,Ns=new WeakMap,lc=new WeakMap,cc=new WeakMap,uc=new WeakMap,dc=new WeakMap,oa=new WeakMap,wg=function(){return Object.values(l(this,Yn)).some(Boolean)},fc=new WeakMap,hc=new WeakMap;let qu=sf;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(!Xp(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:Jp(r).documentElement.contains(r)&&!Zp(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=I(e,"interactOutsideBehavior",3,"close"),n=I(e,"onInteractOutside",3,vt),o=I(e,"onFocusOutside",3,vt),s=I(e,"isValidEvent",3,()=>!1);const i=qu.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=re(),c=E(a);De(c,()=>e.children??Fe,()=>({props:i.props})),m(t,a),Ie()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var vc,pc;const af=class af{constructor(e){ie(this,"opts");ie(this,"domContext");_(this,vc,()=>Lt(this.domContext.getDocument(),"keydown",l(this,pc),{passive:!1}));_(this,pc,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 Nd(this.opts.ref);let r=vt;cr(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),r=l(this,vc).call(this)),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new af(e)}};vc=new WeakMap,pc=new WeakMap;let Yu=af;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=I(e,"escapeKeydownBehavior",3,"close"),n=I(e,"onEscapeKeydown",3,vt);Yu.create({escapeKeydownBehavior:ge(()=>r()),onEscapeKeydown:ge(()=>n()),enabled:ge(()=>e.enabled),ref:e.ref});var o=re(),s=E(o);De(s,()=>e.children??Fe),m(t,o),Ie()}var Sn,sa,zo;const gc=class gc{constructor(){_(this,Sn,Hr([]));_(this,sa,new WeakMap);_(this,zo,new WeakMap)}static getInstance(){return this.instance||(this.instance=new gc),this.instance}register(e){const r=this.getActive();r&&r!==e&&r.pause();const n=document.activeElement;n&&n!==document.body&&l(this,zo).set(e,n),l(this,Sn).current=l(this,Sn).current.filter(o=>o!==e),l(this,Sn).current.unshift(e)}unregister(e){l(this,Sn).current=l(this,Sn).current.filter(n=>n!==e);const r=this.getActive();r&&r.resume()}getActive(){return l(this,Sn).current[0]}setFocusMemory(e,r){l(this,sa).set(e,r)}getFocusMemory(e){return l(this,sa).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,r){l(this,zo).set(e,r)}getPreFocusMemory(e){return l(this,zo).get(e)}clearPreFocusMemory(e){l(this,zo).delete(e)}};Sn=new WeakMap,sa=new WeakMap,zo=new WeakMap,ie(gc,"instance");let Xu=gc;var Zn,Rt,Yt,Ro,Jn,pt,xg,_g,kg,Sg,Ju,Cl,Qu;const lf=class lf{constructor(e){_(this,pt);_(this,Zn,!1);_(this,Rt,null);_(this,Yt,Xu.getInstance());_(this,Ro,[]);_(this,Jn);O(this,Jn,e)}get paused(){return l(this,Zn)}pause(){O(this,Zn,!0)}resume(){O(this,Zn,!1)}mount(e){l(this,Rt)&&this.unmount(),O(this,Rt,e),l(this,Yt).register(this),K(this,pt,Sg).call(this),K(this,pt,_g).call(this)}unmount(){l(this,Rt)&&(K(this,pt,xg).call(this),K(this,pt,kg).call(this),l(this,Yt).unregister(this),l(this,Yt).clearPreFocusMemory(this),O(this,Rt,null))}static use(e){let r=null;return cr([()=>e.ref.current,()=>e.enabled.current],([n,o])=>{n&&o?(r||(r=new lf(e)),r.mount(n)):r&&(r.unmount(),r=null)}),es(()=>{r==null||r.unmount()}),{get props(){return{tabindex:-1}}}}};Zn=new WeakMap,Rt=new WeakMap,Yt=new WeakMap,Ro=new WeakMap,Jn=new WeakMap,pt=new WeakSet,xg=function(){for(const e of l(this,Ro))e();O(this,Ro,[])},_g=function(){if(!l(this,Rt))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});l(this,Jn).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!l(this,Rt))return;const r=K(this,pt,Cl).call(this);r?(r.focus(),l(this,Yt).setFocusMemory(this,r)):l(this,Rt).focus()})},kg=function(){var r,n;const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((n=(r=l(this,Jn).onCloseAutoFocus).current)==null||n.call(r,e),!e.defaultPrevented){const o=l(this,Yt).getPreFocusMemory(this);if(o&&document.contains(o))try{o.focus()}catch{document.body.focus()}}},Sg=function(){if(!l(this,Rt)||!l(this,Jn).trap.current)return;const e=l(this,Rt),r=e.ownerDocument,n=i=>{if(l(this,Zn)||!l(this,Yt).isActiveScope(this))return;const a=i.target;if(!a)return;if(e.contains(a))l(this,Yt).setFocusMemory(this,a);else{const u=l(this,Yt).getFocusMemory(this);if(u&&e.contains(u)&&cg(u))i.preventDefault(),u.focus();else{const f=K(this,pt,Cl).call(this),v=K(this,pt,Qu).call(this)[0];(f||v||e).focus()}}},o=i=>{if(!l(this,Jn).loop||l(this,Zn)||i.key!=="Tab"||!l(this,Yt).isActiveScope(this))return;const a=K(this,pt,Ju).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,Ro).push(Lt(r,"focusin",n,{capture:!0}),Lt(e,"keydown",o));const s=new MutationObserver(()=>{const i=l(this,Yt).getFocusMemory(this);if(i&&!e.contains(i)){const a=K(this,pt,Cl).call(this),c=K(this,pt,Qu).call(this)[0],u=a||c;u?(u.focus(),l(this,Yt).setFocusMemory(this,u)):e.focus()}});s.observe(e,{childList:!0,subtree:!0}),l(this,Ro).push(()=>s.disconnect())},Ju=function(){return l(this,Rt)?ag(l(this,Rt),{includeContainer:!1,getShadowRoot:!0}):[]},Cl=function(){return K(this,pt,Ju).call(this)[0]||null},Qu=function(){return l(this,Rt)?lg(l(this,Rt),{includeContainer:!1,getShadowRoot:!0}):[]};let Zu=lf;function G0(t,e){Me(e,!0);let r=I(e,"enabled",3,!1),n=I(e,"trapFocus",3,!1),o=I(e,"loop",3,!1),s=I(e,"onCloseAutoFocus",3,vt),i=I(e,"onOpenAutoFocus",3,vt);const a=Zu.use({enabled:ge(()=>r()),trap:ge(()=>n()),loop:o(),onCloseAutoFocus:ge(()=>s()),onOpenAutoFocus:ge(()=>i()),ref:e.ref});var c=re(),u=E(c);De(u,()=>e.focusScope??Fe,()=>({props:a.props})),m(t,c),Ie()}const ch=()=>{};globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var zs,Rs,ia,aa,mc,Pg,bc,yc,la;const cf=class cf{constructor(e){_(this,mc);ie(this,"opts");ie(this,"domContext");_(this,zs,vt);_(this,Rs,!1);_(this,ia,ch);_(this,aa,ch);_(this,bc,e=>{l(this,aa).call(this,e)});_(this,yc,e=>{const r=this.opts.ref.current,n=e.target;!so(r)||!so(n)||!l(this,Rs)||!K0(this)||!T_(r,n)||(l(this,ia).call(this,e),!e.defaultPrevented&&O(this,zs,H0(r,this.domContext.getDocument().body)))});_(this,la,()=>{l(this,zs).call(this),O(this,zs,vt)});this.opts=e,this.domContext=new Nd(e.ref);let r=vt;cr(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([n,o,s])=>(O(this,Rs,n),O(this,ia,o),O(this,aa,s),n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=K(this,mc,Pg).call(this)),()=>{O(this,Rs,!1),r(),l(this,la).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new cf(e)}};zs=new WeakMap,Rs=new WeakMap,ia=new WeakMap,aa=new WeakMap,mc=new WeakSet,Pg=function(){return hs(Lt(this.domContext.getDocument(),"pointerdown",l(this,yc)),Lt(this.domContext.getDocument(),"pointerup",Np(l(this,la),l(this,bc))))},bc=new WeakMap,yc=new WeakMap,la=new WeakMap;let ed=cf;const uh=t=>t.style.userSelect||t.style.webkitUserSelect;function H0(t,e){const r=uh(e),n=uh(t);return nl(e,"none"),nl(t,"text"),()=>{nl(e,r),nl(t,n)}}function nl(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=I(e,"preventOverflowTextSelection",3,!0),n=I(e,"onPointerDown",3,vt),o=I(e,"onPointerUp",3,vt);ed.create({id:ge(()=>e.id),onPointerDown:ge(()=>n()),onPointerUp:ge(()=>o()),enabled:ge(()=>e.enabled&&r()),ref:e.ref});var s=re(),i=E(s);De(i,()=>e.children??Fe),m(t,s),Ie()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function Bd(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}var ca,Fs,Fo,Lo,wc,Cg;class q0{constructor(e){_(this,wc);_(this,ca);_(this,Fs,0);_(this,Fo,Ae());_(this,Lo);O(this,ca,e)}get(...e){return O(this,Fs,l(this,Fs)+1),d(l(this,Fo))===void 0&&O(this,Lo,xv(()=>{M(l(this,Fo),l(this,ca).call(this,...e),!0)})),ct(()=>()=>{K(this,wc,Cg).call(this)}),d(l(this,Fo))}}ca=new WeakMap,Fs=new WeakMap,Fo=new WeakMap,Lo=new WeakMap,wc=new WeakSet,Cg=function(){O(this,Fs,l(this,Fs)-1),l(this,Lo)&&l(this,Fs)<=0&&(l(this,Lo).call(this),M(l(this,Fo),void 0),O(this,Lo,void 0))};const Al=new Mu;let ol=Ae(null),go=null,ii=null,ai=!1;const dh=ge(()=>{for(const t of Al.values())if(t)return!0;return!1});let Yc=null;const Y0=new q0(()=>{function t(){document.body.setAttribute("style",d(ol)??""),document.body.style.removeProperty("--scrollbar-width"),rh&&(go==null||go()),M(ol,null)}function e(){ii!==null&&(window.clearTimeout(ii),ii=null)}function r(o,s){e(),ai=!0,Yc=Date.now();const i=Yc,a=()=>{ii=null,Yc===i&&(Ag(Al)?ai=!1:(ai=!1,s()))},c=o===null?24:o;ii=window.setTimeout(a,c)}function n(){d(ol)===null&&Al.size===0&&!ai&&M(ol,document.body.getAttribute("style"),!0)}return cr(()=>dh.current,()=>{var f,v;if(!dh.current)return;n(),ai=!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&&(go=Lt(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(()=>()=>{go==null||go()}),{get lockMap(){return Al},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:r,cancelPendingCleanup:e,ensureInitialStyleCaptured:n}});var Do,ua,da,Xt;class X0{constructor(e,r=()=>null){_(this,Do,Bd());_(this,ua);_(this,da,()=>null);_(this,Xt);ie(this,"locked");O(this,ua,e),O(this,da,r),O(this,Xt,Y0.get()),l(this,Xt)&&(l(this,Xt).cancelPendingCleanup(),l(this,Xt).ensureInitialStyleCaptured(),l(this,Xt).lockMap.set(l(this,Do),l(this,ua)??!1),this.locked=ge(()=>l(this,Xt).lockMap.get(l(this,Do))??!1,n=>l(this,Xt).lockMap.set(l(this,Do),n)),es(()=>{if(l(this,Xt).lockMap.delete(l(this,Do)),Ag(l(this,Xt).lockMap))return;const n=l(this,da).call(this);l(this,Xt).scheduleCleanupIfNoNewLocks(n,()=>{l(this,Xt).resetBodyStyle()})}))}}Do=new WeakMap,ua=new WeakMap,da=new WeakMap,Xt=new WeakMap;function Ag(t){for(const[e,r]of t)if(r)return!0;return!1}function fh(t,e){Me(e,!0);let r=I(e,"preventScroll",3,!0),n=I(e,"restoreScrollDelay",3,null);r()&&new X0(r(),()=>n()),Ie()}$m();const Z0=["top","right","bottom","left"],io=Math.min,An=Math.max,Hl=Math.round,sl=Math.floor,En=t=>({x:t,y:t}),J0={left:"right",right:"left",bottom:"top",top:"bottom"};function Eg(t,e,r){return An(t,io(e,r))}function On(t,e){return typeof t=="function"?t(e):t}function ao(t){return t.split("-")[0]}function Ys(t){return t.split("-")[1]}function Vd(t){return t==="x"?"y":"x"}function Wd(t){return t==="y"?"height":"width"}function Kr(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function jd(t){return Vd(Kr(t))}function Q0(t,e,r){r===void 0&&(r=!1);const n=Ys(t),o=jd(t),s=Wd(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=Kl(i)),[i,Kl(i)]}function e1(t){const e=Kl(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=Ys(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 Kl(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 Tg(t){return typeof t!="number"?s1(t):{top:t,right:t,bottom:t,left:t}}function Ul(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 ph(t,e,r){let{reference:n,floating:o}=t;const s=Kr(e),i=jd(e),a=Wd(i),c=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 p;switch(c){case"top":p={x:f,y:n.y-o.height};break;case"bottom":p={x:f,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:v};break;case"left":p={x:n.x-o.width,y:v};break;default:p={x:n.x,y:n.y}}const g=Ys(e);return g&&(p[i]+=h*(g==="end"?1:-1)*(r&&u?-1:1)),p}async function i1(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:p=0}=On(e,t),g=Tg(p),y=a[h?v==="floating"?"reference":"floating":v],w=Ul(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})),P=v==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(N))&&await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1},k=Ul(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:N,strategy:c}):P);return{top:(w.top-k.top+g.top)/C.y,bottom:(k.bottom-w.bottom+g.bottom)/C.y,left:(w.left-k.left+g.left)/C.x,right:(k.right-w.right+g.right)/C.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},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}=ph(u,n,c),h=n,p=0;const g={};for(let b=0;b({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}=On(t,e)||{};if(u==null)return{};const v=Tg(f),h={x:r,y:n},p=jd(o),g=Wd(p),b=await i.getDimensions(u),y=p==="y",w=y?"top":"left",P=y?"bottom":"right",N=y?"clientHeight":"clientWidth",C=s.reference[g]+s.reference[p]-h[p]-s.floating[g],k=h[p]-s.reference[p],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let R=A?A[N]:0;(!R||!await(i.isElement==null?void 0:i.isElement(A)))&&(R=a.floating[N]||s.floating[g]);const x=C/2-k/2,L=R/2-b[g]/2-1,H=io(v[w],L),he=io(v[P],L),Q=R-b[g]-he,ue=R/2-b[g]/2+x,pe=Eg(H,ue,Q),Y=!c.arrow&&Ys(o)!=null&&ue!==pe&&s.reference[g]/2-(uepe<=0)){var he,Q;const pe=(((he=s.flip)==null?void 0:he.index)||0)+1,Y=R[pe];if(Y&&(!(v==="alignment"?P!==Kr(Y):!1)||H.every(Z=>Kr(Z.placement)===P?Z.overflows[0]>0:!0)))return{data:{index:pe,overflows:H},reset:{placement:Y}};let D=(Q=H.filter(q=>q.overflows[0]<=0).sort((q,Z)=>q.overflows[1]-Z.overflows[1])[0])==null?void 0:Q.placement;if(!D)switch(p){case"bestFit":{var ue;const q=(ue=H.filter(Z=>{if(A){const le=Kr(Z.placement);return le===P||le==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(le=>le>0).reduce((le,T)=>le+T,0)]).sort((Z,le)=>Z[1]-le[1])[0])==null?void 0:ue[0];q&&(D=q);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function gh(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}=On(t,e);switch(o){case"referenceHidden":{const i=await n.detectOverflow(e,{...s,elementContext:"reference"}),a=gh(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:mh(a)}}}case"escaped":{const i=await n.detectOverflow(e,{...s,altBoundary:!0}),a=gh(i,r.floating);return{data:{escapedOffsets:a,escaped:mh(a)}}}default:return{}}}}},$g=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=Ys(r),c=Kr(r)==="y",u=$g.has(i)?-1:1,f=s&&c?-1:1,v=On(e,t);let{mainAxis:h,crossAxis:p,alignmentAxis:g}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),c?{x:p*f,y:h*u}:{x:h*u,y:p*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,c=await f1(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}}}}},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:c={fn:P=>{let{x:N,y:C}=P;return{x:N,y:C}}},...u}=On(t,e),f={x:r,y:n},v=await s.detectOverflow(e,u),h=Kr(o),p=Vd(h);let g=f[p],b=f[h];const y=(P,N)=>Eg(N+v[P==="y"?"top":"left"],N,N-v[P==="y"?"bottom":"right"]);i&&(g=y(p,g)),a&&(b=y(h,b));const w=c.fn({...e,[p]:g,[h]:b});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[p]:i,[h]:a}}}}}},p1=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}=On(t,e),h={x:o,y:s},p=Kr(i),g=Vd(p);let b=h[g],y=h[p];const w=On(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=g==="y"?"height":"width",A=a.reference[g]-a.floating[k]+P.mainAxis,R=a.reference[g]+a.reference[k]-P.mainAxis;bR&&(b=R)}if(v){var N,C;const k=g==="y"?"width":"height",A=$g.has(ao(i)),R=a.reference[p]-a.floating[k]+(A&&((N=c.offset)==null?void 0:N[p])||0)+(A?0:P.crossAxis),x=a.reference[p]+a.reference[k]+(A?0:((C=c.offset)==null?void 0:C[p])||0)-(A?P.crossAxis:0);yx&&(y=x)}return{[g]:b,[p]:y}}}},g1=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}=On(t,e),c=await o.detectOverflow(e,a),u=ao(r),f=Ys(r),v=Kr(r)==="y",{width:h,height:p}=n.floating;let g,b;u==="top"||u==="bottom"?(g=u,b=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(b=u,g=f==="end"?"top":"bottom");const y=p-c.top-c.bottom,w=h-c.left-c.right,P=io(p-c[g],y),N=io(h-c[b],w),C=e.middlewareData.shift,k=!C;let A=P,R=N;C!=null&&C.enabled.x&&(R=w),C!=null&&C.enabled.y&&(A=y),k&&!f&&(v?R=h-2*An(c.left,c.right):A=p-2*An(c.top,c.bottom)),await i({...e,availableWidth:R,availableHeight:A});const x=await o.getDimensions(s.floating);return h!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function Oc(){return typeof window<"u"}function Xs(t){return Og(t)?(t.nodeName||"").toLowerCase():"#document"}function er(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Mn(t){var e;return(e=(Og(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Og(t){return Oc()?t instanceof Node||t instanceof er(t).Node:!1}function en(t){return Oc()?t instanceof Element||t instanceof er(t).Element:!1}function ho(t){return Oc()?t instanceof HTMLElement||t instanceof er(t).HTMLElement:!1}function bh(t){return!Oc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof er(t).ShadowRoot}function Mc(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(Xs(t))}function Ic(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 Xc;function Gd(t){const e=en(t)?tn(t):t;return mo(e.transform)||mo(e.translate)||mo(e.scale)||mo(e.rotate)||mo(e.perspective)||!Hd()&&(mo(e.backdropFilter)||mo(e.filter))||b1.test(e.willChange||"")||y1.test(e.contain||"")}function w1(t){let e=Ho(t);for(;ho(e)&&!Pi(e);){if(Gd(e))return e;if(Ic(e))return null;e=Ho(e)}return null}function Hd(){return Xc==null&&(Xc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xc}function Pi(t){return/^(html|body|#document)$/.test(Xs(t))}function tn(t){return er(t).getComputedStyle(t)}function Nc(t){return en(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ho(t){if(Xs(t)==="html")return t;const e=t.assignedSlot||t.parentNode||bh(t)&&t.host||Mn(t);return bh(e)?e.host:e}function Mg(t){const e=Ho(t);return Pi(e)?(t.ownerDocument||t).body:ho(e)&&Mc(e)?e:Mg(e)}function Ci(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Mg(t),s=o===((n=t.ownerDocument)==null?void 0:n.body),i=er(o);if(s){const a=rd(i);return e.concat(i,i.visualViewport||[],Mc(o)?o:[],a&&r?Ci(a):[])}else return e.concat(o,Ci(o,[],r))}function rd(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ig(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=Hl(r)!==s||Hl(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function Kd(t){return en(t)?t:t.contextElement}function vs(t){const e=Kd(t);if(!ho(e))return En(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:s}=Ig(e);let i=(s?Hl(r.width):r.width)/n,a=(s?Hl(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 Ng(t){const e=er(t);return!Hd()||!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===er(t)}function Ko(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),s=Kd(t);let i=En(1);e&&(n?en(n)&&(i=vs(n)):i=vs(t));const a=_1(s,r,n)?Ng(s):En(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=er(s),p=en(n)?er(n):n;let g=h,b=rd(g);for(;b&&p!==g;){const y=vs(b),w=b.getBoundingClientRect(),P=tn(b),N=w.left+(b.clientLeft+parseFloat(P.paddingLeft))*y.x,C=w.top+(b.clientTop+parseFloat(P.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,v*=y.y,c+=N,u+=C,g=er(b),b=rd(g)}}return Ul({width:f,height:v,x:c,y:u})}function zc(t,e){const r=Nc(t).scrollLeft;return e?e.left+r:Ko(Mn(t)).left+r}function zg(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-zc(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?Ic(e.floating):!1;if(n===i||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=En(1);const f=En(0),v=ho(n);if((v||!s)&&((Xs(n)!=="body"||Mc(i))&&(c=Nc(n)),v)){const p=Ko(n);u=vs(n),f.x=p.x+n.clientLeft,f.y=p.y+n.clientTop}const h=i&&!v&&!s?zg(i,c):En(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 S1(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function P1(t){const e=Nc(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+zc(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=er(t),s=Mn(t),i=o.visualViewport;let a=s.clientWidth,c=s.clientHeight,u=0,f=0;if(i){const h=!Hd()||e==="fixed";n?h||(u=-i.offsetLeft,f=-i.offsetTop):(a=i.width,c=i.height,h&&(u=i.offsetLeft,f=i.offsetTop))}if(zc(s)<=0){const h=s.ownerDocument,p=h.body,g=getComputedStyle(p),b=h.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(s.clientWidth-p.clientWidth-b),w=getComputedStyle(s).scrollbarGutter==="stable both-edges"?y/2:y;w<=C1&&(a-=w)}return{width:a,height:c,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,c=o*s.x,u=n*s.y;return{width:i,height:a,x:c,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=Ng(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Ul(n)}function T1(t,e){const r=e.get(t);if(r)return r;let n=Ci(t,[],!1).filter(a=>en(a)&&Xs(a)!=="body"),o=null;const s=tn(t).position==="fixed";let i=s?Ho(t):t;for(;en(i)&&!Pi(i);){const a=tn(i),c=Gd(i),u=o?o.position:s?"fixed":"";!c&&(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 $1(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?Ic(e)?[]:T1(e,this._c):[].concat(r),n],a=yh(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)}R=!1}try{n=new IntersectionObserver(x,{...A,root:s.ownerDocument})}catch{n=new IntersectionObserver(x,A)}n.observe(t)}const c=er(t),u=()=>a(r);return c.addEventListener("resize",u),a(!0),()=>{c.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:c=!1}=n,u=Kd(t),f=o||s?[...u?Ci(u):[],...e?Ci(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,p=null;i&&(p=new ResizeObserver(w=>{let[P]=w;P&&P.target===u&&p&&e&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var N;(N=p)==null||N.observe(e)})),r()}),u&&!c&&p.observe(u),e&&p.observe(e));let g,b=c?Ko(t):null;c&&y();function y(){const w=Ko(t);b&&!Fg(b,w)&&r(),b=w,g=requestAnimationFrame(y)}return r(),()=>{var w;f.forEach(P=>{o&&P.removeEventListener("scroll",r),s&&P.removeEventListener("resize",r)}),v==null||v(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(g)}}const L1=h1,D1=v1,B1=u1,V1=g1,W1=d1,j1=c1,G1=p1,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 Lg(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function xh(t,e){const r=Lg(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=B(()=>bo(t.open)??!0),n=B(()=>bo(t.middleware)),o=B(()=>bo(t.transform)??!0),s=B(()=>bo(t.placement)??"bottom"),i=B(()=>bo(t.strategy)??"absolute"),a=B(()=>bo(t.sideOffset)??0),c=B(()=>bo(t.alignOffset)??0),u=t.reference;let f=Ae(0),v=Ae(0);const h=Hr(null);let p=Ae(Qt(d(i))),g=Ae(Qt(d(s))),b=Ae(Qt({})),y=Ae(!1),w=!1,P=0;const N=B(()=>{const H=h.current?xh(h.current,d(f)):d(f),he=h.current?xh(h.current,d(v)):d(v);return d(o)?{position:d(p),left:"0",top:"0",transform:`translate(${H}px, ${he}px)`,...h.current&&Lg(h.current)>=1.5&&{willChange:"transform"}}:{position:d(p),left:`${H}px`,top:`${he}px`}});let C;function k(){if(u.current===null||h.current===null)return;const H=u.current,he=h.current,Q=++P;H1(H,he,{middleware:d(n),placement:d(s),strategy:d(i)}).then(ue=>{if(Q!==P||u.current!==H||h.current!==he)return;if(U1(H)){M(b,{...d(b),hide:{...d(b).hide,referenceHidden:!0}},!0);return}if(!d(r)&&d(f)!==0&&d(v)!==0){const Y=Math.max(Math.abs(d(a)),Math.abs(d(c)),15);if(ue.x<=Y&&ue.y<=Y)return}M(f,ue.x,!0),M(v,ue.y,!0),M(p,ue.strategy,!0),M(g,ue.placement,!0),M(b,ue.middlewareData,!0),M(y,!0)})}function A(){typeof C=="function"&&(C(),C=void 0),P++}function R(){if(A(),e===void 0){k();return}d(r)&&(u.current===null||h.current===null||(C=e(u.current,h.current,k)))}function x(){!d(r)&&h.current===null&&M(y,!1)}function L(){return[d(n),d(s),d(i),d(a),d(c),d(r)]}return ct(()=>{e===void 0&&d(r)&&k()}),ct(R),ct(()=>{if(e!==void 0){if(L(),!d(r)){w=!1;return}if(!d(y)){w=!1;return}if(!w){w=!0;return}k()}}),ct(x),ct(()=>A),{floating:h,reference:u,get strategy(){return d(p)},get placement(){return d(g)},get middlewareData(){return d(b)},get isPositioned(){return d(y)},get floatingStyles(){return d(N)},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"},Ud=new Qo("Floating.Root"),kh=new Qo("Floating.Content"),qd=new Qo("Floating.Root");class ql{constructor(){ie(this,"anchorNode",Hr(null));ie(this,"customAnchorNode",Hr(null));ie(this,"triggerNode",Hr(null));ct(()=>{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?qd.set(new ql):Ud.set(new ql)}}var fa,ha,va,xc,pa,_c,ga,ma,ba,ya,wa,xa,_a,ka,Sa,Pa,Ca,Aa,Ea,Ta,$a,Oa,Ma,Ia;const kc=class kc{constructor(e,r){ie(this,"opts");ie(this,"root");ie(this,"contentRef",Hr(null));ie(this,"wrapperRef",Hr(null));ie(this,"arrowRef",Hr(null));ie(this,"contentAttachment",no(this.contentRef));ie(this,"wrapperAttachment",no(this.wrapperRef));ie(this,"arrowAttachment",no(this.arrowRef));ie(this,"arrowId",Hr(Bd()));_(this,fa,B(()=>{if(typeof this.opts.style=="string")return vi(this.opts.style);if(!this.opts.style)return{}}));_(this,ha);_(this,va,new __(()=>this.arrowRef.current??void 0));_(this,xc,B(()=>{var e;return((e=l(this,va))==null?void 0:e.width)??0}));_(this,pa,B(()=>{var e;return((e=l(this,va))==null?void 0:e.height)??0}));_(this,_c,B(()=>{var e;return((e=this.opts.side)==null?void 0:e.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));_(this,ga,B(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));_(this,ma,B(()=>d(l(this,ga)).length>0));_(this,ba,B(()=>({padding:this.opts.collisionPadding.current,boundary:d(l(this,ga)).filter(W_),altBoundary:this.hasExplicitBoundaries})));_(this,ya,Ae(void 0));_(this,wa,Ae(void 0));_(this,xa,Ae(void 0));_(this,_a,Ae(void 0));_(this,ka,B(()=>[L1({mainAxis:this.opts.sideOffset.current+d(l(this,pa)),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;M(l(this,ya),r,!0),M(l(this,wa),n,!0),M(l(this,xa),o,!0),M(l(this,_a),s,!0)}}),this.arrowRef.current&&j1({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Y1({arrowWidth:d(l(this,xc)),arrowHeight:d(l(this,pa))}),this.opts.hideWhenDetached.current&&W1({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));ie(this,"floating");_(this,Sa,B(()=>X1(this.floating.placement)));_(this,Pa,B(()=>Z1(this.floating.placement)));_(this,Ca,B(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.x)??0}));_(this,Aa,B(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.y)??0}));_(this,Ea,B(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.centerOffset)!==0}));_(this,Ta,Ae());_(this,$a,B(()=>q1[this.placedSide]));_(this,Oa,B(()=>{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,ya))}px`,"--bits-floating-available-height":`${d(l(this,wa))}px`,"--bits-floating-anchor-width":`${d(l(this,xa))}px`,"--bits-floating-anchor-height":`${d(l(this,_a))}px`,...((n=this.floating.middlewareData.hide)==null?void 0:n.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...d(l(this,fa))},dir:this.opts.dir.current,...this.wrapperAttachment}}));_(this,Ma,B(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Rp({...d(l(this,fa))}),...this.contentAttachment})));_(this,Ia,B(()=>({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,O(this,ha,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(l(this,_c)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...n)=>{var s;return F1(...n,{animationFrame:((s=l(this,ha))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),ct(()=>{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=Vp(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)}}),ct(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(e,r=!1){return r?kh.set(new kc(e,qd.get())):kh.set(new kc(e,Ud.get()))}get hasExplicitBoundaries(){return d(l(this,ma))}set hasExplicitBoundaries(e){M(l(this,ma),e)}get detectOverflowOptions(){return d(l(this,ba))}set detectOverflowOptions(e){M(l(this,ba),e)}get middleware(){return d(l(this,ka))}set middleware(e){M(l(this,ka),e)}get placedSide(){return d(l(this,Sa))}set placedSide(e){M(l(this,Sa),e)}get placedAlign(){return d(l(this,Pa))}set placedAlign(e){M(l(this,Pa),e)}get arrowX(){return d(l(this,Ca))}set arrowX(e){M(l(this,Ca),e)}get arrowY(){return d(l(this,Aa))}set arrowY(e){M(l(this,Aa),e)}get cannotCenterArrow(){return d(l(this,Ea))}set cannotCenterArrow(e){M(l(this,Ea),e)}get contentZIndex(){return d(l(this,Ta))}set contentZIndex(e){M(l(this,Ta),e,!0)}get arrowBaseSide(){return d(l(this,$a))}set arrowBaseSide(e){M(l(this,$a),e)}get wrapperProps(){return d(l(this,Oa))}set wrapperProps(e){M(l(this,Oa),e)}get props(){return d(l(this,Ma))}set props(e){M(l(this,Ma),e)}get arrowStyle(){return d(l(this,Ia))}set arrowStyle(e){M(l(this,Ia),e)}};fa=new WeakMap,ha=new WeakMap,va=new WeakMap,xc=new WeakMap,pa=new WeakMap,_c=new WeakMap,ga=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,$a=new WeakMap,Oa=new WeakMap,Ma=new WeakMap,Ia=new WeakMap;let nd=kc;class Yl{constructor(e,r){ie(this,"opts");ie(this,"root");this.opts=e,this.root=r,e.virtualEl&&e.virtualEl.current?r.triggerNode=Ip(e.virtualEl.current):r.triggerNode=e.ref}static create(e,r=!1){return r?new Yl(e,qd.get()):new Yl(e,Ud.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,c=i?0:t.arrowHeight,[u,f]=Yd(r),v={start:"0%",center:"50%",end:"100%"}[f],h=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,p=(((P=o.arrow)==null?void 0:P.y)??0)+c/2;let g="",b="";return u==="bottom"?(g=i?v:`${h}px`,b=`${-c}px`):u==="top"?(g=i?v:`${h}px`,b=`${n.floating.height+c}px`):u==="right"?(g=`${-c}px`,b=i?v:`${p}px`):u==="left"&&(g=`${n.floating.width+c}px`,b=i?v:`${p}px`),{data:{x:g,y:b}}}}}function Yd(t){const[e,r="center"]=t.split("-");return[e,r]}function X1(t){return Yd(t)[0]}function Z1(t){return Yd(t)[1]}function J1(t,e){Me(e,!0);let r=I(e,"tooltip",3,!1);ql.create(r());var n=re(),o=E(n);De(o,()=>e.children??Fe),m(t,n),Ie()}function Q1(t,e){Me(e,!0);let r=I(e,"tooltip",3,!1);Yl.create({id:ge(()=>e.id),virtualEl:ge(()=>e.virtualEl),ref:e.ref},r());var n=re(),o=E(n);De(o,()=>e.children??Fe),m(t,n),Ie()}function ek(t,e){Me(e,!0);let r=I(e,"side",3,"bottom"),n=I(e,"sideOffset",3,0),o=I(e,"align",3,"center"),s=I(e,"alignOffset",3,0),i=I(e,"arrowPadding",3,0),a=I(e,"avoidCollisions",3,!0),c=I(e,"collisionBoundary",19,()=>[]),u=I(e,"collisionPadding",3,0),f=I(e,"hideWhenDetached",3,!1),v=I(e,"onPlaced",3,()=>{}),h=I(e,"sticky",3,"partial"),p=I(e,"updatePositionStrategy",3,"optimized"),g=I(e,"strategy",3,"fixed"),b=I(e,"dir",3,"ltr"),y=I(e,"style",19,()=>({})),w=I(e,"wrapperId",19,Bd),P=I(e,"customAnchor",3,null),N=I(e,"tooltip",3,!1);const C=nd.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(()=>p()),strategy:ge(()=>g()),dir:ge(()=>b()),style:ge(()=>y()),enabled:ge(()=>e.enabled),wrapperId:ge(()=>w()),customAnchor:ge(()=>P())},N()),k=B(()=>Xr(C.wrapperProps,{style:{pointerEvents:"auto"}}));var A=re(),R=E(A);De(R,()=>e.content??Fe,()=>({props:C.props,wrapperProps:d(k)})),m(t,A),Ie()}function tk(t,e){Me(e,!0),_d(()=>{var o;(o=e.onPlaced)==null||o.call(e)});var r=re(),n=E(r);De(n,()=>e.content??Fe,()=>({props:{},wrapperProps:{}})),m(t,r),Ie()}var rk=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function nk(t,e){let r=I(e,"isStatic",3,!1),n=Ge(e,rk);var o=re(),s=E(o);{var i=c=>{tk(c,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},a=c=>{ek(c,je({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>n))};Ne(s,c=>{r()?c(i):c(a,-1)})}m(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=ee(" ",1);function Dg(t,e){Me(e,!0);let r=I(e,"interactOutsideBehavior",3,"close"),n=I(e,"trapFocus",3,!0),o=I(e,"isValidEvent",3,()=>!1),s=I(e,"customAnchor",3,null),i=I(e,"isStatic",3,!1),a=I(e,"tooltip",3,!1),c=I(e,"contentPointerEvents",3,"auto"),u=Ge(e,ok);const f=B(()=>e.preventScroll??!0),v=B(()=>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:(p,g)=>{let b=()=>(g==null?void 0:g()).props,y=()=>(g==null?void 0:g()).wrapperProps;var w=sk(),P=E(w);{var N=A=>{fh(A,{get preventScroll(){return d(f)}})},C=A=>{fh(A,{get preventScroll(){return d(f)}})};Ne(P,A=>{e.forceMount&&e.enabled?A(N):e.forceMount||A(C,1)})}var k=S(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 L=()=>(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,he)=>{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:(ue,pe)=>{let Y=()=>(pe==null?void 0:pe()).props;U0(ue,{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:(D,q)=>{var Z=re(),le=E(Z);{let T=B(()=>({props:Xr(u,b(),Y(),L(),{style:{pointerEvents:c()}}),wrapperProps:y()}));De(le,()=>e.popper??Fe,()=>d(T))}m(D,Z)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),m(p,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=I(e,"interactOutsideBehavior",3,"close"),n=I(e,"trapFocus",3,!0),o=I(e,"isValidEvent",3,()=>!1),s=I(e,"customAnchor",3,null),i=I(e,"isStatic",3,!1),a=Ge(e,ik);var c=re(),u=E(c);{var f=v=>{Dg(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))};Ne(u,v=>{e.shouldRender&&v(f)})}m(t,c)}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=I(e,"interactOutsideBehavior",3,"close"),n=I(e,"trapFocus",3,!0),o=I(e,"isValidEvent",3,()=>!1),s=I(e,"customAnchor",3,null),i=I(e,"isStatic",3,!1),a=Ge(e,lk);Dg(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 uk=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]),dk=ee("
");function fk(t,e){const r=Ba();Me(e,!0);let n=I(e,"ref",15,null),o=I(e,"id",19,()=>Ha(r)),s=I(e,"disabled",3,!1),i=I(e,"onSelect",3,vt),a=I(e,"closeOnSelect",3,!0),c=Ge(e,uk);const u=Hu.create({id:ge(()=>o()),disabled:ge(()=>s()),onSelect:ge(()=>i()),ref:ge(()=>n(),b=>n(b)),closeOnSelect:ge(()=>a())}),f=B(()=>Xr(c,u.props));var v=re(),h=E(v);{var p=b=>{var y=re(),w=E(y);De(w,()=>e.child,()=>({props:d(f)})),m(b,y)},g=b=>{var y=dk();Ye(y,()=>({...d(f)}));var w=F(y);De(w,()=>e.children??Fe),m(b,y)};Ne(h,b=>{e.child?b(p):b(g,-1)})}m(t,v),Ie()}var hk=new Set(["$$slots","$$events","$$legacy","ref","id","child","children"]),vk=ee("
");function pk(t,e){const r=Ba();Me(e,!0);let n=I(e,"ref",15,null),o=I(e,"id",19,()=>Ha(r)),s=Ge(e,hk);const i=Ku.create({id:ge(()=>o()),ref:ge(()=>n(),h=>n(h))}),a=B(()=>Xr(s,i.props));var c=re(),u=E(c);{var f=h=>{var p=re(),g=E(p);De(g,()=>e.child,()=>({props:d(a)})),m(h,p)},v=h=>{var p=vk();Ye(p,()=>({...d(a)}));var g=F(p);De(g,()=>e.children??Fe),m(h,p)};Ne(u,h=>{e.child?h(f):h(v,-1)})}m(t,c),Ie()}function gk(t,e){Me(e,!0);let r=I(e,"open",15,!1),n=I(e,"dir",3,"ltr"),o=I(e,"onOpenChange",3,vt),s=I(e,"onOpenChangeComplete",3,vt),i=I(e,"_internal_variant",3,"dropdown-menu"),a=I(e,"_internal_should_skip_exit_animation",3,void 0);const c=Wu.create({variant:ge(()=>i()),dir:ge(()=>n()),onClose:()=>{r(!1),o()(!1)},shouldSkipExitAnimation:()=>{var u;return((u=a())==null?void 0:u())??!1}});ju.create({open:ge(()=>r(),u=>{r(u),o()(u)}),onOpenChangeComplete:ge(()=>s())},c),J1(t,{children:(u,f)=>{var v=re(),h=E(v);De(h,()=>e.children??Fe),m(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=ee("
");function bk(t,e){const r=Ba();Me(e,!0);let n=I(e,"id",19,()=>Ha(r)),o=I(e,"ref",15,null),s=I(e,"loop",3,!0),i=I(e,"onInteractOutside",3,vt),a=I(e,"onEscapeKeydown",3,vt),c=I(e,"onCloseAutoFocus",3,vt),u=I(e,"forceMount",3,!1),f=I(e,"trapFocus",3,!1),v=Ge(e,mk);const h=Gu.create({id:ge(()=>n()),loop:ge(()=>s()),ref:ge(()=>o(),C=>o(C)),onCloseAutoFocus:ge(()=>c())}),p=B(()=>Xr(v,h.props));function g(C){if(h.handleInteractOutside(C),!C.defaultPrevented&&(i()(C),!C.defaultPrevented)){if(C.target&&C.target instanceof Element){const k=`[${h.parentMenu.root.getBitsAttr("sub-content")}]`;if(C.target.closest(k))return}h.parentMenu.onClose()}}function b(C){a()(C),!C.defaultPrevented&&h.parentMenu.onClose()}var y=re(),w=E(y);{var P=C=>{ck(C,je(()=>d(p),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.parentMenu.opts.open.current},onInteractOutside:g,onEscapeKeydown:b,get trapFocus(){return f()},get loop(){return s()},forceMount:!0,get id(){return n()},get shouldRender(){return h.shouldRender},popper:(A,R)=>{let x=()=>(R==null?void 0:R()).props,L=()=>(R==null?void 0:R()).wrapperProps;const H=B(()=>Xr(x(),{style:_h("dropdown-menu")},{style:e.style}));var he=re(),Q=E(he);{var ue=Y=>{var D=re(),q=E(D);{let Z=B(()=>({props:d(H),wrapperProps:L(),...h.snippetProps}));De(q,()=>e.child,()=>d(Z))}m(Y,D)},pe=Y=>{var D=Sh();Ye(D,()=>({...L()}));var q=F(D);Ye(q,()=>({...d(H)}));var Z=F(q);De(Z,()=>e.children??Fe),m(Y,D)};Ne(Q,Y=>{e.child?Y(ue):Y(pe,-1)})}m(A,he)},$$slots:{popper:!0}}))},N=C=>{ak(C,je(()=>d(p),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.parentMenu.opts.open.current},onInteractOutside:g,onEscapeKeydown:b,get trapFocus(){return f()},get loop(){return s()},forceMount:!1,get id(){return n()},get shouldRender(){return h.shouldRender},popper:(A,R)=>{let x=()=>(R==null?void 0:R()).props,L=()=>(R==null?void 0:R()).wrapperProps;const H=B(()=>Xr(x(),{style:_h("dropdown-menu")},{style:e.style}));var he=re(),Q=E(he);{var ue=Y=>{var D=re(),q=E(D);{let Z=B(()=>({props:d(H),wrapperProps:L(),...h.snippetProps}));De(q,()=>e.child,()=>d(Z))}m(Y,D)},pe=Y=>{var D=Sh();Ye(D,()=>({...L()}));var q=F(D);Ye(q,()=>({...d(H)}));var Z=F(q);De(Z,()=>e.children??Fe),m(Y,D)};Ne(Q,Y=>{e.child?Y(ue):Y(pe,-1)})}m(A,he)},$$slots:{popper:!0}}))};Ne(w,C=>{u()?C(P):u()||C(N,1)})}m(t,y),Ie()}var yk=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]),wk=ee("");function xk(t,e){const r=Ba();Me(e,!0);let n=I(e,"id",19,()=>Ha(r)),o=I(e,"ref",15,null),s=I(e,"disabled",3,!1),i=I(e,"type",3,"button"),a=Ge(e,yk);const c=Uu.create({id:ge(()=>n()),disabled:ge(()=>s()??!1),ref:ge(()=>o(),f=>o(f))}),u=B(()=>Xr(a,c.props,{type:i()}));Q1(t,{get id(){return n()},get ref(){return c.opts.ref},children:(f,v)=>{var h=re(),p=E(h);{var g=y=>{var w=re(),P=E(w);De(P,()=>e.child,()=>({props:d(u)})),m(y,w)},b=y=>{var w=wk();Ye(w,()=>({...d(u)}));var P=F(w);De(P,()=>e.children??Fe),m(y,w)};Ne(p,y=>{e.child?y(g):y(b,-1)})}m(f,h)},$$slots:{default:!0}}),Ie()}const _k=Hp({component:"label",parts:["root"]});var Na;const uf=class uf{constructor(e){ie(this,"opts");ie(this,"attachment");_(this,Na,B(()=>({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 uf(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return d(l(this,Na))}set props(e){M(l(this,Na),e)}};Na=new WeakMap;let od=uf;var kk=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),Sk=ee("");function Pk(t,e){const r=Ba();Me(e,!0);let n=I(e,"id",19,()=>Ha(r)),o=I(e,"ref",15,null),s=Ge(e,kk);const i=od.create({id:ge(()=>n()),ref:ge(()=>o(),h=>o(h))}),a=B(()=>Xr(s,i.props,{for:e.for}));var c=re(),u=E(c);{var f=h=>{var p=re(),g=E(p);De(g,()=>e.child,()=>({props:d(a)})),m(h,p)},v=h=>{var p=Sk();Ye(p,()=>({...d(a),for:e.for}));var g=F(p);De(g,()=>e.children??Fe),m(h,p)};Ne(u,h=>{e.child?h(f):h(v,-1)})}m(t,c),Ie()}var Ck=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Ak(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,Ck);var o=re(),s=E(o);{let i=B(()=>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)}}))})}m(t,o),Ie()}const Ph=Od({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=ee(""),$k=ee("");function eo(t,e){Me(e,!0);let r=I(e,"variant",3,"default"),n=I(e,"size",3,"default"),o=I(e,"ref",15,null),s=I(e,"href",3,void 0),i=I(e,"type",3,"button"),a=Ge(e,Ek);var c=re(),u=E(c);{var f=h=>{var p=Tk();Ye(p,b=>({"data-slot":"button",class:b,href:e.disabled?void 0:s(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...a}),[()=>He(Ph({variant:r(),size:n()}),e.class)]);var g=F(p);De(g,()=>e.children??Fe),gt(p,b=>o(b),()=>o()),m(h,p)},v=h=>{var p=$k();Ye(p,b=>({"data-slot":"button",class:b,type:i(),disabled:e.disabled,...a}),[()=>He(Ph({variant:r(),size:n()}),e.class)]);var g=F(p);De(g,()=>e.children??Fe),gt(p,b=>o(b),()=>o()),m(h,p)};Ne(u,h=>{s()?h(f):h(v,-1)})}m(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 Ok={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=Da("");function rt(t,e){const r=Je(e,["children","$$slots","$$events","$$legacy"]),n=Je(r,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);Me(e,!1);let o=I(e,"name",8,void 0),s=I(e,"color",8,"currentColor"),i=I(e,"size",8,24),a=I(e,"strokeWidth",8,2),c=I(e,"absoluteStrokeWidth",8,!1),u=I(e,"iconNode",24,()=>[]);jb();var f=Ik();Ye(f,(p,g,b)=>({...Ok,...p,...n,width:i(),height:i(),stroke:s(),"stroke-width":g,class:b}),[()=>Mk(n)?void 0:{"aria-hidden":"true"},()=>(wo(c()),wo(a()),wo(i()),Sr(()=>c()?Number(a())*24/Number(i()):a())),()=>(wo(Ch),wo(o()),wo(r),Sr(()=>Ch("lucide-icon","lucide",o()?`lucide-${o()}`:"",r.class)))]);var v=F(f);Et(v,1,u,Wt,(p,g)=>{var b=B(()=>Qg(d(g),2));let y=()=>d(b)[0],w=()=>d(b)[1];var P=re(),N=E(P);Wv(N,y,!0,(C,k)=>{Ye(C,()=>({...w()}))}),m(p,P)});var h=S(v);tt(h,e,"default",{}),m(t,f),Ie()}function Nk(t,e){const r=Je(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"}]];rt(t,je({name:"activity"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function zk(t,e){const r=Je(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"}]];rt(t,je({name:"arrow-down-up"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Rk(t,e){const r=Je(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"}]];rt(t,je({name:"arrow-down"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Fk(t,e){const r=Je(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"}]];rt(t,je({name:"arrow-up"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Jc(t,e){const r=Je(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"}]];rt(t,je({name:"chevron-down"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Xd(t,e){const r=Je(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"}]];rt(t,je({name:"circle-alert"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Ah(t,e){const r=Je(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"}]];rt(t,je({name:"circle-dot"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Lk(t,e){const r=Je(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"}]];rt(t,je({name:"clock-3"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Bn(t,e){const r=Je(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"}]];rt(t,je({name:"gauge"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Eh(t,e){const r=Je(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"}]];rt(t,je({name:"globe"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Dk(t,e){const r=Je(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"}]];rt(t,je({name:"inbox"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Bk(t,e){const r=Je(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"}]];rt(t,je({name:"layout-panel-top"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Vk(t,e){const r=Je(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"}]];rt(t,je({name:"link"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Wk(t,e){const r=Je(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"}]];rt(t,je({name:"list-x"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Bg(t,e){const r=Je(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"}]];rt(t,je({name:"loader-circle"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function jk(t,e){const r=Je(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"}]];rt(t,je({name:"log-out"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Gk(t,e){const r=Je(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"}]];rt(t,je({name:"network"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Hk(t,e){const r=Je(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"}]];rt(t,je({name:"package"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Kk(t,e){const r=Je(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"}]];rt(t,je({name:"route"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Vg(t,e){const r=Je(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"}]];rt(t,je({name:"search"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Uk(t,e){const r=Je(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"}]];rt(t,je({name:"sliders-horizontal"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function qk(t,e){const r=Je(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"}]];rt(t,je({name:"sprout"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}function Th(t,e){const r=Je(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"}]];rt(t,je({name:"star"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=re(),a=E(i);tt(a,e,"default",{}),m(o,i)},$$slots:{default:!0}}))}var Yk=ee('
',1),$h=ee(" ",1),Xk=ee(" Signing in…",1),Zk=ee('
'),Jk=ee('
');function Qk(t,e){Me(e,!0);let r=Ae(""),n=Ae(""),o=Ae(!1),s=Ae(null);_d(()=>{var u;(u=d(s))==null||u.focus()});async function i(){if(!(!d(r)||d(o))){M(o,!0),M(n,"");try{await us.login(d(r)),M(r,""),e.onLogin()}catch(u){M(n,u instanceof Error?u.message:"login failed",!0)}finally{M(o,!1)}}}var a=Jk(),c=F(a);$(c,()=>wt,(u,f)=>{f(u,{class:"w-full max-w-sm",children:(v,h)=>{var p=$h(),g=E(p);$(g,()=>Nt,(y,w)=>{w(y,{children:(P,N)=>{var C=Yk(),k=E(C),A=F(k);qk(A,{class:"size-5","aria-hidden":"true"});var R=S(k,2);$(R,()=>or,(L,H)=>{H(L,{children:(he,Q)=>{var ue=Ee("Sower Admin");m(he,ue)},$$slots:{default:!0}})});var x=S(R,2);$(x,()=>It,(L,H)=>{H(L,{children:(he,Q)=>{var ue=Ee("输入 sower 配置中的 admin 密码。");m(he,ue)},$$slots:{default:!0}})}),m(P,C)},$$slots:{default:!0}})});var b=S(g,2);$(b,()=>kt,(y,w)=>{w(y,{children:(P,N)=>{var C=Zk(),k=F(C),A=F(k);Ak(A,{for:"admin-password",children:(he,Q)=>{var ue=Ee("Password");m(he,ue)},$$slots:{default:!0}});var R=S(A,2);Ll(R,{id:"admin-password",type:"password",placeholder:"Password",autocomplete:"current-password",get ref(){return d(s)},set ref(he){M(s,he,!0)},get value(){return d(r)},set value(he){M(r,he,!0)}});var x=S(k,2);{var L=he=>{var Q=re(),ue=E(Q);$(ue,()=>Md,(pe,Y)=>{Y(pe,{variant:"destructive",children:(D,q)=>{var Z=$h(),le=E(Z);Xd(le,{class:"size-4"});var T=S(le,2);$(T,()=>Pd,(we,$e)=>{$e(we,{children:(ne,de)=>{var te=Ee();Ce(()=>ye(te,d(n))),m(ne,te)},$$slots:{default:!0}})}),m(D,Z)},$$slots:{default:!0}})}),m(he,Q)};Ne(x,he=>{d(n)&&he(L)})}var H=S(x,2);{let he=B(()=>d(o)||!d(r));eo(H,{type:"submit",get disabled(){return d(he)},children:(Q,ue)=>{var pe=re(),Y=E(pe);{var D=Z=>{var le=Xk(),T=E(le);Bg(T,{class:"size-4 animate-spin","aria-hidden":"true"}),m(Z,le)},q=Z=>{var le=Ee("Sign in");m(Z,le)};Ne(Y,Z=>{d(o)?Z(D):Z(q,-1)})}m(Q,pe)},$$slots:{default:!0}})}Rv("submit",C,he=>{he.preventDefault(),i()}),m(P,C)},$$slots:{default:!0}})}),m(v,p)},$$slots:{default:!0}})}),m(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 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 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 st=Qt({status:null,traffic:null,history:[],totals:null,connected:!1});let Ft=null,sd="",El=null;function il(t){try{return JSON.parse(t)}catch{return null}}function rS(t){El=t}function Wg(t=""){Ft&&t===sd||(sd=t,Ft==null||Ft.close(),Ft=new EventSource(`/api/stream${t?`?${t}`:""}`),Ft.onopen=()=>st.connected=!0,Ft.onerror=()=>st.connected=!1,Ft.addEventListener("status",e=>{const r=il(e.data);r&&(st.status=r)}),Ft.addEventListener("traffic",e=>{const r=il(e.data);r&&(st.traffic=r)}),Ft.addEventListener("history",e=>{const r=il(e.data);r&&(st.history=r.samples)}),Ft.addEventListener("totals",e=>{const r=il(e.data);r&&(st.totals=r)}),Ft.addEventListener("auth",()=>{El==null||El()}))}function nS(){Ft==null||Ft.close(),Ft=null,sd="",st.status=null,st.traffic=null,st.history=[],st.totals=null,st.connected=!1}const oS=Od({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 ps(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=I(e,"variant",3,"default"),o=Ge(e,sS);var s=re(),i=E(s);Wv(i,()=>e.href?"a":"span",!1,(a,c)=>{gt(a,v=>r(v),()=>r()),Ye(a,v=>({"data-slot":"badge",href:e.href,class:v,...o}),[()=>He(oS({variant:n()}),e.class)]);var u=re(),f=E(u);De(f,()=>e.children??Fe),m(c,u)}),m(t,s),Ie()}var iS=ee('
');function Zd(t,e){let r=I(e,"label",3,"加载中…");var n=iS(),o=F(n);Bg(o,{class:"size-4 animate-spin","aria-hidden":"true"});var s=S(o,2),i=F(s);Ce(()=>ye(i,r())),m(t,n)}var aS=Da(''),lS=Da(''),cS=Da(''),uS=Da(''),dS=ee(" "),fS=ee('
',1),hS=ee('
等待采样数据…
'),vS=ee(' '),pS=ee(' '),gS=ee('
');function al(t,e){Me(e,!0);let r=I(e,"height",3,160),n=I(e,"format",3,Q=>String(Q));const o=600,s=B(r),i=B(()=>e.series.flatMap(Q=>Q.values)),a=B(()=>d(i).length?Math.max(...d(i)):0),c=B(()=>d(i).length?Math.min(...d(i)):0),u=B(()=>d(a)-d(c)||1),f=B(()=>d(u)*.12),v=B(()=>d(a)+d(f)),h=B(()=>Math.max(0,d(c)-d(f))),p=B(()=>Q=>e.labels.length<=1?0:Q/(e.labels.length-1)*o),g=B(()=>Q=>d(s)-(Q-d(h))/(d(v)-d(h))*d(s)),b=B(()=>Q=>Q.length?Q.map((ue,pe)=>`${pe===0?"M":"L"}${d(p)(pe).toFixed(1)},${d(g)(ue).toFixed(1)}`).join(" "):""),y=B(()=>Q=>Q.length?`${d(b)(Q)} L${d(p)(Q.length-1).toFixed(1)},${d(s)} L${d(p)(0).toFixed(1)},${d(s)} Z`:""),w=B(()=>e.labels.length<=2?[0,e.labels.length-1]:[0,Math.floor(e.labels.length/2),e.labels.length-1]),P=B(()=>d(w).map(Q=>e.labels[Q])),N=B(()=>e.labels.length>=2);let C=Ae(null),k=Ae(void 0);function A(Q){if(!d(k))return;const ue=d(k).getBoundingClientRect();if(ue.width===0||e.labels.length<2)return;const pe=(Q.clientX-ue.left)/ue.width;M(C,Math.max(0,Math.min(e.labels.length-1,Math.round(pe*(e.labels.length-1)))),!0)}var R=gS(),x=F(R);{var L=Q=>{var ue=fS(),pe=E(ue),Y=F(pe);Et(Y,16,()=>[.25,.5,.75],Wt,(we,$e)=>{var ne=aS();xt(ne,"x2",o),Ce(()=>{xt(ne,"y1",d(s)*$e),xt(ne,"y2",d(s)*$e)}),m(we,ne)});var D=S(Y);Et(D,17,()=>e.series,Wt,(we,$e)=>{var ne=lS();Ce(de=>{xt(ne,"d",de),as(ne,`fill:${d($e).color}`)},[()=>d(y)(d($e).values)]),m(we,ne)});var q=S(D);Et(q,17,()=>e.series,Wt,(we,$e)=>{var ne=cS();Ce(de=>{xt(ne,"d",de),as(ne,`stroke:${d($e).color}`)},[()=>d(b)(d($e).values)]),m(we,ne)});var Z=S(q);{var le=we=>{var $e=uS();Ce((ne,de)=>{xt($e,"x1",ne),xt($e,"x2",de),xt($e,"y2",d(s))},[()=>d(p)(d(C)),()=>d(p)(d(C))]),m(we,$e)};Ne(Z,we=>{d(C)!==null&&we(le)})}gt(pe,we=>M(k,we),()=>d(k));var T=S(pe,2);Et(T,21,()=>d(P),Wt,(we,$e)=>{var ne=dS(),de=F(ne);Ce(()=>ye(de,d($e))),m(we,ne)}),Ce(()=>{xt(pe,"viewBox",`0 0 ${o} ${d(s)}`),as(pe,`height:${d(s)}px`)}),xo("mousemove",pe,A),Rv("mouseleave",pe,()=>M(C,null)),m(Q,ue)},H=Q=>{var ue=hS();Ce(()=>as(ue,`height:${d(s)}px`)),m(Q,ue)};Ne(x,Q=>{d(N)?Q(L):Q(H,-1)})}var he=S(x,2);Et(he,21,()=>e.series,Wt,(Q,ue)=>{var pe=pS(),Y=F(pe),D=S(Y),q=S(D);{var Z=le=>{var T=vS(),we=F(T);Ce($e=>ye(we,$e),[()=>n()(d(ue).values[d(C)]??0)]),m(le,T)};Ne(q,le=>{d(C)!==null&&le(Z)})}Ce(()=>{as(Y,`background:${d(ue).color}`),ye(D,` ${d(ue).name??""} `)}),m(Q,pe)}),m(t,R),Ie()}xd(["mousemove"]);var dt=ee(" ",1),Ln=ee('
',1),mS=ee('

自启动以来

'),bS=ee('

全部上游查询

'),yS=ee('

'),ll=ee('

近 60 秒均值

'),Qc=ee('
'),wS=ee('
HTTP
HTTPS
SOCKS5

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

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

',1);function SS(t,e){Me(e,!0);const r=B(()=>st.traffic),n=B(()=>st.history),o=g=>new Date(g).toTimeString().slice(0,5),s=B(()=>d(n).map(g=>o(g.at)));function i(g){return d(n).map((b,y)=>{if(y===0)return 0;const w=d(n)[y-1];if(!w)return 0;const P=(new Date(b.at).getTime()-new Date(w.at).getTime())/1e3;return P>0?b[g]/P:0})}const a=g=>`${mr(g)}/s`,c=g=>`${g.toFixed(1)}/s`,u=B(()=>{const g=d(n)[0],b=d(n)[d(n).length-1];return g&&b?`${o(g.at)} – ${o(b.at)} · 进程内历史,重启后清空`:"进程内历史,重启后清空"});var f=re(),v=E(f);{var h=g=>{Zd(g,{})},p=g=>{var b=kS(),y=E(b);{var w=ne=>{var de=re(),te=E(de);$(te,()=>Md,(me,V)=>{V(me,{variant:"destructive",class:"mb-4",children:(J,j)=>{var X=dt(),G=E(X);Xd(G,{class:"size-4"});var U=S(G,2);$(U,()=>Pd,(fe,z)=>{z(fe,{children:(W,ae)=>{var ce=Ee("实时连接已断开,正在重连…");m(W,ce)},$$slots:{default:!0}})}),m(J,X)},$$slots:{default:!0}})}),m(ne,de)};Ne(y,ne=>{st.connected||ne(w)})}var P=S(y,2),N=F(P);$(N,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Ln(),W=E(z),ae=F(W);$(ae,()=>It,(oe,be)=>{be(oe,{children:(se,ze)=>{var ke=Ee("版本");m(se,ke)},$$slots:{default:!0}})});var ce=S(ae,2);Hk(ce,{class:"size-4 text-muted-foreground"});var ve=S(W,2);$(ve,()=>or,(oe,be)=>{be(oe,{class:"text-xl",children:(se,ze)=>{var ke=Ee();Ce(()=>ye(ke,e.status.version||"-")),m(se,ke)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{ps(U,{variant:"secondary",children:(z,W)=>{var ae=Ee();Ce(()=>ye(ae,e.status.date||"unknown build date")),m(z,ae)},$$slots:{default:!0}})},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var C=S(N,2);$(C,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Ln(),W=E(z),ae=F(W);$(ae,()=>It,(oe,be)=>{be(oe,{children:(se,ze)=>{var ke=Ee("运行时长");m(se,ke)},$$slots:{default:!0}})});var ce=S(ae,2);Lk(ce,{class:"size-4 text-muted-foreground"});var ve=S(W,2);$(ve,()=>or,(oe,be)=>{be(oe,{class:"text-xl tabular-nums",children:(se,ze)=>{var ke=Ee();Ce(Re=>ye(ke,Re),[()=>eS(d(r).uptime)]),m(se,ke)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{var z=mS();m(U,z)},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var k=S(C,2);$(k,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Ln(),W=E(z),ae=F(W);$(ae,()=>It,(oe,be)=>{be(oe,{children:(se,ze)=>{var ke=Ee("DNS 查询");m(se,ke)},$$slots:{default:!0}})});var ce=S(ae,2);Eh(ce,{class:"size-4 text-muted-foreground"});var ve=S(W,2);$(ve,()=>or,(oe,be)=>{be(oe,{class:"text-xl tabular-nums",children:(se,ze)=>{var ke=Ee();Ce(Re=>ye(ke,Re),[()=>et(d(r).dnsQueries)]),m(se,ke)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{var z=bS();m(U,z)},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var A=S(k,2);$(A,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Ln(),W=E(z),ae=F(W);$(ae,()=>It,(oe,be)=>{be(oe,{children:(se,ze)=>{var ke=Ee("代理流量");m(se,ke)},$$slots:{default:!0}})});var ce=S(ae,2);zk(ce,{class:"size-4 text-muted-foreground"});var ve=S(W,2);$(ve,()=>or,(oe,be)=>{be(oe,{class:"text-xl tabular-nums",children:(se,ze)=>{var ke=Ee();Ce(Re=>ye(ke,Re),[()=>mr(d(r).bytesUp+d(r).bytesDown)]),m(se,ke)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{var z=yS(),W=F(z);Ce((ae,ce)=>ye(W,`↑ ${ae??""} / ↓ ${ce??""}`),[()=>mr(d(r).bytesUp),()=>mr(d(r).bytesDown)]),m(U,z)},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var R=S(P,2),x=F(R);$(x,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Ln(),W=E(z),ae=F(W);$(ae,()=>It,(oe,be)=>{be(oe,{children:(se,ze)=>{var ke=Ee("上行速率");m(se,ke)},$$slots:{default:!0}})});var ce=S(ae,2);Fk(ce,{class:"size-4 text-muted-foreground"});var ve=S(W,2);$(ve,()=>or,(oe,be)=>{be(oe,{class:"text-xl tabular-nums",children:(se,ze)=>{var ke=Ee();Ce(Re=>ye(ke,`${Re??""}/s`),[()=>mr(d(r).rates.bytesUpPerSec)]),m(se,ke)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{var z=ll();m(U,z)},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var L=S(x,2);$(L,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Ln(),W=E(z),ae=F(W);$(ae,()=>It,(oe,be)=>{be(oe,{children:(se,ze)=>{var ke=Ee("下行速率");m(se,ke)},$$slots:{default:!0}})});var ce=S(ae,2);Rk(ce,{class:"size-4 text-muted-foreground"});var ve=S(W,2);$(ve,()=>or,(oe,be)=>{be(oe,{class:"text-xl tabular-nums",children:(se,ze)=>{var ke=Ee();Ce(Re=>ye(ke,`${Re??""}/s`),[()=>mr(d(r).rates.bytesDownPerSec)]),m(se,ke)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{var z=ll();m(U,z)},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var H=S(L,2);$(H,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Ln(),W=E(z),ae=F(W);$(ae,()=>It,(oe,be)=>{be(oe,{children:(se,ze)=>{var ke=Ee("DNS 速率");m(se,ke)},$$slots:{default:!0}})});var ce=S(ae,2);Eh(ce,{class:"size-4 text-muted-foreground"});var ve=S(W,2);$(ve,()=>or,(oe,be)=>{be(oe,{class:"text-xl tabular-nums",children:(se,ze)=>{var ke=Ee();Ce(Re=>ye(ke,`${Re??""}/s`),[()=>d(r).rates.dnsPerSec.toFixed(1)]),m(se,ke)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{var z=ll();m(U,z)},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var he=S(H,2);$(he,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Ln(),W=E(z),ae=F(W);$(ae,()=>It,(oe,be)=>{be(oe,{children:(se,ze)=>{var ke=Ee("连接速率");m(se,ke)},$$slots:{default:!0}})});var ce=S(ae,2);Vk(ce,{class:"size-4 text-muted-foreground"});var ve=S(W,2);$(ve,()=>or,(oe,be)=>{be(oe,{class:"text-xl tabular-nums",children:(se,ze)=>{var ke=Ee();Ce(Re=>ye(ke,`${Re??""}/s`),[()=>d(r).rates.connsPerSec.toFixed(1)]),m(se,ke)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{var z=ll();m(U,z)},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var Q=S(R,2),ue=F(Q);$(ue,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Qc(),W=F(z);$(W,()=>It,(ce,ve)=>{ve(ce,{children:(oe,be)=>{var se=Ee("活跃连接");m(oe,se)},$$slots:{default:!0}})});var ae=S(W,2);Gk(ae,{class:"size-4 text-muted-foreground"}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{class:"space-y-2",children:(U,fe)=>{var z=wS(),W=E(z),ae=S(F(W),2),ce=F(ae),ve=S(W,2),oe=S(F(ve),2),be=F(oe),se=S(ve,2),ze=S(F(se),2),ke=F(ze),Re=S(se,2),Ke=F(Re);Ce((at,Xe,mt)=>{ye(ce,d(r).active.http),ye(be,d(r).active.https),ye(ke,d(r).active.socks5),ye(Ke,`累计 ${at??""} / ${Xe??""} / ${mt??""}`)},[()=>et(d(r).conns.http),()=>et(d(r).conns.https),()=>et(d(r).conns.socks5)]),m(U,z)},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var pe=S(ue,2);$(pe,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Qc(),W=F(z);$(W,()=>It,(ce,ve)=>{ve(ce,{children:(oe,be)=>{var se=Ee("规则命中");m(oe,se)},$$slots:{default:!0}})});var ae=S(W,2);Kk(ae,{class:"size-4 text-muted-foreground"}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{class:"space-y-2",children:(U,fe)=>{var z=xS(),W=E(z),ae=S(F(W),2),ce=F(ae),ve=S(W,2),oe=S(F(ve),2),be=F(oe),se=S(ve,2),ze=S(F(se),2),ke=F(ze),Re=S(se,2),Ke=F(Re);Ce((at,Xe,mt,lt,ut,nt)=>{ye(ce,at),ye(be,Xe),ye(ke,mt),ye(Ke,`已配置 ${lt??""} / ${ut??""} / ${nt??""} 条`)},[()=>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)]),m(U,z)},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var Y=S(pe,2);$(Y,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=Qc(),W=F(z);$(W,()=>It,(ce,ve)=>{ve(ce,{children:(oe,be)=>{var se=Ee("系统");m(oe,se)},$$slots:{default:!0}})});var ae=S(W,2);Bn(ae,{class:"size-4 text-muted-foreground"}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{class:"space-y-2",children:(U,fe)=>{var z=_S(),W=E(z),ae=S(F(W),2),ce=F(ae),ve=S(W,2),oe=S(F(ve),2),be=F(oe);Ce((se,ze)=>{ye(ce,se),ye(be,ze)},[()=>et(d(r).system.goroutines),()=>mr(d(r).system.heapAlloc)]),m(U,z)},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var D=S(Q,2),q=F(D);$(q,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=dt(),W=E(z);$(W,()=>It,(ce,ve)=>{ve(ce,{children:(oe,be)=>{var se=Ee("流量历史");m(oe,se)},$$slots:{default:!0}})});var ae=S(W,2);$(ae,()=>or,(ce,ve)=>{ve(ce,{class:"text-base",children:(oe,be)=>{var se=Ee("上下行速率");m(oe,se)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{{let z=B(()=>[{name:"下行",color:"var(--chart-1)",values:i("bytesDown")},{name:"上行",color:"var(--chart-4)",values:i("bytesUp")}]);al(U,{get series(){return d(z)},get labels(){return d(s)},format:a})}},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var Z=S(q,2);$(Z,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=dt(),W=E(z);$(W,()=>It,(ce,ve)=>{ve(ce,{children:(oe,be)=>{var se=Ee("DNS 与连接");m(oe,se)},$$slots:{default:!0}})});var ae=S(W,2);$(ae,()=>or,(ce,ve)=>{ve(ce,{class:"text-base",children:(oe,be)=>{var se=Ee("每秒查询 / 新建连接");m(oe,se)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{{let z=B(()=>[{name:"DNS",color:"var(--chart-2)",values:i("dns")},{name:"连接",color:"var(--chart-3)",values:i("conns")}]);al(U,{get series(){return d(z)},get labels(){return d(s)},format:c})}},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var le=S(Z,2);$(le,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=dt(),W=E(z);$(W,()=>It,(ce,ve)=>{ve(ce,{children:(oe,be)=>{var se=Ee("活跃连接");m(oe,se)},$$slots:{default:!0}})});var ae=S(W,2);$(ae,()=>or,(ce,ve)=>{ve(ce,{class:"text-base",children:(oe,be)=>{var se=Ee("分协议在线数");m(oe,se)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{{let z=B(()=>[{name:"HTTP",color:"var(--chart-1)",values:d(n).map(W=>W.activeHttp)},{name:"HTTPS",color:"var(--chart-4)",values:d(n).map(W=>W.activeHttps)},{name:"SOCKS5",color:"var(--chart-3)",values:d(n).map(W=>W.activeSocks)}]);al(U,{get series(){return d(z)},get labels(){return d(s)},get format(){return et}})}},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var T=S(le,2);$(T,()=>wt,(ne,de)=>{de(ne,{children:(te,me)=>{var V=dt(),J=E(V);$(J,()=>Nt,(X,G)=>{G(X,{children:(U,fe)=>{var z=dt(),W=E(z);$(W,()=>It,(ce,ve)=>{ve(ce,{children:(oe,be)=>{var se=Ee("规则命中");m(oe,se)},$$slots:{default:!0}})});var ae=S(W,2);$(ae,()=>or,(ce,ve)=>{ve(ce,{class:"text-base",children:(oe,be)=>{var se=Ee("每秒路由决策");m(oe,se)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})});var j=S(J,2);$(j,()=>kt,(X,G)=>{G(X,{children:(U,fe)=>{{let z=B(()=>[{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")}]);al(U,{get series(){return d(z)},get labels(){return d(s)},format:c})}},$$slots:{default:!0}})}),m(te,V)},$$slots:{default:!0}})});var we=S(D,2),$e=F(we);Ce(()=>ye($e,d(u))),m(g,b)};Ne(v,g=>{!e.status||!d(r)?g(h):g(p,-1)})}m(t,f),Ie()}var PS=ee(" ",1),CS=ee('

'),AS=ee(' '),ES=ee('
'),TS=ee('

'),$S=ee('
路由
'),OS=ee('
',1),MS=ee('

'),IS=ee('
'),NS=ee('
',1),zS=ee(" ",1);function RS(t,e){Me(e,!0);const r=200;let n=Ae(null),o=Ae(0),s=Ae(0),i=Ae(""),a=Ae(""),c=Ae(!1),u=Ae(!1),f=0,v;function h(q,Z){return q===f&&Z===e.category}async function p(q){const Z=++f,le=e.category,T=d(i);q||M(u,!0);try{const we=await us.rules(le,{q:T,offset:q?0:d(s),limit:r});if(!h(Z,le))return;M(n,q?we.rules:[...d(n)??[],...we.rules],!0),M(o,we.total,!0),M(s,we.offset+we.rules.length),M(a,"")}catch(we){if(!h(Z,le))return;if(we instanceof hi&&we.status===401){e.onUnauthorized();return}M(a,we instanceof Error?we.message:"load failed",!0)}finally{h(Z,le)&&M(u,!1)}}async function g(){var T;const q=++f,Z=e.category,le=Math.max(((T=d(n))==null?void 0:T.length)??r,r);try{const we=await us.rules(Z,{q:d(i),offset:0,limit:le});if(!h(q,Z))return;M(n,we.rules,!0),M(o,we.total,!0),M(s,we.offset+we.rules.length),M(a,"")}catch(we){if(!h(q,Z))return;if(we instanceof hi&&we.status===401){e.onUnauthorized();return}M(a,we instanceof Error?we.message:"refresh failed",!0)}}async function b(q){if(d(c))return;const Z=++f,le=e.category;M(c,!0),M(a,"");try{if(await us.removeRules(le,[q]),!h(Z,le))return;await g()}catch(T){if(!h(Z,le))return;if(T instanceof hi&&T.status===401){e.onUnauthorized();return}M(a,T instanceof Error?T.message:"remove failed",!0)}finally{h(Z,le)&&M(c,!1)}}let y=Ae(""),w=Ae(null),P=Ae(!1),N=Ae("");const C={block:"拦截",direct:"直连",proxy:"代理",auto:"自动检测"};function k(q){switch(q){case"block":return"destructive";case"direct":return"secondary";case"proxy":return"default";default:return"outline"}}function A(q,Z){if(!Z)return"outline";switch(q){case"block":return"destructive";case"direct":return"secondary";default:return"default"}}async function R(){const q=d(y).trim();if(!(!q||d(P))){M(P,!0),M(N,""),M(w,null);try{M(w,await us.rulesTest(q),!0)}catch(Z){if(Z instanceof hi&&Z.status===401){e.onUnauthorized();return}M(N,Z instanceof Error?Z.message:"test failed",!0)}finally{M(P,!1)}}}ct(()=>{e.category,clearTimeout(v),M(n,null),M(o,0),M(s,0),M(i,""),M(a,""),M(c,!1),p(!0)});function x(q){M(i,q.currentTarget.value,!0),clearTimeout(v),v=setTimeout(()=>{M(s,0),p(!0)},300)}var L=zS(),H=E(L);{var he=q=>{var Z=re(),le=E(Z);$(le,()=>Md,(T,we)=>{we(T,{variant:"destructive",class:"mb-4",children:($e,ne)=>{var de=PS(),te=E(de);Xd(te,{class:"size-4"});var me=S(te,2);$(me,()=>Pd,(V,J)=>{J(V,{children:(j,X)=>{var G=Ee();Ce(()=>ye(G,d(a))),m(j,G)},$$slots:{default:!0}})}),m($e,de)},$$slots:{default:!0}})}),m(q,Z)};Ne(H,q=>{d(a)&&q(he)})}var Q=S(H,2);$(Q,()=>wt,(q,Z)=>{Z(q,{class:"mb-4",children:(le,T)=>{var we=re(),$e=E(we);$($e,()=>kt,(ne,de)=>{de(ne,{class:"grid gap-3 pt-6",children:(te,me)=>{var V=OS(),J=E(V),j=F(J);Ll(j,{placeholder:"检测域名路由,如 example.com","aria-label":"检测域名",onkeydown:W=>{W.key==="Enter"&&R()},get value(){return d(y)},set value(W){M(y,W,!0)}});var X=S(j,2);{let W=B(()=>d(P)||!d(y).trim());eo(X,{onclick:R,get disabled(){return d(W)},children:(ae,ce)=>{var ve=Ee();Ce(()=>ye(ve,d(P)?"检测中…":"检测")),m(ae,ve)},$$slots:{default:!0}})}var G=S(J,2);{var U=W=>{var ae=CS(),ce=F(ae);Ce(()=>ye(ce,d(N))),m(W,ae)};Ne(G,W=>{d(N)&&W(U)})}var fe=S(G,2);{var z=W=>{var ae=$S(),ce=F(ae),ve=S(F(ce),2);{let Re=B(()=>k(d(w).route));ps(ve,{get variant(){return d(Re)},children:(Ke,at)=>{var Xe=Ee();Ce(()=>ye(Xe,C[d(w).route])),m(Ke,Xe)},$$slots:{default:!0}})}var oe=S(ve,2),be=F(oe),se=S(ce,2);Et(se,21,()=>d(w).matches,Wt,(Re,Ke)=>{var at=ES(),Xe=F(at);{let ut=B(()=>A(d(Ke).category,d(Ke).matched));ps(Xe,{get variant(){return d(ut)},children:(nt,ot)=>{var Tt=Ee();Ce(()=>ye(Tt,`${d(Ke).category??""}${d(Ke).matched?"":" 未命中"}`)),m(nt,Tt)},$$slots:{default:!0}})}var mt=S(Xe,2);{var lt=ut=>{var nt=AS(),ot=F(nt);Ce(()=>ye(ot,d(Ke).rule)),m(ut,nt)};Ne(mt,ut=>{d(Ke).matched&&ut(lt)})}m(Re,at)});var ze=S(se,2);{var ke=Re=>{var Ke=TS(),at=F(Ke);Ce(()=>ye(at,d(w).note)),m(Re,Ke)};Ne(ze,Re=>{d(w).note&&Re(ke)})}Ce(()=>ye(be,d(w).domain)),m(W,ae)};Ne(fe,W=>{d(w)&&W(z)})}m(te,V)},$$slots:{default:!0}})}),m(le,we)},$$slots:{default:!0}})});var ue=S(Q,2);{var pe=q=>{Zd(q,{})},Y=q=>{var Z=MS(),le=F(Z);Wk(le,{class:"size-5","aria-hidden":"true"});var T=S(le,2),we=F(T);Ce($e=>ye(we,$e),[()=>d(i).trim()?`没有匹配“${d(i).trim()}”的规则。`:"该分类暂无规则。"]),m(q,Z)},D=q=>{var Z=NS(),le=E(Z),T=F(le),we=F(T);Vg(we,{class:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"});var $e=S(we,2);Ll($e,{get value(){return d(i)},oninput:x,placeholder:"搜索规则…","aria-label":"搜索规则",class:"pl-8"});var ne=S(T,2);ps(ne,{variant:"secondary",class:"ml-auto shrink-0",children:(V,J)=>{var j=re(),X=E(j);{var G=fe=>{var z=Ee();Ce(W=>ye(z,`${W??""} rules`),[()=>et(d(o))]),m(fe,z)},U=fe=>{var z=Ee();Ce((W,ae)=>ye(z,`${W??""} / ${ae??""} rules`),[()=>et(d(n).length),()=>et(d(o))]),m(fe,z)};Ne(X,fe=>{d(n).length===d(o)?fe(G):fe(U,-1)})}m(V,j)},$$slots:{default:!0}});var de=S(le,2);$(de,()=>wt,(V,J)=>{J(V,{children:(j,X)=>{var G=re(),U=E(G);$(U,()=>kt,(fe,z)=>{z(fe,{class:"divide-y p-0",children:(W,ae)=>{var ce=re(),ve=E(ce);Et(ve,16,()=>d(n),oe=>oe,(oe,be)=>{var se=IS(),ze=F(se),ke=F(ze),Re=S(ze,2);eo(Re,{variant:"ghost",size:"sm",class:"shrink-0 text-destructive hover:bg-destructive/10 hover:text-destructive",onclick:()=>b(be),get disabled(){return d(c)},children:(Ke,at)=>{var Xe=Ee("Remove");m(Ke,Xe)},$$slots:{default:!0}}),Ce(()=>ye(ke,be)),m(oe,se)}),m(W,ce)},$$slots:{default:!0}})}),m(j,G)},$$slots:{default:!0}})});var te=S(de,2);{var me=V=>{{let J=B(()=>d(u)||d(c));eo(V,{variant:"outline",class:"mt-3 w-full",onclick:()=>p(!1),get disabled(){return d(J)},children:(j,X)=>{var G=Ee();Ce(U=>ye(G,U),[()=>d(u)?"加载中…":`加载更多(已加载 ${et(d(n).length)} / ${et(d(o))})`]),m(j,G)},$$slots:{default:!0}})}};Ne(te,V=>{d(n).length{d(n)===null?q(pe):d(o)===0?q(Y,1):q(D,-1)})}m(t,L),Ie()}var FS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),LS=ee("");function DS(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,FS);var o=LS();Ye(o,i=>({"data-slot":"table-body",class:i,...n}),[()=>He("[&_tr:last-child]:border-0",e.class)]);var s=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var BS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),VS=ee("");function Dn(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,BS);var o=VS();Ye(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=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var WS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),jS=ee("");function yo(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,WS);var o=jS();Ye(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=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var GS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),HS=ee("");function KS(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,GS);var o=HS();Ye(o,i=>({"data-slot":"table-header",class:i,...n}),[()=>He("[&_tr]:border-b",e.class)]);var s=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var US=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),qS=ee("");function eu(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,US);var o=qS();Ye(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=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var YS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),XS=ee('
');function ZS(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,YS);var o=XS(),s=F(o);Ye(s,a=>({"data-slot":"table",class:a,...n}),[()=>He("w-full caption-bottom text-sm",e.class)]);var i=F(s);De(i,()=>e.children??Fe),gt(s,a=>r(a),()=>r()),m(t,o),Ie()}var JS=ee('

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

'),QS=ee(''),eP=ee('
'),tP=ee(''),rP=ee('
'),nP=ee('

'),Oh=ee(" ",1),Mh=ee(" ",1),Ih=ee(" ",1),Nh=ee('

'),oP=ee('
',1);function sP(t,e){Me(e,!0);let r=I(e,"source",3,"all");const n=[{value:"bytes",label:"流量"},{value:"recent",label:"最近"},{value:"conns",label:"连接数"}];let o=Ae("live");const s=B(()=>{var k,A;return d(o)==="totals"?((k=st.totals)==null?void 0:k.domains)??[]:((A=st.traffic)==null?void 0:A.domains)??[]}),i=B(()=>{var k,A;return d(o)==="totals"?((k=st.totals)==null?void 0:k.clients)??[]:((A=st.traffic)==null?void 0:A.clients)??[]});let a=Ae(""),c=Ae("bytes"),u=Ae("");const f=B(()=>{var k;return((k=n.find(A=>A.value===d(c)))==null?void 0:k.label)??"流量"}),v={all:"流量",http:"HTTP",https:"HTTPS",socks5:"SOCKS5",dns:"DNS"},h=B(()=>v[r()]),p=B(()=>r()==="dns"),g=B(()=>{const k=d(a).trim().toLowerCase();return k?d(s).filter(A=>A.domain.toLowerCase().includes(k)):d(s)}),b=B(()=>d(o)==="totals"||!d(p));ct(()=>{const k=new URLSearchParams;d(c)!=="bytes"&&k.set("sort",d(c)),r()!=="all"&&k.set("source",r()),d(u)&&k.set("client",d(u)),Wg(k.toString())});const y="sticky top-0 z-10 bg-card";var w=re(),P=E(w);{var N=k=>{Zd(k,{})},C=k=>{var A=oP(),R=E(A);{var x=V=>{var J=JS();m(V,J)};Ne(R,V=>{st.connected||V(x)})}var L=S(R,2),H=F(L),he=F(H);Vg(he,{class:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"});var Q=S(he,2);Ll(Q,{placeholder:"过滤域名…","aria-label":"过滤域名",class:"pl-8",get value(){return d(a)},set value(V){M(a,V,!0)}});var ue=S(H,2),pe=F(ue),Y=S(pe,2),D=S(ue,2);{var q=V=>{var J=eP();Et(J,21,()=>n,Wt,(j,X)=>{var G=QS(),U=F(G);Ce(()=>{Vn(G,1,`rounded-sm px-2.5 py-1 text-xs font-medium transition-colors ${d(c)===d(X).value?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`),xt(G,"aria-pressed",d(c)===d(X).value),ye(U,d(X).label)}),xo("click",G,()=>M(c,d(X).value,!0)),m(j,G)}),m(V,J)};Ne(D,V=>{d(o)==="live"&&V(q)})}var Z=S(D,2);ps(Z,{variant:"secondary",class:"ml-auto shrink-0",children:(V,J)=>{var j=re(),X=E(j);{var G=fe=>{var z=Ee();Ce(W=>ye(z,`${W??""} domains`),[()=>et(d(g).length)]),m(fe,z)},U=fe=>{var z=Ee();Ce((W,ae)=>ye(z,`${W??""} / ${ae??""} domains`),[()=>et(d(g).length),()=>et(d(s).length)]),m(fe,z)};Ne(X,fe=>{d(g).length===d(s).length?fe(G):fe(U,-1)})}m(V,j)},$$slots:{default:!0}});var le=S(L,2);{var T=V=>{var J=rP(),j=F(J),X=S(j,2);Et(X,17,()=>d(i),Wt,(G,U)=>{var fe=tP(),z=F(fe),W=S(z),ae=F(W);Ce((ce,ve)=>{Vn(fe,1,`rounded-full border px-3 py-1 font-mono text-xs transition-colors ${d(o)==="live"&&d(u)===d(U).ip?"border-primary/40 bg-primary/10 text-foreground":"text-muted-foreground hover:text-foreground"}`),xt(fe,"aria-pressed",d(o)==="live"&&d(u)===d(U).ip),xt(fe,"title",ce),ye(z,`${d(U).ip??""} `),ye(ae,ve)},[()=>`${et(d(U).conns)} 次 · ↑${mr(d(U).bytesUp)} ↓${mr(d(U).bytesDown)}`,()=>et(d(U).conns)]),xo("click",fe,()=>{d(o)==="totals"&&M(o,"live"),M(u,d(U).ip,!0)}),m(G,fe)}),Ce(()=>{Vn(j,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"}`),xt(j,"aria-pressed",d(o)==="live"&&!d(u))}),xo("click",j,()=>M(u,"")),m(V,J)};Ne(le,V=>{d(i).length>0&&V(T)})}var we=S(le,2);{var $e=V=>{var J=nP(),j=F(J);Dk(j,{class:"size-5","aria-hidden":"true"});var X=S(j,2),G=F(X);Ce(()=>ye(G,d(o)==="totals"?"暂无总计记录。":`暂无${d(h)}记录。`)),m(V,J)},ne=V=>{var J=re(),j=E(J);$(j,()=>wt,(X,G)=>{G(X,{class:"max-h-[70vh] overflow-auto",children:(U,fe)=>{var z=re(),W=E(z);$(W,()=>ZS,(ae,ce)=>{ce(ae,{children:(ve,oe)=>{var be=Ih(),se=E(be);$(se,()=>KS,(ke,Re)=>{Re(ke,{children:(Ke,at)=>{var Xe=re(),mt=E(Xe);$(mt,()=>eu,(lt,ut)=>{ut(lt,{children:(nt,ot)=>{var Tt=Mh(),$t=E(Tt);$($t,()=>yo,(Ot,Dt)=>{Dt(Ot,{class:y,children:(Bt,Ir)=>{var tr=Ee("Domain");m(Bt,tr)},$$slots:{default:!0}})});var rn=S($t,2);$(rn,()=>yo,(Ot,Dt)=>{Dt(Ot,{class:y+" text-right",children:(Bt,Ir)=>{var tr=Ee("Requests");m(Bt,tr)},$$slots:{default:!0}})});var In=S(rn,2);{var Ka=Ot=>{var Dt=Oh(),Bt=E(Dt);$(Bt,()=>yo,(Nr,Ct)=>{Ct(Nr,{class:y+" text-right",children:(Mt,rr)=>{var ur=Ee("Up");m(Mt,ur)},$$slots:{default:!0}})});var Ir=S(Bt,2);$(Ir,()=>yo,(Nr,Ct)=>{Ct(Nr,{class:y+" text-right",children:(Mt,rr)=>{var ur=Ee("Down");m(Mt,ur)},$$slots:{default:!0}})});var tr=S(Ir,2);$(tr,()=>yo,(Nr,Ct)=>{Ct(Nr,{class:y+" text-right",children:(Mt,rr)=>{var ur=Ee("Total");m(Mt,ur)},$$slots:{default:!0}})}),m(Ot,Dt)};Ne(In,Ot=>{d(b)&&Ot(Ka)})}var ts=S(In,2);$(ts,()=>yo,(Ot,Dt)=>{Dt(Ot,{class:y,children:(Bt,Ir)=>{var tr=Ee("Client");m(Bt,tr)},$$slots:{default:!0}})});var rs=S(ts,2);$(rs,()=>yo,(Ot,Dt)=>{Dt(Ot,{class:y+" text-right",children:(Bt,Ir)=>{var tr=Ee("Last seen");m(Bt,tr)},$$slots:{default:!0}})}),m(nt,Tt)},$$slots:{default:!0}})}),m(Ke,Xe)},$$slots:{default:!0}})});var ze=S(se,2);$(ze,()=>DS,(ke,Re)=>{Re(ke,{children:(Ke,at)=>{var Xe=Ih(),mt=E(Xe);{var lt=nt=>{var ot=re(),Tt=E(ot);$(Tt,()=>eu,($t,rn)=>{rn($t,{children:(In,Ka)=>{var ts=re(),rs=E(ts);{let Ot=B(()=>d(b)?7:4);$(rs,()=>Dn,(Dt,Bt)=>{Bt(Dt,{get colspan(){return d(Ot)},class:"py-8 text-center text-sm text-muted-foreground",children:(Ir,tr)=>{var Nr=Ee();Ce(()=>ye(Nr,`没有匹配“${d(a)??""}”的域名。`)),m(Ir,Nr)},$$slots:{default:!0}})})}m(In,ts)},$$slots:{default:!0}})}),m(nt,ot)};Ne(mt,nt=>{d(g).length===0&&nt(lt)})}var ut=S(mt,2);Et(ut,17,()=>d(g),nt=>nt.domain,(nt,ot)=>{var Tt=re(),$t=E(Tt);$($t,()=>eu,(rn,In)=>{In(rn,{children:(Ka,ts)=>{var rs=Mh(),Ot=E(rs);$(Ot,()=>Dn,(Ct,Mt)=>{Mt(Ct,{class:"max-w-[20rem] truncate font-mono text-xs",children:(rr,ur)=>{var nr=Ee();Ce(()=>ye(nr,d(ot).domain)),m(rr,nr)},$$slots:{default:!0}})});var Dt=S(Ot,2);$(Dt,()=>Dn,(Ct,Mt)=>{Mt(Ct,{class:"text-right tabular-nums",children:(rr,ur)=>{var nr=Ee();Ce(nn=>ye(nr,nn),[()=>et(d(ot).conns)]),m(rr,nr)},$$slots:{default:!0}})});var Bt=S(Dt,2);{var Ir=Ct=>{var Mt=Oh(),rr=E(Mt);$(rr,()=>Dn,(nn,Zs)=>{Zs(nn,{class:"text-right tabular-nums",children:(Js,df)=>{var Nn=Ee();Ce(Qs=>ye(Nn,Qs),[()=>mr(d(ot).bytesUp)]),m(Js,Nn)},$$slots:{default:!0}})});var ur=S(rr,2);$(ur,()=>Dn,(nn,Zs)=>{Zs(nn,{class:"text-right tabular-nums",children:(Js,df)=>{var Nn=Ee();Ce(Qs=>ye(Nn,Qs),[()=>mr(d(ot).bytesDown)]),m(Js,Nn)},$$slots:{default:!0}})});var nr=S(ur,2);$(nr,()=>Dn,(nn,Zs)=>{Zs(nn,{class:"text-right font-medium tabular-nums",children:(Js,df)=>{var Nn=Ee();Ce(Qs=>ye(Nn,Qs),[()=>mr(d(ot).bytesUp+d(ot).bytesDown)]),m(Js,Nn)},$$slots:{default:!0}})}),m(Ct,Mt)};Ne(Bt,Ct=>{d(b)&&Ct(Ir)})}var tr=S(Bt,2);$(tr,()=>Dn,(Ct,Mt)=>{Mt(Ct,{class:"max-w-[9rem] truncate font-mono text-xs text-muted-foreground",get title(){return d(ot).lastClientIP},children:(rr,ur)=>{var nr=Ee();Ce(()=>ye(nr,d(ot).lastClientIP||"—")),m(rr,nr)},$$slots:{default:!0}})});var Nr=S(tr,2);$(Nr,()=>Dn,(Ct,Mt)=>{Mt(Ct,{class:"text-right text-muted-foreground tabular-nums",children:(rr,ur)=>{var nr=Ee();Ce(nn=>ye(nr,nn),[()=>tS(d(ot).lastSeen)]),m(rr,nr)},$$slots:{default:!0}})}),m(Ka,rs)},$$slots:{default:!0}})}),m(nt,Tt)}),m(Ke,Xe)},$$slots:{default:!0}})}),m(ve,be)},$$slots:{default:!0}})}),m(U,z)},$$slots:{default:!0}})}),m(V,J)};Ne(we,V=>{d(s).length===0?V($e):V(ne,-1)})}var de=S(we,2);{var te=V=>{var J=Nh(),j=F(J);Ce(X=>ye(j,`自启动以来按流量排序的前 ${X??""} 个域名与客户端,每 30 秒更新。`),[()=>et(d(s).length)]),m(V,J)},me=V=>{var J=Nh(),j=F(J);Ce(()=>ye(j,`按${d(f)??""}排序的前 100 个${d(p)?"DNS 查询域名":d(h)+"域名"},实时推送。`)),m(V,J)};Ne(de,V=>{d(o)==="totals"?V(te):V(me,-1)})}Ce(()=>{Vn(pe,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"}`),xt(pe,"aria-pressed",d(o)==="live"),Vn(Y,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"}`),xt(Y,"aria-pressed",d(o)==="totals")}),xo("click",pe,()=>M(o,"live")),xo("click",Y,()=>M(o,"totals")),m(k,A)};Ne(P,k=>{!st.traffic&&!st.totals?k(N):k(C,-1)})}m(t,w),Ie()}xd(["click"]);var iP=new Set(["$$slots","$$events","$$legacy"]);function aP(t,e){let r=Ge(e,iP);var n=re(),o=E(n);$(o,()=>e0,(s,i)=>{i(s,je(()=>r))}),m(t,n)}var lP=new Set(["$$slots","$$events","$$legacy","ref","sideOffset","align","portalProps","class"]);function tu(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=I(e,"sideOffset",3,4),o=I(e,"align",3,"start"),s=Ge(e,lP);aP(t,je(()=>e.portalProps,{children:(i,a)=>{var c=re(),u=E(c);{let f=B(()=>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,()=>bk,(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(p){r(p)}}))})}m(i,c)},$$slots:{default:!0}})),Ie()}var cP=new Set(["$$slots","$$events","$$legacy","ref","class","inset","variant"]);function cl(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=I(e,"variant",3,"default"),o=Ge(e,cP);var s=re(),i=E(s);{let a=B(()=>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,()=>fk,(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)}}))})}m(t,s),Ie()}var uP=new Set(["$$slots","$$events","$$legacy","ref","class","inset","children"]),dP=ee("
");function zh(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,uP);var o=dP();Ye(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=F(o);De(s,()=>e.children??Fe),gt(o,i=>r(i),()=>r()),m(t,o),Ie()}var fP=new Set(["$$slots","$$events","$$legacy","ref","class"]);function hP(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,fP);var o=re(),s=E(o);{let i=B(()=>He("-mx-1 my-1 h-px bg-border",e.class));$(s,()=>pk,(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)}}))})}m(t,o),Ie()}var vP=new Set(["$$slots","$$events","$$legacy","ref"]);function ru(t,e){Me(e,!0);let r=I(e,"ref",15,null),n=Ge(e,vP);var o=re(),s=E(o);$(s,()=>xk,(i,a)=>{a(i,je({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),m(t,o),Ie()}var pP=new Set(["$$slots","$$events","$$legacy","open"]);function nu(t,e){Me(e,!0);let r=I(e,"open",15,!1),n=Ge(e,pP);var o=re(),s=E(o);$(s,()=>gk,(i,a)=>{a(i,je(()=>n,{get open(){return r()},set open(c){r(c)}}))}),m(t,o),Ie()}const ds=[{key:"overview",label:"概览",description:"运行状态与流量总览"},{key:"rules",label:"规则",description:"运行期路由规则管理"},{key:"traffic",label:"流量",description:"按域名聚合的实时流量"}];var gP=ee(' Sower Admin',1),mP=ee(' ',1),bP=ee(' ',1),ou=ee(" ",1),yP=ee(' ',1),wP=ee(' '),xP=ee(' ',1),_P=ee(' '),kP=ee('
  • /
  • ',1),SP=ee(' ',1),PP=ee(''),CP=ee(' ',1),AP=ee(' ',1),EP=ee('
    '),TP=ee('

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

    '),$P=ee(' ',1),OP=ee("
    "),MP=ee('
    ',1),IP=ee('
    ');function NP(t,e){Me(e,!0);let r=I(e,"contextSegments",19,()=>[]),n=I(e,"onContextSelect",3,()=>{}),o=I(e,"onSelectItem",3,()=>{}),s=I(e,"onLogout",3,()=>{}),i=I(e,"status",3,null),a=I(e,"statusError",3,"");const c={overview:Bn,rules:Uk,traffic:Nk};let u=Ae(Qt([])),f=B(()=>new Set(d(u))),v=B(()=>d(u).map(Y=>ds.find(D=>D.key===Y)).filter(Y=>!!Y));const h="sower.admin.favoritePages.v1";_d(()=>{M(u,p(),!0);const Y=D=>{D.key===h&&M(u,p(),!0)};return window.addEventListener("storage",Y),()=>window.removeEventListener("storage",Y)});function p(){const Y=new Set(ds.map(D=>D.key));try{const D=JSON.parse(localStorage.getItem(h)??"[]");return(Array.isArray(D)?D:[]).filter(q=>Y.has(q))}catch{return[]}}function g(Y){M(u,Y.filter((D,q)=>Y.indexOf(D)===q),!0);try{localStorage.setItem(h,JSON.stringify(d(u)))}catch{}}function b(Y,D){if(Y.preventDefault(),Y.stopPropagation(),d(f).has(D)){g(d(u).filter(q=>q!==D));return}g([...d(u),D])}function y(Y){switch(Y.tone){case"strong":return"text-foreground font-semibold";case"method":return"text-primary font-mono";default:return"text-muted-foreground font-medium"}}var w=IP(),P=F(w),N=F(P),C=F(N),k=F(C);eo(k,{variant:"ghost",class:"h-9 gap-1.5 px-2 text-foreground",onclick:()=>o()("overview"),title:"回到概览",children:(Y,D)=>{var q=gP(),Z=E(q);Bn(Z,{class:"size-4 text-primary"}),m(Y,q)},$$slots:{default:!0}});var A=S(C,4),R=F(A);$(R,()=>nu,(Y,D)=>{D(Y,{children:(q,Z)=>{const le=B(()=>c[e.activeItem.key]??Bn);var T=ou(),we=E(T);$(we,()=>ru,(ne,de)=>{de(ne,{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,me)=>{var V=mP(),J=E(V);$(J,()=>d(le),(U,fe)=>{fe(U,{class:"size-4 shrink-0 text-primary"})});var j=S(J,2),X=F(j),G=S(j,2);Jc(G,{class:"size-3.5 shrink-0 text-muted-foreground"}),Ce(()=>ye(X,e.activeItem.label)),m(te,V)},$$slots:{default:!0}})});var $e=S(we,2);$($e,()=>tu,(ne,de)=>{de(ne,{class:"min-w-56",align:"start",children:(te,me)=>{var V=re(),J=E(V);Et(J,17,()=>ds,Wt,(j,X)=>{const G=B(()=>c[d(X).key]??Bn);var U=re(),fe=E(U);{let z=B(()=>He("gap-2.5 py-2",d(X).key===e.activeItem.key&&"bg-accent text-accent-foreground"));$(fe,()=>cl,(W,ae)=>{ae(W,{onSelect:()=>o()(d(X).key),get class(){return d(z)},children:(ce,ve)=>{var oe=bP(),be=E(oe),se=F(be);$(se,()=>d(G),(lt,ut)=>{ut(lt,{class:"size-4"})});var ze=S(be,2),ke=F(ze),Re=F(ke),Ke=S(ke,2),at=F(Ke),Xe=S(ze,2);{var mt=lt=>{Ah(lt,{class:"ms-auto size-4 text-primary"})};Ne(Xe,lt=>{d(X).key===e.activeItem.key&<(mt)})}Ce(()=>{ye(Re,d(X).label),ye(at,d(X).description)}),m(ce,oe)},$$slots:{default:!0}})})}m(j,U)}),m(te,V)},$$slots:{default:!0}})}),m(q,T)},$$slots:{default:!0}})});var x=S(A,2);Et(x,17,r,Wt,(Y,D)=>{var q=kP(),Z=S(E(q),2),le=F(Z);{var T=$e=>{var ne=re(),de=E(ne);$(de,()=>nu,(te,me)=>{me(te,{children:(V,J)=>{var j=ou(),X=E(j);{let U=B(()=>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(D)))),fe=B(()=>d(D).title??`${d(D).label}: ${d(D).value}`),z=B(()=>`${d(D).label}: ${d(D).value}`);$(X,()=>ru,(W,ae)=>{ae(W,{get class(){return d(U)},get title(){return d(fe)},get"aria-label"(){return d(z)},children:(ce,ve)=>{var oe=yP(),be=E(oe),se=F(be),ze=S(be,2),ke=F(ze),Re=S(ze,2);Jc(Re,{class:"size-3.5 shrink-0 text-muted-foreground"}),Ce(()=>{ye(se,d(D).label),ye(ke,d(D).value)}),m(ce,oe)},$$slots:{default:!0}})})}var G=S(X,2);$(G,()=>tu,(U,fe)=>{fe(U,{class:"min-w-44",align:"start",children:(z,W)=>{var ae=re(),ce=E(ae);Et(ce,17,()=>d(D).options,Wt,(ve,oe)=>{var be=re(),se=E(be);{let ze=B(()=>He("gap-2",d(oe).active&&"bg-accent text-accent-foreground"));$(se,()=>cl,(ke,Re)=>{Re(ke,{onSelect:()=>n()(d(D).label,d(oe).value),get class(){return d(ze)},children:(Ke,at)=>{var Xe=xP(),mt=E(Xe),lt=F(mt),ut=S(mt,2);{var nt=$t=>{var rn=wP(),In=F(rn);Ce(()=>ye(In,d(oe).description)),m($t,rn)};Ne(ut,$t=>{d(oe).description&&$t(nt)})}var ot=S(ut,2);{var Tt=$t=>{Ah($t,{class:"ms-auto size-4 text-primary"})};Ne(ot,$t=>{d(oe).active&&$t(Tt)})}Ce(()=>ye(lt,d(oe).label)),m(Ke,Xe)},$$slots:{default:!0}})})}m(ve,be)}),m(z,ae)},$$slots:{default:!0}})}),m(V,j)},$$slots:{default:!0}})}),m($e,ne)},we=$e=>{var ne=_P(),de=F(ne),te=F(de),me=S(de,2),V=F(me);Ce(J=>{Vn(ne,1,J),xt(ne,"title",d(D).title??`${d(D).label}: ${d(D).value}`),ye(te,d(D).label),ye(V,d(D).value)},[()=>_u(He("inline-flex h-9 max-w-[16rem] items-center gap-1.5 px-2",y(d(D))))]),m($e,ne)};Ne(le,$e=>{var ne;(ne=d(D).options)!=null&&ne.length?$e(T):$e(we,-1)})}m(Y,q)});var L=S(P,2),H=F(L);{var he=Y=>{var D=PP();Et(D,21,()=>d(v).slice(0,4),Wt,(q,Z)=>{const le=B(()=>c[d(Z).key]??Bn);{let T=B(()=>He("gap-1.5",d(Z).key===e.activeItem.key&&"border-primary/40 bg-primary/10")),we=B(()=>`打开 ${d(Z).label}`);eo(q,{variant:"outline",size:"sm",get class(){return d(T)},get title(){return d(we)},onclick:()=>o()(d(Z).key),children:($e,ne)=>{var de=SP(),te=E(de);$(te,()=>d(le),(J,j)=>{j(J,{class:"size-3.5"})});var me=S(te,2),V=F(me);Ce(()=>ye(V,d(Z).label)),m($e,de)},$$slots:{default:!0}})}}),m(Y,D)};Ne(H,Y=>{d(v).length>0&&Y(he)})}var Q=S(H,2);$(Q,()=>nu,(Y,D)=>{D(Y,{children:(q,Z)=>{var le=ou(),T=E(le);$(T,()=>ru,($e,ne)=>{ne($e,{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:(de,te)=>{var me=CP(),V=E(me);Bk(V,{class:"size-3.5"});var J=S(V,4);Jc(J,{class:"size-3 text-muted-foreground"}),m(de,me)},$$slots:{default:!0}})});var we=S(T,2);$(we,()=>tu,($e,ne)=>{ne($e,{class:"w-64",children:(de,te)=>{var me=MP(),V=E(me);$(V,()=>zh,(z,W)=>{W(z,{children:(ae,ce)=>{var ve=Ee("收藏夹");m(ae,ve)},$$slots:{default:!0}})});var J=S(V,2);{var j=z=>{var W=EP();Et(W,21,()=>d(v),Wt,(ae,ce)=>{const ve=B(()=>c[d(ce).key]??Bn);var oe=re(),be=E(oe);{let se=B(()=>He("gap-2 py-1.5",d(ce).key===e.activeItem.key&&"bg-accent text-accent-foreground"));$(be,()=>cl,(ze,ke)=>{ke(ze,{onSelect:()=>o()(d(ce).key),get class(){return d(se)},children:(Re,Ke)=>{var at=AP(),Xe=E(at),mt=F(Xe);$(mt,()=>d(ve),(ot,Tt)=>{Tt(ot,{class:"size-3.5"})});var lt=S(Xe,2),ut=F(lt),nt=S(lt,2);Th(nt,{class:"ms-auto size-3.5 fill-current text-primary"}),Ce(()=>ye(ut,d(ce).label)),m(Re,at)},$$slots:{default:!0}})})}m(ae,oe)}),m(z,W)},X=z=>{var W=TP();m(z,W)};Ne(J,z=>{d(v).length>0?z(j):z(X,-1)})}var G=S(J,2);$(G,()=>hP,(z,W)=>{W(z,{})});var U=S(G,2);$(U,()=>zh,(z,W)=>{W(z,{children:(ae,ce)=>{var ve=Ee("全部页面");m(ae,ve)},$$slots:{default:!0}})});var fe=S(U,2);Et(fe,21,()=>ds,Wt,(z,W)=>{const ae=B(()=>c[d(W).key]??Bn),ce=B(()=>d(f).has(d(W).key));var ve=OP(),oe=F(ve);$(oe,()=>cl,(se,ze)=>{ze(se,{onSelect:()=>o()(d(W).key),class:"min-w-0 flex-1 gap-2 py-1.5",children:(ke,Re)=>{var Ke=$P(),at=E(Ke),Xe=F(at);$(Xe,()=>d(ae),(Tt,$t)=>{$t(Tt,{class:"size-4"})});var mt=S(at,2),lt=F(mt),ut=F(lt),nt=S(lt,2),ot=F(nt);Ce(()=>{ye(ut,d(W).label),ye(ot,d(W).description)}),m(ke,Ke)},$$slots:{default:!0}})});var be=S(oe,2);{let se=B(()=>He("mx-0.5 shrink-0",d(ce)&&"text-primary")),ze=B(()=>`${d(ce)?"取消收藏":"收藏"} ${d(W).label}`);eo(be,{variant:"ghost",size:"icon-sm",get class(){return d(se)},get"aria-label"(){return d(ze)},get"aria-pressed"(){return d(ce)},onclick:ke=>b(ke,d(W).key),children:(ke,Re)=>{{let Ke=B(()=>He("size-4",d(ce)&&"fill-current"));Th(ke,{get class(){return d(Ke)}})}},$$slots:{default:!0}})}Ce(se=>Vn(ve,1,se),[()=>_u(He("flex items-center gap-0.5 rounded-md",d(W).key===e.activeItem.key&&"bg-accent text-accent-foreground"))]),m(z,ve)}),m(de,me)},$$slots:{default:!0}})}),m(q,le)},$$slots:{default:!0}})});var ue=S(Q,2);{let Y=B(()=>a()?"destructive":i()?"secondary":"outline");ps(ue,{get variant(){return d(Y)},class:"hidden sm:inline-flex",children:(D,q)=>{var Z=Ee();Ce(()=>ye(Z,a()?"Error":i()?"Ready":"Loading")),m(D,Z)},$$slots:{default:!0}})}var pe=S(ue,2);eo(pe,{variant:"ghost",size:"icon-sm",title:"退出登录","aria-label":"退出登录",get onclick(){return s()},children:(Y,D)=>{jk(Y,{class:"size-4"})},$$slots:{default:!0}}),m(t,w),Ie()}var zP=ee("
    "),RP=ee('
    ',1);function FP(t,e){Me(e,!0);let r=Ae(!1),n=Ae("overview"),o=Ae("proxy"),s=Ae("all");const i=B(()=>st.status),a=B(()=>ds.find(w=>w.key===d(n))??ds[0]),c=B(()=>{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(){M(r,!0),M(n,"overview"),Wg()}async function f(){try{await us.logout()}catch{}finally{v()}}function v(){M(r,!1),nS()}ct(()=>{rS(v)});function h(w,P){w==="category"?M(o,P,!0):w==="source"&&M(s,P,!0)}var p=re(),g=E(p);{var b=w=>{Qk(w,{onLogin:u})},y=w=>{var P=RP(),N=E(P);NP(N,{get activeItem(){return d(a)},get contextSegments(){return d(c)},onContextSelect:h,onSelectItem:A=>M(n,A,!0),get status(){return d(i)},onLogout:f});var C=S(N,2),k=F(C);Dv(k,()=>d(n),A=>{var R=zP(),x=F(R);{var L=Q=>{SS(Q,{get status(){return d(i)}})},H=Q=>{RS(Q,{get category(){return d(o)},onUnauthorized:v})},he=Q=>{sP(Q,{get source(){return d(s)}})};Ne(x,Q=>{d(n)==="overview"?Q(L):d(n)==="rules"?Q(H,1):Q(he,-1)})}Mb(1,R,()=>Xb,()=>({duration:120})),m(A,R)}),m(w,P)};Ne(g,w=>{d(r)?w(y,-1):w(b)})}m(t,p),Ie()}document.documentElement.classList.add("dark");const jg=document.querySelector("#app");if(!jg)throw new Error("missing #app mount point");Lv(FP,{target:jg}); diff --git a/web/dist/assets/index-G9FsEZaz.js b/web/dist/assets/index-G9FsEZaz.js deleted file mode 100644 index f303e04..0000000 --- a/web/dist/assets/index-G9FsEZaz.js +++ /dev/null @@ -1,1233 +0,0 @@ -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 4114989..aaa6a0b 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 7da0e69..2841608 100644 --- a/web/src/lib/api.ts +++ b/web/src/lib/api.ts @@ -79,6 +79,19 @@ export interface RulesResponse { limit: number; } +export interface CategoryTest { + category: Category; + matched: boolean; + rule: string; +} + +export interface DomainTest { + domain: string; + route: "block" | "direct" | "proxy" | "auto"; + matches: CategoryTest[]; + note?: string; +} + export interface RulesQuery { q?: string; offset?: number; @@ -138,6 +151,8 @@ export const api = { method: "DELETE", body: JSON.stringify({ category, rules }), }), + rulesTest: (domain: string) => + request(`/api/rules/test?domain=${encodeURIComponent(domain)}`), traffic: (sort?: DomainSort, source?: Source, client?: string) => { const params: string[] = []; if (sort) params.push(`sort=${sort}`); diff --git a/web/src/views/Rules.svelte b/web/src/views/Rules.svelte index 9f29113..5086473 100644 --- a/web/src/views/Rules.svelte +++ b/web/src/views/Rules.svelte @@ -1,5 +1,5 @@