@baolq/ui 1.0.0 → 1.1.10

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,7 +1,7 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),un=require("react"),Xt=require("@radix-ui/react-slot"),k=require("lucide-react"),fn=require("@radix-ui/react-checkbox"),xn=require("@radix-ui/react-switch"),pn=require("@radix-ui/react-radio-group"),bn=require("@radix-ui/react-label"),hn=require("@radix-ui/react-slider"),gn=require("@radix-ui/react-select"),Kt=require("input-otp"),vn=require("react-day-picker"),wn=require("@radix-ui/react-popover"),yn=require("@radix-ui/react-scroll-area"),Nn=require("@radix-ui/react-progress"),jn=require("sonner"),kn=require("@radix-ui/react-dialog"),Sn=require("@radix-ui/react-alert-dialog"),ne=require("vaul"),Cn=require("@radix-ui/react-hover-card"),Rn=require("@radix-ui/react-tooltip"),J=require("cmdk"),Pn=require("@radix-ui/react-tabs"),Mn=require("@radix-ui/react-accordion"),Tn=require("@radix-ui/react-dropdown-menu"),Dn=require("@radix-ui/react-context-menu"),zn=require("@radix-ui/react-navigation-menu"),In=require("@radix-ui/react-menubar"),Ln=require("@radix-ui/react-avatar"),An=require("embla-carousel-react"),F=require("recharts"),En=require("@radix-ui/react-separator"),_n=require("@radix-ui/react-aspect-ratio"),Fn=require("react-resizable-panels"),On=require("@radix-ui/react-toggle"),Vn=require("@radix-ui/react-toggle-group"),Gn=require("@radix-ui/react-collapsible");function G(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=G(un),ct=G(fn),dt=G(xn),Ae=G(pn),Ut=G(bn),Le=G(hn),H=G(gn),ke=G(wn),xe=G(yn),mt=G(Nn),te=G(kn),Q=G(Sn),Qe=G(Cn),Fe=G(Rn),ge=G(Pn),pe=G(Mn),B=G(Tn),q=G(Dn),Z=G(zn),V=G(In),$e=G(Ln),Xe=G(En),Wn=G(_n),pt=G(Fn),Qt=G(On),Je=G(Vn),bt=G(Gn);function Jt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Jt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Zt(){for(var e,t,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Jt(e))&&(o&&(o+=" "),o+=t);return o}const ht="-",Bn=e=>{const t=Hn(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const d=c.split(ht);return d[0]===""&&d.length!==1&&d.shift(),er(d,t)||qn(c)},getConflictingClassGroupIds:(c,d)=>{const m=r[c]||[];return d&&o[c]?[...m,...o[c]]:m}}},er=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),s=o?er(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;const n=e.join(ht);return(c=t.validators.find(({validator:d})=>d(n)))==null?void 0:c.classGroupId},Et=/^\[(.+)\]$/,qn=e=>{if(Et.test(e)){const t=Et.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Hn=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const s in r)ut(r[s],o,s,t);return o},ut=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){const n=s===""?t:_t(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Yn(s)){ut(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,c])=>{ut(c,_t(t,n),r,o)})})},_t=(e,t)=>{let r=e;return t.split(ht).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Yn=e=>e.isThemeGetter,$n=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const s=(n,c)=>{r.set(n,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let c=r.get(n);if(c!==void 0)return c;if((c=o.get(n))!==void 0)return s(n,c),c},set(n,c){r.has(n)?r.set(n,c):s(n,c)}}},ft="!",xt=":",Xn=xt.length,Kn=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=s=>{const n=[];let c=0,d=0,m=0,f;for(let h=0;h<s.length;h++){let u=s[h];if(c===0&&d===0){if(u===xt){n.push(s.slice(m,h)),m=h+Xn;continue}if(u==="/"){f=h;continue}}u==="["?c++:u==="]"?c--:u==="("?d++:u===")"&&d--}const x=n.length===0?s:s.substring(m),b=Un(x),p=b!==x,w=f&&f>m?f-m:void 0;return{modifiers:n,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:w}};if(t){const s=t+xt,n=o;o=c=>c.startsWith(s)?n(c.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(r){const s=o;o=n=>r({className:n,parseClassName:s})}return o},Un=e=>e.endsWith(ft)?e.substring(0,e.length-1):e.startsWith(ft)?e.substring(1):e,Qn=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const s=[];let n=[];return o.forEach(c=>{c[0]==="["||t[c]?(s.push(...n.sort(),c),n=[]):n.push(c)}),s.push(...n.sort()),s}},Jn=e=>({cache:$n(e.cacheSize),parseClassName:Kn(e),sortModifiers:Qn(e),...Bn(e)}),Zn=/\s+/,el=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:n}=t,c=[],d=e.trim().split(Zn);let m="";for(let f=d.length-1;f>=0;f-=1){const x=d[f],{isExternal:b,modifiers:p,hasImportantModifier:w,baseClassName:h,maybePostfixModifierPosition:u}=r(x);if(b){m=x+(m.length>0?" "+m:m);continue}let v=!!u,y=o(v?h.substring(0,u):h);if(!y){if(!v){m=x+(m.length>0?" "+m:m);continue}if(y=o(h),!y){m=x+(m.length>0?" "+m:m);continue}v=!1}const C=n(p).join(":"),S=w?C+ft:C,P=S+y;if(c.includes(P))continue;c.push(P);const R=s(y,v);for(let I=0;I<R.length;++I){const g=R[I];c.push(S+g)}m=x+(m.length>0?" "+m:m)}return m};function tl(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=tr(t))&&(o&&(o+=" "),o+=r);return o}const tr=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=tr(e[o]))&&(r&&(r+=" "),r+=t);return r};function rl(e,...t){let r,o,s,n=c;function c(m){const f=t.reduce((x,b)=>b(x),e());return r=Jn(f),o=r.cache.get,s=r.cache.set,n=d,d(m)}function d(m){const f=o(m);if(f)return f;const x=el(m,r);return s(m,x),x}return function(){return n(tl.apply(null,arguments))}}const X=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},rr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ar=/^\((?:(\w[\w-]*):)?(.+)\)$/i,al=/^\d+\/\d+$/,ol=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sl=/\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$/,nl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ll=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,il=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ye=e=>al.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),ce=e=>!!e&&Number.isInteger(Number(e)),nt=e=>e.endsWith("%")&&A(e.slice(0,-1)),ie=e=>ol.test(e),cl=()=>!0,dl=e=>sl.test(e)&&!nl.test(e),or=()=>!1,ml=e=>ll.test(e),ul=e=>il.test(e),fl=e=>!T(e)&&!D(e),xl=e=>Se(e,lr,or),T=e=>rr.test(e),ue=e=>Se(e,ir,dl),lt=e=>Se(e,vl,A),Ft=e=>Se(e,sr,or),pl=e=>Se(e,nr,ul),He=e=>Se(e,cr,ml),D=e=>ar.test(e),Te=e=>Ce(e,ir),bl=e=>Ce(e,wl),Ot=e=>Ce(e,sr),hl=e=>Ce(e,lr),gl=e=>Ce(e,nr),Ye=e=>Ce(e,cr,!0),Se=(e,t,r)=>{const o=rr.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},Ce=(e,t,r=!1)=>{const o=ar.exec(e);return o?o[1]?t(o[1]):r:!1},sr=e=>e==="position"||e==="percentage",nr=e=>e==="image"||e==="url",lr=e=>e==="length"||e==="size"||e==="bg-size",ir=e=>e==="length",vl=e=>e==="number",wl=e=>e==="family-name",cr=e=>e==="shadow",yl=()=>{const e=X("color"),t=X("font"),r=X("text"),o=X("font-weight"),s=X("tracking"),n=X("leading"),c=X("breakpoint"),d=X("container"),m=X("spacing"),f=X("radius"),x=X("shadow"),b=X("inset-shadow"),p=X("text-shadow"),w=X("drop-shadow"),h=X("blur"),u=X("perspective"),v=X("aspect"),y=X("ease"),C=X("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...P(),D,T],I=()=>["auto","hidden","clip","visible","scroll"],g=()=>["auto","contain","none"],j=()=>[D,T,m],N=()=>[ye,"full","auto",...j()],M=()=>[ce,"none","subgrid",D,T],E=()=>["auto",{span:["full",ce,D,T]},ce,D,T],z=()=>[ce,"auto",D,T],_=()=>["auto","min","max","fr",D,T],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...j()],ae=()=>[ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],L=()=>[e,D,T],Re=()=>[...P(),Ot,Ft,{position:[D,T]}],Pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Me=()=>["auto","cover","contain",hl,xl,{size:[D,T]}],ot=()=>[nt,Te,ue],U=()=>["","none","full",f,D,T],ee=()=>["",A,Te,ue],Ge=()=>["solid","dashed","dotted","double"],Lt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[A,nt,Ot,Ft],At=()=>["","none",h,D,T],We=()=>["none",A,D,T],Be=()=>["none",A,D,T],st=()=>[A,D,T],qe=()=>[ye,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ie],breakpoint:[ie],color:[cl],container:[ie],"drop-shadow":[ie],ease:["in","out","in-out"],font:[fl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ie],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ie],shadow:[ie],spacing:["px",A],text:[ie],"text-shadow":[ie],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ye,T,D,v]}],container:["container"],columns:[{columns:[A,T,D,d]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:R()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:g()}],"overscroll-x":[{"overscroll-x":g()}],"overscroll-y":[{"overscroll-y":g()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[ce,"auto",D,T]}],basis:[{basis:[ye,"full","auto",d,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[A,ye,"auto","initial","none",T]}],grow:[{grow:["",A,D,T]}],shrink:[{shrink:["",A,D,T]}],order:[{order:[ce,"first","last","none",D,T]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],w:[{w:[d,"screen",...ae()]}],"min-w":[{"min-w":[d,"screen","none",...ae()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...ae()]}],h:[{h:["screen",...ae()]}],"min-h":[{"min-h":["screen","none",...ae()]}],"max-h":[{"max-h":["screen",...ae()]}],"font-size":[{text:["base",r,Te,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,D,lt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nt,T]}],"font-family":[{font:[bl,T,t]}],"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:[s,D,T]}],"line-clamp":[{"line-clamp":[A,"none",D,lt]}],leading:[{leading:[n,...j()]}],"list-image":[{"list-image":["none",D,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",D,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[A,"from-font","auto",D,ue]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[A,"auto",D,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",D,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Re()}],"bg-repeat":[{bg:Pe()}],"bg-size":[{bg:Me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ce,D,T],radial:["",D,T],conic:[ce,D,T]},gl,pl]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:ot()}],"gradient-via-pos":[{via:ot()}],"gradient-to-pos":[{to:ot()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ge(),"hidden","none"]}],"divide-style":[{divide:[...Ge(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...Ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[A,D,T]}],"outline-w":[{outline:["",A,Te,ue]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",x,Ye,He]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",b,Ye,He]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[A,ue]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",p,Ye,He]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[A,D,T]}],"mix-blend":[{"mix-blend":[...Lt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Lt()}],"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":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[D,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Re()}],"mask-repeat":[{mask:Pe()}],"mask-size":[{mask:Me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",D,T]}],filter:[{filter:["","none",D,T]}],blur:[{blur:At()}],brightness:[{brightness:[A,D,T]}],contrast:[{contrast:[A,D,T]}],"drop-shadow":[{"drop-shadow":["","none",w,Ye,He]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",A,D,T]}],"hue-rotate":[{"hue-rotate":[A,D,T]}],invert:[{invert:["",A,D,T]}],saturate:[{saturate:[A,D,T]}],sepia:[{sepia:["",A,D,T]}],"backdrop-filter":[{"backdrop-filter":["","none",D,T]}],"backdrop-blur":[{"backdrop-blur":At()}],"backdrop-brightness":[{"backdrop-brightness":[A,D,T]}],"backdrop-contrast":[{"backdrop-contrast":[A,D,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",A,D,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,D,T]}],"backdrop-invert":[{"backdrop-invert":["",A,D,T]}],"backdrop-opacity":[{"backdrop-opacity":[A,D,T]}],"backdrop-saturate":[{"backdrop-saturate":[A,D,T]}],"backdrop-sepia":[{"backdrop-sepia":["",A,D,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",D,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[A,"initial",D,T]}],ease:[{ease:["linear","initial",y,D,T]}],delay:[{delay:[A,D,T]}],animate:[{animate:["none",C,D,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[u,D,T]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:We()}],"rotate-x":[{"rotate-x":We()}],"rotate-y":[{"rotate-y":We()}],"rotate-z":[{"rotate-z":We()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:st()}],"skew-x":[{"skew-x":st()}],"skew-y":[{"skew-y":st()}],transform:[{transform:[D,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",D,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",D,T]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[A,Te,ue,lt]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Nl=rl(yl);function l(...e){return Nl(Zt(e))}const Vt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gt=Zt,$=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return Gt(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:n}=t,c=Object.keys(s).map(f=>{const x=r==null?void 0:r[f],b=n==null?void 0:n[f];if(x===null)return null;const p=Vt(x)||Vt(b);return s[f][p]}),d=r&&Object.entries(r).reduce((f,x)=>{let[b,p]=x;return p===void 0||(f[b]=p),f},{}),m=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,x)=>{let{class:b,className:p,...w}=x;return Object.entries(w).every(h=>{let[u,v]=h;return Array.isArray(v)?v.includes({...n,...d}[u]):{...n,...d}[u]===v})?[...f,b,p]:f},[]);return Gt(e,c,m,r==null?void 0:r.class,r==null?void 0:r.className)},be=$("inline-flex items-center justify-center font-medium transition-all duration-200 outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{gradient:"bg-gradient-to-r from-purple-500 via-fuchsia-500 to-pink-500 text-white hover:shadow-lg hover:shadow-purple-500/40 hover:scale-[1.02] active:scale-[0.98]",outline:"border border-white/20 bg-white/5 text-white hover:border-purple-400/50 hover:bg-white/10 backdrop-blur-sm",ghost:"bg-transparent text-white/80 hover:bg-white/10 hover:text-white",destructive:"bg-gradient-to-r from-rose-500 to-pink-600 text-white hover:shadow-[var(--glow-danger)] hover:scale-[1.02] active:scale-[0.98]",success:"bg-gradient-to-r from-emerald-500 to-teal-500 text-white hover:shadow-[var(--glow-success)] hover:scale-[1.02] active:scale-[0.98]",secondary:"bg-white/8 text-white/90 hover:bg-white/12 border border-white/10",link:"text-purple-400 hover:text-purple-300 underline-offset-4 hover:underline"},size:{xs:"h-6 px-2.5 text-xs rounded-md gap-1",sm:"h-8 px-3 text-sm rounded-md gap-1.5",md:"h-9 px-4 text-sm rounded-lg gap-2",lg:"h-11 px-6 text-base rounded-lg gap-2",xl:"h-13 px-8 text-lg rounded-xl gap-3",icon:"size-9 rounded-lg p-0"}},defaultVariants:{variant:"gradient",size:"md"}}),Y=i.forwardRef(({className:e,variant:t,size:r,asChild:o=!1,loading:s=!1,leftIcon:n,rightIcon:c,fullWidth:d=!1,children:m,disabled:f,...x},b)=>{const p=o?Xt.Slot:"button",w=f||s,h=a.jsxs(a.Fragment,{children:[s&&a.jsx(k.Loader2,{className:"animate-spin",size:16}),!s&&n&&n,m,!s&&c&&c]});return a.jsx(p,{className:l(be({variant:t,size:r,className:e}),d&&"w-full",s&&"pointer-events-none opacity-70"),ref:b,disabled:w,"data-slot":"button",...x,children:h})});Y.displayName="Button";const jl=$("rounded-xl transition-all duration-300",{variants:{variant:{glass:"bg-white/5 border border-white/10 backdrop-blur-[12px]",gradient:"bg-white/5 backdrop-blur-[12px] border border-transparent gradient-border",solid:"bg-[var(--color-bg-secondary)] border border-white/10",outlined:"bg-transparent border border-white/20"},padding:{none:"p-0",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"glass",padding:"md"}}),dr=i.forwardRef(({className:e,variant:t,padding:r,hoverable:o=!1,bordered:s=!1,children:n,style:c,accentColor:d,...m},f)=>a.jsx("div",{ref:f,className:l(jl({variant:t,padding:r}),o&&"hover:-translate-y-1 hover:shadow-[var(--shadow-elevated)] cursor-pointer",s&&"border-2",e),style:d?{...c,borderTopColor:d}:c,"data-slot":"card",...m,children:n}));dr.displayName="Card";const mr=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("flex flex-col space-y-1.5",e),...t}));mr.displayName="CardHeader";const ur=i.forwardRef(({className:e,...t},r)=>a.jsx("h3",{ref:r,className:l("text-lg text-white",e),...t}));ur.displayName="CardTitle";const fr=i.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:l("text-sm text-white/60",e),...t}));fr.displayName="CardDescription";const xr=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("pt-0",e),...t}));xr.displayName="CardContent";const pr=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("flex items-center pt-4",e),...t}));pr.displayName="CardFooter";const br=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("absolute top-4 right-4",e),...t}));br.displayName="CardAction";const hr=$("inline-flex items-center font-medium transition-colors border",{variants:{variant:{default:"bg-white/5 border-white/10 text-white/90",gradient:"bg-gradient-to-r from-purple-500 to-fuchsia-500 border-purple-400/30 text-white",outline:"bg-transparent border-white/10 text-white/80",success:"bg-emerald-500/10 border-emerald-400/30 text-emerald-100",warning:"bg-amber-500/10 border-amber-400/30 text-amber-100",destructive:"bg-rose-500/10 border-rose-400/30 text-rose-100",info:"bg-blue-500/10 border-blue-400/30 text-blue-100",secondary:"bg-white/8 border-white/10 text-white/70"},size:{sm:"text-xs px-1.5 py-0.5 gap-0.5 rounded-md",md:"text-xs px-2 py-1 gap-1 rounded-md",lg:"text-sm px-2.5 py-1 gap-1 rounded-lg"}},defaultVariants:{variant:"default",size:"md"}}),gr=i.forwardRef(({className:e,variant:t,size:r,dot:o=!1,removable:s=!1,onRemove:n,asChild:c=!1,children:d,...m},f)=>{const x=c?Xt.Slot:"span";return a.jsxs(x,{ref:f,className:l(hr({variant:t,size:r}),e),"data-slot":"badge",...m,children:[o&&a.jsx("span",{className:l("size-1.5 rounded-full",t==="success"&&"bg-emerald-400",t==="warning"&&"bg-amber-400",t==="destructive"&&"bg-rose-400",t==="info"&&"bg-blue-400",t==="gradient"&&"bg-white",(!t||t==="default"||t==="outline"||t==="secondary")&&"bg-white/50")}),d,s&&a.jsx("button",{type:"button",onClick:b=>{b.stopPropagation(),n==null||n()},className:"ml-0.5 hover:text-white transition-colors",children:a.jsx(k.X,{size:12})})]})});gr.displayName="Badge";const vr=$("w-full rounded-lg border bg-[var(--color-bg-input)] text-white placeholder:text-[var(--color-text-placeholder)] transition-all duration-200 outline-none",{variants:{size:{sm:"h-8 px-3 text-sm",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},status:{default:"border-white/10 focus:border-purple-400/70 focus:ring-2 focus:ring-purple-400/20",error:"border-red-400/70 focus:border-red-400/70 focus:ring-2 focus:ring-red-400/20",warning:"border-amber-400/70 focus:border-amber-400/70 focus:ring-2 focus:ring-amber-400/20",success:"border-emerald-400/70 focus:border-emerald-400/70 focus:ring-2 focus:ring-emerald-400/20"}},defaultVariants:{size:"md",status:"default"}}),Oe=i.forwardRef(({className:e,type:t="text",size:r,status:o,label:s,hint:n,error:c,prefix:d,suffix:m,leftIcon:f,rightIcon:x,clearable:b=!1,onClear:p,loading:w=!1,wrapperClassName:h,value:u,...v},y)=>{const C=c?"error":o||"default",S=b&&u&&!w,P=a.jsxs("div",{className:"relative flex items-center",children:[f&&a.jsx("div",{className:"absolute left-3 text-white/40 pointer-events-none",children:f}),a.jsx("input",{type:t,className:l(vr({size:r,status:C}),f&&"pl-9",(x||w||S)&&"pr-9",e),ref:y,value:u,"data-slot":"input",...v}),w&&a.jsx("div",{className:"absolute right-3 text-white/40",children:a.jsx(k.Loader2,{size:16,className:"animate-spin"})}),!w&&S&&a.jsx("button",{type:"button",onClick:R=>{R.preventDefault(),p==null||p()},className:"absolute right-3 text-white/40 hover:text-white transition-colors",children:a.jsx(k.X,{size:16})}),!w&&!S&&x&&a.jsx("div",{className:"absolute right-3 text-white/40 pointer-events-none",children:x})]});return s||n||c||d||m?a.jsxs("div",{className:l("flex flex-col gap-1.5",h),children:[s&&a.jsx("label",{className:"text-sm font-medium text-white/80",children:s}),d||m?a.jsxs("div",{className:"flex items-center gap-2",children:[d&&a.jsx("span",{className:"text-sm text-white/60 whitespace-nowrap",children:d}),P,m&&a.jsx("span",{className:"text-sm text-white/60 whitespace-nowrap",children:m})]}):P,(n||c)&&a.jsx("p",{className:l("text-xs",c?"text-rose-400":"text-white/50"),children:c||n})]}):P});Oe.displayName="Input";const wr=i.forwardRef(({className:e,value:t,defaultValue:r,min:o=-1/0,max:s=1/0,step:n=1,precision:c,onChange:d,formatter:m,parser:f,controls:x=!0,disabled:b,...p},w)=>{const[h,u]=i.useState(r),v=i.useRef(null);i.useImperativeHandle(w,()=>v.current);const y=t??h,C=N=>N===void 0?"":m?m(N):c!==void 0?N.toFixed(c):String(N),S=N=>{if(!N)return;if(f)return f(N);const M=parseFloat(N);return isNaN(M)?void 0:M},P=N=>{if(N===void 0)return;let M=Math.max(o,Math.min(s,N));return c!==void 0&&(M=parseFloat(M.toFixed(c))),M},R=N=>{const M=S(N.target.value),E=P(M);u(E),d==null||d(E)},I=N=>{const M=y??0,E=N==="up"?M+n:M-n,z=P(E);u(z),d==null||d(z)},g=y===void 0||y+n<=s,j=y===void 0||y-n>=o;return a.jsxs("div",{className:l("relative flex items-center","rounded-md border border-[var(--color-border)]","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","transition-colors","focus-within:border-[var(--color-primary)] focus-within:ring-2 focus-within:ring-[var(--color-primary)]/20",b&&"opacity-50 cursor-not-allowed",e),children:[a.jsx("input",{ref:v,type:"text",value:C(y),onChange:R,disabled:b,className:l("flex-1 bg-transparent px-3 py-2 text-sm","text-[var(--color-text)] placeholder:text-[var(--color-text-placeholder)]","focus:outline-none",x&&"pr-0"),...p}),x&&a.jsxs("div",{className:"flex flex-col border-l border-[var(--color-border)]",children:[a.jsx(Y,{type:"button",variant:"ghost",size:"icon",disabled:b||!g,onClick:()=>I("up"),className:"h-5 w-7 rounded-none rounded-tr-md border-b border-[var(--color-border)] hover:bg-[var(--color-bg-glass-hover)]",children:a.jsx(k.Plus,{className:"h-3 w-3"})}),a.jsx(Y,{type:"button",variant:"ghost",size:"icon",disabled:b||!j,onClick:()=>I("down"),className:"h-5 w-7 rounded-none rounded-br-md hover:bg-[var(--color-bg-glass-hover)]",children:a.jsx(k.Minus,{className:"h-3 w-3"})})]})]})});wr.displayName="InputNumber";const gt=i.forwardRef(({className:e,label:t,error:r,hint:o,status:s="default",id:n,disabled:c,...d},m)=>{const f=i.useId(),x=n||f,b=`${x}-error`,p=`${x}-hint`,w=s==="error"||!!r,h={default:"border-[var(--color-border)] focus:border-[var(--color-border-focus)]",error:"border-[var(--color-border-error)] focus:border-[var(--color-border-error)]",success:"border-[var(--color-border-success)] focus:border-[var(--color-border-success)]",warning:"border-[var(--color-border-warning)] focus:border-[var(--color-border-warning)]"};return a.jsxs("div",{className:"w-full space-y-2",children:[t&&a.jsx("label",{htmlFor:x,className:"block text-sm font-medium text-[var(--color-text)]",children:t}),a.jsx("textarea",{id:x,className:l("flex min-h-[80px] w-full rounded-lg border px-4 py-3","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] placeholder:text-[var(--color-text-placeholder)]","transition-all duration-200","hover:bg-[var(--color-bg-input-hover)]","focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-bg)]","disabled:cursor-not-allowed disabled:opacity-50","resize-y",h[w?"error":s],e),ref:m,disabled:c,"aria-invalid":w?"true":"false","aria-describedby":r?b:o?p:void 0,...d}),r&&a.jsx("p",{id:b,className:"text-sm text-[var(--color-destructive)]",role:"alert",children:r}),o&&!r&&a.jsx("p",{id:p,className:"text-sm text-[var(--color-text-muted)]",children:o})]})});gt.displayName="Textarea";const Ze=i.forwardRef(({className:e,label:t,description:r,id:o,...s},n)=>{const c=i.useId(),d=o||c,m=a.jsx(ct.Root,{ref:n,id:d,className:l("peer h-5 w-5 shrink-0 rounded-md border border-[var(--color-border)]","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","transition-all duration-200","hover:bg-[var(--color-bg-input-hover)] hover:border-[var(--color-border-strong)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-[var(--color-primary)] data-[state=checked]:border-[var(--color-primary)]","data-[state=checked]:shadow-[var(--glow-primary)]",e),...s,children:a.jsx(ct.Indicator,{className:l("flex items-center justify-center text-current"),children:a.jsx(k.Check,{className:"h-4 w-4 text-white"})})});return t||r?a.jsxs("div",{className:"flex items-start gap-3",children:[m,a.jsxs("div",{className:"grid gap-1.5 leading-none",children:[t&&a.jsx("label",{htmlFor:d,className:"text-sm font-medium text-[var(--color-text)] cursor-pointer select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&a.jsx("p",{className:"text-sm text-[var(--color-text-muted)]",children:r})]})]}):m});Ze.displayName=ct.Root.displayName;const yr=i.forwardRef(({className:e,label:t,description:r,id:o,...s},n)=>{const c=i.useId(),d=o||c,m=a.jsx(dt.Root,{id:d,className:l("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","transition-all duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-[var(--color-primary)]","data-[state=checked]:shadow-[var(--glow-primary)]",e),...s,ref:n,children:a.jsx(dt.Thumb,{className:l("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0","transition-transform duration-200","data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})});return t||r?a.jsxs("div",{className:"flex items-start gap-3",children:[m,a.jsxs("div",{className:"grid gap-1.5 leading-none",children:[t&&a.jsx("label",{htmlFor:d,className:"text-sm font-medium text-[var(--color-text)] cursor-pointer select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&a.jsx("p",{className:"text-sm text-[var(--color-text-muted)]",children:r})]})]}):m});yr.displayName=dt.Root.displayName;const Nr=i.forwardRef(({className:e,...t},r)=>a.jsx(Ae.Root,{className:l("grid gap-2",e),...t,ref:r}));Nr.displayName=Ae.Root.displayName;const jr=i.forwardRef(({className:e,label:t,description:r,id:o,...s},n)=>{const c=i.useId(),d=o||c,m=a.jsx(Ae.Item,{ref:n,id:d,className:l("aspect-square h-5 w-5 rounded-full border border-[var(--color-border)]","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","transition-all duration-200","hover:bg-[var(--color-bg-input-hover)] hover:border-[var(--color-border-strong)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[var(--color-primary)]",e),...s,children:a.jsx(Ae.Indicator,{className:"flex items-center justify-center",children:a.jsx(k.Circle,{className:"h-2.5 w-2.5 fill-[var(--color-primary)] text-[var(--color-primary)]"})})});return t||r?a.jsxs("div",{className:"flex items-start gap-3",children:[m,a.jsxs("div",{className:"grid gap-1.5 leading-none",children:[t&&a.jsx("label",{htmlFor:d,className:"text-sm font-medium text-[var(--color-text)] cursor-pointer select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&a.jsx("p",{className:"text-sm text-[var(--color-text-muted)]",children:r})]})]}):m});jr.displayName=Ae.Item.displayName;const kl=$("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{variant:{default:"text-[var(--color-text)]",muted:"text-[var(--color-text-muted)]",error:"text-[var(--color-destructive)]"},required:{true:"after:content-['*'] after:ml-0.5 after:text-[var(--color-destructive)]"}},defaultVariants:{variant:"default"}}),vt=i.forwardRef(({className:e,variant:t,required:r,...o},s)=>a.jsx(Ut.Root,{ref:s,className:l(kl({variant:t,required:r}),e),...o}));vt.displayName=Ut.Root.displayName;const kr=i.forwardRef(({className:e,label:t,showValue:r,...o},s)=>{const n=o.value||o.defaultValue||[0],c=Array.isArray(n)?n[0]:n;return a.jsxs("div",{className:"w-full space-y-3",children:[(t||r)&&a.jsxs("div",{className:"flex items-center justify-between",children:[t&&a.jsx("label",{className:"text-sm font-medium text-[var(--color-text)]",children:t}),r&&a.jsx("span",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:c})]}),a.jsxs(Le.Root,{ref:s,className:l("relative flex w-full touch-none select-none items-center",e),...o,children:[a.jsx(Le.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]",children:a.jsx(Le.Range,{className:"absolute h-full bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]"})}),a.jsx(Le.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-[var(--color-primary)] bg-white shadow-lg transition-all hover:scale-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)] disabled:pointer-events-none disabled:opacity-50"})]})]})});kr.displayName=Le.Root.displayName;const Sl=H.Root,Cl=H.Group,Rl=H.Value,Sr=i.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(H.Trigger,{ref:o,className:l("flex h-11 w-full items-center justify-between rounded-lg border border-[var(--color-border)] px-4 py-2","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] placeholder:text-[var(--color-text-placeholder)]","transition-all duration-200","hover:bg-[var(--color-bg-input-hover)] hover:border-[var(--color-border-strong)]","focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-bg)]","disabled:cursor-not-allowed disabled:opacity-50","[&>span]:line-clamp-1",e),...r,children:[t,a.jsx(H.Icon,{asChild:!0,children:a.jsx(k.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Sr.displayName=H.Trigger.displayName;const wt=i.forwardRef(({className:e,...t},r)=>a.jsx(H.ScrollUpButton,{ref:r,className:l("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(k.ChevronUp,{className:"h-4 w-4"})}));wt.displayName=H.ScrollUpButton.displayName;const yt=i.forwardRef(({className:e,...t},r)=>a.jsx(H.ScrollDownButton,{ref:r,className:l("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(k.ChevronDown,{className:"h-4 w-4"})}));yt.displayName=H.ScrollDownButton.displayName;const Cr=i.forwardRef(({className:e,children:t,position:r="popper",...o},s)=>a.jsx(H.Portal,{children:a.jsxs(H.Content,{ref:s,className:l("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)]","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[a.jsx(wt,{}),a.jsx(H.Viewport,{className:l("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(yt,{})]})}));Cr.displayName=H.Content.displayName;const Rr=i.forwardRef(({className:e,...t},r)=>a.jsx(H.Label,{ref:r,className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Rr.displayName=H.Label.displayName;const Pr=i.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(H.Item,{ref:o,className:l("relative flex w-full cursor-pointer select-none items-center rounded-md py-2 pl-8 pr-2 text-sm outline-none","transition-colors duration-150","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(H.ItemIndicator,{children:a.jsx(k.Check,{className:"h-4 w-4 text-[var(--color-primary)]"})})}),a.jsx(H.ItemText,{children:t})]}));Pr.displayName=H.Item.displayName;const Mr=i.forwardRef(({className:e,...t},r)=>a.jsx(H.Separator,{ref:r,className:l("-mx-1 my-1 h-px bg-[var(--color-border)]",e),...t}));Mr.displayName=H.Separator.displayName;const Tr=i.forwardRef(({className:e,containerClassName:t,...r},o)=>a.jsx(Kt.OTPInput,{ref:o,containerClassName:l("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:l("disabled:cursor-not-allowed",e),...r}));Tr.displayName="InputOTP";const Dr=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("flex items-center",e),...t}));Dr.displayName="InputOTPGroup";const zr=i.forwardRef(({index:e,className:t,...r},o)=>{const s=i.useContext(Kt.OTPInputContext),{char:n,hasFakeCaret:c,isActive:d}=s.slots[e];return a.jsxs("div",{ref:o,className:l("relative flex h-10 w-10 items-center justify-center border-y border-r border-[var(--color-border)]","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","text-sm transition-all","first:rounded-l-md first:border-l last:rounded-r-md",d&&"z-10 ring-2 ring-[var(--color-primary)] ring-offset-[var(--color-bg)]",t),...r,children:[n,c&&a.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"h-4 w-px animate-caret-blink bg-[var(--color-text)] duration-1000"})})]})});zr.displayName="InputOTPSlot";const Ir=i.forwardRef(({...e},t)=>a.jsx("div",{ref:t,role:"separator",...e,children:a.jsx(k.Dot,{})}));Ir.displayName="InputOTPSeparator";const Lr=i.createContext({errors:{},touched:{}}),Ar=i.forwardRef(({className:e,onSubmit:t,errors:r={},touched:o={},...s},n)=>a.jsx(Lr.Provider,{value:{errors:r,touched:o},children:a.jsx("form",{ref:n,onSubmit:t,className:l("space-y-6",e),...s})}));Ar.displayName="Form";const Er=i.forwardRef(({className:e,label:t,name:r,required:o,description:s,children:n,...c},d)=>{const{errors:m,touched:f}=i.useContext(Lr),x=r&&f[r]?m[r]:void 0;return a.jsxs("div",{ref:d,className:l("space-y-2",e),...c,children:[t&&a.jsxs(vt,{htmlFor:r,children:[t,o&&a.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),n,s&&!x&&a.jsx("p",{className:"text-xs text-[var(--color-text-muted)]",children:s}),x&&a.jsx("p",{className:"text-xs text-red-500",children:x})]})});Er.displayName="FormItem";const _r=i.forwardRef(({className:e,title:t,description:r,children:o,...s},n)=>a.jsxs("div",{ref:n,className:l("space-y-4",e),...s,children:[(t||r)&&a.jsxs("div",{className:"space-y-1",children:[t&&a.jsx("h3",{className:"text-lg font-semibold text-[var(--color-text)]",children:t}),r&&a.jsx("p",{className:"text-sm text-[var(--color-text-muted)]",children:r})]}),a.jsx("div",{className:"space-y-4",children:o})]}));_r.displayName="FormSection";const Fr=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("flex items-center gap-3 pt-4",e),...t}));Fr.displayName="FormActions";function le(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function he(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Or=6048e5,Pl=864e5;let Ml={};function et(){return Ml}function Ee(e,t){var d,m,f,x;const r=et(),o=(t==null?void 0:t.weekStartsOn)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((x=(f=r.locale)==null?void 0:f.options)==null?void 0:x.weekStartsOn)??0,s=le(e),n=s.getDay(),c=(n<o?7:0)+n-o;return s.setDate(s.getDate()-c),s.setHours(0,0,0,0),s}function Ue(e){return Ee(e,{weekStartsOn:1})}function Vr(e){const t=le(e),r=t.getFullYear(),o=he(e,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Ue(o),n=he(e,0);n.setFullYear(r,0,4),n.setHours(0,0,0,0);const c=Ue(n);return t.getTime()>=s.getTime()?r+1:t.getTime()>=c.getTime()?r:r-1}function Wt(e){const t=le(e);return t.setHours(0,0,0,0),t}function Bt(e){const t=le(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Tl(e,t){const r=Wt(e),o=Wt(t),s=+r-Bt(r),n=+o-Bt(o);return Math.round((s-n)/Pl)}function Dl(e){const t=Vr(e),r=he(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Ue(r)}function zl(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Il(e){if(!zl(e)&&typeof e!="number")return!1;const t=le(e);return!isNaN(Number(t))}function Ll(e){const t=le(e),r=he(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const Al={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},El=(e,t,r)=>{let o;const s=Al[e];return typeof s=="string"?o=s:t===1?o=s.one:o=s.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function it(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const _l={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Fl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ol={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vl={date:it({formats:_l,defaultWidth:"full"}),time:it({formats:Fl,defaultWidth:"full"}),dateTime:it({formats:Ol,defaultWidth:"full"})},Gl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wl=(e,t,r,o)=>Gl[e];function De(e){return(t,r)=>{const o=r!=null&&r.context?String(r.context):"standalone";let s;if(o==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,d=r!=null&&r.width?String(r.width):c;s=e.formattingValues[d]||e.formattingValues[c]}else{const c=e.defaultWidth,d=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[d]||e.values[c]}const n=e.argumentCallback?e.argumentCallback(t):t;return s[n]}}const Bl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ql={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Hl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Yl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Xl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Kl=(e,t)=>{const r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ul={ordinalNumber:Kl,era:De({values:Bl,defaultWidth:"wide"}),quarter:De({values:ql,defaultWidth:"wide",argumentCallback:e=>e-1}),month:De({values:Hl,defaultWidth:"wide"}),day:De({values:Yl,defaultWidth:"wide"}),dayPeriod:De({values:$l,defaultWidth:"wide",formattingValues:Xl,defaultFormattingWidth:"wide"})};function ze(e){return(t,r={})=>{const o=r.width,s=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],n=t.match(s);if(!n)return null;const c=n[0],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(d)?Jl(d,b=>b.test(c)):Ql(d,b=>b.test(c));let f;f=e.valueCallback?e.valueCallback(m):m,f=r.valueCallback?r.valueCallback(f):f;const x=t.slice(c.length);return{value:f,rest:x}}}function Ql(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Jl(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Zl(e){return(t,r={})=>{const o=t.match(e.matchPattern);if(!o)return null;const s=o[0],n=t.match(e.parsePattern);if(!n)return null;let c=e.valueCallback?e.valueCallback(n[0]):n[0];c=r.valueCallback?r.valueCallback(c):c;const d=t.slice(s.length);return{value:c,rest:d}}}const ei=/^(\d+)(th|st|nd|rd)?/i,ti=/\d+/i,ri={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ai={any:[/^b/i,/^(a|c)/i]},oi={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},si={any:[/1/i,/2/i,/3/i,/4/i]},ni={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},li={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ii={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ci={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},di={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},mi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ui={ordinalNumber:Zl({matchPattern:ei,parsePattern:ti,valueCallback:e=>parseInt(e,10)}),era:ze({matchPatterns:ri,defaultMatchWidth:"wide",parsePatterns:ai,defaultParseWidth:"any"}),quarter:ze({matchPatterns:oi,defaultMatchWidth:"wide",parsePatterns:si,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ze({matchPatterns:ni,defaultMatchWidth:"wide",parsePatterns:li,defaultParseWidth:"any"}),day:ze({matchPatterns:ii,defaultMatchWidth:"wide",parsePatterns:ci,defaultParseWidth:"any"}),dayPeriod:ze({matchPatterns:di,defaultMatchWidth:"any",parsePatterns:mi,defaultParseWidth:"any"})},fi={code:"en-US",formatDistance:El,formatLong:Vl,formatRelative:Wl,localize:Ul,match:ui,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xi(e){const t=le(e);return Tl(t,Ll(t))+1}function pi(e){const t=le(e),r=+Ue(t)-+Dl(t);return Math.round(r/Or)+1}function Gr(e,t){var x,b,p,w;const r=le(e),o=r.getFullYear(),s=et(),n=(t==null?void 0:t.firstWeekContainsDate)??((b=(x=t==null?void 0:t.locale)==null?void 0:x.options)==null?void 0:b.firstWeekContainsDate)??s.firstWeekContainsDate??((w=(p=s.locale)==null?void 0:p.options)==null?void 0:w.firstWeekContainsDate)??1,c=he(e,0);c.setFullYear(o+1,0,n),c.setHours(0,0,0,0);const d=Ee(c,t),m=he(e,0);m.setFullYear(o,0,n),m.setHours(0,0,0,0);const f=Ee(m,t);return r.getTime()>=d.getTime()?o+1:r.getTime()>=f.getTime()?o:o-1}function bi(e,t){var d,m,f,x;const r=et(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((x=(f=r.locale)==null?void 0:f.options)==null?void 0:x.firstWeekContainsDate)??1,s=Gr(e,t),n=he(e,0);return n.setFullYear(s,0,o),n.setHours(0,0,0,0),Ee(n,t)}function hi(e,t){const r=le(e),o=+Ee(r,t)-+bi(r,t);return Math.round(o/Or)+1}function O(e,t){const r=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return r+o}const de={y(e,t){const r=e.getFullYear(),o=r>0?r:1-r;return O(t==="yy"?o%100:o,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):O(r+1,2)},d(e,t){return O(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return O(e.getHours()%12||12,t.length)},H(e,t){return O(e.getHours(),t.length)},m(e,t){return O(e.getMinutes(),t.length)},s(e,t){return O(e.getSeconds(),t.length)},S(e,t){const r=t.length,o=e.getMilliseconds(),s=Math.trunc(o*Math.pow(10,r-3));return O(s,t.length)}},Ne={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qt={G:function(e,t,r){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const o=e.getFullYear(),s=o>0?o:1-o;return r.ordinalNumber(s,{unit:"year"})}return de.y(e,t)},Y:function(e,t,r,o){const s=Gr(e,o),n=s>0?s:1-s;if(t==="YY"){const c=n%100;return O(c,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):O(n,t.length)},R:function(e,t){const r=Vr(e);return O(r,t.length)},u:function(e,t){const r=e.getFullYear();return O(r,t.length)},Q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return O(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return O(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){const o=e.getMonth();switch(t){case"M":case"MM":return de.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return O(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){const s=hi(e,o);return t==="wo"?r.ordinalNumber(s,{unit:"week"}):O(s,t.length)},I:function(e,t,r){const o=pi(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):O(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):de.d(e,t)},D:function(e,t,r){const o=xi(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):O(o,t.length)},E:function(e,t,r){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){const s=e.getDay(),n=(s-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return O(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){const s=e.getDay(),n=(s-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return O(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){const o=e.getDay(),s=o===0?7:o;switch(t){case"i":return String(s);case"ii":return O(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){const o=e.getHours();let s;switch(o===12?s=Ne.noon:o===0?s=Ne.midnight:s=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){const o=e.getHours();let s;switch(o>=17?s=Ne.evening:o>=12?s=Ne.afternoon:o>=4?s=Ne.morning:s=Ne.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return de.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):de.H(e,t)},K:function(e,t,r){const o=e.getHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):O(o,t.length)},k:function(e,t,r){let o=e.getHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):O(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):de.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):de.s(e,t)},S:function(e,t){return de.S(e,t)},X:function(e,t,r){const o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Yt(o);case"XXXX":case"XX":return fe(o);case"XXXXX":case"XXX":default:return fe(o,":")}},x:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"x":return Yt(o);case"xxxx":case"xx":return fe(o);case"xxxxx":case"xxx":default:return fe(o,":")}},O:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ht(o,":");case"OOOO":default:return"GMT"+fe(o,":")}},z:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ht(o,":");case"zzzz":default:return"GMT"+fe(o,":")}},t:function(e,t,r){const o=Math.trunc(e.getTime()/1e3);return O(o,t.length)},T:function(e,t,r){const o=e.getTime();return O(o,t.length)}};function Ht(e,t=""){const r=e>0?"-":"+",o=Math.abs(e),s=Math.trunc(o/60),n=o%60;return n===0?r+String(s):r+String(s)+t+O(n,2)}function Yt(e,t){return e%60===0?(e>0?"-":"+")+O(Math.abs(e)/60,2):fe(e,t)}function fe(e,t=""){const r=e>0?"-":"+",o=Math.abs(e),s=O(Math.trunc(o/60),2),n=O(o%60,2);return r+s+t+n}const $t=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Wr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},gi=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],o=r[1],s=r[2];if(!s)return $t(e,t);let n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",$t(o,t)).replace("{{time}}",Wr(s,t))},vi={p:Wr,P:gi},wi=/^D+$/,yi=/^Y+$/,Ni=["D","DD","YY","YYYY"];function ji(e){return wi.test(e)}function ki(e){return yi.test(e)}function Si(e,t,r){const o=Ci(e,t,r);if(console.warn(o),Ni.includes(e))throw new RangeError(o)}function Ci(e,t,r){const o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ri=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mi=/^'([^]*?)'?$/,Ti=/''/g,Di=/[a-zA-Z]/;function Ke(e,t,r){var x,b,p,w;const o=et(),s=o.locale??fi,n=o.firstWeekContainsDate??((b=(x=o.locale)==null?void 0:x.options)==null?void 0:b.firstWeekContainsDate)??1,c=o.weekStartsOn??((w=(p=o.locale)==null?void 0:p.options)==null?void 0:w.weekStartsOn)??0,d=le(e);if(!Il(d))throw new RangeError("Invalid time value");let m=t.match(Pi).map(h=>{const u=h[0];if(u==="p"||u==="P"){const v=vi[u];return v(h,s.formatLong)}return h}).join("").match(Ri).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const u=h[0];if(u==="'")return{isToken:!1,value:zi(h)};if(qt[u])return{isToken:!0,value:h};if(u.match(Di))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:h}});s.localize.preprocessor&&(m=s.localize.preprocessor(d,m));const f={firstWeekContainsDate:n,weekStartsOn:c,locale:s};return m.map(h=>{if(!h.isToken)return h.value;const u=h.value;(ki(u)||ji(u))&&Si(u,t,String(e));const v=qt[u[0]];return v(d,u,s.localize,f)}).join("")}function zi(e){const t=e.match(Mi);return t?t[1].replace(Ti,"'"):e}function tt({className:e,classNames:t,showOutsideDays:r=!0,...o}){return a.jsx(vn.DayPicker,{showOutsideDays:r,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium text-[var(--color-text)]",nav:"space-x-1 flex items-center",nav_button:l(be({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-[var(--color-text-muted)] rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-[var(--color-bg-glass)]/50 [&:has([aria-selected])]:bg-[var(--color-bg-glass)] first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:l(be({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-[var(--color-primary)] text-white hover:bg-[var(--color-primary)] hover:text-white focus:bg-[var(--color-primary)] focus:text-white",day_today:"bg-[var(--color-bg-glass)] text-[var(--color-text)]",day_outside:"day-outside text-[var(--color-text-muted)] opacity-50 aria-selected:bg-[var(--color-bg-glass)]/50 aria-selected:text-[var(--color-text-muted)] aria-selected:opacity-30",day_disabled:"text-[var(--color-text-muted)] opacity-50",day_range_middle:"aria-selected:bg-[var(--color-bg-glass)] aria-selected:text-[var(--color-text)]",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>a.jsx(k.ChevronLeft,{className:"h-4 w-4"}),IconRight:({...s})=>a.jsx(k.ChevronRight,{className:"h-4 w-4"})},...o})}tt.displayName="Calendar";const ve=ke.Root,we=ke.Trigger,Ii=ke.Anchor,me=i.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},s)=>a.jsx(ke.Portal,{children:a.jsx(ke.Content,{ref:s,align:t,sideOffset:r,className:l("z-50 w-72 rounded-lg border border-[var(--color-border)] p-4","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));me.displayName=ke.Content.displayName;const Br=i.forwardRef(({date:e,onDateChange:t,placeholder:r="Pick a date",disabled:o,className:s},n)=>a.jsxs(ve,{children:[a.jsx(we,{asChild:!0,children:a.jsxs(Y,{ref:n,variant:"outline",disabled:o,className:l("w-full justify-start text-left font-normal",!e&&"text-[var(--color-text-muted)]",s),children:[a.jsx(k.CalendarIcon,{className:"mr-2 h-4 w-4"}),e?Ke(e,"PPP"):a.jsx("span",{children:r})]})}),a.jsx(me,{className:"w-auto p-0",align:"start",children:a.jsx(tt,{mode:"single",selected:e,onSelect:t,initialFocus:!0})})]}));Br.displayName="DatePicker";const qr=i.forwardRef(({dateRange:e,onDateRangeChange:t,placeholder:r="Pick a date range",disabled:o,className:s},n)=>a.jsxs(ve,{children:[a.jsx(we,{asChild:!0,children:a.jsxs(Y,{ref:n,variant:"outline",disabled:o,className:l("w-full justify-start text-left font-normal",!e&&"text-[var(--color-text-muted)]",s),children:[a.jsx(k.CalendarIcon,{className:"mr-2 h-4 w-4"}),e!=null&&e.from?e.to?a.jsxs(a.Fragment,{children:[Ke(e.from,"LLL dd, y")," -"," ",Ke(e.to,"LLL dd, y")]}):Ke(e.from,"LLL dd, y"):a.jsx("span",{children:r})]})}),a.jsx(me,{className:"w-auto p-0",align:"start",children:a.jsx(tt,{mode:"range",selected:e,onSelect:t,numberOfMonths:2,initialFocus:!0})})]}));qr.displayName="DateRangePicker";const je=i.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(xe.Root,{ref:o,className:l("relative overflow-hidden",e),...r,children:[a.jsx(xe.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(Nt,{}),a.jsx(xe.Corner,{})]}));je.displayName=xe.Root.displayName;const Nt=i.forwardRef(({className:e,orientation:t="vertical",...r},o)=>a.jsx(xe.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:a.jsx(xe.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-[var(--color-border)] hover:bg-[var(--color-border-strong)] transition-colors"})}));Nt.displayName=xe.ScrollAreaScrollbar.displayName;const Hr=i.forwardRef(({value:e,defaultValue:t,onChange:r,format:o="24",minuteStep:s=1,secondStep:n=1,showSecond:c=!1,disabled:d,placeholder:m="Select time",className:f},x)=>{const[b,p]=i.useState(t),[w,h]=i.useState(!1),u=e??b,v=o==="12"?Array.from({length:12},(g,j)=>j+1):Array.from({length:24},(g,j)=>j),y=Array.from({length:60/s},(g,j)=>j*s),C=Array.from({length:60/n},(g,j)=>j*n),S=()=>{if(!u)return m;let g=u.getHours();const j=u.getMinutes(),N=u.getSeconds();let M="";return o==="12"&&(M=g>=12?" PM":" AM",g=g%12||12),(c?`${String(g).padStart(2,"0")}:${String(j).padStart(2,"0")}:${String(N).padStart(2,"0")}`:`${String(g).padStart(2,"0")}:${String(j).padStart(2,"0")}`)+M},P=(g,j)=>{const N=u?new Date(u):new Date;if(g==="hour")if(o==="12"){const M=N.getHours()>=12,E=j===12?M?12:0:j+(M?12:0);N.setHours(E)}else N.setHours(j);else g==="minute"?N.setMinutes(j):g==="second"&&N.setSeconds(j);p(N),r==null||r(N)},R=()=>{if(!u||o!=="12")return;const g=new Date(u),j=g.getHours();g.setHours((j+12)%24),p(g),r==null||r(g)},I=()=>{if(!u)return o==="12"?12:0;const g=u.getHours();return o==="12"?g%12||12:g};return a.jsxs(ve,{open:w,onOpenChange:h,children:[a.jsx(we,{asChild:!0,children:a.jsxs(Y,{ref:x,variant:"outline",disabled:d,className:l("w-full justify-start text-left font-normal",!u&&"text-[var(--color-text-muted)]",f),children:[a.jsx(k.Clock,{className:"mr-2 h-4 w-4"}),S()]})}),a.jsx(me,{className:"w-auto p-0",align:"start",children:a.jsxs("div",{className:"flex",children:[a.jsx(je,{className:"h-64 w-20",children:a.jsx("div",{className:"p-1",children:v.map(g=>a.jsx("button",{onClick:()=>P("hour",g),className:l("w-full px-3 py-2 text-sm rounded-md transition-colors text-center",I()===g?"bg-[var(--color-primary)] text-white":"hover:bg-[var(--color-bg-glass-hover)]"),children:String(g).padStart(2,"0")},g))})}),a.jsx(je,{className:"h-64 w-20 border-l border-[var(--color-border)]",children:a.jsx("div",{className:"p-1",children:y.map(g=>a.jsx("button",{onClick:()=>P("minute",g),className:l("w-full px-3 py-2 text-sm rounded-md transition-colors text-center",(u==null?void 0:u.getMinutes())===g?"bg-[var(--color-primary)] text-white":"hover:bg-[var(--color-bg-glass-hover)]"),children:String(g).padStart(2,"0")},g))})}),c&&a.jsx(je,{className:"h-64 w-20 border-l border-[var(--color-border)]",children:a.jsx("div",{className:"p-1",children:C.map(g=>a.jsx("button",{onClick:()=>P("second",g),className:l("w-full px-3 py-2 text-sm rounded-md transition-colors text-center",(u==null?void 0:u.getSeconds())===g?"bg-[var(--color-primary)] text-white":"hover:bg-[var(--color-bg-glass-hover)]"),children:String(g).padStart(2,"0")},g))})}),o==="12"&&a.jsxs("div",{className:"flex flex-col border-l border-[var(--color-border)] p-1",children:[a.jsx("button",{onClick:R,className:l("px-3 py-2 text-sm rounded-md transition-colors",u&&u.getHours()<12?"bg-[var(--color-primary)] text-white":"hover:bg-[var(--color-bg-glass-hover)]"),children:"AM"}),a.jsx("button",{onClick:R,className:l("px-3 py-2 text-sm rounded-md transition-colors mt-1",u&&u.getHours()>=12?"bg-[var(--color-primary)] text-white":"hover:bg-[var(--color-bg-glass-hover)]"),children:"PM"})]})]})})]})});Hr.displayName="TimePicker";const Li=["#f87171","#fb923c","#fbbf24","#facc15","#a3e635","#4ade80","#34d399","#2dd4bf","#22d3ee","#38bdf8","#60a5fa","#818cf8","#a78bfa","#c084fc","#e879f9","#f472b6","#fb7185","#000000"],Yr=i.forwardRef(({value:e="#000000",onChange:t,presetColors:r=Li,showInput:o=!0,disabled:s=!1,className:n},c)=>{const[d,m]=i.useState(e);i.useEffect(()=>{m(e)},[e]);const f=x=>{m(x),t==null||t(x)};return a.jsx("div",{ref:c,className:l("inline-block",n),children:a.jsxs(ve,{children:[a.jsx(we,{asChild:!0,children:a.jsx("button",{type:"button",disabled:s,className:l("h-10 w-10 rounded-md border-2 border-[var(--color-border)] transition-all","hover:border-[var(--color-border-strong)]","focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] focus:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed",n),style:{backgroundColor:d}})}),a.jsx(me,{className:"w-64",children:a.jsxs("div",{className:"space-y-4",children:[o&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Oe,{value:d,onChange:x=>f(x.target.value),placeholder:"#000000",className:"flex-1"}),a.jsx("div",{className:"h-10 w-10 rounded-md border border-[var(--color-border)]",style:{backgroundColor:d}})]}),a.jsx("div",{className:"grid grid-cols-6 gap-2",children:r.map(x=>a.jsx("button",{type:"button",className:l("h-8 w-8 rounded-md border border-[var(--color-border)] transition-all","hover:scale-110 focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)]","flex items-center justify-center"),style:{backgroundColor:x},onClick:()=>f(x),children:d.toLowerCase()===x.toLowerCase()&&a.jsx(k.Check,{className:"h-4 w-4 text-white drop-shadow-md"})},x))})]})})]})})});Yr.displayName="ColorPicker";const $r=i.forwardRef(({value:e=0,onChange:t,max:r=5,readonly:o=!1,disabled:s=!1,allowHalf:n=!1,size:c="md",className:d},m)=>{const[f,x]=i.useState(null),b={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"},p=(v,y)=>{if(o||s)return;const C=y?v+.5:v+1;t==null||t(C)},w=(v,y)=>{if(o||s)return;const C=y?v+.5:v+1;x(C)},h=()=>{x(null)},u=f??e;return a.jsx("div",{ref:m,className:l("inline-flex items-center gap-1",(o||s)&&"pointer-events-none",s&&"opacity-50",d),onMouseLeave:h,children:Array.from({length:r}).map((v,y)=>{const C=y<Math.floor(u),S=n&&y===Math.floor(u)&&u%1!==0;return a.jsxs("div",{className:"relative inline-flex cursor-pointer",children:[n&&a.jsx("div",{className:"absolute inset-0 w-1/2 z-10",onClick:()=>p(y,!0),onMouseEnter:()=>w(y,!0)}),a.jsxs("div",{className:"relative",onClick:()=>p(y,!1),onMouseEnter:()=>w(y,!1),children:[a.jsx(k.Star,{className:l(b[c],"transition-all",C||S?"fill-[var(--color-primary)] text-[var(--color-primary)]":"text-[var(--color-border-strong)]")}),S&&a.jsx("div",{className:"absolute inset-0 overflow-hidden w-1/2",children:a.jsx(k.Star,{className:l(b[c],"fill-[var(--color-primary)] text-[var(--color-primary)]")})})]})]},y)})})});$r.displayName="Rating";const Xr=i.forwardRef(({accept:e,multiple:t=!1,maxSize:r,maxCount:o,fileList:s=[],onChange:n,onRemove:c,beforeUpload:d,customRequest:m,disabled:f=!1,listType:x="text",className:b},p)=>{const w=i.useRef(null),[h,u]=i.useState(s);i.useEffect(()=>{u(s)},[s]);const v=async S=>{const P=Array.from(S.target.files||[]);for(const R of P){if(r&&R.size>r){console.error(`File ${R.name} exceeds max size`);continue}if(o&&h.length>=o){console.error("Maximum file count reached");break}if(d&&!await d(R))continue;const I={uid:`${Date.now()}-${R.name}`,name:R.name,status:"uploading",percent:0},g=[...h,I];u(g),n==null||n(g);try{if(m){const N=await m(R);I.url=N.url}else I.url=URL.createObjectURL(R);I.status="done",I.percent=100}catch{I.status="error"}const j=g.map(N=>N.uid===I.uid?I:N);u(j),n==null||n(j)}w.current&&(w.current.value="")},y=S=>{const P=h.filter(R=>R.uid!==S.uid);u(P),n==null||n(P),c==null||c(S)},C=()=>{var S;(S=w.current)==null||S.click()};return a.jsxs("div",{ref:p,className:l("space-y-4",b),children:[a.jsxs("div",{onClick:C,className:l("border-2 border-dashed border-[var(--color-border)] rounded-lg p-6","hover:border-[var(--color-primary)] transition-colors cursor-pointer","flex flex-col items-center justify-center gap-2",f&&"opacity-50 cursor-not-allowed"),children:[a.jsx(k.Upload,{className:"h-8 w-8 text-[var(--color-text-muted)]"}),a.jsx("div",{className:"text-sm text-[var(--color-text-muted)]",children:"Click to upload or drag and drop"}),a.jsx("input",{ref:w,type:"file",accept:e,multiple:t,disabled:f,onChange:v,className:"hidden"})]}),h.length>0&&a.jsx("div",{className:"space-y-2",children:h.map(S=>a.jsxs("div",{className:l("flex items-center gap-3 p-3 rounded-lg border border-[var(--color-border)]","bg-[var(--color-bg-glass)]"),children:[x==="picture"&&S.url?a.jsx("img",{src:S.url,alt:S.name,className:"h-12 w-12 object-cover rounded"}):a.jsx(k.FileIcon,{className:"h-8 w-8 text-[var(--color-text-muted)]"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"text-sm text-[var(--color-text)] truncate",children:S.name}),S.status==="uploading"&&a.jsxs("div",{className:"text-xs text-[var(--color-text-muted)]",children:["Uploading... ",S.percent,"%"]}),S.status==="error"&&a.jsx("div",{className:"text-xs text-red-500",children:"Upload failed"})]}),a.jsx(Y,{variant:"ghost",size:"icon",onClick:P=>{P.stopPropagation(),y(S)},children:a.jsx(k.X,{className:"h-4 w-4"})})]},S.uid))})]})});Xr.displayName="Upload";const Kr=i.forwardRef(({options:e,value:t,defaultValue:r="",onChange:o,onSelect:s,placeholder:n,disabled:c,className:d},m)=>{const[f,x]=i.useState(r),[b,p]=i.useState(!1),[w,h]=i.useState(0),u=i.useRef(null),v=t??f,y=i.useMemo(()=>v?e.filter(R=>R.label.toLowerCase().includes(v.toLowerCase())):e,[e,v]);i.useEffect(()=>{const R=I=>{u.current&&!u.current.contains(I.target)&&p(!1)};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[]);const C=R=>{x(R),o==null||o(R),p(!0),h(0)},S=R=>{x(R.value),o==null||o(R.value),s==null||s(R.value,R),p(!1)},P=R=>{if(!(!b||y.length===0))switch(R.key){case"ArrowDown":R.preventDefault(),h(I=>I<y.length-1?I+1:0);break;case"ArrowUp":R.preventDefault(),h(I=>I>0?I-1:y.length-1);break;case"Enter":R.preventDefault(),y[w]&&S(y[w]);break;case"Escape":p(!1);break}};return a.jsxs("div",{ref:u,className:l("relative",d),children:[a.jsx(Oe,{ref:m,value:v,onChange:R=>C(R.target.value),onFocus:()=>p(!0),onKeyDown:P,placeholder:n,disabled:c}),b&&y.length>0&&a.jsx("div",{className:l("absolute z-50 w-full mt-1 max-h-60 overflow-auto rounded-lg border border-[var(--color-border)]","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","shadow-[var(--shadow-glass)]","animate-in fade-in-0 zoom-in-95"),children:y.map((R,I)=>a.jsx("div",{onClick:()=>S(R),className:l("px-3 py-2 cursor-pointer transition-colors text-sm",I===w?"bg-[var(--color-bg-glass-hover)] text-[var(--color-text)]":"text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)]"),children:R.label},R.value))})]})});Kr.displayName="AutoComplete";const Ur=i.forwardRef(({options:e,value:t,defaultValue:r="",onChange:o,onSelect:s,prefix:n="@",placeholder:c,disabled:d,rows:m=3,className:f},x)=>{const[b,p]=i.useState(r),[w,h]=i.useState(!1),[u,v]=i.useState(""),[y,C]=i.useState({top:0,left:0}),[S,P]=i.useState(0),R=i.useRef(null),I=i.useRef(null),g=t??b,j=i.useMemo(()=>u?e.filter(z=>z.label.toLowerCase().includes(u.toLowerCase())):e,[e,u]);i.useEffect(()=>{const z=_=>{I.current&&!I.current.contains(_.target)&&h(!1)};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[]);const N=z=>{const _=z.target.value;p(_),o==null||o(_);const re=z.target.selectionStart,W=_.slice(0,re).match(new RegExp(`${n}(\\w*)$`));W?(v(W[1]),h(!0),P(0)):h(!1)},M=z=>{if(!R.current)return;const _=R.current.selectionStart,re=g.slice(0,_),oe=g.slice(_),W=re.match(new RegExp(`${n}(\\w*)$`));if(!W)return;const ae=re.slice(0,-W[0].length),L=`${ae}${n}${z.value} ${oe}`;p(L),o==null||o(L),s==null||s(z),h(!1),setTimeout(()=>{var Pe,Me;const Re=ae.length+n.length+z.value.length+1;(Pe=R.current)==null||Pe.setSelectionRange(Re,Re),(Me=R.current)==null||Me.focus()},0)},E=z=>{if(!(!w||j.length===0))switch(z.key){case"ArrowDown":z.preventDefault(),P(_=>_<j.length-1?_+1:0);break;case"ArrowUp":z.preventDefault(),P(_=>_>0?_-1:j.length-1);break;case"Enter":j[S]&&(z.preventDefault(),M(j[S]));break;case"Escape":z.preventDefault(),h(!1);break}};return a.jsxs("div",{ref:I,className:l("relative",f),children:[a.jsx(gt,{ref:z=>{typeof x=="function"?x(z):x&&(x.current=z),R.current=z},value:g,onChange:N,onKeyDown:E,placeholder:c,disabled:d,rows:m}),w&&j.length>0&&a.jsx("div",{className:l("absolute z-50 w-64 max-h-60 overflow-auto rounded-lg border border-[var(--color-border)]","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","shadow-[var(--shadow-glass)]","animate-in fade-in-0 zoom-in-95"),style:{top:"100%",marginTop:"4px"},children:j.map((z,_)=>a.jsxs("div",{onClick:()=>M(z),className:l("flex items-center gap-2 px-3 py-2 cursor-pointer transition-colors",_===S?"bg-[var(--color-bg-glass-hover)] text-[var(--color-text)]":"text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)]"),children:[z.avatar&&a.jsx("img",{src:z.avatar,alt:z.label,className:"h-6 w-6 rounded-full"}),a.jsx("div",{className:"flex-1 text-sm",children:z.label})]},z.value))})]})});Ur.displayName="Mentions";const Qr=i.forwardRef(({options:e,value:t,defaultValue:r=[],onChange:o,placeholder:s="Please select",disabled:n,changeOnSelect:c=!1,className:d},m)=>{const[f,x]=i.useState(r),[b,p]=i.useState(!1),[w,h]=i.useState([e]),u=t??f,v=S=>{const P=[];let R=e;for(const I of S){const g=R.find(j=>j.value===I);if(!g)break;P.push(g),R=g.children||[]}return P},y=(S,P)=>{if(S.disabled)return;const R=[...u.slice(0,P),S.value];S.children&&S.children.length>0?(h([...w.slice(0,P+1),S.children]),c&&(x(R),o==null||o(R,v(R)))):(x(R),o==null||o(R,v(R)),p(!1),h([e]))},C=i.useMemo(()=>{const S=v(u);return S.length>0?S.map(P=>P.label).join(" / "):s},[u,e,s]);return a.jsx("div",{ref:m,className:l("",d),children:a.jsxs(ve,{open:b,onOpenChange:p,children:[a.jsx(we,{asChild:!0,children:a.jsxs(Y,{variant:"outline",disabled:n,className:l("w-full justify-between",!u.length&&"text-[var(--color-text-muted)]"),children:[a.jsx("span",{className:"truncate",children:C}),a.jsx(k.ChevronDown,{className:"h-4 w-4 shrink-0 opacity-50"})]})}),a.jsx(me,{className:"w-auto p-0",align:"start",children:a.jsx("div",{className:"flex",children:w.map((S,P)=>a.jsx("div",{className:l("w-40 max-h-64 overflow-y-auto",P>0&&"border-l border-[var(--color-border)]"),children:S.map(R=>{const I=u[P]===R.value,g=R.children&&R.children.length>0;return a.jsxs("div",{onClick:()=>y(R,P),className:l("flex items-center justify-between px-3 py-2 cursor-pointer transition-colors text-sm",I?"bg-[var(--color-bg-glass)] text-[var(--color-primary)]":"text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)]",R.disabled&&"opacity-50 cursor-not-allowed"),children:[a.jsx("span",{className:"truncate",children:R.label}),g&&a.jsx(k.ChevronRight,{className:"h-4 w-4 shrink-0 ml-2"})]},R.value)})},P))})})]})})});Qr.displayName="Cascader";const Jr=i.forwardRef(({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,titles:n=["Source","Target"],showSearch:c=!1,className:d},m)=>{const[f,x]=i.useState([]),[b,p]=i.useState([]),[w,h]=i.useState(""),[u,v]=i.useState(""),y=e.filter(M=>!t.includes(M.key)),C=e.filter(M=>t.includes(M.key)),S=y.filter(M=>M.title.toLowerCase().includes(w.toLowerCase())),P=C.filter(M=>M.title.toLowerCase().includes(u.toLowerCase())),R=(M,E)=>{const z=E?[...f,M]:f.filter(_=>_!==M);x(z),s==null||s(z,b)},I=(M,E)=>{const z=E?[...b,M]:b.filter(_=>_!==M);p(z),s==null||s(f,z)},g=()=>{const M=[...t,...f];o==null||o(M,"right",f),x([])},j=()=>{const M=t.filter(E=>!b.includes(E));o==null||o(M,"left",b),p([])},N=(M,E,z,_,re,oe)=>a.jsxs("div",{className:"flex flex-col w-64 h-80 border border-[var(--color-border)] rounded-lg bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]",children:[a.jsxs("div",{className:"p-3 border-b border-[var(--color-border)]",children:[a.jsx("div",{className:"text-sm font-medium text-[var(--color-text)] mb-2",children:oe}),c&&a.jsx(Oe,{placeholder:"Search",value:_,onChange:W=>re(W.target.value),size:"sm"})]}),a.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:M.map(W=>a.jsxs("label",{className:l("flex items-center gap-3 p-2 rounded-md cursor-pointer transition-colors","hover:bg-[var(--color-bg-glass-hover)]",W.disabled&&"opacity-50 cursor-not-allowed"),children:[a.jsx(Ze,{checked:E.includes(W.key),onCheckedChange:ae=>z(W.key,ae),disabled:W.disabled}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"text-sm text-[var(--color-text)] truncate",children:W.title}),W.description&&a.jsx("div",{className:"text-xs text-[var(--color-text-muted)] truncate",children:W.description})]})]},W.key))})]});return a.jsxs("div",{ref:m,className:l("flex items-center gap-4",d),children:[N(S,f,R,w,h,n[0]),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(Y,{variant:"outline",size:"icon",onClick:g,disabled:f.length===0,children:a.jsx(k.ChevronRight,{className:"h-4 w-4"})}),a.jsx(Y,{variant:"outline",size:"icon",onClick:j,disabled:b.length===0,children:a.jsx(k.ChevronLeft,{className:"h-4 w-4"})})]}),N(P,b,I,u,v,n[1])]})});Jr.displayName="Transfer";const Zr=i.forwardRef(({treeData:e,value:t,defaultValue:r,onChange:o,multiple:s=!1,placeholder:n="Please select",disabled:c,treeCheckable:d=!1,className:m},f)=>{const[x,b]=i.useState(r??(s?[]:"")),[p,w]=i.useState(!1),[h,u]=i.useState([]),v=t??x,y=N=>{const M=[],E=z=>{M.push(z),z.children&&z.children.forEach(E)};return N.forEach(E),M},C=N=>y(e).find(M=>M.value===N),S=()=>{if(Array.isArray(v))return v.map(C).filter(Boolean);const N=C(v);return N?[N]:[]},P=()=>{const N=S();return N.length===0?n:N.map(M=>M.label).join(", ")},R=N=>{if(!N.disabled)if(s){const M=Array.isArray(v)?v:[],E=M.includes(N.value)?M.filter(z=>z!==N.value):[...M,N.value];b(E),o==null||o(E,S())}else b(N.value),o==null||o(N.value,[N]),w(!1)},I=N=>{u(M=>M.includes(N)?M.filter(E=>E!==N):[...M,N])},g=N=>Array.isArray(v)?v.includes(N):v===N,j=(N,M=0)=>{const E=N.children&&N.children.length>0,z=h.includes(N.value),_=g(N.value);return a.jsxs("div",{children:[a.jsxs("div",{className:l("flex items-center gap-2 py-1.5 px-2 rounded-md cursor-pointer transition-colors text-sm","hover:bg-[var(--color-bg-glass-hover)]",_&&"bg-[var(--color-bg-glass)] text-[var(--color-primary)]",N.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`${M*20+8}px`},children:[E?a.jsx("button",{onClick:()=>I(N.value),className:"shrink-0 p-0.5",children:z?a.jsx(k.ChevronDown,{className:"h-4 w-4"}):a.jsx(k.ChevronRight,{className:"h-4 w-4"})}):a.jsx("span",{className:"w-5"}),a.jsxs("div",{onClick:()=>R(N),className:"flex items-center justify-between flex-1",children:[a.jsx("span",{children:N.label}),_&&a.jsx(k.Check,{className:"h-4 w-4"})]})]}),E&&z&&a.jsx("div",{children:N.children.map(re=>j(re,M+1))})]},N.value)};return a.jsxs(ve,{open:p,onOpenChange:w,children:[a.jsx(we,{asChild:!0,children:a.jsxs(Y,{ref:f,variant:"outline",disabled:c,className:l("w-full justify-between",!S().length&&"text-[var(--color-text-muted)]",m),children:[a.jsx("span",{className:"truncate",children:P()}),a.jsx(k.ChevronDown,{className:"h-4 w-4 shrink-0 opacity-50"})]})}),a.jsx(me,{className:"w-80 p-0",align:"start",children:a.jsx(je,{className:"h-64",children:a.jsx("div",{className:"p-2",children:e.map(N=>j(N))})})})]})});Zr.displayName="TreeSelect";const Ai=$("relative w-full rounded-lg border p-4 backdrop-blur-[var(--blur-glass)] transition-all duration-200",{variants:{variant:{default:["bg-[var(--color-bg-glass)] border-[var(--color-border)]","text-[var(--color-text)]"],info:["bg-blue-500/10 border-blue-500/30","text-blue-200","[&>svg]:text-blue-400"],success:["bg-emerald-500/10 border-emerald-500/30","text-emerald-200","[&>svg]:text-emerald-400"],warning:["bg-amber-500/10 border-amber-500/30","text-amber-200","[&>svg]:text-amber-400"],error:["bg-red-500/10 border-red-500/30","text-red-200","[&>svg]:text-red-400"]}},defaultVariants:{variant:"default"}}),Ei={default:k.Info,info:k.Info,success:k.CheckCircle2,warning:k.AlertTriangle,error:k.AlertCircle},ea=i.forwardRef(({className:e,variant:t="default",title:r,icon:o,dismissible:s,onDismiss:n,children:c,...d},m)=>{const[f,x]=i.useState(!1),b=()=>{x(!0),n==null||n()};if(f)return null;const p=Ei[t||"default"],w=o!==null;return a.jsx("div",{ref:m,role:"alert",className:l(Ai({variant:t}),e),...d,children:a.jsxs("div",{className:"flex items-start gap-3",children:[w&&a.jsx("div",{className:"mt-0.5 shrink-0",children:o||a.jsx(p,{className:"h-5 w-5"})}),a.jsxs("div",{className:"flex-1 space-y-1",children:[r&&a.jsx("h5",{className:"font-semibold leading-none tracking-tight",children:r}),c&&a.jsx("div",{className:"text-sm opacity-90 [&_p]:leading-relaxed",children:c})]}),s&&a.jsx("button",{onClick:b,className:"shrink-0 rounded-md p-1 opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-bg)]","aria-label":"Dismiss alert",children:a.jsx(k.X,{className:"h-4 w-4"})})]})})});ea.displayName="Alert";const ta=i.forwardRef(({className:e,...t},r)=>a.jsx("h5",{ref:r,className:l("mb-1 font-semibold leading-none tracking-tight",e),...t}));ta.displayName="AlertTitle";const ra=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("text-sm opacity-90 [&_p]:leading-relaxed",e),...t}));ra.displayName="AlertDescription";const aa=i.forwardRef(({className:e,value:t=0,label:r,showValue:o,variant:s="default",...n},c)=>{const d=Math.min(Math.max(t??0,0),100);return a.jsxs("div",{className:"w-full space-y-2",children:[(r||o)&&a.jsxs("div",{className:"flex items-center justify-between",children:[r&&a.jsx("span",{className:"text-sm font-medium text-[var(--color-text)]",children:r}),o&&a.jsxs("span",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:[d,"%"]})]}),a.jsx(mt.Root,{ref:c,className:l("relative h-2 w-full overflow-hidden rounded-full bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]",e),...n,children:a.jsx(mt.Indicator,{className:l("h-full w-full flex-1 transition-all duration-300 ease-out",s==="gradient"?"bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]":"bg-[var(--color-primary)]"),style:{transform:`translateX(-${100-d}%)`}})})]})});aa.displayName=mt.Root.displayName;const oa=i.forwardRef(({className:e,variant:t="rect",lines:r=3,animated:o=!0,width:s,height:n,style:c,...d},m)=>{const f=l("bg-white/8 rounded-md",o&&"animate-pulse animate-shimmer");return t==="text"&&r>1?a.jsx("div",{className:l("space-y-2",e),ref:m,...d,children:Array.from({length:r}).map((x,b)=>a.jsx("div",{className:f,style:{height:"0.75rem",width:b===r-1?"80%":"100%"}},b))}):a.jsx("div",{ref:m,className:l(f,t==="circle"&&"rounded-full",t==="card"&&"h-32 w-full",e),style:{width:s,height:t==="text"?"0.75rem":n,...c},"data-slot":"skeleton",...d})});oa.displayName="Skeleton";const sa=$("animate-spin rounded-full border-2 border-current border-t-transparent",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-12 w-12"},variant:{default:"text-[var(--color-text)]",primary:"text-[var(--color-primary)]",secondary:"text-[var(--color-text-secondary)]"}},defaultVariants:{size:"md",variant:"default"}}),na=i.forwardRef(({className:e,size:t,variant:r,...o},s)=>a.jsx("div",{ref:s,className:l(sa({size:t,variant:r}),e),role:"status","aria-label":"Loading",...o,children:a.jsx("span",{className:"sr-only",children:"Loading..."})}));na.displayName="Spinner";const _i=({...e})=>a.jsx(jn.Toaster,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-[var(--color-bg-secondary)] group-[.toaster]:backdrop-blur-[var(--blur-heavy)] group-[.toaster]:text-[var(--color-text)] group-[.toaster]:border-[var(--color-border)] group-[.toaster]:shadow-[var(--shadow-elevated)] group-[.toaster]:rounded-xl",description:"group-[.toast]:text-[var(--color-text-muted)]",actionButton:"group-[.toast]:bg-[var(--color-primary)] group-[.toast]:text-white group-[.toast]:rounded-md",cancelButton:"group-[.toast]:bg-[var(--color-bg-glass)] group-[.toast]:text-[var(--color-text-muted)] group-[.toast]:rounded-md"}},...e}),la=i.forwardRef(({className:e,icon:t,title:r,description:o,action:s,...n},c)=>a.jsxs("div",{ref:c,className:l("flex flex-col items-center justify-center py-12 px-4 text-center",e),...n,children:[t&&a.jsx("div",{className:"mb-4 text-[var(--color-text-muted)] opacity-50",children:t}),a.jsx("h3",{className:"text-lg font-semibold text-[var(--color-text)] mb-2",children:r}),o&&a.jsx("p",{className:"text-sm text-[var(--color-text-muted)] max-w-sm mb-6",children:o}),s&&a.jsx("div",{children:s})]}));la.displayName="EmptyState";const ia=i.forwardRef(({status:e="info",title:t,subtitle:r,icon:o,extra:s,className:n},c)=>{const d={success:a.jsx(k.CheckCircle2,{className:"h-16 w-16 text-green-500"}),error:a.jsx(k.XCircle,{className:"h-16 w-16 text-red-500"}),warning:a.jsx(k.AlertCircle,{className:"h-16 w-16 text-yellow-500"}),info:a.jsx(k.Info,{className:"h-16 w-16 text-[var(--color-primary)]"})};return a.jsxs("div",{ref:c,className:l("flex flex-col items-center justify-center text-center py-12 px-4",n),children:[a.jsx("div",{className:"mb-6",children:o||d[e]}),a.jsx("h3",{className:"text-2xl font-semibold text-[var(--color-text)] mb-2",children:t}),r&&a.jsx("p",{className:"text-[var(--color-text-secondary)] max-w-md mb-6",children:r}),s&&a.jsx("div",{className:"flex gap-3",children:s})]})});ia.displayName="Result";const jt=i.forwardRef(({id:e,type:t="info",title:r,description:o,onClose:s},n)=>{const c={success:a.jsx(k.CheckCircle2,{className:"h-5 w-5 text-green-500"}),error:a.jsx(k.XCircle,{className:"h-5 w-5 text-red-500"}),warning:a.jsx(k.AlertCircle,{className:"h-5 w-5 text-yellow-500"}),info:a.jsx(k.Info,{className:"h-5 w-5 text-[var(--color-primary)]"})};return a.jsxs("div",{ref:n,className:l("flex gap-3 p-4 rounded-lg border border-[var(--color-border)]","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","shadow-[var(--shadow-elevated)]","animate-in slide-in-from-right-full"),children:[a.jsx("div",{className:"shrink-0",children:c[t]}),a.jsxs("div",{className:"flex-1 space-y-1",children:[a.jsx("div",{className:"text-sm font-semibold text-[var(--color-text)]",children:r}),o&&a.jsx("div",{className:"text-sm text-[var(--color-text-secondary)]",children:o})]}),a.jsx("button",{onClick:s,className:"shrink-0 text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition-colors",children:a.jsx(k.X,{className:"h-4 w-4"})})]})});jt.displayName="Notification";const Fi=({notifications:e,onRemove:t})=>a.jsx("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-3 max-w-md",children:e.map(r=>a.jsx(jt,{...r,onClose:()=>t(r.id)},r.id))}),kt=i.forwardRef(({type:e="info",content:t,duration:r=3e3,onClose:o,icon:s,className:n},c)=>{i.useEffect(()=>{if(r>0){const m=setTimeout(()=>{o==null||o()},r);return()=>clearTimeout(m)}},[r,o]);const d={success:a.jsx(k.CheckCircle2,{className:"h-5 w-5 text-green-500"}),error:a.jsx(k.XCircle,{className:"h-5 w-5 text-red-500"}),warning:a.jsx(k.AlertCircle,{className:"h-5 w-5 text-yellow-500"}),info:a.jsx(k.Info,{className:"h-5 w-5 text-blue-500"}),loading:a.jsx(k.Loader2,{className:"h-5 w-5 text-[var(--color-primary)] animate-spin"})};return a.jsxs("div",{ref:c,className:l("flex items-center gap-3 px-4 py-3 rounded-lg","bg-[var(--color-bg-elevated)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)]","shadow-[var(--shadow-elevated)]","animate-in fade-in slide-in-from-top-4",n),children:[s||d[e],a.jsx("span",{className:"flex-1 text-sm text-[var(--color-text)]",children:t}),o&&a.jsx("button",{onClick:o,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition-colors",children:a.jsx(k.X,{className:"h-4 w-4"})})]})});kt.displayName="Message";let _e=[],se=null;const Ie=(e,t,r=3e3)=>{const o=Math.random().toString(36).substring(7),s={id:o,type:e,content:t,duration:r};return _e.push(s),se==null||se(),r>0&&setTimeout(()=>{ca(o)},r),o},ca=e=>{_e=_e.filter(t=>t.id!==e),se==null||se()},da={success:(e,t)=>Ie("success",e,t),error:(e,t)=>Ie("error",e,t),warning:(e,t)=>Ie("warning",e,t),info:(e,t)=>Ie("info",e,t),loading:(e,t)=>Ie("loading",e,t),destroy:e=>{e?ca(e):(_e=[],se==null||se())}},Oi=()=>{const[e,t]=i.useState([]);return i.useEffect(()=>(se=()=>{t([..._e])},()=>{se=null}),[]),e.length===0?null:a.jsx("div",{className:"fixed top-4 left-1/2 -translate-x-1/2 z-[10000] flex flex-col gap-2",children:e.map(r=>a.jsx(kt,{type:r.type,content:r.content,duration:0,onClose:()=>da.destroy(r.id)},r.id))})},ma=te.Root,Vi=te.Trigger,ua=te.Portal,Gi=te.Close,St=i.forwardRef(({className:e,...t},r)=>a.jsx(te.Overlay,{ref:r,className:l("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));St.displayName=te.Overlay.displayName;const Ct=i.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(ua,{children:[a.jsx(St,{}),a.jsxs(te.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[var(--color-border)] p-6 shadow-[var(--shadow-elevated)]","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","rounded-xl","duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...r,children:[t,a.jsxs(te.Close,{className:"absolute right-4 top-4 rounded-md opacity-70 ring-offset-[var(--color-bg)] transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] focus:ring-offset-2 disabled:pointer-events-none",children:[a.jsx(k.X,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ct.displayName=te.Content.displayName;const fa=({className:e,...t})=>a.jsx("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});fa.displayName="DialogHeader";const xa=({className:e,...t})=>a.jsx("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xa.displayName="DialogFooter";const pa=i.forwardRef(({className:e,...t},r)=>a.jsx(te.Title,{ref:r,className:l("text-lg font-semibold leading-none tracking-tight text-[var(--color-text)]",e),...t}));pa.displayName=te.Title.displayName;const ba=i.forwardRef(({className:e,...t},r)=>a.jsx(te.Description,{ref:r,className:l("text-sm text-[var(--color-text-muted)]",e),...t}));ba.displayName=te.Description.displayName;const Wi=Q.Root,Bi=Q.Trigger,ha=Q.Portal,Rt=i.forwardRef(({className:e,...t},r)=>a.jsx(Q.Overlay,{className:l("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));Rt.displayName=Q.Overlay.displayName;const ga=i.forwardRef(({className:e,...t},r)=>a.jsxs(ha,{children:[a.jsx(Rt,{}),a.jsx(Q.Content,{ref:r,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[var(--color-border)] p-6 shadow-[var(--shadow-elevated)] duration-200","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","rounded-xl","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...t})]}));ga.displayName=Q.Content.displayName;const va=({className:e,...t})=>a.jsx("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});va.displayName="AlertDialogHeader";const wa=({className:e,...t})=>a.jsx("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});wa.displayName="AlertDialogFooter";const ya=i.forwardRef(({className:e,...t},r)=>a.jsx(Q.Title,{ref:r,className:l("text-lg font-semibold text-[var(--color-text)]",e),...t}));ya.displayName=Q.Title.displayName;const Na=i.forwardRef(({className:e,...t},r)=>a.jsx(Q.Description,{ref:r,className:l("text-sm text-[var(--color-text-muted)]",e),...t}));Na.displayName=Q.Description.displayName;const ja=i.forwardRef(({className:e,...t},r)=>a.jsx(Q.Action,{ref:r,className:l(be({variant:"gradient"}),e),...t}));ja.displayName=Q.Action.displayName;const ka=i.forwardRef(({className:e,...t},r)=>a.jsx(Q.Cancel,{ref:r,className:l(be({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));ka.displayName=Q.Cancel.displayName;const Sa=({shouldScaleBackground:e=!0,...t})=>a.jsx(ne.Drawer.Root,{shouldScaleBackground:e,...t});Sa.displayName="Sheet";const qi=ne.Drawer.Trigger,Ca=ne.Drawer.Portal,Hi=ne.Drawer.Close,Pt=i.forwardRef(({className:e,...t},r)=>a.jsx(ne.Drawer.Overlay,{ref:r,className:l("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm",e),...t}));Pt.displayName=ne.Drawer.Overlay.displayName;const Ra=i.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(Ca,{children:[a.jsx(Pt,{}),a.jsxs(ne.Drawer.Content,{ref:o,className:l("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border border-[var(--color-border)]","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]",e),...r,children:[a.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-[var(--color-border)]"}),t]})]}));Ra.displayName="SheetContent";const Pa=({className:e,...t})=>a.jsx("div",{className:l("grid gap-1.5 p-4 text-center sm:text-left",e),...t});Pa.displayName="SheetHeader";const Ma=({className:e,...t})=>a.jsx("div",{className:l("mt-auto flex flex-col gap-2 p-4",e),...t});Ma.displayName="SheetFooter";const Ta=i.forwardRef(({className:e,...t},r)=>a.jsx(ne.Drawer.Title,{ref:r,className:l("text-lg font-semibold leading-none tracking-tight text-[var(--color-text)]",e),...t}));Ta.displayName=ne.Drawer.Title.displayName;const Da=i.forwardRef(({className:e,...t},r)=>a.jsx(ne.Drawer.Description,{ref:r,className:l("text-sm text-[var(--color-text-muted)]",e),...t}));Da.displayName=ne.Drawer.Description.displayName;const za=i.forwardRef(({open:e=!1,onOpenChange:t,placement:r="right",width:o=378,height:s=378,title:n,children:c,footer:d,closable:m=!0,mask:f=!0,maskClosable:x=!0,className:b},p)=>{i.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]);const w=()=>{x&&(t==null||t(!1))},h=()=>{t==null||t(!1)};if(!e)return null;const u={left:{left:0,top:0,bottom:0,width:typeof o=="number"?`${o}px`:o,transform:e?"translateX(0)":"translateX(-100%)"},right:{right:0,top:0,bottom:0,width:typeof o=="number"?`${o}px`:o,transform:e?"translateX(0)":"translateX(100%)"},top:{left:0,top:0,right:0,height:typeof s=="number"?`${s}px`:s,transform:e?"translateY(0)":"translateY(-100%)"},bottom:{left:0,bottom:0,right:0,height:typeof s=="number"?`${s}px`:s,transform:e?"translateY(0)":"translateY(100%)"}};return a.jsxs(a.Fragment,{children:[f&&a.jsx("div",{className:l("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm","animate-in fade-in"),onClick:w}),a.jsxs("div",{ref:p,className:l("fixed z-50 flex flex-col","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","border-[var(--color-border)] shadow-[var(--shadow-elevated)]",r==="left"&&"border-r",r==="right"&&"border-l",r==="top"&&"border-b",r==="bottom"&&"border-t","transition-transform duration-300",b),style:u[r],children:[(n||m)&&a.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[var(--color-border)]",children:[n&&a.jsx("h3",{className:"text-lg font-semibold text-[var(--color-text)]",children:n}),m&&a.jsx(Y,{variant:"ghost",size:"icon",onClick:h,className:"ml-auto",children:a.jsx(k.X,{className:"h-4 w-4"})})]}),a.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4",children:c}),d&&a.jsx("div",{className:"px-6 py-4 border-t border-[var(--color-border)]",children:d})]})]})});za.displayName="Drawer";const Ia=i.forwardRef(({open:e=!1,onOpenChange:t,title:r,children:o,footer:s,width:n=520,centered:c=!0,closable:d=!0,maskClosable:m=!0,className:f},x)=>{i.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]);const b=()=>{m&&(t==null||t(!1))},p=()=>{t==null||t(!1)};return e?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:l("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm","animate-in fade-in"),onClick:b}),a.jsx("div",{className:l("fixed z-50",c?"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2":"left-1/2 top-[100px] -translate-x-1/2","animate-in fade-in zoom-in-95"),children:a.jsxs("div",{ref:x,className:l("flex flex-col rounded-xl border border-[var(--color-border)]","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","shadow-[var(--shadow-elevated)]",f),style:{width:typeof n=="number"?`${n}px`:n},onClick:w=>w.stopPropagation(),children:[(r||d)&&a.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[var(--color-border)]",children:[r&&a.jsx("h3",{className:"text-lg font-semibold text-[var(--color-text)]",children:r}),d&&a.jsx(Y,{variant:"ghost",size:"icon",onClick:p,className:"ml-auto",children:a.jsx(k.X,{className:"h-4 w-4"})})]}),a.jsx("div",{className:"px-6 py-4 max-h-[70vh] overflow-y-auto",children:o}),s&&a.jsx("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-[var(--color-border)]",children:s})]})})]}):null});Ia.displayName="Modal";const Yi=Qe.Root,$i=Qe.Trigger,La=i.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},s)=>a.jsx(Qe.Content,{ref:s,align:t,sideOffset:r,className:l("z-50 w-64 rounded-lg border border-[var(--color-border)] p-4","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));La.displayName=Qe.Content.displayName;const Aa=Fe.Provider,Ea=Fe.Root,_a=Fe.Trigger,Mt=i.forwardRef(({className:e,sideOffset:t=4,...r},o)=>a.jsx(Fe.Content,{ref:o,sideOffset:t,className:l("z-50 overflow-hidden rounded-md border border-[var(--color-border)]","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","px-3 py-1.5 text-sm text-[var(--color-text)]","shadow-[var(--shadow-glass)]","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Mt.displayName=Fe.Content.displayName;const Tt=i.forwardRef(({className:e,...t},r)=>a.jsx(J.Command,{ref:r,className:l("flex h-full w-full flex-col overflow-hidden rounded-lg","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)]",e),...t}));Tt.displayName=J.Command.displayName;const Xi=({children:e,...t})=>a.jsx(ma,{...t,children:a.jsx(Ct,{className:"overflow-hidden p-0",children:a.jsx(Tt,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--color-text-muted)] [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Fa=i.forwardRef(({className:e,...t},r)=>a.jsxs("div",{className:"flex items-center border-b border-[var(--color-border)] px-3","cmdk-input-wrapper":"",children:[a.jsx(k.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),a.jsx(J.Command.Input,{ref:r,className:l("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none","placeholder:text-[var(--color-text-placeholder)]","disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Fa.displayName=J.Command.Input.displayName;const Oa=i.forwardRef(({className:e,...t},r)=>a.jsx(J.Command.List,{ref:r,className:l("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Oa.displayName=J.Command.List.displayName;const Va=i.forwardRef((e,t)=>a.jsx(J.Command.Empty,{ref:t,className:"py-6 text-center text-sm text-[var(--color-text-muted)]",...e}));Va.displayName=J.Command.Empty.displayName;const Ga=i.forwardRef(({className:e,...t},r)=>a.jsx(J.Command.Group,{ref:r,className:l("overflow-hidden p-1 text-[var(--color-text)]","[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--color-text-muted)]",e),...t}));Ga.displayName=J.Command.Group.displayName;const Wa=i.forwardRef(({className:e,...t},r)=>a.jsx(J.Command.Separator,{ref:r,className:l("-mx-1 h-px bg-[var(--color-border)]",e),...t}));Wa.displayName=J.Command.Separator.displayName;const Ba=i.forwardRef(({className:e,...t},r)=>a.jsx(J.Command.Item,{ref:r,className:l("relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","aria-selected:bg-[var(--color-bg-glass-hover)] aria-selected:text-[var(--color-text)]","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",e),...t}));Ba.displayName=J.Command.Item.displayName;const qa=({className:e,...t})=>a.jsx("span",{className:l("ml-auto text-xs tracking-widest text-[var(--color-text-muted)]",e),...t});qa.displayName="CommandShortcut";const Ki=ge.Root,Ha=i.forwardRef(({className:e,...t},r)=>a.jsx(ge.List,{ref:r,className:l("inline-flex h-11 items-center justify-center rounded-lg","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)] p-1",e),...t}));Ha.displayName=ge.List.displayName;const Ya=i.forwardRef(({className:e,...t},r)=>a.jsx(ge.Trigger,{ref:r,className:l("inline-flex items-center justify-center whitespace-nowrap rounded-md px-4 py-2","text-sm font-medium text-[var(--color-text-secondary)]","ring-offset-[var(--color-bg)] transition-all","hover:text-[var(--color-text)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-[var(--color-bg-elevated)] data-[state=active]:text-[var(--color-text)] data-[state=active]:shadow-sm",e),...t}));Ya.displayName=ge.Trigger.displayName;const $a=i.forwardRef(({className:e,...t},r)=>a.jsx(ge.Content,{ref:r,className:l("mt-4 ring-offset-[var(--color-bg)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2",e),...t}));$a.displayName=ge.Content.displayName;const Ui=pe.Root,Xa=i.forwardRef(({className:e,...t},r)=>a.jsx(pe.Item,{ref:r,className:l("border-b border-[var(--color-border)]",e),...t}));Xa.displayName="AccordionItem";const Ka=i.forwardRef(({className:e,children:t,...r},o)=>a.jsx(pe.Header,{className:"flex",children:a.jsxs(pe.Trigger,{ref:o,className:l("flex flex-1 items-center justify-between py-4 font-medium text-[var(--color-text)]","transition-all hover:text-[var(--color-text-secondary)]","[&[data-state=open]>svg]:rotate-180",e),...r,children:[t,a.jsx(k.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Ka.displayName=pe.Trigger.displayName;const Ua=i.forwardRef(({className:e,children:t,...r},o)=>a.jsx(pe.Content,{ref:o,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:a.jsx("div",{className:l("pb-4 pt-0 text-[var(--color-text-secondary)]",e),children:t})}));Ua.displayName=pe.Content.displayName;const Qi=B.Root,Ji=B.Trigger,Zi=B.Group,ec=B.Portal,tc=B.Sub,rc=B.RadioGroup,Qa=i.forwardRef(({className:e,inset:t,children:r,...o},s)=>a.jsxs(B.SubTrigger,{ref:s,className:l("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[state=open]:bg-[var(--color-bg-glass-hover)]",t&&"pl-8",e),...o,children:[r,a.jsx(k.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Qa.displayName=B.SubTrigger.displayName;const Ja=i.forwardRef(({className:e,...t},r)=>a.jsx(B.SubContent,{ref:r,className:l("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Ja.displayName=B.SubContent.displayName;const Za=i.forwardRef(({className:e,sideOffset:t=4,...r},o)=>a.jsx(B.Portal,{children:a.jsx(B.Content,{ref:o,sideOffset:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Za.displayName=B.Content.displayName;const eo=i.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(B.Item,{ref:o,className:l("relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));eo.displayName=B.Item.displayName;const to=i.forwardRef(({className:e,children:t,checked:r,...o},s)=>a.jsxs(B.CheckboxItem,{ref:s,className:l("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(B.ItemIndicator,{children:a.jsx(k.Check,{className:"h-4 w-4 text-[var(--color-primary)]"})})}),t]}));to.displayName=B.CheckboxItem.displayName;const ro=i.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(B.RadioItem,{ref:o,className:l("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(B.ItemIndicator,{children:a.jsx(k.Circle,{className:"h-2 w-2 fill-[var(--color-primary)] text-[var(--color-primary)]"})})}),t]}));ro.displayName=B.RadioItem.displayName;const ao=i.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(B.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold text-[var(--color-text)]",t&&"pl-8",e),...r}));ao.displayName=B.Label.displayName;const oo=i.forwardRef(({className:e,...t},r)=>a.jsx(B.Separator,{ref:r,className:l("-mx-1 my-1 h-px bg-[var(--color-border)]",e),...t}));oo.displayName=B.Separator.displayName;const so=({className:e,...t})=>a.jsx("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});so.displayName="DropdownMenuShortcut";const ac=q.Root,oc=q.Trigger,sc=q.Group,nc=q.Portal,lc=q.Sub,ic=q.RadioGroup,no=i.forwardRef(({className:e,inset:t,children:r,...o},s)=>a.jsxs(q.SubTrigger,{ref:s,className:l("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","hover:bg-[var(--color-bg-glass-hover)] focus:bg-[var(--color-bg-glass-hover)]","data-[state=open]:bg-[var(--color-bg-glass-hover)]",t&&"pl-8",e),...o,children:[r,a.jsx(k.ChevronRight,{className:"ml-auto h-4 w-4"})]}));no.displayName=q.SubTrigger.displayName;const lo=i.forwardRef(({className:e,...t},r)=>a.jsx(q.SubContent,{ref:r,className:l("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));lo.displayName=q.SubContent.displayName;const io=i.forwardRef(({className:e,...t},r)=>a.jsx(q.Portal,{children:a.jsx(q.Content,{ref:r,className:l("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));io.displayName=q.Content.displayName;const co=i.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(q.Item,{ref:o,className:l("relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)] focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));co.displayName=q.Item.displayName;const mo=i.forwardRef(({className:e,children:t,checked:r,...o},s)=>a.jsxs(q.CheckboxItem,{ref:s,className:l("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)] focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(q.ItemIndicator,{children:a.jsx(k.Check,{className:"h-4 w-4 text-[var(--color-primary)]"})})}),t]}));mo.displayName=q.CheckboxItem.displayName;const uo=i.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(q.RadioItem,{ref:o,className:l("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)] focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(q.ItemIndicator,{children:a.jsx(k.Circle,{className:"h-2 w-2 fill-[var(--color-primary)] text-[var(--color-primary)]"})})}),t]}));uo.displayName=q.RadioItem.displayName;const fo=i.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(q.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold text-[var(--color-text)]",t&&"pl-8",e),...r}));fo.displayName=q.Label.displayName;const xo=i.forwardRef(({className:e,...t},r)=>a.jsx(q.Separator,{ref:r,className:l("-mx-1 my-1 h-px bg-[var(--color-border)]",e),...t}));xo.displayName=q.Separator.displayName;const po=({className:e,...t})=>a.jsx("span",{className:l("ml-auto text-xs tracking-widest text-[var(--color-text-muted)]",e),...t});po.displayName="ContextMenuShortcut";const bo=i.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(Z.Root,{ref:o,className:l("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,a.jsx(Dt,{})]}));bo.displayName=Z.Root.displayName;const ho=i.forwardRef(({className:e,...t},r)=>a.jsx(Z.List,{ref:r,className:l("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));ho.displayName=Z.List.displayName;const cc=Z.Item,go=$("group inline-flex h-10 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)] focus:bg-[var(--color-bg-glass-hover)] focus:text-[var(--color-text)] focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-[var(--color-bg-glass)] data-[state=open]:bg-[var(--color-bg-glass-hover)]"),vo=i.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(Z.Trigger,{ref:o,className:l(go(),"group",e),...r,children:[t," ",a.jsx(k.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));vo.displayName=Z.Trigger.displayName;const wo=i.forwardRef(({className:e,...t},r)=>a.jsx(Z.Content,{ref:r,className:l("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));wo.displayName=Z.Content.displayName;const dc=Z.Link,Dt=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:l("absolute left-0 top-full flex justify-center"),children:a.jsx(Z.Viewport,{className:l("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-lg border border-[var(--color-border)]","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90","md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:r,...t})}));Dt.displayName=Z.Viewport.displayName;const yo=i.forwardRef(({className:e,...t},r)=>a.jsx(Z.Indicator,{ref:r,className:l("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:a.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-[var(--color-border)] shadow-md"})}));yo.displayName=Z.Indicator.displayName;const mc=V.Menu,uc=V.Group,fc=V.Portal,xc=V.Sub,pc=V.RadioGroup,No=i.forwardRef(({className:e,...t},r)=>a.jsx(V.Root,{ref:r,className:l("flex h-11 items-center space-x-1 rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]",e),...t}));No.displayName=V.Root.displayName;const jo=i.forwardRef(({className:e,...t},r)=>a.jsx(V.Trigger,{ref:r,className:l("flex cursor-default select-none items-center rounded-md px-3 py-1.5 text-sm font-medium outline-none","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[state=open]:bg-[var(--color-bg-glass-hover)]",e),...t}));jo.displayName=V.Trigger.displayName;const ko=i.forwardRef(({className:e,inset:t,children:r,...o},s)=>a.jsxs(V.SubTrigger,{ref:s,className:l("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[state=open]:bg-[var(--color-bg-glass-hover)]",t&&"pl-8",e),...o,children:[r,a.jsx(k.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ko.displayName=V.SubTrigger.displayName;const So=i.forwardRef(({className:e,...t},r)=>a.jsx(V.SubContent,{ref:r,className:l("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));So.displayName=V.SubContent.displayName;const Co=i.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:o=8,...s},n)=>a.jsx(V.Portal,{children:a.jsx(V.Content,{ref:n,align:t,alignOffset:r,sideOffset:o,className:l("z-50 min-w-[12rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));Co.displayName=V.Content.displayName;const Ro=i.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(V.Item,{ref:o,className:l("relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));Ro.displayName=V.Item.displayName;const Po=i.forwardRef(({className:e,children:t,checked:r,...o},s)=>a.jsxs(V.CheckboxItem,{ref:s,className:l("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(V.ItemIndicator,{children:a.jsx(k.Check,{className:"h-4 w-4 text-[var(--color-primary)]"})})}),t]}));Po.displayName=V.CheckboxItem.displayName;const Mo=i.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(V.RadioItem,{ref:o,className:l("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(V.ItemIndicator,{children:a.jsx(k.Circle,{className:"h-2 w-2 fill-[var(--color-primary)] text-[var(--color-primary)]"})})}),t]}));Mo.displayName=V.RadioItem.displayName;const To=i.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(V.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold text-[var(--color-text)]",t&&"pl-8",e),...r}));To.displayName=V.Label.displayName;const Do=i.forwardRef(({className:e,...t},r)=>a.jsx(V.Separator,{ref:r,className:l("-mx-1 my-1 h-px bg-[var(--color-border)]",e),...t}));Do.displayName=V.Separator.displayName;const zo=({className:e,...t})=>a.jsx("span",{className:l("ml-auto text-xs tracking-widest text-[var(--color-text-muted)]",e),...t});zo.displayName="MenubarShortcut";const Io=i.forwardRef(({...e},t)=>a.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Io.displayName="Breadcrumb";const Lo=i.forwardRef(({className:e,...t},r)=>a.jsx("ol",{ref:r,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-[var(--color-text-muted)]",e),...t}));Lo.displayName="BreadcrumbList";const Ao=i.forwardRef(({className:e,...t},r)=>a.jsx("li",{ref:r,className:l("inline-flex items-center gap-1.5",e),...t}));Ao.displayName="BreadcrumbItem";const Eo=i.forwardRef(({className:e,...t},r)=>a.jsx("a",{ref:r,className:l("transition-colors hover:text-[var(--color-text)]",e),...t}));Eo.displayName="BreadcrumbLink";const _o=i.forwardRef(({className:e,...t},r)=>a.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-[var(--color-text)]",e),...t}));_o.displayName="BreadcrumbPage";const Fo=({children:e,className:t,...r})=>a.jsx("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:size-3.5",t),...r,children:e??a.jsx(k.ChevronRight,{})});Fo.displayName="BreadcrumbSeparator";const Oo=({className:e,...t})=>a.jsxs("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[a.jsx(k.MoreHorizontal,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"More"})]});Oo.displayName="BreadcrumbEllipsis";const Vo=({className:e,...t})=>a.jsx("nav",{role:"navigation","aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),...t});Vo.displayName="Pagination";const Go=i.forwardRef(({className:e,...t},r)=>a.jsx("ul",{ref:r,className:l("flex flex-row items-center gap-1",e),...t}));Go.displayName="PaginationContent";const Wo=i.forwardRef(({className:e,...t},r)=>a.jsx("li",{ref:r,className:l("",e),...t}));Wo.displayName="PaginationItem";const rt=({className:e,isActive:t,size:r="icon",...o})=>a.jsx("a",{"aria-current":t?"page":void 0,className:l(be({variant:t?"gradient":"ghost",size:r}),e),...o});rt.displayName="PaginationLink";const Bo=({className:e,...t})=>a.jsxs(rt,{"aria-label":"Go to previous page",size:"md",className:l("gap-1 pl-2.5",e),...t,children:[a.jsx(k.ChevronLeft,{className:"h-4 w-4"}),a.jsx("span",{children:"Previous"})]});Bo.displayName="PaginationPrevious";const qo=({className:e,...t})=>a.jsxs(rt,{"aria-label":"Go to next page",size:"md",className:l("gap-1 pr-2.5",e),...t,children:[a.jsx("span",{children:"Next"}),a.jsx(k.ChevronRight,{className:"h-4 w-4"})]});qo.displayName="PaginationNext";const Ho=({className:e,...t})=>a.jsxs("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[a.jsx(k.MoreHorizontal,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"More pages"})]});Ho.displayName="PaginationEllipsis";const Yo=i.forwardRef(({links:e,activeLink:t,onChange:r,offsetTop:o=0,targetOffset:s,className:n},c)=>{const[d,m]=i.useState(""),f=t??d;i.useEffect(()=>{const p=()=>{const w=window.scrollY+(s??window.innerHeight/2),h=e.flatMap(v=>{var S;const y={href:v.href,el:document.querySelector(v.href)},C=((S=v.children)==null?void 0:S.map(P=>({href:P.href,el:document.querySelector(P.href)})))||[];return[y,...C]});let u="";for(const v of h)v.el&&v.el.getBoundingClientRect().top+window.scrollY<=w&&(u=v.href);u&&u!==f&&(m(u),r==null||r(u))};return window.addEventListener("scroll",p),p(),()=>window.removeEventListener("scroll",p)},[e,f,r,s]);const x=(p,w)=>{p.preventDefault();const h=document.querySelector(w);if(h){const u=h.getBoundingClientRect().top+window.scrollY-o;window.scrollTo({top:u,behavior:"smooth"}),m(w),r==null||r(w)}},b=(p,w=0)=>{const h=f===p.href;return a.jsxs("div",{children:[a.jsx("a",{href:p.href,onClick:u=>x(u,p.href),className:l("block py-1 text-sm transition-colors border-l-2",w===0?"pl-4":"pl-8",h?"border-[var(--color-primary)] text-[var(--color-primary)] font-medium":"border-transparent text-[var(--color-text-secondary)] hover:text-[var(--color-text)] hover:border-[var(--color-border-strong)]"),children:p.title}),p.children&&p.children.length>0&&a.jsx("div",{className:"ml-2",children:p.children.map(u=>b(u,w+1))})]},p.key)};return a.jsx("div",{ref:c,className:l("space-y-1",n),style:{position:"sticky",top:o},children:e.map(p=>b(p))})});Yo.displayName="Anchor";const $o=$("flex w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"},size:{sm:"",md:"",lg:""}},defaultVariants:{direction:"horizontal",size:"md"}}),Xo=i.forwardRef(({className:e,direction:t="horizontal",size:r="md",current:o=0,status:s="process",items:n,onStepChange:c,type:d="default",...m},f)=>{const b={sm:{circle:"h-6 w-6 text-xs",title:"text-xs",description:"text-xs"},md:{circle:"h-8 w-8 text-sm",title:"text-sm",description:"text-xs"},lg:{circle:"h-10 w-10 text-base",title:"text-base",description:"text-sm"}}[r??"md"],p=u=>u<o?"finish":u===o?s:"wait",w=(u,v)=>{const y=p(u),C=l("flex items-center justify-center rounded-full border-2 transition-all",b.circle,y==="finish"&&["bg-[var(--color-primary)] border-[var(--color-primary)] text-white"],y==="process"&&["border-[var(--color-primary)] text-[var(--color-primary)] bg-[var(--color-bg-glass)]"],y==="error"&&["bg-red-500 border-red-500 text-white"],y==="wait"&&["border-[var(--color-border)] text-[var(--color-text-muted)] bg-transparent"]);return a.jsx("div",{className:C,children:y==="finish"?a.jsx(k.Check,{className:"h-4 w-4"}):v.icon?v.icon:a.jsx("span",{className:"font-semibold",children:u+1})})},h=(u,v)=>{const y=p(v),C=v===n.length-1,S=c&&v<n.length;return a.jsxs("div",{className:l("flex flex-1",t==="horizontal"?"flex-col items-center":"flex-row",S&&"cursor-pointer"),onClick:()=>S&&c(v),children:[a.jsxs("div",{className:l("flex items-center",t==="horizontal"?"flex-col":"flex-row gap-3"),children:[a.jsx("div",{className:"relative",children:w(v,u)}),a.jsxs("div",{className:l("flex flex-col",t==="horizontal"?"items-center mt-2 text-center":"items-start flex-1"),children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:l("font-medium",b.title,y==="process"&&"text-[var(--color-text)]",y==="finish"&&"text-[var(--color-text)]",y==="wait"&&"text-[var(--color-text-muted)]",y==="error"&&"text-red-500"),children:u.title}),u.subTitle&&a.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:u.subTitle})]}),u.description&&a.jsx("span",{className:l("text-[var(--color-text-muted)] mt-1",b.description),children:u.description})]})]}),!C&&a.jsx("div",{className:l("transition-all",t==="horizontal"?"h-[2px] flex-1 mx-4 mt-4":"w-[2px] h-8 ml-4 my-2",v<o?"bg-[var(--color-primary)]":"bg-[var(--color-border)]")})]},v)};return a.jsx("div",{ref:f,className:l($o({direction:t}),e),...m,children:n.map((u,v)=>h(u,v))})});Xo.displayName="Steps";const Ko=i.forwardRef(({options:e,value:t,defaultValue:r,onChange:o,size:s="md",block:n=!1,disabled:c=!1,className:d},m)=>{var h;const[f,x]=i.useState(r||((h=e[0])==null?void 0:h.value)||""),b=t??f,p=u=>{if(c)return;const v=e.find(y=>y.value===u);v!=null&&v.disabled||(x(u),o==null||o(u))},w={sm:"h-7 text-xs",md:"h-9 text-sm",lg:"h-11 text-base"};return a.jsx("div",{ref:m,className:l("inline-flex items-center gap-1 p-1 rounded-lg","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)]",n&&"flex w-full",c&&"opacity-50 cursor-not-allowed",d),children:e.map(u=>{const v=b===u.value,y=c||u.disabled;return a.jsxs("button",{type:"button",disabled:y,onClick:()=>p(u.value),className:l("inline-flex items-center justify-center gap-2 px-3 rounded-md font-medium transition-all",w[s],n&&"flex-1",v&&["bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]","text-white shadow-[var(--glow-primary)]"],!v&&["text-[var(--color-text-secondary)]","hover:text-[var(--color-text)]","hover:bg-[var(--color-bg-glass-hover)]"],y&&"cursor-not-allowed opacity-50"),children:[u.icon&&a.jsx("span",{className:"shrink-0",children:u.icon}),u.label]},u.value)})})});Ko.displayName="Segmented";const Uo=i.forwardRef(({className:e,collapsible:t=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:s,width:n=256,collapsedWidth:c=64,children:d,...m},f)=>{const[x,b]=i.useState(r),p=o??x,w=()=>{const h=!p;b(h),s==null||s(h)};return a.jsxs("aside",{ref:f,className:l("relative flex flex-col","border-r border-[var(--color-border)]","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","transition-all duration-300",e),style:{width:p?c:n},...m,children:[d,t&&a.jsx(Y,{variant:"ghost",size:"icon",onClick:w,className:l("absolute -right-3 top-6 z-10 h-6 w-6 rounded-full","border border-[var(--color-border)]","bg-[var(--color-bg-elevated)]","shadow-sm"),children:p?a.jsx(k.ChevronRight,{className:"h-3 w-3"}):a.jsx(k.ChevronLeft,{className:"h-3 w-3"})})]})});Uo.displayName="Sidebar";const Qo=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("flex h-16 items-center border-b border-[var(--color-border)] px-4",e),...t}));Qo.displayName="SidebarHeader";const Jo=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("flex-1 overflow-y-auto py-4",e),...t}));Jo.displayName="SidebarContent";const Zo=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("border-t border-[var(--color-border)] p-4",e),...t}));Zo.displayName="SidebarFooter";const es=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("px-3 py-2",e),...t}));es.displayName="SidebarGroup";const ts=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("px-3 py-2 text-xs font-medium uppercase tracking-wider","text-[var(--color-text-muted)]",e),...t}));ts.displayName="SidebarGroupLabel";const rs=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("space-y-1",e),...t}));rs.displayName="SidebarGroupContent";const as=i.forwardRef(({className:e,icon:t,active:r,children:o,...s},n)=>a.jsxs("a",{ref:n,className:l("flex items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",r?"bg-[var(--color-bg-glass)] text-[var(--color-text)] font-medium":"text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)]",e),...s,children:[t&&a.jsx("span",{className:"shrink-0",children:t}),a.jsx("span",{className:"truncate",children:o})]}));as.displayName="SidebarMenuItem";const bc=$("relative flex shrink-0 overflow-hidden rounded-full border-2 border-[var(--color-border)]",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12",xl:"h-16 w-16","2xl":"h-20 w-20"}},defaultVariants:{size:"md"}}),os=i.forwardRef(({className:e,size:t,src:r,alt:o,fallback:s,...n},c)=>{var d;return a.jsxs($e.Root,{ref:c,className:l(bc({size:t}),e),...n,children:[a.jsx($e.Image,{src:r,alt:o,className:"aspect-square h-full w-full object-cover"}),a.jsx($e.Fallback,{className:l("flex h-full w-full items-center justify-center","bg-gradient-to-br from-[var(--color-primary)] to-[#ec4899]","text-white font-semibold"),children:s||((d=o==null?void 0:o[0])==null?void 0:d.toUpperCase())||"?"})]})});os.displayName=$e.Root.displayName;const ss=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:r,className:l("w-full caption-bottom text-sm",e),...t})}));ss.displayName="Table";const ns=i.forwardRef(({className:e,...t},r)=>a.jsx("thead",{ref:r,className:l("border-b border-[var(--color-border)]","[&_tr]:border-b",e),...t}));ns.displayName="TableHeader";const ls=i.forwardRef(({className:e,...t},r)=>a.jsx("tbody",{ref:r,className:l("[&_tr:last-child]:border-0",e),...t}));ls.displayName="TableBody";const is=i.forwardRef(({className:e,...t},r)=>a.jsx("tfoot",{ref:r,className:l("border-t border-[var(--color-border)] bg-[var(--color-bg-glass)]/50 font-medium [&>tr]:last:border-b-0",e),...t}));is.displayName="TableFooter";const cs=i.forwardRef(({className:e,...t},r)=>a.jsx("tr",{ref:r,className:l("border-b border-[var(--color-border)] transition-colors","hover:bg-[var(--color-bg-glass-hover)]","data-[state=selected]:bg-[var(--color-bg-glass)]",e),...t}));cs.displayName="TableRow";const ds=i.forwardRef(({className:e,...t},r)=>a.jsx("th",{ref:r,className:l("h-12 px-4 text-left align-middle font-semibold text-[var(--color-text)]","[&:has([role=checkbox])]:pr-0",e),...t}));ds.displayName="TableHead";const ms=i.forwardRef(({className:e,...t},r)=>a.jsx("td",{ref:r,className:l("p-4 align-middle text-[var(--color-text-secondary)]","[&:has([role=checkbox])]:pr-0",e),...t}));ms.displayName="TableCell";const us=i.forwardRef(({className:e,...t},r)=>a.jsx("caption",{ref:r,className:l("mt-4 text-sm text-[var(--color-text-muted)]",e),...t}));us.displayName="TableCaption";const fs=i.createContext(null);function at(){const e=i.useContext(fs);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const xs=i.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:o,className:s,children:n,...c},d)=>{const[m,f]=An({...t,axis:e==="horizontal"?"x":"y"},o),[x,b]=i.useState(!1),[p,w]=i.useState(!1),h=i.useCallback(C=>{C&&(b(C.canScrollPrev()),w(C.canScrollNext()))},[]),u=i.useCallback(()=>{f==null||f.scrollPrev()},[f]),v=i.useCallback(()=>{f==null||f.scrollNext()},[f]),y=i.useCallback(C=>{C.key==="ArrowLeft"?(C.preventDefault(),u()):C.key==="ArrowRight"&&(C.preventDefault(),v())},[u,v]);return i.useEffect(()=>{!f||!r||r(f)},[f,r]),i.useEffect(()=>{if(f)return h(f),f.on("reInit",h),f.on("select",h),()=>{f==null||f.off("select",h)}},[f,h]),a.jsx(fs.Provider,{value:{carouselRef:m,api:f,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:u,scrollNext:v,canScrollPrev:x,canScrollNext:p},children:a.jsx("div",{ref:d,onKeyDownCapture:y,className:l("relative",s),role:"region","aria-roledescription":"carousel",...c,children:n})})});xs.displayName="Carousel";const ps=i.forwardRef(({className:e,...t},r)=>{const{carouselRef:o,orientation:s}=at();return a.jsx("div",{ref:o,className:"overflow-hidden",children:a.jsx("div",{ref:r,className:l("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ps.displayName="CarouselContent";const bs=i.forwardRef(({className:e,...t},r)=>{const{orientation:o}=at();return a.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:l("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",e),...t})});bs.displayName="CarouselItem";const hs=i.forwardRef(({className:e,variant:t="outline",size:r="icon",...o},s)=>{const{orientation:n,scrollPrev:c,canScrollPrev:d}=at();return a.jsxs(Y,{ref:s,variant:t,size:r,className:l("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!d,onClick:c,...o,children:[a.jsx(k.ArrowLeft,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Previous slide"})]})});hs.displayName="CarouselPrevious";const gs=i.forwardRef(({className:e,variant:t="outline",size:r="icon",...o},s)=>{const{orientation:n,scrollNext:c,canScrollNext:d}=at();return a.jsxs(Y,{ref:s,variant:t,size:r,className:l("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!d,onClick:c,...o,children:[a.jsx(k.ArrowRight,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Next slide"})]})});gs.displayName="CarouselNext";const vs=i.forwardRef(({className:e,src:t,alt:r="",fallback:o,onError:s,aspectRatio:n="auto",objectFit:c="cover",...d},m)=>{const[f,x]=i.useState(!1),[b,p]=i.useState(!0),w={square:"aspect-square",video:"aspect-video",portrait:"aspect-[3/4]",auto:""},h={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"},u=()=>{x(!0),p(!1),s==null||s()},v=()=>{p(!1)};return f||!t?a.jsx("div",{className:l("flex items-center justify-center bg-[var(--color-bg-glass)] rounded-md",w[n],e),children:o||a.jsxs("div",{className:"flex flex-col items-center gap-2 text-[var(--color-text-muted)]",children:[a.jsx(k.ImageIcon,{className:"h-8 w-8"}),a.jsx("span",{className:"text-xs",children:"Image not available"})]})}):a.jsxs("div",{className:l("relative overflow-hidden rounded-md",w[n],e),children:[b&&a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[var(--color-bg-glass)] animate-pulse",children:a.jsx(k.ImageIcon,{className:"h-8 w-8 text-[var(--color-text-muted)]"})}),a.jsx("img",{ref:m,src:t,alt:r,onError:u,onLoad:v,className:l("h-full w-full transition-opacity duration-300",h[c],b?"opacity-0":"opacity-100"),...d})]})});vs.displayName="Image";const ws=i.forwardRef(({title:e,value:t,prefix:r,suffix:o,trend:s,trendValue:n,valueClassName:c,className:d},m)=>a.jsxs("div",{ref:m,className:l("space-y-2",d),children:[a.jsx("div",{className:"text-sm text-[var(--color-text-muted)]",children:e}),a.jsxs("div",{className:"flex items-baseline gap-2",children:[a.jsxs("div",{className:l("text-3xl font-bold text-[var(--color-text)]",c),children:[r&&a.jsx("span",{className:"mr-1",children:r}),t,o&&a.jsx("span",{className:"ml-1",children:o})]}),s&&a.jsxs("div",{className:l("flex items-center text-sm font-medium",s==="up"?"text-green-500":"text-red-500"),children:[s==="up"?a.jsx(k.ArrowUp,{className:"h-4 w-4 mr-1"}):a.jsx(k.ArrowDown,{className:"h-4 w-4 mr-1"}),n]})]})]}));ws.displayName="Statistic";const ys=i.forwardRef(({items:e,bordered:t=!1,hoverable:r=!0,divided:o=!0,onItemClick:s,className:n,itemClassName:c},d)=>a.jsx("div",{ref:d,className:l("rounded-lg",t&&"border border-[var(--color-border)]",n),children:e.map((m,f)=>a.jsxs("div",{onClick:()=>s==null?void 0:s(m),className:l("flex items-center gap-4 p-4",r&&"transition-colors hover:bg-[var(--color-bg-glass-hover)]",s&&"cursor-pointer",o&&f<e.length-1&&"border-b border-[var(--color-border)]",c),children:[m.avatar&&a.jsx("div",{className:"shrink-0",children:m.avatar}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"text-sm font-medium text-[var(--color-text)]",children:m.title}),m.description&&a.jsx("div",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:m.description})]}),m.extra&&a.jsx("div",{className:"shrink-0 text-[var(--color-text-secondary)]",children:m.extra}),m.actions&&a.jsx("div",{className:"shrink-0 flex items-center gap-2",children:m.actions})]},m.id))}));ys.displayName="List";const Ns=i.forwardRef(({title:e,items:t,columns:r=3,bordered:o=!1,layout:s="horizontal",className:n},c)=>{const d={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};return o?a.jsxs("div",{ref:c,className:l("rounded-lg overflow-hidden",n),children:[e&&a.jsx("div",{className:"px-4 py-3 bg-[var(--color-bg-glass)] border border-[var(--color-border)] font-semibold text-[var(--color-text)]",children:e}),a.jsx("div",{className:"border border-[var(--color-border)] border-t-0",children:t.map((m,f)=>a.jsxs("div",{className:l("grid",s==="horizontal"?"grid-cols-[200px_1fr]":"grid-cols-1"),children:[a.jsx("div",{className:"px-4 py-3 bg-[var(--color-bg-glass)]/50 border-b border-r border-[var(--color-border)] text-sm font-medium text-[var(--color-text)]",children:m.label}),a.jsx("div",{className:"px-4 py-3 border-b border-[var(--color-border)] text-sm text-[var(--color-text-secondary)]",children:m.content})]},f))})]}):a.jsxs("div",{ref:c,className:l("",n),children:[e&&a.jsx("div",{className:"mb-4 text-lg font-semibold text-[var(--color-text)]",children:e}),a.jsx("div",{className:l("grid gap-4",d[r]),children:t.map((m,f)=>a.jsxs("div",{className:l("space-y-1",m.span&&`col-span-${m.span}`),children:[a.jsx("div",{className:"text-sm font-medium text-[var(--color-text-muted)]",children:m.label}),a.jsx("div",{className:"text-sm text-[var(--color-text)]",children:m.content})]},f))})]})});Ns.displayName="Descriptions";const js=i.forwardRef(({items:e,variant:t="default",className:r},o)=>{const s=n=>{switch(n){case"primary":return"border-[var(--color-primary)] bg-[var(--color-primary)]";case"success":return"border-green-500 bg-green-500";case"warning":return"border-yellow-500 bg-yellow-500";case"error":return"border-red-500 bg-red-500";default:return"border-[var(--color-border-strong)] bg-[var(--color-bg-glass)]"}};return a.jsx("div",{ref:o,className:l("relative",r),children:e.map((n,c)=>a.jsxs("div",{className:"relative flex gap-4 pb-8 last:pb-0",children:[c<e.length-1&&a.jsx("div",{className:l("absolute left-[19px] top-[32px] bottom-0 w-[2px]",t==="gradient"?"bg-gradient-to-b from-[var(--color-primary)] to-[#ec4899]":"bg-[var(--color-border)]")}),a.jsx("div",{className:"relative z-10 flex shrink-0",children:a.jsx("div",{className:l("flex h-10 w-10 items-center justify-center rounded-full border-2",s(n.color),n.icon&&"text-white"),children:n.icon||a.jsx("div",{className:"h-3 w-3 rounded-full bg-current"})})}),a.jsxs("div",{className:"flex-1 pt-1",children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsx("h4",{className:"text-sm font-semibold text-[var(--color-text)]",children:n.title}),n.timestamp&&a.jsx("time",{className:"text-xs text-[var(--color-text-muted)]",children:n.timestamp})]}),n.description&&a.jsx("p",{className:"text-sm text-[var(--color-text-secondary)]",children:n.description})]})]},c))})});js.displayName="Timeline";const ks=i.forwardRef(({steps:e,currentStep:t,orientation:r="horizontal",variant:o="default",className:s},n)=>a.jsx("div",{ref:n,className:l("flex",r==="horizontal"?"flex-row items-center":"flex-col",s),children:e.map((c,d)=>{const m=d<t,f=d===t,x=d>t;return a.jsxs(i.Fragment,{children:[a.jsxs("div",{className:l("flex items-center",r==="vertical"?"flex-row":"flex-col"),children:[a.jsx("div",{className:l("flex items-center justify-center rounded-full border-2 transition-all","h-10 w-10 shrink-0",m&&o==="gradient"&&"bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899] border-transparent text-white",m&&o==="default"&&"bg-[var(--color-primary)] border-[var(--color-primary)] text-white",f&&"border-[var(--color-primary)] text-[var(--color-primary)] bg-[var(--color-bg-glass)]",x&&"border-[var(--color-border)] text-[var(--color-text-muted)] bg-transparent"),children:m?a.jsx(k.Check,{className:"h-5 w-5"}):c.icon?c.icon:a.jsx("span",{className:"text-sm font-semibold",children:d+1})}),a.jsxs("div",{className:l("flex flex-col",r==="horizontal"?"items-center mt-2":"items-start ml-4"),children:[a.jsx("div",{className:l("text-sm font-medium",f&&"text-[var(--color-text)]",m&&"text-[var(--color-text)]",x&&"text-[var(--color-text-muted)]"),children:c.title}),c.description&&a.jsx("div",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:c.description})]})]}),d<e.length-1&&a.jsx("div",{className:l("transition-all",r==="horizontal"?"h-[2px] flex-1 mx-2":"w-[2px] h-8 ml-5",d<t?o==="gradient"?"bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]":"bg-[var(--color-primary)]":"bg-[var(--color-border)]")})]},d)})}));ks.displayName="Stepper";const Ss=$("inline-flex items-center gap-1.5 rounded-md px-2.5 py-0.5 text-xs font-medium transition-all",{variants:{variant:{default:["bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)]","text-[var(--color-text)]"],solid:["bg-[var(--color-bg-elevated)]","text-[var(--color-text)]"],gradient:["bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]","text-white shadow-[var(--glow-primary)]"],success:["bg-green-500/20 border border-green-500/50","text-green-500"],warning:["bg-yellow-500/20 border border-yellow-500/50","text-yellow-500"],error:["bg-red-500/20 border border-red-500/50","text-red-500"],info:["bg-blue-500/20 border border-blue-500/50","text-blue-500"]}},defaultVariants:{variant:"default"}}),Cs=i.forwardRef(({className:e,variant:t,closable:r,onClose:o,icon:s,children:n,...c},d)=>a.jsxs("span",{ref:d,className:l(Ss({variant:t}),e),...c,children:[s&&a.jsx("span",{className:"shrink-0",children:s}),n,r&&a.jsx("button",{type:"button",onClick:o,className:"shrink-0 hover:opacity-70 transition-opacity",children:a.jsx(k.X,{className:"h-3 w-3"})})]}));Cs.displayName="Tag";const Rs=i.forwardRef(({treeData:e,checkable:t=!1,checkedKeys:r,expandedKeys:o,selectedKeys:s,onCheck:n,onExpand:c,onSelect:d,className:m},f)=>{const[x,b]=i.useState([]),[p,w]=i.useState([]),[h,u]=i.useState([]),v=r??x,y=o??p,C=s??h,S=g=>{const j=y.includes(g)?y.filter(N=>N!==g):[...y,g];w(j),c==null||c(j)},P=(g,j)=>{const N=j?[...v,g]:v.filter(M=>M!==g);b(N),n==null||n(N)},R=g=>{const j=C.includes(g)?[]:[g];u(j),d==null||d(j)},I=(g,j=0)=>{const N=g.children&&g.children.length>0,M=y.includes(g.key),E=v.includes(g.key),z=C.includes(g.key);return a.jsxs("div",{className:"select-none",children:[a.jsxs("div",{className:l("flex items-center gap-2 py-1.5 px-2 rounded-md cursor-pointer transition-colors","hover:bg-[var(--color-bg-glass-hover)]",z&&"bg-[var(--color-bg-glass)] text-[var(--color-primary)]",g.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`${j*20+8}px`},children:[N?a.jsx("button",{onClick:()=>S(g.key),className:"shrink-0 p-0.5 hover:bg-[var(--color-bg-glass)] rounded",children:M?a.jsx(k.ChevronDown,{className:"h-4 w-4"}):a.jsx(k.ChevronRight,{className:"h-4 w-4"})}):a.jsx("span",{className:"w-5"}),t&&a.jsx(Ze,{checked:E,onCheckedChange:_=>P(g.key,_),disabled:g.disabled}),a.jsxs("div",{onClick:()=>!g.disabled&&R(g.key),className:"flex items-center gap-2 flex-1",children:[g.icon&&a.jsx("span",{className:"shrink-0",children:g.icon}),a.jsx("span",{className:"text-sm",children:g.title})]})]}),N&&M&&a.jsx("div",{children:g.children.map(_=>I(_,j+1))})]},g.key)};return a.jsx("div",{ref:f,className:l("rounded-lg border border-[var(--color-border)] p-2","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]",m),children:e.map(g=>I(g))})});Rs.displayName="Tree";const Ps=i.forwardRef(({value:e,size:t=128,level:r="M",bgColor:o="#FFFFFF",fgColor:s="#000000",includeMargin:n=!1,imageSettings:c,className:d},m)=>{const f=i.useRef(null);return i.useEffect(()=>{const x=f.current;if(!x)return;const b=x.getContext("2d");if(!b)return;x.width=t,x.height=t,b.fillStyle=o,b.fillRect(0,0,t,t),b.fillStyle=s;const p=t/25,w=n?p:0,h=e.split("").reduce((y,C)=>y+C.charCodeAt(0),0);for(let y=0;y<25;y++)for(let C=0;C<25;C++)(y*25+C+h)%3===0&&b.fillRect(w+y*p,w+C*p,p,p);const u=p*7;if([[w,w],[t-u-w,w],[w,t-u-w]].forEach(([y,C])=>{b.fillStyle=s,b.fillRect(y,C,u,u),b.fillStyle=o,b.fillRect(y+p,C+p,u-2*p,u-2*p),b.fillStyle=s,b.fillRect(y+2*p,C+2*p,u-4*p,u-4*p)}),c){const y=new Image;y.onload=()=>{const C=(t-c.width)/2,S=(t-c.height)/2;c.excavate&&(b.fillStyle=o,b.fillRect(C-5,S-5,c.width+10,c.height+10)),b.drawImage(y,C,S,c.width,c.height)},y.src=c.src}},[e,t,r,o,s,n,c]),a.jsx("div",{ref:m,className:l("inline-flex items-center justify-center p-4 rounded-lg","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)]",d),children:a.jsx("canvas",{ref:f,className:"rounded"})})});Ps.displayName="QRCode";const Ve=({active:e,payload:t,label:r})=>!e||!t||!t.length?null:a.jsxs("div",{className:"rounded-lg border border-[var(--color-border)] bg-[var(--color-bg-elevated)] backdrop-blur-[var(--blur-glass)] p-3 shadow-[var(--shadow-glass)]",children:[a.jsx("p",{className:"text-sm font-medium text-[var(--color-text)] mb-2",children:r}),t.map((o,s)=>a.jsxs("div",{className:"flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",children:[a.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:o.color}}),a.jsxs("span",{children:[o.name,":"]}),a.jsx("span",{className:"font-medium text-[var(--color-text)]",children:o.value})]},s))]}),hc=({data:e,xKey:t,lines:r,height:o=300,showGrid:s=!0,showLegend:n=!0,className:c})=>a.jsx("div",{className:l("w-full",c),children:a.jsx(F.ResponsiveContainer,{width:"100%",height:o,children:a.jsxs(F.LineChart,{data:e,children:[s&&a.jsx(F.CartesianGrid,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),a.jsx(F.XAxis,{dataKey:t,stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(F.YAxis,{stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(F.Tooltip,{content:a.jsx(Ve,{})}),n&&a.jsx(F.Legend,{wrapperStyle:{color:"var(--color-text-secondary)",fontSize:12}}),r.map((d,m)=>a.jsx(F.Line,{type:"monotone",dataKey:d.dataKey,name:d.name||d.dataKey,stroke:d.color||`hsl(${m*60}, 70%, 50%)`,strokeWidth:d.strokeWidth||2,dot:!1,activeDot:{r:6}},d.dataKey))]})})}),gc=({data:e,xKey:t,bars:r,height:o=300,showGrid:s=!0,showLegend:n=!0,className:c})=>a.jsx("div",{className:l("w-full",c),children:a.jsx(F.ResponsiveContainer,{width:"100%",height:o,children:a.jsxs(F.BarChart,{data:e,children:[s&&a.jsx(F.CartesianGrid,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),a.jsx(F.XAxis,{dataKey:t,stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(F.YAxis,{stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(F.Tooltip,{content:a.jsx(Ve,{})}),n&&a.jsx(F.Legend,{wrapperStyle:{color:"var(--color-text-secondary)",fontSize:12}}),r.map((d,m)=>a.jsx(F.Bar,{dataKey:d.dataKey,name:d.name||d.dataKey,fill:d.color||`hsl(${m*60}, 70%, 50%)`,radius:[4,4,0,0]},d.dataKey))]})})}),vc=({data:e,xKey:t,areas:r,height:o=300,showGrid:s=!0,showLegend:n=!0,className:c})=>a.jsx("div",{className:l("w-full",c),children:a.jsx(F.ResponsiveContainer,{width:"100%",height:o,children:a.jsxs(F.AreaChart,{data:e,children:[s&&a.jsx(F.CartesianGrid,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),a.jsx(F.XAxis,{dataKey:t,stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(F.YAxis,{stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(F.Tooltip,{content:a.jsx(Ve,{})}),n&&a.jsx(F.Legend,{wrapperStyle:{color:"var(--color-text-secondary)",fontSize:12}}),r.map((d,m)=>a.jsx(F.Area,{type:"monotone",dataKey:d.dataKey,name:d.name||d.dataKey,stroke:d.color||`hsl(${m*60}, 70%, 50%)`,fill:d.color||`hsl(${m*60}, 70%, 50%)`,fillOpacity:.2,strokeWidth:2},d.dataKey))]})})}),wc=({data:e,height:t=300,innerRadius:r=0,showLegend:o=!0,className:s})=>{const n=["#a855f7","#ec4899","#f472b6","#8b5cf6","#d946ef"];return a.jsx("div",{className:l("w-full",s),children:a.jsx(F.ResponsiveContainer,{width:"100%",height:t,children:a.jsxs(F.PieChart,{children:[a.jsx(F.Pie,{data:e,cx:"50%",cy:"50%",innerRadius:r,outerRadius:t/3,paddingAngle:2,dataKey:"value",children:e.map((c,d)=>a.jsx(F.Cell,{fill:c.color||n[d%n.length]},`cell-${d}`))}),a.jsx(F.Tooltip,{content:a.jsx(Ve,{})}),o&&a.jsx(F.Legend,{wrapperStyle:{color:"var(--color-text-secondary)",fontSize:12}})]})})})},Ms=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("flex min-h-screen",e),...t}));Ms.displayName="Layout";const Ts=i.forwardRef(({className:e,...t},r)=>a.jsx("header",{ref:r,className:l("border-b border-[var(--color-border)]","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","sticky top-0 z-40",e),...t}));Ts.displayName="LayoutHeader";const Ds=i.forwardRef(({className:e,width:t=256,collapsed:r=!1,collapsedWidth:o=80,style:s,...n},c)=>a.jsx("aside",{ref:c,className:l("border-r border-[var(--color-border)]","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","transition-all duration-300",e),style:{width:r?typeof o=="number"?`${o}px`:o:typeof t=="number"?`${t}px`:t,...s},...n}));Ds.displayName="LayoutSider";const zs=i.forwardRef(({className:e,...t},r)=>a.jsx("main",{ref:r,className:l("flex-1 overflow-auto",e),...t}));zs.displayName="LayoutContent";const Is=i.forwardRef(({className:e,...t},r)=>a.jsx("footer",{ref:r,className:l("border-t border-[var(--color-border)]","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]",e),...t}));Is.displayName="LayoutFooter";const Ls=i.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,variant:o="default",label:s,...n},c)=>s?a.jsxs("div",{className:"relative flex items-center",children:[a.jsx(Xe.Root,{ref:c,decorative:r,orientation:t,className:l("flex-1",o==="default"&&"bg-white/10",o==="gradient"&&"bg-gradient-to-r from-transparent via-white/20 to-transparent",t==="horizontal"&&"h-px",t==="vertical"&&"w-px",e),...n}),a.jsx("span",{className:"px-2 text-xs text-white/50",children:s}),a.jsx(Xe.Root,{decorative:r,orientation:t,className:l("flex-1",o==="default"&&"bg-white/10",o==="gradient"&&"bg-gradient-to-r from-transparent via-white/20 to-transparent",t==="horizontal"&&"h-px",t==="vertical"&&"w-px")})]}):a.jsx(Xe.Root,{ref:c,decorative:r,orientation:t,className:l(o==="default"&&"bg-white/10",o==="gradient"&&"bg-gradient-to-r from-transparent via-white/20 to-transparent",t==="horizontal"?"h-px w-full":"h-full w-px",e),"data-slot":"separator",...n}));Ls.displayName=Xe.Root.displayName;const As=i.forwardRef(({className:e,orientation:t="horizontal",variant:r="default",label:o,...s},n)=>o?a.jsxs("div",{ref:n,className:l("flex items-center gap-3 my-4",e),...s,children:[a.jsx("div",{className:l("flex-1 h-px",r==="gradient"?"bg-gradient-to-r from-transparent via-[var(--color-border)] to-transparent":"bg-[var(--color-border)]")}),a.jsx("span",{className:"text-sm text-[var(--color-text-muted)]",children:o}),a.jsx("div",{className:l("flex-1 h-px",r==="gradient"?"bg-gradient-to-r from-transparent via-[var(--color-border)] to-transparent":"bg-[var(--color-border)]")})]}):a.jsx("div",{ref:n,className:l(t==="horizontal"?"w-full h-px":"h-full w-px",r==="gradient"?t==="horizontal"?"bg-gradient-to-r from-transparent via-[var(--color-border)] to-transparent":"bg-gradient-to-b from-transparent via-[var(--color-border)] to-transparent":"bg-[var(--color-border)]",e),...s}));As.displayName="Divider";const yc=Wn.Root,Nc=({className:e,...t})=>a.jsx(pt.PanelGroup,{className:l("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),jc=pt.Panel,kc=({withHandle:e,className:t,...r})=>a.jsx(pt.PanelResizeHandle,{className:l("relative flex w-px items-center justify-center bg-[var(--color-border)]","after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2","hover:bg-[var(--color-border-strong)]","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-1","data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full","data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0","[&[data-panel-group-direction=vertical]>div]:rotate-90",t),...r,children:e&&a.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border border-[var(--color-border)] bg-[var(--color-bg-glass)]",children:a.jsx(k.GripVertical,{className:"h-2.5 w-2.5"})})}),Es=$("w-full mx-auto px-4 sm:px-6 lg:px-8",{variants:{size:{sm:"max-w-3xl",md:"max-w-5xl",lg:"max-w-7xl",xl:"max-w-[1400px]",full:"max-w-full"}},defaultVariants:{size:"lg"}}),_s=i.forwardRef(({className:e,size:t,...r},o)=>a.jsx("div",{ref:o,className:l(Es({size:t}),e),...r}));_s.displayName="Container";const Fs=$("flex",{variants:{direction:{row:"flex-row",column:"flex-col",rowReverse:"flex-row-reverse",columnReverse:"flex-col-reverse"},spacing:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{true:"flex-wrap",false:"flex-nowrap"}},defaultVariants:{direction:"column",spacing:"md"}}),Os=i.forwardRef(({className:e,direction:t,spacing:r,align:o,justify:s,wrap:n,...c},d)=>a.jsx("div",{ref:d,className:l(Fs({direction:t,spacing:r,align:o,justify:s,wrap:n}),e),...c}));Os.displayName="Stack";const Vs=$("grid w-full",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12"},gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"}},defaultVariants:{cols:12,gap:"md"}}),Gs=i.forwardRef(({className:e,cols:t,gap:r,...o},s)=>a.jsx("div",{ref:s,className:l(Vs({cols:t,gap:r}),e),...o}));Gs.displayName="Grid";const Ws=$("",{variants:{span:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"}},defaultVariants:{span:1}}),Bs=i.forwardRef(({className:e,span:t,...r},o)=>a.jsx("div",{ref:o,className:l(Ws({span:t}),e),...r}));Bs.displayName="GridItem";const qs=$("inline-flex",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"},size:{xs:"",sm:"",md:"",lg:"",xl:""},align:{start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},wrap:{true:"flex-wrap",false:"flex-nowrap"}},compoundVariants:[{direction:"horizontal",size:"xs",class:"gap-1"},{direction:"horizontal",size:"sm",class:"gap-2"},{direction:"horizontal",size:"md",class:"gap-4"},{direction:"horizontal",size:"lg",class:"gap-6"},{direction:"horizontal",size:"xl",class:"gap-8"},{direction:"vertical",size:"xs",class:"gap-1"},{direction:"vertical",size:"sm",class:"gap-2"},{direction:"vertical",size:"md",class:"gap-4"},{direction:"vertical",size:"lg",class:"gap-6"},{direction:"vertical",size:"xl",class:"gap-8"}],defaultVariants:{direction:"horizontal",size:"md"}}),Hs=i.forwardRef(({className:e,direction:t,size:r,align:o,wrap:s,split:n,children:c,...d},m)=>{const f=i.Children.toArray(c).filter(Boolean);return a.jsx("div",{ref:m,className:l(qs({direction:t,size:r,align:o,wrap:s}),e),...d,children:f.map((x,b)=>a.jsxs(i.Fragment,{children:[x,n&&b<f.length-1&&a.jsx("span",{className:"select-none",children:n})]},b))})});Hs.displayName="Space";const Ys=i.forwardRef(({offsetTop:e,offsetBottom:t,target:r,onChange:o,className:s,children:n},c)=>{var w;const[d,m]=i.useState(!1),[f,x]=i.useState({}),b=i.useRef(null),p=i.useRef(null);return i.useEffect(()=>{const h=r?r():window,u=()=>{if(!b.current||!p.current)return;const v=b.current.getBoundingClientRect();p.current.offsetHeight;let y=!1,C={};if(e!==void 0&&v.top<=e&&(y=!0,C={position:"fixed",top:e,left:v.left,width:v.width}),t!==void 0){const S=window.innerHeight;v.bottom>=S-t&&(y=!0,C={position:"fixed",bottom:t,left:v.left,width:v.width})}y!==d&&(m(y),o==null||o(y)),x(C)};return h instanceof Window?(window.addEventListener("scroll",u),window.addEventListener("resize",u),u(),()=>{window.removeEventListener("scroll",u),window.removeEventListener("resize",u)}):(h.addEventListener("scroll",u),u(),()=>h.removeEventListener("scroll",u))},[e,t,r,d,o]),a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:b,style:d?{height:(w=p.current)==null?void 0:w.offsetHeight}:void 0}),a.jsx("div",{ref:p,className:l(s),style:d?f:void 0,children:n})]})});Ys.displayName="Affix";const $s=i.forwardRef(({visibilityHeight:e=400,target:t,onClick:r,className:o},s)=>{const[n,c]=i.useState(!1);i.useEffect(()=>{const m=t?t():window,f=()=>{m instanceof Window?c(window.scrollY>e):c(m.scrollTop>e)};return m instanceof Window?(window.addEventListener("scroll",f),()=>window.removeEventListener("scroll",f)):(m.addEventListener("scroll",f),()=>m.removeEventListener("scroll",f))},[e,t]);const d=()=>{const m=t?t():window;m instanceof Window?window.scrollTo({top:0,behavior:"smooth"}):m.scrollTo({top:0,behavior:"smooth"}),r==null||r()};return n?a.jsx("div",{ref:s,className:l("fixed bottom-8 right-8 z-50","animate-in fade-in slide-in-from-bottom-4",o),children:a.jsx(Y,{variant:"gradient",size:"icon",className:"h-12 w-12 rounded-full shadow-[var(--shadow-elevated)]",onClick:d,children:a.jsx(k.ArrowUp,{className:"h-5 w-5"})})}):null});$s.displayName="BackTop";const zt=i.forwardRef(({className:e,icon:t,description:r,tooltip:o,shape:s="circle",variant:n="default",badge:c,...d},m)=>{const f=a.jsxs(Y,{ref:m,variant:n==="primary"?"gradient":"outline",size:"icon",className:l("relative h-12 w-12 shadow-[var(--shadow-elevated)]",s==="circle"&&"rounded-full",s==="square"&&"rounded-lg",r&&"h-auto w-auto px-4 py-3 flex-col gap-1",e),...d,children:[t,r&&a.jsx("span",{className:"text-xs whitespace-nowrap",children:r}),c&&(c.dot||c.count&&c.count>0)&&a.jsx("span",{className:l("absolute -top-1 -right-1 flex items-center justify-center","bg-red-500 text-white text-xs font-medium",c.dot?"h-2 w-2 rounded-full":"h-5 min-w-[20px] px-1 rounded-full"),children:!c.dot&&c.count&&(c.count>99?"99+":c.count)})]});return o?a.jsx(Aa,{children:a.jsxs(Ea,{children:[a.jsx(_a,{asChild:!0,children:f}),a.jsx(Mt,{side:"left",children:o})]})}):f});zt.displayName="FloatButton";const Xs=i.forwardRef(({trigger:e="click",open:t,onOpenChange:r,icon:o=a.jsx(k.Plus,{className:"h-5 w-5"}),children:s,className:n},c)=>{const[d,m]=i.useState(!1),f=t??d,x=()=>{const w=!f;m(w),r==null||r(w)},b=()=>{e==="hover"&&(m(!0),r==null||r(!0))},p=()=>{e==="hover"&&(m(!1),r==null||r(!1))};return a.jsxs("div",{ref:c,className:l("relative inline-flex flex-col-reverse items-center gap-3",n),onMouseEnter:b,onMouseLeave:p,children:[f&&a.jsx("div",{className:"flex flex-col-reverse items-center gap-3 animate-in fade-in slide-in-from-bottom-4",children:s}),a.jsx(zt,{icon:f?a.jsx(k.X,{className:"h-5 w-5"}):o,variant:"primary",onClick:e==="click"?x:void 0,className:l("transition-transform",f&&"rotate-45")})]})});Xs.displayName="FloatButtonGroup";const Ks=i.forwardRef(({children:e,content:t="",width:r=120,height:o=64,rotate:s=-22,zIndex:n=9,image:c,font:d={},gap:m=[100,100],offset:f=[0,0],className:x},b)=>{const{color:p="rgba(0,0,0,.15)",fontSize:w=16,fontWeight:h="normal",fontFamily:u="sans-serif"}=d,[v,y]=i.useState("");return i.useEffect(()=>{const C=document.createElement("canvas"),S=C.getContext("2d");if(!S)return;const P=window.devicePixelRatio||1,R=(r+m[0])*P,I=(o+m[1])*P;if(C.width=R,C.height=I,S.translate(f[0]*P,f[1]*P),S.rotate(Math.PI/180*s),c){const g=new Image;g.crossOrigin="anonymous",g.onload=()=>{S.drawImage(g,0,0,r*P,o*P),y(C.toDataURL())},g.src=c}else S.font=`${h} ${w*P}px ${u}`,S.fillStyle=p,S.textAlign="left",S.textBaseline="top",(Array.isArray(t)?t:[t]).forEach((j,N)=>{S.fillText(j,0,N*(w*P+10))}),y(C.toDataURL())},[t,r,o,s,c,p,w,h,u,m,f]),a.jsxs("div",{ref:b,className:l("relative",x),children:[e,a.jsx("div",{className:"pointer-events-none absolute inset-0",style:{zIndex:n,backgroundImage:`url(${v})`,backgroundRepeat:"repeat"}})]})});Ks.displayName="Watermark";const Us=$("font-bold tracking-tight text-[var(--color-text)]",{variants:{level:{h1:"text-5xl md:text-6xl",h2:"text-4xl md:text-5xl",h3:"text-3xl md:text-4xl",h4:"text-2xl md:text-3xl",h5:"text-xl md:text-2xl",h6:"text-lg md:text-xl"},gradient:{true:"bg-gradient-to-r from-purple-400 via-fuchsia-400 to-pink-400 bg-clip-text text-transparent"}},defaultVariants:{level:"h2"}}),Qs=i.forwardRef(({className:e,level:t,gradient:r,as:o,...s},n)=>{const c=o||t||"h2",d=n;return a.jsx(c,{ref:d,className:l(Us({level:t||o,gradient:r}),e),...s})});Qs.displayName="Heading";const Js=$("text-[var(--color-text)]",{variants:{size:{xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},variant:{default:"text-[var(--color-text)]",secondary:"text-[var(--color-text-secondary)]",muted:"text-[var(--color-text-muted)]",placeholder:"text-[var(--color-text-placeholder)]"}},defaultVariants:{size:"md",weight:"normal",variant:"default"}}),Zs=i.forwardRef(({className:e,size:t,weight:r,variant:o,as:s="p",...n},c)=>{const d=s;return a.jsx(d,{ref:c,className:l(Js({size:t,weight:r,variant:o}),e),...n})});Zs.displayName="Text";const en=i.forwardRef(({className:e,block:t,language:r,children:o,...s},n)=>t?a.jsxs("pre",{className:l("relative rounded-lg border border-[var(--color-border)] p-4","bg-[var(--color-bg-elevated)] backdrop-blur-[var(--blur-glass)]","overflow-x-auto",e),children:[r&&a.jsx("span",{className:"absolute top-2 right-2 text-xs text-[var(--color-text-muted)]",children:r}),a.jsx("code",{ref:n,className:"text-sm text-[var(--color-text)] font-mono",...s,children:o})]}):a.jsx("code",{ref:n,className:l("relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm","bg-[var(--color-bg-glass)] border border-[var(--color-border)]","text-[var(--color-text)]",e),...s,children:o}));en.displayName="Code";const tn=$("inline-flex items-center justify-center rounded border font-mono text-xs font-medium",{variants:{size:{sm:"h-5 min-w-5 px-1",md:"h-6 min-w-6 px-1.5",lg:"h-7 min-w-7 px-2"}},defaultVariants:{size:"md"}}),rn=i.forwardRef(({className:e,size:t,...r},o)=>a.jsx("kbd",{ref:o,className:l(tn({size:t}),"border-[var(--color-border)] bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-sm",e),...r}));rn.displayName="Kbd";const It=$("inline-flex items-center justify-center rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)] disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:["bg-transparent hover:bg-[var(--color-bg-glass-hover)]","data-[state=on]:bg-[var(--color-bg-glass)] data-[state=on]:text-[var(--color-text)]"],outline:["border border-[var(--color-border)] bg-transparent","hover:bg-[var(--color-bg-glass-hover)] hover:border-[var(--color-border-strong)]","data-[state=on]:bg-[var(--color-bg-glass)] data-[state=on]:border-[var(--color-primary)]"]},size:{sm:"h-8 px-2",md:"h-9 px-3",lg:"h-10 px-4"}},defaultVariants:{variant:"default",size:"md"}}),an=i.forwardRef(({className:e,variant:t,size:r,...o},s)=>a.jsx(Qt.Root,{ref:s,className:l(It({variant:t,size:r,className:e})),...o}));an.displayName=Qt.Root.displayName;const on=i.createContext({size:"md",variant:"default"}),sn=i.forwardRef(({className:e,variant:t,size:r,children:o,...s},n)=>a.jsx(Je.Root,{ref:n,className:l("flex items-center justify-center gap-1",e),...s,children:a.jsx(on.Provider,{value:{variant:t,size:r},children:o})}));sn.displayName=Je.Root.displayName;const nn=i.forwardRef(({className:e,children:t,variant:r,size:o,...s},n)=>{const c=i.useContext(on);return a.jsx(Je.Item,{ref:n,className:l(It({variant:c.variant||r,size:c.size||o}),e),...s,children:t})});nn.displayName=Je.Item.displayName;const Sc=bt.Root,Cc=bt.CollapsibleTrigger,Rc=bt.CollapsibleContent,ln=$("inline-flex items-center justify-center rounded-full px-3 py-1 text-xs font-medium transition-all",{variants:{variant:{default:["bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)]","text-[var(--color-text)]"],gradient:["bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]","text-white shadow-[var(--glow-primary)]"],solid:["bg-[var(--color-bg-elevated)]","text-[var(--color-text)]"]},clickable:{true:"cursor-pointer hover:scale-105 active:scale-95"}},defaultVariants:{variant:"default"}}),cn=i.forwardRef(({className:e,variant:t,clickable:r,leftIcon:o,rightIcon:s,children:n,onClick:c,onRemove:d,...m},f)=>a.jsxs("div",{ref:f,className:l(ln({variant:t,clickable:r||!!c}),e),onClick:c,...m,children:[o&&a.jsx("span",{className:"mr-1.5",children:o}),n,s&&a.jsx("span",{className:"ml-1.5",children:s})]}));cn.displayName="Chip";const dn=i.forwardRef(({steps:e,open:t=!1,current:r=0,onClose:o,onChange:s,onFinish:n,className:c},d)=>{const[m,f]=i.useState(0),[x,b]=i.useState({top:0,left:0}),[p,w]=i.useState(null),h=r??m,u=e[h];if(i.useEffect(()=>{if(!t||!u)return;const C=()=>{const S=typeof u.target=="string"?document.querySelector(u.target):u.target();if(!S)return;const P=S.getBoundingClientRect();w(P);const R=u.placement||"bottom";let I=0,g=0;switch(R){case"top":I=P.top-200,g=P.left+P.width/2;break;case"bottom":I=P.bottom+10,g=P.left+P.width/2;break;case"left":I=P.top+P.height/2,g=P.left-320;break;case"right":I=P.top+P.height/2,g=P.right+10;break}b({top:I,left:g}),S.classList.add("tour-target")};return C(),window.addEventListener("resize",C),window.addEventListener("scroll",C),()=>{window.removeEventListener("resize",C),window.removeEventListener("scroll",C);const S=typeof u.target=="string"?document.querySelector(u.target):u.target();S==null||S.classList.remove("tour-target")}},[t,h,u]),!t||!u)return null;const v=()=>{const C=Math.max(0,h-1);f(C),s==null||s(C)},y=()=>{if(h===e.length-1)n==null||n(),o==null||o();else{const C=Math.min(e.length-1,h+1);f(C),s==null||s(C)}};return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed inset-0 z-[9998]",style:{background:"rgba(0, 0, 0, 0.5)",pointerEvents:"none"}}),p&&a.jsx("div",{className:"fixed z-[9999] pointer-events-none",style:{top:p.top-4,left:p.left-4,width:p.width+8,height:p.height+8,border:"2px solid var(--color-primary)",borderRadius:"8px",boxShadow:"0 0 0 9999px rgba(0, 0, 0, 0.5)"}}),a.jsxs("div",{ref:d,className:l("fixed z-[10000] w-80 rounded-lg border border-[var(--color-border)]","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","shadow-[var(--shadow-elevated)]","animate-in fade-in zoom-in-95",c),style:{top:x.top,left:x.left,transform:"translateX(-50%)"},children:[u.cover&&a.jsx("div",{className:"rounded-t-lg overflow-hidden",children:u.cover}),a.jsxs("div",{className:"p-4",children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsx("h3",{className:"text-lg font-semibold text-[var(--color-text)]",children:u.title}),a.jsx("button",{onClick:o,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition-colors",children:a.jsx(k.X,{className:"h-4 w-4"})})]}),a.jsx("p",{className:"text-sm text-[var(--color-text-secondary)] mb-4",children:u.description}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"text-xs text-[var(--color-text-muted)]",children:[h+1," / ",e.length]}),a.jsxs("div",{className:"flex gap-2",children:[h>0&&a.jsxs(Y,{variant:"outline",size:"sm",onClick:v,children:[a.jsx(k.ChevronLeft,{className:"h-4 w-4 mr-1"}),"Previous"]}),a.jsxs(Y,{variant:"gradient",size:"sm",onClick:y,children:[h===e.length-1?"Finish":"Next",h<e.length-1&&a.jsx(k.ChevronRight,{className:"h-4 w-4 ml-1"})]})]})]})]})]}),a.jsx("style",{children:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),jn=require("react"),Xt=require("@radix-ui/react-slot"),k=require("lucide-react"),kn=require("@radix-ui/react-checkbox"),Sn=require("@radix-ui/react-switch"),Cn=require("@radix-ui/react-radio-group"),Rn=require("@radix-ui/react-label"),Pn=require("@radix-ui/react-slider"),Mn=require("@radix-ui/react-select"),Ut=require("input-otp"),Tn=require("react-day-picker"),Dn=require("@radix-ui/react-popover"),zn=require("@radix-ui/react-scroll-area"),In=require("@radix-ui/react-progress"),Qt=require("sonner"),Ln=require("@radix-ui/react-dialog"),An=require("@radix-ui/react-alert-dialog"),Y=require("vaul"),On=require("@radix-ui/react-hover-card"),En=require("@radix-ui/react-tooltip"),Z=require("cmdk"),_n=require("@radix-ui/react-tabs"),Fn=require("@radix-ui/react-accordion"),Vn=require("@radix-ui/react-dropdown-menu"),Gn=require("@radix-ui/react-context-menu"),Wn=require("@radix-ui/react-navigation-menu"),Bn=require("@radix-ui/react-menubar"),Hn=require("@radix-ui/react-avatar"),qn=require("embla-carousel-react"),_=require("recharts"),Yn=require("@radix-ui/react-separator"),$n=require("@radix-ui/react-aspect-ratio"),Kn=require("react-resizable-panels"),Xn=require("@radix-ui/react-toggle"),Un=require("@radix-ui/react-toggle-group"),Qn=require("@radix-ui/react-collapsible");function G(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=G(jn),ct=G(kn),dt=G(Sn),Oe=G(Cn),Jt=G(Rn),Ae=G(Pn),q=G(Mn),ke=G(Dn),xe=G(zn),mt=G(In),re=G(Ln),J=G(An),Qe=G(On),Fe=G(En),ge=G(_n),pe=G(Fn),B=G(Vn),H=G(Gn),ee=G(Wn),V=G(Bn),Se=G(Hn),Ke=G(Yn),Jn=G($n),pt=G(Kn),Zt=G(Xn),Je=G(Un),bt=G(Qn);function er(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=er(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function tr(){for(var e,t,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=er(e))&&(o&&(o+=" "),o+=t);return o}const ht="-",Zn=e=>{const t=tl(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const d=c.split(ht);return d[0]===""&&d.length!==1&&d.shift(),rr(d,t)||el(c)},getConflictingClassGroupIds:(c,d)=>{const m=r[c]||[];return d&&o[c]?[...m,...o[c]]:m}}},rr=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),s=o?rr(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;const n=e.join(ht);return(c=t.validators.find(({validator:d})=>d(n)))==null?void 0:c.classGroupId},Et=/^\[(.+)\]$/,el=e=>{if(Et.test(e)){const t=Et.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},tl=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const s in r)ut(r[s],o,s,t);return o},ut=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){const n=s===""?t:_t(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(rl(s)){ut(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,c])=>{ut(c,_t(t,n),r,o)})})},_t=(e,t)=>{let r=e;return t.split(ht).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},rl=e=>e.isThemeGetter,al=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const s=(n,c)=>{r.set(n,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let c=r.get(n);if(c!==void 0)return c;if((c=o.get(n))!==void 0)return s(n,c),c},set(n,c){r.has(n)?r.set(n,c):s(n,c)}}},ft="!",xt=":",ol=xt.length,sl=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=s=>{const n=[];let c=0,d=0,m=0,f;for(let h=0;h<s.length;h++){let u=s[h];if(c===0&&d===0){if(u===xt){n.push(s.slice(m,h)),m=h+ol;continue}if(u==="/"){f=h;continue}}u==="["?c++:u==="]"?c--:u==="("?d++:u===")"&&d--}const x=n.length===0?s:s.substring(m),b=nl(x),p=b!==x,w=f&&f>m?f-m:void 0;return{modifiers:n,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:w}};if(t){const s=t+xt,n=o;o=c=>c.startsWith(s)?n(c.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(r){const s=o;o=n=>r({className:n,parseClassName:s})}return o},nl=e=>e.endsWith(ft)?e.substring(0,e.length-1):e.startsWith(ft)?e.substring(1):e,ll=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const s=[];let n=[];return o.forEach(c=>{c[0]==="["||t[c]?(s.push(...n.sort(),c),n=[]):n.push(c)}),s.push(...n.sort()),s}},il=e=>({cache:al(e.cacheSize),parseClassName:sl(e),sortModifiers:ll(e),...Zn(e)}),cl=/\s+/,dl=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:n}=t,c=[],d=e.trim().split(cl);let m="";for(let f=d.length-1;f>=0;f-=1){const x=d[f],{isExternal:b,modifiers:p,hasImportantModifier:w,baseClassName:h,maybePostfixModifierPosition:u}=r(x);if(b){m=x+(m.length>0?" "+m:m);continue}let v=!!u,y=o(v?h.substring(0,u):h);if(!y){if(!v){m=x+(m.length>0?" "+m:m);continue}if(y=o(h),!y){m=x+(m.length>0?" "+m:m);continue}v=!1}const C=n(p).join(":"),S=w?C+ft:C,P=S+y;if(c.includes(P))continue;c.push(P);const R=s(y,v);for(let I=0;I<R.length;++I){const g=R[I];c.push(S+g)}m=x+(m.length>0?" "+m:m)}return m};function ml(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ar(t))&&(o&&(o+=" "),o+=r);return o}const ar=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ar(e[o]))&&(r&&(r+=" "),r+=t);return r};function ul(e,...t){let r,o,s,n=c;function c(m){const f=t.reduce((x,b)=>b(x),e());return r=il(f),o=r.cache.get,s=r.cache.set,n=d,d(m)}function d(m){const f=o(m);if(f)return f;const x=dl(m,r);return s(m,x),x}return function(){return n(ml.apply(null,arguments))}}const X=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},or=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fl=/^\d+\/\d+$/,xl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pl=/\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$/,bl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ye=e=>fl.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),ce=e=>!!e&&Number.isInteger(Number(e)),nt=e=>e.endsWith("%")&&A(e.slice(0,-1)),ie=e=>xl.test(e),vl=()=>!0,wl=e=>pl.test(e)&&!bl.test(e),nr=()=>!1,yl=e=>hl.test(e),Nl=e=>gl.test(e),jl=e=>!T(e)&&!D(e),kl=e=>Ce(e,cr,nr),T=e=>or.test(e),ue=e=>Ce(e,dr,wl),lt=e=>Ce(e,Ml,A),Ft=e=>Ce(e,lr,nr),Sl=e=>Ce(e,ir,Nl),Ye=e=>Ce(e,mr,yl),D=e=>sr.test(e),De=e=>Re(e,dr),Cl=e=>Re(e,Tl),Vt=e=>Re(e,lr),Rl=e=>Re(e,cr),Pl=e=>Re(e,ir),$e=e=>Re(e,mr,!0),Ce=(e,t,r)=>{const o=or.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},Re=(e,t,r=!1)=>{const o=sr.exec(e);return o?o[1]?t(o[1]):r:!1},lr=e=>e==="position"||e==="percentage",ir=e=>e==="image"||e==="url",cr=e=>e==="length"||e==="size"||e==="bg-size",dr=e=>e==="length",Ml=e=>e==="number",Tl=e=>e==="family-name",mr=e=>e==="shadow",Dl=()=>{const e=X("color"),t=X("font"),r=X("text"),o=X("font-weight"),s=X("tracking"),n=X("leading"),c=X("breakpoint"),d=X("container"),m=X("spacing"),f=X("radius"),x=X("shadow"),b=X("inset-shadow"),p=X("text-shadow"),w=X("drop-shadow"),h=X("blur"),u=X("perspective"),v=X("aspect"),y=X("ease"),C=X("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...P(),D,T],I=()=>["auto","hidden","clip","visible","scroll"],g=()=>["auto","contain","none"],j=()=>[D,T,m],N=()=>[ye,"full","auto",...j()],M=()=>[ce,"none","subgrid",D,T],O=()=>["auto",{span:["full",ce,D,T]},ce,D,T],z=()=>[ce,"auto",D,T],E=()=>["auto","min","max","fr",D,T],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],se=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...j()],oe=()=>[ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],L=()=>[e,D,T],Pe=()=>[...P(),Vt,Ft,{position:[D,T]}],Me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Te=()=>["auto","cover","contain",Rl,kl,{size:[D,T]}],ot=()=>[nt,De,ue],Q=()=>["","none","full",f,D,T],te=()=>["",A,De,ue],We=()=>["solid","dashed","dotted","double"],At=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[A,nt,Vt,Ft],Ot=()=>["","none",h,D,T],Be=()=>["none",A,D,T],He=()=>["none",A,D,T],st=()=>[A,D,T],qe=()=>[ye,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ie],breakpoint:[ie],color:[vl],container:[ie],"drop-shadow":[ie],ease:["in","out","in-out"],font:[jl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ie],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ie],shadow:[ie],spacing:["px",A],text:[ie],"text-shadow":[ie],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ye,T,D,v]}],container:["container"],columns:[{columns:[A,T,D,d]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:R()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:g()}],"overscroll-x":[{"overscroll-x":g()}],"overscroll-y":[{"overscroll-y":g()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[ce,"auto",D,T]}],basis:[{basis:[ye,"full","auto",d,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[A,ye,"auto","initial","none",T]}],grow:[{grow:["",A,D,T]}],shrink:[{shrink:["",A,D,T]}],order:[{order:[ce,"first","last","none",D,T]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...se(),"normal"]}],"justify-self":[{"justify-self":["auto",...se()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...se(),"baseline"]}],"place-self":[{"place-self":["auto",...se()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],w:[{w:[d,"screen",...oe()]}],"min-w":[{"min-w":[d,"screen","none",...oe()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...oe()]}],h:[{h:["screen",...oe()]}],"min-h":[{"min-h":["screen","none",...oe()]}],"max-h":[{"max-h":["screen",...oe()]}],"font-size":[{text:["base",r,De,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,D,lt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nt,T]}],"font-family":[{font:[Cl,T,t]}],"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:[s,D,T]}],"line-clamp":[{"line-clamp":[A,"none",D,lt]}],leading:[{leading:[n,...j()]}],"list-image":[{"list-image":["none",D,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",D,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...We(),"wavy"]}],"text-decoration-thickness":[{decoration:[A,"from-font","auto",D,ue]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[A,"auto",D,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",D,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Pe()}],"bg-repeat":[{bg:Me()}],"bg-size":[{bg:Te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ce,D,T],radial:["",D,T],conic:[ce,D,T]},Pl,Sl]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:ot()}],"gradient-via-pos":[{via:ot()}],"gradient-to-pos":[{to:ot()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...We(),"hidden","none"]}],"divide-style":[{divide:[...We(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...We(),"none","hidden"]}],"outline-offset":[{"outline-offset":[A,D,T]}],"outline-w":[{outline:["",A,De,ue]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",x,$e,Ye]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",b,$e,Ye]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[A,ue]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",p,$e,Ye]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[A,D,T]}],"mix-blend":[{"mix-blend":[...At(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":At()}],"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":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[D,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Pe()}],"mask-repeat":[{mask:Me()}],"mask-size":[{mask:Te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",D,T]}],filter:[{filter:["","none",D,T]}],blur:[{blur:Ot()}],brightness:[{brightness:[A,D,T]}],contrast:[{contrast:[A,D,T]}],"drop-shadow":[{"drop-shadow":["","none",w,$e,Ye]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",A,D,T]}],"hue-rotate":[{"hue-rotate":[A,D,T]}],invert:[{invert:["",A,D,T]}],saturate:[{saturate:[A,D,T]}],sepia:[{sepia:["",A,D,T]}],"backdrop-filter":[{"backdrop-filter":["","none",D,T]}],"backdrop-blur":[{"backdrop-blur":Ot()}],"backdrop-brightness":[{"backdrop-brightness":[A,D,T]}],"backdrop-contrast":[{"backdrop-contrast":[A,D,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",A,D,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,D,T]}],"backdrop-invert":[{"backdrop-invert":["",A,D,T]}],"backdrop-opacity":[{"backdrop-opacity":[A,D,T]}],"backdrop-saturate":[{"backdrop-saturate":[A,D,T]}],"backdrop-sepia":[{"backdrop-sepia":["",A,D,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",D,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[A,"initial",D,T]}],ease:[{ease:["linear","initial",y,D,T]}],delay:[{delay:[A,D,T]}],animate:[{animate:["none",C,D,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[u,D,T]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:Be()}],"rotate-x":[{"rotate-x":Be()}],"rotate-y":[{"rotate-y":Be()}],"rotate-z":[{"rotate-z":Be()}],scale:[{scale:He()}],"scale-x":[{"scale-x":He()}],"scale-y":[{"scale-y":He()}],"scale-z":[{"scale-z":He()}],"scale-3d":["scale-3d"],skew:[{skew:st()}],"skew-x":[{"skew-x":st()}],"skew-y":[{"skew-y":st()}],transform:[{transform:[D,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",D,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",D,T]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[A,De,ue,lt]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},zl=ul(Dl);function i(...e){return zl(tr(e))}const Gt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Wt=tr,$=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return Wt(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:n}=t,c=Object.keys(s).map(f=>{const x=r==null?void 0:r[f],b=n==null?void 0:n[f];if(x===null)return null;const p=Gt(x)||Gt(b);return s[f][p]}),d=r&&Object.entries(r).reduce((f,x)=>{let[b,p]=x;return p===void 0||(f[b]=p),f},{}),m=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,x)=>{let{class:b,className:p,...w}=x;return Object.entries(w).every(h=>{let[u,v]=h;return Array.isArray(v)?v.includes({...n,...d}[u]):{...n,...d}[u]===v})?[...f,b,p]:f},[]);return Wt(e,c,m,r==null?void 0:r.class,r==null?void 0:r.className)},be=$("inline-flex items-center justify-center font-medium transition-all duration-200 outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{gradient:"bg-gradient-to-r from-purple-500 via-fuchsia-500 to-pink-500 text-white hover:shadow-lg hover:shadow-purple-500/40 hover:scale-[1.02] active:scale-[0.98]",outline:"border border-white/20 bg-white/5 text-white hover:border-purple-400/50 hover:bg-white/10 backdrop-blur-sm",ghost:"bg-transparent text-white/80 hover:bg-white/10 hover:text-white",destructive:"bg-gradient-to-r from-rose-500 to-pink-600 text-white hover:shadow-[var(--glow-danger)] hover:scale-[1.02] active:scale-[0.98]",success:"bg-gradient-to-r from-emerald-500 to-teal-500 text-white hover:shadow-[var(--glow-success)] hover:scale-[1.02] active:scale-[0.98]",secondary:"bg-white/8 text-white/90 hover:bg-white/12 border border-white/10",link:"text-purple-400 hover:text-purple-300 underline-offset-4 hover:underline"},size:{xs:"h-6 px-2.5 text-xs rounded-md gap-1",sm:"h-8 px-3 text-sm rounded-md gap-1.5",md:"h-9 px-4 text-sm rounded-lg gap-2",lg:"h-11 px-6 text-base rounded-lg gap-2",xl:"h-13 px-8 text-lg rounded-xl gap-3",icon:"size-9 rounded-lg p-0"}},defaultVariants:{variant:"gradient",size:"md"}}),K=l.forwardRef(({className:e,variant:t,size:r,asChild:o=!1,loading:s=!1,leftIcon:n,rightIcon:c,fullWidth:d=!1,children:m,disabled:f,...x},b)=>{const p=o?Xt.Slot:"button",w=f||s,h=a.jsxs(a.Fragment,{children:[s&&a.jsx(k.Loader2,{className:"animate-spin",size:16}),!s&&n&&n,m,!s&&c&&c]});return a.jsx(p,{className:i(be({variant:t,size:r,className:e}),d&&"w-full",s&&"pointer-events-none opacity-70"),ref:b,disabled:w,"data-slot":"button",...x,children:h})});K.displayName="Button";const Il=$("rounded-xl transition-all duration-300",{variants:{variant:{glass:"bg-white/5 border border-white/10 backdrop-blur-[12px]",gradient:"bg-white/5 backdrop-blur-[12px] border border-transparent gradient-border",solid:"bg-[var(--color-bg-secondary)] border border-white/10",outlined:"bg-transparent border border-white/20"},padding:{none:"p-0",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"glass",padding:"md"}}),ur=l.forwardRef(({className:e,variant:t,padding:r,hoverable:o=!1,bordered:s=!1,children:n,style:c,accentColor:d,...m},f)=>a.jsx("div",{ref:f,className:i(Il({variant:t,padding:r}),o&&"hover:-translate-y-1 hover:shadow-[var(--shadow-elevated)] cursor-pointer",s&&"border-2",e),style:d?{...c,borderTopColor:d}:c,"data-slot":"card",...m,children:n}));ur.displayName="Card";const fr=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("flex flex-col space-y-1.5",e),...t}));fr.displayName="CardHeader";const xr=l.forwardRef(({className:e,...t},r)=>a.jsx("h3",{ref:r,className:i("text-lg text-white",e),...t}));xr.displayName="CardTitle";const pr=l.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:i("text-sm text-white/60",e),...t}));pr.displayName="CardDescription";const br=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("pt-0",e),...t}));br.displayName="CardContent";const hr=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("flex items-center pt-4",e),...t}));hr.displayName="CardFooter";const gr=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("absolute top-4 right-4",e),...t}));gr.displayName="CardAction";const vr=$("inline-flex items-center font-medium transition-colors border",{variants:{variant:{default:"bg-white/5 border-white/10 text-white/90",gradient:"bg-gradient-to-r from-purple-500 to-fuchsia-500 border-purple-400/30 text-white",outline:"bg-transparent border-white/10 text-white/80",success:"bg-emerald-500/10 border-emerald-400/30 text-emerald-100",warning:"bg-amber-500/10 border-amber-400/30 text-amber-100",destructive:"bg-rose-500/10 border-rose-400/30 text-rose-100",info:"bg-blue-500/10 border-blue-400/30 text-blue-100",secondary:"bg-white/8 border-white/10 text-white/70"},size:{sm:"text-xs px-1.5 py-0.5 gap-0.5 rounded-md",md:"text-xs px-2 py-1 gap-1 rounded-md",lg:"text-sm px-2.5 py-1 gap-1 rounded-lg"}},defaultVariants:{variant:"default",size:"md"}}),wr=l.forwardRef(({className:e,variant:t,size:r,dot:o=!1,removable:s=!1,onRemove:n,asChild:c=!1,children:d,...m},f)=>{const x=c?Xt.Slot:"span";return a.jsxs(x,{ref:f,className:i(vr({variant:t,size:r}),e),"data-slot":"badge",...m,children:[o&&a.jsx("span",{className:i("size-1.5 rounded-full",t==="success"&&"bg-emerald-400",t==="warning"&&"bg-amber-400",t==="destructive"&&"bg-rose-400",t==="info"&&"bg-blue-400",t==="gradient"&&"bg-white",(!t||t==="default"||t==="outline"||t==="secondary")&&"bg-white/50")}),d,s&&a.jsx("button",{type:"button",onClick:b=>{b.stopPropagation(),n==null||n()},className:"ml-0.5 hover:text-white transition-colors",children:a.jsx(k.X,{size:12})})]})});wr.displayName="Badge";const yr=$("w-full rounded-lg border bg-[var(--color-bg-input)] text-white placeholder:text-[var(--color-text-placeholder)] transition-all duration-200 outline-none",{variants:{size:{sm:"h-8 px-3 text-sm",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},status:{default:"border-white/10 focus:border-purple-400/70 focus:ring-2 focus:ring-purple-400/20",error:"border-red-400/70 focus:border-red-400/70 focus:ring-2 focus:ring-red-400/20",warning:"border-amber-400/70 focus:border-amber-400/70 focus:ring-2 focus:ring-amber-400/20",success:"border-emerald-400/70 focus:border-emerald-400/70 focus:ring-2 focus:ring-emerald-400/20"}},defaultVariants:{size:"md",status:"default"}}),Ve=l.forwardRef(({className:e,type:t="text",size:r,status:o,label:s,hint:n,error:c,prefix:d,suffix:m,leftIcon:f,rightIcon:x,clearable:b=!1,onClear:p,loading:w=!1,wrapperClassName:h,value:u,...v},y)=>{const C=c?"error":o||"default",S=b&&u&&!w,P=a.jsxs("div",{className:"relative flex items-center",children:[f&&a.jsx("div",{className:"absolute left-3 text-white/40 pointer-events-none",children:f}),a.jsx("input",{type:t,className:i(yr({size:r,status:C}),f&&"pl-9",(x||w||S)&&"pr-9",e),ref:y,value:u,"data-slot":"input",...v}),w&&a.jsx("div",{className:"absolute right-3 text-white/40",children:a.jsx(k.Loader2,{size:16,className:"animate-spin"})}),!w&&S&&a.jsx("button",{type:"button",onClick:R=>{R.preventDefault(),p==null||p()},className:"absolute right-3 text-white/40 hover:text-white transition-colors",children:a.jsx(k.X,{size:16})}),!w&&!S&&x&&a.jsx("div",{className:"absolute right-3 text-white/40 pointer-events-none",children:x})]});return s||n||c||d||m?a.jsxs("div",{className:i("flex flex-col gap-1.5",h),children:[s&&a.jsx("label",{className:"text-sm font-medium text-white/80",children:s}),d||m?a.jsxs("div",{className:"flex items-center gap-2",children:[d&&a.jsx("span",{className:"text-sm text-white/60 whitespace-nowrap",children:d}),P,m&&a.jsx("span",{className:"text-sm text-white/60 whitespace-nowrap",children:m})]}):P,(n||c)&&a.jsx("p",{className:i("text-xs",c?"text-rose-400":"text-white/50"),children:c||n})]}):P});Ve.displayName="Input";const Nr=l.forwardRef(({className:e,value:t,defaultValue:r,min:o=-1/0,max:s=1/0,step:n=1,precision:c,onChange:d,formatter:m,parser:f,controls:x=!0,disabled:b,...p},w)=>{const[h,u]=l.useState(r),v=l.useRef(null);l.useImperativeHandle(w,()=>v.current);const y=t??h,C=N=>N===void 0?"":m?m(N):c!==void 0?N.toFixed(c):String(N),S=N=>{if(!N)return;if(f)return f(N);const M=parseFloat(N);return isNaN(M)?void 0:M},P=N=>{if(N===void 0)return;let M=Math.max(o,Math.min(s,N));return c!==void 0&&(M=parseFloat(M.toFixed(c))),M},R=N=>{const M=S(N.target.value),O=P(M);u(O),d==null||d(O)},I=N=>{const M=y??0,O=N==="up"?M+n:M-n,z=P(O);u(z),d==null||d(z)},g=y===void 0||y+n<=s,j=y===void 0||y-n>=o;return a.jsxs("div",{className:i("relative flex items-center","rounded-md border border-[var(--color-border)]","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","transition-colors","focus-within:border-[var(--color-primary)] focus-within:ring-2 focus-within:ring-[var(--color-primary)]/20",b&&"opacity-50 cursor-not-allowed",e),children:[a.jsx("input",{ref:v,type:"text",role:"spinbutton",value:C(y),onChange:R,disabled:b,className:i("flex-1 bg-transparent px-3 py-2 text-sm","text-[var(--color-text)] placeholder:text-[var(--color-text-placeholder)]","focus:outline-none",x&&"pr-0"),...p}),x&&a.jsxs("div",{className:"flex flex-col border-l border-[var(--color-border)]",children:[a.jsx(K,{type:"button",variant:"ghost",size:"icon",disabled:b||!g,onClick:()=>I("up"),className:"h-5 w-7 rounded-none rounded-tr-md border-b border-[var(--color-border)] hover:bg-[var(--color-bg-glass-hover)]","aria-label":"Increment",children:a.jsx(k.Plus,{className:"h-3 w-3"})}),a.jsx(K,{type:"button",variant:"ghost",size:"icon",disabled:b||!j,onClick:()=>I("down"),className:"h-5 w-7 rounded-none rounded-br-md hover:bg-[var(--color-bg-glass-hover)]","aria-label":"Decrement",children:a.jsx(k.Minus,{className:"h-3 w-3"})})]})]})});Nr.displayName="InputNumber";const gt=l.forwardRef(({className:e,label:t,error:r,hint:o,status:s="default",id:n,disabled:c,...d},m)=>{const f=l.useId(),x=n||f,b=`${x}-error`,p=`${x}-hint`,w=s==="error"||!!r,h={default:"border-[var(--color-border)] focus:border-[var(--color-border-focus)]",error:"border-[var(--color-border-error)] focus:border-[var(--color-border-error)]",success:"border-[var(--color-border-success)] focus:border-[var(--color-border-success)]",warning:"border-[var(--color-border-warning)] focus:border-[var(--color-border-warning)]"};return a.jsxs("div",{className:"w-full space-y-2",children:[t&&a.jsx("label",{htmlFor:x,className:"block text-sm font-medium text-[var(--color-text)]",children:t}),a.jsx("textarea",{id:x,className:i("flex min-h-[80px] w-full rounded-lg border px-4 py-3","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] placeholder:text-[var(--color-text-placeholder)]","transition-all duration-200","hover:bg-[var(--color-bg-input-hover)]","focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-bg)]","disabled:cursor-not-allowed disabled:opacity-50","resize-y",h[w?"error":s],e),ref:m,disabled:c,"aria-invalid":w?"true":"false","aria-describedby":r?b:o?p:void 0,...d}),r&&a.jsx("p",{id:b,className:"text-sm text-[var(--color-destructive)]",role:"alert",children:r}),o&&!r&&a.jsx("p",{id:p,className:"text-sm text-[var(--color-text-muted)]",children:o})]})});gt.displayName="Textarea";const Ze=l.forwardRef(({className:e,label:t,description:r,id:o,...s},n)=>{const c=l.useId(),d=o||c,m=a.jsx(ct.Root,{ref:n,id:d,className:i("peer h-5 w-5 shrink-0 rounded-md border border-[var(--color-border)]","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","transition-all duration-200","hover:bg-[var(--color-bg-input-hover)] hover:border-[var(--color-border-strong)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-[var(--color-primary)] data-[state=checked]:border-[var(--color-primary)]","data-[state=checked]:shadow-[var(--glow-primary)]",e),...s,children:a.jsx(ct.Indicator,{className:i("flex items-center justify-center text-current"),children:a.jsx(k.Check,{className:"h-4 w-4 text-white"})})});return t||r?a.jsxs("div",{className:"flex items-start gap-3",children:[m,a.jsxs("div",{className:"grid gap-1.5 leading-none",children:[t&&a.jsx("label",{htmlFor:d,className:"text-sm font-medium text-[var(--color-text)] cursor-pointer select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&a.jsx("p",{className:"text-sm text-[var(--color-text-muted)]",children:r})]})]}):m});Ze.displayName=ct.Root.displayName;const jr=l.forwardRef(({className:e,label:t,description:r,id:o,...s},n)=>{const c=l.useId(),d=o||c,m=a.jsx(dt.Root,{id:d,className:i("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","transition-all duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-[var(--color-primary)]","data-[state=checked]:shadow-[var(--glow-primary)]",e),...s,ref:n,children:a.jsx(dt.Thumb,{className:i("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0","transition-transform duration-200","data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})});return t||r?a.jsxs("div",{className:"flex items-start gap-3",children:[m,a.jsxs("div",{className:"grid gap-1.5 leading-none",children:[t&&a.jsx("label",{htmlFor:d,className:"text-sm font-medium text-[var(--color-text)] cursor-pointer select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&a.jsx("p",{className:"text-sm text-[var(--color-text-muted)]",children:r})]})]}):m});jr.displayName=dt.Root.displayName;const kr=l.forwardRef(({className:e,...t},r)=>a.jsx(Oe.Root,{className:i("grid gap-2",e),...t,ref:r}));kr.displayName=Oe.Root.displayName;const Sr=l.forwardRef(({className:e,label:t,description:r,id:o,...s},n)=>{const c=l.useId(),d=o||c,m=a.jsx(Oe.Item,{ref:n,id:d,className:i("aspect-square h-5 w-5 rounded-full border border-[var(--color-border)]","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","transition-all duration-200","hover:bg-[var(--color-bg-input-hover)] hover:border-[var(--color-border-strong)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[var(--color-primary)]",e),...s,children:a.jsx(Oe.Indicator,{className:"flex items-center justify-center",children:a.jsx(k.Circle,{className:"h-2.5 w-2.5 fill-[var(--color-primary)] text-[var(--color-primary)]"})})});return t||r?a.jsxs("div",{className:"flex items-start gap-3",children:[m,a.jsxs("div",{className:"grid gap-1.5 leading-none",children:[t&&a.jsx("label",{htmlFor:d,className:"text-sm font-medium text-[var(--color-text)] cursor-pointer select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&a.jsx("p",{className:"text-sm text-[var(--color-text-muted)]",children:r})]})]}):m});Sr.displayName=Oe.Item.displayName;const Ll=$("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{variant:{default:"text-[var(--color-text)]",muted:"text-[var(--color-text-muted)]",error:"text-[var(--color-destructive)]"},required:{true:"after:content-['*'] after:ml-0.5 after:text-[var(--color-destructive)]"}},defaultVariants:{variant:"default"}}),vt=l.forwardRef(({className:e,variant:t,required:r,...o},s)=>a.jsx(Jt.Root,{ref:s,className:i(Ll({variant:t,required:r}),e),...o}));vt.displayName=Jt.Root.displayName;const Cr=l.forwardRef(({className:e,label:t,showValue:r,...o},s)=>{const n=o.value||o.defaultValue||[0],c=Array.isArray(n)?n[0]:n;return a.jsxs("div",{className:"w-full space-y-3",children:[(t||r)&&a.jsxs("div",{className:"flex items-center justify-between",children:[t&&a.jsx("label",{className:"text-sm font-medium text-[var(--color-text)]",children:t}),r&&a.jsx("span",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:c})]}),a.jsxs(Ae.Root,{ref:s,className:i("relative flex w-full touch-none select-none items-center",e),...o,children:[a.jsx(Ae.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]",children:a.jsx(Ae.Range,{className:"absolute h-full bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]"})}),a.jsx(Ae.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-[var(--color-primary)] bg-white shadow-lg transition-all hover:scale-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)] disabled:pointer-events-none disabled:opacity-50"})]})]})});Cr.displayName=Ae.Root.displayName;const Al=q.Root,Ol=q.Group,El=q.Value,Rr=l.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(q.Trigger,{ref:o,className:i("flex h-11 w-full items-center justify-between rounded-lg border border-[var(--color-border)] px-4 py-2","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] placeholder:text-[var(--color-text-placeholder)]","transition-all duration-200","hover:bg-[var(--color-bg-input-hover)] hover:border-[var(--color-border-strong)]","focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-bg)]","disabled:cursor-not-allowed disabled:opacity-50","[&>span]:line-clamp-1",e),...r,children:[t,a.jsx(q.Icon,{asChild:!0,children:a.jsx(k.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Rr.displayName=q.Trigger.displayName;const wt=l.forwardRef(({className:e,...t},r)=>a.jsx(q.ScrollUpButton,{ref:r,className:i("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(k.ChevronUp,{className:"h-4 w-4"})}));wt.displayName=q.ScrollUpButton.displayName;const yt=l.forwardRef(({className:e,...t},r)=>a.jsx(q.ScrollDownButton,{ref:r,className:i("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(k.ChevronDown,{className:"h-4 w-4"})}));yt.displayName=q.ScrollDownButton.displayName;const Pr=l.forwardRef(({className:e,children:t,position:r="popper",...o},s)=>a.jsx(q.Portal,{children:a.jsxs(q.Content,{ref:s,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)]","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[a.jsx(wt,{}),a.jsx(q.Viewport,{className:i("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(yt,{})]})}));Pr.displayName=q.Content.displayName;const Mr=l.forwardRef(({className:e,...t},r)=>a.jsx(q.Label,{ref:r,className:i("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Mr.displayName=q.Label.displayName;const Tr=l.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(q.Item,{ref:o,className:i("relative flex w-full cursor-pointer select-none items-center rounded-md py-2 pl-8 pr-2 text-sm outline-none","transition-colors duration-150","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(q.ItemIndicator,{children:a.jsx(k.Check,{className:"h-4 w-4 text-[var(--color-primary)]"})})}),a.jsx(q.ItemText,{children:t})]}));Tr.displayName=q.Item.displayName;const Dr=l.forwardRef(({className:e,...t},r)=>a.jsx(q.Separator,{ref:r,className:i("-mx-1 my-1 h-px bg-[var(--color-border)]",e),...t}));Dr.displayName=q.Separator.displayName;const zr=l.forwardRef(({className:e,containerClassName:t,...r},o)=>a.jsx(Ut.OTPInput,{ref:o,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:i("disabled:cursor-not-allowed",e),...r}));zr.displayName="InputOTP";const Ir=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("flex items-center",e),...t}));Ir.displayName="InputOTPGroup";const Lr=l.forwardRef(({index:e,className:t,...r},o)=>{const s=l.useContext(Ut.OTPInputContext),{char:n,hasFakeCaret:c,isActive:d}=s.slots[e];return a.jsxs("div",{ref:o,className:i("relative flex h-10 w-10 items-center justify-center border-y border-r border-[var(--color-border)]","bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]","text-sm transition-all","first:rounded-l-md first:border-l last:rounded-r-md",d&&"z-10 ring-2 ring-[var(--color-primary)] ring-offset-[var(--color-bg)]",t),...r,children:[n,c&&a.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"h-4 w-px animate-caret-blink bg-[var(--color-text)] duration-1000"})})]})});Lr.displayName="InputOTPSlot";const Ar=l.forwardRef(({...e},t)=>a.jsx("div",{ref:t,role:"separator",...e,children:a.jsx(k.Dot,{})}));Ar.displayName="InputOTPSeparator";const Or=l.createContext({errors:{},touched:{}}),Er=l.forwardRef(({className:e,onSubmit:t,errors:r={},touched:o={},...s},n)=>a.jsx(Or.Provider,{value:{errors:r,touched:o},children:a.jsx("form",{ref:n,onSubmit:t,className:i("space-y-6",e),...s})}));Er.displayName="Form";const _r=l.forwardRef(({className:e,label:t,name:r,required:o,description:s,children:n,...c},d)=>{const{errors:m,touched:f}=l.useContext(Or),x=r&&f[r]?m[r]:void 0;return a.jsxs("div",{ref:d,className:i("space-y-2",e),...c,children:[t&&a.jsxs(vt,{htmlFor:r,children:[t,o&&a.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),n,s&&!x&&a.jsx("p",{className:"text-xs text-[var(--color-text-muted)]",children:s}),x&&a.jsx("p",{className:"text-xs text-red-500",children:x})]})});_r.displayName="FormItem";const Fr=l.forwardRef(({className:e,title:t,description:r,children:o,...s},n)=>a.jsxs("div",{ref:n,className:i("space-y-4",e),...s,children:[(t||r)&&a.jsxs("div",{className:"space-y-1",children:[t&&a.jsx("h3",{className:"text-lg font-semibold text-[var(--color-text)]",children:t}),r&&a.jsx("p",{className:"text-sm text-[var(--color-text-muted)]",children:r})]}),a.jsx("div",{className:"space-y-4",children:o})]}));Fr.displayName="FormSection";const Vr=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("flex items-center gap-3 pt-4",e),...t}));Vr.displayName="FormActions";function le(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function he(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Gr=6048e5,_l=864e5;let Fl={};function et(){return Fl}function Ee(e,t){var d,m,f,x;const r=et(),o=(t==null?void 0:t.weekStartsOn)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((x=(f=r.locale)==null?void 0:f.options)==null?void 0:x.weekStartsOn)??0,s=le(e),n=s.getDay(),c=(n<o?7:0)+n-o;return s.setDate(s.getDate()-c),s.setHours(0,0,0,0),s}function Ue(e){return Ee(e,{weekStartsOn:1})}function Wr(e){const t=le(e),r=t.getFullYear(),o=he(e,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Ue(o),n=he(e,0);n.setFullYear(r,0,4),n.setHours(0,0,0,0);const c=Ue(n);return t.getTime()>=s.getTime()?r+1:t.getTime()>=c.getTime()?r:r-1}function Bt(e){const t=le(e);return t.setHours(0,0,0,0),t}function Ht(e){const t=le(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Vl(e,t){const r=Bt(e),o=Bt(t),s=+r-Ht(r),n=+o-Ht(o);return Math.round((s-n)/_l)}function Gl(e){const t=Wr(e),r=he(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Ue(r)}function Wl(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Bl(e){if(!Wl(e)&&typeof e!="number")return!1;const t=le(e);return!isNaN(Number(t))}function Hl(e){const t=le(e),r=he(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const ql={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Yl=(e,t,r)=>{let o;const s=ql[e];return typeof s=="string"?o=s:t===1?o=s.one:o=s.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function it(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const $l={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ul={date:it({formats:$l,defaultWidth:"full"}),time:it({formats:Kl,defaultWidth:"full"}),dateTime:it({formats:Xl,defaultWidth:"full"})},Ql={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jl=(e,t,r,o)=>Ql[e];function ze(e){return(t,r)=>{const o=r!=null&&r.context?String(r.context):"standalone";let s;if(o==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,d=r!=null&&r.width?String(r.width):c;s=e.formattingValues[d]||e.formattingValues[c]}else{const c=e.defaultWidth,d=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[d]||e.values[c]}const n=e.argumentCallback?e.argumentCallback(t):t;return s[n]}}const Zl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ei={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ti={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ri={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ai={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},si=(e,t)=>{const r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ni={ordinalNumber:si,era:ze({values:Zl,defaultWidth:"wide"}),quarter:ze({values:ei,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ze({values:ti,defaultWidth:"wide"}),day:ze({values:ri,defaultWidth:"wide"}),dayPeriod:ze({values:ai,defaultWidth:"wide",formattingValues:oi,defaultFormattingWidth:"wide"})};function Ie(e){return(t,r={})=>{const o=r.width,s=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],n=t.match(s);if(!n)return null;const c=n[0],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(d)?ii(d,b=>b.test(c)):li(d,b=>b.test(c));let f;f=e.valueCallback?e.valueCallback(m):m,f=r.valueCallback?r.valueCallback(f):f;const x=t.slice(c.length);return{value:f,rest:x}}}function li(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function ii(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function ci(e){return(t,r={})=>{const o=t.match(e.matchPattern);if(!o)return null;const s=o[0],n=t.match(e.parsePattern);if(!n)return null;let c=e.valueCallback?e.valueCallback(n[0]):n[0];c=r.valueCallback?r.valueCallback(c):c;const d=t.slice(s.length);return{value:c,rest:d}}}const di=/^(\d+)(th|st|nd|rd)?/i,mi=/\d+/i,ui={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fi={any:[/^b/i,/^(a|c)/i]},xi={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pi={any:[/1/i,/2/i,/3/i,/4/i]},bi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},hi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},vi={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wi={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},yi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ni={ordinalNumber:ci({matchPattern:di,parsePattern:mi,valueCallback:e=>parseInt(e,10)}),era:Ie({matchPatterns:ui,defaultMatchWidth:"wide",parsePatterns:fi,defaultParseWidth:"any"}),quarter:Ie({matchPatterns:xi,defaultMatchWidth:"wide",parsePatterns:pi,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ie({matchPatterns:bi,defaultMatchWidth:"wide",parsePatterns:hi,defaultParseWidth:"any"}),day:Ie({matchPatterns:gi,defaultMatchWidth:"wide",parsePatterns:vi,defaultParseWidth:"any"}),dayPeriod:Ie({matchPatterns:wi,defaultMatchWidth:"any",parsePatterns:yi,defaultParseWidth:"any"})},ji={code:"en-US",formatDistance:Yl,formatLong:Ul,formatRelative:Jl,localize:ni,match:Ni,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ki(e){const t=le(e);return Vl(t,Hl(t))+1}function Si(e){const t=le(e),r=+Ue(t)-+Gl(t);return Math.round(r/Gr)+1}function Br(e,t){var x,b,p,w;const r=le(e),o=r.getFullYear(),s=et(),n=(t==null?void 0:t.firstWeekContainsDate)??((b=(x=t==null?void 0:t.locale)==null?void 0:x.options)==null?void 0:b.firstWeekContainsDate)??s.firstWeekContainsDate??((w=(p=s.locale)==null?void 0:p.options)==null?void 0:w.firstWeekContainsDate)??1,c=he(e,0);c.setFullYear(o+1,0,n),c.setHours(0,0,0,0);const d=Ee(c,t),m=he(e,0);m.setFullYear(o,0,n),m.setHours(0,0,0,0);const f=Ee(m,t);return r.getTime()>=d.getTime()?o+1:r.getTime()>=f.getTime()?o:o-1}function Ci(e,t){var d,m,f,x;const r=et(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((x=(f=r.locale)==null?void 0:f.options)==null?void 0:x.firstWeekContainsDate)??1,s=Br(e,t),n=he(e,0);return n.setFullYear(s,0,o),n.setHours(0,0,0,0),Ee(n,t)}function Ri(e,t){const r=le(e),o=+Ee(r,t)-+Ci(r,t);return Math.round(o/Gr)+1}function F(e,t){const r=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return r+o}const de={y(e,t){const r=e.getFullYear(),o=r>0?r:1-r;return F(t==="yy"?o%100:o,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):F(r+1,2)},d(e,t){return F(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return F(e.getHours()%12||12,t.length)},H(e,t){return F(e.getHours(),t.length)},m(e,t){return F(e.getMinutes(),t.length)},s(e,t){return F(e.getSeconds(),t.length)},S(e,t){const r=t.length,o=e.getMilliseconds(),s=Math.trunc(o*Math.pow(10,r-3));return F(s,t.length)}},Ne={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qt={G:function(e,t,r){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const o=e.getFullYear(),s=o>0?o:1-o;return r.ordinalNumber(s,{unit:"year"})}return de.y(e,t)},Y:function(e,t,r,o){const s=Br(e,o),n=s>0?s:1-s;if(t==="YY"){const c=n%100;return F(c,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):F(n,t.length)},R:function(e,t){const r=Wr(e);return F(r,t.length)},u:function(e,t){const r=e.getFullYear();return F(r,t.length)},Q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return F(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return F(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){const o=e.getMonth();switch(t){case"M":case"MM":return de.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return F(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){const s=Ri(e,o);return t==="wo"?r.ordinalNumber(s,{unit:"week"}):F(s,t.length)},I:function(e,t,r){const o=Si(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):F(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):de.d(e,t)},D:function(e,t,r){const o=ki(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):F(o,t.length)},E:function(e,t,r){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){const s=e.getDay(),n=(s-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return F(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){const s=e.getDay(),n=(s-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return F(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){const o=e.getDay(),s=o===0?7:o;switch(t){case"i":return String(s);case"ii":return F(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){const o=e.getHours();let s;switch(o===12?s=Ne.noon:o===0?s=Ne.midnight:s=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){const o=e.getHours();let s;switch(o>=17?s=Ne.evening:o>=12?s=Ne.afternoon:o>=4?s=Ne.morning:s=Ne.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return de.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):de.H(e,t)},K:function(e,t,r){const o=e.getHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):F(o,t.length)},k:function(e,t,r){let o=e.getHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):F(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):de.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):de.s(e,t)},S:function(e,t){return de.S(e,t)},X:function(e,t,r){const o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return $t(o);case"XXXX":case"XX":return fe(o);case"XXXXX":case"XXX":default:return fe(o,":")}},x:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"x":return $t(o);case"xxxx":case"xx":return fe(o);case"xxxxx":case"xxx":default:return fe(o,":")}},O:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Yt(o,":");case"OOOO":default:return"GMT"+fe(o,":")}},z:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Yt(o,":");case"zzzz":default:return"GMT"+fe(o,":")}},t:function(e,t,r){const o=Math.trunc(e.getTime()/1e3);return F(o,t.length)},T:function(e,t,r){const o=e.getTime();return F(o,t.length)}};function Yt(e,t=""){const r=e>0?"-":"+",o=Math.abs(e),s=Math.trunc(o/60),n=o%60;return n===0?r+String(s):r+String(s)+t+F(n,2)}function $t(e,t){return e%60===0?(e>0?"-":"+")+F(Math.abs(e)/60,2):fe(e,t)}function fe(e,t=""){const r=e>0?"-":"+",o=Math.abs(e),s=F(Math.trunc(o/60),2),n=F(o%60,2);return r+s+t+n}const Kt=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Hr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Pi=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],o=r[1],s=r[2];if(!s)return Kt(e,t);let n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",Kt(o,t)).replace("{{time}}",Hr(s,t))},Mi={p:Hr,P:Pi},Ti=/^D+$/,Di=/^Y+$/,zi=["D","DD","YY","YYYY"];function Ii(e){return Ti.test(e)}function Li(e){return Di.test(e)}function Ai(e,t,r){const o=Oi(e,t,r);if(console.warn(o),zi.includes(e))throw new RangeError(o)}function Oi(e,t,r){const o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ei=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fi=/^'([^]*?)'?$/,Vi=/''/g,Gi=/[a-zA-Z]/;function Xe(e,t,r){var x,b,p,w;const o=et(),s=o.locale??ji,n=o.firstWeekContainsDate??((b=(x=o.locale)==null?void 0:x.options)==null?void 0:b.firstWeekContainsDate)??1,c=o.weekStartsOn??((w=(p=o.locale)==null?void 0:p.options)==null?void 0:w.weekStartsOn)??0,d=le(e);if(!Bl(d))throw new RangeError("Invalid time value");let m=t.match(_i).map(h=>{const u=h[0];if(u==="p"||u==="P"){const v=Mi[u];return v(h,s.formatLong)}return h}).join("").match(Ei).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const u=h[0];if(u==="'")return{isToken:!1,value:Wi(h)};if(qt[u])return{isToken:!0,value:h};if(u.match(Gi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:h}});s.localize.preprocessor&&(m=s.localize.preprocessor(d,m));const f={firstWeekContainsDate:n,weekStartsOn:c,locale:s};return m.map(h=>{if(!h.isToken)return h.value;const u=h.value;(Li(u)||Ii(u))&&Ai(u,t,String(e));const v=qt[u[0]];return v(d,u,s.localize,f)}).join("")}function Wi(e){const t=e.match(Fi);return t?t[1].replace(Vi,"'"):e}function tt({className:e,classNames:t,showOutsideDays:r=!0,...o}){return a.jsx(Tn.DayPicker,{showOutsideDays:r,className:i("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium text-[var(--color-text)]",nav:"space-x-1 flex items-center",nav_button:i(be({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-[var(--color-text-muted)] rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-[var(--color-bg-glass)]/50 [&:has([aria-selected])]:bg-[var(--color-bg-glass)] first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:i(be({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-[var(--color-primary)] text-white hover:bg-[var(--color-primary)] hover:text-white focus:bg-[var(--color-primary)] focus:text-white",day_today:"bg-[var(--color-bg-glass)] text-[var(--color-text)]",day_outside:"day-outside text-[var(--color-text-muted)] opacity-50 aria-selected:bg-[var(--color-bg-glass)]/50 aria-selected:text-[var(--color-text-muted)] aria-selected:opacity-30",day_disabled:"text-[var(--color-text-muted)] opacity-50",day_range_middle:"aria-selected:bg-[var(--color-bg-glass)] aria-selected:text-[var(--color-text)]",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>a.jsx(k.ChevronLeft,{className:"h-4 w-4"}),IconRight:({...s})=>a.jsx(k.ChevronRight,{className:"h-4 w-4"})},...o})}tt.displayName="Calendar";const ve=ke.Root,we=ke.Trigger,Bi=ke.Anchor,me=l.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},s)=>a.jsx(ke.Portal,{children:a.jsx(ke.Content,{ref:s,align:t,sideOffset:r,className:i("z-50 w-72 rounded-lg border border-[var(--color-border)] p-4","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));me.displayName=ke.Content.displayName;const qr=l.forwardRef(({date:e,onDateChange:t,placeholder:r="Pick a date",disabled:o,className:s},n)=>a.jsxs(ve,{children:[a.jsx(we,{asChild:!0,children:a.jsxs(K,{ref:n,variant:"outline",disabled:o,className:i("w-full justify-start text-left font-normal",!e&&"text-[var(--color-text-muted)]",s),children:[a.jsx(k.CalendarIcon,{className:"mr-2 h-4 w-4"}),e?Xe(e,"PPP"):a.jsx("span",{children:r})]})}),a.jsx(me,{className:"w-auto p-0",align:"start",children:a.jsx(tt,{mode:"single",selected:e,onSelect:t,initialFocus:!0})})]}));qr.displayName="DatePicker";const Yr=l.forwardRef(({dateRange:e,onDateRangeChange:t,placeholder:r="Pick a date range",disabled:o,className:s},n)=>a.jsxs(ve,{children:[a.jsx(we,{asChild:!0,children:a.jsxs(K,{ref:n,variant:"outline",disabled:o,className:i("w-full justify-start text-left font-normal",!e&&"text-[var(--color-text-muted)]",s),children:[a.jsx(k.CalendarIcon,{className:"mr-2 h-4 w-4"}),e!=null&&e.from?e.to?a.jsxs(a.Fragment,{children:[Xe(e.from,"LLL dd, y")," -"," ",Xe(e.to,"LLL dd, y")]}):Xe(e.from,"LLL dd, y"):a.jsx("span",{children:r})]})}),a.jsx(me,{className:"w-auto p-0",align:"start",children:a.jsx(tt,{mode:"range",selected:e,onSelect:t,numberOfMonths:2,initialFocus:!0})})]}));Yr.displayName="DateRangePicker";const je=l.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(xe.Root,{ref:o,className:i("relative overflow-hidden",e),...r,children:[a.jsx(xe.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(Nt,{}),a.jsx(xe.Corner,{})]}));je.displayName=xe.Root.displayName;const Nt=l.forwardRef(({className:e,orientation:t="vertical",...r},o)=>a.jsx(xe.ScrollAreaScrollbar,{ref:o,orientation:t,className:i("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:a.jsx(xe.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-[var(--color-border)] hover:bg-[var(--color-border-strong)] transition-colors"})}));Nt.displayName=xe.ScrollAreaScrollbar.displayName;const $r=l.forwardRef(({value:e,defaultValue:t,onChange:r,format:o="24",minuteStep:s=1,secondStep:n=1,showSecond:c=!1,disabled:d,placeholder:m="Select time",className:f},x)=>{const[b,p]=l.useState(t),[w,h]=l.useState(!1),u=e??b,v=o==="12"?Array.from({length:12},(g,j)=>j+1):Array.from({length:24},(g,j)=>j),y=Array.from({length:60/s},(g,j)=>j*s),C=Array.from({length:60/n},(g,j)=>j*n),S=()=>{if(!u)return m;let g=u.getHours();const j=u.getMinutes(),N=u.getSeconds();let M="";return o==="12"&&(M=g>=12?" PM":" AM",g=g%12||12),(c?`${String(g).padStart(2,"0")}:${String(j).padStart(2,"0")}:${String(N).padStart(2,"0")}`:`${String(g).padStart(2,"0")}:${String(j).padStart(2,"0")}`)+M},P=(g,j)=>{const N=u?new Date(u):new Date;if(g==="hour")if(o==="12"){const M=N.getHours()>=12,O=j===12?M?12:0:j+(M?12:0);N.setHours(O)}else N.setHours(j);else g==="minute"?N.setMinutes(j):g==="second"&&N.setSeconds(j);p(N),r==null||r(N)},R=()=>{if(!u||o!=="12")return;const g=new Date(u),j=g.getHours();g.setHours((j+12)%24),p(g),r==null||r(g)},I=()=>{if(!u)return o==="12"?12:0;const g=u.getHours();return o==="12"?g%12||12:g};return a.jsxs(ve,{open:w,onOpenChange:h,children:[a.jsx(we,{asChild:!0,children:a.jsxs(K,{ref:x,variant:"outline",disabled:d,className:i("w-full justify-start text-left font-normal",!u&&"text-[var(--color-text-muted)]",f),children:[a.jsx(k.Clock,{className:"mr-2 h-4 w-4"}),S()]})}),a.jsx(me,{className:"w-auto p-0",align:"start",children:a.jsxs("div",{className:"flex",children:[a.jsx(je,{className:"h-64 w-20",children:a.jsx("div",{className:"p-1",children:v.map(g=>a.jsx("button",{onClick:()=>P("hour",g),className:i("w-full px-3 py-2 text-sm rounded-md transition-colors text-center",I()===g?"bg-[var(--color-primary)] text-white":"hover:bg-[var(--color-bg-glass-hover)]"),children:String(g).padStart(2,"0")},g))})}),a.jsx(je,{className:"h-64 w-20 border-l border-[var(--color-border)]",children:a.jsx("div",{className:"p-1",children:y.map(g=>a.jsx("button",{onClick:()=>P("minute",g),className:i("w-full px-3 py-2 text-sm rounded-md transition-colors text-center",(u==null?void 0:u.getMinutes())===g?"bg-[var(--color-primary)] text-white":"hover:bg-[var(--color-bg-glass-hover)]"),children:String(g).padStart(2,"0")},g))})}),c&&a.jsx(je,{className:"h-64 w-20 border-l border-[var(--color-border)]",children:a.jsx("div",{className:"p-1",children:C.map(g=>a.jsx("button",{onClick:()=>P("second",g),className:i("w-full px-3 py-2 text-sm rounded-md transition-colors text-center",(u==null?void 0:u.getSeconds())===g?"bg-[var(--color-primary)] text-white":"hover:bg-[var(--color-bg-glass-hover)]"),children:String(g).padStart(2,"0")},g))})}),o==="12"&&a.jsxs("div",{className:"flex flex-col border-l border-[var(--color-border)] p-1",children:[a.jsx("button",{onClick:R,className:i("px-3 py-2 text-sm rounded-md transition-colors",u&&u.getHours()<12?"bg-[var(--color-primary)] text-white":"hover:bg-[var(--color-bg-glass-hover)]"),children:"AM"}),a.jsx("button",{onClick:R,className:i("px-3 py-2 text-sm rounded-md transition-colors mt-1",u&&u.getHours()>=12?"bg-[var(--color-primary)] text-white":"hover:bg-[var(--color-bg-glass-hover)]"),children:"PM"})]})]})})]})});$r.displayName="TimePicker";const Hi=["#f87171","#fb923c","#fbbf24","#facc15","#a3e635","#4ade80","#34d399","#2dd4bf","#22d3ee","#38bdf8","#60a5fa","#818cf8","#a78bfa","#c084fc","#e879f9","#f472b6","#fb7185","#000000"],Kr=l.forwardRef(({value:e="#000000",onChange:t,presetColors:r=Hi,showInput:o=!0,disabled:s=!1,className:n},c)=>{const[d,m]=l.useState(e);l.useEffect(()=>{m(e)},[e]);const f=x=>{m(x),t==null||t(x)};return a.jsx("div",{ref:c,className:i("inline-block",n),children:a.jsxs(ve,{children:[a.jsx(we,{asChild:!0,children:a.jsx("button",{type:"button",disabled:s,className:i("h-10 w-10 rounded-md border-2 border-[var(--color-border)] transition-all","hover:border-[var(--color-border-strong)]","focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] focus:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed",n),style:{backgroundColor:d}})}),a.jsx(me,{className:"w-64",children:a.jsxs("div",{className:"space-y-4",children:[o&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ve,{value:d,onChange:x=>f(x.target.value),placeholder:"#000000",className:"flex-1"}),a.jsx("div",{className:"h-10 w-10 rounded-md border border-[var(--color-border)]",style:{backgroundColor:d}})]}),a.jsx("div",{className:"grid grid-cols-6 gap-2",children:r.map(x=>a.jsx("button",{type:"button",className:i("h-8 w-8 rounded-md border border-[var(--color-border)] transition-all","hover:scale-110 focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)]","flex items-center justify-center"),style:{backgroundColor:x},onClick:()=>f(x),children:d.toLowerCase()===x.toLowerCase()&&a.jsx(k.Check,{className:"h-4 w-4 text-white drop-shadow-md"})},x))})]})})]})})});Kr.displayName="ColorPicker";const Xr=l.forwardRef(({value:e=0,onChange:t,max:r=5,readonly:o=!1,disabled:s=!1,allowHalf:n=!1,size:c="md",className:d},m)=>{const[f,x]=l.useState(null),b={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"},p=(v,y)=>{if(o||s)return;const C=y?v+.5:v+1;t==null||t(C)},w=(v,y)=>{if(o||s)return;const C=y?v+.5:v+1;x(C)},h=()=>{x(null)},u=f??e;return a.jsx("div",{ref:m,className:i("inline-flex items-center gap-1",(o||s)&&"pointer-events-none",s&&"opacity-50",d),onMouseLeave:h,children:Array.from({length:r}).map((v,y)=>{const C=y<Math.floor(u),S=n&&y===Math.floor(u)&&u%1!==0;return a.jsxs("div",{className:"relative inline-flex cursor-pointer",children:[n&&a.jsx("div",{className:"absolute inset-0 w-1/2 z-10",onClick:()=>p(y,!0),onMouseEnter:()=>w(y,!0)}),a.jsxs("div",{className:"relative",onClick:()=>p(y,!1),onMouseEnter:()=>w(y,!1),children:[a.jsx(k.Star,{className:i(b[c],"transition-all",C||S?"fill-[var(--color-primary)] text-[var(--color-primary)]":"text-[var(--color-border-strong)]")}),S&&a.jsx("div",{className:"absolute inset-0 overflow-hidden w-1/2",children:a.jsx(k.Star,{className:i(b[c],"fill-[var(--color-primary)] text-[var(--color-primary)]")})})]})]},y)})})});Xr.displayName="Rating";const Ur=l.forwardRef(({accept:e,multiple:t=!1,maxSize:r,maxCount:o,fileList:s=[],onChange:n,onRemove:c,beforeUpload:d,customRequest:m,disabled:f=!1,listType:x="text",className:b},p)=>{const w=l.useRef(null),[h,u]=l.useState(s);l.useEffect(()=>{u(s)},[s]);const v=async S=>{const P=Array.from(S.target.files||[]);for(const R of P){if(r&&R.size>r){console.error(`File ${R.name} exceeds max size`);continue}if(o&&h.length>=o){console.error("Maximum file count reached");break}if(d&&!await d(R))continue;const I={uid:`${Date.now()}-${R.name}`,name:R.name,status:"uploading",percent:0},g=[...h,I];u(g),n==null||n(g);try{if(m){const N=await m(R);I.url=N.url}else I.url=URL.createObjectURL(R);I.status="done",I.percent=100}catch{I.status="error"}const j=g.map(N=>N.uid===I.uid?I:N);u(j),n==null||n(j)}w.current&&(w.current.value="")},y=S=>{const P=h.filter(R=>R.uid!==S.uid);u(P),n==null||n(P),c==null||c(S)},C=()=>{var S;(S=w.current)==null||S.click()};return a.jsxs("div",{ref:p,className:i("space-y-4",b),children:[a.jsxs("div",{onClick:C,className:i("border-2 border-dashed border-[var(--color-border)] rounded-lg p-6","hover:border-[var(--color-primary)] transition-colors cursor-pointer","flex flex-col items-center justify-center gap-2",f&&"opacity-50 cursor-not-allowed"),children:[a.jsx(k.Upload,{className:"h-8 w-8 text-[var(--color-text-muted)]"}),a.jsx("div",{className:"text-sm text-[var(--color-text-muted)]",children:"Click to upload or drag and drop"}),a.jsx("input",{ref:w,type:"file",accept:e,multiple:t,disabled:f,onChange:v,className:"hidden"})]}),h.length>0&&a.jsx("div",{className:"space-y-2",children:h.map(S=>a.jsxs("div",{className:i("flex items-center gap-3 p-3 rounded-lg border border-[var(--color-border)]","bg-[var(--color-bg-glass)]"),children:[x==="picture"&&S.url?a.jsx("img",{src:S.url,alt:S.name,className:"h-12 w-12 object-cover rounded"}):a.jsx(k.FileIcon,{className:"h-8 w-8 text-[var(--color-text-muted)]"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"text-sm text-[var(--color-text)] truncate",children:S.name}),S.status==="uploading"&&a.jsxs("div",{className:"text-xs text-[var(--color-text-muted)]",children:["Uploading... ",S.percent,"%"]}),S.status==="error"&&a.jsx("div",{className:"text-xs text-red-500",children:"Upload failed"})]}),a.jsx(K,{variant:"ghost",size:"icon",onClick:P=>{P.stopPropagation(),y(S)},children:a.jsx(k.X,{className:"h-4 w-4"})})]},S.uid))})]})});Ur.displayName="Upload";const Qr=l.forwardRef(({options:e,value:t,defaultValue:r="",onChange:o,onSelect:s,placeholder:n,disabled:c,className:d},m)=>{const[f,x]=l.useState(r),[b,p]=l.useState(!1),[w,h]=l.useState(0),u=l.useRef(null),v=t??f,y=l.useMemo(()=>v?e.filter(R=>R.label.toLowerCase().includes(v.toLowerCase())):e,[e,v]);l.useEffect(()=>{const R=I=>{u.current&&!u.current.contains(I.target)&&p(!1)};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[]);const C=R=>{x(R),o==null||o(R),p(!0),h(0)},S=R=>{x(R.value),o==null||o(R.value),s==null||s(R.value,R),p(!1)},P=R=>{if(!(!b||y.length===0))switch(R.key){case"ArrowDown":R.preventDefault(),h(I=>I<y.length-1?I+1:0);break;case"ArrowUp":R.preventDefault(),h(I=>I>0?I-1:y.length-1);break;case"Enter":R.preventDefault(),y[w]&&S(y[w]);break;case"Escape":p(!1);break}};return a.jsxs("div",{ref:u,className:i("relative",d),children:[a.jsx(Ve,{ref:m,value:v,onChange:R=>C(R.target.value),onFocus:()=>p(!0),onKeyDown:P,placeholder:n,disabled:c}),b&&y.length>0&&a.jsx("div",{className:i("absolute z-50 w-full mt-1 max-h-60 overflow-auto rounded-lg border border-[var(--color-border)]","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","shadow-[var(--shadow-glass)]","animate-in fade-in-0 zoom-in-95"),children:y.map((R,I)=>a.jsx("div",{onClick:()=>S(R),className:i("px-3 py-2 cursor-pointer transition-colors text-sm",I===w?"bg-[var(--color-bg-glass-hover)] text-[var(--color-text)]":"text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)]"),children:R.label},R.value))})]})});Qr.displayName="AutoComplete";const Jr=l.forwardRef(({options:e,value:t,defaultValue:r="",onChange:o,onSelect:s,prefix:n="@",placeholder:c,disabled:d,rows:m=3,className:f},x)=>{const[b,p]=l.useState(r),[w,h]=l.useState(!1),[u,v]=l.useState(""),[y,C]=l.useState({top:0,left:0}),[S,P]=l.useState(0),R=l.useRef(null),I=l.useRef(null),g=t??b,j=l.useMemo(()=>u?e.filter(z=>z.label.toLowerCase().includes(u.toLowerCase())):e,[e,u]);l.useEffect(()=>{const z=E=>{I.current&&!I.current.contains(E.target)&&h(!1)};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[]);const N=z=>{const E=z.target.value;p(E),o==null||o(E);const ae=z.target.selectionStart,W=E.slice(0,ae).match(new RegExp(`${n}(\\w*)$`));W?(v(W[1]),h(!0),P(0)):h(!1)},M=z=>{if(!R.current)return;const E=R.current.selectionStart,ae=g.slice(0,E),se=g.slice(E),W=ae.match(new RegExp(`${n}(\\w*)$`));if(!W)return;const oe=ae.slice(0,-W[0].length),L=`${oe}${n}${z.value} ${se}`;p(L),o==null||o(L),s==null||s(z),h(!1),setTimeout(()=>{var Me,Te;const Pe=oe.length+n.length+z.value.length+1;(Me=R.current)==null||Me.setSelectionRange(Pe,Pe),(Te=R.current)==null||Te.focus()},0)},O=z=>{if(!(!w||j.length===0))switch(z.key){case"ArrowDown":z.preventDefault(),P(E=>E<j.length-1?E+1:0);break;case"ArrowUp":z.preventDefault(),P(E=>E>0?E-1:j.length-1);break;case"Enter":j[S]&&(z.preventDefault(),M(j[S]));break;case"Escape":z.preventDefault(),h(!1);break}};return a.jsxs("div",{ref:I,className:i("relative",f),children:[a.jsx(gt,{ref:z=>{typeof x=="function"?x(z):x&&(x.current=z),R.current=z},value:g,onChange:N,onKeyDown:O,placeholder:c,disabled:d,rows:m}),w&&j.length>0&&a.jsx("div",{className:i("absolute z-50 w-64 max-h-60 overflow-auto rounded-lg border border-[var(--color-border)]","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","shadow-[var(--shadow-glass)]","animate-in fade-in-0 zoom-in-95"),style:{top:"100%",marginTop:"4px"},children:j.map((z,E)=>a.jsxs("div",{onClick:()=>M(z),className:i("flex items-center gap-2 px-3 py-2 cursor-pointer transition-colors",E===S?"bg-[var(--color-bg-glass-hover)] text-[var(--color-text)]":"text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)]"),children:[z.avatar&&a.jsx("img",{src:z.avatar,alt:z.label,className:"h-6 w-6 rounded-full"}),a.jsx("div",{className:"flex-1 text-sm",children:z.label})]},z.value))})]})});Jr.displayName="Mentions";const Zr=l.forwardRef(({options:e,value:t,defaultValue:r=[],onChange:o,placeholder:s="Please select",disabled:n,changeOnSelect:c=!1,className:d},m)=>{const[f,x]=l.useState(r),[b,p]=l.useState(!1),[w,h]=l.useState([e]),u=t??f,v=S=>{const P=[];let R=e;for(const I of S){const g=R.find(j=>j.value===I);if(!g)break;P.push(g),R=g.children||[]}return P},y=(S,P)=>{if(S.disabled)return;const R=[...u.slice(0,P),S.value];S.children&&S.children.length>0?(h([...w.slice(0,P+1),S.children]),c&&(x(R),o==null||o(R,v(R)))):(x(R),o==null||o(R,v(R)),p(!1),h([e]))},C=l.useMemo(()=>{const S=v(u);return S.length>0?S.map(P=>P.label).join(" / "):s},[u,e,s]);return a.jsx("div",{ref:m,className:i("",d),children:a.jsxs(ve,{open:b,onOpenChange:p,children:[a.jsx(we,{asChild:!0,children:a.jsxs(K,{variant:"outline",disabled:n,className:i("w-full justify-between",!u.length&&"text-[var(--color-text-muted)]"),children:[a.jsx("span",{className:"truncate",children:C}),a.jsx(k.ChevronDown,{className:"h-4 w-4 shrink-0 opacity-50"})]})}),a.jsx(me,{className:"w-auto p-0",align:"start",children:a.jsx("div",{className:"flex",children:w.map((S,P)=>a.jsx("div",{className:i("w-40 max-h-64 overflow-y-auto",P>0&&"border-l border-[var(--color-border)]"),children:S.map(R=>{const I=u[P]===R.value,g=R.children&&R.children.length>0;return a.jsxs("div",{onClick:()=>y(R,P),className:i("flex items-center justify-between px-3 py-2 cursor-pointer transition-colors text-sm",I?"bg-[var(--color-bg-glass)] text-[var(--color-primary)]":"text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)]",R.disabled&&"opacity-50 cursor-not-allowed"),children:[a.jsx("span",{className:"truncate",children:R.label}),g&&a.jsx(k.ChevronRight,{className:"h-4 w-4 shrink-0 ml-2"})]},R.value)})},P))})})]})})});Zr.displayName="Cascader";const ea=l.forwardRef(({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,titles:n=["Source","Target"],showSearch:c=!1,className:d},m)=>{const[f,x]=l.useState([]),[b,p]=l.useState([]),[w,h]=l.useState(""),[u,v]=l.useState(""),y=e.filter(M=>!t.includes(M.key)),C=e.filter(M=>t.includes(M.key)),S=y.filter(M=>M.title.toLowerCase().includes(w.toLowerCase())),P=C.filter(M=>M.title.toLowerCase().includes(u.toLowerCase())),R=(M,O)=>{const z=O?[...f,M]:f.filter(E=>E!==M);x(z),s==null||s(z,b)},I=(M,O)=>{const z=O?[...b,M]:b.filter(E=>E!==M);p(z),s==null||s(f,z)},g=()=>{const M=[...t,...f];o==null||o(M,"right",f),x([])},j=()=>{const M=t.filter(O=>!b.includes(O));o==null||o(M,"left",b),p([])},N=(M,O,z,E,ae,se)=>a.jsxs("div",{className:"flex flex-col w-64 h-80 border border-[var(--color-border)] rounded-lg bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]",children:[a.jsxs("div",{className:"p-3 border-b border-[var(--color-border)]",children:[a.jsx("div",{className:"text-sm font-medium text-[var(--color-text)] mb-2",children:se}),c&&a.jsx(Ve,{placeholder:"Search",value:E,onChange:W=>ae(W.target.value),size:"sm"})]}),a.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:M.map(W=>a.jsxs("label",{className:i("flex items-center gap-3 p-2 rounded-md cursor-pointer transition-colors","hover:bg-[var(--color-bg-glass-hover)]",W.disabled&&"opacity-50 cursor-not-allowed"),children:[a.jsx(Ze,{checked:O.includes(W.key),onCheckedChange:oe=>z(W.key,oe),disabled:W.disabled}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"text-sm text-[var(--color-text)] truncate",children:W.title}),W.description&&a.jsx("div",{className:"text-xs text-[var(--color-text-muted)] truncate",children:W.description})]})]},W.key))})]});return a.jsxs("div",{ref:m,className:i("flex items-center gap-4",d),children:[N(S,f,R,w,h,n[0]),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(K,{variant:"outline",size:"icon",onClick:g,disabled:f.length===0,children:a.jsx(k.ChevronRight,{className:"h-4 w-4"})}),a.jsx(K,{variant:"outline",size:"icon",onClick:j,disabled:b.length===0,children:a.jsx(k.ChevronLeft,{className:"h-4 w-4"})})]}),N(P,b,I,u,v,n[1])]})});ea.displayName="Transfer";const ta=l.forwardRef(({treeData:e,value:t,defaultValue:r,onChange:o,multiple:s=!1,placeholder:n="Please select",disabled:c,treeCheckable:d=!1,className:m},f)=>{const[x,b]=l.useState(r??(s?[]:"")),[p,w]=l.useState(!1),[h,u]=l.useState([]),v=t??x,y=N=>{const M=[],O=z=>{M.push(z),z.children&&z.children.forEach(O)};return N.forEach(O),M},C=N=>y(e).find(M=>M.value===N),S=()=>{if(Array.isArray(v))return v.map(C).filter(Boolean);const N=C(v);return N?[N]:[]},P=()=>{const N=S();return N.length===0?n:N.map(M=>M.label).join(", ")},R=N=>{if(!N.disabled)if(s){const M=Array.isArray(v)?v:[],O=M.includes(N.value)?M.filter(z=>z!==N.value):[...M,N.value];b(O),o==null||o(O,S())}else b(N.value),o==null||o(N.value,[N]),w(!1)},I=N=>{u(M=>M.includes(N)?M.filter(O=>O!==N):[...M,N])},g=N=>Array.isArray(v)?v.includes(N):v===N,j=(N,M=0)=>{const O=N.children&&N.children.length>0,z=h.includes(N.value),E=g(N.value);return a.jsxs("div",{children:[a.jsxs("div",{className:i("flex items-center gap-2 py-1.5 px-2 rounded-md cursor-pointer transition-colors text-sm","hover:bg-[var(--color-bg-glass-hover)]",E&&"bg-[var(--color-bg-glass)] text-[var(--color-primary)]",N.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`${M*20+8}px`},children:[O?a.jsx("button",{onClick:()=>I(N.value),className:"shrink-0 p-0.5",children:z?a.jsx(k.ChevronDown,{className:"h-4 w-4"}):a.jsx(k.ChevronRight,{className:"h-4 w-4"})}):a.jsx("span",{className:"w-5"}),a.jsxs("div",{onClick:()=>R(N),className:"flex items-center justify-between flex-1",children:[a.jsx("span",{children:N.label}),E&&a.jsx(k.Check,{className:"h-4 w-4"})]})]}),O&&z&&a.jsx("div",{children:N.children.map(ae=>j(ae,M+1))})]},N.value)};return a.jsxs(ve,{open:p,onOpenChange:w,children:[a.jsx(we,{asChild:!0,children:a.jsxs(K,{ref:f,variant:"outline",disabled:c,className:i("w-full justify-between",!S().length&&"text-[var(--color-text-muted)]",m),children:[a.jsx("span",{className:"truncate",children:P()}),a.jsx(k.ChevronDown,{className:"h-4 w-4 shrink-0 opacity-50"})]})}),a.jsx(me,{className:"w-80 p-0",align:"start",children:a.jsx(je,{className:"h-64",children:a.jsx("div",{className:"p-2",children:e.map(N=>j(N))})})})]})});ta.displayName="TreeSelect";const qi=$("relative w-full rounded-lg border p-4 backdrop-blur-[var(--blur-glass)] transition-all duration-200",{variants:{variant:{default:["bg-[var(--color-bg-glass)] border-[var(--color-border)]","text-[var(--color-text)]"],info:["bg-blue-500/10 border-blue-500/30","text-blue-200","[&>svg]:text-blue-400"],success:["bg-emerald-500/10 border-emerald-500/30","text-emerald-200","[&>svg]:text-emerald-400"],warning:["bg-amber-500/10 border-amber-500/30","text-amber-200","[&>svg]:text-amber-400"],error:["bg-red-500/10 border-red-500/30","text-red-200","[&>svg]:text-red-400"]}},defaultVariants:{variant:"default"}}),Yi={default:k.Info,info:k.Info,success:k.CheckCircle2,warning:k.AlertTriangle,error:k.AlertCircle},ra=l.forwardRef(({className:e,variant:t="default",title:r,icon:o,dismissible:s,onDismiss:n,children:c,...d},m)=>{const[f,x]=l.useState(!1),b=()=>{x(!0),n==null||n()};if(f)return null;const p=Yi[t||"default"],w=o!==null;return a.jsx("div",{ref:m,role:"alert",className:i(qi({variant:t}),e),...d,children:a.jsxs("div",{className:"flex items-start gap-3",children:[w&&a.jsx("div",{className:"mt-0.5 shrink-0",children:o||a.jsx(p,{className:"h-5 w-5"})}),a.jsxs("div",{className:"flex-1 space-y-1",children:[r&&a.jsx("h5",{className:"font-semibold leading-none tracking-tight",children:r}),c&&a.jsx("div",{className:"text-sm opacity-90 [&_p]:leading-relaxed",children:c})]}),s&&a.jsx("button",{onClick:b,className:"shrink-0 rounded-md p-1 opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-bg)]","aria-label":"Dismiss alert",children:a.jsx(k.X,{className:"h-4 w-4"})})]})})});ra.displayName="Alert";const aa=l.forwardRef(({className:e,...t},r)=>a.jsx("h5",{ref:r,className:i("mb-1 font-semibold leading-none tracking-tight",e),...t}));aa.displayName="AlertTitle";const oa=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("text-sm opacity-90 [&_p]:leading-relaxed",e),...t}));oa.displayName="AlertDescription";const sa=l.forwardRef(({className:e,value:t=0,label:r,showValue:o,variant:s="default",...n},c)=>{const d=Math.min(Math.max(t??0,0),100);return a.jsxs("div",{className:"w-full space-y-2",children:[(r||o)&&a.jsxs("div",{className:"flex items-center justify-between",children:[r&&a.jsx("span",{className:"text-sm font-medium text-[var(--color-text)]",children:r}),o&&a.jsxs("span",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:[d,"%"]})]}),a.jsx(mt.Root,{ref:c,className:i("relative h-2 w-full overflow-hidden rounded-full bg-[var(--color-bg-input)] backdrop-blur-[var(--blur-glass)]",e),...n,children:a.jsx(mt.Indicator,{className:i("h-full w-full flex-1 transition-all duration-300 ease-out",s==="gradient"?"bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]":"bg-[var(--color-primary)]"),style:{transform:`translateX(-${100-d}%)`}})})]})});sa.displayName=mt.Root.displayName;const na=l.forwardRef(({className:e,variant:t="rect",lines:r=3,animated:o=!0,width:s,height:n,style:c,...d},m)=>{const f=i("bg-white/8 rounded-md",o&&"animate-pulse animate-shimmer");return t==="text"&&r>1?a.jsx("div",{className:i("space-y-2",e),ref:m,...d,children:Array.from({length:r}).map((x,b)=>a.jsx("div",{className:f,style:{height:"0.75rem",width:b===r-1?"80%":"100%"}},b))}):a.jsx("div",{ref:m,className:i(f,t==="circle"&&"rounded-full",t==="card"&&"h-32 w-full",e),style:{width:s,height:t==="text"?"0.75rem":n,...c},"data-slot":"skeleton",...d})});na.displayName="Skeleton";const la=$("animate-spin rounded-full border-2 border-current border-t-transparent",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-12 w-12"},variant:{default:"text-[var(--color-text)]",primary:"text-[var(--color-primary)]",secondary:"text-[var(--color-text-secondary)]"}},defaultVariants:{size:"md",variant:"default"}}),ia=l.forwardRef(({className:e,size:t,variant:r,...o},s)=>a.jsx("div",{ref:s,className:i(la({size:t,variant:r}),e),role:"status","aria-label":"Loading",...o,children:a.jsx("span",{className:"sr-only",children:"Loading..."})}));ia.displayName="Spinner";const $i=({...e})=>a.jsx(Qt.Toaster,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-[var(--color-bg-secondary)] group-[.toaster]:backdrop-blur-[var(--blur-heavy)] group-[.toaster]:text-[var(--color-text)] group-[.toaster]:border-[var(--color-border)] group-[.toaster]:shadow-[var(--shadow-elevated)] group-[.toaster]:rounded-xl",description:"group-[.toast]:text-[var(--color-text-muted)]",actionButton:"group-[.toast]:bg-[var(--color-primary)] group-[.toast]:text-white group-[.toast]:rounded-md",cancelButton:"group-[.toast]:bg-[var(--color-bg-glass)] group-[.toast]:text-[var(--color-text-muted)] group-[.toast]:rounded-md"}},...e}),ca=l.forwardRef(({className:e,icon:t,title:r,description:o,action:s,...n},c)=>a.jsxs("div",{ref:c,className:i("flex flex-col items-center justify-center py-12 px-4 text-center",e),...n,children:[t&&a.jsx("div",{className:"mb-4 text-[var(--color-text-muted)] opacity-50",children:t}),a.jsx("h3",{className:"text-lg font-semibold text-[var(--color-text)] mb-2",children:r}),o&&a.jsx("p",{className:"text-sm text-[var(--color-text-muted)] max-w-sm mb-6",children:o}),s&&a.jsx("div",{children:s})]}));ca.displayName="EmptyState";const da=l.forwardRef(({status:e="info",title:t,subtitle:r,icon:o,extra:s,className:n},c)=>{const d={success:a.jsx(k.CheckCircle2,{className:"h-16 w-16 text-green-500"}),error:a.jsx(k.XCircle,{className:"h-16 w-16 text-red-500"}),warning:a.jsx(k.AlertCircle,{className:"h-16 w-16 text-yellow-500"}),info:a.jsx(k.Info,{className:"h-16 w-16 text-[var(--color-primary)]"})};return a.jsxs("div",{ref:c,className:i("flex flex-col items-center justify-center text-center py-12 px-4",n),children:[a.jsx("div",{className:"mb-6",children:o||d[e]}),a.jsx("h3",{className:"text-2xl font-semibold text-[var(--color-text)] mb-2",children:t}),r&&a.jsx("p",{className:"text-[var(--color-text-secondary)] max-w-md mb-6",children:r}),s&&a.jsx("div",{className:"flex gap-3",children:s})]})});da.displayName="Result";const jt=l.forwardRef(({id:e,type:t="info",title:r,description:o,onClose:s},n)=>{const c={success:a.jsx(k.CheckCircle2,{className:"h-5 w-5 text-green-500"}),error:a.jsx(k.XCircle,{className:"h-5 w-5 text-red-500"}),warning:a.jsx(k.AlertCircle,{className:"h-5 w-5 text-yellow-500"}),info:a.jsx(k.Info,{className:"h-5 w-5 text-[var(--color-primary)]"})};return a.jsxs("div",{ref:n,className:i("flex gap-3 p-4 rounded-lg border border-[var(--color-border)]","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","shadow-[var(--shadow-elevated)]","animate-in slide-in-from-right-full"),children:[a.jsx("div",{className:"shrink-0",children:c[t]}),a.jsxs("div",{className:"flex-1 space-y-1",children:[a.jsx("div",{className:"text-sm font-semibold text-[var(--color-text)]",children:r}),o&&a.jsx("div",{className:"text-sm text-[var(--color-text-secondary)]",children:o})]}),a.jsx("button",{onClick:s,className:"shrink-0 text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition-colors",children:a.jsx(k.X,{className:"h-4 w-4"})})]})});jt.displayName="Notification";const Ki=({notifications:e,onRemove:t})=>a.jsx("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-3 max-w-md",children:e.map(r=>a.jsx(jt,{...r,onClose:()=>t(r.id)},r.id))}),kt=l.forwardRef(({type:e="info",content:t,duration:r=3e3,onClose:o,icon:s,className:n},c)=>{l.useEffect(()=>{if(r>0){const m=setTimeout(()=>{o==null||o()},r);return()=>clearTimeout(m)}},[r,o]);const d={success:a.jsx(k.CheckCircle2,{className:"h-5 w-5 text-green-500"}),error:a.jsx(k.XCircle,{className:"h-5 w-5 text-red-500"}),warning:a.jsx(k.AlertCircle,{className:"h-5 w-5 text-yellow-500"}),info:a.jsx(k.Info,{className:"h-5 w-5 text-blue-500"}),loading:a.jsx(k.Loader2,{className:"h-5 w-5 text-[var(--color-primary)] animate-spin"})};return a.jsxs("div",{ref:c,className:i("flex items-center gap-3 px-4 py-3 rounded-lg","bg-[var(--color-bg-elevated)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)]","shadow-[var(--shadow-elevated)]","animate-in fade-in slide-in-from-top-4",n),children:[s||d[e],a.jsx("span",{className:"flex-1 text-sm text-[var(--color-text)]",children:t}),o&&a.jsx("button",{onClick:o,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition-colors",children:a.jsx(k.X,{className:"h-4 w-4"})})]})});kt.displayName="Message";let _e=[],ne=null;const Le=(e,t,r=3e3)=>{const o=Math.random().toString(36).substring(7),s={id:o,type:e,content:t,duration:r};return _e.push(s),ne==null||ne(),r>0&&setTimeout(()=>{ma(o)},r),o},ma=e=>{_e=_e.filter(t=>t.id!==e),ne==null||ne()},ua={success:(e,t)=>Le("success",e,t),error:(e,t)=>Le("error",e,t),warning:(e,t)=>Le("warning",e,t),info:(e,t)=>Le("info",e,t),loading:(e,t)=>Le("loading",e,t),destroy:e=>{e?ma(e):(_e=[],ne==null||ne())}},Xi=()=>{const[e,t]=l.useState([]);return l.useEffect(()=>(ne=()=>{t([..._e])},()=>{ne=null}),[]),e.length===0?null:a.jsx("div",{className:"fixed top-4 left-1/2 -translate-x-1/2 z-[10000] flex flex-col gap-2",children:e.map(r=>a.jsx(kt,{type:r.type,content:r.content,duration:0,onClose:()=>ua.destroy(r.id)},r.id))})},fa=re.Root,Ui=re.Trigger,xa=re.Portal,Qi=re.Close,St=l.forwardRef(({className:e,...t},r)=>a.jsx(re.Overlay,{ref:r,className:i("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));St.displayName=re.Overlay.displayName;const Ct=l.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(xa,{children:[a.jsx(St,{}),a.jsxs(re.Content,{ref:o,className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[var(--color-border)] p-6 shadow-[var(--shadow-elevated)]","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","rounded-xl","duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...r,children:[t,a.jsxs(re.Close,{className:"absolute right-4 top-4 rounded-md opacity-70 ring-offset-[var(--color-bg)] transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] focus:ring-offset-2 disabled:pointer-events-none",children:[a.jsx(k.X,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ct.displayName=re.Content.displayName;const pa=({className:e,...t})=>a.jsx("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});pa.displayName="DialogHeader";const ba=({className:e,...t})=>a.jsx("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ba.displayName="DialogFooter";const ha=l.forwardRef(({className:e,...t},r)=>a.jsx(re.Title,{ref:r,className:i("text-lg font-semibold leading-none tracking-tight text-[var(--color-text)]",e),...t}));ha.displayName=re.Title.displayName;const ga=l.forwardRef(({className:e,...t},r)=>a.jsx(re.Description,{ref:r,className:i("text-sm text-[var(--color-text-muted)]",e),...t}));ga.displayName=re.Description.displayName;const Ji=J.Root,Zi=J.Trigger,va=J.Portal,Rt=l.forwardRef(({className:e,...t},r)=>a.jsx(J.Overlay,{className:i("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));Rt.displayName=J.Overlay.displayName;const wa=l.forwardRef(({className:e,...t},r)=>a.jsxs(va,{children:[a.jsx(Rt,{}),a.jsx(J.Content,{ref:r,className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[var(--color-border)] p-6 shadow-[var(--shadow-elevated)] duration-200","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","rounded-xl","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...t})]}));wa.displayName=J.Content.displayName;const ya=({className:e,...t})=>a.jsx("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t});ya.displayName="AlertDialogHeader";const Na=({className:e,...t})=>a.jsx("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Na.displayName="AlertDialogFooter";const ja=l.forwardRef(({className:e,...t},r)=>a.jsx(J.Title,{ref:r,className:i("text-lg font-semibold text-[var(--color-text)]",e),...t}));ja.displayName=J.Title.displayName;const ka=l.forwardRef(({className:e,...t},r)=>a.jsx(J.Description,{ref:r,className:i("text-sm text-[var(--color-text-muted)]",e),...t}));ka.displayName=J.Description.displayName;const Sa=l.forwardRef(({className:e,...t},r)=>a.jsx(J.Action,{ref:r,className:i(be({variant:"gradient"}),e),...t}));Sa.displayName=J.Action.displayName;const Ca=l.forwardRef(({className:e,...t},r)=>a.jsx(J.Cancel,{ref:r,className:i(be({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Ca.displayName=J.Cancel.displayName;const Ra=({shouldScaleBackground:e=!0,...t})=>a.jsx(Y.Drawer.Root,{shouldScaleBackground:e,...t});Ra.displayName="Sheet";const ec=Y.Drawer.Trigger,Pa=Y.Drawer.Portal,tc=Y.Drawer.Close,Pt=l.forwardRef(({className:e,...t},r)=>a.jsx(Y.Drawer.Overlay,{ref:r,className:i("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm",e),...t}));Pt.displayName=Y.Drawer.Overlay.displayName;const Ma=l.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(Pa,{children:[a.jsx(Pt,{}),a.jsxs(Y.Drawer.Content,{ref:o,className:i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border border-[var(--color-border)]","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]",e),...r,children:[a.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-[var(--color-border)]"}),t]})]}));Ma.displayName="SheetContent";const Ta=({className:e,...t})=>a.jsx("div",{className:i("grid gap-1.5 p-4 text-center sm:text-left",e),...t});Ta.displayName="SheetHeader";const Da=({className:e,...t})=>a.jsx("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t});Da.displayName="SheetFooter";const za=l.forwardRef(({className:e,...t},r)=>a.jsx(Y.Drawer.Title,{ref:r,className:i("text-lg font-semibold leading-none tracking-tight text-[var(--color-text)]",e),...t}));za.displayName=Y.Drawer.Title.displayName;const Ia=l.forwardRef(({className:e,...t},r)=>a.jsx(Y.Drawer.Description,{ref:r,className:i("text-sm text-[var(--color-text-muted)]",e),...t}));Ia.displayName=Y.Drawer.Description.displayName;const La=l.createContext({}),Aa=({shouldScaleBackground:e=!0,direction:t="right",...r})=>a.jsx(La.Provider,{value:{direction:t},children:a.jsx(Y.Drawer.Root,{shouldScaleBackground:e,direction:t==="bottom"||t==="top"?t:"right",...r})});Aa.displayName="Drawer";const rc=Y.Drawer.Trigger,Oa=Y.Drawer.Portal,ac=Y.Drawer.Close,Mt=l.forwardRef(({className:e,...t},r)=>a.jsx(Y.Drawer.Overlay,{ref:r,className:i("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm",e),...t}));Mt.displayName=Y.Drawer.Overlay.displayName;const oc=$("fixed z-50 flex flex-col border border-[var(--color-border)] bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)] shadow-[var(--shadow-elevated)]",{variants:{direction:{left:"inset-y-0 left-0 h-full w-[378px] border-r rounded-r-xl",right:"inset-y-0 right-0 h-full w-[378px] border-l rounded-l-xl",top:"inset-x-0 top-0 w-full h-[378px] border-b rounded-b-xl",bottom:"inset-x-0 bottom-0 w-full h-auto max-h-[80vh] border-t rounded-t-xl"}},defaultVariants:{direction:"right"}}),Ea=l.forwardRef(({className:e,children:t,direction:r,...o},s)=>{const n=l.useContext(La),c=r||n.direction||"right";return a.jsxs(Oa,{children:[a.jsx(Mt,{}),a.jsxs(Y.Drawer.Content,{ref:s,className:i(oc({direction:c}),e),...o,children:[c==="bottom"&&a.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-[var(--color-border)]"}),t]})]})});Ea.displayName="DrawerContent";const _a=({className:e,...t})=>a.jsx("div",{className:i("grid gap-2 p-6 border-b border-[var(--color-border)]",e),...t});_a.displayName="DrawerHeader";const Fa=({className:e,...t})=>a.jsx("div",{className:i("mt-auto flex flex-col gap-2 p-6 border-t border-[var(--color-border)]",e),...t});Fa.displayName="DrawerFooter";const Va=l.forwardRef(({className:e,...t},r)=>a.jsx(Y.Drawer.Title,{ref:r,className:i("text-lg font-semibold leading-none tracking-tight text-[var(--color-text)]",e),...t}));Va.displayName=Y.Drawer.Title.displayName;const Ga=l.forwardRef(({className:e,...t},r)=>a.jsx(Y.Drawer.Description,{ref:r,className:i("text-sm text-[var(--color-text-muted)]",e),...t}));Ga.displayName=Y.Drawer.Description.displayName;const Wa=l.forwardRef(({open:e=!1,onOpenChange:t,title:r,children:o,footer:s,width:n=520,centered:c=!0,closable:d=!0,maskClosable:m=!0,className:f},x)=>{l.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]);const b=()=>{m&&(t==null||t(!1))},p=()=>{t==null||t(!1)};return e?a.jsxs(a.Fragment,{children:[a.jsx("div",{role:"presentation",className:i("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm","animate-in fade-in"),onClick:b}),a.jsx("div",{className:i("fixed z-50",c?"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2":"left-1/2 top-[100px] -translate-x-1/2","animate-in fade-in zoom-in-95"),children:a.jsxs("div",{ref:x,className:i("flex flex-col rounded-xl border border-[var(--color-border)]","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","shadow-[var(--shadow-elevated)]",f),style:{width:typeof n=="number"?`${n}px`:n},onClick:w=>w.stopPropagation(),children:[(r||d)&&a.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[var(--color-border)]",children:[r&&a.jsx("h3",{className:"text-lg font-semibold text-[var(--color-text)]",children:r}),d&&a.jsx(K,{variant:"ghost",size:"icon",onClick:p,className:"ml-auto","aria-label":"Close",children:a.jsx(k.X,{className:"h-4 w-4"})})]}),a.jsx("div",{className:"px-6 py-4 max-h-[70vh] overflow-y-auto",children:o}),s&&a.jsx("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-[var(--color-border)]",children:s})]})})]}):null});Wa.displayName="Modal";const sc=Qe.Root,nc=Qe.Trigger,Ba=l.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},s)=>a.jsx(Qe.Content,{ref:s,align:t,sideOffset:r,className:i("z-50 w-64 rounded-lg border border-[var(--color-border)] p-4","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));Ba.displayName=Qe.Content.displayName;const Ha=Fe.Provider,qa=Fe.Root,Ya=Fe.Trigger,Tt=l.forwardRef(({className:e,sideOffset:t=4,...r},o)=>a.jsx(Fe.Content,{ref:o,sideOffset:t,className:i("z-50 overflow-hidden rounded-md border border-[var(--color-border)]","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","px-3 py-1.5 text-sm text-[var(--color-text)]","shadow-[var(--shadow-glass)]","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Tt.displayName=Fe.Content.displayName;const Dt=l.forwardRef(({className:e,...t},r)=>a.jsx(Z.Command,{ref:r,className:i("flex h-full w-full flex-col overflow-hidden rounded-lg","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)]",e),...t}));Dt.displayName=Z.Command.displayName;const lc=({children:e,...t})=>a.jsx(fa,{...t,children:a.jsx(Ct,{className:"overflow-hidden p-0",children:a.jsx(Dt,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--color-text-muted)] [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),$a=l.forwardRef(({className:e,...t},r)=>a.jsxs("div",{className:"flex items-center border-b border-[var(--color-border)] px-3","cmdk-input-wrapper":"",children:[a.jsx(k.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),a.jsx(Z.Command.Input,{ref:r,className:i("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none","placeholder:text-[var(--color-text-placeholder)]","disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));$a.displayName=Z.Command.Input.displayName;const Ka=l.forwardRef(({className:e,...t},r)=>a.jsx(Z.Command.List,{ref:r,className:i("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Ka.displayName=Z.Command.List.displayName;const Xa=l.forwardRef((e,t)=>a.jsx(Z.Command.Empty,{ref:t,className:"py-6 text-center text-sm text-[var(--color-text-muted)]",...e}));Xa.displayName=Z.Command.Empty.displayName;const Ua=l.forwardRef(({className:e,...t},r)=>a.jsx(Z.Command.Group,{ref:r,className:i("overflow-hidden p-1 text-[var(--color-text)]","[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--color-text-muted)]",e),...t}));Ua.displayName=Z.Command.Group.displayName;const Qa=l.forwardRef(({className:e,...t},r)=>a.jsx(Z.Command.Separator,{ref:r,className:i("-mx-1 h-px bg-[var(--color-border)]",e),...t}));Qa.displayName=Z.Command.Separator.displayName;const Ja=l.forwardRef(({className:e,...t},r)=>a.jsx(Z.Command.Item,{ref:r,className:i("relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","aria-selected:bg-[var(--color-bg-glass-hover)] aria-selected:text-[var(--color-text)]","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",e),...t}));Ja.displayName=Z.Command.Item.displayName;const Za=({className:e,...t})=>a.jsx("span",{className:i("ml-auto text-xs tracking-widest text-[var(--color-text-muted)]",e),...t});Za.displayName="CommandShortcut";const ic=ge.Root,eo=l.forwardRef(({className:e,...t},r)=>a.jsx(ge.List,{ref:r,className:i("inline-flex h-11 items-center justify-center rounded-lg","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)] p-1",e),...t}));eo.displayName=ge.List.displayName;const to=l.forwardRef(({className:e,...t},r)=>a.jsx(ge.Trigger,{ref:r,className:i("inline-flex items-center justify-center whitespace-nowrap rounded-md px-4 py-2","text-sm font-medium text-[var(--color-text-secondary)]","ring-offset-[var(--color-bg)] transition-all","hover:text-[var(--color-text)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-[var(--color-bg-elevated)] data-[state=active]:text-[var(--color-text)] data-[state=active]:shadow-sm",e),...t}));to.displayName=ge.Trigger.displayName;const ro=l.forwardRef(({className:e,...t},r)=>a.jsx(ge.Content,{ref:r,className:i("mt-4 ring-offset-[var(--color-bg)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2",e),...t}));ro.displayName=ge.Content.displayName;const cc=pe.Root,ao=l.forwardRef(({className:e,...t},r)=>a.jsx(pe.Item,{ref:r,className:i("border-b border-[var(--color-border)]",e),...t}));ao.displayName="AccordionItem";const oo=l.forwardRef(({className:e,children:t,...r},o)=>a.jsx(pe.Header,{className:"flex",children:a.jsxs(pe.Trigger,{ref:o,className:i("flex flex-1 items-center justify-between py-4 font-medium text-[var(--color-text)]","transition-all hover:text-[var(--color-text-secondary)]","[&[data-state=open]>svg]:rotate-180",e),...r,children:[t,a.jsx(k.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));oo.displayName=pe.Trigger.displayName;const so=l.forwardRef(({className:e,children:t,...r},o)=>a.jsx(pe.Content,{ref:o,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:a.jsx("div",{className:i("pb-4 pt-0 text-[var(--color-text-secondary)]",e),children:t})}));so.displayName=pe.Content.displayName;const dc=B.Root,mc=B.Trigger,uc=B.Group,fc=B.Portal,xc=B.Sub,pc=B.RadioGroup,no=l.forwardRef(({className:e,inset:t,children:r,...o},s)=>a.jsxs(B.SubTrigger,{ref:s,className:i("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[state=open]:bg-[var(--color-bg-glass-hover)]",t&&"pl-8",e),...o,children:[r,a.jsx(k.ChevronRight,{className:"ml-auto h-4 w-4"})]}));no.displayName=B.SubTrigger.displayName;const lo=l.forwardRef(({className:e,...t},r)=>a.jsx(B.SubContent,{ref:r,className:i("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));lo.displayName=B.SubContent.displayName;const io=l.forwardRef(({className:e,sideOffset:t=4,...r},o)=>a.jsx(B.Portal,{children:a.jsx(B.Content,{ref:o,sideOffset:t,className:i("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));io.displayName=B.Content.displayName;const co=l.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(B.Item,{ref:o,className:i("relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));co.displayName=B.Item.displayName;const mo=l.forwardRef(({className:e,children:t,checked:r,...o},s)=>a.jsxs(B.CheckboxItem,{ref:s,className:i("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(B.ItemIndicator,{children:a.jsx(k.Check,{className:"h-4 w-4 text-[var(--color-primary)]"})})}),t]}));mo.displayName=B.CheckboxItem.displayName;const uo=l.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(B.RadioItem,{ref:o,className:i("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(B.ItemIndicator,{children:a.jsx(k.Circle,{className:"h-2 w-2 fill-[var(--color-primary)] text-[var(--color-primary)]"})})}),t]}));uo.displayName=B.RadioItem.displayName;const fo=l.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(B.Label,{ref:o,className:i("px-2 py-1.5 text-sm font-semibold text-[var(--color-text)]",t&&"pl-8",e),...r}));fo.displayName=B.Label.displayName;const xo=l.forwardRef(({className:e,...t},r)=>a.jsx(B.Separator,{ref:r,className:i("-mx-1 my-1 h-px bg-[var(--color-border)]",e),...t}));xo.displayName=B.Separator.displayName;const po=({className:e,...t})=>a.jsx("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...t});po.displayName="DropdownMenuShortcut";const bc=H.Root,hc=H.Trigger,gc=H.Group,vc=H.Portal,wc=H.Sub,yc=H.RadioGroup,bo=l.forwardRef(({className:e,inset:t,children:r,...o},s)=>a.jsxs(H.SubTrigger,{ref:s,className:i("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","hover:bg-[var(--color-bg-glass-hover)] focus:bg-[var(--color-bg-glass-hover)]","data-[state=open]:bg-[var(--color-bg-glass-hover)]",t&&"pl-8",e),...o,children:[r,a.jsx(k.ChevronRight,{className:"ml-auto h-4 w-4"})]}));bo.displayName=H.SubTrigger.displayName;const ho=l.forwardRef(({className:e,...t},r)=>a.jsx(H.SubContent,{ref:r,className:i("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));ho.displayName=H.SubContent.displayName;const go=l.forwardRef(({className:e,...t},r)=>a.jsx(H.Portal,{children:a.jsx(H.Content,{ref:r,className:i("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));go.displayName=H.Content.displayName;const vo=l.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(H.Item,{ref:o,className:i("relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)] focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));vo.displayName=H.Item.displayName;const wo=l.forwardRef(({className:e,children:t,checked:r,...o},s)=>a.jsxs(H.CheckboxItem,{ref:s,className:i("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)] focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(H.ItemIndicator,{children:a.jsx(k.Check,{className:"h-4 w-4 text-[var(--color-primary)]"})})}),t]}));wo.displayName=H.CheckboxItem.displayName;const yo=l.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(H.RadioItem,{ref:o,className:i("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)] focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(H.ItemIndicator,{children:a.jsx(k.Circle,{className:"h-2 w-2 fill-[var(--color-primary)] text-[var(--color-primary)]"})})}),t]}));yo.displayName=H.RadioItem.displayName;const No=l.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(H.Label,{ref:o,className:i("px-2 py-1.5 text-sm font-semibold text-[var(--color-text)]",t&&"pl-8",e),...r}));No.displayName=H.Label.displayName;const jo=l.forwardRef(({className:e,...t},r)=>a.jsx(H.Separator,{ref:r,className:i("-mx-1 my-1 h-px bg-[var(--color-border)]",e),...t}));jo.displayName=H.Separator.displayName;const ko=({className:e,...t})=>a.jsx("span",{className:i("ml-auto text-xs tracking-widest text-[var(--color-text-muted)]",e),...t});ko.displayName="ContextMenuShortcut";const So=l.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(ee.Root,{ref:o,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,a.jsx(zt,{})]}));So.displayName=ee.Root.displayName;const Co=l.forwardRef(({className:e,...t},r)=>a.jsx(ee.List,{ref:r,className:i("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Co.displayName=ee.List.displayName;const Nc=ee.Item,Ro=$("group inline-flex h-10 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)] focus:bg-[var(--color-bg-glass-hover)] focus:text-[var(--color-text)] focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-[var(--color-bg-glass)] data-[state=open]:bg-[var(--color-bg-glass-hover)]"),Po=l.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(ee.Trigger,{ref:o,className:i(Ro(),"group",e),...r,children:[t," ",a.jsx(k.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Po.displayName=ee.Trigger.displayName;const Mo=l.forwardRef(({className:e,...t},r)=>a.jsx(ee.Content,{ref:r,className:i("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));Mo.displayName=ee.Content.displayName;const jc=ee.Link,zt=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:i("absolute left-0 top-full flex justify-center"),children:a.jsx(ee.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-lg border border-[var(--color-border)]","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90","md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:r,...t})}));zt.displayName=ee.Viewport.displayName;const To=l.forwardRef(({className:e,...t},r)=>a.jsx(ee.Indicator,{ref:r,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:a.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-[var(--color-border)] shadow-md"})}));To.displayName=ee.Indicator.displayName;const kc=V.Menu,Sc=V.Group,Cc=V.Portal,Rc=V.Sub,Pc=V.RadioGroup,Do=l.forwardRef(({className:e,...t},r)=>a.jsx(V.Root,{ref:r,className:i("flex h-11 items-center space-x-1 rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]",e),...t}));Do.displayName=V.Root.displayName;const zo=l.forwardRef(({className:e,...t},r)=>a.jsx(V.Trigger,{ref:r,className:i("flex cursor-default select-none items-center rounded-md px-3 py-1.5 text-sm font-medium outline-none","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[state=open]:bg-[var(--color-bg-glass-hover)]",e),...t}));zo.displayName=V.Trigger.displayName;const Io=l.forwardRef(({className:e,inset:t,children:r,...o},s)=>a.jsxs(V.SubTrigger,{ref:s,className:i("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[state=open]:bg-[var(--color-bg-glass-hover)]",t&&"pl-8",e),...o,children:[r,a.jsx(k.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Io.displayName=V.SubTrigger.displayName;const Lo=l.forwardRef(({className:e,...t},r)=>a.jsx(V.SubContent,{ref:r,className:i("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Lo.displayName=V.SubContent.displayName;const Ao=l.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:o=8,...s},n)=>a.jsx(V.Portal,{children:a.jsx(V.Content,{ref:n,align:t,alignOffset:r,sideOffset:o,className:i("z-50 min-w-[12rem] overflow-hidden rounded-lg border border-[var(--color-border)] p-1","bg-[var(--color-popover)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-[var(--shadow-glass)]","data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));Ao.displayName=V.Content.displayName;const Oo=l.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(V.Item,{ref:o,className:i("relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));Oo.displayName=V.Item.displayName;const Eo=l.forwardRef(({className:e,children:t,checked:r,...o},s)=>a.jsxs(V.CheckboxItem,{ref:s,className:i("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(V.ItemIndicator,{children:a.jsx(k.Check,{className:"h-4 w-4 text-[var(--color-primary)]"})})}),t]}));Eo.displayName=V.CheckboxItem.displayName;const _o=l.forwardRef(({className:e,children:t,...r},o)=>a.jsxs(V.RadioItem,{ref:o,className:i("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors","hover:bg-[var(--color-bg-glass-hover)]","focus:bg-[var(--color-bg-glass-hover)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(V.ItemIndicator,{children:a.jsx(k.Circle,{className:"h-2 w-2 fill-[var(--color-primary)] text-[var(--color-primary)]"})})}),t]}));_o.displayName=V.RadioItem.displayName;const Fo=l.forwardRef(({className:e,inset:t,...r},o)=>a.jsx(V.Label,{ref:o,className:i("px-2 py-1.5 text-sm font-semibold text-[var(--color-text)]",t&&"pl-8",e),...r}));Fo.displayName=V.Label.displayName;const Vo=l.forwardRef(({className:e,...t},r)=>a.jsx(V.Separator,{ref:r,className:i("-mx-1 my-1 h-px bg-[var(--color-border)]",e),...t}));Vo.displayName=V.Separator.displayName;const Go=({className:e,...t})=>a.jsx("span",{className:i("ml-auto text-xs tracking-widest text-[var(--color-text-muted)]",e),...t});Go.displayName="MenubarShortcut";const Wo=l.forwardRef(({...e},t)=>a.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Wo.displayName="Breadcrumb";const Bo=l.forwardRef(({className:e,...t},r)=>a.jsx("ol",{ref:r,className:i("flex flex-wrap items-center gap-1.5 break-words text-sm text-[var(--color-text-muted)]",e),...t}));Bo.displayName="BreadcrumbList";const Ho=l.forwardRef(({className:e,...t},r)=>a.jsx("li",{ref:r,className:i("inline-flex items-center gap-1.5",e),...t}));Ho.displayName="BreadcrumbItem";const qo=l.forwardRef(({className:e,...t},r)=>a.jsx("a",{ref:r,className:i("transition-colors hover:text-[var(--color-text)]",e),...t}));qo.displayName="BreadcrumbLink";const Yo=l.forwardRef(({className:e,...t},r)=>a.jsx("span",{ref:r,"aria-disabled":"true","aria-current":"page",className:i("font-normal text-[var(--color-text)]",e),...t}));Yo.displayName="BreadcrumbPage";const $o=({children:e,className:t,...r})=>a.jsx("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:size-3.5",t),...r,children:e??a.jsx(k.ChevronRight,{})});$o.displayName="BreadcrumbSeparator";const Ko=({className:e,...t})=>a.jsxs("span",{role:"presentation","aria-hidden":"true",className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[a.jsx(k.MoreHorizontal,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"More"})]});Ko.displayName="BreadcrumbEllipsis";const Xo=({className:e,...t})=>a.jsx("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center",e),...t});Xo.displayName="Pagination";const Uo=l.forwardRef(({className:e,...t},r)=>a.jsx("ul",{ref:r,className:i("flex flex-row items-center gap-1",e),...t}));Uo.displayName="PaginationContent";const Qo=l.forwardRef(({className:e,...t},r)=>a.jsx("li",{ref:r,className:i("",e),...t}));Qo.displayName="PaginationItem";const rt=({className:e,isActive:t,size:r="icon",...o})=>a.jsx("a",{"aria-current":t?"page":void 0,className:i(be({variant:t?"gradient":"ghost",size:r}),e),...o});rt.displayName="PaginationLink";const Jo=({className:e,...t})=>a.jsxs(rt,{"aria-label":"Go to previous page",size:"md",className:i("gap-1 pl-2.5",e),...t,children:[a.jsx(k.ChevronLeft,{className:"h-4 w-4"}),a.jsx("span",{children:"Previous"})]});Jo.displayName="PaginationPrevious";const Zo=({className:e,...t})=>a.jsxs(rt,{"aria-label":"Go to next page",size:"md",className:i("gap-1 pr-2.5",e),...t,children:[a.jsx("span",{children:"Next"}),a.jsx(k.ChevronRight,{className:"h-4 w-4"})]});Zo.displayName="PaginationNext";const es=({className:e,...t})=>a.jsxs("span",{"aria-hidden":!0,className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[a.jsx(k.MoreHorizontal,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"More pages"})]});es.displayName="PaginationEllipsis";const ts=l.forwardRef(({links:e,activeLink:t,onChange:r,offsetTop:o=0,targetOffset:s,className:n},c)=>{const[d,m]=l.useState(""),f=t??d;l.useEffect(()=>{const p=()=>{const w=window.scrollY+(s??window.innerHeight/2),h=e.flatMap(v=>{var S;const y={href:v.href,el:document.querySelector(v.href)},C=((S=v.children)==null?void 0:S.map(P=>({href:P.href,el:document.querySelector(P.href)})))||[];return[y,...C]});let u="";for(const v of h)v.el&&v.el.getBoundingClientRect().top+window.scrollY<=w&&(u=v.href);u&&u!==f&&(m(u),r==null||r(u))};return window.addEventListener("scroll",p),p(),()=>window.removeEventListener("scroll",p)},[e,f,r,s]);const x=(p,w)=>{p.preventDefault();const h=document.querySelector(w);if(h){const u=h.getBoundingClientRect().top+window.scrollY-o;window.scrollTo({top:u,behavior:"smooth"}),m(w),r==null||r(w)}},b=(p,w=0)=>{const h=f===p.href;return a.jsxs("div",{children:[a.jsx("a",{href:p.href,onClick:u=>x(u,p.href),className:i("block py-1 text-sm transition-colors border-l-2",w===0?"pl-4":"pl-8",h?"border-[var(--color-primary)] text-[var(--color-primary)] font-medium":"border-transparent text-[var(--color-text-secondary)] hover:text-[var(--color-text)] hover:border-[var(--color-border-strong)]"),children:p.title}),p.children&&p.children.length>0&&a.jsx("div",{className:"ml-2",children:p.children.map(u=>b(u,w+1))})]},p.key)};return a.jsx("div",{ref:c,className:i("space-y-1",n),style:{position:"sticky",top:o},children:e.map(p=>b(p))})});ts.displayName="Anchor";const rs=$("flex w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"},size:{sm:"",md:"",lg:""}},defaultVariants:{direction:"horizontal",size:"md"}}),as=l.forwardRef(({className:e,direction:t="horizontal",size:r="md",current:o=0,status:s="process",items:n,onStepChange:c,type:d="default",...m},f)=>{const b={sm:{circle:"h-6 w-6 text-xs",title:"text-xs",description:"text-xs"},md:{circle:"h-8 w-8 text-sm",title:"text-sm",description:"text-xs"},lg:{circle:"h-10 w-10 text-base",title:"text-base",description:"text-sm"}}[r??"md"],p=u=>u<o?"finish":u===o?s:"wait",w=(u,v)=>{const y=p(u),C=i("flex items-center justify-center rounded-full border-2 transition-all",b.circle,y==="finish"&&["bg-[var(--color-primary)] border-[var(--color-primary)] text-white"],y==="process"&&["border-[var(--color-primary)] text-[var(--color-primary)] bg-[var(--color-bg-glass)]"],y==="error"&&["bg-red-500 border-red-500 text-white"],y==="wait"&&["border-[var(--color-border)] text-[var(--color-text-muted)] bg-transparent"]);return a.jsx("div",{className:C,children:y==="finish"?a.jsx(k.Check,{className:"h-4 w-4"}):v.icon?v.icon:a.jsx("span",{className:"font-semibold",children:u+1})})},h=(u,v)=>{const y=p(v),C=v===n.length-1,S=c&&v<n.length;return a.jsxs("div",{className:i("flex flex-1",t==="horizontal"?"flex-col items-center":"flex-row",S&&"cursor-pointer"),onClick:()=>S&&c(v),children:[a.jsxs("div",{className:i("flex items-center",t==="horizontal"?"flex-col":"flex-row gap-3"),children:[a.jsx("div",{className:"relative",children:w(v,u)}),a.jsxs("div",{className:i("flex flex-col",t==="horizontal"?"items-center mt-2 text-center":"items-start flex-1"),children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:i("font-medium",b.title,y==="process"&&"text-[var(--color-text)]",y==="finish"&&"text-[var(--color-text)]",y==="wait"&&"text-[var(--color-text-muted)]",y==="error"&&"text-red-500"),children:u.title}),u.subTitle&&a.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:u.subTitle})]}),u.description&&a.jsx("span",{className:i("text-[var(--color-text-muted)] mt-1",b.description),children:u.description})]})]}),!C&&a.jsx("div",{className:i("transition-all",t==="horizontal"?"h-[2px] flex-1 mx-4 mt-4":"w-[2px] h-8 ml-4 my-2",v<o?"bg-[var(--color-primary)]":"bg-[var(--color-border)]")})]},v)};return a.jsx("div",{ref:f,className:i(rs({direction:t}),e),...m,children:n.map((u,v)=>h(u,v))})});as.displayName="Steps";const os=l.forwardRef(({options:e,value:t,defaultValue:r,onChange:o,size:s="md",block:n=!1,disabled:c=!1,className:d},m)=>{var h;const[f,x]=l.useState(r||((h=e[0])==null?void 0:h.value)||""),b=t??f,p=u=>{if(c)return;const v=e.find(y=>y.value===u);v!=null&&v.disabled||(x(u),o==null||o(u))},w={sm:"h-7 text-xs",md:"h-9 text-sm",lg:"h-11 text-base"};return a.jsx("div",{ref:m,className:i("inline-flex items-center gap-1 p-1 rounded-lg","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)]",n&&"flex w-full",c&&"opacity-50 cursor-not-allowed",d),children:e.map(u=>{const v=b===u.value,y=c||u.disabled;return a.jsxs("button",{type:"button",disabled:y,onClick:()=>p(u.value),className:i("inline-flex items-center justify-center gap-2 px-3 rounded-md font-medium transition-all",w[s],n&&"flex-1",v&&["bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]","text-white shadow-[var(--glow-primary)]"],!v&&["text-[var(--color-text-secondary)]","hover:text-[var(--color-text)]","hover:bg-[var(--color-bg-glass-hover)]"],y&&"cursor-not-allowed opacity-50"),children:[u.icon&&a.jsx("span",{className:"shrink-0",children:u.icon}),u.label]},u.value)})})});os.displayName="Segmented";const ss=l.forwardRef(({className:e,collapsible:t=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:s,width:n=256,collapsedWidth:c=64,children:d,...m},f)=>{const[x,b]=l.useState(r),p=o??x,w=()=>{const h=!p;b(h),s==null||s(h)};return a.jsxs("aside",{ref:f,className:i("relative flex flex-col","border-r border-[var(--color-border)]","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","transition-all duration-300",e),style:{width:p?c:n},...m,children:[d,t&&a.jsx(K,{variant:"ghost",size:"icon",onClick:w,className:i("absolute -right-3 top-6 z-10 h-6 w-6 rounded-full","border border-[var(--color-border)]","bg-[var(--color-bg-elevated)]","shadow-sm"),children:p?a.jsx(k.ChevronRight,{className:"h-3 w-3"}):a.jsx(k.ChevronLeft,{className:"h-3 w-3"})})]})});ss.displayName="Sidebar";const ns=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("flex h-16 items-center border-b border-[var(--color-border)] px-4",e),...t}));ns.displayName="SidebarHeader";const ls=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("flex-1 overflow-y-auto py-4",e),...t}));ls.displayName="SidebarContent";const is=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("border-t border-[var(--color-border)] p-4",e),...t}));is.displayName="SidebarFooter";const cs=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("px-3 py-2",e),...t}));cs.displayName="SidebarGroup";const ds=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("px-3 py-2 text-xs font-medium uppercase tracking-wider","text-[var(--color-text-muted)]",e),...t}));ds.displayName="SidebarGroupLabel";const ms=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("space-y-1",e),...t}));ms.displayName="SidebarGroupContent";const us=l.forwardRef(({className:e,icon:t,active:r,children:o,...s},n)=>a.jsxs("a",{ref:n,className:i("flex items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",r?"bg-[var(--color-bg-glass)] text-[var(--color-text)] font-medium":"text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)]",e),...s,children:[t&&a.jsx("span",{className:"shrink-0",children:t}),a.jsx("span",{className:"truncate",children:o})]}));us.displayName="SidebarMenuItem";const Mc=$("relative flex shrink-0 overflow-hidden rounded-full border-2 border-[var(--color-border)]",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12",xl:"h-16 w-16","2xl":"h-20 w-20"}},defaultVariants:{size:"md"}}),fs=l.forwardRef(({className:e,size:t,...r},o)=>a.jsx(Se.Root,{ref:o,className:i(Mc({size:t}),e),...r}));fs.displayName=Se.Root.displayName;const xs=l.forwardRef(({className:e,...t},r)=>a.jsx(Se.Image,{ref:r,className:i("aspect-square h-full w-full object-cover",e),...t}));xs.displayName=Se.Image.displayName;const ps=l.forwardRef(({className:e,...t},r)=>a.jsx(Se.Fallback,{ref:r,className:i("flex h-full w-full items-center justify-center","bg-gradient-to-br from-[var(--color-primary)] to-[#ec4899]","text-white font-semibold",e),...t}));ps.displayName=Se.Fallback.displayName;const bs=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:r,className:i("w-full caption-bottom text-sm",e),...t})}));bs.displayName="Table";const hs=l.forwardRef(({className:e,...t},r)=>a.jsx("thead",{ref:r,className:i("border-b border-[var(--color-border)]","[&_tr]:border-b",e),...t}));hs.displayName="TableHeader";const gs=l.forwardRef(({className:e,...t},r)=>a.jsx("tbody",{ref:r,className:i("[&_tr:last-child]:border-0",e),...t}));gs.displayName="TableBody";const vs=l.forwardRef(({className:e,...t},r)=>a.jsx("tfoot",{ref:r,className:i("border-t border-[var(--color-border)] bg-[var(--color-bg-glass)]/50 font-medium [&>tr]:last:border-b-0",e),...t}));vs.displayName="TableFooter";const ws=l.forwardRef(({className:e,...t},r)=>a.jsx("tr",{ref:r,className:i("border-b border-[var(--color-border)] transition-colors","hover:bg-[var(--color-bg-glass-hover)]","data-[state=selected]:bg-[var(--color-bg-glass)]",e),...t}));ws.displayName="TableRow";const ys=l.forwardRef(({className:e,...t},r)=>a.jsx("th",{ref:r,className:i("h-12 px-4 text-left align-middle font-semibold text-[var(--color-text)]","[&:has([role=checkbox])]:pr-0",e),...t}));ys.displayName="TableHead";const Ns=l.forwardRef(({className:e,...t},r)=>a.jsx("td",{ref:r,className:i("p-4 align-middle text-[var(--color-text-secondary)]","[&:has([role=checkbox])]:pr-0",e),...t}));Ns.displayName="TableCell";const js=l.forwardRef(({className:e,...t},r)=>a.jsx("caption",{ref:r,className:i("mt-4 text-sm text-[var(--color-text-muted)]",e),...t}));js.displayName="TableCaption";const ks=l.createContext(null);function at(){const e=l.useContext(ks);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Ss=l.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:o,className:s,children:n,...c},d)=>{const[m,f]=qn({...t,axis:e==="horizontal"?"x":"y"},o),[x,b]=l.useState(!1),[p,w]=l.useState(!1),h=l.useCallback(C=>{C&&(b(C.canScrollPrev()),w(C.canScrollNext()))},[]),u=l.useCallback(()=>{f==null||f.scrollPrev()},[f]),v=l.useCallback(()=>{f==null||f.scrollNext()},[f]),y=l.useCallback(C=>{C.key==="ArrowLeft"?(C.preventDefault(),u()):C.key==="ArrowRight"&&(C.preventDefault(),v())},[u,v]);return l.useEffect(()=>{!f||!r||r(f)},[f,r]),l.useEffect(()=>{if(f)return h(f),f.on("reInit",h),f.on("select",h),()=>{f==null||f.off("select",h)}},[f,h]),a.jsx(ks.Provider,{value:{carouselRef:m,api:f,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:u,scrollNext:v,canScrollPrev:x,canScrollNext:p},children:a.jsx("div",{ref:d,onKeyDownCapture:y,className:i("relative",s),role:"region","aria-roledescription":"carousel",...c,children:n})})});Ss.displayName="Carousel";const Cs=l.forwardRef(({className:e,...t},r)=>{const{carouselRef:o,orientation:s}=at();return a.jsx("div",{ref:o,className:"overflow-hidden",children:a.jsx("div",{ref:r,className:i("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Cs.displayName="CarouselContent";const Rs=l.forwardRef(({className:e,...t},r)=>{const{orientation:o}=at();return a.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",e),...t})});Rs.displayName="CarouselItem";const Ps=l.forwardRef(({className:e,variant:t="outline",size:r="icon",...o},s)=>{const{orientation:n,scrollPrev:c,canScrollPrev:d}=at();return a.jsxs(K,{ref:s,variant:t,size:r,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!d,onClick:c,...o,children:[a.jsx(k.ArrowLeft,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Ps.displayName="CarouselPrevious";const Ms=l.forwardRef(({className:e,variant:t="outline",size:r="icon",...o},s)=>{const{orientation:n,scrollNext:c,canScrollNext:d}=at();return a.jsxs(K,{ref:s,variant:t,size:r,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!d,onClick:c,...o,children:[a.jsx(k.ArrowRight,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Next slide"})]})});Ms.displayName="CarouselNext";const Ts=l.forwardRef(({className:e,src:t,alt:r="",fallback:o,onError:s,aspectRatio:n="auto",objectFit:c="cover",...d},m)=>{const[f,x]=l.useState(!1),[b,p]=l.useState(!0),w={square:"aspect-square",video:"aspect-video",portrait:"aspect-[3/4]",auto:""},h={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"},u=()=>{x(!0),p(!1),s==null||s()},v=()=>{p(!1)};return f||!t?a.jsx("div",{className:i("flex items-center justify-center bg-[var(--color-bg-glass)] rounded-md",w[n],e),children:o||a.jsxs("div",{className:"flex flex-col items-center gap-2 text-[var(--color-text-muted)]",children:[a.jsx(k.ImageIcon,{className:"h-8 w-8"}),a.jsx("span",{className:"text-xs",children:"Image not available"})]})}):a.jsxs("div",{className:i("relative overflow-hidden rounded-md",w[n],e),children:[b&&a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[var(--color-bg-glass)] animate-pulse",children:a.jsx(k.ImageIcon,{className:"h-8 w-8 text-[var(--color-text-muted)]"})}),a.jsx("img",{ref:m,src:t,alt:r,onError:u,onLoad:v,className:i("h-full w-full transition-opacity duration-300",h[c],b?"opacity-0":"opacity-100"),...d})]})});Ts.displayName="Image";const Ds=l.forwardRef(({title:e,value:t,prefix:r,suffix:o,trend:s,trendValue:n,valueClassName:c,className:d},m)=>a.jsxs("div",{ref:m,className:i("space-y-2",d),children:[a.jsx("div",{className:"text-sm text-[var(--color-text-muted)]",children:e}),a.jsxs("div",{className:"flex items-baseline gap-2",children:[a.jsxs("div",{className:i("text-3xl font-bold text-[var(--color-text)]",c),children:[r&&a.jsx("span",{className:"mr-1",children:r}),t,o&&a.jsx("span",{className:"ml-1",children:o})]}),s&&a.jsxs("div",{className:i("flex items-center text-sm font-medium",s==="up"?"text-green-500":"text-red-500"),children:[s==="up"?a.jsx(k.ArrowUp,{className:"h-4 w-4 mr-1"}):a.jsx(k.ArrowDown,{className:"h-4 w-4 mr-1"}),n]})]})]}));Ds.displayName="Statistic";const zs=l.forwardRef(({items:e,bordered:t=!1,hoverable:r=!0,divided:o=!0,onItemClick:s,className:n,itemClassName:c},d)=>a.jsx("div",{ref:d,className:i("rounded-lg",t&&"border border-[var(--color-border)]",n),children:e.map((m,f)=>a.jsxs("div",{onClick:()=>s==null?void 0:s(m),className:i("flex items-center gap-4 p-4",r&&"transition-colors hover:bg-[var(--color-bg-glass-hover)]",s&&"cursor-pointer",o&&f<e.length-1&&"border-b border-[var(--color-border)]",c),children:[m.avatar&&a.jsx("div",{className:"shrink-0",children:m.avatar}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"text-sm font-medium text-[var(--color-text)]",children:m.title}),m.description&&a.jsx("div",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:m.description})]}),m.extra&&a.jsx("div",{className:"shrink-0 text-[var(--color-text-secondary)]",children:m.extra}),m.actions&&a.jsx("div",{className:"shrink-0 flex items-center gap-2",children:m.actions})]},m.id))}));zs.displayName="List";const Is=l.forwardRef(({title:e,items:t,columns:r=3,bordered:o=!1,layout:s="horizontal",className:n},c)=>{const d={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};return o?a.jsxs("div",{ref:c,className:i("rounded-lg overflow-hidden",n),children:[e&&a.jsx("div",{className:"px-4 py-3 bg-[var(--color-bg-glass)] border border-[var(--color-border)] font-semibold text-[var(--color-text)]",children:e}),a.jsx("div",{className:"border border-[var(--color-border)] border-t-0",children:t.map((m,f)=>a.jsxs("div",{className:i("grid",s==="horizontal"?"grid-cols-[200px_1fr]":"grid-cols-1"),children:[a.jsx("div",{className:"px-4 py-3 bg-[var(--color-bg-glass)]/50 border-b border-r border-[var(--color-border)] text-sm font-medium text-[var(--color-text)]",children:m.label}),a.jsx("div",{className:"px-4 py-3 border-b border-[var(--color-border)] text-sm text-[var(--color-text-secondary)]",children:m.content})]},f))})]}):a.jsxs("div",{ref:c,className:i("",n),children:[e&&a.jsx("div",{className:"mb-4 text-lg font-semibold text-[var(--color-text)]",children:e}),a.jsx("div",{className:i("grid gap-4",d[r]),children:t.map((m,f)=>a.jsxs("div",{className:i("space-y-1",m.span&&`col-span-${m.span}`),children:[a.jsx("div",{className:"text-sm font-medium text-[var(--color-text-muted)]",children:m.label}),a.jsx("div",{className:"text-sm text-[var(--color-text)]",children:m.content})]},f))})]})});Is.displayName="Descriptions";const Ls=l.forwardRef(({items:e,variant:t="default",className:r},o)=>{const s=n=>{switch(n){case"primary":return"border-[var(--color-primary)] bg-[var(--color-primary)]";case"success":return"border-green-500 bg-green-500";case"warning":return"border-yellow-500 bg-yellow-500";case"error":return"border-red-500 bg-red-500";default:return"border-[var(--color-border-strong)] bg-[var(--color-bg-glass)]"}};return a.jsx("div",{ref:o,className:i("relative",r),children:e.map((n,c)=>a.jsxs("div",{className:"relative flex gap-4 pb-8 last:pb-0",children:[c<e.length-1&&a.jsx("div",{className:i("absolute left-[19px] top-[32px] bottom-0 w-[2px]",t==="gradient"?"bg-gradient-to-b from-[var(--color-primary)] to-[#ec4899]":"bg-[var(--color-border)]")}),a.jsx("div",{className:"relative z-10 flex shrink-0",children:a.jsx("div",{className:i("flex h-10 w-10 items-center justify-center rounded-full border-2",s(n.color),n.icon&&"text-white"),children:n.icon||a.jsx("div",{className:"h-3 w-3 rounded-full bg-current"})})}),a.jsxs("div",{className:"flex-1 pt-1",children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsx("h4",{className:"text-sm font-semibold text-[var(--color-text)]",children:n.title}),n.timestamp&&a.jsx("time",{className:"text-xs text-[var(--color-text-muted)]",children:n.timestamp})]}),n.description&&a.jsx("p",{className:"text-sm text-[var(--color-text-secondary)]",children:n.description})]})]},c))})});Ls.displayName="Timeline";const As=l.forwardRef(({steps:e,currentStep:t,orientation:r="horizontal",variant:o="default",className:s},n)=>a.jsx("div",{ref:n,className:i("flex",r==="horizontal"?"flex-row items-center":"flex-col",s),children:e.map((c,d)=>{const m=d<t,f=d===t,x=d>t;return a.jsxs(l.Fragment,{children:[a.jsxs("div",{className:i("flex items-center",r==="vertical"?"flex-row":"flex-col"),children:[a.jsx("div",{className:i("flex items-center justify-center rounded-full border-2 transition-all","h-10 w-10 shrink-0",m&&o==="gradient"&&"bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899] border-transparent text-white",m&&o==="default"&&"bg-[var(--color-primary)] border-[var(--color-primary)] text-white",f&&"border-[var(--color-primary)] text-[var(--color-primary)] bg-[var(--color-bg-glass)]",x&&"border-[var(--color-border)] text-[var(--color-text-muted)] bg-transparent"),children:m?a.jsx(k.Check,{className:"h-5 w-5"}):c.icon?c.icon:a.jsx("span",{className:"text-sm font-semibold",children:d+1})}),a.jsxs("div",{className:i("flex flex-col",r==="horizontal"?"items-center mt-2":"items-start ml-4"),children:[a.jsx("div",{className:i("text-sm font-medium",f&&"text-[var(--color-text)]",m&&"text-[var(--color-text)]",x&&"text-[var(--color-text-muted)]"),children:c.title}),c.description&&a.jsx("div",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:c.description})]})]}),d<e.length-1&&a.jsx("div",{className:i("transition-all",r==="horizontal"?"h-[2px] flex-1 mx-2":"w-[2px] h-8 ml-5",d<t?o==="gradient"?"bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]":"bg-[var(--color-primary)]":"bg-[var(--color-border)]")})]},d)})}));As.displayName="Stepper";const Os=$("inline-flex items-center gap-1.5 rounded-md px-2.5 py-0.5 text-xs font-medium transition-all",{variants:{variant:{default:["bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)]","text-[var(--color-text)]"],solid:["bg-[var(--color-bg-elevated)]","text-[var(--color-text)]"],gradient:["bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]","text-white shadow-[var(--glow-primary)]"],success:["bg-green-500/20 border border-green-500/50","text-green-500"],warning:["bg-yellow-500/20 border border-yellow-500/50","text-yellow-500"],error:["bg-red-500/20 border border-red-500/50","text-red-500"],info:["bg-blue-500/20 border border-blue-500/50","text-blue-500"]}},defaultVariants:{variant:"default"}}),Es=l.forwardRef(({className:e,variant:t,closable:r,onClose:o,icon:s,children:n,...c},d)=>a.jsxs("span",{ref:d,className:i(Os({variant:t}),e),...c,children:[s&&a.jsx("span",{className:"shrink-0",children:s}),n,r&&a.jsx("button",{type:"button",onClick:o,className:"shrink-0 hover:opacity-70 transition-opacity","aria-label":"Close",children:a.jsx(k.X,{className:"h-3 w-3"})})]}));Es.displayName="Tag";const _s=l.forwardRef(({treeData:e,checkable:t=!1,checkedKeys:r,expandedKeys:o,selectedKeys:s,onCheck:n,onExpand:c,onSelect:d,className:m},f)=>{const[x,b]=l.useState([]),[p,w]=l.useState([]),[h,u]=l.useState([]),v=r??x,y=o??p,C=s??h,S=g=>{const j=y.includes(g)?y.filter(N=>N!==g):[...y,g];w(j),c==null||c(j)},P=(g,j)=>{const N=j?[...v,g]:v.filter(M=>M!==g);b(N),n==null||n(N)},R=g=>{const j=C.includes(g)?[]:[g];u(j),d==null||d(j)},I=(g,j=0)=>{const N=g.children&&g.children.length>0,M=y.includes(g.key),O=v.includes(g.key),z=C.includes(g.key);return a.jsxs("div",{className:"select-none",children:[a.jsxs("div",{className:i("flex items-center gap-2 py-1.5 px-2 rounded-md cursor-pointer transition-colors","hover:bg-[var(--color-bg-glass-hover)]",z&&"bg-[var(--color-bg-glass)] text-[var(--color-primary)]",g.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`${j*20+8}px`},children:[N?a.jsx("button",{onClick:()=>S(g.key),className:"shrink-0 p-0.5 hover:bg-[var(--color-bg-glass)] rounded",children:M?a.jsx(k.ChevronDown,{className:"h-4 w-4"}):a.jsx(k.ChevronRight,{className:"h-4 w-4"})}):a.jsx("span",{className:"w-5"}),t&&a.jsx(Ze,{checked:O,onCheckedChange:E=>P(g.key,E),disabled:g.disabled}),a.jsxs("div",{onClick:()=>!g.disabled&&R(g.key),className:"flex items-center gap-2 flex-1",children:[g.icon&&a.jsx("span",{className:"shrink-0",children:g.icon}),a.jsx("span",{className:"text-sm",children:g.title})]})]}),N&&M&&a.jsx("div",{children:g.children.map(E=>I(E,j+1))})]},g.key)};return a.jsx("div",{ref:f,className:i("rounded-lg border border-[var(--color-border)] p-2","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]",m),children:e.map(g=>I(g))})});_s.displayName="Tree";const Fs=l.forwardRef(({value:e,size:t=128,level:r="M",bgColor:o="#FFFFFF",fgColor:s="#000000",includeMargin:n=!1,imageSettings:c,className:d},m)=>{const f=l.useRef(null);return l.useEffect(()=>{const x=f.current;if(!x)return;const b=x.getContext("2d");if(!b)return;x.width=t,x.height=t,b.fillStyle=o,b.fillRect(0,0,t,t),b.fillStyle=s;const p=t/25,w=n?p:0,h=e.split("").reduce((y,C)=>y+C.charCodeAt(0),0);for(let y=0;y<25;y++)for(let C=0;C<25;C++)(y*25+C+h)%3===0&&b.fillRect(w+y*p,w+C*p,p,p);const u=p*7;if([[w,w],[t-u-w,w],[w,t-u-w]].forEach(([y,C])=>{b.fillStyle=s,b.fillRect(y,C,u,u),b.fillStyle=o,b.fillRect(y+p,C+p,u-2*p,u-2*p),b.fillStyle=s,b.fillRect(y+2*p,C+2*p,u-4*p,u-4*p)}),c){const y=new Image;y.onload=()=>{const C=(t-c.width)/2,S=(t-c.height)/2;c.excavate&&(b.fillStyle=o,b.fillRect(C-5,S-5,c.width+10,c.height+10)),b.drawImage(y,C,S,c.width,c.height)},y.src=c.src}},[e,t,r,o,s,n,c]),a.jsx("div",{ref:m,className:i("inline-flex items-center justify-center p-4 rounded-lg","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)]",d),children:a.jsx("canvas",{ref:f,className:"rounded"})})});Fs.displayName="QRCode";const Ge=({active:e,payload:t,label:r})=>!e||!t||!t.length?null:a.jsxs("div",{className:"rounded-lg border border-[var(--color-border)] bg-[var(--color-bg-elevated)] backdrop-blur-[var(--blur-glass)] p-3 shadow-[var(--shadow-glass)]",children:[a.jsx("p",{className:"text-sm font-medium text-[var(--color-text)] mb-2",children:r}),t.map((o,s)=>a.jsxs("div",{className:"flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",children:[a.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:o.color}}),a.jsxs("span",{children:[o.name,":"]}),a.jsx("span",{className:"font-medium text-[var(--color-text)]",children:o.value})]},s))]}),Tc=({data:e,xKey:t,lines:r,height:o=300,showGrid:s=!0,showLegend:n=!0,className:c})=>a.jsx("div",{className:i("w-full",c),children:a.jsx(_.ResponsiveContainer,{width:"100%",height:o,children:a.jsxs(_.LineChart,{data:e,children:[s&&a.jsx(_.CartesianGrid,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),a.jsx(_.XAxis,{dataKey:t,stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(_.YAxis,{stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(_.Tooltip,{content:a.jsx(Ge,{})}),n&&a.jsx(_.Legend,{wrapperStyle:{color:"var(--color-text-secondary)",fontSize:12}}),r.map((d,m)=>a.jsx(_.Line,{type:"monotone",dataKey:d.dataKey,name:d.name||d.dataKey,stroke:d.color||`hsl(${m*60}, 70%, 50%)`,strokeWidth:d.strokeWidth||2,dot:!1,activeDot:{r:6}},d.dataKey))]})})}),Dc=({data:e,xKey:t,bars:r,height:o=300,showGrid:s=!0,showLegend:n=!0,className:c})=>a.jsx("div",{className:i("w-full",c),children:a.jsx(_.ResponsiveContainer,{width:"100%",height:o,children:a.jsxs(_.BarChart,{data:e,children:[s&&a.jsx(_.CartesianGrid,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),a.jsx(_.XAxis,{dataKey:t,stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(_.YAxis,{stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(_.Tooltip,{content:a.jsx(Ge,{})}),n&&a.jsx(_.Legend,{wrapperStyle:{color:"var(--color-text-secondary)",fontSize:12}}),r.map((d,m)=>a.jsx(_.Bar,{dataKey:d.dataKey,name:d.name||d.dataKey,fill:d.color||`hsl(${m*60}, 70%, 50%)`,radius:[4,4,0,0]},d.dataKey))]})})}),zc=({data:e,xKey:t,areas:r,height:o=300,showGrid:s=!0,showLegend:n=!0,className:c})=>a.jsx("div",{className:i("w-full",c),children:a.jsx(_.ResponsiveContainer,{width:"100%",height:o,children:a.jsxs(_.AreaChart,{data:e,children:[s&&a.jsx(_.CartesianGrid,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),a.jsx(_.XAxis,{dataKey:t,stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(_.YAxis,{stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:12},tickLine:!1,axisLine:{stroke:"var(--color-border)"}}),a.jsx(_.Tooltip,{content:a.jsx(Ge,{})}),n&&a.jsx(_.Legend,{wrapperStyle:{color:"var(--color-text-secondary)",fontSize:12}}),r.map((d,m)=>a.jsx(_.Area,{type:"monotone",dataKey:d.dataKey,name:d.name||d.dataKey,stroke:d.color||`hsl(${m*60}, 70%, 50%)`,fill:d.color||`hsl(${m*60}, 70%, 50%)`,fillOpacity:.2,strokeWidth:2},d.dataKey))]})})}),Ic=({data:e,height:t=300,innerRadius:r=0,showLegend:o=!0,className:s})=>{const n=["#a855f7","#ec4899","#f472b6","#8b5cf6","#d946ef"];return a.jsx("div",{className:i("w-full",s),children:a.jsx(_.ResponsiveContainer,{width:"100%",height:t,children:a.jsxs(_.PieChart,{children:[a.jsx(_.Pie,{data:e,cx:"50%",cy:"50%",innerRadius:r,outerRadius:t/3,paddingAngle:2,dataKey:"value",children:e.map((c,d)=>a.jsx(_.Cell,{fill:c.color||n[d%n.length]},`cell-${d}`))}),a.jsx(_.Tooltip,{content:a.jsx(Ge,{})}),o&&a.jsx(_.Legend,{wrapperStyle:{color:"var(--color-text-secondary)",fontSize:12}})]})})})},Vs=l.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:i("flex min-h-screen",e),...t}));Vs.displayName="Layout";const Gs=l.forwardRef(({className:e,...t},r)=>a.jsx("header",{ref:r,className:i("border-b border-[var(--color-border)]","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","sticky top-0 z-40",e),...t}));Gs.displayName="LayoutHeader";const Ws=l.forwardRef(({className:e,width:t=256,collapsed:r=!1,collapsedWidth:o=80,style:s,...n},c)=>a.jsx("aside",{ref:c,className:i("border-r border-[var(--color-border)]","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","transition-all duration-300",e),style:{width:r?typeof o=="number"?`${o}px`:o:typeof t=="number"?`${t}px`:t,...s},...n}));Ws.displayName="LayoutSider";const Bs=l.forwardRef(({className:e,...t},r)=>a.jsx("main",{ref:r,className:i("flex-1 overflow-auto",e),...t}));Bs.displayName="LayoutContent";const Hs=l.forwardRef(({className:e,...t},r)=>a.jsx("footer",{ref:r,className:i("border-t border-[var(--color-border)]","bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]",e),...t}));Hs.displayName="LayoutFooter";const qs=l.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,variant:o="default",label:s,...n},c)=>s?a.jsxs("div",{className:"relative flex items-center",children:[a.jsx(Ke.Root,{ref:c,decorative:r,orientation:t,className:i("flex-1",o==="default"&&"bg-white/10",o==="gradient"&&"bg-gradient-to-r from-transparent via-white/20 to-transparent",t==="horizontal"&&"h-px",t==="vertical"&&"w-px",e),...n}),a.jsx("span",{className:"px-2 text-xs text-white/50",children:s}),a.jsx(Ke.Root,{decorative:r,orientation:t,className:i("flex-1",o==="default"&&"bg-white/10",o==="gradient"&&"bg-gradient-to-r from-transparent via-white/20 to-transparent",t==="horizontal"&&"h-px",t==="vertical"&&"w-px")})]}):a.jsx(Ke.Root,{ref:c,decorative:r,orientation:t,className:i(o==="default"&&"bg-white/10",o==="gradient"&&"bg-gradient-to-r from-transparent via-white/20 to-transparent",t==="horizontal"?"h-px w-full":"h-full w-px",e),"data-slot":"separator",...n}));qs.displayName=Ke.Root.displayName;const Ys=l.forwardRef(({className:e,orientation:t="horizontal",variant:r="default",label:o,...s},n)=>o?a.jsxs("div",{ref:n,className:i("flex items-center gap-3 my-4",e),...s,children:[a.jsx("div",{className:i("flex-1 h-px",r==="gradient"?"bg-gradient-to-r from-transparent via-[var(--color-border)] to-transparent":"bg-[var(--color-border)]")}),a.jsx("span",{className:"text-sm text-[var(--color-text-muted)]",children:o}),a.jsx("div",{className:i("flex-1 h-px",r==="gradient"?"bg-gradient-to-r from-transparent via-[var(--color-border)] to-transparent":"bg-[var(--color-border)]")})]}):a.jsx("div",{ref:n,role:"separator","aria-orientation":t,className:i(t==="horizontal"?"w-full h-px":"h-full w-px",r==="gradient"?t==="horizontal"?"bg-gradient-to-r from-transparent via-[var(--color-border)] to-transparent":"bg-gradient-to-b from-transparent via-[var(--color-border)] to-transparent":"bg-[var(--color-border)]",e),...s}));Ys.displayName="Divider";const Lc=Jn.Root,Ac=({className:e,...t})=>a.jsx(pt.PanelGroup,{className:i("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),Oc=pt.Panel,Ec=({withHandle:e,className:t,...r})=>a.jsx(pt.PanelResizeHandle,{className:i("relative flex w-px items-center justify-center bg-[var(--color-border)]","after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2","hover:bg-[var(--color-border-strong)]","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-1","data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full","data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0","[&[data-panel-group-direction=vertical]>div]:rotate-90",t),...r,children:e&&a.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border border-[var(--color-border)] bg-[var(--color-bg-glass)]",children:a.jsx(k.GripVertical,{className:"h-2.5 w-2.5"})})}),$s=$("w-full mx-auto px-4 sm:px-6 lg:px-8",{variants:{size:{sm:"max-w-3xl",md:"max-w-5xl",lg:"max-w-7xl",xl:"max-w-[1400px]",full:"max-w-full"}},defaultVariants:{size:"lg"}}),Ks=l.forwardRef(({className:e,size:t,...r},o)=>a.jsx("div",{ref:o,className:i($s({size:t}),e),...r}));Ks.displayName="Container";const Xs=$("flex",{variants:{direction:{row:"flex-row",column:"flex-col",rowReverse:"flex-row-reverse",columnReverse:"flex-col-reverse"},spacing:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{true:"flex-wrap",false:"flex-nowrap"}},defaultVariants:{direction:"column",spacing:"md"}}),Us=l.forwardRef(({className:e,direction:t,spacing:r,align:o,justify:s,wrap:n,...c},d)=>a.jsx("div",{ref:d,className:i(Xs({direction:t,spacing:r,align:o,justify:s,wrap:n}),e),...c}));Us.displayName="Stack";const Qs=$("grid w-full",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12"},gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"}},defaultVariants:{cols:12,gap:"md"}}),Js=l.forwardRef(({className:e,cols:t,gap:r,...o},s)=>a.jsx("div",{ref:s,className:i(Qs({cols:t,gap:r}),e),...o}));Js.displayName="Grid";const Zs=$("",{variants:{span:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"}},defaultVariants:{span:1}}),en=l.forwardRef(({className:e,span:t,...r},o)=>a.jsx("div",{ref:o,className:i(Zs({span:t}),e),...r}));en.displayName="GridItem";const tn=$("inline-flex",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"},size:{xs:"",sm:"",md:"",lg:"",xl:""},align:{start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},wrap:{true:"flex-wrap",false:"flex-nowrap"}},compoundVariants:[{direction:"horizontal",size:"xs",class:"gap-1"},{direction:"horizontal",size:"sm",class:"gap-2"},{direction:"horizontal",size:"md",class:"gap-4"},{direction:"horizontal",size:"lg",class:"gap-6"},{direction:"horizontal",size:"xl",class:"gap-8"},{direction:"vertical",size:"xs",class:"gap-1"},{direction:"vertical",size:"sm",class:"gap-2"},{direction:"vertical",size:"md",class:"gap-4"},{direction:"vertical",size:"lg",class:"gap-6"},{direction:"vertical",size:"xl",class:"gap-8"}],defaultVariants:{direction:"horizontal",size:"md"}}),rn=l.forwardRef(({className:e,direction:t,size:r,align:o,wrap:s,split:n,children:c,...d},m)=>{const f=l.Children.toArray(c).filter(Boolean);return a.jsx("div",{ref:m,className:i(tn({direction:t,size:r,align:o,wrap:s}),e),...d,children:f.map((x,b)=>a.jsxs(l.Fragment,{children:[x,n&&b<f.length-1&&a.jsx("span",{className:"select-none",children:n})]},b))})});rn.displayName="Space";const an=l.forwardRef(({offsetTop:e,offsetBottom:t,target:r,onChange:o,className:s,children:n},c)=>{var w;const[d,m]=l.useState(!1),[f,x]=l.useState({}),b=l.useRef(null),p=l.useRef(null);return l.useEffect(()=>{const h=r?r():window,u=()=>{if(!b.current||!p.current)return;const v=b.current.getBoundingClientRect();p.current.offsetHeight;let y=!1,C={};if(e!==void 0&&v.top<=e&&(y=!0,C={position:"fixed",top:e,left:v.left,width:v.width}),t!==void 0){const S=window.innerHeight;v.bottom>=S-t&&(y=!0,C={position:"fixed",bottom:t,left:v.left,width:v.width})}y!==d&&(m(y),o==null||o(y)),x(C)};return h instanceof Window?(window.addEventListener("scroll",u),window.addEventListener("resize",u),u(),()=>{window.removeEventListener("scroll",u),window.removeEventListener("resize",u)}):(h.addEventListener("scroll",u),u(),()=>h.removeEventListener("scroll",u))},[e,t,r,d,o]),a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:b,style:d?{height:(w=p.current)==null?void 0:w.offsetHeight}:void 0}),a.jsx("div",{ref:p,className:i(s),style:d?f:void 0,children:n})]})});an.displayName="Affix";const on=l.forwardRef(({visibilityHeight:e=400,target:t,onClick:r,className:o},s)=>{const[n,c]=l.useState(!1);l.useEffect(()=>{const m=t?t():window,f=()=>{m instanceof Window?c(window.scrollY>e):c(m.scrollTop>e)};return m instanceof Window?(window.addEventListener("scroll",f),()=>window.removeEventListener("scroll",f)):(m.addEventListener("scroll",f),()=>m.removeEventListener("scroll",f))},[e,t]);const d=()=>{const m=t?t():window;m instanceof Window?window.scrollTo({top:0,behavior:"smooth"}):m.scrollTo({top:0,behavior:"smooth"}),r==null||r()};return n?a.jsx("div",{ref:s,className:i("fixed bottom-8 right-8 z-50","animate-in fade-in slide-in-from-bottom-4",o),children:a.jsx(K,{variant:"gradient",size:"icon",className:"h-12 w-12 rounded-full shadow-[var(--shadow-elevated)]",onClick:d,children:a.jsx(k.ArrowUp,{className:"h-5 w-5"})})}):null});on.displayName="BackTop";const It=l.forwardRef(({className:e,icon:t,description:r,tooltip:o,shape:s="circle",variant:n="default",badge:c,...d},m)=>{const f=a.jsxs(K,{ref:m,variant:n==="primary"?"gradient":"outline",size:"icon",className:i("relative h-12 w-12 shadow-[var(--shadow-elevated)]",s==="circle"&&"rounded-full",s==="square"&&"rounded-lg",r&&"h-auto w-auto px-4 py-3 flex-col gap-1",e),...d,children:[t,r&&a.jsx("span",{className:"text-xs whitespace-nowrap",children:r}),c&&(c.dot||c.count&&c.count>0)&&a.jsx("span",{className:i("absolute -top-1 -right-1 flex items-center justify-center","bg-red-500 text-white text-xs font-medium",c.dot?"h-2 w-2 rounded-full":"h-5 min-w-[20px] px-1 rounded-full"),children:!c.dot&&c.count&&(c.count>99?"99+":c.count)})]});return o?a.jsx(Ha,{children:a.jsxs(qa,{children:[a.jsx(Ya,{asChild:!0,children:f}),a.jsx(Tt,{side:"left",children:o})]})}):f});It.displayName="FloatButton";const sn=l.forwardRef(({trigger:e="click",open:t,onOpenChange:r,icon:o=a.jsx(k.Plus,{className:"h-5 w-5"}),children:s,className:n},c)=>{const[d,m]=l.useState(!1),f=t??d,x=()=>{const w=!f;m(w),r==null||r(w)},b=()=>{e==="hover"&&(m(!0),r==null||r(!0))},p=()=>{e==="hover"&&(m(!1),r==null||r(!1))};return a.jsxs("div",{ref:c,className:i("relative inline-flex flex-col-reverse items-center gap-3",n),onMouseEnter:b,onMouseLeave:p,children:[f&&a.jsx("div",{className:"flex flex-col-reverse items-center gap-3 animate-in fade-in slide-in-from-bottom-4",children:s}),a.jsx(It,{icon:f?a.jsx(k.X,{className:"h-5 w-5"}):o,variant:"primary",onClick:e==="click"?x:void 0,className:i("transition-transform",f&&"rotate-45")})]})});sn.displayName="FloatButtonGroup";const nn=l.forwardRef(({children:e,content:t="",width:r=120,height:o=64,rotate:s=-22,zIndex:n=9,image:c,font:d={},gap:m=[100,100],offset:f=[0,0],className:x},b)=>{const{color:p="rgba(0,0,0,.15)",fontSize:w=16,fontWeight:h="normal",fontFamily:u="sans-serif"}=d,[v,y]=l.useState("");return l.useEffect(()=>{const C=document.createElement("canvas"),S=C.getContext("2d");if(!S)return;const P=window.devicePixelRatio||1,R=(r+m[0])*P,I=(o+m[1])*P;if(C.width=R,C.height=I,S.translate(f[0]*P,f[1]*P),S.rotate(Math.PI/180*s),c){const g=new Image;g.crossOrigin="anonymous",g.onload=()=>{S.drawImage(g,0,0,r*P,o*P),y(C.toDataURL())},g.src=c}else S.font=`${h} ${w*P}px ${u}`,S.fillStyle=p,S.textAlign="left",S.textBaseline="top",(Array.isArray(t)?t:[t]).forEach((j,N)=>{S.fillText(j,0,N*(w*P+10))}),y(C.toDataURL())},[t,r,o,s,c,p,w,h,u,m,f]),a.jsxs("div",{ref:b,className:i("relative",x),children:[e,a.jsx("div",{className:"pointer-events-none absolute inset-0",style:{zIndex:n,backgroundImage:`url(${v})`,backgroundRepeat:"repeat"}})]})});nn.displayName="Watermark";const ln=$("font-bold tracking-tight text-[var(--color-text)]",{variants:{level:{h1:"text-5xl md:text-6xl",h2:"text-4xl md:text-5xl",h3:"text-3xl md:text-4xl",h4:"text-2xl md:text-3xl",h5:"text-xl md:text-2xl",h6:"text-lg md:text-xl"},gradient:{true:"bg-gradient-to-r from-purple-400 via-fuchsia-400 to-pink-400 bg-clip-text text-transparent"}},defaultVariants:{level:"h2"}}),cn=l.forwardRef(({className:e,level:t,gradient:r,as:o,...s},n)=>{const c=o||t||"h2",d=n;return a.jsx(c,{ref:d,className:i(ln({level:t||o,gradient:r}),e),...s})});cn.displayName="Heading";const dn=$("text-[var(--color-text)]",{variants:{size:{xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},variant:{default:"text-[var(--color-text)]",secondary:"text-[var(--color-text-secondary)]",muted:"text-[var(--color-text-muted)]",placeholder:"text-[var(--color-text-placeholder)]"}},defaultVariants:{size:"md",weight:"normal",variant:"default"}}),mn=l.forwardRef(({className:e,size:t,weight:r,variant:o,as:s="p",...n},c)=>{const d=s;return a.jsx(d,{ref:c,className:i(dn({size:t,weight:r,variant:o}),e),...n})});mn.displayName="Text";const un=l.forwardRef(({className:e,block:t,language:r,children:o,...s},n)=>t?a.jsxs("pre",{className:i("relative rounded-lg border border-[var(--color-border)] p-4","bg-[var(--color-bg-elevated)] backdrop-blur-[var(--blur-glass)]","overflow-x-auto",e),children:[r&&a.jsx("span",{className:"absolute top-2 right-2 text-xs text-[var(--color-text-muted)]",children:r}),a.jsx("code",{ref:n,className:"text-sm text-[var(--color-text)] font-mono",...s,children:o})]}):a.jsx("code",{ref:n,className:i("relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm","bg-[var(--color-bg-glass)] border border-[var(--color-border)]","text-[var(--color-text)]",e),...s,children:o}));un.displayName="Code";const fn=$("inline-flex items-center justify-center rounded border font-mono text-xs font-medium",{variants:{size:{sm:"h-5 min-w-5 px-1",md:"h-6 min-w-6 px-1.5",lg:"h-7 min-w-7 px-2"}},defaultVariants:{size:"md"}}),xn=l.forwardRef(({className:e,size:t,...r},o)=>a.jsx("kbd",{ref:o,className:i(fn({size:t}),"border-[var(--color-border)] bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","text-[var(--color-text)] shadow-sm",e),...r}));xn.displayName="Kbd";const Lt=$("inline-flex items-center justify-center rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)] disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:["bg-transparent hover:bg-[var(--color-bg-glass-hover)]","data-[state=on]:bg-[var(--color-bg-glass)] data-[state=on]:text-[var(--color-text)]"],outline:["border border-[var(--color-border)] bg-transparent","hover:bg-[var(--color-bg-glass-hover)] hover:border-[var(--color-border-strong)]","data-[state=on]:bg-[var(--color-bg-glass)] data-[state=on]:border-[var(--color-primary)]"]},size:{sm:"h-8 px-2",md:"h-9 px-3",lg:"h-10 px-4"}},defaultVariants:{variant:"default",size:"md"}}),pn=l.forwardRef(({className:e,variant:t,size:r,...o},s)=>a.jsx(Zt.Root,{ref:s,className:i(Lt({variant:t,size:r,className:e})),...o}));pn.displayName=Zt.Root.displayName;const bn=l.createContext({size:"md",variant:"default"}),hn=l.forwardRef(({className:e,variant:t,size:r,children:o,...s},n)=>a.jsx(Je.Root,{ref:n,className:i("flex items-center justify-center gap-1",e),...s,children:a.jsx(bn.Provider,{value:{variant:t,size:r},children:o})}));hn.displayName=Je.Root.displayName;const gn=l.forwardRef(({className:e,children:t,variant:r,size:o,...s},n)=>{const c=l.useContext(bn);return a.jsx(Je.Item,{ref:n,className:i(Lt({variant:c.variant||r,size:c.size||o}),e),...s,children:t})});gn.displayName=Je.Item.displayName;const _c=bt.Root,Fc=bt.CollapsibleTrigger,Vc=bt.CollapsibleContent,vn=$("inline-flex items-center justify-center rounded-full px-3 py-1 text-xs font-medium transition-all",{variants:{variant:{default:["bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]","border border-[var(--color-border)]","text-[var(--color-text)]"],gradient:["bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]","text-white shadow-[var(--glow-primary)]"],solid:["bg-[var(--color-bg-elevated)]","text-[var(--color-text)]"]},clickable:{true:"cursor-pointer hover:scale-105 active:scale-95"}},defaultVariants:{variant:"default"}}),wn=l.forwardRef(({className:e,variant:t,clickable:r,leftIcon:o,rightIcon:s,children:n,onClick:c,onRemove:d,...m},f)=>a.jsxs("div",{ref:f,className:i(vn({variant:t,clickable:r||!!c}),e),onClick:c,...m,children:[o&&a.jsx("span",{className:"mr-1.5",children:o}),n,s&&a.jsx("span",{className:"ml-1.5",children:s}),d&&a.jsx("button",{type:"button",onClick:x=>{x.stopPropagation(),d()},className:"ml-1.5 inline-flex items-center justify-center rounded-full hover:bg-[var(--color-bg-glass-hover)] p-0.5 transition-colors","aria-label":"Remove",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-3 w-3",children:a.jsx("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})})]}));wn.displayName="Chip";const yn=l.forwardRef(({steps:e,open:t=!1,current:r=0,onClose:o,onChange:s,onFinish:n,className:c},d)=>{const[m,f]=l.useState(0),[x,b]=l.useState({top:0,left:0}),[p,w]=l.useState(null),h=r??m,u=e[h];if(l.useEffect(()=>{if(!t||!u)return;const C=()=>{const S=typeof u.target=="string"?document.querySelector(u.target):u.target();if(!S)return;const P=S.getBoundingClientRect();w(P);const R=u.placement||"bottom";let I=0,g=0;switch(R){case"top":I=P.top-200,g=P.left+P.width/2;break;case"bottom":I=P.bottom+10,g=P.left+P.width/2;break;case"left":I=P.top+P.height/2,g=P.left-320;break;case"right":I=P.top+P.height/2,g=P.right+10;break}b({top:I,left:g}),S.classList.add("tour-target")};return C(),window.addEventListener("resize",C),window.addEventListener("scroll",C),()=>{window.removeEventListener("resize",C),window.removeEventListener("scroll",C);const S=typeof u.target=="string"?document.querySelector(u.target):u.target();S==null||S.classList.remove("tour-target")}},[t,h,u]),!t||!u)return null;const v=()=>{const C=Math.max(0,h-1);f(C),s==null||s(C)},y=()=>{if(h===e.length-1)n==null||n(),o==null||o();else{const C=Math.min(e.length-1,h+1);f(C),s==null||s(C)}};return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed inset-0 z-[9998]",style:{background:"rgba(0, 0, 0, 0.5)",pointerEvents:"none"}}),p&&a.jsx("div",{className:"fixed z-[9999] pointer-events-none",style:{top:p.top-4,left:p.left-4,width:p.width+8,height:p.height+8,border:"2px solid var(--color-primary)",borderRadius:"8px",boxShadow:"0 0 0 9999px rgba(0, 0, 0, 0.5)"}}),a.jsxs("div",{ref:d,className:i("fixed z-[10000] w-80 rounded-lg border border-[var(--color-border)]","bg-[var(--color-bg-secondary)] backdrop-blur-[var(--blur-heavy)]","shadow-[var(--shadow-elevated)]","animate-in fade-in zoom-in-95",c),style:{top:x.top,left:x.left,transform:"translateX(-50%)"},children:[u.cover&&a.jsx("div",{className:"rounded-t-lg overflow-hidden",children:u.cover}),a.jsxs("div",{className:"p-4",children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsx("h3",{className:"text-lg font-semibold text-[var(--color-text)]",children:u.title}),a.jsx("button",{onClick:o,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition-colors",children:a.jsx(k.X,{className:"h-4 w-4"})})]}),a.jsx("p",{className:"text-sm text-[var(--color-text-secondary)] mb-4",children:u.description}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"text-xs text-[var(--color-text-muted)]",children:[h+1," / ",e.length]}),a.jsxs("div",{className:"flex gap-2",children:[h>0&&a.jsxs(K,{variant:"outline",size:"sm",onClick:v,children:[a.jsx(k.ChevronLeft,{className:"h-4 w-4 mr-1"}),"Previous"]}),a.jsxs(K,{variant:"gradient",size:"sm",onClick:y,children:[h===e.length-1?"Finish":"Next",h<e.length-1&&a.jsx(k.ChevronRight,{className:"h-4 w-4 ml-1"})]})]})]})]})]}),a.jsx("style",{children:`
2
2
  .tour-target {
3
3
  position: relative;
4
4
  z-index: 9999;
5
5
  }
6
- `})]})});dn.displayName="Tour";const Pc={theme:"dark",setTheme:()=>null},mn=i.createContext(Pc);function Mc({children:e,defaultTheme:t="dark",storageKey:r="baole-ui-theme",...o}){const[s,n]=i.useState(()=>localStorage.getItem(r)||t);i.useEffect(()=>{const d=window.document.documentElement;if(d.classList.remove("light","dark"),s==="system"){const m=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";d.classList.add(m);return}d.classList.add(s)},[s]);const c={theme:s,setTheme:d=>{localStorage.setItem(r,d),n(d)}};return a.jsx(mn.Provider,{...o,value:c,children:e})}const Tc=()=>{const e=i.useContext(mn);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};exports.Accordion=Ui;exports.AccordionContent=Ua;exports.AccordionItem=Xa;exports.AccordionTrigger=Ka;exports.Affix=Ys;exports.Alert=ea;exports.AlertDescription=ra;exports.AlertDialog=Wi;exports.AlertDialogAction=ja;exports.AlertDialogCancel=ka;exports.AlertDialogContent=ga;exports.AlertDialogDescription=Na;exports.AlertDialogFooter=wa;exports.AlertDialogHeader=va;exports.AlertDialogOverlay=Rt;exports.AlertDialogPortal=ha;exports.AlertDialogTitle=ya;exports.AlertDialogTrigger=Bi;exports.AlertTitle=ta;exports.Anchor=Yo;exports.AreaChart=vc;exports.AspectRatio=yc;exports.AutoComplete=Kr;exports.Avatar=os;exports.BackTop=$s;exports.Badge=gr;exports.BarChart=gc;exports.Breadcrumb=Io;exports.BreadcrumbEllipsis=Oo;exports.BreadcrumbItem=Ao;exports.BreadcrumbLink=Eo;exports.BreadcrumbList=Lo;exports.BreadcrumbPage=_o;exports.BreadcrumbSeparator=Fo;exports.Button=Y;exports.Calendar=tt;exports.Card=dr;exports.CardAction=br;exports.CardContent=xr;exports.CardDescription=fr;exports.CardFooter=pr;exports.CardHeader=mr;exports.CardTitle=ur;exports.Carousel=xs;exports.CarouselContent=ps;exports.CarouselItem=bs;exports.CarouselNext=gs;exports.CarouselPrevious=hs;exports.Cascader=Qr;exports.ChartTooltip=Ve;exports.Checkbox=Ze;exports.Chip=cn;exports.Code=en;exports.Collapsible=Sc;exports.CollapsibleContent=Rc;exports.CollapsibleTrigger=Cc;exports.ColorPicker=Yr;exports.Command=Tt;exports.CommandDialog=Xi;exports.CommandEmpty=Va;exports.CommandGroup=Ga;exports.CommandInput=Fa;exports.CommandItem=Ba;exports.CommandList=Oa;exports.CommandSeparator=Wa;exports.CommandShortcut=qa;exports.Container=_s;exports.ContextMenu=ac;exports.ContextMenuCheckboxItem=mo;exports.ContextMenuContent=io;exports.ContextMenuGroup=sc;exports.ContextMenuItem=co;exports.ContextMenuLabel=fo;exports.ContextMenuPortal=nc;exports.ContextMenuRadioGroup=ic;exports.ContextMenuRadioItem=uo;exports.ContextMenuSeparator=xo;exports.ContextMenuShortcut=po;exports.ContextMenuSub=lc;exports.ContextMenuSubContent=lo;exports.ContextMenuSubTrigger=no;exports.ContextMenuTrigger=oc;exports.DatePicker=Br;exports.DateRangePicker=qr;exports.Descriptions=Ns;exports.Dialog=ma;exports.DialogClose=Gi;exports.DialogContent=Ct;exports.DialogDescription=ba;exports.DialogFooter=xa;exports.DialogHeader=fa;exports.DialogOverlay=St;exports.DialogPortal=ua;exports.DialogTitle=pa;exports.DialogTrigger=Vi;exports.Divider=As;exports.Drawer=za;exports.DropdownMenu=Qi;exports.DropdownMenuCheckboxItem=to;exports.DropdownMenuContent=Za;exports.DropdownMenuGroup=Zi;exports.DropdownMenuItem=eo;exports.DropdownMenuLabel=ao;exports.DropdownMenuPortal=ec;exports.DropdownMenuRadioGroup=rc;exports.DropdownMenuRadioItem=ro;exports.DropdownMenuSeparator=oo;exports.DropdownMenuShortcut=so;exports.DropdownMenuSub=tc;exports.DropdownMenuSubContent=Ja;exports.DropdownMenuSubTrigger=Qa;exports.DropdownMenuTrigger=Ji;exports.EmptyState=la;exports.FloatButton=zt;exports.FloatButtonGroup=Xs;exports.Form=Ar;exports.FormActions=Fr;exports.FormItem=Er;exports.FormSection=_r;exports.Grid=Gs;exports.GridItem=Bs;exports.Heading=Qs;exports.HoverCard=Yi;exports.HoverCardContent=La;exports.HoverCardTrigger=$i;exports.Image=vs;exports.Input=Oe;exports.InputNumber=wr;exports.InputOTP=Tr;exports.InputOTPGroup=Dr;exports.InputOTPSeparator=Ir;exports.InputOTPSlot=zr;exports.Kbd=rn;exports.Label=vt;exports.Layout=Ms;exports.LayoutContent=zs;exports.LayoutFooter=Is;exports.LayoutHeader=Ts;exports.LayoutSider=Ds;exports.LineChart=hc;exports.List=ys;exports.Mentions=Ur;exports.Menubar=No;exports.MenubarCheckboxItem=Po;exports.MenubarContent=Co;exports.MenubarGroup=uc;exports.MenubarItem=Ro;exports.MenubarLabel=To;exports.MenubarMenu=mc;exports.MenubarPortal=fc;exports.MenubarRadioGroup=pc;exports.MenubarRadioItem=Mo;exports.MenubarSeparator=Do;exports.MenubarShortcut=zo;exports.MenubarSub=xc;exports.MenubarSubContent=So;exports.MenubarSubTrigger=ko;exports.MenubarTrigger=jo;exports.Message=kt;exports.MessageContainer=Oi;exports.MessageManager=da;exports.Modal=Ia;exports.NavigationMenu=bo;exports.NavigationMenuContent=wo;exports.NavigationMenuIndicator=yo;exports.NavigationMenuItem=cc;exports.NavigationMenuLink=dc;exports.NavigationMenuList=ho;exports.NavigationMenuTrigger=vo;exports.NavigationMenuViewport=Dt;exports.Notification=jt;exports.NotificationManager=Fi;exports.Pagination=Vo;exports.PaginationContent=Go;exports.PaginationEllipsis=Ho;exports.PaginationItem=Wo;exports.PaginationLink=rt;exports.PaginationNext=qo;exports.PaginationPrevious=Bo;exports.PieChart=wc;exports.Popover=ve;exports.PopoverAnchor=Ii;exports.PopoverContent=me;exports.PopoverTrigger=we;exports.Progress=aa;exports.QRCode=Ps;exports.RadioGroup=Nr;exports.RadioGroupItem=jr;exports.Rating=$r;exports.ResizableHandle=kc;exports.ResizablePanel=jc;exports.ResizablePanelGroup=Nc;exports.Result=ia;exports.ScrollArea=je;exports.ScrollBar=Nt;exports.Segmented=Ko;exports.Select=Sl;exports.SelectContent=Cr;exports.SelectGroup=Cl;exports.SelectItem=Pr;exports.SelectLabel=Rr;exports.SelectScrollDownButton=yt;exports.SelectScrollUpButton=wt;exports.SelectSeparator=Mr;exports.SelectTrigger=Sr;exports.SelectValue=Rl;exports.Separator=Ls;exports.Sheet=Sa;exports.SheetClose=Hi;exports.SheetContent=Ra;exports.SheetDescription=Da;exports.SheetFooter=Ma;exports.SheetHeader=Pa;exports.SheetOverlay=Pt;exports.SheetPortal=Ca;exports.SheetTitle=Ta;exports.SheetTrigger=qi;exports.Sidebar=Uo;exports.SidebarContent=Jo;exports.SidebarFooter=Zo;exports.SidebarGroup=es;exports.SidebarGroupContent=rs;exports.SidebarGroupLabel=ts;exports.SidebarHeader=Qo;exports.SidebarMenuItem=as;exports.Skeleton=oa;exports.Slider=kr;exports.Space=Hs;exports.Spinner=na;exports.Stack=Os;exports.Statistic=ws;exports.Stepper=ks;exports.Steps=Xo;exports.Switch=yr;exports.Table=ss;exports.TableBody=ls;exports.TableCaption=us;exports.TableCell=ms;exports.TableFooter=is;exports.TableHead=ds;exports.TableHeader=ns;exports.TableRow=cs;exports.Tabs=Ki;exports.TabsContent=$a;exports.TabsList=Ha;exports.TabsTrigger=Ya;exports.Tag=Cs;exports.Text=Zs;exports.Textarea=gt;exports.ThemeProvider=Mc;exports.TimePicker=Hr;exports.Timeline=js;exports.Toaster=_i;exports.Toggle=an;exports.ToggleGroup=sn;exports.ToggleGroupItem=nn;exports.Tooltip=Ea;exports.TooltipContent=Mt;exports.TooltipProvider=Aa;exports.TooltipTrigger=_a;exports.Tour=dn;exports.Transfer=Jr;exports.Tree=Rs;exports.TreeSelect=Zr;exports.Upload=Xr;exports.Watermark=Ks;exports.badgeVariants=hr;exports.buttonVariants=be;exports.chipVariants=ln;exports.cn=l;exports.containerVariants=Es;exports.gridItemVariants=Ws;exports.gridVariants=Vs;exports.headingVariants=Us;exports.inputVariants=vr;exports.kbdVariants=tn;exports.navigationMenuTriggerStyle=go;exports.spaceVariants=qs;exports.spinnerVariants=sa;exports.stackVariants=Fs;exports.stepsVariants=$o;exports.tagVariants=Ss;exports.textVariants=Js;exports.toggleVariants=It;exports.useTheme=Tc;
6
+ `})]})});yn.displayName="Tour";const Gc={theme:"dark",setTheme:()=>null},Nn=l.createContext(Gc);function Wc({children:e,defaultTheme:t="dark",storageKey:r="baole-ui-theme",...o}){const[s,n]=l.useState(()=>localStorage.getItem(r)||t);l.useEffect(()=>{const d=window.document.documentElement;if(d.classList.remove("light","dark"),s==="system"){const m=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";d.classList.add(m);return}d.classList.add(s)},[s]);const c={theme:s,setTheme:d=>{localStorage.setItem(r,d),n(d)}};return a.jsx(Nn.Provider,{...o,value:c,children:e})}const Bc=()=>{const e=l.useContext(Nn);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>Qt.toast});exports.Accordion=cc;exports.AccordionContent=so;exports.AccordionItem=ao;exports.AccordionTrigger=oo;exports.Affix=an;exports.Alert=ra;exports.AlertDescription=oa;exports.AlertDialog=Ji;exports.AlertDialogAction=Sa;exports.AlertDialogCancel=Ca;exports.AlertDialogContent=wa;exports.AlertDialogDescription=ka;exports.AlertDialogFooter=Na;exports.AlertDialogHeader=ya;exports.AlertDialogOverlay=Rt;exports.AlertDialogPortal=va;exports.AlertDialogTitle=ja;exports.AlertDialogTrigger=Zi;exports.AlertTitle=aa;exports.Anchor=ts;exports.AreaChart=zc;exports.AspectRatio=Lc;exports.AutoComplete=Qr;exports.Avatar=fs;exports.AvatarFallback=ps;exports.AvatarImage=xs;exports.BackTop=on;exports.Badge=wr;exports.BarChart=Dc;exports.Breadcrumb=Wo;exports.BreadcrumbEllipsis=Ko;exports.BreadcrumbItem=Ho;exports.BreadcrumbLink=qo;exports.BreadcrumbList=Bo;exports.BreadcrumbPage=Yo;exports.BreadcrumbSeparator=$o;exports.Button=K;exports.Calendar=tt;exports.Card=ur;exports.CardAction=gr;exports.CardContent=br;exports.CardDescription=pr;exports.CardFooter=hr;exports.CardHeader=fr;exports.CardTitle=xr;exports.Carousel=Ss;exports.CarouselContent=Cs;exports.CarouselItem=Rs;exports.CarouselNext=Ms;exports.CarouselPrevious=Ps;exports.Cascader=Zr;exports.ChartTooltip=Ge;exports.Checkbox=Ze;exports.Chip=wn;exports.Code=un;exports.Collapsible=_c;exports.CollapsibleContent=Vc;exports.CollapsibleTrigger=Fc;exports.ColorPicker=Kr;exports.Command=Dt;exports.CommandDialog=lc;exports.CommandEmpty=Xa;exports.CommandGroup=Ua;exports.CommandInput=$a;exports.CommandItem=Ja;exports.CommandList=Ka;exports.CommandSeparator=Qa;exports.CommandShortcut=Za;exports.Container=Ks;exports.ContextMenu=bc;exports.ContextMenuCheckboxItem=wo;exports.ContextMenuContent=go;exports.ContextMenuGroup=gc;exports.ContextMenuItem=vo;exports.ContextMenuLabel=No;exports.ContextMenuPortal=vc;exports.ContextMenuRadioGroup=yc;exports.ContextMenuRadioItem=yo;exports.ContextMenuSeparator=jo;exports.ContextMenuShortcut=ko;exports.ContextMenuSub=wc;exports.ContextMenuSubContent=ho;exports.ContextMenuSubTrigger=bo;exports.ContextMenuTrigger=hc;exports.DatePicker=qr;exports.DateRangePicker=Yr;exports.Descriptions=Is;exports.Dialog=fa;exports.DialogClose=Qi;exports.DialogContent=Ct;exports.DialogDescription=ga;exports.DialogFooter=ba;exports.DialogHeader=pa;exports.DialogOverlay=St;exports.DialogPortal=xa;exports.DialogTitle=ha;exports.DialogTrigger=Ui;exports.Divider=Ys;exports.Drawer=Aa;exports.DrawerClose=ac;exports.DrawerContent=Ea;exports.DrawerDescription=Ga;exports.DrawerFooter=Fa;exports.DrawerHeader=_a;exports.DrawerOverlay=Mt;exports.DrawerPortal=Oa;exports.DrawerTitle=Va;exports.DrawerTrigger=rc;exports.DropdownMenu=dc;exports.DropdownMenuCheckboxItem=mo;exports.DropdownMenuContent=io;exports.DropdownMenuGroup=uc;exports.DropdownMenuItem=co;exports.DropdownMenuLabel=fo;exports.DropdownMenuPortal=fc;exports.DropdownMenuRadioGroup=pc;exports.DropdownMenuRadioItem=uo;exports.DropdownMenuSeparator=xo;exports.DropdownMenuShortcut=po;exports.DropdownMenuSub=xc;exports.DropdownMenuSubContent=lo;exports.DropdownMenuSubTrigger=no;exports.DropdownMenuTrigger=mc;exports.EmptyState=ca;exports.FloatButton=It;exports.FloatButtonGroup=sn;exports.Form=Er;exports.FormActions=Vr;exports.FormItem=_r;exports.FormSection=Fr;exports.Grid=Js;exports.GridItem=en;exports.Heading=cn;exports.HoverCard=sc;exports.HoverCardContent=Ba;exports.HoverCardTrigger=nc;exports.Image=Ts;exports.Input=Ve;exports.InputNumber=Nr;exports.InputOTP=zr;exports.InputOTPGroup=Ir;exports.InputOTPSeparator=Ar;exports.InputOTPSlot=Lr;exports.Kbd=xn;exports.Label=vt;exports.Layout=Vs;exports.LayoutContent=Bs;exports.LayoutFooter=Hs;exports.LayoutHeader=Gs;exports.LayoutSider=Ws;exports.LineChart=Tc;exports.List=zs;exports.Mentions=Jr;exports.Menubar=Do;exports.MenubarCheckboxItem=Eo;exports.MenubarContent=Ao;exports.MenubarGroup=Sc;exports.MenubarItem=Oo;exports.MenubarLabel=Fo;exports.MenubarMenu=kc;exports.MenubarPortal=Cc;exports.MenubarRadioGroup=Pc;exports.MenubarRadioItem=_o;exports.MenubarSeparator=Vo;exports.MenubarShortcut=Go;exports.MenubarSub=Rc;exports.MenubarSubContent=Lo;exports.MenubarSubTrigger=Io;exports.MenubarTrigger=zo;exports.Message=kt;exports.MessageContainer=Xi;exports.MessageManager=ua;exports.Modal=Wa;exports.NavigationMenu=So;exports.NavigationMenuContent=Mo;exports.NavigationMenuIndicator=To;exports.NavigationMenuItem=Nc;exports.NavigationMenuLink=jc;exports.NavigationMenuList=Co;exports.NavigationMenuTrigger=Po;exports.NavigationMenuViewport=zt;exports.Notification=jt;exports.NotificationManager=Ki;exports.Pagination=Xo;exports.PaginationContent=Uo;exports.PaginationEllipsis=es;exports.PaginationItem=Qo;exports.PaginationLink=rt;exports.PaginationNext=Zo;exports.PaginationPrevious=Jo;exports.PieChart=Ic;exports.Popover=ve;exports.PopoverAnchor=Bi;exports.PopoverContent=me;exports.PopoverTrigger=we;exports.Progress=sa;exports.QRCode=Fs;exports.RadioGroup=kr;exports.RadioGroupItem=Sr;exports.Rating=Xr;exports.ResizableHandle=Ec;exports.ResizablePanel=Oc;exports.ResizablePanelGroup=Ac;exports.Result=da;exports.ScrollArea=je;exports.ScrollBar=Nt;exports.Segmented=os;exports.Select=Al;exports.SelectContent=Pr;exports.SelectGroup=Ol;exports.SelectItem=Tr;exports.SelectLabel=Mr;exports.SelectScrollDownButton=yt;exports.SelectScrollUpButton=wt;exports.SelectSeparator=Dr;exports.SelectTrigger=Rr;exports.SelectValue=El;exports.Separator=qs;exports.Sheet=Ra;exports.SheetClose=tc;exports.SheetContent=Ma;exports.SheetDescription=Ia;exports.SheetFooter=Da;exports.SheetHeader=Ta;exports.SheetOverlay=Pt;exports.SheetPortal=Pa;exports.SheetTitle=za;exports.SheetTrigger=ec;exports.Sidebar=ss;exports.SidebarContent=ls;exports.SidebarFooter=is;exports.SidebarGroup=cs;exports.SidebarGroupContent=ms;exports.SidebarGroupLabel=ds;exports.SidebarHeader=ns;exports.SidebarMenuItem=us;exports.Skeleton=na;exports.Slider=Cr;exports.Space=rn;exports.Spinner=ia;exports.Stack=Us;exports.Statistic=Ds;exports.Stepper=As;exports.Steps=as;exports.Switch=jr;exports.Table=bs;exports.TableBody=gs;exports.TableCaption=js;exports.TableCell=Ns;exports.TableFooter=vs;exports.TableHead=ys;exports.TableHeader=hs;exports.TableRow=ws;exports.Tabs=ic;exports.TabsContent=ro;exports.TabsList=eo;exports.TabsTrigger=to;exports.Tag=Es;exports.Text=mn;exports.Textarea=gt;exports.ThemeProvider=Wc;exports.TimePicker=$r;exports.Timeline=Ls;exports.Toaster=$i;exports.Toggle=pn;exports.ToggleGroup=hn;exports.ToggleGroupItem=gn;exports.Tooltip=qa;exports.TooltipContent=Tt;exports.TooltipProvider=Ha;exports.TooltipTrigger=Ya;exports.Tour=yn;exports.Transfer=ea;exports.Tree=_s;exports.TreeSelect=ta;exports.Upload=Ur;exports.Watermark=nn;exports.badgeVariants=vr;exports.buttonVariants=be;exports.chipVariants=vn;exports.cn=i;exports.containerVariants=$s;exports.gridItemVariants=Zs;exports.gridVariants=Qs;exports.headingVariants=ln;exports.inputVariants=yr;exports.kbdVariants=fn;exports.navigationMenuTriggerStyle=Ro;exports.spaceVariants=tn;exports.spinnerVariants=la;exports.stackVariants=Xs;exports.stepsVariants=rs;exports.tagVariants=Os;exports.textVariants=dn;exports.toggleVariants=Lt;exports.useTheme=Bc;
7
7
  //# sourceMappingURL=index.cjs.map