cekat-ui 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +38 -35
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4602,44 +4602,47 @@ const Rr = [
|
|
|
4602
4602
|
className: i
|
|
4603
4603
|
}) => {
|
|
4604
4604
|
const { box: o, overlap: l, contrastBorderWidth: s, textClass: a } = Sl[r], c = e ? t.slice(0, e) : t, f = e && t.length > e ? t.length - e : 0;
|
|
4605
|
-
return /* @__PURE__ */ u.createElement("div", { className: L("inline-flex items-start gap-2", i) }, /* @__PURE__ */ u.createElement("div", { className: "flex items-start" }, c.map((d, g) =>
|
|
4606
|
-
|
|
4607
|
-
{
|
|
4608
|
-
|
|
4609
|
-
style: { width: o, height: o, marginRight: l }
|
|
4610
|
-
},
|
|
4611
|
-
d.src ? /* @__PURE__ */ u.createElement(
|
|
4612
|
-
"img",
|
|
4605
|
+
return /* @__PURE__ */ u.createElement("div", { className: L("inline-flex items-start gap-2", i) }, /* @__PURE__ */ u.createElement("div", { className: "flex items-start" }, c.map((d, g) => {
|
|
4606
|
+
const h = g < c.length - 1 || f > 0;
|
|
4607
|
+
return /* @__PURE__ */ u.createElement(Wt, { key: g, content: d.label, disabled: !d.label, side: "top" }, /* @__PURE__ */ u.createElement(
|
|
4608
|
+
"div",
|
|
4613
4609
|
{
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4610
|
+
className: "relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",
|
|
4611
|
+
style: { width: o, height: o, marginRight: h ? l : 0 }
|
|
4612
|
+
},
|
|
4613
|
+
d.src ? /* @__PURE__ */ u.createElement(
|
|
4614
|
+
"img",
|
|
4615
|
+
{
|
|
4616
|
+
src: d.src,
|
|
4617
|
+
alt: d.alt ?? "",
|
|
4618
|
+
className: "size-full object-cover"
|
|
4619
|
+
}
|
|
4620
|
+
) : (() => {
|
|
4621
|
+
const { bg: v, text: x } = El(
|
|
4622
|
+
String(d.label ?? d.alt ?? d.initials ?? g)
|
|
4623
|
+
);
|
|
4624
|
+
return /* @__PURE__ */ u.createElement(
|
|
4625
|
+
"div",
|
|
4626
|
+
{
|
|
4627
|
+
className: L(
|
|
4628
|
+
"flex size-full items-center justify-center font-semibold",
|
|
4629
|
+
v,
|
|
4630
|
+
x,
|
|
4631
|
+
a
|
|
4632
|
+
)
|
|
4633
|
+
},
|
|
4634
|
+
d.initials
|
|
4635
|
+
);
|
|
4636
|
+
})(),
|
|
4637
|
+
/* @__PURE__ */ u.createElement(
|
|
4623
4638
|
"div",
|
|
4624
4639
|
{
|
|
4625
|
-
className:
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
},
|
|
4632
|
-
d.initials
|
|
4633
|
-
);
|
|
4634
|
-
})(),
|
|
4635
|
-
/* @__PURE__ */ u.createElement(
|
|
4636
|
-
"div",
|
|
4637
|
-
{
|
|
4638
|
-
className: "pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",
|
|
4639
|
-
style: { borderWidth: s, borderStyle: "solid" }
|
|
4640
|
-
}
|
|
4641
|
-
)
|
|
4642
|
-
))), f > 0 && /* @__PURE__ */ u.createElement(
|
|
4640
|
+
className: "pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",
|
|
4641
|
+
style: { borderWidth: s, borderStyle: "solid" }
|
|
4642
|
+
}
|
|
4643
|
+
)
|
|
4644
|
+
));
|
|
4645
|
+
}), f > 0 && /* @__PURE__ */ u.createElement(
|
|
4643
4646
|
Wt,
|
|
4644
4647
|
{
|
|
4645
4648
|
content: t.slice(e).map((d, g) => /* @__PURE__ */ u.createElement("div", { key: g }, d.label)),
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(G,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],a):(G=typeof globalThis<"u"?globalThis:G||self,a(G.CekatUI={},G.React$1,G.$3wX5A$reactdom))})(this,(function(G,a,Ue){"use strict";function Ro(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const f=Ro(a);function kr(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<o;e++)t[e]&&(r=kr(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function P(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=kr(t))&&(n&&(n+=" "),n+=e);return n}const Qo=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n<t.length;n++)r[n]=t[n];for(let n=0;n<e.length;n++)r[t.length+n]=e[n];return r},ei=(t,e)=>({classGroupId:t,validator:e}),Cr=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),qe="-",$r=[],ti="arbitrary..",ri=t=>{const e=oi(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return ni(s);const l=s.split(qe),c=l[0]===""&&l.length>1?1:0;return Tr(l,c,e)},getConflictingClassGroupIds:(s,l)=>{if(l){const c=n[s],d=r[s];return c?d?Qo(d,c):c:d||$r}return r[s]||$r}}},Tr=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],i=r.nextPart.get(o);if(i){const d=Tr(t,e+1,i);if(d)return d}const s=r.validators;if(s===null)return;const l=e===0?t.join(qe):t.slice(e).join(qe),c=s.length;for(let d=0;d<c;d++){const p=s[d];if(p.validator(l))return p.classGroupId}},ni=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?ti+n:void 0})(),oi=t=>{const{theme:e,classGroups:r}=t;return ii(r,e)},ii=(t,e)=>{const r=Cr();for(const n in t){const o=t[n];Et(o,r,n,e)}return r},Et=(t,e,r,n)=>{const o=t.length;for(let i=0;i<o;i++){const s=t[i];si(s,e,r,n)}},si=(t,e,r,n)=>{if(typeof t=="string"){li(t,e,r);return}if(typeof t=="function"){ai(t,e,r,n);return}ci(t,e,r,n)},li=(t,e,r)=>{const n=t===""?e:Nr(e,t);n.classGroupId=r},ai=(t,e,r,n)=>{if(di(t)){Et(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(ei(r,t))},ci=(t,e,r,n)=>{const o=Object.entries(t),i=o.length;for(let s=0;s<i;s++){const[l,c]=o[s];Et(c,Nr(e,l),r,n)}},Nr=(t,e)=>{let r=t;const n=e.split(qe),o=n.length;for(let i=0;i<o;i++){const s=n[i];let l=r.nextPart.get(s);l||(l=Cr(),r.nextPart.set(s,l)),r=l}return r},di=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,ui=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const o=(i,s)=>{r[i]=s,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(i){let s=r[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return o(i,s),s},set(i,s){i in r?r[i]=s:o(i,s)}}},St="!",Kr=":",fi=[],Pr=(t,e,r,n,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),pi=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const i=[];let s=0,l=0,c=0,d;const p=o.length;for(let x=0;x<p;x++){const w=o[x];if(s===0&&l===0){if(w===Kr){i.push(o.slice(c,x)),c=x+1;continue}if(w==="/"){d=x;continue}}w==="["?s++:w==="]"?s--:w==="("?l++:w===")"&&l--}const u=i.length===0?o:o.slice(c);let g=u,b=!1;u.endsWith(St)?(g=u.slice(0,-1),b=!0):u.startsWith(St)&&(g=u.slice(1),b=!0);const v=d&&d>c?d-c:void 0;return Pr(i,b,g,v)};if(e){const o=e+Kr,i=n;n=s=>s.startsWith(o)?i(s.slice(o.length)):Pr(fi,!1,s,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},hi=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const s=r[i],l=s[0]==="[",c=e.has(s);l||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(s)):o.push(s)}return o.length>0&&(o.sort(),n.push(...o)),n}},bi=t=>({cache:ui(t.cacheSize),parseClassName:pi(t),sortModifiers:hi(t),postfixLookupClassGroupIds:mi(t),...ri(t)}),mi=t=>{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n<r.length;n++)e[r[n]]=!0;return e},gi=/\s+/,yi=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:s}=e,l=[],c=t.trim().split(gi);let d="";for(let p=c.length-1;p>=0;p-=1){const u=c[p],{isExternal:g,modifiers:b,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:w}=r(u);if(g){d=u+(d.length>0?" "+d:d);continue}let k=!!w,S;if(k){const z=x.substring(0,w);S=n(z);const C=S&&s[S]?n(x):void 0;C&&C!==S&&(S=C,k=!1)}else S=n(x);if(!S){if(!k){d=u+(d.length>0?" "+d:d);continue}if(S=n(x),!S){d=u+(d.length>0?" "+d:d);continue}k=!1}const T=b.length===0?"":b.length===1?b[0]:i(b).join(":"),F=v?T+St:T,q=F+S;if(l.indexOf(q)>-1)continue;l.push(q);const _=o(S,k);for(let z=0;z<_.length;++z){const C=_[z];l.push(F+C)}d=u+(d.length>0?" "+d:d)}return d},xi=(...t)=>{let e=0,r,n,o="";for(;e<t.length;)(r=t[e++])&&(n=Lr(r))&&(o&&(o+=" "),o+=n);return o},Lr=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Lr(t[n]))&&(r&&(r+=" "),r+=e);return r},vi=(t,...e)=>{let r,n,o,i;const s=c=>{const d=e.reduce((p,u)=>u(p),t());return r=bi(d),n=r.cache.get,o=r.cache.set,i=l,l(c)},l=c=>{const d=n(c);if(d)return d;const p=yi(c,r);return o(c,p),p};return i=s,(...c)=>i(xi(...c))},wi=[],te=t=>{const e=r=>r[t]||wi;return e.isThemeGetter=!0,e},Ir=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ei=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Si=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ki=/\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$/,Ci=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$i=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ti=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xe=t=>Ei.test(t),H=t=>!!t&&!Number.isNaN(Number(t)),pe=t=>!!t&&Number.isInteger(Number(t)),kt=t=>t.endsWith("%")&&H(t.slice(0,-1)),me=t=>Si.test(t),Dr=()=>!0,Ni=t=>ki.test(t)&&!Ci.test(t),Ct=()=>!1,Ki=t=>$i.test(t),Pi=t=>Ti.test(t),Li=t=>!M(t)&&!D(t),Ii=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)),Mi=t=>ve(t,Br,Ct),M=t=>Ir.test(t),ke=t=>ve(t,Vr,Ni),Fr=t=>ve(t,Vi,H),Di=t=>ve(t,Hr,Dr),Fi=t=>ve(t,Wr,Ct),Ar=t=>ve(t,_r,Ct),Ai=t=>ve(t,zr,Pi),Ye=t=>ve(t,jr,Ki),D=t=>Mr.test(t),Fe=t=>Ce(t,Vr),Oi=t=>Ce(t,Wr),Or=t=>Ce(t,_r),_i=t=>Ce(t,Br),zi=t=>Ce(t,zr),Xe=t=>Ce(t,jr,!0),Bi=t=>Ce(t,Hr,!0),ve=(t,e,r)=>{const n=Ir.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Ce=(t,e,r=!1)=>{const n=Mr.exec(t);return n?n[1]?e(n[1]):r:!1},_r=t=>t==="position"||t==="percentage",zr=t=>t==="image"||t==="url",Br=t=>t==="length"||t==="size"||t==="bg-size",Vr=t=>t==="length",Vi=t=>t==="number",Wr=t=>t==="family-name",Hr=t=>t==="number"||t==="weight",jr=t=>t==="shadow",Wi=vi(()=>{const t=te("color"),e=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),i=te("leading"),s=te("breakpoint"),l=te("container"),c=te("spacing"),d=te("radius"),p=te("shadow"),u=te("inset-shadow"),g=te("text-shadow"),b=te("drop-shadow"),v=te("blur"),x=te("perspective"),w=te("aspect"),k=te("ease"),S=te("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...F(),D,M],_=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],C=()=>[D,M,c],B=()=>[xe,"full","auto",...C()],J=()=>[pe,"none","subgrid",D,M],Z=()=>["auto",{span:["full",pe,D,M]},pe,D,M],X=()=>[pe,"auto",D,M],Y=()=>["auto","min","max","fr",D,M],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...C()],$=()=>[xe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],U=()=>[xe,"screen","full","dvw","lvw","svw","min","max","fit",...C()],m=()=>[xe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],y=()=>[t,D,M],A=()=>[...F(),Or,Ar,{position:[D,M]}],ie=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",_i,Mi,{size:[D,M]}],se=()=>[kt,Fe,ke],E=()=>["","none","full",d,D,M],W=()=>["",H,Fe,ke],ne=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[H,kt,Or,Ar],wt=()=>["","none",v,D,M],K=()=>["none",H,D,M],N=()=>["none",H,D,M],re=()=>[H,D,M],R=()=>[xe,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[me],breakpoint:[me],color:[Dr],container:[me],"drop-shadow":[me],ease:["in","out","in-out"],font:[Li],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[me],shadow:[me],spacing:["px",H],text:[me],"text-shadow":[me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xe,M,D,w]}],container:["container"],"container-type":[{"@container":["","normal","size",D,M]}],"container-named":[Ii],columns:[{columns:[H,M,D,l]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:q()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],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:[pe,"auto",D,M]}],basis:[{basis:[xe,"full","auto",l,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,xe,"auto","initial","none",M]}],grow:[{grow:["",H,D,M]}],shrink:[{shrink:["",H,D,M]}],order:[{order:[pe,"first","last","none",D,M]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...U()]}],"min-inline-size":[{"min-inline":["auto",...U()]}],"max-inline-size":[{"max-inline":["none",...U()]}],"block-size":[{block:["auto",...m()]}],"min-block-size":[{"min-block":["auto",...m()]}],"max-block-size":[{"max-block":["none",...m()]}],w:[{w:[l,"screen",...$()]}],"min-w":[{"min-w":[l,"screen","none",...$()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,Fe,ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Bi,Di]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kt,M]}],"font-family":[{font:[Oi,Fi,e]}],"font-features":[{"font-features":[M]}],"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,D,M]}],"line-clamp":[{"line-clamp":[H,"none",D,Fr]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",D,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",D,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",D,ke]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[H,"auto",D,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[pe,D,M]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D,M]}],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",D,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pe,D,M],radial:["",D,M],conic:[pe,D,M]},zi,Ai]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-bs":[{"border-bs":y()}],"border-color-be":[{"border-be":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,D,M]}],"outline-w":[{outline:["",H,Fe,ke]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",p,Xe,Ye]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",u,Xe,Ye]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[H,ke]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",g,Xe,Ye]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[H,D,M]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"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":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[D,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"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":F()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",D,M]}],filter:[{filter:["","none",D,M]}],blur:[{blur:wt()}],brightness:[{brightness:[H,D,M]}],contrast:[{contrast:[H,D,M]}],"drop-shadow":[{"drop-shadow":["","none",b,Xe,Ye]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",H,D,M]}],"hue-rotate":[{"hue-rotate":[H,D,M]}],invert:[{invert:["",H,D,M]}],saturate:[{saturate:[H,D,M]}],sepia:[{sepia:["",H,D,M]}],"backdrop-filter":[{"backdrop-filter":["","none",D,M]}],"backdrop-blur":[{"backdrop-blur":wt()}],"backdrop-brightness":[{"backdrop-brightness":[H,D,M]}],"backdrop-contrast":[{"backdrop-contrast":[H,D,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,D,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,D,M]}],"backdrop-invert":[{"backdrop-invert":["",H,D,M]}],"backdrop-opacity":[{"backdrop-opacity":[H,D,M]}],"backdrop-saturate":[{"backdrop-saturate":[H,D,M]}],"backdrop-sepia":[{"backdrop-sepia":["",H,D,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",D,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",D,M]}],ease:[{ease:["linear","initial",k,D,M]}],delay:[{delay:[H,D,M]}],animate:[{animate:["none",S,D,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,D,M]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:N()}],"scale-x":[{"scale-x":N()}],"scale-y":[{"scale-y":N()}],"scale-z":[{"scale-z":N()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[D,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:R()}],"translate-x":[{"translate-x":R()}],"translate-y":[{"translate-y":R()}],"translate-z":[{"translate-z":R()}],"translate-none":["translate-none"],zoom:[{zoom:[pe,D,M]}],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"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",D,M]}],"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":y()}],"scrollbar-track-color":[{"scrollbar-track":y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",D,M]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[H,Fe,ke,Fr]}],stroke:[{stroke:["none",...y()]}],"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"]}});function $t(...t){return Wi(P(t))}const Gr=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Ur=P,I=(t,e)=>r=>{var n;if(e?.variants==null)return Ur(t,r?.class,r?.className);const{variants:o,defaultVariants:i}=e,s=Object.keys(o).map(d=>{const p=r?.[d],u=i?.[d];if(p===null)return null;const g=Gr(p)||Gr(u);return o[d][g]}),l=r&&Object.entries(r).reduce((d,p)=>{let[u,g]=p;return g===void 0||(d[u]=g),d},{}),c=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((d,p)=>{let{class:u,className:g,...b}=p;return Object.entries(b).every(v=>{let[x,w]=v;return Array.isArray(w)?w.includes({...i,...l}[x]):{...i,...l}[x]===w})?[...d,u,g]:d},[]);return Ur(t,s,c,r?.class,r?.className)},Hi=I(["inline-flex items-center justify-center font-bold","transition-colors duration-150","focus-visible:outline-none","disabled:cursor-not-allowed"],{variants:{size:{xs:"py-1 px-2 gap-1 rounded-md text-caption-sm",sm:"h-[36px] px-4 gap-1 rounded-lg text-caption-sm",md:"h-[44px] px-4 gap-2 rounded-lg text-sm",lg:"h-[52px] px-5 gap-2 rounded-[10px] text-body-sm",xl:"h-[60px] px-6 gap-2 rounded-[10px] text-body-lg","2xl":"h-[68px] px-6 gap-2 rounded-[10px] text-body-lg"},tone:{primary:"",destructive:""},iconOnly:{true:"!p-0",false:""},variant:{solid:["text-white","disabled:bg-light-100 disabled:text-light-400"],outline:["bg-white border","disabled:bg-white disabled:text-light-400 disabled:border-light-200"],ghost:["bg-transparent","disabled:text-light-400"],"outline-primary":["bg-white border border-primary-500 text-primary-500","hover:bg-primary-100 hover:border-primary-300 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400 disabled:border-light-200"],"ghost-primary":["bg-transparent text-primary-500","hover:bg-primary-50 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:text-light-400"],plain:["bg-transparent !rounded-md","disabled:text-light-400 h-auto !px-2"],"plain-black":["bg-transparent !rounded-md","disabled:text-light-400 h-auto !px-2 "]}},compoundVariants:[{tone:"primary",variant:"solid",class:["bg-primary-500","hover:bg-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"outline",class:["border-light-200 text-light-900","hover:bg-light-50","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"ghost",class:["text-light-800","hover:bg-light-50 hover:text-light-900","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain",class:["text-primary-500","hover:text-primary-800 hover:bg-transparent","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"].join(" ")},{tone:"primary",variant:"plain-black",class:["text-light-800","hover:text-light-900 hover:bg-transparent","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"].join(" ")},{tone:"destructive",variant:"solid",class:["bg-error-500 text-white","hover:bg-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-light-100"].join(" ")},{tone:"destructive",variant:"outline",class:["border-error-500 text-error-500","hover:border-error-300 hover:bg-error-100 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"ghost",class:["text-error-500","hover:bg-error-50 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400"].join(" ")},{tone:"destructive",variant:"plain",class:["text-error-500","hover:text-error-800 hover:bg-transparent","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2"].join(" ")},{size:"xs",iconOnly:!0,class:"!w-[26px] !h-[26px]"},{size:"sm",iconOnly:!0,class:"!w-[36px] !h-[36px]"},{size:"md",iconOnly:!0,class:"!w-[44px] !h-[44px]"},{size:"lg",iconOnly:!0,class:"!w-[52px] !h-[52px]"},{size:"xl",iconOnly:!0,class:"!w-[60px] !h-[60px]"},{size:"2xl",iconOnly:!0,class:"!w-[68px] !h-[68px]"}],defaultVariants:{size:"md",tone:"primary",variant:"solid",iconOnly:!1}}),qr=a.forwardRef(({children:t,className:e,tone:r,variant:n,size:o,iconOnly:i,...s},l)=>a.createElement("button",{ref:l,className:$t(Hi({tone:r,variant:n,size:o,iconOnly:i}),e),...s},t));qr.displayName="Button";const ji=({children:t})=>a.createElement("span",{className:"flex items-center"},t),Gi=({children:t})=>a.createElement("span",{className:"whitespace-nowrap"},t),Ze=qr;Ze.Icon=ji,Ze.Text=Gi;const Ui=I(["inline-flex items-center justify-center","border transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4 rounded-[4px]",md:"h-5 w-5 rounded-[6px]",lg:"h-5 w-5 rounded-[6px]"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-white border-light-200 hover:border-light-400"},{checked:!0,disabled:!1,className:"bg-primary-500 border-primary-500 text-white hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"bg-light-100 border-light-200 text-white"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),qi={sm:{width:12,height:9},md:{width:14,height:10},lg:{width:14,height:10}},Yr=f.forwardRef(({id:t,checked:e,indeterminate:r=!1,disabled:n,size:o="md",onCheckedChange:i,className:s},l)=>{const c=()=>{n||i?.(!e)},d=qi[o],p=n?"text-white/80":"text-current";return f.createElement("button",{id:t,ref:l,type:"button",role:"checkbox","aria-checked":r?"mixed":e,disabled:n,onClick:c,className:P(Ui({size:o,checked:e,disabled:n}),s)},e&&!r&&f.createElement("svg",{width:d.width,height:d.height,viewBox:"0 0 14 10",fill:"none",className:p},f.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),r&&f.createElement("span",{className:P(p,"bg-current rounded-sm",o==="sm"&&"h-0.5 w-3",(o==="md"||o==="lg")&&"h-0.5 w-4")}))});Yr.displayName="Checkbox";const Xr=f.createContext(null),Yi=({value:t,defaultValue:e,onValueChange:r,children:n,className:o})=>{const[i,s]=f.useState(e),l=t??i,c=d=>{s(d),r?.(d)};return f.createElement(Xr.Provider,{value:{value:l,onValueChange:c}},f.createElement("div",{role:"radiogroup",className:o},n))},Xi=()=>{const t=f.useContext(Xr);if(!t)throw new Error("RadioGroupItem must be used within RadioGroup");return t},Zi=I(["relative inline-flex items-center justify-center","border rounded-full transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"border-light-200 bg-white hover:border-light-400"},{checked:!0,disabled:!1,className:"border-primary-500 bg-primary-500 hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"border-light-200 bg-light-100"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),Ji=I(["rounded-full bg-white transition-all"],{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2 w-2"},checked:{true:"scale-100",false:"scale-0"}},defaultVariants:{size:"md",checked:!1}}),Zr=f.forwardRef(({id:t,value:e,disabled:r,size:n="md",className:o},i)=>{const{value:s,onValueChange:l}=Xi(),c=s===e;return f.createElement("button",{ref:i,id:t,type:"button",role:"radio","aria-checked":c,disabled:r,onClick:()=>{r||l?.(e)},className:P(Zi({size:n,checked:c,disabled:r}),o)},f.createElement("span",{className:Ji({size:n,checked:c})}))});Zr.displayName="RadioGroupItem";const Ri=I(["inline-flex items-center shrink-0 rounded-full p-[2px]","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-5 w-9",md:"h-6 w-11",lg:"h-6 w-11"},checked:{true:"justify-end",false:"justify-start"},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"},variant:{default:"",success:""}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-light-200"},{checked:!0,disabled:!1,variant:"default",className:"bg-primary-500 hover:bg-primary-800"},{checked:!0,disabled:!1,variant:"success",className:"bg-success-500 hover:bg-success-800"},{disabled:!0,className:"bg-light-100"},{variant:"default",className:"focus-visible:ring-primary-400"},{variant:"success",className:"focus-visible:ring-success-500"}],defaultVariants:{size:"md",checked:!1,disabled:!1,variant:"default"}}),Qi=I("rounded-full shrink-0 shadow-[0_1px_3px_0_rgba(16,24,40,0.10),0_1px_2px_0_rgba(16,24,40,0.06)]",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},disabled:{true:"bg-light-50",false:"bg-white"}},defaultVariants:{size:"md",disabled:!1}}),Jr=f.forwardRef(({checked:t=!1,size:e="md",variant:r="default",disabled:n,onCheckedChange:o,className:i},s)=>f.createElement("button",{ref:s,type:"button",role:"switch","aria-checked":t,disabled:n,onClick:()=>{n||o?.(!t)},className:P(Ri({size:e,checked:t,disabled:n,variant:r}),i)},f.createElement("span",{className:Qi({size:e,disabled:n})})));Jr.displayName="Toggle";const es=I(["relative rounded-lg text-caption-sm font-semibold text-white","bg-primary-900","shadow-lg","pointer-events-none","select-none"],{variants:{side:{top:"",bottom:"",left:"",right:""},hasSupportingText:{true:"p-3",false:"px-3 py-2"}},defaultVariants:{side:"top",hasSupportingText:!1}}),ts="mt-1 font-medium text-light-100",rs=I(["absolute"],{variants:{side:{top:["bottom-[-6px] left-1/2 -translate-x-1/2","border-x-8 border-x-transparent border-t-[6px] border-t-primary-900"],bottom:["top-[-6px] left-1/2 -translate-x-1/2","border-x-8 border-x-transparent border-b-[6px] border-b-primary-900"],left:["right-[-6px] top-1/2 -translate-y-1/2","border-y-8 border-y-transparent border-l-[6px] border-l-primary-900"],right:["left-[-6px] top-1/2 -translate-y-1/2","border-y-8 border-y-transparent border-r-[6px] border-r-primary-900"]}},defaultVariants:{side:"top"}}),Je=12,Re=({content:t,supportingText:e,side:r="top",open:n,defaultOpen:o=!1,disabled:i=!1,delay:s=0,className:l,children:c})=>{const[d,p]=f.useState(o),[u,g]=f.useState(null),b=n??d,v=f.useRef(null),x=f.useRef(null),w=f.useCallback(()=>{const T=v.current;if(!T)return null;const F=T.getBoundingClientRect();switch(r){case"top":return{top:F.top-Je,left:F.left+F.width/2};case"bottom":return{top:F.bottom+Je,left:F.left+F.width/2};case"left":return{top:F.top+F.height/2,left:F.left-Je};default:return{top:F.top+F.height/2,left:F.right+Je}}},[r]),k=()=>{if(i||!v.current)return;const T=()=>{g(w()),p(!0)};s>0?x.current=window.setTimeout(T,s):T()};f.useEffect(()=>{if(!b||!v.current)return;const T=()=>g(w());T();const F=new ResizeObserver(T);return F.observe(v.current),window.addEventListener("scroll",T,!0),window.addEventListener("resize",T),()=>{F.disconnect(),window.removeEventListener("scroll",T,!0),window.removeEventListener("resize",T)}},[b,w]);const S=()=>{x.current&&(clearTimeout(x.current),x.current=null),p(!1)};return f.createElement(f.Fragment,null,f.createElement("span",{ref:v,className:"inline-flex",onMouseEnter:k,onMouseLeave:S,onFocus:k,onBlur:S,tabIndex:0},c),b&&u&&Ue.createPortal(f.createElement("div",{role:"tooltip",className:"fixed z-[9999] pointer-events-none",style:{top:u.top,left:u.left,transform:r==="top"?"translate(-50%, -100%)":r==="bottom"?"translate(-50%, 0)":r==="left"?"translate(-100%, -50%)":"translate(0, -50%)"}},f.createElement("div",{className:P(es({side:r,hasSupportingText:!!e}),l)},t,e&&f.createElement("p",{className:ts},e),f.createElement("span",{className:rs({side:r})}))),document.body))};Re.displayName="Tooltip";const ns={brand:{bg:"bg-primary-50",border:"border-primary-300",text:"text-primary-700"},gray:{bg:"bg-white",border:"border-light-200",text:"text-light-800"},error:{bg:"bg-error-50",border:"border-error-200",text:"text-error-700"},warning:{bg:"bg-warning-50",border:"border-warning-200",text:"text-warning-700"},success:{bg:"bg-success-50",border:"border-success-200",text:"text-success-700"},"blue-gray":{bg:"bg-blue-gray-50",border:"border-blue-gray-200",text:"text-blue-gray-700"},"blue-light":{bg:"bg-blue-light-50",border:"border-blue-light-200",text:"text-blue-light-700"},indigo:{bg:"bg-indigo-50",border:"border-indigo-200",text:"text-indigo-700"},purple:{bg:"bg-purple-50",border:"border-purple-200",text:"text-purple-700"},blue:{bg:"bg-blue-50",border:"border-blue-200",text:"text-blue-700"},pink:{bg:"bg-pink-50",border:"border-pink-200",text:"text-pink-700"},orange:{bg:"bg-orange-50",border:"border-orange-200",text:"text-orange-700"}},os=I(["inline-flex items-center gap-1 border","font-medium transition-colors duration-150","select-none"],{variants:{size:{sm:"text-caption-sm py-[3px]",md:"text-caption-lg py-[2px]",lg:"text-caption-lg py-1"},shape:{rounded:"rounded-md",pill:"rounded-full"},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},interactive:{true:"cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{size:"sm",hasLeading:!1,className:"pl-2"},{size:"sm",hasLeading:!0,className:"pl-1"},{size:"sm",hasTrailing:!1,className:"pr-2"},{size:"sm",hasTrailing:!0,className:"pr-1"},{size:"md",hasLeading:!1,className:"pl-[9px]"},{size:"md",hasLeading:!0,className:"pl-1"},{size:"md",hasTrailing:!1,className:"pr-[9px]"},{size:"md",hasTrailing:!0,className:"pr-1"},{size:"lg",hasLeading:!1,className:"pl-2.5"},{size:"lg",hasLeading:!0,className:"pl-1.5"},{size:"lg",hasTrailing:!1,className:"pr-2.5"},{size:"lg",hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"rounded",hasLeading:!1,hasTrailing:!1,interactive:!1,disabled:!1}}),is=I(["shrink-0 rounded border bg-white transition-colors duration-150 size-3.5"],{variants:{checked:{true:"bg-primary-500 border-primary-500",false:""}},defaultVariants:{checked:!1}}),ss="shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800",ls="shrink-0 rounded-[3px] p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400",Rr=/^#([0-9a-f]{6})$/i,Qr=t=>Rr.test(t.trim()),en=(t,e)=>{const r=Rr.exec(t.trim());if(!r)return;const n=parseInt(r[1],16),o=n>>16&255,i=n>>8&255,s=n&255;return`rgba(${o}, ${i}, ${s}, ${e})`},Tt=({children:t,size:e="sm",shape:r="rounded",icon:n,checked:o,onCheckedChange:i,onClose:s,count:l,disabled:c=!1,className:d,color:p="gray",customColor:u})=>{const g=i!==void 0,b=o!==void 0||!!n,v=!!s||l!==void 0,x=ns[p],w=!!(u&&Qr(u)),k=w?{borderColor:u,backgroundColor:en(u,.12),color:u}:void 0,S=()=>{c||i?.(!o)},T=F=>{!g||c||(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),S())};return f.createElement("div",{role:g?"checkbox":void 0,"aria-checked":g?!!o:void 0,"aria-disabled":c||void 0,tabIndex:g&&!c?0:void 0,onClick:g?S:void 0,onKeyDown:T,style:k,className:P(os({size:e,shape:r,hasLeading:b,hasTrailing:v,interactive:g,disabled:c}),!w&&x.bg,!w&&x.border,!w&&x.text,d)},o!==void 0&&f.createElement("span",{className:P(is({checked:o}),!o&&!w&&x.border),style:!o&&w?{borderColor:u}:void 0},o&&f.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},f.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),n,f.createElement("span",{className:"whitespace-nowrap"},t),l!==void 0&&f.createElement("span",{className:ss},l),s&&f.createElement("button",{type:"button","aria-label":"Remove",disabled:c,onClick:F=>{F.stopPropagation(),s()},className:ls},f.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:"size-2.5"},f.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};Tt.displayName="Tag";const as={brand:{solidBg:"bg-primary-50",solidBorder:"border-primary-300",solidText:"text-primary-500",outlineBorder:"border-primary-500",outlineText:"text-primary-700"},gray:{solidBg:"bg-light-50",solidBorder:"border-light-200",solidText:"text-light-700",outlineBorder:"border-light-600",outlineText:"text-light-700"},error:{solidBg:"bg-error-50",solidBorder:"border-error-200",solidText:"text-error-700",outlineBorder:"border-error-600",outlineText:"text-error-700"},warning:{solidBg:"bg-warning-50",solidBorder:"border-warning-200",solidText:"text-warning-700",outlineBorder:"border-warning-600",outlineText:"text-warning-700"},success:{solidBg:"bg-success-50",solidBorder:"border-success-200",solidText:"text-success-700",outlineBorder:"border-success-600",outlineText:"text-success-700"},"blue-gray":{solidBg:"bg-blue-gray-50",solidBorder:"border-blue-gray-200",solidText:"text-blue-gray-700",outlineBorder:"border-blue-gray-600",outlineText:"text-blue-gray-700"},"blue-light":{solidBg:"bg-blue-light-50",solidBorder:"border-blue-light-200",solidText:"text-blue-light-700",outlineBorder:"border-blue-light-600",outlineText:"text-blue-light-700"},indigo:{solidBg:"bg-indigo-50",solidBorder:"border-indigo-200",solidText:"text-indigo-700",outlineBorder:"border-indigo-600",outlineText:"text-indigo-700"},purple:{solidBg:"bg-purple-50",solidBorder:"border-purple-200",solidText:"text-purple-700",outlineBorder:"border-purple-600",outlineText:"text-purple-700"},blue:{solidBg:"bg-blue-50",solidBorder:"border-blue-200",solidText:"text-blue-700",outlineBorder:"border-blue-600",outlineText:"text-blue-700"},pink:{solidBg:"bg-pink-50",solidBorder:"border-pink-200",solidText:"text-pink-700",outlineBorder:"border-pink-600",outlineText:"text-pink-700"},orange:{solidBg:"bg-orange-50",solidBorder:"border-orange-200",solidText:"text-orange-700",outlineBorder:"border-orange-600",outlineText:"text-orange-700"}},cs=I(["inline-flex items-center gap-1 border font-medium","transition-colors duration-150"],{variants:{size:{sm:"text-caption-sm py-0.5",md:"text-caption-lg py-0.5",lg:"text-caption-lg py-1"},shape:{pill:"rounded-full",badge:""},modern:{true:"rounded-md shadow-xs",false:""},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},iconOnly:{true:"p-[5px]",false:""},interactive:{true:"cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{shape:"badge",size:"sm",modern:!1,className:"rounded-md"},{shape:"badge",size:"md",modern:!1,className:"rounded-md"},{shape:"badge",size:"lg",modern:!1,className:"rounded-lg"},{size:"sm",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-2"},{size:"sm",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-1.5"},{size:"sm",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"sm",iconOnly:!1,hasTrailing:!1,className:"pr-2"},{size:"sm",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"md",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"md",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"md",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"md",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"lg",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-3"},{size:"lg",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"lg",iconOnly:!1,hasLeading:!0,className:"pl-1.5"},{size:"lg",shape:"pill",iconOnly:!1,hasTrailing:!1,className:"pr-3"},{size:"lg",shape:"badge",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"lg",iconOnly:!1,hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"pill",modern:!1,hasLeading:!1,hasTrailing:!1,iconOnly:!1,interactive:!1,disabled:!1}}),ds="size-4 shrink-0 rounded border bg-white",us="shrink-0 rounded p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400",tn=({children:t,size:e="sm",shape:r="pill",variant:n="solid",color:o="brand",customColor:i,modern:s=!1,icon:l,trailingIcon:c,checked:d,onCheckedChange:p,onClose:u,iconOnly:g=!1,disabled:b=!1,className:v})=>{const x=p!==void 0,w=d!==void 0||!!l,k=!!u||!!c,S=as[o],T=!!(i&&Qr(i)),F=T?{borderColor:i,color:i,backgroundColor:n==="outline"?"transparent":en(i,.1)}:void 0,q=()=>{b||p?.(!d)},_=z=>{!x||b||(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),q())};return f.createElement("div",{role:x?"checkbox":void 0,"aria-checked":x?!!d:void 0,"aria-disabled":b||void 0,tabIndex:x&&!b?0:void 0,onClick:x?q:void 0,onKeyDown:_,style:F,className:P(cs({size:e,shape:r,modern:s,hasLeading:w,hasTrailing:k,iconOnly:g,interactive:x,disabled:b}),!T&&(n==="outline"?P("bg-transparent",S.outlineBorder,S.outlineText):P(S.solidBg,S.solidBorder,S.solidText)),v)},d!==void 0&&f.createElement("span",{className:P(ds,d?"bg-primary-500 border-primary-500":!T&&S.solidBorder),style:!d&&T?{borderColor:i}:void 0},d&&f.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},f.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),l,!g&&f.createElement("span",{className:"whitespace-nowrap"},t),c,u&&f.createElement("button",{type:"button","aria-label":"Remove",disabled:b,onClick:z=>{z.stopPropagation(),u()},className:us},f.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:"size-2.5"},f.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};tn.displayName="Badge";const fs={brand:{bg50:"bg-primary-50",hoverBg100:"hover:bg-primary-100",border200:"border-primary-200",border500:"border-primary-500",text500:"text-primary-500"},gray:{bg50:"bg-light-50",hoverBg100:"hover:bg-light-100",border200:"border-light-200",border500:"border-light-500",text500:"text-light-500"},error:{bg50:"bg-error-50",hoverBg100:"hover:bg-error-100",border200:"border-error-200",border500:"border-error-500",text500:"text-error-500"},warning:{bg50:"bg-warning-50",hoverBg100:"hover:bg-warning-100",border200:"border-warning-200",border500:"border-warning-500",text500:"text-warning-500"},success:{bg50:"bg-success-50",hoverBg100:"hover:bg-success-100",border200:"border-success-200",border500:"border-success-500",text500:"text-success-500"}},ps={md:{outerPad:{leading:"pl-1 pr-2.5 py-1",trailing:"pl-3 pr-1 py-1"},gap:"gap-2",chipPad:"px-2 py-0.5",text:"text-caption-lg"},lg:{outerPad:{leading:"pl-1.5 pr-3 py-1.5",trailing:"pl-3 pr-1.5 py-1.5"},gap:"gap-2",chipPad:"px-2.5 py-[3px]",text:"text-body-sm"}},rn=({badgeLabel:t,children:e,size:r="md",theme:n="light",color:o="brand",badgePosition:i="leading",icon:s,onClick:l,className:c})=>{const d=fs[o],p=ps[r],u=n==="modern",g=n==="outline",b=P("inline-flex items-center border transition-colors duration-150",p.gap,p.outerPad[i],u?"rounded-lg bg-light-50 border-light-200 shadow-xs":g?P("rounded-full bg-white border-[1.5px]",d.border500):P("rounded-full",d.bg50,d.border200,d.hoverBg100),l&&"cursor-pointer",c),v=P("inline-flex shrink-0 items-center gap-1 border font-medium whitespace-nowrap",p.chipPad,p.text,u?"rounded-md bg-white border-light-200 text-light-800":g?P("rounded-full bg-white border-[1.5px]",d.border500,d.text500):P("rounded-full bg-white",d.border200,d.text500)),x=P("inline-flex items-center gap-1 font-medium",p.text,u?"text-light-800":d.text500),w=f.createElement("span",{className:v},u&&f.createElement("span",{className:"size-2 shrink-0 rounded-full bg-light-400"}),t);return f.createElement("div",{role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l,className:b},i==="leading"&&w,f.createElement("span",{className:x},e,s),i==="trailing"&&w)};rn.displayName="BadgeGroup";const hs=({size:t})=>{const e=t*.09,r=(t-e)/2,n=2*Math.PI*r;return f.createElement("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,fill:"none",className:"animate-spin"},f.createElement("circle",{cx:t/2,cy:t/2,r,strokeWidth:e,className:"stroke-light-100"}),f.createElement("circle",{cx:t/2,cy:t/2,r,strokeWidth:e,strokeLinecap:"round",strokeDasharray:`${n*.25} ${n}`,className:"stroke-primary-600"}))},bs=({size:t})=>{const e=f.useId(),r=t*.125,n=(t-r)/2,o=2*Math.PI*n;return f.createElement("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,fill:"none",className:"animate-spin text-primary-600"},f.createElement("defs",null,f.createElement("linearGradient",{id:e,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},f.createElement("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),f.createElement("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0"}))),f.createElement("circle",{cx:t/2,cy:t/2,r:n,strokeWidth:r,className:"stroke-light-100"}),f.createElement("circle",{cx:t/2,cy:t/2,r:n,strokeWidth:r,strokeLinecap:"round",stroke:`url(#${e})`,strokeDasharray:`${o*.75} ${o}`}))},ms=({size:t})=>{const r=Math.max(t*.1,3),n=(t-r)/2;return f.createElement("div",{className:"relative animate-spin",style:{width:t,height:t}},Array.from({length:12}).map((o,i)=>{const s=30*i,l=.15+.85*i/11;return f.createElement("span",{key:i,className:"absolute rounded-full bg-primary-600 top-1/2 left-1/2",style:{width:r,height:r,opacity:l,marginTop:-r/2,marginLeft:-r/2,transform:`rotate(${s}deg) translate(${n}px) rotate(${-s}deg)`}})}))},gs={sm:{box:32,gapClass:"gap-4",textClass:"text-caption-lg"},md:{box:48,gapClass:"gap-4",textClass:"text-caption-lg"},lg:{box:56,gapClass:"gap-4",textClass:"text-body-lg"},xl:{box:64,gapClass:"gap-5",textClass:"text-body-lg"}},nn=({size:t="sm",style:e="line-simple",supportingText:r=!0,label:n="Loading...",className:o})=>{const{box:i,gapClass:s,textClass:l}=gs[t];return f.createElement("div",{role:"status","aria-label":typeof n=="string"?n:"Loading",className:P("inline-flex flex-col items-center",s,o)},e==="line-simple"&&f.createElement(hs,{size:i}),e==="line-spinner"&&f.createElement(bs,{size:i}),e==="dot-circle"&&f.createElement(ms,{size:i}),r&&f.createElement("p",{className:P("font-medium text-light-700 whitespace-nowrap",l)},n))};nn.displayName="Loading";const on=({className:t,style:e})=>f.createElement("svg",{viewBox:"0 0 24 24",fill:"none",className:t,style:e},f.createElement("path",{d:"M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z",stroke:"currentColor",strokeWidth:"1.75"}),f.createElement("path",{d:"M3.75 20.25a8.25 8.25 0 0 1 16.5 0",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})),sn=({className:t})=>f.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},f.createElement("circle",{cx:"10",cy:"10",r:"9",className:"fill-primary-500 stroke-white",strokeWidth:"1.5"}),f.createElement("path",{d:"M6 10.2 8.6 12.8 14 7",stroke:"white",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})),ys={xs:{box:24,borderWidth:"0.5px",statusSize:6,badgeSize:10,textClass:"text-caption-sm"},sm:{box:32,borderWidth:"0.5px",statusSize:8,badgeSize:12,textClass:"text-caption-lg"},md:{box:40,borderWidth:"0.75px",statusSize:10,badgeSize:14,textClass:"text-body-sm"},lg:{box:48,borderWidth:"0.75px",statusSize:12,badgeSize:16,textClass:"text-body-lg"},xl:{box:56,borderWidth:"0.75px",statusSize:14,badgeSize:18,textClass:"text-h6"},"2xl":{box:64,borderWidth:"0.75px",statusSize:16,badgeSize:20,textClass:"text-h5 leading-7"}},xs="#17B26A",Ae=({src:t,alt:e,initials:r,size:n="md",status:o="none",statusIcon:i,contrastBorder:s=!0,className:l})=>{const{box:c,borderWidth:d,statusSize:p,badgeSize:u,textClass:g}=ys[n],b=t?"image":r!==void 0?"initials":"placeholder";return f.createElement("div",{className:P("relative inline-block shrink-0 rounded-full",l),style:{width:c,height:c}},b==="image"&&f.createElement("img",{src:t,alt:e??"",className:"absolute inset-0 size-full rounded-full object-cover"}),b==="placeholder"&&f.createElement("div",{className:"absolute inset-0 flex items-center justify-center rounded-full bg-light-50"},f.createElement(on,{className:"text-light-300",style:{width:c*.55,height:c*.55}})),b==="initials"&&f.createElement("div",{className:P("absolute inset-0 flex items-center justify-center rounded-full bg-light-50 font-semibold text-light-500",g)},r),s&&f.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:d,borderStyle:"solid"}}),o==="online"&&f.createElement("span",{className:"absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",style:{width:p,height:p,backgroundColor:xs}}),o==="company"&&f.createElement("div",{className:"absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",style:{width:u,height:u}},i),o==="verified"&&f.createElement("div",{className:"absolute bottom-0 right-0",style:{width:u,height:u}},f.createElement(sn,{className:"size-full"})))};Ae.displayName="Avatar";const ln=[{bg:"bg-primary-100",text:"text-primary-600"},{bg:"bg-secondary-100",text:"text-secondary-600"},{bg:"bg-purple-100",text:"text-purple-600"},{bg:"bg-pink-100",text:"text-pink-600"},{bg:"bg-orange-100",text:"text-orange-600"},{bg:"bg-teal-100",text:"text-teal-600"},{bg:"bg-indigo-100",text:"text-indigo-600"},{bg:"bg-rose-100",text:"text-rose-600"}],vs=t=>{let e=0;for(let n=0;n<t.length;n+=1)e=e*31+t.charCodeAt(n)|0;const r=Math.abs(e)%ln.length;return ln[r]},ws={xs:{box:24,overlap:-4,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-sm"},sm:{box:32,overlap:-8,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-lg"},md:{box:40,overlap:-12,contrastBorderWidth:"0.75px",plusIconSize:20,textClass:"text-body-sm"}},an=({avatars:t,max:e,size:r="xs",onAdd:n,className:o})=>{const{box:i,overlap:s,contrastBorderWidth:l,textClass:c}=ws[r],d=e?t.slice(0,e):t,p=e&&t.length>e?t.length-e:0;return f.createElement("div",{className:P("inline-flex items-start gap-2",o)},f.createElement("div",{className:"flex items-start"},d.map((u,g)=>f.createElement(Re,{key:g,content:u.label,disabled:!u.label,side:"top"},f.createElement("div",{className:"relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",style:{width:i,height:i,marginRight:s}},u.src?f.createElement("img",{src:u.src,alt:u.alt??"",className:"size-full object-cover"}):(()=>{const{bg:b,text:v}=vs(String(u.label??u.alt??u.initials??g));return f.createElement("div",{className:P("flex size-full items-center justify-center font-semibold",b,v,c)},u.initials)})(),f.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:l,borderStyle:"solid"}})))),p>0&&f.createElement(Re,{content:t.slice(e).map((u,g)=>f.createElement("div",{key:g},u.label)),disabled:!t.slice(e).some(u=>u.label),side:"top"},f.createElement("div",{className:"relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",style:{width:i,height:i}},f.createElement("span",{className:P("font-semibold text-light-600",c)},"+",p)))),n&&f.createElement("button",{type:"button",onClick:n,"aria-label":"Add",className:"flex shrink-0 items-center justify-center rounded-full border border-dashed border-light-300 bg-white text-light-500 hover:bg-light-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",style:{width:i,height:i}},f.createElement("svg",{width:i*.4,height:i*.4,viewBox:"0 0 20 20",fill:"none"},f.createElement("path",{d:"M10 4v12M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}))))};an.displayName="AvatarGroup";const Es={xs:{nameClass:"text-caption-sm",subtitleClass:"text-caption-sm"},sm:{nameClass:"text-caption-lg",subtitleClass:"text-caption-sm"},md:{nameClass:"text-caption-lg",subtitleClass:"text-caption-lg"},lg:{nameClass:"text-body-sm",subtitleClass:"text-body-sm"},xl:{nameClass:"text-body-lg",subtitleClass:"text-body-sm"}},cn=({name:t,subtitle:e,src:r,initials:n,size:o="xs",status:i="none",statusIcon:s,className:l})=>{const{nameClass:c,subtitleClass:d}=Es[o];return f.createElement("div",{className:P("inline-flex items-center gap-2",l)},f.createElement(Ae,{src:r,initials:n,size:o,status:i,statusIcon:s}),f.createElement("div",{className:"flex flex-col items-start whitespace-nowrap"},f.createElement("span",{className:P("font-bold text-light-800",c)},t),e&&f.createElement("span",{className:P("font-normal text-light-700",d)},e)))};cn.displayName="AvatarLabelGroup";const Ss={sm:{box:72,ringWidth:3,shadowClass:"shadow-md",iconSize:36,textClass:"text-h4",verifiedSize:20,verifiedOffset:0},md:{box:96,ringWidth:4,shadowClass:"shadow-lg",iconSize:48,textClass:"text-h3",verifiedSize:24,verifiedOffset:0},lg:{box:160,ringWidth:4,shadowClass:"shadow-lg",iconSize:80,textClass:"text-h1",verifiedSize:32,verifiedOffset:4}},dn=({src:t,alt:e,initials:r,size:n="sm",verified:o=!0,contrastBorder:i=!0,className:s})=>{const{box:l,ringWidth:c,shadowClass:d,iconSize:p,textClass:u,verifiedSize:g,verifiedOffset:b}=Ss[n],v=t?"image":r!==void 0?"initials":"placeholder";return f.createElement("div",{className:P("relative rounded-full",s),style:{width:l,height:l}},f.createElement("div",{className:P("absolute inset-0 overflow-hidden rounded-full border-white",d,v!=="image"&&"bg-light-100"),style:{borderWidth:c,borderStyle:"solid"}},v==="image"&&f.createElement("img",{src:t,alt:e??"",className:"absolute inset-0 size-full rounded-full object-cover"}),i&&f.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]"}),v==="placeholder"&&f.createElement("div",{className:"absolute inset-0 flex items-center justify-center"},f.createElement(on,{className:"text-light-300",style:{width:p,height:p}})),v==="initials"&&f.createElement("div",{className:P("absolute inset-0 flex items-center justify-center font-semibold text-light-500",u)},r)),o&&f.createElement("div",{className:"absolute",style:{width:g,height:g,bottom:b,right:b}},f.createElement(sn,{className:"size-full"})))};dn.displayName="AvatarProfilePhoto";function Oe(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const we=typeof document<"u"?a.useLayoutEffect:()=>{},Qe={prefix:String(Math.round(Math.random()*1e10)),current:0},un=a.createContext(Qe),ks=a.createContext(!1);let Cs=!!(typeof window<"u"&&window.document&&window.document.createElement),Nt=new WeakMap;function $s(t=!1){let e=a.useContext(un),r=a.useRef(null);if(r.current===null&&!t){let n=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(n){let o=Nt.get(n);o==null?Nt.set(n,{id:e.current,state:n.memoizedState}):n.memoizedState!==o.state&&(e.current=o.id,Nt.delete(n))}r.current=++e.current}return r.current}function Ts(t){let e=a.useContext(un);e===Qe&&!Cs&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=$s(!!t),n=e===Qe&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function Ns(t){let e=a.useId(),[r]=a.useState(et()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Qe.prefix}`;return t||`${n}-${e}`}const Ks=typeof a.useId=="function"?Ns:Ts;function Ps(){return!1}function Ls(){return!0}function Is(t){return()=>{}}function et(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Is,Ps,Ls):a.useContext(ks)}let Ms=!!(typeof window<"u"&&window.document&&window.document.createElement),Ne=new Map,Ke;typeof FinalizationRegistry<"u"&&(Ke=new FinalizationRegistry(t=>{Ne.delete(t)}));let Kt=new WeakMap;function tt(t){let[e,r]=a.useState(t),n=a.useRef(null),o=Ks(e),i=a.useRef(null),s=Kt.get(i);if(Ke&&s!==o&&(s!=null&&Ke.unregister(i),Ke.register(i,o,i),Kt.set(i,o)),Ms){const l=Ne.get(o);l&&!l.includes(n)?l.push(n):Ne.set(o,[n])}return we(()=>{let l=o;return()=>{Ke&&(Ke.unregister(i),Kt.delete(i)),Ne.delete(l)}},[o]),a.useEffect(()=>{let l=n.current;return l&&r(l),()=>{l&&(n.current=null)}}),o}function Ds(t,e){if(t===e)return t;let r=Ne.get(t);if(r)return r.forEach(o=>o.current=e),e;let n=Ne.get(e);return n?(n.forEach(o=>o.current=t),t):e}function Pt(...t){return t.length===1&&t[0]?t[0]:e=>{let r=!1;const n=t.map(o=>{const i=fn(o,e);return r||=typeof i=="function",i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():fn(t[i],null)})}}}function fn(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function oe(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let o in n){let i=e[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?e[o]=Oe(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?e[o]=P(i,s):o==="id"&&i&&s?e.id=Ds(i,s):o==="ref"&&i&&s?e.ref=Pt(i,s):e[o]=s!==void 0?s:i}}return e}function Lt(t){const e=a.useRef(null),r=a.useRef(void 0),n=a.useCallback(o=>{if(typeof t=="function"){const i=t,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(t)return t.current=o,()=>{t.current=null}},[t]);return a.useMemo(()=>({get current(){return e.current},set current(o){e.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}const Fs=Symbol("default");function As({values:t,children:e}){for(let[r,n]of t)e=a.createElement(r.Provider,{value:n},e);return e}function It(t){let{className:e,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:s,values:l,render:c}=t;return a.useMemo(()=>{let d,p,u;return typeof e=="function"?d=e({...l,defaultClassName:o}):d=e,typeof r=="function"?p=r({...l,defaultStyle:s||{}}):p=r,typeof n=="function"?u=n({...l,defaultChildren:i}):n==null?u=i:u=n,{className:d??o,style:p||s?{...s,...p}:void 0,children:u??i,"data-rac":"",render:c?g=>c(g,l):void 0}},[e,r,n,o,i,s,l,c])}function pn(t,e){let r=a.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||Fs;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`)),i=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function Os(t,e,r){let n=pn(r,t.slot)||{},{ref:o,...i}=n,s=Lt(a.useMemo(()=>Pt(e,o),[e,o])),l=oe(i,t);return"style"in i&&i.style&&"style"in t&&t.style&&(typeof i.style=="function"||typeof t.style=="function"?l.style=c=>{let d=typeof i.style=="function"?i.style(c):i.style,p={...c.defaultStyle,...d},u=typeof t.style=="function"?t.style({...c,defaultStyle:p}):t.style;return{...p,...u}}:l.style={...i.style,...t.style}),[l,s]}function _s(t,e,r){let{render:n,...o}=e,i=a.useRef(null),s=a.useMemo(()=>Pt(r,i),[r,i]);we(()=>{process.env.NODE_ENV!=="production"&&n&&(i.current?i.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${i.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,n]);let l={...o,ref:s};return n?n(l,void 0):a.createElement(t,l)}const hn={},rt=new Proxy({},{get(t,e){if(typeof e!="string")return;let r=hn[e];return r||(r=a.forwardRef(_s.bind(null,e)),hn[e]=r),r}}),zs="react-aria-clear-focus",Bs="react-aria-focus",Q=t=>Vs(t)?t.document:Ws(t)?t:t?.ownerDocument??(typeof document<"u"?document:void 0),le=t=>Q(t)?.defaultView??(typeof window<"u"?window:void 0);function bn(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Vs(t){return typeof t=="object"&&t!=null&&"window"in t&&t.window===t}function Ws(t){return bn(t)&&t.nodeType===9}function Hs(t){return bn(t)&&t.nodeType===11&&"host"in t}let js=!1;function nt(){return js}function j(t,e){if(!nt())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;typeof r.assignedElements!="function"&&r.assignedSlot?.parentNode?r=r.assignedSlot.parentNode:Hs(r)?r=r.host:r=r.parentNode}return!1}const ce=(t=document)=>{if(!nt())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&e.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e};function O(t){if(nt()&&t.target instanceof Element&&t.target.shadowRoot){if("composedPath"in t)return t.composedPath()[0]??null;if("composedPath"in t.nativeEvent)return t.nativeEvent.composedPath()[0]??null}return t.target}function mn(t){if(!t)return!1;let e=t.getRootNode(),r=le(t);if(!(e instanceof r.Document||e instanceof r.ShadowRoot))return!1;let n=e.activeElement;return n!=null&&t.contains(n)}function gn(t){let e=Us(Q(t));e!==t&&(e&&Gs(e,t),t&&yn(t,e))}function Gs(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function yn(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Us(t){let e=ce(t),r=e?.getAttribute("aria-activedescendant");return r&&t.getElementById(r)||e}function ge(t){if(qs())t.focus({preventScroll:!0});else{let e=Ys(t);t.focus(),Xs(e)}}let ot=null;function qs(){if(ot==null){ot=!1;try{document.createElement("div").focus({get preventScroll(){return ot=!0,!0}})}catch{}}return ot}function Ys(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Xs(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}const Zs=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Js(t){const e=le(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=le(t);let{display:s,visibility:l}=i(t);o=s!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function Rs(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Mt(t,e){return Zs?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&Js(t)&&Rs(t,e)&&(!t.parentElement||Mt(t.parentElement,t))}const Dt=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Qs=Dt.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Dt.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const el=Dt.join(':not([hidden]):not([tabindex="-1"]),');function xn(t,e){return t.matches(Qs)&&!vn(t)&&(e?.skipVisibilityCheck||Mt(t))}function Ft(t){return t.matches(el)&&Mt(t)&&!vn(t)}function vn(t){let e=t;for(;e!=null;){if(e instanceof le(e).HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function At(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function wn(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function En(t){let e=a.useRef({isFocused:!1,observer:null});return we(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),a.useCallback(r=>{let n=O(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){e.current.isFocused=!0;let o=n,i=s=>{if(e.current.isFocused=!1,o.disabled){let l=At(s);t?.(l)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){e.current.observer?.disconnect();let s=o===ce()?null:ce();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let it=!1;function Sn(t){for(;t&&!xn(t,{skipVisibilityCheck:!0});)t=t.parentElement;let e=le(t),r=e.document.activeElement;if(!r||r===t)return;it=!0;let n=!1,o=p=>{(O(p)===r||n)&&p.stopImmediatePropagation()},i=p=>{(O(p)===r||n)&&(p.stopImmediatePropagation(),!t&&!n&&(n=!0,ge(r),c()))},s=p=>{(O(p)===t||n)&&p.stopImmediatePropagation()},l=p=>{(O(p)===t||n)&&(p.stopImmediatePropagation(),n||(n=!0,ge(r),c()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",i,!0),e.addEventListener("focusin",l,!0),e.addEventListener("focus",s,!0);let c=()=>{cancelAnimationFrame(d),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",i,!0),e.removeEventListener("focusin",l,!0),e.removeEventListener("focus",s,!0),it=!1,n=!1},d=requestAnimationFrame(c);return c}function st(t){if(typeof window>"u"||window.navigator==null)return!1;let e=window.navigator.userAgentData?.brands;return Array.isArray(e)&&e.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function Ot(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function he(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const ue=he(function(){return Ot(/^Mac/i)}),tl=he(function(){return Ot(/^iPhone/i)}),kn=he(function(){return Ot(/^iPad/i)||ue()&&navigator.maxTouchPoints>1}),_e=he(function(){return tl()||kn()}),rl=he(function(){return ue()||_e()}),Pe=he(function(){return st(/AppleWebKit/i)&&(_e()||!Cn())});he(function(){return Pe()&&!Cn()&&!$n()});const Cn=he(function(){return st(/Chrome|CriOS|CrMo/i)}),_t=he(function(){return st(/Android/i)}),$n=he(function(){return st(/(Firefox|FxiOS)/i)});function zt(t){return t.pointerType===""&&t.isTrusted?!0:_t()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function nl(t){return!_t()&&t.width===0&&t.height===0||_t()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}const ol=a.createContext({isNative:!0,open:sl,useHref:t=>t});function Bt(){return a.useContext(ol)}function ye(t,e,r=!0){let{metaKey:n,ctrlKey:o,altKey:i,shiftKey:s}=e;!Pe()&&$n()&&window.event?.type?.startsWith("key")&&t.target==="_blank"&&(ue()?n=!0:o=!0);let l=Pe()&&ue()&&!kn()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:o,altKey:i,shiftKey:s}):new MouseEvent("click",{metaKey:n,ctrlKey:o,altKey:i,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});ye.isOpening=r,ge(t),t.dispatchEvent(l),ye.isOpening=!1}ye.isOpening=!1;function il(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function sl(t,e){il(t,r=>ye(r,e))}function ll(t){const r=Bt().useHref(t?.href??"");let n={};if(t)for(let o of["href","target","rel","download","ping","referrerPolicy"])o in t&&t[o]!==void 0&&(n[o]=o==="href"?r:t[o]);return n}let Le=null;const Vt=new Set;let ze=new Map,$e=!1,Wt=!1;const al={Tab:!0,Escape:!0};function Ht(t,e){for(let r of Vt)r(t,e)}function cl(t){return!(t.metaKey||!ue()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function lt(t){$e=!0,!ye.isOpening&&cl(t)&&(Le="keyboard",Ht("keyboard",t))}function de(t){Le="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&($e=!0,Ht("pointer",t))}function Tn(t){!ye.isOpening&&zt(t)&&($e=!0,Le="virtual")}function Nn(t){let e=le(O(t)),r=Q(O(t));O(t)===e||O(t)===r||it||!t.isTrusted||(!$e&&!Wt&&(Le="virtual",Ht("virtual",t)),$e=!1,Wt=!1)}function Kn(){it||($e=!1,Wt=!0)}function jt(t){if(typeof window>"u"||typeof document>"u")return;const e=le(t),r=Q(t);if(ze.get(e))return;let n=e.HTMLElement.prototype.focus;Reflect.defineProperty(e.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){$e=!0,n.apply(this,arguments)}}),r.addEventListener("keydown",lt,!0),r.addEventListener("keyup",lt,!0),r.addEventListener("click",Tn,!0),e.addEventListener("focus",Nn,!0),e.addEventListener("blur",Kn,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",de,!0),r.addEventListener("pointermove",de,!0),r.addEventListener("pointerup",de,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",de,!0),r.addEventListener("mousemove",de,!0),r.addEventListener("mouseup",de,!0)),e.addEventListener("beforeunload",()=>{Pn(t)},{once:!0}),ze.set(e,{focus:n})}const Pn=(t,e)=>{const r=le(t),n=Q(t);e&&n.removeEventListener("DOMContentLoaded",e),ze.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:ze.get(r).focus}),n.removeEventListener("keydown",lt,!0),n.removeEventListener("keyup",lt,!0),n.removeEventListener("click",Tn,!0),r.removeEventListener("focus",Nn,!0),r.removeEventListener("blur",Kn,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",de,!0),n.removeEventListener("pointermove",de,!0),n.removeEventListener("pointerup",de,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",de,!0),n.removeEventListener("mousemove",de,!0),n.removeEventListener("mouseup",de,!0)),ze.delete(r))};function dl(t){const e=Q(t);let r;return e.readyState!=="loading"?jt(t):(r=()=>{jt(t)},e.addEventListener("DOMContentLoaded",r)),()=>Pn(t,r)}typeof document<"u"&&dl();function Gt(){return Le!=="pointer"}function Ut(){return Le}const ul=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fl(t,e,r){let n=r?O(r):void 0,o=Q(n),i=le(n);const s=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,l=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,c=typeof i<"u"?i.HTMLElement:HTMLElement,d=typeof i<"u"?i.KeyboardEvent:KeyboardEvent;let p=ce(o);return t=t||p instanceof s&&!ul.has(p.type)||p instanceof l||p instanceof c&&p.isContentEditable,!(t&&e==="keyboard"&&r instanceof d&&!al[r.key])}function pl(t,e,r){jt(),a.useEffect(()=>{if(r?.enabled===!1)return;let n=(o,i)=>{fl(!!r?.isTextInput,o,i)&&t(Gt())};return Vt.add(n),()=>{Vt.delete(n)}},e)}function Be(t){return ue()?t.metaKey:t.ctrlKey}const hl=a.useInsertionEffect??we;function at(t){const e=a.useRef(null);return hl(()=>{e.current=t},[t]),a.useCallback((...r)=>{const n=e.current;return n?.(...r)},[])}function ct(t,e,r,n){let o=at(r),i=r==null;a.useEffect(()=>{if(i||!t.current)return;let s=t.current;return s.addEventListener(e,o,n),()=>{s.removeEventListener(e,o,n)}},[t,e,n,i])}function bl(t,e){let{id:r,"aria-label":n,"aria-labelledby":o}=t;return r=tt(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":o}}const ml=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),gl=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function yl(t){if(Intl.Locale){let r=new Intl.Locale(t).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return ml.has(r.script)}let e=t.split("-")[0];return gl.has(e)}const Ln=Symbol.for("react-aria.i18n.locale");function In(){let t=typeof window<"u"&&window[Ln]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:yl(t)?"rtl":"ltr"}}let qt=In(),Ve=new Set;function Mn(){qt=In();for(let t of Ve)t(qt)}function xl(){let t=et(),[e,r]=a.useState(qt);return a.useEffect(()=>(Ve.size===0&&window.addEventListener("languagechange",Mn),Ve.add(r),()=>{Ve.delete(r),Ve.size===0&&window.removeEventListener("languagechange",Mn)}),[]),t?{locale:typeof window<"u"&&window[Ln]||"en-US",direction:"ltr"}:e}const vl=a.createContext(null);function Dn(){let t=xl();return a.useContext(vl)||t}const wl=typeof document<"u"?a.useInsertionEffect??a.useLayoutEffect:()=>{};function Fn(t,e,r){let[n,o]=a.useState(t||e),i=a.useRef(n),s=a.useRef(t!==void 0),l=t!==void 0;a.useEffect(()=>{let u=s.current;u!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),s.current=l},[l]);let c=l?t:n;wl(()=>{i.current=c});let[,d]=a.useReducer(()=>({}),{}),p=a.useCallback((u,...g)=>{let b=typeof u=="function"?u(i.current):u;Object.is(i.current,b)||(i.current=b,o(b),d(),r?.(b,...g))},[r]);return[c,p]}class We{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,r,n){let o=this.clone();return r.addDescendants(o,e),o}}class An extends We{filter(e,r,n){let[o,i]=Vn(e,r,this.firstChildKey,n),s=this.clone();return s.firstChildKey=o,s.lastChildKey=i,s}}const xr=class xr extends We{};xr.type="header";let On=xr;const vr=class vr extends We{};vr.type="loader";let _n=vr;const wr=class wr extends An{filter(e,r,n){if(n(this.textValue,this)){let o=this.clone();return r.addDescendants(o,e),o}return null}};wr.type="item";let zn=wr;const Er=class Er extends An{filter(e,r,n){let o=super.filter(e,r,n);if(o&&o.lastChildKey!==null){let i=e.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}};Er.type="section";let Bn=Er;class El{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),o=n?.firstChildKey!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);return r?.key??null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r.itemCount=this.itemCount,r}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,r){this.addNode(e);let n=r.getChildren(e.key);for(let o of n)this.addDescendants(o,r)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let r=this.keyMap.get(e);r!=null&&r.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}filter(e){let r=new this.constructor,[n,o]=Vn(this,r,this.firstKey,e);return r?.commit(n,o),r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Vn(t,e,r,n){if(r==null)return[null,null];let o=null,i=null,s=t.getItem(r);for(;s!=null;){let l=s.filter(t,e,n);l!=null&&(l.nextKey=null,i&&(l.prevKey=i.key,i.nextKey=l.key),o==null&&(o=l),e.addNode(l),i=l),s=s.nextKey!=null?t.getItem(s.nextKey):null}if(i&&i.type==="separator"){let l=i.prevKey;e.removeNode(i.key),l!=null?(i=e.getItem(l),i.nextKey=null):i=null}return[o?.key??null,i?.key??null]}class Wn{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index-1,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}}class Ie extends Wn{constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Ie?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let e=this.nextVisibleSibling,r=this.getMutableNode();if(r!=null&&(r.index=this.index,r.level=this.level,r.parentKey=this.parentNode instanceof Ie?this.parentNode.node?.key??null:null,r.prevKey=this.previousVisibleSibling?.node?.key??null,r.nextKey=e?.node?.key??null,r.hasChildNodes=!!this.firstChild,r.firstChildKey=this.firstVisibleChild?.node?.key??null,r.lastChildKey=this.lastVisibleChild?.node?.key??null,(r.colSpan!=null||r.colIndex!=null)&&e)){let n=(r.colIndex??r.index)+(r.colSpan??1);if(e.node!=null&&n!==e.node.colIndex){let o=e.getMutableNode();o.colIndex=n}}}setProps(e,r,n,o,i){let s,{value:l,textValue:c,id:d,...p}=e;if(this.node==null?(s=new n(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=s):s=this.getMutableNode(),p.ref=r,s.props=p,s.rendered=o,s.render=i,s.value=l,e["aria-label"]&&(s["aria-label"]=e["aria-label"]),s.textValue=c||(typeof p.children=="string"?p.children:"")||e["aria-label"]||"",d!=null&&d!==s.key)throw new Error("Cannot change the id of an item");p.colSpan!=null&&(s.colSpan=p.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(r){let n=r==="none";if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let o=e.previousVisibleSibling,i=e.nextVisibleSibling;o&&e.ownerDocument.markDirty(o),i&&e.ownerDocument.markDirty(i),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class Sl extends Wn{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new Ie(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof Ie&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Ie?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function Hn(t){let{children:e,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=t,s=a.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof e=="function"?e.toString():void 0,[e]),l=a.useMemo(()=>new WeakMap,[...i,s]);return a.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let d of r){let p=kl(d)?d:null,u=p?l.get(p):null;if(!u){u=e(d);let g=u.props.id??d?.key??d?.id;n!=null&&u.props.id==null&&g!=null&&(g=n+":"+g);let b=g??c.length;u=a.cloneElement(u,o?{key:b,id:g,value:d}:{key:b}),p&&l.set(p,u)}c.push(u)}return c}else if(typeof e!="function")return e},[e,r,l,n,o])}function kl(t){switch(typeof t){case"object":return t!=null;case"function":case"symbol":return!0;default:return!1}}let Ee=new Map,Yt=new Set;function jn(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{let o=O(n);if(!t(n)||!o)return;let i=Ee.get(o);i||(i=new Set,Ee.set(o,i),o.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{let o=O(n);if(!t(n)||!o)return;let i=Ee.get(o);if(i&&(i.delete(n.propertyName),i.size===0&&(o.removeEventListener("transitioncancel",r),Ee.delete(o)),Ee.size===0)){for(let s of Yt)s();Yt.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?jn():document.addEventListener("DOMContentLoaded",jn));function Cl(){for(const[t]of Ee)"isConnected"in t&&!t.isConnected&&Ee.delete(t)}function Gn(t){requestAnimationFrame(()=>{Cl(),Ee.size===0?t():Yt.add(t)})}function dt(t){if(!t.isConnected)return;const e=Q(t);if(Ut()==="virtual"){let r=ce(e);Gn(()=>{const n=ce(e);(n===r||n===e.body)&&t.isConnected&&ge(t)})}else ge(t)}function Un(t){let{isDisabled:e,onFocus:r,onBlur:n,onFocusChange:o}=t;const i=a.useCallback(c=>{if(O(c)===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),s=En(i),l=a.useCallback(c=>{let d=O(c);const p=Q(d),u=p?ce(p):ce();d===c.currentTarget&&d===u&&(r&&r(c),o&&o(!0),s(c))},[o,r,s]);return{focusProps:{onFocus:!e&&(r||o||n)?l:void 0,onBlur:!e&&(n||o)?i:void 0}}}function ut(t){if(t)return e=>{let r=!0,n={...e,preventDefault(){e.preventDefault()},isDefaultPrevented(){return e.isDefaultPrevented()},stopPropagation(){r&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):r=!0},continuePropagation(){r=!1,typeof e.continuePropagation=="function"&&e.continuePropagation()},isPropagationStopped(){return r}};t(n),r&&!(typeof e.isPropagationStopped=="function"&&e.isPropagationStopped())&&e.stopPropagation()}}const $l=new Set(["shift","alt","control","meta","mod"]),Tl=["Alt","Control","Meta","Shift"];function Nl(t){let e=new Set;return t.alt&&e.add("Alt"),t.shift&&e.add("Shift"),t.ctrl&&e.add("Control"),t.meta&&e.add("Meta"),t.mod&&e.add(ue()?"Meta":"Control"),e}function Kl(t){let e=new Set;return t.altKey&&e.add("Alt"),t.ctrlKey&&e.add("Control"),t.metaKey&&e.add("Meta"),t.shiftKey&&e.add("Shift"),e}function qn(t){return Tl.filter(e=>t.has(e))}function Pl(t){let e=t.split("+").reduce((r,n)=>{let o=n.toLowerCase();return $l.has(o)?o==="shift"?r.shift=!0:o==="alt"?r.alt=!0:o==="control"?r.ctrl=!0:o==="meta"?r.meta=!0:o==="mod"&&(r.mod=!0):r.key=n,r},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(e.key==="")throw new Error(`Invalid keyboard shortcut: "${t}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return e}function Yn(t){return t.toLowerCase()}const Ll={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function Il(t){let e=Yn(t),r=Ll[e];return r??e}function Ml(t){let e=qn(Nl(t)),r=Il(t.key);return e.length>0?`${e.join("+")}+${r}`:r}function Dl(t){let e=qn(Kl(t)),r=Yn(t.key);return(e.length>0?`${e.join("+")}+`:"")+r}function Fl(t){let e=new Map;for(let[r,n]of Object.entries(t)){let o=Pl(r);e.set(Ml(o),n)}return r=>{let n=Dl(r),o=e.get(n),i=o?.(r);i===void 0&&o!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i=="boolean"&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&r.preventDefault(),(!o||i?.shouldContinuePropagation)&&r.continuePropagation()}}function Xt(t){let{shortcuts:e,allowRepeats:r=!1,allowComposing:n=!1}=t,o,i;if(e){let s=Fl(e),l=ut(d=>{if(!j(d.currentTarget,O(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!r||d.nativeEvent?.isComposing&&!n){d.continuePropagation();return}s(d)}),c=ut(d=>{if(!j(d.currentTarget,O(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!r||d.nativeEvent?.isComposing&&!n){d.continuePropagation();return}d.continuePropagation()});o=t.onKeyDown?Oe(t.onKeyDown,l):l,i=t.onKeyUp?Oe(t.onKeyUp,c):c}else o=ut(t.onKeyDown),i=ut(t.onKeyUp);return{keyboardProps:t.isDisabled?{}:{onKeyDown:o,onKeyUp:i}}}function Xn(t,e){we(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}let Zt=a.createContext(null);function Al(t){let e=a.useContext(Zt)||{};Xn(e,t);let{ref:r,...n}=e;return n}function Ol(t,e){let{focusProps:r}=Un(t),{keyboardProps:n}=Xt(t),o=oe(r,n),i=Al(e),s=t.isDisabled?{}:i,l=a.useRef(t.autoFocus);a.useEffect(()=>{l.current&&e.current&&dt(e.current),l.current=!1},[e]);let c=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(c=void 0),{focusableProps:oe({...o,tabIndex:c},s)}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const Zn=a.createContext(!1);function _l(t){if(a.useContext(Zn))return a.createElement(a.Fragment,null,t.children);let r=a.createElement(Zn.Provider,{value:!0},t.children);return a.createElement("template",null,r)}var ft={exports:{}},Jt={};var Jn;function zl(){if(Jn)return Jt;Jn=1;var t=a;function e(u,g){return u===g&&(u!==0||1/u===1/g)||u!==u&&g!==g}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,o=t.useEffect,i=t.useLayoutEffect,s=t.useDebugValue;function l(u,g){var b=g(),v=n({inst:{value:b,getSnapshot:g}}),x=v[0].inst,w=v[1];return i(function(){x.value=b,x.getSnapshot=g,c(x)&&w({inst:x})},[u,b,g]),o(function(){return c(x)&&w({inst:x}),u(function(){c(x)&&w({inst:x})})},[u]),s(b),b}function c(u){var g=u.getSnapshot;u=u.value;try{var b=g();return!r(u,b)}catch{return!0}}function d(u,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Jt.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:p,Jt}var Rt={};var Rn;function Bl(){return Rn||(Rn=1,process.env.NODE_ENV!=="production"&&(function(){function t(b,v){return b===v&&(b!==0||1/b===1/v)||b!==b&&v!==v}function e(b,v){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var x=v();if(!u){var w=v();i(x,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}w=s({inst:{value:x,getSnapshot:v}});var k=w[0].inst,S=w[1];return c(function(){k.value=x,k.getSnapshot=v,r(k)&&S({inst:k})},[b,x,v]),l(function(){return r(k)&&S({inst:k}),b(function(){r(k)&&S({inst:k})})},[b]),d(x),x}function r(b){var v=b.getSnapshot;b=b.value;try{var x=v();return!i(b,x)}catch{return!0}}function n(b,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=a,i=typeof Object.is=="function"?Object.is:t,s=o.useState,l=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,p=!1,u=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;Rt.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Rt}var Qn;function Vl(){return Qn||(Qn=1,process.env.NODE_ENV==="production"?ft.exports=zl():ft.exports=Bl()),ft.exports}var Wl=Vl();const eo=a.createContext(!1),He=a.createContext(null);function Hl(t){if(a.useContext(He))return t.content;let{collection:r,document:n}=ql(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(_l,null,a.createElement(He.Provider,{value:n},t.content)),a.createElement(jl,{render:t.children,collection:r}))}function jl({collection:t,render:e}){return e(t)}function Gl(t,e,r){let n=et(),o=a.useRef(n);o.current=n;let i=a.useCallback(()=>o.current?r():e(),[e,r]);return Wl.useSyncExternalStore(t,i)}const Ul=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:Gl;function ql(t){let[e]=a.useState(()=>new Sl(t?.()||new El)),r=a.useCallback(s=>e.subscribe(s),[e]),n=a.useCallback(()=>{let s=e.getCollection();return e.isSSR&&e.resetAfterSSR(),s},[e]),o=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:Ul(r,n,o),document:e}}const Qt=a.createContext(null);function Yl(t){var r;return r=class extends We{},r.type=t,r}function Xl(t,e,r,n,o,i){typeof t=="string"&&(t=Yl(t));let s=a.useCallback(c=>{c?.setProps(e,r,t,n,i)},[e,r,n,i,t]),l=a.useContext(Qt);if(l){let c=l.ownerDocument.nodesByProps.get(e);return c||(c=l.ownerDocument.createElement(t.type),c.setProps(e,r,t,n,i),l.appendChild(c),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(e,c)),o?a.createElement(Qt.Provider,{value:c},o):null}return a.createElement(t.type,{ref:s},o)}function Zl(t,e){let r=({node:o})=>e(o.props,o.props.ref,o),n=a.forwardRef((o,i)=>{let s=a.useContext(Zt);if(!a.useContext(eo)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,i)}return Xl(t,o,i,"children"in o?o.children:null,null,c=>a.createElement(Zt.Provider,{value:s},a.createElement(r,{node:c})))});return n.displayName=e.name,n}function Jl(t){return Hn({...t,addIdAndValue:!0})}const to=a.createContext(null);function Rl(t){let e=a.useContext(to),r=(e?.dependencies||[]).concat(t.dependencies),n=t.idScope??e?.idScope,o=Jl({...t,idScope:n,dependencies:r});return a.useContext(He)&&(o=a.createElement(Ql,null,o)),e=a.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),a.createElement(to.Provider,{value:e},o)}function Ql({children:t}){let e=a.useContext(He),r=a.useMemo(()=>a.createElement(He.Provider,{value:null},a.createElement(eo.Provider,{value:!0},t)),[t]);return et()?a.createElement(Qt.Provider,{value:e},r):Ue.createPortal(r,e)}const ea={CollectionRoot({collection:t,renderDropIndicator:e}){return ro(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:r}){return ro(t,e,r)}};function ro(t,e,r){return Hn({items:e?t.getChildren(e.key):t,dependencies:[r],children(n){if(n.type==="content")return a.createElement(a.Fragment,null);let o=n.render(n);return!r||n.type!=="item"?o:a.createElement(a.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,ta(t,n,r))}})}function ta(t,e,r){let n=e.key,o=t.getKeyAfter(n),i=o!=null?t.getItem(o):null;for(;i!=null&&i.type!=="item";)o=t.getKeyAfter(i.key),i=o!=null?t.getItem(o):null;let s=e.nextKey!=null?t.getItem(e.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?t.getItem(s.nextKey):null;let l=[];if(s==null){let c=e;for(;c?.type==="item"&&(!i||c.parentKey!==i.parentKey&&i.level<c.level);){let d=r({type:"item",key:c.key,dropPosition:"after"});a.isValidElement(d)&&l.push(a.cloneElement(d,{key:`${c.key}-after`})),c=c.parentKey!=null?t.getItem(c.parentKey):null}}return l}const ra=a.createContext(ea);function na(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}const oa=new Set(["id"]),ia=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),sa=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),la=new Set(["dir","lang","hidden","inert","translate"]),no=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),aa=/^(data-.*)$/;function pt(t,e={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:s}=e,l={};for(const c in t)Object.prototype.hasOwnProperty.call(t,c)&&(oa.has(c)||r&&ia.has(c)||n&&sa.has(c)||o&&la.has(c)||i&&(no.has(c)||c.endsWith("Capture")&&no.has(c.slice(0,-7)))||s?.has(c)||aa.test(c))&&(l[c]=t[c]);return l}let Me="default",er="",ht=new WeakMap;function oo(t){if(_e()&&Pe()){if(Me==="default"){const e=Q(t);er=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Me="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";ht.set(t,t.style[e]),t.style[e]="none"}}function tr(t){if(_e()&&Pe()){if(Me!=="disabled")return;Me="restoring",setTimeout(()=>{Gn(()=>{if(Me==="restoring"){const e=Q(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=er||""),er="",Me="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&ht.has(t)){let e=ht.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),ht.delete(t)}}function io(t){return t?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let rr=new WeakMap;function ca(t){let e=t??(typeof document<"u"?document:void 0);if(!e)return io(e);if(rr.has(e))return rr.get(e);let r=e.querySelector('meta[property="csp-nonce"]'),n=r&&r instanceof le(r).HTMLMetaElement&&(r.nonce||r.content)||io(e)||void 0;return n!==void 0&&rr.set(e,n),n}const so=a.createContext({register:()=>{}});so.displayName="PressResponderContext";function bt(){let t=a.useRef(new Map),e=a.useCallback((o,i,s,l)=>{let c=l?.once?(...d)=>{t.current.delete(s),s(...d)}:s;t.current.set(s,{type:i,eventTarget:o,fn:c,options:l}),o.addEventListener(i,c,l)},[]),r=a.useCallback((o,i,s,l)=>{let c=t.current.get(s)?.fn||s;o.removeEventListener(i,c,l),t.current.delete(s)},[]),n=a.useCallback(()=>{t.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return a.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function da(t){let e=a.useContext(so);if(e){let{register:r,ref:n,...o}=e;t=oe(o,t),r()}return Xn(e,t.ref),t}class mt{#e;constructor(e,r,n,o){this.#e=!0;const s=(o?.target??n.currentTarget)?.getBoundingClientRect();let l,c=0,d,p=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,p=n.clientY),s&&(d!=null&&p!=null?(l=d-s.left,c=p-s.top):(l=s.width/2,c=s.height/2)),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const lo=Symbol("linkClicked"),ao="react-aria-pressable-style",co="data-react-aria-pressable";function uo(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:l,isPressed:c,preventFocusOnPress:d,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:u,ref:g,...b}=da(t),[v,x]=a.useState(!1),w=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:k,removeAllGlobalListeners:S}=bt(),T=a.useCallback((h,L)=>{let V=w.current;if(l||V.didFirePressStart)return!1;let $=!0;if(V.isTriggeringEvent=!0,n){let U=new mt("pressstart",L,h);n(U),$=U.shouldStopPropagation}return r&&r(!0),V.isTriggeringEvent=!1,V.didFirePressStart=!0,x(!0),$},[l,n,r]),F=a.useCallback((h,L,V=!0)=>{let $=w.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let U=!0;if(o){let m=new mt("pressend",L,h);o(m),U=m.shouldStopPropagation}if(r&&r(!1),x(!1),e&&V&&!l){let m=new mt("press",L,h);e(m),U&&=m.shouldStopPropagation}return $.isTriggeringEvent=!1,U},[l,o,r,e]),q=at(F),_=a.useCallback((h,L)=>{let V=w.current;if(l)return!1;if(i){V.isTriggeringEvent=!0;let $=new mt("pressup",L,h);return i($),V.isTriggeringEvent=!1,$.shouldStopPropagation}return!0},[l,i]),z=at(_),C=a.useCallback(h=>{let L=w.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&F(Te(L.target,h),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,S(),u||tr(L.target);for(let V of L.disposables)V();L.disposables=[]}},[u,S,F]),B=at(C);a.useEffect(()=>{l&&w.current.isPressed&&B({currentTarget:w.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let J=a.useCallback(h=>{p&&C(h)},[p,C]),Z=a.useCallback(h=>{l||s?.(h)},[l,s]),X=a.useCallback((h,L)=>{if(!l&&s){let V=new MouseEvent("click",h);wn(V,L),s(At(V))}},[l,s]),Y=a.useMemo(()=>{let h=w.current,L={onKeyDown($){if(or($.nativeEvent,$.currentTarget)&&j($.currentTarget,O($))){ho(O($),$.key)&&$.preventDefault();let U=!0;!h.isPressed&&!$.repeat&&(h.target=$.currentTarget,h.isPressed=!0,h.pointerType="keyboard",U=T($,"keyboard"));let m=$.currentTarget,y=A=>{or(A,m)&&!A.repeat&&j(m,O(A))&&h.target&&z(Te(h.target,A),"keyboard")};k(Q($.currentTarget),"keyup",Oe(y,V),!0),U&&$.stopPropagation(),$.metaKey&&ue()&&h.metaKeyEvents?.set($.key,$.nativeEvent)}else $.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick($){if(!($&&!j($.currentTarget,O($)))&&$&&$.button===0&&!h.isTriggeringEvent&&!ye.isOpening){let U=!0;if(l&&$.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||zt($.nativeEvent))){let m=T($,"virtual"),y=z($,"virtual"),A=q($,"virtual");Z($),U=m&&y&&A}else if(h.isPressed&&h.pointerType!=="keyboard"){let m=h.pointerType||$.nativeEvent.pointerType||"virtual",y=z(Te($.currentTarget,$),m),A=q(Te($.currentTarget,$),m,!0);U=y&&A,h.isOverTarget=!1,Z($),B($)}h.ignoreEmulatedMouseEvents=!1,U&&$.stopPropagation()}}},V=$=>{if(h.isPressed&&h.target&&or($,h.target)){ho(O($),$.key)&&$.preventDefault();let U=O($),m=j(h.target,U);q(Te(h.target,$),"keyboard",m),m&&X($,h.target),S(),$.key!=="Enter"&&nr(h.target)&&j(h.target,U)&&!$[lo]&&($[lo]=!0,ye(h.target,$,!1)),h.isPressed=!1,h.metaKeyEvents?.delete($.key)}else if($.key==="Meta"&&h.metaKeyEvents?.size){let U=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let m of U.values())h.target?.dispatchEvent(new KeyboardEvent("keyup",m))}};if(typeof PointerEvent<"u"){L.onPointerDown=m=>{if(m.button!==0||!j(m.currentTarget,O(m)))return;if(nl(m.nativeEvent)){h.pointerType="virtual";return}h.pointerType=m.pointerType;let y=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=m.pointerId,h.target=m.currentTarget,u||oo(h.target),y=T(m,h.pointerType);let A=O(m);"releasePointerCapture"in A&&("hasPointerCapture"in A?A.hasPointerCapture(m.pointerId)&&A.releasePointerCapture(m.pointerId):A.releasePointerCapture(m.pointerId)),k(Q(m.currentTarget),"pointerup",$,!1),k(Q(m.currentTarget),"pointercancel",U,!1)}y&&m.stopPropagation()},L.onMouseDown=m=>{if(j(m.currentTarget,O(m))&&m.button===0){if(d){let y=Sn(m.target);y&&h.disposables.push(y)}m.stopPropagation()}},L.onPointerUp=m=>{!j(m.currentTarget,O(m))||h.pointerType==="virtual"||m.button===0&&!h.isPressed&&z(m,h.pointerType||m.pointerType)},L.onPointerEnter=m=>{m.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,T(Te(h.target,m),h.pointerType))},L.onPointerLeave=m=>{m.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,q(Te(h.target,m),h.pointerType,!1),J(m))};let $=m=>{if(m.pointerId===h.activePointerId&&h.isPressed&&m.button===0&&h.target){if(j(h.target,O(m))&&h.pointerType!=null){let y=!1,A=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(y?B(m):(ge(h.target),h.target.click()))},80);k(m.currentTarget,"click",()=>y=!0,!0),h.disposables.push(()=>clearTimeout(A))}else B(m);h.isOverTarget=!1}},U=m=>{B(m)};L.onDragStart=m=>{j(m.currentTarget,O(m))&&B(m)}}else if(process.env.NODE_ENV==="test"){L.onMouseDown=m=>{if(m.button!==0||!j(m.currentTarget,O(m)))return;if(h.ignoreEmulatedMouseEvents){m.stopPropagation();return}if(h.isPressed=!0,h.isOverTarget=!0,h.target=m.currentTarget,h.pointerType=zt(m.nativeEvent)?"virtual":"mouse",Ue.flushSync(()=>T(m,h.pointerType))&&m.stopPropagation(),d){let A=Sn(m.target);A&&h.disposables.push(A)}k(Q(m.currentTarget),"mouseup",$,!1)},L.onMouseEnter=m=>{if(!j(m.currentTarget,O(m)))return;let y=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,y=T(m,h.pointerType)),y&&m.stopPropagation()},L.onMouseLeave=m=>{if(!j(m.currentTarget,O(m)))return;let y=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,y=q(m,h.pointerType,!1),J(m)),y&&m.stopPropagation()},L.onMouseUp=m=>{j(m.currentTarget,O(m))&&!h.ignoreEmulatedMouseEvents&&m.button===0&&!h.isPressed&&z(m,h.pointerType||"mouse")};let $=m=>{if(m.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&j(h.target,O(m))&&h.pointerType!=null||B(m),h.isOverTarget=!1}};L.onTouchStart=m=>{if(!j(m.currentTarget,O(m)))return;let y=ua(m.nativeEvent);if(!y)return;h.activePointerId=y.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=m.currentTarget,h.pointerType="touch",u||oo(h.target),T(Se(h.target,m),h.pointerType)&&m.stopPropagation(),k(le(m.currentTarget),"scroll",U,!0)},L.onTouchMove=m=>{if(!j(m.currentTarget,O(m)))return;if(!h.isPressed){m.stopPropagation();return}let y=fo(m.nativeEvent,h.activePointerId),A=!0;y&&po(y,m.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,A=T(Se(h.target,m),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,A=q(Se(h.target,m),h.pointerType,!1),J(Se(h.target,m))),A&&m.stopPropagation()},L.onTouchEnd=m=>{if(!j(m.currentTarget,O(m)))return;if(!h.isPressed){m.stopPropagation();return}let y=fo(m.nativeEvent,h.activePointerId),A=!0;y&&po(y,m.currentTarget)&&h.pointerType!=null?(z(Se(h.target,m),h.pointerType),A=q(Se(h.target,m),h.pointerType),X(m.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(A=q(Se(h.target,m),h.pointerType,!1)),A&&m.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!u&&tr(h.target),S()},L.onTouchCancel=m=>{j(m.currentTarget,O(m))&&(m.stopPropagation(),h.isPressed&&B(Se(h.target,m)))};let U=m=>{h.isPressed&&j(O(m),h.target)&&B({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=m=>{j(m.currentTarget,O(m))&&B(m)}}return L},[k,l,d,S,u,J,T,Z,X]);return a.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const h=Q(g.current);if(!h||!h.head||h.getElementById(ao))return;const L=h.createElement("style");L.id=ao;let V=ca(h);V&&(L.nonce=V),L.textContent=`
|
|
1
|
+
(function(G,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],a):(G=typeof globalThis<"u"?globalThis:G||self,a(G.CekatUI={},G.React$1,G.$3wX5A$reactdom))})(this,(function(G,a,Ue){"use strict";function Ro(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const f=Ro(a);function kr(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<o;e++)t[e]&&(r=kr(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function P(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=kr(t))&&(n&&(n+=" "),n+=e);return n}const Qo=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n<t.length;n++)r[n]=t[n];for(let n=0;n<e.length;n++)r[t.length+n]=e[n];return r},ei=(t,e)=>({classGroupId:t,validator:e}),Cr=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),qe="-",$r=[],ti="arbitrary..",ri=t=>{const e=oi(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return ni(s);const l=s.split(qe),c=l[0]===""&&l.length>1?1:0;return Tr(l,c,e)},getConflictingClassGroupIds:(s,l)=>{if(l){const c=n[s],d=r[s];return c?d?Qo(d,c):c:d||$r}return r[s]||$r}}},Tr=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],i=r.nextPart.get(o);if(i){const d=Tr(t,e+1,i);if(d)return d}const s=r.validators;if(s===null)return;const l=e===0?t.join(qe):t.slice(e).join(qe),c=s.length;for(let d=0;d<c;d++){const p=s[d];if(p.validator(l))return p.classGroupId}},ni=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?ti+n:void 0})(),oi=t=>{const{theme:e,classGroups:r}=t;return ii(r,e)},ii=(t,e)=>{const r=Cr();for(const n in t){const o=t[n];Et(o,r,n,e)}return r},Et=(t,e,r,n)=>{const o=t.length;for(let i=0;i<o;i++){const s=t[i];si(s,e,r,n)}},si=(t,e,r,n)=>{if(typeof t=="string"){li(t,e,r);return}if(typeof t=="function"){ai(t,e,r,n);return}ci(t,e,r,n)},li=(t,e,r)=>{const n=t===""?e:Nr(e,t);n.classGroupId=r},ai=(t,e,r,n)=>{if(di(t)){Et(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(ei(r,t))},ci=(t,e,r,n)=>{const o=Object.entries(t),i=o.length;for(let s=0;s<i;s++){const[l,c]=o[s];Et(c,Nr(e,l),r,n)}},Nr=(t,e)=>{let r=t;const n=e.split(qe),o=n.length;for(let i=0;i<o;i++){const s=n[i];let l=r.nextPart.get(s);l||(l=Cr(),r.nextPart.set(s,l)),r=l}return r},di=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,ui=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const o=(i,s)=>{r[i]=s,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(i){let s=r[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return o(i,s),s},set(i,s){i in r?r[i]=s:o(i,s)}}},St="!",Kr=":",fi=[],Pr=(t,e,r,n,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),pi=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const i=[];let s=0,l=0,c=0,d;const p=o.length;for(let x=0;x<p;x++){const w=o[x];if(s===0&&l===0){if(w===Kr){i.push(o.slice(c,x)),c=x+1;continue}if(w==="/"){d=x;continue}}w==="["?s++:w==="]"?s--:w==="("?l++:w===")"&&l--}const u=i.length===0?o:o.slice(c);let g=u,b=!1;u.endsWith(St)?(g=u.slice(0,-1),b=!0):u.startsWith(St)&&(g=u.slice(1),b=!0);const v=d&&d>c?d-c:void 0;return Pr(i,b,g,v)};if(e){const o=e+Kr,i=n;n=s=>s.startsWith(o)?i(s.slice(o.length)):Pr(fi,!1,s,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},hi=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const s=r[i],l=s[0]==="[",c=e.has(s);l||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(s)):o.push(s)}return o.length>0&&(o.sort(),n.push(...o)),n}},bi=t=>({cache:ui(t.cacheSize),parseClassName:pi(t),sortModifiers:hi(t),postfixLookupClassGroupIds:mi(t),...ri(t)}),mi=t=>{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n<r.length;n++)e[r[n]]=!0;return e},gi=/\s+/,yi=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:s}=e,l=[],c=t.trim().split(gi);let d="";for(let p=c.length-1;p>=0;p-=1){const u=c[p],{isExternal:g,modifiers:b,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:w}=r(u);if(g){d=u+(d.length>0?" "+d:d);continue}let k=!!w,S;if(k){const z=x.substring(0,w);S=n(z);const C=S&&s[S]?n(x):void 0;C&&C!==S&&(S=C,k=!1)}else S=n(x);if(!S){if(!k){d=u+(d.length>0?" "+d:d);continue}if(S=n(x),!S){d=u+(d.length>0?" "+d:d);continue}k=!1}const T=b.length===0?"":b.length===1?b[0]:i(b).join(":"),F=v?T+St:T,q=F+S;if(l.indexOf(q)>-1)continue;l.push(q);const _=o(S,k);for(let z=0;z<_.length;++z){const C=_[z];l.push(F+C)}d=u+(d.length>0?" "+d:d)}return d},xi=(...t)=>{let e=0,r,n,o="";for(;e<t.length;)(r=t[e++])&&(n=Lr(r))&&(o&&(o+=" "),o+=n);return o},Lr=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Lr(t[n]))&&(r&&(r+=" "),r+=e);return r},vi=(t,...e)=>{let r,n,o,i;const s=c=>{const d=e.reduce((p,u)=>u(p),t());return r=bi(d),n=r.cache.get,o=r.cache.set,i=l,l(c)},l=c=>{const d=n(c);if(d)return d;const p=yi(c,r);return o(c,p),p};return i=s,(...c)=>i(xi(...c))},wi=[],te=t=>{const e=r=>r[t]||wi;return e.isThemeGetter=!0,e},Ir=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ei=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Si=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ki=/\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$/,Ci=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$i=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ti=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xe=t=>Ei.test(t),H=t=>!!t&&!Number.isNaN(Number(t)),pe=t=>!!t&&Number.isInteger(Number(t)),kt=t=>t.endsWith("%")&&H(t.slice(0,-1)),me=t=>Si.test(t),Dr=()=>!0,Ni=t=>ki.test(t)&&!Ci.test(t),Ct=()=>!1,Ki=t=>$i.test(t),Pi=t=>Ti.test(t),Li=t=>!M(t)&&!D(t),Ii=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)),Mi=t=>ve(t,Br,Ct),M=t=>Ir.test(t),ke=t=>ve(t,Vr,Ni),Fr=t=>ve(t,Vi,H),Di=t=>ve(t,Hr,Dr),Fi=t=>ve(t,Wr,Ct),Ar=t=>ve(t,_r,Ct),Ai=t=>ve(t,zr,Pi),Ye=t=>ve(t,jr,Ki),D=t=>Mr.test(t),Fe=t=>Ce(t,Vr),Oi=t=>Ce(t,Wr),Or=t=>Ce(t,_r),_i=t=>Ce(t,Br),zi=t=>Ce(t,zr),Xe=t=>Ce(t,jr,!0),Bi=t=>Ce(t,Hr,!0),ve=(t,e,r)=>{const n=Ir.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Ce=(t,e,r=!1)=>{const n=Mr.exec(t);return n?n[1]?e(n[1]):r:!1},_r=t=>t==="position"||t==="percentage",zr=t=>t==="image"||t==="url",Br=t=>t==="length"||t==="size"||t==="bg-size",Vr=t=>t==="length",Vi=t=>t==="number",Wr=t=>t==="family-name",Hr=t=>t==="number"||t==="weight",jr=t=>t==="shadow",Wi=vi(()=>{const t=te("color"),e=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),i=te("leading"),s=te("breakpoint"),l=te("container"),c=te("spacing"),d=te("radius"),p=te("shadow"),u=te("inset-shadow"),g=te("text-shadow"),b=te("drop-shadow"),v=te("blur"),x=te("perspective"),w=te("aspect"),k=te("ease"),S=te("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...F(),D,M],_=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],C=()=>[D,M,c],B=()=>[xe,"full","auto",...C()],J=()=>[pe,"none","subgrid",D,M],Z=()=>["auto",{span:["full",pe,D,M]},pe,D,M],X=()=>[pe,"auto",D,M],Y=()=>["auto","min","max","fr",D,M],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...C()],$=()=>[xe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],U=()=>[xe,"screen","full","dvw","lvw","svw","min","max","fit",...C()],m=()=>[xe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],y=()=>[t,D,M],A=()=>[...F(),Or,Ar,{position:[D,M]}],ie=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",_i,Mi,{size:[D,M]}],se=()=>[kt,Fe,ke],E=()=>["","none","full",d,D,M],W=()=>["",H,Fe,ke],ne=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[H,kt,Or,Ar],wt=()=>["","none",v,D,M],K=()=>["none",H,D,M],N=()=>["none",H,D,M],re=()=>[H,D,M],R=()=>[xe,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[me],breakpoint:[me],color:[Dr],container:[me],"drop-shadow":[me],ease:["in","out","in-out"],font:[Li],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[me],shadow:[me],spacing:["px",H],text:[me],"text-shadow":[me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xe,M,D,w]}],container:["container"],"container-type":[{"@container":["","normal","size",D,M]}],"container-named":[Ii],columns:[{columns:[H,M,D,l]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:q()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],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:[pe,"auto",D,M]}],basis:[{basis:[xe,"full","auto",l,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,xe,"auto","initial","none",M]}],grow:[{grow:["",H,D,M]}],shrink:[{shrink:["",H,D,M]}],order:[{order:[pe,"first","last","none",D,M]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...U()]}],"min-inline-size":[{"min-inline":["auto",...U()]}],"max-inline-size":[{"max-inline":["none",...U()]}],"block-size":[{block:["auto",...m()]}],"min-block-size":[{"min-block":["auto",...m()]}],"max-block-size":[{"max-block":["none",...m()]}],w:[{w:[l,"screen",...$()]}],"min-w":[{"min-w":[l,"screen","none",...$()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,Fe,ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Bi,Di]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kt,M]}],"font-family":[{font:[Oi,Fi,e]}],"font-features":[{"font-features":[M]}],"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,D,M]}],"line-clamp":[{"line-clamp":[H,"none",D,Fr]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",D,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",D,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",D,ke]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[H,"auto",D,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[pe,D,M]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D,M]}],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",D,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pe,D,M],radial:["",D,M],conic:[pe,D,M]},zi,Ai]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-bs":[{"border-bs":y()}],"border-color-be":[{"border-be":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,D,M]}],"outline-w":[{outline:["",H,Fe,ke]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",p,Xe,Ye]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",u,Xe,Ye]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[H,ke]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",g,Xe,Ye]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[H,D,M]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"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":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[D,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"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":F()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",D,M]}],filter:[{filter:["","none",D,M]}],blur:[{blur:wt()}],brightness:[{brightness:[H,D,M]}],contrast:[{contrast:[H,D,M]}],"drop-shadow":[{"drop-shadow":["","none",b,Xe,Ye]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",H,D,M]}],"hue-rotate":[{"hue-rotate":[H,D,M]}],invert:[{invert:["",H,D,M]}],saturate:[{saturate:[H,D,M]}],sepia:[{sepia:["",H,D,M]}],"backdrop-filter":[{"backdrop-filter":["","none",D,M]}],"backdrop-blur":[{"backdrop-blur":wt()}],"backdrop-brightness":[{"backdrop-brightness":[H,D,M]}],"backdrop-contrast":[{"backdrop-contrast":[H,D,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,D,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,D,M]}],"backdrop-invert":[{"backdrop-invert":["",H,D,M]}],"backdrop-opacity":[{"backdrop-opacity":[H,D,M]}],"backdrop-saturate":[{"backdrop-saturate":[H,D,M]}],"backdrop-sepia":[{"backdrop-sepia":["",H,D,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",D,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",D,M]}],ease:[{ease:["linear","initial",k,D,M]}],delay:[{delay:[H,D,M]}],animate:[{animate:["none",S,D,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,D,M]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:N()}],"scale-x":[{"scale-x":N()}],"scale-y":[{"scale-y":N()}],"scale-z":[{"scale-z":N()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[D,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:R()}],"translate-x":[{"translate-x":R()}],"translate-y":[{"translate-y":R()}],"translate-z":[{"translate-z":R()}],"translate-none":["translate-none"],zoom:[{zoom:[pe,D,M]}],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"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",D,M]}],"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":y()}],"scrollbar-track-color":[{"scrollbar-track":y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",D,M]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[H,Fe,ke,Fr]}],stroke:[{stroke:["none",...y()]}],"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"]}});function $t(...t){return Wi(P(t))}const Gr=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Ur=P,I=(t,e)=>r=>{var n;if(e?.variants==null)return Ur(t,r?.class,r?.className);const{variants:o,defaultVariants:i}=e,s=Object.keys(o).map(d=>{const p=r?.[d],u=i?.[d];if(p===null)return null;const g=Gr(p)||Gr(u);return o[d][g]}),l=r&&Object.entries(r).reduce((d,p)=>{let[u,g]=p;return g===void 0||(d[u]=g),d},{}),c=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((d,p)=>{let{class:u,className:g,...b}=p;return Object.entries(b).every(v=>{let[x,w]=v;return Array.isArray(w)?w.includes({...i,...l}[x]):{...i,...l}[x]===w})?[...d,u,g]:d},[]);return Ur(t,s,c,r?.class,r?.className)},Hi=I(["inline-flex items-center justify-center font-bold","transition-colors duration-150","focus-visible:outline-none","disabled:cursor-not-allowed"],{variants:{size:{xs:"py-1 px-2 gap-1 rounded-md text-caption-sm",sm:"h-[36px] px-4 gap-1 rounded-lg text-caption-sm",md:"h-[44px] px-4 gap-2 rounded-lg text-sm",lg:"h-[52px] px-5 gap-2 rounded-[10px] text-body-sm",xl:"h-[60px] px-6 gap-2 rounded-[10px] text-body-lg","2xl":"h-[68px] px-6 gap-2 rounded-[10px] text-body-lg"},tone:{primary:"",destructive:""},iconOnly:{true:"!p-0",false:""},variant:{solid:["text-white","disabled:bg-light-100 disabled:text-light-400"],outline:["bg-white border","disabled:bg-white disabled:text-light-400 disabled:border-light-200"],ghost:["bg-transparent","disabled:text-light-400"],"outline-primary":["bg-white border border-primary-500 text-primary-500","hover:bg-primary-100 hover:border-primary-300 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400 disabled:border-light-200"],"ghost-primary":["bg-transparent text-primary-500","hover:bg-primary-50 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:text-light-400"],plain:["bg-transparent !rounded-md","disabled:text-light-400 h-auto !px-2"],"plain-black":["bg-transparent !rounded-md","disabled:text-light-400 h-auto !px-2 "]}},compoundVariants:[{tone:"primary",variant:"solid",class:["bg-primary-500","hover:bg-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"outline",class:["border-light-200 text-light-900","hover:bg-light-50","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"ghost",class:["text-light-800","hover:bg-light-50 hover:text-light-900","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain",class:["text-primary-500","hover:text-primary-800 hover:bg-transparent","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"].join(" ")},{tone:"primary",variant:"plain-black",class:["text-light-800","hover:text-light-900 hover:bg-transparent","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"].join(" ")},{tone:"destructive",variant:"solid",class:["bg-error-500 text-white","hover:bg-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-light-100"].join(" ")},{tone:"destructive",variant:"outline",class:["border-error-500 text-error-500","hover:border-error-300 hover:bg-error-100 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"ghost",class:["text-error-500","hover:bg-error-50 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400"].join(" ")},{tone:"destructive",variant:"plain",class:["text-error-500","hover:text-error-800 hover:bg-transparent","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2"].join(" ")},{size:"xs",iconOnly:!0,class:"!w-[26px] !h-[26px]"},{size:"sm",iconOnly:!0,class:"!w-[36px] !h-[36px]"},{size:"md",iconOnly:!0,class:"!w-[44px] !h-[44px]"},{size:"lg",iconOnly:!0,class:"!w-[52px] !h-[52px]"},{size:"xl",iconOnly:!0,class:"!w-[60px] !h-[60px]"},{size:"2xl",iconOnly:!0,class:"!w-[68px] !h-[68px]"}],defaultVariants:{size:"md",tone:"primary",variant:"solid",iconOnly:!1}}),qr=a.forwardRef(({children:t,className:e,tone:r,variant:n,size:o,iconOnly:i,...s},l)=>a.createElement("button",{ref:l,className:$t(Hi({tone:r,variant:n,size:o,iconOnly:i}),e),...s},t));qr.displayName="Button";const ji=({children:t})=>a.createElement("span",{className:"flex items-center"},t),Gi=({children:t})=>a.createElement("span",{className:"whitespace-nowrap"},t),Ze=qr;Ze.Icon=ji,Ze.Text=Gi;const Ui=I(["inline-flex items-center justify-center","border transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4 rounded-[4px]",md:"h-5 w-5 rounded-[6px]",lg:"h-5 w-5 rounded-[6px]"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-white border-light-200 hover:border-light-400"},{checked:!0,disabled:!1,className:"bg-primary-500 border-primary-500 text-white hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"bg-light-100 border-light-200 text-white"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),qi={sm:{width:12,height:9},md:{width:14,height:10},lg:{width:14,height:10}},Yr=f.forwardRef(({id:t,checked:e,indeterminate:r=!1,disabled:n,size:o="md",onCheckedChange:i,className:s},l)=>{const c=()=>{n||i?.(!e)},d=qi[o],p=n?"text-white/80":"text-current";return f.createElement("button",{id:t,ref:l,type:"button",role:"checkbox","aria-checked":r?"mixed":e,disabled:n,onClick:c,className:P(Ui({size:o,checked:e,disabled:n}),s)},e&&!r&&f.createElement("svg",{width:d.width,height:d.height,viewBox:"0 0 14 10",fill:"none",className:p},f.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),r&&f.createElement("span",{className:P(p,"bg-current rounded-sm",o==="sm"&&"h-0.5 w-3",(o==="md"||o==="lg")&&"h-0.5 w-4")}))});Yr.displayName="Checkbox";const Xr=f.createContext(null),Yi=({value:t,defaultValue:e,onValueChange:r,children:n,className:o})=>{const[i,s]=f.useState(e),l=t??i,c=d=>{s(d),r?.(d)};return f.createElement(Xr.Provider,{value:{value:l,onValueChange:c}},f.createElement("div",{role:"radiogroup",className:o},n))},Xi=()=>{const t=f.useContext(Xr);if(!t)throw new Error("RadioGroupItem must be used within RadioGroup");return t},Zi=I(["relative inline-flex items-center justify-center","border rounded-full transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"border-light-200 bg-white hover:border-light-400"},{checked:!0,disabled:!1,className:"border-primary-500 bg-primary-500 hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"border-light-200 bg-light-100"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),Ji=I(["rounded-full bg-white transition-all"],{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2 w-2"},checked:{true:"scale-100",false:"scale-0"}},defaultVariants:{size:"md",checked:!1}}),Zr=f.forwardRef(({id:t,value:e,disabled:r,size:n="md",className:o},i)=>{const{value:s,onValueChange:l}=Xi(),c=s===e;return f.createElement("button",{ref:i,id:t,type:"button",role:"radio","aria-checked":c,disabled:r,onClick:()=>{r||l?.(e)},className:P(Zi({size:n,checked:c,disabled:r}),o)},f.createElement("span",{className:Ji({size:n,checked:c})}))});Zr.displayName="RadioGroupItem";const Ri=I(["inline-flex items-center shrink-0 rounded-full p-[2px]","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-5 w-9",md:"h-6 w-11",lg:"h-6 w-11"},checked:{true:"justify-end",false:"justify-start"},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"},variant:{default:"",success:""}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-light-200"},{checked:!0,disabled:!1,variant:"default",className:"bg-primary-500 hover:bg-primary-800"},{checked:!0,disabled:!1,variant:"success",className:"bg-success-500 hover:bg-success-800"},{disabled:!0,className:"bg-light-100"},{variant:"default",className:"focus-visible:ring-primary-400"},{variant:"success",className:"focus-visible:ring-success-500"}],defaultVariants:{size:"md",checked:!1,disabled:!1,variant:"default"}}),Qi=I("rounded-full shrink-0 shadow-[0_1px_3px_0_rgba(16,24,40,0.10),0_1px_2px_0_rgba(16,24,40,0.06)]",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},disabled:{true:"bg-light-50",false:"bg-white"}},defaultVariants:{size:"md",disabled:!1}}),Jr=f.forwardRef(({checked:t=!1,size:e="md",variant:r="default",disabled:n,onCheckedChange:o,className:i},s)=>f.createElement("button",{ref:s,type:"button",role:"switch","aria-checked":t,disabled:n,onClick:()=>{n||o?.(!t)},className:P(Ri({size:e,checked:t,disabled:n,variant:r}),i)},f.createElement("span",{className:Qi({size:e,disabled:n})})));Jr.displayName="Toggle";const es=I(["relative rounded-lg text-caption-sm font-semibold text-white","bg-primary-900","shadow-lg","pointer-events-none","select-none"],{variants:{side:{top:"",bottom:"",left:"",right:""},hasSupportingText:{true:"p-3",false:"px-3 py-2"}},defaultVariants:{side:"top",hasSupportingText:!1}}),ts="mt-1 font-medium text-light-100",rs=I(["absolute"],{variants:{side:{top:["bottom-[-6px] left-1/2 -translate-x-1/2","border-x-8 border-x-transparent border-t-[6px] border-t-primary-900"],bottom:["top-[-6px] left-1/2 -translate-x-1/2","border-x-8 border-x-transparent border-b-[6px] border-b-primary-900"],left:["right-[-6px] top-1/2 -translate-y-1/2","border-y-8 border-y-transparent border-l-[6px] border-l-primary-900"],right:["left-[-6px] top-1/2 -translate-y-1/2","border-y-8 border-y-transparent border-r-[6px] border-r-primary-900"]}},defaultVariants:{side:"top"}}),Je=12,Re=({content:t,supportingText:e,side:r="top",open:n,defaultOpen:o=!1,disabled:i=!1,delay:s=0,className:l,children:c})=>{const[d,p]=f.useState(o),[u,g]=f.useState(null),b=n??d,v=f.useRef(null),x=f.useRef(null),w=f.useCallback(()=>{const T=v.current;if(!T)return null;const F=T.getBoundingClientRect();switch(r){case"top":return{top:F.top-Je,left:F.left+F.width/2};case"bottom":return{top:F.bottom+Je,left:F.left+F.width/2};case"left":return{top:F.top+F.height/2,left:F.left-Je};default:return{top:F.top+F.height/2,left:F.right+Je}}},[r]),k=()=>{if(i||!v.current)return;const T=()=>{g(w()),p(!0)};s>0?x.current=window.setTimeout(T,s):T()};f.useEffect(()=>{if(!b||!v.current)return;const T=()=>g(w());T();const F=new ResizeObserver(T);return F.observe(v.current),window.addEventListener("scroll",T,!0),window.addEventListener("resize",T),()=>{F.disconnect(),window.removeEventListener("scroll",T,!0),window.removeEventListener("resize",T)}},[b,w]);const S=()=>{x.current&&(clearTimeout(x.current),x.current=null),p(!1)};return f.createElement(f.Fragment,null,f.createElement("span",{ref:v,className:"inline-flex",onMouseEnter:k,onMouseLeave:S,onFocus:k,onBlur:S,tabIndex:0},c),b&&u&&Ue.createPortal(f.createElement("div",{role:"tooltip",className:"fixed z-[9999] pointer-events-none",style:{top:u.top,left:u.left,transform:r==="top"?"translate(-50%, -100%)":r==="bottom"?"translate(-50%, 0)":r==="left"?"translate(-100%, -50%)":"translate(0, -50%)"}},f.createElement("div",{className:P(es({side:r,hasSupportingText:!!e}),l)},t,e&&f.createElement("p",{className:ts},e),f.createElement("span",{className:rs({side:r})}))),document.body))};Re.displayName="Tooltip";const ns={brand:{bg:"bg-primary-50",border:"border-primary-300",text:"text-primary-700"},gray:{bg:"bg-white",border:"border-light-200",text:"text-light-800"},error:{bg:"bg-error-50",border:"border-error-200",text:"text-error-700"},warning:{bg:"bg-warning-50",border:"border-warning-200",text:"text-warning-700"},success:{bg:"bg-success-50",border:"border-success-200",text:"text-success-700"},"blue-gray":{bg:"bg-blue-gray-50",border:"border-blue-gray-200",text:"text-blue-gray-700"},"blue-light":{bg:"bg-blue-light-50",border:"border-blue-light-200",text:"text-blue-light-700"},indigo:{bg:"bg-indigo-50",border:"border-indigo-200",text:"text-indigo-700"},purple:{bg:"bg-purple-50",border:"border-purple-200",text:"text-purple-700"},blue:{bg:"bg-blue-50",border:"border-blue-200",text:"text-blue-700"},pink:{bg:"bg-pink-50",border:"border-pink-200",text:"text-pink-700"},orange:{bg:"bg-orange-50",border:"border-orange-200",text:"text-orange-700"}},os=I(["inline-flex items-center gap-1 border","font-medium transition-colors duration-150","select-none"],{variants:{size:{sm:"text-caption-sm py-[3px]",md:"text-caption-lg py-[2px]",lg:"text-caption-lg py-1"},shape:{rounded:"rounded-md",pill:"rounded-full"},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},interactive:{true:"cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{size:"sm",hasLeading:!1,className:"pl-2"},{size:"sm",hasLeading:!0,className:"pl-1"},{size:"sm",hasTrailing:!1,className:"pr-2"},{size:"sm",hasTrailing:!0,className:"pr-1"},{size:"md",hasLeading:!1,className:"pl-[9px]"},{size:"md",hasLeading:!0,className:"pl-1"},{size:"md",hasTrailing:!1,className:"pr-[9px]"},{size:"md",hasTrailing:!0,className:"pr-1"},{size:"lg",hasLeading:!1,className:"pl-2.5"},{size:"lg",hasLeading:!0,className:"pl-1.5"},{size:"lg",hasTrailing:!1,className:"pr-2.5"},{size:"lg",hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"rounded",hasLeading:!1,hasTrailing:!1,interactive:!1,disabled:!1}}),is=I(["shrink-0 rounded border bg-white transition-colors duration-150 size-3.5"],{variants:{checked:{true:"bg-primary-500 border-primary-500",false:""}},defaultVariants:{checked:!1}}),ss="shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800",ls="shrink-0 rounded-[3px] p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400",Rr=/^#([0-9a-f]{6})$/i,Qr=t=>Rr.test(t.trim()),en=(t,e)=>{const r=Rr.exec(t.trim());if(!r)return;const n=parseInt(r[1],16),o=n>>16&255,i=n>>8&255,s=n&255;return`rgba(${o}, ${i}, ${s}, ${e})`},Tt=({children:t,size:e="sm",shape:r="rounded",icon:n,checked:o,onCheckedChange:i,onClose:s,count:l,disabled:c=!1,className:d,color:p="gray",customColor:u})=>{const g=i!==void 0,b=o!==void 0||!!n,v=!!s||l!==void 0,x=ns[p],w=!!(u&&Qr(u)),k=w?{borderColor:u,backgroundColor:en(u,.12),color:u}:void 0,S=()=>{c||i?.(!o)},T=F=>{!g||c||(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),S())};return f.createElement("div",{role:g?"checkbox":void 0,"aria-checked":g?!!o:void 0,"aria-disabled":c||void 0,tabIndex:g&&!c?0:void 0,onClick:g?S:void 0,onKeyDown:T,style:k,className:P(os({size:e,shape:r,hasLeading:b,hasTrailing:v,interactive:g,disabled:c}),!w&&x.bg,!w&&x.border,!w&&x.text,d)},o!==void 0&&f.createElement("span",{className:P(is({checked:o}),!o&&!w&&x.border),style:!o&&w?{borderColor:u}:void 0},o&&f.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},f.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),n,f.createElement("span",{className:"whitespace-nowrap"},t),l!==void 0&&f.createElement("span",{className:ss},l),s&&f.createElement("button",{type:"button","aria-label":"Remove",disabled:c,onClick:F=>{F.stopPropagation(),s()},className:ls},f.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:"size-2.5"},f.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};Tt.displayName="Tag";const as={brand:{solidBg:"bg-primary-50",solidBorder:"border-primary-300",solidText:"text-primary-500",outlineBorder:"border-primary-500",outlineText:"text-primary-700"},gray:{solidBg:"bg-light-50",solidBorder:"border-light-200",solidText:"text-light-700",outlineBorder:"border-light-600",outlineText:"text-light-700"},error:{solidBg:"bg-error-50",solidBorder:"border-error-200",solidText:"text-error-700",outlineBorder:"border-error-600",outlineText:"text-error-700"},warning:{solidBg:"bg-warning-50",solidBorder:"border-warning-200",solidText:"text-warning-700",outlineBorder:"border-warning-600",outlineText:"text-warning-700"},success:{solidBg:"bg-success-50",solidBorder:"border-success-200",solidText:"text-success-700",outlineBorder:"border-success-600",outlineText:"text-success-700"},"blue-gray":{solidBg:"bg-blue-gray-50",solidBorder:"border-blue-gray-200",solidText:"text-blue-gray-700",outlineBorder:"border-blue-gray-600",outlineText:"text-blue-gray-700"},"blue-light":{solidBg:"bg-blue-light-50",solidBorder:"border-blue-light-200",solidText:"text-blue-light-700",outlineBorder:"border-blue-light-600",outlineText:"text-blue-light-700"},indigo:{solidBg:"bg-indigo-50",solidBorder:"border-indigo-200",solidText:"text-indigo-700",outlineBorder:"border-indigo-600",outlineText:"text-indigo-700"},purple:{solidBg:"bg-purple-50",solidBorder:"border-purple-200",solidText:"text-purple-700",outlineBorder:"border-purple-600",outlineText:"text-purple-700"},blue:{solidBg:"bg-blue-50",solidBorder:"border-blue-200",solidText:"text-blue-700",outlineBorder:"border-blue-600",outlineText:"text-blue-700"},pink:{solidBg:"bg-pink-50",solidBorder:"border-pink-200",solidText:"text-pink-700",outlineBorder:"border-pink-600",outlineText:"text-pink-700"},orange:{solidBg:"bg-orange-50",solidBorder:"border-orange-200",solidText:"text-orange-700",outlineBorder:"border-orange-600",outlineText:"text-orange-700"}},cs=I(["inline-flex items-center gap-1 border font-medium","transition-colors duration-150"],{variants:{size:{sm:"text-caption-sm py-0.5",md:"text-caption-lg py-0.5",lg:"text-caption-lg py-1"},shape:{pill:"rounded-full",badge:""},modern:{true:"rounded-md shadow-xs",false:""},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},iconOnly:{true:"p-[5px]",false:""},interactive:{true:"cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{shape:"badge",size:"sm",modern:!1,className:"rounded-md"},{shape:"badge",size:"md",modern:!1,className:"rounded-md"},{shape:"badge",size:"lg",modern:!1,className:"rounded-lg"},{size:"sm",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-2"},{size:"sm",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-1.5"},{size:"sm",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"sm",iconOnly:!1,hasTrailing:!1,className:"pr-2"},{size:"sm",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"md",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"md",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"md",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"md",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"lg",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-3"},{size:"lg",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"lg",iconOnly:!1,hasLeading:!0,className:"pl-1.5"},{size:"lg",shape:"pill",iconOnly:!1,hasTrailing:!1,className:"pr-3"},{size:"lg",shape:"badge",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"lg",iconOnly:!1,hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"pill",modern:!1,hasLeading:!1,hasTrailing:!1,iconOnly:!1,interactive:!1,disabled:!1}}),ds="size-4 shrink-0 rounded border bg-white",us="shrink-0 rounded p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400",tn=({children:t,size:e="sm",shape:r="pill",variant:n="solid",color:o="brand",customColor:i,modern:s=!1,icon:l,trailingIcon:c,checked:d,onCheckedChange:p,onClose:u,iconOnly:g=!1,disabled:b=!1,className:v})=>{const x=p!==void 0,w=d!==void 0||!!l,k=!!u||!!c,S=as[o],T=!!(i&&Qr(i)),F=T?{borderColor:i,color:i,backgroundColor:n==="outline"?"transparent":en(i,.1)}:void 0,q=()=>{b||p?.(!d)},_=z=>{!x||b||(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),q())};return f.createElement("div",{role:x?"checkbox":void 0,"aria-checked":x?!!d:void 0,"aria-disabled":b||void 0,tabIndex:x&&!b?0:void 0,onClick:x?q:void 0,onKeyDown:_,style:F,className:P(cs({size:e,shape:r,modern:s,hasLeading:w,hasTrailing:k,iconOnly:g,interactive:x,disabled:b}),!T&&(n==="outline"?P("bg-transparent",S.outlineBorder,S.outlineText):P(S.solidBg,S.solidBorder,S.solidText)),v)},d!==void 0&&f.createElement("span",{className:P(ds,d?"bg-primary-500 border-primary-500":!T&&S.solidBorder),style:!d&&T?{borderColor:i}:void 0},d&&f.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},f.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),l,!g&&f.createElement("span",{className:"whitespace-nowrap"},t),c,u&&f.createElement("button",{type:"button","aria-label":"Remove",disabled:b,onClick:z=>{z.stopPropagation(),u()},className:us},f.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:"size-2.5"},f.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};tn.displayName="Badge";const fs={brand:{bg50:"bg-primary-50",hoverBg100:"hover:bg-primary-100",border200:"border-primary-200",border500:"border-primary-500",text500:"text-primary-500"},gray:{bg50:"bg-light-50",hoverBg100:"hover:bg-light-100",border200:"border-light-200",border500:"border-light-500",text500:"text-light-500"},error:{bg50:"bg-error-50",hoverBg100:"hover:bg-error-100",border200:"border-error-200",border500:"border-error-500",text500:"text-error-500"},warning:{bg50:"bg-warning-50",hoverBg100:"hover:bg-warning-100",border200:"border-warning-200",border500:"border-warning-500",text500:"text-warning-500"},success:{bg50:"bg-success-50",hoverBg100:"hover:bg-success-100",border200:"border-success-200",border500:"border-success-500",text500:"text-success-500"}},ps={md:{outerPad:{leading:"pl-1 pr-2.5 py-1",trailing:"pl-3 pr-1 py-1"},gap:"gap-2",chipPad:"px-2 py-0.5",text:"text-caption-lg"},lg:{outerPad:{leading:"pl-1.5 pr-3 py-1.5",trailing:"pl-3 pr-1.5 py-1.5"},gap:"gap-2",chipPad:"px-2.5 py-[3px]",text:"text-body-sm"}},rn=({badgeLabel:t,children:e,size:r="md",theme:n="light",color:o="brand",badgePosition:i="leading",icon:s,onClick:l,className:c})=>{const d=fs[o],p=ps[r],u=n==="modern",g=n==="outline",b=P("inline-flex items-center border transition-colors duration-150",p.gap,p.outerPad[i],u?"rounded-lg bg-light-50 border-light-200 shadow-xs":g?P("rounded-full bg-white border-[1.5px]",d.border500):P("rounded-full",d.bg50,d.border200,d.hoverBg100),l&&"cursor-pointer",c),v=P("inline-flex shrink-0 items-center gap-1 border font-medium whitespace-nowrap",p.chipPad,p.text,u?"rounded-md bg-white border-light-200 text-light-800":g?P("rounded-full bg-white border-[1.5px]",d.border500,d.text500):P("rounded-full bg-white",d.border200,d.text500)),x=P("inline-flex items-center gap-1 font-medium",p.text,u?"text-light-800":d.text500),w=f.createElement("span",{className:v},u&&f.createElement("span",{className:"size-2 shrink-0 rounded-full bg-light-400"}),t);return f.createElement("div",{role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l,className:b},i==="leading"&&w,f.createElement("span",{className:x},e,s),i==="trailing"&&w)};rn.displayName="BadgeGroup";const hs=({size:t})=>{const e=t*.09,r=(t-e)/2,n=2*Math.PI*r;return f.createElement("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,fill:"none",className:"animate-spin"},f.createElement("circle",{cx:t/2,cy:t/2,r,strokeWidth:e,className:"stroke-light-100"}),f.createElement("circle",{cx:t/2,cy:t/2,r,strokeWidth:e,strokeLinecap:"round",strokeDasharray:`${n*.25} ${n}`,className:"stroke-primary-600"}))},bs=({size:t})=>{const e=f.useId(),r=t*.125,n=(t-r)/2,o=2*Math.PI*n;return f.createElement("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,fill:"none",className:"animate-spin text-primary-600"},f.createElement("defs",null,f.createElement("linearGradient",{id:e,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},f.createElement("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),f.createElement("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0"}))),f.createElement("circle",{cx:t/2,cy:t/2,r:n,strokeWidth:r,className:"stroke-light-100"}),f.createElement("circle",{cx:t/2,cy:t/2,r:n,strokeWidth:r,strokeLinecap:"round",stroke:`url(#${e})`,strokeDasharray:`${o*.75} ${o}`}))},ms=({size:t})=>{const r=Math.max(t*.1,3),n=(t-r)/2;return f.createElement("div",{className:"relative animate-spin",style:{width:t,height:t}},Array.from({length:12}).map((o,i)=>{const s=30*i,l=.15+.85*i/11;return f.createElement("span",{key:i,className:"absolute rounded-full bg-primary-600 top-1/2 left-1/2",style:{width:r,height:r,opacity:l,marginTop:-r/2,marginLeft:-r/2,transform:`rotate(${s}deg) translate(${n}px) rotate(${-s}deg)`}})}))},gs={sm:{box:32,gapClass:"gap-4",textClass:"text-caption-lg"},md:{box:48,gapClass:"gap-4",textClass:"text-caption-lg"},lg:{box:56,gapClass:"gap-4",textClass:"text-body-lg"},xl:{box:64,gapClass:"gap-5",textClass:"text-body-lg"}},nn=({size:t="sm",style:e="line-simple",supportingText:r=!0,label:n="Loading...",className:o})=>{const{box:i,gapClass:s,textClass:l}=gs[t];return f.createElement("div",{role:"status","aria-label":typeof n=="string"?n:"Loading",className:P("inline-flex flex-col items-center",s,o)},e==="line-simple"&&f.createElement(hs,{size:i}),e==="line-spinner"&&f.createElement(bs,{size:i}),e==="dot-circle"&&f.createElement(ms,{size:i}),r&&f.createElement("p",{className:P("font-medium text-light-700 whitespace-nowrap",l)},n))};nn.displayName="Loading";const on=({className:t,style:e})=>f.createElement("svg",{viewBox:"0 0 24 24",fill:"none",className:t,style:e},f.createElement("path",{d:"M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z",stroke:"currentColor",strokeWidth:"1.75"}),f.createElement("path",{d:"M3.75 20.25a8.25 8.25 0 0 1 16.5 0",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})),sn=({className:t})=>f.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},f.createElement("circle",{cx:"10",cy:"10",r:"9",className:"fill-primary-500 stroke-white",strokeWidth:"1.5"}),f.createElement("path",{d:"M6 10.2 8.6 12.8 14 7",stroke:"white",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})),ys={xs:{box:24,borderWidth:"0.5px",statusSize:6,badgeSize:10,textClass:"text-caption-sm"},sm:{box:32,borderWidth:"0.5px",statusSize:8,badgeSize:12,textClass:"text-caption-lg"},md:{box:40,borderWidth:"0.75px",statusSize:10,badgeSize:14,textClass:"text-body-sm"},lg:{box:48,borderWidth:"0.75px",statusSize:12,badgeSize:16,textClass:"text-body-lg"},xl:{box:56,borderWidth:"0.75px",statusSize:14,badgeSize:18,textClass:"text-h6"},"2xl":{box:64,borderWidth:"0.75px",statusSize:16,badgeSize:20,textClass:"text-h5 leading-7"}},xs="#17B26A",Ae=({src:t,alt:e,initials:r,size:n="md",status:o="none",statusIcon:i,contrastBorder:s=!0,className:l})=>{const{box:c,borderWidth:d,statusSize:p,badgeSize:u,textClass:g}=ys[n],b=t?"image":r!==void 0?"initials":"placeholder";return f.createElement("div",{className:P("relative inline-block shrink-0 rounded-full",l),style:{width:c,height:c}},b==="image"&&f.createElement("img",{src:t,alt:e??"",className:"absolute inset-0 size-full rounded-full object-cover"}),b==="placeholder"&&f.createElement("div",{className:"absolute inset-0 flex items-center justify-center rounded-full bg-light-50"},f.createElement(on,{className:"text-light-300",style:{width:c*.55,height:c*.55}})),b==="initials"&&f.createElement("div",{className:P("absolute inset-0 flex items-center justify-center rounded-full bg-light-50 font-semibold text-light-500",g)},r),s&&f.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:d,borderStyle:"solid"}}),o==="online"&&f.createElement("span",{className:"absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",style:{width:p,height:p,backgroundColor:xs}}),o==="company"&&f.createElement("div",{className:"absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",style:{width:u,height:u}},i),o==="verified"&&f.createElement("div",{className:"absolute bottom-0 right-0",style:{width:u,height:u}},f.createElement(sn,{className:"size-full"})))};Ae.displayName="Avatar";const ln=[{bg:"bg-primary-100",text:"text-primary-600"},{bg:"bg-secondary-100",text:"text-secondary-600"},{bg:"bg-purple-100",text:"text-purple-600"},{bg:"bg-pink-100",text:"text-pink-600"},{bg:"bg-orange-100",text:"text-orange-600"},{bg:"bg-teal-100",text:"text-teal-600"},{bg:"bg-indigo-100",text:"text-indigo-600"},{bg:"bg-rose-100",text:"text-rose-600"}],vs=t=>{let e=0;for(let n=0;n<t.length;n+=1)e=e*31+t.charCodeAt(n)|0;const r=Math.abs(e)%ln.length;return ln[r]},ws={xs:{box:24,overlap:-4,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-sm"},sm:{box:32,overlap:-8,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-lg"},md:{box:40,overlap:-12,contrastBorderWidth:"0.75px",plusIconSize:20,textClass:"text-body-sm"}},an=({avatars:t,max:e,size:r="xs",onAdd:n,className:o})=>{const{box:i,overlap:s,contrastBorderWidth:l,textClass:c}=ws[r],d=e?t.slice(0,e):t,p=e&&t.length>e?t.length-e:0;return f.createElement("div",{className:P("inline-flex items-start gap-2",o)},f.createElement("div",{className:"flex items-start"},d.map((u,g)=>{const b=g<d.length-1||p>0;return f.createElement(Re,{key:g,content:u.label,disabled:!u.label,side:"top"},f.createElement("div",{className:"relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",style:{width:i,height:i,marginRight:b?s:0}},u.src?f.createElement("img",{src:u.src,alt:u.alt??"",className:"size-full object-cover"}):(()=>{const{bg:v,text:x}=vs(String(u.label??u.alt??u.initials??g));return f.createElement("div",{className:P("flex size-full items-center justify-center font-semibold",v,x,c)},u.initials)})(),f.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:l,borderStyle:"solid"}})))}),p>0&&f.createElement(Re,{content:t.slice(e).map((u,g)=>f.createElement("div",{key:g},u.label)),disabled:!t.slice(e).some(u=>u.label),side:"top"},f.createElement("div",{className:"relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",style:{width:i,height:i}},f.createElement("span",{className:P("font-semibold text-light-600",c)},"+",p)))),n&&f.createElement("button",{type:"button",onClick:n,"aria-label":"Add",className:"flex shrink-0 items-center justify-center rounded-full border border-dashed border-light-300 bg-white text-light-500 hover:bg-light-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",style:{width:i,height:i}},f.createElement("svg",{width:i*.4,height:i*.4,viewBox:"0 0 20 20",fill:"none"},f.createElement("path",{d:"M10 4v12M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}))))};an.displayName="AvatarGroup";const Es={xs:{nameClass:"text-caption-sm",subtitleClass:"text-caption-sm"},sm:{nameClass:"text-caption-lg",subtitleClass:"text-caption-sm"},md:{nameClass:"text-caption-lg",subtitleClass:"text-caption-lg"},lg:{nameClass:"text-body-sm",subtitleClass:"text-body-sm"},xl:{nameClass:"text-body-lg",subtitleClass:"text-body-sm"}},cn=({name:t,subtitle:e,src:r,initials:n,size:o="xs",status:i="none",statusIcon:s,className:l})=>{const{nameClass:c,subtitleClass:d}=Es[o];return f.createElement("div",{className:P("inline-flex items-center gap-2",l)},f.createElement(Ae,{src:r,initials:n,size:o,status:i,statusIcon:s}),f.createElement("div",{className:"flex flex-col items-start whitespace-nowrap"},f.createElement("span",{className:P("font-bold text-light-800",c)},t),e&&f.createElement("span",{className:P("font-normal text-light-700",d)},e)))};cn.displayName="AvatarLabelGroup";const Ss={sm:{box:72,ringWidth:3,shadowClass:"shadow-md",iconSize:36,textClass:"text-h4",verifiedSize:20,verifiedOffset:0},md:{box:96,ringWidth:4,shadowClass:"shadow-lg",iconSize:48,textClass:"text-h3",verifiedSize:24,verifiedOffset:0},lg:{box:160,ringWidth:4,shadowClass:"shadow-lg",iconSize:80,textClass:"text-h1",verifiedSize:32,verifiedOffset:4}},dn=({src:t,alt:e,initials:r,size:n="sm",verified:o=!0,contrastBorder:i=!0,className:s})=>{const{box:l,ringWidth:c,shadowClass:d,iconSize:p,textClass:u,verifiedSize:g,verifiedOffset:b}=Ss[n],v=t?"image":r!==void 0?"initials":"placeholder";return f.createElement("div",{className:P("relative rounded-full",s),style:{width:l,height:l}},f.createElement("div",{className:P("absolute inset-0 overflow-hidden rounded-full border-white",d,v!=="image"&&"bg-light-100"),style:{borderWidth:c,borderStyle:"solid"}},v==="image"&&f.createElement("img",{src:t,alt:e??"",className:"absolute inset-0 size-full rounded-full object-cover"}),i&&f.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]"}),v==="placeholder"&&f.createElement("div",{className:"absolute inset-0 flex items-center justify-center"},f.createElement(on,{className:"text-light-300",style:{width:p,height:p}})),v==="initials"&&f.createElement("div",{className:P("absolute inset-0 flex items-center justify-center font-semibold text-light-500",u)},r)),o&&f.createElement("div",{className:"absolute",style:{width:g,height:g,bottom:b,right:b}},f.createElement(sn,{className:"size-full"})))};dn.displayName="AvatarProfilePhoto";function Oe(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const we=typeof document<"u"?a.useLayoutEffect:()=>{},Qe={prefix:String(Math.round(Math.random()*1e10)),current:0},un=a.createContext(Qe),ks=a.createContext(!1);let Cs=!!(typeof window<"u"&&window.document&&window.document.createElement),Nt=new WeakMap;function $s(t=!1){let e=a.useContext(un),r=a.useRef(null);if(r.current===null&&!t){let n=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(n){let o=Nt.get(n);o==null?Nt.set(n,{id:e.current,state:n.memoizedState}):n.memoizedState!==o.state&&(e.current=o.id,Nt.delete(n))}r.current=++e.current}return r.current}function Ts(t){let e=a.useContext(un);e===Qe&&!Cs&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=$s(!!t),n=e===Qe&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function Ns(t){let e=a.useId(),[r]=a.useState(et()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Qe.prefix}`;return t||`${n}-${e}`}const Ks=typeof a.useId=="function"?Ns:Ts;function Ps(){return!1}function Ls(){return!0}function Is(t){return()=>{}}function et(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Is,Ps,Ls):a.useContext(ks)}let Ms=!!(typeof window<"u"&&window.document&&window.document.createElement),Ne=new Map,Ke;typeof FinalizationRegistry<"u"&&(Ke=new FinalizationRegistry(t=>{Ne.delete(t)}));let Kt=new WeakMap;function tt(t){let[e,r]=a.useState(t),n=a.useRef(null),o=Ks(e),i=a.useRef(null),s=Kt.get(i);if(Ke&&s!==o&&(s!=null&&Ke.unregister(i),Ke.register(i,o,i),Kt.set(i,o)),Ms){const l=Ne.get(o);l&&!l.includes(n)?l.push(n):Ne.set(o,[n])}return we(()=>{let l=o;return()=>{Ke&&(Ke.unregister(i),Kt.delete(i)),Ne.delete(l)}},[o]),a.useEffect(()=>{let l=n.current;return l&&r(l),()=>{l&&(n.current=null)}}),o}function Ds(t,e){if(t===e)return t;let r=Ne.get(t);if(r)return r.forEach(o=>o.current=e),e;let n=Ne.get(e);return n?(n.forEach(o=>o.current=t),t):e}function Pt(...t){return t.length===1&&t[0]?t[0]:e=>{let r=!1;const n=t.map(o=>{const i=fn(o,e);return r||=typeof i=="function",i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():fn(t[i],null)})}}}function fn(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function oe(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let o in n){let i=e[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?e[o]=Oe(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?e[o]=P(i,s):o==="id"&&i&&s?e.id=Ds(i,s):o==="ref"&&i&&s?e.ref=Pt(i,s):e[o]=s!==void 0?s:i}}return e}function Lt(t){const e=a.useRef(null),r=a.useRef(void 0),n=a.useCallback(o=>{if(typeof t=="function"){const i=t,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(t)return t.current=o,()=>{t.current=null}},[t]);return a.useMemo(()=>({get current(){return e.current},set current(o){e.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}const Fs=Symbol("default");function As({values:t,children:e}){for(let[r,n]of t)e=a.createElement(r.Provider,{value:n},e);return e}function It(t){let{className:e,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:s,values:l,render:c}=t;return a.useMemo(()=>{let d,p,u;return typeof e=="function"?d=e({...l,defaultClassName:o}):d=e,typeof r=="function"?p=r({...l,defaultStyle:s||{}}):p=r,typeof n=="function"?u=n({...l,defaultChildren:i}):n==null?u=i:u=n,{className:d??o,style:p||s?{...s,...p}:void 0,children:u??i,"data-rac":"",render:c?g=>c(g,l):void 0}},[e,r,n,o,i,s,l,c])}function pn(t,e){let r=a.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||Fs;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`)),i=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function Os(t,e,r){let n=pn(r,t.slot)||{},{ref:o,...i}=n,s=Lt(a.useMemo(()=>Pt(e,o),[e,o])),l=oe(i,t);return"style"in i&&i.style&&"style"in t&&t.style&&(typeof i.style=="function"||typeof t.style=="function"?l.style=c=>{let d=typeof i.style=="function"?i.style(c):i.style,p={...c.defaultStyle,...d},u=typeof t.style=="function"?t.style({...c,defaultStyle:p}):t.style;return{...p,...u}}:l.style={...i.style,...t.style}),[l,s]}function _s(t,e,r){let{render:n,...o}=e,i=a.useRef(null),s=a.useMemo(()=>Pt(r,i),[r,i]);we(()=>{process.env.NODE_ENV!=="production"&&n&&(i.current?i.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${i.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,n]);let l={...o,ref:s};return n?n(l,void 0):a.createElement(t,l)}const hn={},rt=new Proxy({},{get(t,e){if(typeof e!="string")return;let r=hn[e];return r||(r=a.forwardRef(_s.bind(null,e)),hn[e]=r),r}}),zs="react-aria-clear-focus",Bs="react-aria-focus",Q=t=>Vs(t)?t.document:Ws(t)?t:t?.ownerDocument??(typeof document<"u"?document:void 0),le=t=>Q(t)?.defaultView??(typeof window<"u"?window:void 0);function bn(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Vs(t){return typeof t=="object"&&t!=null&&"window"in t&&t.window===t}function Ws(t){return bn(t)&&t.nodeType===9}function Hs(t){return bn(t)&&t.nodeType===11&&"host"in t}let js=!1;function nt(){return js}function j(t,e){if(!nt())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;typeof r.assignedElements!="function"&&r.assignedSlot?.parentNode?r=r.assignedSlot.parentNode:Hs(r)?r=r.host:r=r.parentNode}return!1}const ce=(t=document)=>{if(!nt())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&e.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e};function O(t){if(nt()&&t.target instanceof Element&&t.target.shadowRoot){if("composedPath"in t)return t.composedPath()[0]??null;if("composedPath"in t.nativeEvent)return t.nativeEvent.composedPath()[0]??null}return t.target}function mn(t){if(!t)return!1;let e=t.getRootNode(),r=le(t);if(!(e instanceof r.Document||e instanceof r.ShadowRoot))return!1;let n=e.activeElement;return n!=null&&t.contains(n)}function gn(t){let e=Us(Q(t));e!==t&&(e&&Gs(e,t),t&&yn(t,e))}function Gs(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function yn(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Us(t){let e=ce(t),r=e?.getAttribute("aria-activedescendant");return r&&t.getElementById(r)||e}function ge(t){if(qs())t.focus({preventScroll:!0});else{let e=Ys(t);t.focus(),Xs(e)}}let ot=null;function qs(){if(ot==null){ot=!1;try{document.createElement("div").focus({get preventScroll(){return ot=!0,!0}})}catch{}}return ot}function Ys(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Xs(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}const Zs=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Js(t){const e=le(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=le(t);let{display:s,visibility:l}=i(t);o=s!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function Rs(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Mt(t,e){return Zs?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&Js(t)&&Rs(t,e)&&(!t.parentElement||Mt(t.parentElement,t))}const Dt=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Qs=Dt.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Dt.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const el=Dt.join(':not([hidden]):not([tabindex="-1"]),');function xn(t,e){return t.matches(Qs)&&!vn(t)&&(e?.skipVisibilityCheck||Mt(t))}function Ft(t){return t.matches(el)&&Mt(t)&&!vn(t)}function vn(t){let e=t;for(;e!=null;){if(e instanceof le(e).HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function At(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function wn(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function En(t){let e=a.useRef({isFocused:!1,observer:null});return we(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),a.useCallback(r=>{let n=O(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){e.current.isFocused=!0;let o=n,i=s=>{if(e.current.isFocused=!1,o.disabled){let l=At(s);t?.(l)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){e.current.observer?.disconnect();let s=o===ce()?null:ce();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let it=!1;function Sn(t){for(;t&&!xn(t,{skipVisibilityCheck:!0});)t=t.parentElement;let e=le(t),r=e.document.activeElement;if(!r||r===t)return;it=!0;let n=!1,o=p=>{(O(p)===r||n)&&p.stopImmediatePropagation()},i=p=>{(O(p)===r||n)&&(p.stopImmediatePropagation(),!t&&!n&&(n=!0,ge(r),c()))},s=p=>{(O(p)===t||n)&&p.stopImmediatePropagation()},l=p=>{(O(p)===t||n)&&(p.stopImmediatePropagation(),n||(n=!0,ge(r),c()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",i,!0),e.addEventListener("focusin",l,!0),e.addEventListener("focus",s,!0);let c=()=>{cancelAnimationFrame(d),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",i,!0),e.removeEventListener("focusin",l,!0),e.removeEventListener("focus",s,!0),it=!1,n=!1},d=requestAnimationFrame(c);return c}function st(t){if(typeof window>"u"||window.navigator==null)return!1;let e=window.navigator.userAgentData?.brands;return Array.isArray(e)&&e.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function Ot(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function he(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const ue=he(function(){return Ot(/^Mac/i)}),tl=he(function(){return Ot(/^iPhone/i)}),kn=he(function(){return Ot(/^iPad/i)||ue()&&navigator.maxTouchPoints>1}),_e=he(function(){return tl()||kn()}),rl=he(function(){return ue()||_e()}),Pe=he(function(){return st(/AppleWebKit/i)&&(_e()||!Cn())});he(function(){return Pe()&&!Cn()&&!$n()});const Cn=he(function(){return st(/Chrome|CriOS|CrMo/i)}),_t=he(function(){return st(/Android/i)}),$n=he(function(){return st(/(Firefox|FxiOS)/i)});function zt(t){return t.pointerType===""&&t.isTrusted?!0:_t()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function nl(t){return!_t()&&t.width===0&&t.height===0||_t()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}const ol=a.createContext({isNative:!0,open:sl,useHref:t=>t});function Bt(){return a.useContext(ol)}function ye(t,e,r=!0){let{metaKey:n,ctrlKey:o,altKey:i,shiftKey:s}=e;!Pe()&&$n()&&window.event?.type?.startsWith("key")&&t.target==="_blank"&&(ue()?n=!0:o=!0);let l=Pe()&&ue()&&!kn()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:o,altKey:i,shiftKey:s}):new MouseEvent("click",{metaKey:n,ctrlKey:o,altKey:i,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});ye.isOpening=r,ge(t),t.dispatchEvent(l),ye.isOpening=!1}ye.isOpening=!1;function il(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function sl(t,e){il(t,r=>ye(r,e))}function ll(t){const r=Bt().useHref(t?.href??"");let n={};if(t)for(let o of["href","target","rel","download","ping","referrerPolicy"])o in t&&t[o]!==void 0&&(n[o]=o==="href"?r:t[o]);return n}let Le=null;const Vt=new Set;let ze=new Map,$e=!1,Wt=!1;const al={Tab:!0,Escape:!0};function Ht(t,e){for(let r of Vt)r(t,e)}function cl(t){return!(t.metaKey||!ue()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function lt(t){$e=!0,!ye.isOpening&&cl(t)&&(Le="keyboard",Ht("keyboard",t))}function de(t){Le="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&($e=!0,Ht("pointer",t))}function Tn(t){!ye.isOpening&&zt(t)&&($e=!0,Le="virtual")}function Nn(t){let e=le(O(t)),r=Q(O(t));O(t)===e||O(t)===r||it||!t.isTrusted||(!$e&&!Wt&&(Le="virtual",Ht("virtual",t)),$e=!1,Wt=!1)}function Kn(){it||($e=!1,Wt=!0)}function jt(t){if(typeof window>"u"||typeof document>"u")return;const e=le(t),r=Q(t);if(ze.get(e))return;let n=e.HTMLElement.prototype.focus;Reflect.defineProperty(e.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){$e=!0,n.apply(this,arguments)}}),r.addEventListener("keydown",lt,!0),r.addEventListener("keyup",lt,!0),r.addEventListener("click",Tn,!0),e.addEventListener("focus",Nn,!0),e.addEventListener("blur",Kn,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",de,!0),r.addEventListener("pointermove",de,!0),r.addEventListener("pointerup",de,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",de,!0),r.addEventListener("mousemove",de,!0),r.addEventListener("mouseup",de,!0)),e.addEventListener("beforeunload",()=>{Pn(t)},{once:!0}),ze.set(e,{focus:n})}const Pn=(t,e)=>{const r=le(t),n=Q(t);e&&n.removeEventListener("DOMContentLoaded",e),ze.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:ze.get(r).focus}),n.removeEventListener("keydown",lt,!0),n.removeEventListener("keyup",lt,!0),n.removeEventListener("click",Tn,!0),r.removeEventListener("focus",Nn,!0),r.removeEventListener("blur",Kn,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",de,!0),n.removeEventListener("pointermove",de,!0),n.removeEventListener("pointerup",de,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",de,!0),n.removeEventListener("mousemove",de,!0),n.removeEventListener("mouseup",de,!0)),ze.delete(r))};function dl(t){const e=Q(t);let r;return e.readyState!=="loading"?jt(t):(r=()=>{jt(t)},e.addEventListener("DOMContentLoaded",r)),()=>Pn(t,r)}typeof document<"u"&&dl();function Gt(){return Le!=="pointer"}function Ut(){return Le}const ul=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fl(t,e,r){let n=r?O(r):void 0,o=Q(n),i=le(n);const s=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,l=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,c=typeof i<"u"?i.HTMLElement:HTMLElement,d=typeof i<"u"?i.KeyboardEvent:KeyboardEvent;let p=ce(o);return t=t||p instanceof s&&!ul.has(p.type)||p instanceof l||p instanceof c&&p.isContentEditable,!(t&&e==="keyboard"&&r instanceof d&&!al[r.key])}function pl(t,e,r){jt(),a.useEffect(()=>{if(r?.enabled===!1)return;let n=(o,i)=>{fl(!!r?.isTextInput,o,i)&&t(Gt())};return Vt.add(n),()=>{Vt.delete(n)}},e)}function Be(t){return ue()?t.metaKey:t.ctrlKey}const hl=a.useInsertionEffect??we;function at(t){const e=a.useRef(null);return hl(()=>{e.current=t},[t]),a.useCallback((...r)=>{const n=e.current;return n?.(...r)},[])}function ct(t,e,r,n){let o=at(r),i=r==null;a.useEffect(()=>{if(i||!t.current)return;let s=t.current;return s.addEventListener(e,o,n),()=>{s.removeEventListener(e,o,n)}},[t,e,n,i])}function bl(t,e){let{id:r,"aria-label":n,"aria-labelledby":o}=t;return r=tt(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":o}}const ml=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),gl=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function yl(t){if(Intl.Locale){let r=new Intl.Locale(t).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return ml.has(r.script)}let e=t.split("-")[0];return gl.has(e)}const Ln=Symbol.for("react-aria.i18n.locale");function In(){let t=typeof window<"u"&&window[Ln]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:yl(t)?"rtl":"ltr"}}let qt=In(),Ve=new Set;function Mn(){qt=In();for(let t of Ve)t(qt)}function xl(){let t=et(),[e,r]=a.useState(qt);return a.useEffect(()=>(Ve.size===0&&window.addEventListener("languagechange",Mn),Ve.add(r),()=>{Ve.delete(r),Ve.size===0&&window.removeEventListener("languagechange",Mn)}),[]),t?{locale:typeof window<"u"&&window[Ln]||"en-US",direction:"ltr"}:e}const vl=a.createContext(null);function Dn(){let t=xl();return a.useContext(vl)||t}const wl=typeof document<"u"?a.useInsertionEffect??a.useLayoutEffect:()=>{};function Fn(t,e,r){let[n,o]=a.useState(t||e),i=a.useRef(n),s=a.useRef(t!==void 0),l=t!==void 0;a.useEffect(()=>{let u=s.current;u!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),s.current=l},[l]);let c=l?t:n;wl(()=>{i.current=c});let[,d]=a.useReducer(()=>({}),{}),p=a.useCallback((u,...g)=>{let b=typeof u=="function"?u(i.current):u;Object.is(i.current,b)||(i.current=b,o(b),d(),r?.(b,...g))},[r]);return[c,p]}class We{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,r,n){let o=this.clone();return r.addDescendants(o,e),o}}class An extends We{filter(e,r,n){let[o,i]=Vn(e,r,this.firstChildKey,n),s=this.clone();return s.firstChildKey=o,s.lastChildKey=i,s}}const xr=class xr extends We{};xr.type="header";let On=xr;const vr=class vr extends We{};vr.type="loader";let _n=vr;const wr=class wr extends An{filter(e,r,n){if(n(this.textValue,this)){let o=this.clone();return r.addDescendants(o,e),o}return null}};wr.type="item";let zn=wr;const Er=class Er extends An{filter(e,r,n){let o=super.filter(e,r,n);if(o&&o.lastChildKey!==null){let i=e.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}};Er.type="section";let Bn=Er;class El{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),o=n?.firstChildKey!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);return r?.key??null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r.itemCount=this.itemCount,r}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,r){this.addNode(e);let n=r.getChildren(e.key);for(let o of n)this.addDescendants(o,r)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let r=this.keyMap.get(e);r!=null&&r.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}filter(e){let r=new this.constructor,[n,o]=Vn(this,r,this.firstKey,e);return r?.commit(n,o),r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Vn(t,e,r,n){if(r==null)return[null,null];let o=null,i=null,s=t.getItem(r);for(;s!=null;){let l=s.filter(t,e,n);l!=null&&(l.nextKey=null,i&&(l.prevKey=i.key,i.nextKey=l.key),o==null&&(o=l),e.addNode(l),i=l),s=s.nextKey!=null?t.getItem(s.nextKey):null}if(i&&i.type==="separator"){let l=i.prevKey;e.removeNode(i.key),l!=null?(i=e.getItem(l),i.nextKey=null):i=null}return[o?.key??null,i?.key??null]}class Wn{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index-1,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}}class Ie extends Wn{constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Ie?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let e=this.nextVisibleSibling,r=this.getMutableNode();if(r!=null&&(r.index=this.index,r.level=this.level,r.parentKey=this.parentNode instanceof Ie?this.parentNode.node?.key??null:null,r.prevKey=this.previousVisibleSibling?.node?.key??null,r.nextKey=e?.node?.key??null,r.hasChildNodes=!!this.firstChild,r.firstChildKey=this.firstVisibleChild?.node?.key??null,r.lastChildKey=this.lastVisibleChild?.node?.key??null,(r.colSpan!=null||r.colIndex!=null)&&e)){let n=(r.colIndex??r.index)+(r.colSpan??1);if(e.node!=null&&n!==e.node.colIndex){let o=e.getMutableNode();o.colIndex=n}}}setProps(e,r,n,o,i){let s,{value:l,textValue:c,id:d,...p}=e;if(this.node==null?(s=new n(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=s):s=this.getMutableNode(),p.ref=r,s.props=p,s.rendered=o,s.render=i,s.value=l,e["aria-label"]&&(s["aria-label"]=e["aria-label"]),s.textValue=c||(typeof p.children=="string"?p.children:"")||e["aria-label"]||"",d!=null&&d!==s.key)throw new Error("Cannot change the id of an item");p.colSpan!=null&&(s.colSpan=p.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(r){let n=r==="none";if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let o=e.previousVisibleSibling,i=e.nextVisibleSibling;o&&e.ownerDocument.markDirty(o),i&&e.ownerDocument.markDirty(i),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class Sl extends Wn{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new Ie(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof Ie&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Ie?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function Hn(t){let{children:e,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=t,s=a.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof e=="function"?e.toString():void 0,[e]),l=a.useMemo(()=>new WeakMap,[...i,s]);return a.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let d of r){let p=kl(d)?d:null,u=p?l.get(p):null;if(!u){u=e(d);let g=u.props.id??d?.key??d?.id;n!=null&&u.props.id==null&&g!=null&&(g=n+":"+g);let b=g??c.length;u=a.cloneElement(u,o?{key:b,id:g,value:d}:{key:b}),p&&l.set(p,u)}c.push(u)}return c}else if(typeof e!="function")return e},[e,r,l,n,o])}function kl(t){switch(typeof t){case"object":return t!=null;case"function":case"symbol":return!0;default:return!1}}let Ee=new Map,Yt=new Set;function jn(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{let o=O(n);if(!t(n)||!o)return;let i=Ee.get(o);i||(i=new Set,Ee.set(o,i),o.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{let o=O(n);if(!t(n)||!o)return;let i=Ee.get(o);if(i&&(i.delete(n.propertyName),i.size===0&&(o.removeEventListener("transitioncancel",r),Ee.delete(o)),Ee.size===0)){for(let s of Yt)s();Yt.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?jn():document.addEventListener("DOMContentLoaded",jn));function Cl(){for(const[t]of Ee)"isConnected"in t&&!t.isConnected&&Ee.delete(t)}function Gn(t){requestAnimationFrame(()=>{Cl(),Ee.size===0?t():Yt.add(t)})}function dt(t){if(!t.isConnected)return;const e=Q(t);if(Ut()==="virtual"){let r=ce(e);Gn(()=>{const n=ce(e);(n===r||n===e.body)&&t.isConnected&&ge(t)})}else ge(t)}function Un(t){let{isDisabled:e,onFocus:r,onBlur:n,onFocusChange:o}=t;const i=a.useCallback(c=>{if(O(c)===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),s=En(i),l=a.useCallback(c=>{let d=O(c);const p=Q(d),u=p?ce(p):ce();d===c.currentTarget&&d===u&&(r&&r(c),o&&o(!0),s(c))},[o,r,s]);return{focusProps:{onFocus:!e&&(r||o||n)?l:void 0,onBlur:!e&&(n||o)?i:void 0}}}function ut(t){if(t)return e=>{let r=!0,n={...e,preventDefault(){e.preventDefault()},isDefaultPrevented(){return e.isDefaultPrevented()},stopPropagation(){r&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):r=!0},continuePropagation(){r=!1,typeof e.continuePropagation=="function"&&e.continuePropagation()},isPropagationStopped(){return r}};t(n),r&&!(typeof e.isPropagationStopped=="function"&&e.isPropagationStopped())&&e.stopPropagation()}}const $l=new Set(["shift","alt","control","meta","mod"]),Tl=["Alt","Control","Meta","Shift"];function Nl(t){let e=new Set;return t.alt&&e.add("Alt"),t.shift&&e.add("Shift"),t.ctrl&&e.add("Control"),t.meta&&e.add("Meta"),t.mod&&e.add(ue()?"Meta":"Control"),e}function Kl(t){let e=new Set;return t.altKey&&e.add("Alt"),t.ctrlKey&&e.add("Control"),t.metaKey&&e.add("Meta"),t.shiftKey&&e.add("Shift"),e}function qn(t){return Tl.filter(e=>t.has(e))}function Pl(t){let e=t.split("+").reduce((r,n)=>{let o=n.toLowerCase();return $l.has(o)?o==="shift"?r.shift=!0:o==="alt"?r.alt=!0:o==="control"?r.ctrl=!0:o==="meta"?r.meta=!0:o==="mod"&&(r.mod=!0):r.key=n,r},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(e.key==="")throw new Error(`Invalid keyboard shortcut: "${t}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return e}function Yn(t){return t.toLowerCase()}const Ll={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function Il(t){let e=Yn(t),r=Ll[e];return r??e}function Ml(t){let e=qn(Nl(t)),r=Il(t.key);return e.length>0?`${e.join("+")}+${r}`:r}function Dl(t){let e=qn(Kl(t)),r=Yn(t.key);return(e.length>0?`${e.join("+")}+`:"")+r}function Fl(t){let e=new Map;for(let[r,n]of Object.entries(t)){let o=Pl(r);e.set(Ml(o),n)}return r=>{let n=Dl(r),o=e.get(n),i=o?.(r);i===void 0&&o!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i=="boolean"&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&r.preventDefault(),(!o||i?.shouldContinuePropagation)&&r.continuePropagation()}}function Xt(t){let{shortcuts:e,allowRepeats:r=!1,allowComposing:n=!1}=t,o,i;if(e){let s=Fl(e),l=ut(d=>{if(!j(d.currentTarget,O(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!r||d.nativeEvent?.isComposing&&!n){d.continuePropagation();return}s(d)}),c=ut(d=>{if(!j(d.currentTarget,O(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!r||d.nativeEvent?.isComposing&&!n){d.continuePropagation();return}d.continuePropagation()});o=t.onKeyDown?Oe(t.onKeyDown,l):l,i=t.onKeyUp?Oe(t.onKeyUp,c):c}else o=ut(t.onKeyDown),i=ut(t.onKeyUp);return{keyboardProps:t.isDisabled?{}:{onKeyDown:o,onKeyUp:i}}}function Xn(t,e){we(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}let Zt=a.createContext(null);function Al(t){let e=a.useContext(Zt)||{};Xn(e,t);let{ref:r,...n}=e;return n}function Ol(t,e){let{focusProps:r}=Un(t),{keyboardProps:n}=Xt(t),o=oe(r,n),i=Al(e),s=t.isDisabled?{}:i,l=a.useRef(t.autoFocus);a.useEffect(()=>{l.current&&e.current&&dt(e.current),l.current=!1},[e]);let c=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(c=void 0),{focusableProps:oe({...o,tabIndex:c},s)}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const Zn=a.createContext(!1);function _l(t){if(a.useContext(Zn))return a.createElement(a.Fragment,null,t.children);let r=a.createElement(Zn.Provider,{value:!0},t.children);return a.createElement("template",null,r)}var ft={exports:{}},Jt={};var Jn;function zl(){if(Jn)return Jt;Jn=1;var t=a;function e(u,g){return u===g&&(u!==0||1/u===1/g)||u!==u&&g!==g}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,o=t.useEffect,i=t.useLayoutEffect,s=t.useDebugValue;function l(u,g){var b=g(),v=n({inst:{value:b,getSnapshot:g}}),x=v[0].inst,w=v[1];return i(function(){x.value=b,x.getSnapshot=g,c(x)&&w({inst:x})},[u,b,g]),o(function(){return c(x)&&w({inst:x}),u(function(){c(x)&&w({inst:x})})},[u]),s(b),b}function c(u){var g=u.getSnapshot;u=u.value;try{var b=g();return!r(u,b)}catch{return!0}}function d(u,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Jt.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:p,Jt}var Rt={};var Rn;function Bl(){return Rn||(Rn=1,process.env.NODE_ENV!=="production"&&(function(){function t(b,v){return b===v&&(b!==0||1/b===1/v)||b!==b&&v!==v}function e(b,v){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var x=v();if(!u){var w=v();i(x,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}w=s({inst:{value:x,getSnapshot:v}});var k=w[0].inst,S=w[1];return c(function(){k.value=x,k.getSnapshot=v,r(k)&&S({inst:k})},[b,x,v]),l(function(){return r(k)&&S({inst:k}),b(function(){r(k)&&S({inst:k})})},[b]),d(x),x}function r(b){var v=b.getSnapshot;b=b.value;try{var x=v();return!i(b,x)}catch{return!0}}function n(b,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=a,i=typeof Object.is=="function"?Object.is:t,s=o.useState,l=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,p=!1,u=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;Rt.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Rt}var Qn;function Vl(){return Qn||(Qn=1,process.env.NODE_ENV==="production"?ft.exports=zl():ft.exports=Bl()),ft.exports}var Wl=Vl();const eo=a.createContext(!1),He=a.createContext(null);function Hl(t){if(a.useContext(He))return t.content;let{collection:r,document:n}=ql(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(_l,null,a.createElement(He.Provider,{value:n},t.content)),a.createElement(jl,{render:t.children,collection:r}))}function jl({collection:t,render:e}){return e(t)}function Gl(t,e,r){let n=et(),o=a.useRef(n);o.current=n;let i=a.useCallback(()=>o.current?r():e(),[e,r]);return Wl.useSyncExternalStore(t,i)}const Ul=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:Gl;function ql(t){let[e]=a.useState(()=>new Sl(t?.()||new El)),r=a.useCallback(s=>e.subscribe(s),[e]),n=a.useCallback(()=>{let s=e.getCollection();return e.isSSR&&e.resetAfterSSR(),s},[e]),o=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:Ul(r,n,o),document:e}}const Qt=a.createContext(null);function Yl(t){var r;return r=class extends We{},r.type=t,r}function Xl(t,e,r,n,o,i){typeof t=="string"&&(t=Yl(t));let s=a.useCallback(c=>{c?.setProps(e,r,t,n,i)},[e,r,n,i,t]),l=a.useContext(Qt);if(l){let c=l.ownerDocument.nodesByProps.get(e);return c||(c=l.ownerDocument.createElement(t.type),c.setProps(e,r,t,n,i),l.appendChild(c),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(e,c)),o?a.createElement(Qt.Provider,{value:c},o):null}return a.createElement(t.type,{ref:s},o)}function Zl(t,e){let r=({node:o})=>e(o.props,o.props.ref,o),n=a.forwardRef((o,i)=>{let s=a.useContext(Zt);if(!a.useContext(eo)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,i)}return Xl(t,o,i,"children"in o?o.children:null,null,c=>a.createElement(Zt.Provider,{value:s},a.createElement(r,{node:c})))});return n.displayName=e.name,n}function Jl(t){return Hn({...t,addIdAndValue:!0})}const to=a.createContext(null);function Rl(t){let e=a.useContext(to),r=(e?.dependencies||[]).concat(t.dependencies),n=t.idScope??e?.idScope,o=Jl({...t,idScope:n,dependencies:r});return a.useContext(He)&&(o=a.createElement(Ql,null,o)),e=a.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),a.createElement(to.Provider,{value:e},o)}function Ql({children:t}){let e=a.useContext(He),r=a.useMemo(()=>a.createElement(He.Provider,{value:null},a.createElement(eo.Provider,{value:!0},t)),[t]);return et()?a.createElement(Qt.Provider,{value:e},r):Ue.createPortal(r,e)}const ea={CollectionRoot({collection:t,renderDropIndicator:e}){return ro(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:r}){return ro(t,e,r)}};function ro(t,e,r){return Hn({items:e?t.getChildren(e.key):t,dependencies:[r],children(n){if(n.type==="content")return a.createElement(a.Fragment,null);let o=n.render(n);return!r||n.type!=="item"?o:a.createElement(a.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,ta(t,n,r))}})}function ta(t,e,r){let n=e.key,o=t.getKeyAfter(n),i=o!=null?t.getItem(o):null;for(;i!=null&&i.type!=="item";)o=t.getKeyAfter(i.key),i=o!=null?t.getItem(o):null;let s=e.nextKey!=null?t.getItem(e.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?t.getItem(s.nextKey):null;let l=[];if(s==null){let c=e;for(;c?.type==="item"&&(!i||c.parentKey!==i.parentKey&&i.level<c.level);){let d=r({type:"item",key:c.key,dropPosition:"after"});a.isValidElement(d)&&l.push(a.cloneElement(d,{key:`${c.key}-after`})),c=c.parentKey!=null?t.getItem(c.parentKey):null}}return l}const ra=a.createContext(ea);function na(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}const oa=new Set(["id"]),ia=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),sa=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),la=new Set(["dir","lang","hidden","inert","translate"]),no=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),aa=/^(data-.*)$/;function pt(t,e={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:s}=e,l={};for(const c in t)Object.prototype.hasOwnProperty.call(t,c)&&(oa.has(c)||r&&ia.has(c)||n&&sa.has(c)||o&&la.has(c)||i&&(no.has(c)||c.endsWith("Capture")&&no.has(c.slice(0,-7)))||s?.has(c)||aa.test(c))&&(l[c]=t[c]);return l}let Me="default",er="",ht=new WeakMap;function oo(t){if(_e()&&Pe()){if(Me==="default"){const e=Q(t);er=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Me="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";ht.set(t,t.style[e]),t.style[e]="none"}}function tr(t){if(_e()&&Pe()){if(Me!=="disabled")return;Me="restoring",setTimeout(()=>{Gn(()=>{if(Me==="restoring"){const e=Q(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=er||""),er="",Me="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&ht.has(t)){let e=ht.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),ht.delete(t)}}function io(t){return t?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let rr=new WeakMap;function ca(t){let e=t??(typeof document<"u"?document:void 0);if(!e)return io(e);if(rr.has(e))return rr.get(e);let r=e.querySelector('meta[property="csp-nonce"]'),n=r&&r instanceof le(r).HTMLMetaElement&&(r.nonce||r.content)||io(e)||void 0;return n!==void 0&&rr.set(e,n),n}const so=a.createContext({register:()=>{}});so.displayName="PressResponderContext";function bt(){let t=a.useRef(new Map),e=a.useCallback((o,i,s,l)=>{let c=l?.once?(...d)=>{t.current.delete(s),s(...d)}:s;t.current.set(s,{type:i,eventTarget:o,fn:c,options:l}),o.addEventListener(i,c,l)},[]),r=a.useCallback((o,i,s,l)=>{let c=t.current.get(s)?.fn||s;o.removeEventListener(i,c,l),t.current.delete(s)},[]),n=a.useCallback(()=>{t.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return a.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function da(t){let e=a.useContext(so);if(e){let{register:r,ref:n,...o}=e;t=oe(o,t),r()}return Xn(e,t.ref),t}class mt{#e;constructor(e,r,n,o){this.#e=!0;const s=(o?.target??n.currentTarget)?.getBoundingClientRect();let l,c=0,d,p=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,p=n.clientY),s&&(d!=null&&p!=null?(l=d-s.left,c=p-s.top):(l=s.width/2,c=s.height/2)),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const lo=Symbol("linkClicked"),ao="react-aria-pressable-style",co="data-react-aria-pressable";function uo(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:l,isPressed:c,preventFocusOnPress:d,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:u,ref:g,...b}=da(t),[v,x]=a.useState(!1),w=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:k,removeAllGlobalListeners:S}=bt(),T=a.useCallback((h,L)=>{let V=w.current;if(l||V.didFirePressStart)return!1;let $=!0;if(V.isTriggeringEvent=!0,n){let U=new mt("pressstart",L,h);n(U),$=U.shouldStopPropagation}return r&&r(!0),V.isTriggeringEvent=!1,V.didFirePressStart=!0,x(!0),$},[l,n,r]),F=a.useCallback((h,L,V=!0)=>{let $=w.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let U=!0;if(o){let m=new mt("pressend",L,h);o(m),U=m.shouldStopPropagation}if(r&&r(!1),x(!1),e&&V&&!l){let m=new mt("press",L,h);e(m),U&&=m.shouldStopPropagation}return $.isTriggeringEvent=!1,U},[l,o,r,e]),q=at(F),_=a.useCallback((h,L)=>{let V=w.current;if(l)return!1;if(i){V.isTriggeringEvent=!0;let $=new mt("pressup",L,h);return i($),V.isTriggeringEvent=!1,$.shouldStopPropagation}return!0},[l,i]),z=at(_),C=a.useCallback(h=>{let L=w.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&F(Te(L.target,h),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,S(),u||tr(L.target);for(let V of L.disposables)V();L.disposables=[]}},[u,S,F]),B=at(C);a.useEffect(()=>{l&&w.current.isPressed&&B({currentTarget:w.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let J=a.useCallback(h=>{p&&C(h)},[p,C]),Z=a.useCallback(h=>{l||s?.(h)},[l,s]),X=a.useCallback((h,L)=>{if(!l&&s){let V=new MouseEvent("click",h);wn(V,L),s(At(V))}},[l,s]),Y=a.useMemo(()=>{let h=w.current,L={onKeyDown($){if(or($.nativeEvent,$.currentTarget)&&j($.currentTarget,O($))){ho(O($),$.key)&&$.preventDefault();let U=!0;!h.isPressed&&!$.repeat&&(h.target=$.currentTarget,h.isPressed=!0,h.pointerType="keyboard",U=T($,"keyboard"));let m=$.currentTarget,y=A=>{or(A,m)&&!A.repeat&&j(m,O(A))&&h.target&&z(Te(h.target,A),"keyboard")};k(Q($.currentTarget),"keyup",Oe(y,V),!0),U&&$.stopPropagation(),$.metaKey&&ue()&&h.metaKeyEvents?.set($.key,$.nativeEvent)}else $.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick($){if(!($&&!j($.currentTarget,O($)))&&$&&$.button===0&&!h.isTriggeringEvent&&!ye.isOpening){let U=!0;if(l&&$.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||zt($.nativeEvent))){let m=T($,"virtual"),y=z($,"virtual"),A=q($,"virtual");Z($),U=m&&y&&A}else if(h.isPressed&&h.pointerType!=="keyboard"){let m=h.pointerType||$.nativeEvent.pointerType||"virtual",y=z(Te($.currentTarget,$),m),A=q(Te($.currentTarget,$),m,!0);U=y&&A,h.isOverTarget=!1,Z($),B($)}h.ignoreEmulatedMouseEvents=!1,U&&$.stopPropagation()}}},V=$=>{if(h.isPressed&&h.target&&or($,h.target)){ho(O($),$.key)&&$.preventDefault();let U=O($),m=j(h.target,U);q(Te(h.target,$),"keyboard",m),m&&X($,h.target),S(),$.key!=="Enter"&&nr(h.target)&&j(h.target,U)&&!$[lo]&&($[lo]=!0,ye(h.target,$,!1)),h.isPressed=!1,h.metaKeyEvents?.delete($.key)}else if($.key==="Meta"&&h.metaKeyEvents?.size){let U=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let m of U.values())h.target?.dispatchEvent(new KeyboardEvent("keyup",m))}};if(typeof PointerEvent<"u"){L.onPointerDown=m=>{if(m.button!==0||!j(m.currentTarget,O(m)))return;if(nl(m.nativeEvent)){h.pointerType="virtual";return}h.pointerType=m.pointerType;let y=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=m.pointerId,h.target=m.currentTarget,u||oo(h.target),y=T(m,h.pointerType);let A=O(m);"releasePointerCapture"in A&&("hasPointerCapture"in A?A.hasPointerCapture(m.pointerId)&&A.releasePointerCapture(m.pointerId):A.releasePointerCapture(m.pointerId)),k(Q(m.currentTarget),"pointerup",$,!1),k(Q(m.currentTarget),"pointercancel",U,!1)}y&&m.stopPropagation()},L.onMouseDown=m=>{if(j(m.currentTarget,O(m))&&m.button===0){if(d){let y=Sn(m.target);y&&h.disposables.push(y)}m.stopPropagation()}},L.onPointerUp=m=>{!j(m.currentTarget,O(m))||h.pointerType==="virtual"||m.button===0&&!h.isPressed&&z(m,h.pointerType||m.pointerType)},L.onPointerEnter=m=>{m.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,T(Te(h.target,m),h.pointerType))},L.onPointerLeave=m=>{m.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,q(Te(h.target,m),h.pointerType,!1),J(m))};let $=m=>{if(m.pointerId===h.activePointerId&&h.isPressed&&m.button===0&&h.target){if(j(h.target,O(m))&&h.pointerType!=null){let y=!1,A=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(y?B(m):(ge(h.target),h.target.click()))},80);k(m.currentTarget,"click",()=>y=!0,!0),h.disposables.push(()=>clearTimeout(A))}else B(m);h.isOverTarget=!1}},U=m=>{B(m)};L.onDragStart=m=>{j(m.currentTarget,O(m))&&B(m)}}else if(process.env.NODE_ENV==="test"){L.onMouseDown=m=>{if(m.button!==0||!j(m.currentTarget,O(m)))return;if(h.ignoreEmulatedMouseEvents){m.stopPropagation();return}if(h.isPressed=!0,h.isOverTarget=!0,h.target=m.currentTarget,h.pointerType=zt(m.nativeEvent)?"virtual":"mouse",Ue.flushSync(()=>T(m,h.pointerType))&&m.stopPropagation(),d){let A=Sn(m.target);A&&h.disposables.push(A)}k(Q(m.currentTarget),"mouseup",$,!1)},L.onMouseEnter=m=>{if(!j(m.currentTarget,O(m)))return;let y=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,y=T(m,h.pointerType)),y&&m.stopPropagation()},L.onMouseLeave=m=>{if(!j(m.currentTarget,O(m)))return;let y=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,y=q(m,h.pointerType,!1),J(m)),y&&m.stopPropagation()},L.onMouseUp=m=>{j(m.currentTarget,O(m))&&!h.ignoreEmulatedMouseEvents&&m.button===0&&!h.isPressed&&z(m,h.pointerType||"mouse")};let $=m=>{if(m.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&j(h.target,O(m))&&h.pointerType!=null||B(m),h.isOverTarget=!1}};L.onTouchStart=m=>{if(!j(m.currentTarget,O(m)))return;let y=ua(m.nativeEvent);if(!y)return;h.activePointerId=y.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=m.currentTarget,h.pointerType="touch",u||oo(h.target),T(Se(h.target,m),h.pointerType)&&m.stopPropagation(),k(le(m.currentTarget),"scroll",U,!0)},L.onTouchMove=m=>{if(!j(m.currentTarget,O(m)))return;if(!h.isPressed){m.stopPropagation();return}let y=fo(m.nativeEvent,h.activePointerId),A=!0;y&&po(y,m.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,A=T(Se(h.target,m),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,A=q(Se(h.target,m),h.pointerType,!1),J(Se(h.target,m))),A&&m.stopPropagation()},L.onTouchEnd=m=>{if(!j(m.currentTarget,O(m)))return;if(!h.isPressed){m.stopPropagation();return}let y=fo(m.nativeEvent,h.activePointerId),A=!0;y&&po(y,m.currentTarget)&&h.pointerType!=null?(z(Se(h.target,m),h.pointerType),A=q(Se(h.target,m),h.pointerType),X(m.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(A=q(Se(h.target,m),h.pointerType,!1)),A&&m.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!u&&tr(h.target),S()},L.onTouchCancel=m=>{j(m.currentTarget,O(m))&&(m.stopPropagation(),h.isPressed&&B(Se(h.target,m)))};let U=m=>{h.isPressed&&j(O(m),h.target)&&B({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=m=>{j(m.currentTarget,O(m))&&B(m)}}return L},[k,l,d,S,u,J,T,Z,X]);return a.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const h=Q(g.current);if(!h||!h.head||h.getElementById(ao))return;const L=h.createElement("style");L.id=ao;let V=ca(h);V&&(L.nonce=V),L.textContent=`
|
|
2
2
|
@layer {
|
|
3
3
|
[${co}] {
|
|
4
4
|
touch-action: pan-x pan-y pinch-zoom;
|