@fabio.caffarello/react-design-system 4.6.0 → 4.7.0

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.cjs CHANGED
@@ -1,9 +1,9 @@
1
- "use client";"use strict";var di=Object.defineProperty,ui=Object.defineProperties;var fi=Object.getOwnPropertyDescriptors;var ar=Object.getOwnPropertySymbols;var jn=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable;var es=(e,t,r)=>t in e?di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))jn.call(t,r)&&es(e,r,t[r]);if(ar)for(var r of ar(t))Nn.call(t,r)&&es(e,r,t[r]);return e},F=(e,t)=>ui(e,fi(t));var V=(e,t)=>{var r={};for(var s in e)jn.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&ar)for(var s of ar(e))t.indexOf(s)<0&&Nn.call(e,s)&&(r[s]=e[s]);return r};var Sn=(e,t,r)=>es(e,typeof t!="symbol"?t+"":t,r);var or=(e,t,r)=>new Promise((s,a)=>{var o=u=>{try{c(r.next(u))}catch(d){a(d)}},i=u=>{try{c(r.throw(u))}catch(d){a(d)}},c=u=>u.done?s(u.value):Promise.resolve(u.value).then(o,i);c((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),Je=require("react-dom");function mi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Ee=mi(l),ot={icon:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"},text:{xs:"text-xs",sm:"text-sm",base:"text-base"},spacing:{itemPaddingX:"px-4",itemPaddingY:"py-2",nestedIndent:"pl-6",nestedIndentLevel2:"pl-10",nestedIndentLevel3:"pl-14",groupTitlePadding:"px-4 py-2",iconMargin:"mr-3"},colors:{active:{bg:"bg-surface-brand-muted",text:"text-fg-brand-emphasis",border:"border-line-brand"},inactive:{text:"text-fg-secondary",hover:"hover:bg-surface-hover hover:text-fg-primary"},groupTitle:"text-fg-tertiary"},chevron:{size:"h-3 w-3",color:"text-fg-quaternary"},navigation:{width:{default:"56px",compact:"48px",expanded:"200px"},background:{default:"#fafafa",hover:"#f5f5f5"}},split:{transition:"transition-all duration-300",collapsedWidth:"0px"},content:{scrollbar:{width:"thin",color:{thumb:"#cbd5e1",track:"#f1f5f9"}}}};function pi(e){return e<=0?ot.spacing.itemPaddingX:e===1?ot.spacing.nestedIndent:e===2?ot.spacing.nestedIndentLevel2:e===3?ot.spacing.nestedIndentLevel3:`pl-${4+e*4}`}class je{static create(t){const r=t*this.BASE_UNIT,s=r/16;return{value:r,rem:`${s}rem`,px:`${r}px`,tailwind:this.getTailwindClass(t)}}static getTailwindClass(t){return{0:"0",.5:"0.5",1:"1",1.5:"1.5",2:"2",2.5:"2.5",3:"3",3.5:"3.5",4:"4",5:"5",6:"6",8:"8",10:"10",12:"12",16:"16",20:"20",24:"24",32:"32",40:"40",48:"48",64:"64",80:"80",96:"96"}[t]||String(t)}}Sn(je,"BASE_UNIT",4);const jr={none:je.create(0),"0.5":je.create(.5),xs:je.create(1),"1.5":je.create(1.5),sm:je.create(2),"2.5":je.create(2.5),md:je.create(3),"3.5":je.create(3.5),base:je.create(4),lg:je.create(6),xl:je.create(8),"2xl":je.create(10),"3xl":je.create(12),"4xl":je.create(16),"5xl":je.create(20),"6xl":je.create(24)};function bi(e){return jr[e]}function m(e,t="p"){const s=jr[e].tailwind;return`${{p:"p",m:"m",px:"px",mx:"mx",py:"py",my:"my",pt:"pt",mt:"mt",pr:"pr",mr:"mr",pb:"pb",mb:"mb",pl:"pl",ml:"ml",gap:"gap","gap-x":"gap-x","gap-y":"gap-y","space-x":"space-x","space-y":"space-y"}[t]}-${s}`}class xe{static createFontSize(t){const s={"2xs":{px:10,tailwind:"text-2xs"},xs:{px:12,tailwind:"text-xs"},sm:{px:14,tailwind:"text-sm"},base:{px:16,tailwind:"text-base"},lg:{px:18,tailwind:"text-lg"},xl:{px:20,tailwind:"text-xl"},"2xl":{px:24,tailwind:"text-2xl"},"3xl":{px:30,tailwind:"text-3xl"},"4xl":{px:36,tailwind:"text-4xl"},"5xl":{px:48,tailwind:"text-5xl"},"6xl":{px:60,tailwind:"text-6xl"}}[t];return{value:s.px,rem:`${s.px/16}rem`,px:`${s.px}px`,tailwind:s.tailwind}}static createLineHeight(t){const s={none:{value:1,tailwind:"leading-none"},tight:{value:1.25,tailwind:"leading-tight"},snug:{value:1.375,tailwind:"leading-snug"},normal:{value:1.5,tailwind:"leading-normal"},relaxed:{value:1.625,tailwind:"leading-relaxed"},loose:{value:2,tailwind:"leading-loose"}}[t];return{value:s.value,tailwind:s.tailwind}}static createFontWeight(t){const s={light:{value:300,tailwind:"font-light"},normal:{value:400,tailwind:"font-normal"},medium:{value:500,tailwind:"font-medium"},semibold:{value:600,tailwind:"font-semibold"},bold:{value:700,tailwind:"font-bold"}}[t];return{value:s.value,tailwind:s.tailwind}}static create(t,r="normal",s="normal"){return{fontSize:this.createFontSize(t),lineHeight:this.createLineHeight(r),fontWeight:this.createFontWeight(s)}}}const hi={sans:{name:"sans",stack:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',tailwind:"font-sans"},serif:{name:"serif",stack:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',tailwind:"font-serif"},mono:{name:"mono",stack:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',tailwind:"font-mono"}},gi={light:xe.createFontWeight("light"),normal:xe.createFontWeight("normal"),medium:xe.createFontWeight("medium"),semibold:xe.createFontWeight("semibold"),bold:xe.createFontWeight("bold")},$t={h1:xe.create("4xl","tight","bold"),h2:xe.create("3xl","tight","bold"),h3:xe.create("2xl","snug","semibold"),h4:xe.create("xl","snug","semibold"),h5:xe.create("lg","normal","medium"),h6:xe.create("base","normal","medium"),body:xe.create("base","relaxed","normal"),bodySmall:xe.create("sm","relaxed","normal"),bodyLarge:xe.create("lg","relaxed","normal"),label:xe.create("sm","normal","medium"),caption:xe.create("xs","normal","normal"),button:xe.create("base","normal","medium")};function xi(e){return $t[e]}function be(e){const t=$t[e];return`${t.fontSize.tailwind} ${t.lineHeight.tailwind} ${t.fontWeight.tailwind}`}function se(e){return $t[e].fontSize.tailwind}function Se(e){return xe.createFontSize(e).tailwind}function Ae(e){return $t[e].fontWeight.tailwind}function Ft(e){return xe.createFontWeight(e).tailwind}function vi(e){return $t[e].lineHeight.tailwind}const yi=[50,100,200,300,400,500,600,700,800,900,950];function pe(e,t,r){const s=wi(e),a=ki(e);return{hex:e,rgb:s,hsl:a,cssVar:`var(--color-${t}-${r})`,tailwind:`${t}-${r}`}}function wi(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:"0, 0, 0"}function ki(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(!t)return"0, 0%, 0%";const r=parseInt(t[1],16)/255,s=parseInt(t[2],16)/255,a=parseInt(t[3],16)/255,o=Math.max(r,s,a),i=Math.min(r,s,a);let c=0,u=0;const d=(o+i)/2;if(o!==i){const f=o-i;switch(u=d>.5?f/(2-o-i):f/(o+i),o){case r:c=((s-a)/f+(s<a?6:0))/6;break;case s:c=((a-r)/f+2)/6;break;case a:c=((r-s)/f+4)/6;break}}return`${Math.round(c*360)}, ${Math.round(u*100)}%, ${Math.round(d*100)}%`}const it={50:pe("#f0f4f8","brand-primary",50),100:pe("#d9e2ec","brand-primary",100),200:pe("#bcccdc","brand-primary",200),300:pe("#9fb3c8","brand-primary",300),400:pe("#7390ad","brand-primary",400),500:pe("#486581","brand-primary",500),600:pe("#334e68","brand-primary",600),700:pe("#243b53","brand-primary",700),800:pe("#1a2a3a","brand-primary",800),900:pe("#102a43","brand-primary",900),950:pe("#061a35","brand-primary",950)},lt={50:pe("#f7f5ff","brand-secondary",50),100:pe("#eee9ff","brand-secondary",100),200:pe("#e0d6ff","brand-secondary",200),300:pe("#cbb8ff","brand-secondary",300),400:pe("#aa89fc","brand-secondary",400),500:pe("#8e58f2","brand-secondary",500),600:pe("#703bc8","brand-secondary",600),700:pe("#582aa2","brand-secondary",700),800:pe("#44227e","brand-secondary",800),900:pe("#32185d","brand-secondary",900),950:pe("#180635","brand-secondary",950)};function T(e,t,r){const s=ji(e),a=Ni(e);return{hex:e,rgb:s,hsl:a,cssVar:`var(--color-${t}-${r})`,tailwind:`${t}-${r}`}}function ji(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:"0, 0, 0"}function Ni(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(!t)return"0, 0%, 0%";const r=parseInt(t[1],16)/255,s=parseInt(t[2],16)/255,a=parseInt(t[3],16)/255,o=Math.max(r,s,a),i=Math.min(r,s,a);let c=0,u=0;const d=(o+i)/2;if(o!==i){const f=o-i;switch(u=d>.5?f/(2-o-i):f/(o+i),o){case r:c=((s-a)/f+(s<a?6:0))/6;break;case s:c=((a-r)/f+2)/6;break;case a:c=((r-s)/f+4)/6;break}}return`${Math.round(c*360)}, ${Math.round(u*100)}%, ${Math.round(d*100)}%`}const qn={50:T("#eef2ff","indigo",50),100:T("#e0e7ff","indigo",100),200:T("#c7d2fe","indigo",200),300:T("#a5b4fc","indigo",300),400:T("#818cf8","indigo",400),500:T("#6366f1","indigo",500),600:T("#4f46e5","indigo",600),700:T("#4338ca","indigo",700),800:T("#3730a3","indigo",800),900:T("#312e81","indigo",900),950:T("#1e1b4b","indigo",950)},Xn={50:T("#f5f3ff","violet",50),100:T("#ede9fe","violet",100),200:T("#ddd6fe","violet",200),300:T("#c4b5fd","violet",300),400:T("#a78bfa","violet",400),500:T("#8b5cf6","violet",500),600:T("#7c3aed","violet",600),700:T("#6d28d9","violet",700),800:T("#5b21b6","violet",800),900:T("#4c1d95","violet",900),950:T("#2e1065","violet",950)},ct={50:T("#ecfeff","cyan",50),100:T("#cffafe","cyan",100),200:T("#a5f3fc","cyan",200),300:T("#67e8f9","cyan",300),400:T("#22d3ee","cyan",400),500:T("#06b6d4","cyan",500),600:T("#0891b2","cyan",600),700:T("#0e7490","cyan",700),800:T("#155e75","cyan",800),900:T("#164e63","cyan",900),950:T("#083344","cyan",950)},dt={50:T("#f8fafc","slate",50),100:T("#f1f5f9","slate",100),200:T("#e2e8f0","slate",200),300:T("#cbd5e1","slate",300),400:T("#94a3b8","slate",400),500:T("#64748b","slate",500),600:T("#475569","slate",600),700:T("#334155","slate",700),800:T("#1e293b","slate",800),900:T("#0f172a","slate",900),950:T("#020617","slate",950)},Jn={50:T("#f9fafb","gray",50),100:T("#f3f4f6","gray",100),200:T("#e5e7eb","gray",200),300:T("#d1d5db","gray",300),400:T("#9ca3af","gray",400),500:T("#6b7280","gray",500),600:T("#4b5563","gray",600),700:T("#374151","gray",700),800:T("#1f2937","gray",800),900:T("#111827","gray",900),950:T("#030712","gray",950)},ut={50:T("#ecfdf5","emerald",50),100:T("#d1fae5","emerald",100),200:T("#a7f3d0","emerald",200),300:T("#6ee7b7","emerald",300),400:T("#34d399","emerald",400),500:T("#10b981","emerald",500),600:T("#059669","emerald",600),700:T("#047857","emerald",700),800:T("#065f46","emerald",800),900:T("#064e3b","emerald",900),950:T("#022c22","emerald",950)},Zn={50:T("#f0fdf4","green",50),100:T("#dcfce7","green",100),200:T("#bbf7d0","green",200),300:T("#86efac","green",300),400:T("#4ade80","green",400),500:T("#22c55e","green",500),600:T("#16a34a","green",600),700:T("#15803d","green",700),800:T("#166534","green",800),900:T("#14532d","green",900),950:T("#052e16","green",950)},ft={50:T("#fffbeb","amber",50),100:T("#fef3c7","amber",100),200:T("#fde68a","amber",200),300:T("#fcd34d","amber",300),400:T("#fbbf24","amber",400),500:T("#f59e0b","amber",500),600:T("#d97706","amber",600),700:T("#b45309","amber",700),800:T("#92400e","amber",800),900:T("#78350f","amber",900),950:T("#451a03","amber",950)},Qn={50:T("#fefce8","yellow",50),100:T("#fef9c3","yellow",100),200:T("#fef08a","yellow",200),300:T("#fde047","yellow",300),400:T("#facc15","yellow",400),500:T("#eab308","yellow",500),600:T("#ca8a04","yellow",600),700:T("#a16207","yellow",700),800:T("#854d0e","yellow",800),900:T("#713f12","yellow",900),950:T("#422006","yellow",950)},ea={50:T("#fff7ed","orange",50),100:T("#ffedd5","orange",100),200:T("#fed7aa","orange",200),300:T("#fdba74","orange",300),400:T("#fb923c","orange",400),500:T("#f97316","orange",500),600:T("#ea580c","orange",600),700:T("#c2410c","orange",700),800:T("#9a3412","orange",800),900:T("#7c2d12","orange",900),950:T("#431407","orange",950)},mt={50:T("#fff1f2","rose",50),100:T("#ffe4e6","rose",100),200:T("#fecdd3","rose",200),300:T("#fda4af","rose",300),400:T("#fb7185","rose",400),500:T("#f43f5e","rose",500),600:T("#e11d48","rose",600),700:T("#be123c","rose",700),800:T("#9f1239","rose",800),900:T("#881337","rose",900),950:T("#4c0519","rose",950)},ta={50:T("#fef2f2","red",50),100:T("#fee2e2","red",100),200:T("#fecaca","red",200),300:T("#fca5a5","red",300),400:T("#f87171","red",400),500:T("#ef4444","red",500),600:T("#dc2626","red",600),700:T("#b91c1c","red",700),800:T("#991b1b","red",800),900:T("#7f1d1d","red",900),950:T("#450a0a","red",950)},pt={50:T("#f0f9ff","sky",50),100:T("#e0f2fe","sky",100),200:T("#bae6fd","sky",200),300:T("#7dd3fc","sky",300),400:T("#38bdf8","sky",400),500:T("#0ea5e9","sky",500),600:T("#0284c7","sky",600),700:T("#0369a1","sky",700),800:T("#075985","sky",800),900:T("#0c4a6e","sky",900),950:T("#082f49","sky",950)},ra={50:T("#eff6ff","blue",50),100:T("#dbeafe","blue",100),200:T("#bfdbfe","blue",200),300:T("#93c5fd","blue",300),400:T("#60a5fa","blue",400),500:T("#3b82f6","blue",500),600:T("#2563eb","blue",600),700:T("#1d4ed8","blue",700),800:T("#1e40af","blue",800),900:T("#1e3a8a","blue",900),950:T("#172554","blue",950)},sa={50:T("#fdf4ff","fuchsia",50),100:T("#fae8ff","fuchsia",100),200:T("#f5d0fe","fuchsia",200),300:T("#f0abfc","fuchsia",300),400:T("#e879f9","fuchsia",400),500:T("#d946ef","fuchsia",500),600:T("#c026d3","fuchsia",600),700:T("#a21caf","fuchsia",700),800:T("#86198f","fuchsia",800),900:T("#701a75","fuchsia",900),950:T("#4a044e","fuchsia",950)},na={50:T("#fdf2f8","pink",50),100:T("#fce7f3","pink",100),200:T("#fbcfe8","pink",200),300:T("#f9a8d4","pink",300),400:T("#f472b6","pink",400),500:T("#ec4899","pink",500),600:T("#db2777","pink",600),700:T("#be185d","pink",700),800:T("#9d174d","pink",800),900:T("#831843","pink",900),950:T("#500724","pink",950)},aa={50:T("#faf5ff","purple",50),100:T("#f3e8ff","purple",100),200:T("#e9d5ff","purple",200),300:T("#d8b4fe","purple",300),400:T("#c084fc","purple",400),500:T("#a855f7","purple",500),600:T("#9333ea","purple",600),700:T("#7e22ce","purple",700),800:T("#6b21a8","purple",800),900:T("#581c87","purple",900),950:T("#3b0764","purple",950)},oa={50:T("#f0fdfa","teal",50),100:T("#ccfbf1","teal",100),200:T("#99f6e4","teal",200),300:T("#5eead4","teal",300),400:T("#2dd4bf","teal",400),500:T("#14b8a6","teal",500),600:T("#0d9488","teal",600),700:T("#0f766e","teal",700),800:T("#115e59","teal",800),900:T("#134e4a","teal",900),950:T("#042f2e","teal",950)},ia={50:T("#f7fee7","lime",50),100:T("#ecfccb","lime",100),200:T("#d9f99d","lime",200),300:T("#bef264","lime",300),400:T("#a3e635","lime",400),500:T("#84cc16","lime",500),600:T("#65a30d","lime",600),700:T("#4d7c0f","lime",700),800:T("#3f6212","lime",800),900:T("#365314","lime",900),950:T("#1a2e05","lime",950)},vs={"brand-primary":it,"brand-secondary":lt,indigo:qn,violet:Xn,cyan:ct,slate:dt,gray:Jn,emerald:ut,green:Zn,amber:ft,yellow:Qn,orange:ea,rose:mt,red:ta,sky:pt,blue:ra,fuchsia:sa,pink:na,purple:aa,teal:oa,lime:ia};function Vt(e,t){return vs[e][t]}function Si(e){return vs[e]}const Xt={primary:{light:it[400],DEFAULT:it[500],dark:it[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},secondary:{light:lt[400],DEFAULT:lt[500],dark:lt[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},accent:{light:ct[400],DEFAULT:ct[500],dark:ct[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},success:{light:ut[400],DEFAULT:ut[500],dark:ut[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},warning:{light:ft[400],DEFAULT:ft[500],dark:ft[600],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},error:{light:mt[400],DEFAULT:mt[500],dark:mt[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},info:{light:pt[400],DEFAULT:pt[500],dark:pt[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},neutral:{light:dt[100],DEFAULT:dt[500],dark:dt[700],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}}},Nr={primary:{light:it[500],DEFAULT:it[400],dark:it[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},secondary:{light:lt[500],DEFAULT:lt[400],dark:lt[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},accent:{light:ct[500],DEFAULT:ct[400],dark:ct[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},success:{light:ut[500],DEFAULT:ut[400],dark:ut[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},warning:{light:ft[500],DEFAULT:ft[400],dark:ft[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},error:{light:mt[500],DEFAULT:mt[400],dark:mt[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},info:{light:pt[500],DEFAULT:pt[400],dark:pt[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},neutral:{light:dt[700],DEFAULT:dt[400],dark:dt[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}}},$i=Xt;function Yt(e,t="DEFAULT",r="light"){return(r==="dark"?Nr:Xt)[e][t]}function Ci(e,t="light"){return(t==="dark"?Nr:Xt)[e]}function Ei(e,t,r={}){const{format:s="hex",opacity:a}=r,o=Vt(e,t);let i;switch(s){case"rgb":i=a!==void 0?`rgba(${o.rgb}, ${a})`:`rgb(${o.rgb})`;break;case"hsl":i=a!==void 0?`hsla(${o.hsl}, ${a})`:`hsl(${o.hsl})`;break;case"cssVar":i=o.cssVar;break;case"tailwind":i=o.tailwind;break;default:i=o.hex}return i}function Ti(e,t="DEFAULT",r={}){const{format:s="hex",opacity:a}=r,o=Yt(e,t);let i;switch(s){case"rgb":i=a!==void 0?`rgba(${o.rgb}, ${a})`:`rgb(${o.rgb})`;break;case"hsl":i=a!==void 0?`hsla(${o.hsl}, ${a})`:`hsl(${o.hsl})`;break;case"cssVar":i=o.cssVar;break;case"tailwind":i=o.tailwind;break;default:i=o.hex}return i}function Ai(e,t,r={}){const{type:s="text",hover:a=!1,focus:o=!1,active:i=!1}=r,c=Vt(e,t),d=[`${s}-${c.tailwind}`];return a&&d.push(`hover:${s}-${c.tailwind}`),o&&d.push(`focus:${s}-${c.tailwind}`),i&&d.push(`active:${s}-${c.tailwind}`),d.join(" ")}function Ii(e,t="DEFAULT",r={}){const{type:s="text",hover:a=!1,focus:o=!1,active:i=!1}=r,c=Yt(e,t),d=[`${s}-${c.tailwind}`];if(a){const f=Yt(e,t==="DEFAULT"?"dark":"DEFAULT");d.push(`hover:${s}-${f.tailwind}`)}if(o&&d.push(`focus:${s}-${c.tailwind}`),i){const f=Yt(e,"dark");d.push(`active:${s}-${f.tailwind}`)}return d.join(" ")}function Ri(e,t,r="bg"){const s=Vt(e,t);return`hover:${r}-${s.tailwind}`}function Mi(e,t,r="border"){const s=Vt(e,t);return`focus:${r}-${s.tailwind}`}function Di(e,t){return`focus:ring-${Vt(e,t).tailwind}`}function _i(e,t){return`rgba(${e.rgb}, ${t})`}function la(e){const t=fs(e);return t?.299*t[0]+.587*t[1]+.114*t[2]>128:!0}function Li(e){return la(e)?"#000000":"#ffffff"}function fs(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null}function ys(e,t,r=.5){const s=fs(e),a=fs(t);if(!s||!a)return e;const o=Math.round(s[0]*(1-r)+a[0]*r),i=Math.round(s[1]*(1-r)+a[1]*r),c=Math.round(s[2]*(1-r)+a[2]*r);return`#${((1<<24)+(o<<16)+(i<<8)+c).toString(16).slice(1)}`}function Fi(e,t){return ys(e,"#ffffff",t/100)}function Pi(e,t){return ys(e,"#000000",t/100)}const Oi={primary:{name:"brand-primary",light:400,default:500,dark:600},secondary:{name:"brand-secondary",light:400,default:500,dark:600},accent:{name:"cyan",light:400,default:500,dark:600}};class Dt{static create(t){const s={sm:{minWidth:640,tailwind:"sm"},md:{minWidth:768,tailwind:"md"},lg:{minWidth:1024,tailwind:"lg"},xl:{minWidth:1280,tailwind:"xl"},"2xl":{minWidth:1536,tailwind:"2xl"}}[t];return{name:t,minWidth:s.minWidth,px:`${s.minWidth}px`,rem:`${s.minWidth/16}rem`,tailwind:s.tailwind}}}const Sr={sm:Dt.create("sm"),md:Dt.create("md"),lg:Dt.create("lg"),xl:Dt.create("xl"),"2xl":Dt.create("2xl")};function zi(e){return Sr[e]}function Vi(e,t="min"){const r=Sr[e];return`@media (${t==="min"?"min-width":"max-width"}: ${r.px})`}const Nt=8,Wi=[{index:1,name:"Orange",var:"var(--color-chart-1)",bg:"bg-chart-1",text:"text-chart-1"},{index:2,name:"Sky blue",var:"var(--color-chart-2)",bg:"bg-chart-2",text:"text-chart-2"},{index:3,name:"Bluish green",var:"var(--color-chart-3)",bg:"bg-chart-3",text:"text-chart-3"},{index:4,name:"Vermillion",var:"var(--color-chart-4)",bg:"bg-chart-4",text:"text-chart-4"},{index:5,name:"Blue",var:"var(--color-chart-5)",bg:"bg-chart-5",text:"text-chart-5"},{index:6,name:"Reddish purple",var:"var(--color-chart-6)",bg:"bg-chart-6",text:"text-chart-6"},{index:7,name:"Yellow",var:"var(--color-chart-7)",bg:"bg-chart-7",text:"text-chart-7"},{index:8,name:"Gray",var:"var(--color-chart-8)",bg:"bg-chart-8",text:"text-chart-8"}];function Hi(e){return`var(--color-chart-${(Math.trunc(e)%Nt+Nt)%Nt+1})`}function Bi(e,t="bg"){const s=(Math.trunc(e)%Nt+Nt)%Nt;return`${t}-chart-${s+1}`}function ca(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=ca(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function da(){for(var e,t,r=0,s="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=ca(e))&&(s&&(s+=" "),s+=t);return s}const Ui=(e,t)=>{const r=new Array(e.length+t.length);for(let s=0;s<e.length;s++)r[s]=e[s];for(let s=0;s<t.length;s++)r[e.length+s]=t[s];return r},Gi=(e,t)=>({classGroupId:e,validator:t}),ua=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),br="-",$n=[],Ki="arbitrary..",Yi=e=>{const t=Xi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return qi(i);const c=i.split(br),u=c[0]===""&&c.length>1?1:0;return fa(c,u,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const u=s[i],d=r[i];return u?d?Ui(d,u):u:d||$n}return r[i]||$n}}},fa=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const a=e[t],o=r.nextPart.get(a);if(o){const d=fa(e,t+1,o);if(d)return d}const i=r.validators;if(i===null)return;const c=t===0?e.join(br):e.slice(t).join(br),u=i.length;for(let d=0;d<u;d++){const f=i[d];if(f.validator(c))return f.classGroupId}},qi=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),s=t.slice(0,r);return s?Ki+s:void 0})(),Xi=e=>{const{theme:t,classGroups:r}=e;return Ji(r,t)},Ji=(e,t)=>{const r=ua();for(const s in e){const a=e[s];ws(a,r,s,t)}return r},ws=(e,t,r,s)=>{const a=e.length;for(let o=0;o<a;o++){const i=e[o];Zi(i,t,r,s)}},Zi=(e,t,r,s)=>{if(typeof e=="string"){Qi(e,t,r);return}if(typeof e=="function"){el(e,t,r,s);return}tl(e,t,r,s)},Qi=(e,t,r)=>{const s=e===""?t:ma(t,e);s.classGroupId=r},el=(e,t,r,s)=>{if(rl(e)){ws(e(s),t,r,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Gi(r,e))},tl=(e,t,r,s)=>{const a=Object.entries(e),o=a.length;for(let i=0;i<o;i++){const[c,u]=a[i];ws(u,ma(t,c),r,s)}},ma=(e,t)=>{let r=e;const s=t.split(br),a=s.length;for(let o=0;o<a;o++){const i=s[o];let c=r.nextPart.get(i);c||(c=ua(),r.nextPart.set(i,c)),r=c}return r},rl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,sl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),s=Object.create(null);const a=(o,i)=>{r[o]=i,t++,t>e&&(t=0,s=r,r=Object.create(null))};return{get(o){let i=r[o];if(i!==void 0)return i;if((i=s[o])!==void 0)return a(o,i),i},set(o,i){o in r?r[o]=i:a(o,i)}}},ms="!",Cn=":",nl=[],En=(e,t,r,s,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:s,isExternal:a}),al=e=>{const{prefix:t,experimentalParseClassName:r}=e;let s=a=>{const o=[];let i=0,c=0,u=0,d;const f=a.length;for(let k=0;k<f;k++){const w=a[k];if(i===0&&c===0){if(w===Cn){o.push(a.slice(u,k)),u=k+1;continue}if(w==="/"){d=k;continue}}w==="["?i++:w==="]"?i--:w==="("?c++:w===")"&&c--}const b=o.length===0?a:a.slice(u);let p=b,h=!1;b.endsWith(ms)?(p=b.slice(0,-1),h=!0):b.startsWith(ms)&&(p=b.slice(1),h=!0);const x=d&&d>u?d-u:void 0;return En(o,h,p,x)};if(t){const a=t+Cn,o=s;s=i=>i.startsWith(a)?o(i.slice(a.length)):En(nl,!1,i,void 0,!0)}if(r){const a=s;s=o=>r({className:o,parseClassName:a})}return s},ol=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,s)=>{t.set(r,1e6+s)}),r=>{const s=[];let a=[];for(let o=0;o<r.length;o++){const i=r[o],c=i[0]==="[",u=t.has(i);c||u?(a.length>0&&(a.sort(),s.push(...a),a=[]),s.push(i)):a.push(i)}return a.length>0&&(a.sort(),s.push(...a)),s}},il=e=>A({cache:sl(e.cacheSize),parseClassName:al(e),sortModifiers:ol(e),postfixLookupClassGroupIds:ll(e)},Yi(e)),ll=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let s=0;s<r.length;s++)t[r[s]]=!0;return t},cl=/\s+/,dl=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:a,sortModifiers:o,postfixLookupClassGroupIds:i}=t,c=[],u=e.trim().split(cl);let d="";for(let f=u.length-1;f>=0;f-=1){const b=u[f],{isExternal:p,modifiers:h,hasImportantModifier:x,baseClassName:k,maybePostfixModifierPosition:w}=r(b);if(p){d=b+(d.length>0?" "+d:d);continue}let v=!!w,y;if(v){const C=k.substring(0,w);y=s(C);const S=y&&i[y]?s(k):void 0;S&&S!==y&&(y=S,v=!1)}else y=s(k);if(!y){if(!v){d=b+(d.length>0?" "+d:d);continue}if(y=s(k),!y){d=b+(d.length>0?" "+d:d);continue}v=!1}const N=h.length===0?"":h.length===1?h[0]:o(h).join(":"),$=x?N+ms:N,E=$+y;if(c.indexOf(E)>-1)continue;c.push(E);const j=a(y,v);for(let C=0;C<j.length;++C){const S=j[C];c.push($+S)}d=b+(d.length>0?" "+d:d)}return d},ul=(...e)=>{let t=0,r,s,a="";for(;t<e.length;)(r=e[t++])&&(s=pa(r))&&(a&&(a+=" "),a+=s);return a},pa=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=pa(e[s]))&&(r&&(r+=" "),r+=t);return r},fl=(e,...t)=>{let r,s,a,o;const i=u=>{const d=t.reduce((f,b)=>b(f),e());return r=il(d),s=r.cache.get,a=r.cache.set,o=c,c(u)},c=u=>{const d=s(u);if(d)return d;const f=dl(u,r);return a(u,f),f};return o=i,(...u)=>o(ul(...u))},ml=[],we=e=>{const t=r=>r[e]||ml;return t.isThemeGetter=!0,t},ba=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ha=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pl=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,bl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hl=/\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$/,gl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rt=e=>pl.test(e),ce=e=>!!e&&!Number.isNaN(Number(e)),We=e=>!!e&&Number.isInteger(Number(e)),ts=e=>e.endsWith("%")&&ce(e.slice(0,-1)),Ge=e=>bl.test(e),ga=()=>!0,yl=e=>hl.test(e)&&!gl.test(e),ks=()=>!1,wl=e=>xl.test(e),kl=e=>vl.test(e),jl=e=>!Y(e)&&!X(e),Nl=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Sl=e=>gt(e,ya,ks),Y=e=>ba.test(e),wt=e=>gt(e,wa,yl),Tn=e=>gt(e,Ml,ce),$l=e=>gt(e,ja,ga),Cl=e=>gt(e,ka,ks),An=e=>gt(e,xa,ks),El=e=>gt(e,va,kl),ir=e=>gt(e,Na,wl),X=e=>ha.test(e),Wt=e=>Ct(e,wa),Tl=e=>Ct(e,ka),In=e=>Ct(e,xa),Al=e=>Ct(e,ya),Il=e=>Ct(e,va),lr=e=>Ct(e,Na,!0),Rl=e=>Ct(e,ja,!0),gt=(e,t,r)=>{const s=ba.exec(e);return s?s[1]?t(s[1]):r(s[2]):!1},Ct=(e,t,r=!1)=>{const s=ha.exec(e);return s?s[1]?t(s[1]):r:!1},xa=e=>e==="position"||e==="percentage",va=e=>e==="image"||e==="url",ya=e=>e==="length"||e==="size"||e==="bg-size",wa=e=>e==="length",Ml=e=>e==="number",ka=e=>e==="family-name",ja=e=>e==="number"||e==="weight",Na=e=>e==="shadow",Dl=()=>{const e=we("color"),t=we("font"),r=we("text"),s=we("font-weight"),a=we("tracking"),o=we("leading"),i=we("breakpoint"),c=we("container"),u=we("spacing"),d=we("radius"),f=we("shadow"),b=we("inset-shadow"),p=we("text-shadow"),h=we("drop-shadow"),x=we("blur"),k=we("perspective"),w=we("aspect"),v=we("ease"),y=we("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...$(),X,Y],j=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],S=()=>[X,Y,u],M=()=>[rt,"full","auto",...S()],L=()=>[We,"none","subgrid",X,Y],D=()=>["auto",{span:["full",We,X,Y]},We,X,Y],R=()=>[We,"auto",X,Y],I=()=>["auto","min","max","fr",X,Y],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...S()],H=()=>[rt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],B=()=>[rt,"screen","full","dvw","lvw","svw","min","max","fit",...S()],ae=()=>[rt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],W=()=>[e,X,Y],P=()=>[...$(),In,An,{position:[X,Y]}],K=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oe=()=>["auto","cover","contain",Al,Sl,{size:[X,Y]}],ne=()=>[ts,Wt,wt],de=()=>["","none","full",d,X,Y],J=()=>["",ce,Wt,wt],ee=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>[ce,ts,In,An],U=()=>["","none",x,X,Y],Z=()=>["none",ce,X,Y],q=()=>["none",ce,X,Y],ie=()=>[ce,X,Y],ke=()=>[rt,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ge],breakpoint:[Ge],color:[ga],container:[Ge],"drop-shadow":[Ge],ease:["in","out","in-out"],font:[jl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ge],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ge],shadow:[Ge],spacing:["px",ce],text:[Ge],"text-shadow":[Ge],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rt,Y,X,w]}],container:["container"],"container-type":[{"@container":["","normal","size",X,Y]}],"container-named":[Nl],columns:[{columns:[ce,Y,X,c]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[We,"auto",X,Y]}],basis:[{basis:[rt,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ce,rt,"auto","initial","none",Y]}],grow:[{grow:["",ce,X,Y]}],shrink:[{shrink:["",ce,X,Y]}],order:[{order:[We,"first","last","none",X,Y]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[c,"screen",...H()]}],"min-w":[{"min-w":[c,"screen","none",...H()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,Wt,wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Rl,$l]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ts,Y]}],"font-family":[{font:[Tl,Cl,t]}],"font-features":[{"font-features":[Y]}],"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:[a,X,Y]}],"line-clamp":[{"line-clamp":[ce,"none",X,Tn]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",X,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[ce,"from-font","auto",X,wt]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[ce,"auto",X,Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[We,X,Y]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,Y]}],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",X,Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:K()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},We,X,Y],radial:["",X,Y],conic:[We,X,Y]},Il,El]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ce,X,Y]}],"outline-w":[{outline:["",ce,Wt,wt]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",f,lr,ir]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",b,lr,ir]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[ce,wt]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",p,lr,ir]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[ce,X,Y]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"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":[ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"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":$()}],"mask-image-conic-pos":[{"mask-conic":[ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:K()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,Y]}],filter:[{filter:["","none",X,Y]}],blur:[{blur:U()}],brightness:[{brightness:[ce,X,Y]}],contrast:[{contrast:[ce,X,Y]}],"drop-shadow":[{"drop-shadow":["","none",h,lr,ir]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",ce,X,Y]}],"hue-rotate":[{"hue-rotate":[ce,X,Y]}],invert:[{invert:["",ce,X,Y]}],saturate:[{saturate:[ce,X,Y]}],sepia:[{sepia:["",ce,X,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",X,Y]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[ce,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[ce,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ce,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ce,X,Y]}],"backdrop-invert":[{"backdrop-invert":["",ce,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[ce,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[ce,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",ce,X,Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ce,"initial",X,Y]}],ease:[{ease:["linear","initial",v,X,Y]}],delay:[{delay:[ce,X,Y]}],animate:[{animate:["none",y,X,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,X,Y]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[X,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],zoom:[{zoom:[We,X,Y]}],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"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",X,Y]}],"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":W()}],"scrollbar-track-color":[{"scrollbar-track":W()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",X,Y]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[ce,Wt,wt,Tn]}],stroke:[{stroke:["none",...W()]}],"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"]}},_l=fl(Dl);function g(...e){return _l(da(e))}const Rn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Mn=da,Ll=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return Mn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(d=>{const f=r==null?void 0:r[d],b=o==null?void 0:o[d];if(f===null)return null;const p=Rn(f)||Rn(b);return a[d][p]}),c=r&&Object.entries(r).reduce((d,f)=>{let[b,p]=f;return p===void 0||(d[b]=p),d},{}),u=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((d,f)=>{let x=f,{class:b,className:p}=x,h=V(x,["class","className"]);return Object.entries(h).every(k=>{let[w,v]=k;return Array.isArray(v)?v.includes(A(A({},o),c)[w]):A(A({},o),c)[w]===v})?[...d,b,p]:d},[]);return Mn(e,i,u,r==null?void 0:r.class,r==null?void 0:r.className)},ge=(e,t)=>{const r=Ll(e,t);return(s=>{const a=r(s);return g(a)})};function js(...e){return t=>{for(const r of e)r&&(typeof r=="function"?r(t):r.current=t)}}class Fe{static create(t,r="ease-in-out"){const s={fast:{value:"150ms",ms:150,tailwind:"duration-150"},base:{value:"200ms",ms:200,tailwind:"duration-200"},slow:{value:"300ms",ms:300,tailwind:"duration-300"},slower:{value:"500ms",ms:500,tailwind:"duration-500"}},a={"ease-in":{value:"cubic-bezier(0.4, 0, 1, 1)",tailwind:"ease-in",description:"Slow start, fast end"},"ease-out":{value:"cubic-bezier(0, 0, 0.2, 1)",tailwind:"ease-out",description:"Fast start, slow end"},"ease-in-out":{value:"cubic-bezier(0.4, 0, 0.2, 1)",tailwind:"ease-in-out",description:"Slow start and end, fast middle"},spring:{value:"cubic-bezier(0.68, -0.55, 0.265, 1.55)",tailwind:"ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]",description:"Spring-like bounce effect"}};return{duration:s[t],easing:a[r]}}static createTransition(t,r="base",s="ease-in-out"){const a=this.create(r,s),o=Array.isArray(t)?t.join(", "):t,i=[a.duration.tailwind,a.easing.tailwind].join(" ");return{property:o,duration:a.duration.value,timingFunction:a.easing.value,tailwind:i}}}const Fl={fast:Fe.create("fast"),base:Fe.create("base"),slow:Fe.create("slow"),slower:Fe.create("slower"),colors:Fe.createTransition(["color","background-color","border-color"],"base"),opacity:Fe.createTransition("opacity","fast"),transform:Fe.createTransition("transform","base"),all:Fe.createTransition("all","base")};function Pl(e,t){return Fe.create(e,t)}function Ne(e,t="ease-in-out"){const r=Fe.create(e,t);return`${r.duration.tailwind} ${r.easing.tailwind}`}function Ol(e,t="base",r="ease-in-out"){return Fe.createTransition(e,t,r).tailwind}class Le{static create(t){return{base:{value:0,tailwind:"z-0",description:"Base layer for normal content"},dropdown:{value:1e3,tailwind:"z-[1000]",description:"Dropdown menus and select options"},sticky:{value:1020,tailwind:"z-[1020]",description:"Sticky headers and navigation"},fixed:{value:1030,tailwind:"z-[1030]",description:"Fixed position elements"},"modal-backdrop":{value:1040,tailwind:"z-[1040]",description:"Modal backdrop/overlay"},modal:{value:1050,tailwind:"z-[1050]",description:"Modal dialogs and drawers"},popover:{value:1060,tailwind:"z-[1060]",description:"Popovers and tooltips"},tooltip:{value:1070,tailwind:"z-[1070]",description:"Tooltips (highest priority)"},toast:{value:1080,tailwind:"z-[1080]",description:"Toast notifications (highest priority)"}}[t]}}const Dn={base:Le.create("base"),dropdown:Le.create("dropdown"),sticky:Le.create("sticky"),fixed:Le.create("fixed"),"modal-backdrop":Le.create("modal-backdrop"),modal:Le.create("modal"),popover:Le.create("popover"),tooltip:Le.create("tooltip"),toast:Le.create("toast")};function zl(e){return Le.create(e)}function ve(e){return Le.create(e).tailwind}class Sa{static create(t){const r=t/100,s={0:"Fully transparent",5:"Very light overlay",10:"Light overlay",20:"Subtle overlay",25:"Quarter opacity",30:"Light background",40:"Semi-transparent",50:"Half opacity",60:"Semi-opaque",70:"Mostly opaque",75:"Three-quarter opacity",80:"High opacity",90:"Very high opacity",95:"Nearly opaque",100:"Fully opaque"};return{value:t,decimal:r,tailwind:{0:"opacity-0",5:"opacity-5",10:"opacity-10",20:"opacity-20",25:"opacity-25",30:"opacity-30",40:"opacity-40",50:"opacity-50",60:"opacity-60",70:"opacity-70",75:"opacity-75",80:"opacity-80",90:"opacity-90",95:"opacity-95",100:"opacity-100"}[t],description:s[t]}}}function Vl(e){return Sa.create(e)}function Wl(e){return Sa.create(e).tailwind}var cr={exports:{}},Ht={};var _n;function Hl(){if(_n)return Ht;_n=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(s,a,o){var i=null;if(o!==void 0&&(i=""+o),a.key!==void 0&&(i=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:s,key:i,ref:a!==void 0?a:null,props:o}}return Ht.Fragment=t,Ht.jsx=r,Ht.jsxs=r,Ht}var Bt={};var Ln;function Bl(){return Ln||(Ln=1,process.env.NODE_ENV!=="production"&&(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===D?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case w:return"Fragment";case y:return"Profiler";case v:return"StrictMode";case j:return"Suspense";case C:return"SuspenseList";case L:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case k:return"Portal";case $:return P.displayName||"Context";case N:return(P._context.displayName||"Context")+".Consumer";case E:var K=P.render;return P=P.displayName,P||(P=K.displayName||K.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case S:return K=P.displayName||null,K!==null?K:e(P.type)||"Memo";case M:K=P._payload,P=P._init;try{return e(P(K))}catch(oe){}}return null}function t(P){return""+P}function r(P){try{var K=!1}catch(de){K=!0}if(K){K=console;var oe=K.error,ne=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return oe.call(K,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),t(P)}}function s(P){if(P===w)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===M)return"<...>";try{var K=e(P);return K?"<"+K+">":"<...>"}catch(oe){return"<...>"}}function a(){var P=R.A;return P===null?null:P.getOwner()}function o(){return Error("react-stack-top-frame")}function i(P){if(I.call(P,"key")){var K=Object.getOwnPropertyDescriptor(P,"key").get;if(K&&K.isReactWarning)return!1}return P.key!==void 0}function c(P,K){function oe(){z||(z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",K))}oe.isReactWarning=!0,Object.defineProperty(P,"key",{get:oe,configurable:!0})}function u(){var P=e(this.type);return H[P]||(H[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function d(P,K,oe,ne,de,J){var ee=oe.ref;return P={$$typeof:x,type:P,key:K,props:oe,_owner:ne},(ee!==void 0?ee:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:u}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function f(P,K,oe,ne,de,J){var ee=K.children;if(ee!==void 0)if(ne)if(_(ee)){for(ne=0;ne<ee.length;ne++)b(ee[ne]);Object.freeze&&Object.freeze(ee)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else b(ee);if(I.call(K,"key")){ee=e(P);var te=Object.keys(K).filter(function(U){return U!=="key"});ne=0<te.length?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}",W[ee+ne]||(te=0<te.length?"{"+te.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ "use client";"use strict";var di=Object.defineProperty,ui=Object.defineProperties;var fi=Object.getOwnPropertyDescriptors;var ar=Object.getOwnPropertySymbols;var jn=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable;var es=(e,t,r)=>t in e?di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))jn.call(t,r)&&es(e,r,t[r]);if(ar)for(var r of ar(t))Nn.call(t,r)&&es(e,r,t[r]);return e},F=(e,t)=>ui(e,fi(t));var V=(e,t)=>{var r={};for(var s in e)jn.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&ar)for(var s of ar(e))t.indexOf(s)<0&&Nn.call(e,s)&&(r[s]=e[s]);return r};var Sn=(e,t,r)=>es(e,typeof t!="symbol"?t+"":t,r);var or=(e,t,r)=>new Promise((s,a)=>{var o=u=>{try{c(r.next(u))}catch(d){a(d)}},i=u=>{try{c(r.throw(u))}catch(d){a(d)}},c=u=>u.done?s(u.value):Promise.resolve(u.value).then(o,i);c((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),Je=require("react-dom");function mi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Ee=mi(l),ot={icon:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"},text:{xs:"text-xs",sm:"text-sm",base:"text-base"},spacing:{itemPaddingX:"px-4",itemPaddingY:"py-2",nestedIndent:"pl-6",nestedIndentLevel2:"pl-10",nestedIndentLevel3:"pl-14",groupTitlePadding:"px-4 py-2",iconMargin:"mr-3"},colors:{active:{bg:"bg-surface-brand-muted",text:"text-fg-brand-emphasis",border:"border-line-brand"},inactive:{text:"text-fg-secondary",hover:"hover:bg-surface-hover hover:text-fg-primary"},groupTitle:"text-fg-tertiary"},chevron:{size:"h-3 w-3",color:"text-fg-quaternary"},navigation:{width:{default:"56px",compact:"48px",expanded:"200px"},background:{default:"#fafafa",hover:"#f5f5f5"}},split:{transition:"transition-all duration-300",collapsedWidth:"0px"},content:{scrollbar:{width:"thin",color:{thumb:"#cbd5e1",track:"#f1f5f9"}}}};function pi(e){return e<=0?ot.spacing.itemPaddingX:e===1?ot.spacing.nestedIndent:e===2?ot.spacing.nestedIndentLevel2:e===3?ot.spacing.nestedIndentLevel3:`pl-${4+e*4}`}class je{static create(t){const r=t*this.BASE_UNIT,s=r/16;return{value:r,rem:`${s}rem`,px:`${r}px`,tailwind:this.getTailwindClass(t)}}static getTailwindClass(t){return{0:"0",.5:"0.5",1:"1",1.5:"1.5",2:"2",2.5:"2.5",3:"3",3.5:"3.5",4:"4",5:"5",6:"6",8:"8",10:"10",12:"12",16:"16",20:"20",24:"24",32:"32",40:"40",48:"48",64:"64",80:"80",96:"96"}[t]||String(t)}}Sn(je,"BASE_UNIT",4);const jr={none:je.create(0),"0.5":je.create(.5),xs:je.create(1),"1.5":je.create(1.5),sm:je.create(2),"2.5":je.create(2.5),md:je.create(3),"3.5":je.create(3.5),base:je.create(4),lg:je.create(6),xl:je.create(8),"2xl":je.create(10),"3xl":je.create(12),"4xl":je.create(16),"5xl":je.create(20),"6xl":je.create(24)};function bi(e){return jr[e]}function m(e,t="p"){const s=jr[e].tailwind;return`${{p:"p",m:"m",px:"px",mx:"mx",py:"py",my:"my",pt:"pt",mt:"mt",pr:"pr",mr:"mr",pb:"pb",mb:"mb",pl:"pl",ml:"ml",gap:"gap","gap-x":"gap-x","gap-y":"gap-y","space-x":"space-x","space-y":"space-y"}[t]}-${s}`}class ge{static createFontSize(t){const s={"2xs":{px:10,tailwind:"text-2xs"},xs:{px:12,tailwind:"text-xs"},sm:{px:14,tailwind:"text-sm"},base:{px:16,tailwind:"text-base"},lg:{px:18,tailwind:"text-lg"},xl:{px:20,tailwind:"text-xl"},"2xl":{px:24,tailwind:"text-2xl"},"3xl":{px:30,tailwind:"text-3xl"},"4xl":{px:36,tailwind:"text-4xl"},"5xl":{px:48,tailwind:"text-5xl"},"6xl":{px:60,tailwind:"text-6xl"}}[t];return{value:s.px,rem:`${s.px/16}rem`,px:`${s.px}px`,tailwind:s.tailwind}}static createLineHeight(t){const s={none:{value:1,tailwind:"leading-none"},tight:{value:1.25,tailwind:"leading-tight"},snug:{value:1.375,tailwind:"leading-snug"},normal:{value:1.5,tailwind:"leading-normal"},relaxed:{value:1.625,tailwind:"leading-relaxed"},loose:{value:2,tailwind:"leading-loose"}}[t];return{value:s.value,tailwind:s.tailwind}}static createFontWeight(t){const s={light:{value:300,tailwind:"font-light"},normal:{value:400,tailwind:"font-normal"},medium:{value:500,tailwind:"font-medium"},semibold:{value:600,tailwind:"font-semibold"},bold:{value:700,tailwind:"font-bold"}}[t];return{value:s.value,tailwind:s.tailwind}}static create(t,r="normal",s="normal"){return{fontSize:this.createFontSize(t),lineHeight:this.createLineHeight(r),fontWeight:this.createFontWeight(s)}}}const hi={sans:{name:"sans",stack:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',tailwind:"font-sans"},serif:{name:"serif",stack:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',tailwind:"font-serif"},mono:{name:"mono",stack:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',tailwind:"font-mono"}},xi={light:ge.createFontWeight("light"),normal:ge.createFontWeight("normal"),medium:ge.createFontWeight("medium"),semibold:ge.createFontWeight("semibold"),bold:ge.createFontWeight("bold")},$t={h1:ge.create("4xl","tight","bold"),h2:ge.create("3xl","tight","bold"),h3:ge.create("2xl","snug","semibold"),h4:ge.create("xl","snug","semibold"),h5:ge.create("lg","normal","medium"),h6:ge.create("base","normal","medium"),body:ge.create("base","relaxed","normal"),bodySmall:ge.create("sm","relaxed","normal"),bodyLarge:ge.create("lg","relaxed","normal"),label:ge.create("sm","normal","medium"),caption:ge.create("xs","normal","normal"),button:ge.create("base","normal","medium")};function gi(e){return $t[e]}function be(e){const t=$t[e];return`${t.fontSize.tailwind} ${t.lineHeight.tailwind} ${t.fontWeight.tailwind}`}function se(e){return $t[e].fontSize.tailwind}function Se(e){return ge.createFontSize(e).tailwind}function Ae(e){return $t[e].fontWeight.tailwind}function Ft(e){return ge.createFontWeight(e).tailwind}function vi(e){return $t[e].lineHeight.tailwind}const yi=[50,100,200,300,400,500,600,700,800,900,950];function pe(e,t,r){const s=wi(e),a=ki(e);return{hex:e,rgb:s,hsl:a,cssVar:`var(--color-${t}-${r})`,tailwind:`${t}-${r}`}}function wi(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:"0, 0, 0"}function ki(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(!t)return"0, 0%, 0%";const r=parseInt(t[1],16)/255,s=parseInt(t[2],16)/255,a=parseInt(t[3],16)/255,o=Math.max(r,s,a),i=Math.min(r,s,a);let c=0,u=0;const d=(o+i)/2;if(o!==i){const f=o-i;switch(u=d>.5?f/(2-o-i):f/(o+i),o){case r:c=((s-a)/f+(s<a?6:0))/6;break;case s:c=((a-r)/f+2)/6;break;case a:c=((r-s)/f+4)/6;break}}return`${Math.round(c*360)}, ${Math.round(u*100)}%, ${Math.round(d*100)}%`}const it={50:pe("#f0f4f8","brand-primary",50),100:pe("#d9e2ec","brand-primary",100),200:pe("#bcccdc","brand-primary",200),300:pe("#9fb3c8","brand-primary",300),400:pe("#7390ad","brand-primary",400),500:pe("#486581","brand-primary",500),600:pe("#334e68","brand-primary",600),700:pe("#243b53","brand-primary",700),800:pe("#1a2a3a","brand-primary",800),900:pe("#102a43","brand-primary",900),950:pe("#061a35","brand-primary",950)},lt={50:pe("#f7f5ff","brand-secondary",50),100:pe("#eee9ff","brand-secondary",100),200:pe("#e0d6ff","brand-secondary",200),300:pe("#cbb8ff","brand-secondary",300),400:pe("#aa89fc","brand-secondary",400),500:pe("#8e58f2","brand-secondary",500),600:pe("#703bc8","brand-secondary",600),700:pe("#582aa2","brand-secondary",700),800:pe("#44227e","brand-secondary",800),900:pe("#32185d","brand-secondary",900),950:pe("#180635","brand-secondary",950)};function T(e,t,r){const s=ji(e),a=Ni(e);return{hex:e,rgb:s,hsl:a,cssVar:`var(--color-${t}-${r})`,tailwind:`${t}-${r}`}}function ji(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:"0, 0, 0"}function Ni(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(!t)return"0, 0%, 0%";const r=parseInt(t[1],16)/255,s=parseInt(t[2],16)/255,a=parseInt(t[3],16)/255,o=Math.max(r,s,a),i=Math.min(r,s,a);let c=0,u=0;const d=(o+i)/2;if(o!==i){const f=o-i;switch(u=d>.5?f/(2-o-i):f/(o+i),o){case r:c=((s-a)/f+(s<a?6:0))/6;break;case s:c=((a-r)/f+2)/6;break;case a:c=((r-s)/f+4)/6;break}}return`${Math.round(c*360)}, ${Math.round(u*100)}%, ${Math.round(d*100)}%`}const qn={50:T("#eef2ff","indigo",50),100:T("#e0e7ff","indigo",100),200:T("#c7d2fe","indigo",200),300:T("#a5b4fc","indigo",300),400:T("#818cf8","indigo",400),500:T("#6366f1","indigo",500),600:T("#4f46e5","indigo",600),700:T("#4338ca","indigo",700),800:T("#3730a3","indigo",800),900:T("#312e81","indigo",900),950:T("#1e1b4b","indigo",950)},Xn={50:T("#f5f3ff","violet",50),100:T("#ede9fe","violet",100),200:T("#ddd6fe","violet",200),300:T("#c4b5fd","violet",300),400:T("#a78bfa","violet",400),500:T("#8b5cf6","violet",500),600:T("#7c3aed","violet",600),700:T("#6d28d9","violet",700),800:T("#5b21b6","violet",800),900:T("#4c1d95","violet",900),950:T("#2e1065","violet",950)},ct={50:T("#ecfeff","cyan",50),100:T("#cffafe","cyan",100),200:T("#a5f3fc","cyan",200),300:T("#67e8f9","cyan",300),400:T("#22d3ee","cyan",400),500:T("#06b6d4","cyan",500),600:T("#0891b2","cyan",600),700:T("#0e7490","cyan",700),800:T("#155e75","cyan",800),900:T("#164e63","cyan",900),950:T("#083344","cyan",950)},dt={50:T("#f8fafc","slate",50),100:T("#f1f5f9","slate",100),200:T("#e2e8f0","slate",200),300:T("#cbd5e1","slate",300),400:T("#94a3b8","slate",400),500:T("#64748b","slate",500),600:T("#475569","slate",600),700:T("#334155","slate",700),800:T("#1e293b","slate",800),900:T("#0f172a","slate",900),950:T("#020617","slate",950)},Jn={50:T("#f9fafb","gray",50),100:T("#f3f4f6","gray",100),200:T("#e5e7eb","gray",200),300:T("#d1d5db","gray",300),400:T("#9ca3af","gray",400),500:T("#6b7280","gray",500),600:T("#4b5563","gray",600),700:T("#374151","gray",700),800:T("#1f2937","gray",800),900:T("#111827","gray",900),950:T("#030712","gray",950)},ut={50:T("#ecfdf5","emerald",50),100:T("#d1fae5","emerald",100),200:T("#a7f3d0","emerald",200),300:T("#6ee7b7","emerald",300),400:T("#34d399","emerald",400),500:T("#10b981","emerald",500),600:T("#059669","emerald",600),700:T("#047857","emerald",700),800:T("#065f46","emerald",800),900:T("#064e3b","emerald",900),950:T("#022c22","emerald",950)},Zn={50:T("#f0fdf4","green",50),100:T("#dcfce7","green",100),200:T("#bbf7d0","green",200),300:T("#86efac","green",300),400:T("#4ade80","green",400),500:T("#22c55e","green",500),600:T("#16a34a","green",600),700:T("#15803d","green",700),800:T("#166534","green",800),900:T("#14532d","green",900),950:T("#052e16","green",950)},ft={50:T("#fffbeb","amber",50),100:T("#fef3c7","amber",100),200:T("#fde68a","amber",200),300:T("#fcd34d","amber",300),400:T("#fbbf24","amber",400),500:T("#f59e0b","amber",500),600:T("#d97706","amber",600),700:T("#b45309","amber",700),800:T("#92400e","amber",800),900:T("#78350f","amber",900),950:T("#451a03","amber",950)},Qn={50:T("#fefce8","yellow",50),100:T("#fef9c3","yellow",100),200:T("#fef08a","yellow",200),300:T("#fde047","yellow",300),400:T("#facc15","yellow",400),500:T("#eab308","yellow",500),600:T("#ca8a04","yellow",600),700:T("#a16207","yellow",700),800:T("#854d0e","yellow",800),900:T("#713f12","yellow",900),950:T("#422006","yellow",950)},ea={50:T("#fff7ed","orange",50),100:T("#ffedd5","orange",100),200:T("#fed7aa","orange",200),300:T("#fdba74","orange",300),400:T("#fb923c","orange",400),500:T("#f97316","orange",500),600:T("#ea580c","orange",600),700:T("#c2410c","orange",700),800:T("#9a3412","orange",800),900:T("#7c2d12","orange",900),950:T("#431407","orange",950)},mt={50:T("#fff1f2","rose",50),100:T("#ffe4e6","rose",100),200:T("#fecdd3","rose",200),300:T("#fda4af","rose",300),400:T("#fb7185","rose",400),500:T("#f43f5e","rose",500),600:T("#e11d48","rose",600),700:T("#be123c","rose",700),800:T("#9f1239","rose",800),900:T("#881337","rose",900),950:T("#4c0519","rose",950)},ta={50:T("#fef2f2","red",50),100:T("#fee2e2","red",100),200:T("#fecaca","red",200),300:T("#fca5a5","red",300),400:T("#f87171","red",400),500:T("#ef4444","red",500),600:T("#dc2626","red",600),700:T("#b91c1c","red",700),800:T("#991b1b","red",800),900:T("#7f1d1d","red",900),950:T("#450a0a","red",950)},pt={50:T("#f0f9ff","sky",50),100:T("#e0f2fe","sky",100),200:T("#bae6fd","sky",200),300:T("#7dd3fc","sky",300),400:T("#38bdf8","sky",400),500:T("#0ea5e9","sky",500),600:T("#0284c7","sky",600),700:T("#0369a1","sky",700),800:T("#075985","sky",800),900:T("#0c4a6e","sky",900),950:T("#082f49","sky",950)},ra={50:T("#eff6ff","blue",50),100:T("#dbeafe","blue",100),200:T("#bfdbfe","blue",200),300:T("#93c5fd","blue",300),400:T("#60a5fa","blue",400),500:T("#3b82f6","blue",500),600:T("#2563eb","blue",600),700:T("#1d4ed8","blue",700),800:T("#1e40af","blue",800),900:T("#1e3a8a","blue",900),950:T("#172554","blue",950)},sa={50:T("#fdf4ff","fuchsia",50),100:T("#fae8ff","fuchsia",100),200:T("#f5d0fe","fuchsia",200),300:T("#f0abfc","fuchsia",300),400:T("#e879f9","fuchsia",400),500:T("#d946ef","fuchsia",500),600:T("#c026d3","fuchsia",600),700:T("#a21caf","fuchsia",700),800:T("#86198f","fuchsia",800),900:T("#701a75","fuchsia",900),950:T("#4a044e","fuchsia",950)},na={50:T("#fdf2f8","pink",50),100:T("#fce7f3","pink",100),200:T("#fbcfe8","pink",200),300:T("#f9a8d4","pink",300),400:T("#f472b6","pink",400),500:T("#ec4899","pink",500),600:T("#db2777","pink",600),700:T("#be185d","pink",700),800:T("#9d174d","pink",800),900:T("#831843","pink",900),950:T("#500724","pink",950)},aa={50:T("#faf5ff","purple",50),100:T("#f3e8ff","purple",100),200:T("#e9d5ff","purple",200),300:T("#d8b4fe","purple",300),400:T("#c084fc","purple",400),500:T("#a855f7","purple",500),600:T("#9333ea","purple",600),700:T("#7e22ce","purple",700),800:T("#6b21a8","purple",800),900:T("#581c87","purple",900),950:T("#3b0764","purple",950)},oa={50:T("#f0fdfa","teal",50),100:T("#ccfbf1","teal",100),200:T("#99f6e4","teal",200),300:T("#5eead4","teal",300),400:T("#2dd4bf","teal",400),500:T("#14b8a6","teal",500),600:T("#0d9488","teal",600),700:T("#0f766e","teal",700),800:T("#115e59","teal",800),900:T("#134e4a","teal",900),950:T("#042f2e","teal",950)},ia={50:T("#f7fee7","lime",50),100:T("#ecfccb","lime",100),200:T("#d9f99d","lime",200),300:T("#bef264","lime",300),400:T("#a3e635","lime",400),500:T("#84cc16","lime",500),600:T("#65a30d","lime",600),700:T("#4d7c0f","lime",700),800:T("#3f6212","lime",800),900:T("#365314","lime",900),950:T("#1a2e05","lime",950)},vs={"brand-primary":it,"brand-secondary":lt,indigo:qn,violet:Xn,cyan:ct,slate:dt,gray:Jn,emerald:ut,green:Zn,amber:ft,yellow:Qn,orange:ea,rose:mt,red:ta,sky:pt,blue:ra,fuchsia:sa,pink:na,purple:aa,teal:oa,lime:ia};function Vt(e,t){return vs[e][t]}function Si(e){return vs[e]}const Xt={primary:{light:it[400],DEFAULT:it[500],dark:it[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},secondary:{light:lt[400],DEFAULT:lt[500],dark:lt[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},accent:{light:ct[400],DEFAULT:ct[500],dark:ct[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},success:{light:ut[400],DEFAULT:ut[500],dark:ut[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},warning:{light:ft[400],DEFAULT:ft[500],dark:ft[600],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},error:{light:mt[400],DEFAULT:mt[500],dark:mt[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},info:{light:pt[400],DEFAULT:pt[500],dark:pt[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},neutral:{light:dt[100],DEFAULT:dt[500],dark:dt[700],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}}},Nr={primary:{light:it[500],DEFAULT:it[400],dark:it[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},secondary:{light:lt[500],DEFAULT:lt[400],dark:lt[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},accent:{light:ct[500],DEFAULT:ct[400],dark:ct[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},success:{light:ut[500],DEFAULT:ut[400],dark:ut[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},warning:{light:ft[500],DEFAULT:ft[400],dark:ft[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},error:{light:mt[500],DEFAULT:mt[400],dark:mt[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},info:{light:pt[500],DEFAULT:pt[400],dark:pt[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},neutral:{light:dt[700],DEFAULT:dt[400],dark:dt[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}}},$i=Xt;function Yt(e,t="DEFAULT",r="light"){return(r==="dark"?Nr:Xt)[e][t]}function Ci(e,t="light"){return(t==="dark"?Nr:Xt)[e]}function Ei(e,t,r={}){const{format:s="hex",opacity:a}=r,o=Vt(e,t);let i;switch(s){case"rgb":i=a!==void 0?`rgba(${o.rgb}, ${a})`:`rgb(${o.rgb})`;break;case"hsl":i=a!==void 0?`hsla(${o.hsl}, ${a})`:`hsl(${o.hsl})`;break;case"cssVar":i=o.cssVar;break;case"tailwind":i=o.tailwind;break;default:i=o.hex}return i}function Ti(e,t="DEFAULT",r={}){const{format:s="hex",opacity:a}=r,o=Yt(e,t);let i;switch(s){case"rgb":i=a!==void 0?`rgba(${o.rgb}, ${a})`:`rgb(${o.rgb})`;break;case"hsl":i=a!==void 0?`hsla(${o.hsl}, ${a})`:`hsl(${o.hsl})`;break;case"cssVar":i=o.cssVar;break;case"tailwind":i=o.tailwind;break;default:i=o.hex}return i}function Ai(e,t,r={}){const{type:s="text",hover:a=!1,focus:o=!1,active:i=!1}=r,c=Vt(e,t),d=[`${s}-${c.tailwind}`];return a&&d.push(`hover:${s}-${c.tailwind}`),o&&d.push(`focus:${s}-${c.tailwind}`),i&&d.push(`active:${s}-${c.tailwind}`),d.join(" ")}function Ii(e,t="DEFAULT",r={}){const{type:s="text",hover:a=!1,focus:o=!1,active:i=!1}=r,c=Yt(e,t),d=[`${s}-${c.tailwind}`];if(a){const f=Yt(e,t==="DEFAULT"?"dark":"DEFAULT");d.push(`hover:${s}-${f.tailwind}`)}if(o&&d.push(`focus:${s}-${c.tailwind}`),i){const f=Yt(e,"dark");d.push(`active:${s}-${f.tailwind}`)}return d.join(" ")}function Ri(e,t,r="bg"){const s=Vt(e,t);return`hover:${r}-${s.tailwind}`}function Mi(e,t,r="border"){const s=Vt(e,t);return`focus:${r}-${s.tailwind}`}function Di(e,t){return`focus:ring-${Vt(e,t).tailwind}`}function _i(e,t){return`rgba(${e.rgb}, ${t})`}function la(e){const t=fs(e);return t?.299*t[0]+.587*t[1]+.114*t[2]>128:!0}function Li(e){return la(e)?"#000000":"#ffffff"}function fs(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null}function ys(e,t,r=.5){const s=fs(e),a=fs(t);if(!s||!a)return e;const o=Math.round(s[0]*(1-r)+a[0]*r),i=Math.round(s[1]*(1-r)+a[1]*r),c=Math.round(s[2]*(1-r)+a[2]*r);return`#${((1<<24)+(o<<16)+(i<<8)+c).toString(16).slice(1)}`}function Fi(e,t){return ys(e,"#ffffff",t/100)}function Pi(e,t){return ys(e,"#000000",t/100)}const Oi={primary:{name:"brand-primary",light:400,default:500,dark:600},secondary:{name:"brand-secondary",light:400,default:500,dark:600},accent:{name:"cyan",light:400,default:500,dark:600}};class Dt{static create(t){const s={sm:{minWidth:640,tailwind:"sm"},md:{minWidth:768,tailwind:"md"},lg:{minWidth:1024,tailwind:"lg"},xl:{minWidth:1280,tailwind:"xl"},"2xl":{minWidth:1536,tailwind:"2xl"}}[t];return{name:t,minWidth:s.minWidth,px:`${s.minWidth}px`,rem:`${s.minWidth/16}rem`,tailwind:s.tailwind}}}const Sr={sm:Dt.create("sm"),md:Dt.create("md"),lg:Dt.create("lg"),xl:Dt.create("xl"),"2xl":Dt.create("2xl")};function zi(e){return Sr[e]}function Vi(e,t="min"){const r=Sr[e];return`@media (${t==="min"?"min-width":"max-width"}: ${r.px})`}const Nt=8,Wi=[{index:1,name:"Orange",var:"var(--color-chart-1)",bg:"bg-chart-1",text:"text-chart-1"},{index:2,name:"Sky blue",var:"var(--color-chart-2)",bg:"bg-chart-2",text:"text-chart-2"},{index:3,name:"Bluish green",var:"var(--color-chart-3)",bg:"bg-chart-3",text:"text-chart-3"},{index:4,name:"Vermillion",var:"var(--color-chart-4)",bg:"bg-chart-4",text:"text-chart-4"},{index:5,name:"Blue",var:"var(--color-chart-5)",bg:"bg-chart-5",text:"text-chart-5"},{index:6,name:"Reddish purple",var:"var(--color-chart-6)",bg:"bg-chart-6",text:"text-chart-6"},{index:7,name:"Yellow",var:"var(--color-chart-7)",bg:"bg-chart-7",text:"text-chart-7"},{index:8,name:"Gray",var:"var(--color-chart-8)",bg:"bg-chart-8",text:"text-chart-8"}];function Hi(e){return`var(--color-chart-${(Math.trunc(e)%Nt+Nt)%Nt+1})`}function Bi(e,t="bg"){const s=(Math.trunc(e)%Nt+Nt)%Nt;return`${t}-chart-${s+1}`}function ca(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=ca(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function da(){for(var e,t,r=0,s="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=ca(e))&&(s&&(s+=" "),s+=t);return s}const Ui=(e,t)=>{const r=new Array(e.length+t.length);for(let s=0;s<e.length;s++)r[s]=e[s];for(let s=0;s<t.length;s++)r[e.length+s]=t[s];return r},Gi=(e,t)=>({classGroupId:e,validator:t}),ua=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),br="-",$n=[],Ki="arbitrary..",Yi=e=>{const t=Xi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return qi(i);const c=i.split(br),u=c[0]===""&&c.length>1?1:0;return fa(c,u,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const u=s[i],d=r[i];return u?d?Ui(d,u):u:d||$n}return r[i]||$n}}},fa=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const a=e[t],o=r.nextPart.get(a);if(o){const d=fa(e,t+1,o);if(d)return d}const i=r.validators;if(i===null)return;const c=t===0?e.join(br):e.slice(t).join(br),u=i.length;for(let d=0;d<u;d++){const f=i[d];if(f.validator(c))return f.classGroupId}},qi=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),s=t.slice(0,r);return s?Ki+s:void 0})(),Xi=e=>{const{theme:t,classGroups:r}=e;return Ji(r,t)},Ji=(e,t)=>{const r=ua();for(const s in e){const a=e[s];ws(a,r,s,t)}return r},ws=(e,t,r,s)=>{const a=e.length;for(let o=0;o<a;o++){const i=e[o];Zi(i,t,r,s)}},Zi=(e,t,r,s)=>{if(typeof e=="string"){Qi(e,t,r);return}if(typeof e=="function"){el(e,t,r,s);return}tl(e,t,r,s)},Qi=(e,t,r)=>{const s=e===""?t:ma(t,e);s.classGroupId=r},el=(e,t,r,s)=>{if(rl(e)){ws(e(s),t,r,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Gi(r,e))},tl=(e,t,r,s)=>{const a=Object.entries(e),o=a.length;for(let i=0;i<o;i++){const[c,u]=a[i];ws(u,ma(t,c),r,s)}},ma=(e,t)=>{let r=e;const s=t.split(br),a=s.length;for(let o=0;o<a;o++){const i=s[o];let c=r.nextPart.get(i);c||(c=ua(),r.nextPart.set(i,c)),r=c}return r},rl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,sl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),s=Object.create(null);const a=(o,i)=>{r[o]=i,t++,t>e&&(t=0,s=r,r=Object.create(null))};return{get(o){let i=r[o];if(i!==void 0)return i;if((i=s[o])!==void 0)return a(o,i),i},set(o,i){o in r?r[o]=i:a(o,i)}}},ms="!",Cn=":",nl=[],En=(e,t,r,s,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:s,isExternal:a}),al=e=>{const{prefix:t,experimentalParseClassName:r}=e;let s=a=>{const o=[];let i=0,c=0,u=0,d;const f=a.length;for(let k=0;k<f;k++){const w=a[k];if(i===0&&c===0){if(w===Cn){o.push(a.slice(u,k)),u=k+1;continue}if(w==="/"){d=k;continue}}w==="["?i++:w==="]"?i--:w==="("?c++:w===")"&&c--}const b=o.length===0?a:a.slice(u);let p=b,h=!1;b.endsWith(ms)?(p=b.slice(0,-1),h=!0):b.startsWith(ms)&&(p=b.slice(1),h=!0);const g=d&&d>u?d-u:void 0;return En(o,h,p,g)};if(t){const a=t+Cn,o=s;s=i=>i.startsWith(a)?o(i.slice(a.length)):En(nl,!1,i,void 0,!0)}if(r){const a=s;s=o=>r({className:o,parseClassName:a})}return s},ol=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,s)=>{t.set(r,1e6+s)}),r=>{const s=[];let a=[];for(let o=0;o<r.length;o++){const i=r[o],c=i[0]==="[",u=t.has(i);c||u?(a.length>0&&(a.sort(),s.push(...a),a=[]),s.push(i)):a.push(i)}return a.length>0&&(a.sort(),s.push(...a)),s}},il=e=>A({cache:sl(e.cacheSize),parseClassName:al(e),sortModifiers:ol(e),postfixLookupClassGroupIds:ll(e)},Yi(e)),ll=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let s=0;s<r.length;s++)t[r[s]]=!0;return t},cl=/\s+/,dl=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:a,sortModifiers:o,postfixLookupClassGroupIds:i}=t,c=[],u=e.trim().split(cl);let d="";for(let f=u.length-1;f>=0;f-=1){const b=u[f],{isExternal:p,modifiers:h,hasImportantModifier:g,baseClassName:k,maybePostfixModifierPosition:w}=r(b);if(p){d=b+(d.length>0?" "+d:d);continue}let v=!!w,y;if(v){const C=k.substring(0,w);y=s(C);const S=y&&i[y]?s(k):void 0;S&&S!==y&&(y=S,v=!1)}else y=s(k);if(!y){if(!v){d=b+(d.length>0?" "+d:d);continue}if(y=s(k),!y){d=b+(d.length>0?" "+d:d);continue}v=!1}const N=h.length===0?"":h.length===1?h[0]:o(h).join(":"),$=g?N+ms:N,E=$+y;if(c.indexOf(E)>-1)continue;c.push(E);const j=a(y,v);for(let C=0;C<j.length;++C){const S=j[C];c.push($+S)}d=b+(d.length>0?" "+d:d)}return d},ul=(...e)=>{let t=0,r,s,a="";for(;t<e.length;)(r=e[t++])&&(s=pa(r))&&(a&&(a+=" "),a+=s);return a},pa=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=pa(e[s]))&&(r&&(r+=" "),r+=t);return r},fl=(e,...t)=>{let r,s,a,o;const i=u=>{const d=t.reduce((f,b)=>b(f),e());return r=il(d),s=r.cache.get,a=r.cache.set,o=c,c(u)},c=u=>{const d=s(u);if(d)return d;const f=dl(u,r);return a(u,f),f};return o=i,(...u)=>o(ul(...u))},ml=[],we=e=>{const t=r=>r[e]||ml;return t.isThemeGetter=!0,t},ba=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ha=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pl=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,bl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hl=/\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$/,xl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rt=e=>pl.test(e),ce=e=>!!e&&!Number.isNaN(Number(e)),We=e=>!!e&&Number.isInteger(Number(e)),ts=e=>e.endsWith("%")&&ce(e.slice(0,-1)),Ge=e=>bl.test(e),xa=()=>!0,yl=e=>hl.test(e)&&!xl.test(e),ks=()=>!1,wl=e=>gl.test(e),kl=e=>vl.test(e),jl=e=>!Y(e)&&!X(e),Nl=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Sl=e=>xt(e,ya,ks),Y=e=>ba.test(e),wt=e=>xt(e,wa,yl),Tn=e=>xt(e,Ml,ce),$l=e=>xt(e,ja,xa),Cl=e=>xt(e,ka,ks),An=e=>xt(e,ga,ks),El=e=>xt(e,va,kl),ir=e=>xt(e,Na,wl),X=e=>ha.test(e),Wt=e=>Ct(e,wa),Tl=e=>Ct(e,ka),In=e=>Ct(e,ga),Al=e=>Ct(e,ya),Il=e=>Ct(e,va),lr=e=>Ct(e,Na,!0),Rl=e=>Ct(e,ja,!0),xt=(e,t,r)=>{const s=ba.exec(e);return s?s[1]?t(s[1]):r(s[2]):!1},Ct=(e,t,r=!1)=>{const s=ha.exec(e);return s?s[1]?t(s[1]):r:!1},ga=e=>e==="position"||e==="percentage",va=e=>e==="image"||e==="url",ya=e=>e==="length"||e==="size"||e==="bg-size",wa=e=>e==="length",Ml=e=>e==="number",ka=e=>e==="family-name",ja=e=>e==="number"||e==="weight",Na=e=>e==="shadow",Dl=()=>{const e=we("color"),t=we("font"),r=we("text"),s=we("font-weight"),a=we("tracking"),o=we("leading"),i=we("breakpoint"),c=we("container"),u=we("spacing"),d=we("radius"),f=we("shadow"),b=we("inset-shadow"),p=we("text-shadow"),h=we("drop-shadow"),g=we("blur"),k=we("perspective"),w=we("aspect"),v=we("ease"),y=we("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...$(),X,Y],j=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],S=()=>[X,Y,u],M=()=>[rt,"full","auto",...S()],L=()=>[We,"none","subgrid",X,Y],D=()=>["auto",{span:["full",We,X,Y]},We,X,Y],R=()=>[We,"auto",X,Y],I=()=>["auto","min","max","fr",X,Y],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...S()],H=()=>[rt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],B=()=>[rt,"screen","full","dvw","lvw","svw","min","max","fit",...S()],ae=()=>[rt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],W=()=>[e,X,Y],P=()=>[...$(),In,An,{position:[X,Y]}],K=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oe=()=>["auto","cover","contain",Al,Sl,{size:[X,Y]}],ne=()=>[ts,Wt,wt],de=()=>["","none","full",d,X,Y],J=()=>["",ce,Wt,wt],ee=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>[ce,ts,In,An],U=()=>["","none",g,X,Y],Z=()=>["none",ce,X,Y],q=()=>["none",ce,X,Y],ie=()=>[ce,X,Y],ke=()=>[rt,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ge],breakpoint:[Ge],color:[xa],container:[Ge],"drop-shadow":[Ge],ease:["in","out","in-out"],font:[jl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ge],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ge],shadow:[Ge],spacing:["px",ce],text:[Ge],"text-shadow":[Ge],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rt,Y,X,w]}],container:["container"],"container-type":[{"@container":["","normal","size",X,Y]}],"container-named":[Nl],columns:[{columns:[ce,Y,X,c]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[We,"auto",X,Y]}],basis:[{basis:[rt,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ce,rt,"auto","initial","none",Y]}],grow:[{grow:["",ce,X,Y]}],shrink:[{shrink:["",ce,X,Y]}],order:[{order:[We,"first","last","none",X,Y]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[c,"screen",...H()]}],"min-w":[{"min-w":[c,"screen","none",...H()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,Wt,wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Rl,$l]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ts,Y]}],"font-family":[{font:[Tl,Cl,t]}],"font-features":[{"font-features":[Y]}],"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:[a,X,Y]}],"line-clamp":[{"line-clamp":[ce,"none",X,Tn]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",X,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[ce,"from-font","auto",X,wt]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[ce,"auto",X,Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[We,X,Y]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,Y]}],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",X,Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:K()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},We,X,Y],radial:["",X,Y],conic:[We,X,Y]},Il,El]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ce,X,Y]}],"outline-w":[{outline:["",ce,Wt,wt]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",f,lr,ir]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",b,lr,ir]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[ce,wt]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",p,lr,ir]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[ce,X,Y]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"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":[ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"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":$()}],"mask-image-conic-pos":[{"mask-conic":[ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:K()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,Y]}],filter:[{filter:["","none",X,Y]}],blur:[{blur:U()}],brightness:[{brightness:[ce,X,Y]}],contrast:[{contrast:[ce,X,Y]}],"drop-shadow":[{"drop-shadow":["","none",h,lr,ir]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",ce,X,Y]}],"hue-rotate":[{"hue-rotate":[ce,X,Y]}],invert:[{invert:["",ce,X,Y]}],saturate:[{saturate:[ce,X,Y]}],sepia:[{sepia:["",ce,X,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",X,Y]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[ce,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[ce,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ce,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ce,X,Y]}],"backdrop-invert":[{"backdrop-invert":["",ce,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[ce,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[ce,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",ce,X,Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ce,"initial",X,Y]}],ease:[{ease:["linear","initial",v,X,Y]}],delay:[{delay:[ce,X,Y]}],animate:[{animate:["none",y,X,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,X,Y]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[X,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],zoom:[{zoom:[We,X,Y]}],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"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",X,Y]}],"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":W()}],"scrollbar-track-color":[{"scrollbar-track":W()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",X,Y]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[ce,Wt,wt,Tn]}],stroke:[{stroke:["none",...W()]}],"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"]}},_l=fl(Dl);function x(...e){return _l(da(e))}const Rn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Mn=da,Ll=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return Mn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(d=>{const f=r==null?void 0:r[d],b=o==null?void 0:o[d];if(f===null)return null;const p=Rn(f)||Rn(b);return a[d][p]}),c=r&&Object.entries(r).reduce((d,f)=>{let[b,p]=f;return p===void 0||(d[b]=p),d},{}),u=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((d,f)=>{let g=f,{class:b,className:p}=g,h=V(g,["class","className"]);return Object.entries(h).every(k=>{let[w,v]=k;return Array.isArray(v)?v.includes(A(A({},o),c)[w]):A(A({},o),c)[w]===v})?[...d,b,p]:d},[]);return Mn(e,i,u,r==null?void 0:r.class,r==null?void 0:r.className)},xe=(e,t)=>{const r=Ll(e,t);return(s=>{const a=r(s);return x(a)})};function js(...e){return t=>{for(const r of e)r&&(typeof r=="function"?r(t):r.current=t)}}class Fe{static create(t,r="ease-in-out"){const s={fast:{value:"150ms",ms:150,tailwind:"duration-150"},base:{value:"200ms",ms:200,tailwind:"duration-200"},slow:{value:"300ms",ms:300,tailwind:"duration-300"},slower:{value:"500ms",ms:500,tailwind:"duration-500"}},a={"ease-in":{value:"cubic-bezier(0.4, 0, 1, 1)",tailwind:"ease-in",description:"Slow start, fast end"},"ease-out":{value:"cubic-bezier(0, 0, 0.2, 1)",tailwind:"ease-out",description:"Fast start, slow end"},"ease-in-out":{value:"cubic-bezier(0.4, 0, 0.2, 1)",tailwind:"ease-in-out",description:"Slow start and end, fast middle"},spring:{value:"cubic-bezier(0.68, -0.55, 0.265, 1.55)",tailwind:"ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]",description:"Spring-like bounce effect"}};return{duration:s[t],easing:a[r]}}static createTransition(t,r="base",s="ease-in-out"){const a=this.create(r,s),o=Array.isArray(t)?t.join(", "):t,i=[a.duration.tailwind,a.easing.tailwind].join(" ");return{property:o,duration:a.duration.value,timingFunction:a.easing.value,tailwind:i}}}const Fl={fast:Fe.create("fast"),base:Fe.create("base"),slow:Fe.create("slow"),slower:Fe.create("slower"),colors:Fe.createTransition(["color","background-color","border-color"],"base"),opacity:Fe.createTransition("opacity","fast"),transform:Fe.createTransition("transform","base"),all:Fe.createTransition("all","base")};function Pl(e,t){return Fe.create(e,t)}function Ne(e,t="ease-in-out"){const r=Fe.create(e,t);return`${r.duration.tailwind} ${r.easing.tailwind}`}function Ol(e,t="base",r="ease-in-out"){return Fe.createTransition(e,t,r).tailwind}class Le{static create(t){return{base:{value:0,tailwind:"z-0",description:"Base layer for normal content"},dropdown:{value:1e3,tailwind:"z-[1000]",description:"Dropdown menus and select options"},sticky:{value:1020,tailwind:"z-[1020]",description:"Sticky headers and navigation"},fixed:{value:1030,tailwind:"z-[1030]",description:"Fixed position elements"},"modal-backdrop":{value:1040,tailwind:"z-[1040]",description:"Modal backdrop/overlay"},modal:{value:1050,tailwind:"z-[1050]",description:"Modal dialogs and drawers"},popover:{value:1060,tailwind:"z-[1060]",description:"Popovers and tooltips"},tooltip:{value:1070,tailwind:"z-[1070]",description:"Tooltips (highest priority)"},toast:{value:1080,tailwind:"z-[1080]",description:"Toast notifications (highest priority)"}}[t]}}const Dn={base:Le.create("base"),dropdown:Le.create("dropdown"),sticky:Le.create("sticky"),fixed:Le.create("fixed"),"modal-backdrop":Le.create("modal-backdrop"),modal:Le.create("modal"),popover:Le.create("popover"),tooltip:Le.create("tooltip"),toast:Le.create("toast")};function zl(e){return Le.create(e)}function ve(e){return Le.create(e).tailwind}class Sa{static create(t){const r=t/100,s={0:"Fully transparent",5:"Very light overlay",10:"Light overlay",20:"Subtle overlay",25:"Quarter opacity",30:"Light background",40:"Semi-transparent",50:"Half opacity",60:"Semi-opaque",70:"Mostly opaque",75:"Three-quarter opacity",80:"High opacity",90:"Very high opacity",95:"Nearly opaque",100:"Fully opaque"};return{value:t,decimal:r,tailwind:{0:"opacity-0",5:"opacity-5",10:"opacity-10",20:"opacity-20",25:"opacity-25",30:"opacity-30",40:"opacity-40",50:"opacity-50",60:"opacity-60",70:"opacity-70",75:"opacity-75",80:"opacity-80",90:"opacity-90",95:"opacity-95",100:"opacity-100"}[t],description:s[t]}}}function Vl(e){return Sa.create(e)}function Wl(e){return Sa.create(e).tailwind}var cr={exports:{}},Ht={};var _n;function Hl(){if(_n)return Ht;_n=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(s,a,o){var i=null;if(o!==void 0&&(i=""+o),a.key!==void 0&&(i=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:s,key:i,ref:a!==void 0?a:null,props:o}}return Ht.Fragment=t,Ht.jsx=r,Ht.jsxs=r,Ht}var Bt={};var Ln;function Bl(){return Ln||(Ln=1,process.env.NODE_ENV!=="production"&&(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===D?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case w:return"Fragment";case y:return"Profiler";case v:return"StrictMode";case j:return"Suspense";case C:return"SuspenseList";case L:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case k:return"Portal";case $:return P.displayName||"Context";case N:return(P._context.displayName||"Context")+".Consumer";case E:var K=P.render;return P=P.displayName,P||(P=K.displayName||K.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case S:return K=P.displayName||null,K!==null?K:e(P.type)||"Memo";case M:K=P._payload,P=P._init;try{return e(P(K))}catch(oe){}}return null}function t(P){return""+P}function r(P){try{var K=!1}catch(de){K=!0}if(K){K=console;var oe=K.error,ne=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return oe.call(K,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),t(P)}}function s(P){if(P===w)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===M)return"<...>";try{var K=e(P);return K?"<"+K+">":"<...>"}catch(oe){return"<...>"}}function a(){var P=R.A;return P===null?null:P.getOwner()}function o(){return Error("react-stack-top-frame")}function i(P){if(I.call(P,"key")){var K=Object.getOwnPropertyDescriptor(P,"key").get;if(K&&K.isReactWarning)return!1}return P.key!==void 0}function c(P,K){function oe(){z||(z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",K))}oe.isReactWarning=!0,Object.defineProperty(P,"key",{get:oe,configurable:!0})}function u(){var P=e(this.type);return H[P]||(H[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function d(P,K,oe,ne,de,J){var ee=oe.ref;return P={$$typeof:g,type:P,key:K,props:oe,_owner:ne},(ee!==void 0?ee:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:u}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function f(P,K,oe,ne,de,J){var ee=K.children;if(ee!==void 0)if(ne)if(_(ee)){for(ne=0;ne<ee.length;ne++)b(ee[ne]);Object.freeze&&Object.freeze(ee)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else b(ee);if(I.call(K,"key")){ee=e(P);var te=Object.keys(K).filter(function(U){return U!=="key"});ne=0<te.length?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}",W[ee+ne]||(te=0<te.length?"{"+te.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,ne,ee,te,ee),W[ee+ne]=!0)}if(ee=null,oe!==void 0&&(r(oe),ee=""+oe),i(K)&&(r(K.key),ee=""+K.key),"key"in K){oe={};for(var Q in K)Q!=="key"&&(oe[Q]=K[Q])}else oe=K;return ee&&c(oe,typeof P=="function"?P.displayName||P.name||"Unknown":P),d(P,ee,oe,a(),de,J)}function b(P){p(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===M&&(P._payload.status==="fulfilled"?p(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function p(P){return typeof P=="object"&&P!==null&&P.$$typeof===x}var h=l,x=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),$=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),D=Symbol.for("react.client.reference"),R=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,_=Array.isArray,O=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(P){return P()}};var z,H={},B=h.react_stack_bottom_frame.bind(h,o)(),ae=O(s(o)),W={};Bt.Fragment=w,Bt.jsx=function(P,K,oe){var ne=1e4>R.recentlyCreatedOwnerStacks++;return f(P,K,oe,!1,ne?Error("react-stack-top-frame"):B,ne?O(s(P)):ae)},Bt.jsxs=function(P,K,oe){var ne=1e4>R.recentlyCreatedOwnerStacks++;return f(P,K,oe,!0,ne?Error("react-stack-top-frame"):B,ne?O(s(P)):ae)}})()),Bt}var Fn;function Ul(){return Fn||(Fn=1,process.env.NODE_ENV==="production"?cr.exports=Hl():cr.exports=Bl()),cr.exports}var n=Ul();const $a=l.createContext(void 0);function Ca({children:e,defaultTheme:t="light",storageKey:r="theme"}){const[s,a]=l.useState(()=>{if(typeof window=="undefined")return t;try{const d=localStorage.getItem(r);if(d==="light"||d==="dark")return d}catch(d){console.warn("Failed to read theme from localStorage:",d)}return t});l.useEffect(()=>{if(typeof window!="undefined"){try{localStorage.setItem(r,s)}catch(d){console.warn("Failed to save theme to localStorage:",d)}typeof document!="undefined"&&(document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(s))}},[s,r]);const u={theme:s,toggleTheme:()=>{a(d=>d==="light"?"dark":"light")},setTheme:d=>{a(d)},colors:s==="light"?Xt:Nr,isDark:s==="dark"};return n.jsx($a.Provider,{value:u,children:e})}function Gl(){const e=l.useContext($a);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}const Kl={breakpoints:Sr,spacing:jr,typography:$t,animations:Fl,features:{reducedMotion:!1,highContrast:!1,debug:!1},behavior:{defaultAnimationDuration:200,defaultTransitionDuration:150,focusVisible:!0}},Ea=l.createContext(void 0);function Ta({children:e,config:t,strategy:r="default"}){const s=l.useMemo(()=>{const d=A({},Kl);return t?F(A(A({},d),t),{breakpoints:t.breakpoints||d.breakpoints,spacing:t.spacing||d.spacing,typography:t.typography||d.typography,animations:t.animations||d.animations,features:A(A({},d.features),t.features),behavior:A(A({},d.behavior),t.behavior)}):d},[t]);l.useEffect(()=>{typeof document!="undefined"&&(s.features.reducedMotion?document.documentElement.style.setProperty("--motion-reduce","1"):document.documentElement.style.removeProperty("--motion-reduce"))},[s.features.reducedMotion]),l.useEffect(()=>{typeof document!="undefined"&&(s.features.highContrast?document.documentElement.classList.add("high-contrast"):document.documentElement.classList.remove("high-contrast"))},[s.features.highContrast]);const a=l.useMemo(()=>d=>s.spacing[d],[s.spacing]),o=l.useMemo(()=>d=>s.breakpoints[d],[s.breakpoints]),i=l.useMemo(()=>d=>{var f;return(f=s.features[d])!=null?f:!1},[s.features]),c=l.useMemo(()=>d=>{console.warn("ConfigProvider: updateConfig called but config is immutable. Consider using state management for dynamic updates.")},[]),u={config:s,getSpacing:a,getBreakpoint:o,isFeatureEnabled:i,updateConfig:c};return n.jsx(Ea.Provider,{value:u,children:e})}function Yl(){const e=l.useContext(Ea);if(e===void 0)throw new Error("useConfig must be used within a ConfigProvider");return e}const $r=l.createContext(void 0);function Ns(){const e=l.useContext($r);if(!e)throw new Error("Toast components must be used within a ToastProvider");return e}function ql(){return l.useContext($r)}function Aa({children:e,defaultDuration:t=5e3,maxToasts:r=5}){const[s,a]=l.useState([]),o=l.useCallback(d=>{var p;const f=`toast-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,b=F(A({},d),{id:f,duration:(p=d.duration)!=null?p:t});return a(h=>[b,...h].slice(0,r)),f},[t,r]),i=l.useCallback(d=>{a(f=>f.filter(b=>b.id!==d))},[]),c=l.useCallback(()=>{a([])},[]),u={toasts:s,addToast:o,removeToast:i,clearAll:c};return n.jsx($r.Provider,{value:u,children:e})}const Cr=l.createContext(void 0);function Et(){const e=l.useContext(Cr);if(!e)throw new Error("Dialog components must be used within a Dialog component");return e}function Xl(){return l.useContext(Cr)}function Jt(e){const t=l.useRef(null),r=l.useRef(null);l.useEffect(()=>{var s;if(e)return r.current!==null&&(clearTimeout(r.current),r.current=null),t.current=(s=document.activeElement)!=null?s:null,()=>{const a=t.current;r.current=setTimeout(()=>{a==null||a.focus(),r.current=null},0)}},[e])}function Ss({children:e,open:t,defaultOpen:r=!1,onOpenChange:s,titleId:a,descriptionId:o}){const[i,c]=l.useState(r),[u,d]=l.useState(0),[f,b]=l.useState(0),p=l.useCallback(()=>(d(v=>v+1),()=>d(v=>v-1)),[]),h=l.useCallback(()=>(b(v=>v+1),()=>b(v=>v-1)),[]),x=t!==void 0?t:i,k=v=>{t===void 0&&c(v),s==null||s(v)};Jt(x),l.useEffect(()=>(x?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[x]);const w={isOpen:x,onOpenChange:k,onClose:()=>k(!1),titleId:a,descriptionId:o,hasTitle:u>0,hasDescription:f>0,registerTitle:p,registerDescription:h};return n.jsx(Cr.Provider,{value:w,children:e})}const Jl={ThemeProvider:Ca,ConfigProvider:Ta,ToastProvider:Aa,DialogProvider:Ss},dr=Jl;function Zl(e,t){const{theme:r,config:s,toast:a,dialog:o,providers:i={theme:!0,config:!0,toast:!0,dialog:!0}}=t||{};let c=e;return i.dialog&&(c=n.jsx(dr.DialogProvider,F(A({},o),{children:c}))),i.toast&&(c=n.jsx(dr.ToastProvider,F(A({},a),{children:c}))),i.config&&(c=n.jsx(dr.ConfigProvider,F(A({},s),{children:c}))),i.theme&&(c=n.jsx(dr.ThemeProvider,F(A({},r),{children:c}))),c}function Ql({children:e,config:t}){const r=l.useMemo(()=>Zl(e,t),[e,t]);return n.jsx(n.Fragment,{children:r})}function ec(){return{}}class st{static create(t){const s={none:{px:0,tailwind:"rounded-none",description:"No border radius"},sm:{px:2,tailwind:"rounded-sm",description:"Small radius (2px) for subtle rounding"},md:{px:6,tailwind:"rounded-md",description:"Medium radius (6px) for buttons and inputs"},lg:{px:8,tailwind:"rounded-lg",description:"Large radius (8px) for cards and containers"},xl:{px:12,tailwind:"rounded-xl",description:"Extra large radius (12px) for prominent elements"},"2xl":{px:16,tailwind:"rounded-2xl",description:"2X large radius (16px) for large containers"},"3xl":{px:24,tailwind:"rounded-3xl",description:"3X large radius (24px) for very large containers"},full:{px:9999,tailwind:"rounded-full",description:"Full radius for circular elements"}}[t];return{value:s.px,rem:`${s.px/16}rem`,px:`${s.px}px`,tailwind:s.tailwind,description:s.description}}}const tc={none:st.create("none"),sm:st.create("sm"),md:st.create("md"),lg:st.create("lg"),xl:st.create("xl"),"2xl":st.create("2xl"),"3xl":st.create("3xl"),full:st.create("full")};function G(e){return tc[e].tailwind}function rc(s){var a=s,{variant:e="info",className:t}=a,r=V(a,["variant","className"]);const o={warning:g("bg-warning-bg","text-warning-dark","border-warning"),error:g("bg-error-bg","text-error-dark","border-error"),info:g("bg-info-bg","text-info-dark","border-info")};return n.jsx("div",A({role:"alert",className:g("border",m("base","px"),m("sm","py"),G("lg"),o[e],t)},r))}const sc={primary:{light:"text-indigo-400",DEFAULT:"text-fg-brand",dark:"text-indigo-600",contrast:"text-fg-inverse"},secondary:{light:"text-pink-300",DEFAULT:"text-fg-brand-secondary",dark:"text-pink-600",contrast:"text-fg-inverse"},success:{light:"text-green-300",DEFAULT:"text-fg-success",dark:"text-success-dark",contrast:"text-fg-inverse"},warning:{light:"text-yellow-300",DEFAULT:"text-fg-warning",dark:"text-warning-dark",contrast:"text-fg-inverse"},error:{light:"text-red-300",DEFAULT:"text-fg-error",dark:"text-error-dark",contrast:"text-fg-inverse"},info:{light:"text-blue-300",DEFAULT:"text-fg-info",dark:"text-info-dark",contrast:"text-fg-inverse"},neutral:{light:"text-fg-tertiary",DEFAULT:"text-fg-secondary",dark:"text-fg-primary",contrast:"text-fg-inverse"}};function nc(d,u){var f=d,{variant:e="paragraph",bold:t,italic:r,className:s,as:a,colorRole:o="neutral",colorShade:i="dark"}=f,c=V(f,["variant","bold","italic","className","as","colorRole","colorShade"]);const b=[];let p;if(a)p=a;else switch(e){case"heading":p="h2";break;case"list":p="li";break;default:p="p";break}return e==="heading"?b.push(be("h2")):e==="body"||e==="paragraph"?b.push(be("body")):e==="bodySmall"?b.push(be("bodySmall")):e==="bodyLarge"?b.push(be("bodyLarge")):e==="caption"?b.push(be("caption")):e==="label"?b.push(be("label")):b.push(be("body")),t&&b.push("font-bold"),r&&b.push("italic"),b.push(sc[o][i]),n.jsx(p,A({ref:u,className:g(...b,s)},c))}const Te=l.forwardRef(nc);const Ia=(...e)=>e.filter((t,r,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===r).join(" ").trim();const ac=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const oc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,s)=>s?s.toUpperCase():r.toLowerCase());const Pn=e=>{const t=oc(e);return t.charAt(0).toUpperCase()+t.slice(1)};var rs={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ic=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},lc=l.createContext({}),cc=()=>l.useContext(lc),dc=l.forwardRef((d,u)=>{var f=d,{color:e,size:t,strokeWidth:r,absoluteStrokeWidth:s,className:a="",children:o,iconNode:i}=f,c=V(f,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);var v,y,N;const{size:b=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,color:x="currentColor",className:k=""}=(v=cc())!=null?v:{},w=(s!=null?s:h)?Number(r!=null?r:p)*24/Number(t!=null?t:b):r!=null?r:p;return l.createElement("svg",A(A(F(A({ref:u},rs),{width:(y=t!=null?t:b)!=null?y:rs.width,height:(N=t!=null?t:b)!=null?N:rs.height,stroke:e!=null?e:x,strokeWidth:w,className:Ia("lucide",k,a)}),!o&&!ic(c)&&{"aria-hidden":"true"}),c),[...i.map(([$,E])=>l.createElement($,E)),...Array.isArray(o)?o:[o]])});const ue=(e,t)=>{const r=l.forwardRef((i,o)=>{var c=i,{className:s}=c,a=V(c,["className"]);return l.createElement(dc,A({ref:o,iconNode:t,className:Ia(`lucide-${ac(Pn(e))}`,`lucide-${e}`,s)},a))});return r.displayName=Pn(e),r};const uc=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],fc=ue("calendar",uc);const mc=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ra=ue("check",mc);const pc=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Er=ue("chevron-down",pc);const bc=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],qt=ue("chevron-left",bc);const hc=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],St=ue("chevron-right",hc);const gc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Tr=ue("circle-alert",gc);const xc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],hr=ue("circle-check",xc);const vc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],yc=ue("clock",vc);const wc=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],kc=ue("command",wc);const jc=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Nc=ue("download",jc);const Sc=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],$c=ue("ellipsis-vertical",Sc);const Cc=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ec=ue("eye-off",Cc);const Tc=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ac=ue("eye",Tc);const Ic=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Rc=ue("file",Ic);const Mc=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Dc=ue("funnel",Mc);const _c=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Lc=ue("grip-vertical",_c);const Fc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Pc=ue("info",Fc);const Oc=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ma=ue("loader-circle",Oc);const zc=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Vc=ue("menu",zc);const Wc=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],Hc=ue("panel-left-close",Wc);const Bc=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],Uc=ue("panel-left-open",Bc);const Gc=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ps=ue("search",Gc);const Kc=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Rt=ue("star",Kc);const Yc=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],qc=ue("triangle-alert",Yc);const Xc=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Jc=ue("upload",Xc);const Zc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ie=ue("x",Zc);function On(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qc(...e){return t=>{let r=!1;const s=e.map(a=>{const o=On(a,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let a=0;a<s.length;a++){const o=s[a];typeof o=="function"?o():On(e[a],null)}}}}function ed(...e){return Ee.useCallback(Qc(...e),e)}function td(e){const t=Ee.forwardRef((r,s)=>{var h;let p=r,{children:a}=p,o=V(p,["children"]),i=null,c=!1;const u=[];zn(a)&&typeof ur=="function"&&(a=ur(a._payload)),Ee.Children.forEach(a,x=>{var k;if(id(x)){c=!0;const w=x;let v="child"in w.props?w.props.child:w.props.children;zn(v)&&typeof ur=="function"&&(v=ur(v._payload)),i=nd(w,v),u.push((k=i==null?void 0:i.props)==null?void 0:k.children)}else u.push(x)}),i?i=Ee.cloneElement(i,void 0,u):!c&&Ee.Children.count(a)===1&&Ee.isValidElement(a)&&(i=a);const d=i?od(i):void 0,f=ed(s,d);if(!i){if(a||a===0)throw new Error(c?ud(e):dd(e));return a}const b=ad(o,(h=i.props)!=null?h:{});return i.type!==Ee.Fragment&&(b.ref=s?f:d),Ee.cloneElement(i,b)});return t.displayName=`${e}.Slot`,t}var Da=td("Slot"),_a=Symbol.for("radix.slottable");function rd(e){const t=r=>"child"in r?r.children(r.child):r.children;return t.displayName=`${e}.Slottable`,t.__radixId=_a,t}var sd=rd("Slottable"),nd=(e,t)=>{if("child"in e.props){const r=e.props.child;return Ee.isValidElement(r)?Ee.cloneElement(r,void 0,e.props.children(r.props.children)):null}return Ee.isValidElement(t)?t:null};function ad(e,t){const r=A({},t);for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?r[s]=(...c)=>{const u=o(...c);return a(...c),u}:a&&(r[s]=a):s==="style"?r[s]=A(A({},a),o):s==="className"&&(r[s]=[a,o].filter(Boolean).join(" "))}return A(A({},e),r)}function od(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function id(e){return Ee.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_a}var ld=Symbol.for("react.lazy");function zn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ld&&"_payload"in e&&cd(e._payload)}function cd(e){return typeof e=="object"&&e!==null&&"then"in e}var dd=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ud=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ur=Ee[" use ".trim().toString()];const fd=ge("motion-safe:animate-spin",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-8 w-8"},variant:{primary:"text-fg-brand",secondary:"text-fg-brand-secondary",neutral:"text-fg-secondary"}},defaultVariants:{size:"md",variant:"primary"}}),$s=l.memo(function(i){var c=i,{size:t="md",variant:r="primary",label:s,className:a=""}=c,o=V(c,["size","variant","label","className"]);return n.jsxs("div",F(A({className:g("inline-flex","items-center",a),role:"status","aria-label":s||"Loading","aria-live":"polite"},o),{children:[n.jsx(Ma,{className:g(fd({size:t,variant:r})),"aria-hidden":"true"}),s&&n.jsx("span",{className:g(m("sm","ml"),se("bodySmall"),"text-fg-secondary","sr-only"),children:s})]}))});$s.displayName="Spinner";const md=ge(g("inline-flex","items-center","justify-center",be("button").split(" ")[2]||"font-medium",G("md"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed"),{variants:{variant:{primary:g("bg-surface-brand-strong","text-fg-inverse","hover:opacity-90","focus:ring-line-brand"),secondary:g("bg-surface-secondary","text-fg-inverse","hover:opacity-90","focus:ring-line-secondary"),error:g("bg-error","text-fg-inverse","hover:opacity-90","focus:ring-error"),outline:g("border-2","border-line-default","bg-transparent","text-fg-primary","hover:bg-surface-hover","focus:ring-line-focus"),ghost:g("bg-transparent","text-fg-primary","hover:bg-surface-hover","focus:ring-line-focus"),iconOnly:g("bg-transparent","text-fg-primary","hover:bg-surface-hover","focus:ring-line-focus",m("none","p")),link:g("bg-transparent","text-fg-brand","underline-offset-4","hover:underline","focus:ring-line-focus")},size:{sm:g(m("md","px"),m("1.5","py"),se("bodySmall"),m("1.5","gap")),md:g(m("base","px"),m("sm","py"),se("body"),m("sm","gap")),lg:g(m("lg","px"),m("md","py"),se("bodyLarge"),m("2.5","gap"))}},compoundVariants:[{variant:"iconOnly",size:"sm",class:g("h-8","w-8",m("none","p"))},{variant:"iconOnly",size:"md",class:g("h-10","w-10",m("none","p"))},{variant:"iconOnly",size:"lg",class:g("h-12","w-12",m("none","p"))},{variant:"link",size:"sm",class:g(m("none","px"),m("none","py"))},{variant:"link",size:"md",class:g(m("none","px"),m("none","py"))},{variant:"link",size:"lg",class:g(m("none","px"),m("none","py"))}],defaultVariants:{variant:"primary",size:"md"}});function fr({children:e,position:t}){return e?n.jsx("span",{className:`inline-flex items-center ${t==="left"?m("none","mr"):m("none","ml")}`,children:e}):null}const re=l.memo(l.forwardRef(function(v,w){var y=v,{variant:t="primary",size:r="md",isLoading:s=!1,loadingText:a,loadingIcon:o,leftIcon:i,rightIcon:c,fullWidth:u=!1,asChild:d=!1,as:f,className:b="",disabled:p=!1,children:h,"aria-label":x}=y,k=V(y,["variant","size","isLoading","loadingText","loadingIcon","leftIcon","rightIcon","fullWidth","asChild","as","className","disabled","children","aria-label"]);typeof process!="undefined"&&process.env.NODE_ENV!=="production"&&d&&f!==void 0&&f!=="button"&&console.warn("[Button] `as` is ignored when `asChild` is true; the child element is used as the root. Drop one of the two props to silence this warning.");const N=d?Da:f!=null?f:"button",$=g(md({variant:t,size:r}),u&&"w-full",b),j=(t==="iconOnly"||!h&&(i||c))&&!x&&!h?"Button":x,C=t==="error"?"primary":t==="primary"||t==="secondary"?"neutral":"primary",S=r==="sm"?"sm":r==="lg"?"lg":"md",M=o||n.jsx($s,{size:S,variant:C}),L=!d&&(f===void 0||f==="button")&&!k.type?"button":void 0,D=A(A({className:$,disabled:p||s,"aria-busy":s,"aria-label":j,"aria-disabled":p||s},L?{type:L}:{}),k);return d?n.jsxs(N,F(A({ref:w},D),{children:[i&&n.jsx(fr,{position:"left",children:i}),n.jsx(sd,{children:h}),c&&n.jsx(fr,{position:"right",children:c})]})):n.jsx(N,F(A({ref:w},D),{children:s?n.jsxs(n.Fragment,{children:[M,a&&n.jsx("span",{className:m("sm","ml"),children:a}),!a&&h&&n.jsx("span",{className:`${m("sm","ml")} opacity-0`,children:h})]}):n.jsxs(n.Fragment,{children:[i&&n.jsx(fr,{position:"left",children:i}),h,c&&n.jsx(fr,{position:"right",children:c})]})}))}));re.displayName="Button";const pd=ge(g("w-full",G("md"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed"),{variants:{variant:{default:g("border-0","border-b-2","border-line-default","focus:border-line-focus"),outlined:g("border","border-line-default","focus:border-line-focus"),filled:g("bg-surface-muted","border-0","focus:bg-surface-base","focus:ring-2","focus:ring-line-focus")},size:{sm:g("h-8",se("bodySmall"),m("md","px")),md:g("h-10",se("body"),m("base","px")),lg:g("h-12",se("bodyLarge"),m("lg","px"))},state:{default:"",error:g("border-error","focus:border-error","focus:ring-error"),success:g("border-success","focus:border-success","focus:ring-success")}},defaultVariants:{variant:"outlined",size:"md",state:"default"}});function bd({error:e,success:t,helperText:r,errorId:s,helperId:a}){const o=g(m("xs","mt"),be("caption"),e&&"text-fg-error",t&&"text-fg-success",!e&&!t&&"text-fg-secondary"),i=r||(e?"Error":t?"Success":"");return n.jsx("div",{id:s||a,className:o,role:e||t?"alert":void 0,children:i})}const La=l.forwardRef(function(w,k){var v=w,{id:t,label:r,error:s=!1,success:a=!1,helperText:o,size:i="md",variant:c="outlined",leftIcon:u,rightIcon:d,rightSlot:f,className:b="",disabled:p=!1,type:h="text"}=v,x=V(v,["id","label","error","success","helperText","size","variant","leftIcon","rightIcon","rightSlot","className","disabled","type"]);typeof process!="undefined"&&process.env.NODE_ENV!=="production"&&r&&!t&&console.warn("[InputBase] `label` was provided without an `id`. The <label> cannot bind to the input (InputBase does not auto-generate an id — that needs a client hook). Pass an `id`, or use the interactive `Input` which auto-generates one.");const y=s?"error":a?"success":"default",N=s&&t?`${t}-error`:void 0,$=o&&t?`${t}-helper`:void 0,E=i==="sm"?"h-4 w-4":i==="lg"?"h-5 w-5":"h-4 w-4",j=i==="sm"?"top-2":i==="lg"?"top-3.5":"top-2.5",C=g(pd({variant:c,size:i,state:y}),u&&(i==="sm"?"pl-9":m(i==="lg"?"3xl":"2xl","pl")),(d||f)&&(i==="sm"?"pr-9":m(i==="lg"?"3xl":"2xl","pr")),b),S=g("block",be("label"),m("xs","mb"),p&&"opacity-50");return n.jsxs("div",{className:"w-full",children:[r&&n.jsx("label",{htmlFor:t,className:S,children:r}),n.jsxs("div",{className:"relative",children:[u&&n.jsx("div",{className:`absolute left-3 ${j} text-fg-secondary opacity-60 pointer-events-none`,children:n.jsx("div",{className:E,children:u})}),n.jsx("input",A({id:t,ref:k,type:h,className:C,disabled:p,"aria-invalid":s,"aria-required":x.required,"aria-describedby":N||$,suppressHydrationWarning:!0},x)),(d||f)&&n.jsx("div",{className:`absolute right-3 top-0 bottom-0 flex items-center ${m("xs","gap")}`,children:f!=null?f:n.jsx("div",{className:`text-fg-secondary opacity-60 pointer-events-none ${E}`,children:d})})]}),(s||a||o)&&n.jsx(bd,{error:s,success:a,helperText:o,errorId:N,helperId:$})]})});La.displayName="InputBase";const Re=l.memo(l.forwardRef(function(N,y){var $=N,{id:t,label:r,error:s=!1,success:a=!1,helperText:o,size:i="md",variant:c="outlined",leftIcon:u,rightIcon:d,showClearButton:f=!1,onClear:b,className:p="",disabled:h=!1,type:x="text",value:k,onChange:w}=$,v=V($,["id","label","error","success","helperText","size","variant","leftIcon","rightIcon","showClearButton","onClear","className","disabled","type","value","onChange"]);const E=l.useId(),j=t||`input-${E}`,[C,S]=l.useState(!1),M=x==="password",L=M&&C?"text":x,D=k!=null&&k!=="",R=f&&D&&!h,I=i==="sm"?"h-4 w-4":i==="lg"?"h-5 w-5":"h-4 w-4",_=B=>{var ae;if(B.stopPropagation(),b)b();else if(w){const W=(ae=B.currentTarget.closest(".relative"))==null?void 0:ae.querySelector("input");if(W){const P={target:W,currentTarget:W,bubbles:!0,cancelable:!0,defaultPrevented:!1,eventPhase:2,isTrusted:!1,nativeEvent:new Event("change"),preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},timeStamp:Date.now()};Object.defineProperty(P.target,"value",{value:"",writable:!0}),Object.defineProperty(P.currentTarget,"value",{value:"",writable:!0}),w(P)}}},O=()=>S(B=>!B),H=R||M||!!d?n.jsxs(n.Fragment,{children:[R&&n.jsx(re,{variant:"ghost",size:"sm",onClick:_,className:`h-auto ${m("xs","p")}`,"aria-label":"Clear input",children:n.jsx(Ie,{className:I})}),M&&n.jsx(re,{variant:"ghost",size:"sm",onClick:O,className:`h-auto ${m("xs","p")}`,"aria-label":C?"Hide password":"Show password",children:C?n.jsx(Ec,{className:I}):n.jsx(Ac,{className:I})}),d&&!R&&!M&&n.jsx("div",{className:`text-fg-secondary opacity-60 pointer-events-none ${I}`,children:d})]}):void 0;return n.jsx(La,A({ref:y,id:j,label:r,error:s,success:a,helperText:o,size:i,variant:c,leftIcon:u,rightSlot:H,className:p,disabled:h,type:L,value:k,onChange:w},v))}));Re.displayName="Input";function Fa({href:e,active:t}){return{isActive:l.useMemo(()=>t!==void 0?t:!1,[t]),NextLink:void 0}}const hd=ge(g("inline-flex","items-center","transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed","disabled:pointer-events-none","no-underline"),{variants:{variant:{default:g("text-fg-primary","hover:opacity-80","focus-visible:opacity-100","focus:ring-line-brand"),underline:g("text-fg-primary","hover:opacity-80","focus-visible:opacity-100","border-b-2","border-transparent","hover:border-current","focus:ring-line-brand"),background:g("text-fg-primary","hover:bg-surface-hover",G("md"),"focus:ring-line-brand")},size:{sm:g(m("sm","px"),m("xs","py"),se("bodySmall")),md:g(m("base","px"),m("sm","py"),se("body")),lg:g(m("lg","px"),m("md","py"),se("bodyLarge"))}},defaultVariants:{variant:"default",size:"md"},compoundVariants:[{variant:"underline",size:"sm",class:m("0.5","pb")},{variant:"underline",size:"md",class:m("xs","pb")},{variant:"underline",size:"lg",class:m("1.5","pb")},{variant:"background",size:"sm",class:m("xs","px")},{variant:"background",size:"md",class:m("sm","px")},{variant:"background",size:"lg",class:m("base","px")}]}),Ar=l.forwardRef(function(x,h){var k=x,{href:t,children:r,active:s,disabled:a=!1,variant:o="default",size:i="md",as:c,className:u,"aria-label":d,onClick:f,onKeyDown:b}=k,p=V(k,["href","children","active","disabled","variant","size","as","className","aria-label","onClick","onKeyDown"]);const w=l.useMemo(()=>s!==void 0?s:!1,[s]),{NextLink:v}=Fa({href:t,active:w}),y=c||v||"a",N=l.useMemo(()=>{if(!w)return"";switch(o){case"underline":return g("border-b-2","border-line-brand","text-fg-brand-emphasis");case"background":return g("bg-surface-brand-muted","text-fg-brand-emphasis");default:return g("text-fg-brand-emphasis","font-semibold")}},[w,o]),$=l.useCallback(C=>{if(a){C.preventDefault(),C.stopPropagation();return}f==null||f(C)},[a,f]),E=l.useCallback(C=>{if(a){(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),C.stopPropagation());return}b==null||b(C)},[a,b]),j=l.useMemo(()=>{const C=A({className:g(hd({variant:o,size:i}),N,a&&"opacity-50 cursor-not-allowed pointer-events-none",u),"aria-current":w?"page":void 0,"aria-disabled":a?!0:void 0,"aria-label":d,tabIndex:a?-1:void 0,onClick:$,onKeyDown:E,"data-active":w,"data-disabled":a},p);return v&&!c?F(A({},C),{href:a?void 0:t}):F(A({},C),{href:a?void 0:t})},[o,i,N,a,u,w,d,$,E,t,v,c,p]);return n.jsx(y,F(A({ref:h},j),{children:r}))});Ar.displayName="NavLink";const gd=ge(g("inline-flex","items-center","justify-center",Ae("label"),G("md"),"border"),{variants:{variant:{success:"",warning:"",error:"",info:"",neutral:"",primary:"",secondary:""},size:{sm:g(m("1.5","px"),m("0.5","py"),se("caption")),md:g(m("sm","px"),m("xs","py"),se("caption")),lg:g(m("sm","px"),m("xs","py"),se("bodySmall"))},style:{solid:"",outline:""}},compoundVariants:[{variant:"success",style:"solid",class:g("bg-success-bg","text-success-dark","border-success")},{variant:"warning",style:"solid",class:g("bg-warning-bg","text-warning-dark","border-warning")},{variant:"error",style:"solid",class:g("bg-error-bg","text-error-dark","border-error")},{variant:"info",style:"solid",class:g("bg-info-bg","text-info-dark","border-info")},{variant:"neutral",style:"solid",class:g("bg-surface-muted","text-fg-primary","border-line-default")},{variant:"primary",style:"solid",class:g("bg-surface-brand-subtle","text-fg-brand-emphasis","border-line-brand")},{variant:"secondary",style:"solid",class:g("bg-pink-300","text-fg-brand-secondary-emphasis","border-line-secondary")},{variant:"success",style:"outline",class:g("bg-transparent","border-success","text-fg-success")},{variant:"warning",style:"outline",class:g("bg-transparent","border-warning","text-fg-warning")},{variant:"error",style:"outline",class:g("bg-transparent","border-error","text-fg-error")},{variant:"info",style:"outline",class:g("bg-transparent","border-info","text-fg-info")},{variant:"neutral",style:"outline",class:g("bg-transparent","border-line-default","text-fg-secondary")},{variant:"primary",style:"outline",class:g("bg-transparent","border-line-brand","text-fg-brand")},{variant:"secondary",style:"outline",class:g("bg-transparent","border-line-secondary","text-fg-brand-secondary")}],defaultVariants:{variant:"neutral",size:"md",style:"solid"}}),Pa=l.memo(l.forwardRef(function(d,u){var f=d,{variant:t="neutral",size:r="md",style:s="solid",className:a="",children:o,"aria-label":i}=f,c=V(f,["variant","size","style","className","children","aria-label"]);const b=g(gd({variant:t,size:r,style:s}),a);let p;if(i)p=i;else if(typeof o=="string")p=o;else if(typeof o=="object"&&o!==null&&"props"in o){const h=o.props;h!=null&&h.children&&typeof h.children=="string"&&(p=h.children)}return n.jsx("span",F(A({ref:u,role:"status","aria-label":p,className:b},c),{children:o}))}));Pa.displayName="Badge";const xd=l.memo(function({error:t,success:r,helperText:s,errorId:a,helperId:o}){const i=l.useMemo(()=>g(m("xs","mt"),be("caption"),t&&"text-fg-error",r&&"text-fg-success",!t&&!r&&"text-fg-secondary"),[t,r]),c=l.useMemo(()=>s||(t?"Error":r?"Success":""),[s,t,r]);return n.jsx("div",{id:a||o,className:i,role:t||r?"alert":void 0,children:c})}),Ir=l.memo(l.forwardRef(function(x,h){var k=x,{options:t=[],optionGroups:r,placeholder:s,label:a,error:o=!1,success:i=!1,helperText:c,size:u="md",className:d="",disabled:f=!1,id:b}=k,p=V(k,["options","optionGroups","placeholder","label","error","success","helperText","size","className","disabled","id"]);const w=l.useId(),v=b||`select-${w}`,y=l.useMemo(()=>o?`${v}-error`:void 0,[o,v]),N=l.useMemo(()=>c?`${v}-helper`:void 0,[c,v]),$=l.useMemo(()=>"focus:border-line-focus",[]),E=l.useMemo(()=>"focus:border-error",[]),j=l.useMemo(()=>"focus:border-success",[]),C=l.useCallback(R=>R==="error"?E.replace("focus:border-","focus:ring-"):R==="success"?j.replace("focus:border-","focus:ring-"):$.replace("focus:border-","focus:ring-"),[E,j,$]),S=l.useMemo(()=>ge(g("block","w-full",G("md"),"border","bg-surface-base","transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed"),{variants:{size:{sm:g("h-8",se("bodySmall"),m("md","px")),md:g("h-10",se("body"),m("base","px")),lg:g("h-12",se("bodyLarge"),m("lg","px"))},state:{default:g("border-line-default",C()),error:g("border-error",C("error")),success:g("border-success",C("success"))}},defaultVariants:{size:"md",state:"default"}}),[C]),M=l.useMemo(()=>o?"error":i?"success":"default",[o,i]),L=l.useMemo(()=>g(S({size:u,state:M}),d),[S,u,M,d]),D=l.useMemo(()=>g("block",be("label"),m("xs","mb"),f&&"opacity-50"),[f]);return n.jsxs("div",{className:"w-full",children:[a&&n.jsx("label",{htmlFor:v,className:D,children:a}),n.jsxs("select",F(A({id:v,ref:h,className:L,disabled:f,"aria-invalid":o,"aria-required":p.required,"aria-describedby":y||N},p),{children:[s&&n.jsx("option",{value:"",disabled:!0,children:s}),r&&r.length>0?r.map((R,I)=>n.jsx("optgroup",{label:R.label,children:(R.options||[]).map(_=>n.jsx("option",{value:_.value,disabled:_.disabled,children:_.label},_.value))},I)):(t||[]).map(R=>n.jsx("option",{value:R.value,disabled:R.disabled,children:R.label},R.value))]})),(o||i||c)&&n.jsx(xd,{error:o,success:i,helperText:c,errorId:y,helperId:N})]})}));Ir.displayName="Select";const Oa=l.memo(l.forwardRef(function(f,d){var b=f,{error:t=!1,success:r=!1,resize:s="vertical",className:a="",label:o,helperText:i,id:c}=b,u=V(b,["error","success","resize","className","label","helperText","id"]);const p=l.useId(),h=c!=null?c:p,x=l.useMemo(()=>"focus:border-line-focus",[]),k=l.useMemo(()=>"focus:border-error",[]),w=l.useMemo(()=>t?k.replace("focus:border-","focus:ring-"):x.replace("focus:border-","focus:ring-"),[t,k,x]),v=l.useMemo(()=>({none:"resize-none",both:"resize",horizontal:"resize-x",vertical:"resize-y"}),[]),y=l.useMemo(()=>g("block","w-full",G("md"),m("base","px"),m("md","py"),"border",se("body"),"focus:outline-none","focus:ring-2","focus:ring-offset-2",v[s],g(t?"border-error":r?"border-success":"border-line-default",w),a),[s,v,t,r,w,a]),N=l.useMemo(()=>i?`${h}-helper`:void 0,[i,h]),$=l.useMemo(()=>N!=null?N:t?`${h}-error`:void 0,[N,t,h]),E=u["aria-label"],j=u["aria-labelledby"];l.useEffect(()=>{},[o,E,j,h]);const C=n.jsx("textarea",A({ref:d,id:h,className:y,"aria-invalid":t,"aria-describedby":$},u)),S=i?n.jsx("p",{id:N,className:g(m("xs","mt"),se("bodySmall"),t?"text-fg-error":r?"text-fg-success":"text-fg-secondary"),children:i}):null;return!o&&!S?C:n.jsxs("div",{className:"block w-full",children:[o&&n.jsx("label",{htmlFor:h,className:g("block",m("xs","mb"),se("label"),"font-medium","text-fg-primary"),children:o}),C,S]})}));Oa.displayName="Textarea";const vd=g("block",se("label"),Ae("label"),"text-fg-primary"),yd={default:"",required:g("after:content-['*']",`after:${m("0.5","ml")}`,"after:text-fg-error"),optional:g("after:content-['(optional)']",`after:${m("xs","ml")}`,"after:text-fg-tertiary","after:font-normal")},Pt=l.memo(l.forwardRef(function(i,o){var c=i,{variant:t="default",className:r="",children:s}=c,a=V(c,["variant","className","children"]);const u=g(vd,yd[t],r);return n.jsx("label",F(A({ref:o,className:u},a),{children:s}))}));Pt.displayName="Label";function za(a){var o=a,{message:e,id:t,className:r=""}=o,s=V(o,["message","id","className"]);const i=[m("xs","mt"),se("bodySmall"),"text-fg-error","flex","items-center",m("xs","gap")],c=g(...i,r);return n.jsxs("div",F(A({role:"alert",id:t,className:c,"aria-live":"polite"},s),{children:[n.jsx(Tr,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),n.jsx("span",{children:e})]}))}class He{static createWidth(t){const s={none:{px:0,tailwind:"border-0"},thin:{px:1,tailwind:"border"},base:{px:1,tailwind:"border"},medium:{px:2,tailwind:"border-2"},thick:{px:4,tailwind:"border-4"}}[t];return{value:s.px,px:`${s.px}px`,tailwind:s.tailwind}}static create(t,r="solid"){return{width:this.createWidth(t),style:r,description:`${t} ${r} border`}}}He.create("none"),He.create("thin"),He.create("base"),He.create("medium"),He.create("thick"),He.create("thin","dashed"),He.create("base","dashed"),He.create("thin","dotted"),He.create("base","dotted");function wd(e){return He.createWidth(e).tailwind}class kt{static create(t){return{none:{value:"none",tailwind:"shadow-none",description:"No shadow"},sm:{value:"0 1px 2px 0 rgb(0 0 0 / 0.05)",tailwind:"shadow-sm",description:"Small shadow for subtle elevation"},md:{value:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",tailwind:"shadow-md",description:"Medium shadow for cards and elevated elements"},lg:{value:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",tailwind:"shadow-lg",description:"Large shadow for modals and dropdowns"},xl:{value:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",tailwind:"shadow-xl",description:"Extra large shadow for prominent modals"},"2xl":{value:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",tailwind:"shadow-2xl",description:"2X large shadow for maximum elevation"},inner:{value:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",tailwind:"shadow-inner",description:"Inner shadow for inset elements"}}[t]}}const kd={none:kt.create("none"),sm:kt.create("sm"),md:kt.create("md"),lg:kt.create("lg"),xl:kt.create("xl"),"2xl":kt.create("2xl"),inner:kt.create("inner")};function he(e){return kd[e].tailwind}const Ot=l.forwardRef(function(f,d){var b=f,{content:t,children:r,position:s="top",delay:a=200,className:o="","aria-label":i,preservePositioning:c=!1}=b,u=V(b,["content","children","position","delay","className","aria-label","preservePositioning"]);const[p,h]=l.useState(!1),x=l.useRef(null),k=l.useRef(null),w=l.useRef(null),v=`tooltip-${l.useId()}`,y=()=>{const R=setTimeout(()=>{h(!0)},a);x.current=R},N=()=>{x.current&&(clearTimeout(x.current),x.current=null),h(!1)},$=()=>{h(!0)},E=()=>{h(!1)},j=R=>{var I;R.key==="Escape"&&(h(!1),(I=w.current)==null||I.blur())};l.useEffect(()=>()=>{x.current&&(clearTimeout(x.current),x.current=null)},[]),l.useEffect(()=>{if(!p)return;const R=I=>{k.current&&!k.current.contains(I.target)&&w.current&&!w.current.contains(I.target)&&h(!1)};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[p]);const C=R=>({top:"border-t-surface-inverse",bottom:"border-b-surface-inverse",left:"border-l-surface-inverse",right:"border-r-surface-inverse"})[R],S=ge(g("absolute",ve("tooltip"),m("sm","px"),m("xs","py"),se("caption"),"text-fg-inverse","bg-surface-inverse",G("md"),he("lg"),"whitespace-nowrap"),{variants:{position:{top:g("bottom-full","left-1/2","transform","-translate-x-1/2",m("sm","mb")),bottom:g("top-full","left-1/2","transform","-translate-x-1/2",m("sm","mt")),left:g("right-full","top-1/2","transform","-translate-y-1/2",m("sm","mr")),right:g("left-full","top-1/2","transform","-translate-y-1/2",m("sm","ml"))}},defaultVariants:{position:"top"}}),M=ge(g("absolute","w-0","h-0",wd("thick"),"border-transparent"),{variants:{position:{top:g("top-full","left-1/2","transform","-translate-x-1/2",C("top")),bottom:g("bottom-full","left-1/2","transform","-translate-x-1/2",C("bottom")),left:g("left-full","top-1/2","transform","-translate-y-1/2",C("left")),right:g("right-full","top-1/2","transform","-translate-y-1/2",C("right"))}},defaultVariants:{position:"top"}}),L=l.isValidElement(r)?(()=>{const R=r,I=R.props,_=I.ref;return l.cloneElement(R,{ref:js(w,_),"aria-describedby":p?v:I["aria-describedby"],onMouseEnter:O=>{var z;y(),(z=I.onMouseEnter)==null||z.call(I,O)},onMouseLeave:O=>{var z;N(),(z=I.onMouseLeave)==null||z.call(I,O)},onFocus:O=>{var z;$(),(z=I.onFocus)==null||z.call(I,O)},onBlur:O=>{var z;E(),(z=I.onBlur)==null||z.call(I,O)},onKeyDown:O=>{var z;j(O),(z=I.onKeyDown)==null||z.call(I,O)}})})():r,D=g(c?"static":"relative","inline-block",o);return n.jsxs("div",F(A({ref:d,className:D},u),{children:[L,p&&n.jsxs("div",{ref:k,id:v,className:g(S({position:s})),role:"tooltip","aria-live":"polite",children:[t,n.jsx("div",{className:g(M({position:s})),"aria-hidden":"true"})]})]}))});Ot.displayName="Tooltip";function Va(c){var u=c,{variant:e="text",width:t,height:r,lines:s=1,className:a="","aria-label":o}=u,i=V(u,["variant","width","height","lines","className","aria-label"]);const d=["motion-safe:animate-pulse","bg-surface-muted",G("sm")],f={text:"h-4",card:"h-32",list:"h-12",circle:G("full")},b=g(...d,f[e],a),p={};t&&(p.width=t),r&&(p.height=r);const h=o||`Loading ${e} content`;return e==="text"&&s>1?n.jsx("div",F(A({className:m("sm","space-y"),role:"status","aria-busy":"true","aria-label":h},i),{children:Array.from({length:s}).map((x,k)=>n.jsx("div",{className:b,style:k===s-1?{width:"75%"}:p,"aria-hidden":"true"},k))})):n.jsx("div",A({className:b,style:p,role:"status","aria-busy":"true","aria-label":h},i))}function jd({defaultOpen:e=!0,open:t,onOpenChange:r,storageKey:s}){const a=l.useCallback(()=>{if(s&&typeof window!="undefined"){const f=localStorage.getItem(s);if(f!==null)return f==="true"}return e},[e,s]),[o,i]=l.useState(a),c=t!==void 0?t:o;l.useEffect(()=>{s&&typeof window!="undefined"&&t===void 0&&localStorage.setItem(s,String(o))},[o,s,t]);const u=l.useCallback(f=>{t===void 0&&i(f),r==null||r(f)},[t,r]),d=l.useCallback(()=>{u(!c)},[c,u]);return{isOpen:c,toggle:d,setOpen:u}}const Cs=l.forwardRef(function(p,b){var h=p,{children:t,trigger:r,defaultOpen:s=!0,open:a,onOpenChange:o,disabled:i=!1,duration:c=200,storageKey:u,className:d=""}=h,f=V(h,["children","trigger","defaultOpen","open","onOpenChange","disabled","duration","storageKey","className"]);const{isOpen:x,toggle:k}=jd({defaultOpen:s,open:a,onOpenChange:o,storageKey:u}),w=l.useRef(null),[v,y]=l.useState(x?"auto":0);l.useEffect(()=>{w.current&&y(x?w.current.scrollHeight:0)},[x,t]),l.useEffect(()=>{if(!x||!w.current)return;const $=new ResizeObserver(()=>{w.current&&x&&y(w.current.scrollHeight)});return $.observe(w.current),()=>{$.disconnect()}},[x]);const N=`collapsible-content-${l.useId()}`;return n.jsxs("div",F(A({ref:b,className:d},f),{children:[r!==void 0&&n.jsx("button",{type:"button",onClick:k,onKeyDown:$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),i||k())},disabled:i,"aria-expanded":x,"aria-controls":N,"aria-disabled":i,className:g("w-full","text-left","focus:outline-none","focus:ring-2","focus:ring-line-brand","focus:ring-offset-2",G("md")),children:r}),n.jsx("div",{id:N,ref:w,style:{height:typeof v=="number"?`${v}px`:v,overflow:"hidden",transition:`height ${c}ms ease-in-out`},"aria-hidden":!x,children:n.jsx("div",{children:t})})]}))});Cs.displayName="Collapsible";const Rr=l.memo(l.forwardRef(function(b,f){var p=b,{id:t,label:r,error:s=!1,success:a=!1,helperText:o,className:i="",disabled:c=!1,indeterminate:u=!1}=p,d=V(p,["id","label","error","success","helperText","className","disabled","indeterminate"]);const h=l.useId(),x=t||`checkbox-${h}`,k=l.useMemo(()=>s?`${x}-error`:void 0,[s,x]),w=l.useMemo(()=>o?`${x}-helper`:void 0,[o,x]),v=l.useMemo(()=>"focus:border-line-focus",[]),y=l.useMemo(()=>"focus:border-error",[]),N=l.useMemo(()=>s?y.replace("focus:border-","focus:ring-"):v.replace("focus:border-","focus:ring-"),[s,y,v]),$=l.useMemo(()=>g("h-4","w-4",G("sm"),"border","border-line-default","text-fg-brand","focus:ring-2",N,"focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed","cursor-pointer",s&&"border-error",!s&&a&&"border-success",i),[N,s,a,i]),E=l.useMemo(()=>g(be("label"),m("sm","ml"),c?"opacity-50 cursor-not-allowed":"cursor-pointer"),[c]),j=l.useRef(null),C=l.useCallback(S=>{j.current=S,typeof f=="function"?f(S):f&&(f.current=S),S&&(S.indeterminate=u)},[f,u]);return l.useEffect(()=>{j.current&&(j.current.indeterminate=u)},[u]),n.jsxs("div",{className:g("flex","flex-col",m("sm","my")),children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("input",A({type:"checkbox",id:x,ref:C,className:$,disabled:c,"aria-invalid":s,"aria-describedby":k||w||void 0,"aria-label":r?void 0:"Checkbox"},d)),r&&n.jsx("label",{htmlFor:x,className:E,children:r})]}),(s||a||o)&&n.jsx("div",{id:k||w,className:g(m("xs","mt"),be("caption"),s?"text-fg-error":a?"text-fg-success":"text-fg-secondary"),role:s||a?"alert":void 0,children:s?o||"This field has an error":o})]})}));Rr.displayName="Checkbox";const Wa=l.memo(l.forwardRef(function(f,d){var b=f,{id:t,label:r,error:s=!1,success:a=!1,helperText:o,className:i="",disabled:c=!1}=b,u=V(b,["id","label","error","success","helperText","className","disabled"]);const p=l.useId(),h=t||`radio-${p}`,x=l.useMemo(()=>s?`${h}-error`:void 0,[s,h]),k=l.useMemo(()=>o?`${h}-helper`:void 0,[o,h]),w=l.useMemo(()=>"focus:border-line-focus",[]),v=l.useMemo(()=>"focus:border-error",[]),y=l.useMemo(()=>s?v.replace("focus:border-","focus:ring-"):w.replace("focus:border-","focus:ring-"),[s,v,w]),N=l.useMemo(()=>g("h-4","w-4","border","border-line-default","text-fg-brand","focus:ring-2",y,"focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed","cursor-pointer",s&&"border-error",!s&&a&&"border-success",i),[y,s,a,i]),$=l.useMemo(()=>g(be("label"),m("sm","ml"),c?"opacity-50 cursor-not-allowed":"cursor-pointer"),[c]);return n.jsxs("div",{className:g("flex","flex-col",m("sm","my")),children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("input",A({type:"radio",id:h,ref:d,className:N,disabled:c,"aria-invalid":s,"aria-describedby":x||k||void 0,"aria-label":r?void 0:"Radio button"},u)),r&&n.jsx("label",{htmlFor:h,className:$,children:r})]}),(s||a||o)&&n.jsx("div",{id:x||k,className:g(m("xs","mt"),be("caption"),s?"text-fg-error":a?"text-fg-success":"text-fg-secondary"),role:s||a?"alert":void 0,children:s?o||"This field has an error":o})]})}));Wa.displayName="Radio";const Ut={track:{sm:{w:"w-9",h:"h-5"},md:{w:"w-11",h:"h-6"},lg:{w:"w-14",h:"h-7"}},thumb:{sm:{w:"w-4",h:"h-4"},md:{w:"w-5",h:"h-5"},lg:{w:"w-6",h:"h-6"}},translate:{sm:"translate-x-4",md:"translate-x-5",lg:"translate-x-7"}};function Nd(e){return{track:`${Ut.track[e].w} ${Ut.track[e].h}`,thumb:`${Ut.thumb[e].w} ${Ut.thumb[e].h}`,translate:Ut.translate[e]}}const Sd=ge("w-full",{variants:{size:{sm:"h-1",md:"h-2",lg:"h-3"},variant:{primary:"bg-surface-muted",secondary:"bg-surface-muted",success:"bg-success-bg-emphasis",error:"bg-error-bg-emphasis",warning:"bg-warning-bg-emphasis",info:"bg-info-bg-emphasis"}},defaultVariants:{size:"md",variant:"primary"}}),Vn=ge("transition-all",{variants:{variant:{primary:"bg-surface-brand",secondary:"bg-surface-secondary",success:"bg-success",error:"bg-error",warning:"bg-warning",info:"bg-info"}},defaultVariants:{variant:"primary"}}),Es=l.forwardRef(function(b,f){var p=b,{value:t,max:r=100,variant:s="primary",size:a="md",showLabel:o=!1,label:i,"aria-label":c,className:u=""}=p,d=V(p,["value","max","variant","size","showLabel","label","aria-label","className"]);const h=t===void 0,x=h?void 0:Math.min(Math.max(t/r*100,0),100),k=c||(h?"Loading in progress":`Progress: ${x==null?void 0:x.toFixed(0)}%`);return n.jsxs("div",F(A({ref:f,className:g("w-full",u)},d),{children:[o&&(i||!h)&&n.jsxs("div",{className:g("flex","items-center","justify-between",m("xs","mb")),children:[i&&n.jsx("span",{className:g(se("bodySmall"),Ae("label"),"text-fg-primary"),children:i}),!h&&x!==void 0&&n.jsxs("span",{className:g(se("bodySmall"),"text-fg-secondary"),children:[x.toFixed(0),"%"]})]}),n.jsx("div",{role:"progressbar","aria-valuemin":h?void 0:0,"aria-valuemax":h?void 0:r,"aria-valuenow":h?void 0:t,"aria-label":k,"aria-busy":h,className:g("relative","w-full","overflow-hidden",Sd({size:a,variant:s}),G("full")),children:h?n.jsx("div",{className:g("absolute","top-0","left-0","bottom-0",Vn({variant:s}),G("full"),"motion-reduce:animate-none"),style:{width:"30%",animation:"progress-indeterminate 1.5s ease-in-out infinite"}}):n.jsx("div",{className:g("h-full",Vn({variant:s}),G("full"),"transition-all","duration-300","ease-out"),style:{width:`${x}%`},"aria-hidden":"true"})})]}))});Es.displayName="Progress";const Ha=l.memo(l.forwardRef(function(x,h){var k=x,{size:t="md",label:r,helperText:s,error:a=!1,success:o=!1,className:i="",disabled:c=!1,checked:u,defaultChecked:d,onChange:f,id:b}=k,p=V(k,["size","label","helperText","error","success","className","disabled","checked","defaultChecked","onChange","id"]);const w=u!==void 0,[v,y]=l.useState(d!=null?d:!1),N=w?!!u:v,$=l.useId(),E=b||`switch-${$}`,j=l.useMemo(()=>r?`${E}-label`:void 0,[r,E]),C=l.useMemo(()=>s?`${E}-helper`:void 0,[s,E]),S=l.useMemo(()=>Nd(t),[t]),M=l.useMemo(()=>"focus:border-line-focus".replace("focus:border-","focus:ring-"),[]),L=l.useMemo(()=>g("relative","inline-flex","shrink-0","cursor-pointer",G("full"),"border-2","border-transparent",Ne("base"),"focus:outline-none","focus:ring-2",M,"focus:ring-offset-2",S.track,N?"bg-surface-brand":"bg-surface-muted",a&&!N&&"border-error",!a&&o&&!N&&"border-success",c&&"opacity-50 cursor-not-allowed",i),[M,S.track,N,a,o,c,i]),D=l.useMemo(()=>g("pointer-events-none","inline-block",G("full"),"bg-surface-base","shadow","transform",Ne("base"),S.thumb,N?S.translate:"translate-x-0"),[S.thumb,S.translate,N]);return n.jsxs("div",{className:g("flex","items-start",m("md","gap")),children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("button",{type:"button",className:L,role:"switch","aria-checked":N,"aria-labelledby":j,"aria-describedby":C,disabled:c,onClick:l.useCallback(R=>{if(c)return;const I=!N;if(w||y(I),f){const _=F(A({},R),{target:F(A({},R.target),{checked:I}),currentTarget:F(A({},R.currentTarget),{checked:I})});f(_)}},[c,f,N,w]),onKeyDown:l.useCallback(R=>{if(c||R.key!=="Enter"&&R.key!==" ")return;R.preventDefault();const I=!N;if(w||y(I),f){const _=F(A({},R),{target:F(A({},R.target),{checked:I}),currentTarget:F(A({},R.currentTarget),{checked:I})});f(_)}},[c,f,N,w]),children:n.jsx("span",{className:D})}),n.jsx("input",A({ref:h,type:"checkbox",id:E,checked:N,onChange:f!=null?f:(()=>{}),disabled:c,className:"sr-only","aria-hidden":"true",tabIndex:-1},p))]}),(r||s)&&n.jsxs("div",{className:"flex-1",children:[r&&n.jsx("label",{id:j,htmlFor:E,className:g("block",se("bodySmall"),Ae("label"),a?"text-fg-error":"text-fg-primary",c?"opacity-50":"cursor-pointer"),children:r}),s&&n.jsx("p",{id:C,className:g(m("xs","mt"),se("bodySmall"),a?"text-fg-error":o?"text-fg-success":"text-fg-secondary"),children:s})]})]})}));Ha.displayName="Switch";const $d={horizontal:"w-full border-t",vertical:"h-full border-l self-stretch"},Cd={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"},Ts=l.memo(function(o){var i=o,{orientation:t="horizontal",variant:r="solid",className:s=""}=i,a=V(i,["orientation","variant","className"]);const c=g("border-0","border-line-default",$d[t],Cd[r],s);return t==="vertical"?n.jsx("div",A({className:c,role:"separator","aria-orientation":"vertical"},a)):n.jsx("hr",A({className:c,role:"separator","aria-orientation":"horizontal"},a))});Ts.displayName="Separator";const Ba=l.forwardRef(function(v,w){var y=v,{value:t,defaultValue:r,min:s=0,max:a=100,step:o=1,variant:i="single",size:c="md",disabled:u=!1,showValue:d=!1,marks:f=[],onChange:b,onValueChange:p,label:h,className:x=""}=y,k=V(y,["value","defaultValue","min","max","step","variant","size","disabled","showValue","marks","onChange","onValueChange","label","className"]);const N=l.useRef(null),$=l.useId(),E=l.useId(),j=l.useId(),[C,S]=l.useState(r||(i==="range"?[s,a]:s)),[M,L]=l.useState(!1),[D,R]=l.useState(null),I=t!==void 0,_=I?t:C,O=te=>(te-s)/(a-s)*100,z=te=>{if(!N.current)return s;const Q=N.current.getBoundingClientRect(),U=Math.max(0,Math.min(1,(te-Q.left)/Q.width)),Z=s+U*(a-s);return Math.round(Z/o)*o},H=(te,Q="min")=>{if(u)return;te.preventDefault(),L(!0),R(Q);const U=q=>{if(!N.current)return;const ie=z(q.clientX);B(ie,Q)},Z=()=>{L(!1),R(null),document.removeEventListener("mousemove",U),document.removeEventListener("mouseup",Z)};document.addEventListener("mousemove",U),document.addEventListener("mouseup",Z)},B=(te,Q="min")=>{const U=Math.max(s,Math.min(a,te));if(i==="range"){const[Z,q]=Array.isArray(_)?_:[s,a];let ie;Q==="min"?ie=[Math.min(U,q),q]:ie=[Z,Math.max(U,Z)],I||S(ie),b==null||b(ie),p==null||p(ie)}else I||S(U),b==null||b(U),p==null||p(U)},ae=te=>{if(u||M)return;const Q=z(te.clientX);B(Q)},W=()=>"focus:ring-line-brand ring-offset-2",P=ge(g("relative","cursor-pointer"),{variants:{size:{sm:"h-1",md:"h-2",lg:"h-3"},disabled:{true:"opacity-50 cursor-not-allowed",false:""}},defaultVariants:{size:"md",disabled:!1}}),K=ge(g("absolute","bg-surface-brand",G("full"),"border-2","border-white",he("md"),"cursor-grab","active:cursor-grabbing",Ne("base"),"-translate-x-1/2","-translate-y-1/2","top-1/2"),{variants:{size:{sm:"w-3 h-3",md:"w-4 h-4",lg:"w-5 h-5"},active:{true:W(),false:""}},defaultVariants:{size:"md",active:!1}}),oe=typeof _=="number"?_:_[0],ne=Array.isArray(_)?_[0]:s,de=Array.isArray(_)?_[1]:oe,J=O(ne),ee=O(de);return n.jsxs("div",F(A({ref:w,className:g("w-full",x)},k),{children:[n.jsxs("label",{id:$,className:g("block",se("bodySmall"),Ae("label"),"text-fg-primary",m("sm","mb")),children:[h,d&&n.jsx("span",{className:g(m("sm","ml"),"text-fg-secondary"),children:i==="range"?`${ne} - ${de}`:oe})]}),i==="range"&&n.jsxs(n.Fragment,{children:[n.jsx("span",{id:E,className:"sr-only",children:"minimum"}),n.jsx("span",{id:j,className:"sr-only",children:"maximum"})]}),n.jsxs("div",{ref:N,className:g(P({size:c,disabled:u}),"bg-surface-muted",G("full")),onClick:ae,role:i==="range"?void 0:"slider","aria-valuemin":i==="range"?void 0:s,"aria-valuemax":i==="range"?void 0:a,"aria-valuenow":i==="range"?void 0:oe,"aria-disabled":i==="range"?void 0:u,"aria-labelledby":i==="range"?void 0:$,children:[n.jsx("div",{className:g("absolute",P({size:c}),"bg-surface-brand",G("full"),Ne("base")),style:{left:`${J}%`,width:`${ee-J}%`}}),f.map(te=>{const Q=O(te);return n.jsx("div",{className:g("absolute","w-1","h-1","bg-line-strong",G("full"),"-translate-x-1/2"),style:{left:`${Q}%`,top:"50%",transform:"translate(-50%, -50%)"}},te)}),i==="range"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:g(K({size:c,active:D==="min"})),style:{left:`${J}%`},onMouseDown:te=>H(te,"min"),role:"slider","aria-valuemin":s,"aria-valuemax":de,"aria-valuenow":ne,"aria-labelledby":`${$} ${E}`}),n.jsx("div",{className:g(K({size:c,active:D==="max"})),style:{left:`${ee}%`},onMouseDown:te=>H(te,"max"),role:"slider","aria-valuemin":ne,"aria-valuemax":a,"aria-valuenow":de,"aria-labelledby":`${$} ${j}`})]}):n.jsx("div",{className:g(K({size:c,active:M})),style:{left:`${ee}%`},onMouseDown:te=>H(te)}),d&&!h&&n.jsx("div",{className:"absolute -top-6 left-0 right-0 flex justify-center",children:n.jsx("span",{className:g(se("caption"),"text-fg-secondary","bg-surface-overlay",m("sm","px"),m("xs","py"),G("md"),"shadow"),children:i==="range"?`${ne} - ${de}`:oe})})]})]}))});Ba.displayName="Slider";const Wn=ge(g("inline-flex","items-center","font-medium",G("full"),m("xs","gap")),{variants:{variant:{default:g("bg-surface-muted","text-fg-primary","border","border-line-default"),outlined:g("bg-transparent","text-fg-primary","border","border-line-default"),filled:g("bg-surface-brand-strong","text-fg-inverse","border","border-transparent")},size:{sm:g(m("xs","px"),m("xs","py"),se("caption")),md:g(m("sm","px"),m("xs","py"),se("bodySmall")),lg:g(m("md","px"),m("sm","py"),se("body"))},selected:{true:g("bg-surface-brand-strong","text-fg-inverse","border","border-line-brand"),false:""},disabled:{true:"opacity-50 cursor-not-allowed",false:""}},compoundVariants:[{selected:!0,variant:"default",class:""},{selected:!0,variant:"outlined",class:""},{selected:!0,variant:"filled",class:""}],defaultVariants:{variant:"default",size:"md",selected:!1,disabled:!1}}),As=l.forwardRef(function(t,r){const{children:s,variant:a="default",size:o="md",selected:i=!1,disabled:c=!1,className:u="","aria-label":d,tabIndex:f,asChild:b=!1}=t,h=(()=>{if(d)return d;if(typeof s=="string")return s;if(typeof s=="object"&&s!==null&&"props"in s){const S=s.props;if(S!=null&&S.children&&typeof S.children=="string")return S.children}})();if(b)return n.jsx(Da,{ref:r,className:g(Wn({variant:a,size:o,selected:i,disabled:c}),u),"aria-label":d,"aria-disabled":c||void 0,tabIndex:f,children:s});const{onRemove:x,onClick:k,count:w}=t,v=k!==void 0,y=v&&!c,N=S=>{c||(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),k==null||k())},$=w!==void 0,E=i||a==="filled",j=$?n.jsx("span",{"aria-hidden":v||void 0,className:g("inline-flex","items-center","justify-center","tabular-nums","leading-none",G("full"),m("xs","px"),m("0.5","py"),se("caption"),Ae("label"),E?g("bg-surface-base","text-fg-brand-emphasis"):g("bg-surface-brand-strong","text-fg-inverse")),children:w}):null,C=$&&h!==void 0?`${h}, ${w}`:h;return n.jsxs("div",{ref:r,className:g(Wn({variant:a,size:o,selected:i,disabled:c}),x&&m("xs","pr"),u),"aria-disabled":c,children:[v?n.jsx("button",{type:"button",onClick:c?void 0:k,onKeyDown:N,disabled:c,"aria-pressed":i?!0:void 0,"aria-label":d||C,tabIndex:f!==void 0?f:y?0:void 0,className:g("flex-1","bg-transparent","border-0",m("none","p"),"text-inherit","text-left","cursor-pointer","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-2",G("full")),children:s}):n.jsx("span",{children:s}),j,x&&!c&&n.jsx("button",{type:"button",onClick:S=>{S.stopPropagation(),x()},className:g(m("xs","ml"),"hover:bg-tint-hover",G("full"),m("xs","p"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-1"),"aria-label":`Remove ${h||"chip"}`,children:n.jsx(Ie,{className:"h-3 w-3","aria-hidden":"true"})})]})});As.displayName="Chip";const gr=l.forwardRef(function(f,d){var b=f,{src:t,alt:r,fallback:s,size:a="md",variant:o="circle","aria-label":i,className:c=""}=b,u=V(b,["src","alt","fallback","size","variant","aria-label","className"]);const[p,h]=l.useState(!1),[x,k]=l.useState(!1),w={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},v={circle:G("full"),square:G("none"),rounded:G("md")},y=!t||p,N=typeof s=="string"?s.toUpperCase().slice(0,2):s,$=i||r||"User avatar";return n.jsxs("div",F(A({ref:d,className:g("relative","inline-flex","items-center","justify-center","shrink-0","font-medium","overflow-hidden",w[a],v[o],"bg-surface-muted","text-fg-primary",c),role:"img","aria-label":$},u),{children:[!y&&t&&n.jsx("img",{src:t,alt:r||"",className:g("w-full","h-full","object-cover",v[o],x?"opacity-100":"opacity-0","transition-opacity","duration-200"),onLoad:()=>k(!0),onError:()=>{h(!0),k(!1)},"aria-hidden":"true"}),y&&n.jsx("span",{className:g("flex","items-center","justify-center","w-full","h-full",v[o]),"aria-hidden":"true",children:N||"?"})]}))});gr.displayName="Avatar";function Ed(c){var u=c,{children:e,max:t=3,size:r="md",variant:s="circle",spacing:a="md",className:o=""}=u,i=V(u,["children","max","size","variant","spacing","className"]);const d={none:"",sm:"-space-x-1",md:"-space-x-2",lg:"-space-x-3"},f=l.Children.toArray(e).filter(Boolean),b=f.slice(0,t),p=f.length-t;return n.jsxs("div",F(A({className:g("flex","items-center",d[a],o),role:"group","aria-label":`${f.length} avatars`},i),{children:[b.map((h,x)=>{let k=h;if(l.isValidElement(h)&&h.type===gr){const w=h.props;k=l.cloneElement(h,{size:w.size||r,variant:w.variant||s})}return n.jsx("div",{className:"ring-2 ring-surface-base",style:{zIndex:f.length-x},children:k},x)}),p>0&&n.jsx(gr,{size:r,variant:s,fallback:`+${p}`,"aria-label":`${p} more avatars`,className:"ring-2 ring-surface-base",style:{zIndex:0}})]}))}const Td=ge(g("inline-block",G("full")),{variants:{variant:{online:"",offline:"",pending:"",warning:"",error:"",info:""},size:{sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"}},compoundVariants:[{variant:"online",class:"bg-success"},{variant:"offline",class:"bg-status-neutral"},{variant:"pending",class:"bg-warning"},{variant:"warning",class:"bg-warning"},{variant:"error",class:"bg-error"},{variant:"info",class:"bg-info"}],defaultVariants:{variant:"offline",size:"md"}}),Ua=l.memo(l.forwardRef(function(c,i){var u=c,{variant:t="offline",size:r="md",className:s="","aria-label":a}=u,o=V(u,["variant","size","className","aria-label"]);const d=l.useMemo(()=>g(Td({variant:t,size:r}),s),[t,r,s]),f=l.useMemo(()=>a||{online:"Online",offline:"Offline",pending:"Pending",warning:"Warning",error:"Error",info:"Info"}[t],[a,t]);return n.jsx("span",A({ref:i,role:"status","aria-label":f,className:d},o))}));Ua.displayName="Dot";const Ad=ge(g("inline-flex","items-center","border",G("md")),{variants:{tone:{neutral:g("bg-surface-muted","text-fg-primary","border-line-default"),success:g("bg-success-bg","text-success-dark","border-success"),warning:g("bg-warning-bg","text-warning-dark","border-warning"),error:g("bg-error-bg","text-error-dark","border-error"),info:g("bg-info-bg","text-info-dark","border-info"),primary:g("bg-surface-brand-subtle","text-fg-brand-emphasis","border-line-brand"),secondary:g("bg-surface-secondary-subtle","text-fg-brand-secondary-emphasis","border-line-secondary"),dataviz:g("bg-dataviz-bg","text-dataviz-dark","border-dataviz")},size:{sm:g(m("1.5","px"),m("0.5","py"),m("0.5","gap"),"[&_svg]:size-3"),md:g(m("sm","px"),m("0.5","py"),m("xs","gap"),"[&_svg]:size-3.5")}},defaultVariants:{tone:"neutral",size:"md"}}),Ga=l.memo(l.forwardRef(function(d,u){var f=d,{label:t,source:r,tone:s="neutral",size:a="md",icon:o,className:i=""}=f,c=V(f,["label","source","tone","size","icon","className"]);const b=r!=null&&r!=="",p=a==="sm"?"caption":"bodySmall";return n.jsxs("span",F(A({ref:u,className:g(Ad({tone:s,size:a}),i)},c),{children:[o?n.jsx("span",{className:"inline-flex shrink-0 items-center","aria-hidden":"true",children:o}):null,n.jsx("span",{className:g(se(p),Ae("label")),children:t}),b?n.jsxs(n.Fragment,{children:[n.jsx("span",{"aria-hidden":"true",className:se("caption"),children:"·"}),n.jsx("span",{className:g(se("caption"),Ae("caption")),children:r})]}):null]}))}));Ga.displayName="DataBadge";function Id(s){var a=s,{children:e,className:t}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:g("grid items-start",m("1.5","gap"),m("base","mb"),"[&:has([data-card-actions])]:grid-cols-[1fr_auto]","[&:has([data-card-actions])>[data-card-actions]]:row-span-full",t)},r),{children:e}))}function Rd(i){var c=i,{children:e,icon:t,badge:r,as:s="h2",className:a}=c,o=V(c,["children","icon","badge","as","className"]);return n.jsxs(s,F(A({className:g("text-base font-semibold text-fg-primary","flex items-center",m("sm","gap"),a)},o),{children:[t?n.jsx("span",{className:"shrink-0 inline-flex",children:t}):null,n.jsx("span",{children:e}),r?n.jsx("span",{className:"inline-flex",children:r}):null]}))}function Md(s){var a=s,{children:e,className:t}=a,r=V(a,["children","className"]);return n.jsx("p",F(A({className:g("text-sm text-fg-secondary",t)},r),{children:e}))}function Dd(s){var a=s,{children:e,className:t}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({"data-card-actions":"",className:g("flex items-center self-start",m("sm","gap"),t)},r),{children:e}))}function _d(s){var a=s,{children:e,className:t}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:g(t)},r),{children:e}))}function Ld(d){var f=d,{variant:e="default",padding:t="medium",className:r="",onClick:s,"aria-label":a,"aria-labelledby":o,asSection:i=!1,children:c}=f,u=V(f,["variant","padding","className","onClick","aria-label","aria-labelledby","asSection","children"]);typeof process!="undefined"&&process.env.NODE_ENV!=="production"&&i&&!a&&!o&&console.warn("[Card] `asSection={true}` requires an accessible name. Pass `aria-labelledby` pointing to your Card.Title `id`, or `aria-label`. A <section> without a name is an anonymous landmark that hurts screen-reader navigation.");const b=ge(g("bg-surface-base",G("lg"),"border","border-line-default",he("sm")),{variants:{variant:{default:"",hover:g(`hover:${he("md")}`,"transition-shadow","cursor-pointer"),selected:g("border-line-brand",he("md"))},padding:{none:"",small:m("xs","p"),medium:m("base","p"),large:m("lg","p")}},defaultVariants:{variant:"default",padding:"medium"}}),p=s!==void 0,h=p?"button":void 0,x=p?0:void 0,k=g(b({variant:e,padding:t}),r),v=A({className:k,role:h,tabIndex:x,onClick:s,onKeyDown:p?y=>{p&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),s==null||s())}:void 0,"aria-label":a,"aria-labelledby":o},u);return i?n.jsx("section",F(A({},v),{children:c})):n.jsx("div",F(A({},v),{children:c}))}const Ka=l.memo(Ld);Ka.displayName="Card";const ht=Ka;ht.Header=Id;ht.Title=Rd;ht.Subtitle=Md;ht.Actions=Dd;ht.Body=_d;const Fd={start:"items-start text-left",center:"items-center text-center"},Pd={neutral:"text-fg-tertiary",success:"text-fg-success",warning:"text-fg-warning",error:"text-fg-error"};function Od(u){var d=u,{value:e,label:t,hint:r,icon:s,align:a="start",tone:o="neutral",className:i}=d,c=V(d,["value","label","hint","icon","align","tone","className"]);const f=e==null;return n.jsxs("div",F(A({className:g("bg-surface-base flex-1 flex flex-col",m("base","p"),m("xs","gap-y"),Fd[a],i)},c),{children:[s?n.jsx("span",{className:"text-icon-default inline-flex",children:s}):null,f?n.jsx("span",{"aria-label":"No data",className:"text-fg-tertiary text-2xl font-semibold leading-tight",children:"—"}):n.jsx("span",{className:"text-fg-primary text-2xl font-semibold leading-tight",children:e}),n.jsx("span",{className:"text-fg-secondary text-sm",children:t}),r?n.jsx("span",{className:g("text-xs",Pd[o]),children:r}):null]}))}const zd={2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4"};function Vd(i){var c=i,{layout:e="grid",cols:t=4,floatingBadge:r,className:s,children:a}=c,o=V(c,["layout","cols","floatingBadge","className","children"]);const u=e==="grid";return n.jsxs("div",F(A({className:g("relative",r&&m("base","pt"),s)},o),{children:[r?n.jsx("div",{className:"absolute top-4 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10",children:r}):null,n.jsx("div",{className:g("bg-line-default border border-line-default overflow-hidden gap-px",G("lg"),u?`grid grid-cols-2 ${zd[t]}`:"flex"),children:a})]}))}function Wd(o){var i=o,{label:e,children:t,wrap:r=!0,className:s}=i,a=V(i,["label","children","wrap","className"]);const u=!(a["aria-label"]!=null||a["aria-labelledby"]!=null)&&typeof e=="string"&&e!==""?e:void 0;return n.jsxs("div",F(A({role:"group","aria-label":u,className:g("flex items-center",r?"flex-wrap":"flex-nowrap",m("sm","gap"),s)},a),{children:[e?n.jsx("span",{className:"shrink-0 text-fg-secondary text-sm",children:e}):null,t]}))}function Ya(e){const t=l.createContext(void 0);t.displayName=e.displayName;function r({value:o,children:i}){return n.jsx(t.Provider,{value:o,children:i})}function s(){const o=l.useContext(t);if(o===void 0)throw new Error(e.errorMessage);return o}function a(){return l.useContext(t)}return{Context:t,Provider:r,useContextRequired:s,useContextOptional:a}}const Mr=Ya({displayName:"FormContext",errorMessage:"useFormContext must be used within a Form component with react-hook-form integration"}),Hd=Mr.Context,Bd=Mr.Provider;function Is(){return Mr.useContextRequired()}function Ud(){return Mr.useContextOptional()}function qa({form:e,loading:t=!1,children:r}){const s={form:e,loading:t};return n.jsx(Bd,{value:s,children:r})}function Gd(c){var u=c,{children:e,onSubmit:t,loading:r=!1,error:s=null,success:a=null,className:o=""}=u,i=V(u,["children","onSubmit","loading","error","success","className"]);const d=g(m("lg","gap"),"flex","flex-col",o);if("form"in i&&i.form!==void 0){const k=i,{form:v,onSubmit:y,onSubmitError:N}=k,$=V(k,["form","onSubmit","onSubmitError"]),E=v.handleSubmit(j=>or(null,null,function*(){if(!r)try{yield y(j)}catch(C){N==null||N(C)}}),j=>{N==null||N(j)});return n.jsx(qa,{form:v,loading:r,children:n.jsxs("form",F(A({className:d,onSubmit:E,noValidate:!0},$),{children:[e,s&&n.jsx("div",{role:"alert",className:g(m("md","p"),Se("sm"),"text-error-dark","bg-error-bg","border","border-error",G("md")),children:s}),a&&n.jsx("div",{role:"alert",className:g(m("md","p"),Se("sm"),"text-success-dark","bg-success-bg","border","border-success",G("md")),children:a})]}))})}const b=i.onSubmit||t,w=i,{onSubmit:p}=w,h=V(w,["onSubmit"]),x=v=>{v.preventDefault(),b&&!r&&(b==null||b(v))};return n.jsxs("form",F(A({className:d,onSubmit:x,noValidate:!0},h),{children:[e,s&&n.jsx("div",{role:"alert",className:g(m("md","p"),Se("sm"),"text-error-dark","bg-error-bg","border","border-error",G("md")),children:s}),a&&n.jsx("div",{role:"alert",className:g(m("md","p"),Se("sm"),"text-success-dark","bg-success-bg","border","border-success",G("md")),children:a})]}))}var Kd=e=>e.type==="checkbox",Yd=e=>e instanceof Date,Be=e=>e==null;const qd=e=>typeof e=="object";var Ze=e=>!Be(e)&&!Array.isArray(e)&&qd(e)&&!Yd(e),Xd=e=>{const t=e.constructor&&e.constructor.prototype;return Ze(t)&&t.hasOwnProperty("isPrototypeOf")},Rs=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function at(e){if(e instanceof Date)return new Date(e);const t=typeof FileList!="undefined"&&e instanceof FileList;if(Rs&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(Ze(e)&&Xd(e)))return e;const s=r?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(s[a]=at(e[a]));return s}const _t={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ke={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Jd="root",Xa=["__proto__","constructor","prototype"];var Ms=e=>/^\w*$/.test(e),Xe=e=>e===void 0,Ds=e=>e.split(/[.[\]'"]/g).filter(Boolean),Pe=(e,t,r)=>{if(!t||!Ze(e))return r;const s=Ms(t)?[t]:Ds(t);if(s.some(o=>Xa.includes(o)))return r;const a=s.reduce((o,i)=>Be(o)?void 0:o[i],e);return Xe(a)||a===e?Xe(e[t])?r:e[t]:a},Ja=e=>typeof e=="boolean",Zd=e=>typeof e=="function",xr=(e,t,r)=>{let s=-1;const a=Ms(t)?[t]:Ds(t),o=a.length,i=o-1;for(;++s<o;){const c=a[s];let u=r;if(s!==i){const d=e[c];u=Ze(d)||Array.isArray(d)?d:isNaN(+a[s+1])?{}:[]}if(Xa.includes(c))return;e[c]=u,e=e[c]}};const Za=l.createContext(null);Za.displayName="HookFormControlContext";const Qd=()=>l.useContext(Za),eu=Rs?l.useLayoutEffect:l.useEffect;var Ye=e=>typeof e=="string";const tu=l.createContext(null);tu.displayName="HookFormContext";var ru=(e,t,r,s,a)=>t?F(A({},r[e]),{types:F(A({},r[e]&&r[e].types?r[e].types:{}),{[s]:a||!0})}):{},su=e=>Array.isArray(e)?e.filter(Boolean):[],qe=e=>Array.isArray(e)?e:[e],vr=e=>Ze(e)&&!Object.keys(e).length,nu=e=>e.type==="file",au=e=>{if(!Rs)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ou=e=>e.type==="radio";function iu(e,t){const r=t.slice(0,-1).length;let s=0;for(;s<r;){if(Be(e)){e=void 0;break}e=e[t[s]],s++}return e}function lu(e){for(const t in e)if(e.hasOwnProperty(t)&&!Xe(e[t]))return!1;return!0}function Qa(e,t){if(Ye(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const r=Array.isArray(t)?t:Ms(t)?[t]:Ds(t),s=r.length===1?e:iu(e,r),a=r.length-1,o=r[a];return s&&delete s[o],a!==0&&(Ze(s)&&vr(s)||Array.isArray(s)&&lu(s))&&Qa(e,r.slice(0,-1)),e}var eo=e=>e instanceof RegExp,mr=e=>({isOnSubmit:!e||e===_t.onSubmit,isOnBlur:e===_t.onBlur,isOnChange:e===_t.onChange,isOnAll:e===_t.all,isOnTouch:e===_t.onTouched}),cu=(e,t,r)=>t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(`${s}.`));const bs=(e,t,r,s)=>{for(const o of Object.keys(e)){const i=Pe(e,o);if(i){const a=i,{_f:c}=a,u=V(a,["_f"]);if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],o))return!0;if(c.ref&&t(c.ref,c.name))return!0;if(bs(u,t))break}else if(Ze(u)&&bs(u,t))break}}};var du=(e,t,r)=>{const s=Pe(e,r),a=Array.isArray(s)?s:[];return xr(a,Jd,t[r]),xr(e,r,a),e};function Hn(e,t,r="validate"){if(Ye(e)||Array.isArray(e)&&e.every(Ye)||Ja(e)&&!e)return{type:r,message:Ye(e)?e:"",ref:t}}var Mt=e=>Ze(e)&&!eo(e)?e:{value:e,message:""},uu=(e,t,r,s,a,o)=>or(null,null,function*(){const{ref:i,refs:c,required:u,maxLength:d,minLength:f,min:b,max:p,pattern:h,validate:x,name:k,valueAsNumber:w,mount:v}=e._f,y=Pe(r,k);if(!v||t.has(k))return{};const N=c?c[0]:i,$=M=>{if(a&&N.reportValidity){const L=Ja(M)?"":M||"";c?c.forEach(D=>D.setCustomValidity(L)):N.setCustomValidity(L),N.reportValidity()}},E={};ou(i),Kd(i);const j=(w||nu(i))&&Xe(i.value)&&Xe(y)||au(i)&&i.value===""||y===""||Array.isArray(y)&&!y.length,C=ru.bind(null,k,s,E),S=(M,L,D,R=Ke.maxLength,I=Ke.minLength)=>{const _=M?L:D;E[k]=A({type:M?R:I,message:_,ref:i},C(M?R:I,_))};if(!Array.isArray(y)||!y.length){const{value:M,message:L}=Ye(u)?{value:!!u,message:u}:Mt(u);if(M&&(E[k]=A({type:Ke.required,message:L,ref:N},C(Ke.required,L)),!s))return $(L),E}if(!j&&(!Be(b)||!Be(p))){let M,L;const D=Mt(p),R=Mt(b);if(!Be(y)&&!isNaN(y)){const I=i.valueAsNumber||y&&+y;Be(D.value)||(M=I>D.value),Be(R.value)||(L=I<R.value)}else{const I=i.valueAsDate||new Date(y),_=H=>new Date(new Date().toDateString()+" "+H),O=i.type=="time",z=i.type=="week";Ye(D.value)&&y&&(M=O?_(y)>_(D.value):z?y>D.value:I>new Date(D.value)),Ye(R.value)&&y&&(L=O?_(y)<_(R.value):z?y<R.value:I<new Date(R.value))}if((M||L)&&(S(!!M,D.message,R.message,Ke.max,Ke.min),!s))return $(E[k].message),E}if((d||f)&&!j&&(Ye(y)||Array.isArray(y))){const M=Mt(d),L=Mt(f),D=!Be(M.value)&&y.length>+M.value,R=!Be(L.value)&&y.length<+L.value;if((D||R)&&(S(D,M.message,L.message),!s))return $(E[k].message),E}if(h&&!j&&Ye(y)){const{value:M,message:L}=Mt(h);if(eo(M)&&!y.match(M)&&(E[k]=A({type:Ke.pattern,message:L,ref:i},C(Ke.pattern,L)),!s))return $(L),E}if(x){if(Zd(x)){const M=yield x(y,r),L=Hn(M,N);if(L&&(E[k]=A(A({},L),C(Ke.validate,L.message)),!s))return $(L.message),E}else if(Ze(x)){let M={};for(const L in x){if(!vr(M)&&!s)break;const D=Hn(yield x[L](y,r),N,L);D&&(M=A(A({},D),C(L,D.message)),$(D.message),s&&(E[k]=M))}if(!vr(M)&&(E[k]=A({ref:N},M),!s))return E}}return $(!0),E}),nt=()=>{if(typeof crypto!="undefined"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance=="undefined"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(Math.random()*16+e)%16|0;return(t=="x"?r:r&3|8).toString(16)})},ss=(e,t,r={})=>r.shouldFocus||Xe(r.shouldFocus)?r.focusName||`${e}.${Xe(r.focusIndex)?t:r.focusIndex}.`:"",ns=(e,t)=>[...e,...qe(t)],as=e=>Array.isArray(e)?e.map(()=>{}):void 0;function os(e,t,r){return[...e.slice(0,t),...qe(r),...e.slice(t)]}var is=(e,t,r)=>Array.isArray(e)?(Xe(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],ls=(e,t)=>[...qe(t),...qe(e)];function fu(e,t){let r=0;const s=[...e];for(const a of t)s.splice(a-r,1),r++;return su(s).length?s:[]}var cs=(e,t)=>Xe(t)?[]:fu(e,qe(t).sort((r,s)=>r-s)),ds=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]},Bn=(e,t,r)=>(e[t]=r,e);function mu(e){const t=Qd(),{control:r=t,name:s,keyName:a="id",disabled:o,shouldUnregister:i,rules:c}=e,[u,d]=l.useState(o?[]:r._getFieldArray(s)),f=l.useRef(o?[]:r._getFieldArray(s).map(nt)),b=l.useRef(!1);o||r._names.array.add(s),l.useMemo(()=>!o&&c&&u.length>=0&&r.register(s,c),[r,s,u.length,c,o]),eu(()=>{if(!o)return r._subjects.array.subscribe({next:({values:E,name:j})=>{if(j===s||!j){const C=Pe(E,s);Array.isArray(C)?(d(C),f.current=C.map(nt)):j||(d([]),f.current=[])}}}).unsubscribe},[r,s,o]);const p=l.useCallback(E=>{b.current=!0,r._setFieldArray(s,E)},[r,s]),h=(E,j)=>{if(o)return;const C=qe(at(E)),S=ns(r._getFieldArray(s),C);r._names.focus=ss(s,S.length-1,j),f.current=ns(f.current,C.map(nt)),p(S),d(S),r._setFieldArray(s,S,ns,{argA:as(E)})},x=(E,j)=>{if(o)return;const C=qe(at(E)),S=ls(r._getFieldArray(s),C);r._names.focus=ss(s,0,j),f.current=ls(f.current,C.map(nt)),p(S),d(S),r._setFieldArray(s,S,ls,{argA:as(E)})},k=E=>{if(o)return;const j=cs(r._getFieldArray(s),E);f.current=cs(f.current,E),p(j),d(j),!Array.isArray(Pe(r._fields,s))&&xr(r._fields,s,void 0),r._setFieldArray(s,j,cs,{argA:E})},w=(E,j,C)=>{if(o)return;const S=qe(at(j)),M=os(r._getFieldArray(s),E,S);r._names.focus=ss(s,E,C),f.current=os(f.current,E,S.map(nt)),p(M),d(M),r._setFieldArray(s,M,os,{argA:E,argB:as(j)})},v=(E,j)=>{if(o)return;const C=r._getFieldArray(s);ds(C,E,j),ds(f.current,E,j),p(C),d(C),r._setFieldArray(s,C,ds,{argA:E,argB:j},!1)},y=(E,j)=>{if(o)return;const C=r._getFieldArray(s);is(C,E,j),is(f.current,E,j),p(C),d(C),r._setFieldArray(s,C,is,{argA:E,argB:j},!1)},N=(E,j)=>{if(o)return;const C=at(j),S=Bn(r._getFieldArray(s),E,C);f.current=[...S].map((M,L)=>!M||L===E?nt():f.current[L]),p(S),d([...S]),r._setFieldArray(s,S,Bn,{argA:E,argB:C},!0,!1)},$=E=>{if(o)return;const j=qe(at(E));f.current=j.map(nt),p([...j]),d([...j]),r._setFieldArray(s,[...j],C=>C,{},!0,!1)};return l.useEffect(()=>{if(o)return;r._state.action=!1,cu(s,r._names)&&r._subjects.state.next(A({},r._formState));const E=mr(r._options.mode);if(b.current&&(!E.isOnSubmit||r._formState.isSubmitted)&&!mr(r._options.reValidateMode).isOnSubmit&&!E.isOnBlur)if(r._options.resolver)r._runSchema([s]).then(j=>{r._updateIsValidating([s]);const C=Pe(j.errors,s),S=Pe(r._formState.errors,s);(S?!C&&S.type||C&&(S.type!==C.type||S.message!==C.message):C&&C.type)&&(C?xr(r._formState.errors,s,C):Qa(r._formState.errors,s),r._subjects.state.next({errors:r._formState.errors}))});else{const j=Pe(r._fields,s);j&&j._f&&!(mr(r._options.reValidateMode).isOnSubmit&&mr(r._options.mode).isOnSubmit)&&uu(j,r._names.disabled,r._formValues,r._options.criteriaMode===_t.all,r._options.shouldUseNativeValidation).then(C=>!vr(C)&&r._subjects.state.next({errors:du(r._formState.errors,C,s)}))}r._subjects.state.next({name:s,values:at(r._formValues)}),r._names.focus&&bs(r._fields,(j,C)=>{if(r._names.focus&&C.startsWith(r._names.focus)&&j.focus)return j.focus(),1}),r._names.focus="",r._setValid(),b.current=!1},[u,s,r,o]),l.useEffect(()=>(o||!Pe(r._formValues,s)&&r._setFieldArray(s),()=>{if(o)return;const E=!(r._options.shouldUnregister||i),j=(C,S)=>{const M=Pe(r._fields,C);M&&M._f&&(M._f.mount=S)};b.current&&E&&r._subjects.state.next({name:s,values:at(r._formValues)}),E?j(s,!1):r.unregister(s)}),[s,r,a,i,o]),{swap:l.useCallback(v,[p,s,r,o]),move:l.useCallback(y,[p,s,r,o]),prepend:l.useCallback(x,[p,s,r,o]),append:l.useCallback(h,[p,s,r,o]),remove:l.useCallback(k,[p,s,r,o]),insert:l.useCallback(w,[p,s,r,o]),update:l.useCallback(N,[p,s,r,o]),replace:l.useCallback($,[p,s,r,o]),fields:l.useMemo(()=>u.map((E,j)=>F(A({},E),{[a]:f.current[j]||nt()})),[u,a])}}function pu({name:e,label:t,children:r,rules:s,className:a=""}){var p;const{form:o}=Is();if(!o)throw new Error("FormField must be used within a Form component with react-hook-form integration");const{register:i,formState:{errors:c},watch:u}=o,d=i(e,s),f=(p=Pe(c,e))==null?void 0:p.message,b=u(e);return n.jsxs("div",{className:g("flex","flex-col",m("sm","gap"),a),children:[t&&n.jsx(Pt,{htmlFor:e,className:g("block",Se("sm"),Ft("medium"),"text-fg-primary"),children:t}),r({name:e,id:e,register:h=>i(h,s),error:f,value:b,onChange:d.onChange,onBlur:d.onBlur}),f&&n.jsx(za,{message:f})]})}function bu(e){const{form:t}=Is();if(!t)throw new Error("useFormFieldArray must be used within a Form component with react-hook-form integration");return mu(F(A({},e),{control:t.control}))}function to(a){var o=a,{items:e,separator:t="/",className:r=""}=o,s=V(o,["items","separator","className"]);const i=["flex","items-center",m("sm","space-x"),se("bodySmall")],c=g(...i,r);return n.jsx("nav",F(A({"aria-label":"Breadcrumb",className:c},s),{children:n.jsx("ol",{className:g("flex","items-center",m("sm","space-x")),children:e.map((u,d)=>{const f=d===e.length-1;return n.jsxs("li",{className:"flex items-center",children:[d>0&&n.jsx("span",{className:g(m("sm","mx"),"text-fg-tertiary"),"aria-hidden":"true",children:t}),f?n.jsx("span",{className:g("text-fg-primary",Ae("label")),"aria-current":"page",children:u.label}):u.href?n.jsx("a",{href:u.href,className:g("inline-flex","items-center",m("xs","px"),m("xs","pt"),"border-b-2","border-transparent",se("bodySmall"),Ae("label"),"transition-colors","text-fg-secondary","hover:border-line-emphasis","hover:text-fg-primary"),children:u.label}):n.jsx("span",{className:"text-fg-secondary",children:u.label})]},d)})})}))}function ro(u){var d=u,{currentPage:e,totalPages:t,onPageChange:r,totalItems:s,itemsPerPage:a,showPageInfo:o=!0,className:i=""}=d,c=V(d,["currentPage","totalPages","onPageChange","totalItems","itemsPerPage","showPageInfo","className"]);const f=()=>{e>1&&r(e-1)},b=()=>{e<t&&r(e+1)},p=v=>{v>=1&&v<=t&&v!==e&&r(v)},h=()=>{const v=[];if(t<=5)for(let N=1;N<=t;N++)v.push(N);else if(e<=3){for(let N=1;N<=4;N++)v.push(N);v.push("ellipsis"),v.push(t)}else if(e>=t-2){v.push(1),v.push("ellipsis");for(let N=t-3;N<=t;N++)v.push(N)}else{v.push(1),v.push("ellipsis");for(let N=e-1;N<=e+1;N++)v.push(N);v.push("ellipsis"),v.push(t)}return v},x=s&&a?(e-1)*a+1:void 0,k=s&&a?Math.min(e*a,s):void 0,w=g("flex","items-center","justify-between",m("base","px"),m("md","py"),i);return n.jsxs("nav",F(A({className:w,"aria-label":"Pagination"},c),{children:[n.jsxs("div",{className:g("flex","items-center",m("sm","gap")),children:[n.jsx(re,{variant:"secondary",onClick:f,disabled:e===1,size:"sm",children:"Previous"}),n.jsx("div",{className:g("flex","items-center",m("xs","gap")),children:h().map((v,y)=>{if(v==="ellipsis")return n.jsx("span",{className:g(m("sm","px"),"text-fg-tertiary"),children:"..."},`ellipsis-${y}`);const N=v,$=N===e;return n.jsx(re,{variant:$?"primary":"ghost",onClick:()=>p(N),size:"sm","aria-current":$?"page":void 0,"aria-label":`Go to page ${N}`,children:N},N)})}),n.jsx(re,{variant:"secondary",onClick:b,disabled:e===t,size:"sm",children:"Next"})]}),o&&s&&a&&n.jsxs("div",{className:g(Se("sm"),"text-fg-primary"),children:["Showing ",x," to ",k," of ",s," results"]})]}))}function so(u){var d=u,{title:e,message:t,actionLabel:r,onAction:s,illustration:a,variant:o="default",className:i=""}=d,c=V(d,["title","message","actionLabel","onAction","illustration","variant","className"]);const f=g("flex","flex-col","items-center","justify-center","text-center",m("xl","py"),m("base","px"),i),b=o==="withAction"||r&&s,p=o==="withIllustration"||a;return n.jsxs("div",F(A({className:f,role:"status","aria-live":"polite","aria-label":`${e}. ${t}`},c),{children:[p&&a&&n.jsx("div",{className:g(m("base","mb")),"aria-hidden":"true",children:a}),n.jsx(Te,{as:"h3",className:g(se("h4"),Ft("semibold"),"text-fg-primary",m("sm","mb")),children:e}),n.jsx(Te,{as:"p",className:g(se("bodySmall"),"text-fg-secondary",m("md","mb"),"max-w-sm"),children:t}),b&&r&&s&&n.jsx(re,{variant:"primary",onClick:s,children:r})]}))}function no(c){var u=c,{trigger:e,items:t,align:r="right",variant:s="default",className:a="","aria-label":o}=u,i=V(u,["trigger","items","align","variant","className","aria-label"]);const[d,f]=l.useState(!1),[b,p]=l.useState(-1),h=l.useRef(null),x=l.useRef(null),k=l.useRef(null),w=l.useRef([]),v=l.useId(),y=`dropdown-menu-${v}`,N=`dropdown-trigger-${v}`;l.useEffect(()=>{const M=L=>{h.current&&!h.current.contains(L.target)&&(f(!1),p(-1))};return d&&(document.addEventListener("mousedown",M),setTimeout(()=>{var D;const L=t.findIndex(R=>!R.disabled);L>=0&&(p(L),(D=w.current[L])==null||D.focus())},0)),()=>{document.removeEventListener("mousedown",M)}},[d,t]),l.useEffect(()=>{if(!d)return;const M=D=>{var _,O,z,H;const R=t.map((B,ae)=>({item:B,index:ae})).filter(({item:B})=>!B.disabled),I=R.findIndex(({index:B})=>B===b);switch(D.key){case"ArrowDown":{D.preventDefault();const B=I<R.length-1?R[I+1].index:R[0].index;p(B),(_=w.current[B])==null||_.focus();break}case"ArrowUp":{D.preventDefault();const B=I>0?R[I-1].index:R[R.length-1].index;p(B),(O=w.current[B])==null||O.focus();break}case"Home":{D.preventDefault();const B=R[0].index;p(B),(z=w.current[B])==null||z.focus();break}case"End":{D.preventDefault();const B=R[R.length-1].index;p(B),(H=w.current[B])==null||H.focus();break}case"Enter":case" ":D.preventDefault(),b>=0&&!t[b].disabled&&$(t[b]);break;case"Escape":D.preventDefault(),f(!1),p(-1),setTimeout(()=>{var B;(B=x.current)==null||B.focus()},0);break}},L=k.current;if(L){const D=M;return L.addEventListener("keydown",D),()=>{L.removeEventListener("keydown",D)}}},[d,b,t]);const $=M=>{M.disabled||(M.onClick(),f(!1),p(-1),setTimeout(()=>{var L;(L=x.current)==null||L.focus()},0))},E=()=>{f(!d),p(-1)},j=M=>{(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),f(!0))},C=r==="right"?"right-0":"left-0",S=l.isValidElement(e)?l.cloneElement(e,{onClick:M=>{var L,D;E(),(D=(L=e.props).onClick)==null||D.call(L,M)},onKeyDown:M=>{var L,D;j(M),(D=(L=e.props).onKeyDown)==null||D.call(L,M)},"aria-haspopup":"menu","aria-expanded":d,"aria-controls":y,"aria-label":o||e.props["aria-label"]||"Open menu",id:N,ref:js(x,e.props.ref)}):n.jsx("div",{ref:M=>{x.current=M},onClick:E,onKeyDown:j,role:"button",tabIndex:0,"aria-haspopup":"menu","aria-expanded":d,"aria-controls":y,"aria-label":o||"Open menu",id:N,children:e});return n.jsxs("div",F(A({className:g("relative","inline-block",a),ref:h},i),{children:[S,d&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:g("fixed","inset-0","z-10"),onClick:()=>{f(!1),p(-1)},"aria-hidden":"true"}),n.jsx("div",{ref:k,id:y,className:g("absolute","z-20",m("sm","mt"),"w-48",G("md"),he("lg"),"bg-surface-overlay","ring-1","ring-line-strong","ring-opacity-5",C),role:"menu","aria-orientation":"vertical","aria-labelledby":N,"aria-activedescendant":b>=0?`${y}-item-${b}`:void 0,children:n.jsx("div",{className:g(m("xs","py")),role:"none",children:t.map((M,L)=>{const D=g("block",m("base","px"),m("xs","py"),se("bodySmall"),"w-full","text-left","focus:outline-none",M.disabled?g("text-fg-disabled","cursor-not-allowed","opacity-50"):M.variant==="danger"?g("text-error-dark","hover:bg-error-bg-emphasis","focus:bg-error-bg-emphasis"):g("text-fg-primary","hover:bg-surface-hover","focus:bg-surface-hover"));return n.jsx("button",{id:`${y}-item-${L}`,ref:R=>{w.current[L]=R},type:"button",className:D,onClick:()=>$(M),disabled:M.disabled,role:"menuitem","aria-disabled":M.disabled,tabIndex:M.disabled?-1:b===L?0:-1,children:M.label},L)})})})]})]}))}const ao=l.createContext(void 0);function oo(){const e=l.useContext(ao);if(!e)throw new Error("DatePicker components must be used within a DatePicker component");return e}function hs({children:e,mode:t="single",value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,locale:u}){const d=()=>{if(r!==void 0)return null;if(s){if(t==="single"&&s instanceof Date)return s;if(t==="range"&&typeof s=="object"&&"start"in s)return null}return null},f=()=>r===void 0&&s&&t==="range"&&typeof s=="object"&&"start"in s?s:{start:null,end:null},[b,p]=l.useState(d()),[h,x]=l.useState(f()),k=t==="single"?r instanceof Date?r:b:null,w=t==="range"?r&&typeof r=="object"&&"start"in r?r:h:null,N={selectedDate:k,selectedRange:w,mode:t,onDateChange:$=>{t==="single"&&(r===void 0&&p($),a==null||a($))},onRangeChange:$=>{t==="range"&&(r===void 0&&x($),a==null||a($))},minDate:o,maxDate:i,disabledDates:c,locale:u};return n.jsx(ao.Provider,{value:N,children:e})}function Gt(e,t="yyyy-MM-dd"){const r=e.getFullYear(),s=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(r)).replace("MM",s).replace("dd",a).replace("MM/dd/yyyy",`${s}/${a}/${r}`).replace("dd/MM/yyyy",`${a}/${s}/${r}`)}function Un(e){if(!e)return null;const t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(t){const[,a,o,i]=t,c=new Date(parseInt(a),parseInt(o)-1,parseInt(i));if(!isNaN(c.getTime()))return c}const r=e.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);if(r){const[,a,o,i]=r,c=new Date(parseInt(i),parseInt(a)-1,parseInt(o));if(!isNaN(c.getTime()))return c}const s=e.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);if(s){const[,a,o,i]=s,c=new Date(parseInt(i),parseInt(o)-1,parseInt(a));if(!isNaN(c.getTime()))return c}return null}function _s(c){var u=c,{placeholder:e="Select date",format:t="yyyy-MM-dd",showCalendarButton:r=!0,"aria-label":s,onFocus:a,className:o=""}=u,i=V(u,["placeholder","format","showCalendarButton","aria-label","onFocus","className"]);const{selectedDate:d,selectedRange:f,mode:b,onDateChange:p}=oo(),[h,x]=l.useState(""),[k,w]=l.useState(!1),v=l.useRef(null);l.useEffect(()=>{b==="single"&&d?x(Gt(d,t)):b==="range"&&f?f.start&&f.end?x(`${Gt(f.start,t)} - ${Gt(f.end,t)}`):f.start?x(Gt(f.start,t)):x(""):x("")},[d,f,b,t]);const y=E=>{const j=E.target.value;if(x(j),b==="single"){const C=Un(j);p(C)}},N=()=>{if(w(!1),h&&b==="single"){const E=Un(h);E&&x(Gt(E,t))}},$=()=>{var E;(E=v.current)==null||E.focus()};return n.jsx("div",F(A({className:`relative ${o}`},i),{children:n.jsx(Re,{ref:v,type:"text",value:h,onChange:y,onFocus:()=>{w(!0),a==null||a()},onBlur:N,placeholder:e,"aria-label":s||e,rightIcon:r?n.jsx(re,{variant:"iconOnly",size:"sm",onClick:$,"aria-label":"Open calendar",type:"button",children:n.jsx(fc,{className:"h-4 w-4"})}):void 0})}))}function hu(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function gu(e){return new Date(e.getFullYear(),e.getMonth(),1).getDay()}function jt(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Kt(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function xu(e,t,r){if(!t||!r)return!1;const s=e.getTime();return s>=t.getTime()&&s<=r.getTime()}function us(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()}function Gn(e,t,r,s){const a=us(e);return!!(t&&a<us(t)||r&&a>us(r)||s!=null&&s.some(o=>jt(e,o)))}const vu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yu=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ls(a){var o=a,{month:e,onMonthChange:t,className:r=""}=o,s=V(o,["month","onMonthChange","className"]);const{selectedDate:i,selectedRange:c,mode:u,onDateChange:d,onRangeChange:f,minDate:b,maxDate:p,disabledDates:h}=oo(),[x,k]=l.useState(e||i||(c==null?void 0:c.start)||new Date),w=l.useRef(null),[v,y]=l.useState(()=>{const I=new Date,_=e||i||(c==null?void 0:c.start)||I;return i&&Kt(i,_)?i:Kt(I,_)?I:new Date(_.getFullYear(),_.getMonth(),1)});l.useEffect(()=>{e&&k(e)},[e]);const N=l.useRef(!0);l.useEffect(()=>{if(N.current){N.current=!1;return}if(!w.current)return;const I=new Date(v.getFullYear(),v.getMonth(),v.getDate()).toISOString(),_=w.current.querySelector(`[data-date="${I}"]`);_&&_.focus()},[v]);const $=(()=>{if(Kt(v,x))return v;const I=new Date;return Kt(I,x)?I:new Date(x.getFullYear(),x.getMonth(),1)})(),E=hu(x),j=gu(x),C=[];for(let I=0;I<j;I++)C.push(null);for(let I=1;I<=E;I++)C.push(new Date(x.getFullYear(),x.getMonth(),I));const S=I=>{if(!Gn(I,b,p,h)){if(u==="single")d(I);else if(u==="range"){const _=c||{start:null,end:null};!_.start||_.start&&_.end?f({start:I,end:null}):_.start&&!_.end&&(I<_.start?f({start:I,end:_.start}):f({start:_.start,end:I}))}}},M=()=>{const I=new Date(x.getFullYear(),x.getMonth()-1,1);k(I),t==null||t(I)},L=()=>{const I=new Date(x.getFullYear(),x.getMonth()+1,1);k(I),t==null||t(I)},D=(I,_)=>{let O=null;switch(I.key){case"ArrowLeft":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth(),_.getDate()-1);break;case"ArrowRight":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth(),_.getDate()+1);break;case"ArrowUp":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth(),_.getDate()-7);break;case"ArrowDown":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth(),_.getDate()+7);break;case"Home":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth(),1);break;case"End":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth()+1,0);break;case"Enter":case" ":I.preventDefault(),S(_);return}O&&(Kt(O,x)||k(new Date(O.getFullYear(),O.getMonth(),1)),y(O))},R=[];for(let I=0;I<C.length;I+=7)R.push(C.slice(I,I+7));return n.jsxs("div",F(A({ref:w,className:`${m("base","p")} ${r}`},s),{children:[n.jsxs("div",{className:`flex items-center justify-between ${m("base","mb")}`,children:[n.jsx(re,{variant:"iconOnly",size:"sm",onClick:M,"aria-label":"Previous month",children:n.jsx(qt,{className:"h-4 w-4"})}),n.jsxs("div",{className:"text-sm font-semibold",children:[yu[x.getMonth()]," ",x.getFullYear()]}),n.jsx(re,{variant:"iconOnly",size:"sm",onClick:L,"aria-label":"Next month",children:n.jsx(St,{className:"h-4 w-4"})})]}),n.jsxs("div",{role:"grid","aria-label":"Calendar",children:[n.jsx("div",{role:"row",className:`grid grid-cols-7 ${m("xs","gap")} ${m("sm","mb")}`,children:vu.map(I=>n.jsx("div",{role:"columnheader",className:`text-center text-xs font-medium text-fg-tertiary ${m("xs","py")}`,children:I},I))}),R.map((I,_)=>n.jsx("div",{role:"row",className:`grid grid-cols-7 ${m("xs","gap")}`,children:I.map((O,z)=>{if(!O)return n.jsx("div",{role:"gridcell",className:"aspect-square"},`empty-${_}-${z}`);const H=u==="single"?jt(O,i):jt(O,(c==null?void 0:c.start)||null)||jt(O,(c==null?void 0:c.end)||null),B=u==="range"&&c?xu(O,c.start,c.end):!1,ae=Gn(O,b,p,h),W=jt(O,new Date),P=jt(O,v),K=jt(O,$);return n.jsx("button",{role:"gridcell",type:"button","data-date":O.toISOString(),tabIndex:K?0:-1,onClick:()=>S(O),onKeyDown:oe=>D(oe,O),className:`
6
+ <%s key={someKey} {...props} />`,ne,ee,te,ee),W[ee+ne]=!0)}if(ee=null,oe!==void 0&&(r(oe),ee=""+oe),i(K)&&(r(K.key),ee=""+K.key),"key"in K){oe={};for(var Q in K)Q!=="key"&&(oe[Q]=K[Q])}else oe=K;return ee&&c(oe,typeof P=="function"?P.displayName||P.name||"Unknown":P),d(P,ee,oe,a(),de,J)}function b(P){p(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===M&&(P._payload.status==="fulfilled"?p(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function p(P){return typeof P=="object"&&P!==null&&P.$$typeof===g}var h=l,g=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),$=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),D=Symbol.for("react.client.reference"),R=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,_=Array.isArray,O=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(P){return P()}};var z,H={},B=h.react_stack_bottom_frame.bind(h,o)(),ae=O(s(o)),W={};Bt.Fragment=w,Bt.jsx=function(P,K,oe){var ne=1e4>R.recentlyCreatedOwnerStacks++;return f(P,K,oe,!1,ne?Error("react-stack-top-frame"):B,ne?O(s(P)):ae)},Bt.jsxs=function(P,K,oe){var ne=1e4>R.recentlyCreatedOwnerStacks++;return f(P,K,oe,!0,ne?Error("react-stack-top-frame"):B,ne?O(s(P)):ae)}})()),Bt}var Fn;function Ul(){return Fn||(Fn=1,process.env.NODE_ENV==="production"?cr.exports=Hl():cr.exports=Bl()),cr.exports}var n=Ul();const $a=l.createContext(void 0);function Ca({children:e,defaultTheme:t="light",storageKey:r="theme"}){const[s,a]=l.useState(()=>{if(typeof window=="undefined")return t;try{const d=localStorage.getItem(r);if(d==="light"||d==="dark")return d}catch(d){console.warn("Failed to read theme from localStorage:",d)}return t});l.useEffect(()=>{if(typeof window!="undefined"){try{localStorage.setItem(r,s)}catch(d){console.warn("Failed to save theme to localStorage:",d)}typeof document!="undefined"&&(document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(s))}},[s,r]);const u={theme:s,toggleTheme:()=>{a(d=>d==="light"?"dark":"light")},setTheme:d=>{a(d)},colors:s==="light"?Xt:Nr,isDark:s==="dark"};return n.jsx($a.Provider,{value:u,children:e})}function Gl(){const e=l.useContext($a);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}const Kl={breakpoints:Sr,spacing:jr,typography:$t,animations:Fl,features:{reducedMotion:!1,highContrast:!1,debug:!1},behavior:{defaultAnimationDuration:200,defaultTransitionDuration:150,focusVisible:!0}},Ea=l.createContext(void 0);function Ta({children:e,config:t,strategy:r="default"}){const s=l.useMemo(()=>{const d=A({},Kl);return t?F(A(A({},d),t),{breakpoints:t.breakpoints||d.breakpoints,spacing:t.spacing||d.spacing,typography:t.typography||d.typography,animations:t.animations||d.animations,features:A(A({},d.features),t.features),behavior:A(A({},d.behavior),t.behavior)}):d},[t]);l.useEffect(()=>{typeof document!="undefined"&&(s.features.reducedMotion?document.documentElement.style.setProperty("--motion-reduce","1"):document.documentElement.style.removeProperty("--motion-reduce"))},[s.features.reducedMotion]),l.useEffect(()=>{typeof document!="undefined"&&(s.features.highContrast?document.documentElement.classList.add("high-contrast"):document.documentElement.classList.remove("high-contrast"))},[s.features.highContrast]);const a=l.useMemo(()=>d=>s.spacing[d],[s.spacing]),o=l.useMemo(()=>d=>s.breakpoints[d],[s.breakpoints]),i=l.useMemo(()=>d=>{var f;return(f=s.features[d])!=null?f:!1},[s.features]),c=l.useMemo(()=>d=>{console.warn("ConfigProvider: updateConfig called but config is immutable. Consider using state management for dynamic updates.")},[]),u={config:s,getSpacing:a,getBreakpoint:o,isFeatureEnabled:i,updateConfig:c};return n.jsx(Ea.Provider,{value:u,children:e})}function Yl(){const e=l.useContext(Ea);if(e===void 0)throw new Error("useConfig must be used within a ConfigProvider");return e}const $r=l.createContext(void 0);function Ns(){const e=l.useContext($r);if(!e)throw new Error("Toast components must be used within a ToastProvider");return e}function ql(){return l.useContext($r)}function Aa({children:e,defaultDuration:t=5e3,maxToasts:r=5}){const[s,a]=l.useState([]),o=l.useCallback(d=>{var p;const f=`toast-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,b=F(A({},d),{id:f,duration:(p=d.duration)!=null?p:t});return a(h=>[b,...h].slice(0,r)),f},[t,r]),i=l.useCallback(d=>{a(f=>f.filter(b=>b.id!==d))},[]),c=l.useCallback(()=>{a([])},[]),u={toasts:s,addToast:o,removeToast:i,clearAll:c};return n.jsx($r.Provider,{value:u,children:e})}const Cr=l.createContext(void 0);function Et(){const e=l.useContext(Cr);if(!e)throw new Error("Dialog components must be used within a Dialog component");return e}function Xl(){return l.useContext(Cr)}function Jt(e){const t=l.useRef(null),r=l.useRef(null);l.useEffect(()=>{var s;if(e)return r.current!==null&&(clearTimeout(r.current),r.current=null),t.current=(s=document.activeElement)!=null?s:null,()=>{const a=t.current;r.current=setTimeout(()=>{a==null||a.focus(),r.current=null},0)}},[e])}function Ss({children:e,open:t,defaultOpen:r=!1,onOpenChange:s,titleId:a,descriptionId:o}){const[i,c]=l.useState(r),[u,d]=l.useState(0),[f,b]=l.useState(0),p=l.useCallback(()=>(d(v=>v+1),()=>d(v=>v-1)),[]),h=l.useCallback(()=>(b(v=>v+1),()=>b(v=>v-1)),[]),g=t!==void 0?t:i,k=v=>{t===void 0&&c(v),s==null||s(v)};Jt(g),l.useEffect(()=>(g?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[g]);const w={isOpen:g,onOpenChange:k,onClose:()=>k(!1),titleId:a,descriptionId:o,hasTitle:u>0,hasDescription:f>0,registerTitle:p,registerDescription:h};return n.jsx(Cr.Provider,{value:w,children:e})}const Jl={ThemeProvider:Ca,ConfigProvider:Ta,ToastProvider:Aa,DialogProvider:Ss},dr=Jl;function Zl(e,t){const{theme:r,config:s,toast:a,dialog:o,providers:i={theme:!0,config:!0,toast:!0,dialog:!0}}=t||{};let c=e;return i.dialog&&(c=n.jsx(dr.DialogProvider,F(A({},o),{children:c}))),i.toast&&(c=n.jsx(dr.ToastProvider,F(A({},a),{children:c}))),i.config&&(c=n.jsx(dr.ConfigProvider,F(A({},s),{children:c}))),i.theme&&(c=n.jsx(dr.ThemeProvider,F(A({},r),{children:c}))),c}function Ql({children:e,config:t}){const r=l.useMemo(()=>Zl(e,t),[e,t]);return n.jsx(n.Fragment,{children:r})}function ec(){return{}}class st{static create(t){const s={none:{px:0,tailwind:"rounded-none",description:"No border radius"},sm:{px:2,tailwind:"rounded-sm",description:"Small radius (2px) for subtle rounding"},md:{px:6,tailwind:"rounded-md",description:"Medium radius (6px) for buttons and inputs"},lg:{px:8,tailwind:"rounded-lg",description:"Large radius (8px) for cards and containers"},xl:{px:12,tailwind:"rounded-xl",description:"Extra large radius (12px) for prominent elements"},"2xl":{px:16,tailwind:"rounded-2xl",description:"2X large radius (16px) for large containers"},"3xl":{px:24,tailwind:"rounded-3xl",description:"3X large radius (24px) for very large containers"},full:{px:9999,tailwind:"rounded-full",description:"Full radius for circular elements"}}[t];return{value:s.px,rem:`${s.px/16}rem`,px:`${s.px}px`,tailwind:s.tailwind,description:s.description}}}const tc={none:st.create("none"),sm:st.create("sm"),md:st.create("md"),lg:st.create("lg"),xl:st.create("xl"),"2xl":st.create("2xl"),"3xl":st.create("3xl"),full:st.create("full")};function G(e){return tc[e].tailwind}function rc(s){var a=s,{variant:e="info",className:t}=a,r=V(a,["variant","className"]);const o={warning:x("bg-warning-bg","text-warning-dark","border-warning"),error:x("bg-error-bg","text-error-dark","border-error"),info:x("bg-info-bg","text-info-dark","border-info")};return n.jsx("div",A({role:"alert",className:x("border",m("base","px"),m("sm","py"),G("lg"),o[e],t)},r))}const sc={primary:{light:"text-indigo-400",DEFAULT:"text-fg-brand",dark:"text-indigo-600",contrast:"text-fg-inverse"},secondary:{light:"text-pink-300",DEFAULT:"text-fg-brand-secondary",dark:"text-pink-600",contrast:"text-fg-inverse"},success:{light:"text-green-300",DEFAULT:"text-fg-success",dark:"text-success-dark",contrast:"text-fg-inverse"},warning:{light:"text-yellow-300",DEFAULT:"text-fg-warning",dark:"text-warning-dark",contrast:"text-fg-inverse"},error:{light:"text-red-300",DEFAULT:"text-fg-error",dark:"text-error-dark",contrast:"text-fg-inverse"},info:{light:"text-blue-300",DEFAULT:"text-fg-info",dark:"text-info-dark",contrast:"text-fg-inverse"},neutral:{light:"text-fg-tertiary",DEFAULT:"text-fg-secondary",dark:"text-fg-primary",contrast:"text-fg-inverse"}};function nc(d,u){var f=d,{variant:e="paragraph",bold:t,italic:r,className:s,as:a,colorRole:o="neutral",colorShade:i="dark"}=f,c=V(f,["variant","bold","italic","className","as","colorRole","colorShade"]);const b=[];let p;if(a)p=a;else switch(e){case"heading":p="h2";break;case"list":p="li";break;default:p="p";break}return e==="heading"?b.push(be("h2")):e==="body"||e==="paragraph"?b.push(be("body")):e==="bodySmall"?b.push(be("bodySmall")):e==="bodyLarge"?b.push(be("bodyLarge")):e==="caption"?b.push(be("caption")):e==="label"?b.push(be("label")):b.push(be("body")),t&&b.push("font-bold"),r&&b.push("italic"),b.push(sc[o][i]),n.jsx(p,A({ref:u,className:x(...b,s)},c))}const Te=l.forwardRef(nc);const Ia=(...e)=>e.filter((t,r,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===r).join(" ").trim();const ac=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const oc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,s)=>s?s.toUpperCase():r.toLowerCase());const Pn=e=>{const t=oc(e);return t.charAt(0).toUpperCase()+t.slice(1)};var rs={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ic=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},lc=l.createContext({}),cc=()=>l.useContext(lc),dc=l.forwardRef((d,u)=>{var f=d,{color:e,size:t,strokeWidth:r,absoluteStrokeWidth:s,className:a="",children:o,iconNode:i}=f,c=V(f,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);var v,y,N;const{size:b=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,color:g="currentColor",className:k=""}=(v=cc())!=null?v:{},w=(s!=null?s:h)?Number(r!=null?r:p)*24/Number(t!=null?t:b):r!=null?r:p;return l.createElement("svg",A(A(F(A({ref:u},rs),{width:(y=t!=null?t:b)!=null?y:rs.width,height:(N=t!=null?t:b)!=null?N:rs.height,stroke:e!=null?e:g,strokeWidth:w,className:Ia("lucide",k,a)}),!o&&!ic(c)&&{"aria-hidden":"true"}),c),[...i.map(([$,E])=>l.createElement($,E)),...Array.isArray(o)?o:[o]])});const ue=(e,t)=>{const r=l.forwardRef((i,o)=>{var c=i,{className:s}=c,a=V(c,["className"]);return l.createElement(dc,A({ref:o,iconNode:t,className:Ia(`lucide-${ac(Pn(e))}`,`lucide-${e}`,s)},a))});return r.displayName=Pn(e),r};const uc=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],fc=ue("calendar",uc);const mc=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ra=ue("check",mc);const pc=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Er=ue("chevron-down",pc);const bc=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],qt=ue("chevron-left",bc);const hc=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],St=ue("chevron-right",hc);const xc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Tr=ue("circle-alert",xc);const gc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],hr=ue("circle-check",gc);const vc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],yc=ue("clock",vc);const wc=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],kc=ue("command",wc);const jc=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Nc=ue("download",jc);const Sc=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],$c=ue("ellipsis-vertical",Sc);const Cc=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ec=ue("eye-off",Cc);const Tc=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ac=ue("eye",Tc);const Ic=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Rc=ue("file",Ic);const Mc=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Dc=ue("funnel",Mc);const _c=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Lc=ue("grip-vertical",_c);const Fc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Pc=ue("info",Fc);const Oc=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ma=ue("loader-circle",Oc);const zc=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Vc=ue("menu",zc);const Wc=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],Hc=ue("panel-left-close",Wc);const Bc=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],Uc=ue("panel-left-open",Bc);const Gc=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ps=ue("search",Gc);const Kc=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Rt=ue("star",Kc);const Yc=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],qc=ue("triangle-alert",Yc);const Xc=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Jc=ue("upload",Xc);const Zc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ie=ue("x",Zc);function On(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qc(...e){return t=>{let r=!1;const s=e.map(a=>{const o=On(a,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let a=0;a<s.length;a++){const o=s[a];typeof o=="function"?o():On(e[a],null)}}}}function ed(...e){return Ee.useCallback(Qc(...e),e)}function td(e){const t=Ee.forwardRef((r,s)=>{var h;let p=r,{children:a}=p,o=V(p,["children"]),i=null,c=!1;const u=[];zn(a)&&typeof ur=="function"&&(a=ur(a._payload)),Ee.Children.forEach(a,g=>{var k;if(id(g)){c=!0;const w=g;let v="child"in w.props?w.props.child:w.props.children;zn(v)&&typeof ur=="function"&&(v=ur(v._payload)),i=nd(w,v),u.push((k=i==null?void 0:i.props)==null?void 0:k.children)}else u.push(g)}),i?i=Ee.cloneElement(i,void 0,u):!c&&Ee.Children.count(a)===1&&Ee.isValidElement(a)&&(i=a);const d=i?od(i):void 0,f=ed(s,d);if(!i){if(a||a===0)throw new Error(c?ud(e):dd(e));return a}const b=ad(o,(h=i.props)!=null?h:{});return i.type!==Ee.Fragment&&(b.ref=s?f:d),Ee.cloneElement(i,b)});return t.displayName=`${e}.Slot`,t}var Da=td("Slot"),_a=Symbol.for("radix.slottable");function rd(e){const t=r=>"child"in r?r.children(r.child):r.children;return t.displayName=`${e}.Slottable`,t.__radixId=_a,t}var sd=rd("Slottable"),nd=(e,t)=>{if("child"in e.props){const r=e.props.child;return Ee.isValidElement(r)?Ee.cloneElement(r,void 0,e.props.children(r.props.children)):null}return Ee.isValidElement(t)?t:null};function ad(e,t){const r=A({},t);for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?r[s]=(...c)=>{const u=o(...c);return a(...c),u}:a&&(r[s]=a):s==="style"?r[s]=A(A({},a),o):s==="className"&&(r[s]=[a,o].filter(Boolean).join(" "))}return A(A({},e),r)}function od(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function id(e){return Ee.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_a}var ld=Symbol.for("react.lazy");function zn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ld&&"_payload"in e&&cd(e._payload)}function cd(e){return typeof e=="object"&&e!==null&&"then"in e}var dd=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ud=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ur=Ee[" use ".trim().toString()];const fd=xe("motion-safe:animate-spin",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-8 w-8"},variant:{primary:"text-fg-brand",secondary:"text-fg-brand-secondary",neutral:"text-fg-secondary"}},defaultVariants:{size:"md",variant:"primary"}}),$s=l.memo(function(i){var c=i,{size:t="md",variant:r="primary",label:s,className:a=""}=c,o=V(c,["size","variant","label","className"]);return n.jsxs("div",F(A({className:x("inline-flex","items-center",a),role:"status","aria-label":s||"Loading","aria-live":"polite"},o),{children:[n.jsx(Ma,{className:x(fd({size:t,variant:r})),"aria-hidden":"true"}),s&&n.jsx("span",{className:x(m("sm","ml"),se("bodySmall"),"text-fg-secondary","sr-only"),children:s})]}))});$s.displayName="Spinner";const md=xe(x("inline-flex","items-center","justify-center",be("button").split(" ")[2]||"font-medium",G("md"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed"),{variants:{variant:{primary:x("bg-surface-brand-strong","text-fg-inverse","hover:opacity-90","focus:ring-line-brand"),secondary:x("bg-surface-secondary","text-fg-inverse","hover:opacity-90","focus:ring-line-secondary"),error:x("bg-error","text-fg-inverse","hover:opacity-90","focus:ring-error"),outline:x("border-2","border-line-default","bg-transparent","text-fg-primary","hover:bg-surface-hover","focus:ring-line-focus"),ghost:x("bg-transparent","text-fg-primary","hover:bg-surface-hover","focus:ring-line-focus"),iconOnly:x("bg-transparent","text-fg-primary","hover:bg-surface-hover","focus:ring-line-focus",m("none","p")),link:x("bg-transparent","text-fg-brand","underline-offset-4","hover:underline","focus:ring-line-focus")},size:{sm:x(m("md","px"),m("1.5","py"),se("bodySmall"),m("1.5","gap")),md:x(m("base","px"),m("sm","py"),se("body"),m("sm","gap")),lg:x(m("lg","px"),m("md","py"),se("bodyLarge"),m("2.5","gap"))}},compoundVariants:[{variant:"iconOnly",size:"sm",class:x("h-8","w-8",m("none","p"))},{variant:"iconOnly",size:"md",class:x("h-10","w-10",m("none","p"))},{variant:"iconOnly",size:"lg",class:x("h-12","w-12",m("none","p"))},{variant:"link",size:"sm",class:x(m("none","px"),m("none","py"))},{variant:"link",size:"md",class:x(m("none","px"),m("none","py"))},{variant:"link",size:"lg",class:x(m("none","px"),m("none","py"))}],defaultVariants:{variant:"primary",size:"md"}});function fr({children:e,position:t}){return e?n.jsx("span",{className:`inline-flex items-center ${t==="left"?m("none","mr"):m("none","ml")}`,children:e}):null}const re=l.memo(l.forwardRef(function(v,w){var y=v,{variant:t="primary",size:r="md",isLoading:s=!1,loadingText:a,loadingIcon:o,leftIcon:i,rightIcon:c,fullWidth:u=!1,asChild:d=!1,as:f,className:b="",disabled:p=!1,children:h,"aria-label":g}=y,k=V(y,["variant","size","isLoading","loadingText","loadingIcon","leftIcon","rightIcon","fullWidth","asChild","as","className","disabled","children","aria-label"]);typeof process!="undefined"&&process.env.NODE_ENV!=="production"&&d&&f!==void 0&&f!=="button"&&console.warn("[Button] `as` is ignored when `asChild` is true; the child element is used as the root. Drop one of the two props to silence this warning.");const N=d?Da:f!=null?f:"button",$=x(md({variant:t,size:r}),u&&"w-full",b),j=(t==="iconOnly"||!h&&(i||c))&&!g&&!h?"Button":g,C=t==="error"?"primary":t==="primary"||t==="secondary"?"neutral":"primary",S=r==="sm"?"sm":r==="lg"?"lg":"md",M=o||n.jsx($s,{size:S,variant:C}),L=!d&&(f===void 0||f==="button")&&!k.type?"button":void 0,D=A(A({className:$,disabled:p||s,"aria-busy":s,"aria-label":j,"aria-disabled":p||s},L?{type:L}:{}),k);return d?n.jsxs(N,F(A({ref:w},D),{children:[i&&n.jsx(fr,{position:"left",children:i}),n.jsx(sd,{children:h}),c&&n.jsx(fr,{position:"right",children:c})]})):n.jsx(N,F(A({ref:w},D),{children:s?n.jsxs(n.Fragment,{children:[M,a&&n.jsx("span",{className:m("sm","ml"),children:a}),!a&&h&&n.jsx("span",{className:`${m("sm","ml")} opacity-0`,children:h})]}):n.jsxs(n.Fragment,{children:[i&&n.jsx(fr,{position:"left",children:i}),h,c&&n.jsx(fr,{position:"right",children:c})]})}))}));re.displayName="Button";const pd=xe(x("w-full",G("md"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed"),{variants:{variant:{default:x("border-0","border-b-2","border-line-default","focus:border-line-focus"),outlined:x("border","border-line-default","focus:border-line-focus"),filled:x("bg-surface-muted","border-0","focus:bg-surface-base","focus:ring-2","focus:ring-line-focus")},size:{sm:x("h-8",se("bodySmall"),m("md","px")),md:x("h-10",se("body"),m("base","px")),lg:x("h-12",se("bodyLarge"),m("lg","px"))},state:{default:"",error:x("border-error","focus:border-error","focus:ring-error"),success:x("border-success","focus:border-success","focus:ring-success")}},defaultVariants:{variant:"outlined",size:"md",state:"default"}});function bd({error:e,success:t,helperText:r,errorId:s,helperId:a}){const o=x(m("xs","mt"),be("caption"),e&&"text-fg-error",t&&"text-fg-success",!e&&!t&&"text-fg-secondary"),i=r||(e?"Error":t?"Success":"");return n.jsx("div",{id:s||a,className:o,role:e||t?"alert":void 0,children:i})}const La=l.forwardRef(function(w,k){var v=w,{id:t,label:r,error:s=!1,success:a=!1,helperText:o,size:i="md",variant:c="outlined",leftIcon:u,rightIcon:d,rightSlot:f,className:b="",disabled:p=!1,type:h="text"}=v,g=V(v,["id","label","error","success","helperText","size","variant","leftIcon","rightIcon","rightSlot","className","disabled","type"]);typeof process!="undefined"&&process.env.NODE_ENV!=="production"&&r&&!t&&console.warn("[InputBase] `label` was provided without an `id`. The <label> cannot bind to the input (InputBase does not auto-generate an id — that needs a client hook). Pass an `id`, or use the interactive `Input` which auto-generates one.");const y=s?"error":a?"success":"default",N=s&&t?`${t}-error`:void 0,$=o&&t?`${t}-helper`:void 0,E=i==="sm"?"h-4 w-4":i==="lg"?"h-5 w-5":"h-4 w-4",j=i==="sm"?"top-2":i==="lg"?"top-3.5":"top-2.5",C=x(pd({variant:c,size:i,state:y}),u&&(i==="sm"?"pl-9":m(i==="lg"?"3xl":"2xl","pl")),(d||f)&&(i==="sm"?"pr-9":m(i==="lg"?"3xl":"2xl","pr")),b),S=x("block",be("label"),m("xs","mb"),p&&"opacity-50");return n.jsxs("div",{className:"w-full",children:[r&&n.jsx("label",{htmlFor:t,className:S,children:r}),n.jsxs("div",{className:"relative",children:[u&&n.jsx("div",{className:`absolute left-3 ${j} text-fg-secondary opacity-60 pointer-events-none`,children:n.jsx("div",{className:E,children:u})}),n.jsx("input",A({id:t,ref:k,type:h,className:C,disabled:p,"aria-invalid":s,"aria-required":g.required,"aria-describedby":N||$,suppressHydrationWarning:!0},g)),(d||f)&&n.jsx("div",{className:`absolute right-3 top-0 bottom-0 flex items-center ${m("xs","gap")}`,children:f!=null?f:n.jsx("div",{className:`text-fg-secondary opacity-60 pointer-events-none ${E}`,children:d})})]}),(s||a||o)&&n.jsx(bd,{error:s,success:a,helperText:o,errorId:N,helperId:$})]})});La.displayName="InputBase";const Re=l.memo(l.forwardRef(function(N,y){var $=N,{id:t,label:r,error:s=!1,success:a=!1,helperText:o,size:i="md",variant:c="outlined",leftIcon:u,rightIcon:d,showClearButton:f=!1,onClear:b,className:p="",disabled:h=!1,type:g="text",value:k,onChange:w}=$,v=V($,["id","label","error","success","helperText","size","variant","leftIcon","rightIcon","showClearButton","onClear","className","disabled","type","value","onChange"]);const E=l.useId(),j=t||`input-${E}`,[C,S]=l.useState(!1),M=g==="password",L=M&&C?"text":g,D=k!=null&&k!=="",R=f&&D&&!h,I=i==="sm"?"h-4 w-4":i==="lg"?"h-5 w-5":"h-4 w-4",_=B=>{var ae;if(B.stopPropagation(),b)b();else if(w){const W=(ae=B.currentTarget.closest(".relative"))==null?void 0:ae.querySelector("input");if(W){const P={target:W,currentTarget:W,bubbles:!0,cancelable:!0,defaultPrevented:!1,eventPhase:2,isTrusted:!1,nativeEvent:new Event("change"),preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},timeStamp:Date.now()};Object.defineProperty(P.target,"value",{value:"",writable:!0}),Object.defineProperty(P.currentTarget,"value",{value:"",writable:!0}),w(P)}}},O=()=>S(B=>!B),H=R||M||!!d?n.jsxs(n.Fragment,{children:[R&&n.jsx(re,{variant:"ghost",size:"sm",onClick:_,className:`h-auto ${m("xs","p")}`,"aria-label":"Clear input",children:n.jsx(Ie,{className:I})}),M&&n.jsx(re,{variant:"ghost",size:"sm",onClick:O,className:`h-auto ${m("xs","p")}`,"aria-label":C?"Hide password":"Show password",children:C?n.jsx(Ec,{className:I}):n.jsx(Ac,{className:I})}),d&&!R&&!M&&n.jsx("div",{className:`text-fg-secondary opacity-60 pointer-events-none ${I}`,children:d})]}):void 0;return n.jsx(La,A({ref:y,id:j,label:r,error:s,success:a,helperText:o,size:i,variant:c,leftIcon:u,rightSlot:H,className:p,disabled:h,type:L,value:k,onChange:w},v))}));Re.displayName="Input";function Fa({href:e,active:t}){return{isActive:l.useMemo(()=>t!==void 0?t:!1,[t]),NextLink:void 0}}const hd=xe(x("inline-flex","items-center","transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed","disabled:pointer-events-none","no-underline"),{variants:{variant:{default:x("text-fg-primary","hover:opacity-80","focus-visible:opacity-100","focus:ring-line-brand"),underline:x("text-fg-primary","hover:opacity-80","focus-visible:opacity-100","border-b-2","border-transparent","hover:border-current","focus:ring-line-brand"),background:x("text-fg-primary","hover:bg-surface-hover",G("md"),"focus:ring-line-brand")},size:{sm:x(m("sm","px"),m("xs","py"),se("bodySmall")),md:x(m("base","px"),m("sm","py"),se("body")),lg:x(m("lg","px"),m("md","py"),se("bodyLarge"))}},defaultVariants:{variant:"default",size:"md"},compoundVariants:[{variant:"underline",size:"sm",class:m("0.5","pb")},{variant:"underline",size:"md",class:m("xs","pb")},{variant:"underline",size:"lg",class:m("1.5","pb")},{variant:"background",size:"sm",class:m("xs","px")},{variant:"background",size:"md",class:m("sm","px")},{variant:"background",size:"lg",class:m("base","px")}]}),Ar=l.forwardRef(function(g,h){var k=g,{href:t,children:r,active:s,disabled:a=!1,variant:o="default",size:i="md",as:c,className:u,"aria-label":d,onClick:f,onKeyDown:b}=k,p=V(k,["href","children","active","disabled","variant","size","as","className","aria-label","onClick","onKeyDown"]);const w=l.useMemo(()=>s!==void 0?s:!1,[s]),{NextLink:v}=Fa({href:t,active:w}),y=c||v||"a",N=l.useMemo(()=>{if(!w)return"";switch(o){case"underline":return x("border-b-2","border-line-brand","text-fg-brand-emphasis");case"background":return x("bg-surface-brand-muted","text-fg-brand-emphasis");default:return x("text-fg-brand-emphasis","font-semibold")}},[w,o]),$=l.useCallback(C=>{if(a){C.preventDefault(),C.stopPropagation();return}f==null||f(C)},[a,f]),E=l.useCallback(C=>{if(a){(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),C.stopPropagation());return}b==null||b(C)},[a,b]),j=l.useMemo(()=>{const C=A({className:x(hd({variant:o,size:i}),N,a&&"opacity-50 cursor-not-allowed pointer-events-none",u),"aria-current":w?"page":void 0,"aria-disabled":a?!0:void 0,"aria-label":d,tabIndex:a?-1:void 0,onClick:$,onKeyDown:E,"data-active":w,"data-disabled":a},p);return v&&!c?F(A({},C),{href:a?void 0:t}):F(A({},C),{href:a?void 0:t})},[o,i,N,a,u,w,d,$,E,t,v,c,p]);return n.jsx(y,F(A({ref:h},j),{children:r}))});Ar.displayName="NavLink";const xd=xe(x("inline-flex","items-center","justify-center",Ae("label"),G("md"),"border"),{variants:{variant:{success:"",warning:"",error:"",info:"",neutral:"",primary:"",secondary:""},size:{sm:x(m("1.5","px"),m("0.5","py"),se("caption")),md:x(m("sm","px"),m("xs","py"),se("caption")),lg:x(m("sm","px"),m("xs","py"),se("bodySmall"))},style:{solid:"",outline:""}},compoundVariants:[{variant:"success",style:"solid",class:x("bg-success-bg","text-success-dark","border-success")},{variant:"warning",style:"solid",class:x("bg-warning-bg","text-warning-dark","border-warning")},{variant:"error",style:"solid",class:x("bg-error-bg","text-error-dark","border-error")},{variant:"info",style:"solid",class:x("bg-info-bg","text-info-dark","border-info")},{variant:"neutral",style:"solid",class:x("bg-surface-muted","text-fg-primary","border-line-default")},{variant:"primary",style:"solid",class:x("bg-surface-brand-subtle","text-fg-brand-emphasis","border-line-brand")},{variant:"secondary",style:"solid",class:x("bg-pink-300","text-fg-brand-secondary-emphasis","border-line-secondary")},{variant:"success",style:"outline",class:x("bg-transparent","border-success","text-fg-success")},{variant:"warning",style:"outline",class:x("bg-transparent","border-warning","text-fg-warning")},{variant:"error",style:"outline",class:x("bg-transparent","border-error","text-fg-error")},{variant:"info",style:"outline",class:x("bg-transparent","border-info","text-fg-info")},{variant:"neutral",style:"outline",class:x("bg-transparent","border-line-default","text-fg-secondary")},{variant:"primary",style:"outline",class:x("bg-transparent","border-line-brand","text-fg-brand")},{variant:"secondary",style:"outline",class:x("bg-transparent","border-line-secondary","text-fg-brand-secondary")}],defaultVariants:{variant:"neutral",size:"md",style:"solid"}}),Pa=l.memo(l.forwardRef(function(d,u){var f=d,{variant:t="neutral",size:r="md",style:s="solid",className:a="",children:o,"aria-label":i}=f,c=V(f,["variant","size","style","className","children","aria-label"]);const b=x(xd({variant:t,size:r,style:s}),a);let p;if(i)p=i;else if(typeof o=="string")p=o;else if(typeof o=="object"&&o!==null&&"props"in o){const h=o.props;h!=null&&h.children&&typeof h.children=="string"&&(p=h.children)}return n.jsx("span",F(A({ref:u,role:"status","aria-label":p,className:b},c),{children:o}))}));Pa.displayName="Badge";const gd=l.memo(function({error:t,success:r,helperText:s,errorId:a,helperId:o}){const i=l.useMemo(()=>x(m("xs","mt"),be("caption"),t&&"text-fg-error",r&&"text-fg-success",!t&&!r&&"text-fg-secondary"),[t,r]),c=l.useMemo(()=>s||(t?"Error":r?"Success":""),[s,t,r]);return n.jsx("div",{id:a||o,className:i,role:t||r?"alert":void 0,children:c})}),Ir=l.memo(l.forwardRef(function(g,h){var k=g,{options:t=[],optionGroups:r,placeholder:s,label:a,error:o=!1,success:i=!1,helperText:c,size:u="md",className:d="",disabled:f=!1,id:b}=k,p=V(k,["options","optionGroups","placeholder","label","error","success","helperText","size","className","disabled","id"]);const w=l.useId(),v=b||`select-${w}`,y=l.useMemo(()=>o?`${v}-error`:void 0,[o,v]),N=l.useMemo(()=>c?`${v}-helper`:void 0,[c,v]),$=l.useMemo(()=>"focus:border-line-focus",[]),E=l.useMemo(()=>"focus:border-error",[]),j=l.useMemo(()=>"focus:border-success",[]),C=l.useCallback(R=>R==="error"?E.replace("focus:border-","focus:ring-"):R==="success"?j.replace("focus:border-","focus:ring-"):$.replace("focus:border-","focus:ring-"),[E,j,$]),S=l.useMemo(()=>xe(x("block","w-full",G("md"),"border","bg-surface-base","transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed"),{variants:{size:{sm:x("h-8",se("bodySmall"),m("md","px")),md:x("h-10",se("body"),m("base","px")),lg:x("h-12",se("bodyLarge"),m("lg","px"))},state:{default:x("border-line-default",C()),error:x("border-error",C("error")),success:x("border-success",C("success"))}},defaultVariants:{size:"md",state:"default"}}),[C]),M=l.useMemo(()=>o?"error":i?"success":"default",[o,i]),L=l.useMemo(()=>x(S({size:u,state:M}),d),[S,u,M,d]),D=l.useMemo(()=>x("block",be("label"),m("xs","mb"),f&&"opacity-50"),[f]);return n.jsxs("div",{className:"w-full",children:[a&&n.jsx("label",{htmlFor:v,className:D,children:a}),n.jsxs("select",F(A({id:v,ref:h,className:L,disabled:f,"aria-invalid":o,"aria-required":p.required,"aria-describedby":y||N},p),{children:[s&&n.jsx("option",{value:"",disabled:!0,children:s}),r&&r.length>0?r.map((R,I)=>n.jsx("optgroup",{label:R.label,children:(R.options||[]).map(_=>n.jsx("option",{value:_.value,disabled:_.disabled,children:_.label},_.value))},I)):(t||[]).map(R=>n.jsx("option",{value:R.value,disabled:R.disabled,children:R.label},R.value))]})),(o||i||c)&&n.jsx(gd,{error:o,success:i,helperText:c,errorId:y,helperId:N})]})}));Ir.displayName="Select";const Oa=l.memo(l.forwardRef(function(f,d){var b=f,{error:t=!1,success:r=!1,resize:s="vertical",className:a="",label:o,helperText:i,id:c}=b,u=V(b,["error","success","resize","className","label","helperText","id"]);const p=l.useId(),h=c!=null?c:p,g=l.useMemo(()=>"focus:border-line-focus",[]),k=l.useMemo(()=>"focus:border-error",[]),w=l.useMemo(()=>t?k.replace("focus:border-","focus:ring-"):g.replace("focus:border-","focus:ring-"),[t,k,g]),v=l.useMemo(()=>({none:"resize-none",both:"resize",horizontal:"resize-x",vertical:"resize-y"}),[]),y=l.useMemo(()=>x("block","w-full",G("md"),m("base","px"),m("md","py"),"border",se("body"),"focus:outline-none","focus:ring-2","focus:ring-offset-2",v[s],x(t?"border-error":r?"border-success":"border-line-default",w),a),[s,v,t,r,w,a]),N=l.useMemo(()=>i?`${h}-helper`:void 0,[i,h]),$=l.useMemo(()=>N!=null?N:t?`${h}-error`:void 0,[N,t,h]),E=u["aria-label"],j=u["aria-labelledby"];l.useEffect(()=>{},[o,E,j,h]);const C=n.jsx("textarea",A({ref:d,id:h,className:y,"aria-invalid":t,"aria-describedby":$},u)),S=i?n.jsx("p",{id:N,className:x(m("xs","mt"),se("bodySmall"),t?"text-fg-error":r?"text-fg-success":"text-fg-secondary"),children:i}):null;return!o&&!S?C:n.jsxs("div",{className:"block w-full",children:[o&&n.jsx("label",{htmlFor:h,className:x("block",m("xs","mb"),se("label"),"font-medium","text-fg-primary"),children:o}),C,S]})}));Oa.displayName="Textarea";const vd=x("block",se("label"),Ae("label"),"text-fg-primary"),yd={default:"",required:x("after:content-['*']",`after:${m("0.5","ml")}`,"after:text-fg-error"),optional:x("after:content-['(optional)']",`after:${m("xs","ml")}`,"after:text-fg-tertiary","after:font-normal")},Pt=l.memo(l.forwardRef(function(i,o){var c=i,{variant:t="default",className:r="",children:s}=c,a=V(c,["variant","className","children"]);const u=x(vd,yd[t],r);return n.jsx("label",F(A({ref:o,className:u},a),{children:s}))}));Pt.displayName="Label";function za(a){var o=a,{message:e,id:t,className:r=""}=o,s=V(o,["message","id","className"]);const i=[m("xs","mt"),se("bodySmall"),"text-fg-error","flex","items-center",m("xs","gap")],c=x(...i,r);return n.jsxs("div",F(A({role:"alert",id:t,className:c,"aria-live":"polite"},s),{children:[n.jsx(Tr,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),n.jsx("span",{children:e})]}))}class He{static createWidth(t){const s={none:{px:0,tailwind:"border-0"},thin:{px:1,tailwind:"border"},base:{px:1,tailwind:"border"},medium:{px:2,tailwind:"border-2"},thick:{px:4,tailwind:"border-4"}}[t];return{value:s.px,px:`${s.px}px`,tailwind:s.tailwind}}static create(t,r="solid"){return{width:this.createWidth(t),style:r,description:`${t} ${r} border`}}}He.create("none"),He.create("thin"),He.create("base"),He.create("medium"),He.create("thick"),He.create("thin","dashed"),He.create("base","dashed"),He.create("thin","dotted"),He.create("base","dotted");function wd(e){return He.createWidth(e).tailwind}class kt{static create(t){return{none:{value:"none",tailwind:"shadow-none",description:"No shadow"},sm:{value:"0 1px 2px 0 rgb(0 0 0 / 0.05)",tailwind:"shadow-sm",description:"Small shadow for subtle elevation"},md:{value:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",tailwind:"shadow-md",description:"Medium shadow for cards and elevated elements"},lg:{value:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",tailwind:"shadow-lg",description:"Large shadow for modals and dropdowns"},xl:{value:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",tailwind:"shadow-xl",description:"Extra large shadow for prominent modals"},"2xl":{value:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",tailwind:"shadow-2xl",description:"2X large shadow for maximum elevation"},inner:{value:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",tailwind:"shadow-inner",description:"Inner shadow for inset elements"}}[t]}}const kd={none:kt.create("none"),sm:kt.create("sm"),md:kt.create("md"),lg:kt.create("lg"),xl:kt.create("xl"),"2xl":kt.create("2xl"),inner:kt.create("inner")};function he(e){return kd[e].tailwind}const Ot=l.forwardRef(function(f,d){var b=f,{content:t,children:r,position:s="top",delay:a=200,className:o="","aria-label":i,preservePositioning:c=!1}=b,u=V(b,["content","children","position","delay","className","aria-label","preservePositioning"]);const[p,h]=l.useState(!1),g=l.useRef(null),k=l.useRef(null),w=l.useRef(null),v=`tooltip-${l.useId()}`,y=()=>{const R=setTimeout(()=>{h(!0)},a);g.current=R},N=()=>{g.current&&(clearTimeout(g.current),g.current=null),h(!1)},$=()=>{h(!0)},E=()=>{h(!1)},j=R=>{var I;R.key==="Escape"&&(h(!1),(I=w.current)==null||I.blur())};l.useEffect(()=>()=>{g.current&&(clearTimeout(g.current),g.current=null)},[]),l.useEffect(()=>{if(!p)return;const R=I=>{k.current&&!k.current.contains(I.target)&&w.current&&!w.current.contains(I.target)&&h(!1)};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[p]);const C=R=>({top:"border-t-surface-inverse",bottom:"border-b-surface-inverse",left:"border-l-surface-inverse",right:"border-r-surface-inverse"})[R],S=xe(x("absolute",ve("tooltip"),m("sm","px"),m("xs","py"),se("caption"),"text-fg-inverse","bg-surface-inverse",G("md"),he("lg"),"whitespace-nowrap"),{variants:{position:{top:x("bottom-full","left-1/2","transform","-translate-x-1/2",m("sm","mb")),bottom:x("top-full","left-1/2","transform","-translate-x-1/2",m("sm","mt")),left:x("right-full","top-1/2","transform","-translate-y-1/2",m("sm","mr")),right:x("left-full","top-1/2","transform","-translate-y-1/2",m("sm","ml"))}},defaultVariants:{position:"top"}}),M=xe(x("absolute","w-0","h-0",wd("thick"),"border-transparent"),{variants:{position:{top:x("top-full","left-1/2","transform","-translate-x-1/2",C("top")),bottom:x("bottom-full","left-1/2","transform","-translate-x-1/2",C("bottom")),left:x("left-full","top-1/2","transform","-translate-y-1/2",C("left")),right:x("right-full","top-1/2","transform","-translate-y-1/2",C("right"))}},defaultVariants:{position:"top"}}),L=l.isValidElement(r)?(()=>{const R=r,I=R.props,_=I.ref;return l.cloneElement(R,{ref:js(w,_),"aria-describedby":p?v:I["aria-describedby"],onMouseEnter:O=>{var z;y(),(z=I.onMouseEnter)==null||z.call(I,O)},onMouseLeave:O=>{var z;N(),(z=I.onMouseLeave)==null||z.call(I,O)},onFocus:O=>{var z;$(),(z=I.onFocus)==null||z.call(I,O)},onBlur:O=>{var z;E(),(z=I.onBlur)==null||z.call(I,O)},onKeyDown:O=>{var z;j(O),(z=I.onKeyDown)==null||z.call(I,O)}})})():r,D=x(c?"static":"relative","inline-block",o);return n.jsxs("div",F(A({ref:d,className:D},u),{children:[L,p&&n.jsxs("div",{ref:k,id:v,className:x(S({position:s})),role:"tooltip","aria-live":"polite",children:[t,n.jsx("div",{className:x(M({position:s})),"aria-hidden":"true"})]})]}))});Ot.displayName="Tooltip";function Va(c){var u=c,{variant:e="text",width:t,height:r,lines:s=1,className:a="","aria-label":o}=u,i=V(u,["variant","width","height","lines","className","aria-label"]);const d=["motion-safe:animate-pulse","bg-surface-muted",G("sm")],f={text:"h-4",card:"h-32",list:"h-12",circle:G("full")},b=x(...d,f[e],a),p={};t&&(p.width=t),r&&(p.height=r);const h=o||`Loading ${e} content`;return e==="text"&&s>1?n.jsx("div",F(A({className:m("sm","space-y"),role:"status","aria-busy":"true","aria-label":h},i),{children:Array.from({length:s}).map((g,k)=>n.jsx("div",{className:b,style:k===s-1?{width:"75%"}:p,"aria-hidden":"true"},k))})):n.jsx("div",A({className:b,style:p,role:"status","aria-busy":"true","aria-label":h},i))}function jd({defaultOpen:e=!0,open:t,onOpenChange:r,storageKey:s}){const a=l.useCallback(()=>{if(s&&typeof window!="undefined"){const f=localStorage.getItem(s);if(f!==null)return f==="true"}return e},[e,s]),[o,i]=l.useState(a),c=t!==void 0?t:o;l.useEffect(()=>{s&&typeof window!="undefined"&&t===void 0&&localStorage.setItem(s,String(o))},[o,s,t]);const u=l.useCallback(f=>{t===void 0&&i(f),r==null||r(f)},[t,r]),d=l.useCallback(()=>{u(!c)},[c,u]);return{isOpen:c,toggle:d,setOpen:u}}const Cs=l.forwardRef(function(p,b){var h=p,{children:t,trigger:r,defaultOpen:s=!0,open:a,onOpenChange:o,disabled:i=!1,duration:c=200,storageKey:u,className:d=""}=h,f=V(h,["children","trigger","defaultOpen","open","onOpenChange","disabled","duration","storageKey","className"]);const{isOpen:g,toggle:k}=jd({defaultOpen:s,open:a,onOpenChange:o,storageKey:u}),w=l.useRef(null),[v,y]=l.useState(g?"auto":0);l.useEffect(()=>{w.current&&y(g?w.current.scrollHeight:0)},[g,t]),l.useEffect(()=>{if(!g||!w.current)return;const $=new ResizeObserver(()=>{w.current&&g&&y(w.current.scrollHeight)});return $.observe(w.current),()=>{$.disconnect()}},[g]);const N=`collapsible-content-${l.useId()}`;return n.jsxs("div",F(A({ref:b,className:d},f),{children:[r!==void 0&&n.jsx("button",{type:"button",onClick:k,onKeyDown:$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),i||k())},disabled:i,"aria-expanded":g,"aria-controls":N,"aria-disabled":i,className:x("w-full","text-left","focus:outline-none","focus:ring-2","focus:ring-line-brand","focus:ring-offset-2",G("md")),children:r}),n.jsx("div",{id:N,ref:w,style:{height:typeof v=="number"?`${v}px`:v,overflow:"hidden",transition:`height ${c}ms ease-in-out`},"aria-hidden":!g,children:n.jsx("div",{children:t})})]}))});Cs.displayName="Collapsible";const Rr=l.memo(l.forwardRef(function(b,f){var p=b,{id:t,label:r,error:s=!1,success:a=!1,helperText:o,className:i="",disabled:c=!1,indeterminate:u=!1}=p,d=V(p,["id","label","error","success","helperText","className","disabled","indeterminate"]);const h=l.useId(),g=t||`checkbox-${h}`,k=l.useMemo(()=>s?`${g}-error`:void 0,[s,g]),w=l.useMemo(()=>o?`${g}-helper`:void 0,[o,g]),v=l.useMemo(()=>"focus:border-line-focus",[]),y=l.useMemo(()=>"focus:border-error",[]),N=l.useMemo(()=>s?y.replace("focus:border-","focus:ring-"):v.replace("focus:border-","focus:ring-"),[s,y,v]),$=l.useMemo(()=>x("h-4","w-4",G("sm"),"border","border-line-default","text-fg-brand","focus:ring-2",N,"focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed","cursor-pointer",s&&"border-error",!s&&a&&"border-success",i),[N,s,a,i]),E=l.useMemo(()=>x(be("label"),m("sm","ml"),c?"opacity-50 cursor-not-allowed":"cursor-pointer"),[c]),j=l.useRef(null),C=l.useCallback(S=>{j.current=S,typeof f=="function"?f(S):f&&(f.current=S),S&&(S.indeterminate=u)},[f,u]);return l.useEffect(()=>{j.current&&(j.current.indeterminate=u)},[u]),n.jsxs("div",{className:x("flex","flex-col",m("sm","my")),children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("input",A({type:"checkbox",id:g,ref:C,className:$,disabled:c,"aria-invalid":s,"aria-describedby":k||w||void 0,"aria-label":r?void 0:"Checkbox"},d)),r&&n.jsx("label",{htmlFor:g,className:E,children:r})]}),(s||a||o)&&n.jsx("div",{id:k||w,className:x(m("xs","mt"),be("caption"),s?"text-fg-error":a?"text-fg-success":"text-fg-secondary"),role:s||a?"alert":void 0,children:s?o||"This field has an error":o})]})}));Rr.displayName="Checkbox";const Wa=l.memo(l.forwardRef(function(f,d){var b=f,{id:t,label:r,error:s=!1,success:a=!1,helperText:o,className:i="",disabled:c=!1}=b,u=V(b,["id","label","error","success","helperText","className","disabled"]);const p=l.useId(),h=t||`radio-${p}`,g=l.useMemo(()=>s?`${h}-error`:void 0,[s,h]),k=l.useMemo(()=>o?`${h}-helper`:void 0,[o,h]),w=l.useMemo(()=>"focus:border-line-focus",[]),v=l.useMemo(()=>"focus:border-error",[]),y=l.useMemo(()=>s?v.replace("focus:border-","focus:ring-"):w.replace("focus:border-","focus:ring-"),[s,v,w]),N=l.useMemo(()=>x("h-4","w-4","border","border-line-default","text-fg-brand","focus:ring-2",y,"focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed","cursor-pointer",s&&"border-error",!s&&a&&"border-success",i),[y,s,a,i]),$=l.useMemo(()=>x(be("label"),m("sm","ml"),c?"opacity-50 cursor-not-allowed":"cursor-pointer"),[c]);return n.jsxs("div",{className:x("flex","flex-col",m("sm","my")),children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("input",A({type:"radio",id:h,ref:d,className:N,disabled:c,"aria-invalid":s,"aria-describedby":g||k||void 0,"aria-label":r?void 0:"Radio button"},u)),r&&n.jsx("label",{htmlFor:h,className:$,children:r})]}),(s||a||o)&&n.jsx("div",{id:g||k,className:x(m("xs","mt"),be("caption"),s?"text-fg-error":a?"text-fg-success":"text-fg-secondary"),role:s||a?"alert":void 0,children:s?o||"This field has an error":o})]})}));Wa.displayName="Radio";const Ut={track:{sm:{w:"w-9",h:"h-5"},md:{w:"w-11",h:"h-6"},lg:{w:"w-14",h:"h-7"}},thumb:{sm:{w:"w-4",h:"h-4"},md:{w:"w-5",h:"h-5"},lg:{w:"w-6",h:"h-6"}},translate:{sm:"translate-x-4",md:"translate-x-5",lg:"translate-x-7"}};function Nd(e){return{track:`${Ut.track[e].w} ${Ut.track[e].h}`,thumb:`${Ut.thumb[e].w} ${Ut.thumb[e].h}`,translate:Ut.translate[e]}}const Sd=xe("w-full",{variants:{size:{sm:"h-1",md:"h-2",lg:"h-3"},variant:{primary:"bg-surface-muted",secondary:"bg-surface-muted",success:"bg-success-bg-emphasis",error:"bg-error-bg-emphasis",warning:"bg-warning-bg-emphasis",info:"bg-info-bg-emphasis"}},defaultVariants:{size:"md",variant:"primary"}}),Vn=xe("transition-all",{variants:{variant:{primary:"bg-surface-brand",secondary:"bg-surface-secondary",success:"bg-success",error:"bg-error",warning:"bg-warning",info:"bg-info"}},defaultVariants:{variant:"primary"}}),Es=l.forwardRef(function(b,f){var p=b,{value:t,max:r=100,variant:s="primary",size:a="md",showLabel:o=!1,label:i,"aria-label":c,className:u=""}=p,d=V(p,["value","max","variant","size","showLabel","label","aria-label","className"]);const h=t===void 0,g=h?void 0:Math.min(Math.max(t/r*100,0),100),k=c||(h?"Loading in progress":`Progress: ${g==null?void 0:g.toFixed(0)}%`);return n.jsxs("div",F(A({ref:f,className:x("w-full",u)},d),{children:[o&&(i||!h)&&n.jsxs("div",{className:x("flex","items-center","justify-between",m("xs","mb")),children:[i&&n.jsx("span",{className:x(se("bodySmall"),Ae("label"),"text-fg-primary"),children:i}),!h&&g!==void 0&&n.jsxs("span",{className:x(se("bodySmall"),"text-fg-secondary"),children:[g.toFixed(0),"%"]})]}),n.jsx("div",{role:"progressbar","aria-valuemin":h?void 0:0,"aria-valuemax":h?void 0:r,"aria-valuenow":h?void 0:t,"aria-label":k,"aria-busy":h,className:x("relative","w-full","overflow-hidden",Sd({size:a,variant:s}),G("full")),children:h?n.jsx("div",{className:x("absolute","top-0","left-0","bottom-0",Vn({variant:s}),G("full"),"motion-reduce:animate-none"),style:{width:"30%",animation:"progress-indeterminate 1.5s ease-in-out infinite"}}):n.jsx("div",{className:x("h-full",Vn({variant:s}),G("full"),"transition-all","duration-300","ease-out"),style:{width:`${g}%`},"aria-hidden":"true"})})]}))});Es.displayName="Progress";const Ha=l.memo(l.forwardRef(function(g,h){var k=g,{size:t="md",label:r,helperText:s,error:a=!1,success:o=!1,className:i="",disabled:c=!1,checked:u,defaultChecked:d,onChange:f,id:b}=k,p=V(k,["size","label","helperText","error","success","className","disabled","checked","defaultChecked","onChange","id"]);const w=u!==void 0,[v,y]=l.useState(d!=null?d:!1),N=w?!!u:v,$=l.useId(),E=b||`switch-${$}`,j=l.useMemo(()=>r?`${E}-label`:void 0,[r,E]),C=l.useMemo(()=>s?`${E}-helper`:void 0,[s,E]),S=l.useMemo(()=>Nd(t),[t]),M=l.useMemo(()=>"focus:border-line-focus".replace("focus:border-","focus:ring-"),[]),L=l.useMemo(()=>x("relative","inline-flex","shrink-0","cursor-pointer",G("full"),"border-2","border-transparent",Ne("base"),"focus:outline-none","focus:ring-2",M,"focus:ring-offset-2",S.track,N?"bg-surface-brand":"bg-surface-muted",a&&!N&&"border-error",!a&&o&&!N&&"border-success",c&&"opacity-50 cursor-not-allowed",i),[M,S.track,N,a,o,c,i]),D=l.useMemo(()=>x("pointer-events-none","inline-block",G("full"),"bg-surface-base","shadow","transform",Ne("base"),S.thumb,N?S.translate:"translate-x-0"),[S.thumb,S.translate,N]);return n.jsxs("div",{className:x("flex","items-start",m("md","gap")),children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("button",{type:"button",className:L,role:"switch","aria-checked":N,"aria-labelledby":j,"aria-describedby":C,disabled:c,onClick:l.useCallback(R=>{if(c)return;const I=!N;if(w||y(I),f){const _=F(A({},R),{target:F(A({},R.target),{checked:I}),currentTarget:F(A({},R.currentTarget),{checked:I})});f(_)}},[c,f,N,w]),onKeyDown:l.useCallback(R=>{if(c||R.key!=="Enter"&&R.key!==" ")return;R.preventDefault();const I=!N;if(w||y(I),f){const _=F(A({},R),{target:F(A({},R.target),{checked:I}),currentTarget:F(A({},R.currentTarget),{checked:I})});f(_)}},[c,f,N,w]),children:n.jsx("span",{className:D})}),n.jsx("input",A({ref:h,type:"checkbox",id:E,checked:N,onChange:f!=null?f:(()=>{}),disabled:c,className:"sr-only","aria-hidden":"true",tabIndex:-1},p))]}),(r||s)&&n.jsxs("div",{className:"flex-1",children:[r&&n.jsx("label",{id:j,htmlFor:E,className:x("block",se("bodySmall"),Ae("label"),a?"text-fg-error":"text-fg-primary",c?"opacity-50":"cursor-pointer"),children:r}),s&&n.jsx("p",{id:C,className:x(m("xs","mt"),se("bodySmall"),a?"text-fg-error":o?"text-fg-success":"text-fg-secondary"),children:s})]})]})}));Ha.displayName="Switch";const $d={horizontal:"w-full border-t",vertical:"h-full border-l self-stretch"},Cd={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"},Ts=l.memo(function(o){var i=o,{orientation:t="horizontal",variant:r="solid",className:s=""}=i,a=V(i,["orientation","variant","className"]);const c=x("border-0","border-line-default",$d[t],Cd[r],s);return t==="vertical"?n.jsx("div",A({className:c,role:"separator","aria-orientation":"vertical"},a)):n.jsx("hr",A({className:c,role:"separator","aria-orientation":"horizontal"},a))});Ts.displayName="Separator";const Ba=l.forwardRef(function(v,w){var y=v,{value:t,defaultValue:r,min:s=0,max:a=100,step:o=1,variant:i="single",size:c="md",disabled:u=!1,showValue:d=!1,marks:f=[],onChange:b,onValueChange:p,label:h,className:g=""}=y,k=V(y,["value","defaultValue","min","max","step","variant","size","disabled","showValue","marks","onChange","onValueChange","label","className"]);const N=l.useRef(null),$=l.useId(),E=l.useId(),j=l.useId(),[C,S]=l.useState(r||(i==="range"?[s,a]:s)),[M,L]=l.useState(!1),[D,R]=l.useState(null),I=t!==void 0,_=I?t:C,O=te=>(te-s)/(a-s)*100,z=te=>{if(!N.current)return s;const Q=N.current.getBoundingClientRect(),U=Math.max(0,Math.min(1,(te-Q.left)/Q.width)),Z=s+U*(a-s);return Math.round(Z/o)*o},H=(te,Q="min")=>{if(u)return;te.preventDefault(),L(!0),R(Q);const U=q=>{if(!N.current)return;const ie=z(q.clientX);B(ie,Q)},Z=()=>{L(!1),R(null),document.removeEventListener("mousemove",U),document.removeEventListener("mouseup",Z)};document.addEventListener("mousemove",U),document.addEventListener("mouseup",Z)},B=(te,Q="min")=>{const U=Math.max(s,Math.min(a,te));if(i==="range"){const[Z,q]=Array.isArray(_)?_:[s,a];let ie;Q==="min"?ie=[Math.min(U,q),q]:ie=[Z,Math.max(U,Z)],I||S(ie),b==null||b(ie),p==null||p(ie)}else I||S(U),b==null||b(U),p==null||p(U)},ae=te=>{if(u||M)return;const Q=z(te.clientX);B(Q)},W=()=>"focus:ring-line-brand ring-offset-2",P=xe(x("relative","cursor-pointer"),{variants:{size:{sm:"h-1",md:"h-2",lg:"h-3"},disabled:{true:"opacity-50 cursor-not-allowed",false:""}},defaultVariants:{size:"md",disabled:!1}}),K=xe(x("absolute","bg-surface-brand",G("full"),"border-2","border-white",he("md"),"cursor-grab","active:cursor-grabbing",Ne("base"),"-translate-x-1/2","-translate-y-1/2","top-1/2"),{variants:{size:{sm:"w-3 h-3",md:"w-4 h-4",lg:"w-5 h-5"},active:{true:W(),false:""}},defaultVariants:{size:"md",active:!1}}),oe=typeof _=="number"?_:_[0],ne=Array.isArray(_)?_[0]:s,de=Array.isArray(_)?_[1]:oe,J=O(ne),ee=O(de);return n.jsxs("div",F(A({ref:w,className:x("w-full",g)},k),{children:[n.jsxs("label",{id:$,className:x("block",se("bodySmall"),Ae("label"),"text-fg-primary",m("sm","mb")),children:[h,d&&n.jsx("span",{className:x(m("sm","ml"),"text-fg-secondary"),children:i==="range"?`${ne} - ${de}`:oe})]}),i==="range"&&n.jsxs(n.Fragment,{children:[n.jsx("span",{id:E,className:"sr-only",children:"minimum"}),n.jsx("span",{id:j,className:"sr-only",children:"maximum"})]}),n.jsxs("div",{ref:N,className:x(P({size:c,disabled:u}),"bg-surface-muted",G("full")),onClick:ae,role:i==="range"?void 0:"slider","aria-valuemin":i==="range"?void 0:s,"aria-valuemax":i==="range"?void 0:a,"aria-valuenow":i==="range"?void 0:oe,"aria-disabled":i==="range"?void 0:u,"aria-labelledby":i==="range"?void 0:$,children:[n.jsx("div",{className:x("absolute",P({size:c}),"bg-surface-brand",G("full"),Ne("base")),style:{left:`${J}%`,width:`${ee-J}%`}}),f.map(te=>{const Q=O(te);return n.jsx("div",{className:x("absolute","w-1","h-1","bg-line-strong",G("full"),"-translate-x-1/2"),style:{left:`${Q}%`,top:"50%",transform:"translate(-50%, -50%)"}},te)}),i==="range"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:x(K({size:c,active:D==="min"})),style:{left:`${J}%`},onMouseDown:te=>H(te,"min"),role:"slider","aria-valuemin":s,"aria-valuemax":de,"aria-valuenow":ne,"aria-labelledby":`${$} ${E}`}),n.jsx("div",{className:x(K({size:c,active:D==="max"})),style:{left:`${ee}%`},onMouseDown:te=>H(te,"max"),role:"slider","aria-valuemin":ne,"aria-valuemax":a,"aria-valuenow":de,"aria-labelledby":`${$} ${j}`})]}):n.jsx("div",{className:x(K({size:c,active:M})),style:{left:`${ee}%`},onMouseDown:te=>H(te)}),d&&!h&&n.jsx("div",{className:"absolute -top-6 left-0 right-0 flex justify-center",children:n.jsx("span",{className:x(se("caption"),"text-fg-secondary","bg-surface-overlay",m("sm","px"),m("xs","py"),G("md"),"shadow"),children:i==="range"?`${ne} - ${de}`:oe})})]})]}))});Ba.displayName="Slider";const Wn=xe(x("inline-flex","items-center","font-medium",G("full"),m("xs","gap")),{variants:{variant:{default:x("bg-surface-muted","text-fg-primary","border","border-line-default"),outlined:x("bg-transparent","text-fg-primary","border","border-line-default"),filled:x("bg-surface-brand-strong","text-fg-inverse","border","border-transparent")},size:{sm:x(m("xs","px"),m("xs","py"),se("caption")),md:x(m("sm","px"),m("xs","py"),se("bodySmall")),lg:x(m("md","px"),m("sm","py"),se("body"))},selected:{true:x("bg-surface-brand-strong","text-fg-inverse","border","border-line-brand"),false:""},disabled:{true:"opacity-50 cursor-not-allowed",false:""}},compoundVariants:[{selected:!0,variant:"default",class:""},{selected:!0,variant:"outlined",class:""},{selected:!0,variant:"filled",class:""}],defaultVariants:{variant:"default",size:"md",selected:!1,disabled:!1}}),As=l.forwardRef(function(t,r){const{children:s,variant:a="default",size:o="md",selected:i=!1,disabled:c=!1,className:u="","aria-label":d,tabIndex:f,asChild:b=!1}=t,h=(()=>{if(d)return d;if(typeof s=="string")return s;if(typeof s=="object"&&s!==null&&"props"in s){const S=s.props;if(S!=null&&S.children&&typeof S.children=="string")return S.children}})();if(b)return n.jsx(Da,{ref:r,className:x(Wn({variant:a,size:o,selected:i,disabled:c}),u),"aria-label":d,"aria-disabled":c||void 0,tabIndex:f,children:s});const{onRemove:g,onClick:k,count:w}=t,v=k!==void 0,y=v&&!c,N=S=>{c||(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),k==null||k())},$=w!==void 0,E=i||a==="filled",j=$?n.jsx("span",{"aria-hidden":v||void 0,className:x("inline-flex","items-center","justify-center","tabular-nums","leading-none",G("full"),m("xs","px"),m("0.5","py"),se("caption"),Ae("label"),E?x("bg-surface-base","text-fg-brand-emphasis"):x("bg-surface-brand-strong","text-fg-inverse")),children:w}):null,C=$&&h!==void 0?`${h}, ${w}`:h;return n.jsxs("div",{ref:r,className:x(Wn({variant:a,size:o,selected:i,disabled:c}),g&&m("xs","pr"),u),"aria-disabled":c,children:[v?n.jsx("button",{type:"button",onClick:c?void 0:k,onKeyDown:N,disabled:c,"aria-pressed":i?!0:void 0,"aria-label":d||C,tabIndex:f!==void 0?f:y?0:void 0,className:x("flex-1","bg-transparent","border-0",m("none","p"),"text-inherit","text-left","cursor-pointer","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-2",G("full")),children:s}):n.jsx("span",{children:s}),j,g&&!c&&n.jsx("button",{type:"button",onClick:S=>{S.stopPropagation(),g()},className:x(m("xs","ml"),"hover:bg-tint-hover",G("full"),m("xs","p"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-1"),"aria-label":`Remove ${h||"chip"}`,children:n.jsx(Ie,{className:"h-3 w-3","aria-hidden":"true"})})]})});As.displayName="Chip";const xr=l.forwardRef(function(b,f){var p=b,{src:t,alt:r,fallback:s,size:a="md",variant:o="circle",loading:i="eager","aria-label":c,className:u=""}=p,d=V(p,["src","alt","fallback","size","variant","loading","aria-label","className"]);const[h,g]=l.useState(!1),[k,w]=l.useState(!1),v={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl","2xl":"h-24 w-24 text-3xl","3xl":"h-28 w-28 text-4xl"},y={circle:G("full"),square:G("none"),rounded:G("md")},N=!t||h,$=typeof s=="string"?s.toUpperCase().slice(0,2):s,E=c||r||"User avatar";return n.jsxs("div",F(A({ref:f,className:x("relative","inline-flex","items-center","justify-center","shrink-0","font-medium","overflow-hidden",v[a],y[o],"bg-surface-muted","text-fg-primary",u),role:"img","aria-label":E},d),{children:[!N&&t&&n.jsx("img",{src:t,alt:r||"",loading:i,className:x("w-full","h-full","object-cover",y[o],k?"opacity-100":"opacity-0","transition-opacity","duration-200"),onLoad:()=>w(!0),onError:()=>{g(!0),w(!1)},"aria-hidden":"true"}),N&&n.jsx("span",{className:x("flex","items-center","justify-center","w-full","h-full",y[o]),"aria-hidden":"true",children:$||"?"})]}))});xr.displayName="Avatar";function Ed(c){var u=c,{children:e,max:t=3,size:r="md",variant:s="circle",spacing:a="md",className:o=""}=u,i=V(u,["children","max","size","variant","spacing","className"]);const d={none:"",sm:"-space-x-1",md:"-space-x-2",lg:"-space-x-3"},f=l.Children.toArray(e).filter(Boolean),b=f.slice(0,t),p=f.length-t;return n.jsxs("div",F(A({className:x("flex","items-center",d[a],o),role:"group","aria-label":`${f.length} avatars`},i),{children:[b.map((h,g)=>{let k=h;if(l.isValidElement(h)&&h.type===xr){const w=h.props;k=l.cloneElement(h,{size:w.size||r,variant:w.variant||s})}return n.jsx("div",{className:"ring-2 ring-surface-base",style:{zIndex:f.length-g},children:k},g)}),p>0&&n.jsx(xr,{size:r,variant:s,fallback:`+${p}`,"aria-label":`${p} more avatars`,className:"ring-2 ring-surface-base",style:{zIndex:0}})]}))}const Td=xe(x("inline-block",G("full")),{variants:{variant:{online:"",offline:"",pending:"",warning:"",error:"",info:""},size:{sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"}},compoundVariants:[{variant:"online",class:"bg-success"},{variant:"offline",class:"bg-status-neutral"},{variant:"pending",class:"bg-warning"},{variant:"warning",class:"bg-warning"},{variant:"error",class:"bg-error"},{variant:"info",class:"bg-info"}],defaultVariants:{variant:"offline",size:"md"}}),Ua=l.memo(l.forwardRef(function(c,i){var u=c,{variant:t="offline",size:r="md",className:s="","aria-label":a}=u,o=V(u,["variant","size","className","aria-label"]);const d=l.useMemo(()=>x(Td({variant:t,size:r}),s),[t,r,s]),f=l.useMemo(()=>a||{online:"Online",offline:"Offline",pending:"Pending",warning:"Warning",error:"Error",info:"Info"}[t],[a,t]);return n.jsx("span",A({ref:i,role:"status","aria-label":f,className:d},o))}));Ua.displayName="Dot";const Ad=xe(x("inline-flex","items-center","border",G("md")),{variants:{tone:{neutral:x("bg-surface-muted","text-fg-primary","border-line-default"),success:x("bg-success-bg","text-success-dark","border-success"),warning:x("bg-warning-bg","text-warning-dark","border-warning"),error:x("bg-error-bg","text-error-dark","border-error"),info:x("bg-info-bg","text-info-dark","border-info"),primary:x("bg-surface-brand-subtle","text-fg-brand-emphasis","border-line-brand"),secondary:x("bg-surface-secondary-subtle","text-fg-brand-secondary-emphasis","border-line-secondary"),dataviz:x("bg-dataviz-bg","text-dataviz-dark","border-dataviz")},size:{sm:x(m("1.5","px"),m("0.5","py"),m("0.5","gap"),"[&_svg]:size-3"),md:x(m("sm","px"),m("0.5","py"),m("xs","gap"),"[&_svg]:size-3.5")}},defaultVariants:{tone:"neutral",size:"md"}}),Ga=l.memo(l.forwardRef(function(d,u){var f=d,{label:t,source:r,tone:s="neutral",size:a="md",icon:o,className:i=""}=f,c=V(f,["label","source","tone","size","icon","className"]);const b=r!=null&&r!=="",p=a==="sm"?"caption":"bodySmall";return n.jsxs("span",F(A({ref:u,className:x(Ad({tone:s,size:a}),i)},c),{children:[o?n.jsx("span",{className:"inline-flex shrink-0 items-center","aria-hidden":"true",children:o}):null,n.jsx("span",{className:x(se(p),Ae("label")),children:t}),b?n.jsxs(n.Fragment,{children:[n.jsx("span",{"aria-hidden":"true",className:se("caption"),children:"·"}),n.jsx("span",{className:x(se("caption"),Ae("caption")),children:r})]}):null]}))}));Ga.displayName="DataBadge";function Id(s){var a=s,{children:e,className:t}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:x("grid items-start",m("1.5","gap"),m("base","mb"),"[&:has([data-card-actions])]:grid-cols-[1fr_auto]","[&:has([data-card-actions])>[data-card-actions]]:row-span-full",t)},r),{children:e}))}function Rd(i){var c=i,{children:e,icon:t,badge:r,as:s="h2",className:a}=c,o=V(c,["children","icon","badge","as","className"]);return n.jsxs(s,F(A({className:x("text-base font-semibold text-fg-primary","flex items-center",m("sm","gap"),a)},o),{children:[t?n.jsx("span",{className:"shrink-0 inline-flex",children:t}):null,n.jsx("span",{children:e}),r?n.jsx("span",{className:"inline-flex",children:r}):null]}))}function Md(s){var a=s,{children:e,className:t}=a,r=V(a,["children","className"]);return n.jsx("p",F(A({className:x("text-sm text-fg-secondary",t)},r),{children:e}))}function Dd(s){var a=s,{children:e,className:t}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({"data-card-actions":"",className:x("flex items-center self-start",m("sm","gap"),t)},r),{children:e}))}function _d(s){var a=s,{children:e,className:t}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:x(t)},r),{children:e}))}function Ld(d){var f=d,{variant:e="default",padding:t="medium",className:r="",onClick:s,"aria-label":a,"aria-labelledby":o,asSection:i=!1,children:c}=f,u=V(f,["variant","padding","className","onClick","aria-label","aria-labelledby","asSection","children"]);typeof process!="undefined"&&process.env.NODE_ENV!=="production"&&i&&!a&&!o&&console.warn("[Card] `asSection={true}` requires an accessible name. Pass `aria-labelledby` pointing to your Card.Title `id`, or `aria-label`. A <section> without a name is an anonymous landmark that hurts screen-reader navigation.");const b=xe(x("bg-surface-base",G("lg"),"border","border-line-default",he("sm")),{variants:{variant:{default:"",hover:x(`hover:${he("md")}`,"transition-shadow","cursor-pointer"),selected:x("border-line-brand",he("md"))},padding:{none:"",small:m("xs","p"),medium:m("base","p"),large:m("lg","p")}},defaultVariants:{variant:"default",padding:"medium"}}),p=s!==void 0,h=p?"button":void 0,g=p?0:void 0,k=x(b({variant:e,padding:t}),r),v=A({className:k,role:h,tabIndex:g,onClick:s,onKeyDown:p?y=>{p&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),s==null||s())}:void 0,"aria-label":a,"aria-labelledby":o},u);return i?n.jsx("section",F(A({},v),{children:c})):n.jsx("div",F(A({},v),{children:c}))}const Ka=l.memo(Ld);Ka.displayName="Card";const ht=Ka;ht.Header=Id;ht.Title=Rd;ht.Subtitle=Md;ht.Actions=Dd;ht.Body=_d;const Fd={start:"items-start text-left",center:"items-center text-center"},Pd={neutral:"text-fg-tertiary",success:"text-fg-success",warning:"text-fg-warning",error:"text-fg-error"};function Od(u){var d=u,{value:e,label:t,hint:r,icon:s,align:a="start",tone:o="neutral",className:i}=d,c=V(d,["value","label","hint","icon","align","tone","className"]);const f=e==null;return n.jsxs("div",F(A({className:x("bg-surface-base flex-1 flex flex-col",m("base","p"),m("xs","gap-y"),Fd[a],i)},c),{children:[s?n.jsx("span",{className:"text-icon-default inline-flex",children:s}):null,f?n.jsx("span",{"aria-label":"No data",className:"text-fg-tertiary text-2xl font-semibold leading-tight",children:"—"}):n.jsx("span",{className:"text-fg-primary text-2xl font-semibold leading-tight",children:e}),n.jsx("span",{className:"text-fg-secondary text-sm",children:t}),r?n.jsx("span",{className:x("text-xs",Pd[o]),children:r}):null]}))}const zd={2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4"};function Vd(i){var c=i,{layout:e="grid",cols:t=4,floatingBadge:r,className:s,children:a}=c,o=V(c,["layout","cols","floatingBadge","className","children"]);const u=e==="grid";return n.jsxs("div",F(A({className:x("relative",r&&m("base","pt"),s)},o),{children:[r?n.jsx("div",{className:"absolute top-4 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10",children:r}):null,n.jsx("div",{className:x("bg-line-default border border-line-default overflow-hidden gap-px",G("lg"),u?`grid grid-cols-2 ${zd[t]}`:"flex"),children:a})]}))}function Wd(o){var i=o,{label:e,children:t,wrap:r=!0,className:s}=i,a=V(i,["label","children","wrap","className"]);const u=!(a["aria-label"]!=null||a["aria-labelledby"]!=null)&&typeof e=="string"&&e!==""?e:void 0;return n.jsxs("div",F(A({role:"group","aria-label":u,className:x("flex items-center",r?"flex-wrap":"flex-nowrap",m("sm","gap"),s)},a),{children:[e?n.jsx("span",{className:"shrink-0 text-fg-secondary text-sm",children:e}):null,t]}))}function Ya(e){const t=l.createContext(void 0);t.displayName=e.displayName;function r({value:o,children:i}){return n.jsx(t.Provider,{value:o,children:i})}function s(){const o=l.useContext(t);if(o===void 0)throw new Error(e.errorMessage);return o}function a(){return l.useContext(t)}return{Context:t,Provider:r,useContextRequired:s,useContextOptional:a}}const Mr=Ya({displayName:"FormContext",errorMessage:"useFormContext must be used within a Form component with react-hook-form integration"}),Hd=Mr.Context,Bd=Mr.Provider;function Is(){return Mr.useContextRequired()}function Ud(){return Mr.useContextOptional()}function qa({form:e,loading:t=!1,children:r}){const s={form:e,loading:t};return n.jsx(Bd,{value:s,children:r})}function Gd(c){var u=c,{children:e,onSubmit:t,loading:r=!1,error:s=null,success:a=null,className:o=""}=u,i=V(u,["children","onSubmit","loading","error","success","className"]);const d=x(m("lg","gap"),"flex","flex-col",o);if("form"in i&&i.form!==void 0){const k=i,{form:v,onSubmit:y,onSubmitError:N}=k,$=V(k,["form","onSubmit","onSubmitError"]),E=v.handleSubmit(j=>or(null,null,function*(){if(!r)try{yield y(j)}catch(C){N==null||N(C)}}),j=>{N==null||N(j)});return n.jsx(qa,{form:v,loading:r,children:n.jsxs("form",F(A({className:d,onSubmit:E,noValidate:!0},$),{children:[e,s&&n.jsx("div",{role:"alert",className:x(m("md","p"),Se("sm"),"text-error-dark","bg-error-bg","border","border-error",G("md")),children:s}),a&&n.jsx("div",{role:"alert",className:x(m("md","p"),Se("sm"),"text-success-dark","bg-success-bg","border","border-success",G("md")),children:a})]}))})}const b=i.onSubmit||t,w=i,{onSubmit:p}=w,h=V(w,["onSubmit"]),g=v=>{v.preventDefault(),b&&!r&&(b==null||b(v))};return n.jsxs("form",F(A({className:d,onSubmit:g,noValidate:!0},h),{children:[e,s&&n.jsx("div",{role:"alert",className:x(m("md","p"),Se("sm"),"text-error-dark","bg-error-bg","border","border-error",G("md")),children:s}),a&&n.jsx("div",{role:"alert",className:x(m("md","p"),Se("sm"),"text-success-dark","bg-success-bg","border","border-success",G("md")),children:a})]}))}var Kd=e=>e.type==="checkbox",Yd=e=>e instanceof Date,Be=e=>e==null;const qd=e=>typeof e=="object";var Ze=e=>!Be(e)&&!Array.isArray(e)&&qd(e)&&!Yd(e),Xd=e=>{const t=e.constructor&&e.constructor.prototype;return Ze(t)&&t.hasOwnProperty("isPrototypeOf")},Rs=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function at(e){if(e instanceof Date)return new Date(e);const t=typeof FileList!="undefined"&&e instanceof FileList;if(Rs&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(Ze(e)&&Xd(e)))return e;const s=r?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(s[a]=at(e[a]));return s}const _t={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ke={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Jd="root",Xa=["__proto__","constructor","prototype"];var Ms=e=>/^\w*$/.test(e),Xe=e=>e===void 0,Ds=e=>e.split(/[.[\]'"]/g).filter(Boolean),Pe=(e,t,r)=>{if(!t||!Ze(e))return r;const s=Ms(t)?[t]:Ds(t);if(s.some(o=>Xa.includes(o)))return r;const a=s.reduce((o,i)=>Be(o)?void 0:o[i],e);return Xe(a)||a===e?Xe(e[t])?r:e[t]:a},Ja=e=>typeof e=="boolean",Zd=e=>typeof e=="function",gr=(e,t,r)=>{let s=-1;const a=Ms(t)?[t]:Ds(t),o=a.length,i=o-1;for(;++s<o;){const c=a[s];let u=r;if(s!==i){const d=e[c];u=Ze(d)||Array.isArray(d)?d:isNaN(+a[s+1])?{}:[]}if(Xa.includes(c))return;e[c]=u,e=e[c]}};const Za=l.createContext(null);Za.displayName="HookFormControlContext";const Qd=()=>l.useContext(Za),eu=Rs?l.useLayoutEffect:l.useEffect;var Ye=e=>typeof e=="string";const tu=l.createContext(null);tu.displayName="HookFormContext";var ru=(e,t,r,s,a)=>t?F(A({},r[e]),{types:F(A({},r[e]&&r[e].types?r[e].types:{}),{[s]:a||!0})}):{},su=e=>Array.isArray(e)?e.filter(Boolean):[],qe=e=>Array.isArray(e)?e:[e],vr=e=>Ze(e)&&!Object.keys(e).length,nu=e=>e.type==="file",au=e=>{if(!Rs)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ou=e=>e.type==="radio";function iu(e,t){const r=t.slice(0,-1).length;let s=0;for(;s<r;){if(Be(e)){e=void 0;break}e=e[t[s]],s++}return e}function lu(e){for(const t in e)if(e.hasOwnProperty(t)&&!Xe(e[t]))return!1;return!0}function Qa(e,t){if(Ye(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const r=Array.isArray(t)?t:Ms(t)?[t]:Ds(t),s=r.length===1?e:iu(e,r),a=r.length-1,o=r[a];return s&&delete s[o],a!==0&&(Ze(s)&&vr(s)||Array.isArray(s)&&lu(s))&&Qa(e,r.slice(0,-1)),e}var eo=e=>e instanceof RegExp,mr=e=>({isOnSubmit:!e||e===_t.onSubmit,isOnBlur:e===_t.onBlur,isOnChange:e===_t.onChange,isOnAll:e===_t.all,isOnTouch:e===_t.onTouched}),cu=(e,t,r)=>t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(`${s}.`));const bs=(e,t,r,s)=>{for(const o of Object.keys(e)){const i=Pe(e,o);if(i){const a=i,{_f:c}=a,u=V(a,["_f"]);if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],o))return!0;if(c.ref&&t(c.ref,c.name))return!0;if(bs(u,t))break}else if(Ze(u)&&bs(u,t))break}}};var du=(e,t,r)=>{const s=Pe(e,r),a=Array.isArray(s)?s:[];return gr(a,Jd,t[r]),gr(e,r,a),e};function Hn(e,t,r="validate"){if(Ye(e)||Array.isArray(e)&&e.every(Ye)||Ja(e)&&!e)return{type:r,message:Ye(e)?e:"",ref:t}}var Mt=e=>Ze(e)&&!eo(e)?e:{value:e,message:""},uu=(e,t,r,s,a,o)=>or(null,null,function*(){const{ref:i,refs:c,required:u,maxLength:d,minLength:f,min:b,max:p,pattern:h,validate:g,name:k,valueAsNumber:w,mount:v}=e._f,y=Pe(r,k);if(!v||t.has(k))return{};const N=c?c[0]:i,$=M=>{if(a&&N.reportValidity){const L=Ja(M)?"":M||"";c?c.forEach(D=>D.setCustomValidity(L)):N.setCustomValidity(L),N.reportValidity()}},E={};ou(i),Kd(i);const j=(w||nu(i))&&Xe(i.value)&&Xe(y)||au(i)&&i.value===""||y===""||Array.isArray(y)&&!y.length,C=ru.bind(null,k,s,E),S=(M,L,D,R=Ke.maxLength,I=Ke.minLength)=>{const _=M?L:D;E[k]=A({type:M?R:I,message:_,ref:i},C(M?R:I,_))};if(!Array.isArray(y)||!y.length){const{value:M,message:L}=Ye(u)?{value:!!u,message:u}:Mt(u);if(M&&(E[k]=A({type:Ke.required,message:L,ref:N},C(Ke.required,L)),!s))return $(L),E}if(!j&&(!Be(b)||!Be(p))){let M,L;const D=Mt(p),R=Mt(b);if(!Be(y)&&!isNaN(y)){const I=i.valueAsNumber||y&&+y;Be(D.value)||(M=I>D.value),Be(R.value)||(L=I<R.value)}else{const I=i.valueAsDate||new Date(y),_=H=>new Date(new Date().toDateString()+" "+H),O=i.type=="time",z=i.type=="week";Ye(D.value)&&y&&(M=O?_(y)>_(D.value):z?y>D.value:I>new Date(D.value)),Ye(R.value)&&y&&(L=O?_(y)<_(R.value):z?y<R.value:I<new Date(R.value))}if((M||L)&&(S(!!M,D.message,R.message,Ke.max,Ke.min),!s))return $(E[k].message),E}if((d||f)&&!j&&(Ye(y)||Array.isArray(y))){const M=Mt(d),L=Mt(f),D=!Be(M.value)&&y.length>+M.value,R=!Be(L.value)&&y.length<+L.value;if((D||R)&&(S(D,M.message,L.message),!s))return $(E[k].message),E}if(h&&!j&&Ye(y)){const{value:M,message:L}=Mt(h);if(eo(M)&&!y.match(M)&&(E[k]=A({type:Ke.pattern,message:L,ref:i},C(Ke.pattern,L)),!s))return $(L),E}if(g){if(Zd(g)){const M=yield g(y,r),L=Hn(M,N);if(L&&(E[k]=A(A({},L),C(Ke.validate,L.message)),!s))return $(L.message),E}else if(Ze(g)){let M={};for(const L in g){if(!vr(M)&&!s)break;const D=Hn(yield g[L](y,r),N,L);D&&(M=A(A({},D),C(L,D.message)),$(D.message),s&&(E[k]=M))}if(!vr(M)&&(E[k]=A({ref:N},M),!s))return E}}return $(!0),E}),nt=()=>{if(typeof crypto!="undefined"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance=="undefined"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(Math.random()*16+e)%16|0;return(t=="x"?r:r&3|8).toString(16)})},ss=(e,t,r={})=>r.shouldFocus||Xe(r.shouldFocus)?r.focusName||`${e}.${Xe(r.focusIndex)?t:r.focusIndex}.`:"",ns=(e,t)=>[...e,...qe(t)],as=e=>Array.isArray(e)?e.map(()=>{}):void 0;function os(e,t,r){return[...e.slice(0,t),...qe(r),...e.slice(t)]}var is=(e,t,r)=>Array.isArray(e)?(Xe(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],ls=(e,t)=>[...qe(t),...qe(e)];function fu(e,t){let r=0;const s=[...e];for(const a of t)s.splice(a-r,1),r++;return su(s).length?s:[]}var cs=(e,t)=>Xe(t)?[]:fu(e,qe(t).sort((r,s)=>r-s)),ds=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]},Bn=(e,t,r)=>(e[t]=r,e);function mu(e){const t=Qd(),{control:r=t,name:s,keyName:a="id",disabled:o,shouldUnregister:i,rules:c}=e,[u,d]=l.useState(o?[]:r._getFieldArray(s)),f=l.useRef(o?[]:r._getFieldArray(s).map(nt)),b=l.useRef(!1);o||r._names.array.add(s),l.useMemo(()=>!o&&c&&u.length>=0&&r.register(s,c),[r,s,u.length,c,o]),eu(()=>{if(!o)return r._subjects.array.subscribe({next:({values:E,name:j})=>{if(j===s||!j){const C=Pe(E,s);Array.isArray(C)?(d(C),f.current=C.map(nt)):j||(d([]),f.current=[])}}}).unsubscribe},[r,s,o]);const p=l.useCallback(E=>{b.current=!0,r._setFieldArray(s,E)},[r,s]),h=(E,j)=>{if(o)return;const C=qe(at(E)),S=ns(r._getFieldArray(s),C);r._names.focus=ss(s,S.length-1,j),f.current=ns(f.current,C.map(nt)),p(S),d(S),r._setFieldArray(s,S,ns,{argA:as(E)})},g=(E,j)=>{if(o)return;const C=qe(at(E)),S=ls(r._getFieldArray(s),C);r._names.focus=ss(s,0,j),f.current=ls(f.current,C.map(nt)),p(S),d(S),r._setFieldArray(s,S,ls,{argA:as(E)})},k=E=>{if(o)return;const j=cs(r._getFieldArray(s),E);f.current=cs(f.current,E),p(j),d(j),!Array.isArray(Pe(r._fields,s))&&gr(r._fields,s,void 0),r._setFieldArray(s,j,cs,{argA:E})},w=(E,j,C)=>{if(o)return;const S=qe(at(j)),M=os(r._getFieldArray(s),E,S);r._names.focus=ss(s,E,C),f.current=os(f.current,E,S.map(nt)),p(M),d(M),r._setFieldArray(s,M,os,{argA:E,argB:as(j)})},v=(E,j)=>{if(o)return;const C=r._getFieldArray(s);ds(C,E,j),ds(f.current,E,j),p(C),d(C),r._setFieldArray(s,C,ds,{argA:E,argB:j},!1)},y=(E,j)=>{if(o)return;const C=r._getFieldArray(s);is(C,E,j),is(f.current,E,j),p(C),d(C),r._setFieldArray(s,C,is,{argA:E,argB:j},!1)},N=(E,j)=>{if(o)return;const C=at(j),S=Bn(r._getFieldArray(s),E,C);f.current=[...S].map((M,L)=>!M||L===E?nt():f.current[L]),p(S),d([...S]),r._setFieldArray(s,S,Bn,{argA:E,argB:C},!0,!1)},$=E=>{if(o)return;const j=qe(at(E));f.current=j.map(nt),p([...j]),d([...j]),r._setFieldArray(s,[...j],C=>C,{},!0,!1)};return l.useEffect(()=>{if(o)return;r._state.action=!1,cu(s,r._names)&&r._subjects.state.next(A({},r._formState));const E=mr(r._options.mode);if(b.current&&(!E.isOnSubmit||r._formState.isSubmitted)&&!mr(r._options.reValidateMode).isOnSubmit&&!E.isOnBlur)if(r._options.resolver)r._runSchema([s]).then(j=>{r._updateIsValidating([s]);const C=Pe(j.errors,s),S=Pe(r._formState.errors,s);(S?!C&&S.type||C&&(S.type!==C.type||S.message!==C.message):C&&C.type)&&(C?gr(r._formState.errors,s,C):Qa(r._formState.errors,s),r._subjects.state.next({errors:r._formState.errors}))});else{const j=Pe(r._fields,s);j&&j._f&&!(mr(r._options.reValidateMode).isOnSubmit&&mr(r._options.mode).isOnSubmit)&&uu(j,r._names.disabled,r._formValues,r._options.criteriaMode===_t.all,r._options.shouldUseNativeValidation).then(C=>!vr(C)&&r._subjects.state.next({errors:du(r._formState.errors,C,s)}))}r._subjects.state.next({name:s,values:at(r._formValues)}),r._names.focus&&bs(r._fields,(j,C)=>{if(r._names.focus&&C.startsWith(r._names.focus)&&j.focus)return j.focus(),1}),r._names.focus="",r._setValid(),b.current=!1},[u,s,r,o]),l.useEffect(()=>(o||!Pe(r._formValues,s)&&r._setFieldArray(s),()=>{if(o)return;const E=!(r._options.shouldUnregister||i),j=(C,S)=>{const M=Pe(r._fields,C);M&&M._f&&(M._f.mount=S)};b.current&&E&&r._subjects.state.next({name:s,values:at(r._formValues)}),E?j(s,!1):r.unregister(s)}),[s,r,a,i,o]),{swap:l.useCallback(v,[p,s,r,o]),move:l.useCallback(y,[p,s,r,o]),prepend:l.useCallback(g,[p,s,r,o]),append:l.useCallback(h,[p,s,r,o]),remove:l.useCallback(k,[p,s,r,o]),insert:l.useCallback(w,[p,s,r,o]),update:l.useCallback(N,[p,s,r,o]),replace:l.useCallback($,[p,s,r,o]),fields:l.useMemo(()=>u.map((E,j)=>F(A({},E),{[a]:f.current[j]||nt()})),[u,a])}}function pu({name:e,label:t,children:r,rules:s,className:a=""}){var p;const{form:o}=Is();if(!o)throw new Error("FormField must be used within a Form component with react-hook-form integration");const{register:i,formState:{errors:c},watch:u}=o,d=i(e,s),f=(p=Pe(c,e))==null?void 0:p.message,b=u(e);return n.jsxs("div",{className:x("flex","flex-col",m("sm","gap"),a),children:[t&&n.jsx(Pt,{htmlFor:e,className:x("block",Se("sm"),Ft("medium"),"text-fg-primary"),children:t}),r({name:e,id:e,register:h=>i(h,s),error:f,value:b,onChange:d.onChange,onBlur:d.onBlur}),f&&n.jsx(za,{message:f})]})}function bu(e){const{form:t}=Is();if(!t)throw new Error("useFormFieldArray must be used within a Form component with react-hook-form integration");return mu(F(A({},e),{control:t.control}))}function to(a){var o=a,{items:e,separator:t="/",className:r=""}=o,s=V(o,["items","separator","className"]);const i=["flex","items-center",m("sm","space-x"),se("bodySmall")],c=x(...i,r);return n.jsx("nav",F(A({"aria-label":"Breadcrumb",className:c},s),{children:n.jsx("ol",{className:x("flex","items-center",m("sm","space-x")),children:e.map((u,d)=>{const f=d===e.length-1;return n.jsxs("li",{className:"flex items-center",children:[d>0&&n.jsx("span",{className:x(m("sm","mx"),"text-fg-tertiary"),"aria-hidden":"true",children:t}),f?n.jsx("span",{className:x("text-fg-primary",Ae("label")),"aria-current":"page",children:u.label}):u.href?n.jsx("a",{href:u.href,className:x("inline-flex","items-center",m("xs","px"),m("xs","pt"),"border-b-2","border-transparent",se("bodySmall"),Ae("label"),"transition-colors","text-fg-secondary","hover:border-line-emphasis","hover:text-fg-primary"),children:u.label}):n.jsx("span",{className:"text-fg-secondary",children:u.label})]},d)})})}))}function ro(u){var d=u,{currentPage:e,totalPages:t,onPageChange:r,totalItems:s,itemsPerPage:a,showPageInfo:o=!0,className:i=""}=d,c=V(d,["currentPage","totalPages","onPageChange","totalItems","itemsPerPage","showPageInfo","className"]);const f=()=>{e>1&&r(e-1)},b=()=>{e<t&&r(e+1)},p=v=>{v>=1&&v<=t&&v!==e&&r(v)},h=()=>{const v=[];if(t<=5)for(let N=1;N<=t;N++)v.push(N);else if(e<=3){for(let N=1;N<=4;N++)v.push(N);v.push("ellipsis"),v.push(t)}else if(e>=t-2){v.push(1),v.push("ellipsis");for(let N=t-3;N<=t;N++)v.push(N)}else{v.push(1),v.push("ellipsis");for(let N=e-1;N<=e+1;N++)v.push(N);v.push("ellipsis"),v.push(t)}return v},g=s&&a?(e-1)*a+1:void 0,k=s&&a?Math.min(e*a,s):void 0,w=x("flex","items-center","justify-between",m("base","px"),m("md","py"),i);return n.jsxs("nav",F(A({className:w,"aria-label":"Pagination"},c),{children:[n.jsxs("div",{className:x("flex","items-center",m("sm","gap")),children:[n.jsx(re,{variant:"secondary",onClick:f,disabled:e===1,size:"sm",children:"Previous"}),n.jsx("div",{className:x("flex","items-center",m("xs","gap")),children:h().map((v,y)=>{if(v==="ellipsis")return n.jsx("span",{className:x(m("sm","px"),"text-fg-tertiary"),children:"..."},`ellipsis-${y}`);const N=v,$=N===e;return n.jsx(re,{variant:$?"primary":"ghost",onClick:()=>p(N),size:"sm","aria-current":$?"page":void 0,"aria-label":`Go to page ${N}`,children:N},N)})}),n.jsx(re,{variant:"secondary",onClick:b,disabled:e===t,size:"sm",children:"Next"})]}),o&&s&&a&&n.jsxs("div",{className:x(Se("sm"),"text-fg-primary"),children:["Showing ",g," to ",k," of ",s," results"]})]}))}function so(u){var d=u,{title:e,message:t,actionLabel:r,onAction:s,illustration:a,variant:o="default",className:i=""}=d,c=V(d,["title","message","actionLabel","onAction","illustration","variant","className"]);const f=x("flex","flex-col","items-center","justify-center","text-center",m("xl","py"),m("base","px"),i),b=o==="withAction"||r&&s,p=o==="withIllustration"||a;return n.jsxs("div",F(A({className:f,role:"status","aria-live":"polite","aria-label":`${e}. ${t}`},c),{children:[p&&a&&n.jsx("div",{className:x(m("base","mb")),"aria-hidden":"true",children:a}),n.jsx(Te,{as:"h3",className:x(se("h4"),Ft("semibold"),"text-fg-primary",m("sm","mb")),children:e}),n.jsx(Te,{as:"p",className:x(se("bodySmall"),"text-fg-secondary",m("md","mb"),"max-w-sm"),children:t}),b&&r&&s&&n.jsx(re,{variant:"primary",onClick:s,children:r})]}))}function no(c){var u=c,{trigger:e,items:t,align:r="right",variant:s="default",className:a="","aria-label":o}=u,i=V(u,["trigger","items","align","variant","className","aria-label"]);const[d,f]=l.useState(!1),[b,p]=l.useState(-1),h=l.useRef(null),g=l.useRef(null),k=l.useRef(null),w=l.useRef([]),v=l.useId(),y=`dropdown-menu-${v}`,N=`dropdown-trigger-${v}`;l.useEffect(()=>{const M=L=>{h.current&&!h.current.contains(L.target)&&(f(!1),p(-1))};return d&&(document.addEventListener("mousedown",M),setTimeout(()=>{var D;const L=t.findIndex(R=>!R.disabled);L>=0&&(p(L),(D=w.current[L])==null||D.focus())},0)),()=>{document.removeEventListener("mousedown",M)}},[d,t]),l.useEffect(()=>{if(!d)return;const M=D=>{var _,O,z,H;const R=t.map((B,ae)=>({item:B,index:ae})).filter(({item:B})=>!B.disabled),I=R.findIndex(({index:B})=>B===b);switch(D.key){case"ArrowDown":{D.preventDefault();const B=I<R.length-1?R[I+1].index:R[0].index;p(B),(_=w.current[B])==null||_.focus();break}case"ArrowUp":{D.preventDefault();const B=I>0?R[I-1].index:R[R.length-1].index;p(B),(O=w.current[B])==null||O.focus();break}case"Home":{D.preventDefault();const B=R[0].index;p(B),(z=w.current[B])==null||z.focus();break}case"End":{D.preventDefault();const B=R[R.length-1].index;p(B),(H=w.current[B])==null||H.focus();break}case"Enter":case" ":D.preventDefault(),b>=0&&!t[b].disabled&&$(t[b]);break;case"Escape":D.preventDefault(),f(!1),p(-1),setTimeout(()=>{var B;(B=g.current)==null||B.focus()},0);break}},L=k.current;if(L){const D=M;return L.addEventListener("keydown",D),()=>{L.removeEventListener("keydown",D)}}},[d,b,t]);const $=M=>{M.disabled||(M.onClick(),f(!1),p(-1),setTimeout(()=>{var L;(L=g.current)==null||L.focus()},0))},E=()=>{f(!d),p(-1)},j=M=>{(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),f(!0))},C=r==="right"?"right-0":"left-0",S=l.isValidElement(e)?l.cloneElement(e,{onClick:M=>{var L,D;E(),(D=(L=e.props).onClick)==null||D.call(L,M)},onKeyDown:M=>{var L,D;j(M),(D=(L=e.props).onKeyDown)==null||D.call(L,M)},"aria-haspopup":"menu","aria-expanded":d,"aria-controls":y,"aria-label":o||e.props["aria-label"]||"Open menu",id:N,ref:js(g,e.props.ref)}):n.jsx("div",{ref:M=>{g.current=M},onClick:E,onKeyDown:j,role:"button",tabIndex:0,"aria-haspopup":"menu","aria-expanded":d,"aria-controls":y,"aria-label":o||"Open menu",id:N,children:e});return n.jsxs("div",F(A({className:x("relative","inline-block",a),ref:h},i),{children:[S,d&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:x("fixed","inset-0","z-10"),onClick:()=>{f(!1),p(-1)},"aria-hidden":"true"}),n.jsx("div",{ref:k,id:y,className:x("absolute","z-20",m("sm","mt"),"w-48",G("md"),he("lg"),"bg-surface-overlay","ring-1","ring-line-strong","ring-opacity-5",C),role:"menu","aria-orientation":"vertical","aria-labelledby":N,"aria-activedescendant":b>=0?`${y}-item-${b}`:void 0,children:n.jsx("div",{className:x(m("xs","py")),role:"none",children:t.map((M,L)=>{const D=x("block",m("base","px"),m("xs","py"),se("bodySmall"),"w-full","text-left","focus:outline-none",M.disabled?x("text-fg-disabled","cursor-not-allowed","opacity-50"):M.variant==="danger"?x("text-error-dark","hover:bg-error-bg-emphasis","focus:bg-error-bg-emphasis"):x("text-fg-primary","hover:bg-surface-hover","focus:bg-surface-hover"));return n.jsx("button",{id:`${y}-item-${L}`,ref:R=>{w.current[L]=R},type:"button",className:D,onClick:()=>$(M),disabled:M.disabled,role:"menuitem","aria-disabled":M.disabled,tabIndex:M.disabled?-1:b===L?0:-1,children:M.label},L)})})})]})]}))}const ao=l.createContext(void 0);function oo(){const e=l.useContext(ao);if(!e)throw new Error("DatePicker components must be used within a DatePicker component");return e}function hs({children:e,mode:t="single",value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,locale:u}){const d=()=>{if(r!==void 0)return null;if(s){if(t==="single"&&s instanceof Date)return s;if(t==="range"&&typeof s=="object"&&"start"in s)return null}return null},f=()=>r===void 0&&s&&t==="range"&&typeof s=="object"&&"start"in s?s:{start:null,end:null},[b,p]=l.useState(d()),[h,g]=l.useState(f()),k=t==="single"?r instanceof Date?r:b:null,w=t==="range"?r&&typeof r=="object"&&"start"in r?r:h:null,N={selectedDate:k,selectedRange:w,mode:t,onDateChange:$=>{t==="single"&&(r===void 0&&p($),a==null||a($))},onRangeChange:$=>{t==="range"&&(r===void 0&&g($),a==null||a($))},minDate:o,maxDate:i,disabledDates:c,locale:u};return n.jsx(ao.Provider,{value:N,children:e})}function Gt(e,t="yyyy-MM-dd"){const r=e.getFullYear(),s=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(r)).replace("MM",s).replace("dd",a).replace("MM/dd/yyyy",`${s}/${a}/${r}`).replace("dd/MM/yyyy",`${a}/${s}/${r}`)}function Un(e){if(!e)return null;const t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(t){const[,a,o,i]=t,c=new Date(parseInt(a),parseInt(o)-1,parseInt(i));if(!isNaN(c.getTime()))return c}const r=e.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);if(r){const[,a,o,i]=r,c=new Date(parseInt(i),parseInt(a)-1,parseInt(o));if(!isNaN(c.getTime()))return c}const s=e.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);if(s){const[,a,o,i]=s,c=new Date(parseInt(i),parseInt(o)-1,parseInt(a));if(!isNaN(c.getTime()))return c}return null}function _s(c){var u=c,{placeholder:e="Select date",format:t="yyyy-MM-dd",showCalendarButton:r=!0,"aria-label":s,onFocus:a,className:o=""}=u,i=V(u,["placeholder","format","showCalendarButton","aria-label","onFocus","className"]);const{selectedDate:d,selectedRange:f,mode:b,onDateChange:p}=oo(),[h,g]=l.useState(""),[k,w]=l.useState(!1),v=l.useRef(null);l.useEffect(()=>{b==="single"&&d?g(Gt(d,t)):b==="range"&&f?f.start&&f.end?g(`${Gt(f.start,t)} - ${Gt(f.end,t)}`):f.start?g(Gt(f.start,t)):g(""):g("")},[d,f,b,t]);const y=E=>{const j=E.target.value;if(g(j),b==="single"){const C=Un(j);p(C)}},N=()=>{if(w(!1),h&&b==="single"){const E=Un(h);E&&g(Gt(E,t))}},$=()=>{var E;(E=v.current)==null||E.focus()};return n.jsx("div",F(A({className:`relative ${o}`},i),{children:n.jsx(Re,{ref:v,type:"text",value:h,onChange:y,onFocus:()=>{w(!0),a==null||a()},onBlur:N,placeholder:e,"aria-label":s||e,rightIcon:r?n.jsx(re,{variant:"iconOnly",size:"sm",onClick:$,"aria-label":"Open calendar",type:"button",children:n.jsx(fc,{className:"h-4 w-4"})}):void 0})}))}function hu(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function xu(e){return new Date(e.getFullYear(),e.getMonth(),1).getDay()}function jt(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Kt(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function gu(e,t,r){if(!t||!r)return!1;const s=e.getTime();return s>=t.getTime()&&s<=r.getTime()}function us(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()}function Gn(e,t,r,s){const a=us(e);return!!(t&&a<us(t)||r&&a>us(r)||s!=null&&s.some(o=>jt(e,o)))}const vu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yu=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ls(a){var o=a,{month:e,onMonthChange:t,className:r=""}=o,s=V(o,["month","onMonthChange","className"]);const{selectedDate:i,selectedRange:c,mode:u,onDateChange:d,onRangeChange:f,minDate:b,maxDate:p,disabledDates:h}=oo(),[g,k]=l.useState(e||i||(c==null?void 0:c.start)||new Date),w=l.useRef(null),[v,y]=l.useState(()=>{const I=new Date,_=e||i||(c==null?void 0:c.start)||I;return i&&Kt(i,_)?i:Kt(I,_)?I:new Date(_.getFullYear(),_.getMonth(),1)});l.useEffect(()=>{e&&k(e)},[e]);const N=l.useRef(!0);l.useEffect(()=>{if(N.current){N.current=!1;return}if(!w.current)return;const I=new Date(v.getFullYear(),v.getMonth(),v.getDate()).toISOString(),_=w.current.querySelector(`[data-date="${I}"]`);_&&_.focus()},[v]);const $=(()=>{if(Kt(v,g))return v;const I=new Date;return Kt(I,g)?I:new Date(g.getFullYear(),g.getMonth(),1)})(),E=hu(g),j=xu(g),C=[];for(let I=0;I<j;I++)C.push(null);for(let I=1;I<=E;I++)C.push(new Date(g.getFullYear(),g.getMonth(),I));const S=I=>{if(!Gn(I,b,p,h)){if(u==="single")d(I);else if(u==="range"){const _=c||{start:null,end:null};!_.start||_.start&&_.end?f({start:I,end:null}):_.start&&!_.end&&(I<_.start?f({start:I,end:_.start}):f({start:_.start,end:I}))}}},M=()=>{const I=new Date(g.getFullYear(),g.getMonth()-1,1);k(I),t==null||t(I)},L=()=>{const I=new Date(g.getFullYear(),g.getMonth()+1,1);k(I),t==null||t(I)},D=(I,_)=>{let O=null;switch(I.key){case"ArrowLeft":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth(),_.getDate()-1);break;case"ArrowRight":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth(),_.getDate()+1);break;case"ArrowUp":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth(),_.getDate()-7);break;case"ArrowDown":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth(),_.getDate()+7);break;case"Home":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth(),1);break;case"End":I.preventDefault(),O=new Date(_.getFullYear(),_.getMonth()+1,0);break;case"Enter":case" ":I.preventDefault(),S(_);return}O&&(Kt(O,g)||k(new Date(O.getFullYear(),O.getMonth(),1)),y(O))},R=[];for(let I=0;I<C.length;I+=7)R.push(C.slice(I,I+7));return n.jsxs("div",F(A({ref:w,className:`${m("base","p")} ${r}`},s),{children:[n.jsxs("div",{className:`flex items-center justify-between ${m("base","mb")}`,children:[n.jsx(re,{variant:"iconOnly",size:"sm",onClick:M,"aria-label":"Previous month",children:n.jsx(qt,{className:"h-4 w-4"})}),n.jsxs("div",{className:"text-sm font-semibold",children:[yu[g.getMonth()]," ",g.getFullYear()]}),n.jsx(re,{variant:"iconOnly",size:"sm",onClick:L,"aria-label":"Next month",children:n.jsx(St,{className:"h-4 w-4"})})]}),n.jsxs("div",{role:"grid","aria-label":"Calendar",children:[n.jsx("div",{role:"row",className:`grid grid-cols-7 ${m("xs","gap")} ${m("sm","mb")}`,children:vu.map(I=>n.jsx("div",{role:"columnheader",className:`text-center text-xs font-medium text-fg-tertiary ${m("xs","py")}`,children:I},I))}),R.map((I,_)=>n.jsx("div",{role:"row",className:`grid grid-cols-7 ${m("xs","gap")}`,children:I.map((O,z)=>{if(!O)return n.jsx("div",{role:"gridcell",className:"aspect-square"},`empty-${_}-${z}`);const H=u==="single"?jt(O,i):jt(O,(c==null?void 0:c.start)||null)||jt(O,(c==null?void 0:c.end)||null),B=u==="range"&&c?gu(O,c.start,c.end):!1,ae=Gn(O,b,p,h),W=jt(O,new Date),P=jt(O,v),K=jt(O,$);return n.jsx("button",{role:"gridcell",type:"button","data-date":O.toISOString(),tabIndex:K?0:-1,onClick:()=>S(O),onKeyDown:oe=>D(oe,O),className:`
7
7
  aspect-square
8
8
  text-sm
9
9
  ${G("md")}
@@ -12,17 +12,17 @@ React keys must be passed directly to JSX without using spread:
12
12
  focus:ring-2
13
13
  focus:ring-offset-1
14
14
  ${ae?"text-fg-disabled cursor-not-allowed opacity-50":H?"bg-surface-brand-strong text-fg-inverse font-semibold":B?"bg-surface-brand-muted text-fg-brand-emphasis":W?"border-2 border-line-brand font-semibold":P?"bg-surface-brand-muted":"hover:bg-surface-active"}
15
- `,"aria-label":O.toDateString(),"aria-selected":H,"aria-disabled":ae,"aria-current":W?"date":void 0,children:O.getDate()},O.toISOString())})},`week-${_}`))]})]}))}function Dr({children:e,mode:t="single",value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,placeholder:u,format:d,showCalendarButton:f=!0,"aria-label":b,className:p=""}){const[h,x]=l.useState(!1),k=l.useRef(null),w=l.useRef(null);return l.useEffect(()=>{if(!h)return;const v=y=>{var j,C,S,M;const N=y.target,$=(C=(j=k.current)==null?void 0:j.contains(N))!=null?C:!1,E=(M=(S=w.current)==null?void 0:S.contains(N))!=null?M:!1;!$&&!E&&x(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[h]),l.useEffect(()=>{if(!h)return;const v=y=>{y.key==="Escape"&&x(!1)};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[h]),e?n.jsx(hs,{mode:t,value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,children:e}):n.jsx("div",{ref:k,className:`relative ${p}`,children:n.jsxs(hs,{mode:t,value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,children:[n.jsx(_s,{placeholder:u,format:d,showCalendarButton:f,"aria-label":b,onFocus:()=>x(!0)}),h&&n.jsx(io,{containerRef:k,popupRef:w,children:n.jsx(Ls,{})})]})})}function io({children:e,containerRef:t,popupRef:r}){const s=l.useRef(null),a=r||s,[o,i]=l.useState(null);if(l.useEffect(()=>{if(t!=null&&t.current){const u=t.current.getBoundingClientRect();i({top:u.bottom+window.scrollY+8,left:u.left+window.scrollX})}},[t]),!o)return null;const c=n.jsx("div",{ref:a,className:`
15
+ `,"aria-label":O.toDateString(),"aria-selected":H,"aria-disabled":ae,"aria-current":W?"date":void 0,children:O.getDate()},O.toISOString())})},`week-${_}`))]})]}))}function Dr({children:e,mode:t="single",value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,placeholder:u,format:d,showCalendarButton:f=!0,"aria-label":b,className:p=""}){const[h,g]=l.useState(!1),k=l.useRef(null),w=l.useRef(null);return l.useEffect(()=>{if(!h)return;const v=y=>{var j,C,S,M;const N=y.target,$=(C=(j=k.current)==null?void 0:j.contains(N))!=null?C:!1,E=(M=(S=w.current)==null?void 0:S.contains(N))!=null?M:!1;!$&&!E&&g(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[h]),l.useEffect(()=>{if(!h)return;const v=y=>{y.key==="Escape"&&g(!1)};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[h]),e?n.jsx(hs,{mode:t,value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,children:e}):n.jsx("div",{ref:k,className:`relative ${p}`,children:n.jsxs(hs,{mode:t,value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,children:[n.jsx(_s,{placeholder:u,format:d,showCalendarButton:f,"aria-label":b,onFocus:()=>g(!0)}),h&&n.jsx(io,{containerRef:k,popupRef:w,children:n.jsx(Ls,{})})]})})}function io({children:e,containerRef:t,popupRef:r}){const s=l.useRef(null),a=r||s,[o,i]=l.useState(null);if(l.useEffect(()=>{if(t!=null&&t.current){const u=t.current.getBoundingClientRect();i({top:u.bottom+window.scrollY+8,left:u.left+window.scrollX})}},[t]),!o)return null;const c=n.jsx("div",{ref:a,className:`
16
16
  fixed ${ve("popover")}
17
17
  bg-surface-overlay
18
18
  ${G("lg")}
19
19
  ${he("xl")}
20
20
  border border-line-default
21
- `,role:"dialog","aria-modal":"false","aria-label":"Date picker calendar",style:{top:`${o.top}px`,left:`${o.left}px`},children:e});return typeof window!="undefined"?Je.createPortal(c,document.body):c}Dr.Input=_s;Dr.Calendar=Ls;Dr.Popup=io;const wu=Dr,_r=l.createContext(void 0);function Lr(){const e=l.useContext(_r);if(e===void 0)throw new Error("useTabsContext must be used within a Tabs component");return e}function ku(){return l.useContext(_r)}function lo({defaultValue:e,value:t,onValueChange:r,orientation:s="horizontal",activationMode:a="automatic",children:o}){const[i,c]=l.useState(e||""),u=t!==void 0,d=u?t:i,f=l.useCallback(p=>{u||c(p),r==null||r(p)},[u,r]),b={value:d,onValueChange:f,orientation:s,activationMode:a};return n.jsx(_r.Provider,{value:b,children:o})}function co(o){var i=o,{children:e,className:t="",variant:r="default",orientation:s}=i,a=V(i,["children","className","variant","orientation"]);var p;const{orientation:c}=Lr(),u=(p=s!=null?s:c)!=null?p:"horizontal",d=l.useRef(null);l.useEffect(()=>{const h=d.current;if(!h)return;const x=k=>{var N;const w=Array.from(h.querySelectorAll('[role="tab"]:not([disabled])')),v=w.findIndex($=>$===document.activeElement);if(v===-1)return;let y=v;u==="horizontal"?k.key==="ArrowRight"?(k.preventDefault(),y=(v+1)%w.length):k.key==="ArrowLeft"&&(k.preventDefault(),y=(v-1+w.length)%w.length):k.key==="ArrowDown"?(k.preventDefault(),y=(v+1)%w.length):k.key==="ArrowUp"&&(k.preventDefault(),y=(v-1+w.length)%w.length),k.key==="Home"?(k.preventDefault(),y=0):k.key==="End"&&(k.preventDefault(),y=w.length-1),y!==v&&((N=w[y])==null||N.focus())};return h.addEventListener("keydown",x),()=>h.removeEventListener("keydown",x)},[u]);const f=r==="compact"&&u==="vertical"?"flex":"inline-flex",b=g(u==="vertical"?"flex-col":"flex-row",m("xs","gap"));return n.jsx("div",F(A({ref:d,role:"tablist","aria-orientation":u,className:g(f,b,m("xs","p"),"bg-surface-muted",G("md"),t)},a),{children:e}))}function uo(c){var u=c,{value:e,children:t,disabled:r=!1,className:s="",onClick:a,onKeyDown:o}=u,i=V(u,["value","children","disabled","className","onClick","onKeyDown"]);const{value:d,onValueChange:f,orientation:b,activationMode:p}=Lr(),h=d===e,x=v=>{r||((p==="automatic"||h)&&f(e),a==null||a(v))},k=v=>{var y;p==="automatic"&&!r&&!h&&f(e),(y=i.onFocus)==null||y.call(i,v)},w=v=>{if(!r&&!(v.key==="ArrowRight"||v.key==="ArrowLeft"||v.key==="ArrowDown"||v.key==="ArrowUp"||v.key==="Home"||v.key==="End")){if(p==="manual"&&(v.key==="Enter"||v.key===" ")){v.preventDefault(),f(e);return}o==null||o(v)}};return n.jsx("button",F(A({type:"button",role:"tab","aria-selected":h,"aria-controls":`tabpanel-${e}`,id:`tab-${e}`,tabIndex:r?-1:h?0:-1,disabled:r,onClick:x,onFocus:k,onKeyDown:w,className:g("inline-flex","items-center","justify-center",m("sm","px"),m("xs","py"),se("bodySmall"),Ae("label"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-2",G("sm"),h?g("bg-surface-brand-strong","text-fg-inverse"):g("text-fg-secondary","hover:bg-surface-active"),r?"opacity-50 cursor-not-allowed":"cursor-pointer",s)},i),{children:t}))}function fo(o){var i=o,{value:e,children:t,forceMount:r=!1,className:s=""}=i,a=V(i,["value","children","forceMount","className"]);const{value:c}=Lr(),u=c===e;return!u&&!r?null:n.jsx("div",F(A({role:"tabpanel",id:`tabpanel-${e}`,"aria-labelledby":`tab-${e}`,hidden:!u,className:`
21
+ `,role:"dialog","aria-modal":"false","aria-label":"Date picker calendar",style:{top:`${o.top}px`,left:`${o.left}px`},children:e});return typeof window!="undefined"?Je.createPortal(c,document.body):c}Dr.Input=_s;Dr.Calendar=Ls;Dr.Popup=io;const wu=Dr,_r=l.createContext(void 0);function Lr(){const e=l.useContext(_r);if(e===void 0)throw new Error("useTabsContext must be used within a Tabs component");return e}function ku(){return l.useContext(_r)}function lo({defaultValue:e,value:t,onValueChange:r,orientation:s="horizontal",activationMode:a="automatic",children:o}){const[i,c]=l.useState(e||""),u=t!==void 0,d=u?t:i,f=l.useCallback(p=>{u||c(p),r==null||r(p)},[u,r]),b={value:d,onValueChange:f,orientation:s,activationMode:a};return n.jsx(_r.Provider,{value:b,children:o})}function co(o){var i=o,{children:e,className:t="",variant:r="default",orientation:s}=i,a=V(i,["children","className","variant","orientation"]);var p;const{orientation:c}=Lr(),u=(p=s!=null?s:c)!=null?p:"horizontal",d=l.useRef(null);l.useEffect(()=>{const h=d.current;if(!h)return;const g=k=>{var N;const w=Array.from(h.querySelectorAll('[role="tab"]:not([disabled])')),v=w.findIndex($=>$===document.activeElement);if(v===-1)return;let y=v;u==="horizontal"?k.key==="ArrowRight"?(k.preventDefault(),y=(v+1)%w.length):k.key==="ArrowLeft"&&(k.preventDefault(),y=(v-1+w.length)%w.length):k.key==="ArrowDown"?(k.preventDefault(),y=(v+1)%w.length):k.key==="ArrowUp"&&(k.preventDefault(),y=(v-1+w.length)%w.length),k.key==="Home"?(k.preventDefault(),y=0):k.key==="End"&&(k.preventDefault(),y=w.length-1),y!==v&&((N=w[y])==null||N.focus())};return h.addEventListener("keydown",g),()=>h.removeEventListener("keydown",g)},[u]);const f=r==="compact"&&u==="vertical"?"flex":"inline-flex",b=x(u==="vertical"?"flex-col":"flex-row",m("xs","gap"));return n.jsx("div",F(A({ref:d,role:"tablist","aria-orientation":u,className:x(f,b,m("xs","p"),"bg-surface-muted",G("md"),t)},a),{children:e}))}function uo(c){var u=c,{value:e,children:t,disabled:r=!1,className:s="",onClick:a,onKeyDown:o}=u,i=V(u,["value","children","disabled","className","onClick","onKeyDown"]);const{value:d,onValueChange:f,orientation:b,activationMode:p}=Lr(),h=d===e,g=v=>{r||((p==="automatic"||h)&&f(e),a==null||a(v))},k=v=>{var y;p==="automatic"&&!r&&!h&&f(e),(y=i.onFocus)==null||y.call(i,v)},w=v=>{if(!r&&!(v.key==="ArrowRight"||v.key==="ArrowLeft"||v.key==="ArrowDown"||v.key==="ArrowUp"||v.key==="Home"||v.key==="End")){if(p==="manual"&&(v.key==="Enter"||v.key===" ")){v.preventDefault(),f(e);return}o==null||o(v)}};return n.jsx("button",F(A({type:"button",role:"tab","aria-selected":h,"aria-controls":`tabpanel-${e}`,id:`tab-${e}`,tabIndex:r?-1:h?0:-1,disabled:r,onClick:g,onFocus:k,onKeyDown:w,className:x("inline-flex","items-center","justify-center",m("sm","px"),m("xs","py"),se("bodySmall"),Ae("label"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-2",G("sm"),h?x("bg-surface-brand-strong","text-fg-inverse"):x("text-fg-secondary","hover:bg-surface-active"),r?"opacity-50 cursor-not-allowed":"cursor-pointer",s)},i),{children:t}))}function fo(o){var i=o,{value:e,children:t,forceMount:r=!1,className:s=""}=i,a=V(i,["value","children","forceMount","className"]);const{value:c}=Lr(),u=c===e;return!u&&!r?null:n.jsx("div",F(A({role:"tabpanel",id:`tabpanel-${e}`,"aria-labelledby":`tab-${e}`,hidden:!u,className:`
22
22
  ${m("sm","mt")}
23
23
  focus:outline-none
24
24
  ${s}
25
- `},a),{children:t}))}function Fr(r){var s=r,{children:e}=s,t=V(s,["children"]);return n.jsx(lo,F(A({},t),{children:e}))}Fr.List=co;Fr.Trigger=uo;Fr.Content=fo;const ju=Fr,Pr=l.forwardRef(function(p,b){var h=p,{onSearch:t,onClear:r,loading:s=!1,showClearButton:a=!0,debounceMs:o=300,value:i,defaultValue:c,onChange:u,className:d=""}=h,f=V(h,["onSearch","onClear","loading","showClearButton","debounceMs","value","defaultValue","onChange","className"]);const[x,k]=l.useState(typeof c=="string"?c:""),[w,v]=l.useState(null),y=i!==void 0,N=y?i:x,$=N!=null&&String(N).length>0,E=S=>{const M=S.target.value;y||k(M),u==null||u(S),w&&clearTimeout(w);const L=setTimeout(()=>{t==null||t(M)},o);v(L)},j=()=>{y||k("");const S={target:{value:""},currentTarget:{value:""}};u==null||u(S),r==null||r(),t==null||t("")},C=S=>{var M;S.key==="Enter"&&t&&t(String(N||"")),(M=f.onKeyDown)==null||M.call(f,S)};return n.jsx("div",{className:g("relative",d),children:n.jsx(Re,F(A({ref:b},f),{type:"search",value:N,onChange:E,onKeyDown:C,leftIcon:s?n.jsx("div",{className:"animate-spin",children:n.jsx(ps,{className:"h-4 w-4"})}):n.jsx(ps,{className:"h-4 w-4"}),rightIcon:a&&$&&!s?n.jsx(re,{variant:"ghost",size:"sm",onClick:j,className:`h-auto ${m("xs","p")}`,"aria-label":"Clear search",children:n.jsx(Ie,{className:"h-4 w-4"})}):void 0,className:g(m("lg","pr"))}))})});Pr.displayName="SearchInput";const Fs=l.forwardRef(function({option:t,isHighlighted:r,onSelect:s,id:a,selected:o},i){const c=()=>{t.disabled||s(t)};return n.jsxs("div",{ref:i,id:a,role:"option","aria-selected":o!=null?o:r,"aria-disabled":t.disabled,onClick:c,className:`
25
+ `},a),{children:t}))}function Fr(r){var s=r,{children:e}=s,t=V(s,["children"]);return n.jsx(lo,F(A({},t),{children:e}))}Fr.List=co;Fr.Trigger=uo;Fr.Content=fo;const ju=Fr,Pr=l.forwardRef(function(p,b){var h=p,{onSearch:t,onClear:r,loading:s=!1,showClearButton:a=!0,debounceMs:o=300,value:i,defaultValue:c,onChange:u,className:d=""}=h,f=V(h,["onSearch","onClear","loading","showClearButton","debounceMs","value","defaultValue","onChange","className"]);const[g,k]=l.useState(typeof c=="string"?c:""),[w,v]=l.useState(null),y=i!==void 0,N=y?i:g,$=N!=null&&String(N).length>0,E=S=>{const M=S.target.value;y||k(M),u==null||u(S),w&&clearTimeout(w);const L=setTimeout(()=>{t==null||t(M)},o);v(L)},j=()=>{y||k("");const S={target:{value:""},currentTarget:{value:""}};u==null||u(S),r==null||r(),t==null||t("")},C=S=>{var M;S.key==="Enter"&&t&&t(String(N||"")),(M=f.onKeyDown)==null||M.call(f,S)};return n.jsx("div",{className:x("relative",d),children:n.jsx(Re,F(A({ref:b},f),{type:"search",value:N,onChange:E,onKeyDown:C,leftIcon:s?n.jsx("div",{className:"animate-spin",children:n.jsx(ps,{className:"h-4 w-4"})}):n.jsx(ps,{className:"h-4 w-4"}),rightIcon:a&&$&&!s?n.jsx(re,{variant:"ghost",size:"sm",onClick:j,className:`h-auto ${m("xs","p")}`,"aria-label":"Clear search",children:n.jsx(Ie,{className:"h-4 w-4"})}):void 0,className:x(m("lg","pr"))}))})});Pr.displayName="SearchInput";const Fs=l.forwardRef(function({option:t,isHighlighted:r,onSelect:s,id:a,selected:o},i){const c=()=>{t.disabled||s(t)};return n.jsxs("div",{ref:i,id:a,role:"option","aria-selected":o!=null?o:r,"aria-disabled":t.disabled,onClick:c,className:`
26
26
  flex
27
27
  items-center
28
28
  ${m("sm","gap")}
@@ -33,7 +33,7 @@ React keys must be passed directly to JSX without using spread:
33
33
  transition-colors
34
34
  ${r?"bg-surface-active":""}
35
35
  ${t.disabled?"opacity-50 cursor-not-allowed":"hover:bg-surface-hover"}
36
- `,children:[t.icon&&n.jsx("span",{className:"flex-shrink-0",children:t.icon}),n.jsx("span",{className:"flex-1",children:t.label})]})});Fs.displayName="AutocompleteOption";const Or=l.forwardRef(function({options:t,highlightedIndex:r,onSelect:s,loading:a=!1,emptyMessage:o="No options found",containerRef:i,showSelectAll:c=!1,allSelected:u=!1,onSelectAll:d,onDeselectAll:f,id:b,selectedValues:p,"aria-label":h,"aria-labelledby":x},k){const[w,v]=l.useState({top:0,left:0,width:0});l.useEffect(()=>{if(i.current){const N=i.current.getBoundingClientRect();v({top:N.bottom+window.scrollY+4,left:N.left+window.scrollX,width:N.width})}},[i]);const y=n.jsx("div",{ref:k,id:b,role:"listbox","aria-multiselectable":p?!0:void 0,"aria-label":x?void 0:h,"aria-labelledby":x,className:`
36
+ `,children:[t.icon&&n.jsx("span",{className:"flex-shrink-0",children:t.icon}),n.jsx("span",{className:"flex-1",children:t.label})]})});Fs.displayName="AutocompleteOption";const Or=l.forwardRef(function({options:t,highlightedIndex:r,onSelect:s,loading:a=!1,emptyMessage:o="No options found",containerRef:i,showSelectAll:c=!1,allSelected:u=!1,onSelectAll:d,onDeselectAll:f,id:b,selectedValues:p,"aria-label":h,"aria-labelledby":g},k){const[w,v]=l.useState({top:0,left:0,width:0});l.useEffect(()=>{if(i.current){const N=i.current.getBoundingClientRect();v({top:N.bottom+window.scrollY+4,left:N.left+window.scrollX,width:N.width})}},[i]);const y=n.jsx("div",{ref:k,id:b,role:"listbox","aria-multiselectable":p?!0:void 0,"aria-label":g?void 0:h,"aria-labelledby":g,className:`
37
37
  absolute
38
38
  ${ve("popover")}
39
39
  bg-surface-overlay
@@ -63,7 +63,7 @@ React keys must be passed directly to JSX without using spread:
63
63
  hover:bg-surface-hover
64
64
  border-b
65
65
  border-line-default
66
- `,onClick:u?f:d,children:u?"Deselect All":"Select All"}),t.map((N,$)=>n.jsx(Fs,{id:b?`${b}-option-${$}`:void 0,option:N,isHighlighted:$===r,selected:p?p.includes(N.value):void 0,onSelect:s},N.value))]})});return typeof window!="undefined"?Je.createPortal(y,document.body):null});Or.displayName="AutocompleteList";const mo=l.forwardRef(function({options:t,value:r,defaultValue:s,onChange:a,onSelect:o,placeholder:i="Type to search...",loading:c=!1,disabled:u=!1,emptyMessage:d="No options found",debounceMs:f=300,filterOptions:b,className:p="",inputClassName:h="",size:x="md",label:k,"aria-label":w,"aria-labelledby":v,id:y,name:N,form:$},E){const j=l.useId(),C=y!=null?y:j,S=`${C}-listbox`,[M,L]=l.useState(typeof s=="string"?s:""),[D,R]=l.useState(!1),[I,_]=l.useState(-1),[O,z]=l.useState(""),H=l.useRef(null),B=l.useRef(null),ae=l.useRef(null),W=l.useRef(null),P=r!==void 0,K=P?r:M,ne=O.trim()?b?b(t,O):t.filter(q=>q.label.toLowerCase().includes(O.toLowerCase())):t,de=ne.length>0,J=q=>{const ie=q.target.value;z(ie),P||L(ie),a==null||a(ie),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{R(!0),_(-1)},f)},ee=q=>{var ie;q.disabled||(P||L(q.value),z(q.label),R(!1),_(-1),a==null||a(q.value),o==null||o(q),(ie=B.current)==null||ie.focus())},te=(q,ie)=>{const ke=ne.length;if(ke===0)return-1;const ze=q<0?ie===1?-1:0:q;for(let me=1;me<=ke;me++){const Ce=((ze+ie*me)%ke+ke)%ke;if(!ne[Ce].disabled)return Ce}return q},Q=q=>{if(!D||ne.length===0){(q.key==="ArrowDown"||q.key==="Enter")&&R(!0);return}switch(q.key){case"ArrowDown":q.preventDefault(),_(ie=>te(ie,1));break;case"ArrowUp":q.preventDefault(),_(ie=>te(ie,-1));break;case"Enter":q.preventDefault(),I>=0&&I<ne.length&&ee(ne[I]);break;case"Escape":q.preventDefault(),R(!1),_(-1);break}};l.useEffect(()=>{if(!D)return;const q=ie=>{var ze;const ke=ie.target;H.current&&!H.current.contains(ke)&&!((ze=ae.current)!=null&&ze.contains(ke))&&(R(!1),_(-1))};return document.addEventListener("mousedown",q),()=>document.removeEventListener("mousedown",q)},[D]),l.useEffect(()=>()=>{W.current&&clearTimeout(W.current)},[]),l.useEffect(()=>{if(I>=0&&ae.current){const q=ae.current.querySelectorAll('[role="option"]');q[I]&&typeof q[I].scrollIntoView=="function"&&q[I].scrollIntoView({block:"nearest",behavior:"smooth"})}},[I]),l.useEffect(()=>{if(K){const q=t.find(ie=>ie.value===K);z(q?q.label:K)}else z("")},[K,t]),l.useEffect(()=>{},[k,w,v,C]);const U=D&&(de||c||!!d),Z=U&&I>=0&&I<ne.length?`${S}-option-${I}`:void 0;return n.jsxs("div",{ref:H,className:`relative ${p}`,children:[n.jsx(Re,{ref:js(B,E),id:C,label:k,"aria-label":w,"aria-labelledby":v,role:"combobox","aria-expanded":U,"aria-controls":U?S:void 0,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":Z,value:O,onChange:J,onKeyDown:Q,onFocus:()=>R(!0),placeholder:i,disabled:u,size:x,rightIcon:c?n.jsx(Ma,{className:"h-4 w-4 animate-spin"}):n.jsx(Er,{className:`h-4 w-4 transition-transform ${D?"rotate-180":""}`}),className:h}),N&&n.jsx("input",{type:"hidden",name:N,value:K!=null?K:"",form:$}),U&&n.jsx(Or,{ref:ae,id:S,options:ne,highlightedIndex:I,onSelect:ee,loading:c,emptyMessage:d,containerRef:H,"aria-labelledby":v,"aria-label":v?void 0:w||k})]})});mo.displayName="Autocomplete";const po=l.forwardRef(function({options:t,value:r,defaultValue:s=[],onChange:a,onSelect:o,placeholder:i="Select options...",loading:c=!1,disabled:u=!1,emptyMessage:d="No options found",maxSelected:f,showSelectAll:b=!1,className:p="",inputClassName:h="",size:x="md",label:k},w){const v=l.useId(),y=`${v}-list`,[N,$]=l.useState(s),[E,j]=l.useState(!1),[C,S]=l.useState(-1),[M,L]=l.useState(""),D=l.useRef(null),R=l.useRef(null),I=l.useRef(null),_=r!==void 0,O=_?r:N,z=t.filter(U=>O.includes(U.value)),B=(()=>{let U=t;return M.trim()&&(U=t.filter(Z=>Z.label.toLowerCase().includes(M.toLowerCase()))),U})(),ae=B.length>0,W=U=>{const Z=U.target.value;L(Z),j(!0),S(-1)},P=U=>{if(U.disabled||f&&O.length>=f&&!O.includes(U.value))return;const Z=O.includes(U.value)?O.filter(q=>q!==U.value):[...O,U.value];_||$(Z),a==null||a(Z),o==null||o(t.filter(q=>Z.includes(q.value))),L(""),S(-1)},K=()=>{const U=B.filter(ie=>!ie.disabled).map(ie=>ie.value),Z=[...new Set([...O,...U])],q=f?Z.slice(0,f):Z;_||$(q),a==null||a(q),o==null||o(t.filter(ie=>q.includes(ie.value)))},oe=()=>{const U=B.map(q=>q.value),Z=O.filter(q=>!U.includes(q));_||$(Z),a==null||a(Z),o==null||o(t.filter(q=>Z.includes(q.value)))},ne=U=>{if(u)return;const Z=O.filter(q=>q!==U);_||$(Z),a==null||a(Z),o==null||o(t.filter(q=>Z.includes(q.value)))},de=U=>{if(!E||B.length===0){(U.key==="ArrowDown"||U.key==="Enter")&&j(!0),U.key==="Backspace"&&M===""&&z.length>0&&ne(z[z.length-1].value);return}switch(U.key){case"ArrowDown":U.preventDefault(),S(Z=>Z<B.length-1?Z+1:0);break;case"ArrowUp":U.preventDefault(),S(Z=>Z>0?Z-1:B.length-1);break;case"Enter":U.preventDefault(),C>=0&&C<B.length&&P(B[C]);break;case"Escape":U.preventDefault(),j(!1),S(-1);break}};l.useEffect(()=>{if(!E)return;const U=Z=>{var ie;const q=Z.target;D.current&&!D.current.contains(q)&&!((ie=I.current)!=null&&ie.contains(q))&&(j(!1),S(-1),L(""))};return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[E]);const J=B.filter(U=>!U.disabled).every(U=>O.includes(U.value)),ee=E&&(ae||c||!!d),te=f!=null&&O.length>=f,Q=ee&&C>=0&&C<B.length?`${y}-option-${C}`:void 0;return n.jsxs("div",{ref:D,className:g("relative",p),children:[n.jsx("label",{htmlFor:v,className:g("block",m("sm","mb"),"text-sm","font-medium","text-fg-primary"),children:k}),n.jsxs("div",{className:g("flex","flex-wrap",m("sm","gap"),m("sm","p"),"border","border-line-default",G("md"),"min-h-10","focus-within:outline-none","focus-within:ring-2","focus-within:ring-offset-2","focus-within:border-line-brand","focus-within:ring-line-brand"),children:[z.map(U=>n.jsx(As,{disabled:u,onRemove:()=>ne(U.value),size:x==="sm"?"sm":x==="lg"?"lg":"md",children:U.label},U.value)),n.jsx("input",{id:v,ref:U=>{typeof w=="function"?w(U):w&&(w.current=U),R.current=U},type:"text",role:"combobox","aria-expanded":ee,"aria-haspopup":"listbox","aria-controls":ee?y:void 0,"aria-autocomplete":"list","aria-activedescendant":Q,value:M,onChange:W,onKeyDown:de,onFocus:()=>j(!0),placeholder:O.length===0?i:"",disabled:u,className:g("flex-1","min-w-32","outline-none","bg-transparent",h)})]}),ee&&n.jsx(Or,{ref:I,id:y,selectedValues:O,"aria-label":k,options:B.map(U=>F(A({},U),{disabled:U.disabled||te&&!O.includes(U.value),icon:O.includes(U.value)?n.jsx(Ra,{className:g("h-4","w-4","text-fg-brand")}):U.icon})),highlightedIndex:C,onSelect:P,loading:c,emptyMessage:d,containerRef:D,showSelectAll:b&&B.length>0,allSelected:J,onSelectAll:K,onDeselectAll:oe})]})});po.displayName="MultiSelect";function Nu({value:e,defaultValue:t=0,max:r=5,size:s="md",variant:a="filled",readOnly:o=!1,allowHalf:i=!1,showValue:c=!1,onChange:u,onHover:d,className:f="",icon:b,emptyIcon:p}){const[h,x]=l.useState(t),[k,w]=l.useState(null),v=e!==void 0,y=k!=null?k:v?e:h,N={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"},$=S=>{o||(v||x(S),u==null||u(S))},E=S=>{o||(w(S),d==null||d(S))},j=()=>{o||w(null)},C=S=>{const M=S+1,L=i&&y>=M-.5&&y<M,D=y>=M,R=g(N[s],Ne("base"),!o&&"cursor-pointer",D||L?"text-fg-warning":"text-fg-disabled"),I=b||n.jsx(Rt,{className:R,fill:D?"currentColor":"none"}),_=p||n.jsx(Rt,{className:R,fill:"none"});return n.jsx("span",{className:"relative inline-block",onClick:()=>$(M),onMouseEnter:()=>E(M),onMouseLeave:j,role:o?void 0:"button",tabIndex:o?void 0:0,"aria-label":o?void 0:`Rate ${M} out of ${r}`,onKeyDown:O=>{!o&&(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),$(M))},children:L?n.jsxs("span",{className:"relative inline-block",children:[n.jsx("span",{className:"absolute inset-0 overflow-hidden",style:{width:"50%"},children:a==="filled"?n.jsx(Rt,{className:R,fill:"currentColor"}):I}),a==="filled"?n.jsx(Rt,{className:R,fill:"none"}):_]}):D?a==="filled"?n.jsx(Rt,{className:R,fill:"currentColor"}):I:a==="filled"?n.jsx(Rt,{className:R,fill:"none"}):_},S)};return n.jsxs("div",{className:g("inline-flex","items-center",m("xs","gap"),f),children:[n.jsx("div",{className:g("flex","items-center"),role:o?"img":void 0,"aria-label":o?`Rating: ${y} out of ${r}`:void 0,children:Array.from({length:r},(S,M)=>C(M))}),c&&n.jsxs("span",{className:g(m("sm","ml"),Se("sm"),"text-fg-secondary"),children:[y.toFixed(i?1:0),"/",r]})]})}function Su({accept:e,multiple:t=!1,maxSize:r,maxFiles:s,onFilesChange:a,onFileRemove:o,showPreview:i=!0,showProgress:c=!1,disabled:u=!1,className:d="",label:f,description:b}){const[p,h]=l.useState([]),[x,k]=l.useState(!1),w=l.useRef(null),v=D=>{if(D===0)return"0 Bytes";const R=1024,I=["Bytes","KB","MB","GB"],_=Math.floor(Math.log(D)/Math.log(R));return Math.round(D/Math.pow(R,_)*100)/100+" "+I[_]},y=D=>r&&D.size>r?`File size exceeds ${v(r)}`:null,N=D=>{const R=Array.from(D),I=[];return R.forEach(_=>{const O=y(_),z=`${Date.now()}-${Math.random().toString(36).slice(2,11)}`,H={file:_,id:z,error:O!=null?O:void 0,progress:c?0:void 0};if(i&&_.type.startsWith("image/")){const B=new FileReader;B.onload=ae=>{h(W=>W.map(P=>{var K;return P.id===z?F(A({},P),{preview:(K=ae.target)==null?void 0:K.result}):P}))},B.readAsDataURL(_)}I.push(H)}),I},$=D=>{const R=t?[...p,...D]:D,I=s?R.slice(0,s):R;h(I),a==null||a(I)},E=D=>{if(D.preventDefault(),k(!1),u)return;const R=D.dataTransfer.files;if(R.length>0){const I=N(R);$(I)}},j=D=>{D.preventDefault(),u||k(!0)},C=D=>{D.preventDefault(),k(!1)},S=D=>{if(D.target.files&&D.target.files.length>0){const R=N(D.target.files);$(R)}w.current&&(w.current.value="")},M=D=>{const R=p.filter(I=>I.id!==D);h(R),a==null||a(R),o==null||o(D)},L=()=>{var D;u||(D=w.current)==null||D.click()};return n.jsxs("div",{className:g(m("lg","gap"),"flex","flex-col",d),children:[(f||b)&&n.jsxs("div",{children:[f&&n.jsx("label",{className:g("block",Se("sm"),Ft("medium"),"text-fg-primary",m("xs","mb")),children:f}),b&&n.jsx("p",{className:g(Se("sm"),"text-fg-secondary"),children:b})]}),n.jsxs("div",{onDrop:E,onDragOver:j,onDragLeave:C,onClick:L,className:g("relative","border-2","border-dashed",x?"border-line-brand":"border-line-default",G("lg"),m("lg","p"),"text-center","cursor-pointer",Ne("base"),"focus:border-line-focus",u?"opacity-50 cursor-not-allowed":g("hover:border-line-strong","focus:outline-none","focus:ring-2","focus:ring-offset-2")),role:"button",tabIndex:u?-1:0,"aria-label":"Upload files","aria-disabled":u,children:[n.jsx("input",{ref:w,type:"file",accept:e,multiple:t,onChange:S,disabled:u,className:"hidden"}),n.jsxs("div",{className:g("flex","flex-col","items-center",m("sm","gap")),children:[n.jsx(Jc,{className:g("h-8","w-8",x?"text-fg-brand":"text-fg-secondary")}),n.jsxs("div",{children:[n.jsx("span",{className:g(Se("sm"),Ft("medium"),"text-fg-primary"),children:x?"Drop files here":"Click to upload or drag and drop"}),e&&n.jsxs("p",{className:g(Se("xs"),"text-fg-secondary",m("xs","mt")),children:["Accepted: ",e]}),r&&n.jsxs("p",{className:g(Se("xs"),"text-fg-secondary"),children:["Max size: ",v(r)]})]})]})]}),p.length>0&&n.jsx("div",{className:g("flex","flex-col",m("sm","gap")),children:p.map(D=>n.jsxs("div",{className:g("flex","items-center",m("md","gap"),m("base","p"),"border","border-line-default",G("md"),D.error?"bg-error-bg":"bg-surface-muted"),children:[i&&D.preview?n.jsx("img",{src:D.preview,alt:D.file.name,className:g("w-12","h-12","object-cover",G("md"))}):n.jsx(Rc,{className:g("h-8","w-8","text-fg-secondary")}),n.jsxs("div",{className:g("flex-1","min-w-0"),children:[n.jsx("p",{className:g(Se("sm"),Ft("medium"),"text-fg-primary","truncate"),children:D.file.name}),n.jsx("p",{className:g(Se("xs"),"text-fg-secondary"),children:v(D.file.size)}),D.error&&n.jsxs("div",{className:g("flex","items-center",m("xs","gap"),m("xs","mt")),children:[n.jsx(Tr,{className:g("h-3","w-3","text-fg-error")}),n.jsx("span",{className:g(Se("xs"),"text-fg-error"),children:D.error})]}),c&&D.progress!==void 0&&n.jsx("div",{className:g(m("sm","mt")),children:n.jsx(Es,{value:D.progress,size:"sm"})})]}),!D.error&&!c&&n.jsx(hr,{className:g("h-5","w-5","text-fg-success")}),n.jsx(re,{variant:"ghost",size:"sm",onClick:R=>{R.stopPropagation(),M(D.id)},className:`h-auto ${m("xs","p")}`,"aria-label":`Remove ${D.file.name}`,children:n.jsx(Ie,{className:"h-4 w-4"})})]},D.id))})]})}function Ps({trigger:e,children:t,open:r,defaultOpen:s=!1,onOpenChange:a,placement:o="bottom",showCloseButton:i=!1,title:c,closeOnClickOutside:u=!0,closeOnEscape:d=!0,className:f="",triggerClassName:b="",contentClassName:p=""}){const[h,x]=l.useState(s),k=l.useRef(null),w=l.useRef(null),[v,y]=l.useState({top:0,left:0}),N=l.useId(),$=r!==void 0,E=$?r:h;Jt(E);const j=l.useCallback(()=>{if(!k.current||!w.current)return;const L=k.current.getBoundingClientRect(),D=w.current.getBoundingClientRect(),R=window.scrollY,I=window.scrollX;let _=0,O=0;o.startsWith("top")?(_=L.top+R-D.height-8,o==="top-start"?O=L.left+I:o==="top-end"?O=L.right+I-D.width:O=L.left+I+(L.width-D.width)/2):o.startsWith("bottom")?(_=L.bottom+R+8,o==="bottom-start"?O=L.left+I:o==="bottom-end"?O=L.right+I-D.width:O=L.left+I+(L.width-D.width)/2):o.startsWith("left")?(O=L.left+I-D.width-8,o==="left-start"?_=L.top+R:o==="left-end"?_=L.bottom+R-D.height:_=L.top+R+(L.height-D.height)/2):o.startsWith("right")&&(O=L.right+I+8,o==="right-start"?_=L.top+R:o==="right-end"?_=L.bottom+R-D.height:_=L.top+R+(L.height-D.height)/2);const z=8;_=Math.max(z,Math.min(_,window.innerHeight+R-D.height-z)),O=Math.max(z,Math.min(O,window.innerWidth+I-D.width-z)),y({top:_,left:O})},[o]);l.useEffect(()=>{if(E){j();const L=()=>j(),D=()=>j();return window.addEventListener("resize",L),window.addEventListener("scroll",D,!0),()=>{window.removeEventListener("resize",L),window.removeEventListener("scroll",D,!0)}}},[E,o,j]),l.useEffect(()=>{E&&w.current&&setTimeout(j,0)},[E,j]);const C=l.useCallback(L=>{$||x(L),a==null||a(L)},[$,a]),S=l.useCallback(()=>{C(!1)},[C]);l.useEffect(()=>{if(E&&d){const L=D=>{D.key==="Escape"&&S()};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)}},[E,d,S]),l.useEffect(()=>{if(E&&u){const L=D=>{w.current&&k.current&&!w.current.contains(D.target)&&!k.current.contains(D.target)&&S()};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)}},[E,u,S]);const M=E?n.jsxs("div",{ref:w,className:`
66
+ `,onClick:u?f:d,children:u?"Deselect All":"Select All"}),t.map((N,$)=>n.jsx(Fs,{id:b?`${b}-option-${$}`:void 0,option:N,isHighlighted:$===r,selected:p?p.includes(N.value):void 0,onSelect:s},N.value))]})});return typeof window!="undefined"?Je.createPortal(y,document.body):null});Or.displayName="AutocompleteList";const mo=l.forwardRef(function({options:t,value:r,defaultValue:s,onChange:a,onSelect:o,placeholder:i="Type to search...",loading:c=!1,disabled:u=!1,emptyMessage:d="No options found",debounceMs:f=300,filterOptions:b,className:p="",inputClassName:h="",size:g="md",label:k,"aria-label":w,"aria-labelledby":v,id:y,name:N,form:$},E){const j=l.useId(),C=y!=null?y:j,S=`${C}-listbox`,[M,L]=l.useState(typeof s=="string"?s:""),[D,R]=l.useState(!1),[I,_]=l.useState(-1),[O,z]=l.useState(""),H=l.useRef(null),B=l.useRef(null),ae=l.useRef(null),W=l.useRef(null),P=r!==void 0,K=P?r:M,ne=O.trim()?b?b(t,O):t.filter(q=>q.label.toLowerCase().includes(O.toLowerCase())):t,de=ne.length>0,J=q=>{const ie=q.target.value;z(ie),P||L(ie),a==null||a(ie),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{R(!0),_(-1)},f)},ee=q=>{var ie;q.disabled||(P||L(q.value),z(q.label),R(!1),_(-1),a==null||a(q.value),o==null||o(q),(ie=B.current)==null||ie.focus())},te=(q,ie)=>{const ke=ne.length;if(ke===0)return-1;const ze=q<0?ie===1?-1:0:q;for(let me=1;me<=ke;me++){const Ce=((ze+ie*me)%ke+ke)%ke;if(!ne[Ce].disabled)return Ce}return q},Q=q=>{if(!D||ne.length===0){(q.key==="ArrowDown"||q.key==="Enter")&&R(!0);return}switch(q.key){case"ArrowDown":q.preventDefault(),_(ie=>te(ie,1));break;case"ArrowUp":q.preventDefault(),_(ie=>te(ie,-1));break;case"Enter":q.preventDefault(),I>=0&&I<ne.length&&ee(ne[I]);break;case"Escape":q.preventDefault(),R(!1),_(-1);break}};l.useEffect(()=>{if(!D)return;const q=ie=>{var ze;const ke=ie.target;H.current&&!H.current.contains(ke)&&!((ze=ae.current)!=null&&ze.contains(ke))&&(R(!1),_(-1))};return document.addEventListener("mousedown",q),()=>document.removeEventListener("mousedown",q)},[D]),l.useEffect(()=>()=>{W.current&&clearTimeout(W.current)},[]),l.useEffect(()=>{if(I>=0&&ae.current){const q=ae.current.querySelectorAll('[role="option"]');q[I]&&typeof q[I].scrollIntoView=="function"&&q[I].scrollIntoView({block:"nearest",behavior:"smooth"})}},[I]),l.useEffect(()=>{if(K){const q=t.find(ie=>ie.value===K);z(q?q.label:K)}else z("")},[K,t]),l.useEffect(()=>{},[k,w,v,C]);const U=D&&(de||c||!!d),Z=U&&I>=0&&I<ne.length?`${S}-option-${I}`:void 0;return n.jsxs("div",{ref:H,className:`relative ${p}`,children:[n.jsx(Re,{ref:js(B,E),id:C,label:k,"aria-label":w,"aria-labelledby":v,role:"combobox","aria-expanded":U,"aria-controls":U?S:void 0,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":Z,value:O,onChange:J,onKeyDown:Q,onFocus:()=>R(!0),placeholder:i,disabled:u,size:g,rightIcon:c?n.jsx(Ma,{className:"h-4 w-4 animate-spin"}):n.jsx(Er,{className:`h-4 w-4 transition-transform ${D?"rotate-180":""}`}),className:h}),N&&n.jsx("input",{type:"hidden",name:N,value:K!=null?K:"",form:$}),U&&n.jsx(Or,{ref:ae,id:S,options:ne,highlightedIndex:I,onSelect:ee,loading:c,emptyMessage:d,containerRef:H,"aria-labelledby":v,"aria-label":v?void 0:w||k})]})});mo.displayName="Autocomplete";const po=l.forwardRef(function({options:t,value:r,defaultValue:s=[],onChange:a,onSelect:o,placeholder:i="Select options...",loading:c=!1,disabled:u=!1,emptyMessage:d="No options found",maxSelected:f,showSelectAll:b=!1,className:p="",inputClassName:h="",size:g="md",label:k},w){const v=l.useId(),y=`${v}-list`,[N,$]=l.useState(s),[E,j]=l.useState(!1),[C,S]=l.useState(-1),[M,L]=l.useState(""),D=l.useRef(null),R=l.useRef(null),I=l.useRef(null),_=r!==void 0,O=_?r:N,z=t.filter(U=>O.includes(U.value)),B=(()=>{let U=t;return M.trim()&&(U=t.filter(Z=>Z.label.toLowerCase().includes(M.toLowerCase()))),U})(),ae=B.length>0,W=U=>{const Z=U.target.value;L(Z),j(!0),S(-1)},P=U=>{if(U.disabled||f&&O.length>=f&&!O.includes(U.value))return;const Z=O.includes(U.value)?O.filter(q=>q!==U.value):[...O,U.value];_||$(Z),a==null||a(Z),o==null||o(t.filter(q=>Z.includes(q.value))),L(""),S(-1)},K=()=>{const U=B.filter(ie=>!ie.disabled).map(ie=>ie.value),Z=[...new Set([...O,...U])],q=f?Z.slice(0,f):Z;_||$(q),a==null||a(q),o==null||o(t.filter(ie=>q.includes(ie.value)))},oe=()=>{const U=B.map(q=>q.value),Z=O.filter(q=>!U.includes(q));_||$(Z),a==null||a(Z),o==null||o(t.filter(q=>Z.includes(q.value)))},ne=U=>{if(u)return;const Z=O.filter(q=>q!==U);_||$(Z),a==null||a(Z),o==null||o(t.filter(q=>Z.includes(q.value)))},de=U=>{if(!E||B.length===0){(U.key==="ArrowDown"||U.key==="Enter")&&j(!0),U.key==="Backspace"&&M===""&&z.length>0&&ne(z[z.length-1].value);return}switch(U.key){case"ArrowDown":U.preventDefault(),S(Z=>Z<B.length-1?Z+1:0);break;case"ArrowUp":U.preventDefault(),S(Z=>Z>0?Z-1:B.length-1);break;case"Enter":U.preventDefault(),C>=0&&C<B.length&&P(B[C]);break;case"Escape":U.preventDefault(),j(!1),S(-1);break}};l.useEffect(()=>{if(!E)return;const U=Z=>{var ie;const q=Z.target;D.current&&!D.current.contains(q)&&!((ie=I.current)!=null&&ie.contains(q))&&(j(!1),S(-1),L(""))};return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[E]);const J=B.filter(U=>!U.disabled).every(U=>O.includes(U.value)),ee=E&&(ae||c||!!d),te=f!=null&&O.length>=f,Q=ee&&C>=0&&C<B.length?`${y}-option-${C}`:void 0;return n.jsxs("div",{ref:D,className:x("relative",p),children:[n.jsx("label",{htmlFor:v,className:x("block",m("sm","mb"),"text-sm","font-medium","text-fg-primary"),children:k}),n.jsxs("div",{className:x("flex","flex-wrap",m("sm","gap"),m("sm","p"),"border","border-line-default",G("md"),"min-h-10","focus-within:outline-none","focus-within:ring-2","focus-within:ring-offset-2","focus-within:border-line-brand","focus-within:ring-line-brand"),children:[z.map(U=>n.jsx(As,{disabled:u,onRemove:()=>ne(U.value),size:g==="sm"?"sm":g==="lg"?"lg":"md",children:U.label},U.value)),n.jsx("input",{id:v,ref:U=>{typeof w=="function"?w(U):w&&(w.current=U),R.current=U},type:"text",role:"combobox","aria-expanded":ee,"aria-haspopup":"listbox","aria-controls":ee?y:void 0,"aria-autocomplete":"list","aria-activedescendant":Q,value:M,onChange:W,onKeyDown:de,onFocus:()=>j(!0),placeholder:O.length===0?i:"",disabled:u,className:x("flex-1","min-w-32","outline-none","bg-transparent",h)})]}),ee&&n.jsx(Or,{ref:I,id:y,selectedValues:O,"aria-label":k,options:B.map(U=>F(A({},U),{disabled:U.disabled||te&&!O.includes(U.value),icon:O.includes(U.value)?n.jsx(Ra,{className:x("h-4","w-4","text-fg-brand")}):U.icon})),highlightedIndex:C,onSelect:P,loading:c,emptyMessage:d,containerRef:D,showSelectAll:b&&B.length>0,allSelected:J,onSelectAll:K,onDeselectAll:oe})]})});po.displayName="MultiSelect";function Nu({value:e,defaultValue:t=0,max:r=5,size:s="md",variant:a="filled",readOnly:o=!1,allowHalf:i=!1,showValue:c=!1,onChange:u,onHover:d,className:f="",icon:b,emptyIcon:p}){const[h,g]=l.useState(t),[k,w]=l.useState(null),v=e!==void 0,y=k!=null?k:v?e:h,N={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"},$=S=>{o||(v||g(S),u==null||u(S))},E=S=>{o||(w(S),d==null||d(S))},j=()=>{o||w(null)},C=S=>{const M=S+1,L=i&&y>=M-.5&&y<M,D=y>=M,R=x(N[s],Ne("base"),!o&&"cursor-pointer",D||L?"text-fg-warning":"text-fg-disabled"),I=b||n.jsx(Rt,{className:R,fill:D?"currentColor":"none"}),_=p||n.jsx(Rt,{className:R,fill:"none"});return n.jsx("span",{className:"relative inline-block",onClick:()=>$(M),onMouseEnter:()=>E(M),onMouseLeave:j,role:o?void 0:"button",tabIndex:o?void 0:0,"aria-label":o?void 0:`Rate ${M} out of ${r}`,onKeyDown:O=>{!o&&(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),$(M))},children:L?n.jsxs("span",{className:"relative inline-block",children:[n.jsx("span",{className:"absolute inset-0 overflow-hidden",style:{width:"50%"},children:a==="filled"?n.jsx(Rt,{className:R,fill:"currentColor"}):I}),a==="filled"?n.jsx(Rt,{className:R,fill:"none"}):_]}):D?a==="filled"?n.jsx(Rt,{className:R,fill:"currentColor"}):I:a==="filled"?n.jsx(Rt,{className:R,fill:"none"}):_},S)};return n.jsxs("div",{className:x("inline-flex","items-center",m("xs","gap"),f),children:[n.jsx("div",{className:x("flex","items-center"),role:o?"img":void 0,"aria-label":o?`Rating: ${y} out of ${r}`:void 0,children:Array.from({length:r},(S,M)=>C(M))}),c&&n.jsxs("span",{className:x(m("sm","ml"),Se("sm"),"text-fg-secondary"),children:[y.toFixed(i?1:0),"/",r]})]})}function Su({accept:e,multiple:t=!1,maxSize:r,maxFiles:s,onFilesChange:a,onFileRemove:o,showPreview:i=!0,showProgress:c=!1,disabled:u=!1,className:d="",label:f,description:b}){const[p,h]=l.useState([]),[g,k]=l.useState(!1),w=l.useRef(null),v=D=>{if(D===0)return"0 Bytes";const R=1024,I=["Bytes","KB","MB","GB"],_=Math.floor(Math.log(D)/Math.log(R));return Math.round(D/Math.pow(R,_)*100)/100+" "+I[_]},y=D=>r&&D.size>r?`File size exceeds ${v(r)}`:null,N=D=>{const R=Array.from(D),I=[];return R.forEach(_=>{const O=y(_),z=`${Date.now()}-${Math.random().toString(36).slice(2,11)}`,H={file:_,id:z,error:O!=null?O:void 0,progress:c?0:void 0};if(i&&_.type.startsWith("image/")){const B=new FileReader;B.onload=ae=>{h(W=>W.map(P=>{var K;return P.id===z?F(A({},P),{preview:(K=ae.target)==null?void 0:K.result}):P}))},B.readAsDataURL(_)}I.push(H)}),I},$=D=>{const R=t?[...p,...D]:D,I=s?R.slice(0,s):R;h(I),a==null||a(I)},E=D=>{if(D.preventDefault(),k(!1),u)return;const R=D.dataTransfer.files;if(R.length>0){const I=N(R);$(I)}},j=D=>{D.preventDefault(),u||k(!0)},C=D=>{D.preventDefault(),k(!1)},S=D=>{if(D.target.files&&D.target.files.length>0){const R=N(D.target.files);$(R)}w.current&&(w.current.value="")},M=D=>{const R=p.filter(I=>I.id!==D);h(R),a==null||a(R),o==null||o(D)},L=()=>{var D;u||(D=w.current)==null||D.click()};return n.jsxs("div",{className:x(m("lg","gap"),"flex","flex-col",d),children:[(f||b)&&n.jsxs("div",{children:[f&&n.jsx("label",{className:x("block",Se("sm"),Ft("medium"),"text-fg-primary",m("xs","mb")),children:f}),b&&n.jsx("p",{className:x(Se("sm"),"text-fg-secondary"),children:b})]}),n.jsxs("div",{onDrop:E,onDragOver:j,onDragLeave:C,onClick:L,className:x("relative","border-2","border-dashed",g?"border-line-brand":"border-line-default",G("lg"),m("lg","p"),"text-center","cursor-pointer",Ne("base"),"focus:border-line-focus",u?"opacity-50 cursor-not-allowed":x("hover:border-line-strong","focus:outline-none","focus:ring-2","focus:ring-offset-2")),role:"button",tabIndex:u?-1:0,"aria-label":"Upload files","aria-disabled":u,children:[n.jsx("input",{ref:w,type:"file",accept:e,multiple:t,onChange:S,disabled:u,className:"hidden"}),n.jsxs("div",{className:x("flex","flex-col","items-center",m("sm","gap")),children:[n.jsx(Jc,{className:x("h-8","w-8",g?"text-fg-brand":"text-fg-secondary")}),n.jsxs("div",{children:[n.jsx("span",{className:x(Se("sm"),Ft("medium"),"text-fg-primary"),children:g?"Drop files here":"Click to upload or drag and drop"}),e&&n.jsxs("p",{className:x(Se("xs"),"text-fg-secondary",m("xs","mt")),children:["Accepted: ",e]}),r&&n.jsxs("p",{className:x(Se("xs"),"text-fg-secondary"),children:["Max size: ",v(r)]})]})]})]}),p.length>0&&n.jsx("div",{className:x("flex","flex-col",m("sm","gap")),children:p.map(D=>n.jsxs("div",{className:x("flex","items-center",m("md","gap"),m("base","p"),"border","border-line-default",G("md"),D.error?"bg-error-bg":"bg-surface-muted"),children:[i&&D.preview?n.jsx("img",{src:D.preview,alt:D.file.name,className:x("w-12","h-12","object-cover",G("md"))}):n.jsx(Rc,{className:x("h-8","w-8","text-fg-secondary")}),n.jsxs("div",{className:x("flex-1","min-w-0"),children:[n.jsx("p",{className:x(Se("sm"),Ft("medium"),"text-fg-primary","truncate"),children:D.file.name}),n.jsx("p",{className:x(Se("xs"),"text-fg-secondary"),children:v(D.file.size)}),D.error&&n.jsxs("div",{className:x("flex","items-center",m("xs","gap"),m("xs","mt")),children:[n.jsx(Tr,{className:x("h-3","w-3","text-fg-error")}),n.jsx("span",{className:x(Se("xs"),"text-fg-error"),children:D.error})]}),c&&D.progress!==void 0&&n.jsx("div",{className:x(m("sm","mt")),children:n.jsx(Es,{value:D.progress,size:"sm"})})]}),!D.error&&!c&&n.jsx(hr,{className:x("h-5","w-5","text-fg-success")}),n.jsx(re,{variant:"ghost",size:"sm",onClick:R=>{R.stopPropagation(),M(D.id)},className:`h-auto ${m("xs","p")}`,"aria-label":`Remove ${D.file.name}`,children:n.jsx(Ie,{className:"h-4 w-4"})})]},D.id))})]})}function Ps({trigger:e,children:t,open:r,defaultOpen:s=!1,onOpenChange:a,placement:o="bottom",showCloseButton:i=!1,title:c,closeOnClickOutside:u=!0,closeOnEscape:d=!0,className:f="",triggerClassName:b="",contentClassName:p=""}){const[h,g]=l.useState(s),k=l.useRef(null),w=l.useRef(null),[v,y]=l.useState({top:0,left:0}),N=l.useId(),$=r!==void 0,E=$?r:h;Jt(E);const j=l.useCallback(()=>{if(!k.current||!w.current)return;const L=k.current.getBoundingClientRect(),D=w.current.getBoundingClientRect(),R=window.scrollY,I=window.scrollX;let _=0,O=0;o.startsWith("top")?(_=L.top+R-D.height-8,o==="top-start"?O=L.left+I:o==="top-end"?O=L.right+I-D.width:O=L.left+I+(L.width-D.width)/2):o.startsWith("bottom")?(_=L.bottom+R+8,o==="bottom-start"?O=L.left+I:o==="bottom-end"?O=L.right+I-D.width:O=L.left+I+(L.width-D.width)/2):o.startsWith("left")?(O=L.left+I-D.width-8,o==="left-start"?_=L.top+R:o==="left-end"?_=L.bottom+R-D.height:_=L.top+R+(L.height-D.height)/2):o.startsWith("right")&&(O=L.right+I+8,o==="right-start"?_=L.top+R:o==="right-end"?_=L.bottom+R-D.height:_=L.top+R+(L.height-D.height)/2);const z=8;_=Math.max(z,Math.min(_,window.innerHeight+R-D.height-z)),O=Math.max(z,Math.min(O,window.innerWidth+I-D.width-z)),y({top:_,left:O})},[o]);l.useEffect(()=>{if(E){j();const L=()=>j(),D=()=>j();return window.addEventListener("resize",L),window.addEventListener("scroll",D,!0),()=>{window.removeEventListener("resize",L),window.removeEventListener("scroll",D,!0)}}},[E,o,j]),l.useEffect(()=>{E&&w.current&&setTimeout(j,0)},[E,j]);const C=l.useCallback(L=>{$||g(L),a==null||a(L)},[$,a]),S=l.useCallback(()=>{C(!1)},[C]);l.useEffect(()=>{if(E&&d){const L=D=>{D.key==="Escape"&&S()};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)}},[E,d,S]),l.useEffect(()=>{if(E&&u){const L=D=>{w.current&&k.current&&!w.current.contains(D.target)&&!k.current.contains(D.target)&&S()};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)}},[E,u,S]);const M=E?n.jsxs("div",{ref:w,className:`
67
67
  absolute
68
68
  ${ve("popover")}
69
69
  bg-surface-overlay
@@ -86,7 +86,7 @@ React keys must be passed directly to JSX without using spread:
86
86
  `,children:[c&&n.jsx("h3",{id:N,className:`${se("bodySmall")} ${Ae("h5")} text-fg-primary`,children:c}),i&&n.jsx(re,{variant:"ghost",size:"sm",onClick:S,className:`h-auto ${m("xs","p")}`,"aria-label":"Close popover",children:n.jsx(Ie,{className:"h-4 w-4"})})]}),n.jsx("div",{className:`
87
87
  ${m("base","p")}
88
88
  ${c||i?"":m("md","p")}
89
- `,children:t})]}):null;return n.jsxs("div",{className:`inline-block ${f}`,children:[n.jsx("div",{ref:k,className:b,onClick:()=>C(!E),children:e}),typeof window!="undefined"&&Je.createPortal(M,document.body)]})}function $u({value:e,defaultValue:t,format:r="24h",onChange:s,disabled:a=!1,label:o,error:i=!1,helperText:c,className:u=""}){const[d,f]=l.useState(t||""),[b,p]=l.useState(12),[h,x]=l.useState(0),[k,w]=l.useState("AM"),[v,y]=l.useState(!1),N=e!==void 0,$=N?e:d,E=l.useCallback(z=>{if(!z)return{hours:12,minutes:0,amPm:"AM"};if(r==="24h"){const[H,B]=z.split(":").map(Number);return{hours:Number.isFinite(H)?H:12,minutes:Number.isFinite(B)?B:0,amPm:"AM"}}else{const H=z.match(/(\d+):(\d+)\s*(AM|PM)/i);return H?{hours:parseInt(H[1]),minutes:parseInt(H[2]),amPm:H[3].toUpperCase()}:{hours:12,minutes:0,amPm:"AM"}}},[r]),j=(z,H,B)=>{if(r==="24h")return`${String(z).padStart(2,"0")}:${String(H).padStart(2,"0")}`;{const ae=B==="PM"&&z!==12?z+12:B==="AM"&&z===12?0:z;return`${String(ae===0?12:ae>12?ae-12:ae).padStart(2,"0")}:${String(H).padStart(2,"0")} ${B||"AM"}`}};l.useEffect(()=>{if($){const z=E($);p(z.hours),x(z.minutes),w(z.amPm)}},[$,E]);const C=z=>{const H=r==="24h"?Math.max(0,Math.min(23,z)):Math.max(1,Math.min(12,z));p(H);const B=j(H,h,r==="12h"?k:void 0);N||f(B),s==null||s(B)},S=z=>{const H=Math.max(0,Math.min(59,z));x(H);const B=j(b,H,r==="12h"?k:void 0);N||f(B),s==null||s(B)},M=()=>{const z=k==="AM"?"PM":"AM";w(z);const H=j(b,h,z);N||f(H),s==null||s(H)},L=()=>{if(r==="24h")C((b+1)%24);else{const z=b===12?1:b+1;C(z)}},D=()=>{if(r==="24h")C(b===0?23:b-1);else{const z=b===1?12:b-1;C(z)}},R=()=>{S((h+1)%60)},I=()=>{S(h===0?59:h-1)},_=z=>{a||(z.key==="Enter"||z.key===" "?(z.preventDefault(),y(H=>!H)):(z.key==="ArrowDown"||z.key==="ArrowUp")&&(z.preventDefault(),y(!0)))},O=n.jsx("div",{className:`${m("base","p")} min-w-48`,children:n.jsxs("div",{className:`flex items-center justify-center ${m("base","gap")}`,children:[n.jsxs("div",{className:`flex flex-col items-center ${m("sm","gap")}`,children:[n.jsx(re,{variant:"ghost",size:"sm",onClick:L,disabled:a,"aria-label":"Increment hours",children:"↑"}),n.jsx("div",{role:"spinbutton",tabIndex:a?-1:0,"aria-label":"Hours","aria-valuenow":b,"aria-valuemin":r==="24h"?0:1,"aria-valuemax":r==="24h"?23:12,"aria-valuetext":String(b).padStart(2,"0"),onKeyDown:z=>{z.key==="ArrowUp"?(z.preventDefault(),L()):z.key==="ArrowDown"&&(z.preventDefault(),D())},className:"text-2xl font-mono font-semibold w-12 text-center",children:String(b).padStart(2,"0")}),n.jsx(re,{variant:"ghost",size:"sm",onClick:D,disabled:a,"aria-label":"Decrement hours",children:"↓"})]}),n.jsx("div",{className:"text-2xl font-semibold",children:":"}),n.jsxs("div",{className:`flex flex-col items-center ${m("sm","gap")}`,children:[n.jsx(re,{variant:"ghost",size:"sm",onClick:R,disabled:a,"aria-label":"Increment minutes",children:"↑"}),n.jsx("div",{role:"spinbutton",tabIndex:a?-1:0,"aria-label":"Minutes","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":59,"aria-valuetext":String(h).padStart(2,"0"),onKeyDown:z=>{z.key==="ArrowUp"?(z.preventDefault(),R()):z.key==="ArrowDown"&&(z.preventDefault(),I())},className:"text-2xl font-mono font-semibold w-12 text-center",children:String(h).padStart(2,"0")}),n.jsx(re,{variant:"ghost",size:"sm",onClick:I,disabled:a,"aria-label":"Decrement minutes",children:"↓"})]}),r==="12h"&&n.jsxs("div",{className:`flex flex-col ${m("sm","gap")} ${m("sm","ml")}`,children:[n.jsx(re,{variant:k==="AM"?"primary":"outline",size:"sm",onClick:()=>M(),disabled:a,children:"AM"}),n.jsx(re,{variant:k==="PM"?"primary":"outline",size:"sm",onClick:()=>M(),disabled:a,children:"PM"})]})]})});return n.jsx("div",{className:u,children:n.jsx(Ps,{open:a?!1:v,onOpenChange:z=>{a||y(z)},trigger:n.jsx(Re,{label:o,value:$||j(b,h,r==="12h"?k:void 0),readOnly:!0,disabled:a,error:i,helperText:c,leftIcon:n.jsx(yc,{className:"h-4 w-4"}),className:"cursor-pointer",role:"combobox","aria-haspopup":"dialog","aria-expanded":!a&&v,onKeyDown:_}),placement:"bottom-start",showCloseButton:!0,title:"Select Time",children:O})})}function Cu({value:e,defaultValue:t="#000000",format:r="hex",onChange:s,presets:a,showInput:o=!0,disabled:i=!1,label:c,className:u=""}){const[d,f]=l.useState(t),[b,p]=l.useState({r:0,g:0,b:0}),h=e!==void 0,x=h?e:d,k=j=>{const C=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(j);return C?{r:parseInt(C[1],16),g:parseInt(C[2],16),b:parseInt(C[3],16)}:{r:0,g:0,b:0}},w=(j,C,S)=>"#"+[j,C,S].map(M=>{const L=M.toString(16);return L.length===1?"0"+L:L}).join("");l.useEffect(()=>{if(x){const j=k(x);p(j)}},[x]);const v=j=>{const C=j.target.value;(/^#[0-9A-F]{6}$/i.test(C)||C==="")&&(h||f(C),s==null||s(C),C&&p(k(C)))},y=(j,C)=>{const S=F(A({},b),{[j]:Math.max(0,Math.min(255,C))});p(S);const M=w(S.r,S.g,S.b);h||f(M),s==null||s(M)},$=a||["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#808080","#ffa500"],E=n.jsxs("div",{className:`${m("base","p")} min-w-[280px]`,children:[n.jsx("div",{className:`
89
+ `,children:t})]}):null;return n.jsxs("div",{className:`inline-block ${f}`,children:[n.jsx("div",{ref:k,className:b,onClick:()=>C(!E),children:e}),typeof window!="undefined"&&Je.createPortal(M,document.body)]})}function $u({value:e,defaultValue:t,format:r="24h",onChange:s,disabled:a=!1,label:o,error:i=!1,helperText:c,className:u=""}){const[d,f]=l.useState(t||""),[b,p]=l.useState(12),[h,g]=l.useState(0),[k,w]=l.useState("AM"),[v,y]=l.useState(!1),N=e!==void 0,$=N?e:d,E=l.useCallback(z=>{if(!z)return{hours:12,minutes:0,amPm:"AM"};if(r==="24h"){const[H,B]=z.split(":").map(Number);return{hours:Number.isFinite(H)?H:12,minutes:Number.isFinite(B)?B:0,amPm:"AM"}}else{const H=z.match(/(\d+):(\d+)\s*(AM|PM)/i);return H?{hours:parseInt(H[1]),minutes:parseInt(H[2]),amPm:H[3].toUpperCase()}:{hours:12,minutes:0,amPm:"AM"}}},[r]),j=(z,H,B)=>{if(r==="24h")return`${String(z).padStart(2,"0")}:${String(H).padStart(2,"0")}`;{const ae=B==="PM"&&z!==12?z+12:B==="AM"&&z===12?0:z;return`${String(ae===0?12:ae>12?ae-12:ae).padStart(2,"0")}:${String(H).padStart(2,"0")} ${B||"AM"}`}};l.useEffect(()=>{if($){const z=E($);p(z.hours),g(z.minutes),w(z.amPm)}},[$,E]);const C=z=>{const H=r==="24h"?Math.max(0,Math.min(23,z)):Math.max(1,Math.min(12,z));p(H);const B=j(H,h,r==="12h"?k:void 0);N||f(B),s==null||s(B)},S=z=>{const H=Math.max(0,Math.min(59,z));g(H);const B=j(b,H,r==="12h"?k:void 0);N||f(B),s==null||s(B)},M=()=>{const z=k==="AM"?"PM":"AM";w(z);const H=j(b,h,z);N||f(H),s==null||s(H)},L=()=>{if(r==="24h")C((b+1)%24);else{const z=b===12?1:b+1;C(z)}},D=()=>{if(r==="24h")C(b===0?23:b-1);else{const z=b===1?12:b-1;C(z)}},R=()=>{S((h+1)%60)},I=()=>{S(h===0?59:h-1)},_=z=>{a||(z.key==="Enter"||z.key===" "?(z.preventDefault(),y(H=>!H)):(z.key==="ArrowDown"||z.key==="ArrowUp")&&(z.preventDefault(),y(!0)))},O=n.jsx("div",{className:`${m("base","p")} min-w-48`,children:n.jsxs("div",{className:`flex items-center justify-center ${m("base","gap")}`,children:[n.jsxs("div",{className:`flex flex-col items-center ${m("sm","gap")}`,children:[n.jsx(re,{variant:"ghost",size:"sm",onClick:L,disabled:a,"aria-label":"Increment hours",children:"↑"}),n.jsx("div",{role:"spinbutton",tabIndex:a?-1:0,"aria-label":"Hours","aria-valuenow":b,"aria-valuemin":r==="24h"?0:1,"aria-valuemax":r==="24h"?23:12,"aria-valuetext":String(b).padStart(2,"0"),onKeyDown:z=>{z.key==="ArrowUp"?(z.preventDefault(),L()):z.key==="ArrowDown"&&(z.preventDefault(),D())},className:"text-2xl font-mono font-semibold w-12 text-center",children:String(b).padStart(2,"0")}),n.jsx(re,{variant:"ghost",size:"sm",onClick:D,disabled:a,"aria-label":"Decrement hours",children:"↓"})]}),n.jsx("div",{className:"text-2xl font-semibold",children:":"}),n.jsxs("div",{className:`flex flex-col items-center ${m("sm","gap")}`,children:[n.jsx(re,{variant:"ghost",size:"sm",onClick:R,disabled:a,"aria-label":"Increment minutes",children:"↑"}),n.jsx("div",{role:"spinbutton",tabIndex:a?-1:0,"aria-label":"Minutes","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":59,"aria-valuetext":String(h).padStart(2,"0"),onKeyDown:z=>{z.key==="ArrowUp"?(z.preventDefault(),R()):z.key==="ArrowDown"&&(z.preventDefault(),I())},className:"text-2xl font-mono font-semibold w-12 text-center",children:String(h).padStart(2,"0")}),n.jsx(re,{variant:"ghost",size:"sm",onClick:I,disabled:a,"aria-label":"Decrement minutes",children:"↓"})]}),r==="12h"&&n.jsxs("div",{className:`flex flex-col ${m("sm","gap")} ${m("sm","ml")}`,children:[n.jsx(re,{variant:k==="AM"?"primary":"outline",size:"sm",onClick:()=>M(),disabled:a,children:"AM"}),n.jsx(re,{variant:k==="PM"?"primary":"outline",size:"sm",onClick:()=>M(),disabled:a,children:"PM"})]})]})});return n.jsx("div",{className:u,children:n.jsx(Ps,{open:a?!1:v,onOpenChange:z=>{a||y(z)},trigger:n.jsx(Re,{label:o,value:$||j(b,h,r==="12h"?k:void 0),readOnly:!0,disabled:a,error:i,helperText:c,leftIcon:n.jsx(yc,{className:"h-4 w-4"}),className:"cursor-pointer",role:"combobox","aria-haspopup":"dialog","aria-expanded":!a&&v,onKeyDown:_}),placement:"bottom-start",showCloseButton:!0,title:"Select Time",children:O})})}function Cu({value:e,defaultValue:t="#000000",format:r="hex",onChange:s,presets:a,showInput:o=!0,disabled:i=!1,label:c,className:u=""}){const[d,f]=l.useState(t),[b,p]=l.useState({r:0,g:0,b:0}),h=e!==void 0,g=h?e:d,k=j=>{const C=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(j);return C?{r:parseInt(C[1],16),g:parseInt(C[2],16),b:parseInt(C[3],16)}:{r:0,g:0,b:0}},w=(j,C,S)=>"#"+[j,C,S].map(M=>{const L=M.toString(16);return L.length===1?"0"+L:L}).join("");l.useEffect(()=>{if(g){const j=k(g);p(j)}},[g]);const v=j=>{const C=j.target.value;(/^#[0-9A-F]{6}$/i.test(C)||C==="")&&(h||f(C),s==null||s(C),C&&p(k(C)))},y=(j,C)=>{const S=F(A({},b),{[j]:Math.max(0,Math.min(255,C))});p(S);const M=w(S.r,S.g,S.b);h||f(M),s==null||s(M)},$=a||["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#808080","#ffa500"],E=n.jsxs("div",{className:`${m("base","p")} min-w-[280px]`,children:[n.jsx("div",{className:`
90
90
  w-full
91
91
  h-32
92
92
  ${G("md")}
@@ -94,7 +94,7 @@ React keys must be passed directly to JSX without using spread:
94
94
  ${m("base","mb")}
95
95
  border
96
96
  border-line-default
97
- `,style:{backgroundColor:x}}),n.jsxs("div",{className:`${m("md","space-y")} ${m("base","mb")}`,children:[n.jsxs("div",{children:[n.jsxs("label",{className:`block text-xs font-medium text-fg-secondary ${m("xs","mb")}`,children:["Red: ",b.r]}),n.jsx("input",{type:"range",min:"0",max:"255",value:b.r,onChange:j=>y("r",parseInt(j.target.value)),disabled:i,className:"w-full"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:`block text-xs font-medium text-fg-secondary ${m("xs","mb")}`,children:["Green: ",b.g]}),n.jsx("input",{type:"range",min:"0",max:"255",value:b.g,onChange:j=>y("g",parseInt(j.target.value)),disabled:i,className:"w-full"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:`block text-xs font-medium text-fg-secondary ${m("xs","mb")}`,children:["Blue: ",b.b]}),n.jsx("input",{type:"range",min:"0",max:"255",value:b.b,onChange:j=>y("b",parseInt(j.target.value)),disabled:i,className:"w-full"})]})]}),o&&n.jsx("div",{className:m("base","mb"),children:n.jsx(Re,{label:"Hex",value:x,onChange:v,disabled:i,placeholder:"#000000",className:"font-mono"})}),$.length>0&&n.jsxs("div",{children:[n.jsx("label",{className:`block text-xs font-medium text-fg-secondary ${m("sm","mb")}`,children:"Presets"}),n.jsx("div",{className:`grid grid-cols-10 ${m("xs","gap")}`,children:$.map((j,C)=>n.jsx("button",{type:"button",onClick:()=>{i||(h||f(j),s==null||s(j),p(k(j)))},disabled:i,className:`
97
+ `,style:{backgroundColor:g}}),n.jsxs("div",{className:`${m("md","space-y")} ${m("base","mb")}`,children:[n.jsxs("div",{children:[n.jsxs("label",{className:`block text-xs font-medium text-fg-secondary ${m("xs","mb")}`,children:["Red: ",b.r]}),n.jsx("input",{type:"range",min:"0",max:"255",value:b.r,onChange:j=>y("r",parseInt(j.target.value)),disabled:i,className:"w-full"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:`block text-xs font-medium text-fg-secondary ${m("xs","mb")}`,children:["Green: ",b.g]}),n.jsx("input",{type:"range",min:"0",max:"255",value:b.g,onChange:j=>y("g",parseInt(j.target.value)),disabled:i,className:"w-full"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:`block text-xs font-medium text-fg-secondary ${m("xs","mb")}`,children:["Blue: ",b.b]}),n.jsx("input",{type:"range",min:"0",max:"255",value:b.b,onChange:j=>y("b",parseInt(j.target.value)),disabled:i,className:"w-full"})]})]}),o&&n.jsx("div",{className:m("base","mb"),children:n.jsx(Re,{label:"Hex",value:g,onChange:v,disabled:i,placeholder:"#000000",className:"font-mono"})}),$.length>0&&n.jsxs("div",{children:[n.jsx("label",{className:`block text-xs font-medium text-fg-secondary ${m("sm","mb")}`,children:"Presets"}),n.jsx("div",{className:`grid grid-cols-10 ${m("xs","gap")}`,children:$.map((j,C)=>n.jsx("button",{type:"button",onClick:()=>{i||(h||f(j),s==null||s(j),p(k(j)))},disabled:i,className:`
98
98
  w-6
99
99
  h-6
100
100
  ${G("sm")}
@@ -102,7 +102,7 @@ React keys must be passed directly to JSX without using spread:
102
102
  border-line-emphasis
103
103
  hover:scale-110
104
104
  ${he("sm")}
105
- ${x.toLowerCase()===j.toLowerCase()?"ring-2 ring-offset-1 ring-line-brand":""}
105
+ ${g.toLowerCase()===j.toLowerCase()?"ring-2 ring-offset-1 ring-line-brand":""}
106
106
  `,style:{backgroundColor:j},"aria-label":`Select color ${j}`},C))})]})]});return n.jsx("div",{className:u,children:n.jsx(Ps,{trigger:n.jsxs("div",{className:`flex items-center ${m("sm","gap")}`,children:[c&&n.jsx("label",{className:"text-sm font-medium text-fg-secondary",children:c}),n.jsx("div",{className:`
107
107
  w-10
108
108
  h-10
@@ -112,14 +112,14 @@ React keys must be passed directly to JSX without using spread:
112
112
  ${he("sm")}
113
113
  cursor-pointer
114
114
  ${i?"opacity-50 cursor-not-allowed":""}
115
- `,style:{backgroundColor:x}}),o&&n.jsx(Re,{value:x,onChange:v,disabled:i,placeholder:"#000000",className:"w-24 font-mono"})]}),placement:"bottom-start",showCloseButton:!0,title:"Pick a Color",children:E})})}const bo=l.createContext(void 0);function Eu({children:e,value:t}){return n.jsx(bo.Provider,{value:t,children:e})}function Tu(){const e=l.useContext(bo);if(!e)throw new Error("Drawer components must be used within Drawer");return e}const Au='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function ho(e){return Array.from(e.querySelectorAll(Au)).filter(t=>!t.disabled&&t.offsetParent!==null)}function zr(e,t){l.useEffect(()=>{if(!t)return;function r(s){if(s.key!=="Tab")return;const a=e.current;if(!a)return;const o=ho(a);if(o.length===0){s.preventDefault();return}const i=o[0],c=o[o.length-1],u=document.activeElement;if(!a.contains(u)){s.preventDefault(),(s.shiftKey?c:i).focus();return}s.shiftKey?u===i&&(s.preventDefault(),c.focus()):u===c&&(s.preventDefault(),i.focus())}return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r)}},[t,e])}function Os(e,t){l.useEffect(()=>{if(!t)return;const r=setTimeout(()=>{const s=e.current;if(!s)return;const a=ho(s);if(a.length>0){a[0].focus();return}s.hasAttribute("tabindex")||s.setAttribute("tabindex","-1"),s.focus()},0);return()=>clearTimeout(r)},[t,e])}function zs({children:e,className:t="",showCloseButton:r=!1,title:s,"aria-label":a,"aria-labelledby":o}){const i=l.useId(),c=o!=null?o:s?i:void 0,{isOpen:u,closeDrawer:d,position:f,size:b,closeOnOverlayClick:p,closeOnEscape:h}=Tu(),x=l.useRef(null);if(Jt(u),zr(x,u),Os(x,u),l.useEffect(()=>{if(u&&h){const y=N=>{N.key==="Escape"&&d()};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)}},[u,h,d]),l.useEffect(()=>{if(u)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[u]),l.useEffect(()=>{},[u,s,a,c]),!u)return null;const k={sm:f==="left"||f==="right"?"w-64":"h-64",md:f==="left"||f==="right"?"w-96":"h-96",lg:f==="left"||f==="right"?"w-[32rem]":"h-[32rem]",xl:f==="left"||f==="right"?"w-[42rem]":"h-[42rem]",full:f==="left"||f==="right"?"w-full":"h-full"},w={left:"left-0 top-0 bottom-0",right:"right-0 top-0 bottom-0",top:"top-0 left-0 right-0",bottom:"bottom-0 left-0 right-0"},v=n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`
115
+ `,style:{backgroundColor:g}}),o&&n.jsx(Re,{value:g,onChange:v,disabled:i,placeholder:"#000000",className:"w-24 font-mono"})]}),placement:"bottom-start",showCloseButton:!0,title:"Pick a Color",children:E})})}const bo=l.createContext(void 0);function Eu({children:e,value:t}){return n.jsx(bo.Provider,{value:t,children:e})}function Tu(){const e=l.useContext(bo);if(!e)throw new Error("Drawer components must be used within Drawer");return e}const Au='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function ho(e){return Array.from(e.querySelectorAll(Au)).filter(t=>!t.disabled&&t.offsetParent!==null)}function zr(e,t){l.useEffect(()=>{if(!t)return;function r(s){if(s.key!=="Tab")return;const a=e.current;if(!a)return;const o=ho(a);if(o.length===0){s.preventDefault();return}const i=o[0],c=o[o.length-1],u=document.activeElement;if(!a.contains(u)){s.preventDefault(),(s.shiftKey?c:i).focus();return}s.shiftKey?u===i&&(s.preventDefault(),c.focus()):u===c&&(s.preventDefault(),i.focus())}return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r)}},[t,e])}function Os(e,t){l.useEffect(()=>{if(!t)return;const r=setTimeout(()=>{const s=e.current;if(!s)return;const a=ho(s);if(a.length>0){a[0].focus();return}s.hasAttribute("tabindex")||s.setAttribute("tabindex","-1"),s.focus()},0);return()=>clearTimeout(r)},[t,e])}function zs({children:e,className:t="",showCloseButton:r=!1,title:s,"aria-label":a,"aria-labelledby":o}){const i=l.useId(),c=o!=null?o:s?i:void 0,{isOpen:u,closeDrawer:d,position:f,size:b,closeOnOverlayClick:p,closeOnEscape:h}=Tu(),g=l.useRef(null);if(Jt(u),zr(g,u),Os(g,u),l.useEffect(()=>{if(u&&h){const y=N=>{N.key==="Escape"&&d()};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)}},[u,h,d]),l.useEffect(()=>{if(u)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[u]),l.useEffect(()=>{},[u,s,a,c]),!u)return null;const k={sm:f==="left"||f==="right"?"w-64":"h-64",md:f==="left"||f==="right"?"w-96":"h-96",lg:f==="left"||f==="right"?"w-[32rem]":"h-[32rem]",xl:f==="left"||f==="right"?"w-[42rem]":"h-[42rem]",full:f==="left"||f==="right"?"w-full":"h-full"},w={left:"left-0 top-0 bottom-0",right:"right-0 top-0 bottom-0",top:"top-0 left-0 right-0",bottom:"bottom-0 left-0 right-0"},v=n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`
116
116
  fixed
117
117
  inset-0
118
118
  bg-scrim
119
119
  ${ve("modal")}
120
120
  ${Ne("base")}
121
121
  ${u?"opacity-100":"opacity-0"}
122
- `,onClick:p?d:void 0,"aria-hidden":"true"}),n.jsxs("div",{ref:x,className:`
122
+ `,onClick:p?d:void 0,"aria-hidden":"true"}),n.jsxs("div",{ref:g,className:`
123
123
  fixed
124
124
  ${w[f]}
125
125
  ${k[b]}
@@ -139,12 +139,12 @@ React keys must be passed directly to JSX without using spread:
139
139
  ${m("md","py")}
140
140
  border-b
141
141
  border-line-default
142
- `,children:[s?n.jsx("h2",{id:i,className:"text-lg font-semibold text-fg-primary",children:s}):n.jsx("span",{}),r&&n.jsx(re,{variant:"ghost",size:"sm",onClick:d,className:`h-auto ${m("xs","p")}`,"aria-label":"Close drawer",children:n.jsx(Ie,{className:"h-4 w-4"})})]}),e]})]});return typeof window!="undefined"?Je.createPortal(v,document.body):null}function go(s){var a=s,{children:e,className:t=""}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:`
142
+ `,children:[s?n.jsx("h2",{id:i,className:"text-lg font-semibold text-fg-primary",children:s}):n.jsx("span",{}),r&&n.jsx(re,{variant:"ghost",size:"sm",onClick:d,className:`h-auto ${m("xs","p")}`,"aria-label":"Close drawer",children:n.jsx(Ie,{className:"h-4 w-4"})})]}),e]})]});return typeof window!="undefined"?Je.createPortal(v,document.body):null}function xo(s){var a=s,{children:e,className:t=""}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:`
143
143
  ${m("lg","p")}
144
144
  border-b
145
145
  border-line-default
146
146
  ${t}
147
- `},r),{children:e}))}function xo(s){var a=s,{children:e,className:t=""}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:`
147
+ `},r),{children:e}))}function go(s){var a=s,{children:e,className:t=""}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:`
148
148
  ${m("lg","p")}
149
149
  border-t
150
150
  border-line-default
@@ -152,7 +152,7 @@ React keys must be passed directly to JSX without using spread:
152
152
  justify-end
153
153
  ${m("sm","gap")}
154
154
  ${t}
155
- `},r),{children:e}))}function Zt({children:e,open:t,defaultOpen:r=!1,onOpenChange:s,position:a="right",size:o="md",closeOnOverlayClick:i=!0,closeOnEscape:c=!0}){const[u,d]=l.useState(r),f=t!==void 0,b=f?t:u,p=x=>{f||d(x),s==null||s(x)},h=()=>{p(!1)};return n.jsx(Eu,{value:{isOpen:b,closeDrawer:h,position:a,size:o,closeOnOverlayClick:i,closeOnEscape:c},children:e})}Zt.Content=zs;Zt.Header=go;Zt.Footer=xo;const vo=l.createContext(void 0);function Iu({children:e,value:t}){return n.jsx(vo.Provider,{value:t,children:e})}function Vs(){const e=l.useContext(vo);if(!e)throw new Error("Menu components must be used within Menu");return e}function Ru(...e){return t=>{for(const r of e)r&&(typeof r=="function"?r(t):r.current=t)}}const Ws=l.forwardRef(function(i,o){var c=i,{children:t,asChild:r,onClick:s}=c,a=V(c,["children","asChild","onClick"]);var h,x;const{isOpen:u,setIsOpen:d}=Vs(),f=k=>{s==null||s(k),d(!u)},b=l.Children.count(t)===1&&l.isValidElement(t);if(r===!0||r===void 0&&b){const k=l.Children.only(t),w=k.props.onClick,v=y=>{w==null||w(y),y.defaultPrevented||f(y)};return l.cloneElement(k,F(A({},a),{role:(h=k.props.role)!=null?h:"button",tabIndex:(x=k.props.tabIndex)!=null?x:0,"aria-haspopup":"menu","aria-expanded":u,onClick:v,ref:Ru(o,k.props.ref)}))}return n.jsx("div",F(A({ref:o,onClick:f,role:"button",tabIndex:0,"aria-haspopup":"menu","aria-expanded":u},a),{children:t}))});Ws.displayName="MenuTrigger";function yo({children:e,className:t="",align:r="start"}){const{isOpen:s,closeMenu:a,placement:o}=Vs(),i=l.useRef(null),c=l.useRef(null),[u,d]=l.useState({top:0,left:0});if(l.useEffect(()=>{if(s){const b=document.querySelector('[aria-haspopup="menu"]');c.current=b}},[s]),l.useEffect(()=>{if(s&&i.current&&c.current){const b=()=>{const x=c.current.getBoundingClientRect(),k=i.current.getBoundingClientRect(),w=window.scrollY,v=window.scrollX;let y=0,N=0;o==="bottom"?(y=x.bottom+w+4,r==="start"?N=x.left+v:r==="end"?N=x.right+v-k.width:N=x.left+v+(x.width-k.width)/2):o==="top"?(y=x.top+w-k.height-4,r==="start"?N=x.left+v:r==="end"?N=x.right+v-k.width:N=x.left+v+(x.width-k.width)/2):o==="right"?(N=x.right+v+4,r==="start"?y=x.top+w:r==="end"?y=x.bottom+w-k.height:y=x.top+w+(x.height-k.height)/2):o==="left"&&(N=x.left+v-k.width-4,r==="start"?y=x.top+w:r==="end"?y=x.bottom+w-k.height:y=x.top+w+(x.height-k.height)/2);const $=8;y=Math.max($,Math.min(y,window.innerHeight+w-k.height-$)),N=Math.max($,Math.min(N,window.innerWidth+v-k.width-$)),d({top:y,left:N})};b();const p=()=>b(),h=()=>b();return window.addEventListener("resize",p),window.addEventListener("scroll",h,!0),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",h,!0)}}},[s,o,r]),l.useEffect(()=>{if(s){const b=p=>{p.key==="Escape"&&a()};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)}},[s,a]),l.useEffect(()=>{if(s){const b=p=>{i.current&&c.current&&!i.current.contains(p.target)&&!c.current.contains(p.target)&&a()};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)}},[s,a]),!s)return null;const f=n.jsx("div",{ref:i,role:"menu",className:`
155
+ `},r),{children:e}))}function Zt({children:e,open:t,defaultOpen:r=!1,onOpenChange:s,position:a="right",size:o="md",closeOnOverlayClick:i=!0,closeOnEscape:c=!0}){const[u,d]=l.useState(r),f=t!==void 0,b=f?t:u,p=g=>{f||d(g),s==null||s(g)},h=()=>{p(!1)};return n.jsx(Eu,{value:{isOpen:b,closeDrawer:h,position:a,size:o,closeOnOverlayClick:i,closeOnEscape:c},children:e})}Zt.Content=zs;Zt.Header=xo;Zt.Footer=go;const vo=l.createContext(void 0);function Iu({children:e,value:t}){return n.jsx(vo.Provider,{value:t,children:e})}function Vs(){const e=l.useContext(vo);if(!e)throw new Error("Menu components must be used within Menu");return e}function Ru(...e){return t=>{for(const r of e)r&&(typeof r=="function"?r(t):r.current=t)}}const Ws=l.forwardRef(function(i,o){var c=i,{children:t,asChild:r,onClick:s}=c,a=V(c,["children","asChild","onClick"]);var h,g;const{isOpen:u,setIsOpen:d}=Vs(),f=k=>{s==null||s(k),d(!u)},b=l.Children.count(t)===1&&l.isValidElement(t);if(r===!0||r===void 0&&b){const k=l.Children.only(t),w=k.props.onClick,v=y=>{w==null||w(y),y.defaultPrevented||f(y)};return l.cloneElement(k,F(A({},a),{role:(h=k.props.role)!=null?h:"button",tabIndex:(g=k.props.tabIndex)!=null?g:0,"aria-haspopup":"menu","aria-expanded":u,onClick:v,ref:Ru(o,k.props.ref)}))}return n.jsx("div",F(A({ref:o,onClick:f,role:"button",tabIndex:0,"aria-haspopup":"menu","aria-expanded":u},a),{children:t}))});Ws.displayName="MenuTrigger";function yo({children:e,className:t="",align:r="start"}){const{isOpen:s,closeMenu:a,placement:o}=Vs(),i=l.useRef(null),c=l.useRef(null),[u,d]=l.useState({top:0,left:0});if(l.useEffect(()=>{if(s){const b=document.querySelector('[aria-haspopup="menu"]');c.current=b}},[s]),l.useEffect(()=>{if(s&&i.current&&c.current){const b=()=>{const g=c.current.getBoundingClientRect(),k=i.current.getBoundingClientRect(),w=window.scrollY,v=window.scrollX;let y=0,N=0;o==="bottom"?(y=g.bottom+w+4,r==="start"?N=g.left+v:r==="end"?N=g.right+v-k.width:N=g.left+v+(g.width-k.width)/2):o==="top"?(y=g.top+w-k.height-4,r==="start"?N=g.left+v:r==="end"?N=g.right+v-k.width:N=g.left+v+(g.width-k.width)/2):o==="right"?(N=g.right+v+4,r==="start"?y=g.top+w:r==="end"?y=g.bottom+w-k.height:y=g.top+w+(g.height-k.height)/2):o==="left"&&(N=g.left+v-k.width-4,r==="start"?y=g.top+w:r==="end"?y=g.bottom+w-k.height:y=g.top+w+(g.height-k.height)/2);const $=8;y=Math.max($,Math.min(y,window.innerHeight+w-k.height-$)),N=Math.max($,Math.min(N,window.innerWidth+v-k.width-$)),d({top:y,left:N})};b();const p=()=>b(),h=()=>b();return window.addEventListener("resize",p),window.addEventListener("scroll",h,!0),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",h,!0)}}},[s,o,r]),l.useEffect(()=>{if(s){const b=p=>{p.key==="Escape"&&a()};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)}},[s,a]),l.useEffect(()=>{if(s){const b=p=>{i.current&&c.current&&!i.current.contains(p.target)&&!c.current.contains(p.target)&&a()};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)}},[s,a]),!s)return null;const f=n.jsx("div",{ref:i,role:"menu",className:`
156
156
  absolute
157
157
  ${ve("popover")}
158
158
  bg-surface-overlay
@@ -163,7 +163,7 @@ React keys must be passed directly to JSX without using spread:
163
163
  min-w-40
164
164
  ${m("xs","py")}
165
165
  ${t}
166
- `,style:{top:`${u.top}px`,left:`${u.left}px`},children:e});return typeof window!="undefined"?Je.createPortal(f,document.body):null}const Hs=l.forwardRef(function(b,f){var p=b,{children:t,icon:r,rightIcon:s,disabled:a=!1,onClick:o,onSelect:i,hasSubmenu:c=!1,className:u=""}=p,d=V(p,["children","icon","rightIcon","disabled","onClick","onSelect","hasSubmenu","className"]);const{closeMenu:h}=Vs(),x=w=>{a||(o==null||o(w),i==null||i(w),!c&&!w.defaultPrevented&&h())},k=w=>{a||(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),x(w))};return n.jsxs("div",F(A({ref:f,role:"menuitem",tabIndex:a?-1:0,"aria-disabled":a,onClick:x,onKeyDown:k,className:`
166
+ `,style:{top:`${u.top}px`,left:`${u.left}px`},children:e});return typeof window!="undefined"?Je.createPortal(f,document.body):null}const Hs=l.forwardRef(function(b,f){var p=b,{children:t,icon:r,rightIcon:s,disabled:a=!1,onClick:o,onSelect:i,hasSubmenu:c=!1,className:u=""}=p,d=V(p,["children","icon","rightIcon","disabled","onClick","onSelect","hasSubmenu","className"]);const{closeMenu:h}=Vs(),g=w=>{a||(o==null||o(w),i==null||i(w),!c&&!w.defaultPrevented&&h())},k=w=>{a||(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g(w))};return n.jsxs("div",F(A({ref:f,role:"menuitem",tabIndex:a?-1:0,"aria-disabled":a,onClick:g,onKeyDown:k,className:`
167
167
  flex
168
168
  items-center
169
169
  ${m("sm","gap")}
@@ -183,12 +183,12 @@ React keys must be passed directly to JSX without using spread:
183
183
  bg-line-default
184
184
  ${m("sm","my")}
185
185
  ${e}
186
- `},t))}function Qt({children:e,open:t,defaultOpen:r=!1,onOpenChange:s,placement:a="bottom"}){const[o,i]=l.useState(r),c=t!==void 0,u=c?t:o,d=b=>{c||i(b),s==null||s(b)},f=()=>{d(!1)};return n.jsx(Iu,{value:{isOpen:u,setIsOpen:d,closeMenu:f,placement:a},children:e})}Qt.Trigger=Ws;Qt.Content=yo;Qt.Item=Hs;Qt.Separator=wo;function Mu({items:e,type:t="single",defaultOpen:r,onValueChange:s,className:a=""}){const o=()=>r===void 0?[]:Array.isArray(r)?r:[r],[i,c]=l.useState(o),u=d=>{var b;if((b=e.find(p=>p.id===d))!=null&&b.disabled)return;let f;t==="single"?f=i.includes(d)?[]:[d]:f=i.includes(d)?i.filter(p=>p!==d):[...i,d],c(f),s==null||s(t==="single"?f[0]||"":f)};return n.jsx("div",{className:`${m("xs","space-y")} ${a}`,children:e.map(d=>{const f=i.includes(d.id),b=d.disabled;return n.jsxs("div",{className:g("border border-line-default",G("md"),"overflow-hidden",d.className),children:[n.jsxs("button",{type:"button",onClick:()=>u(d.id),disabled:b,className:g("w-full flex items-center justify-between",m("base","px"),m("md","py"),be("label"),"text-left text-fg-primary bg-surface-base hover:bg-surface-hover","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-line-focus",Ne("base"),b?"opacity-50 cursor-not-allowed":"cursor-pointer",d.triggerClassName),"aria-expanded":f,"aria-controls":`accordion-content-${d.id}`,"aria-disabled":b,children:[n.jsx("span",{children:d.title}),n.jsx(Er,{className:`
186
+ `},t))}function Qt({children:e,open:t,defaultOpen:r=!1,onOpenChange:s,placement:a="bottom"}){const[o,i]=l.useState(r),c=t!==void 0,u=c?t:o,d=b=>{c||i(b),s==null||s(b)},f=()=>{d(!1)};return n.jsx(Iu,{value:{isOpen:u,setIsOpen:d,closeMenu:f,placement:a},children:e})}Qt.Trigger=Ws;Qt.Content=yo;Qt.Item=Hs;Qt.Separator=wo;function Mu({items:e,type:t="single",defaultOpen:r,onValueChange:s,className:a=""}){const o=()=>r===void 0?[]:Array.isArray(r)?r:[r],[i,c]=l.useState(o),u=d=>{var b;if((b=e.find(p=>p.id===d))!=null&&b.disabled)return;let f;t==="single"?f=i.includes(d)?[]:[d]:f=i.includes(d)?i.filter(p=>p!==d):[...i,d],c(f),s==null||s(t==="single"?f[0]||"":f)};return n.jsx("div",{className:`${m("xs","space-y")} ${a}`,children:e.map(d=>{const f=i.includes(d.id),b=d.disabled;return n.jsxs("div",{className:x("border border-line-default",G("md"),"overflow-hidden",d.className),children:[n.jsxs("button",{type:"button",onClick:()=>u(d.id),disabled:b,className:x("w-full flex items-center justify-between",m("base","px"),m("md","py"),be("label"),"text-left text-fg-primary bg-surface-base hover:bg-surface-hover","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-line-focus",Ne("base"),b?"opacity-50 cursor-not-allowed":"cursor-pointer",d.triggerClassName),"aria-expanded":f,"aria-controls":`accordion-content-${d.id}`,"aria-disabled":b,children:[n.jsx("span",{children:d.title}),n.jsx(Er,{className:`
187
187
  ${m("sm","ml")}
188
188
  ${Ne("base")}
189
189
  ${f?"transform rotate-180":""}
190
190
  ${b?"opacity-50":""}
191
- `,"aria-hidden":"true"})]}),n.jsx("div",{id:`accordion-content-${d.id}`,className:g("grid",Ne("base"),f?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),"aria-hidden":!f,children:n.jsx("div",{className:"min-h-0 overflow-hidden",children:n.jsx("div",{className:g(m("base","px"),m("md","py"),"text-fg-secondary",d.contentClassName),children:d.content})})})]},d.id)})})}const ko=l.createContext(void 0);function gs({children:e,mobileMenuOpen:t,onMobileMenuChange:r,defaultMobileMenuOpen:s=!1}){const[a,o]=l.useState(s),i=t!==void 0,c=i?t:a,u=l.useCallback(p=>{i||o(p),r==null||r(p)},[i,r]),d=l.useCallback(()=>{u(!c)},[c,u]),f=l.useCallback(()=>{u(!0)},[u]),b=l.useCallback(()=>{u(!1)},[u]);return n.jsx(ko.Provider,{value:{isMobileMenuOpen:c,toggleMobileMenu:d,setMobileMenuOpen:u,openMobileMenu:f,closeMobileMenu:b},children:e})}function Bs(){const e=l.useContext(ko);if(!e)throw new Error("useHeaderContext must be used within HeaderProvider");return e}function jo(a){var o=a,{children:e,className:t,href:r}=o,s=V(o,["children","className","href"]);return n.jsx("div",{className:"flex-shrink-0",children:n.jsx(Ar,F(A({href:r||"/",variant:"default",className:g("flex items-center font-semibold text-lg",t)},s),{children:e}))})}function No({children:e,className:t}){return n.jsx("nav",{className:g("flex-1 flex items-center justify-center",m("base","gap"),"hidden md:flex",t),"aria-label":"Main navigation",children:e})}function So({children:e,className:t}){return n.jsx("div",{className:g("flex-shrink-0 flex items-center",m("sm","gap"),t),children:e})}function $o({className:e,icon:t,closeIcon:r,variant:s="ghost",size:a="md"}){const{isMobileMenuOpen:o,toggleMobileMenu:i}=Bs(),c=t||n.jsx(Vc,{className:"h-5 w-5"}),u=r||n.jsx(Ie,{className:"h-5 w-5"});return n.jsx(re,{variant:s,size:a,onClick:i,className:g("md:hidden",e),"aria-label":o?"Close menu":"Open menu","aria-expanded":o,children:o?u:c})}function Co({children:e,className:t}){const{isMobileMenuOpen:r,closeMobileMenu:s}=Bs();return n.jsx(Zt,{open:r,onOpenChange:a=>{a||s()},position:"left",size:"sm",closeOnOverlayClick:!0,closeOnEscape:!0,children:n.jsx(zs,{className:g(m("base","p"),t),children:n.jsx("nav",{className:`flex flex-col ${m("sm","gap")}`,"aria-label":"Mobile navigation",children:e})})})}const Du={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},bt=l.forwardRef((u,c)=>{var d=u,{className:e,maxWidth:t="lg",paddingX:r="base",paddingY:s="base",center:a=!0,children:o}=d,i=V(d,["className","maxWidth","paddingX","paddingY","center","children"]);return n.jsx("div",F(A({ref:c,className:g("w-full",Du[t],m(r,"px"),m(s,"py"),a&&"mx-auto",e)},i),{children:o}))});bt.displayName="Container";const zt=l.forwardRef((u,c)=>{var d=u,{className:e,spacing:t="base",align:r="stretch",justify:s="start",direction:a="column",children:o}=d,i=V(d,["className","spacing","align","justify","direction","children"]);const f=a==="column"?m(t,"gap-y"):m(t,"gap-x"),b={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},p={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};return n.jsx("div",F(A({ref:c,className:g("flex",a==="column"?"flex-col":"flex-row",f,b[r],p[s],e)},i),{children:o}))});zt.displayName="Stack";const _u=ge(g("w-full","bg-surface-base","transition-shadow","transition-colors"),{variants:{variant:{default:"",elevated:he("sm"),bordered:g("border-b","border-line-muted")}},defaultVariants:{variant:"default"}});function Tt(c){var u=c,{children:e,variant:t="default",sticky:r=!1,maxWidth:s="full",bare:a=!1,className:o}=u,i=V(u,["children","variant","sticky","maxWidth","bare","className"]);const d=n.jsx("div",{className:`flex items-center justify-between ${m("base","gap")}`,children:e});return a?n.jsx(gs,{children:n.jsx("div",F(A({className:g(o)},i),{children:d}))}):n.jsx(gs,{children:n.jsx("header",F(A({className:g(_u({variant:t}),r&&`sticky top-0 ${ve("sticky")}`,r&&"backdrop-blur-sm bg-surface-base/95",o)},i),{children:n.jsx(bt,{maxWidth:s,paddingX:"base",paddingY:"sm",children:d})}))})}Tt.Logo=jo;Tt.Navigation=No;Tt.Actions=So;Tt.Hamburger=$o;Tt.MobileMenu=Co;const Kn=ge(g("flex","items-center",m("sm","gap")),{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col"},variant:{default:"",pills:"",tabs:""}},defaultVariants:{orientation:"horizontal",variant:"default"},compoundVariants:[{orientation:"vertical",variant:"default",class:"items-stretch"},{orientation:"vertical",variant:"pills",class:"items-stretch"},{orientation:"vertical",variant:"tabs",class:"items-stretch"}]});function Lu(u){var d=u,{items:e,orientation:t="horizontal",variant:r="default",className:s,"aria-label":a="Main navigation",bare:o=!1,pathname:i}=d,c=V(d,["items","orientation","variant","className","aria-label","bare","pathname"]);const f=i!=null?i:typeof window!="undefined"?window.location.pathname:void 0,b=l.useMemo(()=>e.map(h=>{if(h.active!==void 0)return h;if(f){const x=f===h.href||h.href!=="/"&&f.startsWith(`${h.href}/`);return F(A({},h),{active:x})}return F(A({},h),{active:!1})}),[e,f]),p=n.jsx(n.Fragment,{children:b.map((h,x)=>{const k=r==="pills"?"background":r==="tabs"?"underline":"default";return n.jsxs(Ar,{href:h.href,active:h.active,disabled:h.disabled,variant:k,className:g("flex items-center",m("sm","gap"),t==="vertical"&&"w-full justify-start",h.className),children:[h.icon&&n.jsx("span",{className:"flex-shrink-0","aria-hidden":"true",children:h.icon}),n.jsx("span",{children:h.label}),h.badge&&n.jsx("span",{className:"ml-auto",children:h.badge})]},h.href||x)})});return o?n.jsx("div",F(A({className:g(Kn({orientation:t,variant:r}),s)},c),{children:p})):n.jsx("nav",F(A({className:g(Kn({orientation:t,variant:r}),s),"aria-label":a},c),{children:p}))}function Eo(e){return n.jsx(Lu,F(A({},e),{pathname:e.pathname}))}const Fu=ge(g("w-full","flex","flex-col",m("sm","gap")),{variants:{variant:{default:g(m("base","mb")),compact:g(m("sm","mb"))}},defaultVariants:{variant:"default"}});function To(c){var u=c,{title:e,description:t,breadcrumb:r,actions:s,variant:a="default",className:o}=u,i=V(u,["title","description","breadcrumb","actions","variant","className"]);return n.jsxs("div",F(A({className:g(Fu({variant:a}),o)},i),{children:[r&&r.length>0&&n.jsx(to,{items:r}),n.jsxs("div",{className:`flex items-start justify-between ${m("base","gap")}`,children:[n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx(Te,{variant:"heading",as:"h1",className:`${m("sm","mb")} text-2xl font-bold`,children:e}),t&&n.jsx(Te,{variant:"body",className:"text-fg-secondary",children:t})]}),s&&n.jsx("div",{className:`flex items-center ${m("sm","gap")} flex-shrink-0`,children:s})]})]}))}function Pu(s){var a=s,{onForgotPasswordClick:e,className:t}=a,r=V(a,["onForgotPasswordClick","className"]);return n.jsx("div",{className:g(m("base","p"),"bg-surface-muted",G("md"),t),children:n.jsxs("form",F(A({},r),{onSubmit:o=>{o.preventDefault(),r.onSubmit&&r.onSubmit(o)},className:m("base","space-y"),children:[n.jsxs("div",{className:m("sm","space-y"),children:[n.jsx(Pt,{htmlFor:"login-email",variant:"required",children:"Your email"}),n.jsx(Re,{id:"login-email",placeholder:"myname@email.com",type:"email"})]}),n.jsxs("div",{className:m("sm","space-y"),children:[n.jsx(Pt,{htmlFor:"login-password",variant:"required",children:"Your password"}),n.jsx(Re,{id:"login-password",placeholder:"••••••••",type:"password"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx(re,{variant:"secondary",type:"button",onClick:e,children:"Forgot password?"}),n.jsx(re,{variant:"primary",type:"submit",children:"Sign in"})]})]}))})}function Ou(b){var p=b,{isOpen:e,onClose:t,title:r,children:s,variant:a="default",showCloseButton:o=!0,footer:i,className:c="","aria-label":u,"aria-labelledby":d}=p,f=V(p,["isOpen","onClose","title","children","variant","showCloseButton","footer","className","aria-label","aria-labelledby"]);const h=l.useRef(null),x=l.useRef(null),k=l.useId(),w=d!=null?d:r?k:void 0;if(Jt(e),zr(h,e),Os(h,e),l.useEffect(()=>{if(!e)return;const j=C=>{C.key==="Escape"&&t()};return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[e,t]),l.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),!e)return null;const v=["fixed","inset-0",ve("modal"),"overflow-y-auto"],y=["fixed","inset-0","bg-scrim","transition-opacity"],N={default:"max-w-md",large:"max-w-2xl",fullscreen:"max-w-full h-full"},$=["relative","bg-surface-overlay",G("lg"),he("xl"),m("xl","my"),"mx-auto",N[a],m("lg","p"),c].filter(Boolean).join(" "),E=n.jsxs("div",{className:v.join(" "),role:"dialog","aria-modal":"true","aria-labelledby":w,"aria-label":w?void 0:u,onClick:j=>{(j.target===j.currentTarget||j.target===x.current)&&t()},children:[n.jsx("div",{ref:x,className:y.join(" "),"aria-hidden":"true"}),n.jsx("div",{className:`flex min-h-full items-center justify-center ${m("base","p")}`,children:n.jsxs("div",F(A({ref:h,tabIndex:-1,className:$,onClick:j=>j.stopPropagation()},f),{children:[r&&n.jsxs("div",{className:`flex justify-between items-center ${m("base","mb")}`,children:[n.jsx("h2",{id:k,className:"text-xl font-semibold text-fg-primary",children:r}),o&&n.jsx("button",{onClick:t,className:"text-fg-tertiary hover:text-fg-secondary focus:outline-none","aria-label":"Close modal",children:n.jsx(Ie,{className:"h-6 w-6"})})]}),!r&&o&&n.jsx("div",{className:`flex justify-end ${m("base","mb")}`,children:n.jsx("button",{onClick:t,className:"text-fg-tertiary hover:text-fg-secondary focus:outline-none","aria-label":"Close modal",children:n.jsx(Ie,{className:"h-6 w-6"})})}),n.jsx("div",{className:m("base","mb"),children:s}),i&&n.jsx("div",{className:`flex justify-end ${m("sm","gap")} ${m("base","mt")}`,children:i})]}))})]});return typeof window!="undefined"?Je.createPortal(E,document.body):E}const Vr=Ya({displayName:"TableContext",errorMessage:"useTableContext must be used within a Table component"}),zu=Vr.Context,Vu=Vr.Provider;function Ue(){return Vr.useContextRequired()}function Wu(){return Vr.useContextOptional()}function xs({columns:e,data:t,loading:r=!1,paginationMode:s,page:a,pageSize:o,total:i,onPageChange:c,onPageSizeChange:u,defaultPageSize:d=10,pageSizeOptions:f,sortColumn:b,sortDirection:p,onSort:h,defaultSortColumn:x,defaultSortDirection:k="asc",filters:w,filterValues:v,onFilter:y,initialFilterValues:N={},selectable:$=!1,selectedRows:E,onSelectionChange:j,rowId:C,actions:S,emptyMessage:M="No data available",emptyStateTitle:L,emptyStateMessage:D,emptyStateIllustration:R,emptyStateAction:I,onRowClick:_,resizable:O=!1,columnWidths:z,onColumnResize:H,virtualScrolling:B,virtualScrollingOptions:ae,children:W}){const P=l.useMemo(()=>s||(i!==void 0&&c?"server":"client"),[s,i,c]),K=a!==void 0,[oe,ne]=l.useState(1),[de,J]=l.useState(d),ee=K?a:oe,te=o!=null?o:de,Q=l.useMemo(()=>P==="server"?i!=null?i:0:t.length,[P,i,t.length]),U=l.useMemo(()=>Math.ceil(Q/te),[Q,te]),Z=b!==void 0,[q,ie]=l.useState(x||""),[ke,ze]=l.useState(k),me=Z?b:q,Ce=Z?p||"asc":ke,Xr=v!==void 0,[ri,si]=l.useState(N),tr=Xr?v:ri,Jr=E!==void 0,[ni,ai]=l.useState([]),Ve=Jr?E:ni,rr=l.useMemo(()=>!w||w.length===0?t:t.filter(le=>w.every(fe=>{const ye=tr[fe.key];if(!ye||ye==="")return!0;const nr=le[fe.key];return fe.type==="text"?String(nr||"").toLowerCase().includes(String(ye).toLowerCase()):String(nr)===String(ye)})),[t,w,tr]),Zr=l.useMemo(()=>{if(Z&&h||!me)return rr;const le=[...rr];return le.sort((fe,ye)=>{const nr=fe[me],ci=ye[me],kn=String(nr||"").localeCompare(String(ci||""));return Ce==="asc"?kn:-kn}),le},[rr,me,Ce,h,Z]),_e=l.useMemo(()=>{if(P==="server")return Zr;const le=(ee-1)*te,fe=le+te;return Zr.slice(le,fe)},[Zr,P,ee,te]),tt=l.useCallback((le,fe)=>{var ye;return C?C(le):((ye=le==null?void 0:le.id)==null?void 0:ye.toString())||fe.toString()},[C]),sr=l.useMemo(()=>!$||_e.length===0?!1:_e.every((le,fe)=>{const ye=tt(le,fe);return Ve.includes(ye)}),[$,_e,Ve,tt]),pn=l.useMemo(()=>{if(!$||_e.length===0)return!1;const le=_e.filter((fe,ye)=>Ve.includes(tt(fe,ye))).length;return le>0&&le<_e.length},[$,_e,Ve,tt]),It=l.useCallback(le=>{K?c==null||c(le):ne(le)},[K,c]),bn=l.useCallback(le=>{u?u(le):J(le),It(1)},[u,It]),hn=l.useCallback((le,fe)=>{Z?h==null||h(le,fe):(ie(le),ze(fe))},[Z,h]),gn=l.useCallback(le=>{Xr?y==null||y(le):si(le),It(1)},[Xr,y,It]),yt=l.useCallback(le=>{Jr?j==null||j(le):ai(le)},[Jr,j]),xn=l.useCallback(le=>{const fe=Ve.includes(le)?Ve.filter(ye=>ye!==le):[...Ve,le];yt(fe)},[Ve,yt]),vn=l.useCallback(()=>{if(sr)yt([]);else{const le=_e.map((fe,ye)=>tt(fe,ye));yt(le)}},[sr,_e,tt,yt]),[oi,ii]=l.useState({}),Qr=z!==void 0,yn=Qr?z:oi,wn=l.useCallback((le,fe)=>{Qr?H==null||H(le,fe):ii(ye=>F(A({},ye),{[le]:fe}))},[Qr,H]),li=l.useMemo(()=>({columns:e,data:t,paginatedData:_e,loading:r,paginationState:{page:ee,pageSize:te,total:Q,totalPages:U},sortState:{column:me,direction:Ce},filterState:{values:tr,config:w||[]},selectionState:{selectedRows:Ve,isAllSelected:sr,isIndeterminate:pn},paginationMode:P,selectable:$,rowId:C,actions:S,resizable:O,columnWidths:yn,virtualScrolling:B,virtualScrollingOptions:ae,emptyMessage:M,emptyStateTitle:L,emptyStateMessage:D,emptyStateIllustration:R,emptyStateAction:I,setPage:It,setPageSize:bn,setSorting:hn,setFilters:gn,setSelection:yt,toggleRowSelection:xn,toggleSelectAll:vn,getRowId:tt,setColumnWidth:wn,onPageChange:c,onPageSizeChange:u,onSort:h,onFilter:y,onSelectionChange:j,onRowClick:_,onColumnResize:H}),[e,t,_e,r,ee,te,Q,U,me,Ce,tr,w,Ve,sr,pn,P,$,C,S,M,L,D,R,I,It,bn,hn,gn,yt,xn,vn,tt,wn,c,u,h,y,j,_,H,O,yn,B,ae]);return n.jsx(Vu,{value:li,children:W})}function Us(u){var d=u,{column:e,resizable:t=!1,width:r,onResize:s,minWidth:a=50,maxWidth:o,className:i=""}=d,c=V(d,["column","resizable","width","onResize","minWidth","maxWidth","className"]);const{sortState:f,setSorting:b,onSort:p}=Ue(),h=l.useRef(null),x=l.useRef(null),k=l.useRef(null),w=()=>{if(!e.sortable||!p&&!b)return;const j=f.column===e.key&&f.direction==="asc"?"desc":"asc";p?p(e.key,j):b(e.key,j)},v=j=>{$&&(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),w())},y=j=>{if(j.preventDefault(),j.stopPropagation(),!x.current||!s)return;const C=r||x.current.offsetWidth;k.current={x:j.clientX,width:C};const S=L=>{if(!k.current)return;const D=L.clientX-k.current.x,R=k.current.width+D,I=Math.max(a,o?Math.min(R,o):R);s(e.key,I)},M=()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",M),k.current=null};document.addEventListener("mousemove",S),document.addEventListener("mouseup",M)},N=f.column===e.key,$=e.sortable&&(p||b),E=N?f.direction:void 0;return n.jsx("th",F(A({ref:x,scope:"col",role:"columnheader","aria-sort":N?E==="asc"?"ascending":"descending":$?"none":void 0,className:`${m("lg","px")} ${m("md","py")} text-left text-xs font-medium text-fg-tertiary uppercase tracking-wider ${$?"cursor-pointer hover:bg-surface-active focus:bg-surface-active focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-2 select-none":""} ${e.hiddenOnMobile?"hidden md:table-cell":""} ${i}`,onClick:$?w:void 0,onKeyDown:$?v:void 0,tabIndex:$?0:void 0,style:r?{width:`${r}px`,minWidth:`${r}px`}:void 0},c),{children:n.jsxs("div",{className:`flex items-center ${m("sm","gap")} relative`,children:[n.jsx("span",{children:e.label}),N&&n.jsx("span",{className:"text-fg-tertiary","aria-hidden":"true",children:f.direction==="asc"?"↑":"↓"}),t&&s&&n.jsx("div",{ref:h,className:"absolute right-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-surface-brand transition-colors",onMouseDown:y,role:"separator","aria-orientation":"vertical","aria-label":`Resize ${e.label} column`,style:{touchAction:"none"}})]})}))}function Gs(r){var s=r,{className:e=""}=s,t=V(s,["className"]);const{columns:a,selectable:o,selectionState:i,toggleSelectAll:c,actions:u,resizable:d,columnWidths:f,setColumnWidth:b}=Ue();return n.jsxs("tr",F(A({role:"row",className:e},t),{children:[o&&n.jsx("th",{scope:"col",role:"columnheader",className:`${m("lg","px")} ${m("md","py")} w-12`,"aria-label":"Select all",children:n.jsx(Rr,{checked:i.isAllSelected,onChange:c,"aria-label":"Select all rows",className:m("none","my"),indeterminate:i.isIndeterminate})}),a.map(p=>n.jsx(Us,{column:p,resizable:d,width:f==null?void 0:f[p.key],onResize:b},p.key)),u&&n.jsx("th",{scope:"col",role:"columnheader",className:`${m("lg","px")} ${m("md","py")} text-right text-xs font-medium text-fg-tertiary uppercase tracking-wider w-12`,"aria-label":"Actions",children:n.jsx("span",{className:"sr-only",children:"Actions"})})]}))}function Ks(r){var s=r,{className:e=""}=s,t=V(s,["className"]);return Ue(),n.jsx("thead",F(A({className:`bg-surface-subtle sticky top-0 ${ve("sticky")} ${e}`},t),{children:n.jsx(Gs,{})}))}function Ys(a){var o=a,{column:e,row:t,className:r=""}=o,s=V(o,["column","row","className"]);const i=e.key in t?t[e.key]:void 0;return n.jsx("td",F(A({className:`${m("lg","px")} ${m("base","py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile?"hidden md:table-cell":""} ${r}`},s),{children:e.render?e.render(i,t):String(i!=null?i:"")}))}function Hu(o){var i=o,{actions:e,row:t,align:r="right",className:s=""}=i,a=V(i,["actions","row","align","className"]);const c=e.map(u=>({label:u.label,onClick:()=>u.onClick(t),variant:u.variant,disabled:u.disabled}));return n.jsx("div",F(A({className:`inline-flex ${s}`},a),{children:n.jsx(no,{trigger:n.jsx(re,{variant:"ghost",size:"sm","aria-label":"Row actions",className:`h-8 w-8 ${m("none","p")}`,children:n.jsx($c,{className:"h-4 w-4"})}),items:c,align:r})}))}function qs(a){var o=a,{row:e,align:t="right",className:r=""}=o,s=V(o,["row","align","className"]);const{actions:i}=Ue();if(!i)return null;const c=i(e);return c.length===0?null:n.jsx(Hu,A({row:e,actions:c,align:t,className:r},s))}function yr(i){var c=i,{row:e,rowIndex:t,className:r="",onClick:s,style:a}=c,o=V(c,["row","rowIndex","className","onClick","style"]);const{columns:u,selectable:d,selectionState:f,toggleRowSelection:b,getRowId:p,actions:h,onRowClick:x}=Ue(),k=p(e,t),w=f.selectedRows.includes(k),v=!!x,y=$=>{s&&s($),x&&x(e)},N=$=>{x&&($.key==="Enter"||$.key===" ")&&($.key===" "&&$.preventDefault(),x(e))};return n.jsxs("tr",F(A({role:"row","aria-selected":d?w:void 0,"aria-rowindex":t+1,tabIndex:v?0:void 0,onKeyDown:v?N:void 0,className:`hover:bg-surface-hover ${v?"cursor-pointer":""} ${w?"bg-surface-selected":""} ${r}`,onClick:y,style:a},o),{children:[d&&n.jsx("td",{className:`${m("lg","px")} ${m("base","py")}`,children:n.jsx(Rr,{checked:w,onChange:()=>b(k),"aria-label":`Select row ${k}`,className:m("none","my")})}),u.map($=>n.jsx(Ys,{column:$,row:e},String($.key))),h&&n.jsx("td",{className:`${m("lg","px")} ${m("base","py")} text-right`,children:n.jsx(qs,{row:e})})]}))}function Xs(r){var s=r,{className:e=""}=s,t=V(s,["className"]);const{emptyMessage:a,emptyStateTitle:o,emptyStateMessage:i,emptyStateIllustration:c,emptyStateAction:u}=Ue();return o||i||c?n.jsxs("div",F(A({className:e},t),{children:[n.jsx(so,{title:o||"No data available",message:i||a||"No data available",variant:c?"withIllustration":"default",illustration:c}),u&&n.jsx("div",{className:`${m("base","mt")} flex justify-center`,children:u})]})):n.jsx("div",F(A({className:`text-center text-fg-secondary ${e}`},t),{children:a||"No data available"}))}function Ao(e,t){const{itemHeight:r,containerHeight:s,overscan:a=5,enabled:o=!0}=t,[i,c]=l.useState(0),u=l.useRef(null),d=l.useMemo(()=>{if(!o||e.length===0)return e.map((k,w)=>({index:w,start:w*r,end:(w+1)*r,size:r}));const p=Math.max(0,Math.floor(i/r)-a),h=s?Math.min(e.length,Math.ceil((i+s)/r)+a):e.length,x=[];for(let k=p;k<h;k++)x.push({index:k,start:k*r,end:(k+1)*r,size:r});return x},[e,r,i,s,a,o]),f=e.length*r;return l.useEffect(()=>{if(!o||!u.current)return;const p=u.current,h=()=>{c(p.scrollTop)};return p.addEventListener("scroll",h,{passive:!0}),()=>p.removeEventListener("scroll",h)},[o]),{virtualItems:d,totalHeight:f,scrollOffset:i,setScrollOffset:c,scrollToIndex:p=>{if(!u.current)return;const h=p*r;u.current.scrollTop=h,c(h)},containerRef:u}}function Js(s){var a=s,{children:e,className:t=""}=a,r=V(a,["children","className"]);var k,w;const{paginatedData:o,loading:i,columns:c,selectable:u,actions:d,virtualScrolling:f,virtualScrollingOptions:b}=Ue(),p=c.length+(u?1:0)+(d?1:0),h=Ao(o,{itemHeight:(b==null?void 0:b.itemHeight)||50,containerHeight:b==null?void 0:b.containerHeight,overscan:(b==null?void 0:b.overscan)||5,enabled:f||!1}),x=l.useMemo(()=>f&&h.virtualItems.length>0?h.virtualItems.map(v=>({row:o[v.index],index:v.index})).filter(v=>v.row!==void 0):o.map((v,y)=>({row:v,index:y})),[f,h.virtualItems,o]);return i?n.jsx("tbody",F(A({className:`bg-surface-base divide-y divide-line-default ${t}`},r),{children:Array.from({length:5}).map((v,y)=>n.jsx("tr",{children:Array.from({length:p}).map((N,$)=>n.jsx("td",{className:`${m("lg","px")} ${m("base","py")}`,children:n.jsx(Va,{className:"h-4 w-full"})},$))},y))})):o.length===0?n.jsx("tbody",F(A({className:`bg-surface-base divide-y divide-line-default ${t}`},r),{children:n.jsx("tr",{children:n.jsx("td",{colSpan:p,className:`${m("lg","px")} ${m("3xl","py")}`,children:n.jsx(Xs,{})})})})):typeof e=="function"?n.jsx("tbody",F(A({className:`bg-surface-base divide-y divide-line-default ${t}`},r),{children:o.map((v,y)=>e(v,y))})):n.jsx("tbody",F(A({className:`bg-surface-base divide-y divide-line-default ${t}`,role:"rowgroup"},r),{children:f&&h.virtualItems.length>0&&x.length>0?n.jsxs(n.Fragment,{children:[((k=h.virtualItems[0])==null?void 0:k.start)>0&&n.jsx("tr",{style:{height:h.virtualItems[0].start},"aria-hidden":"true",children:n.jsx("td",{colSpan:p})}),x.map(({row:v,index:y})=>n.jsx(yr,{row:v,rowIndex:y},y)),h.virtualItems.length>0&&n.jsx("tr",{style:{height:Math.max(0,h.totalHeight-(((w=h.virtualItems[h.virtualItems.length-1])==null?void 0:w.end)||0))},"aria-hidden":"true",children:n.jsx("td",{colSpan:p})})]}):x.map(({row:v,index:y})=>n.jsx(yr,{row:v,rowIndex:y},y))}))}function Bu(i){var c=i,{filters:e,onFilter:t,initialValues:r={},showClearAll:s=!0,className:a=""}=c,o=V(c,["filters","onFilter","initialValues","showClearAll","className"]);const[u,d]=l.useState(r),[f,b]=l.useState(!1),p=`table-filters-panel-${l.useId()}`,h=Object.values(u).some(y=>y!==""&&y!==null&&y!==void 0),x=(y,N)=>{const $=F(A({},u),{[y]:N});d($),t($)},k=()=>{const y={};e.forEach(N=>{y[N.key]=""}),d(y),t(y)},w=y=>{const N=F(A({},u),{[y]:""});d(N),t(N)},v=Object.values(u).filter(y=>y!==""&&y!==null&&y!==void 0).length;return n.jsx("div",F(A({className:`bg-surface-base border-b border-line-default ${a}`},o),{children:n.jsxs("div",{className:`${m("base","px")} ${m("md","py")} sm:${m("lg","px")}`,children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("button",{type:"button",onClick:()=>b(!f),"aria-expanded":f,"aria-controls":p,className:`flex items-center ${m("sm","gap")} text-sm font-medium text-fg-secondary hover:text-fg-primary`,children:[n.jsx(Dc,{className:"h-4 w-4"}),n.jsx("span",{children:"Filters"}),v>0&&n.jsx("span",{className:`inline-flex items-center ${m("sm","px")} ${m("0.5","py")} rounded text-xs font-medium bg-surface-brand-muted text-fg-brand-emphasis`,children:v})]}),h&&s&&n.jsx(re,{variant:"ghost",size:"sm",onClick:k,className:"text-sm",children:"Clear all"})]}),f&&n.jsx("div",{id:p,className:`${m("base","mt")} grid grid-cols-1 ${m("base","gap")} sm:grid-cols-2 lg:grid-cols-3`,children:e.map(y=>{const N=u[y.key],$=N==null?"":String(N);return n.jsxs("div",{className:m("xs","space-y"),children:[n.jsx(Pt,{htmlFor:`filter-${y.key}`,variant:"optional",children:y.label}),n.jsxs("div",{className:"relative",children:[y.type==="text"&&n.jsx(Re,{id:`filter-${y.key}`,type:"text",value:$,onChange:E=>x(y.key,E.target.value),placeholder:y.placeholder||`Filter by ${y.label.toLowerCase()}`,size:"sm",variant:"outlined"}),y.type==="select"&&n.jsxs("div",{className:"relative",children:[n.jsx(Ir,{id:`filter-${y.key}`,options:[{value:"",label:`All ${y.label}`},...y.options||[]],value:$,onChange:E=>x(y.key,E.target.value)}),$&&n.jsx("button",{type:"button",onClick:()=>w(y.key),className:"absolute right-8 top-1/2 -translate-y-1/2 text-fg-tertiary hover:text-fg-secondary","aria-label":`Clear ${y.label} filter`,children:n.jsx(Ie,{className:"h-4 w-4"})})]}),y.type==="date"&&n.jsx(Re,{id:`filter-${y.key}`,type:"date",value:$,onChange:E=>x(y.key,E.target.value),size:"sm",variant:"outlined"}),$&&y.type!=="select"&&n.jsx("button",{type:"button",onClick:()=>w(y.key),className:"absolute right-2 top-1/2 -translate-y-1/2 text-fg-tertiary hover:text-fg-secondary","aria-label":`Clear ${y.label} filter`,children:n.jsx(Ie,{className:"h-4 w-4"})})]})]},y.key)})})]})}))}function Zs(s){var a=s,{showClearAll:e=!0,className:t=""}=a,r=V(a,["showClearAll","className"]);const{filterState:o,setFilters:i}=Ue();return o.config.length===0?null:n.jsx(Bu,A({filters:o.config,onFilter:i,initialValues:o.values,showClearAll:e,className:t},r))}function Uu(f){var b=f,{page:e,pageSize:t,total:r,onPageChange:s,onPageSizeChange:a,pageSizeOptions:o=[10,25,50,100],showPageSizeSelector:i=!0,showPageInfo:c=!0,className:u=""}=b,d=V(b,["page","pageSize","total","onPageChange","onPageSizeChange","pageSizeOptions","showPageSizeSelector","showPageInfo","className"]);const p=Math.ceil(r/t),h=r===0?0:(e-1)*t+1,x=Math.min(e*t,r),k=()=>{e>1&&s(e-1)},w=()=>{e<p&&s(e+1)},v=()=>{e>1&&s(1)},y=()=>{e<p&&s(p)};return n.jsxs("div",F(A({className:`flex items-center justify-between ${m("base","px")} ${m("md","py")} bg-surface-base border-t border-line-default sm:${m("lg","px")} ${u}`},d),{children:[n.jsxs("div",{className:"flex flex-1 justify-between sm:hidden",children:[n.jsx(re,{variant:"outline",size:"sm",onClick:k,disabled:e===1,children:"Previous"}),n.jsx(re,{variant:"outline",size:"sm",onClick:w,disabled:e>=p,children:"Next"})]}),n.jsxs("div",{className:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between",children:[c&&n.jsx("div",{children:n.jsxs(Te,{as:"p",className:"text-sm text-fg-secondary",children:["Showing ",n.jsx("span",{className:"font-medium",children:h})," to"," ",n.jsx("span",{className:"font-medium",children:x})," of"," ",n.jsx("span",{className:"font-medium",children:r})," results"]})}),n.jsxs("div",{className:`flex items-center ${m("base","gap")}`,children:[i&&n.jsxs("div",{className:`flex items-center ${m("sm","gap")}`,children:[n.jsx(Te,{as:"span",className:"text-sm text-fg-secondary",children:"Show:"}),n.jsx(Ir,{"aria-label":"Items per page",options:o.map(N=>({value:N.toString(),label:N.toString()})),value:t.toString(),onChange:N=>{const $=parseInt(N.target.value);a($),s(1)},className:"w-20"})]}),n.jsxs("nav",{className:`flex items-center ${m("xs","gap")}`,"aria-label":"Pagination",children:[n.jsxs(re,{variant:"ghost",size:"sm",onClick:v,disabled:e===1,"aria-label":"First page",children:[n.jsx(qt,{className:"h-4 w-4"}),n.jsx(qt,{className:"h-4 w-4 -ml-2"})]}),n.jsx(re,{variant:"ghost",size:"sm",onClick:k,disabled:e===1,"aria-label":"Previous page",children:n.jsx(qt,{className:"h-4 w-4"})}),n.jsx("div",{className:`flex items-center ${m("xs","gap")}`,children:Array.from({length:Math.min(5,p)},(N,$)=>{let E;return p<=5||e<=3?E=$+1:e>=p-2?E=p-4+$:E=e-2+$,n.jsx(re,{variant:e===E?"primary":"ghost",size:"sm",onClick:()=>s(E),className:"min-w-10","aria-label":`Page ${E}`,"aria-current":e===E?"page":void 0,children:E},E)})}),n.jsx(re,{variant:"ghost",size:"sm",onClick:w,disabled:e>=p,"aria-label":"Next page",children:n.jsx(St,{className:"h-4 w-4"})}),n.jsxs(re,{variant:"ghost",size:"sm",onClick:y,disabled:e>=p,"aria-label":"Last page",children:[n.jsx(St,{className:"h-4 w-4"}),n.jsx(St,{className:"h-4 w-4 -ml-2"})]})]})]})]})]}))}function Qs(o){var i=o,{showPageSizeSelector:e=!0,showPageInfo:t=!0,pageSizeOptions:r,className:s=""}=i,a=V(i,["showPageSizeSelector","showPageInfo","pageSizeOptions","className"]);const{paginationState:c,setPage:u,setPageSize:d,paginationMode:f}=Ue();return f==="client"&&c.totalPages<=1?null:n.jsx(Uu,A({page:c.page,pageSize:c.pageSize,total:c.total,onPageChange:u,onPageSizeChange:d,pageSizeOptions:r,showPageSizeSelector:e,showPageInfo:t,className:s},a))}function Me(e){const c=e,{className:t="","aria-label":r,"aria-labelledby":s}=c,a=V(c,["className","aria-label","aria-labelledby"]),o="children"in e&&e.children!==void 0,i=o?a:Gu(a);return o?n.jsx("div",{className:`bg-surface-base shadow ${G("lg")} overflow-hidden ${t}`,children:n.jsx(xs,F(A({},i),{children:e.children}))}):n.jsx("div",{className:`bg-surface-base shadow ${G("lg")} overflow-hidden ${t}`,children:n.jsxs(xs,F(A({},i),{children:[i.filters&&i.filters.length>0&&n.jsx(Zs,{}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"min-w-full divide-y divide-line-default",role:"table","aria-label":r,"aria-labelledby":s,"aria-rowcount":i.total||i.data.length,"aria-colcount":i.columns.length+(i.selectable?1:0)+(i.actions?1:0),children:[n.jsx(Ks,{}),n.jsx(Js,{})]})}),n.jsx(Qs,{})]}))})}function Gu(e){const{columns:t,data:r,loading:s,onSort:a,sortColumn:o,sortDirection:i,emptyMessage:c,emptyStateTitle:u,emptyStateMessage:d,emptyStateIllustration:f,emptyStateAction:b,pagination:p,filters:h,selectable:x,selectedRows:k,onSelectionChange:w,rowId:v,actions:y,onRowClick:N,paginationMode:$,defaultPageSize:E,resizable:j,columnWidths:C,onColumnResize:S,virtualScrolling:M,virtualScrollingOptions:L}=e;let D=$||"auto";return D==="auto"&&(D=p&&p.total!==void 0?"server":"client"),{columns:t,data:r,loading:s,paginationMode:D,page:p==null?void 0:p.page,pageSize:p==null?void 0:p.pageSize,total:p==null?void 0:p.total,onPageChange:p==null?void 0:p.onPageChange,onPageSizeChange:p==null?void 0:p.onPageSizeChange,defaultPageSize:E||(p==null?void 0:p.pageSize)||10,pageSizeOptions:p==null?void 0:p.pageSizeOptions,sortColumn:o,sortDirection:i,onSort:a,filters:h==null?void 0:h.config,filterValues:void 0,onFilter:h==null?void 0:h.onFilter,initialFilterValues:h==null?void 0:h.initialValues,selectable:x,selectedRows:k,onSelectionChange:w,rowId:v,actions:y,onRowClick:N,emptyMessage:c,emptyStateTitle:u,emptyStateMessage:d,emptyStateIllustration:f,emptyStateAction:b,resizable:j,columnWidths:C,onColumnResize:S,virtualScrolling:M,virtualScrollingOptions:L,children:n.jsx(n.Fragment,{})}}Me.Header=Ks;Me.HeaderRow=Gs;Me.HeaderCell=Us;Me.Body=Js;Me.Row=yr;Me.Cell=Ys;Me.Filters=Zs;Me.Pagination=Qs;Me.EmptyState=Xs;Me.Actions=qs;function Ku(e={}){const{defaultWidths:t={},minWidth:r=50,maxWidth:s,resizable:a=!0}=e,[o,i]=l.useState(t),[c,u]=l.useState(!1),[d,f]=l.useState(null),b=l.useRef(null),p=l.useCallback((v,y)=>{const N=Math.max(r,s?Math.min(y,s):y);i($=>F(A({},$),{[v]:N}))},[r,s]),h=l.useCallback(()=>{i(t)},[t]),x=l.useCallback((v,y,N)=>{a&&(u(!0),f(v),b.current={startX:y,startWidth:N})},[a]),k=l.useCallback(v=>{if(!c||!d||!b.current)return;const y=v-b.current.startX,N=b.current.startWidth+y;p(d,N)},[c,d,p]),w=l.useCallback(()=>{u(!1),f(null),b.current=null},[]);return l.useEffect(()=>{if(!c||typeof window=="undefined")return;const v=N=>k(N.clientX),y=()=>w();return document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y)}},[c,k,w]),{columnWidths:o,setColumnWidth:p,resetColumnWidths:h,isResizing:c,resizingColumn:d,startResize:x,handleResize:k,endResize:w}}const Wr=l.createContext(null);function Yu(){return l.useContext(Wr)}function Qe(){const e=l.useContext(Wr);if(!e)throw new Error("useSideNavbarThemeRequired must be used within SideNavbarThemeProvider");return e}const Lt={variant:"default",navigationWidth:"56px",contentWidth:"320px",animationDuration:300,animationEasing:"ease-in-out"};function en({children:e,variant:t=Lt.variant,navigationWidth:r=Lt.navigationWidth,contentWidth:s=Lt.contentWidth,animationDuration:a=Lt.animationDuration,animationEasing:o=Lt.animationEasing}){const i=l.useMemo(()=>({variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,animationEasing:o}),[t,r,s,a,o]);return n.jsx(Wr.Provider,{value:i,children:e})}const Hr=l.createContext(null);function qu(){return l.useContext(Hr)}function At(){const e=l.useContext(Hr);if(!e)throw new Error("useSideNavbarConfigRequired must be used within SideNavbarConfigProvider");return e}const $e={mode:"full",resizable:!1,minWidth:void 0,maxWidth:void 0,snapPoints:void 0,responsive:!1,mobileBreakpoint:768,mobileVariant:"collapse",overlayBackdrop:!0,persistState:!0,persistWidth:!1,storageKey:void 0,keyboardShortcut:"Ctrl+B",enableKeyboardShortcut:!0};function tn({children:e,mode:t=$e.mode,resizable:r=$e.resizable,minWidth:s=$e.minWidth,maxWidth:a=$e.maxWidth,snapPoints:o=$e.snapPoints,responsive:i=$e.responsive,mobileBreakpoint:c=$e.mobileBreakpoint,mobileVariant:u=$e.mobileVariant,overlayBackdrop:d=$e.overlayBackdrop,persistState:f=$e.persistState,persistWidth:b=$e.persistWidth,storageKey:p=$e.storageKey,keyboardShortcut:h=$e.keyboardShortcut,enableKeyboardShortcut:x=$e.enableKeyboardShortcut}){const k=l.useMemo(()=>({mode:t,resizable:r,minWidth:s,maxWidth:a,snapPoints:o,responsive:i,mobileBreakpoint:c,mobileVariant:u,overlayBackdrop:d,persistState:f,persistWidth:b,storageKey:p,keyboardShortcut:h,enableKeyboardShortcut:x}),[t,r,s,a,o,i,c,u,d,f,b,p,h,x]);return n.jsx(Hr.Provider,{value:k,children:e})}const Br=l.createContext(null);function Xu(){return l.useContext(Br)}function et(){const e=l.useContext(Br);if(!e)throw new Error("useSideNavbarStateRequired must be used within SideNavbarStateProvider");return e}function wr(e){if(typeof e=="number")return e;const t=parseFloat(e);return isNaN(t)?0:e.endsWith("rem")||e.endsWith("em")?t*16:(e.endsWith("px"),t)}function Ju(e,t){return e===void 0||t===void 0?!0:e<t}function pr(e,t,r){let s=e;return t!==void 0&&(s=Math.max(s,t)),r!==void 0&&(s=Math.min(s,r)),s}const Zu=["ctrl","cmd","control","shift","alt","meta","option"];function Io(e){const t={key:"",ctrl:!1,shift:!1,alt:!1,meta:!1,isValid:!1};if(!e||typeof e!="string")return t;const r=e.trim();if(!r)return t;const s=r.split("+").map(u=>u.trim().toLowerCase()).filter(u=>u.length>0);if(s.length===0)return t;const a=new Set;let o="";for(let u=0;u<s.length;u++){const d=s[u];if(Zu.includes(d))a.add(d);else if(u===s.length-1)o=d;else return t}if(!o)return t;const i=a.has("ctrl")||a.has("cmd")||a.has("control"),c=a.has("alt")||a.has("option");return{key:o,ctrl:i,shift:a.has("shift"),alt:c,meta:a.has("meta"),isValid:!0}}function Qu(e,t="windows"){if(!e.isValid)return"";const r=[];return t==="mac"?(e.ctrl&&r.push("⌘"),e.shift&&r.push("⇧"),e.alt&&r.push("⌥"),e.meta&&r.push("⌃"),r.push(e.key.toUpperCase()),r.join("")):(e.ctrl&&r.push("Ctrl"),e.shift&&r.push("Shift"),e.alt&&r.push("Alt"),e.meta&&r.push("Meta"),r.push(e.key.toUpperCase()),r.join("+"))}function Ro({initialWidth:e,minWidth:t,maxWidth:r,snapPoints:s,snapThreshold:a=20,onWidthChange:o,enabled:i=!0}){const c=pr(e,t,r),[u,d]=l.useState(c),[f,b]=l.useState(!1),p=l.useRef(0),h=l.useRef(c),x=l.useCallback(y=>{let N=pr(y,t,r);if(s&&s.length>0){const $=s.reduce((E,j)=>{const C=Math.abs(N-j),S=Math.abs(N-E);return C<S?j:E},s[0]);Math.abs(N-$)<=a&&(N=$)}d(N),o==null||o(N)},[t,r,s,a,o]),k=l.useCallback(y=>{if(!i||!f)return;const N=y.clientX-p.current,$=h.current+N;x($)},[i,f,x]),w=l.useCallback(()=>{i&&(b(!1),p.current=0,h.current=u)},[i,u]),v=l.useCallback(y=>{i&&(y.preventDefault(),y.stopPropagation(),b(!0),p.current=y.clientX,h.current=u)},[i,u]);return l.useEffect(()=>{if(f)return document.addEventListener("mousemove",k),document.addEventListener("mouseup",w),document.body.style.userSelect="none",document.body.style.cursor="col-resize",()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",w),document.body.style.userSelect="",document.body.style.cursor=""}},[f,k,w]),l.useEffect(()=>{f||d(pr(e,t,r))},[e,t,r,f]),{width:u,isResizing:f,startResize:v,setWidth:x}}function Mo({mobileBreakpoint:e=768,onMobileChange:t,enabled:r=!0}={}){const[s,a]=l.useState(typeof window!="undefined"?window.innerWidth:1024),[o,i]=l.useState(typeof window!="undefined"?window.innerWidth<e:!1),c=l.useCallback(()=>{if(!r||typeof window=="undefined")return;const u=window.innerWidth,d=u<e;a(u),d!==o&&(i(d),t==null||t(d))},[r,e,o,t]);return l.useEffect(()=>{if(!r||typeof window=="undefined")return;const u=window.innerWidth,d=u<e;a(u),i(d),window.addEventListener("resize",c);let f=null;return window.ResizeObserver&&(f=new ResizeObserver(()=>{c()}),f.observe(document.body)),()=>{window.removeEventListener("resize",c),f==null||f.disconnect()}},[r,e,c]),{isMobile:o,viewportWidth:s}}function Do({isActive:e,containerRef:t,restoreFocus:r=!0,initialFocusRef:s}){const a=l.useRef(null);l.useEffect(()=>{if(e){if(a.current=document.activeElement,s!=null&&s.current)s.current.focus();else if(t.current){const i=t.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');i==null||i.focus()}}else r&&a.current&&(a.current.focus(),a.current=null)},[e,t,s,r]);const o=l.useCallback(i=>{if(!(!e||!t.current)&&i.key==="Tab"){const c=t.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),u=c[0],d=c[c.length-1];i.shiftKey?document.activeElement===u&&(i.preventDefault(),d==null||d.focus()):document.activeElement===d&&(i.preventDefault(),u==null||u.focus())}},[e,t]);l.useEffect(()=>{if(e)return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[e,o])}function _o({key:e,ctrl:t=!1,shift:r=!1,alt:s=!1,meta:a=!1,onTrigger:o,enabled:i=!0,preventDefault:c=!0}){const u=l.useCallback(d=>{if(!i)return;const f=d.target;if((f.tagName==="INPUT"||f.tagName==="TEXTAREA"||f.isContentEditable)&&!t&&!a)return;const p=e.length===1?d.key.toLowerCase()===e.toLowerCase():d.key===e,h=t?d.ctrlKey||d.metaKey:!d.ctrlKey&&!d.metaKey,x=r?d.shiftKey:!d.shiftKey,k=s?d.altKey:!d.altKey,w=a?d.metaKey:!d.metaKey,v=t?(d.ctrlKey||d.metaKey)&&!a:h&&w;p&&v&&x&&k&&(c&&(d.preventDefault(),d.stopPropagation()),o())},[i,e,t,r,s,a,o,c]);l.useEffect(()=>{if(i)return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[i,u])}function rn({children:e,defaultCollapsed:t=!1,collapsed:r,onCollapseChange:s,onWidthChange:a,onMobileChange:o,exclusiveGroups:i=!1}){const c=Qe(),u=At(),d=l.useRef(null),f=r!==void 0,b=()=>{if(f)return r;if(u.storageKey&&u.persistState&&typeof window!="undefined"){const _=localStorage.getItem(`${u.storageKey}-collapsed`);if(_!==null)return _==="true"}return t},p=()=>{if(u.storageKey&&u.persistWidth&&typeof window!="undefined"){const _=localStorage.getItem(`${u.storageKey}-width`);if(_!==null){const O=parseInt(_,10);if(!isNaN(O))return O}}return wr(c.contentWidth)},[h,x]=l.useState(b),[k,w]=l.useState({}),{isMobile:v}=Mo({mobileBreakpoint:u.mobileBreakpoint,onMobileChange:_=>{o==null||o(_),_&&u.mobileVariant==="collapse"&&!f&&(x(!0),s==null||s(!0))},enabled:u.responsive}),{width:y,isResizing:N,startResize:$,setWidth:E}=Ro({initialWidth:p(),minWidth:u.minWidth,maxWidth:u.maxWidth,snapPoints:u.snapPoints,onWidthChange:_=>{a==null||a(_),u.storageKey&&u.persistWidth&&typeof window!="undefined"&&localStorage.setItem(`${u.storageKey}-width`,String(_))},enabled:u.resizable&&!v});Do({isActive:v&&u.mobileVariant==="overlay"&&!h,containerRef:d,restoreFocus:!0});const j=f?r:h,C=l.useCallback(_=>{f||x(_),s==null||s(_)},[f,s]),S=l.useCallback(()=>{C(!j)},[j,C]),M=Io(u.keyboardShortcut);_o({key:M.key,ctrl:M.ctrl,shift:M.shift,alt:M.alt,meta:M.meta,onTrigger:S,enabled:u.enableKeyboardShortcut});const L=l.useCallback(_=>{E(_)},[E]),D=l.useCallback(_=>{w(i?O=>{const H=O[_]===!1,B={},ae=new Set([...Object.keys(O),_]);return H?ae.forEach(W=>{B[W]=!0}):ae.forEach(W=>{B[W]=W!==_}),B}:O=>F(A({},O),{[_]:!O[_]}))},[i]),R=l.useCallback((_,O)=>{w(z=>F(A({},z),{[_]:O}))},[]);l.useEffect(()=>{f&&r!==h&&x(r)},[f,r,h]),l.useEffect(()=>{u.storageKey&&u.persistState&&typeof window!="undefined"&&!f&&localStorage.setItem(`${u.storageKey}-collapsed`,String(h))},[u.storageKey,u.persistState,h,f]);const I=l.useMemo(()=>({collapsed:j,toggle:S,setCollapsed:C,currentWidth:y,setWidth:L,isMobile:v,isResizing:N,startResize:$,groupStates:k,toggleGroup:D,setGroupCollapsed:R,sidebarRef:d}),[j,S,C,y,L,v,N,$,k,D,R]);return n.jsx(Br.Provider,{value:I,children:e})}function sn({children:e,variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,animationEasing:o,mode:i,resizable:c,minWidth:u,maxWidth:d,snapPoints:f,responsive:b,mobileBreakpoint:p,mobileVariant:h,overlayBackdrop:x,persistState:k,persistWidth:w,storageKey:v,keyboardShortcut:y,enableKeyboardShortcut:N,defaultCollapsed:$,collapsed:E,onCollapseChange:j,onWidthChange:C,onMobileChange:S,exclusiveGroups:M}){return n.jsx(en,{variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,animationEasing:o,children:n.jsx(tn,{mode:i,resizable:c,minWidth:u,maxWidth:d,snapPoints:f,responsive:b,mobileBreakpoint:p,mobileVariant:h,overlayBackdrop:x,persistState:k,persistWidth:w,storageKey:v,keyboardShortcut:y,enableKeyboardShortcut:N,children:n.jsx(rn,{defaultCollapsed:$,collapsed:E,onCollapseChange:j,onWidthChange:C,onMobileChange:S,exclusiveGroups:M,children:e})})})}const Ur=l.createContext(null);function nn(){return l.useContext(Ur)}function an(){const e=l.useContext(Ur);if(!e)throw new Error("useSidebarSlotRequired must be used within SidebarSlotProvider");return e}function Lo({children:e,defaultSlot:t=null}){const[r,s]=l.useState(t),a=l.useRef(new Map),o=l.useCallback((u,d)=>{a.current.set(u,d)},[]),i=l.useCallback(u=>{a.current.delete(u)},[]),c=l.useMemo(()=>({activeSlot:r,setActiveSlot:s,slots:a.current,registerSlot:o,unregisterSlot:i}),[r,o,i]);return n.jsx(Ur.Provider,{value:c,children:e})}const Gr=l.createContext(null);function ef(){return l.useContext(Gr)}function Fo(){const e=l.useContext(Gr);return e||{showMainToggle:!0,mainTogglePosition:"floating"}}function on(r){var s=r,{className:e=""}=s,t=V(s,["className"]);const{currentWidth:a,setWidth:o,isResizing:i,startResize:c}=et(),{resizable:u,minWidth:d,maxWidth:f}=At();return u?n.jsxs("div",F(A({className:`
191
+ `,"aria-hidden":"true"})]}),n.jsx("div",{id:`accordion-content-${d.id}`,className:x("grid",Ne("base"),f?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),"aria-hidden":!f,children:n.jsx("div",{className:"min-h-0 overflow-hidden",children:n.jsx("div",{className:x(m("base","px"),m("md","py"),"text-fg-secondary",d.contentClassName),children:d.content})})})]},d.id)})})}const ko=l.createContext(void 0);function xs({children:e,mobileMenuOpen:t,onMobileMenuChange:r,defaultMobileMenuOpen:s=!1}){const[a,o]=l.useState(s),i=t!==void 0,c=i?t:a,u=l.useCallback(p=>{i||o(p),r==null||r(p)},[i,r]),d=l.useCallback(()=>{u(!c)},[c,u]),f=l.useCallback(()=>{u(!0)},[u]),b=l.useCallback(()=>{u(!1)},[u]);return n.jsx(ko.Provider,{value:{isMobileMenuOpen:c,toggleMobileMenu:d,setMobileMenuOpen:u,openMobileMenu:f,closeMobileMenu:b},children:e})}function Bs(){const e=l.useContext(ko);if(!e)throw new Error("useHeaderContext must be used within HeaderProvider");return e}function jo(a){var o=a,{children:e,className:t,href:r}=o,s=V(o,["children","className","href"]);return n.jsx("div",{className:"flex-shrink-0",children:n.jsx(Ar,F(A({href:r||"/",variant:"default",className:x("flex items-center font-semibold text-lg",t)},s),{children:e}))})}function No({children:e,className:t}){return n.jsx("nav",{className:x("flex-1 flex items-center justify-center",m("base","gap"),"hidden md:flex",t),"aria-label":"Main navigation",children:e})}function So({children:e,className:t}){return n.jsx("div",{className:x("flex-shrink-0 flex items-center",m("sm","gap"),t),children:e})}function $o({className:e,icon:t,closeIcon:r,variant:s="ghost",size:a="md"}){const{isMobileMenuOpen:o,toggleMobileMenu:i}=Bs(),c=t||n.jsx(Vc,{className:"h-5 w-5"}),u=r||n.jsx(Ie,{className:"h-5 w-5"});return n.jsx(re,{variant:s,size:a,onClick:i,className:x("md:hidden",e),"aria-label":o?"Close menu":"Open menu","aria-expanded":o,children:o?u:c})}function Co({children:e,className:t}){const{isMobileMenuOpen:r,closeMobileMenu:s}=Bs();return n.jsx(Zt,{open:r,onOpenChange:a=>{a||s()},position:"left",size:"sm",closeOnOverlayClick:!0,closeOnEscape:!0,children:n.jsx(zs,{className:x(m("base","p"),t),children:n.jsx("nav",{className:`flex flex-col ${m("sm","gap")}`,"aria-label":"Mobile navigation",children:e})})})}const Du={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},bt=l.forwardRef((u,c)=>{var d=u,{className:e,maxWidth:t="lg",paddingX:r="base",paddingY:s="base",center:a=!0,children:o}=d,i=V(d,["className","maxWidth","paddingX","paddingY","center","children"]);return n.jsx("div",F(A({ref:c,className:x("w-full",Du[t],m(r,"px"),m(s,"py"),a&&"mx-auto",e)},i),{children:o}))});bt.displayName="Container";const zt=l.forwardRef((u,c)=>{var d=u,{className:e,spacing:t="base",align:r="stretch",justify:s="start",direction:a="column",children:o}=d,i=V(d,["className","spacing","align","justify","direction","children"]);const f=a==="column"?m(t,"gap-y"):m(t,"gap-x"),b={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},p={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};return n.jsx("div",F(A({ref:c,className:x("flex",a==="column"?"flex-col":"flex-row",f,b[r],p[s],e)},i),{children:o}))});zt.displayName="Stack";const _u=xe(x("w-full","bg-surface-base","transition-shadow","transition-colors"),{variants:{variant:{default:"",elevated:he("sm"),bordered:x("border-b","border-line-muted")}},defaultVariants:{variant:"default"}});function Tt(c){var u=c,{children:e,variant:t="default",sticky:r=!1,maxWidth:s="full",bare:a=!1,className:o}=u,i=V(u,["children","variant","sticky","maxWidth","bare","className"]);const d=n.jsx("div",{className:`flex items-center justify-between ${m("base","gap")}`,children:e});return a?n.jsx(xs,{children:n.jsx("div",F(A({className:x(o)},i),{children:d}))}):n.jsx(xs,{children:n.jsx("header",F(A({className:x(_u({variant:t}),r&&`sticky top-0 ${ve("sticky")}`,r&&"backdrop-blur-sm bg-surface-base/95",o)},i),{children:n.jsx(bt,{maxWidth:s,paddingX:"base",paddingY:"sm",children:d})}))})}Tt.Logo=jo;Tt.Navigation=No;Tt.Actions=So;Tt.Hamburger=$o;Tt.MobileMenu=Co;const Kn=xe(x("flex","items-center",m("sm","gap")),{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col"},variant:{default:"",pills:"",tabs:""}},defaultVariants:{orientation:"horizontal",variant:"default"},compoundVariants:[{orientation:"vertical",variant:"default",class:"items-stretch"},{orientation:"vertical",variant:"pills",class:"items-stretch"},{orientation:"vertical",variant:"tabs",class:"items-stretch"}]});function Lu(u){var d=u,{items:e,orientation:t="horizontal",variant:r="default",className:s,"aria-label":a="Main navigation",bare:o=!1,pathname:i}=d,c=V(d,["items","orientation","variant","className","aria-label","bare","pathname"]);const f=i!=null?i:typeof window!="undefined"?window.location.pathname:void 0,b=l.useMemo(()=>e.map(h=>{if(h.active!==void 0)return h;if(f){const g=f===h.href||h.href!=="/"&&f.startsWith(`${h.href}/`);return F(A({},h),{active:g})}return F(A({},h),{active:!1})}),[e,f]),p=n.jsx(n.Fragment,{children:b.map((h,g)=>{const k=r==="pills"?"background":r==="tabs"?"underline":"default";return n.jsxs(Ar,{href:h.href,active:h.active,disabled:h.disabled,variant:k,className:x("flex items-center",m("sm","gap"),t==="vertical"&&"w-full justify-start",h.className),children:[h.icon&&n.jsx("span",{className:"flex-shrink-0","aria-hidden":"true",children:h.icon}),n.jsx("span",{children:h.label}),h.badge&&n.jsx("span",{className:"ml-auto",children:h.badge})]},h.href||g)})});return o?n.jsx("div",F(A({className:x(Kn({orientation:t,variant:r}),s)},c),{children:p})):n.jsx("nav",F(A({className:x(Kn({orientation:t,variant:r}),s),"aria-label":a},c),{children:p}))}function Eo(e){return n.jsx(Lu,F(A({},e),{pathname:e.pathname}))}const Fu=xe(x("w-full","flex","flex-col",m("sm","gap")),{variants:{variant:{default:x(m("base","mb")),compact:x(m("sm","mb"))}},defaultVariants:{variant:"default"}});function To(c){var u=c,{title:e,description:t,breadcrumb:r,actions:s,variant:a="default",className:o}=u,i=V(u,["title","description","breadcrumb","actions","variant","className"]);return n.jsxs("div",F(A({className:x(Fu({variant:a}),o)},i),{children:[r&&r.length>0&&n.jsx(to,{items:r}),n.jsxs("div",{className:`flex items-start justify-between ${m("base","gap")}`,children:[n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx(Te,{variant:"heading",as:"h1",className:`${m("sm","mb")} text-2xl font-bold`,children:e}),t&&n.jsx(Te,{variant:"body",className:"text-fg-secondary",children:t})]}),s&&n.jsx("div",{className:`flex items-center ${m("sm","gap")} flex-shrink-0`,children:s})]})]}))}function Pu(s){var a=s,{onForgotPasswordClick:e,className:t}=a,r=V(a,["onForgotPasswordClick","className"]);return n.jsx("div",{className:x(m("base","p"),"bg-surface-muted",G("md"),t),children:n.jsxs("form",F(A({},r),{onSubmit:o=>{o.preventDefault(),r.onSubmit&&r.onSubmit(o)},className:m("base","space-y"),children:[n.jsxs("div",{className:m("sm","space-y"),children:[n.jsx(Pt,{htmlFor:"login-email",variant:"required",children:"Your email"}),n.jsx(Re,{id:"login-email",placeholder:"myname@email.com",type:"email"})]}),n.jsxs("div",{className:m("sm","space-y"),children:[n.jsx(Pt,{htmlFor:"login-password",variant:"required",children:"Your password"}),n.jsx(Re,{id:"login-password",placeholder:"••••••••",type:"password"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx(re,{variant:"secondary",type:"button",onClick:e,children:"Forgot password?"}),n.jsx(re,{variant:"primary",type:"submit",children:"Sign in"})]})]}))})}function Ou(b){var p=b,{isOpen:e,onClose:t,title:r,children:s,variant:a="default",showCloseButton:o=!0,footer:i,className:c="","aria-label":u,"aria-labelledby":d}=p,f=V(p,["isOpen","onClose","title","children","variant","showCloseButton","footer","className","aria-label","aria-labelledby"]);const h=l.useRef(null),g=l.useRef(null),k=l.useId(),w=d!=null?d:r?k:void 0;if(Jt(e),zr(h,e),Os(h,e),l.useEffect(()=>{if(!e)return;const j=C=>{C.key==="Escape"&&t()};return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[e,t]),l.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),!e)return null;const v=["fixed","inset-0",ve("modal"),"overflow-y-auto"],y=["fixed","inset-0","bg-scrim","transition-opacity"],N={default:"max-w-md",large:"max-w-2xl",fullscreen:"max-w-full h-full"},$=["relative","bg-surface-overlay",G("lg"),he("xl"),m("xl","my"),"mx-auto",N[a],m("lg","p"),c].filter(Boolean).join(" "),E=n.jsxs("div",{className:v.join(" "),role:"dialog","aria-modal":"true","aria-labelledby":w,"aria-label":w?void 0:u,onClick:j=>{(j.target===j.currentTarget||j.target===g.current)&&t()},children:[n.jsx("div",{ref:g,className:y.join(" "),"aria-hidden":"true"}),n.jsx("div",{className:`flex min-h-full items-center justify-center ${m("base","p")}`,children:n.jsxs("div",F(A({ref:h,tabIndex:-1,className:$,onClick:j=>j.stopPropagation()},f),{children:[r&&n.jsxs("div",{className:`flex justify-between items-center ${m("base","mb")}`,children:[n.jsx("h2",{id:k,className:"text-xl font-semibold text-fg-primary",children:r}),o&&n.jsx("button",{onClick:t,className:"text-fg-tertiary hover:text-fg-secondary focus:outline-none","aria-label":"Close modal",children:n.jsx(Ie,{className:"h-6 w-6"})})]}),!r&&o&&n.jsx("div",{className:`flex justify-end ${m("base","mb")}`,children:n.jsx("button",{onClick:t,className:"text-fg-tertiary hover:text-fg-secondary focus:outline-none","aria-label":"Close modal",children:n.jsx(Ie,{className:"h-6 w-6"})})}),n.jsx("div",{className:m("base","mb"),children:s}),i&&n.jsx("div",{className:`flex justify-end ${m("sm","gap")} ${m("base","mt")}`,children:i})]}))})]});return typeof window!="undefined"?Je.createPortal(E,document.body):E}const Vr=Ya({displayName:"TableContext",errorMessage:"useTableContext must be used within a Table component"}),zu=Vr.Context,Vu=Vr.Provider;function Ue(){return Vr.useContextRequired()}function Wu(){return Vr.useContextOptional()}function gs({columns:e,data:t,loading:r=!1,paginationMode:s,page:a,pageSize:o,total:i,onPageChange:c,onPageSizeChange:u,defaultPageSize:d=10,pageSizeOptions:f,sortColumn:b,sortDirection:p,onSort:h,defaultSortColumn:g,defaultSortDirection:k="asc",filters:w,filterValues:v,onFilter:y,initialFilterValues:N={},selectable:$=!1,selectedRows:E,onSelectionChange:j,rowId:C,actions:S,emptyMessage:M="No data available",emptyStateTitle:L,emptyStateMessage:D,emptyStateIllustration:R,emptyStateAction:I,onRowClick:_,resizable:O=!1,columnWidths:z,onColumnResize:H,virtualScrolling:B,virtualScrollingOptions:ae,children:W}){const P=l.useMemo(()=>s||(i!==void 0&&c?"server":"client"),[s,i,c]),K=a!==void 0,[oe,ne]=l.useState(1),[de,J]=l.useState(d),ee=K?a:oe,te=o!=null?o:de,Q=l.useMemo(()=>P==="server"?i!=null?i:0:t.length,[P,i,t.length]),U=l.useMemo(()=>Math.ceil(Q/te),[Q,te]),Z=b!==void 0,[q,ie]=l.useState(g||""),[ke,ze]=l.useState(k),me=Z?b:q,Ce=Z?p||"asc":ke,Xr=v!==void 0,[ri,si]=l.useState(N),tr=Xr?v:ri,Jr=E!==void 0,[ni,ai]=l.useState([]),Ve=Jr?E:ni,rr=l.useMemo(()=>!w||w.length===0?t:t.filter(le=>w.every(fe=>{const ye=tr[fe.key];if(!ye||ye==="")return!0;const nr=le[fe.key];return fe.type==="text"?String(nr||"").toLowerCase().includes(String(ye).toLowerCase()):String(nr)===String(ye)})),[t,w,tr]),Zr=l.useMemo(()=>{if(Z&&h||!me)return rr;const le=[...rr];return le.sort((fe,ye)=>{const nr=fe[me],ci=ye[me],kn=String(nr||"").localeCompare(String(ci||""));return Ce==="asc"?kn:-kn}),le},[rr,me,Ce,h,Z]),_e=l.useMemo(()=>{if(P==="server")return Zr;const le=(ee-1)*te,fe=le+te;return Zr.slice(le,fe)},[Zr,P,ee,te]),tt=l.useCallback((le,fe)=>{var ye;return C?C(le):((ye=le==null?void 0:le.id)==null?void 0:ye.toString())||fe.toString()},[C]),sr=l.useMemo(()=>!$||_e.length===0?!1:_e.every((le,fe)=>{const ye=tt(le,fe);return Ve.includes(ye)}),[$,_e,Ve,tt]),pn=l.useMemo(()=>{if(!$||_e.length===0)return!1;const le=_e.filter((fe,ye)=>Ve.includes(tt(fe,ye))).length;return le>0&&le<_e.length},[$,_e,Ve,tt]),It=l.useCallback(le=>{K?c==null||c(le):ne(le)},[K,c]),bn=l.useCallback(le=>{u?u(le):J(le),It(1)},[u,It]),hn=l.useCallback((le,fe)=>{Z?h==null||h(le,fe):(ie(le),ze(fe))},[Z,h]),xn=l.useCallback(le=>{Xr?y==null||y(le):si(le),It(1)},[Xr,y,It]),yt=l.useCallback(le=>{Jr?j==null||j(le):ai(le)},[Jr,j]),gn=l.useCallback(le=>{const fe=Ve.includes(le)?Ve.filter(ye=>ye!==le):[...Ve,le];yt(fe)},[Ve,yt]),vn=l.useCallback(()=>{if(sr)yt([]);else{const le=_e.map((fe,ye)=>tt(fe,ye));yt(le)}},[sr,_e,tt,yt]),[oi,ii]=l.useState({}),Qr=z!==void 0,yn=Qr?z:oi,wn=l.useCallback((le,fe)=>{Qr?H==null||H(le,fe):ii(ye=>F(A({},ye),{[le]:fe}))},[Qr,H]),li=l.useMemo(()=>({columns:e,data:t,paginatedData:_e,loading:r,paginationState:{page:ee,pageSize:te,total:Q,totalPages:U},sortState:{column:me,direction:Ce},filterState:{values:tr,config:w||[]},selectionState:{selectedRows:Ve,isAllSelected:sr,isIndeterminate:pn},paginationMode:P,selectable:$,rowId:C,actions:S,resizable:O,columnWidths:yn,virtualScrolling:B,virtualScrollingOptions:ae,emptyMessage:M,emptyStateTitle:L,emptyStateMessage:D,emptyStateIllustration:R,emptyStateAction:I,setPage:It,setPageSize:bn,setSorting:hn,setFilters:xn,setSelection:yt,toggleRowSelection:gn,toggleSelectAll:vn,getRowId:tt,setColumnWidth:wn,onPageChange:c,onPageSizeChange:u,onSort:h,onFilter:y,onSelectionChange:j,onRowClick:_,onColumnResize:H}),[e,t,_e,r,ee,te,Q,U,me,Ce,tr,w,Ve,sr,pn,P,$,C,S,M,L,D,R,I,It,bn,hn,xn,yt,gn,vn,tt,wn,c,u,h,y,j,_,H,O,yn,B,ae]);return n.jsx(Vu,{value:li,children:W})}function Us(u){var d=u,{column:e,resizable:t=!1,width:r,onResize:s,minWidth:a=50,maxWidth:o,className:i=""}=d,c=V(d,["column","resizable","width","onResize","minWidth","maxWidth","className"]);const{sortState:f,setSorting:b,onSort:p}=Ue(),h=l.useRef(null),g=l.useRef(null),k=l.useRef(null),w=()=>{if(!e.sortable||!p&&!b)return;const j=f.column===e.key&&f.direction==="asc"?"desc":"asc";p?p(e.key,j):b(e.key,j)},v=j=>{$&&(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),w())},y=j=>{if(j.preventDefault(),j.stopPropagation(),!g.current||!s)return;const C=r||g.current.offsetWidth;k.current={x:j.clientX,width:C};const S=L=>{if(!k.current)return;const D=L.clientX-k.current.x,R=k.current.width+D,I=Math.max(a,o?Math.min(R,o):R);s(e.key,I)},M=()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",M),k.current=null};document.addEventListener("mousemove",S),document.addEventListener("mouseup",M)},N=f.column===e.key,$=e.sortable&&(p||b),E=N?f.direction:void 0;return n.jsx("th",F(A({ref:g,scope:"col",role:"columnheader","aria-sort":N?E==="asc"?"ascending":"descending":$?"none":void 0,className:`${m("lg","px")} ${m("md","py")} text-left text-xs font-medium text-fg-tertiary uppercase tracking-wider ${$?"cursor-pointer hover:bg-surface-active focus:bg-surface-active focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-2 select-none":""} ${e.hiddenOnMobile?"hidden md:table-cell":""} ${i}`,onClick:$?w:void 0,onKeyDown:$?v:void 0,tabIndex:$?0:void 0,style:r?{width:`${r}px`,minWidth:`${r}px`}:void 0},c),{children:n.jsxs("div",{className:`flex items-center ${m("sm","gap")} relative`,children:[n.jsx("span",{children:e.label}),N&&n.jsx("span",{className:"text-fg-tertiary","aria-hidden":"true",children:f.direction==="asc"?"↑":"↓"}),t&&s&&n.jsx("div",{ref:h,className:"absolute right-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-surface-brand transition-colors",onMouseDown:y,role:"separator","aria-orientation":"vertical","aria-label":`Resize ${e.label} column`,style:{touchAction:"none"}})]})}))}function Gs(r){var s=r,{className:e=""}=s,t=V(s,["className"]);const{columns:a,selectable:o,selectionState:i,toggleSelectAll:c,actions:u,resizable:d,columnWidths:f,setColumnWidth:b}=Ue();return n.jsxs("tr",F(A({role:"row",className:e},t),{children:[o&&n.jsx("th",{scope:"col",role:"columnheader",className:`${m("lg","px")} ${m("md","py")} w-12`,"aria-label":"Select all",children:n.jsx(Rr,{checked:i.isAllSelected,onChange:c,"aria-label":"Select all rows",className:m("none","my"),indeterminate:i.isIndeterminate})}),a.map(p=>n.jsx(Us,{column:p,resizable:d,width:f==null?void 0:f[p.key],onResize:b},p.key)),u&&n.jsx("th",{scope:"col",role:"columnheader",className:`${m("lg","px")} ${m("md","py")} text-right text-xs font-medium text-fg-tertiary uppercase tracking-wider w-12`,"aria-label":"Actions",children:n.jsx("span",{className:"sr-only",children:"Actions"})})]}))}function Ks(r){var s=r,{className:e=""}=s,t=V(s,["className"]);return Ue(),n.jsx("thead",F(A({className:`bg-surface-subtle sticky top-0 ${ve("sticky")} ${e}`},t),{children:n.jsx(Gs,{})}))}function Ys(a){var o=a,{column:e,row:t,className:r=""}=o,s=V(o,["column","row","className"]);const i=e.key in t?t[e.key]:void 0;return n.jsx("td",F(A({className:`${m("lg","px")} ${m("base","py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile?"hidden md:table-cell":""} ${r}`},s),{children:e.render?e.render(i,t):String(i!=null?i:"")}))}function Hu(o){var i=o,{actions:e,row:t,align:r="right",className:s=""}=i,a=V(i,["actions","row","align","className"]);const c=e.map(u=>({label:u.label,onClick:()=>u.onClick(t),variant:u.variant,disabled:u.disabled}));return n.jsx("div",F(A({className:`inline-flex ${s}`},a),{children:n.jsx(no,{trigger:n.jsx(re,{variant:"ghost",size:"sm","aria-label":"Row actions",className:`h-8 w-8 ${m("none","p")}`,children:n.jsx($c,{className:"h-4 w-4"})}),items:c,align:r})}))}function qs(a){var o=a,{row:e,align:t="right",className:r=""}=o,s=V(o,["row","align","className"]);const{actions:i}=Ue();if(!i)return null;const c=i(e);return c.length===0?null:n.jsx(Hu,A({row:e,actions:c,align:t,className:r},s))}function yr(i){var c=i,{row:e,rowIndex:t,className:r="",onClick:s,style:a}=c,o=V(c,["row","rowIndex","className","onClick","style"]);const{columns:u,selectable:d,selectionState:f,toggleRowSelection:b,getRowId:p,actions:h,onRowClick:g}=Ue(),k=p(e,t),w=f.selectedRows.includes(k),v=!!g,y=$=>{s&&s($),g&&g(e)},N=$=>{g&&($.key==="Enter"||$.key===" ")&&($.key===" "&&$.preventDefault(),g(e))};return n.jsxs("tr",F(A({role:"row","aria-selected":d?w:void 0,"aria-rowindex":t+1,tabIndex:v?0:void 0,onKeyDown:v?N:void 0,className:`hover:bg-surface-hover ${v?"cursor-pointer":""} ${w?"bg-surface-selected":""} ${r}`,onClick:y,style:a},o),{children:[d&&n.jsx("td",{className:`${m("lg","px")} ${m("base","py")}`,children:n.jsx(Rr,{checked:w,onChange:()=>b(k),"aria-label":`Select row ${k}`,className:m("none","my")})}),u.map($=>n.jsx(Ys,{column:$,row:e},String($.key))),h&&n.jsx("td",{className:`${m("lg","px")} ${m("base","py")} text-right`,children:n.jsx(qs,{row:e})})]}))}function Xs(r){var s=r,{className:e=""}=s,t=V(s,["className"]);const{emptyMessage:a,emptyStateTitle:o,emptyStateMessage:i,emptyStateIllustration:c,emptyStateAction:u}=Ue();return o||i||c?n.jsxs("div",F(A({className:e},t),{children:[n.jsx(so,{title:o||"No data available",message:i||a||"No data available",variant:c?"withIllustration":"default",illustration:c}),u&&n.jsx("div",{className:`${m("base","mt")} flex justify-center`,children:u})]})):n.jsx("div",F(A({className:`text-center text-fg-secondary ${e}`},t),{children:a||"No data available"}))}function Ao(e,t){const{itemHeight:r,containerHeight:s,overscan:a=5,enabled:o=!0}=t,[i,c]=l.useState(0),u=l.useRef(null),d=l.useMemo(()=>{if(!o||e.length===0)return e.map((k,w)=>({index:w,start:w*r,end:(w+1)*r,size:r}));const p=Math.max(0,Math.floor(i/r)-a),h=s?Math.min(e.length,Math.ceil((i+s)/r)+a):e.length,g=[];for(let k=p;k<h;k++)g.push({index:k,start:k*r,end:(k+1)*r,size:r});return g},[e,r,i,s,a,o]),f=e.length*r;return l.useEffect(()=>{if(!o||!u.current)return;const p=u.current,h=()=>{c(p.scrollTop)};return p.addEventListener("scroll",h,{passive:!0}),()=>p.removeEventListener("scroll",h)},[o]),{virtualItems:d,totalHeight:f,scrollOffset:i,setScrollOffset:c,scrollToIndex:p=>{if(!u.current)return;const h=p*r;u.current.scrollTop=h,c(h)},containerRef:u}}function Js(s){var a=s,{children:e,className:t=""}=a,r=V(a,["children","className"]);var k,w;const{paginatedData:o,loading:i,columns:c,selectable:u,actions:d,virtualScrolling:f,virtualScrollingOptions:b}=Ue(),p=c.length+(u?1:0)+(d?1:0),h=Ao(o,{itemHeight:(b==null?void 0:b.itemHeight)||50,containerHeight:b==null?void 0:b.containerHeight,overscan:(b==null?void 0:b.overscan)||5,enabled:f||!1}),g=l.useMemo(()=>f&&h.virtualItems.length>0?h.virtualItems.map(v=>({row:o[v.index],index:v.index})).filter(v=>v.row!==void 0):o.map((v,y)=>({row:v,index:y})),[f,h.virtualItems,o]);return i?n.jsx("tbody",F(A({className:`bg-surface-base divide-y divide-line-default ${t}`},r),{children:Array.from({length:5}).map((v,y)=>n.jsx("tr",{children:Array.from({length:p}).map((N,$)=>n.jsx("td",{className:`${m("lg","px")} ${m("base","py")}`,children:n.jsx(Va,{className:"h-4 w-full"})},$))},y))})):o.length===0?n.jsx("tbody",F(A({className:`bg-surface-base divide-y divide-line-default ${t}`},r),{children:n.jsx("tr",{children:n.jsx("td",{colSpan:p,className:`${m("lg","px")} ${m("3xl","py")}`,children:n.jsx(Xs,{})})})})):typeof e=="function"?n.jsx("tbody",F(A({className:`bg-surface-base divide-y divide-line-default ${t}`},r),{children:o.map((v,y)=>e(v,y))})):n.jsx("tbody",F(A({className:`bg-surface-base divide-y divide-line-default ${t}`,role:"rowgroup"},r),{children:f&&h.virtualItems.length>0&&g.length>0?n.jsxs(n.Fragment,{children:[((k=h.virtualItems[0])==null?void 0:k.start)>0&&n.jsx("tr",{style:{height:h.virtualItems[0].start},"aria-hidden":"true",children:n.jsx("td",{colSpan:p})}),g.map(({row:v,index:y})=>n.jsx(yr,{row:v,rowIndex:y},y)),h.virtualItems.length>0&&n.jsx("tr",{style:{height:Math.max(0,h.totalHeight-(((w=h.virtualItems[h.virtualItems.length-1])==null?void 0:w.end)||0))},"aria-hidden":"true",children:n.jsx("td",{colSpan:p})})]}):g.map(({row:v,index:y})=>n.jsx(yr,{row:v,rowIndex:y},y))}))}function Bu(i){var c=i,{filters:e,onFilter:t,initialValues:r={},showClearAll:s=!0,className:a=""}=c,o=V(c,["filters","onFilter","initialValues","showClearAll","className"]);const[u,d]=l.useState(r),[f,b]=l.useState(!1),p=`table-filters-panel-${l.useId()}`,h=Object.values(u).some(y=>y!==""&&y!==null&&y!==void 0),g=(y,N)=>{const $=F(A({},u),{[y]:N});d($),t($)},k=()=>{const y={};e.forEach(N=>{y[N.key]=""}),d(y),t(y)},w=y=>{const N=F(A({},u),{[y]:""});d(N),t(N)},v=Object.values(u).filter(y=>y!==""&&y!==null&&y!==void 0).length;return n.jsx("div",F(A({className:`bg-surface-base border-b border-line-default ${a}`},o),{children:n.jsxs("div",{className:`${m("base","px")} ${m("md","py")} sm:${m("lg","px")}`,children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("button",{type:"button",onClick:()=>b(!f),"aria-expanded":f,"aria-controls":p,className:`flex items-center ${m("sm","gap")} text-sm font-medium text-fg-secondary hover:text-fg-primary`,children:[n.jsx(Dc,{className:"h-4 w-4"}),n.jsx("span",{children:"Filters"}),v>0&&n.jsx("span",{className:`inline-flex items-center ${m("sm","px")} ${m("0.5","py")} rounded text-xs font-medium bg-surface-brand-muted text-fg-brand-emphasis`,children:v})]}),h&&s&&n.jsx(re,{variant:"ghost",size:"sm",onClick:k,className:"text-sm",children:"Clear all"})]}),f&&n.jsx("div",{id:p,className:`${m("base","mt")} grid grid-cols-1 ${m("base","gap")} sm:grid-cols-2 lg:grid-cols-3`,children:e.map(y=>{const N=u[y.key],$=N==null?"":String(N);return n.jsxs("div",{className:m("xs","space-y"),children:[n.jsx(Pt,{htmlFor:`filter-${y.key}`,variant:"optional",children:y.label}),n.jsxs("div",{className:"relative",children:[y.type==="text"&&n.jsx(Re,{id:`filter-${y.key}`,type:"text",value:$,onChange:E=>g(y.key,E.target.value),placeholder:y.placeholder||`Filter by ${y.label.toLowerCase()}`,size:"sm",variant:"outlined"}),y.type==="select"&&n.jsxs("div",{className:"relative",children:[n.jsx(Ir,{id:`filter-${y.key}`,options:[{value:"",label:`All ${y.label}`},...y.options||[]],value:$,onChange:E=>g(y.key,E.target.value)}),$&&n.jsx("button",{type:"button",onClick:()=>w(y.key),className:"absolute right-8 top-1/2 -translate-y-1/2 text-fg-tertiary hover:text-fg-secondary","aria-label":`Clear ${y.label} filter`,children:n.jsx(Ie,{className:"h-4 w-4"})})]}),y.type==="date"&&n.jsx(Re,{id:`filter-${y.key}`,type:"date",value:$,onChange:E=>g(y.key,E.target.value),size:"sm",variant:"outlined"}),$&&y.type!=="select"&&n.jsx("button",{type:"button",onClick:()=>w(y.key),className:"absolute right-2 top-1/2 -translate-y-1/2 text-fg-tertiary hover:text-fg-secondary","aria-label":`Clear ${y.label} filter`,children:n.jsx(Ie,{className:"h-4 w-4"})})]})]},y.key)})})]})}))}function Zs(s){var a=s,{showClearAll:e=!0,className:t=""}=a,r=V(a,["showClearAll","className"]);const{filterState:o,setFilters:i}=Ue();return o.config.length===0?null:n.jsx(Bu,A({filters:o.config,onFilter:i,initialValues:o.values,showClearAll:e,className:t},r))}function Uu(f){var b=f,{page:e,pageSize:t,total:r,onPageChange:s,onPageSizeChange:a,pageSizeOptions:o=[10,25,50,100],showPageSizeSelector:i=!0,showPageInfo:c=!0,className:u=""}=b,d=V(b,["page","pageSize","total","onPageChange","onPageSizeChange","pageSizeOptions","showPageSizeSelector","showPageInfo","className"]);const p=Math.ceil(r/t),h=r===0?0:(e-1)*t+1,g=Math.min(e*t,r),k=()=>{e>1&&s(e-1)},w=()=>{e<p&&s(e+1)},v=()=>{e>1&&s(1)},y=()=>{e<p&&s(p)};return n.jsxs("div",F(A({className:`flex items-center justify-between ${m("base","px")} ${m("md","py")} bg-surface-base border-t border-line-default sm:${m("lg","px")} ${u}`},d),{children:[n.jsxs("div",{className:"flex flex-1 justify-between sm:hidden",children:[n.jsx(re,{variant:"outline",size:"sm",onClick:k,disabled:e===1,children:"Previous"}),n.jsx(re,{variant:"outline",size:"sm",onClick:w,disabled:e>=p,children:"Next"})]}),n.jsxs("div",{className:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between",children:[c&&n.jsx("div",{children:n.jsxs(Te,{as:"p",className:"text-sm text-fg-secondary",children:["Showing ",n.jsx("span",{className:"font-medium",children:h})," to"," ",n.jsx("span",{className:"font-medium",children:g})," of"," ",n.jsx("span",{className:"font-medium",children:r})," results"]})}),n.jsxs("div",{className:`flex items-center ${m("base","gap")}`,children:[i&&n.jsxs("div",{className:`flex items-center ${m("sm","gap")}`,children:[n.jsx(Te,{as:"span",className:"text-sm text-fg-secondary",children:"Show:"}),n.jsx(Ir,{"aria-label":"Items per page",options:o.map(N=>({value:N.toString(),label:N.toString()})),value:t.toString(),onChange:N=>{const $=parseInt(N.target.value);a($),s(1)},className:"w-20"})]}),n.jsxs("nav",{className:`flex items-center ${m("xs","gap")}`,"aria-label":"Pagination",children:[n.jsxs(re,{variant:"ghost",size:"sm",onClick:v,disabled:e===1,"aria-label":"First page",children:[n.jsx(qt,{className:"h-4 w-4"}),n.jsx(qt,{className:"h-4 w-4 -ml-2"})]}),n.jsx(re,{variant:"ghost",size:"sm",onClick:k,disabled:e===1,"aria-label":"Previous page",children:n.jsx(qt,{className:"h-4 w-4"})}),n.jsx("div",{className:`flex items-center ${m("xs","gap")}`,children:Array.from({length:Math.min(5,p)},(N,$)=>{let E;return p<=5||e<=3?E=$+1:e>=p-2?E=p-4+$:E=e-2+$,n.jsx(re,{variant:e===E?"primary":"ghost",size:"sm",onClick:()=>s(E),className:"min-w-10","aria-label":`Page ${E}`,"aria-current":e===E?"page":void 0,children:E},E)})}),n.jsx(re,{variant:"ghost",size:"sm",onClick:w,disabled:e>=p,"aria-label":"Next page",children:n.jsx(St,{className:"h-4 w-4"})}),n.jsxs(re,{variant:"ghost",size:"sm",onClick:y,disabled:e>=p,"aria-label":"Last page",children:[n.jsx(St,{className:"h-4 w-4"}),n.jsx(St,{className:"h-4 w-4 -ml-2"})]})]})]})]})]}))}function Qs(o){var i=o,{showPageSizeSelector:e=!0,showPageInfo:t=!0,pageSizeOptions:r,className:s=""}=i,a=V(i,["showPageSizeSelector","showPageInfo","pageSizeOptions","className"]);const{paginationState:c,setPage:u,setPageSize:d,paginationMode:f}=Ue();return f==="client"&&c.totalPages<=1?null:n.jsx(Uu,A({page:c.page,pageSize:c.pageSize,total:c.total,onPageChange:u,onPageSizeChange:d,pageSizeOptions:r,showPageSizeSelector:e,showPageInfo:t,className:s},a))}function Me(e){const c=e,{className:t="","aria-label":r,"aria-labelledby":s}=c,a=V(c,["className","aria-label","aria-labelledby"]),o="children"in e&&e.children!==void 0,i=o?a:Gu(a);return o?n.jsx("div",{className:`bg-surface-base shadow ${G("lg")} overflow-hidden ${t}`,children:n.jsx(gs,F(A({},i),{children:e.children}))}):n.jsx("div",{className:`bg-surface-base shadow ${G("lg")} overflow-hidden ${t}`,children:n.jsxs(gs,F(A({},i),{children:[i.filters&&i.filters.length>0&&n.jsx(Zs,{}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"min-w-full divide-y divide-line-default",role:"table","aria-label":r,"aria-labelledby":s,"aria-rowcount":i.total||i.data.length,"aria-colcount":i.columns.length+(i.selectable?1:0)+(i.actions?1:0),children:[n.jsx(Ks,{}),n.jsx(Js,{})]})}),n.jsx(Qs,{})]}))})}function Gu(e){const{columns:t,data:r,loading:s,onSort:a,sortColumn:o,sortDirection:i,emptyMessage:c,emptyStateTitle:u,emptyStateMessage:d,emptyStateIllustration:f,emptyStateAction:b,pagination:p,filters:h,selectable:g,selectedRows:k,onSelectionChange:w,rowId:v,actions:y,onRowClick:N,paginationMode:$,defaultPageSize:E,resizable:j,columnWidths:C,onColumnResize:S,virtualScrolling:M,virtualScrollingOptions:L}=e;let D=$||"auto";return D==="auto"&&(D=p&&p.total!==void 0?"server":"client"),{columns:t,data:r,loading:s,paginationMode:D,page:p==null?void 0:p.page,pageSize:p==null?void 0:p.pageSize,total:p==null?void 0:p.total,onPageChange:p==null?void 0:p.onPageChange,onPageSizeChange:p==null?void 0:p.onPageSizeChange,defaultPageSize:E||(p==null?void 0:p.pageSize)||10,pageSizeOptions:p==null?void 0:p.pageSizeOptions,sortColumn:o,sortDirection:i,onSort:a,filters:h==null?void 0:h.config,filterValues:void 0,onFilter:h==null?void 0:h.onFilter,initialFilterValues:h==null?void 0:h.initialValues,selectable:g,selectedRows:k,onSelectionChange:w,rowId:v,actions:y,onRowClick:N,emptyMessage:c,emptyStateTitle:u,emptyStateMessage:d,emptyStateIllustration:f,emptyStateAction:b,resizable:j,columnWidths:C,onColumnResize:S,virtualScrolling:M,virtualScrollingOptions:L,children:n.jsx(n.Fragment,{})}}Me.Header=Ks;Me.HeaderRow=Gs;Me.HeaderCell=Us;Me.Body=Js;Me.Row=yr;Me.Cell=Ys;Me.Filters=Zs;Me.Pagination=Qs;Me.EmptyState=Xs;Me.Actions=qs;function Ku(e={}){const{defaultWidths:t={},minWidth:r=50,maxWidth:s,resizable:a=!0}=e,[o,i]=l.useState(t),[c,u]=l.useState(!1),[d,f]=l.useState(null),b=l.useRef(null),p=l.useCallback((v,y)=>{const N=Math.max(r,s?Math.min(y,s):y);i($=>F(A({},$),{[v]:N}))},[r,s]),h=l.useCallback(()=>{i(t)},[t]),g=l.useCallback((v,y,N)=>{a&&(u(!0),f(v),b.current={startX:y,startWidth:N})},[a]),k=l.useCallback(v=>{if(!c||!d||!b.current)return;const y=v-b.current.startX,N=b.current.startWidth+y;p(d,N)},[c,d,p]),w=l.useCallback(()=>{u(!1),f(null),b.current=null},[]);return l.useEffect(()=>{if(!c||typeof window=="undefined")return;const v=N=>k(N.clientX),y=()=>w();return document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y)}},[c,k,w]),{columnWidths:o,setColumnWidth:p,resetColumnWidths:h,isResizing:c,resizingColumn:d,startResize:g,handleResize:k,endResize:w}}const Wr=l.createContext(null);function Yu(){return l.useContext(Wr)}function Qe(){const e=l.useContext(Wr);if(!e)throw new Error("useSideNavbarThemeRequired must be used within SideNavbarThemeProvider");return e}const Lt={variant:"default",navigationWidth:"56px",contentWidth:"320px",animationDuration:300,animationEasing:"ease-in-out"};function en({children:e,variant:t=Lt.variant,navigationWidth:r=Lt.navigationWidth,contentWidth:s=Lt.contentWidth,animationDuration:a=Lt.animationDuration,animationEasing:o=Lt.animationEasing}){const i=l.useMemo(()=>({variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,animationEasing:o}),[t,r,s,a,o]);return n.jsx(Wr.Provider,{value:i,children:e})}const Hr=l.createContext(null);function qu(){return l.useContext(Hr)}function At(){const e=l.useContext(Hr);if(!e)throw new Error("useSideNavbarConfigRequired must be used within SideNavbarConfigProvider");return e}const $e={mode:"full",resizable:!1,minWidth:void 0,maxWidth:void 0,snapPoints:void 0,responsive:!1,mobileBreakpoint:768,mobileVariant:"collapse",overlayBackdrop:!0,persistState:!0,persistWidth:!1,storageKey:void 0,keyboardShortcut:"Ctrl+B",enableKeyboardShortcut:!0};function tn({children:e,mode:t=$e.mode,resizable:r=$e.resizable,minWidth:s=$e.minWidth,maxWidth:a=$e.maxWidth,snapPoints:o=$e.snapPoints,responsive:i=$e.responsive,mobileBreakpoint:c=$e.mobileBreakpoint,mobileVariant:u=$e.mobileVariant,overlayBackdrop:d=$e.overlayBackdrop,persistState:f=$e.persistState,persistWidth:b=$e.persistWidth,storageKey:p=$e.storageKey,keyboardShortcut:h=$e.keyboardShortcut,enableKeyboardShortcut:g=$e.enableKeyboardShortcut}){const k=l.useMemo(()=>({mode:t,resizable:r,minWidth:s,maxWidth:a,snapPoints:o,responsive:i,mobileBreakpoint:c,mobileVariant:u,overlayBackdrop:d,persistState:f,persistWidth:b,storageKey:p,keyboardShortcut:h,enableKeyboardShortcut:g}),[t,r,s,a,o,i,c,u,d,f,b,p,h,g]);return n.jsx(Hr.Provider,{value:k,children:e})}const Br=l.createContext(null);function Xu(){return l.useContext(Br)}function et(){const e=l.useContext(Br);if(!e)throw new Error("useSideNavbarStateRequired must be used within SideNavbarStateProvider");return e}function wr(e){if(typeof e=="number")return e;const t=parseFloat(e);return isNaN(t)?0:e.endsWith("rem")||e.endsWith("em")?t*16:(e.endsWith("px"),t)}function Ju(e,t){return e===void 0||t===void 0?!0:e<t}function pr(e,t,r){let s=e;return t!==void 0&&(s=Math.max(s,t)),r!==void 0&&(s=Math.min(s,r)),s}const Zu=["ctrl","cmd","control","shift","alt","meta","option"];function Io(e){const t={key:"",ctrl:!1,shift:!1,alt:!1,meta:!1,isValid:!1};if(!e||typeof e!="string")return t;const r=e.trim();if(!r)return t;const s=r.split("+").map(u=>u.trim().toLowerCase()).filter(u=>u.length>0);if(s.length===0)return t;const a=new Set;let o="";for(let u=0;u<s.length;u++){const d=s[u];if(Zu.includes(d))a.add(d);else if(u===s.length-1)o=d;else return t}if(!o)return t;const i=a.has("ctrl")||a.has("cmd")||a.has("control"),c=a.has("alt")||a.has("option");return{key:o,ctrl:i,shift:a.has("shift"),alt:c,meta:a.has("meta"),isValid:!0}}function Qu(e,t="windows"){if(!e.isValid)return"";const r=[];return t==="mac"?(e.ctrl&&r.push("⌘"),e.shift&&r.push("⇧"),e.alt&&r.push("⌥"),e.meta&&r.push("⌃"),r.push(e.key.toUpperCase()),r.join("")):(e.ctrl&&r.push("Ctrl"),e.shift&&r.push("Shift"),e.alt&&r.push("Alt"),e.meta&&r.push("Meta"),r.push(e.key.toUpperCase()),r.join("+"))}function Ro({initialWidth:e,minWidth:t,maxWidth:r,snapPoints:s,snapThreshold:a=20,onWidthChange:o,enabled:i=!0}){const c=pr(e,t,r),[u,d]=l.useState(c),[f,b]=l.useState(!1),p=l.useRef(0),h=l.useRef(c),g=l.useCallback(y=>{let N=pr(y,t,r);if(s&&s.length>0){const $=s.reduce((E,j)=>{const C=Math.abs(N-j),S=Math.abs(N-E);return C<S?j:E},s[0]);Math.abs(N-$)<=a&&(N=$)}d(N),o==null||o(N)},[t,r,s,a,o]),k=l.useCallback(y=>{if(!i||!f)return;const N=y.clientX-p.current,$=h.current+N;g($)},[i,f,g]),w=l.useCallback(()=>{i&&(b(!1),p.current=0,h.current=u)},[i,u]),v=l.useCallback(y=>{i&&(y.preventDefault(),y.stopPropagation(),b(!0),p.current=y.clientX,h.current=u)},[i,u]);return l.useEffect(()=>{if(f)return document.addEventListener("mousemove",k),document.addEventListener("mouseup",w),document.body.style.userSelect="none",document.body.style.cursor="col-resize",()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",w),document.body.style.userSelect="",document.body.style.cursor=""}},[f,k,w]),l.useEffect(()=>{f||d(pr(e,t,r))},[e,t,r,f]),{width:u,isResizing:f,startResize:v,setWidth:g}}function Mo({mobileBreakpoint:e=768,onMobileChange:t,enabled:r=!0}={}){const[s,a]=l.useState(typeof window!="undefined"?window.innerWidth:1024),[o,i]=l.useState(typeof window!="undefined"?window.innerWidth<e:!1),c=l.useCallback(()=>{if(!r||typeof window=="undefined")return;const u=window.innerWidth,d=u<e;a(u),d!==o&&(i(d),t==null||t(d))},[r,e,o,t]);return l.useEffect(()=>{if(!r||typeof window=="undefined")return;const u=window.innerWidth,d=u<e;a(u),i(d),window.addEventListener("resize",c);let f=null;return window.ResizeObserver&&(f=new ResizeObserver(()=>{c()}),f.observe(document.body)),()=>{window.removeEventListener("resize",c),f==null||f.disconnect()}},[r,e,c]),{isMobile:o,viewportWidth:s}}function Do({isActive:e,containerRef:t,restoreFocus:r=!0,initialFocusRef:s}){const a=l.useRef(null);l.useEffect(()=>{if(e){if(a.current=document.activeElement,s!=null&&s.current)s.current.focus();else if(t.current){const i=t.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');i==null||i.focus()}}else r&&a.current&&(a.current.focus(),a.current=null)},[e,t,s,r]);const o=l.useCallback(i=>{if(!(!e||!t.current)&&i.key==="Tab"){const c=t.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),u=c[0],d=c[c.length-1];i.shiftKey?document.activeElement===u&&(i.preventDefault(),d==null||d.focus()):document.activeElement===d&&(i.preventDefault(),u==null||u.focus())}},[e,t]);l.useEffect(()=>{if(e)return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[e,o])}function _o({key:e,ctrl:t=!1,shift:r=!1,alt:s=!1,meta:a=!1,onTrigger:o,enabled:i=!0,preventDefault:c=!0}){const u=l.useCallback(d=>{if(!i)return;const f=d.target;if((f.tagName==="INPUT"||f.tagName==="TEXTAREA"||f.isContentEditable)&&!t&&!a)return;const p=e.length===1?d.key.toLowerCase()===e.toLowerCase():d.key===e,h=t?d.ctrlKey||d.metaKey:!d.ctrlKey&&!d.metaKey,g=r?d.shiftKey:!d.shiftKey,k=s?d.altKey:!d.altKey,w=a?d.metaKey:!d.metaKey,v=t?(d.ctrlKey||d.metaKey)&&!a:h&&w;p&&v&&g&&k&&(c&&(d.preventDefault(),d.stopPropagation()),o())},[i,e,t,r,s,a,o,c]);l.useEffect(()=>{if(i)return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[i,u])}function rn({children:e,defaultCollapsed:t=!1,collapsed:r,onCollapseChange:s,onWidthChange:a,onMobileChange:o,exclusiveGroups:i=!1}){const c=Qe(),u=At(),d=l.useRef(null),f=r!==void 0,b=()=>{if(f)return r;if(u.storageKey&&u.persistState&&typeof window!="undefined"){const _=localStorage.getItem(`${u.storageKey}-collapsed`);if(_!==null)return _==="true"}return t},p=()=>{if(u.storageKey&&u.persistWidth&&typeof window!="undefined"){const _=localStorage.getItem(`${u.storageKey}-width`);if(_!==null){const O=parseInt(_,10);if(!isNaN(O))return O}}return wr(c.contentWidth)},[h,g]=l.useState(b),[k,w]=l.useState({}),{isMobile:v}=Mo({mobileBreakpoint:u.mobileBreakpoint,onMobileChange:_=>{o==null||o(_),_&&u.mobileVariant==="collapse"&&!f&&(g(!0),s==null||s(!0))},enabled:u.responsive}),{width:y,isResizing:N,startResize:$,setWidth:E}=Ro({initialWidth:p(),minWidth:u.minWidth,maxWidth:u.maxWidth,snapPoints:u.snapPoints,onWidthChange:_=>{a==null||a(_),u.storageKey&&u.persistWidth&&typeof window!="undefined"&&localStorage.setItem(`${u.storageKey}-width`,String(_))},enabled:u.resizable&&!v});Do({isActive:v&&u.mobileVariant==="overlay"&&!h,containerRef:d,restoreFocus:!0});const j=f?r:h,C=l.useCallback(_=>{f||g(_),s==null||s(_)},[f,s]),S=l.useCallback(()=>{C(!j)},[j,C]),M=Io(u.keyboardShortcut);_o({key:M.key,ctrl:M.ctrl,shift:M.shift,alt:M.alt,meta:M.meta,onTrigger:S,enabled:u.enableKeyboardShortcut});const L=l.useCallback(_=>{E(_)},[E]),D=l.useCallback(_=>{w(i?O=>{const H=O[_]===!1,B={},ae=new Set([...Object.keys(O),_]);return H?ae.forEach(W=>{B[W]=!0}):ae.forEach(W=>{B[W]=W!==_}),B}:O=>F(A({},O),{[_]:!O[_]}))},[i]),R=l.useCallback((_,O)=>{w(z=>F(A({},z),{[_]:O}))},[]);l.useEffect(()=>{f&&r!==h&&g(r)},[f,r,h]),l.useEffect(()=>{u.storageKey&&u.persistState&&typeof window!="undefined"&&!f&&localStorage.setItem(`${u.storageKey}-collapsed`,String(h))},[u.storageKey,u.persistState,h,f]);const I=l.useMemo(()=>({collapsed:j,toggle:S,setCollapsed:C,currentWidth:y,setWidth:L,isMobile:v,isResizing:N,startResize:$,groupStates:k,toggleGroup:D,setGroupCollapsed:R,sidebarRef:d}),[j,S,C,y,L,v,N,$,k,D,R]);return n.jsx(Br.Provider,{value:I,children:e})}function sn({children:e,variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,animationEasing:o,mode:i,resizable:c,minWidth:u,maxWidth:d,snapPoints:f,responsive:b,mobileBreakpoint:p,mobileVariant:h,overlayBackdrop:g,persistState:k,persistWidth:w,storageKey:v,keyboardShortcut:y,enableKeyboardShortcut:N,defaultCollapsed:$,collapsed:E,onCollapseChange:j,onWidthChange:C,onMobileChange:S,exclusiveGroups:M}){return n.jsx(en,{variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,animationEasing:o,children:n.jsx(tn,{mode:i,resizable:c,minWidth:u,maxWidth:d,snapPoints:f,responsive:b,mobileBreakpoint:p,mobileVariant:h,overlayBackdrop:g,persistState:k,persistWidth:w,storageKey:v,keyboardShortcut:y,enableKeyboardShortcut:N,children:n.jsx(rn,{defaultCollapsed:$,collapsed:E,onCollapseChange:j,onWidthChange:C,onMobileChange:S,exclusiveGroups:M,children:e})})})}const Ur=l.createContext(null);function nn(){return l.useContext(Ur)}function an(){const e=l.useContext(Ur);if(!e)throw new Error("useSidebarSlotRequired must be used within SidebarSlotProvider");return e}function Lo({children:e,defaultSlot:t=null}){const[r,s]=l.useState(t),a=l.useRef(new Map),o=l.useCallback((u,d)=>{a.current.set(u,d)},[]),i=l.useCallback(u=>{a.current.delete(u)},[]),c=l.useMemo(()=>({activeSlot:r,setActiveSlot:s,slots:a.current,registerSlot:o,unregisterSlot:i}),[r,o,i]);return n.jsx(Ur.Provider,{value:c,children:e})}const Gr=l.createContext(null);function ef(){return l.useContext(Gr)}function Fo(){const e=l.useContext(Gr);return e||{showMainToggle:!0,mainTogglePosition:"floating"}}function on(r){var s=r,{className:e=""}=s,t=V(s,["className"]);const{currentWidth:a,setWidth:o,isResizing:i,startResize:c}=et(),{resizable:u,minWidth:d,maxWidth:f}=At();return u?n.jsxs("div",F(A({className:`
192
192
  group
193
193
  absolute
194
194
  top-0
@@ -224,12 +224,12 @@ React keys must be passed directly to JSX without using spread:
224
224
  transition-opacity
225
225
  absolute
226
226
  ${i?"opacity-100":""}
227
- `,"aria-hidden":"true"})]})):null}function ln(o){var i=o,{visible:e,onBackdropClick:t,className:r="",style:s}=i,a=V(i,["visible","onBackdropClick","className","style"]);const{collapsed:c,setCollapsed:u,isMobile:d}=et(),{animationDuration:f}=Qe(),{mobileVariant:b,overlayBackdrop:p}=At(),h=d&&b==="overlay",x=e!=null?e:h&&p&&!c,k=()=>{t?t():u(!0)};return x?n.jsx("div",A({className:`
227
+ `,"aria-hidden":"true"})]})):null}function ln(o){var i=o,{visible:e,onBackdropClick:t,className:r="",style:s}=i,a=V(i,["visible","onBackdropClick","className","style"]);const{collapsed:c,setCollapsed:u,isMobile:d}=et(),{animationDuration:f}=Qe(),{mobileVariant:b,overlayBackdrop:p}=At(),h=d&&b==="overlay",g=e!=null?e:h&&p&&!c,k=()=>{t?t():u(!0)};return g?n.jsx("div",A({className:`
228
228
  fixed inset-0
229
229
  bg-scrim
230
230
  ${ve("modal-backdrop")}
231
231
  ${r}
232
- `,style:A({animation:`fadeIn ${f}ms ease-in-out`},s),onClick:k,"aria-hidden":"true","data-testid":"side-navbar-backdrop"},a)):null}const tf={xs:"w-5 h-5",sm:"w-6 h-6",md:"w-8 h-8",lg:"w-10 h-10"},rf={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"},sf={floating:`absolute ${ve("fixed")}`,top:"absolute top-2 right-2 z-10",bottom:"absolute bottom-2 right-2 z-10",inside:"relative z-10","navigation-top":`relative ${m("sm","mt")} mx-auto z-10`,"navigation-bottom":`relative mt-auto ${m("sm","mb")} mx-auto z-10`},nf={default:`bg-surface-raised border border-line-default ${he("sm")} hover:bg-surface-hover hover:shadow`,ghost:"bg-transparent hover:bg-surface-hover border-0",outline:"bg-transparent border border-line-default hover:bg-surface-hover"},af={floating:"right",top:"bottom",bottom:"top",inside:"right","navigation-top":"right","navigation-bottom":"right"};function cn(k){var w=k,{position:e="floating",offset:t,icon:r,expandIcon:s,collapseIcon:a,size:o="sm",variant:i="default",showTooltip:c=!0,tooltipPosition:u,keyboardShortcut:d,enableKeyboardShortcut:f,className:b="",style:p,"aria-label":h}=w,x=V(w,["position","offset","icon","expandIcon","collapseIcon","size","variant","showTooltip","tooltipPosition","keyboardShortcut","enableKeyboardShortcut","className","style","aria-label"]);var O,z;const{collapsed:v,toggle:y}=et(),{animationDuration:N,animationEasing:$}=Qe(),E=At(),j=d!=null?d:E.keyboardShortcut,C=f!=null?f:E.enableKeyboardShortcut,S=()=>{if(typeof r=="function")return r(v);if(r)return r;if(v&&s)return s;if(!v&&a)return a;const H=v?Uc:Hc;return n.jsx(H,{className:rf[o],style:{transition:"none",transform:"none",willChange:"auto"}})},M=v?"Expand sidebar":"Collapse sidebar",L=u!=null?u:af[e],D=c?`${v?"Expand":"Collapse"} sidebar${C?` (${j})`:""}`:void 0,R=t?{transform:`translate(${(O=t.x)!=null?O:0}px, ${(z=t.y)!=null?z:0}px)`}:{},I=e==="floating"?A({right:"-12px",top:"1rem",transform:"translateY(-50%)",transition:`right ${N}ms ${$}`},R):R,_=n.jsx("button",F(A({type:"button",onClick:y,className:`
232
+ `,style:A({animation:`fadeIn ${f}ms ease-in-out`},s),onClick:k,"aria-hidden":"true","data-testid":"side-navbar-backdrop"},a)):null}const tf={xs:"w-5 h-5",sm:"w-6 h-6",md:"w-8 h-8",lg:"w-10 h-10"},rf={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"},sf={floating:`absolute ${ve("fixed")}`,top:"absolute top-2 right-2 z-10",bottom:"absolute bottom-2 right-2 z-10",inside:"relative z-10","navigation-top":`relative ${m("sm","mt")} mx-auto z-10`,"navigation-bottom":`relative mt-auto ${m("sm","mb")} mx-auto z-10`},nf={default:`bg-surface-raised border border-line-default ${he("sm")} hover:bg-surface-hover hover:shadow`,ghost:"bg-transparent hover:bg-surface-hover border-0",outline:"bg-transparent border border-line-default hover:bg-surface-hover"},af={floating:"right",top:"bottom",bottom:"top",inside:"right","navigation-top":"right","navigation-bottom":"right"};function cn(k){var w=k,{position:e="floating",offset:t,icon:r,expandIcon:s,collapseIcon:a,size:o="sm",variant:i="default",showTooltip:c=!0,tooltipPosition:u,keyboardShortcut:d,enableKeyboardShortcut:f,className:b="",style:p,"aria-label":h}=w,g=V(w,["position","offset","icon","expandIcon","collapseIcon","size","variant","showTooltip","tooltipPosition","keyboardShortcut","enableKeyboardShortcut","className","style","aria-label"]);var O,z;const{collapsed:v,toggle:y}=et(),{animationDuration:N,animationEasing:$}=Qe(),E=At(),j=d!=null?d:E.keyboardShortcut,C=f!=null?f:E.enableKeyboardShortcut,S=()=>{if(typeof r=="function")return r(v);if(r)return r;if(v&&s)return s;if(!v&&a)return a;const H=v?Uc:Hc;return n.jsx(H,{className:rf[o],style:{transition:"none",transform:"none",willChange:"auto"}})},M=v?"Expand sidebar":"Collapse sidebar",L=u!=null?u:af[e],D=c?`${v?"Expand":"Collapse"} sidebar${C?` (${j})`:""}`:void 0,R=t?{transform:`translate(${(O=t.x)!=null?O:0}px, ${(z=t.y)!=null?z:0}px)`}:{},I=e==="floating"?A({right:"-12px",top:"1rem",transform:"translateY(-50%)",transition:`right ${N}ms ${$}`},R):R,_=n.jsx("button",F(A({type:"button",onClick:y,className:`
233
233
  ${tf[o]}
234
234
  ${nf[i]}
235
235
  ${G("full")}
@@ -238,7 +238,7 @@ React keys must be passed directly to JSX without using spread:
238
238
  focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-1
239
239
  ${e==="floating"?"":sf[e]}
240
240
  ${b}
241
- `,style:A(A(A(A({},e==="floating"?{position:"absolute",right:"-11px",left:"auto"}:{}),e!=="floating"?I:{}),e==="floating"?{zIndex:Dn.fixed.value}:{}),p),"aria-label":h||M,"aria-expanded":!v,"aria-controls":"side-navbar-sidebar","data-position":e},x),{children:S()}));if(e==="floating"){const H=c&&D?n.jsx(Ot,{content:D,position:L,preservePositioning:!0,children:_}):_;return n.jsx("div",{style:{position:"absolute",right:"0",top:"1rem",transform:"translateY(-50%)",zIndex:Dn.fixed.value},children:H})}return c&&D?n.jsx(Ot,{content:D,position:L,children:_}):_}function Yn(e){return!l.isValidElement(e)||typeof e.type=="string"?!1:e.type.__SIDENAVBAR_KIND__==="navbar"}function of(e){let t,r,s=0,a=!1;for(const o of l.Children.toArray(e)){if(Yn(o)){const{showMainToggle:c,mainTogglePosition:u}=o.props;if(!(c!==void 0||u!==void 0))continue;s++,s===1&&(t=c,r=u);continue}if(!l.isValidElement(o))continue;const i=o.props;if(i.children!==void 0)for(const c of l.Children.toArray(i.children)){if(!Yn(c))continue;const{showMainToggle:u,mainTogglePosition:d}=c.props;if(u!==void 0||d!==void 0){a=!0;break}}}return{show:t,position:r,overrideCount:s,wrappedNavbarWithOverride:a}}const lf={default:"",compact:"text-sm",elevated:he("lg"),minimal:"border-0",bordered:"border-2"};function Po(o){var i=o,{children:e,className:t="",style:r,"aria-label":s}=i,a=V(i,["children","className","style","aria-label"]);var K,oe;const c=et(),u=Qe(),d=At(),f=Fo(),b=of(e),p=(K=b.show)!=null?K:f.showMainToggle,h=(oe=b.position)!=null?oe:f.mainTogglePosition,{collapsed:x,setCollapsed:k,currentWidth:w,isResizing:v,sidebarRef:y,isMobile:N}=c,{variant:$,navigationWidth:E,contentWidth:j,animationDuration:C,animationEasing:S}=u,{mode:M,resizable:L,mobileVariant:D,overlayBackdrop:R}=d,I=typeof E=="number"?`${E}px`:E,_=typeof j=="number"?`${j}px`:j,z=M==="navigation"||x?I:L?`${w}px`:_,[H,B]=l.useState(!1);l.useEffect(()=>{B(!0)},[]);const ae=N&&D==="overlay",W=H&&ae,P=W?`fixed left-0 top-0 ${ve("fixed")}`:"relative";return n.jsxs(n.Fragment,{children:[H&&ae&&R&&!x&&n.jsx(ln,{}),n.jsxs("aside",F(A({ref:y,id:"side-navbar-sidebar",className:g(P,"flex","h-full","overflow-visible",lf[$],W&&x?"-translate-x-full":"translate-x-0",t),style:A({position:W?"fixed":"relative",backgroundColor:"var(--color-surface-subtle)",borderRight:"1px solid var(--color-line-default)",width:z,minWidth:z,transitionProperty:v?"none":"width, min-width, transform",transitionDuration:`${C}ms`,transitionTimingFunction:S},r),role:"complementary","aria-label":s||"Sidebar navigation","aria-expanded":M!=="navigation"?!x:void 0,"data-mode":M,"data-collapsed":x},a),{children:[L&&M!=="navigation"&&!x&&n.jsx(on,{}),p&&M!=="navigation"&&n.jsx(cn,{position:h}),n.jsx("div",{className:"flex h-full w-full overflow-visible",children:e})]}))]})}const Kr=l.createContext(null);function cf(){return l.useContext(Kr)}function Yr(){const e=l.useContext(Kr);if(!e)throw new Error("useNavbarRequired must be used within a SideNavbar.Navbar component");return e}function kr(o){var i=o,{icon:e,size:t="sm",variant:r="ghost",className:s=""}=i,a=V(i,["icon","size","variant","className"]);const{collapsed:c,toggle:u}=Yr(),d=()=>{if(e)return typeof e=="function"?e(c):e;const h=c?St:qt;return n.jsx(h,{className:b[t],style:{transition:"none",transform:"none",willChange:"auto"}})},f={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10"},b={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5"},p={default:`bg-surface-base border border-line-default ${he("sm")} hover:bg-surface-hover`,ghost:"hover:bg-surface-active",outline:"border border-line-emphasis hover:bg-surface-hover"};return n.jsx(Ot,{content:c?"Expand sidebar":"Collapse sidebar",position:"right",children:n.jsx("button",F(A({type:"button",onClick:u,className:`
241
+ `,style:A(A(A(A({},e==="floating"?{position:"absolute",right:"-11px",left:"auto"}:{}),e!=="floating"?I:{}),e==="floating"?{zIndex:Dn.fixed.value}:{}),p),"aria-label":h||M,"aria-expanded":!v,"aria-controls":"side-navbar-sidebar","data-position":e},g),{children:S()}));if(e==="floating"){const H=c&&D?n.jsx(Ot,{content:D,position:L,preservePositioning:!0,children:_}):_;return n.jsx("div",{style:{position:"absolute",right:"0",top:"1rem",transform:"translateY(-50%)",zIndex:Dn.fixed.value},children:H})}return c&&D?n.jsx(Ot,{content:D,position:L,children:_}):_}function Yn(e){return!l.isValidElement(e)||typeof e.type=="string"?!1:e.type.__SIDENAVBAR_KIND__==="navbar"}function of(e){let t,r,s=0,a=!1;for(const o of l.Children.toArray(e)){if(Yn(o)){const{showMainToggle:c,mainTogglePosition:u}=o.props;if(!(c!==void 0||u!==void 0))continue;s++,s===1&&(t=c,r=u);continue}if(!l.isValidElement(o))continue;const i=o.props;if(i.children!==void 0)for(const c of l.Children.toArray(i.children)){if(!Yn(c))continue;const{showMainToggle:u,mainTogglePosition:d}=c.props;if(u!==void 0||d!==void 0){a=!0;break}}}return{show:t,position:r,overrideCount:s,wrappedNavbarWithOverride:a}}const lf={default:"",compact:"text-sm",elevated:he("lg"),minimal:"border-0",bordered:"border-2"};function Po(o){var i=o,{children:e,className:t="",style:r,"aria-label":s}=i,a=V(i,["children","className","style","aria-label"]);var K,oe;const c=et(),u=Qe(),d=At(),f=Fo(),b=of(e),p=(K=b.show)!=null?K:f.showMainToggle,h=(oe=b.position)!=null?oe:f.mainTogglePosition,{collapsed:g,setCollapsed:k,currentWidth:w,isResizing:v,sidebarRef:y,isMobile:N}=c,{variant:$,navigationWidth:E,contentWidth:j,animationDuration:C,animationEasing:S}=u,{mode:M,resizable:L,mobileVariant:D,overlayBackdrop:R}=d,I=typeof E=="number"?`${E}px`:E,_=typeof j=="number"?`${j}px`:j,z=M==="navigation"||g?I:L?`${w}px`:_,[H,B]=l.useState(!1);l.useEffect(()=>{B(!0)},[]);const ae=N&&D==="overlay",W=H&&ae,P=W?`fixed left-0 top-0 ${ve("fixed")}`:"relative";return n.jsxs(n.Fragment,{children:[H&&ae&&R&&!g&&n.jsx(ln,{}),n.jsxs("aside",F(A({ref:y,id:"side-navbar-sidebar",className:x(P,"flex","h-full","overflow-visible",lf[$],W&&g?"-translate-x-full":"translate-x-0",t),style:A({position:W?"fixed":"relative",backgroundColor:"var(--color-surface-subtle)",borderRight:"1px solid var(--color-line-default)",width:z,minWidth:z,transitionProperty:v?"none":"width, min-width, transform",transitionDuration:`${C}ms`,transitionTimingFunction:S},r),role:"complementary","aria-label":s||"Sidebar navigation","aria-expanded":M!=="navigation"?!g:void 0,"data-mode":M,"data-collapsed":g},a),{children:[L&&M!=="navigation"&&!g&&n.jsx(on,{}),p&&M!=="navigation"&&n.jsx(cn,{position:h}),n.jsx("div",{className:"flex h-full w-full overflow-visible",children:e})]}))]})}const Kr=l.createContext(null);function cf(){return l.useContext(Kr)}function Yr(){const e=l.useContext(Kr);if(!e)throw new Error("useNavbarRequired must be used within a SideNavbar.Navbar component");return e}function kr(o){var i=o,{icon:e,size:t="sm",variant:r="ghost",className:s=""}=i,a=V(i,["icon","size","variant","className"]);const{collapsed:c,toggle:u}=Yr(),d=()=>{if(e)return typeof e=="function"?e(c):e;const h=c?St:qt;return n.jsx(h,{className:b[t],style:{transition:"none",transform:"none",willChange:"auto"}})},f={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10"},b={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5"},p={default:`bg-surface-base border border-line-default ${he("sm")} hover:bg-surface-hover`,ghost:"hover:bg-surface-active",outline:"border border-line-emphasis hover:bg-surface-hover"};return n.jsx(Ot,{content:c?"Expand sidebar":"Collapse sidebar",position:"right",children:n.jsx("button",F(A({type:"button",onClick:u,className:`
242
242
  flex
243
243
  items-center
244
244
  justify-center
@@ -253,7 +253,7 @@ React keys must be passed directly to JSX without using spread:
253
253
  ${p[r]}
254
254
  [&:hover]:!transform-none
255
255
  ${s}
256
- `,style:{willChange:"auto",transform:"none",transition:"none"},"aria-label":c?"Expand sidebar":"Collapse sidebar","aria-expanded":!c},a),{children:d()}))})}const df={sm:{container:"w-8 h-8",icon:"w-4 h-4",badge:"min-w-3.5 h-3.5 text-2xs"},md:{container:"w-10 h-10",icon:"w-5 h-5",badge:"min-w-5 h-5 text-xs"},lg:{container:"w-12 h-12",icon:"w-6 h-6",badge:"min-w-5 h-5 text-xs"}},uf={default:"bg-error",success:"bg-success",warning:"bg-warning",danger:"bg-error-dark"},ff={tooltip:"",inline:`flex-row ${m("sm","gap")} w-full ${m("md","px")}`,below:`flex-col ${m("1.5","gap")}`};function Oo(v){var y=v,{id:e,icon:t,label:r,labelMode:s,showLabel:a=!0,active:o=!1,showTooltip:i=!0,badge:c,badgeVariant:u="default",variant:d="default",size:f="md",href:b,target:p,onClick:h,disabled:x=!1,className:k=""}=y,w=V(y,["id","icon","label","labelMode","showLabel","active","showTooltip","badge","badgeVariant","variant","size","href","target","onClick","disabled","className"]);var z;const{activeItem:N,setActiveItem:$,labelMode:E}=Yr(),j=(z=s!=null?s:E)!=null?z:"tooltip",C=o||e&&N===e,S=df[f],M=H=>{if(x){H.preventDefault();return}e&&$(e),h==null||h()},L=j!=="tooltip"&&a&&r&&n.jsx("span",{className:g("text-xs","flex-shrink-0","relative z-10",j==="below"&&"text-center",j==="inline"&&"truncate"),style:{willChange:"auto",transform:"none"},children:r}),D=g("relative","flex","items-center",j==="inline"?"justify-start":"justify-center",j==="below"&&"flex-col",G("lg"),"box-border","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-1","w-full","flex-shrink-0","min-w-0","[&>*]:!transition-none","[&>*]:!transform-none",j==="tooltip"?S.container:g(m("sm","px"),m("1.5","py")),j!=="tooltip"&&ff[j],x?"opacity-50 cursor-not-allowed":"cursor-pointer",k),R={default:C?"bg-surface-brand-muted text-fg-brand-emphasis":x?"text-fg-disabled":"text-fg-secondary hover:bg-surface-active hover:text-fg-primary [&:hover]:!transform-none",ghost:C?"text-fg-brand-emphasis":x?"text-fg-disabled":"text-fg-secondary hover:text-fg-primary [&:hover]:!transform-none",subtle:C?"bg-surface-active text-fg-primary":x?"text-fg-disabled":"text-fg-tertiary hover:bg-surface-hover hover:text-fg-primary [&:hover]:!transform-none"},I=n.jsxs(n.Fragment,{children:[n.jsx("span",{className:g("flex-shrink-0",S.icon,"[&>svg]:transition-none","[&>svg]:!transform-none","[&>svg]:!will-change-auto","box-border","flex items-center justify-center",`relative ${ve("base")}`),style:{minWidth:S.icon==="w-4 h-4"?"1rem":S.icon==="w-5 h-5"?"1.25rem":"1.5rem",minHeight:S.icon==="w-4 h-4"?"1rem":S.icon==="w-5 h-5"?"1.25rem":"1.5rem",willChange:"auto",transform:"none",transition:"none",zIndex:j!=="tooltip"?0:"auto"},children:t}),L,c!=null&&n.jsx("span",{className:g("absolute","-top-1","-right-1","flex","items-center","justify-center",m("xs","px"),"font-medium","text-fg-inverse",G("full"),S.badge,uf[u]),children:c})]}),_={willChange:"auto",transform:"none",transition:"none"},O=b?n.jsx("a",{href:x?void 0:b,target:p,rel:p==="_blank"?"noopener noreferrer":void 0,onClick:M,className:g(D,R[d]),style:_,"aria-label":r,"aria-current":C?"page":void 0,"aria-disabled":x,tabIndex:x?-1:void 0,children:I}):n.jsx("button",F(A({type:"button",onClick:M,disabled:x,className:g(D,R[d]),style:_,"aria-label":r,"aria-current":C?"page":void 0},w),{children:I}));return j==="tooltip"&&i&&r&&!x?n.jsx(Ot,{content:r,position:"right",children:O}):O}function zo(s){var a=s,{orientation:e="horizontal",className:t=""}=a,r=V(a,["orientation","className"]);return e==="vertical"?n.jsx("div",A({className:g("w-px","h-6","bg-line-default","mx-auto",t),role:"separator","aria-orientation":"vertical"},r)):n.jsx("div",A({className:g("w-full","h-px","bg-line-default",m("sm","my"),"flex-shrink-0",t),role:"separator","aria-orientation":"horizontal",style:{willChange:"auto",transform:"none"}},r))}function Vo(c){var u=c,{id:e,label:t,collapsible:r=!1,defaultCollapsed:s=!1,children:a,className:o}=u,i=V(u,["id","label","collapsible","defaultCollapsed","children","className"]);const[d,f]=l.useState(s),b=`navbar-group-${l.useId()}`,p=n.jsxs("span",{className:g("flex items-center",m("1.5","gap")),children:[r&&n.jsx("span",{className:"shrink-0",children:d?n.jsx(St,{className:"w-3 h-3",style:{transition:"none",transform:"none"}}):n.jsx(Er,{className:"w-3 h-3",style:{transition:"none",transform:"none"}})}),n.jsx("span",{children:t})]});return n.jsxs("div",F(A({id:e,className:g("flex flex-col",o)},i),{children:[t&&(r?n.jsx("button",{type:"button",onClick:()=>f(!d),"aria-expanded":!d,"aria-controls":d?void 0:b,className:g(m("sm","px"),m("1.5","py"),"text-xs text-fg-tertiary uppercase tracking-wider","w-full text-left cursor-pointer hover:text-fg-secondary"),children:p}):n.jsx("div",{className:g(m("sm","px"),m("1.5","py"),"text-xs text-fg-tertiary uppercase tracking-wider"),children:p})),!d&&n.jsx("div",{id:b,className:`flex flex-col ${m("sm","gap")}`,children:a})]}))}function xt(f){var b=f,{children:e,showMainToggle:t,mainTogglePosition:r,showToggle:s=!1,togglePosition:a="bottom",labelMode:o="tooltip",expandedWidth:i=200,className:c="",style:u}=b,d=V(b,["children","showMainToggle","mainTogglePosition","showToggle","togglePosition","labelMode","expandedWidth","className","style"]);const p=et(),h=Qe(),x=l.useRef(null),[k,w]=l.useState(null),[v,y]=l.useState(!1),N=o==="inline"&&!p.collapsed,$=N?typeof i=="number"?`${i}px`:i:h.navigationWidth,E=l.useMemo(()=>({collapsed:p.collapsed,toggle:p.toggle,navbarRef:x,activeItem:k,setActiveItem:w,isHovered:v,showInternalToggle:s,togglePosition:a,labelMode:o}),[p.collapsed,p.toggle,k,v,s,a,o]);return n.jsx(Kr.Provider,{value:E,children:n.jsxs("nav",F(A({ref:x,className:g("relative","flex-shrink-0","flex","flex-col","h-full",N?"items-stretch":"items-center",c),style:A({position:"relative",backgroundColor:"var(--color-surface-raised)",borderRight:"1px solid var(--color-line-default)",width:$,transitionProperty:"width",transitionDuration:`${h.animationDuration}ms`,transitionTimingFunction:h.animationEasing},u),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),"aria-label":"Side navigation"},d),{children:[s&&a==="top"&&n.jsx("div",{className:`flex-shrink-0 ${m("sm","p")}`,style:{borderBottom:"1px solid var(--color-line-default)"},children:n.jsx(kr,{})}),n.jsx("div",{className:g("relative","flex-1","flex","flex-col","overflow-y-auto","overflow-x-hidden",m("sm","p"),m("sm","gap"),"w-full","min-w-0",N?"items-stretch":"items-center","justify-start"),style:{zIndex:1},children:e}),s&&a==="bottom"&&n.jsx("div",{className:`flex-shrink-0 ${m("sm","p")}`,style:{borderTop:"1px solid var(--color-line-default)"},children:n.jsx(kr,{})})]}))})}xt.Toggle=kr;xt.Item=Oo;xt.Separator=zo;xt.Group=Vo;xt.displayName="Navbar";xt.__SIDENAVBAR_KIND__="navbar";const qr=l.createContext(null);function Wo(){return l.useContext(qr)}function er(){const e=l.useContext(qr);if(!e)throw new Error("useSidebarRequired must be used within a SideNavbar.Sidebar component");return e}function Ho(c){var u=c,{title:e,subtitle:t,showBorder:r=!0,children:s,className:a="",style:o}=u,i=V(u,["title","subtitle","showBorder","children","className","style"]);const{collapsed:d,registerHeader:f,unregisterHeader:b}=er();return l.useEffect(()=>(f(),()=>b()),[f,b]),d?null:n.jsx("div",F(A({className:`
256
+ `,style:{willChange:"auto",transform:"none",transition:"none"},"aria-label":c?"Expand sidebar":"Collapse sidebar","aria-expanded":!c},a),{children:d()}))})}const df={sm:{container:"w-8 h-8",icon:"w-4 h-4",badge:"min-w-3.5 h-3.5 text-2xs"},md:{container:"w-10 h-10",icon:"w-5 h-5",badge:"min-w-5 h-5 text-xs"},lg:{container:"w-12 h-12",icon:"w-6 h-6",badge:"min-w-5 h-5 text-xs"}},uf={default:"bg-error",success:"bg-success",warning:"bg-warning",danger:"bg-error-dark"},ff={tooltip:"",inline:`flex-row ${m("sm","gap")} w-full ${m("md","px")}`,below:`flex-col ${m("1.5","gap")}`};function Oo(v){var y=v,{id:e,icon:t,label:r,labelMode:s,showLabel:a=!0,active:o=!1,showTooltip:i=!0,badge:c,badgeVariant:u="default",variant:d="default",size:f="md",href:b,target:p,onClick:h,disabled:g=!1,className:k=""}=y,w=V(y,["id","icon","label","labelMode","showLabel","active","showTooltip","badge","badgeVariant","variant","size","href","target","onClick","disabled","className"]);var z;const{activeItem:N,setActiveItem:$,labelMode:E}=Yr(),j=(z=s!=null?s:E)!=null?z:"tooltip",C=o||e&&N===e,S=df[f],M=H=>{if(g){H.preventDefault();return}e&&$(e),h==null||h()},L=j!=="tooltip"&&a&&r&&n.jsx("span",{className:x("text-xs","flex-shrink-0","relative z-10",j==="below"&&"text-center",j==="inline"&&"truncate"),style:{willChange:"auto",transform:"none"},children:r}),D=x("relative","flex","items-center",j==="inline"?"justify-start":"justify-center",j==="below"&&"flex-col",G("lg"),"box-border","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-1","w-full","flex-shrink-0","min-w-0","[&>*]:!transition-none","[&>*]:!transform-none",j==="tooltip"?S.container:x(m("sm","px"),m("1.5","py")),j!=="tooltip"&&ff[j],g?"opacity-50 cursor-not-allowed":"cursor-pointer",k),R={default:C?"bg-surface-brand-muted text-fg-brand-emphasis":g?"text-fg-disabled":"text-fg-secondary hover:bg-surface-active hover:text-fg-primary [&:hover]:!transform-none",ghost:C?"text-fg-brand-emphasis":g?"text-fg-disabled":"text-fg-secondary hover:text-fg-primary [&:hover]:!transform-none",subtle:C?"bg-surface-active text-fg-primary":g?"text-fg-disabled":"text-fg-tertiary hover:bg-surface-hover hover:text-fg-primary [&:hover]:!transform-none"},I=n.jsxs(n.Fragment,{children:[n.jsx("span",{className:x("flex-shrink-0",S.icon,"[&>svg]:transition-none","[&>svg]:!transform-none","[&>svg]:!will-change-auto","box-border","flex items-center justify-center",`relative ${ve("base")}`),style:{minWidth:S.icon==="w-4 h-4"?"1rem":S.icon==="w-5 h-5"?"1.25rem":"1.5rem",minHeight:S.icon==="w-4 h-4"?"1rem":S.icon==="w-5 h-5"?"1.25rem":"1.5rem",willChange:"auto",transform:"none",transition:"none",zIndex:j!=="tooltip"?0:"auto"},children:t}),L,c!=null&&n.jsx("span",{className:x("absolute","-top-1","-right-1","flex","items-center","justify-center",m("xs","px"),"font-medium","text-fg-inverse",G("full"),S.badge,uf[u]),children:c})]}),_={willChange:"auto",transform:"none",transition:"none"},O=b?n.jsx("a",{href:g?void 0:b,target:p,rel:p==="_blank"?"noopener noreferrer":void 0,onClick:M,className:x(D,R[d]),style:_,"aria-label":r,"aria-current":C?"page":void 0,"aria-disabled":g,tabIndex:g?-1:void 0,children:I}):n.jsx("button",F(A({type:"button",onClick:M,disabled:g,className:x(D,R[d]),style:_,"aria-label":r,"aria-current":C?"page":void 0},w),{children:I}));return j==="tooltip"&&i&&r&&!g?n.jsx(Ot,{content:r,position:"right",children:O}):O}function zo(s){var a=s,{orientation:e="horizontal",className:t=""}=a,r=V(a,["orientation","className"]);return e==="vertical"?n.jsx("div",A({className:x("w-px","h-6","bg-line-default","mx-auto",t),role:"separator","aria-orientation":"vertical"},r)):n.jsx("div",A({className:x("w-full","h-px","bg-line-default",m("sm","my"),"flex-shrink-0",t),role:"separator","aria-orientation":"horizontal",style:{willChange:"auto",transform:"none"}},r))}function Vo(c){var u=c,{id:e,label:t,collapsible:r=!1,defaultCollapsed:s=!1,children:a,className:o}=u,i=V(u,["id","label","collapsible","defaultCollapsed","children","className"]);const[d,f]=l.useState(s),b=`navbar-group-${l.useId()}`,p=n.jsxs("span",{className:x("flex items-center",m("1.5","gap")),children:[r&&n.jsx("span",{className:"shrink-0",children:d?n.jsx(St,{className:"w-3 h-3",style:{transition:"none",transform:"none"}}):n.jsx(Er,{className:"w-3 h-3",style:{transition:"none",transform:"none"}})}),n.jsx("span",{children:t})]});return n.jsxs("div",F(A({id:e,className:x("flex flex-col",o)},i),{children:[t&&(r?n.jsx("button",{type:"button",onClick:()=>f(!d),"aria-expanded":!d,"aria-controls":d?void 0:b,className:x(m("sm","px"),m("1.5","py"),"text-xs text-fg-tertiary uppercase tracking-wider","w-full text-left cursor-pointer hover:text-fg-secondary"),children:p}):n.jsx("div",{className:x(m("sm","px"),m("1.5","py"),"text-xs text-fg-tertiary uppercase tracking-wider"),children:p})),!d&&n.jsx("div",{id:b,className:`flex flex-col ${m("sm","gap")}`,children:a})]}))}function gt(f){var b=f,{children:e,showMainToggle:t,mainTogglePosition:r,showToggle:s=!1,togglePosition:a="bottom",labelMode:o="tooltip",expandedWidth:i=200,className:c="",style:u}=b,d=V(b,["children","showMainToggle","mainTogglePosition","showToggle","togglePosition","labelMode","expandedWidth","className","style"]);const p=et(),h=Qe(),g=l.useRef(null),[k,w]=l.useState(null),[v,y]=l.useState(!1),N=o==="inline"&&!p.collapsed,$=N?typeof i=="number"?`${i}px`:i:h.navigationWidth,E=l.useMemo(()=>({collapsed:p.collapsed,toggle:p.toggle,navbarRef:g,activeItem:k,setActiveItem:w,isHovered:v,showInternalToggle:s,togglePosition:a,labelMode:o}),[p.collapsed,p.toggle,k,v,s,a,o]);return n.jsx(Kr.Provider,{value:E,children:n.jsxs("nav",F(A({ref:g,className:x("relative","flex-shrink-0","flex","flex-col","h-full",N?"items-stretch":"items-center",c),style:A({position:"relative",backgroundColor:"var(--color-surface-raised)",borderRight:"1px solid var(--color-line-default)",width:$,transitionProperty:"width",transitionDuration:`${h.animationDuration}ms`,transitionTimingFunction:h.animationEasing},u),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),"aria-label":"Side navigation"},d),{children:[s&&a==="top"&&n.jsx("div",{className:`flex-shrink-0 ${m("sm","p")}`,style:{borderBottom:"1px solid var(--color-line-default)"},children:n.jsx(kr,{})}),n.jsx("div",{className:x("relative","flex-1","flex","flex-col","overflow-y-auto","overflow-x-hidden",m("sm","p"),m("sm","gap"),"w-full","min-w-0",N?"items-stretch":"items-center","justify-start"),style:{zIndex:1},children:e}),s&&a==="bottom"&&n.jsx("div",{className:`flex-shrink-0 ${m("sm","p")}`,style:{borderTop:"1px solid var(--color-line-default)"},children:n.jsx(kr,{})})]}))})}gt.Toggle=kr;gt.Item=Oo;gt.Separator=zo;gt.Group=Vo;gt.displayName="Navbar";gt.__SIDENAVBAR_KIND__="navbar";const qr=l.createContext(null);function Wo(){return l.useContext(qr)}function er(){const e=l.useContext(qr);if(!e)throw new Error("useSidebarRequired must be used within a SideNavbar.Sidebar component");return e}function Ho(c){var u=c,{title:e,subtitle:t,showBorder:r=!0,children:s,className:a="",style:o}=u,i=V(u,["title","subtitle","showBorder","children","className","style"]);const{collapsed:d,registerHeader:f,unregisterHeader:b}=er();return l.useEffect(()=>(f(),()=>b()),[f,b]),d?null:n.jsx("div",F(A({className:`
257
257
  flex-shrink-0
258
258
  ${m("md","px")}
259
259
  ${m("sm","py")}
@@ -270,7 +270,7 @@ React keys must be passed directly to JSX without using spread:
270
270
  text-fg-secondary
271
271
  ${m("none","m")}
272
272
  ${m("xs","mt")}
273
- `,children:t})]})}))}function Bo(i){var c=i,{scrollable:e=!0,padding:t="md",children:r,className:s="",style:a}=c,o=V(c,["scrollable","padding","children","className","style"]);const{collapsed:u,setScrollPosition:d}=er();if(u)return null;const f=t!=="none"?m(t,"p"):"",b=e?"overflow-y-auto overflow-x-hidden":"overflow-hidden",p=e?{scrollbarWidth:ot.content.scrollbar.width,scrollbarColor:`${ot.content.scrollbar.color.thumb} ${ot.content.scrollbar.color.track}`}:{},h=x=>{e&&d(x.currentTarget.scrollTop)};return n.jsx("div",F(A({className:`
273
+ `,children:t})]})}))}function Bo(i){var c=i,{scrollable:e=!0,padding:t="md",children:r,className:s="",style:a}=c,o=V(c,["scrollable","padding","children","className","style"]);const{collapsed:u,setScrollPosition:d}=er();if(u)return null;const f=t!=="none"?m(t,"p"):"",b=e?"overflow-y-auto overflow-x-hidden":"overflow-hidden",p=e?{scrollbarWidth:ot.content.scrollbar.width,scrollbarColor:`${ot.content.scrollbar.color.thumb} ${ot.content.scrollbar.color.track}`}:{},h=g=>{e&&d(g.currentTarget.scrollTop)};return n.jsx("div",F(A({className:`
274
274
  flex-1
275
275
  min-h-0
276
276
  ${b}
@@ -282,7 +282,7 @@ React keys must be passed directly to JSX without using spread:
282
282
  ${t?"border-t border-line-default":""}
283
283
  bg-surface-subtle
284
284
  ${s}
285
- `,style:a},o),{children:r}))}function Go(d){var f=d,{id:e,title:t,icon:r,actions:s,collapsible:a=!0,defaultCollapsed:o=!1,children:i,className:c=""}=f,u=V(f,["id","title","icon","actions","collapsible","defaultCollapsed","children","className"]);var j;const{collapsed:b,activeGroup:p,setActiveGroup:h}=er(),{groupStates:x,toggleGroup:k,setGroupCollapsed:w}=et(),{animationDuration:v}=Qe(),y=l.useRef(!1);if(l.useEffect(()=>{!y.current&&x[e]===void 0&&(y.current=!0,w(e,o))},[e,o,x,w]),b)return null;const N=(j=x[e])!=null?j:o,$=p===e,E=()=>{h(e),a&&k(e)};return n.jsxs("div",F(A({className:`
285
+ `,style:a},o),{children:r}))}function Go(d){var f=d,{id:e,title:t,icon:r,actions:s,collapsible:a=!0,defaultCollapsed:o=!1,children:i,className:c=""}=f,u=V(f,["id","title","icon","actions","collapsible","defaultCollapsed","children","className"]);var j;const{collapsed:b,activeGroup:p,setActiveGroup:h}=er(),{groupStates:g,toggleGroup:k,setGroupCollapsed:w}=et(),{animationDuration:v}=Qe(),y=l.useRef(!1);if(l.useEffect(()=>{!y.current&&g[e]===void 0&&(y.current=!0,w(e,o))},[e,o,g,w]),b)return null;const N=(j=g[e])!=null?j:o,$=p===e,E=()=>{h(e),a&&k(e)};return n.jsxs("div",F(A({className:`
286
286
  border-b
287
287
  border-line-default
288
288
  last:border-b-0
@@ -305,14 +305,14 @@ React keys must be passed directly to JSX without using spread:
305
305
  text-fg-tertiary
306
306
  transition-transform
307
307
  ${N?"-rotate-90":"rotate-0"}
308
- `,style:{transitionDuration:`${v}ms`},"aria-hidden":"true"})]})]}),a?n.jsx(Cs,{open:!N,duration:v,children:n.jsx("div",{id:`sidebar-group-${e}`,className:`${m("md","px")} ${m("sm","py")}`,children:i})}):n.jsx("div",{className:`${m("md","px")} ${m("sm","py")}`,children:i})]}))}function Ko({id:e,children:t}){const{activeSlot:r,registerSlot:s,unregisterSlot:a}=an();return l.useEffect(()=>(s(e,t),()=>a(e)),[e,t,s,a]),r!==e?null:n.jsx(n.Fragment,{children:t})}function Yo({fallback:e=null}){const{activeSlot:t,slots:r}=an();return!t||!r.has(t)?n.jsx(n.Fragment,{children:e}):n.jsx(n.Fragment,{children:r.get(t)})}function vt(a){var o=a,{children:e,className:t="",style:r}=o,s=V(o,["children","className","style"]);const i=et(),c=Qe(),u=l.useRef(null),[d,f]=l.useState(0),[b,p]=l.useState(!1),[h,x]=l.useState(!1),[k,w]=l.useState(null),v=l.useCallback(()=>p(!0),[]),y=l.useCallback(()=>p(!1),[]),N=l.useCallback(()=>x(!0),[]),$=l.useCallback(()=>x(!1),[]),E=l.useMemo(()=>({collapsed:i.collapsed,currentWidth:i.currentWidth,isMobile:i.isMobile,sidebarRef:u,scrollPosition:d,setScrollPosition:f,hasHeader:b,hasFooter:h,registerHeader:v,unregisterHeader:y,registerFooter:N,unregisterFooter:$,activeGroup:k,setActiveGroup:w}),[i.collapsed,i.currentWidth,i.isMobile,d,b,h,v,y,N,$,k]),j=wr(c.contentWidth),C=wr(c.navigationWidth),S=j-C;return n.jsx(qr.Provider,{value:E,children:n.jsx("div",F(A({ref:u,className:g("flex","flex-col","h-full","bg-surface-subtle","border-r","border-line-default","overflow-hidden",t),style:A({width:i.collapsed?0:S,opacity:i.collapsed?0:1,visibility:i.collapsed?"hidden":"visible",transitionProperty:"width, opacity, visibility",transitionDuration:`${c.animationDuration}ms`,transitionTimingFunction:c.animationEasing},r),"aria-hidden":i.collapsed},s),{children:e}))})}vt.Header=Ho;vt.Content=Bo;vt.Footer=Uo;vt.Group=Go;vt.Slot=Ko;vt.SlotContent=Yo;function De(M){var L=M,{mode:e="full",variant:t="default",navigationWidth:r="56px",width:s="320px",animationDuration:a=300,resizable:o=!1,minWidth:i,maxWidth:c,snapPoints:u,responsive:d=!1,mobileBreakpoint:f=768,mobileVariant:b="collapse",overlayBackdrop:p=!0,storageKey:h,persistWidth:x=!1,defaultCollapsed:k=!1,collapsed:w,onCollapseChange:v,onWidthChange:y,onMobileChange:N,exclusiveGroups:$=!1,showToggle:E=!0,togglePosition:j="floating",children:C}=L,S=V(L,["mode","variant","navigationWidth","width","animationDuration","resizable","minWidth","maxWidth","snapPoints","responsive","mobileBreakpoint","mobileVariant","overlayBackdrop","storageKey","persistWidth","defaultCollapsed","collapsed","onCollapseChange","onWidthChange","onMobileChange","exclusiveGroups","showToggle","togglePosition","children"]);const D=l.useMemo(()=>({showMainToggle:E,mainTogglePosition:j}),[E,j]);return n.jsx(Gr.Provider,{value:D,children:n.jsx(sn,{variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,mode:e,resizable:o,minWidth:i,maxWidth:c,snapPoints:u,responsive:d,mobileBreakpoint:f,mobileVariant:b,overlayBackdrop:p,storageKey:h,persistWidth:x,defaultCollapsed:k,collapsed:w,onCollapseChange:v,onWidthChange:y,onMobileChange:N,exclusiveGroups:$,children:n.jsx(Po,F(A({},S),{children:C}))})})}De.Navbar=xt;De.Sidebar=vt;De.Toggle=cn;De.ResizeHandle=on;De.Backdrop=ln;De.Provider=sn;De.ThemeProvider=en;De.ConfigProvider=tn;De.StateProvider=rn;De.SlotProvider=Lo;function mf({defaultStates:e={},persist:t=!1,storageKey:r}={}){const s=()=>{if(t&&r&&typeof window!="undefined"){const d=localStorage.getItem(`${r}-groups`);if(d)try{const f=JSON.parse(d);return A(A({},e),f)}catch(f){}}return e},[a,o]=l.useState(s);l.useEffect(()=>{t&&r&&typeof window!="undefined"&&localStorage.setItem(`${r}-groups`,JSON.stringify(a))},[t,r,a]);const i=l.useCallback(d=>{o(f=>F(A({},f),{[d]:!f[d]}))},[]),c=l.useCallback((d,f)=>{o(b=>F(A({},b),{[d]:f}))},[]),u=l.useCallback(()=>{o(e)},[e]);return{groupStates:a,toggleGroup:i,setGroupCollapsed:c,resetGroups:u}}function pf(){const{activeItem:e,setActiveItem:t}=Yr(),r=nn(),s=l.useCallback((a,o)=>{t(a),o&&(r!=null&&r.setActiveSlot)&&r.setActiveSlot(o)},[t,r]);return{activeItem:e,setActiveItem:t,navigate:s}}function bf(){var r,s,a,o;const e=nn(),t=Wo();return{activeSlot:(r=e==null?void 0:e.activeSlot)!=null?r:null,setActiveSlot:(s=e==null?void 0:e.setActiveSlot)!=null?s:(()=>{}),scrollPosition:(a=t==null?void 0:t.scrollPosition)!=null?a:0,setScrollPosition:(o=t==null?void 0:t.setScrollPosition)!=null?o:(()=>{})}}function hf(){const e=Qe(),t=At(),r=et();return{theme:e,config:t,state:r}}function qo({children:e,asChild:t=!1}){const{onOpenChange:r}=Et();return t&&l.isValidElement(e)?l.cloneElement(e,{onClick:s=>{var a,o;r(!0),(o=(a=e.props).onClick)==null||o.call(a,s)}}):n.jsx("button",{type:"button",onClick:()=>r(!0),"aria-haspopup":"dialog",children:e})}function dn({"aria-label":e="Close dialog",className:t="",asChild:r=!1,children:s}){const{onClose:a}=Et();return r&&l.isValidElement(s)?l.cloneElement(s,{onClick:o=>{var i,c;a(),(c=(i=s.props).onClick)==null||c.call(i,o)}}):n.jsx(re,{variant:"iconOnly",size:"sm",onClick:a,className:`absolute right-4 top-4 ${t}`,"aria-label":e,children:n.jsx(Ie,{className:"h-4 w-4"})})}function un(c){var u=c,{children:e,size:t="md",closeOnOverlayClick:r=!0,closeOnEscape:s=!0,showCloseButton:a=!0,className:o=""}=u,i=V(u,["children","size","closeOnOverlayClick","closeOnEscape","showCloseButton","className"]);const{isOpen:d,onClose:f,titleId:b,descriptionId:p,hasTitle:h,hasDescription:x}=Et(),k=l.useRef(null),w=l.useRef(null);if(zr(k,d),Os(k,d),l.useEffect(()=>{if(!d||!s)return;const $=E=>{E.key==="Escape"&&f()};return document.addEventListener("keydown",$),()=>{document.removeEventListener("keydown",$)}},[d,f,s]),!d)return null;const v={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-2xl",fullscreen:`max-w-full h-full ${m("none","m")} ${G("none")}`},y=$=>{r&&$.target===w.current&&f()},N=n.jsxs("div",{className:`fixed inset-0 ${ve("modal")} overflow-y-auto`,onClick:y,children:[n.jsx("div",{ref:w,className:"fixed inset-0 bg-scrim transition-opacity","aria-hidden":"true"}),n.jsx("div",{className:`flex min-h-full items-center justify-center ${m("base","p")}`,children:n.jsxs("div",F(A({ref:k,role:"dialog","aria-modal":"true","aria-labelledby":h?b:void 0,"aria-describedby":x?p:void 0,className:`
308
+ `,style:{transitionDuration:`${v}ms`},"aria-hidden":"true"})]})]}),a?n.jsx(Cs,{open:!N,duration:v,children:n.jsx("div",{id:`sidebar-group-${e}`,className:`${m("md","px")} ${m("sm","py")}`,children:i})}):n.jsx("div",{className:`${m("md","px")} ${m("sm","py")}`,children:i})]}))}function Ko({id:e,children:t}){const{activeSlot:r,registerSlot:s,unregisterSlot:a}=an();return l.useEffect(()=>(s(e,t),()=>a(e)),[e,t,s,a]),r!==e?null:n.jsx(n.Fragment,{children:t})}function Yo({fallback:e=null}){const{activeSlot:t,slots:r}=an();return!t||!r.has(t)?n.jsx(n.Fragment,{children:e}):n.jsx(n.Fragment,{children:r.get(t)})}function vt(a){var o=a,{children:e,className:t="",style:r}=o,s=V(o,["children","className","style"]);const i=et(),c=Qe(),u=l.useRef(null),[d,f]=l.useState(0),[b,p]=l.useState(!1),[h,g]=l.useState(!1),[k,w]=l.useState(null),v=l.useCallback(()=>p(!0),[]),y=l.useCallback(()=>p(!1),[]),N=l.useCallback(()=>g(!0),[]),$=l.useCallback(()=>g(!1),[]),E=l.useMemo(()=>({collapsed:i.collapsed,currentWidth:i.currentWidth,isMobile:i.isMobile,sidebarRef:u,scrollPosition:d,setScrollPosition:f,hasHeader:b,hasFooter:h,registerHeader:v,unregisterHeader:y,registerFooter:N,unregisterFooter:$,activeGroup:k,setActiveGroup:w}),[i.collapsed,i.currentWidth,i.isMobile,d,b,h,v,y,N,$,k]),j=wr(c.contentWidth),C=wr(c.navigationWidth),S=j-C;return n.jsx(qr.Provider,{value:E,children:n.jsx("div",F(A({ref:u,className:x("flex","flex-col","h-full","bg-surface-subtle","border-r","border-line-default","overflow-hidden",t),style:A({width:i.collapsed?0:S,opacity:i.collapsed?0:1,visibility:i.collapsed?"hidden":"visible",transitionProperty:"width, opacity, visibility",transitionDuration:`${c.animationDuration}ms`,transitionTimingFunction:c.animationEasing},r),"aria-hidden":i.collapsed},s),{children:e}))})}vt.Header=Ho;vt.Content=Bo;vt.Footer=Uo;vt.Group=Go;vt.Slot=Ko;vt.SlotContent=Yo;function De(M){var L=M,{mode:e="full",variant:t="default",navigationWidth:r="56px",width:s="320px",animationDuration:a=300,resizable:o=!1,minWidth:i,maxWidth:c,snapPoints:u,responsive:d=!1,mobileBreakpoint:f=768,mobileVariant:b="collapse",overlayBackdrop:p=!0,storageKey:h,persistWidth:g=!1,defaultCollapsed:k=!1,collapsed:w,onCollapseChange:v,onWidthChange:y,onMobileChange:N,exclusiveGroups:$=!1,showToggle:E=!0,togglePosition:j="floating",children:C}=L,S=V(L,["mode","variant","navigationWidth","width","animationDuration","resizable","minWidth","maxWidth","snapPoints","responsive","mobileBreakpoint","mobileVariant","overlayBackdrop","storageKey","persistWidth","defaultCollapsed","collapsed","onCollapseChange","onWidthChange","onMobileChange","exclusiveGroups","showToggle","togglePosition","children"]);const D=l.useMemo(()=>({showMainToggle:E,mainTogglePosition:j}),[E,j]);return n.jsx(Gr.Provider,{value:D,children:n.jsx(sn,{variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,mode:e,resizable:o,minWidth:i,maxWidth:c,snapPoints:u,responsive:d,mobileBreakpoint:f,mobileVariant:b,overlayBackdrop:p,storageKey:h,persistWidth:g,defaultCollapsed:k,collapsed:w,onCollapseChange:v,onWidthChange:y,onMobileChange:N,exclusiveGroups:$,children:n.jsx(Po,F(A({},S),{children:C}))})})}De.Navbar=gt;De.Sidebar=vt;De.Toggle=cn;De.ResizeHandle=on;De.Backdrop=ln;De.Provider=sn;De.ThemeProvider=en;De.ConfigProvider=tn;De.StateProvider=rn;De.SlotProvider=Lo;function mf({defaultStates:e={},persist:t=!1,storageKey:r}={}){const s=()=>{if(t&&r&&typeof window!="undefined"){const d=localStorage.getItem(`${r}-groups`);if(d)try{const f=JSON.parse(d);return A(A({},e),f)}catch(f){}}return e},[a,o]=l.useState(s);l.useEffect(()=>{t&&r&&typeof window!="undefined"&&localStorage.setItem(`${r}-groups`,JSON.stringify(a))},[t,r,a]);const i=l.useCallback(d=>{o(f=>F(A({},f),{[d]:!f[d]}))},[]),c=l.useCallback((d,f)=>{o(b=>F(A({},b),{[d]:f}))},[]),u=l.useCallback(()=>{o(e)},[e]);return{groupStates:a,toggleGroup:i,setGroupCollapsed:c,resetGroups:u}}function pf(){const{activeItem:e,setActiveItem:t}=Yr(),r=nn(),s=l.useCallback((a,o)=>{t(a),o&&(r!=null&&r.setActiveSlot)&&r.setActiveSlot(o)},[t,r]);return{activeItem:e,setActiveItem:t,navigate:s}}function bf(){var r,s,a,o;const e=nn(),t=Wo();return{activeSlot:(r=e==null?void 0:e.activeSlot)!=null?r:null,setActiveSlot:(s=e==null?void 0:e.setActiveSlot)!=null?s:(()=>{}),scrollPosition:(a=t==null?void 0:t.scrollPosition)!=null?a:0,setScrollPosition:(o=t==null?void 0:t.setScrollPosition)!=null?o:(()=>{})}}function hf(){const e=Qe(),t=At(),r=et();return{theme:e,config:t,state:r}}function qo({children:e,asChild:t=!1}){const{onOpenChange:r}=Et();return t&&l.isValidElement(e)?l.cloneElement(e,{onClick:s=>{var a,o;r(!0),(o=(a=e.props).onClick)==null||o.call(a,s)}}):n.jsx("button",{type:"button",onClick:()=>r(!0),"aria-haspopup":"dialog",children:e})}function dn({"aria-label":e="Close dialog",className:t="",asChild:r=!1,children:s}){const{onClose:a}=Et();return r&&l.isValidElement(s)?l.cloneElement(s,{onClick:o=>{var i,c;a(),(c=(i=s.props).onClick)==null||c.call(i,o)}}):n.jsx(re,{variant:"iconOnly",size:"sm",onClick:a,className:`absolute right-4 top-4 ${t}`,"aria-label":e,children:n.jsx(Ie,{className:"h-4 w-4"})})}function un(c){var u=c,{children:e,size:t="md",closeOnOverlayClick:r=!0,closeOnEscape:s=!0,showCloseButton:a=!0,className:o=""}=u,i=V(u,["children","size","closeOnOverlayClick","closeOnEscape","showCloseButton","className"]);const{isOpen:d,onClose:f,titleId:b,descriptionId:p,hasTitle:h,hasDescription:g}=Et(),k=l.useRef(null),w=l.useRef(null);if(zr(k,d),Os(k,d),l.useEffect(()=>{if(!d||!s)return;const $=E=>{E.key==="Escape"&&f()};return document.addEventListener("keydown",$),()=>{document.removeEventListener("keydown",$)}},[d,f,s]),!d)return null;const v={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-2xl",fullscreen:`max-w-full h-full ${m("none","m")} ${G("none")}`},y=$=>{r&&$.target===w.current&&f()},N=n.jsxs("div",{className:`fixed inset-0 ${ve("modal")} overflow-y-auto`,onClick:y,children:[n.jsx("div",{ref:w,className:"fixed inset-0 bg-scrim transition-opacity","aria-hidden":"true"}),n.jsx("div",{className:`flex min-h-full items-center justify-center ${m("base","p")}`,children:n.jsxs("div",F(A({ref:k,role:"dialog","aria-modal":"true","aria-labelledby":h?b:void 0,"aria-describedby":g?p:void 0,className:`
309
309
  relative w-full
310
310
  ${v[t]}
311
311
  bg-surface-overlay
312
312
  ${G("lg")}
313
313
  ${he("xl")}
314
314
  ${o}
315
- `,tabIndex:-1},i),{children:[e,a&&n.jsx(dn,{})]}))})]});return typeof window!="undefined"?Je.createPortal(N,document.body):N}function fn(s){var a=s,{children:e,className:t=""}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:`flex flex-col ${m("1.5","space-y")} ${m("lg","p")} ${m("base","pb")} ${t}`},r),{children:e}))}function Xo(o){var i=o,{as:e="h2",children:t,className:r="",id:s}=i,a=V(i,["as","children","className","id"]);const c=Et(),u=l.useId(),d=s||c.titleId||u,{registerTitle:f}=c;return l.useEffect(()=>f(),[f]),n.jsx(e,F(A({id:d,className:`${be("h3")} font-semibold leading-none tracking-tight ${r}`},a),{children:t}))}function Jo(a){var o=a,{children:e,className:t="",id:r}=o,s=V(o,["children","className","id"]);const i=Et(),c=l.useId(),u=r||i.descriptionId||c,{registerDescription:d}=i;return l.useEffect(()=>d(),[d]),n.jsx("p",F(A({id:u,className:`${be("bodySmall")} text-fg-secondary ${t}`},s),{children:e}))}function mn(s){var a=s,{children:e,className:t=""}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:`flex flex-col-reverse sm:flex-row sm:justify-end sm:${m("sm","space-x")} ${m("lg","p")} ${m("base","pt")} ${t}`},r),{children:e}))}function Oe({children:e,open:t,defaultOpen:r,onOpenChange:s}){const a=l.useId(),o=l.useId();return n.jsx(Ss,{open:t,defaultOpen:r,onOpenChange:s,titleId:a,descriptionId:o,children:e})}Oe.Trigger=qo;Oe.Content=un;Oe.Header=fn;Oe.Title=Xo;Oe.Description=Jo;Oe.Footer=mn;Oe.Close=dn;function gf({title:e,description:t,confirmLabel:r="Confirm",cancelLabel:s="Cancel",variant:a="default",onConfirm:o,onCancel:i,children:c}){const{onClose:u}=Et(),d=()=>{o==null||o(),u()},f=()=>{i==null||i(),u()};return n.jsx(un,{size:"sm",closeOnOverlayClick:!1,showCloseButton:!1,children:c||n.jsxs(n.Fragment,{children:[n.jsxs(fn,{children:[n.jsx(Oe.Title,{children:e}),t&&n.jsx(Oe.Description,{children:t})]}),n.jsxs(mn,{children:[n.jsx(re,{variant:"outline",onClick:f,children:s}),n.jsx(re,{variant:a==="destructive"?"error":"primary",onClick:d,children:r})]})]})})}function xf({open:e,defaultOpen:t,onOpenChange:r,title:s,description:a,confirmLabel:o,cancelLabel:i,variant:c,onConfirm:u,onCancel:d,children:f}){return n.jsx(Oe,{open:e,defaultOpen:t,onOpenChange:r,children:n.jsx(gf,{title:s,description:a,confirmLabel:o,cancelLabel:i,variant:c,onConfirm:u,onCancel:d,children:f})})}const vf={success:hr,error:Tr,warning:qc,info:Pc},yf={success:"border-success",error:"border-error",warning:"border-warning",info:"border-info"},wf={success:"text-fg-success",error:"text-fg-error",warning:"text-fg-warning",info:"text-fg-info"};function Zo(i){var c=i,{toast:e,onDismiss:t,position:r="top-right",className:s="",style:a}=c,o=V(c,["toast","onDismiss","position","className","style"]);const[u,d]=l.useState(!1),[f,b]=l.useState(!1),p=vf[e.variant];l.useEffect(()=>{if(e.duration===void 0)return;d(!0);const k=setTimeout(()=>{b(!0),setTimeout(()=>{t(e.id)},300)},e.duration);return()=>clearTimeout(k)},[e.duration,e.id,t]),l.useEffect(()=>{const k=setTimeout(()=>d(!0),10);return()=>clearTimeout(k)},[]);const h={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"},x=()=>{b(!0),setTimeout(()=>{t(e.id)},300)};return n.jsx("div",F(A({className:`
315
+ `,tabIndex:-1},i),{children:[e,a&&n.jsx(dn,{})]}))})]});return typeof window!="undefined"?Je.createPortal(N,document.body):N}function fn(s){var a=s,{children:e,className:t=""}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:`flex flex-col ${m("1.5","space-y")} ${m("lg","p")} ${m("base","pb")} ${t}`},r),{children:e}))}function Xo(o){var i=o,{as:e="h2",children:t,className:r="",id:s}=i,a=V(i,["as","children","className","id"]);const c=Et(),u=l.useId(),d=s||c.titleId||u,{registerTitle:f}=c;return l.useEffect(()=>f(),[f]),n.jsx(e,F(A({id:d,className:`${be("h3")} font-semibold leading-none tracking-tight ${r}`},a),{children:t}))}function Jo(a){var o=a,{children:e,className:t="",id:r}=o,s=V(o,["children","className","id"]);const i=Et(),c=l.useId(),u=r||i.descriptionId||c,{registerDescription:d}=i;return l.useEffect(()=>d(),[d]),n.jsx("p",F(A({id:u,className:`${be("bodySmall")} text-fg-secondary ${t}`},s),{children:e}))}function mn(s){var a=s,{children:e,className:t=""}=a,r=V(a,["children","className"]);return n.jsx("div",F(A({className:`flex flex-col-reverse sm:flex-row sm:justify-end sm:${m("sm","space-x")} ${m("lg","p")} ${m("base","pt")} ${t}`},r),{children:e}))}function Oe({children:e,open:t,defaultOpen:r,onOpenChange:s}){const a=l.useId(),o=l.useId();return n.jsx(Ss,{open:t,defaultOpen:r,onOpenChange:s,titleId:a,descriptionId:o,children:e})}Oe.Trigger=qo;Oe.Content=un;Oe.Header=fn;Oe.Title=Xo;Oe.Description=Jo;Oe.Footer=mn;Oe.Close=dn;function xf({title:e,description:t,confirmLabel:r="Confirm",cancelLabel:s="Cancel",variant:a="default",onConfirm:o,onCancel:i,children:c}){const{onClose:u}=Et(),d=()=>{o==null||o(),u()},f=()=>{i==null||i(),u()};return n.jsx(un,{size:"sm",closeOnOverlayClick:!1,showCloseButton:!1,children:c||n.jsxs(n.Fragment,{children:[n.jsxs(fn,{children:[n.jsx(Oe.Title,{children:e}),t&&n.jsx(Oe.Description,{children:t})]}),n.jsxs(mn,{children:[n.jsx(re,{variant:"outline",onClick:f,children:s}),n.jsx(re,{variant:a==="destructive"?"error":"primary",onClick:d,children:r})]})]})})}function gf({open:e,defaultOpen:t,onOpenChange:r,title:s,description:a,confirmLabel:o,cancelLabel:i,variant:c,onConfirm:u,onCancel:d,children:f}){return n.jsx(Oe,{open:e,defaultOpen:t,onOpenChange:r,children:n.jsx(xf,{title:s,description:a,confirmLabel:o,cancelLabel:i,variant:c,onConfirm:u,onCancel:d,children:f})})}const vf={success:hr,error:Tr,warning:qc,info:Pc},yf={success:"border-success",error:"border-error",warning:"border-warning",info:"border-info"},wf={success:"text-fg-success",error:"text-fg-error",warning:"text-fg-warning",info:"text-fg-info"};function Zo(i){var c=i,{toast:e,onDismiss:t,position:r="top-right",className:s="",style:a}=c,o=V(c,["toast","onDismiss","position","className","style"]);const[u,d]=l.useState(!1),[f,b]=l.useState(!1),p=vf[e.variant];l.useEffect(()=>{if(e.duration===void 0)return;d(!0);const k=setTimeout(()=>{b(!0),setTimeout(()=>{t(e.id)},300)},e.duration);return()=>clearTimeout(k)},[e.duration,e.id,t]),l.useEffect(()=>{const k=setTimeout(()=>d(!0),10);return()=>clearTimeout(k)},[]);const h={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"},g=()=>{b(!0),setTimeout(()=>{t(e.id)},300)};return n.jsx("div",F(A({className:`
316
316
  fixed ${h[r]} ${ve("toast")}
317
317
  w-full max-w-sm
318
318
  transition-all duration-300 ease-in-out
@@ -327,7 +327,7 @@ React keys must be passed directly to JSX without using spread:
327
327
  ${he("lg")}
328
328
  border
329
329
  ${yf[e.variant]}
330
- `,children:[n.jsx("div",{className:`flex-shrink-0 ${wf[e.variant]}`,children:n.jsx(p,{className:"h-5 w-5","aria-hidden":"true"})}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:"font-medium text-fg-primary",children:e.title}),e.description&&n.jsx("div",{className:`${m("xs","mt")} text-sm text-fg-secondary`,children:e.description}),e.action&&n.jsx("div",{className:m("md","mt"),children:n.jsx(re,{variant:"outline",size:"sm",onClick:()=>{var k;(k=e.action)==null||k.onClick(),x()},children:e.action.label})})]}),n.jsx(re,{variant:"iconOnly",size:"sm",onClick:x,className:"flex-shrink-0","aria-label":"Dismiss notification",children:n.jsx(Ie,{className:"h-4 w-4"})})]})}))}function kf({position:e="top-right",maxToasts:t}){const{toasts:r,removeToast:s}=Ns(),a=t?r.slice(0,t):r;if(a.length===0)return null;const o=n.jsx("div",{className:`fixed inset-0 pointer-events-none ${ve("toast")}`,"aria-live":"polite","aria-label":"Notifications",children:a.map((i,c)=>{const u=e.includes("top"),d=1+c*5;return n.jsx(Zo,{toast:i,onDismiss:s,position:e,style:{[u?"top":"bottom"]:`${d}rem`}},i.id)})});return typeof window!="undefined"?Je.createPortal(o,document.body):o}function jf(){const{addToast:e,removeToast:t,clearAll:r}=Ns(),s=l.useCallback(d=>e({title:d.title,description:d.description,variant:d.variant||"info",duration:d.duration,action:d.action}),[e]),a=l.useCallback((d,f,b)=>s(A({title:d,description:f,variant:"success"},b)),[s]),o=l.useCallback((d,f,b)=>s(A({title:d,description:f,variant:"error"},b)),[s]),i=l.useCallback((d,f,b)=>s(A({title:d,description:f,variant:"warning"},b)),[s]),c=l.useCallback((d,f,b)=>s(A({title:d,description:f,variant:"info"},b)),[s]),u=l.useCallback((d,f,b,p="info",h)=>s({title:d,description:f,variant:p,duration:h,action:{label:"Undo",onClick:b}}),[s]);return{show:s,success:a,error:o,warning:i,info:c,withUndo:u,dismiss:t,clearAll:r}}function Qo({steps:e,currentStep:t,defaultCurrentStep:r=0,onStepChange:s,onComplete:a,allowNavigation:o=!0,showStepNumbers:i=!0,orientation:c="horizontal",className:u=""}){const[d,f]=l.useState(r),b=t!==void 0,p=b?t:d,h=j=>j<p?"completed":j===p?"active":"pending",x=()=>{if(p<e.length-1){const j=p+1;b||f(j),s==null||s(j)}else a==null||a()},k=()=>{if(p>0){const j=p-1;b||f(j),s==null||s(j)}},w=j=>{o&&(e[j].disabled||(b||f(j),s==null||s(j)))},v=e[p],y=p===0,N=p===e.length-1,$=(j,C,S)=>`Step ${C+1}${j.title?`: ${j.title}`:""}${S==="error"?" (error)":""}`,E=(j,C)=>j==="completed"?n.jsx(Ra,{className:"h-5 w-5"}):j==="error"?n.jsx(Tr,{className:"h-5 w-5","aria-hidden":"true"}):i?C+1:null;return c==="vertical"?n.jsxs("div",{className:`flex ${m("base","gap")} ${u}`,children:[n.jsx("div",{className:"flex flex-col",children:e.map((j,C)=>{const S=j.status||h(C),M=C===p;return n.jsxs("div",{className:`flex items-start ${m("md","gap")}`,children:[n.jsxs("div",{className:"flex flex-col items-center",children:[n.jsx("button",F(A({type:"button",onClick:()=>w(C),disabled:!o||j.disabled,"aria-current":M?"step":void 0,"aria-label":$(j,C,S)},S==="pending"?{"data-marker":"pending"}:{}),{className:`
330
+ `,children:[n.jsx("div",{className:`flex-shrink-0 ${wf[e.variant]}`,children:n.jsx(p,{className:"h-5 w-5","aria-hidden":"true"})}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:"font-medium text-fg-primary",children:e.title}),e.description&&n.jsx("div",{className:`${m("xs","mt")} text-sm text-fg-secondary`,children:e.description}),e.action&&n.jsx("div",{className:m("md","mt"),children:n.jsx(re,{variant:"outline",size:"sm",onClick:()=>{var k;(k=e.action)==null||k.onClick(),g()},children:e.action.label})})]}),n.jsx(re,{variant:"iconOnly",size:"sm",onClick:g,className:"flex-shrink-0","aria-label":"Dismiss notification",children:n.jsx(Ie,{className:"h-4 w-4"})})]})}))}function kf({position:e="top-right",maxToasts:t}){const{toasts:r,removeToast:s}=Ns(),a=t?r.slice(0,t):r;if(a.length===0)return null;const o=n.jsx("div",{className:`fixed inset-0 pointer-events-none ${ve("toast")}`,"aria-live":"polite","aria-label":"Notifications",children:a.map((i,c)=>{const u=e.includes("top"),d=1+c*5;return n.jsx(Zo,{toast:i,onDismiss:s,position:e,style:{[u?"top":"bottom"]:`${d}rem`}},i.id)})});return typeof window!="undefined"?Je.createPortal(o,document.body):o}function jf(){const{addToast:e,removeToast:t,clearAll:r}=Ns(),s=l.useCallback(d=>e({title:d.title,description:d.description,variant:d.variant||"info",duration:d.duration,action:d.action}),[e]),a=l.useCallback((d,f,b)=>s(A({title:d,description:f,variant:"success"},b)),[s]),o=l.useCallback((d,f,b)=>s(A({title:d,description:f,variant:"error"},b)),[s]),i=l.useCallback((d,f,b)=>s(A({title:d,description:f,variant:"warning"},b)),[s]),c=l.useCallback((d,f,b)=>s(A({title:d,description:f,variant:"info"},b)),[s]),u=l.useCallback((d,f,b,p="info",h)=>s({title:d,description:f,variant:p,duration:h,action:{label:"Undo",onClick:b}}),[s]);return{show:s,success:a,error:o,warning:i,info:c,withUndo:u,dismiss:t,clearAll:r}}function Qo({steps:e,currentStep:t,defaultCurrentStep:r=0,onStepChange:s,onComplete:a,allowNavigation:o=!0,showStepNumbers:i=!0,orientation:c="horizontal",className:u=""}){const[d,f]=l.useState(r),b=t!==void 0,p=b?t:d,h=j=>j<p?"completed":j===p?"active":"pending",g=()=>{if(p<e.length-1){const j=p+1;b||f(j),s==null||s(j)}else a==null||a()},k=()=>{if(p>0){const j=p-1;b||f(j),s==null||s(j)}},w=j=>{o&&(e[j].disabled||(b||f(j),s==null||s(j)))},v=e[p],y=p===0,N=p===e.length-1,$=(j,C,S)=>`Step ${C+1}${j.title?`: ${j.title}`:""}${S==="error"?" (error)":""}`,E=(j,C)=>j==="completed"?n.jsx(Ra,{className:"h-5 w-5"}):j==="error"?n.jsx(Tr,{className:"h-5 w-5","aria-hidden":"true"}):i?C+1:null;return c==="vertical"?n.jsxs("div",{className:`flex ${m("base","gap")} ${u}`,children:[n.jsx("div",{className:"flex flex-col",children:e.map((j,C)=>{const S=j.status||h(C),M=C===p;return n.jsxs("div",{className:`flex items-start ${m("md","gap")}`,children:[n.jsxs("div",{className:"flex flex-col items-center",children:[n.jsx("button",F(A({type:"button",onClick:()=>w(C),disabled:!o||j.disabled,"aria-current":M?"step":void 0,"aria-label":$(j,C,S)},S==="pending"?{"data-marker":"pending"}:{}),{className:`
331
331
  flex
332
332
  items-center
333
333
  justify-center
@@ -354,7 +354,7 @@ React keys must be passed directly to JSX without using spread:
354
354
  border-line-default
355
355
  ${G("lg")}
356
356
  bg-surface-base
357
- `,children:v==null?void 0:v.content}),n.jsxs("div",{className:`flex justify-between ${m("base","mt")} ${m("base","gap")}`,children:[n.jsx(re,{variant:"outline",onClick:k,disabled:y,children:"Previous"}),n.jsx(re,{variant:"primary",onClick:x,children:N?"Complete":"Next"})]})]})]}):n.jsxs("div",{className:`${m("lg","space-y")} ${u}`,children:[n.jsx("div",{className:"flex items-center",children:e.map((j,C)=>{const S=j.status||h(C),M=C===p;return n.jsxs("div",{className:"flex items-center flex-1",children:[n.jsxs("div",{className:"flex flex-col items-center flex-1",children:[n.jsx("button",F(A({type:"button",onClick:()=>w(C),disabled:!o||j.disabled,"aria-current":M?"step":void 0,"aria-label":$(j,C,S)},S==="pending"?{"data-marker":"pending"}:{}),{className:`
357
+ `,children:v==null?void 0:v.content}),n.jsxs("div",{className:`flex justify-between ${m("base","mt")} ${m("base","gap")}`,children:[n.jsx(re,{variant:"outline",onClick:k,disabled:y,children:"Previous"}),n.jsx(re,{variant:"primary",onClick:g,children:N?"Complete":"Next"})]})]})]}):n.jsxs("div",{className:`${m("lg","space-y")} ${u}`,children:[n.jsx("div",{className:"flex items-center",children:e.map((j,C)=>{const S=j.status||h(C),M=C===p;return n.jsxs("div",{className:"flex items-center flex-1",children:[n.jsxs("div",{className:"flex flex-col items-center flex-1",children:[n.jsx("button",F(A({type:"button",onClick:()=>w(C),disabled:!o||j.disabled,"aria-current":M?"step":void 0,"aria-label":$(j,C,S)},S==="pending"?{"data-marker":"pending"}:{}),{className:`
358
358
  flex
359
359
  items-center
360
360
  justify-center
@@ -377,7 +377,7 @@ React keys must be passed directly to JSX without using spread:
377
377
  border-line-default
378
378
  ${G("lg")}
379
379
  bg-surface-base
380
- `,children:v==null?void 0:v.content}),n.jsxs("div",{className:`flex justify-between ${m("base","gap")}`,children:[n.jsx(re,{variant:"outline",onClick:k,disabled:y,children:"Previous"}),n.jsx(re,{variant:"primary",onClick:x,children:N?"Complete":"Next"})]})]})}function Nf({items:e,orientation:t="vertical",className:r=""}){return t==="horizontal"?n.jsx("div",{className:`flex items-start ${r}`,children:e.map((s,a)=>{const o=s.status||(a===0?"active":a<e.findIndex(c=>c.status==="active")?"completed":"default"),i=a===e.length-1;return n.jsx("div",{className:"flex items-start flex-1",children:n.jsxs("div",{className:"flex flex-col items-center flex-1",children:[n.jsx("div",F(A({},o==="default"?{"data-marker":"pending"}:{}),{className:`
380
+ `,children:v==null?void 0:v.content}),n.jsxs("div",{className:`flex justify-between ${m("base","gap")}`,children:[n.jsx(re,{variant:"outline",onClick:k,disabled:y,children:"Previous"}),n.jsx(re,{variant:"primary",onClick:g,children:N?"Complete":"Next"})]})]})}function Nf({items:e,orientation:t="vertical",className:r=""}){return t==="horizontal"?n.jsx("div",{className:`flex items-start ${r}`,children:e.map((s,a)=>{const o=s.status||(a===0?"active":a<e.findIndex(c=>c.status==="active")?"completed":"default"),i=a===e.length-1;return n.jsx("div",{className:"flex items-start flex-1",children:n.jsxs("div",{className:"flex flex-col items-center flex-1",children:[n.jsx("div",F(A({},o==="default"?{"data-marker":"pending"}:{}),{className:`
381
381
  flex
382
382
  items-center
383
383
  justify-center
@@ -410,7 +410,7 @@ React keys must be passed directly to JSX without using spread:
410
410
  text-base
411
411
  font-semibold
412
412
  ${o==="active"?"text-fg-brand-emphasis":"text-fg-primary"}
413
- `,children:s.title}),s.description&&n.jsx("p",{className:`text-sm text-fg-secondary ${m("xs","mt")}`,children:s.description}),s.content&&n.jsx("div",{className:m("md","mt"),children:s.content})]})]},s.id)})})}function Sf({items:e,open:t,defaultOpen:r=!1,onOpenChange:s,trigger:a,placeholder:o="Type a command or search...",emptyMessage:i="No commands found",className:c=""}){const[u,d]=l.useState(r),[f,b]=l.useState(""),[p,h]=l.useState(0),x=l.useRef(null),k=l.useRef(null),w=l.useRef(null),v=l.useId(),y=t!==void 0,N=y?t:u;Jt(N),zr(w,N);const E=e.filter(R=>{var H,B;if(!f)return!0;const I=f.toLowerCase(),_=R.label.toLowerCase().includes(I),O=(H=R.description)==null?void 0:H.toLowerCase().includes(I),z=(B=R.keywords)==null?void 0:B.some(ae=>ae.toLowerCase().includes(I));return _||O||z}).reduce((R,I)=>{const _=I.group||"Other";return R[_]||(R[_]=[]),R[_].push(I),R},{}),j=Object.values(E).flat(),C=N&&j[p]?`${v}-option-${p}`:void 0,S=l.useCallback(R=>{y||d(R),s==null||s(R),R&&(b(""),h(0))},[y,s]);l.useEffect(()=>{if(!N)return;const R=setTimeout(()=>{var I;return(I=x.current)==null?void 0:I.focus()},0);return()=>clearTimeout(R)},[N]);const M=R=>{R.action(),S(!1)},L=R=>{if(R.key==="Escape"){S(!1);return}if(R.key==="ArrowDown"){R.preventDefault(),h(I=>Math.min(I+1,j.length-1));return}if(R.key==="ArrowUp"){R.preventDefault(),h(I=>Math.max(I-1,0));return}if(R.key==="Enter"){R.preventDefault(),j[p]&&M(j[p]);return}};l.useEffect(()=>{if(k.current&&p>=0){const R=k.current.querySelector(`[data-index="${p}"]`);R&&typeof R.scrollIntoView=="function"&&R.scrollIntoView({block:"nearest",behavior:"smooth"})}},[p]),l.useEffect(()=>{h(0)},[f]),l.useEffect(()=>{const R=I=>{(I.metaKey||I.ctrlKey)&&I.key==="k"&&(I.preventDefault(),S(!N))};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[N,S]);const D=N?n.jsx("div",{className:`
413
+ `,children:s.title}),s.description&&n.jsx("p",{className:`text-sm text-fg-secondary ${m("xs","mt")}`,children:s.description}),s.content&&n.jsx("div",{className:m("md","mt"),children:s.content})]})]},s.id)})})}function Sf({items:e,open:t,defaultOpen:r=!1,onOpenChange:s,trigger:a,placeholder:o="Type a command or search...",emptyMessage:i="No commands found",className:c=""}){const[u,d]=l.useState(r),[f,b]=l.useState(""),[p,h]=l.useState(0),g=l.useRef(null),k=l.useRef(null),w=l.useRef(null),v=l.useId(),y=t!==void 0,N=y?t:u;Jt(N),zr(w,N);const E=e.filter(R=>{var H,B;if(!f)return!0;const I=f.toLowerCase(),_=R.label.toLowerCase().includes(I),O=(H=R.description)==null?void 0:H.toLowerCase().includes(I),z=(B=R.keywords)==null?void 0:B.some(ae=>ae.toLowerCase().includes(I));return _||O||z}).reduce((R,I)=>{const _=I.group||"Other";return R[_]||(R[_]=[]),R[_].push(I),R},{}),j=Object.values(E).flat(),C=N&&j[p]?`${v}-option-${p}`:void 0,S=l.useCallback(R=>{y||d(R),s==null||s(R),R&&(b(""),h(0))},[y,s]);l.useEffect(()=>{if(!N)return;const R=setTimeout(()=>{var I;return(I=g.current)==null?void 0:I.focus()},0);return()=>clearTimeout(R)},[N]);const M=R=>{R.action(),S(!1)},L=R=>{if(R.key==="Escape"){S(!1);return}if(R.key==="ArrowDown"){R.preventDefault(),h(I=>Math.min(I+1,j.length-1));return}if(R.key==="ArrowUp"){R.preventDefault(),h(I=>Math.max(I-1,0));return}if(R.key==="Enter"){R.preventDefault(),j[p]&&M(j[p]);return}};l.useEffect(()=>{if(k.current&&p>=0){const R=k.current.querySelector(`[data-index="${p}"]`);R&&typeof R.scrollIntoView=="function"&&R.scrollIntoView({block:"nearest",behavior:"smooth"})}},[p]),l.useEffect(()=>{h(0)},[f]),l.useEffect(()=>{const R=I=>{(I.metaKey||I.ctrlKey)&&I.key==="k"&&(I.preventDefault(),S(!N))};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[N,S]);const D=N?n.jsx("div",{className:`
414
414
  fixed
415
415
  inset-0
416
416
  ${ve("modal-backdrop")}
@@ -437,7 +437,7 @@ React keys must be passed directly to JSX without using spread:
437
437
  ${m("base","p")}
438
438
  border-b
439
439
  border-line-default
440
- `,children:[n.jsx(ps,{className:"h-5 w-5 text-fg-secondary"}),n.jsx(Re,{ref:x,value:f,onChange:R=>b(R.target.value),onKeyDown:L,placeholder:o,className:"flex-1 border-0 focus:ring-0",role:"combobox","aria-expanded":N,"aria-controls":v,"aria-activedescendant":C,"aria-autocomplete":"list","aria-label":o}),n.jsxs("div",{className:`
440
+ `,children:[n.jsx(ps,{className:"h-5 w-5 text-fg-secondary"}),n.jsx(Re,{ref:g,value:f,onChange:R=>b(R.target.value),onKeyDown:L,placeholder:o,className:"flex-1 border-0 focus:ring-0",role:"combobox","aria-expanded":N,"aria-controls":v,"aria-activedescendant":C,"aria-autocomplete":"list","aria-label":o}),n.jsxs("div",{className:`
441
441
  flex
442
442
  items-center
443
443
  ${m("xs","gap")}
@@ -480,7 +480,7 @@ React keys must be passed directly to JSX without using spread:
480
480
  text-center
481
481
  text-sm
482
482
  text-fg-secondary
483
- `,children:i})]})}):null;return n.jsxs(n.Fragment,{children:[a?n.jsx("div",{onClick:()=>S(!0),children:a}):null,typeof window!="undefined"&&Je.createPortal(D,document.body)]})}function $f({columns:e,data:t,loading:r=!1,onSort:s,sortColumn:a,sortDirection:o,multiSort:i=!1,groups:c,onGroupChange:u,groupable:d=!1,resizable:f=!0,reorderable:b=!1,onColumnReorder:p,columnWidths:h,onColumnResize:x,selectable:k=!1,selectedRows:w,onSelectionChange:v,rowId:y,exportable:N=!1,onExport:$,exportFormats:E=["csv","xlsx","json"],pagination:j,filters:C,actions:S,toolbarActions:M,virtualScrolling:L=!1,virtualScrollingOptions:D,emptyMessage:R,emptyStateTitle:I,emptyStateMessage:_,emptyStateIllustration:O,emptyStateAction:z,className:H=""}){const[B,ae]=l.useState({}),W=h!==void 0,P=W?h:B,K=l.useMemo(()=>e.map(J=>F(A({},J),{width:P[J.key]||J.defaultWidth})),[e,P]),oe=J=>{$?$(J):J==="csv"?ne(t,e):J==="json"&&de(t)},ne=(J,ee)=>{const te=me=>{const Ce=me==null?"":String(me);return/[",\n\r]/.test(Ce)?`"${Ce.replace(/"/g,'""')}"`:Ce},Q=ee.filter(me=>me.exportable!==!1),U=Q.map(me=>te(me.label||me.key)),Z=J.map(me=>Q.map(Ce=>te(me[Ce.key]))),q=[U.join(","),...Z.map(me=>me.join(","))].join(`\r
483
+ `,children:i})]})}):null;return n.jsxs(n.Fragment,{children:[a?n.jsx("div",{onClick:()=>S(!0),children:a}):null,typeof window!="undefined"&&Je.createPortal(D,document.body)]})}function $f({columns:e,data:t,loading:r=!1,onSort:s,sortColumn:a,sortDirection:o,multiSort:i=!1,groups:c,onGroupChange:u,groupable:d=!1,resizable:f=!0,reorderable:b=!1,onColumnReorder:p,columnWidths:h,onColumnResize:g,selectable:k=!1,selectedRows:w,onSelectionChange:v,rowId:y,exportable:N=!1,onExport:$,exportFormats:E=["csv","xlsx","json"],pagination:j,filters:C,actions:S,toolbarActions:M,virtualScrolling:L=!1,virtualScrollingOptions:D,emptyMessage:R,emptyStateTitle:I,emptyStateMessage:_,emptyStateIllustration:O,emptyStateAction:z,className:H=""}){const[B,ae]=l.useState({}),W=h!==void 0,P=W?h:B,K=l.useMemo(()=>e.map(J=>F(A({},J),{width:P[J.key]||J.defaultWidth})),[e,P]),oe=J=>{$?$(J):J==="csv"?ne(t,e):J==="json"&&de(t)},ne=(J,ee)=>{const te=me=>{const Ce=me==null?"":String(me);return/[",\n\r]/.test(Ce)?`"${Ce.replace(/"/g,'""')}"`:Ce},Q=ee.filter(me=>me.exportable!==!1),U=Q.map(me=>te(me.label||me.key)),Z=J.map(me=>Q.map(Ce=>te(me[Ce.key]))),q=[U.join(","),...Z.map(me=>me.join(","))].join(`\r
484
484
  `),ie=new Blob([q],{type:"text/csv"}),ke=URL.createObjectURL(ie),ze=document.createElement("a");ze.href=ke,ze.download=`export-${Date.now()}.csv`,ze.click(),URL.revokeObjectURL(ke)},de=J=>{const ee=JSON.stringify(J,null,2),te=new Blob([ee],{type:"application/json"}),Q=URL.createObjectURL(te),U=document.createElement("a");U.href=Q,U.download=`export-${Date.now()}.json`,U.click(),URL.revokeObjectURL(Q)};return n.jsxs("div",{className:`${m("base","space-y")} ${H}`,children:[(N||M)&&n.jsxs("div",{className:`
485
485
  flex
486
486
  items-center
@@ -490,5 +490,5 @@ React keys must be passed directly to JSX without using spread:
490
490
  border
491
491
  border-line-default
492
492
  ${G("lg")}
493
- `,children:[n.jsx("div",{className:`flex items-center ${m("sm","gap")}`}),n.jsxs("div",{className:`flex items-center ${m("sm","gap")}`,children:[M,N&&n.jsx("div",{className:`flex items-center ${m("xs","gap")}`,children:($?E:E.filter(J=>J==="csv"||J==="json")).map(J=>n.jsx(re,{variant:"outline",size:"sm",leftIcon:n.jsx(Nc,{className:"h-4 w-4"}),onClick:()=>oe(J),children:J.toUpperCase()},J))})]})]}),n.jsx(Me,{columns:K,data:t,loading:r,onSort:s,sortColumn:a,sortDirection:o,pagination:j,filters:C,selectable:k,selectedRows:w,onSelectionChange:v,rowId:y,actions:S,resizable:f,columnWidths:P,onColumnResize:(J,ee)=>{W||ae(te=>F(A({},te),{[J]:ee})),x==null||x(J,ee)},virtualScrolling:L,virtualScrollingOptions:D,emptyMessage:R,emptyStateTitle:I,emptyStateMessage:_,emptyStateIllustration:O,emptyStateAction:z})]})}function Cf({columns:e,data:t,searchPlaceholder:r="Search...",enableSearch:s=!0,itemsPerPage:a=10,enablePagination:o=!0,actions:i,onRowClick:c,loading:u=!1,emptyMessage:d="No data available"}){const[f,b]=l.useState(""),[p,h]=l.useState(1),x=l.useMemo(()=>e.map($=>{if($.accessor||$.header){const E=$.key||(typeof $.accessor=="string"?$.accessor:String($.accessor)),j=$.label||$.header||"";return F(A({},$),{key:E,label:j})}return $}),[e]),k=l.useMemo(()=>{if(!f.trim())return t;const $=f.toLowerCase();return t.filter(E=>x.some(j=>{const C=E[String(j.key)];return String(C).toLowerCase().includes($)}))},[t,f,x]),w=l.useMemo(()=>{if(!o)return k;const $=(p-1)*a,E=$+a;return k.slice($,E)},[k,p,a,o]),v=o?Math.ceil(k.length/a):1,y=$=>{h($)},N=$=>{b($),h(1)};return n.jsx(bt,{maxWidth:"full",paddingX:"base",paddingY:"base",children:n.jsxs(zt,{spacing:"md",children:[n.jsxs("div",{className:`flex items-center justify-between ${m("base","gap")}`,children:[s&&n.jsx("div",{className:"flex-1 max-w-md",children:n.jsx(Pr,{placeholder:r,value:f,onSearch:N})}),i&&n.jsx("div",{className:`flex ${m("sm","gap")}`,children:i})]}),n.jsx(Me,{columns:x,data:w,loading:u,emptyMessage:d,onRowClick:c?$=>{const E=k.findIndex(j=>j===$);c($,E>=0?E:w.findIndex(j=>j===$))}:void 0}),o&&v>1&&n.jsx("div",{className:"flex justify-center",children:n.jsx(ro,{currentPage:p,totalPages:v,onPageChange:y})}),s&&n.jsxs("div",{className:"text-sm text-fg-secondary text-center",children:["Showing ",w.length," of ",k.length," results"]})]})})}function Ef({steps:e,onComplete:t,allowBackNavigation:r=!0,showStepNumbers:s=!0}){const[a,o]=l.useState(0),[i,c]=l.useState({}),[u,d]=l.useState({}),f=()=>or(null,null,function*(){const w=e[a];if(w.validate&&!(yield w.validate())){d(F(A({},u),{[a]:!0}));return}d(F(A({},u),{[a]:!1})),w.onSubmit&&(yield w.onSubmit(i)),a<e.length-1?o(a+1):t&&t(i)}),b=()=>{a>0&&r&&(o(a-1),d(F(A({},u),{[a-1]:!1})))},p=w=>{r&&w<a&&o(w)},h=e[a],x=a===e.length-1,k=u[a]===!0;return n.jsx(bt,{maxWidth:"lg",paddingX:"base",paddingY:"lg",children:n.jsxs(zt,{spacing:"lg",children:[n.jsx(Qo,{steps:e.map((w,v)=>({id:w.id,title:w.title,content:w.content,description:w.description,status:v<a?"completed":v===a?k?"error":"active":"pending"})),currentStep:a,onStepChange:p,allowNavigation:r}),n.jsx("div",{className:`bg-surface-base ${G("lg")} border ${m("lg","p")}`,children:n.jsxs(zt,{spacing:"md",children:[n.jsxs("div",{children:[n.jsx("h2",{className:"text-2xl font-semibold",children:h.title}),h.description&&n.jsx("p",{className:`text-fg-secondary ${m("xs","mt")}`,children:h.description})]}),k&&n.jsx("div",{className:`bg-error-bg border border-error-border rounded ${m("md","p")}`,children:n.jsx("p",{className:"text-sm text-fg-error",children:"Please fix the errors before proceeding."})}),n.jsx("div",{className:"min-h-48",children:h.fields}),n.jsxs("div",{className:`flex justify-between ${m("base","pt")} border-t`,children:[n.jsx(re,{variant:"outline",onClick:b,disabled:a===0,children:"Back"}),n.jsx(re,{variant:"primary",onClick:f,children:x?"Complete":"Next"})]})]})})]})})}function Tf({items:e,searchFn:t,filterFn:r,renderItem:s,filters:a=[],searchPlaceholder:o="Search...",emptyMessage:i="No results found",showResultsCount:c=!0}){const[u,d]=l.useState(""),[f,b]=l.useState({}),p=l.useMemo(()=>{let w=e;if(u.trim()&&t){const v=u.toLowerCase();w=w.filter(y=>t(v,y))}return r&&Object.keys(f).length>0&&(w=w.filter(v=>r(f,v))),w},[e,u,f,t,r]),h=(w,v)=>{b(y=>F(A({},y),{[w]:v}))},x=()=>{b({}),d("")},k=u.trim().length>0||Object.keys(f).length>0;return n.jsx(bt,{maxWidth:"full",paddingX:"base",paddingY:"base",children:n.jsxs(zt,{spacing:"md",children:[n.jsx(ht,{padding:"medium",children:n.jsxs(zt,{spacing:"md",children:[n.jsx("div",{children:n.jsx(Pr,{placeholder:o,value:u,onSearch:d})}),a.length>0&&n.jsx("div",{className:`flex flex-wrap ${m("sm","gap")}`,children:a.map(w=>{var v;return n.jsxs("div",{className:`flex items-center ${m("sm","gap")}`,children:[n.jsxs(Te,{className:"text-fg-secondary text-sm",children:[w.label,":"]}),n.jsxs("select",{className:`${m("md","px")} ${m("xs","py")} border rounded text-sm`,"aria-label":w.label,value:String(f[w.id]||""),onChange:y=>h(w.id,y.target.value||void 0),children:[n.jsx("option",{value:"",children:"All"}),(v=w.options)==null?void 0:v.map(y=>n.jsx("option",{value:String(y.value||""),children:y.label},y.id))]})]},w.id)})}),k&&n.jsx("div",{children:n.jsx(re,{variant:"outline",size:"sm",onClick:x,children:"Clear Filters"})})]})}),c&&n.jsxs("div",{className:"text-sm text-fg-secondary",children:["Showing ",p.length," of ",e.length," results",k&&" (filtered)"]}),p.length===0?n.jsx(ht,{padding:"large",children:n.jsx("div",{className:"text-center text-fg-secondary",children:n.jsx(Te,{children:i})})}):n.jsx("div",{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 ${m("base","gap")}`,children:p.map((w,v)=>n.jsx("div",{children:s(w,v)},v))})]})})}function Af({sidebar:e,children:t,header:r,footer:s,defaultCollapsed:a=!1,sidebarProps:o}){return n.jsxs("div",{className:"flex h-screen overflow-hidden",children:[e&&n.jsx(De,F(A({defaultCollapsed:a},o),{children:e})),n.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r&&n.jsx("header",{className:"border-b bg-surface-base",children:n.jsx(bt,{maxWidth:"full",paddingX:"base",paddingY:"sm",children:r})}),n.jsx("main",{className:"flex-1 overflow-y-auto",children:n.jsx(bt,{maxWidth:"xl",paddingX:"base",paddingY:"base",children:t})}),s&&n.jsx("footer",{className:"border-t bg-surface-base",children:n.jsx(bt,{maxWidth:"full",paddingX:"base",paddingY:"sm",children:s})})]})]})}const If=ge(g("w-full flex flex-col",m("2xl","py"),m("lg","px"),m("xl","gap-y")),{variants:{variant:{plain:"",gradient:"hero-gradient","gradient-glow":g("hero-gradient","hero-glow")},align:{start:"text-left",center:"text-center"}},defaultVariants:{variant:"plain",align:"start"}}),Rf={start:"items-start",center:"items-center"},Mf={start:"justify-start",center:"justify-center"},ei=l.forwardRef(function(x,h){var k=x,{kicker:t,title:r,description:s,actions:a,kpis:o,meta:i,variant:c="plain",align:u="start",className:d,"aria-label":f,"aria-labelledby":b}=k,p=V(k,["kicker","title","description","actions","kpis","meta","variant","align","className","aria-label","aria-labelledby"]);const w=f!=null||b!=null,v=f!=null?f:typeof r=="string"?r:void 0;return typeof process!="undefined"&&process.env.NODE_ENV!=="production"&&!w&&typeof r!="string"&&console.warn("[HeroSection] A non-string `title` was provided without `aria-label` or `aria-labelledby`. The hero <section> landmark will have no accessible name. Pass `aria-label`, or set `aria-labelledby` to your title's id."),n.jsxs("section",F(A({ref:h,className:g(If({variant:c,align:u}),d),"aria-label":v,"aria-labelledby":b},p),{children:[n.jsxs("div",{className:g("flex flex-col",m("md","gap-y"),Rf[u]),children:[t?n.jsx(Te,{as:"span",variant:"caption",colorRole:"primary",colorShade:"DEFAULT",className:"text-sm font-semibold tracking-wide uppercase",children:t}):null,n.jsx(Te,{as:"h1",variant:"heading",className:"text-3xl font-bold tracking-tight sm:text-4xl",children:r}),s?n.jsx(Te,{as:"p",variant:"body",colorRole:"neutral",colorShade:"DEFAULT",className:"max-w-2xl text-base leading-relaxed sm:text-lg",children:s}):null]}),a?n.jsx("div",{className:g("flex flex-wrap",m("sm","gap"),Mf[u]),children:a}):null,o?n.jsx("div",{className:"w-full",children:o}):null,i?n.jsx(Te,{as:"p",variant:"caption",colorRole:"neutral",colorShade:"light",className:"text-sm",children:i}):null]}))});ei.displayName="HeroSection";const Df=ge(g("flex items-center","border-b"),{variants:{variant:{default:g("border-line-default",m("base","gap-x")),sub:g("border-line-muted",m("sm","gap-x"))}},defaultVariants:{variant:"default"}}),_f=ge(g("relative -mb-px inline-flex items-center",m("xs","gap-x"),"border-b-2 border-transparent","transition-colors","focus:outline-none","focus-visible:ring-2","focus-visible:ring-line-focus","focus-visible:ring-offset-2",G("sm")),{variants:{variant:{default:g(m("sm","px"),m("sm","py"),se("body")),sub:g(m("sm","px"),m("xs","py"),se("bodySmall"))},active:{true:g("border-line-brand","text-fg-brand-emphasis","font-medium"),false:g("text-fg-secondary","hover:text-fg-primary","hover:border-line-muted")}},compoundVariants:[{variant:"sub",active:!1,class:g("text-fg-tertiary","hover:text-fg-secondary")}],defaultVariants:{variant:"default",active:!1}}),Lf=g("inline-flex items-center justify-center",G("full"),m("xs","px"),"bg-surface-muted text-fg-secondary text-xs"),ti=l.forwardRef(function(d,u){var f=d,{items:t,variant:r="default",linkComponent:s,className:a,"aria-label":o,"aria-labelledby":i}=f,c=V(f,["items","variant","linkComponent","className","aria-label","aria-labelledby"]);typeof process!="undefined"&&process.env.NODE_ENV!=="production"&&!o&&!i&&console.warn('[TabsAsLinks] renders a <nav> landmark and should have an accessible name. Pass `aria-label` (e.g. "Painel") or `aria-labelledby` — multiple unnamed navs on a page are ambiguous to screen readers.');const b=s!=null?s:"a";return n.jsx("nav",F(A({ref:u,className:g(Df({variant:r}),a),"aria-label":o,"aria-labelledby":i},c),{children:t.map((p,h)=>n.jsxs(b,{href:p.href,"aria-current":p.active?"page":void 0,"data-active":p.active?"true":void 0,className:_f({variant:r,active:!!p.active}),children:[p.icon?n.jsx("span",{"aria-hidden":"true",className:"inline-flex shrink-0",children:p.icon}):null,n.jsx("span",{children:p.label}),p.count!==void 0?n.jsx("span",{className:Lf,children:p.count}):null]},p.href||h))}))});ti.displayName="TabsAsLinks";function Ff(i){var c=i,{children:e,orientation:t="horizontal",size:r="md",attached:s=!1,className:a=""}=c,o=V(c,["children","orientation","size","attached","className"]);const u={horizontal:"flex-row",vertical:"flex-col"},d={sm:s?"":m("xs","gap"),md:s?"":m("sm","gap"),lg:s?"":m("md","gap")};return n.jsx("div",F(A({role:"group",className:g("inline-flex",u[t],d[r],s&&G("md"),a)},o),{children:e}))}function Pf(e,t={}){const{rootMargin:r="0px 0px -50% 0px",threshold:s=0}=t,[a,o]=l.useState(null),i=e.join("|");return l.useEffect(()=>{if(typeof window=="undefined"||typeof IntersectionObserver=="undefined")return;const c=e.map(d=>document.getElementById(d)).filter(d=>d!==null);if(c.length===0)return;const u=new IntersectionObserver(d=>{const f=d.filter(b=>b.isIntersecting).sort((b,p)=>b.boundingClientRect.top-p.boundingClientRect.top);f.length>0&&o(f[0].target.id)},{rootMargin:r,threshold:s});return c.forEach(d=>u.observe(d)),()=>u.disconnect()},[i,r,s]),a}exports.AMBER=ft;exports.Accordion=Mu;exports.AlertDialog=xf;exports.AppProvider=Ql;exports.Autocomplete=mo;exports.AutocompleteList=Or;exports.AutocompleteOption=Fs;exports.Avatar=gr;exports.AvatarGroup=Ed;exports.BLUE=ra;exports.BRAND_COLORS=Oi;exports.BRAND_PRIMARY=it;exports.BRAND_SECONDARY=lt;exports.BREAKPOINT_TOKENS=Sr;exports.Badge=Pa;exports.Breadcrumb=to;exports.BreakpointTokenFactory=Dt;exports.Button=re;exports.ButtonGroup=Ff;exports.CHART_PALETTE_SIZE=Nt;exports.CHART_PALETTE_TOKENS=Wi;exports.COLOR_SCALES=yi;exports.CYAN=ct;exports.Card=ht;exports.Checkbox=Rr;exports.Chip=As;exports.Collapsible=Cs;exports.ColorPicker=Cu;exports.CommandPalette=Sf;exports.ConfigProvider=Ta;exports.DashboardLayout=Af;exports.DataBadge=Ga;exports.DataGrid=$f;exports.DataTablePattern=Cf;exports.DatePicker=wu;exports.DatePickerCalendar=Ls;exports.DatePickerInput=_s;exports.DatePickerProvider=hs;exports.Dialog=Oe;exports.DialogClose=dn;exports.DialogContent=un;exports.DialogContext=Cr;exports.DialogDescription=Jo;exports.DialogFooter=mn;exports.DialogHeader=fn;exports.DialogProvider=Ss;exports.DialogTitle=Xo;exports.DialogTrigger=qo;exports.Dot=Ua;exports.Drawer=Zt;exports.DrawerContent=zs;exports.DrawerFooter=xo;exports.DrawerHeader=go;exports.Dropdown=no;exports.EMERALD=ut;exports.EmptyState=so;exports.ErrorMessage=za;exports.FONT_FAMILY_TOKENS=hi;exports.FONT_WEIGHT_TOKENS=gi;exports.FUCHSIA=sa;exports.FileUpload=Su;exports.FilterChips=Wd;exports.Form=Gd;exports.FormContext=Hd;exports.FormField=pu;exports.FormProvider=qa;exports.FormWizardPattern=Ef;exports.GRAY=Jn;exports.GREEN=Zn;exports.Header=Tt;exports.HeaderActions=So;exports.HeaderComponent=Tt;exports.HeaderHamburger=$o;exports.HeaderLogo=jo;exports.HeaderMobileMenu=Co;exports.HeaderNavigation=No;exports.HeaderProvider=gs;exports.HeroSection=ei;exports.INDIGO=qn;exports.Info=rc;exports.Input=Re;exports.LIME=ia;exports.Label=Pt;exports.LoginBox=Pu;exports.Menu=Qt;exports.MenuContent=yo;exports.MenuItem=Hs;exports.MenuSeparator=wo;exports.MenuTrigger=Ws;exports.Modal=Ou;exports.MultiSelect=po;exports.NavLink=Ar;exports.Navbar=xt;exports.NavbarContext=Kr;exports.NavbarGroup=Vo;exports.NavbarItem=Oo;exports.NavbarSeparator=zo;exports.NavbarToggle=kr;exports.Navigation=Eo;exports.NavigationComponent=Eo;exports.ORANGE=ea;exports.PINK=na;exports.PRIMITIVE_COLORS=vs;exports.PURPLE=aa;exports.PageHeader=To;exports.PageHeaderComponent=To;exports.Pagination=ro;exports.Popover=Ps;exports.Progress=Es;exports.RED=ta;exports.ROSE=mt;exports.Radio=Wa;exports.Rating=Nu;exports.SEMANTIC_COLORS=$i;exports.SEMANTIC_COLORS_DARK=Nr;exports.SEMANTIC_COLORS_LIGHT=Xt;exports.SIDEBAR_TOKENS=ot;exports.SKY=pt;exports.SLATE=dt;exports.SPACING_TOKENS=jr;exports.SearchAndFilterPattern=Tf;exports.SearchInput=Pr;exports.Select=Ir;exports.Separator=Ts;exports.SideNavbar=De;exports.SideNavbarBackdrop=ln;exports.SideNavbarConfigContext=Hr;exports.SideNavbarConfigProvider=tn;exports.SideNavbarProvider=sn;exports.SideNavbarResizeHandle=on;exports.SideNavbarRoot=Po;exports.SideNavbarStateContext=Br;exports.SideNavbarStateProvider=rn;exports.SideNavbarThemeContext=Wr;exports.SideNavbarThemeProvider=en;exports.SideNavbarToggle=cn;exports.SideNavbarToggleContext=Gr;exports.Sidebar=vt;exports.SidebarContent=Bo;exports.SidebarContext=qr;exports.SidebarFooter=Uo;exports.SidebarGroup=Go;exports.SidebarHeader=Ho;exports.SidebarSlot=Ko;exports.SidebarSlotContent=Yo;exports.SidebarSlotContext=Ur;exports.SidebarSlotProvider=Lo;exports.Skeleton=Va;exports.Slider=Ba;exports.SpacingTokenFactory=je;exports.Spinner=$s;exports.Stat=Od;exports.StatGroup=Vd;exports.Stepper=Qo;exports.Switch=Ha;exports.TEAL=oa;exports.TYPOGRAPHY_TOKENS=$t;exports.Table=Me;exports.TableActions=qs;exports.TableBody=Js;exports.TableCell=Ys;exports.TableContext=zu;exports.TableEmptyState=Xs;exports.TableFilters=Zs;exports.TableHeader=Ks;exports.TableHeaderCell=Us;exports.TableHeaderRow=Gs;exports.TablePagination=Qs;exports.TableProvider=xs;exports.TableRow=yr;exports.Tabs=ju;exports.TabsAsLinks=ti;exports.TabsContent=fo;exports.TabsContext=_r;exports.TabsList=co;exports.TabsProvider=lo;exports.TabsTrigger=uo;exports.Text=Te;exports.Textarea=Oa;exports.ThemeProvider=Ca;exports.TimePicker=$u;exports.Timeline=Nf;exports.Toast=Zo;exports.ToastContainer=kf;exports.ToastContext=$r;exports.ToastProvider=Aa;exports.Tooltip=Ot;exports.TypographyTokenFactory=xe;exports.VIOLET=Xn;exports.YELLOW=Qn;exports.blendColors=ys;exports.clampWidth=pr;exports.cn=g;exports.darken=Pi;exports.defaultConfigValues=$e;exports.defaultThemeValues=Lt;exports.formatKeyboardShortcut=Qu;exports.getAnimation=Pl;exports.getAnimationClass=Ne;exports.getBreakpoint=zi;exports.getChartColor=Hi;exports.getChartColorClass=Bi;exports.getColor=Ei;exports.getColorClass=Ai;exports.getContrastColor=Li;exports.getFocusColorClass=Mi;exports.getFocusRingClass=Di;exports.getHoverColorClass=Ri;exports.getMediaQuery=Vi;exports.getNestedIndentClass=pi;exports.getOpacity=Vl;exports.getOpacityClass=Wl;exports.getPrimitiveColor=Vt;exports.getPrimitiveColorPalette=Si;exports.getSemanticColor=Yt;exports.getSemanticColorClass=Ii;exports.getSemanticColorRole=Ci;exports.getSemanticColorValue=Ti;exports.getSpacing=bi;exports.getSpacingClass=m;exports.getTransitionClass=Ol;exports.getTypography=xi;exports.getTypographyClasses=be;exports.getTypographyLineHeight=vi;exports.getTypographySize=se;exports.getTypographySizeFromFontSize=Se;exports.getTypographyWeight=Ae;exports.getTypographyWeightFromFontWeight=Ft;exports.getZIndex=zl;exports.getZIndexClass=ve;exports.isLightColor=la;exports.lighten=Fi;exports.parseKeyboardShortcut=Io;exports.parseWidthToPixels=wr;exports.useApp=ec;exports.useColumnResizing=Ku;exports.useConfig=Yl;exports.useDialogContext=Et;exports.useDialogContextOptional=Xl;exports.useFocusManagement=Do;exports.useFormContext=Is;exports.useFormContextOptional=Ud;exports.useFormFieldArray=bu;exports.useGroupState=mf;exports.useHeaderContext=Bs;exports.useKeyboardShortcut=_o;exports.useNavLink=Fa;exports.useNavbar=cf;exports.useNavbarRequired=Yr;exports.useResize=Ro;exports.useResponsiveSidebar=Mo;exports.useScrollSpy=Pf;exports.useSideNavbarCombined=hf;exports.useSideNavbarConfig=qu;exports.useSideNavbarConfigRequired=At;exports.useSideNavbarContent=bf;exports.useSideNavbarNavigation=pf;exports.useSideNavbarState=Xu;exports.useSideNavbarStateRequired=et;exports.useSideNavbarTheme=Yu;exports.useSideNavbarThemeRequired=Qe;exports.useSideNavbarToggleContext=ef;exports.useSideNavbarToggleContextRequired=Fo;exports.useSidebar=Wo;exports.useSidebarRequired=er;exports.useSidebarSlot=nn;exports.useSidebarSlotRequired=an;exports.useTableContext=Ue;exports.useTableContextOptional=Wu;exports.useTabsContext=Lr;exports.useTabsContextOptional=ku;exports.useTheme=Gl;exports.useToast=jf;exports.useToastContext=Ns;exports.useToastContextOptional=ql;exports.useVirtualScrolling=Ao;exports.validateWidthBounds=Ju;exports.withOpacity=_i;
493
+ `,children:[n.jsx("div",{className:`flex items-center ${m("sm","gap")}`}),n.jsxs("div",{className:`flex items-center ${m("sm","gap")}`,children:[M,N&&n.jsx("div",{className:`flex items-center ${m("xs","gap")}`,children:($?E:E.filter(J=>J==="csv"||J==="json")).map(J=>n.jsx(re,{variant:"outline",size:"sm",leftIcon:n.jsx(Nc,{className:"h-4 w-4"}),onClick:()=>oe(J),children:J.toUpperCase()},J))})]})]}),n.jsx(Me,{columns:K,data:t,loading:r,onSort:s,sortColumn:a,sortDirection:o,pagination:j,filters:C,selectable:k,selectedRows:w,onSelectionChange:v,rowId:y,actions:S,resizable:f,columnWidths:P,onColumnResize:(J,ee)=>{W||ae(te=>F(A({},te),{[J]:ee})),g==null||g(J,ee)},virtualScrolling:L,virtualScrollingOptions:D,emptyMessage:R,emptyStateTitle:I,emptyStateMessage:_,emptyStateIllustration:O,emptyStateAction:z})]})}function Cf({columns:e,data:t,searchPlaceholder:r="Search...",enableSearch:s=!0,itemsPerPage:a=10,enablePagination:o=!0,actions:i,onRowClick:c,loading:u=!1,emptyMessage:d="No data available"}){const[f,b]=l.useState(""),[p,h]=l.useState(1),g=l.useMemo(()=>e.map($=>{if($.accessor||$.header){const E=$.key||(typeof $.accessor=="string"?$.accessor:String($.accessor)),j=$.label||$.header||"";return F(A({},$),{key:E,label:j})}return $}),[e]),k=l.useMemo(()=>{if(!f.trim())return t;const $=f.toLowerCase();return t.filter(E=>g.some(j=>{const C=E[String(j.key)];return String(C).toLowerCase().includes($)}))},[t,f,g]),w=l.useMemo(()=>{if(!o)return k;const $=(p-1)*a,E=$+a;return k.slice($,E)},[k,p,a,o]),v=o?Math.ceil(k.length/a):1,y=$=>{h($)},N=$=>{b($),h(1)};return n.jsx(bt,{maxWidth:"full",paddingX:"base",paddingY:"base",children:n.jsxs(zt,{spacing:"md",children:[n.jsxs("div",{className:`flex items-center justify-between ${m("base","gap")}`,children:[s&&n.jsx("div",{className:"flex-1 max-w-md",children:n.jsx(Pr,{placeholder:r,value:f,onSearch:N})}),i&&n.jsx("div",{className:`flex ${m("sm","gap")}`,children:i})]}),n.jsx(Me,{columns:g,data:w,loading:u,emptyMessage:d,onRowClick:c?$=>{const E=k.findIndex(j=>j===$);c($,E>=0?E:w.findIndex(j=>j===$))}:void 0}),o&&v>1&&n.jsx("div",{className:"flex justify-center",children:n.jsx(ro,{currentPage:p,totalPages:v,onPageChange:y})}),s&&n.jsxs("div",{className:"text-sm text-fg-secondary text-center",children:["Showing ",w.length," of ",k.length," results"]})]})})}function Ef({steps:e,onComplete:t,allowBackNavigation:r=!0,showStepNumbers:s=!0}){const[a,o]=l.useState(0),[i,c]=l.useState({}),[u,d]=l.useState({}),f=()=>or(null,null,function*(){const w=e[a];if(w.validate&&!(yield w.validate())){d(F(A({},u),{[a]:!0}));return}d(F(A({},u),{[a]:!1})),w.onSubmit&&(yield w.onSubmit(i)),a<e.length-1?o(a+1):t&&t(i)}),b=()=>{a>0&&r&&(o(a-1),d(F(A({},u),{[a-1]:!1})))},p=w=>{r&&w<a&&o(w)},h=e[a],g=a===e.length-1,k=u[a]===!0;return n.jsx(bt,{maxWidth:"lg",paddingX:"base",paddingY:"lg",children:n.jsxs(zt,{spacing:"lg",children:[n.jsx(Qo,{steps:e.map((w,v)=>({id:w.id,title:w.title,content:w.content,description:w.description,status:v<a?"completed":v===a?k?"error":"active":"pending"})),currentStep:a,onStepChange:p,allowNavigation:r}),n.jsx("div",{className:`bg-surface-base ${G("lg")} border ${m("lg","p")}`,children:n.jsxs(zt,{spacing:"md",children:[n.jsxs("div",{children:[n.jsx("h2",{className:"text-2xl font-semibold",children:h.title}),h.description&&n.jsx("p",{className:`text-fg-secondary ${m("xs","mt")}`,children:h.description})]}),k&&n.jsx("div",{className:`bg-error-bg border border-error-border rounded ${m("md","p")}`,children:n.jsx("p",{className:"text-sm text-fg-error",children:"Please fix the errors before proceeding."})}),n.jsx("div",{className:"min-h-48",children:h.fields}),n.jsxs("div",{className:`flex justify-between ${m("base","pt")} border-t`,children:[n.jsx(re,{variant:"outline",onClick:b,disabled:a===0,children:"Back"}),n.jsx(re,{variant:"primary",onClick:f,children:g?"Complete":"Next"})]})]})})]})})}function Tf({items:e,searchFn:t,filterFn:r,renderItem:s,filters:a=[],searchPlaceholder:o="Search...",emptyMessage:i="No results found",showResultsCount:c=!0}){const[u,d]=l.useState(""),[f,b]=l.useState({}),p=l.useMemo(()=>{let w=e;if(u.trim()&&t){const v=u.toLowerCase();w=w.filter(y=>t(v,y))}return r&&Object.keys(f).length>0&&(w=w.filter(v=>r(f,v))),w},[e,u,f,t,r]),h=(w,v)=>{b(y=>F(A({},y),{[w]:v}))},g=()=>{b({}),d("")},k=u.trim().length>0||Object.keys(f).length>0;return n.jsx(bt,{maxWidth:"full",paddingX:"base",paddingY:"base",children:n.jsxs(zt,{spacing:"md",children:[n.jsx(ht,{padding:"medium",children:n.jsxs(zt,{spacing:"md",children:[n.jsx("div",{children:n.jsx(Pr,{placeholder:o,value:u,onSearch:d})}),a.length>0&&n.jsx("div",{className:`flex flex-wrap ${m("sm","gap")}`,children:a.map(w=>{var v;return n.jsxs("div",{className:`flex items-center ${m("sm","gap")}`,children:[n.jsxs(Te,{className:"text-fg-secondary text-sm",children:[w.label,":"]}),n.jsxs("select",{className:`${m("md","px")} ${m("xs","py")} border rounded text-sm`,"aria-label":w.label,value:String(f[w.id]||""),onChange:y=>h(w.id,y.target.value||void 0),children:[n.jsx("option",{value:"",children:"All"}),(v=w.options)==null?void 0:v.map(y=>n.jsx("option",{value:String(y.value||""),children:y.label},y.id))]})]},w.id)})}),k&&n.jsx("div",{children:n.jsx(re,{variant:"outline",size:"sm",onClick:g,children:"Clear Filters"})})]})}),c&&n.jsxs("div",{className:"text-sm text-fg-secondary",children:["Showing ",p.length," of ",e.length," results",k&&" (filtered)"]}),p.length===0?n.jsx(ht,{padding:"large",children:n.jsx("div",{className:"text-center text-fg-secondary",children:n.jsx(Te,{children:i})})}):n.jsx("div",{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 ${m("base","gap")}`,children:p.map((w,v)=>n.jsx("div",{children:s(w,v)},v))})]})})}function Af({sidebar:e,children:t,header:r,footer:s,defaultCollapsed:a=!1,sidebarProps:o}){return n.jsxs("div",{className:"flex h-screen overflow-hidden",children:[e&&n.jsx(De,F(A({defaultCollapsed:a},o),{children:e})),n.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r&&n.jsx("header",{className:"border-b bg-surface-base",children:n.jsx(bt,{maxWidth:"full",paddingX:"base",paddingY:"sm",children:r})}),n.jsx("main",{className:"flex-1 overflow-y-auto",children:n.jsx(bt,{maxWidth:"xl",paddingX:"base",paddingY:"base",children:t})}),s&&n.jsx("footer",{className:"border-t bg-surface-base",children:n.jsx(bt,{maxWidth:"full",paddingX:"base",paddingY:"sm",children:s})})]})]})}const If=xe(x("w-full flex flex-col",m("2xl","py"),m("lg","px"),m("xl","gap-y")),{variants:{variant:{plain:"",gradient:"hero-gradient","gradient-glow":x("hero-gradient","hero-glow")},align:{start:"text-left",center:"text-center"}},defaultVariants:{variant:"plain",align:"start"}}),Rf={start:"items-start",center:"items-center"},Mf={start:"justify-start",center:"justify-center"},ei=l.forwardRef(function(g,h){var k=g,{kicker:t,title:r,description:s,actions:a,kpis:o,meta:i,variant:c="plain",align:u="start",className:d,"aria-label":f,"aria-labelledby":b}=k,p=V(k,["kicker","title","description","actions","kpis","meta","variant","align","className","aria-label","aria-labelledby"]);const w=f!=null||b!=null,v=f!=null?f:typeof r=="string"?r:void 0;return typeof process!="undefined"&&process.env.NODE_ENV!=="production"&&!w&&typeof r!="string"&&console.warn("[HeroSection] A non-string `title` was provided without `aria-label` or `aria-labelledby`. The hero <section> landmark will have no accessible name. Pass `aria-label`, or set `aria-labelledby` to your title's id."),n.jsxs("section",F(A({ref:h,className:x(If({variant:c,align:u}),d),"aria-label":v,"aria-labelledby":b},p),{children:[n.jsxs("div",{className:x("flex flex-col",m("md","gap-y"),Rf[u]),children:[t?n.jsx(Te,{as:"span",variant:"caption",colorRole:"primary",colorShade:"DEFAULT",className:"text-sm font-semibold tracking-wide uppercase",children:t}):null,n.jsx(Te,{as:"h1",variant:"heading",className:"text-3xl font-bold tracking-tight sm:text-4xl",children:r}),s?n.jsx(Te,{as:"p",variant:"body",colorRole:"neutral",colorShade:"DEFAULT",className:"max-w-2xl text-base leading-relaxed sm:text-lg",children:s}):null]}),a?n.jsx("div",{className:x("flex flex-wrap",m("sm","gap"),Mf[u]),children:a}):null,o?n.jsx("div",{className:"w-full",children:o}):null,i?n.jsx(Te,{as:"p",variant:"caption",colorRole:"neutral",colorShade:"light",className:"text-sm",children:i}):null]}))});ei.displayName="HeroSection";const Df=xe(x("flex items-center","border-b"),{variants:{variant:{default:x("border-line-default",m("base","gap-x")),sub:x("border-line-muted",m("sm","gap-x"))}},defaultVariants:{variant:"default"}}),_f=xe(x("relative -mb-px inline-flex items-center",m("xs","gap-x"),"border-b-2 border-transparent","transition-colors","focus:outline-none","focus-visible:ring-2","focus-visible:ring-line-focus","focus-visible:ring-offset-2",G("sm")),{variants:{variant:{default:x(m("sm","px"),m("sm","py"),se("body")),sub:x(m("sm","px"),m("xs","py"),se("bodySmall"))},active:{true:x("border-line-brand","text-fg-brand-emphasis","font-medium"),false:x("text-fg-secondary","hover:text-fg-primary","hover:border-line-muted")}},compoundVariants:[{variant:"sub",active:!1,class:x("text-fg-tertiary","hover:text-fg-secondary")}],defaultVariants:{variant:"default",active:!1}}),Lf=x("inline-flex items-center justify-center",G("full"),m("xs","px"),"bg-surface-muted text-fg-secondary text-xs"),ti=l.forwardRef(function(d,u){var f=d,{items:t,variant:r="default",linkComponent:s,className:a,"aria-label":o,"aria-labelledby":i}=f,c=V(f,["items","variant","linkComponent","className","aria-label","aria-labelledby"]);typeof process!="undefined"&&process.env.NODE_ENV!=="production"&&!o&&!i&&console.warn('[TabsAsLinks] renders a <nav> landmark and should have an accessible name. Pass `aria-label` (e.g. "Painel") or `aria-labelledby` — multiple unnamed navs on a page are ambiguous to screen readers.');const b=s!=null?s:"a";return n.jsx("nav",F(A({ref:u,className:x(Df({variant:r}),a),"aria-label":o,"aria-labelledby":i},c),{children:t.map((p,h)=>n.jsxs(b,{href:p.href,"aria-current":p.active?"page":void 0,"data-active":p.active?"true":void 0,className:_f({variant:r,active:!!p.active}),children:[p.icon?n.jsx("span",{"aria-hidden":"true",className:"inline-flex shrink-0",children:p.icon}):null,n.jsx("span",{children:p.label}),p.count!==void 0?n.jsx("span",{className:Lf,children:p.count}):null]},p.href||h))}))});ti.displayName="TabsAsLinks";function Ff(i){var c=i,{children:e,orientation:t="horizontal",size:r="md",attached:s=!1,className:a=""}=c,o=V(c,["children","orientation","size","attached","className"]);const u={horizontal:"flex-row",vertical:"flex-col"},d={sm:s?"":m("xs","gap"),md:s?"":m("sm","gap"),lg:s?"":m("md","gap")};return n.jsx("div",F(A({role:"group",className:x("inline-flex",u[t],d[r],s&&G("md"),a)},o),{children:e}))}function Pf(e,t={}){const{rootMargin:r="0px 0px -50% 0px",threshold:s=0}=t,[a,o]=l.useState(null),i=e.join("|");return l.useEffect(()=>{if(typeof window=="undefined"||typeof IntersectionObserver=="undefined")return;const c=e.map(d=>document.getElementById(d)).filter(d=>d!==null);if(c.length===0)return;const u=new IntersectionObserver(d=>{const f=d.filter(b=>b.isIntersecting).sort((b,p)=>b.boundingClientRect.top-p.boundingClientRect.top);f.length>0&&o(f[0].target.id)},{rootMargin:r,threshold:s});return c.forEach(d=>u.observe(d)),()=>u.disconnect()},[i,r,s]),a}exports.AMBER=ft;exports.Accordion=Mu;exports.AlertDialog=gf;exports.AppProvider=Ql;exports.Autocomplete=mo;exports.AutocompleteList=Or;exports.AutocompleteOption=Fs;exports.Avatar=xr;exports.AvatarGroup=Ed;exports.BLUE=ra;exports.BRAND_COLORS=Oi;exports.BRAND_PRIMARY=it;exports.BRAND_SECONDARY=lt;exports.BREAKPOINT_TOKENS=Sr;exports.Badge=Pa;exports.Breadcrumb=to;exports.BreakpointTokenFactory=Dt;exports.Button=re;exports.ButtonGroup=Ff;exports.CHART_PALETTE_SIZE=Nt;exports.CHART_PALETTE_TOKENS=Wi;exports.COLOR_SCALES=yi;exports.CYAN=ct;exports.Card=ht;exports.Checkbox=Rr;exports.Chip=As;exports.Collapsible=Cs;exports.ColorPicker=Cu;exports.CommandPalette=Sf;exports.ConfigProvider=Ta;exports.DashboardLayout=Af;exports.DataBadge=Ga;exports.DataGrid=$f;exports.DataTablePattern=Cf;exports.DatePicker=wu;exports.DatePickerCalendar=Ls;exports.DatePickerInput=_s;exports.DatePickerProvider=hs;exports.Dialog=Oe;exports.DialogClose=dn;exports.DialogContent=un;exports.DialogContext=Cr;exports.DialogDescription=Jo;exports.DialogFooter=mn;exports.DialogHeader=fn;exports.DialogProvider=Ss;exports.DialogTitle=Xo;exports.DialogTrigger=qo;exports.Dot=Ua;exports.Drawer=Zt;exports.DrawerContent=zs;exports.DrawerFooter=go;exports.DrawerHeader=xo;exports.Dropdown=no;exports.EMERALD=ut;exports.EmptyState=so;exports.ErrorMessage=za;exports.FONT_FAMILY_TOKENS=hi;exports.FONT_WEIGHT_TOKENS=xi;exports.FUCHSIA=sa;exports.FileUpload=Su;exports.FilterChips=Wd;exports.Form=Gd;exports.FormContext=Hd;exports.FormField=pu;exports.FormProvider=qa;exports.FormWizardPattern=Ef;exports.GRAY=Jn;exports.GREEN=Zn;exports.Header=Tt;exports.HeaderActions=So;exports.HeaderComponent=Tt;exports.HeaderHamburger=$o;exports.HeaderLogo=jo;exports.HeaderMobileMenu=Co;exports.HeaderNavigation=No;exports.HeaderProvider=xs;exports.HeroSection=ei;exports.INDIGO=qn;exports.Info=rc;exports.Input=Re;exports.LIME=ia;exports.Label=Pt;exports.LoginBox=Pu;exports.Menu=Qt;exports.MenuContent=yo;exports.MenuItem=Hs;exports.MenuSeparator=wo;exports.MenuTrigger=Ws;exports.Modal=Ou;exports.MultiSelect=po;exports.NavLink=Ar;exports.Navbar=gt;exports.NavbarContext=Kr;exports.NavbarGroup=Vo;exports.NavbarItem=Oo;exports.NavbarSeparator=zo;exports.NavbarToggle=kr;exports.Navigation=Eo;exports.NavigationComponent=Eo;exports.ORANGE=ea;exports.PINK=na;exports.PRIMITIVE_COLORS=vs;exports.PURPLE=aa;exports.PageHeader=To;exports.PageHeaderComponent=To;exports.Pagination=ro;exports.Popover=Ps;exports.Progress=Es;exports.RED=ta;exports.ROSE=mt;exports.Radio=Wa;exports.Rating=Nu;exports.SEMANTIC_COLORS=$i;exports.SEMANTIC_COLORS_DARK=Nr;exports.SEMANTIC_COLORS_LIGHT=Xt;exports.SIDEBAR_TOKENS=ot;exports.SKY=pt;exports.SLATE=dt;exports.SPACING_TOKENS=jr;exports.SearchAndFilterPattern=Tf;exports.SearchInput=Pr;exports.Select=Ir;exports.Separator=Ts;exports.SideNavbar=De;exports.SideNavbarBackdrop=ln;exports.SideNavbarConfigContext=Hr;exports.SideNavbarConfigProvider=tn;exports.SideNavbarProvider=sn;exports.SideNavbarResizeHandle=on;exports.SideNavbarRoot=Po;exports.SideNavbarStateContext=Br;exports.SideNavbarStateProvider=rn;exports.SideNavbarThemeContext=Wr;exports.SideNavbarThemeProvider=en;exports.SideNavbarToggle=cn;exports.SideNavbarToggleContext=Gr;exports.Sidebar=vt;exports.SidebarContent=Bo;exports.SidebarContext=qr;exports.SidebarFooter=Uo;exports.SidebarGroup=Go;exports.SidebarHeader=Ho;exports.SidebarSlot=Ko;exports.SidebarSlotContent=Yo;exports.SidebarSlotContext=Ur;exports.SidebarSlotProvider=Lo;exports.Skeleton=Va;exports.Slider=Ba;exports.SpacingTokenFactory=je;exports.Spinner=$s;exports.Stat=Od;exports.StatGroup=Vd;exports.Stepper=Qo;exports.Switch=Ha;exports.TEAL=oa;exports.TYPOGRAPHY_TOKENS=$t;exports.Table=Me;exports.TableActions=qs;exports.TableBody=Js;exports.TableCell=Ys;exports.TableContext=zu;exports.TableEmptyState=Xs;exports.TableFilters=Zs;exports.TableHeader=Ks;exports.TableHeaderCell=Us;exports.TableHeaderRow=Gs;exports.TablePagination=Qs;exports.TableProvider=gs;exports.TableRow=yr;exports.Tabs=ju;exports.TabsAsLinks=ti;exports.TabsContent=fo;exports.TabsContext=_r;exports.TabsList=co;exports.TabsProvider=lo;exports.TabsTrigger=uo;exports.Text=Te;exports.Textarea=Oa;exports.ThemeProvider=Ca;exports.TimePicker=$u;exports.Timeline=Nf;exports.Toast=Zo;exports.ToastContainer=kf;exports.ToastContext=$r;exports.ToastProvider=Aa;exports.Tooltip=Ot;exports.TypographyTokenFactory=ge;exports.VIOLET=Xn;exports.YELLOW=Qn;exports.blendColors=ys;exports.clampWidth=pr;exports.cn=x;exports.darken=Pi;exports.defaultConfigValues=$e;exports.defaultThemeValues=Lt;exports.formatKeyboardShortcut=Qu;exports.getAnimation=Pl;exports.getAnimationClass=Ne;exports.getBreakpoint=zi;exports.getChartColor=Hi;exports.getChartColorClass=Bi;exports.getColor=Ei;exports.getColorClass=Ai;exports.getContrastColor=Li;exports.getFocusColorClass=Mi;exports.getFocusRingClass=Di;exports.getHoverColorClass=Ri;exports.getMediaQuery=Vi;exports.getNestedIndentClass=pi;exports.getOpacity=Vl;exports.getOpacityClass=Wl;exports.getPrimitiveColor=Vt;exports.getPrimitiveColorPalette=Si;exports.getSemanticColor=Yt;exports.getSemanticColorClass=Ii;exports.getSemanticColorRole=Ci;exports.getSemanticColorValue=Ti;exports.getSpacing=bi;exports.getSpacingClass=m;exports.getTransitionClass=Ol;exports.getTypography=gi;exports.getTypographyClasses=be;exports.getTypographyLineHeight=vi;exports.getTypographySize=se;exports.getTypographySizeFromFontSize=Se;exports.getTypographyWeight=Ae;exports.getTypographyWeightFromFontWeight=Ft;exports.getZIndex=zl;exports.getZIndexClass=ve;exports.isLightColor=la;exports.lighten=Fi;exports.parseKeyboardShortcut=Io;exports.parseWidthToPixels=wr;exports.useApp=ec;exports.useColumnResizing=Ku;exports.useConfig=Yl;exports.useDialogContext=Et;exports.useDialogContextOptional=Xl;exports.useFocusManagement=Do;exports.useFormContext=Is;exports.useFormContextOptional=Ud;exports.useFormFieldArray=bu;exports.useGroupState=mf;exports.useHeaderContext=Bs;exports.useKeyboardShortcut=_o;exports.useNavLink=Fa;exports.useNavbar=cf;exports.useNavbarRequired=Yr;exports.useResize=Ro;exports.useResponsiveSidebar=Mo;exports.useScrollSpy=Pf;exports.useSideNavbarCombined=hf;exports.useSideNavbarConfig=qu;exports.useSideNavbarConfigRequired=At;exports.useSideNavbarContent=bf;exports.useSideNavbarNavigation=pf;exports.useSideNavbarState=Xu;exports.useSideNavbarStateRequired=et;exports.useSideNavbarTheme=Yu;exports.useSideNavbarThemeRequired=Qe;exports.useSideNavbarToggleContext=ef;exports.useSideNavbarToggleContextRequired=Fo;exports.useSidebar=Wo;exports.useSidebarRequired=er;exports.useSidebarSlot=nn;exports.useSidebarSlotRequired=an;exports.useTableContext=Ue;exports.useTableContextOptional=Wu;exports.useTabsContext=Lr;exports.useTabsContextOptional=ku;exports.useTheme=Gl;exports.useToast=jf;exports.useToastContext=Ns;exports.useToastContextOptional=ql;exports.useVirtualScrolling=Ao;exports.validateWidthBounds=Ju;exports.withOpacity=_i;
494
494
  //# sourceMappingURL=index.cjs.map