@agenticindiedev/ui 0.2.0 → 0.2.1
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -1
- package/dist/styles.css +171 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),se=require("react"),bs=require("react-dom");function Rs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=Rs(se),Sn=Rs(bs);function Es(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Es(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function _s(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Es(e))&&(o&&(o+=" "),o+=t);return o}const Tr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Dr=_s,Ge=(e,t)=>n=>{var o;if(t?.variants==null)return Dr(e,n?.class,n?.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(u=>{const f=n?.[u],d=s?.[u];if(f===null)return null;const m=Tr(f)||Tr(d);return r[u][m]}),a=n&&Object.entries(n).reduce((u,f)=>{let[d,m]=f;return m===void 0||(u[d]=m),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,f)=>{let{class:d,className:m,...p}=f;return Object.entries(p).every(v=>{let[h,w]=v;return Array.isArray(w)?w.includes({...s,...a}[h]):{...s,...a}[h]===w})?[...u,d,m]:u},[]);return Dr(e,i,l,n?.class,n?.className)},dd=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},fd=(e,t)=>({classGroupId:e,validator:t}),Ps=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ln="-",Or=[],pd="arbitrary..",gd=e=>{const t=hd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return md(i);const a=i.split(ln),l=a[0]===""&&a.length>1?1:0;return Ms(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=o[i],u=n[i];return l?u?dd(u,l):l:u||Or}return n[i]||Or}}},Ms=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],s=n.nextPart.get(r);if(s){const u=Ms(e,t+1,s);if(u)return u}const i=n.validators;if(i===null)return;const a=t===0?e.join(ln):e.slice(t).join(ln),l=i.length;for(let u=0;u<l;u++){const f=i[u];if(f.validator(a))return f.classGroupId}},md=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?pd+o:void 0})(),hd=e=>{const{theme:t,classGroups:n}=e;return vd(n,t)},vd=(e,t)=>{const n=Ps();for(const o in e){const r=e[o];Go(r,n,o,t)}return n},Go=(e,t,n,o)=>{const r=e.length;for(let s=0;s<r;s++){const i=e[s];wd(i,t,n,o)}},wd=(e,t,n,o)=>{if(typeof e=="string"){xd(e,t,n);return}if(typeof e=="function"){yd(e,t,n,o);return}Cd(e,t,n,o)},xd=(e,t,n)=>{const o=e===""?t:Is(t,e);o.classGroupId=n},yd=(e,t,n,o)=>{if(Sd(e)){Go(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(fd(n,e))},Cd=(e,t,n,o)=>{const r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){const[a,l]=r[i];Go(l,Is(t,a),n,o)}},Is=(e,t)=>{let n=e;const o=t.split(ln),r=o.length;for(let s=0;s<r;s++){const i=o[s];let a=n.nextPart.get(i);a||(a=Ps(),n.nextPart.set(i,a)),n=a}return n},Sd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,bd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(s,i)=>{n[s]=i,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=o[s])!==void 0)return r(s,i),i},set(s,i){s in n?n[s]=i:r(s,i)}}},yo="!",kr=":",Rd=[],$r=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),Ed=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const s=[];let i=0,a=0,l=0,u;const f=r.length;for(let h=0;h<f;h++){const w=r[h];if(i===0&&a===0){if(w===kr){s.push(r.slice(l,h)),l=h+1;continue}if(w==="/"){u=h;continue}}w==="["?i++:w==="]"?i--:w==="("?a++:w===")"&&a--}const d=s.length===0?r:r.slice(l);let m=d,p=!1;d.endsWith(yo)?(m=d.slice(0,-1),p=!0):d.startsWith(yo)&&(m=d.slice(1),p=!0);const v=u&&u>l?u-l:void 0;return $r(s,p,m,v)};if(t){const r=t+kr,s=o;o=i=>i.startsWith(r)?s(i.slice(r.length)):$r(Rd,!1,i,void 0,!0)}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},_d=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",l=t.has(i);a||l?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(i)):r.push(i)}return r.length>0&&(r.sort(),o.push(...r)),o}},Pd=e=>({cache:bd(e.cacheSize),parseClassName:Ed(e),sortModifiers:_d(e),...gd(e)}),Md=/\s+/,Id=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s}=t,i=[],a=e.trim().split(Md);let l="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:d,modifiers:m,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:h}=n(f);if(d){l=f+(l.length>0?" "+l:l);continue}let w=!!h,x=o(w?v.substring(0,h):v);if(!x){if(!w){l=f+(l.length>0?" "+l:l);continue}if(x=o(v),!x){l=f+(l.length>0?" "+l:l);continue}w=!1}const y=m.length===0?"":m.length===1?m[0]:s(m).join(":"),C=p?y+yo:y,S=C+x;if(i.indexOf(S)>-1)continue;i.push(S);const b=r(x,w);for(let I=0;I<b.length;++I){const _=b[I];i.push(C+_)}l=f+(l.length>0?" "+l:l)}return l},Ad=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=As(n))&&(r&&(r+=" "),r+=o);return r},As=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=As(e[o]))&&(n&&(n+=" "),n+=t);return n},Nd=(e,...t)=>{let n,o,r,s;const i=l=>{const u=t.reduce((f,d)=>d(f),e());return n=Pd(u),o=n.cache.get,r=n.cache.set,s=a,a(l)},a=l=>{const u=o(l);if(u)return u;const f=Id(l,n);return r(l,f),f};return s=i,(...l)=>s(Ad(...l))},Td=[],ne=e=>{const t=n=>n[e]||Td;return t.isThemeGetter=!0,t},Ns=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ts=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dd=/^\d+\/\d+$/,Od=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kd=/\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$/,$d=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nt=e=>Dd.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),$e=e=>!!e&&Number.isInteger(Number(e)),Qn=e=>e.endsWith("%")&&U(e.slice(0,-1)),Te=e=>Od.test(e),Ld=()=>!0,Vd=e=>kd.test(e)&&!$d.test(e),Ds=()=>!1,Hd=e=>Fd.test(e),Bd=e=>jd.test(e),Gd=e=>!N(e)&&!T(e),zd=e=>dt(e,$s,Ds),N=e=>Ns.test(e),Xe=e=>dt(e,Fs,Vd),Jn=e=>dt(e,Yd,U),Fr=e=>dt(e,Os,Ds),Wd=e=>dt(e,ks,Bd),Ut=e=>dt(e,js,Hd),T=e=>Ts.test(e),Ct=e=>ft(e,Fs),Ud=e=>ft(e,Xd),jr=e=>ft(e,Os),Kd=e=>ft(e,$s),qd=e=>ft(e,ks),Kt=e=>ft(e,js,!0),dt=(e,t,n)=>{const o=Ns.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},ft=(e,t,n=!1)=>{const o=Ts.exec(e);return o?o[1]?t(o[1]):n:!1},Os=e=>e==="position"||e==="percentage",ks=e=>e==="image"||e==="url",$s=e=>e==="length"||e==="size"||e==="bg-size",Fs=e=>e==="length",Yd=e=>e==="number",Xd=e=>e==="family-name",js=e=>e==="shadow",Zd=()=>{const e=ne("color"),t=ne("font"),n=ne("text"),o=ne("font-weight"),r=ne("tracking"),s=ne("leading"),i=ne("breakpoint"),a=ne("container"),l=ne("spacing"),u=ne("radius"),f=ne("shadow"),d=ne("inset-shadow"),m=ne("text-shadow"),p=ne("drop-shadow"),v=ne("blur"),h=ne("perspective"),w=ne("aspect"),x=ne("ease"),y=ne("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...S(),T,N],I=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],E=()=>[T,N,l],F=()=>[nt,"full","auto",...E()],j=()=>[$e,"none","subgrid",T,N],O=()=>["auto",{span:["full",$e,T,N]},$e,T,N],H=()=>[$e,"auto",T,N],W=()=>["auto","min","max","fr",T,N],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...E()],B=()=>[nt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],R=()=>[e,T,N],A=()=>[...S(),jr,Fr,{position:[T,N]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",Kd,zd,{size:[T,N]}],ce=()=>[Qn,Ct,Xe],Q=()=>["","none","full",u,T,N],Z=()=>["",U,Ct,Xe],de=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[U,Qn,jr,Fr],Y=()=>["","none",v,T,N],te=()=>["none",U,T,N],q=()=>["none",U,T,N],X=()=>[U,T,N],J=()=>[nt,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Te],breakpoint:[Te],color:[Ld],container:[Te],"drop-shadow":[Te],ease:["in","out","in-out"],font:[Gd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Te],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Te],shadow:[Te],spacing:["px",U],text:[Te],"text-shadow":[Te],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",nt,N,T,w]}],container:["container"],columns:[{columns:[U,N,T,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:b()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[$e,"auto",T,N]}],basis:[{basis:[nt,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,nt,"auto","initial","none",N]}],grow:[{grow:["",U,T,N]}],shrink:[{shrink:["",U,T,N]}],order:[{order:[$e,"first","last","none",T,N]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[a,"screen",...B()]}],"min-w":[{"min-w":[a,"screen","none",...B()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",n,Ct,Xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,T,Jn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qn,N]}],"font-family":[{font:[Ud,N,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:[r,T,N]}],"line-clamp":[{"line-clamp":[U,"none",T,Jn]}],leading:[{leading:[s,...E()]}],"list-image":[{"list-image":["none",T,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",T,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",T,Xe]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[U,"auto",T,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T,N]}],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",T,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$e,T,N],radial:["",T,N],conic:[$e,T,N]},qd,Wd]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],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:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,T,N]}],"outline-w":[{outline:["",U,Ct,Xe]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",f,Kt,Ut]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,Kt,Ut]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[U,Xe]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",m,Kt,Ut]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[U,T,N]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[T,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",T,N]}],filter:[{filter:["","none",T,N]}],blur:[{blur:Y()}],brightness:[{brightness:[U,T,N]}],contrast:[{contrast:[U,T,N]}],"drop-shadow":[{"drop-shadow":["","none",p,Kt,Ut]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",U,T,N]}],"hue-rotate":[{"hue-rotate":[U,T,N]}],invert:[{invert:["",U,T,N]}],saturate:[{saturate:[U,T,N]}],sepia:[{sepia:["",U,T,N]}],"backdrop-filter":[{"backdrop-filter":["","none",T,N]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[U,T,N]}],"backdrop-contrast":[{"backdrop-contrast":[U,T,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,T,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,T,N]}],"backdrop-invert":[{"backdrop-invert":["",U,T,N]}],"backdrop-opacity":[{"backdrop-opacity":[U,T,N]}],"backdrop-saturate":[{"backdrop-saturate":[U,T,N]}],"backdrop-sepia":[{"backdrop-sepia":["",U,T,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",T,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",T,N]}],ease:[{ease:["linear","initial",x,T,N]}],delay:[{delay:[U,T,N]}],animate:[{animate:["none",y,T,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,T,N]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[T,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",T,N]}],"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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",T,N]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[U,Ct,Xe,Jn]}],stroke:[{stroke:["none",...R()]}],"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"]}},Qd=Nd(Zd);function k(...e){return Qd(_s(e))}const Ls=Ge("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-600",warning:"border-transparent bg-yellow-500 text-white hover:bg-yellow-600"},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{variant:"default",size:"md"}}),Vs=c.forwardRef(({className:e,variant:t,size:n,children:o,...r},s)=>g.jsx("span",{ref:s,className:k(Ls({variant:t,size:n}),e),...r,children:o}));Vs.displayName="Badge";function Lr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ae(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Lr(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Lr(e[r],null)}}}}function G(...e){return c.useCallback(Ae(...e),e)}var Jd=Symbol.for("react.lazy"),cn=c[" use ".trim().toString()];function ef(e){return typeof e=="object"&&e!==null&&"then"in e}function Hs(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Jd&&"_payload"in e&&ef(e._payload)}function Tt(e){const t=nf(e),n=c.forwardRef((o,r)=>{let{children:s,...i}=o;Hs(s)&&typeof cn=="function"&&(s=cn(s._payload));const a=c.Children.toArray(s),l=a.find(rf);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var tf=Tt("Slot");function nf(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n;if(Hs(r)&&typeof cn=="function"&&(r=cn(r._payload)),c.isValidElement(r)){const i=af(r),a=sf(s,r.props);return r.type!==c.Fragment&&(a.ref=o?Ae(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var of=Symbol("radix.slottable");function rf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===of}function sf(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function af(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Bs=Ge("inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-primary-500 text-white hover:bg-primary-600 dark:bg-primary-600 dark:hover:bg-primary-700",secondary:"bg-gray-100 text-gray-900 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-gray-700",ghost:"text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800",outline:"border border-gray-300 text-gray-700 hover:bg-gray-50 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-800",destructive:"bg-red-500 text-white hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-700",link:"text-primary-600 underline-offset-4 hover:underline dark:text-primary-400"},size:{sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"primary",size:"md"}}),lf=()=>g.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),un=c.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,isLoading:r,leftIcon:s,rightIcon:i,children:a,disabled:l,...u},f)=>{const d=o?tf:"button";return g.jsx(d,{ref:f,className:k(Bs({variant:t,size:n}),e),disabled:r||l,...u,children:r?g.jsx(lf,{}):g.jsxs(g.Fragment,{children:[s&&g.jsx("span",{className:"shrink-0",children:s}),a,i&&g.jsx("span",{className:"shrink-0",children:i})]})})});un.displayName="Button";const Gs=Ge("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"",error:"border-destructive"},size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"default",size:"md"}}),zs=c.forwardRef(({className:e,variant:t,size:n,leftIcon:o,rightIcon:r,error:s,errorMessage:i,type:a="text",...l},u)=>{const f=!!o,d=!!r;return g.jsxs("div",{className:"relative w-full",children:[f&&g.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400 dark:text-gray-500",children:o}),g.jsx("input",{ref:u,type:a,className:k(Gs({variant:s?"error":t,size:n}),f&&"pl-10",d&&"pr-10",e),"aria-invalid":s,...l}),d&&g.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-gray-400 dark:text-gray-500",children:r}),s&&i&&g.jsx("p",{className:"mt-1 text-sm text-destructive",children:i})]})});zs.displayName="Input";const Ws=Ge("rounded-lg border bg-card text-card-foreground shadow-sm",{variants:{variant:{default:"",elevated:"shadow-md",outline:""},hover:{true:"transition-all hover:shadow-lg cursor-pointer",false:""},padding:{none:"",sm:"p-4",md:"p-6",lg:"p-8"}},defaultVariants:{variant:"default",hover:!1,padding:"none"}}),Us=c.forwardRef(({className:e,variant:t,hover:n,padding:o,...r},s)=>g.jsx("div",{ref:s,className:k(Ws({variant:t,hover:n,padding:o}),e),...r}));Us.displayName="Card";const Ks=c.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:k("flex flex-col space-y-1.5 p-6",e),...t}));Ks.displayName="CardHeader";const qs=c.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:k("p-6 pt-0",e),...t}));qs.displayName="CardContent";const Ys=c.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:k("flex items-center p-6 pt-0",e),...t}));Ys.displayName="CardFooter";function dn(e,[t,n]){return Math.min(n,Math.max(t,e))}function P(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function cf(e,t){const n=c.createContext(t),o=s=>{const{children:i,...a}=s,l=c.useMemo(()=>a,Object.values(a));return g.jsx(n.Provider,{value:l,children:i})};o.displayName=e+"Provider";function r(s){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function ue(e,t=[]){let n=[];function o(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=d=>{const{scope:m,children:p,...v}=d,h=m?.[e]?.[l]||a,w=c.useMemo(()=>v,Object.values(v));return g.jsx(h.Provider,{value:w,children:p})};u.displayName=s+"Provider";function f(d,m){const p=m?.[e]?.[l]||a,v=c.useContext(p);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const r=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=a?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,uf(r,...t)]}function uf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Vr(e){const t=df(e),n=c.forwardRef((o,r)=>{const{children:s,...i}=o,a=c.Children.toArray(s),l=a.find(pf);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function df(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const i=mf(r),a=gf(s,r.props);return r.type!==c.Fragment&&(a.ref=o?Ae(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ff=Symbol("radix.slottable");function pf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ff}function gf(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function mf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function bn(e){const t=e+"CollectionProvider",[n,o]=ue(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:w,children:x}=h,y=se.useRef(null),C=se.useRef(new Map).current;return g.jsx(r,{scope:w,itemMap:C,collectionRef:y,children:x})};i.displayName=t;const a=e+"CollectionSlot",l=Vr(a),u=se.forwardRef((h,w)=>{const{scope:x,children:y}=h,C=s(a,x),S=G(w,C.collectionRef);return g.jsx(l,{ref:S,children:y})});u.displayName=a;const f=e+"CollectionItemSlot",d="data-radix-collection-item",m=Vr(f),p=se.forwardRef((h,w)=>{const{scope:x,children:y,...C}=h,S=se.useRef(null),b=G(w,S),I=s(f,x);return se.useEffect(()=>(I.itemMap.set(S,{ref:S,...C}),()=>{I.itemMap.delete(S)})),g.jsx(m,{[d]:"",ref:b,children:y})});p.displayName=f;function v(h){const w=s(e+"CollectionConsumer",h);return se.useCallback(()=>{const y=w.collectionRef.current;if(!y)return[];const C=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((I,_)=>C.indexOf(I.ref.current)-C.indexOf(_.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:p},v,o]}var hf=c.createContext(void 0);function pt(e){const t=c.useContext(hf);return e||t||"ltr"}function vf(e){const t=wf(e),n=c.forwardRef((o,r)=>{const{children:s,...i}=o,a=c.Children.toArray(s),l=a.find(yf);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function wf(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const i=Sf(r),a=Cf(s,r.props);return r.type!==c.Fragment&&(a.ref=o?Ae(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xf=Symbol("radix.slottable");function yf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xf}function Cf(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Sf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=bf.reduce((e,t)=>{const n=vf(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Xs(e,t){e&&Sn.flushSync(()=>e.dispatchEvent(t))}function ye(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function Rf(e,t=globalThis?.document){const n=ye(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Ef="DismissableLayer",Co="dismissableLayer.update",_f="dismissableLayer.pointerDownOutside",Pf="dismissableLayer.focusOutside",Hr,Zs=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=c.useContext(Zs),[f,d]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,p]=c.useState({}),v=G(t,_=>d(_)),h=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(w),y=f?h.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=x,b=Af(_=>{const E=_.target,F=[...u.branches].some(j=>j.contains(E));!S||F||(r?.(_),i?.(_),_.defaultPrevented||a?.())},m),I=Nf(_=>{const E=_.target;[...u.branches].some(j=>j.contains(E))||(s?.(_),i?.(_),_.defaultPrevented||a?.())},m);return Rf(_=>{y===u.layers.size-1&&(o?.(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},m),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Hr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Br(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Hr)}},[f,m,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Br())},[f,u]),c.useEffect(()=>{const _=()=>p({});return document.addEventListener(Co,_),()=>document.removeEventListener(Co,_)},[]),g.jsx($.div,{...l,ref:v,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:P(e.onFocusCapture,I.onFocusCapture),onBlurCapture:P(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:P(e.onPointerDownCapture,b.onPointerDownCapture)})});gt.displayName=Ef;var Mf="DismissableLayerBranch",If=c.forwardRef((e,t)=>{const n=c.useContext(Zs),o=c.useRef(null),r=G(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx($.div,{...e,ref:r})});If.displayName=Mf;function Af(e,t=globalThis?.document){const n=ye(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let l=function(){Qs(_f,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Nf(e,t=globalThis?.document){const n=ye(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&Qs(Pf,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Br(){const e=new CustomEvent(Co);document.dispatchEvent(e)}function Qs(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Xs(r,s):r.dispatchEvent(s)}var eo=0;function Rn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gr()),document.body.insertAdjacentElement("beforeend",e[1]??Gr()),eo++,()=>{eo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),eo--}},[])}function Gr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var to="focusScope.autoFocusOnMount",no="focusScope.autoFocusOnUnmount",zr={bubbles:!1,cancelable:!0},Tf="FocusScope",Dt=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[a,l]=c.useState(null),u=ye(r),f=ye(s),d=c.useRef(null),m=G(t,h=>l(h)),p=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let h=function(C){if(p.paused||!a)return;const S=C.target;a.contains(S)?d.current=S:Fe(d.current,{select:!0})},w=function(C){if(p.paused||!a)return;const S=C.relatedTarget;S!==null&&(a.contains(S)||Fe(d.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const b of C)b.removedNodes.length>0&&Fe(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",w);const y=new MutationObserver(x);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),y.disconnect()}}},[o,a,p.paused]),c.useEffect(()=>{if(a){Ur.add(p);const h=document.activeElement;if(!a.contains(h)){const x=new CustomEvent(to,zr);a.addEventListener(to,u),a.dispatchEvent(x),x.defaultPrevented||(Df(jf(Js(a)),{select:!0}),document.activeElement===h&&Fe(a))}return()=>{a.removeEventListener(to,u),setTimeout(()=>{const x=new CustomEvent(no,zr);a.addEventListener(no,f),a.dispatchEvent(x),x.defaultPrevented||Fe(h??document.body,{select:!0}),a.removeEventListener(no,f),Ur.remove(p)},0)}}},[a,u,f,p]);const v=c.useCallback(h=>{if(!n&&!o||p.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(w&&x){const y=h.currentTarget,[C,S]=Of(y);C&&S?!h.shiftKey&&x===S?(h.preventDefault(),n&&Fe(C,{select:!0})):h.shiftKey&&x===C&&(h.preventDefault(),n&&Fe(S,{select:!0})):x===y&&h.preventDefault()}},[n,o,p.paused]);return g.jsx($.div,{tabIndex:-1,...i,ref:m,onKeyDown:v})});Dt.displayName=Tf;function Df(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Fe(o,{select:t}),document.activeElement!==n)return}function Of(e){const t=Js(e),n=Wr(t,e),o=Wr(t.reverse(),e);return[n,o]}function Js(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Wr(e,t){for(const n of e)if(!kf(n,{upTo:t}))return n}function kf(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $f(e){return e instanceof HTMLInputElement&&"select"in e}function Fe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$f(e)&&t&&e.select()}}var Ur=Ff();function Ff(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Kr(e,t),e.unshift(t)},remove(t){e=Kr(e,t),e[0]?.resume()}}}function Kr(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function jf(e){return e.filter(t=>t.tagName!=="A")}var oe=globalThis?.document?c.useLayoutEffect:()=>{},Lf=c[" useId ".trim().toString()]||(()=>{}),Vf=0;function fe(e){const[t,n]=c.useState(Lf());return oe(()=>{n(o=>o??String(Vf++))},[e]),e||(t?`radix-${t}`:"")}const Hf=["top","right","bottom","left"],Ve=Math.min,ge=Math.max,fn=Math.round,qt=Math.floor,Me=e=>({x:e,y:e}),Bf={left:"right",right:"left",bottom:"top",top:"bottom"},Gf={start:"end",end:"start"};function So(e,t,n){return ge(e,Ve(t,n))}function Oe(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function mt(e){return e.split("-")[1]}function zo(e){return e==="x"?"y":"x"}function Wo(e){return e==="y"?"height":"width"}const zf=new Set(["top","bottom"]);function Pe(e){return zf.has(ke(e))?"y":"x"}function Uo(e){return zo(Pe(e))}function Wf(e,t,n){n===void 0&&(n=!1);const o=mt(e),r=Uo(e),s=Wo(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=pn(i)),[i,pn(i)]}function Uf(e){const t=pn(e);return[bo(e),t,bo(t)]}function bo(e){return e.replace(/start|end/g,t=>Gf[t])}const qr=["left","right"],Yr=["right","left"],Kf=["top","bottom"],qf=["bottom","top"];function Yf(e,t,n){switch(e){case"top":case"bottom":return n?t?Yr:qr:t?qr:Yr;case"left":case"right":return t?Kf:qf;default:return[]}}function Xf(e,t,n,o){const r=mt(e);let s=Yf(ke(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(bo)))),s}function pn(e){return e.replace(/left|right|bottom|top/g,t=>Bf[t])}function Zf(e){return{top:0,right:0,bottom:0,left:0,...e}}function ei(e){return typeof e!="number"?Zf(e):{top:e,right:e,bottom:e,left:e}}function gn(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Xr(e,t,n){let{reference:o,floating:r}=e;const s=Pe(t),i=Uo(t),a=Wo(i),l=ke(t),u=s==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[a]/2-r[a]/2;let p;switch(l){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(mt(t)){case"start":p[i]-=m*(n&&u?-1:1);break;case"end":p[i]+=m*(n&&u?-1:1);break}return p}const Qf=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=Xr(u,o,l),m=o,p={},v=0;for(let h=0;h<a.length;h++){const{name:w,fn:x}=a[h],{x:y,y:C,data:S,reset:b}=await x({x:f,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});f=y??f,d=C??d,p={...p,[w]:{...p[w],...S}},b&&v<=50&&(v++,typeof b=="object"&&(b.placement&&(m=b.placement),b.rects&&(u=b.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:f,y:d}=Xr(u,m,l)),h=-1)}return{x:f,y:d,placement:m,strategy:r,middlewareData:p}};async function Pt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=Oe(t,e),v=ei(p),w=a[m?d==="floating"?"reference":"floating":d],x=gn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),y=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},b=gn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:C,strategy:l}):y);return{top:(x.top-b.top+v.top)/S.y,bottom:(b.bottom-x.bottom+v.bottom)/S.y,left:(x.left-b.left+v.left)/S.x,right:(b.right-x.right+v.right)/S.x}}const Jf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=Oe(e,t)||{};if(u==null)return{};const d=ei(f),m={x:n,y:o},p=Uo(r),v=Wo(p),h=await i.getDimensions(u),w=p==="y",x=w?"top":"left",y=w?"bottom":"right",C=w?"clientHeight":"clientWidth",S=s.reference[v]+s.reference[p]-m[p]-s.floating[v],b=m[p]-s.reference[p],I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let _=I?I[C]:0;(!_||!await(i.isElement==null?void 0:i.isElement(I)))&&(_=a.floating[C]||s.floating[v]);const E=S/2-b/2,F=_/2-h[v]/2-1,j=Ve(d[x],F),O=Ve(d[y],F),H=j,W=_-h[v]-O,z=_/2-h[v]/2+E,K=So(H,z,W),D=!l.arrow&&mt(r)!=null&&z!==K&&s.reference[v]/2-(z<H?j:O)-h[v]/2<0,B=D?z<H?z-H:z-W:0;return{[p]:m[p]+B,data:{[p]:K,centerOffset:z-K-B,...D&&{alignmentOffset:B}},reset:D}}}),ep=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...w}=Oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=ke(r),y=Pe(a),C=ke(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=m||(C||!h?[pn(a)]:Uf(a)),I=v!=="none";!m&&I&&b.push(...Xf(a,h,v,S));const _=[a,...b],E=await Pt(t,w),F=[];let j=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&F.push(E[x]),d){const z=Wf(r,i,S);F.push(E[z[0]],E[z[1]])}if(j=[...j,{placement:r,overflows:F}],!F.every(z=>z<=0)){var O,H;const z=(((O=s.flip)==null?void 0:O.index)||0)+1,K=_[z];if(K&&(!(d==="alignment"?y!==Pe(K):!1)||j.every(R=>Pe(R.placement)===y?R.overflows[0]>0:!0)))return{data:{index:z,overflows:j},reset:{placement:K}};let D=(H=j.filter(B=>B.overflows[0]<=0).sort((B,R)=>B.overflows[1]-R.overflows[1])[0])==null?void 0:H.placement;if(!D)switch(p){case"bestFit":{var W;const B=(W=j.filter(R=>{if(I){const A=Pe(R.placement);return A===y||A==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(A=>A>0).reduce((A,ee)=>A+ee,0)]).sort((R,A)=>R[1]-A[1])[0])==null?void 0:W[0];B&&(D=B);break}case"initialPlacement":D=a;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function Zr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qr(e){return Hf.some(t=>e[t]>=0)}const tp=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Oe(e,t);switch(o){case"referenceHidden":{const s=await Pt(t,{...r,elementContext:"reference"}),i=Zr(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Qr(i)}}}case"escaped":{const s=await Pt(t,{...r,altBoundary:!0}),i=Zr(s,n.floating);return{data:{escapedOffsets:i,escaped:Qr(i)}}}default:return{}}}}},ti=new Set(["left","top"]);async function np(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=ke(n),a=mt(n),l=Pe(n)==="y",u=ti.has(i)?-1:1,f=s&&l?-1:1,d=Oe(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(p=a==="end"?v*-1:v),l?{x:p*f,y:m*u}:{x:m*u,y:p*f}}const op=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await np(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},rp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x,y}=w;return{x,y}}},...l}=Oe(e,t),u={x:n,y:o},f=await Pt(t,l),d=Pe(ke(r)),m=zo(d);let p=u[m],v=u[d];if(s){const w=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=p+f[w],C=p-f[x];p=So(y,p,C)}if(i){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",y=v+f[w],C=v-f[x];v=So(y,v,C)}const h=a.fn({...t,[m]:p,[d]:v});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:s,[d]:i}}}}}},sp=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Oe(e,t),f={x:n,y:o},d=Pe(r),m=zo(d);let p=f[m],v=f[d];const h=Oe(a,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const C=m==="y"?"height":"width",S=s.reference[m]-s.floating[C]+w.mainAxis,b=s.reference[m]+s.reference[C]-w.mainAxis;p<S?p=S:p>b&&(p=b)}if(u){var x,y;const C=m==="y"?"width":"height",S=ti.has(ke(r)),b=s.reference[d]-s.floating[C]+(S&&((x=i.offset)==null?void 0:x[d])||0)+(S?0:w.crossAxis),I=s.reference[d]+s.reference[C]+(S?0:((y=i.offset)==null?void 0:y[d])||0)-(S?w.crossAxis:0);v<b?v=b:v>I&&(v=I)}return{[m]:p,[d]:v}}}},ip=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=Oe(e,t),f=await Pt(t,u),d=ke(r),m=mt(r),p=Pe(r)==="y",{width:v,height:h}=s.floating;let w,x;d==="top"||d==="bottom"?(w=d,x=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,w=m==="end"?"top":"bottom");const y=h-f.top-f.bottom,C=v-f.left-f.right,S=Ve(h-f[w],y),b=Ve(v-f[x],C),I=!t.middlewareData.shift;let _=S,E=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=y),I&&!m){const j=ge(f.left,0),O=ge(f.right,0),H=ge(f.top,0),W=ge(f.bottom,0);p?E=v-2*(j!==0||O!==0?j+O:ge(f.left,f.right)):_=h-2*(H!==0||W!==0?H+W:ge(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:_});const F=await i.getDimensions(a.floating);return v!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function En(){return typeof window<"u"}function ht(e){return ni(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(ni(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ni(e){return En()?e instanceof Node||e instanceof me(e).Node:!1}function be(e){return En()?e instanceof Element||e instanceof me(e).Element:!1}function Ie(e){return En()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function Jr(e){return!En()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}const ap=new Set(["inline","contents"]);function Ot(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!ap.has(r)}const lp=new Set(["table","td","th"]);function cp(e){return lp.has(ht(e))}const up=[":popover-open",":modal"];function _n(e){return up.some(t=>{try{return e.matches(t)}catch{return!1}})}const dp=["transform","translate","scale","rotate","perspective"],fp=["transform","translate","scale","rotate","perspective","filter"],pp=["paint","layout","strict","content"];function Ko(e){const t=qo(),n=be(e)?Re(e):e;return dp.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||fp.some(o=>(n.willChange||"").includes(o))||pp.some(o=>(n.contain||"").includes(o))}function gp(e){let t=He(e);for(;Ie(t)&&!lt(t);){if(Ko(t))return t;if(_n(t))return null;t=He(t)}return null}function qo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mp=new Set(["html","body","#document"]);function lt(e){return mp.has(ht(e))}function Re(e){return me(e).getComputedStyle(e)}function Pn(e){return be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function He(e){if(ht(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jr(e)&&e.host||Ne(e);return Jr(t)?t.host:t}function oi(e){const t=He(e);return lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ie(t)&&Ot(t)?t:oi(t)}function Mt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=oi(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=me(r);if(s){const a=Ro(i);return t.concat(i,i.visualViewport||[],Ot(r)?r:[],a&&n?Mt(a):[])}return t.concat(r,Mt(r,[],n))}function Ro(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ri(e){const t=Re(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ie(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=fn(n)!==s||fn(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function Yo(e){return be(e)?e:e.contextElement}function it(e){const t=Yo(e);if(!Ie(t))return Me(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=ri(t);let i=(s?fn(n.width):n.width)/o,a=(s?fn(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const hp=Me(0);function si(e){const t=me(e);return!qo()||!t.visualViewport?hp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==me(e)?!1:t}function Ze(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Yo(e);let i=Me(1);t&&(o?be(o)&&(i=it(o)):i=it(e));const a=vp(s,n,o)?si(s):Me(0);let l=(r.left+a.x)/i.x,u=(r.top+a.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(s){const m=me(s),p=o&&be(o)?me(o):o;let v=m,h=Ro(v);for(;h&&o&&p!==v;){const w=it(h),x=h.getBoundingClientRect(),y=Re(h),C=x.left+(h.clientLeft+parseFloat(y.paddingLeft))*w.x,S=x.top+(h.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,u*=w.y,f*=w.x,d*=w.y,l+=C,u+=S,v=me(h),h=Ro(v)}}return gn({width:f,height:d,x:l,y:u})}function Mn(e,t){const n=Pn(e).scrollLeft;return t?t.left+n:Ze(Ne(e)).left+n}function ii(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Mn(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function wp(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=Ne(o),a=t?_n(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Me(1);const f=Me(0),d=Ie(o);if((d||!d&&!s)&&((ht(o)!=="body"||Ot(i))&&(l=Pn(o)),Ie(o))){const p=Ze(o);u=it(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const m=i&&!d&&!s?ii(i,l):Me(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-l.scrollTop*u.y+f.y+m.y}}function xp(e){return Array.from(e.getClientRects())}function yp(e){const t=Ne(e),n=Pn(e),o=e.ownerDocument.body,r=ge(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ge(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Mn(e);const a=-n.scrollTop;return Re(o).direction==="rtl"&&(i+=ge(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:a}}const es=25;function Cp(e,t){const n=me(e),o=Ne(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const f=qo();(!f||f&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const u=Mn(o);if(u<=0){const f=o.ownerDocument,d=f.body,m=getComputedStyle(d),p=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(o.clientWidth-d.clientWidth-p);v<=es&&(s-=v)}else u<=es&&(s+=u);return{width:s,height:i,x:a,y:l}}const Sp=new Set(["absolute","fixed"]);function bp(e,t){const n=Ze(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Ie(e)?it(e):Me(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:a,x:l,y:u}}function ts(e,t,n){let o;if(t==="viewport")o=Cp(e,n);else if(t==="document")o=yp(Ne(e));else if(be(t))o=bp(t,n);else{const r=si(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return gn(o)}function ai(e,t){const n=He(e);return n===t||!be(n)||lt(n)?!1:Re(n).position==="fixed"||ai(n,t)}function Rp(e,t){const n=t.get(e);if(n)return n;let o=Mt(e,[],!1).filter(a=>be(a)&&ht(a)!=="body"),r=null;const s=Re(e).position==="fixed";let i=s?He(e):e;for(;be(i)&&!lt(i);){const a=Re(i),l=Ko(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&Sp.has(r.position)||Ot(i)&&!l&&ai(e,i))?o=o.filter(f=>f!==i):r=a,i=He(i)}return t.set(e,o),o}function Ep(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?_n(t)?[]:Rp(t,this._c):[].concat(n),o],a=i[0],l=i.reduce((u,f)=>{const d=ts(t,f,r);return u.top=ge(d.top,u.top),u.right=Ve(d.right,u.right),u.bottom=Ve(d.bottom,u.bottom),u.left=ge(d.left,u.left),u},ts(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _p(e){const{width:t,height:n}=ri(e);return{width:t,height:n}}function Pp(e,t,n){const o=Ie(t),r=Ne(t),s=n==="fixed",i=Ze(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Me(0);function u(){l.x=Mn(r)}if(o||!o&&!s)if((ht(t)!=="body"||Ot(r))&&(a=Pn(t)),o){const p=Ze(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else r&&u();s&&!o&&r&&u();const f=r&&!o&&!s?ii(r,a):Me(0),d=i.left+a.scrollLeft-l.x-f.x,m=i.top+a.scrollTop-l.y-f.y;return{x:d,y:m,width:i.width,height:i.height}}function oo(e){return Re(e).position==="static"}function ns(e,t){if(!Ie(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ne(e)===n&&(n=n.ownerDocument.body),n}function li(e,t){const n=me(e);if(_n(e))return n;if(!Ie(e)){let r=He(e);for(;r&&!lt(r);){if(be(r)&&!oo(r))return r;r=He(r)}return n}let o=ns(e,t);for(;o&&cp(o)&&oo(o);)o=ns(o,t);return o&<(o)&&oo(o)&&!Ko(o)?n:o||gp(e)||n}const Mp=async function(e){const t=this.getOffsetParent||li,n=this.getDimensions,o=await n(e.floating);return{reference:Pp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ip(e){return Re(e).direction==="rtl"}const Ap={convertOffsetParentRelativeRectToViewportRelativeRect:wp,getDocumentElement:Ne,getClippingRect:Ep,getOffsetParent:li,getElementRects:Mp,getClientRects:xp,getDimensions:_p,getScale:it,isElement:be,isRTL:Ip};function ci(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Np(e,t){let n=null,o;const r=Ne(e);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:f,top:d,width:m,height:p}=u;if(a||t(),!m||!p)return;const v=qt(d),h=qt(r.clientWidth-(f+m)),w=qt(r.clientHeight-(d+p)),x=qt(f),C={rootMargin:-v+"px "+-h+"px "+-w+"px "+-x+"px",threshold:ge(0,Ve(1,l))||1};let S=!0;function b(I){const _=I[0].intersectionRatio;if(_!==l){if(!S)return i();_?i(!1,_):o=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!ci(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(b,{...C,root:r.ownerDocument})}catch{n=new IntersectionObserver(b,C)}n.observe(e)}return i(!0),s}function Tp(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Yo(e),f=r||s?[...u?Mt(u):[],...Mt(t)]:[];f.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const d=u&&a?Np(u,n):null;let m=-1,p=null;i&&(p=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let v,h=l?Ze(e):null;l&&w();function w(){const x=Ze(e);h&&!ci(h,x)&&n(),h=x,v=requestAnimationFrame(w)}return n(),()=>{var x;f.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d?.(),(x=p)==null||x.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const Dp=op,Op=rp,kp=ep,$p=ip,Fp=tp,os=Jf,jp=sp,Lp=(e,t,n)=>{const o=new Map,r={platform:Ap,...n},s={...r.platform,_c:o};return Qf(e,t,{...r,platform:s})};var Vp=typeof document<"u",Hp=function(){},rn=Vp?se.useLayoutEffect:Hp;function mn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!mn(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!mn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ui(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rs(e,t){const n=ui(e);return Math.round(t*n)/n}function ro(e){const t=c.useRef(e);return rn(()=>{t.current=e}),t}function Bp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=c.useState(o);mn(m,o)||p(o);const[v,h]=c.useState(null),[w,x]=c.useState(null),y=c.useCallback(R=>{R!==I.current&&(I.current=R,h(R))},[]),C=c.useCallback(R=>{R!==_.current&&(_.current=R,x(R))},[]),S=s||v,b=i||w,I=c.useRef(null),_=c.useRef(null),E=c.useRef(f),F=l!=null,j=ro(l),O=ro(r),H=ro(u),W=c.useCallback(()=>{if(!I.current||!_.current)return;const R={placement:t,strategy:n,middleware:m};O.current&&(R.platform=O.current),Lp(I.current,_.current,R).then(A=>{const ee={...A,isPositioned:H.current!==!1};z.current&&!mn(E.current,ee)&&(E.current=ee,Sn.flushSync(()=>{d(ee)}))})},[m,t,n,O,H]);rn(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[u]);const z=c.useRef(!1);rn(()=>(z.current=!0,()=>{z.current=!1}),[]),rn(()=>{if(S&&(I.current=S),b&&(_.current=b),S&&b){if(j.current)return j.current(S,b,W);W()}},[S,b,W,j,F]);const K=c.useMemo(()=>({reference:I,floating:_,setReference:y,setFloating:C}),[y,C]),D=c.useMemo(()=>({reference:S,floating:b}),[S,b]),B=c.useMemo(()=>{const R={position:n,left:0,top:0};if(!D.floating)return R;const A=rs(D.floating,f.x),ee=rs(D.floating,f.y);return a?{...R,transform:"translate("+A+"px, "+ee+"px)",...ui(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:ee}},[n,a,D.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:W,refs:K,elements:D,floatingStyles:B}),[f,W,K,D,B])}const Gp=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?os({element:o.current,padding:r}).fn(n):{}:o?os({element:o,padding:r}).fn(n):{}}}},zp=(e,t)=>({...Dp(e),options:[e,t]}),Wp=(e,t)=>({...Op(e),options:[e,t]}),Up=(e,t)=>({...jp(e),options:[e,t]}),Kp=(e,t)=>({...kp(e),options:[e,t]}),qp=(e,t)=>({...$p(e),options:[e,t]}),Yp=(e,t)=>({...Fp(e),options:[e,t]}),Xp=(e,t)=>({...Gp(e),options:[e,t]});var Zp="Arrow",di=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return g.jsx($.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});di.displayName=Zp;var Qp=di;function kt(e){const[t,n]=c.useState(void 0);return oe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Xo="Popper",[fi,ze]=ue(Xo),[Jp,pi]=fi(Xo),gi=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return g.jsx(Jp,{scope:t,anchor:o,onAnchorChange:r,children:n})};gi.displayName=Xo;var mi="PopperAnchor",hi=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=pi(mi,n),i=c.useRef(null),a=G(t,i),l=c.useRef(null);return c.useEffect(()=>{const u=l.current;l.current=o?.current||i.current,u!==l.current&&s.onAnchorChange(l.current)}),o?null:g.jsx($.div,{...r,ref:a})});hi.displayName=mi;var Zo="PopperContent",[eg,tg]=fi(Zo),vi=c.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:v,...h}=e,w=pi(Zo,n),[x,y]=c.useState(null),C=G(t,M=>y(M)),[S,b]=c.useState(null),I=kt(S),_=I?.width??0,E=I?.height??0,F=o+(s!=="center"?"-"+s:""),j=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},O=Array.isArray(u)?u:[u],H=O.length>0,W={padding:j,boundary:O.filter(og),altBoundary:H},{refs:z,floatingStyles:K,placement:D,isPositioned:B,middlewareData:R}=Bp({strategy:"fixed",placement:F,whileElementsMounted:(...M)=>Tp(...M,{animationFrame:p==="always"}),elements:{reference:w.anchor},middleware:[zp({mainAxis:r+E,alignmentAxis:i}),l&&Wp({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Up():void 0,...W}),l&&Kp({...W}),qp({...W,apply:({elements:M,rects:Y,availableWidth:te,availableHeight:q})=>{const{width:X,height:J}=Y.reference,we=M.floating.style;we.setProperty("--radix-popper-available-width",`${te}px`),we.setProperty("--radix-popper-available-height",`${q}px`),we.setProperty("--radix-popper-anchor-width",`${X}px`),we.setProperty("--radix-popper-anchor-height",`${J}px`)}}),S&&Xp({element:S,padding:a}),rg({arrowWidth:_,arrowHeight:E}),m&&Yp({strategy:"referenceHidden",...W})]}),[A,ee]=yi(D),re=ye(v);oe(()=>{B&&re?.()},[B,re]);const ce=R.arrow?.x,Q=R.arrow?.y,Z=R.arrow?.centerOffset!==0,[de,ie]=c.useState();return oe(()=>{x&&ie(window.getComputedStyle(x).zIndex)},[x]),g.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:B?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(eg,{scope:n,placedSide:A,onArrowChange:b,arrowX:ce,arrowY:Q,shouldHideArrow:Z,children:g.jsx($.div,{"data-side":A,"data-align":ee,...h,ref:C,style:{...h.style,animation:B?void 0:"none"}})})})});vi.displayName=Zo;var wi="PopperArrow",ng={top:"bottom",right:"left",bottom:"top",left:"right"},xi=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=tg(wi,o),i=ng[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(Qp,{...r,ref:n,style:{...r.style,display:"block"}})})});xi.displayName=wi;function og(e){return e!==null}var rg=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,f]=yi(n),d={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+a/2,p=(r.arrow?.y??0)+l/2;let v="",h="";return u==="bottom"?(v=i?d:`${m}px`,h=`${-l}px`):u==="top"?(v=i?d:`${m}px`,h=`${o.floating.height+l}px`):u==="right"?(v=`${-l}px`,h=i?d:`${p}px`):u==="left"&&(v=`${o.floating.width+l}px`,h=i?d:`${p}px`),{data:{x:v,y:h}}}});function yi(e){const[t,n="center"]=e.split("-");return[t,n]}var $t=gi,Ft=hi,In=vi,An=xi,sg="Portal",jt=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=c.useState(!1);oe(()=>s(!0),[]);const i=n||r&&globalThis?.document?.body;return i?bs.createPortal(g.jsx($.div,{...o,ref:t}),i):null});jt.displayName=sg;function ig(e){const t=ag(e),n=c.forwardRef((o,r)=>{const{children:s,...i}=o,a=c.Children.toArray(s),l=a.find(cg);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function ag(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const i=dg(r),a=ug(s,r.props);return r.type!==c.Fragment&&(a.ref=o?Ae(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lg=Symbol("radix.slottable");function cg(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lg}function ug(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function dg(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fg=c[" useInsertionEffect ".trim().toString()]||oe;function he({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,i]=pg({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,o])}const u=c.useCallback(f=>{if(a){const d=gg(f)?f(e):f;d!==e&&i.current?.(d)}else s(f)},[a,e,s,i]);return[l,u]}function pg({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return fg(()=>{s.current=t},[t]),c.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function gg(e){return typeof e=="function"}function Lt(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ci=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),mg="VisuallyHidden",Si=c.forwardRef((e,t)=>g.jsx($.span,{...e,ref:t,style:{...Ci,...e.style}}));Si.displayName=mg;var hg=Si,vg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ot=new WeakMap,Yt=new WeakMap,Xt={},so=0,bi=function(e){return e&&(e.host||bi(e.parentNode))},wg=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=bi(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},xg=function(e,t,n,o){var r=wg(t,Array.isArray(e)?e:[e]);Xt[n]||(Xt[n]=new WeakMap);var s=Xt[n],i=[],a=new Set,l=new Set(r),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};r.forEach(u);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(m){if(a.has(m))f(m);else try{var p=m.getAttribute(o),v=p!==null&&p!=="false",h=(ot.get(m)||0)+1,w=(s.get(m)||0)+1;ot.set(m,h),s.set(m,w),i.push(m),h===1&&v&&Yt.set(m,!0),w===1&&m.setAttribute(n,"true"),v||m.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return f(t),a.clear(),so++,function(){i.forEach(function(d){var m=ot.get(d)-1,p=s.get(d)-1;ot.set(d,m),s.set(d,p),m||(Yt.has(d)||d.removeAttribute(o),Yt.delete(d)),p||d.removeAttribute(n)}),so--,so||(ot=new WeakMap,ot=new WeakMap,Yt=new WeakMap,Xt={})}},Nn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=vg(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),xg(o,r,n,"aria-hidden")):function(){return null}},_e=function(){return _e=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},_e.apply(this,arguments)};function Ri(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function yg(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var sn="right-scroll-bar-position",an="width-before-scroll-bar",Cg="with-scroll-bars-hidden",Sg="--removed-body-scroll-bar-size";function io(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bg(e,t){var n=se.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Rg=typeof window<"u"?c.useLayoutEffect:c.useEffect,ss=new WeakMap;function Eg(e,t){var n=bg(null,function(o){return e.forEach(function(r){return io(r,o)})});return Rg(function(){var o=ss.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||io(a,null)}),s.forEach(function(a){r.has(a)||io(a,i)})}ss.set(n,e)},[e]),n}function _g(e){return e}function Pg(e,t){t===void 0&&(t=_g);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return r}function Mg(e){e===void 0&&(e={});var t=Pg(null);return t.options=_e({async:!0,ssr:!1},e),t}var Ei=function(e){var t=e.sideCar,n=Ri(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,_e({},n))};Ei.isSideCarExport=!0;function Ig(e,t){return e.useMedium(t),Ei}var _i=Mg(),ao=function(){},Tn=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:ao,onWheelCapture:ao,onTouchMoveCapture:ao}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,p=e.noRelative,v=e.noIsolation,h=e.inert,w=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,C=e.gapMode,S=Ri(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=m,I=Eg([n,t]),_=_e(_e({},S),r);return c.createElement(c.Fragment,null,f&&c.createElement(b,{sideCar:_i,removeScrollBar:u,shards:d,noRelative:p,noIsolation:v,inert:h,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:C}),i?c.cloneElement(c.Children.only(a),_e(_e({},_),{ref:I})):c.createElement(y,_e({},_,{className:l,ref:I}),a))});Tn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Tn.classNames={fullWidth:an,zeroRight:sn};var Ag=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ng(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ag();return t&&e.setAttribute("nonce",t),e}function Tg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Og=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ng())&&(Tg(t,n),Dg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kg=function(){var e=Og();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Pi=function(){var e=kg(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},$g={left:0,top:0,right:0,gap:0},lo=function(e){return parseInt(e||"",10)||0},Fg=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[lo(n),lo(o),lo(r)]},jg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $g;var t=Fg(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Lg=Pi(),at="data-scroll-locked",Vg=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),se=require("react"),bs=require("react-dom");function Rs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=Rs(se),Sn=Rs(bs);function Es(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Es(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function _s(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Es(e))&&(o&&(o+=" "),o+=t);return o}const Tr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Dr=_s,Ge=(e,t)=>n=>{var o;if(t?.variants==null)return Dr(e,n?.class,n?.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(u=>{const f=n?.[u],d=s?.[u];if(f===null)return null;const m=Tr(f)||Tr(d);return r[u][m]}),a=n&&Object.entries(n).reduce((u,f)=>{let[d,m]=f;return m===void 0||(u[d]=m),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,f)=>{let{class:d,className:m,...p}=f;return Object.entries(p).every(v=>{let[h,w]=v;return Array.isArray(w)?w.includes({...s,...a}[h]):{...s,...a}[h]===w})?[...u,d,m]:u},[]);return Dr(e,i,l,n?.class,n?.className)},dd=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},fd=(e,t)=>({classGroupId:e,validator:t}),Ps=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ln="-",Or=[],pd="arbitrary..",gd=e=>{const t=hd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return md(i);const a=i.split(ln),l=a[0]===""&&a.length>1?1:0;return Ms(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=o[i],u=n[i];return l?u?dd(u,l):l:u||Or}return n[i]||Or}}},Ms=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],s=n.nextPart.get(r);if(s){const u=Ms(e,t+1,s);if(u)return u}const i=n.validators;if(i===null)return;const a=t===0?e.join(ln):e.slice(t).join(ln),l=i.length;for(let u=0;u<l;u++){const f=i[u];if(f.validator(a))return f.classGroupId}},md=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?pd+o:void 0})(),hd=e=>{const{theme:t,classGroups:n}=e;return vd(n,t)},vd=(e,t)=>{const n=Ps();for(const o in e){const r=e[o];Go(r,n,o,t)}return n},Go=(e,t,n,o)=>{const r=e.length;for(let s=0;s<r;s++){const i=e[s];wd(i,t,n,o)}},wd=(e,t,n,o)=>{if(typeof e=="string"){xd(e,t,n);return}if(typeof e=="function"){yd(e,t,n,o);return}Cd(e,t,n,o)},xd=(e,t,n)=>{const o=e===""?t:Is(t,e);o.classGroupId=n},yd=(e,t,n,o)=>{if(Sd(e)){Go(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(fd(n,e))},Cd=(e,t,n,o)=>{const r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){const[a,l]=r[i];Go(l,Is(t,a),n,o)}},Is=(e,t)=>{let n=e;const o=t.split(ln),r=o.length;for(let s=0;s<r;s++){const i=o[s];let a=n.nextPart.get(i);a||(a=Ps(),n.nextPart.set(i,a)),n=a}return n},Sd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,bd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(s,i)=>{n[s]=i,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=o[s])!==void 0)return r(s,i),i},set(s,i){s in n?n[s]=i:r(s,i)}}},yo="!",kr=":",Rd=[],$r=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),Ed=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const s=[];let i=0,a=0,l=0,u;const f=r.length;for(let h=0;h<f;h++){const w=r[h];if(i===0&&a===0){if(w===kr){s.push(r.slice(l,h)),l=h+1;continue}if(w==="/"){u=h;continue}}w==="["?i++:w==="]"?i--:w==="("?a++:w===")"&&a--}const d=s.length===0?r:r.slice(l);let m=d,p=!1;d.endsWith(yo)?(m=d.slice(0,-1),p=!0):d.startsWith(yo)&&(m=d.slice(1),p=!0);const v=u&&u>l?u-l:void 0;return $r(s,p,m,v)};if(t){const r=t+kr,s=o;o=i=>i.startsWith(r)?s(i.slice(r.length)):$r(Rd,!1,i,void 0,!0)}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},_d=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",l=t.has(i);a||l?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(i)):r.push(i)}return r.length>0&&(r.sort(),o.push(...r)),o}},Pd=e=>({cache:bd(e.cacheSize),parseClassName:Ed(e),sortModifiers:_d(e),...gd(e)}),Md=/\s+/,Id=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s}=t,i=[],a=e.trim().split(Md);let l="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:d,modifiers:m,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:h}=n(f);if(d){l=f+(l.length>0?" "+l:l);continue}let w=!!h,x=o(w?v.substring(0,h):v);if(!x){if(!w){l=f+(l.length>0?" "+l:l);continue}if(x=o(v),!x){l=f+(l.length>0?" "+l:l);continue}w=!1}const y=m.length===0?"":m.length===1?m[0]:s(m).join(":"),C=p?y+yo:y,S=C+x;if(i.indexOf(S)>-1)continue;i.push(S);const b=r(x,w);for(let I=0;I<b.length;++I){const _=b[I];i.push(C+_)}l=f+(l.length>0?" "+l:l)}return l},Ad=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=As(n))&&(r&&(r+=" "),r+=o);return r},As=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=As(e[o]))&&(n&&(n+=" "),n+=t);return n},Nd=(e,...t)=>{let n,o,r,s;const i=l=>{const u=t.reduce((f,d)=>d(f),e());return n=Pd(u),o=n.cache.get,r=n.cache.set,s=a,a(l)},a=l=>{const u=o(l);if(u)return u;const f=Id(l,n);return r(l,f),f};return s=i,(...l)=>s(Ad(...l))},Td=[],ne=e=>{const t=n=>n[e]||Td;return t.isThemeGetter=!0,t},Ns=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ts=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dd=/^\d+\/\d+$/,Od=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kd=/\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$/,$d=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nt=e=>Dd.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),$e=e=>!!e&&Number.isInteger(Number(e)),Qn=e=>e.endsWith("%")&&U(e.slice(0,-1)),Te=e=>Od.test(e),Ld=()=>!0,Vd=e=>kd.test(e)&&!$d.test(e),Ds=()=>!1,Hd=e=>Fd.test(e),Bd=e=>jd.test(e),Gd=e=>!N(e)&&!T(e),zd=e=>dt(e,$s,Ds),N=e=>Ns.test(e),Xe=e=>dt(e,Fs,Vd),Jn=e=>dt(e,Yd,U),Fr=e=>dt(e,Os,Ds),Wd=e=>dt(e,ks,Bd),Ut=e=>dt(e,js,Hd),T=e=>Ts.test(e),Ct=e=>ft(e,Fs),Ud=e=>ft(e,Xd),jr=e=>ft(e,Os),Kd=e=>ft(e,$s),qd=e=>ft(e,ks),Kt=e=>ft(e,js,!0),dt=(e,t,n)=>{const o=Ns.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},ft=(e,t,n=!1)=>{const o=Ts.exec(e);return o?o[1]?t(o[1]):n:!1},Os=e=>e==="position"||e==="percentage",ks=e=>e==="image"||e==="url",$s=e=>e==="length"||e==="size"||e==="bg-size",Fs=e=>e==="length",Yd=e=>e==="number",Xd=e=>e==="family-name",js=e=>e==="shadow",Zd=()=>{const e=ne("color"),t=ne("font"),n=ne("text"),o=ne("font-weight"),r=ne("tracking"),s=ne("leading"),i=ne("breakpoint"),a=ne("container"),l=ne("spacing"),u=ne("radius"),f=ne("shadow"),d=ne("inset-shadow"),m=ne("text-shadow"),p=ne("drop-shadow"),v=ne("blur"),h=ne("perspective"),w=ne("aspect"),x=ne("ease"),y=ne("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...S(),T,N],I=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],E=()=>[T,N,l],F=()=>[nt,"full","auto",...E()],j=()=>[$e,"none","subgrid",T,N],O=()=>["auto",{span:["full",$e,T,N]},$e,T,N],H=()=>[$e,"auto",T,N],W=()=>["auto","min","max","fr",T,N],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...E()],B=()=>[nt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],R=()=>[e,T,N],A=()=>[...S(),jr,Fr,{position:[T,N]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",Kd,zd,{size:[T,N]}],ce=()=>[Qn,Ct,Xe],Q=()=>["","none","full",u,T,N],Z=()=>["",U,Ct,Xe],de=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[U,Qn,jr,Fr],Y=()=>["","none",v,T,N],te=()=>["none",U,T,N],q=()=>["none",U,T,N],X=()=>[U,T,N],J=()=>[nt,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Te],breakpoint:[Te],color:[Ld],container:[Te],"drop-shadow":[Te],ease:["in","out","in-out"],font:[Gd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Te],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Te],shadow:[Te],spacing:["px",U],text:[Te],"text-shadow":[Te],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",nt,N,T,w]}],container:["container"],columns:[{columns:[U,N,T,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:b()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[$e,"auto",T,N]}],basis:[{basis:[nt,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,nt,"auto","initial","none",N]}],grow:[{grow:["",U,T,N]}],shrink:[{shrink:["",U,T,N]}],order:[{order:[$e,"first","last","none",T,N]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[a,"screen",...B()]}],"min-w":[{"min-w":[a,"screen","none",...B()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",n,Ct,Xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,T,Jn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qn,N]}],"font-family":[{font:[Ud,N,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:[r,T,N]}],"line-clamp":[{"line-clamp":[U,"none",T,Jn]}],leading:[{leading:[s,...E()]}],"list-image":[{"list-image":["none",T,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",T,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",T,Xe]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[U,"auto",T,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T,N]}],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",T,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$e,T,N],radial:["",T,N],conic:[$e,T,N]},qd,Wd]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],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:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,T,N]}],"outline-w":[{outline:["",U,Ct,Xe]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",f,Kt,Ut]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,Kt,Ut]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[U,Xe]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",m,Kt,Ut]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[U,T,N]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[T,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",T,N]}],filter:[{filter:["","none",T,N]}],blur:[{blur:Y()}],brightness:[{brightness:[U,T,N]}],contrast:[{contrast:[U,T,N]}],"drop-shadow":[{"drop-shadow":["","none",p,Kt,Ut]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",U,T,N]}],"hue-rotate":[{"hue-rotate":[U,T,N]}],invert:[{invert:["",U,T,N]}],saturate:[{saturate:[U,T,N]}],sepia:[{sepia:["",U,T,N]}],"backdrop-filter":[{"backdrop-filter":["","none",T,N]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[U,T,N]}],"backdrop-contrast":[{"backdrop-contrast":[U,T,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,T,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,T,N]}],"backdrop-invert":[{"backdrop-invert":["",U,T,N]}],"backdrop-opacity":[{"backdrop-opacity":[U,T,N]}],"backdrop-saturate":[{"backdrop-saturate":[U,T,N]}],"backdrop-sepia":[{"backdrop-sepia":["",U,T,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",T,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",T,N]}],ease:[{ease:["linear","initial",x,T,N]}],delay:[{delay:[U,T,N]}],animate:[{animate:["none",y,T,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,T,N]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[T,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",T,N]}],"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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",T,N]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[U,Ct,Xe,Jn]}],stroke:[{stroke:["none",...R()]}],"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"]}},Qd=Nd(Zd);function k(...e){return Qd(_s(e))}const Ls=Ge("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-600",warning:"border-transparent bg-yellow-500 text-white hover:bg-yellow-600"},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{variant:"default",size:"md"}}),Vs=c.forwardRef(({className:e,variant:t,size:n,children:o,...r},s)=>g.jsx("span",{ref:s,className:k(Ls({variant:t,size:n}),e),...r,children:o}));Vs.displayName="Badge";function Lr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ae(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Lr(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Lr(e[r],null)}}}}function G(...e){return c.useCallback(Ae(...e),e)}var Jd=Symbol.for("react.lazy"),cn=c[" use ".trim().toString()];function ef(e){return typeof e=="object"&&e!==null&&"then"in e}function Hs(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Jd&&"_payload"in e&&ef(e._payload)}function Tt(e){const t=nf(e),n=c.forwardRef((o,r)=>{let{children:s,...i}=o;Hs(s)&&typeof cn=="function"&&(s=cn(s._payload));const a=c.Children.toArray(s),l=a.find(rf);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var tf=Tt("Slot");function nf(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n;if(Hs(r)&&typeof cn=="function"&&(r=cn(r._payload)),c.isValidElement(r)){const i=af(r),a=sf(s,r.props);return r.type!==c.Fragment&&(a.ref=o?Ae(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var of=Symbol("radix.slottable");function rf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===of}function sf(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function af(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Bs=Ge("inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-primary-500 text-white hover:bg-primary-600 dark:bg-primary-600 dark:hover:bg-primary-700",secondary:"bg-gray-100 text-gray-900 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-gray-700",ghost:"text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800",outline:"border border-gray-300 text-gray-700 hover:bg-gray-50 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-800",destructive:"bg-red-500 text-white hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-700",link:"text-primary-600 underline-offset-4 hover:underline dark:text-primary-400","soft-primary":"bg-primary-500/15 text-primary-600 hover:bg-primary-500/25 dark:bg-primary-400/15 dark:text-primary-400 dark:hover:bg-primary-400/25","soft-secondary":"bg-gray-500/15 text-gray-700 hover:bg-gray-500/25 dark:bg-gray-400/15 dark:text-gray-300 dark:hover:bg-gray-400/25","soft-success":"bg-green-500/15 text-green-600 hover:bg-green-500/25 dark:bg-green-400/15 dark:text-green-400 dark:hover:bg-green-400/25","soft-warning":"bg-yellow-500/15 text-yellow-600 hover:bg-yellow-500/25 dark:bg-yellow-400/15 dark:text-yellow-400 dark:hover:bg-yellow-400/25","soft-destructive":"bg-red-500/15 text-red-600 hover:bg-red-500/25 dark:bg-red-400/15 dark:text-red-400 dark:hover:bg-red-400/25"},size:{sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"primary",size:"md"}}),lf=()=>g.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),un=c.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,isLoading:r,leftIcon:s,rightIcon:i,children:a,disabled:l,...u},f)=>{const d=o?tf:"button";return g.jsx(d,{ref:f,className:k(Bs({variant:t,size:n}),e),disabled:r||l,...u,children:r?g.jsx(lf,{}):g.jsxs(g.Fragment,{children:[s&&g.jsx("span",{className:"shrink-0",children:s}),a,i&&g.jsx("span",{className:"shrink-0",children:i})]})})});un.displayName="Button";const Gs=Ge("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"",error:"border-destructive"},size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"default",size:"md"}}),zs=c.forwardRef(({className:e,variant:t,size:n,leftIcon:o,rightIcon:r,error:s,errorMessage:i,type:a="text",...l},u)=>{const f=!!o,d=!!r;return g.jsxs("div",{className:"relative w-full",children:[f&&g.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400 dark:text-gray-500",children:o}),g.jsx("input",{ref:u,type:a,className:k(Gs({variant:s?"error":t,size:n}),f&&"pl-10",d&&"pr-10",e),"aria-invalid":s,...l}),d&&g.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-gray-400 dark:text-gray-500",children:r}),s&&i&&g.jsx("p",{className:"mt-1 text-sm text-destructive",children:i})]})});zs.displayName="Input";const Ws=Ge("rounded-lg border bg-card text-card-foreground shadow-sm",{variants:{variant:{default:"",elevated:"shadow-md",outline:""},hover:{true:"transition-all hover:shadow-lg cursor-pointer",false:""},padding:{none:"",sm:"p-4",md:"p-6",lg:"p-8"}},defaultVariants:{variant:"default",hover:!1,padding:"none"}}),Us=c.forwardRef(({className:e,variant:t,hover:n,padding:o,...r},s)=>g.jsx("div",{ref:s,className:k(Ws({variant:t,hover:n,padding:o}),e),...r}));Us.displayName="Card";const Ks=c.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:k("flex flex-col space-y-1.5 p-6",e),...t}));Ks.displayName="CardHeader";const qs=c.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:k("p-6 pt-0",e),...t}));qs.displayName="CardContent";const Ys=c.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:k("flex items-center p-6 pt-0",e),...t}));Ys.displayName="CardFooter";function dn(e,[t,n]){return Math.min(n,Math.max(t,e))}function P(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function cf(e,t){const n=c.createContext(t),o=s=>{const{children:i,...a}=s,l=c.useMemo(()=>a,Object.values(a));return g.jsx(n.Provider,{value:l,children:i})};o.displayName=e+"Provider";function r(s){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function ue(e,t=[]){let n=[];function o(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=d=>{const{scope:m,children:p,...v}=d,h=m?.[e]?.[l]||a,w=c.useMemo(()=>v,Object.values(v));return g.jsx(h.Provider,{value:w,children:p})};u.displayName=s+"Provider";function f(d,m){const p=m?.[e]?.[l]||a,v=c.useContext(p);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const r=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=a?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,uf(r,...t)]}function uf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Vr(e){const t=df(e),n=c.forwardRef((o,r)=>{const{children:s,...i}=o,a=c.Children.toArray(s),l=a.find(pf);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function df(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const i=mf(r),a=gf(s,r.props);return r.type!==c.Fragment&&(a.ref=o?Ae(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ff=Symbol("radix.slottable");function pf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ff}function gf(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function mf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function bn(e){const t=e+"CollectionProvider",[n,o]=ue(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:w,children:x}=h,y=se.useRef(null),C=se.useRef(new Map).current;return g.jsx(r,{scope:w,itemMap:C,collectionRef:y,children:x})};i.displayName=t;const a=e+"CollectionSlot",l=Vr(a),u=se.forwardRef((h,w)=>{const{scope:x,children:y}=h,C=s(a,x),S=G(w,C.collectionRef);return g.jsx(l,{ref:S,children:y})});u.displayName=a;const f=e+"CollectionItemSlot",d="data-radix-collection-item",m=Vr(f),p=se.forwardRef((h,w)=>{const{scope:x,children:y,...C}=h,S=se.useRef(null),b=G(w,S),I=s(f,x);return se.useEffect(()=>(I.itemMap.set(S,{ref:S,...C}),()=>{I.itemMap.delete(S)})),g.jsx(m,{[d]:"",ref:b,children:y})});p.displayName=f;function v(h){const w=s(e+"CollectionConsumer",h);return se.useCallback(()=>{const y=w.collectionRef.current;if(!y)return[];const C=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((I,_)=>C.indexOf(I.ref.current)-C.indexOf(_.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:p},v,o]}var hf=c.createContext(void 0);function pt(e){const t=c.useContext(hf);return e||t||"ltr"}function vf(e){const t=wf(e),n=c.forwardRef((o,r)=>{const{children:s,...i}=o,a=c.Children.toArray(s),l=a.find(yf);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function wf(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const i=Sf(r),a=Cf(s,r.props);return r.type!==c.Fragment&&(a.ref=o?Ae(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xf=Symbol("radix.slottable");function yf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xf}function Cf(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Sf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=bf.reduce((e,t)=>{const n=vf(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Xs(e,t){e&&Sn.flushSync(()=>e.dispatchEvent(t))}function ye(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function Rf(e,t=globalThis?.document){const n=ye(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Ef="DismissableLayer",Co="dismissableLayer.update",_f="dismissableLayer.pointerDownOutside",Pf="dismissableLayer.focusOutside",Hr,Zs=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=c.useContext(Zs),[f,d]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,p]=c.useState({}),v=G(t,_=>d(_)),h=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(w),y=f?h.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=x,b=Af(_=>{const E=_.target,F=[...u.branches].some(j=>j.contains(E));!S||F||(r?.(_),i?.(_),_.defaultPrevented||a?.())},m),I=Nf(_=>{const E=_.target;[...u.branches].some(j=>j.contains(E))||(s?.(_),i?.(_),_.defaultPrevented||a?.())},m);return Rf(_=>{y===u.layers.size-1&&(o?.(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},m),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Hr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Br(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Hr)}},[f,m,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Br())},[f,u]),c.useEffect(()=>{const _=()=>p({});return document.addEventListener(Co,_),()=>document.removeEventListener(Co,_)},[]),g.jsx($.div,{...l,ref:v,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:P(e.onFocusCapture,I.onFocusCapture),onBlurCapture:P(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:P(e.onPointerDownCapture,b.onPointerDownCapture)})});gt.displayName=Ef;var Mf="DismissableLayerBranch",If=c.forwardRef((e,t)=>{const n=c.useContext(Zs),o=c.useRef(null),r=G(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx($.div,{...e,ref:r})});If.displayName=Mf;function Af(e,t=globalThis?.document){const n=ye(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let l=function(){Qs(_f,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Nf(e,t=globalThis?.document){const n=ye(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&Qs(Pf,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Br(){const e=new CustomEvent(Co);document.dispatchEvent(e)}function Qs(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Xs(r,s):r.dispatchEvent(s)}var eo=0;function Rn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gr()),document.body.insertAdjacentElement("beforeend",e[1]??Gr()),eo++,()=>{eo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),eo--}},[])}function Gr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var to="focusScope.autoFocusOnMount",no="focusScope.autoFocusOnUnmount",zr={bubbles:!1,cancelable:!0},Tf="FocusScope",Dt=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[a,l]=c.useState(null),u=ye(r),f=ye(s),d=c.useRef(null),m=G(t,h=>l(h)),p=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let h=function(C){if(p.paused||!a)return;const S=C.target;a.contains(S)?d.current=S:Fe(d.current,{select:!0})},w=function(C){if(p.paused||!a)return;const S=C.relatedTarget;S!==null&&(a.contains(S)||Fe(d.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const b of C)b.removedNodes.length>0&&Fe(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",w);const y=new MutationObserver(x);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),y.disconnect()}}},[o,a,p.paused]),c.useEffect(()=>{if(a){Ur.add(p);const h=document.activeElement;if(!a.contains(h)){const x=new CustomEvent(to,zr);a.addEventListener(to,u),a.dispatchEvent(x),x.defaultPrevented||(Df(jf(Js(a)),{select:!0}),document.activeElement===h&&Fe(a))}return()=>{a.removeEventListener(to,u),setTimeout(()=>{const x=new CustomEvent(no,zr);a.addEventListener(no,f),a.dispatchEvent(x),x.defaultPrevented||Fe(h??document.body,{select:!0}),a.removeEventListener(no,f),Ur.remove(p)},0)}}},[a,u,f,p]);const v=c.useCallback(h=>{if(!n&&!o||p.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(w&&x){const y=h.currentTarget,[C,S]=Of(y);C&&S?!h.shiftKey&&x===S?(h.preventDefault(),n&&Fe(C,{select:!0})):h.shiftKey&&x===C&&(h.preventDefault(),n&&Fe(S,{select:!0})):x===y&&h.preventDefault()}},[n,o,p.paused]);return g.jsx($.div,{tabIndex:-1,...i,ref:m,onKeyDown:v})});Dt.displayName=Tf;function Df(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Fe(o,{select:t}),document.activeElement!==n)return}function Of(e){const t=Js(e),n=Wr(t,e),o=Wr(t.reverse(),e);return[n,o]}function Js(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Wr(e,t){for(const n of e)if(!kf(n,{upTo:t}))return n}function kf(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $f(e){return e instanceof HTMLInputElement&&"select"in e}function Fe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$f(e)&&t&&e.select()}}var Ur=Ff();function Ff(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Kr(e,t),e.unshift(t)},remove(t){e=Kr(e,t),e[0]?.resume()}}}function Kr(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function jf(e){return e.filter(t=>t.tagName!=="A")}var oe=globalThis?.document?c.useLayoutEffect:()=>{},Lf=c[" useId ".trim().toString()]||(()=>{}),Vf=0;function fe(e){const[t,n]=c.useState(Lf());return oe(()=>{n(o=>o??String(Vf++))},[e]),e||(t?`radix-${t}`:"")}const Hf=["top","right","bottom","left"],Ve=Math.min,ge=Math.max,fn=Math.round,qt=Math.floor,Me=e=>({x:e,y:e}),Bf={left:"right",right:"left",bottom:"top",top:"bottom"},Gf={start:"end",end:"start"};function So(e,t,n){return ge(e,Ve(t,n))}function Oe(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function mt(e){return e.split("-")[1]}function zo(e){return e==="x"?"y":"x"}function Wo(e){return e==="y"?"height":"width"}const zf=new Set(["top","bottom"]);function Pe(e){return zf.has(ke(e))?"y":"x"}function Uo(e){return zo(Pe(e))}function Wf(e,t,n){n===void 0&&(n=!1);const o=mt(e),r=Uo(e),s=Wo(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=pn(i)),[i,pn(i)]}function Uf(e){const t=pn(e);return[bo(e),t,bo(t)]}function bo(e){return e.replace(/start|end/g,t=>Gf[t])}const qr=["left","right"],Yr=["right","left"],Kf=["top","bottom"],qf=["bottom","top"];function Yf(e,t,n){switch(e){case"top":case"bottom":return n?t?Yr:qr:t?qr:Yr;case"left":case"right":return t?Kf:qf;default:return[]}}function Xf(e,t,n,o){const r=mt(e);let s=Yf(ke(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(bo)))),s}function pn(e){return e.replace(/left|right|bottom|top/g,t=>Bf[t])}function Zf(e){return{top:0,right:0,bottom:0,left:0,...e}}function ei(e){return typeof e!="number"?Zf(e):{top:e,right:e,bottom:e,left:e}}function gn(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Xr(e,t,n){let{reference:o,floating:r}=e;const s=Pe(t),i=Uo(t),a=Wo(i),l=ke(t),u=s==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[a]/2-r[a]/2;let p;switch(l){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(mt(t)){case"start":p[i]-=m*(n&&u?-1:1);break;case"end":p[i]+=m*(n&&u?-1:1);break}return p}const Qf=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=Xr(u,o,l),m=o,p={},v=0;for(let h=0;h<a.length;h++){const{name:w,fn:x}=a[h],{x:y,y:C,data:S,reset:b}=await x({x:f,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});f=y??f,d=C??d,p={...p,[w]:{...p[w],...S}},b&&v<=50&&(v++,typeof b=="object"&&(b.placement&&(m=b.placement),b.rects&&(u=b.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:f,y:d}=Xr(u,m,l)),h=-1)}return{x:f,y:d,placement:m,strategy:r,middlewareData:p}};async function Pt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=Oe(t,e),v=ei(p),w=a[m?d==="floating"?"reference":"floating":d],x=gn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),y=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},b=gn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:C,strategy:l}):y);return{top:(x.top-b.top+v.top)/S.y,bottom:(b.bottom-x.bottom+v.bottom)/S.y,left:(x.left-b.left+v.left)/S.x,right:(b.right-x.right+v.right)/S.x}}const Jf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=Oe(e,t)||{};if(u==null)return{};const d=ei(f),m={x:n,y:o},p=Uo(r),v=Wo(p),h=await i.getDimensions(u),w=p==="y",x=w?"top":"left",y=w?"bottom":"right",C=w?"clientHeight":"clientWidth",S=s.reference[v]+s.reference[p]-m[p]-s.floating[v],b=m[p]-s.reference[p],I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let _=I?I[C]:0;(!_||!await(i.isElement==null?void 0:i.isElement(I)))&&(_=a.floating[C]||s.floating[v]);const E=S/2-b/2,F=_/2-h[v]/2-1,j=Ve(d[x],F),O=Ve(d[y],F),H=j,W=_-h[v]-O,z=_/2-h[v]/2+E,K=So(H,z,W),D=!l.arrow&&mt(r)!=null&&z!==K&&s.reference[v]/2-(z<H?j:O)-h[v]/2<0,B=D?z<H?z-H:z-W:0;return{[p]:m[p]+B,data:{[p]:K,centerOffset:z-K-B,...D&&{alignmentOffset:B}},reset:D}}}),ep=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...w}=Oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=ke(r),y=Pe(a),C=ke(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=m||(C||!h?[pn(a)]:Uf(a)),I=v!=="none";!m&&I&&b.push(...Xf(a,h,v,S));const _=[a,...b],E=await Pt(t,w),F=[];let j=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&F.push(E[x]),d){const z=Wf(r,i,S);F.push(E[z[0]],E[z[1]])}if(j=[...j,{placement:r,overflows:F}],!F.every(z=>z<=0)){var O,H;const z=(((O=s.flip)==null?void 0:O.index)||0)+1,K=_[z];if(K&&(!(d==="alignment"?y!==Pe(K):!1)||j.every(R=>Pe(R.placement)===y?R.overflows[0]>0:!0)))return{data:{index:z,overflows:j},reset:{placement:K}};let D=(H=j.filter(B=>B.overflows[0]<=0).sort((B,R)=>B.overflows[1]-R.overflows[1])[0])==null?void 0:H.placement;if(!D)switch(p){case"bestFit":{var W;const B=(W=j.filter(R=>{if(I){const A=Pe(R.placement);return A===y||A==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(A=>A>0).reduce((A,ee)=>A+ee,0)]).sort((R,A)=>R[1]-A[1])[0])==null?void 0:W[0];B&&(D=B);break}case"initialPlacement":D=a;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function Zr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qr(e){return Hf.some(t=>e[t]>=0)}const tp=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Oe(e,t);switch(o){case"referenceHidden":{const s=await Pt(t,{...r,elementContext:"reference"}),i=Zr(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Qr(i)}}}case"escaped":{const s=await Pt(t,{...r,altBoundary:!0}),i=Zr(s,n.floating);return{data:{escapedOffsets:i,escaped:Qr(i)}}}default:return{}}}}},ti=new Set(["left","top"]);async function np(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=ke(n),a=mt(n),l=Pe(n)==="y",u=ti.has(i)?-1:1,f=s&&l?-1:1,d=Oe(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(p=a==="end"?v*-1:v),l?{x:p*f,y:m*u}:{x:m*u,y:p*f}}const op=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await np(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},rp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x,y}=w;return{x,y}}},...l}=Oe(e,t),u={x:n,y:o},f=await Pt(t,l),d=Pe(ke(r)),m=zo(d);let p=u[m],v=u[d];if(s){const w=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=p+f[w],C=p-f[x];p=So(y,p,C)}if(i){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",y=v+f[w],C=v-f[x];v=So(y,v,C)}const h=a.fn({...t,[m]:p,[d]:v});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:s,[d]:i}}}}}},sp=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Oe(e,t),f={x:n,y:o},d=Pe(r),m=zo(d);let p=f[m],v=f[d];const h=Oe(a,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const C=m==="y"?"height":"width",S=s.reference[m]-s.floating[C]+w.mainAxis,b=s.reference[m]+s.reference[C]-w.mainAxis;p<S?p=S:p>b&&(p=b)}if(u){var x,y;const C=m==="y"?"width":"height",S=ti.has(ke(r)),b=s.reference[d]-s.floating[C]+(S&&((x=i.offset)==null?void 0:x[d])||0)+(S?0:w.crossAxis),I=s.reference[d]+s.reference[C]+(S?0:((y=i.offset)==null?void 0:y[d])||0)-(S?w.crossAxis:0);v<b?v=b:v>I&&(v=I)}return{[m]:p,[d]:v}}}},ip=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=Oe(e,t),f=await Pt(t,u),d=ke(r),m=mt(r),p=Pe(r)==="y",{width:v,height:h}=s.floating;let w,x;d==="top"||d==="bottom"?(w=d,x=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,w=m==="end"?"top":"bottom");const y=h-f.top-f.bottom,C=v-f.left-f.right,S=Ve(h-f[w],y),b=Ve(v-f[x],C),I=!t.middlewareData.shift;let _=S,E=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=y),I&&!m){const j=ge(f.left,0),O=ge(f.right,0),H=ge(f.top,0),W=ge(f.bottom,0);p?E=v-2*(j!==0||O!==0?j+O:ge(f.left,f.right)):_=h-2*(H!==0||W!==0?H+W:ge(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:_});const F=await i.getDimensions(a.floating);return v!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function En(){return typeof window<"u"}function ht(e){return ni(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(ni(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ni(e){return En()?e instanceof Node||e instanceof me(e).Node:!1}function be(e){return En()?e instanceof Element||e instanceof me(e).Element:!1}function Ie(e){return En()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function Jr(e){return!En()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}const ap=new Set(["inline","contents"]);function Ot(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!ap.has(r)}const lp=new Set(["table","td","th"]);function cp(e){return lp.has(ht(e))}const up=[":popover-open",":modal"];function _n(e){return up.some(t=>{try{return e.matches(t)}catch{return!1}})}const dp=["transform","translate","scale","rotate","perspective"],fp=["transform","translate","scale","rotate","perspective","filter"],pp=["paint","layout","strict","content"];function Ko(e){const t=qo(),n=be(e)?Re(e):e;return dp.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||fp.some(o=>(n.willChange||"").includes(o))||pp.some(o=>(n.contain||"").includes(o))}function gp(e){let t=He(e);for(;Ie(t)&&!lt(t);){if(Ko(t))return t;if(_n(t))return null;t=He(t)}return null}function qo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mp=new Set(["html","body","#document"]);function lt(e){return mp.has(ht(e))}function Re(e){return me(e).getComputedStyle(e)}function Pn(e){return be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function He(e){if(ht(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jr(e)&&e.host||Ne(e);return Jr(t)?t.host:t}function oi(e){const t=He(e);return lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ie(t)&&Ot(t)?t:oi(t)}function Mt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=oi(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=me(r);if(s){const a=Ro(i);return t.concat(i,i.visualViewport||[],Ot(r)?r:[],a&&n?Mt(a):[])}return t.concat(r,Mt(r,[],n))}function Ro(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ri(e){const t=Re(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ie(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=fn(n)!==s||fn(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function Yo(e){return be(e)?e:e.contextElement}function it(e){const t=Yo(e);if(!Ie(t))return Me(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=ri(t);let i=(s?fn(n.width):n.width)/o,a=(s?fn(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const hp=Me(0);function si(e){const t=me(e);return!qo()||!t.visualViewport?hp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==me(e)?!1:t}function Ze(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Yo(e);let i=Me(1);t&&(o?be(o)&&(i=it(o)):i=it(e));const a=vp(s,n,o)?si(s):Me(0);let l=(r.left+a.x)/i.x,u=(r.top+a.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(s){const m=me(s),p=o&&be(o)?me(o):o;let v=m,h=Ro(v);for(;h&&o&&p!==v;){const w=it(h),x=h.getBoundingClientRect(),y=Re(h),C=x.left+(h.clientLeft+parseFloat(y.paddingLeft))*w.x,S=x.top+(h.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,u*=w.y,f*=w.x,d*=w.y,l+=C,u+=S,v=me(h),h=Ro(v)}}return gn({width:f,height:d,x:l,y:u})}function Mn(e,t){const n=Pn(e).scrollLeft;return t?t.left+n:Ze(Ne(e)).left+n}function ii(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Mn(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function wp(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=Ne(o),a=t?_n(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Me(1);const f=Me(0),d=Ie(o);if((d||!d&&!s)&&((ht(o)!=="body"||Ot(i))&&(l=Pn(o)),Ie(o))){const p=Ze(o);u=it(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const m=i&&!d&&!s?ii(i,l):Me(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-l.scrollTop*u.y+f.y+m.y}}function xp(e){return Array.from(e.getClientRects())}function yp(e){const t=Ne(e),n=Pn(e),o=e.ownerDocument.body,r=ge(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ge(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Mn(e);const a=-n.scrollTop;return Re(o).direction==="rtl"&&(i+=ge(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:a}}const es=25;function Cp(e,t){const n=me(e),o=Ne(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const f=qo();(!f||f&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const u=Mn(o);if(u<=0){const f=o.ownerDocument,d=f.body,m=getComputedStyle(d),p=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(o.clientWidth-d.clientWidth-p);v<=es&&(s-=v)}else u<=es&&(s+=u);return{width:s,height:i,x:a,y:l}}const Sp=new Set(["absolute","fixed"]);function bp(e,t){const n=Ze(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Ie(e)?it(e):Me(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:a,x:l,y:u}}function ts(e,t,n){let o;if(t==="viewport")o=Cp(e,n);else if(t==="document")o=yp(Ne(e));else if(be(t))o=bp(t,n);else{const r=si(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return gn(o)}function ai(e,t){const n=He(e);return n===t||!be(n)||lt(n)?!1:Re(n).position==="fixed"||ai(n,t)}function Rp(e,t){const n=t.get(e);if(n)return n;let o=Mt(e,[],!1).filter(a=>be(a)&&ht(a)!=="body"),r=null;const s=Re(e).position==="fixed";let i=s?He(e):e;for(;be(i)&&!lt(i);){const a=Re(i),l=Ko(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&Sp.has(r.position)||Ot(i)&&!l&&ai(e,i))?o=o.filter(f=>f!==i):r=a,i=He(i)}return t.set(e,o),o}function Ep(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?_n(t)?[]:Rp(t,this._c):[].concat(n),o],a=i[0],l=i.reduce((u,f)=>{const d=ts(t,f,r);return u.top=ge(d.top,u.top),u.right=Ve(d.right,u.right),u.bottom=Ve(d.bottom,u.bottom),u.left=ge(d.left,u.left),u},ts(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _p(e){const{width:t,height:n}=ri(e);return{width:t,height:n}}function Pp(e,t,n){const o=Ie(t),r=Ne(t),s=n==="fixed",i=Ze(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Me(0);function u(){l.x=Mn(r)}if(o||!o&&!s)if((ht(t)!=="body"||Ot(r))&&(a=Pn(t)),o){const p=Ze(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else r&&u();s&&!o&&r&&u();const f=r&&!o&&!s?ii(r,a):Me(0),d=i.left+a.scrollLeft-l.x-f.x,m=i.top+a.scrollTop-l.y-f.y;return{x:d,y:m,width:i.width,height:i.height}}function oo(e){return Re(e).position==="static"}function ns(e,t){if(!Ie(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ne(e)===n&&(n=n.ownerDocument.body),n}function li(e,t){const n=me(e);if(_n(e))return n;if(!Ie(e)){let r=He(e);for(;r&&!lt(r);){if(be(r)&&!oo(r))return r;r=He(r)}return n}let o=ns(e,t);for(;o&&cp(o)&&oo(o);)o=ns(o,t);return o&<(o)&&oo(o)&&!Ko(o)?n:o||gp(e)||n}const Mp=async function(e){const t=this.getOffsetParent||li,n=this.getDimensions,o=await n(e.floating);return{reference:Pp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ip(e){return Re(e).direction==="rtl"}const Ap={convertOffsetParentRelativeRectToViewportRelativeRect:wp,getDocumentElement:Ne,getClippingRect:Ep,getOffsetParent:li,getElementRects:Mp,getClientRects:xp,getDimensions:_p,getScale:it,isElement:be,isRTL:Ip};function ci(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Np(e,t){let n=null,o;const r=Ne(e);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:f,top:d,width:m,height:p}=u;if(a||t(),!m||!p)return;const v=qt(d),h=qt(r.clientWidth-(f+m)),w=qt(r.clientHeight-(d+p)),x=qt(f),C={rootMargin:-v+"px "+-h+"px "+-w+"px "+-x+"px",threshold:ge(0,Ve(1,l))||1};let S=!0;function b(I){const _=I[0].intersectionRatio;if(_!==l){if(!S)return i();_?i(!1,_):o=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!ci(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(b,{...C,root:r.ownerDocument})}catch{n=new IntersectionObserver(b,C)}n.observe(e)}return i(!0),s}function Tp(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Yo(e),f=r||s?[...u?Mt(u):[],...Mt(t)]:[];f.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const d=u&&a?Np(u,n):null;let m=-1,p=null;i&&(p=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let v,h=l?Ze(e):null;l&&w();function w(){const x=Ze(e);h&&!ci(h,x)&&n(),h=x,v=requestAnimationFrame(w)}return n(),()=>{var x;f.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d?.(),(x=p)==null||x.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const Dp=op,Op=rp,kp=ep,$p=ip,Fp=tp,os=Jf,jp=sp,Lp=(e,t,n)=>{const o=new Map,r={platform:Ap,...n},s={...r.platform,_c:o};return Qf(e,t,{...r,platform:s})};var Vp=typeof document<"u",Hp=function(){},rn=Vp?se.useLayoutEffect:Hp;function mn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!mn(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!mn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ui(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rs(e,t){const n=ui(e);return Math.round(t*n)/n}function ro(e){const t=c.useRef(e);return rn(()=>{t.current=e}),t}function Bp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=c.useState(o);mn(m,o)||p(o);const[v,h]=c.useState(null),[w,x]=c.useState(null),y=c.useCallback(R=>{R!==I.current&&(I.current=R,h(R))},[]),C=c.useCallback(R=>{R!==_.current&&(_.current=R,x(R))},[]),S=s||v,b=i||w,I=c.useRef(null),_=c.useRef(null),E=c.useRef(f),F=l!=null,j=ro(l),O=ro(r),H=ro(u),W=c.useCallback(()=>{if(!I.current||!_.current)return;const R={placement:t,strategy:n,middleware:m};O.current&&(R.platform=O.current),Lp(I.current,_.current,R).then(A=>{const ee={...A,isPositioned:H.current!==!1};z.current&&!mn(E.current,ee)&&(E.current=ee,Sn.flushSync(()=>{d(ee)}))})},[m,t,n,O,H]);rn(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[u]);const z=c.useRef(!1);rn(()=>(z.current=!0,()=>{z.current=!1}),[]),rn(()=>{if(S&&(I.current=S),b&&(_.current=b),S&&b){if(j.current)return j.current(S,b,W);W()}},[S,b,W,j,F]);const K=c.useMemo(()=>({reference:I,floating:_,setReference:y,setFloating:C}),[y,C]),D=c.useMemo(()=>({reference:S,floating:b}),[S,b]),B=c.useMemo(()=>{const R={position:n,left:0,top:0};if(!D.floating)return R;const A=rs(D.floating,f.x),ee=rs(D.floating,f.y);return a?{...R,transform:"translate("+A+"px, "+ee+"px)",...ui(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:ee}},[n,a,D.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:W,refs:K,elements:D,floatingStyles:B}),[f,W,K,D,B])}const Gp=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?os({element:o.current,padding:r}).fn(n):{}:o?os({element:o,padding:r}).fn(n):{}}}},zp=(e,t)=>({...Dp(e),options:[e,t]}),Wp=(e,t)=>({...Op(e),options:[e,t]}),Up=(e,t)=>({...jp(e),options:[e,t]}),Kp=(e,t)=>({...kp(e),options:[e,t]}),qp=(e,t)=>({...$p(e),options:[e,t]}),Yp=(e,t)=>({...Fp(e),options:[e,t]}),Xp=(e,t)=>({...Gp(e),options:[e,t]});var Zp="Arrow",di=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return g.jsx($.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});di.displayName=Zp;var Qp=di;function kt(e){const[t,n]=c.useState(void 0);return oe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Xo="Popper",[fi,ze]=ue(Xo),[Jp,pi]=fi(Xo),gi=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return g.jsx(Jp,{scope:t,anchor:o,onAnchorChange:r,children:n})};gi.displayName=Xo;var mi="PopperAnchor",hi=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=pi(mi,n),i=c.useRef(null),a=G(t,i),l=c.useRef(null);return c.useEffect(()=>{const u=l.current;l.current=o?.current||i.current,u!==l.current&&s.onAnchorChange(l.current)}),o?null:g.jsx($.div,{...r,ref:a})});hi.displayName=mi;var Zo="PopperContent",[eg,tg]=fi(Zo),vi=c.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:v,...h}=e,w=pi(Zo,n),[x,y]=c.useState(null),C=G(t,M=>y(M)),[S,b]=c.useState(null),I=kt(S),_=I?.width??0,E=I?.height??0,F=o+(s!=="center"?"-"+s:""),j=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},O=Array.isArray(u)?u:[u],H=O.length>0,W={padding:j,boundary:O.filter(og),altBoundary:H},{refs:z,floatingStyles:K,placement:D,isPositioned:B,middlewareData:R}=Bp({strategy:"fixed",placement:F,whileElementsMounted:(...M)=>Tp(...M,{animationFrame:p==="always"}),elements:{reference:w.anchor},middleware:[zp({mainAxis:r+E,alignmentAxis:i}),l&&Wp({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Up():void 0,...W}),l&&Kp({...W}),qp({...W,apply:({elements:M,rects:Y,availableWidth:te,availableHeight:q})=>{const{width:X,height:J}=Y.reference,we=M.floating.style;we.setProperty("--radix-popper-available-width",`${te}px`),we.setProperty("--radix-popper-available-height",`${q}px`),we.setProperty("--radix-popper-anchor-width",`${X}px`),we.setProperty("--radix-popper-anchor-height",`${J}px`)}}),S&&Xp({element:S,padding:a}),rg({arrowWidth:_,arrowHeight:E}),m&&Yp({strategy:"referenceHidden",...W})]}),[A,ee]=yi(D),re=ye(v);oe(()=>{B&&re?.()},[B,re]);const ce=R.arrow?.x,Q=R.arrow?.y,Z=R.arrow?.centerOffset!==0,[de,ie]=c.useState();return oe(()=>{x&&ie(window.getComputedStyle(x).zIndex)},[x]),g.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:B?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(eg,{scope:n,placedSide:A,onArrowChange:b,arrowX:ce,arrowY:Q,shouldHideArrow:Z,children:g.jsx($.div,{"data-side":A,"data-align":ee,...h,ref:C,style:{...h.style,animation:B?void 0:"none"}})})})});vi.displayName=Zo;var wi="PopperArrow",ng={top:"bottom",right:"left",bottom:"top",left:"right"},xi=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=tg(wi,o),i=ng[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(Qp,{...r,ref:n,style:{...r.style,display:"block"}})})});xi.displayName=wi;function og(e){return e!==null}var rg=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,f]=yi(n),d={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+a/2,p=(r.arrow?.y??0)+l/2;let v="",h="";return u==="bottom"?(v=i?d:`${m}px`,h=`${-l}px`):u==="top"?(v=i?d:`${m}px`,h=`${o.floating.height+l}px`):u==="right"?(v=`${-l}px`,h=i?d:`${p}px`):u==="left"&&(v=`${o.floating.width+l}px`,h=i?d:`${p}px`),{data:{x:v,y:h}}}});function yi(e){const[t,n="center"]=e.split("-");return[t,n]}var $t=gi,Ft=hi,In=vi,An=xi,sg="Portal",jt=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=c.useState(!1);oe(()=>s(!0),[]);const i=n||r&&globalThis?.document?.body;return i?bs.createPortal(g.jsx($.div,{...o,ref:t}),i):null});jt.displayName=sg;function ig(e){const t=ag(e),n=c.forwardRef((o,r)=>{const{children:s,...i}=o,a=c.Children.toArray(s),l=a.find(cg);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function ag(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const i=dg(r),a=ug(s,r.props);return r.type!==c.Fragment&&(a.ref=o?Ae(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lg=Symbol("radix.slottable");function cg(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lg}function ug(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function dg(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fg=c[" useInsertionEffect ".trim().toString()]||oe;function he({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,i]=pg({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,o])}const u=c.useCallback(f=>{if(a){const d=gg(f)?f(e):f;d!==e&&i.current?.(d)}else s(f)},[a,e,s,i]);return[l,u]}function pg({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return fg(()=>{s.current=t},[t]),c.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function gg(e){return typeof e=="function"}function Lt(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ci=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),mg="VisuallyHidden",Si=c.forwardRef((e,t)=>g.jsx($.span,{...e,ref:t,style:{...Ci,...e.style}}));Si.displayName=mg;var hg=Si,vg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ot=new WeakMap,Yt=new WeakMap,Xt={},so=0,bi=function(e){return e&&(e.host||bi(e.parentNode))},wg=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=bi(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},xg=function(e,t,n,o){var r=wg(t,Array.isArray(e)?e:[e]);Xt[n]||(Xt[n]=new WeakMap);var s=Xt[n],i=[],a=new Set,l=new Set(r),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};r.forEach(u);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(m){if(a.has(m))f(m);else try{var p=m.getAttribute(o),v=p!==null&&p!=="false",h=(ot.get(m)||0)+1,w=(s.get(m)||0)+1;ot.set(m,h),s.set(m,w),i.push(m),h===1&&v&&Yt.set(m,!0),w===1&&m.setAttribute(n,"true"),v||m.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return f(t),a.clear(),so++,function(){i.forEach(function(d){var m=ot.get(d)-1,p=s.get(d)-1;ot.set(d,m),s.set(d,p),m||(Yt.has(d)||d.removeAttribute(o),Yt.delete(d)),p||d.removeAttribute(n)}),so--,so||(ot=new WeakMap,ot=new WeakMap,Yt=new WeakMap,Xt={})}},Nn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=vg(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),xg(o,r,n,"aria-hidden")):function(){return null}},_e=function(){return _e=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},_e.apply(this,arguments)};function Ri(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function yg(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var sn="right-scroll-bar-position",an="width-before-scroll-bar",Cg="with-scroll-bars-hidden",Sg="--removed-body-scroll-bar-size";function io(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bg(e,t){var n=se.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Rg=typeof window<"u"?c.useLayoutEffect:c.useEffect,ss=new WeakMap;function Eg(e,t){var n=bg(null,function(o){return e.forEach(function(r){return io(r,o)})});return Rg(function(){var o=ss.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||io(a,null)}),s.forEach(function(a){r.has(a)||io(a,i)})}ss.set(n,e)},[e]),n}function _g(e){return e}function Pg(e,t){t===void 0&&(t=_g);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return r}function Mg(e){e===void 0&&(e={});var t=Pg(null);return t.options=_e({async:!0,ssr:!1},e),t}var Ei=function(e){var t=e.sideCar,n=Ri(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,_e({},n))};Ei.isSideCarExport=!0;function Ig(e,t){return e.useMedium(t),Ei}var _i=Mg(),ao=function(){},Tn=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:ao,onWheelCapture:ao,onTouchMoveCapture:ao}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,p=e.noRelative,v=e.noIsolation,h=e.inert,w=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,C=e.gapMode,S=Ri(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=m,I=Eg([n,t]),_=_e(_e({},S),r);return c.createElement(c.Fragment,null,f&&c.createElement(b,{sideCar:_i,removeScrollBar:u,shards:d,noRelative:p,noIsolation:v,inert:h,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:C}),i?c.cloneElement(c.Children.only(a),_e(_e({},_),{ref:I})):c.createElement(y,_e({},_,{className:l,ref:I}),a))});Tn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Tn.classNames={fullWidth:an,zeroRight:sn};var Ag=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ng(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ag();return t&&e.setAttribute("nonce",t),e}function Tg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Og=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ng())&&(Tg(t,n),Dg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kg=function(){var e=Og();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Pi=function(){var e=kg(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},$g={left:0,top:0,right:0,gap:0},lo=function(e){return parseInt(e||"",10)||0},Fg=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[lo(n),lo(o),lo(r)]},jg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $g;var t=Fg(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Lg=Pi(),at="data-scroll-locked",Vg=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(Cg,` {
|
|
3
3
|
overflow: hidden `).concat(o,`;
|
|
4
4
|
padding-right: `).concat(a,"px ").concat(o,`;
|
package/dist/index.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButt
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export declare const buttonVariants: (props?: ({
|
|
79
|
-
variant?: "secondary" | "destructive" | "outline" | "link" | "primary" | "ghost" | null | undefined;
|
|
79
|
+
variant?: "secondary" | "destructive" | "outline" | "link" | "primary" | "ghost" | "soft-primary" | "soft-secondary" | "soft-success" | "soft-warning" | "soft-destructive" | null | undefined;
|
|
80
80
|
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
81
81
|
} & ClassProp) | undefined) => string;
|
|
82
82
|
|
package/dist/index.js
CHANGED
|
@@ -2926,7 +2926,12 @@ const vd = Ue(
|
|
|
2926
2926
|
ghost: "text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800",
|
|
2927
2927
|
outline: "border border-gray-300 text-gray-700 hover:bg-gray-50 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-800",
|
|
2928
2928
|
destructive: "bg-red-500 text-white hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-700",
|
|
2929
|
-
link: "text-primary-600 underline-offset-4 hover:underline dark:text-primary-400"
|
|
2929
|
+
link: "text-primary-600 underline-offset-4 hover:underline dark:text-primary-400",
|
|
2930
|
+
"soft-primary": "bg-primary-500/15 text-primary-600 hover:bg-primary-500/25 dark:bg-primary-400/15 dark:text-primary-400 dark:hover:bg-primary-400/25",
|
|
2931
|
+
"soft-secondary": "bg-gray-500/15 text-gray-700 hover:bg-gray-500/25 dark:bg-gray-400/15 dark:text-gray-300 dark:hover:bg-gray-400/25",
|
|
2932
|
+
"soft-success": "bg-green-500/15 text-green-600 hover:bg-green-500/25 dark:bg-green-400/15 dark:text-green-400 dark:hover:bg-green-400/25",
|
|
2933
|
+
"soft-warning": "bg-yellow-500/15 text-yellow-600 hover:bg-yellow-500/25 dark:bg-yellow-400/15 dark:text-yellow-400 dark:hover:bg-yellow-400/25",
|
|
2934
|
+
"soft-destructive": "bg-red-500/15 text-red-600 hover:bg-red-500/25 dark:bg-red-400/15 dark:text-red-400 dark:hover:bg-red-400/25"
|
|
2930
2935
|
},
|
|
2931
2936
|
size: {
|
|
2932
2937
|
sm: "h-8 px-3 text-sm",
|
package/dist/styles.css
CHANGED
|
@@ -7,11 +7,14 @@
|
|
|
7
7
|
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
8
8
|
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
9
9
|
"Courier New", monospace;
|
|
10
|
+
--color-red-400: oklch(70.4% 0.191 22.216);
|
|
10
11
|
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
11
12
|
--color-red-600: oklch(57.7% 0.245 27.325);
|
|
12
13
|
--color-red-700: oklch(50.5% 0.213 27.518);
|
|
14
|
+
--color-yellow-400: oklch(85.2% 0.199 91.936);
|
|
13
15
|
--color-yellow-500: oklch(79.5% 0.184 86.047);
|
|
14
16
|
--color-yellow-600: oklch(68.1% 0.162 75.834);
|
|
17
|
+
--color-green-400: oklch(79.2% 0.209 151.711);
|
|
15
18
|
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
16
19
|
--color-green-600: oklch(62.7% 0.194 149.214);
|
|
17
20
|
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
@@ -549,15 +552,39 @@
|
|
|
549
552
|
.bg-gray-100 {
|
|
550
553
|
background-color: var(--color-gray-100);
|
|
551
554
|
}
|
|
555
|
+
.bg-gray-500\/15 {
|
|
556
|
+
background-color: color-mix(in srgb, oklch(55.1% 0.027 264.364) 15%, transparent);
|
|
557
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
558
|
+
background-color: color-mix(in oklab, var(--color-gray-500) 15%, transparent);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
552
561
|
.bg-green-500 {
|
|
553
562
|
background-color: var(--color-green-500);
|
|
554
563
|
}
|
|
564
|
+
.bg-green-500\/15 {
|
|
565
|
+
background-color: color-mix(in srgb, oklch(72.3% 0.219 149.579) 15%, transparent);
|
|
566
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
567
|
+
background-color: color-mix(in oklab, var(--color-green-500) 15%, transparent);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
555
570
|
.bg-red-500 {
|
|
556
571
|
background-color: var(--color-red-500);
|
|
557
572
|
}
|
|
573
|
+
.bg-red-500\/15 {
|
|
574
|
+
background-color: color-mix(in srgb, oklch(63.7% 0.237 25.331) 15%, transparent);
|
|
575
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
576
|
+
background-color: color-mix(in oklab, var(--color-red-500) 15%, transparent);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
558
579
|
.bg-yellow-500 {
|
|
559
580
|
background-color: var(--color-yellow-500);
|
|
560
581
|
}
|
|
582
|
+
.bg-yellow-500\/15 {
|
|
583
|
+
background-color: color-mix(in srgb, oklch(79.5% 0.184 86.047) 15%, transparent);
|
|
584
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
585
|
+
background-color: color-mix(in oklab, var(--color-yellow-500) 15%, transparent);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
561
588
|
.bg-gradient-to-r {
|
|
562
589
|
--tw-gradient-position: to right in oklab;
|
|
563
590
|
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
@@ -696,9 +723,18 @@
|
|
|
696
723
|
.text-gray-900 {
|
|
697
724
|
color: var(--color-gray-900);
|
|
698
725
|
}
|
|
726
|
+
.text-green-600 {
|
|
727
|
+
color: var(--color-green-600);
|
|
728
|
+
}
|
|
729
|
+
.text-red-600 {
|
|
730
|
+
color: var(--color-red-600);
|
|
731
|
+
}
|
|
699
732
|
.text-white {
|
|
700
733
|
color: var(--color-white);
|
|
701
734
|
}
|
|
735
|
+
.text-yellow-600 {
|
|
736
|
+
color: var(--color-yellow-600);
|
|
737
|
+
}
|
|
702
738
|
.lowercase {
|
|
703
739
|
text-transform: lowercase;
|
|
704
740
|
}
|
|
@@ -840,6 +876,26 @@
|
|
|
840
876
|
}
|
|
841
877
|
}
|
|
842
878
|
}
|
|
879
|
+
.hover\:bg-gray-500\/25 {
|
|
880
|
+
&:hover {
|
|
881
|
+
@media (hover: hover) {
|
|
882
|
+
background-color: color-mix(in srgb, oklch(55.1% 0.027 264.364) 25%, transparent);
|
|
883
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
884
|
+
background-color: color-mix(in oklab, var(--color-gray-500) 25%, transparent);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
.hover\:bg-green-500\/25 {
|
|
890
|
+
&:hover {
|
|
891
|
+
@media (hover: hover) {
|
|
892
|
+
background-color: color-mix(in srgb, oklch(72.3% 0.219 149.579) 25%, transparent);
|
|
893
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
894
|
+
background-color: color-mix(in oklab, var(--color-green-500) 25%, transparent);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
843
899
|
.hover\:bg-green-600 {
|
|
844
900
|
&:hover {
|
|
845
901
|
@media (hover: hover) {
|
|
@@ -847,6 +903,16 @@
|
|
|
847
903
|
}
|
|
848
904
|
}
|
|
849
905
|
}
|
|
906
|
+
.hover\:bg-red-500\/25 {
|
|
907
|
+
&:hover {
|
|
908
|
+
@media (hover: hover) {
|
|
909
|
+
background-color: color-mix(in srgb, oklch(63.7% 0.237 25.331) 25%, transparent);
|
|
910
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
911
|
+
background-color: color-mix(in oklab, var(--color-red-500) 25%, transparent);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
850
916
|
.hover\:bg-red-600 {
|
|
851
917
|
&:hover {
|
|
852
918
|
@media (hover: hover) {
|
|
@@ -854,6 +920,16 @@
|
|
|
854
920
|
}
|
|
855
921
|
}
|
|
856
922
|
}
|
|
923
|
+
.hover\:bg-yellow-500\/25 {
|
|
924
|
+
&:hover {
|
|
925
|
+
@media (hover: hover) {
|
|
926
|
+
background-color: color-mix(in srgb, oklch(79.5% 0.184 86.047) 25%, transparent);
|
|
927
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
928
|
+
background-color: color-mix(in oklab, var(--color-yellow-500) 25%, transparent);
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}
|
|
857
933
|
.hover\:bg-yellow-600 {
|
|
858
934
|
&:hover {
|
|
859
935
|
@media (hover: hover) {
|
|
@@ -996,16 +1072,48 @@
|
|
|
996
1072
|
border-color: var(--color-gray-600);
|
|
997
1073
|
}
|
|
998
1074
|
}
|
|
1075
|
+
.dark\:bg-gray-400\/15 {
|
|
1076
|
+
@media (prefers-color-scheme: dark) {
|
|
1077
|
+
background-color: color-mix(in srgb, oklch(70.7% 0.022 261.325) 15%, transparent);
|
|
1078
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1079
|
+
background-color: color-mix(in oklab, var(--color-gray-400) 15%, transparent);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
999
1083
|
.dark\:bg-gray-800 {
|
|
1000
1084
|
@media (prefers-color-scheme: dark) {
|
|
1001
1085
|
background-color: var(--color-gray-800);
|
|
1002
1086
|
}
|
|
1003
1087
|
}
|
|
1088
|
+
.dark\:bg-green-400\/15 {
|
|
1089
|
+
@media (prefers-color-scheme: dark) {
|
|
1090
|
+
background-color: color-mix(in srgb, oklch(79.2% 0.209 151.711) 15%, transparent);
|
|
1091
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1092
|
+
background-color: color-mix(in oklab, var(--color-green-400) 15%, transparent);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
.dark\:bg-red-400\/15 {
|
|
1097
|
+
@media (prefers-color-scheme: dark) {
|
|
1098
|
+
background-color: color-mix(in srgb, oklch(70.4% 0.191 22.216) 15%, transparent);
|
|
1099
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1100
|
+
background-color: color-mix(in oklab, var(--color-red-400) 15%, transparent);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1004
1104
|
.dark\:bg-red-600 {
|
|
1005
1105
|
@media (prefers-color-scheme: dark) {
|
|
1006
1106
|
background-color: var(--color-red-600);
|
|
1007
1107
|
}
|
|
1008
1108
|
}
|
|
1109
|
+
.dark\:bg-yellow-400\/15 {
|
|
1110
|
+
@media (prefers-color-scheme: dark) {
|
|
1111
|
+
background-color: color-mix(in srgb, oklch(85.2% 0.199 91.936) 15%, transparent);
|
|
1112
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1113
|
+
background-color: color-mix(in oklab, var(--color-yellow-400) 15%, transparent);
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1009
1117
|
.dark\:text-gray-100 {
|
|
1010
1118
|
@media (prefers-color-scheme: dark) {
|
|
1011
1119
|
color: var(--color-gray-100);
|
|
@@ -1021,6 +1129,33 @@
|
|
|
1021
1129
|
color: var(--color-gray-500);
|
|
1022
1130
|
}
|
|
1023
1131
|
}
|
|
1132
|
+
.dark\:text-green-400 {
|
|
1133
|
+
@media (prefers-color-scheme: dark) {
|
|
1134
|
+
color: var(--color-green-400);
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
.dark\:text-red-400 {
|
|
1138
|
+
@media (prefers-color-scheme: dark) {
|
|
1139
|
+
color: var(--color-red-400);
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
.dark\:text-yellow-400 {
|
|
1143
|
+
@media (prefers-color-scheme: dark) {
|
|
1144
|
+
color: var(--color-yellow-400);
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
.dark\:hover\:bg-gray-400\/25 {
|
|
1148
|
+
@media (prefers-color-scheme: dark) {
|
|
1149
|
+
&:hover {
|
|
1150
|
+
@media (hover: hover) {
|
|
1151
|
+
background-color: color-mix(in srgb, oklch(70.7% 0.022 261.325) 25%, transparent);
|
|
1152
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1153
|
+
background-color: color-mix(in oklab, var(--color-gray-400) 25%, transparent);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1024
1159
|
.dark\:hover\:bg-gray-700 {
|
|
1025
1160
|
@media (prefers-color-scheme: dark) {
|
|
1026
1161
|
&:hover {
|
|
@@ -1039,6 +1174,30 @@
|
|
|
1039
1174
|
}
|
|
1040
1175
|
}
|
|
1041
1176
|
}
|
|
1177
|
+
.dark\:hover\:bg-green-400\/25 {
|
|
1178
|
+
@media (prefers-color-scheme: dark) {
|
|
1179
|
+
&:hover {
|
|
1180
|
+
@media (hover: hover) {
|
|
1181
|
+
background-color: color-mix(in srgb, oklch(79.2% 0.209 151.711) 25%, transparent);
|
|
1182
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1183
|
+
background-color: color-mix(in oklab, var(--color-green-400) 25%, transparent);
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
.dark\:hover\:bg-red-400\/25 {
|
|
1190
|
+
@media (prefers-color-scheme: dark) {
|
|
1191
|
+
&:hover {
|
|
1192
|
+
@media (hover: hover) {
|
|
1193
|
+
background-color: color-mix(in srgb, oklch(70.4% 0.191 22.216) 25%, transparent);
|
|
1194
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1195
|
+
background-color: color-mix(in oklab, var(--color-red-400) 25%, transparent);
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1042
1201
|
.dark\:hover\:bg-red-700 {
|
|
1043
1202
|
@media (prefers-color-scheme: dark) {
|
|
1044
1203
|
&:hover {
|
|
@@ -1048,6 +1207,18 @@
|
|
|
1048
1207
|
}
|
|
1049
1208
|
}
|
|
1050
1209
|
}
|
|
1210
|
+
.dark\:hover\:bg-yellow-400\/25 {
|
|
1211
|
+
@media (prefers-color-scheme: dark) {
|
|
1212
|
+
&:hover {
|
|
1213
|
+
@media (hover: hover) {
|
|
1214
|
+
background-color: color-mix(in srgb, oklch(85.2% 0.199 91.936) 25%, transparent);
|
|
1215
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1216
|
+
background-color: color-mix(in oklab, var(--color-yellow-400) 25%, transparent);
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1051
1222
|
.\[\&_p\]\:leading-relaxed {
|
|
1052
1223
|
& p {
|
|
1053
1224
|
--tw-leading: var(--leading-relaxed);
|
package/package.json
CHANGED