@epilot/volt-ui 1.0.2 → 1.0.3-alpha.2

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.js CHANGED
@@ -1,45 +1,51 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),oe=require("react"),yr=require("react-dom");function wr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const l=wr(oe),Zt=wr(yr);function Cr(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=Cr(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Sr(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Cr(e))&&(n&&(n+=" "),n+=t);return n}const al=(e,t)=>{const o=new Array(e.length+t.length);for(let n=0;n<e.length;n++)o[n]=e[n];for(let n=0;n<t.length;n++)o[e.length+n]=t[n];return o},sl=(e,t)=>({classGroupId:e,validator:t}),Rr=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),qt="-",Dn=[],ll="arbitrary..",cl=e=>{const t=dl(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return ul(a);const s=a.split(qt),c=s[0]===""&&s.length>1?1:0;return Er(s,c,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const c=n[a],u=o[a];return c?u?al(u,c):c:u||Dn}return o[a]||Dn}}},Er=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const r=e[t],i=o.nextPart.get(r);if(i){const u=Er(e,t+1,i);if(u)return u}const a=o.validators;if(a===null)return;const s=t===0?e.join(qt):e.slice(t).join(qt),c=a.length;for(let u=0;u<c;u++){const f=a[u];if(f.validator(s))return f.classGroupId}},ul=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),n=t.slice(0,o);return n?ll+n:void 0})(),dl=e=>{const{theme:t,classGroups:o}=e;return fl(o,t)},fl=(e,t)=>{const o=Rr();for(const n in e){const r=e[n];tn(r,o,n,t)}return o},tn=(e,t,o,n)=>{const r=e.length;for(let i=0;i<r;i++){const a=e[i];pl(a,t,o,n)}},pl=(e,t,o,n)=>{if(typeof e=="string"){vl(e,t,o);return}if(typeof e=="function"){ml(e,t,o,n);return}gl(e,t,o,n)},vl=(e,t,o)=>{const n=e===""?t:Pr(t,e);n.classGroupId=o},ml=(e,t,o,n)=>{if(hl(e)){tn(e(n),t,o,n);return}t.validators===null&&(t.validators=[]),t.validators.push(sl(o,e))},gl=(e,t,o,n)=>{const r=Object.entries(e),i=r.length;for(let a=0;a<i;a++){const[s,c]=r[a];tn(c,Pr(t,s),o,n)}},Pr=(e,t)=>{let o=e;const n=t.split(qt),r=n.length;for(let i=0;i<r;i++){const a=n[i];let s=o.nextPart.get(a);s||(s=Rr(),o.nextPart.set(a,s)),o=s}return o},hl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,xl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),n=Object.create(null);const r=(i,a)=>{o[i]=a,t++,t>e&&(t=0,n=o,o=Object.create(null))};return{get(i){let a=o[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return r(i,a),a},set(i,a){i in o?o[i]=a:r(i,a)}}},Fo="!",Ln=":",bl=[],Fn=(e,t,o,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:n,isExternal:r}),yl=e=>{const{prefix:t,experimentalParseClassName:o}=e;let n=r=>{const i=[];let a=0,s=0,c=0,u;const f=r.length;for(let v=0;v<f;v++){const h=r[v];if(a===0&&s===0){if(h===Ln){i.push(r.slice(c,v)),c=v+1;continue}if(h==="/"){u=v;continue}}h==="["?a++:h==="]"?a--:h==="("?s++:h===")"&&s--}const p=i.length===0?r:r.slice(c);let g=p,m=!1;p.endsWith(Fo)?(g=p.slice(0,-1),m=!0):p.startsWith(Fo)&&(g=p.slice(1),m=!0);const b=u&&u>c?u-c:void 0;return Fn(i,m,g,b)};if(t){const r=t+Ln,i=n;n=a=>a.startsWith(r)?i(a.slice(r.length)):Fn(bl,!1,a,void 0,!0)}if(o){const r=n;n=i=>o({className:i,parseClassName:r})}return n},wl=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,n)=>{t.set(o,1e6+n)}),o=>{const n=[];let r=[];for(let i=0;i<o.length;i++){const a=o[i],s=a[0]==="[",c=t.has(a);s||c?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Cl=e=>({cache:xl(e.cacheSize),parseClassName:yl(e),sortModifiers:wl(e),...cl(e)}),Sl=/\s+/,Rl=(e,t)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i}=t,a=[],s=e.trim().split(Sl);let c="";for(let u=s.length-1;u>=0;u-=1){const f=s[u],{isExternal:p,modifiers:g,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}=o(f);if(p){c=f+(c.length>0?" "+c:c);continue}let h=!!v,y=n(h?b.substring(0,v):b);if(!y){if(!h){c=f+(c.length>0?" "+c:c);continue}if(y=n(b),!y){c=f+(c.length>0?" "+c:c);continue}h=!1}const x=g.length===0?"":g.length===1?g[0]:i(g).join(":"),w=m?x+Fo:x,C=w+y;if(a.indexOf(C)>-1)continue;a.push(C);const S=r(y,h);for(let k=0;k<S.length;++k){const E=S[k];a.push(w+E)}c=f+(c.length>0?" "+c:c)}return c},El=(...e)=>{let t=0,o,n,r="";for(;t<e.length;)(o=e[t++])&&(n=Tr(o))&&(r&&(r+=" "),r+=n);return r},Tr=e=>{if(typeof e=="string")return e;let t,o="";for(let n=0;n<e.length;n++)e[n]&&(t=Tr(e[n]))&&(o&&(o+=" "),o+=t);return o},Pl=(e,...t)=>{let o,n,r,i;const a=c=>{const u=t.reduce((f,p)=>p(f),e());return o=Cl(u),n=o.cache.get,r=o.cache.set,i=s,s(c)},s=c=>{const u=n(c);if(u)return u;const f=Rl(c,o);return r(c,f),f};return i=a,(...c)=>i(El(...c))},Tl=[],re=e=>{const t=o=>o[e]||Tl;return t.isThemeGetter=!0,t},kr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ar=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kl=/^\d+\/\d+$/,Al=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Il=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ol=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>kl.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>!!e&&Number.isInteger(Number(e)),So=e=>e.endsWith("%")&&W(e.slice(0,-1)),Pe=e=>Al.test(e),_l=()=>!0,Ml=e=>Il.test(e)&&!Nl.test(e),Ir=()=>!1,Dl=e=>jl.test(e),Ll=e=>Ol.test(e),Fl=e=>!N(e)&&!j(e),$l=e=>at(e,Or,Ir),N=e=>kr.test(e),ze=e=>at(e,_r,Ml),Ro=e=>at(e,Wl,W),$n=e=>at(e,Nr,Ir),Bl=e=>at(e,jr,Ll),It=e=>at(e,Mr,Dl),j=e=>Ar.test(e),mt=e=>st(e,_r),ql=e=>st(e,Gl),Bn=e=>st(e,Nr),zl=e=>st(e,Or),Vl=e=>st(e,jr),Nt=e=>st(e,Mr,!0),at=(e,t,o)=>{const n=kr.exec(e);return n?n[1]?t(n[1]):o(n[2]):!1},st=(e,t,o=!1)=>{const n=Ar.exec(e);return n?n[1]?t(n[1]):o:!1},Nr=e=>e==="position"||e==="percentage",jr=e=>e==="image"||e==="url",Or=e=>e==="length"||e==="size"||e==="bg-size",_r=e=>e==="length",Wl=e=>e==="number",Gl=e=>e==="family-name",Mr=e=>e==="shadow",Hl=()=>{const e=re("color"),t=re("font"),o=re("text"),n=re("font-weight"),r=re("tracking"),i=re("leading"),a=re("breakpoint"),s=re("container"),c=re("spacing"),u=re("radius"),f=re("shadow"),p=re("inset-shadow"),g=re("text-shadow"),m=re("drop-shadow"),b=re("blur"),v=re("perspective"),h=re("aspect"),y=re("ease"),x=re("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),j,N],k=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],R=()=>[j,N,c],F=()=>[Ke,"full","auto",...R()],B=()=>[Ie,"none","subgrid",j,N],K=()=>["auto",{span:["full",Ie,j,N]},Ie,j,N],Y=()=>[Ie,"auto",j,N],Z=()=>["auto","min","max","fr",j,N],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...R()],z=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],T=()=>[e,j,N],te=()=>[...C(),Bn,$n,{position:[j,N]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],se=()=>["auto","cover","contain",zl,$l,{size:[j,N]}],P=()=>[So,mt,ze],O=()=>["","none","full",u,j,N],D=()=>["",W,mt,ze],_=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[W,So,Bn,$n],V=()=>["","none",b,j,N],U=()=>["none",W,j,N],X=()=>["none",W,j,N],ee=()=>[W,j,N],J=()=>[Ke,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pe],breakpoint:[Pe],color:[_l],container:[Pe],"drop-shadow":[Pe],ease:["in","out","in-out"],font:[Fl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pe],shadow:[Pe],spacing:["px",W],text:[Pe],"text-shadow":[Pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,N,j,h]}],container:["container"],columns:[{columns:[W,N,j,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:S()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],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:[Ie,"auto",j,N]}],basis:[{basis:[Ke,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,Ke,"auto","initial","none",N]}],grow:[{grow:["",W,j,N]}],shrink:[{shrink:["",W,j,N]}],order:[{order:[Ie,"first","last","none",j,N]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[s,"screen",...z()]}],"min-w":[{"min-w":[s,"screen","none",...z()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",o,mt,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,j,Ro]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",So,N]}],"font-family":[{font:[ql,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,j,N]}],"line-clamp":[{"line-clamp":[W,"none",j,Ro]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",j,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",j,ze]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[W,"auto",j,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,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",j,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:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ie,j,N],radial:["",j,N],conic:[Ie,j,N]},Vl,Bl]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._(),"hidden","none"]}],"divide-style":[{divide:[..._(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[..._(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,j,N]}],"outline-w":[{outline:["",W,mt,ze]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",f,Nt,It]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",p,Nt,It]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[W,ze]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",g,Nt,It]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[W,j,N]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[j,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,N]}],filter:[{filter:["","none",j,N]}],blur:[{blur:V()}],brightness:[{brightness:[W,j,N]}],contrast:[{contrast:[W,j,N]}],"drop-shadow":[{"drop-shadow":["","none",m,Nt,It]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",W,j,N]}],"hue-rotate":[{"hue-rotate":[W,j,N]}],invert:[{invert:["",W,j,N]}],saturate:[{saturate:[W,j,N]}],sepia:[{sepia:["",W,j,N]}],"backdrop-filter":[{"backdrop-filter":["","none",j,N]}],"backdrop-blur":[{"backdrop-blur":V()}],"backdrop-brightness":[{"backdrop-brightness":[W,j,N]}],"backdrop-contrast":[{"backdrop-contrast":[W,j,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,j,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,j,N]}],"backdrop-invert":[{"backdrop-invert":["",W,j,N]}],"backdrop-opacity":[{"backdrop-opacity":[W,j,N]}],"backdrop-saturate":[{"backdrop-saturate":[W,j,N]}],"backdrop-sepia":[{"backdrop-sepia":["",W,j,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",j,N]}],ease:[{ease:["linear","initial",y,j,N]}],delay:[{delay:[W,j,N]}],animate:[{animate:["none",x,j,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,j,N]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[j,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"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:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j,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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",j,N]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[W,mt,ze,Ro]}],stroke:[{stroke:["none",...T()]}],"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"]}},Ul=Pl(Hl),I=(...e)=>Ul(Sr(e));function qn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Oe(...e){return t=>{let o=!1;const n=e.map(r=>{const i=qn(r,t);return!o&&typeof i=="function"&&(o=!0),i});if(o)return()=>{for(let r=0;r<n.length;r++){const i=n[r];typeof i=="function"?i():qn(e[r],null)}}}}function Q(...e){return l.useCallback(Oe(...e),e)}var Kl=Symbol.for("react.lazy"),zt=l[" use ".trim().toString()];function Yl(e){return typeof e=="object"&&e!==null&&"then"in e}function Dr(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Kl&&"_payload"in e&&Yl(e._payload)}function Lr(e){const t=Zl(e),o=l.forwardRef((n,r)=>{let{children:i,...a}=n;Dr(i)&&typeof zt=="function"&&(i=zt(i._payload));const s=l.Children.toArray(i),c=s.find(Ql);if(c){const u=c.props.children,f=s.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...a,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...a,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}var on=Lr("Slot");function Zl(e){const t=l.forwardRef((o,n)=>{let{children:r,...i}=o;if(Dr(r)&&typeof zt=="function"&&(r=zt(r._payload)),l.isValidElement(r)){const a=ec(r),s=Jl(i,r.props);return r.type!==l.Fragment&&(s.ref=n?Oe(n,a):a),l.cloneElement(r,s)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xl=Symbol("radix.slottable");function Ql(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xl}function Jl(e,t){const o={...t};for(const n in t){const r=e[n],i=t[n];/^on[A-Z]/.test(n)?r&&i?o[n]=(...s)=>{const c=i(...s);return r(...s),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function ec(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}const zn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vn=Sr,Ae=(e,t)=>o=>{var n;if((t==null?void 0:t.variants)==null)return Vn(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(u=>{const f=o==null?void 0:o[u],p=i==null?void 0:i[u];if(f===null)return null;const g=zn(f)||zn(p);return r[u][g]}),s=o&&Object.entries(o).reduce((u,f)=>{let[p,g]=f;return g===void 0||(u[p]=g),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:g,...m}=f;return Object.entries(m).every(b=>{let[v,h]=b;return Array.isArray(h)?h.includes({...i,...s}[v]):{...i,...s}[v]===h})?[...u,p,g]:u},[]);return Vn(e,a,c,o==null?void 0:o.class,o==null?void 0:o.className)},nn=Ae("volt-ui-inline-flex volt-ui-items-center volt-ui-justify-center volt-ui-font-normal volt-ui-whitespace-nowrap volt-ui-transition-all volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50 volt-ui-rounded-full volt-ui-shrink-0 [&_svg]:shrink-0 [&_svg]:pointer-events-none",{variants:{variant:{primary:"volt-ui-bg-accent-solid volt-ui-text-accent-contrast volt-ui-hover:bg-accent-solid-hover volt-ui-active:bg-accent-solid-hover volt-ui-focus-visible:outline-accent-a8",secondary:"volt-ui-bg-accent-soft volt-ui-text-accent-light volt-ui-hover:bg-accent-soft-hover volt-ui-focus-visible:outline-accent-a8",tertiary:"volt-ui-bg-transparent volt-ui-text-accent-light volt-ui-hover:bg-accent-soft volt-ui-focus-visible:outline-accent-a8",destructive:"volt-ui-bg-error-a9 volt-ui-text-error-contrast volt-ui-hover:bg-error-solid-hover volt-ui-active:bg-error-solid-hover volt-ui-focus-visible:outline-error-a8"},size:{xs:"volt-ui-px-2 volt-ui-py-1 volt-ui-min-h-5 volt-ui-text-xs volt-ui-gap-[4px] [&_svg]:size-[12px] volt-ui-has-[>svg]:px-1",sm:"volt-ui-px-3 volt-ui-py-1 volt-ui-min-h-6 volt-ui-text-sm volt-ui-gap-[6px] [&_svg]:size-[14px] volt-ui-has-[>svg]:px-1.25",base:"volt-ui-px-4 volt-ui-py-1 volt-ui-min-h-9 volt-ui-text-base volt-ui-gap-2 [&_svg]:size-4 volt-ui-has-[>svg]:px-2.5",lg:"volt-ui-px-6 volt-ui-py-2.5 volt-ui-min-h-10 volt-ui-text-lg volt-ui-gap-2 [&_svg]:size-6 volt-ui-has-[>svg]:px-2.5"}},defaultVariants:{variant:"primary",size:"base"}}),Fr=oe.forwardRef(({variant:e,size:t,asChild:o=!1,className:n,...r},i)=>{const a=o?on:"button";return d.jsx(a,{"data-slot":"button",className:I(nn({variant:e,size:t,className:n})),ref:i,...r})});Fr.displayName="Button";var tc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Re=tc.reduce((e,t)=>{const o=Lr(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:a,...s}=r,c=a?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),oc="Separator",Wn="horizontal",nc=["horizontal","vertical"],$r=l.forwardRef((e,t)=>{const{decorative:o,orientation:n=Wn,...r}=e,i=rc(n)?n:Wn,s=o?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return d.jsx(Re.div,{"data-orientation":i,...s,...r,ref:t})});$r.displayName=oc;function rc(e){return nc.includes(e)}var ic=$r;const Br=({className:e,orientation:t="horizontal",decorative:o=!0,...n})=>d.jsx(ic,{"data-slot":"separator",decorative:o,orientation:t,className:I("volt-ui-bg-gray-a5 volt-ui-shrink-0 volt-ui-data-[orientation=horizontal]:h-px volt-ui-data-[orientation=horizontal]:w-full volt-ui-data-[orientation=vertical]:h-full volt-ui-data-[orientation=vertical]:w-px",e),...n}),ac=Ae("volt-ui-flex volt-ui-w-fit volt-ui-items-stretch volt-ui-*:focus-visible:z-10 volt-ui-*:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='volt-ui-w-'])]:w-fit [&>input]:flex-1 volt-ui-has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md volt-ui-has-[>[data-slot=button-group]]:gap-2",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"volt-ui-flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}}),sc=({className:e,orientation:t,...o})=>d.jsx("div",{role:"group","data-slot":"volt-ui-button-group","data-orientation":t,className:I(ac({orientation:t}),e),...o}),lc=({className:e,asChild:t=!1,...o})=>{const n=t?on:"div";return d.jsx(n,{className:I("volt-ui-bg-gray-a4 volt-ui-flex volt-ui-items-center volt-ui-gap-2 volt-ui-rounded-md volt-ui-border volt-ui-px-4 volt-ui-py-3 volt-ui-text-sm volt-ui-font-medium volt-ui-shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='volt-ui-size-'])]:size-4",e),...o})},cc=({className:e,orientation:t="vertical",...o})=>d.jsx(Br,{"data-slot":"volt-ui-button-group-separator",orientation:t,className:I("volt-ui-bg-body! volt-ui-m-0 volt-ui-relative volt-ui-self-stretch volt-ui-data-[orientation=vertical]:h-px",e),...o});var uc="Label",qr=l.forwardRef((e,t)=>d.jsx(Re.label,{...e,ref:t,onMouseDown:o=>{var r;o.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}}));qr.displayName=uc;var dc=qr;const fc=Ae("volt-ui-flex volt-ui-items-center volt-ui-gap-2 volt-ui-leading-none volt-ui-font-normal volt-ui-group-data-[disabled=true]:pointer-events-none volt-ui-group-data-[disabled=true]:opacity-50 volt-ui-peer-disabled:cursor-not-allowed volt-ui-peer-disabled:opacity-50",{variants:{variant:{primary:"volt-ui-text-gray-default",destructive:"volt-ui-text-error-a12"},size:{sm:"volt-ui-text-xs",base:"volt-ui-text-sm",lg:"volt-ui-text-base"}},defaultVariants:{variant:"primary",size:"base"}}),rn=({variant:e,size:t,className:o,...n})=>d.jsx(dc,{"data-slot":"label",className:I(fc({variant:e,size:t,className:o})),...n}),zr=oe.createContext(null),wt=()=>{const e=oe.useContext(zr);if(!e)throw new Error("FieldInput must be used within a Field component");return e},pc=({className:e,...t})=>d.jsx("div",{"data-slot":"field-group",className:I("volt-ui-group/field-group volt-ui-@container/field-group volt-ui-flex volt-ui-w-full volt-ui-flex-col volt-ui-gap-2 volt-ui-*:data-[slot=field-group]:gap-2 [&>div[data-slot=field]+[data-slot=field-description]]:pl-3",e),...t}),vc=({className:e,...t})=>d.jsx("fieldset",{"data-slot":"field-set",className:I("volt-ui-flex volt-ui-flex-col volt-ui-gap-6",e),...t}),mc=Ae("volt-ui-relative volt-ui-flex-col volt-ui-*:w-full [&>.sr-only]:w-auto volt-ui-group/field volt-ui-flex volt-ui-w-full volt-ui-py-2 volt-ui-px-3 volt-ui-gap-1 volt-ui-corner-squircle-lg volt-ui-rounded-lg volt-ui-transition-all volt-ui-focus-within:outline-2 volt-ui-focus-within:outline-offset-2 volt-ui-focus-within:outline-accent-a8 volt-ui-has-[input[data-readonly=true]]:bg-gray-a4 volt-ui-has-[input[disabled]]:bg-gray-a4 volt-ui-has-[input[data-readonly=true]]:focus-within:outline-gray-a8 volt-ui-has-[input[disabled]]:focus-within:outline-gray-a8 volt-ui-has-[button[data-slot=select-trigger][disabled]]:bg-gray-a4 volt-ui-has-[button[data-slot=select-trigger][disabled]]:focus-within:outline-gray-a8 volt-ui-has-[textarea[data-readonly=true]]:bg-gray-a4 volt-ui-has-[textarea[disabled]]:bg-gray-a4 volt-ui-has-[textarea[data-readonly=true]]:focus-within:outline-gray-a8 volt-ui-has-[textarea[disabled]]:focus-within:outline-gray-a8",{variants:{variant:{default:"volt-ui-bg-gray-a3 volt-ui-hover:bg-gray-a4",highlight:"volt-ui-bg-accent-a3 volt-ui-hover:bg-accent-a4",destructive:"volt-ui-bg-error-soft volt-ui-hover:bg-error-a4 volt-ui-focus-within:outline-error-a8"}},defaultVariants:{variant:"default"}}),gc=({className:e,variant:t,children:o,onClick:n,...r})=>{const i=l.useRef(null);return d.jsx(zr.Provider,{value:{inputRef:i},children:d.jsx("div",{role:"group","data-slot":"field",className:I(mc({variant:t}),e),onClick:a=>{var s,c;a.stopPropagation(),a.target===a.currentTarget&&i.current&&!i.current.disabled&&((c=(s=i.current)==null?void 0:s.dataset.slot)!=null&&c.match(/select-trigger/)&&i.current.click(),i.current.focus()),n==null||n(a)},...r,children:o})})},hc=({className:e,...t})=>d.jsx("div",{"data-slot":"field-content",className:I("volt-ui-group/field-content volt-ui-flex volt-ui-flex-1 volt-ui-flex-col volt-ui-gap-2 volt-ui-leading-snug",e),...t}),xc=({className:e,...t})=>d.jsx(rn,{"data-slot":"field-label",className:I("volt-ui-group/field-label volt-ui-min-h-5 volt-ui-text-xs volt-ui-peer/field-label volt-ui-flex volt-ui-w-fit volt-ui-gap-2 volt-ui-leading-snug volt-ui-group-data-[disabled=true]/field:opacity-50","volt-ui-has-[>[data-slot=field]]:w-full volt-ui-has-[>[data-slot=field]]:flex-col volt-ui-has-[>[data-slot=field]]:rounded-md volt-ui-has-[>[data-slot=field]]:border volt-ui-*:data-[slot=field]:p-4","volt-ui-has-data-[state=checked]:bg-accent-a3/5 volt-ui-has-data-[state=checked]:border-accent-a3 volt-ui-dark:has-data-[state=checked]:bg-accent-a3/10",e),...t}),bc=({className:e,showOnHover:t=!0,...o})=>d.jsx("div",{"data-slot":"field-label-content",className:I("volt-ui-items-center volt-ui-gap-1 volt-ui-transition-opacity volt-ui-duration-150",{"volt-ui-hidden volt-ui-pointer-events-none volt-ui-group-hover/field:inline-flex volt-ui-group-hover/field:pointer-events-auto":t,"volt-ui-inline-flex":!t},e),...o}),yc=({className:e,...t})=>d.jsx("p",{"data-slot":"field-description",className:I("volt-ui-text-gray-default volt-ui-text-xs volt-ui-leading-normal volt-ui-font-normal","volt-ui-last:mt-0 volt-ui-nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-gray-default [&>a]:underline [&>a]:underline-offset-4",e),...t}),wc=({className:e,children:t,errors:o,...n})=>{const r=oe.useMemo(()=>{var a;if(t)return t;if(!(o!=null&&o.length))return null;const i=[...new Map(o.map(s=>[s==null?void 0:s.message,s])).values()];return(i==null?void 0:i.length)==1?(a=i[0])==null?void 0:a.message:d.jsx("ul",{className:"volt-ui-flex volt-ui-list-disc volt-ui-flex-col volt-ui-m-0",children:i.map((s,c)=>(s==null?void 0:s.message)&&d.jsx("li",{className:"volt-ui-text-error-light volt-ui-text-xs volt-ui-font-normal volt-ui-my-1 volt-ui-marker:text-error-light",children:s.message},c))})},[t,o]);return r?d.jsx("div",{role:"alert","data-slot":"field-error",className:I("volt-ui-text-error-light volt-ui-text-xs volt-ui-font-normal",e),...n,children:r}):null},Vr=oe.forwardRef(({className:e,...t},o)=>{const{inputRef:n}=wt();return d.jsx("input",{ref:r=>{n.current=r,typeof o=="function"?o(r):o&&(o.current=r)},"data-readonly":t.readOnly,"data-slot":"field-input",className:I("volt-ui-group/field-input volt-ui-w-full volt-ui-h-6 volt-ui-outline-none volt-ui-text-sm volt-ui-text-gray-default volt-ui-focus-visible:outline-none volt-ui-placeholder:text-gray-a8 volt-ui-disabled:cursor-not-allowed",e),...t})});Vr.displayName="FieldInput";const Wr=oe.forwardRef(({className:e,...t},o)=>d.jsx("div",{ref:o,"data-slot":"field-input-group",className:I("volt-ui-flex volt-ui-items-center volt-ui-gap-1",e),...t}));Wr.displayName="FieldInputGroup";const Cc=Ae("volt-ui-text-gray-light volt-ui-flex volt-ui-h-auto volt-ui-cursor-text volt-ui-whitespace-nowrap volt-ui-items-center volt-ui-justify-center volt-ui-gap-2 volt-ui-text-sm volt-ui-font-normal volt-ui-select-none volt-ui-group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{start:"volt-ui-order-first",end:"volt-ui-order-last"}},defaultVariants:{align:"start"}}),Sc=({className:e,align:t="start",...o})=>d.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:I(Cc({align:t}),e),...o}),Gr=oe.forwardRef(({className:e,resize:t="none",...o},n)=>{const{inputRef:r}=wt();return d.jsx("textarea",{ref:i=>{r.current=i,typeof n=="function"?n(i):n&&(n.current=i)},"data-readonly":o.readOnly,"data-slot":"field-textarea","data-resize":t,className:I("volt-ui-group/field-textarea volt-ui-w-full volt-ui-outline-none volt-ui-text-sm volt-ui-text-gray-default volt-ui-focus-visible:outline-none volt-ui-data-[resize=none]:resize-none volt-ui-data-[resize=vertical]:resize-vertical volt-ui-data-[resize=horizontal]:resize-horizontal volt-ui-placeholder:text-gray-a8 volt-ui-disabled:cursor-not-allowed",e),...o})});Gr.displayName="FieldTextarea";var Gn=1,Rc=.9,Ec=.8,Pc=.17,Eo=.1,Po=.999,Tc=.9999,kc=.99,Ac=/[\\\/_+.#"@\[\(\{&]/,Ic=/[\\\/_+.#"@\[\(\{&]/g,Nc=/[\s-]/,Hr=/[\s-]/g;function $o(e,t,o,n,r,i,a){if(i===t.length)return r===e.length?Gn:kc;var s=`${r},${i}`;if(a[s]!==void 0)return a[s];for(var c=n.charAt(i),u=o.indexOf(c,r),f=0,p,g,m,b;u>=0;)p=$o(e,t,o,n,u+1,i+1,a),p>f&&(u===r?p*=Gn:Ac.test(e.charAt(u-1))?(p*=Ec,m=e.slice(r,u-1).match(Ic),m&&r>0&&(p*=Math.pow(Po,m.length))):Nc.test(e.charAt(u-1))?(p*=Rc,b=e.slice(r,u-1).match(Hr),b&&r>0&&(p*=Math.pow(Po,b.length))):(p*=Pc,r>0&&(p*=Math.pow(Po,u-r))),e.charAt(u)!==t.charAt(i)&&(p*=Tc)),(p<Eo&&o.charAt(u-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&o.charAt(u-1)!==n.charAt(i))&&(g=$o(e,t,o,n,u+1,i+2,a),g*Eo>p&&(p=g*Eo)),p>f&&(f=p),u=o.indexOf(c,u+1);return a[s]=f,f}function Hn(e){return e.toLowerCase().replace(Hr," ")}function jc(e,t,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,$o(e,t,Hn(e),Hn(t),0,0,{})}function L(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e==null||e(r),o===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Oc(e,t){const o=l.createContext(t),n=i=>{const{children:a,...s}=i,c=l.useMemo(()=>s,Object.values(s));return d.jsx(o.Provider,{value:c,children:a})};n.displayName=e+"Provider";function r(i){const a=l.useContext(o);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,r]}function de(e,t=[]){let o=[];function n(i,a){const s=l.createContext(a),c=o.length;o=[...o,a];const u=p=>{var y;const{scope:g,children:m,...b}=p,v=((y=g==null?void 0:g[e])==null?void 0:y[c])||s,h=l.useMemo(()=>b,Object.values(b));return d.jsx(v.Provider,{value:h,children:m})};u.displayName=i+"Provider";function f(p,g){var v;const m=((v=g==null?void 0:g[e])==null?void 0:v[c])||s,b=l.useContext(m);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,f]}const r=()=>{const i=o.map(a=>l.createContext(a));return function(s){const c=(s==null?void 0:s[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return r.scopeName=e,[n,_c(r,...t)]}function _c(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const a=n.reduce((s,{useScope:c,scopeName:u})=>{const p=c(i)[`__scope${u}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return o.scopeName=t.scopeName,o}var ae=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Mc=l[" useId ".trim().toString()]||(()=>{}),Dc=0;function ie(e){const[t,o]=l.useState(Mc());return ae(()=>{o(n=>n??String(Dc++))},[e]),e||(t?`radix-${t}`:"")}var Lc=l[" useInsertionEffect ".trim().toString()]||ae;function fe({prop:e,defaultProp:t,onChange:o=()=>{},caller:n}){const[r,i,a]=Fc({defaultProp:t,onChange:o}),s=e!==void 0,c=s?e:r;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"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=s},[s,n])}const u=l.useCallback(f=>{var p;if(s){const g=$c(f)?f(e):f;g!==e&&((p=a.current)==null||p.call(a,g))}else i(f)},[s,e,i,a]);return[c,u]}function Fc({defaultProp:e,onChange:t}){const[o,n]=l.useState(e),r=l.useRef(o),i=l.useRef(t);return Lc(()=>{i.current=t},[t]),l.useEffect(()=>{var a;r.current!==o&&((a=i.current)==null||a.call(i,o),r.current=o)},[o,r]),[o,n,i]}function $c(e){return typeof e=="function"}function ot(e){const t=Bc(e),o=l.forwardRef((n,r)=>{const{children:i,...a}=n,s=l.Children.toArray(i),c=s.find(zc);if(c){const u=c.props.children,f=s.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...a,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...a,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function Bc(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const a=Wc(r),s=Vc(i,r.props);return r.type!==l.Fragment&&(s.ref=n?Oe(n,a):a),l.cloneElement(r,s)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ur=Symbol("radix.slottable");function qc(e){const t=({children:o})=>d.jsx(d.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=Ur,t}function zc(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ur}function Vc(e,t){const o={...t};for(const n in t){const r=e[n],i=t[n];/^on[A-Z]/.test(n)?r&&i?o[n]=(...s)=>{const c=i(...s);return r(...s),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function Wc(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Gc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=Gc.reduce((e,t)=>{const o=ot(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:a,...s}=r,c=a?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Hc(e,t){e&&Zt.flushSync(()=>e.dispatchEvent(t))}function _e(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...o)=>{var n;return(n=t.current)==null?void 0:n.call(t,...o)},[])}function Uc(e,t=globalThis==null?void 0:globalThis.document){const o=_e(e);l.useEffect(()=>{const n=r=>{r.key==="Escape"&&o(r)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[o,t])}var Kc="DismissableLayer",Bo="dismissableLayer.update",Yc="dismissableLayer.pointerDownOutside",Zc="dismissableLayer.focusOutside",Un,Kr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ct=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...c}=e,u=l.useContext(Kr),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=l.useState({}),b=Q(t,E=>p(E)),v=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(h),x=f?v.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,S=Jc(E=>{const R=E.target,F=[...u.branches].some(B=>B.contains(R));!C||F||(r==null||r(E),a==null||a(E),E.defaultPrevented||s==null||s())},g),k=eu(E=>{const R=E.target;[...u.branches].some(B=>B.contains(R))||(i==null||i(E),a==null||a(E),E.defaultPrevented||s==null||s())},g);return Uc(E=>{x===u.layers.size-1&&(n==null||n(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},g),l.useEffect(()=>{if(f)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Un=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Kn(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Un)}},[f,g,o,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Kn())},[f,u]),l.useEffect(()=>{const E=()=>m({});return document.addEventListener(Bo,E),()=>document.removeEventListener(Bo,E)},[]),d.jsx($.div,{...c,ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,k.onFocusCapture),onBlurCapture:L(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,S.onPointerDownCapture)})});Ct.displayName=Kc;var Xc="DismissableLayerBranch",Qc=l.forwardRef((e,t)=>{const o=l.useContext(Kr),n=l.useRef(null),r=Q(t,n);return l.useEffect(()=>{const i=n.current;if(i)return o.branches.add(i),()=>{o.branches.delete(i)}},[o.branches]),d.jsx($.div,{...e,ref:r})});Qc.displayName=Xc;function Jc(e,t=globalThis==null?void 0:globalThis.document){const o=_e(e),n=l.useRef(!1),r=l.useRef(()=>{});return l.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let c=function(){Yr(Yc,o,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,o]),{onPointerDownCapture:()=>n.current=!0}}function eu(e,t=globalThis==null?void 0:globalThis.document){const o=_e(e),n=l.useRef(!1);return l.useEffect(()=>{const r=i=>{i.target&&!n.current&&Yr(Zc,o,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,o]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Kn(){const e=new CustomEvent(Bo);document.dispatchEvent(e)}function Yr(e,t,o,{discrete:n}){const r=o.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&r.addEventListener(e,t,{once:!0}),n?Hc(r,i):r.dispatchEvent(i)}var To="focusScope.autoFocusOnMount",ko="focusScope.autoFocusOnUnmount",Yn={bubbles:!1,cancelable:!0},tu="FocusScope",Xt=l.forwardRef((e,t)=>{const{loop:o=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...a}=e,[s,c]=l.useState(null),u=_e(r),f=_e(i),p=l.useRef(null),g=Q(t,v=>c(v)),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let v=function(w){if(m.paused||!s)return;const C=w.target;s.contains(C)?p.current=C:Ne(p.current,{select:!0})},h=function(w){if(m.paused||!s)return;const C=w.relatedTarget;C!==null&&(s.contains(C)||Ne(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ne(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",h);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",h),x.disconnect()}}},[n,s,m.paused]),l.useEffect(()=>{if(s){Xn.add(m);const v=document.activeElement;if(!s.contains(v)){const y=new CustomEvent(To,Yn);s.addEventListener(To,u),s.dispatchEvent(y),y.defaultPrevented||(ou(su(Zr(s)),{select:!0}),document.activeElement===v&&Ne(s))}return()=>{s.removeEventListener(To,u),setTimeout(()=>{const y=new CustomEvent(ko,Yn);s.addEventListener(ko,f),s.dispatchEvent(y),y.defaultPrevented||Ne(v??document.body,{select:!0}),s.removeEventListener(ko,f),Xn.remove(m)},0)}}},[s,u,f,m]);const b=l.useCallback(v=>{if(!o&&!n||m.paused)return;const h=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(h&&y){const x=v.currentTarget,[w,C]=nu(x);w&&C?!v.shiftKey&&y===C?(v.preventDefault(),o&&Ne(w,{select:!0})):v.shiftKey&&y===w&&(v.preventDefault(),o&&Ne(C,{select:!0})):y===x&&v.preventDefault()}},[o,n,m.paused]);return d.jsx($.div,{tabIndex:-1,...a,ref:g,onKeyDown:b})});Xt.displayName=tu;function ou(e,{select:t=!1}={}){const o=document.activeElement;for(const n of e)if(Ne(n,{select:t}),document.activeElement!==o)return}function nu(e){const t=Zr(e),o=Zn(t,e),n=Zn(t.reverse(),e);return[o,n]}function Zr(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function Zn(e,t){for(const o of e)if(!ru(o,{upTo:t}))return o}function ru(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 iu(e){return e instanceof HTMLInputElement&&"select"in e}function Ne(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&iu(e)&&t&&e.select()}}var Xn=au();function au(){let e=[];return{add(t){const o=e[0];t!==o&&(o==null||o.pause()),e=Qn(e,t),e.unshift(t)},remove(t){var o;e=Qn(e,t),(o=e[0])==null||o.resume()}}}function Qn(e,t){const o=[...e],n=o.indexOf(t);return n!==-1&&o.splice(n,1),o}function su(e){return e.filter(t=>t.tagName!=="A")}var lu="Portal",St=l.forwardRef((e,t)=>{var s;const{container:o,...n}=e,[r,i]=l.useState(!1);ae(()=>i(!0),[]);const a=o||r&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?yr.createPortal(d.jsx($.div,{...n,ref:t}),a):null});St.displayName=lu;function cu(e,t){return l.useReducer((o,n)=>t[o][n]??o,e)}var ge=e=>{const{present:t,children:o}=e,n=uu(t),r=typeof o=="function"?o({present:n.isPresent}):l.Children.only(o),i=Q(n.ref,du(r));return typeof o=="function"||n.isPresent?l.cloneElement(r,{ref:i}):null};ge.displayName="Presence";function uu(e){const[t,o]=l.useState(),n=l.useRef(null),r=l.useRef(e),i=l.useRef("none"),a=e?"mounted":"unmounted",[s,c]=cu(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=jt(n.current);i.current=s==="mounted"?u:"none"},[s]),ae(()=>{const u=n.current,f=r.current;if(f!==e){const g=i.current,m=jt(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&g!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ae(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=m=>{const v=jt(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(c("ANIMATION_END"),!r.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=m=>{m.target===t&&(i.current=jt(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(u=>{n.current=u?getComputedStyle(u):null,o(u)},[])}}function jt(e){return(e==null?void 0:e.animationName)||"none"}function du(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Ao=0;function an(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Jn()),document.body.insertAdjacentElement("beforeend",e[1]??Jn()),Ao++,()=>{Ao===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ao--}},[])}function Jn(){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 ye=function(){return ye=Object.assign||function(t){for(var o,n=1,r=arguments.length;n<r;n++){o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},ye.apply(this,arguments)};function Xr(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o}function fu(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Ft="right-scroll-bar-position",$t="width-before-scroll-bar",pu="with-scroll-bars-hidden",vu="--removed-body-scroll-bar-size";function Io(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mu(e,t){var o=oe.useState(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(n){var r=o.value;r!==n&&(o.value=n,o.callback(n,r))}}}})[0];return o.callback=t,o.facade}var gu=typeof window<"u"?l.useLayoutEffect:l.useEffect,er=new WeakMap;function hu(e,t){var o=mu(null,function(n){return e.forEach(function(r){return Io(r,n)})});return gu(function(){var n=er.get(o);if(n){var r=new Set(n),i=new Set(e),a=o.current;r.forEach(function(s){i.has(s)||Io(s,null)}),i.forEach(function(s){r.has(s)||Io(s,a)})}er.set(o,e)},[e]),o}function xu(e){return e}function bu(e,t){t===void 0&&(t=xu);var o=[],n=!1,r={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(i){var a=t(i,n);return o.push(a),function(){o=o.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;o.length;){var a=o;o=[],a.forEach(i)}o={push:function(s){return i(s)},filter:function(){return o}}},assignMedium:function(i){n=!0;var a=[];if(o.length){var s=o;o=[],s.forEach(i),a=o}var c=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),o={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),o}}}};return r}function yu(e){e===void 0&&(e={});var t=bu(null);return t.options=ye({async:!0,ssr:!1},e),t}var Qr=function(e){var t=e.sideCar,o=Xr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,ye({},o))};Qr.isSideCarExport=!0;function wu(e,t){return e.useMedium(t),Qr}var Jr=yu(),No=function(){},Qt=l.forwardRef(function(e,t){var o=l.useRef(null),n=l.useState({onScrollCapture:No,onWheelCapture:No,onTouchMoveCapture:No}),r=n[0],i=n[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,m=e.noRelative,b=e.noIsolation,v=e.inert,h=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=Xr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,k=hu([o,t]),E=ye(ye({},C),r);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:Jr,removeScrollBar:u,shards:p,noRelative:m,noIsolation:b,inert:v,setCallbacks:i,allowPinchZoom:!!h,lockRef:o,gapMode:w}),a?l.cloneElement(l.Children.only(s),ye(ye({},E),{ref:k})):l.createElement(x,ye({},E,{className:c,ref:k}),s))});Qt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qt.classNames={fullWidth:$t,zeroRight:Ft};var Cu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Su(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Cu();return t&&e.setAttribute("nonce",t),e}function Ru(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Eu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pu=function(){var e=0,t=null;return{add:function(o){e==0&&(t=Su())&&(Ru(t,o),Eu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tu=function(){var e=Pu();return function(t,o){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}},ei=function(){var e=Tu(),t=function(o){var n=o.styles,r=o.dynamic;return e(n,r),null};return t},ku={left:0,top:0,right:0,gap:0},jo=function(e){return parseInt(e||"",10)||0},Au=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[jo(o),jo(n),jo(r)]},Iu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ku;var t=Au(e),o=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-o+t[2]-t[0])}},Nu=ei(),et="data-scroll-locked",ju=function(e,t,o,n){var r=e.left,i=e.top,a=e.right,s=e.gap;return o===void 0&&(o="margin"),`
2
- .`.concat(pu,` {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),oe=require("react"),Tr=require("react-dom");function kr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const i=kr(oe),Yt=kr(Tr);function Nr(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=Nr(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Ir(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Nr(e))&&(n&&(n+=" "),n+=t);return n}const Ei=(e,t)=>{const o=new Array(e.length+t.length);for(let n=0;n<e.length;n++)o[n]=e[n];for(let n=0;n<t.length;n++)o[e.length+n]=t[n];return o},Ai=(e,t)=>({classGroupId:e,validator:t}),jr=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),Vt="-",qn=[],Pi="arbitrary..",Ti=e=>{const t=Ni(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return ki(l);const s=l.split(Vt),c=s[0]===""&&s.length>1?1:0;return _r(s,c,t)},getConflictingClassGroupIds:(l,s)=>{if(s){const c=n[l],u=o[l];return c?u?Ei(u,c):c:u||qn}return o[l]||qn}}},_r=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const r=e[t],a=o.nextPart.get(r);if(a){const u=_r(e,t+1,a);if(u)return u}const l=o.validators;if(l===null)return;const s=t===0?e.join(Vt):e.slice(t).join(Vt),c=l.length;for(let u=0;u<c;u++){const f=l[u];if(f.validator(s))return f.classGroupId}},ki=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),n=t.slice(0,o);return n?Pi+n:void 0})(),Ni=e=>{const{theme:t,classGroups:o}=e;return Ii(o,t)},Ii=(e,t)=>{const o=jr();for(const n in e){const r=e[n];ln(r,o,n,t)}return o},ln=(e,t,o,n)=>{const r=e.length;for(let a=0;a<r;a++){const l=e[a];ji(l,t,o,n)}},ji=(e,t,o,n)=>{if(typeof e=="string"){_i(e,t,o);return}if(typeof e=="function"){Oi(e,t,o,n);return}Di(e,t,o,n)},_i=(e,t,o)=>{const n=e===""?t:Or(t,e);n.classGroupId=o},Oi=(e,t,o,n)=>{if(Mi(e)){ln(e(n),t,o,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Ai(o,e))},Di=(e,t,o,n)=>{const r=Object.entries(e),a=r.length;for(let l=0;l<a;l++){const[s,c]=r[l];ln(c,Or(t,s),o,n)}},Or=(e,t)=>{let o=e;const n=t.split(Vt),r=n.length;for(let a=0;a<r;a++){const l=n[a];let s=o.nextPart.get(l);s||(s=jr(),o.nextPart.set(l,s)),o=s}return o},Mi=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Li=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),n=Object.create(null);const r=(a,l)=>{o[a]=l,t++,t>e&&(t=0,n=o,o=Object.create(null))};return{get(a){let l=o[a];if(l!==void 0)return l;if((l=n[a])!==void 0)return r(a,l),l},set(a,l){a in o?o[a]=l:r(a,l)}}},zo="!",Wn=":",$i=[],Gn=(e,t,o,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:n,isExternal:r}),Fi=e=>{const{prefix:t,experimentalParseClassName:o}=e;let n=r=>{const a=[];let l=0,s=0,c=0,u;const f=r.length;for(let v=0;v<f;v++){const h=r[v];if(l===0&&s===0){if(h===Wn){a.push(r.slice(c,v)),c=v+1;continue}if(h==="/"){u=v;continue}}h==="["?l++:h==="]"?l--:h==="("?s++:h===")"&&s--}const p=a.length===0?r:r.slice(c);let m=p,g=!1;p.endsWith(zo)?(m=p.slice(0,-1),g=!0):p.startsWith(zo)&&(m=p.slice(1),g=!0);const b=u&&u>c?u-c:void 0;return Gn(a,g,m,b)};if(t){const r=t+Wn,a=n;n=l=>l.startsWith(r)?a(l.slice(r.length)):Gn($i,!1,l,void 0,!0)}if(o){const r=n;n=a=>o({className:a,parseClassName:r})}return n},Bi=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,n)=>{t.set(o,1e6+n)}),o=>{const n=[];let r=[];for(let a=0;a<o.length;a++){const l=o[a],s=l[0]==="[",c=t.has(l);s||c?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(l)):r.push(l)}return r.length>0&&(r.sort(),n.push(...r)),n}},Vi=e=>({cache:Li(e.cacheSize),parseClassName:Fi(e),sortModifiers:Bi(e),...Ti(e)}),zi=/\s+/,qi=(e,t)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:a}=t,l=[],s=e.trim().split(zi);let c="";for(let u=s.length-1;u>=0;u-=1){const f=s[u],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:v}=o(f);if(p){c=f+(c.length>0?" "+c:c);continue}let h=!!v,y=n(h?b.substring(0,v):b);if(!y){if(!h){c=f+(c.length>0?" "+c:c);continue}if(y=n(b),!y){c=f+(c.length>0?" "+c:c);continue}h=!1}const x=m.length===0?"":m.length===1?m[0]:a(m).join(":"),w=g?x+zo:x,C=w+y;if(l.indexOf(C)>-1)continue;l.push(C);const S=r(y,h);for(let T=0;T<S.length;++T){const E=S[T];l.push(w+E)}c=f+(c.length>0?" "+c:c)}return c},Wi=(...e)=>{let t=0,o,n,r="";for(;t<e.length;)(o=e[t++])&&(n=Dr(o))&&(r&&(r+=" "),r+=n);return r},Dr=e=>{if(typeof e=="string")return e;let t,o="";for(let n=0;n<e.length;n++)e[n]&&(t=Dr(e[n]))&&(o&&(o+=" "),o+=t);return o},Gi=(e,...t)=>{let o,n,r,a;const l=c=>{const u=t.reduce((f,p)=>p(f),e());return o=Vi(u),n=o.cache.get,r=o.cache.set,a=s,s(c)},s=c=>{const u=n(c);if(u)return u;const f=qi(c,o);return r(c,f),f};return a=l,(...c)=>a(Wi(...c))},Hi=[],re=e=>{const t=o=>o[e]||Hi;return t.isThemeGetter=!0,t},Mr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ui=/^\d+\/\d+$/,Ki=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zi=/\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$/,Yi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>Ui.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>!!e&&Number.isInteger(Number(e)),Po=e=>e.endsWith("%")&&W(e.slice(0,-1)),Ae=e=>Ki.test(e),Ji=()=>!0,ec=e=>Zi.test(e)&&!Yi.test(e),$r=()=>!1,tc=e=>Xi.test(e),oc=e=>Qi.test(e),nc=e=>!I(e)&&!j(e),rc=e=>st(e,Vr,$r),I=e=>Mr.test(e),qe=e=>st(e,zr,ec),To=e=>st(e,cc,W),Hn=e=>st(e,Fr,$r),ac=e=>st(e,Br,oc),Nt=e=>st(e,qr,tc),j=e=>Lr.test(e),gt=e=>it(e,zr),lc=e=>it(e,dc),Un=e=>it(e,Fr),sc=e=>it(e,Vr),ic=e=>it(e,Br),It=e=>it(e,qr,!0),st=(e,t,o)=>{const n=Mr.exec(e);return n?n[1]?t(n[1]):o(n[2]):!1},it=(e,t,o=!1)=>{const n=Lr.exec(e);return n?n[1]?t(n[1]):o:!1},Fr=e=>e==="position"||e==="percentage",Br=e=>e==="image"||e==="url",Vr=e=>e==="length"||e==="size"||e==="bg-size",zr=e=>e==="length",cc=e=>e==="number",dc=e=>e==="family-name",qr=e=>e==="shadow",uc=()=>{const e=re("color"),t=re("font"),o=re("text"),n=re("font-weight"),r=re("tracking"),a=re("leading"),l=re("breakpoint"),s=re("container"),c=re("spacing"),u=re("radius"),f=re("shadow"),p=re("inset-shadow"),m=re("text-shadow"),g=re("drop-shadow"),b=re("blur"),v=re("perspective"),h=re("aspect"),y=re("ease"),x=re("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),j,I],T=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],R=()=>[j,I,c],$=()=>[Ze,"full","auto",...R()],B=()=>[Ie,"none","subgrid",j,I],K=()=>["auto",{span:["full",Ie,j,I]},Ie,j,I],Z=()=>[Ie,"auto",j,I],Y=()=>["auto","min","max","fr",j,I],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...R()],z=()=>[Ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],P=()=>[e,j,I],te=()=>[...C(),Un,Hn,{position:[j,I]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],se=()=>["auto","cover","contain",sc,rc,{size:[j,I]}],A=()=>[Po,gt,qe],_=()=>["","none","full",u,j,I],M=()=>["",W,gt,qe],O=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>[W,Po,Un,Hn],q=()=>["","none",b,j,I],U=()=>["none",W,j,I],X=()=>["none",W,j,I],ee=()=>[W,j,I],J=()=>[Ze,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ae],breakpoint:[Ae],color:[Ji],container:[Ae],"drop-shadow":[Ae],ease:["in","out","in-out"],font:[nc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ae],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ae],shadow:[Ae],spacing:["px",W],text:[Ae],"text-shadow":[Ae],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ze,I,j,h]}],container:["container"],columns:[{columns:[W,I,j,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:S()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Ie,"auto",j,I]}],basis:[{basis:[Ze,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,Ze,"auto","initial","none",I]}],grow:[{grow:["",W,j,I]}],shrink:[{shrink:["",W,j,I]}],order:[{order:[Ie,"first","last","none",j,I]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],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":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[s,"screen",...z()]}],"min-w":[{"min-w":[s,"screen","none",...z()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",o,gt,qe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,j,To]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Po,I]}],"font-family":[{font:[lc,I,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,j,I]}],"line-clamp":[{"line-clamp":[W,"none",j,To]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",j,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",j,qe]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[W,"auto",j,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,I]}],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",j,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ie,j,I],radial:["",j,I],conic:[Ie,j,I]},ic,ac]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...O(),"hidden","none"]}],"divide-style":[{divide:[...O(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,j,I]}],"outline-w":[{outline:["",W,gt,qe]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",f,It,Nt]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",p,It,Nt]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[W,qe]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",m,It,Nt]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[W,j,I]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":k()}],"mask-image-linear-to-pos":[{"mask-linear-to":k()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":k()}],"mask-image-t-to-pos":[{"mask-t-to":k()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":k()}],"mask-image-r-to-pos":[{"mask-r-to":k()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":k()}],"mask-image-b-to-pos":[{"mask-b-to":k()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":k()}],"mask-image-l-to-pos":[{"mask-l-to":k()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":k()}],"mask-image-x-to-pos":[{"mask-x-to":k()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":k()}],"mask-image-y-to-pos":[{"mask-y-to":k()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[j,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":k()}],"mask-image-radial-to-pos":[{"mask-radial-to":k()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":k()}],"mask-image-conic-to-pos":[{"mask-conic-to":k()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,I]}],filter:[{filter:["","none",j,I]}],blur:[{blur:q()}],brightness:[{brightness:[W,j,I]}],contrast:[{contrast:[W,j,I]}],"drop-shadow":[{"drop-shadow":["","none",g,It,Nt]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",W,j,I]}],"hue-rotate":[{"hue-rotate":[W,j,I]}],invert:[{invert:["",W,j,I]}],saturate:[{saturate:[W,j,I]}],sepia:[{sepia:["",W,j,I]}],"backdrop-filter":[{"backdrop-filter":["","none",j,I]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[W,j,I]}],"backdrop-contrast":[{"backdrop-contrast":[W,j,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,j,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,j,I]}],"backdrop-invert":[{"backdrop-invert":["",W,j,I]}],"backdrop-opacity":[{"backdrop-opacity":[W,j,I]}],"backdrop-saturate":[{"backdrop-saturate":[W,j,I]}],"backdrop-sepia":[{"backdrop-sepia":["",W,j,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",j,I]}],ease:[{ease:["linear","initial",y,j,I]}],delay:[{delay:[W,j,I]}],animate:[{animate:["none",x,j,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,j,I]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[j,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"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:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",j,I]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",j,I]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[W,gt,qe,To]}],stroke:[{stroke:["none",...P()]}],"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"]}},fc=Gi(uc),N=(...e)=>fc(Ir(e));function Kn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ve(...e){return t=>{let o=!1;const n=e.map(r=>{const a=Kn(r,t);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let r=0;r<n.length;r++){const a=n[r];typeof a=="function"?a():Kn(e[r],null)}}}}function Q(...e){return i.useCallback(ve(...e),e)}var pc=Symbol.for("react.lazy"),zt=i[" use ".trim().toString()];function vc(e){return typeof e=="object"&&e!==null&&"then"in e}function Wr(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===pc&&"_payload"in e&&vc(e._payload)}function Xt(e){const t=mc(e),o=i.forwardRef((n,r)=>{let{children:a,...l}=n;Wr(a)&&typeof zt=="function"&&(a=zt(a._payload));const s=i.Children.toArray(a),c=s.find(hc);if(c){const u=c.props.children,f=s.map(p=>p===c?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...l,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...l,ref:r,children:a})});return o.displayName=`${e}.Slot`,o}var sn=Xt("Slot");function mc(e){const t=i.forwardRef((o,n)=>{let{children:r,...a}=o;if(Wr(r)&&typeof zt=="function"&&(r=zt(r._payload)),i.isValidElement(r)){const l=bc(r),s=xc(a,r.props);return r.type!==i.Fragment&&(s.ref=n?ve(n,l):l),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gc=Symbol("radix.slottable");function hc(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gc}function xc(e,t){const o={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...s)=>{const c=a(...s);return r(...s),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...a}:n==="className"&&(o[n]=[r,a].filter(Boolean).join(" "))}return{...e,...o}}function bc(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}const Zn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Yn=Ir,ke=(e,t)=>o=>{var n;if((t==null?void 0:t.variants)==null)return Yn(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:r,defaultVariants:a}=t,l=Object.keys(r).map(u=>{const f=o==null?void 0:o[u],p=a==null?void 0:a[u];if(f===null)return null;const m=Zn(f)||Zn(p);return r[u][m]}),s=o&&Object.entries(o).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:m,...g}=f;return Object.entries(g).every(b=>{let[v,h]=b;return Array.isArray(h)?h.includes({...a,...s}[v]):{...a,...s}[v]===h})?[...u,p,m]:u},[]);return Yn(e,l,c,o==null?void 0:o.class,o==null?void 0:o.className)},Ct=ke("volt-inline-flex volt-items-center volt-justify-center volt-font-normal volt-whitespace-nowrap volt-transition-all volt-cursor-pointer volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-disabled:pointer-events-none volt-disabled:opacity-50 volt-rounded-full volt-shrink-0 [&_svg]:shrink-0 [&_svg]:pointer-events-none",{variants:{variant:{primary:"volt-bg-accent-solid volt-text-accent-contrast volt-hover:bg-accent-solid-hover volt-active:bg-accent-solid-hover volt-focus-visible:outline-accent-a8",secondary:"volt-bg-accent-soft volt-text-accent-light volt-hover:bg-accent-soft-hover volt-focus-visible:outline-accent-a8",tertiary:"volt-bg-transparent volt-text-accent-light volt-hover:bg-accent-soft volt-focus-visible:outline-accent-a8",destructive:"volt-bg-error-a9 volt-text-error-contrast volt-hover:bg-error-solid-hover volt-active:bg-error-solid-hover volt-focus-visible:outline-error-a8"},size:{xs:"volt-px-2 volt-py-1 volt-min-h-5 volt-text-xs volt-gap-[4px] [&_svg]:size-[12px] volt-has-[>svg]:px-1",sm:"volt-px-3 volt-py-1 volt-min-h-6 volt-text-sm volt-gap-[6px] [&_svg]:size-[14px] volt-has-[>svg]:px-1.25",base:"volt-px-4 volt-py-1 volt-min-h-9 volt-text-base volt-gap-2 [&_svg]:size-4 volt-has-[>svg]:px-2.5",lg:"volt-px-6 volt-py-2.5 volt-min-h-10 volt-text-lg volt-gap-2 [&_svg]:size-6 volt-has-[>svg]:px-2.5"}},defaultVariants:{variant:"primary",size:"base"}}),Gr=oe.forwardRef(({variant:e,size:t,asChild:o=!1,className:n,...r},a)=>{const l=o?sn:"button";return d.jsx(l,{"data-slot":"button",className:N(Ct({variant:e,size:t,className:n})),ref:a,...r})});Gr.displayName="Button";var yc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wc=yc.reduce((e,t)=>{const o=Xt(`Primitive.${t}`),n=i.forwardRef((r,a)=>{const{asChild:l,...s}=r,c=l?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Cc="Separator",Xn="horizontal",Sc=["horizontal","vertical"],Hr=i.forwardRef((e,t)=>{const{decorative:o,orientation:n=Xn,...r}=e,a=Rc(n)?n:Xn,s=o?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return d.jsx(wc.div,{"data-orientation":a,...s,...r,ref:t})});Hr.displayName=Cc;function Rc(e){return Sc.includes(e)}var Ec=Hr;const Ur=({className:e,orientation:t="horizontal",decorative:o=!0,...n})=>d.jsx(Ec,{"data-slot":"separator",decorative:o,orientation:t,className:N("volt-bg-gray-a5 volt-shrink-0 volt-data-[orientation=horizontal]:h-px volt-data-[orientation=horizontal]:w-full volt-data-[orientation=vertical]:h-full volt-data-[orientation=vertical]:w-px",e),...n}),Ac=ke("volt-flex volt-w-fit volt-items-stretch volt-*:focus-visible:z-10 volt-*:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='volt-w-'])]:w-fit [&>input]:flex-1 volt-has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md volt-has-[>[data-slot=button-group]]:gap-2",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"volt-flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}}),Pc=({className:e,orientation:t,...o})=>d.jsx("div",{role:"group","data-slot":"volt-button-group","data-orientation":t,className:N(Ac({orientation:t}),e),...o}),Tc=({className:e,asChild:t=!1,...o})=>{const n=t?sn:"div";return d.jsx(n,{className:N("volt-bg-gray-a4 volt-flex volt-items-center volt-gap-2 volt-rounded-md volt-border volt-px-4 volt-py-3 volt-text-sm volt-font-medium volt-shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='volt-size-'])]:size-4",e),...o})},kc=({className:e,orientation:t="vertical",...o})=>d.jsx(Ur,{"data-slot":"volt-button-group-separator",orientation:t,className:N("volt-bg-body! volt-m-0 volt-relative volt-self-stretch volt-data-[orientation=vertical]:h-px",e),...o});var Nc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ic=Nc.reduce((e,t)=>{const o=Xt(`Primitive.${t}`),n=i.forwardRef((r,a)=>{const{asChild:l,...s}=r,c=l?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),jc="Label",Kr=i.forwardRef((e,t)=>d.jsx(Ic.label,{...e,ref:t,onMouseDown:o=>{var r;o.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}}));Kr.displayName=jc;var _c=Kr;const Oc=ke("volt-flex volt-items-center volt-gap-2 volt-leading-none volt-font-normal volt-group-data-[disabled=true]:pointer-events-none volt-group-data-[disabled=true]:opacity-50 volt-peer-disabled:cursor-not-allowed volt-peer-disabled:opacity-50",{variants:{variant:{primary:"volt-text-gray-default",destructive:"volt-text-error-a12"},size:{sm:"volt-text-xs",base:"volt-text-sm",lg:"volt-text-base"}},defaultVariants:{variant:"primary",size:"base"}}),cn=({variant:e,size:t,className:o,...n})=>d.jsx(_c,{"data-slot":"label",className:N(Oc({variant:e,size:t,className:o})),...n}),Zr=oe.createContext(null),St=()=>{const e=oe.useContext(Zr);if(!e)throw new Error("FieldInput must be used within a Field component");return e},Dc=({className:e,...t})=>d.jsx("div",{"data-slot":"field-group",className:N("volt-group/field-group volt-@container/field-group volt-flex volt-w-full volt-flex-col volt-gap-2 volt-*:data-[slot=field-group]:gap-2 [&>div[data-slot=field]+[data-slot=field-description]]:pl-3",e),...t}),Mc=({className:e,...t})=>d.jsx("fieldset",{"data-slot":"field-set",className:N("volt-flex volt-flex-col volt-gap-6",e),...t}),Lc=ke("volt-relative volt-flex-col volt-*:w-full [&>.sr-only]:w-auto volt-group/field volt-flex volt-w-full volt-py-2 volt-px-3 volt-gap-1 volt-corner-squircle-lg volt-rounded-lg volt-transition-all volt-focus-within:outline-2 volt-focus-within:outline-offset-2 volt-focus-within:outline-accent-a8 volt-has-[input[data-readonly=true]]:bg-gray-a3 volt-has-[input[disabled]]:bg-gray-a3 volt-has-[input[data-readonly=true]]:focus-within:outline-gray-a8 volt-has-[input[disabled]]:focus-within:outline-gray-a8 volt-has-[button[data-slot=select-trigger][disabled]]:bg-gray-a3 volt-has-[button[data-slot=select-trigger][disabled]]:focus-within:outline-gray-a8 volt-has-[textarea[data-readonly=true]]:bg-gray-a3 volt-has-[textarea[disabled]]:bg-gray-a3 volt-has-[textarea[data-readonly=true]]:focus-within:outline-gray-a8 volt-has-[textarea[disabled]]:focus-within:outline-gray-a8",{variants:{variant:{default:"volt-bg-gray-a3 volt-hover:bg-gray-a4",highlight:"volt-bg-accent-a3 volt-hover:bg-accent-a4",destructive:"volt-bg-error-soft volt-hover:bg-error-a4 volt-focus-within:outline-error-a8"}},defaultVariants:{variant:"default"}}),$c=({className:e,variant:t,children:o,onClick:n,...r})=>{const a=i.useRef(null);return d.jsx(Zr.Provider,{value:{inputRef:a},children:d.jsx("div",{role:"group","data-slot":"field",className:N(Lc({variant:t}),e),onClick:l=>{var s,c;l.stopPropagation(),l.target===l.currentTarget&&a.current&&!a.current.disabled&&((c=(s=a.current)==null?void 0:s.dataset.slot)!=null&&c.match(/select-trigger/)&&a.current.click(),a.current.focus()),n==null||n(l)},...r,children:o})})},Fc=({className:e,...t})=>d.jsx("div",{"data-slot":"field-content",className:N("volt-group/field-content volt-flex volt-flex-1 volt-flex-col volt-gap-2 volt-leading-snug",e),...t}),Bc=({className:e,...t})=>d.jsx(cn,{"data-slot":"field-label",className:N("volt-group/field-label volt-min-h-5 volt-text-xs volt-peer/field-label volt-flex volt-w-fit volt-gap-2 volt-leading-snug volt-group-data-[disabled=true]/field:opacity-50","volt-has-[>[data-slot=field]]:w-full volt-has-[>[data-slot=field]]:flex-col volt-has-[>[data-slot=field]]:rounded-md volt-has-[>[data-slot=field]]:border volt-*:data-[slot=field]:p-4","volt-has-data-[state=checked]:bg-accent-a3/5 volt-has-data-[state=checked]:border-accent-a3 volt-dark:has-data-[state=checked]:bg-accent-a3/10",e),...t}),Vc=({className:e,showOnHover:t=!0,...o})=>d.jsx("div",{"data-slot":"field-label-content",className:N("volt-inline-flex volt-items-center volt-gap-1 volt-transition-opacity volt-duration-150",{"volt-w-0 volt-h-0 volt-opacity-0 volt-pointer-events-none volt-group-hover/field:w-auto volt-group-hover/field:h-auto volt-group-hover/field:opacity-100 volt-group-hover/field:pointer-events-auto":t},e),...o}),zc=({className:e,...t})=>d.jsx("p",{"data-slot":"field-description",className:N("volt-text-gray-default volt-text-xs volt-leading-normal volt-font-normal","volt-last:mt-0 volt-nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-gray-default [&>a]:underline [&>a]:underline-offset-4",e),...t}),qc=({className:e,children:t,errors:o,...n})=>{const r=oe.useMemo(()=>{var l;if(t)return t;if(!(o!=null&&o.length))return null;const a=[...new Map(o.map(s=>[s==null?void 0:s.message,s])).values()];return(a==null?void 0:a.length)==1?(l=a[0])==null?void 0:l.message:d.jsx("ul",{className:"volt-flex volt-list-disc volt-flex-col volt-m-0",children:a.map((s,c)=>(s==null?void 0:s.message)&&d.jsx("li",{className:"volt-text-error-light volt-text-xs volt-font-normal volt-my-1 volt-marker:text-error-light",children:s.message},c))})},[t,o]);return r?d.jsx("div",{role:"alert","data-slot":"field-error",className:N("volt-text-error-light volt-text-xs volt-font-normal",e),...n,children:r}):null},Yr=oe.forwardRef(({className:e,...t},o)=>{const{inputRef:n}=St();return d.jsx("input",{ref:r=>{n.current=r,typeof o=="function"?o(r):o&&(o.current=r)},"data-readonly":t.readOnly,"data-slot":"field-input",className:N("volt-group/field-input volt-w-full volt-h-6 volt-outline-none volt-text-sm volt-text-gray-default volt-focus-visible:outline-none volt-placeholder:text-gray-a8 volt-disabled:cursor-not-allowed",e),...t})});Yr.displayName="FieldInput";const Xr=oe.forwardRef(({className:e,...t},o)=>d.jsx("div",{ref:o,"data-slot":"field-input-group",className:N("volt-flex volt-items-center volt-gap-1",e),...t}));Xr.displayName="FieldInputGroup";const Wc=ke("volt-text-gray-light volt-flex volt-h-auto volt-cursor-text volt-whitespace-nowrap volt-items-center volt-justify-center volt-gap-2 volt-text-sm volt-font-normal volt-select-none volt-group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{start:"volt-order-first",end:"volt-order-last"}},defaultVariants:{align:"start"}}),Gc=({className:e,align:t="start",...o})=>d.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:N(Wc({align:t}),e),...o}),Qr=oe.forwardRef(({className:e,resize:t="none",...o},n)=>{const{inputRef:r}=St();return d.jsx("textarea",{ref:a=>{r.current=a,typeof n=="function"?n(a):n&&(n.current=a)},"data-readonly":o.readOnly,"data-slot":"field-textarea","data-resize":t,className:N("volt-group/field-textarea volt-w-full volt-outline-none volt-text-sm volt-text-gray-default volt-focus-visible:outline-none volt-data-[resize=none]:resize-none volt-data-[resize=vertical]:resize-vertical volt-data-[resize=horizontal]:resize-horizontal volt-placeholder:text-gray-a8 volt-disabled:cursor-not-allowed",e),...o})});Qr.displayName="FieldTextarea";var Qn=1,Hc=.9,Uc=.8,Kc=.17,ko=.1,No=.999,Zc=.9999,Yc=.99,Xc=/[\\\/_+.#"@\[\(\{&]/,Qc=/[\\\/_+.#"@\[\(\{&]/g,Jc=/[\s-]/,Jr=/[\s-]/g;function qo(e,t,o,n,r,a,l){if(a===t.length)return r===e.length?Qn:Yc;var s=`${r},${a}`;if(l[s]!==void 0)return l[s];for(var c=n.charAt(a),u=o.indexOf(c,r),f=0,p,m,g,b;u>=0;)p=qo(e,t,o,n,u+1,a+1,l),p>f&&(u===r?p*=Qn:Xc.test(e.charAt(u-1))?(p*=Uc,g=e.slice(r,u-1).match(Qc),g&&r>0&&(p*=Math.pow(No,g.length))):Jc.test(e.charAt(u-1))?(p*=Hc,b=e.slice(r,u-1).match(Jr),b&&r>0&&(p*=Math.pow(No,b.length))):(p*=Kc,r>0&&(p*=Math.pow(No,u-r))),e.charAt(u)!==t.charAt(a)&&(p*=Zc)),(p<ko&&o.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&o.charAt(u-1)!==n.charAt(a))&&(m=qo(e,t,o,n,u+1,a+2,l),m*ko>p&&(p=m*ko)),p>f&&(f=p),u=o.indexOf(c,u+1);return l[s]=f,f}function Jn(e){return e.toLowerCase().replace(Jr," ")}function ed(e,t,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,qo(e,t,Jn(e),Jn(t),0,0,{})}function L(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e==null||e(r),o===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function td(e,t){const o=i.createContext(t),n=a=>{const{children:l,...s}=a,c=i.useMemo(()=>s,Object.values(s));return d.jsx(o.Provider,{value:c,children:l})};n.displayName=e+"Provider";function r(a){const l=i.useContext(o);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,r]}function ue(e,t=[]){let o=[];function n(a,l){const s=i.createContext(l),c=o.length;o=[...o,l];const u=p=>{var y;const{scope:m,children:g,...b}=p,v=((y=m==null?void 0:m[e])==null?void 0:y[c])||s,h=i.useMemo(()=>b,Object.values(b));return d.jsx(v.Provider,{value:h,children:g})};u.displayName=a+"Provider";function f(p,m){var v;const g=((v=m==null?void 0:m[e])==null?void 0:v[c])||s,b=i.useContext(g);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const r=()=>{const a=o.map(l=>i.createContext(l));return function(s){const c=(s==null?void 0:s[e])||a;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return r.scopeName=e,[n,od(r,...t)]}function od(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const l=n.reduce((s,{useScope:c,scopeName:u})=>{const p=c(a)[`__scope${u}`];return{...s,...p}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return o.scopeName=t.scopeName,o}var le=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},nd=i[" useId ".trim().toString()]||(()=>{}),rd=0;function ae(e){const[t,o]=i.useState(nd());return le(()=>{o(n=>n??String(rd++))},[e]),e||(t?`radix-${t}`:"")}var ad=i[" useInsertionEffect ".trim().toString()]||le;function fe({prop:e,defaultProp:t,onChange:o=()=>{},caller:n}){const[r,a,l]=ld({defaultProp:t,onChange:o}),s=e!==void 0,c=s?e:r;{const f=i.useRef(e!==void 0);i.useEffect(()=>{const p=f.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"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=s},[s,n])}const u=i.useCallback(f=>{var p;if(s){const m=sd(f)?f(e):f;m!==e&&((p=l.current)==null||p.call(l,m))}else a(f)},[s,e,a,l]);return[c,u]}function ld({defaultProp:e,onChange:t}){const[o,n]=i.useState(e),r=i.useRef(o),a=i.useRef(t);return ad(()=>{a.current=t},[t]),i.useEffect(()=>{var l;r.current!==o&&((l=a.current)==null||l.call(a,o),r.current=o)},[o,r]),[o,n,a]}function sd(e){return typeof e=="function"}function Wo(e){const t=id(e),o=i.forwardRef((n,r)=>{const{children:a,...l}=n,s=i.Children.toArray(a),c=s.find(dd);if(c){const u=c.props.children,f=s.map(p=>p===c?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...l,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...l,ref:r,children:a})});return o.displayName=`${e}.Slot`,o}function id(e){const t=i.forwardRef((o,n)=>{const{children:r,...a}=o;if(i.isValidElement(r)){const l=fd(r),s=ud(a,r.props);return r.type!==i.Fragment&&(s.ref=n?ve(n,l):l),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cd=Symbol("radix.slottable");function dd(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cd}function ud(e,t){const o={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...s)=>{const c=a(...s);return r(...s),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...a}:n==="className"&&(o[n]=[r,a].filter(Boolean).join(" "))}return{...e,...o}}function fd(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var pd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],F=pd.reduce((e,t)=>{const o=Wo(`Primitive.${t}`),n=i.forwardRef((r,a)=>{const{asChild:l,...s}=r,c=l?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vd(e,t){e&&Yt.flushSync(()=>e.dispatchEvent(t))}function Oe(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...o)=>{var n;return(n=t.current)==null?void 0:n.call(t,...o)},[])}function md(e,t=globalThis==null?void 0:globalThis.document){const o=Oe(e);i.useEffect(()=>{const n=r=>{r.key==="Escape"&&o(r)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[o,t])}var gd="DismissableLayer",Go="dismissableLayer.update",hd="dismissableLayer.pointerDownOutside",xd="dismissableLayer.focusOutside",er,ea=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rt=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...c}=e,u=i.useContext(ea),[f,p]=i.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=i.useState({}),b=Q(t,E=>p(E)),v=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(h),x=f?v.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,S=wd(E=>{const R=E.target,$=[...u.branches].some(B=>B.contains(R));!C||$||(r==null||r(E),l==null||l(E),E.defaultPrevented||s==null||s())},m),T=Cd(E=>{const R=E.target;[...u.branches].some(B=>B.contains(R))||(a==null||a(E),l==null||l(E),E.defaultPrevented||s==null||s())},m);return md(E=>{x===u.layers.size-1&&(n==null||n(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},m),i.useEffect(()=>{if(f)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(er=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),tr(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=er)}},[f,m,o,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),tr())},[f,u]),i.useEffect(()=>{const E=()=>g({});return document.addEventListener(Go,E),()=>document.removeEventListener(Go,E)},[]),d.jsx(F.div,{...c,ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,T.onFocusCapture),onBlurCapture:L(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,S.onPointerDownCapture)})});Rt.displayName=gd;var bd="DismissableLayerBranch",yd=i.forwardRef((e,t)=>{const o=i.useContext(ea),n=i.useRef(null),r=Q(t,n);return i.useEffect(()=>{const a=n.current;if(a)return o.branches.add(a),()=>{o.branches.delete(a)}},[o.branches]),d.jsx(F.div,{...e,ref:r})});yd.displayName=bd;function wd(e,t=globalThis==null?void 0:globalThis.document){const o=Oe(e),n=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){ta(hd,o,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);n.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,o]),{onPointerDownCapture:()=>n.current=!0}}function Cd(e,t=globalThis==null?void 0:globalThis.document){const o=Oe(e),n=i.useRef(!1);return i.useEffect(()=>{const r=a=>{a.target&&!n.current&&ta(xd,o,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,o]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function tr(){const e=new CustomEvent(Go);document.dispatchEvent(e)}function ta(e,t,o,{discrete:n}){const r=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&r.addEventListener(e,t,{once:!0}),n?vd(r,a):r.dispatchEvent(a)}var Io="focusScope.autoFocusOnMount",jo="focusScope.autoFocusOnUnmount",or={bubbles:!1,cancelable:!0},Sd="FocusScope",Qt=i.forwardRef((e,t)=>{const{loop:o=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...l}=e,[s,c]=i.useState(null),u=Oe(r),f=Oe(a),p=i.useRef(null),m=Q(t,v=>c(v)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let v=function(w){if(g.paused||!s)return;const C=w.target;s.contains(C)?p.current=C:je(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const C=w.relatedTarget;C!==null&&(s.contains(C)||je(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&je(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",h);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",h),x.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){rr.add(g);const v=document.activeElement;if(!s.contains(v)){const y=new CustomEvent(Io,or);s.addEventListener(Io,u),s.dispatchEvent(y),y.defaultPrevented||(Rd(kd(oa(s)),{select:!0}),document.activeElement===v&&je(s))}return()=>{s.removeEventListener(Io,u),setTimeout(()=>{const y=new CustomEvent(jo,or);s.addEventListener(jo,f),s.dispatchEvent(y),y.defaultPrevented||je(v??document.body,{select:!0}),s.removeEventListener(jo,f),rr.remove(g)},0)}}},[s,u,f,g]);const b=i.useCallback(v=>{if(!o&&!n||g.paused)return;const h=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(h&&y){const x=v.currentTarget,[w,C]=Ed(x);w&&C?!v.shiftKey&&y===C?(v.preventDefault(),o&&je(w,{select:!0})):v.shiftKey&&y===w&&(v.preventDefault(),o&&je(C,{select:!0})):y===x&&v.preventDefault()}},[o,n,g.paused]);return d.jsx(F.div,{tabIndex:-1,...l,ref:m,onKeyDown:b})});Qt.displayName=Sd;function Rd(e,{select:t=!1}={}){const o=document.activeElement;for(const n of e)if(je(n,{select:t}),document.activeElement!==o)return}function Ed(e){const t=oa(e),o=nr(t,e),n=nr(t.reverse(),e);return[o,n]}function oa(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function nr(e,t){for(const o of e)if(!Ad(o,{upTo:t}))return o}function Ad(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 Pd(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&Pd(e)&&t&&e.select()}}var rr=Td();function Td(){let e=[];return{add(t){const o=e[0];t!==o&&(o==null||o.pause()),e=ar(e,t),e.unshift(t)},remove(t){var o;e=ar(e,t),(o=e[0])==null||o.resume()}}}function ar(e,t){const o=[...e],n=o.indexOf(t);return n!==-1&&o.splice(n,1),o}function kd(e){return e.filter(t=>t.tagName!=="A")}var Nd="Portal",Jt=i.forwardRef((e,t)=>{var s;const{container:o,...n}=e,[r,a]=i.useState(!1);le(()=>a(!0),[]);const l=o||r&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return l?Tr.createPortal(d.jsx(F.div,{...n,ref:t}),l):null});Jt.displayName=Nd;function Id(e,t){return i.useReducer((o,n)=>t[o][n]??o,e)}var Re=e=>{const{present:t,children:o}=e,n=jd(t),r=typeof o=="function"?o({present:n.isPresent}):i.Children.only(o),a=Q(n.ref,_d(r));return typeof o=="function"||n.isPresent?i.cloneElement(r,{ref:a}):null};Re.displayName="Presence";function jd(e){const[t,o]=i.useState(),n=i.useRef(null),r=i.useRef(e),a=i.useRef("none"),l=e?"mounted":"unmounted",[s,c]=Id(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=jt(n.current);a.current=s==="mounted"?u:"none"},[s]),le(()=>{const u=n.current,f=r.current;if(f!==e){const m=a.current,g=jt(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&m!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),le(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=g=>{const v=jt(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&v&&(c("ANIMATION_END"),!r.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},m=g=>{g.target===t&&(a.current=jt(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(u=>{n.current=u?getComputedStyle(u):null,o(u)},[])}}function jt(e){return(e==null?void 0:e.animationName)||"none"}function _d(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var _o=0;function dn(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??lr()),document.body.insertAdjacentElement("beforeend",e[1]??lr()),_o++,()=>{_o===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_o--}},[])}function lr(){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 ye=function(){return ye=Object.assign||function(t){for(var o,n=1,r=arguments.length;n<r;n++){o=arguments[n];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},ye.apply(this,arguments)};function na(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o}function Od(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,a;n<r;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var $t="right-scroll-bar-position",Ft="width-before-scroll-bar",Dd="with-scroll-bars-hidden",Md="--removed-body-scroll-bar-size";function Oo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ld(e,t){var o=oe.useState(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(n){var r=o.value;r!==n&&(o.value=n,o.callback(n,r))}}}})[0];return o.callback=t,o.facade}var $d=typeof window<"u"?i.useLayoutEffect:i.useEffect,sr=new WeakMap;function Fd(e,t){var o=Ld(null,function(n){return e.forEach(function(r){return Oo(r,n)})});return $d(function(){var n=sr.get(o);if(n){var r=new Set(n),a=new Set(e),l=o.current;r.forEach(function(s){a.has(s)||Oo(s,null)}),a.forEach(function(s){r.has(s)||Oo(s,l)})}sr.set(o,e)},[e]),o}function Bd(e){return e}function Vd(e,t){t===void 0&&(t=Bd);var o=[],n=!1,r={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(a){var l=t(a,n);return o.push(l),function(){o=o.filter(function(s){return s!==l})}},assignSyncMedium:function(a){for(n=!0;o.length;){var l=o;o=[],l.forEach(a)}o={push:function(s){return a(s)},filter:function(){return o}}},assignMedium:function(a){n=!0;var l=[];if(o.length){var s=o;o=[],s.forEach(a),l=o}var c=function(){var f=l;l=[],f.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),o={push:function(f){l.push(f),u()},filter:function(f){return l=l.filter(f),o}}}};return r}function zd(e){e===void 0&&(e={});var t=Vd(null);return t.options=ye({async:!0,ssr:!1},e),t}var ra=function(e){var t=e.sideCar,o=na(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ye({},o))};ra.isSideCarExport=!0;function qd(e,t){return e.useMedium(t),ra}var aa=zd(),Do=function(){},eo=i.forwardRef(function(e,t){var o=i.useRef(null),n=i.useState({onScrollCapture:Do,onWheelCapture:Do,onTouchMoveCapture:Do}),r=n[0],a=n[1],l=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,v=e.inert,h=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=na(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,T=Fd([o,t]),E=ye(ye({},C),r);return i.createElement(i.Fragment,null,f&&i.createElement(S,{sideCar:aa,removeScrollBar:u,shards:p,noRelative:g,noIsolation:b,inert:v,setCallbacks:a,allowPinchZoom:!!h,lockRef:o,gapMode:w}),l?i.cloneElement(i.Children.only(s),ye(ye({},E),{ref:T})):i.createElement(x,ye({},E,{className:c,ref:T}),s))});eo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};eo.classNames={fullWidth:Ft,zeroRight:$t};var Wd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wd();return t&&e.setAttribute("nonce",t),e}function Hd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ud(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kd=function(){var e=0,t=null;return{add:function(o){e==0&&(t=Gd())&&(Hd(t,o),Ud(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zd=function(){var e=Kd();return function(t,o){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}},la=function(){var e=Zd(),t=function(o){var n=o.styles,r=o.dynamic;return e(n,r),null};return t},Yd={left:0,top:0,right:0,gap:0},Mo=function(e){return parseInt(e||"",10)||0},Xd=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Mo(o),Mo(n),Mo(r)]},Qd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Yd;var t=Xd(e),o=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-o+t[2]-t[0])}},Jd=la(),tt="data-scroll-locked",eu=function(e,t,o,n){var r=e.left,a=e.top,l=e.right,s=e.gap;return o===void 0&&(o="margin"),`
2
+ .`.concat(Dd,` {
3
3
  overflow: hidden `).concat(n,`;
4
4
  padding-right: `).concat(s,"px ").concat(n,`;
5
5
  }
6
- body[`).concat(et,`] {
6
+ body[`).concat(tt,`] {
7
7
  overflow: hidden `).concat(n,`;
8
8
  overscroll-behavior: contain;
9
9
  `).concat([t&&"position: relative ".concat(n,";"),o==="margin"&&`
10
10
  padding-left: `.concat(r,`px;
11
- padding-top: `).concat(i,`px;
12
- padding-right: `).concat(a,`px;
11
+ padding-top: `).concat(a,`px;
12
+ padding-right: `).concat(l,`px;
13
13
  margin-left:0;
14
14
  margin-top:0;
15
15
  margin-right: `).concat(s,"px ").concat(n,`;
16
16
  `),o==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
17
17
  }
18
18
 
19
- .`).concat(Ft,` {
19
+ .`).concat($t,` {
20
20
  right: `).concat(s,"px ").concat(n,`;
21
21
  }
22
22
 
23
- .`).concat($t,` {
23
+ .`).concat(Ft,` {
24
24
  margin-right: `).concat(s,"px ").concat(n,`;
25
25
  }
26
26
 
27
- .`).concat(Ft," .").concat(Ft,` {
27
+ .`).concat($t," .").concat($t,` {
28
28
  right: 0 `).concat(n,`;
29
29
  }
30
30
 
31
- .`).concat($t," .").concat($t,` {
31
+ .`).concat(Ft," .").concat(Ft,` {
32
32
  margin-right: 0 `).concat(n,`;
33
33
  }
34
34
 
35
- body[`).concat(et,`] {
36
- `).concat(vu,": ").concat(s,`px;
35
+ body[`).concat(tt,`] {
36
+ `).concat(Md,": ").concat(s,`px;
37
37
  }
38
- `)},tr=function(){var e=parseInt(document.body.getAttribute(et)||"0",10);return isFinite(e)?e:0},Ou=function(){l.useEffect(function(){return document.body.setAttribute(et,(tr()+1).toString()),function(){var e=tr()-1;e<=0?document.body.removeAttribute(et):document.body.setAttribute(et,e.toString())}},[])},_u=function(e){var t=e.noRelative,o=e.noImportant,n=e.gapMode,r=n===void 0?"margin":n;Ou();var i=l.useMemo(function(){return Iu(r)},[r]);return l.createElement(Nu,{styles:ju(i,!t,r,o?"":"!important")})},qo=!1;if(typeof window<"u")try{var Ot=Object.defineProperty({},"passive",{get:function(){return qo=!0,!0}});window.addEventListener("test",Ot,Ot),window.removeEventListener("test",Ot,Ot)}catch{qo=!1}var Ye=qo?{passive:!1}:!1,Mu=function(e){return e.tagName==="TEXTAREA"},ti=function(e,t){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[t]!=="hidden"&&!(o.overflowY===o.overflowX&&!Mu(e)&&o[t]==="visible")},Du=function(e){return ti(e,"overflowY")},Lu=function(e){return ti(e,"overflowX")},or=function(e,t){var o=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=oi(e,n);if(r){var i=ni(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==o.body);return!1},Fu=function(e){var t=e.scrollTop,o=e.scrollHeight,n=e.clientHeight;return[t,o,n]},$u=function(e){var t=e.scrollLeft,o=e.scrollWidth,n=e.clientWidth;return[t,o,n]},oi=function(e,t){return e==="v"?Du(t):Lu(t)},ni=function(e,t){return e==="v"?Fu(t):$u(t)},Bu=function(e,t){return e==="h"&&t==="rtl"?-1:1},qu=function(e,t,o,n,r){var i=Bu(e,window.getComputedStyle(t).direction),a=i*n,s=o.target,c=t.contains(s),u=!1,f=a>0,p=0,g=0;do{if(!s)break;var m=ni(e,s),b=m[0],v=m[1],h=m[2],y=v-h-i*b;(b||y)&&oi(e,s)&&(p+=y,g+=b);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(u=!0),u},_t=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nr=function(e){return[e.deltaX,e.deltaY]},rr=function(e){return e&&"current"in e?e.current:e},zu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vu=function(e){return`
38
+ `)},ir=function(){var e=parseInt(document.body.getAttribute(tt)||"0",10);return isFinite(e)?e:0},tu=function(){i.useEffect(function(){return document.body.setAttribute(tt,(ir()+1).toString()),function(){var e=ir()-1;e<=0?document.body.removeAttribute(tt):document.body.setAttribute(tt,e.toString())}},[])},ou=function(e){var t=e.noRelative,o=e.noImportant,n=e.gapMode,r=n===void 0?"margin":n;tu();var a=i.useMemo(function(){return Qd(r)},[r]);return i.createElement(Jd,{styles:eu(a,!t,r,o?"":"!important")})},Ho=!1;if(typeof window<"u")try{var _t=Object.defineProperty({},"passive",{get:function(){return Ho=!0,!0}});window.addEventListener("test",_t,_t),window.removeEventListener("test",_t,_t)}catch{Ho=!1}var Ye=Ho?{passive:!1}:!1,nu=function(e){return e.tagName==="TEXTAREA"},sa=function(e,t){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[t]!=="hidden"&&!(o.overflowY===o.overflowX&&!nu(e)&&o[t]==="visible")},ru=function(e){return sa(e,"overflowY")},au=function(e){return sa(e,"overflowX")},cr=function(e,t){var o=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=ia(e,n);if(r){var a=ca(e,n),l=a[1],s=a[2];if(l>s)return!0}n=n.parentNode}while(n&&n!==o.body);return!1},lu=function(e){var t=e.scrollTop,o=e.scrollHeight,n=e.clientHeight;return[t,o,n]},su=function(e){var t=e.scrollLeft,o=e.scrollWidth,n=e.clientWidth;return[t,o,n]},ia=function(e,t){return e==="v"?ru(t):au(t)},ca=function(e,t){return e==="v"?lu(t):su(t)},iu=function(e,t){return e==="h"&&t==="rtl"?-1:1},cu=function(e,t,o,n,r){var a=iu(e,window.getComputedStyle(t).direction),l=a*n,s=o.target,c=t.contains(s),u=!1,f=l>0,p=0,m=0;do{if(!s)break;var g=ca(e,s),b=g[0],v=g[1],h=g[2],y=v-h-a*b;(b||y)&&ia(e,s)&&(p+=y,m+=b);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(u=!0),u},Ot=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},dr=function(e){return[e.deltaX,e.deltaY]},ur=function(e){return e&&"current"in e?e.current:e},du=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uu=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},Wu=0,Ze=[];function Gu(e){var t=l.useRef([]),o=l.useRef([0,0]),n=l.useRef(),r=l.useState(Wu++)[0],i=l.useState(ei)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=fu([e.lockRef.current],(e.shards||[]).map(rr),!0).filter(Boolean);return v.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(v,h){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var y=_t(v),x=o.current,w="deltaX"in v?v.deltaX:x[0]-y[0],C="deltaY"in v?v.deltaY:x[1]-y[1],S,k=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&k.type==="range")return!1;var R=or(E,k);if(!R)return!0;if(R?S=E:(S=E==="v"?"h":"v",R=or(E,k)),!R)return!1;if(!n.current&&"changedTouches"in v&&(w||C)&&(n.current=S),!S)return!0;var F=n.current||S;return qu(F,h,v,F==="h"?w:C)},[]),c=l.useCallback(function(v){var h=v;if(!(!Ze.length||Ze[Ze.length-1]!==i)){var y="deltaY"in h?nr(h):_t(h),x=t.current.filter(function(S){return S.name===h.type&&(S.target===h.target||h.target===S.shadowParent)&&zu(S.delta,y)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(rr).filter(Boolean).filter(function(S){return S.contains(h.target)}),C=w.length>0?s(h,w[0]):!a.current.noIsolation;C&&h.cancelable&&h.preventDefault()}}},[]),u=l.useCallback(function(v,h,y,x){var w={name:v,delta:h,target:y,should:x,shadowParent:Hu(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=l.useCallback(function(v){o.current=_t(v),n.current=void 0},[]),p=l.useCallback(function(v){u(v.type,nr(v),v.target,s(v,e.lockRef.current))},[]),g=l.useCallback(function(v){u(v.type,_t(v),v.target,s(v,e.lockRef.current))},[]);l.useEffect(function(){return Ze.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Ye),document.addEventListener("touchmove",c,Ye),document.addEventListener("touchstart",f,Ye),function(){Ze=Ze.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,Ye),document.removeEventListener("touchmove",c,Ye),document.removeEventListener("touchstart",f,Ye)}},[]);var m=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(i,{styles:Vu(r)}):null,m?l.createElement(_u,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Hu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Uu=wu(Jr,Gu);var Jt=l.forwardRef(function(e,t){return l.createElement(Qt,ye({},e,{ref:t,sideCar:Uu}))});Jt.classNames=Qt.classNames;var Ku=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xe=new WeakMap,Mt=new WeakMap,Dt={},Oo=0,ri=function(e){return e&&(e.host||ri(e.parentNode))},Yu=function(e,t){return t.map(function(o){if(e.contains(o))return o;var n=ri(o);return n&&e.contains(n)?n:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},Zu=function(e,t,o,n){var r=Yu(t,Array.isArray(e)?e:[e]);Dt[o]||(Dt[o]=new WeakMap);var i=Dt[o],a=[],s=new Set,c=new Set(r),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};r.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(s.has(g))f(g);else try{var m=g.getAttribute(n),b=m!==null&&m!=="false",v=(Xe.get(g)||0)+1,h=(i.get(g)||0)+1;Xe.set(g,v),i.set(g,h),a.push(g),v===1&&b&&Mt.set(g,!0),h===1&&g.setAttribute(o,"true"),b||g.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),s.clear(),Oo++,function(){a.forEach(function(p){var g=Xe.get(p)-1,m=i.get(p)-1;Xe.set(p,g),i.set(p,m),g||(Mt.has(p)||p.removeAttribute(n),Mt.delete(p)),m||p.removeAttribute(o)}),Oo--,Oo||(Xe=new WeakMap,Xe=new WeakMap,Mt=new WeakMap,Dt={})}},sn=function(e,t,o){o===void 0&&(o="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=Ku(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),Zu(n,r,o,"aria-hidden")):function(){return null}},eo="Dialog",[ii]=de(eo),[Xu,he]=ii(eo),ai=e=>{const{__scopeDialog:t,children:o,open:n,defaultOpen:r,onOpenChange:i,modal:a=!0}=e,s=l.useRef(null),c=l.useRef(null),[u,f]=fe({prop:n,defaultProp:r??!1,onChange:i,caller:eo});return d.jsx(Xu,{scope:t,triggerRef:s,contentRef:c,contentId:ie(),titleId:ie(),descriptionId:ie(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:a,children:o})};ai.displayName=eo;var si="DialogTrigger",li=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=he(si,o),i=Q(t,r.triggerRef);return d.jsx($.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":un(r.open),...n,ref:i,onClick:L(e.onClick,r.onOpenToggle)})});li.displayName=si;var ln="DialogPortal",[Qu,ci]=ii(ln,{forceMount:void 0}),ui=e=>{const{__scopeDialog:t,forceMount:o,children:n,container:r}=e,i=he(ln,t);return d.jsx(Qu,{scope:t,forceMount:o,children:l.Children.map(n,a=>d.jsx(ge,{present:o||i.open,children:d.jsx(St,{asChild:!0,container:r,children:a})}))})};ui.displayName=ln;var Vt="DialogOverlay",di=l.forwardRef((e,t)=>{const o=ci(Vt,e.__scopeDialog),{forceMount:n=o.forceMount,...r}=e,i=he(Vt,e.__scopeDialog);return i.modal?d.jsx(ge,{present:n||i.open,children:d.jsx(ed,{...r,ref:t})}):null});di.displayName=Vt;var Ju=ot("DialogOverlay.RemoveScroll"),ed=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=he(Vt,o);return d.jsx(Jt,{as:Ju,allowPinchZoom:!0,shards:[r.contentRef],children:d.jsx($.div,{"data-state":un(r.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ve="DialogContent",fi=l.forwardRef((e,t)=>{const o=ci(Ve,e.__scopeDialog),{forceMount:n=o.forceMount,...r}=e,i=he(Ve,e.__scopeDialog);return d.jsx(ge,{present:n||i.open,children:i.modal?d.jsx(td,{...r,ref:t}):d.jsx(od,{...r,ref:t})})});fi.displayName=Ve;var td=l.forwardRef((e,t)=>{const o=he(Ve,e.__scopeDialog),n=l.useRef(null),r=Q(t,o.contentRef,n);return l.useEffect(()=>{const i=n.current;if(i)return sn(i)},[]),d.jsx(pi,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:L(e.onFocusOutside,i=>i.preventDefault())})}),od=l.forwardRef((e,t)=>{const o=he(Ve,e.__scopeDialog),n=l.useRef(!1),r=l.useRef(!1);return d.jsx(pi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(n.current||(s=o.triggerRef.current)==null||s.focus(),i.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const a=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),pi=l.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,...a}=e,s=he(Ve,o),c=l.useRef(null),u=Q(t,c);return an(),d.jsxs(d.Fragment,{children:[d.jsx(Xt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:i,children:d.jsx(Ct,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":un(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(nd,{titleId:s.titleId}),d.jsx(id,{contentRef:c,descriptionId:s.descriptionId})]})]})}),cn="DialogTitle",vi=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=he(cn,o);return d.jsx($.h2,{id:r.titleId,...n,ref:t})});vi.displayName=cn;var mi="DialogDescription",gi=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=he(mi,o);return d.jsx($.p,{id:r.descriptionId,...n,ref:t})});gi.displayName=mi;var hi="DialogClose",xi=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=he(hi,o);return d.jsx($.button,{type:"button",...n,ref:t,onClick:L(e.onClick,()=>r.onOpenChange(!1))})});xi.displayName=hi;function un(e){return e?"open":"closed"}var bi="DialogTitleWarning",[jg,yi]=Oc(bi,{contentName:Ve,titleName:cn,docsSlug:"dialog"}),nd=({titleId:e})=>{const t=yi(bi),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},fu=0,Xe=[];function pu(e){var t=i.useRef([]),o=i.useRef([0,0]),n=i.useRef(),r=i.useState(fu++)[0],a=i.useState(la)[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=Od([e.lockRef.current],(e.shards||[]).map(ur),!0).filter(Boolean);return v.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(v,h){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var y=Ot(v),x=o.current,w="deltaX"in v?v.deltaX:x[0]-y[0],C="deltaY"in v?v.deltaY:x[1]-y[1],S,T=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&T.type==="range")return!1;var R=cr(E,T);if(!R)return!0;if(R?S=E:(S=E==="v"?"h":"v",R=cr(E,T)),!R)return!1;if(!n.current&&"changedTouches"in v&&(w||C)&&(n.current=S),!S)return!0;var $=n.current||S;return cu($,h,v,$==="h"?w:C)},[]),c=i.useCallback(function(v){var h=v;if(!(!Xe.length||Xe[Xe.length-1]!==a)){var y="deltaY"in h?dr(h):Ot(h),x=t.current.filter(function(S){return S.name===h.type&&(S.target===h.target||h.target===S.shadowParent)&&du(S.delta,y)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var w=(l.current.shards||[]).map(ur).filter(Boolean).filter(function(S){return S.contains(h.target)}),C=w.length>0?s(h,w[0]):!l.current.noIsolation;C&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(v,h,y,x){var w={name:v,delta:h,target:y,should:x,shadowParent:vu(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=i.useCallback(function(v){o.current=Ot(v),n.current=void 0},[]),p=i.useCallback(function(v){u(v.type,dr(v),v.target,s(v,e.lockRef.current))},[]),m=i.useCallback(function(v){u(v.type,Ot(v),v.target,s(v,e.lockRef.current))},[]);i.useEffect(function(){return Xe.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Ye),document.addEventListener("touchmove",c,Ye),document.addEventListener("touchstart",f,Ye),function(){Xe=Xe.filter(function(v){return v!==a}),document.removeEventListener("wheel",c,Ye),document.removeEventListener("touchmove",c,Ye),document.removeEventListener("touchstart",f,Ye)}},[]);var g=e.removeScrollBar,b=e.inert;return i.createElement(i.Fragment,null,b?i.createElement(a,{styles:uu(r)}):null,g?i.createElement(ou,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mu=qd(aa,pu);var to=i.forwardRef(function(e,t){return i.createElement(eo,ye({},e,{ref:t,sideCar:mu}))});to.classNames=eo.classNames;var gu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,Dt=new WeakMap,Mt={},Lo=0,da=function(e){return e&&(e.host||da(e.parentNode))},hu=function(e,t){return t.map(function(o){if(e.contains(o))return o;var n=da(o);return n&&e.contains(n)?n:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},xu=function(e,t,o,n){var r=hu(t,Array.isArray(e)?e:[e]);Mt[o]||(Mt[o]=new WeakMap);var a=Mt[o],l=[],s=new Set,c=new Set(r),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};r.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(m){if(s.has(m))f(m);else try{var g=m.getAttribute(n),b=g!==null&&g!=="false",v=(Qe.get(m)||0)+1,h=(a.get(m)||0)+1;Qe.set(m,v),a.set(m,h),l.push(m),v===1&&b&&Dt.set(m,!0),h===1&&m.setAttribute(o,"true"),b||m.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),s.clear(),Lo++,function(){l.forEach(function(p){var m=Qe.get(p)-1,g=a.get(p)-1;Qe.set(p,m),a.set(p,g),m||(Dt.has(p)||p.removeAttribute(n),Dt.delete(p)),g||p.removeAttribute(o)}),Lo--,Lo||(Qe=new WeakMap,Qe=new WeakMap,Dt=new WeakMap,Mt={})}},un=function(e,t,o){o===void 0&&(o="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=gu(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),xu(n,r,o,"aria-hidden")):function(){return null}};function bu(e){const t=yu(e),o=i.forwardRef((n,r)=>{const{children:a,...l}=n,s=i.Children.toArray(a),c=s.find(Cu);if(c){const u=c.props.children,f=s.map(p=>p===c?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...l,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...l,ref:r,children:a})});return o.displayName=`${e}.Slot`,o}function yu(e){const t=i.forwardRef((o,n)=>{const{children:r,...a}=o;if(i.isValidElement(r)){const l=Ru(r),s=Su(a,r.props);return r.type!==i.Fragment&&(s.ref=n?ve(n,l):l),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wu=Symbol("radix.slottable");function Cu(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wu}function Su(e,t){const o={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...s)=>{const c=a(...s);return r(...s),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...a}:n==="className"&&(o[n]=[r,a].filter(Boolean).join(" "))}return{...e,...o}}function Ru(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var oo="Dialog",[ua,fa]=ue(oo),[Eu,he]=ua(oo),pa=e=>{const{__scopeDialog:t,children:o,open:n,defaultOpen:r,onOpenChange:a,modal:l=!0}=e,s=i.useRef(null),c=i.useRef(null),[u,f]=fe({prop:n,defaultProp:r??!1,onChange:a,caller:oo});return d.jsx(Eu,{scope:t,triggerRef:s,contentRef:c,contentId:ae(),titleId:ae(),descriptionId:ae(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(p=>!p),[f]),modal:l,children:o})};pa.displayName=oo;var va="DialogTrigger",ma=i.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=he(va,o),a=Q(t,r.triggerRef);return d.jsx(F.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":vn(r.open),...n,ref:a,onClick:L(e.onClick,r.onOpenToggle)})});ma.displayName=va;var fn="DialogPortal",[Au,ga]=ua(fn,{forceMount:void 0}),ha=e=>{const{__scopeDialog:t,forceMount:o,children:n,container:r}=e,a=he(fn,t);return d.jsx(Au,{scope:t,forceMount:o,children:i.Children.map(n,l=>d.jsx(Re,{present:o||a.open,children:d.jsx(Jt,{asChild:!0,container:r,children:l})}))})};ha.displayName=fn;var qt="DialogOverlay",xa=i.forwardRef((e,t)=>{const o=ga(qt,e.__scopeDialog),{forceMount:n=o.forceMount,...r}=e,a=he(qt,e.__scopeDialog);return a.modal?d.jsx(Re,{present:n||a.open,children:d.jsx(Tu,{...r,ref:t})}):null});xa.displayName=qt;var Pu=bu("DialogOverlay.RemoveScroll"),Tu=i.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=he(qt,o);return d.jsx(to,{as:Pu,allowPinchZoom:!0,shards:[r.contentRef],children:d.jsx(F.div,{"data-state":vn(r.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),We="DialogContent",ba=i.forwardRef((e,t)=>{const o=ga(We,e.__scopeDialog),{forceMount:n=o.forceMount,...r}=e,a=he(We,e.__scopeDialog);return d.jsx(Re,{present:n||a.open,children:a.modal?d.jsx(ku,{...r,ref:t}):d.jsx(Nu,{...r,ref:t})})});ba.displayName=We;var ku=i.forwardRef((e,t)=>{const o=he(We,e.__scopeDialog),n=i.useRef(null),r=Q(t,o.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return un(a)},[]),d.jsx(ya,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),(l=o.triggerRef.current)==null||l.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0;(l.button===2||s)&&a.preventDefault()}),onFocusOutside:L(e.onFocusOutside,a=>a.preventDefault())})}),Nu=i.forwardRef((e,t)=>{const o=he(We,e.__scopeDialog),n=i.useRef(!1),r=i.useRef(!1);return d.jsx(ya,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var l,s;(l=e.onCloseAutoFocus)==null||l.call(e,a),a.defaultPrevented||(n.current||(s=o.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const l=a.target;((u=o.triggerRef.current)==null?void 0:u.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),ya=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:a,...l}=e,s=he(We,o),c=i.useRef(null),u=Q(t,c);return dn(),d.jsxs(d.Fragment,{children:[d.jsx(Qt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:a,children:d.jsx(Rt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":vn(s.open),...l,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(ju,{titleId:s.titleId}),d.jsx(Ou,{contentRef:c,descriptionId:s.descriptionId})]})]})}),pn="DialogTitle",wa=i.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=he(pn,o);return d.jsx(F.h2,{id:r.titleId,...n,ref:t})});wa.displayName=pn;var Ca="DialogDescription",Sa=i.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=he(Ca,o);return d.jsx(F.p,{id:r.descriptionId,...n,ref:t})});Sa.displayName=Ca;var Ra="DialogClose",Ea=i.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=he(Ra,o);return d.jsx(F.button,{type:"button",...n,ref:t,onClick:L(e.onClick,()=>r.onOpenChange(!1))})});Ea.displayName=Ra;function vn(e){return e?"open":"closed"}var Aa="DialogTitleWarning",[Iu,Pa]=td(Aa,{contentName:We,titleName:pn,docsSlug:"dialog"}),ju=({titleId:e})=>{const t=Pa(Aa),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
42
 
43
43
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
44
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},rd="DialogDescriptionWarning",id=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${yi(rd).contentName}}.`;return l.useEffect(()=>{var i;const r=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},wi=ai,ad=li,Ci=ui,Si=di,Ri=fi,sd=vi,ld=gi,Ei=xi,gt='[cmdk-group=""]',_o='[cmdk-group-items=""]',cd='[cmdk-group-heading=""]',Pi='[cmdk-item=""]',ir=`${Pi}:not([aria-disabled="true"])`,zo="cmdk-item-select",Qe="data-value",ud=(e,t,o)=>jc(e,t,o),Ti=l.createContext(void 0),Rt=()=>l.useContext(Ti),ki=l.createContext(void 0),dn=()=>l.useContext(ki),Ai=l.createContext(void 0),Ii=l.forwardRef((e,t)=>{let o=Je(()=>{var P,O;return{search:"",value:(O=(P=e.value)!=null?P:e.defaultValue)!=null?O:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Je(()=>new Set),r=Je(()=>new Map),i=Je(()=>new Map),a=Je(()=>new Set),s=Ni(e),{label:c,children:u,value:f,onValueChange:p,filter:g,shouldFilter:m,loop:b,disablePointerSelection:v=!1,vimBindings:h=!0,...y}=e,x=ie(),w=ie(),C=ie(),S=l.useRef(null),k=wd();We(()=>{if(f!==void 0){let P=f.trim();o.current.value=P,E.emit()}},[f]),We(()=>{k(6,Z)},[]);let E=l.useMemo(()=>({subscribe:P=>(a.current.add(P),()=>a.current.delete(P)),snapshot:()=>o.current,setState:(P,O,D)=>{var _,H,A,V;if(!Object.is(o.current[P],O)){if(o.current[P]=O,P==="search")Y(),B(),k(1,K);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let U=document.getElementById(C);U?U.focus():(_=document.getElementById(x))==null||_.focus()}if(k(7,()=>{var U;o.current.selectedItemId=(U=q())==null?void 0:U.id,E.emit()}),D||k(5,Z),((H=s.current)==null?void 0:H.value)!==void 0){let U=O??"";(V=(A=s.current).onValueChange)==null||V.call(A,U);return}}E.emit()}},emit:()=>{a.current.forEach(P=>P())}}),[]),R=l.useMemo(()=>({value:(P,O,D)=>{var _;O!==((_=i.current.get(P))==null?void 0:_.value)&&(i.current.set(P,{value:O,keywords:D}),o.current.filtered.items.set(P,F(O,D)),k(2,()=>{B(),E.emit()}))},item:(P,O)=>(n.current.add(P),O&&(r.current.has(O)?r.current.get(O).add(P):r.current.set(O,new Set([P]))),k(3,()=>{Y(),B(),o.current.value||K(),E.emit()}),()=>{i.current.delete(P),n.current.delete(P),o.current.filtered.items.delete(P);let D=q();k(4,()=>{Y(),(D==null?void 0:D.getAttribute("id"))===P&&K(),E.emit()})}),group:P=>(r.current.has(P)||r.current.set(P,new Set),()=>{i.current.delete(P),r.current.delete(P)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:C,labelId:w,listInnerRef:S}),[]);function F(P,O){var D,_;let H=(_=(D=s.current)==null?void 0:D.filter)!=null?_:ud;return P?H(P,o.current.search,O):0}function B(){if(!o.current.search||s.current.shouldFilter===!1)return;let P=o.current.filtered.items,O=[];o.current.filtered.groups.forEach(_=>{let H=r.current.get(_),A=0;H.forEach(V=>{let U=P.get(V);A=Math.max(U,A)}),O.push([_,A])});let D=S.current;G().sort((_,H)=>{var A,V;let U=_.getAttribute("id"),X=H.getAttribute("id");return((A=P.get(X))!=null?A:0)-((V=P.get(U))!=null?V:0)}).forEach(_=>{let H=_.closest(_o);H?H.appendChild(_.parentElement===H?_:_.closest(`${_o} > *`)):D.appendChild(_.parentElement===D?_:_.closest(`${_o} > *`))}),O.sort((_,H)=>H[1]-_[1]).forEach(_=>{var H;let A=(H=S.current)==null?void 0:H.querySelector(`${gt}[${Qe}="${encodeURIComponent(_[0])}"]`);A==null||A.parentElement.appendChild(A)})}function K(){let P=G().find(D=>D.getAttribute("aria-disabled")!=="true"),O=P==null?void 0:P.getAttribute(Qe);E.setState("value",O||void 0)}function Y(){var P,O,D,_;if(!o.current.search||s.current.shouldFilter===!1){o.current.filtered.count=n.current.size;return}o.current.filtered.groups=new Set;let H=0;for(let A of n.current){let V=(O=(P=i.current.get(A))==null?void 0:P.value)!=null?O:"",U=(_=(D=i.current.get(A))==null?void 0:D.keywords)!=null?_:[],X=F(V,U);o.current.filtered.items.set(A,X),X>0&&H++}for(let[A,V]of r.current)for(let U of V)if(o.current.filtered.items.get(U)>0){o.current.filtered.groups.add(A);break}o.current.filtered.count=H}function Z(){var P,O,D;let _=q();_&&(((P=_.parentElement)==null?void 0:P.firstChild)===_&&((D=(O=_.closest(gt))==null?void 0:O.querySelector(cd))==null||D.scrollIntoView({block:"nearest"})),_.scrollIntoView({block:"nearest"}))}function q(){var P;return(P=S.current)==null?void 0:P.querySelector(`${Pi}[aria-selected="true"]`)}function G(){var P;return Array.from(((P=S.current)==null?void 0:P.querySelectorAll(ir))||[])}function M(P){let O=G()[P];O&&E.setState("value",O.getAttribute(Qe))}function z(P){var O;let D=q(),_=G(),H=_.findIndex(V=>V===D),A=_[H+P];(O=s.current)!=null&&O.loop&&(A=H+P<0?_[_.length-1]:H+P===_.length?_[0]:_[H+P]),A&&E.setState("value",A.getAttribute(Qe))}function T(P){let O=q(),D=O==null?void 0:O.closest(gt),_;for(;D&&!_;)D=P>0?bd(D,gt):yd(D,gt),_=D==null?void 0:D.querySelector(ir);_?E.setState("value",_.getAttribute(Qe)):z(P)}let te=()=>M(G().length-1),ne=P=>{P.preventDefault(),P.metaKey?te():P.altKey?T(1):z(1)},se=P=>{P.preventDefault(),P.metaKey?M(0):P.altKey?T(-1):z(-1)};return l.createElement(Re.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:P=>{var O;(O=y.onKeyDown)==null||O.call(y,P);let D=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||D))switch(P.key){case"n":case"j":{h&&P.ctrlKey&&ne(P);break}case"ArrowDown":{ne(P);break}case"p":case"k":{h&&P.ctrlKey&&se(P);break}case"ArrowUp":{se(P);break}case"Home":{P.preventDefault(),M(0);break}case"End":{P.preventDefault(),te();break}case"Enter":{P.preventDefault();let _=q();if(_){let H=new Event(zo);_.dispatchEvent(H)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:Sd},c),to(e,P=>l.createElement(ki.Provider,{value:E},l.createElement(Ti.Provider,{value:R},P))))}),dd=l.forwardRef((e,t)=>{var o,n;let r=ie(),i=l.useRef(null),a=l.useContext(Ai),s=Rt(),c=Ni(e),u=(n=(o=c.current)==null?void 0:o.forceMount)!=null?n:a==null?void 0:a.forceMount;We(()=>{if(!u)return s.item(r,a==null?void 0:a.id)},[u]);let f=ji(r,i,[e.value,e.children,i],e.keywords),p=dn(),g=Me(k=>k.value&&k.value===f.current),m=Me(k=>u||s.filter()===!1?!0:k.search?k.filtered.items.get(r)>0:!0);l.useEffect(()=>{let k=i.current;if(!(!k||e.disabled))return k.addEventListener(zo,b),()=>k.removeEventListener(zo,b)},[m,e.onSelect,e.disabled]);function b(){var k,E;v(),(E=(k=c.current).onSelect)==null||E.call(k,f.current)}function v(){p.setState("value",f.current,!0)}if(!m)return null;let{disabled:h,value:y,onSelect:x,forceMount:w,keywords:C,...S}=e;return l.createElement(Re.div,{ref:Oe(i,t),...S,id:r,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!g,"data-disabled":!!h,"data-selected":!!g,onPointerMove:h||s.getDisablePointerSelection()?void 0:v,onClick:h?void 0:b},e.children)}),fd=l.forwardRef((e,t)=>{let{heading:o,children:n,forceMount:r,...i}=e,a=ie(),s=l.useRef(null),c=l.useRef(null),u=ie(),f=Rt(),p=Me(m=>r||f.filter()===!1?!0:m.search?m.filtered.groups.has(a):!0);We(()=>f.group(a),[]),ji(a,s,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:a,forceMount:r}),[r]);return l.createElement(Re.div,{ref:Oe(s,t),...i,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},o&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},o),to(e,m=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?u:void 0},l.createElement(Ai.Provider,{value:g},m))))}),pd=l.forwardRef((e,t)=>{let{alwaysRender:o,...n}=e,r=l.useRef(null),i=Me(a=>!a.search);return!o&&!i?null:l.createElement(Re.div,{ref:Oe(r,t),...n,"cmdk-separator":"",role:"separator"})}),vd=l.forwardRef((e,t)=>{let{onValueChange:o,...n}=e,r=e.value!=null,i=dn(),a=Me(u=>u.search),s=Me(u=>u.selectedItemId),c=Rt();return l.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),l.createElement(Re.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:r?e.value:a,onChange:u=>{r||i.setState("search",u.target.value),o==null||o(u.target.value)}})}),md=l.forwardRef((e,t)=>{let{children:o,label:n="Suggestions",...r}=e,i=l.useRef(null),a=l.useRef(null),s=Me(u=>u.selectedItemId),c=Rt();return l.useEffect(()=>{if(a.current&&i.current){let u=a.current,f=i.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let m=u.offsetHeight;f.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(p),g.unobserve(u)}}},[]),l.createElement(Re.div,{ref:Oe(i,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:c.listId},to(e,u=>l.createElement("div",{ref:Oe(a,c.listInnerRef),"cmdk-list-sizer":""},u)))}),gd=l.forwardRef((e,t)=>{let{open:o,onOpenChange:n,overlayClassName:r,contentClassName:i,container:a,...s}=e;return l.createElement(wi,{open:o,onOpenChange:n},l.createElement(Ci,{container:a},l.createElement(Si,{"cmdk-overlay":"",className:r}),l.createElement(Ri,{"aria-label":e.label,"cmdk-dialog":"",className:i},l.createElement(Ii,{ref:t,...s}))))}),hd=l.forwardRef((e,t)=>Me(o=>o.filtered.count===0)?l.createElement(Re.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),xd=l.forwardRef((e,t)=>{let{progress:o,children:n,label:r="Loading...",...i}=e;return l.createElement(Re.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},to(e,a=>l.createElement("div",{"aria-hidden":!0},a)))}),Fe=Object.assign(Ii,{List:md,Item:dd,Input:vd,Group:fd,Separator:pd,Dialog:gd,Empty:hd,Loading:xd});function bd(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return o;o=o.nextElementSibling}}function yd(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return o;o=o.previousElementSibling}}function Ni(e){let t=l.useRef(e);return We(()=>{t.current=e}),t}var We=typeof window>"u"?l.useEffect:l.useLayoutEffect;function Je(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Me(e){let t=dn(),o=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,o,o)}function ji(e,t,o,n=[]){let r=l.useRef(),i=Rt();return We(()=>{var a;let s=(()=>{var u;for(let f of o){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():r.current}})(),c=n.map(u=>u.trim());i.value(e,s,c),(a=t.current)==null||a.setAttribute(Qe,s),r.current=s}),r}var wd=()=>{let[e,t]=l.useState(),o=Je(()=>new Map);return We(()=>{o.current.forEach(n=>n()),o.current=new Map},[e]),(n,r)=>{o.current.set(n,r),t({})}};function Cd(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function to({asChild:e,children:t},o){return e&&l.isValidElement(t)?l.cloneElement(Cd(t),{ref:t.ref},o(t.props.children)):o(t)}var Sd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Rd=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"})}),Ed=({...e})=>d.jsx(wi,{"data-slot":"dialog",...e}),Pd=({...e})=>d.jsx(ad,{"data-slot":"dialog-trigger",...e}),Oi=({...e})=>d.jsx(Ci,{"data-slot":"dialog-portal",...e}),Td=({className:e,...t})=>d.jsx(Ei,{"data-slot":"dialog-close",className:I("volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-focus-visible:outline-accent-a8",e),...t}),_i=({className:e,...t})=>d.jsx(Si,{"data-slot":"dialog-overlay",className:I("volt-ui-data-[state=open]:animate-in volt-ui-data-[state=closed]:animate-out volt-ui-data-[state=closed]:fade-out-0 volt-ui-data-[state=open]:fade-in-0 volt-ui-fixed volt-ui-inset-0 volt-ui-z-50 volt-ui-bg-black/50",e),...t}),kd=({className:e,children:t,showCloseButton:o=!0,size:n="lg",...r})=>d.jsxs(Oi,{"data-slot":"dialog-portal",children:[d.jsx(_i,{}),d.jsxs(Ri,{"data-slot":"dialog-content",className:I("volt-ui-bg-body volt-ui-data-[state=open]:animate-in volt-ui-data-[state=closed]:animate-out volt-ui-data-[state=closed]:fade-out-0 volt-ui-data-[state=open]:fade-in-0 volt-ui-data-[state=closed]:zoom-out-95 volt-ui-data-[state=open]:zoom-in-95 volt-ui-fixed volt-ui-top-[50%] volt-ui-left-[50%] volt-ui-z-50 volt-ui-grid volt-ui-w-full volt-ui-max-w-[calc(100%-2rem)] volt-ui-translate-x-[-50%] volt-ui-translate-y-[-50%] volt-ui-gap-6 volt-ui-rounded-xl volt-ui-border volt-ui-p-6 volt-ui-shadow-lg volt-ui-duration-200",{"volt-ui-sm:max-w-sm":n==="sm","volt-ui-sm:max-w-md":n==="md","volt-ui-sm:max-w-lg":n==="lg","volt-ui-sm:max-w-xl":n==="xl","volt-ui-sm:max-w-2xl":n==="2xl","volt-ui-sm:max-w-3xl":n==="3xl","volt-ui-sm:max-w-4xl":n==="4xl","volt-ui-sm:max-w-5xl":n==="5xl","volt-ui-w-full":n==="volt-ui-full-width"},e),...r,children:[t,o&&d.jsxs(Ei,{"data-slot":"dialog-close",className:"volt-ui-data-[state=open]:bg-body volt-ui-size-6 volt-ui-opacity-70 volt-ui-hover:opacity-100 volt-ui-focus-visible:opacity-100 volt-ui-transition-all volt-ui-data-[state=open]:text-gray-light volt-ui-absolute volt-ui-top-4 volt-ui-right-4 volt-ui-rounded-full volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-focus-visible:outline-accent-a8 volt-ui-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='volt-ui-size-'])]:size-4",children:[d.jsx(Rd,{}),d.jsx("span",{className:"volt-ui-sr-only",children:"Close"})]})]})]}),Ad=({className:e,...t})=>d.jsx("div",{"data-slot":"volt-ui-dialog-header",className:I("volt-ui-flex volt-ui-flex-col volt-ui-gap-2 volt-ui-text-left",e),...t}),Id=({className:e,...t})=>d.jsx("div",{"data-slot":"volt-ui-dialog-footer",className:I("volt-ui-flex volt-ui-gap-2 volt-ui-justify-end",e),...t}),Nd=({className:e,...t})=>d.jsx(sd,{"data-slot":"volt-ui-dialog-title",className:I("volt-ui-text-lg volt-ui-leading-none volt-ui-font-semibold volt-ui-text-gray-default",e),...t}),jd=({className:e,...t})=>d.jsx(ld,{"data-slot":"volt-ui-dialog-description",className:I("volt-ui-text-gray-light volt-ui-text-sm",e),...t}),Od=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M380-320q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l224 224q11 11 11 28t-11 28q-11 11-28 11t-28-11L532-372q-30 24-69 38t-83 14Zm0-80q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})}),_d=({className:e,...t})=>d.jsx(Fe,{"data-slot":"command",className:I("volt-ui-bg-body volt-ui-text-gray-default volt-ui-flex volt-ui-h-full volt-ui-w-full volt-ui-flex-col volt-ui-overflow-hidden volt-ui-rounded-md",e),...t}),Md=({className:e,...t})=>d.jsxs("div",{"data-slot":"command-input-wrapper",className:"volt-ui-flex volt-ui-items-center volt-ui-gap-2 volt-ui-border-b volt-ui-px-3",children:[d.jsx(Od,{className:"volt-ui-size-5 volt-ui-shrink-0 volt-ui-opacity-50"}),d.jsx(Fe.Input,{"data-slot":"command-input",className:I("volt-ui-placeholder:text-gray-light volt-ui-h-12 volt-ui-flex volt-ui-w-full volt-ui-rounded-md volt-ui-bg-transparent volt-ui-py-3 volt-ui-text-sm volt-ui-outline-hidden volt-ui-disabled:cursor-not-allowed volt-ui-disabled:opacity-50",e),...t})]}),Dd=({className:e,...t})=>d.jsx(Fe.List,{"data-slot":"command-list",className:I("volt-ui-scroll-py-1 volt-ui-overflow-x-hidden volt-ui-overflow-y-auto",e),...t}),Ld=({...e})=>d.jsx(Fe.Empty,{"data-slot":"command-empty",className:"volt-ui-py-6 volt-ui-text-center volt-ui-text-sm",...e}),Fd=({className:e,...t})=>d.jsx(Fe.Group,{"data-slot":"command-group",className:I("volt-ui-text-foreground volt-ui-**:[[cmdk-group-heading]]:text-gray-light volt-ui-overflow-hidden volt-ui-p-1 volt-ui-**:[[cmdk-group-heading]]:px-2 volt-ui-**:[[cmdk-group-heading]]:py-1.5 volt-ui-**:[[cmdk-group-heading]]:text-xs volt-ui-**:[[cmdk-group-heading]]:font-medium",e),...t}),$d=({className:e,...t})=>d.jsx(Fe.Separator,{"data-slot":"command-separator",className:I("volt-ui-bg-gray-soft volt-ui--mx-1 volt-ui-h-px",e),...t}),Bd=({className:e,...t})=>d.jsx(Fe.Item,{"data-slot":"command-item",className:I("volt-ui-data-[selected=true]:bg-accent-a3 volt-ui-data-[selected=true]:text-gray-default [&_svg:not([class*='volt-ui-text-'])]:text-gray-light volt-ui-relative volt-ui-flex volt-ui-cursor-default volt-ui-items-center volt-ui-gap-2 volt-ui-rounded-sm volt-ui-px-2 volt-ui-py-1.5 volt-ui-text-sm volt-ui-outline-hidden volt-ui-select-none volt-ui-data-[disabled=true]:pointer-events-none volt-ui-data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='volt-ui-size-'])]:size-4",e),...t}),qd=({className:e,...t})=>d.jsx(Fe.Loading,{"data-slot":"volt-ui-command-loading",className:I("volt-ui-text-gray-light",e),...t}),zd=["top","right","bottom","left"],De=Math.min,ce=Math.max,Wt=Math.round,Lt=Math.floor,Ce=e=>({x:e,y:e}),Vd={left:"right",right:"left",bottom:"top",top:"bottom"},Wd={start:"end",end:"start"};function Vo(e,t,o){return ce(e,De(t,o))}function Te(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function lt(e){return e.split("-")[1]}function fn(e){return e==="x"?"y":"x"}function pn(e){return e==="y"?"height":"width"}const Gd=new Set(["top","bottom"]);function we(e){return Gd.has(ke(e))?"y":"x"}function vn(e){return fn(we(e))}function Hd(e,t,o){o===void 0&&(o=!1);const n=lt(e),r=vn(e),i=pn(r);let a=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Gt(a)),[a,Gt(a)]}function Ud(e){const t=Gt(e);return[Wo(e),t,Wo(t)]}function Wo(e){return e.replace(/start|end/g,t=>Wd[t])}const ar=["left","right"],sr=["right","left"],Kd=["top","bottom"],Yd=["bottom","top"];function Zd(e,t,o){switch(e){case"top":case"bottom":return o?t?sr:ar:t?ar:sr;case"left":case"right":return t?Kd:Yd;default:return[]}}function Xd(e,t,o,n){const r=lt(e);let i=Zd(ke(e),o==="start",n);return r&&(i=i.map(a=>a+"-"+r),t&&(i=i.concat(i.map(Wo)))),i}function Gt(e){return e.replace(/left|right|bottom|top/g,t=>Vd[t])}function Qd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mi(e){return typeof e!="number"?Qd(e):{top:e,right:e,bottom:e,left:e}}function Ht(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function lr(e,t,o){let{reference:n,floating:r}=e;const i=we(t),a=vn(t),s=pn(a),c=ke(t),u=i==="y",f=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,g=n[s]/2-r[s]/2;let m;switch(c){case"top":m={x:f,y:n.y-r.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:p};break;case"left":m={x:n.x-r.width,y:p};break;default:m={x:n.x,y:n.y}}switch(lt(t)){case"start":m[a]-=g*(o&&u?-1:1);break;case"end":m[a]+=g*(o&&u?-1:1);break}return m}const Jd=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:a}=o,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:p}=lr(u,n,c),g=n,m={},b=0;for(let v=0;v<s.length;v++){const{name:h,fn:y}=s[v],{x,y:w,data:C,reset:S}=await y({x:f,y:p,initialPlacement:n,placement:g,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});f=x??f,p=w??p,m={...m,[h]:{...m[h],...C}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(u=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:f,y:p}=lr(u,g,c)),v=-1)}return{x:f,y:p,placement:g,strategy:r,middlewareData:m}};async function xt(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:m=0}=Te(t,e),b=Mi(m),h=s[g?p==="floating"?"reference":"floating":p],y=Ht(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(h)))==null||o?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),x=p==="floating"?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),C=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Ht(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-S.top+b.top)/C.y,bottom:(S.bottom-y.bottom+b.bottom)/C.y,left:(y.left-S.left+b.left)/C.x,right:(S.right-y.right+b.right)/C.x}}const ef=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:f=0}=Te(e,t)||{};if(u==null)return{};const p=Mi(f),g={x:o,y:n},m=vn(r),b=pn(m),v=await a.getDimensions(u),h=m==="y",y=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",C=i.reference[b]+i.reference[m]-g[m]-i.floating[b],S=g[m]-i.reference[m],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let E=k?k[w]:0;(!E||!await(a.isElement==null?void 0:a.isElement(k)))&&(E=s.floating[w]||i.floating[b]);const R=C/2-S/2,F=E/2-v[b]/2-1,B=De(p[y],F),K=De(p[x],F),Y=B,Z=E-v[b]-K,q=E/2-v[b]/2+R,G=Vo(Y,q,Z),M=!c.arrow&&lt(r)!=null&&q!==G&&i.reference[b]/2-(q<Y?B:K)-v[b]/2<0,z=M?q<Y?q-Y:q-Z:0;return{[m]:g[m]+z,data:{[m]:G,centerOffset:q-G-z,...M&&{alignmentOffset:z}},reset:M}}}),tf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...h}=Te(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const y=ke(r),x=we(s),w=ke(s)===s,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=g||(w||!v?[Gt(s)]:Ud(s)),k=b!=="none";!g&&k&&S.push(...Xd(s,v,b,C));const E=[s,...S],R=await xt(t,h),F=[];let B=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&F.push(R[y]),p){const q=Hd(r,a,C);F.push(R[q[0]],R[q[1]])}if(B=[...B,{placement:r,overflows:F}],!F.every(q=>q<=0)){var K,Y;const q=(((K=i.flip)==null?void 0:K.index)||0)+1,G=E[q];if(G&&(!(p==="alignment"?x!==we(G):!1)||B.every(T=>we(T.placement)===x?T.overflows[0]>0:!0)))return{data:{index:q,overflows:B},reset:{placement:G}};let M=(Y=B.filter(z=>z.overflows[0]<=0).sort((z,T)=>z.overflows[1]-T.overflows[1])[0])==null?void 0:Y.placement;if(!M)switch(m){case"bestFit":{var Z;const z=(Z=B.filter(T=>{if(k){const te=we(T.placement);return te===x||te==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(te=>te>0).reduce((te,ne)=>te+ne,0)]).sort((T,te)=>T[1]-te[1])[0])==null?void 0:Z[0];z&&(M=z);break}case"initialPlacement":M=s;break}if(r!==M)return{reset:{placement:M}}}return{}}}};function cr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ur(e){return zd.some(t=>e[t]>=0)}const of=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:n="referenceHidden",...r}=Te(e,t);switch(n){case"referenceHidden":{const i=await xt(t,{...r,elementContext:"reference"}),a=cr(i,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ur(a)}}}case"escaped":{const i=await xt(t,{...r,altBoundary:!0}),a=cr(i,o.floating);return{data:{escapedOffsets:a,escaped:ur(a)}}}default:return{}}}}},Di=new Set(["left","top"]);async function nf(e,t){const{placement:o,platform:n,elements:r}=e,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),a=ke(o),s=lt(o),c=we(o)==="y",u=Di.has(a)?-1:1,f=i&&c?-1:1,p=Te(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(m=s==="end"?b*-1:b),c?{x:m*f,y:g*u}:{x:g*u,y:m*f}}const rf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await nf(t,e);return a===((o=s.offset)==null?void 0:o.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}},af=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:h=>{let{x:y,y:x}=h;return{x:y,y:x}}},...c}=Te(e,t),u={x:o,y:n},f=await xt(t,c),p=we(ke(r)),g=fn(p);let m=u[g],b=u[p];if(i){const h=g==="y"?"top":"left",y=g==="y"?"bottom":"right",x=m+f[h],w=m-f[y];m=Vo(x,m,w)}if(a){const h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=b+f[h],w=b-f[y];b=Vo(x,b,w)}const v=s.fn({...t,[g]:m,[p]:b});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[g]:i,[p]:a}}}}}},sf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:n,placement:r,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Te(e,t),f={x:o,y:n},p=we(r),g=fn(p);let m=f[g],b=f[p];const v=Te(s,t),h=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=g==="y"?"height":"width",C=i.reference[g]-i.floating[w]+h.mainAxis,S=i.reference[g]+i.reference[w]-h.mainAxis;m<C?m=C:m>S&&(m=S)}if(u){var y,x;const w=g==="y"?"width":"height",C=Di.has(ke(r)),S=i.reference[p]-i.floating[w]+(C&&((y=a.offset)==null?void 0:y[p])||0)+(C?0:h.crossAxis),k=i.reference[p]+i.reference[w]+(C?0:((x=a.offset)==null?void 0:x[p])||0)-(C?h.crossAxis:0);b<S?b=S:b>k&&(b=k)}return{[g]:m,[p]:b}}}},lf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:r,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...u}=Te(e,t),f=await xt(t,u),p=ke(r),g=lt(r),m=we(r)==="y",{width:b,height:v}=i.floating;let h,y;p==="top"||p==="bottom"?(h=p,y=g===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,h=g==="end"?"top":"bottom");const x=v-f.top-f.bottom,w=b-f.left-f.right,C=De(v-f[h],x),S=De(b-f[y],w),k=!t.middlewareData.shift;let E=C,R=S;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(R=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=x),k&&!g){const B=ce(f.left,0),K=ce(f.right,0),Y=ce(f.top,0),Z=ce(f.bottom,0);m?R=b-2*(B!==0||K!==0?B+K:ce(f.left,f.right)):E=v-2*(Y!==0||Z!==0?Y+Z:ce(f.top,f.bottom))}await c({...t,availableWidth:R,availableHeight:E});const F=await a.getDimensions(s.floating);return b!==F.width||v!==F.height?{reset:{rects:!0}}:{}}}};function oo(){return typeof window<"u"}function ct(e){return Li(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ee(e){var t;return(t=(Li(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Li(e){return oo()?e instanceof Node||e instanceof ue(e).Node:!1}function ve(e){return oo()?e instanceof Element||e instanceof ue(e).Element:!1}function Se(e){return oo()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function dr(e){return!oo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}const cf=new Set(["inline","contents"]);function Et(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!cf.has(r)}const uf=new Set(["table","td","th"]);function df(e){return uf.has(ct(e))}const ff=[":popover-open",":modal"];function no(e){return ff.some(t=>{try{return e.matches(t)}catch{return!1}})}const pf=["transform","translate","scale","rotate","perspective"],vf=["transform","translate","scale","rotate","perspective","filter"],mf=["paint","layout","strict","content"];function mn(e){const t=gn(),o=ve(e)?me(e):e;return pf.some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||vf.some(n=>(o.willChange||"").includes(n))||mf.some(n=>(o.contain||"").includes(n))}function gf(e){let t=Le(e);for(;Se(t)&&!nt(t);){if(mn(t))return t;if(no(t))return null;t=Le(t)}return null}function gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hf=new Set(["html","body","#document"]);function nt(e){return hf.has(ct(e))}function me(e){return ue(e).getComputedStyle(e)}function ro(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Le(e){if(ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dr(e)&&e.host||Ee(e);return dr(t)?t.host:t}function Fi(e){const t=Le(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&&Et(t)?t:Fi(t)}function bt(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Fi(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ue(r);if(i){const s=Go(a);return t.concat(a,a.visualViewport||[],Et(r)?r:[],s&&o?bt(s):[])}return t.concat(r,bt(r,[],o))}function Go(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $i(e){const t=me(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Se(e),i=r?e.offsetWidth:o,a=r?e.offsetHeight:n,s=Wt(o)!==i||Wt(n)!==a;return s&&(o=i,n=a),{width:o,height:n,$:s}}function hn(e){return ve(e)?e:e.contextElement}function tt(e){const t=hn(e);if(!Se(t))return Ce(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:i}=$i(t);let a=(i?Wt(o.width):o.width)/n,s=(i?Wt(o.height):o.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const xf=Ce(0);function Bi(e){const t=ue(e);return!gn()||!t.visualViewport?xf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bf(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ue(e)?!1:t}function Ge(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),i=hn(e);let a=Ce(1);t&&(n?ve(n)&&(a=tt(n)):a=tt(e));const s=bf(i,o,n)?Bi(i):Ce(0);let c=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(i){const g=ue(i),m=n&&ve(n)?ue(n):n;let b=g,v=Go(b);for(;v&&n&&m!==b;){const h=tt(v),y=v.getBoundingClientRect(),x=me(v),w=y.left+(v.clientLeft+parseFloat(x.paddingLeft))*h.x,C=y.top+(v.clientTop+parseFloat(x.paddingTop))*h.y;c*=h.x,u*=h.y,f*=h.x,p*=h.y,c+=w,u+=C,b=ue(v),v=Go(b)}}return Ht({width:f,height:p,x:c,y:u})}function io(e,t){const o=ro(e).scrollLeft;return t?t.left+o:Ge(Ee(e)).left+o}function qi(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-io(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function yf(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const i=r==="fixed",a=Ee(n),s=t?no(t.floating):!1;if(n===a||s&&i)return o;let c={scrollLeft:0,scrollTop:0},u=Ce(1);const f=Ce(0),p=Se(n);if((p||!p&&!i)&&((ct(n)!=="body"||Et(a))&&(c=ro(n)),Se(n))){const m=Ge(n);u=tt(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const g=a&&!p&&!i?qi(a,c):Ce(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-c.scrollLeft*u.x+f.x+g.x,y:o.y*u.y-c.scrollTop*u.y+f.y+g.y}}function wf(e){return Array.from(e.getClientRects())}function Cf(e){const t=Ee(e),o=ro(e),n=e.ownerDocument.body,r=ce(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ce(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-o.scrollLeft+io(e);const s=-o.scrollTop;return me(n).direction==="rtl"&&(a+=ce(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:s}}const fr=25;function Sf(e,t){const o=ue(e),n=Ee(e),r=o.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const f=gn();(!f||f&&t==="fixed")&&(s=r.offsetLeft,c=r.offsetTop)}const u=io(n);if(u<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-m);b<=fr&&(i-=b)}else u<=fr&&(i+=u);return{width:i,height:a,x:s,y:c}}const Rf=new Set(["absolute","fixed"]);function Ef(e,t){const o=Ge(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=Se(e)?tt(e):Ce(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=r*i.x,u=n*i.y;return{width:a,height:s,x:c,y:u}}function pr(e,t,o){let n;if(t==="viewport")n=Sf(e,o);else if(t==="document")n=Cf(Ee(e));else if(ve(t))n=Ef(t,o);else{const r=Bi(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ht(n)}function zi(e,t){const o=Le(e);return o===t||!ve(o)||nt(o)?!1:me(o).position==="fixed"||zi(o,t)}function Pf(e,t){const o=t.get(e);if(o)return o;let n=bt(e,[],!1).filter(s=>ve(s)&&ct(s)!=="body"),r=null;const i=me(e).position==="fixed";let a=i?Le(e):e;for(;ve(a)&&!nt(a);){const s=me(a),c=mn(a);!c&&s.position==="fixed"&&(r=null),(i?!c&&!r:!c&&s.position==="static"&&!!r&&Rf.has(r.position)||Et(a)&&!c&&zi(e,a))?n=n.filter(f=>f!==a):r=s,a=Le(a)}return t.set(e,n),n}function Tf(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const a=[...o==="clippingAncestors"?no(t)?[]:Pf(t,this._c):[].concat(o),n],s=a[0],c=a.reduce((u,f)=>{const p=pr(t,f,r);return u.top=ce(p.top,u.top),u.right=De(p.right,u.right),u.bottom=De(p.bottom,u.bottom),u.left=ce(p.left,u.left),u},pr(t,s,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kf(e){const{width:t,height:o}=$i(e);return{width:t,height:o}}function Af(e,t,o){const n=Se(t),r=Ee(t),i=o==="fixed",a=Ge(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Ce(0);function u(){c.x=io(r)}if(n||!n&&!i)if((ct(t)!=="body"||Et(r))&&(s=ro(t)),n){const m=Ge(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else r&&u();i&&!n&&r&&u();const f=r&&!n&&!i?qi(r,s):Ce(0),p=a.left+s.scrollLeft-c.x-f.x,g=a.top+s.scrollTop-c.y-f.y;return{x:p,y:g,width:a.width,height:a.height}}function Mo(e){return me(e).position==="static"}function vr(e,t){if(!Se(e)||me(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ee(e)===o&&(o=o.ownerDocument.body),o}function Vi(e,t){const o=ue(e);if(no(e))return o;if(!Se(e)){let r=Le(e);for(;r&&!nt(r);){if(ve(r)&&!Mo(r))return r;r=Le(r)}return o}let n=vr(e,t);for(;n&&df(n)&&Mo(n);)n=vr(n,t);return n&&nt(n)&&Mo(n)&&!mn(n)?o:n||gf(e)||o}const If=async function(e){const t=this.getOffsetParent||Vi,o=this.getDimensions,n=await o(e.floating);return{reference:Af(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Nf(e){return me(e).direction==="rtl"}const jf={convertOffsetParentRelativeRectToViewportRelativeRect:yf,getDocumentElement:Ee,getClippingRect:Tf,getOffsetParent:Vi,getElementRects:If,getClientRects:wf,getDimensions:kf,getScale:tt,isElement:ve,isRTL:Nf};function Wi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Of(e,t){let o=null,n;const r=Ee(e);function i(){var s;clearTimeout(n),(s=o)==null||s.disconnect(),o=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:m}=u;if(s||t(),!g||!m)return;const b=Lt(p),v=Lt(r.clientWidth-(f+g)),h=Lt(r.clientHeight-(p+m)),y=Lt(f),w={rootMargin:-b+"px "+-v+"px "+-h+"px "+-y+"px",threshold:ce(0,De(1,c))||1};let C=!0;function S(k){const E=k[0].intersectionRatio;if(E!==c){if(!C)return a();E?a(!1,E):n=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!Wi(u,e.getBoundingClientRect())&&a(),C=!1}try{o=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{o=new IntersectionObserver(S,w)}o.observe(e)}return a(!0),i}function _f(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=hn(e),f=r||i?[...u?bt(u):[],...bt(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",o,{passive:!0}),i&&y.addEventListener("resize",o)});const p=u&&s?Of(u,o):null;let g=-1,m=null;a&&(m=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),o()}),u&&!c&&m.observe(u),m.observe(t));let b,v=c?Ge(e):null;c&&h();function h(){const y=Ge(e);v&&!Wi(v,y)&&o(),v=y,b=requestAnimationFrame(h)}return o(),()=>{var y;f.forEach(x=>{r&&x.removeEventListener("scroll",o),i&&x.removeEventListener("resize",o)}),p==null||p(),(y=m)==null||y.disconnect(),m=null,c&&cancelAnimationFrame(b)}}const Mf=rf,Df=af,Lf=tf,Ff=lf,$f=of,mr=ef,Bf=sf,qf=(e,t,o)=>{const n=new Map,r={platform:jf,...o},i={...r.platform,_c:n};return Jd(e,t,{...r,platform:i})};var zf=typeof document<"u",Vf=function(){},Bt=zf?oe.useLayoutEffect:Vf;function Ut(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 o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(n=o;n--!==0;)if(!Ut(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=o;n--!==0;){const i=r[n];if(!(i==="_owner"&&e.$$typeof)&&!Ut(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Gi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gr(e,t){const o=Gi(e);return Math.round(t*o)/o}function Do(e){const t=l.useRef(e);return Bt(()=>{t.current=e}),t}function Wf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=l.useState(n);Ut(g,n)||m(n);const[b,v]=l.useState(null),[h,y]=l.useState(null),x=l.useCallback(T=>{T!==k.current&&(k.current=T,v(T))},[]),w=l.useCallback(T=>{T!==E.current&&(E.current=T,y(T))},[]),C=i||b,S=a||h,k=l.useRef(null),E=l.useRef(null),R=l.useRef(f),F=c!=null,B=Do(c),K=Do(r),Y=Do(u),Z=l.useCallback(()=>{if(!k.current||!E.current)return;const T={placement:t,strategy:o,middleware:g};K.current&&(T.platform=K.current),qf(k.current,E.current,T).then(te=>{const ne={...te,isPositioned:Y.current!==!1};q.current&&!Ut(R.current,ne)&&(R.current=ne,Zt.flushSync(()=>{p(ne)}))})},[g,t,o,K,Y]);Bt(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(T=>({...T,isPositioned:!1})))},[u]);const q=l.useRef(!1);Bt(()=>(q.current=!0,()=>{q.current=!1}),[]),Bt(()=>{if(C&&(k.current=C),S&&(E.current=S),C&&S){if(B.current)return B.current(C,S,Z);Z()}},[C,S,Z,B,F]);const G=l.useMemo(()=>({reference:k,floating:E,setReference:x,setFloating:w}),[x,w]),M=l.useMemo(()=>({reference:C,floating:S}),[C,S]),z=l.useMemo(()=>{const T={position:o,left:0,top:0};if(!M.floating)return T;const te=gr(M.floating,f.x),ne=gr(M.floating,f.y);return s?{...T,transform:"translate("+te+"px, "+ne+"px)",...Gi(M.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:te,top:ne}},[o,s,M.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:Z,refs:G,elements:M,floatingStyles:z}),[f,Z,G,M,z])}const Gf=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){const{element:n,padding:r}=typeof e=="function"?e(o):e;return n&&t(n)?n.current!=null?mr({element:n.current,padding:r}).fn(o):{}:n?mr({element:n,padding:r}).fn(o):{}}}},Hf=(e,t)=>({...Mf(e),options:[e,t]}),Uf=(e,t)=>({...Df(e),options:[e,t]}),Kf=(e,t)=>({...Bf(e),options:[e,t]}),Yf=(e,t)=>({...Lf(e),options:[e,t]}),Zf=(e,t)=>({...Ff(e),options:[e,t]}),Xf=(e,t)=>({...$f(e),options:[e,t]}),Qf=(e,t)=>({...Gf(e),options:[e,t]});var Jf="Arrow",Hi=l.forwardRef((e,t)=>{const{children:o,width:n=10,height:r=5,...i}=e;return d.jsx($.svg,{...i,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hi.displayName=Jf;var ep=Hi;function ao(e){const[t,o]=l.useState(void 0);return ae(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;o({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else o(void 0)},[e]),t}var xn="Popper",[Ui,ut]=de(xn),[tp,Ki]=Ui(xn),Yi=e=>{const{__scopePopper:t,children:o}=e,[n,r]=l.useState(null);return d.jsx(tp,{scope:t,anchor:n,onAnchorChange:r,children:o})};Yi.displayName=xn;var Zi="PopperAnchor",Xi=l.forwardRef((e,t)=>{const{__scopePopper:o,virtualRef:n,...r}=e,i=Ki(Zi,o),a=l.useRef(null),s=Q(t,a),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||a.current,u!==c.current&&i.onAnchorChange(c.current)}),n?null:d.jsx($.div,{...r,ref:s})});Xi.displayName=Zi;var bn="PopperContent",[op,np]=Ui(bn),Qi=l.forwardRef((e,t)=>{var A,V,U,X,ee,J;const{__scopePopper:o,side:n="bottom",sideOffset:r=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:b,...v}=e,h=Ki(bn,o),[y,x]=l.useState(null),w=Q(t,le=>x(le)),[C,S]=l.useState(null),k=ao(C),E=(k==null?void 0:k.width)??0,R=(k==null?void 0:k.height)??0,F=n+(i!=="center"?"-"+i:""),B=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},K=Array.isArray(u)?u:[u],Y=K.length>0,Z={padding:B,boundary:K.filter(ip),altBoundary:Y},{refs:q,floatingStyles:G,placement:M,isPositioned:z,middlewareData:T}=Wf({strategy:"fixed",placement:F,whileElementsMounted:(...le)=>_f(...le,{animationFrame:m==="always"}),elements:{reference:h.anchor},middleware:[Hf({mainAxis:r+R,alignmentAxis:a}),c&&Uf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Kf():void 0,...Z}),c&&Yf({...Z}),Zf({...Z,apply:({elements:le,rects:be,availableWidth:ft,availableHeight:pt})=>{const{width:vt,height:il}=be.reference,At=le.floating.style;At.setProperty("--radix-popper-available-width",`${ft}px`),At.setProperty("--radix-popper-available-height",`${pt}px`),At.setProperty("--radix-popper-anchor-width",`${vt}px`),At.setProperty("--radix-popper-anchor-height",`${il}px`)}}),C&&Qf({element:C,padding:s}),ap({arrowWidth:E,arrowHeight:R}),g&&Xf({strategy:"referenceHidden",...Z})]}),[te,ne]=ta(M),se=_e(b);ae(()=>{z&&(se==null||se())},[z,se]);const P=(A=T.arrow)==null?void 0:A.x,O=(V=T.arrow)==null?void 0:V.y,D=((U=T.arrow)==null?void 0:U.centerOffset)!==0,[_,H]=l.useState();return ae(()=>{y&&H(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:z?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_,"--radix-popper-transform-origin":[(X=T.transformOrigin)==null?void 0:X.x,(ee=T.transformOrigin)==null?void 0:ee.y].join(" "),...((J=T.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(op,{scope:o,placedSide:te,onArrowChange:S,arrowX:P,arrowY:O,shouldHideArrow:D,children:d.jsx($.div,{"data-side":te,"data-align":ne,...v,ref:w,style:{...v.style,animation:z?void 0:"none"}})})})});Qi.displayName=bn;var Ji="PopperArrow",rp={top:"bottom",right:"left",bottom:"top",left:"right"},ea=l.forwardRef(function(t,o){const{__scopePopper:n,...r}=t,i=np(Ji,n),a=rp[i.placedSide];return d.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:d.jsx(ep,{...r,ref:o,style:{...r.style,display:"block"}})})});ea.displayName=Ji;function ip(e){return e!==null}var ap=e=>({name:"transformOrigin",options:e,fn(t){var h,y,x;const{placement:o,rects:n,middlewareData:r}=t,a=((h=r.arrow)==null?void 0:h.centerOffset)!==0,s=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=ta(o),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=r.arrow)==null?void 0:y.x)??0)+s/2,m=(((x=r.arrow)==null?void 0:x.y)??0)+c/2;let b="",v="";return u==="bottom"?(b=a?p:`${g}px`,v=`${-c}px`):u==="top"?(b=a?p:`${g}px`,v=`${n.floating.height+c}px`):u==="right"?(b=`${-c}px`,v=a?p:`${m}px`):u==="left"&&(b=`${n.floating.width+c}px`,v=a?p:`${m}px`),{data:{x:b,y:v}}}});function ta(e){const[t,o="center"]=e.split("-");return[t,o]}var yn=Yi,so=Xi,wn=Qi,Cn=ea,lo="Popover",[oa]=de(lo,[ut]),Pt=ut(),[sp,$e]=oa(lo),na=e=>{const{__scopePopover:t,children:o,open:n,defaultOpen:r,onOpenChange:i,modal:a=!1}=e,s=Pt(t),c=l.useRef(null),[u,f]=l.useState(!1),[p,g]=fe({prop:n,defaultProp:r??!1,onChange:i,caller:lo});return d.jsx(yn,{...s,children:d.jsx(sp,{scope:t,contentId:ie(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:a,children:o})})};na.displayName=lo;var ra="PopoverAnchor",ia=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=$e(ra,o),i=Pt(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=r;return l.useEffect(()=>(a(),()=>s()),[a,s]),d.jsx(so,{...i,...n,ref:t})});ia.displayName=ra;var aa="PopoverTrigger",sa=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=$e(aa,o),i=Pt(o),a=Q(t,r.triggerRef),s=d.jsx($.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":fa(r.open),...n,ref:a,onClick:L(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?s:d.jsx(so,{asChild:!0,...i,children:s})});sa.displayName=aa;var Sn="PopoverPortal",[lp,cp]=oa(Sn,{forceMount:void 0}),la=e=>{const{__scopePopover:t,forceMount:o,children:n,container:r}=e,i=$e(Sn,t);return d.jsx(lp,{scope:t,forceMount:o,children:d.jsx(ge,{present:o||i.open,children:d.jsx(St,{asChild:!0,container:r,children:n})})})};la.displayName=Sn;var rt="PopoverContent",ca=l.forwardRef((e,t)=>{const o=cp(rt,e.__scopePopover),{forceMount:n=o.forceMount,...r}=e,i=$e(rt,e.__scopePopover);return d.jsx(ge,{present:n||i.open,children:i.modal?d.jsx(dp,{...r,ref:t}):d.jsx(fp,{...r,ref:t})})});ca.displayName=rt;var up=ot("PopoverContent.RemoveScroll"),dp=l.forwardRef((e,t)=>{const o=$e(rt,e.__scopePopover),n=l.useRef(null),r=Q(t,n),i=l.useRef(!1);return l.useEffect(()=>{const a=n.current;if(a)return sn(a)},[]),d.jsx(Jt,{as:up,allowPinchZoom:!0,children:d.jsx(ua,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=o.triggerRef.current)==null||s.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,u=s.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:L(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),fp=l.forwardRef((e,t)=>{const o=$e(rt,e.__scopePopover),n=l.useRef(!1),r=l.useRef(!1);return d.jsx(ua,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(n.current||(s=o.triggerRef.current)==null||s.focus(),i.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const a=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),ua=l.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...p}=e,g=$e(rt,o),m=Pt(o);return an(),d.jsx(Xt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:i,children:d.jsx(Ct,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(wn,{"data-state":fa(g.open),role:"dialog",id:g.contentId,...m,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),da="PopoverClose",pp=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=$e(da,o);return d.jsx($.button,{type:"button",...n,ref:t,onClick:L(e.onClick,()=>r.onOpenChange(!1))})});pp.displayName=da;var vp="PopoverArrow",mp=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=Pt(o);return d.jsx(Cn,{...r,...n,ref:t})});mp.displayName=vp;function fa(e){return e?"open":"closed"}var pa=na,gp=ia,va=sa,hp=la,ma=ca;const xp=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"})}),bp=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z"})}),ga=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"})}),yp=({...e})=>d.jsx(pa,{"data-slot":"combobox",...e}),wp=({className:e,...t})=>d.jsx(Fd,{"data-slot":"combobox-group",className:I("volt-ui-p-0!",e),...t}),Cp=({className:e,...t})=>d.jsx(rn,{"data-slot":"combobox-group-label",className:I("volt-ui-text-gray volt-ui-font-semibold volt-ui-px-2 volt-ui-py-1.5 volt-ui-text-xs",e),...t}),Sp=({className:e,children:t,...o})=>d.jsx("div",{"data-slot":"combobox-value",className:I("volt-ui-text-gray-default volt-ui-w-full volt-ui-text-left volt-ui-flex-wrap volt-ui-flex volt-ui-gap-2 volt-ui-relative",e),...o,children:t}),Rp=l.forwardRef(({className:e,children:t,...o},n)=>{const{inputRef:r}=wt();return d.jsxs(va,{ref:i=>{r&&(r.current=i),typeof n=="function"?n(i):n&&(n.current=i)},"data-slot":"select-trigger",className:I("volt-ui-group volt-ui-data-placeholder:text-gray-a8 volt-ui-w-full volt-ui-flex volt-ui-items-center volt-ui-justify-between volt-ui-gap-2 volt-ui-rounded-lg volt-ui-bg-transparent volt-ui-text-sm volt-ui-whitespace-nowrap volt-ui-transition-[color,box-shadow] volt-ui-outline-none volt-ui-disabled:cursor-not-allowed volt-ui-disabled:opacity-50 volt-ui-*:data-[slot=select-value]:line-clamp-1 volt-ui-*:data-[slot=select-value]:flex volt-ui-*:data-[slot=select-value]:items-center volt-ui-*:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...o,children:[t,d.jsx(bp,{className:"volt-ui-transition-all volt-ui-size-6 volt-ui-group-data-[selected=open]:rotate-180 volt-ui-text-gray-light"})]})}),Ep=({className:e,children:t,...o})=>d.jsx(ma,{"data-slot":"combobox-content",className:I("volt-ui-bg-body volt-ui-gap-1 volt-ui-text-gray-default volt-ui-data-[selected=open]:animate-in volt-ui-data-[selected=closed]:animate-out volt-ui-data-[selected=closed]:fade-out-0 volt-ui-data-[selected=open]:fade-in-0 volt-ui-data-[selected=closed]:zoom-out-95 volt-ui-data-[selected=open]:zoom-in-95 volt-ui-data-[side=bottom]:slide-in-from-top-2 volt-ui-data-[side=left]:slide-in-from-right-2 volt-ui-data-[side=right]:slide-in-from-left-2 volt-ui-data-[side=top]:slide-in-from-bottom-2 volt-ui-relative volt-ui-z-50 volt-ui-origin-(--radix-select-content-transform-origin) volt-ui-overflow-x-hidden volt-ui-overflow-y-auto volt-ui-rounded-2xl volt-ui-border volt-ui-shadow-md","volt-ui-w-(--radix-popover-trigger-width) volt-ui-max-h-(--radix-popper-available-height)",e),...o,children:d.jsx(_d,{"data-slot":"combobox-command",className:"volt-ui-w-full volt-ui-rounded-none",children:t})}),Pp=({className:e,...t})=>d.jsx(Md,{"data-slot":"combobox-command-input",className:I("volt-ui-w-full volt-ui-placeholder:text-gray-a8",e),...t}),Tp=({className:e,...t})=>d.jsx(Dd,{"data-slot":"combobox-command-list",className:I("volt-ui-px-2 volt-ui-py-3",e),...t}),kp=({className:e,children:t,...o})=>d.jsx(Bd,{"data-slot":"combobox-item",className:I("volt-ui-pl-3 volt-ui-py-1.5 volt-ui-not-first:mt-0.5 volt-ui-text-gray-default [&_svg:not([class*='volt-ui-text-'])]:text-gray-default volt-ui-relative volt-ui-flex volt-ui-w-full volt-ui-cursor-default volt-ui-items-center volt-ui-gap-2 volt-ui-rounded-md! volt-ui-pr-8 volt-ui-text-sm volt-ui-outline-none volt-ui-select-none volt-ui-data-[disabled=true]:pointer-events-none volt-ui-data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 volt-ui-*:[span]:last:flex volt-ui-*:[span]:last:items-center volt-ui-*:[span]:last:gap-2","volt-ui-hover:bg-accent-a3 volt-ui-focus:bg-accent-a3 volt-ui-data-[selected=true]:bg-accent-a3",e),...o,children:t}),Ap=({className:e,...t})=>d.jsx(Ld,{"data-slot":"volt-ui-combobox-empty",className:I("volt-ui-py-6 volt-ui-text-center volt-ui-text-gray-default volt-ui-text-sm",e),...t}),Ip=({className:e,...t})=>d.jsx($d,{"data-slot":"volt-ui-select-separator",className:I("volt-ui-bg-gray-soft volt-ui-pointer-events-none volt-ui--mx-1 volt-ui-my-2 volt-ui-h-px",e),...t}),Np=({className:e})=>d.jsx("span",{className:"volt-ui-absolute volt-ui-right-2 volt-ui-flex volt-ui-size-4 volt-ui-items-center volt-ui-justify-center",children:d.jsx(xp,{className:I("volt-ui-size-4 volt-ui-text-gray-default",e)})}),jp=({className:e,...t})=>d.jsx(qd,{"data-slot":"volt-ui-combobox-command-loading",className:I("volt-ui-text-gray-light volt-ui-px-3 volt-ui-py-2",e),...t}),Op=({className:e,onClick:t,...o})=>d.jsx("span",{className:I("volt-ui-p-0.5! volt-ui-min-h-auto volt-ui-absolute volt-ui-right-11 volt-ui-cursor-pointer",nn({variant:"primary",size:"xs"}),e),role:"button",tabIndex:0,onMouseDown:n=>{var r;n.preventDefault(),(r=o.onMouseDown)==null||r.call(o,n)},onClick:n=>{n.preventDefault(),n.stopPropagation(),t==null||t(n)},...o,children:d.jsx(ga,{className:"volt-ui-transition-all volt-ui-text-accent-contrast volt-ui-size-4 volt-ui-group-data-[selected=open]:rotate-180"})}),_p=({className:e,...t})=>d.jsx("span",{className:I("volt-ui-text-gray-a8",e),...t}),Mp=({className:e,onClick:t,...o})=>d.jsx("span",{role:"button",tabIndex:0,className:I("volt-ui-cursor-pointer volt-ui-hover:opacity-70 volt-ui-text-current volt-ui-rounded-full volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-1 volt-ui-focus-visible:outline-accent-a8",e),onMouseDown:n=>{var r;n.preventDefault(),(r=o.onMouseDown)==null||r.call(o,n)},onClick:n=>{n.preventDefault(),n.stopPropagation(),t==null||t(n)},...o,children:d.jsx(ga,{className:"volt-ui-size-4 volt-ui-text-current"})});function hr(e,[t,o]){return Math.min(o,Math.max(t,e))}function Rn(e){const t=e+"CollectionProvider",[o,n]=de(t),[r,i]=o(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:h,children:y}=v,x=oe.useRef(null),w=oe.useRef(new Map).current;return d.jsx(r,{scope:h,itemMap:w,collectionRef:x,children:y})};a.displayName=t;const s=e+"CollectionSlot",c=ot(s),u=oe.forwardRef((v,h)=>{const{scope:y,children:x}=v,w=i(s,y),C=Q(h,w.collectionRef);return d.jsx(c,{ref:C,children:x})});u.displayName=s;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=ot(f),m=oe.forwardRef((v,h)=>{const{scope:y,children:x,...w}=v,C=oe.useRef(null),S=Q(h,C),k=i(f,y);return oe.useEffect(()=>(k.itemMap.set(C,{ref:C,...w}),()=>void k.itemMap.delete(C))),d.jsx(g,{[p]:"",ref:S,children:x})});m.displayName=f;function b(v){const h=i(e+"CollectionConsumer",v);return oe.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((k,E)=>w.indexOf(k.ref.current)-w.indexOf(E.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},b,n]}var Dp=l.createContext(void 0);function co(e){const t=l.useContext(Dp);return e||t||"ltr"}function uo(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ha=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"}),Lp="VisuallyHidden",xa=l.forwardRef((e,t)=>d.jsx($.span,{...e,ref:t,style:{...ha,...e.style}}));xa.displayName=Lp;var Fp=xa,$p=[" ","Enter","ArrowUp","ArrowDown"],Bp=[" ","Enter"],He="Select",[fo,po,qp]=Rn(He),[dt]=de(He,[qp,ut]),vo=ut(),[zp,Be]=dt(He),[Vp,Wp]=dt(He),ba=e=>{const{__scopeSelect:t,children:o,open:n,defaultOpen:r,onOpenChange:i,value:a,defaultValue:s,onValueChange:c,dir:u,name:f,autoComplete:p,disabled:g,required:m,form:b}=e,v=vo(t),[h,y]=l.useState(null),[x,w]=l.useState(null),[C,S]=l.useState(!1),k=co(u),[E,R]=fe({prop:n,defaultProp:r??!1,onChange:i,caller:He}),[F,B]=fe({prop:a,defaultProp:s,onChange:c,caller:He}),K=l.useRef(null),Y=h?b||!!h.closest("form"):!0,[Z,q]=l.useState(new Set),G=Array.from(Z).map(M=>M.props.value).join(";");return d.jsx(yn,{...v,children:d.jsxs(zp,{required:m,scope:t,trigger:h,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:ie(),value:F,onValueChange:B,open:E,onOpenChange:R,dir:k,triggerPointerDownPosRef:K,disabled:g,children:[d.jsx(fo.Provider,{scope:t,children:d.jsx(Vp,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(M=>{q(z=>new Set(z).add(M))},[]),onNativeOptionRemove:l.useCallback(M=>{q(z=>{const T=new Set(z);return T.delete(M),T})},[]),children:o})}),Y?d.jsxs(Wa,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:p,value:F,onChange:M=>B(M.target.value),disabled:g,form:b,children:[F===void 0?d.jsx("option",{value:""}):null,Array.from(Z)]},G):null]})})};ba.displayName=He;var ya="SelectTrigger",wa=l.forwardRef((e,t)=>{const{__scopeSelect:o,disabled:n=!1,...r}=e,i=vo(o),a=Be(ya,o),s=a.disabled||n,c=Q(t,a.onTriggerChange),u=po(o),f=l.useRef("touch"),[p,g,m]=Ha(v=>{const h=u().filter(w=>!w.disabled),y=h.find(w=>w.value===a.value),x=Ua(h,v,y);x!==void 0&&a.onValueChange(x.value)}),b=v=>{s||(a.onOpenChange(!0),m()),v&&(a.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return d.jsx(so,{asChild:!0,...i,children:d.jsx($.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Ga(a.value)?"":void 0,...r,ref:c,onClick:L(r.onClick,v=>{v.currentTarget.focus(),f.current!=="mouse"&&b(v)}),onPointerDown:L(r.onPointerDown,v=>{f.current=v.pointerType;const h=v.target;h.hasPointerCapture(v.pointerId)&&h.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(b(v),v.preventDefault())}),onKeyDown:L(r.onKeyDown,v=>{const h=p.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&g(v.key),!(h&&v.key===" ")&&$p.includes(v.key)&&(b(),v.preventDefault())})})})});wa.displayName=ya;var Ca="SelectValue",Sa=l.forwardRef((e,t)=>{const{__scopeSelect:o,className:n,style:r,children:i,placeholder:a="",...s}=e,c=Be(Ca,o),{onValueNodeHasChildrenChange:u}=c,f=i!==void 0,p=Q(t,c.onValueNodeChange);return ae(()=>{u(f)},[u,f]),d.jsx($.span,{...s,ref:p,style:{pointerEvents:"none"},children:Ga(c.value)?d.jsx(d.Fragment,{children:a}):i})});Sa.displayName=Ca;var Gp="SelectIcon",Ra=l.forwardRef((e,t)=>{const{__scopeSelect:o,children:n,...r}=e;return d.jsx($.span,{"aria-hidden":!0,...r,ref:t,children:n||"▼"})});Ra.displayName=Gp;var Hp="SelectPortal",Ea=e=>d.jsx(St,{asChild:!0,...e});Ea.displayName=Hp;var Ue="SelectContent",Pa=l.forwardRef((e,t)=>{const o=Be(Ue,e.__scopeSelect),[n,r]=l.useState();if(ae(()=>{r(new DocumentFragment)},[]),!o.open){const i=n;return i?Zt.createPortal(d.jsx(Ta,{scope:e.__scopeSelect,children:d.jsx(fo.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),i):null}return d.jsx(ka,{...e,ref:t})});Pa.displayName=Ue;var pe=10,[Ta,qe]=dt(Ue),Up="SelectContentImpl",Kp=ot("SelectContent.RemoveScroll"),ka=l.forwardRef((e,t)=>{const{__scopeSelect:o,position:n="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:v,avoidCollisions:h,...y}=e,x=Be(Ue,o),[w,C]=l.useState(null),[S,k]=l.useState(null),E=Q(t,A=>C(A)),[R,F]=l.useState(null),[B,K]=l.useState(null),Y=po(o),[Z,q]=l.useState(!1),G=l.useRef(!1);l.useEffect(()=>{if(w)return sn(w)},[w]),an();const M=l.useCallback(A=>{const[V,...U]=Y().map(J=>J.ref.current),[X]=U.slice(-1),ee=document.activeElement;for(const J of A)if(J===ee||(J==null||J.scrollIntoView({block:"nearest"}),J===V&&S&&(S.scrollTop=0),J===X&&S&&(S.scrollTop=S.scrollHeight),J==null||J.focus(),document.activeElement!==ee))return},[Y,S]),z=l.useCallback(()=>M([R,w]),[M,R,w]);l.useEffect(()=>{Z&&z()},[Z,z]);const{onOpenChange:T,triggerPointerDownPosRef:te}=x;l.useEffect(()=>{if(w){let A={x:0,y:0};const V=X=>{var ee,J;A={x:Math.abs(Math.round(X.pageX)-(((ee=te.current)==null?void 0:ee.x)??0)),y:Math.abs(Math.round(X.pageY)-(((J=te.current)==null?void 0:J.y)??0))}},U=X=>{A.x<=10&&A.y<=10?X.preventDefault():w.contains(X.target)||T(!1),document.removeEventListener("pointermove",V),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",V),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",V),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,T,te]),l.useEffect(()=>{const A=()=>T(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[T]);const[ne,se]=Ha(A=>{const V=Y().filter(ee=>!ee.disabled),U=V.find(ee=>ee.ref.current===document.activeElement),X=Ua(V,A,U);X&&setTimeout(()=>X.ref.current.focus())}),P=l.useCallback((A,V,U)=>{const X=!G.current&&!U;(x.value!==void 0&&x.value===V||X)&&(F(A),X&&(G.current=!0))},[x.value]),O=l.useCallback(()=>w==null?void 0:w.focus(),[w]),D=l.useCallback((A,V,U)=>{const X=!G.current&&!U;(x.value!==void 0&&x.value===V||X)&&K(A)},[x.value]),_=n==="popper"?Ho:Aa,H=_===Ho?{side:s,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:v,avoidCollisions:h}:{};return d.jsx(Ta,{scope:o,content:w,viewport:S,onViewportChange:k,itemRefCallback:P,selectedItem:R,onItemLeave:O,itemTextRefCallback:D,focusSelectedItem:z,selectedItemText:B,position:n,isPositioned:Z,searchRef:ne,children:d.jsx(Jt,{as:Kp,allowPinchZoom:!0,children:d.jsx(Xt,{asChild:!0,trapped:x.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:L(r,A=>{var V;(V=x.trigger)==null||V.focus({preventScroll:!0}),A.preventDefault()}),children:d.jsx(Ct,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:d.jsx(_,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:A=>A.preventDefault(),...y,...H,onPlaced:()=>q(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:L(y.onKeyDown,A=>{const V=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!V&&A.key.length===1&&se(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let X=Y().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(A.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const ee=A.target,J=X.indexOf(ee);X=X.slice(J+1)}setTimeout(()=>M(X)),A.preventDefault()}})})})})})})});ka.displayName=Up;var Yp="SelectItemAlignedPosition",Aa=l.forwardRef((e,t)=>{const{__scopeSelect:o,onPlaced:n,...r}=e,i=Be(Ue,o),a=qe(Ue,o),[s,c]=l.useState(null),[u,f]=l.useState(null),p=Q(t,E=>f(E)),g=po(o),m=l.useRef(!1),b=l.useRef(!0),{viewport:v,selectedItem:h,selectedItemText:y,focusSelectedItem:x}=a,w=l.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&v&&h&&y){const E=i.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),F=i.valueNode.getBoundingClientRect(),B=y.getBoundingClientRect();if(i.dir!=="rtl"){const ee=B.left-R.left,J=F.left-ee,le=E.left-J,be=E.width+le,ft=Math.max(be,R.width),pt=window.innerWidth-pe,vt=hr(J,[pe,Math.max(pe,pt-ft)]);s.style.minWidth=be+"px",s.style.left=vt+"px"}else{const ee=R.right-B.right,J=window.innerWidth-F.right-ee,le=window.innerWidth-E.right-J,be=E.width+le,ft=Math.max(be,R.width),pt=window.innerWidth-pe,vt=hr(J,[pe,Math.max(pe,pt-ft)]);s.style.minWidth=be+"px",s.style.right=vt+"px"}const K=g(),Y=window.innerHeight-pe*2,Z=v.scrollHeight,q=window.getComputedStyle(u),G=parseInt(q.borderTopWidth,10),M=parseInt(q.paddingTop,10),z=parseInt(q.borderBottomWidth,10),T=parseInt(q.paddingBottom,10),te=G+M+Z+T+z,ne=Math.min(h.offsetHeight*5,te),se=window.getComputedStyle(v),P=parseInt(se.paddingTop,10),O=parseInt(se.paddingBottom,10),D=E.top+E.height/2-pe,_=Y-D,H=h.offsetHeight/2,A=h.offsetTop+H,V=G+M+A,U=te-V;if(V<=D){const ee=K.length>0&&h===K[K.length-1].ref.current;s.style.bottom="0px";const J=u.clientHeight-v.offsetTop-v.offsetHeight,le=Math.max(_,H+(ee?O:0)+J+z),be=V+le;s.style.height=be+"px"}else{const ee=K.length>0&&h===K[0].ref.current;s.style.top="0px";const le=Math.max(D,G+v.offsetTop+(ee?P:0)+H)+U;s.style.height=le+"px",v.scrollTop=V-D+v.offsetTop}s.style.margin=`${pe}px 0`,s.style.minHeight=ne+"px",s.style.maxHeight=Y+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[g,i.trigger,i.valueNode,s,u,v,h,y,i.dir,n]);ae(()=>w(),[w]);const[C,S]=l.useState();ae(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const k=l.useCallback(E=>{E&&b.current===!0&&(w(),x==null||x(),b.current=!1)},[w,x]);return d.jsx(Xp,{scope:o,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:k,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:d.jsx($.div,{...r,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Aa.displayName=Yp;var Zp="SelectPopperPosition",Ho=l.forwardRef((e,t)=>{const{__scopeSelect:o,align:n="start",collisionPadding:r=pe,...i}=e,a=vo(o);return d.jsx(wn,{...a,...i,ref:t,align:n,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ho.displayName=Zp;var[Xp,En]=dt(Ue,{}),Uo="SelectViewport",Ia=l.forwardRef((e,t)=>{const{__scopeSelect:o,nonce:n,...r}=e,i=qe(Uo,o),a=En(Uo,o),s=Q(t,i.onViewportChange),c=l.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),d.jsx(fo.Slot,{scope:o,children:d.jsx($.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:L(r.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=a;if(g!=null&&g.current&&p){const m=Math.abs(c.current-f.scrollTop);if(m>0){const b=window.innerHeight-pe*2,v=parseFloat(p.style.minHeight),h=parseFloat(p.style.height),y=Math.max(v,h);if(y<b){const x=y+m,w=Math.min(b,x),C=x-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Ia.displayName=Uo;var Na="SelectGroup",[Qp,Jp]=dt(Na),ja=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=ie();return d.jsx(Qp,{scope:o,id:r,children:d.jsx($.div,{role:"group","aria-labelledby":r,...n,ref:t})})});ja.displayName=Na;var Oa="SelectLabel",_a=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=Jp(Oa,o);return d.jsx($.div,{id:r.id,...n,ref:t})});_a.displayName=Oa;var Kt="SelectItem",[ev,Ma]=dt(Kt),Da=l.forwardRef((e,t)=>{const{__scopeSelect:o,value:n,disabled:r=!1,textValue:i,...a}=e,s=Be(Kt,o),c=qe(Kt,o),u=s.value===n,[f,p]=l.useState(i??""),[g,m]=l.useState(!1),b=Q(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,n,r)}),v=ie(),h=l.useRef("touch"),y=()=>{r||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(ev,{scope:o,value:n,disabled:r,textId:v,isSelected:u,onItemTextChange:l.useCallback(x=>{p(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:d.jsx(fo.ItemSlot,{scope:o,value:n,disabled:r,textValue:f,children:d.jsx($.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...a,ref:b,onFocus:L(a.onFocus,()=>m(!0)),onBlur:L(a.onBlur,()=>m(!1)),onClick:L(a.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:L(a.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:L(a.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:L(a.onPointerMove,x=>{var w;h.current=x.pointerType,r?(w=c.onItemLeave)==null||w.call(c):h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:L(a.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:L(a.onKeyDown,x=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&x.key===" "||(Bp.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});Da.displayName=Kt;var ht="SelectItemText",La=l.forwardRef((e,t)=>{const{__scopeSelect:o,className:n,style:r,...i}=e,a=Be(ht,o),s=qe(ht,o),c=Ma(ht,o),u=Wp(ht,o),[f,p]=l.useState(null),g=Q(t,y=>p(y),c.onItemTextChange,y=>{var x;return(x=s.itemTextRefCallback)==null?void 0:x.call(s,y,c.value,c.disabled)}),m=f==null?void 0:f.textContent,b=l.useMemo(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:v,onNativeOptionRemove:h}=u;return ae(()=>(v(b),()=>h(b)),[v,h,b]),d.jsxs(d.Fragment,{children:[d.jsx($.span,{id:c.textId,...i,ref:g}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Zt.createPortal(i.children,a.valueNode):null]})});La.displayName=ht;var Fa="SelectItemIndicator",$a=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e;return Ma(Fa,o).isSelected?d.jsx($.span,{"aria-hidden":!0,...n,ref:t}):null});$a.displayName=Fa;var Ko="SelectScrollUpButton",Ba=l.forwardRef((e,t)=>{const o=qe(Ko,e.__scopeSelect),n=En(Ko,e.__scopeSelect),[r,i]=l.useState(!1),a=Q(t,n.onScrollButtonChange);return ae(()=>{if(o.viewport&&o.isPositioned){let s=function(){const u=c.scrollTop>0;i(u)};const c=o.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[o.viewport,o.isPositioned]),r?d.jsx(za,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=o;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});Ba.displayName=Ko;var Yo="SelectScrollDownButton",qa=l.forwardRef((e,t)=>{const o=qe(Yo,e.__scopeSelect),n=En(Yo,e.__scopeSelect),[r,i]=l.useState(!1),a=Q(t,n.onScrollButtonChange);return ae(()=>{if(o.viewport&&o.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;i(f)};const c=o.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[o.viewport,o.isPositioned]),r?d.jsx(za,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=o;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});qa.displayName=Yo;var za=l.forwardRef((e,t)=>{const{__scopeSelect:o,onAutoScroll:n,...r}=e,i=qe("SelectScrollButton",o),a=l.useRef(null),s=po(o),c=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ae(()=>{var f;const u=s().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[s]),d.jsx($.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:L(r.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:L(r.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:L(r.onPointerLeave,()=>{c()})})}),tv="SelectSeparator",Va=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e;return d.jsx($.div,{"aria-hidden":!0,...n,ref:t})});Va.displayName=tv;var Zo="SelectArrow",ov=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=vo(o),i=Be(Zo,o),a=qe(Zo,o);return i.open&&a.position==="popper"?d.jsx(Cn,{...r,...n,ref:t}):null});ov.displayName=Zo;var nv="SelectBubbleInput",Wa=l.forwardRef(({__scopeSelect:e,value:t,...o},n)=>{const r=l.useRef(null),i=Q(n,r),a=uo(t);return l.useEffect(()=>{const s=r.current;if(!s)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&f){const p=new Event("change",{bubbles:!0});f.call(s,t),s.dispatchEvent(p)}},[a,t]),d.jsx($.select,{...o,style:{...ha,...o.style},ref:i,defaultValue:t})});Wa.displayName=nv;function Ga(e){return e===""||e===void 0}function Ha(e){const t=_e(e),o=l.useRef(""),n=l.useRef(0),r=l.useCallback(a=>{const s=o.current+a;t(s),function c(u){o.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),i=l.useCallback(()=>{o.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[o,r,i]}function Ua(e,t,o){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=o?e.indexOf(o):-1;let a=rv(e,Math.max(i,0));r.length===1&&(a=a.filter(u=>u!==o));const c=a.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==o?c:void 0}function rv(e,t){return e.map((o,n)=>e[(t+n)%e.length])}var iv=ba,av=wa,sv=Sa,lv=Ra,cv=Ea,uv=Pa,dv=Ia,fv=ja,pv=_a,vv=Da,mv=La,gv=$a,hv=Ba,xv=qa,bv=Va;const yv=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"})}),wv=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z"})}),Ka=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-528 324-372q-11 11-28 11t-28-11q-11-11-11-28t11-28l184-184q12-12 28-12t28 12l184 184q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-528Z"})}),Cv=({...e})=>d.jsx(iv,{"data-slot":"select",...e}),Sv=({...e})=>d.jsx(fv,{"data-slot":"select-group",...e}),Rv=({className:e,...t})=>d.jsx(sv,{"data-slot":"select-value",className:I("volt-ui-whitespace-break-spaces volt-ui-wrap-break-word",e),...t}),Ya=l.forwardRef(({className:e,children:t,...o},n)=>{const{inputRef:r}=wt();return d.jsxs(av,{ref:i=>{r&&(r.current=i),typeof n=="function"?n(i):n&&(n.current=i)},"data-slot":"select-trigger",className:I("volt-ui-group volt-ui-data-placeholder:text-gray-a8 volt-ui-w-full volt-ui-flex volt-ui-items-center volt-ui-justify-between volt-ui-gap-2 volt-ui-rounded-lg volt-ui-bg-transparent volt-ui-text-sm volt-ui-whitespace-nowrap volt-ui-transition-[color,box-shadow] volt-ui-outline-none volt-ui-disabled:cursor-not-allowed volt-ui-disabled:opacity-50 volt-ui-*:data-[slot=select-value]:line-clamp-1 volt-ui-*:data-[slot=select-value]:flex volt-ui-*:data-[slot=select-value]:items-center volt-ui-*:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...o,children:[t,d.jsx(lv,{asChild:!0,children:d.jsx(wv,{className:"volt-ui-transition-all volt-ui-size-6 volt-ui-group-data-[state=open]:rotate-180 volt-ui-text-gray-light"})})]})});Ya.displayName="SelectTrigger";const Ev=({className:e,children:t,position:o="popper",align:n="center",...r})=>d.jsx(cv,{children:d.jsxs(uv,{"data-slot":"select-content",className:I("volt-ui-bg-body volt-ui-px-2 volt-ui-py-3 volt-ui-gap-1 volt-ui-text-gray-default volt-ui-data-[state=open]:animate-in volt-ui-data-[state=closed]:animate-out volt-ui-data-[state=closed]:fade-out-0 volt-ui-data-[state=open]:fade-in-0 volt-ui-data-[state=closed]:zoom-out-95 volt-ui-data-[state=open]:zoom-in-95 volt-ui-data-[side=bottom]:slide-in-from-top-2 volt-ui-data-[side=left]:slide-in-from-right-2 volt-ui-data-[side=right]:slide-in-from-left-2 volt-ui-data-[side=top]:slide-in-from-bottom-2 volt-ui-relative volt-ui-z-50 volt-ui-origin-(--radix-select-content-transform-origin) volt-ui-overflow-x-hidden volt-ui-overflow-y-auto volt-ui-rounded-2xl volt-ui-border volt-ui-shadow-md","volt-ui-max-h-(--radix-popper-available-height)",{"volt-ui-data-[side=bottom]:translate-y-1 volt-ui-data-[side=left]:-translate-x-1 volt-ui-data-[side=right]:translate-x-1 volt-ui-data-[side=top]:-translate-y-1":o==="popper"},e),position:o,align:n,...r,children:[d.jsx(Za,{}),d.jsx(dv,{className:I({"volt-ui-h-(--radix-select-trigger-height) volt-ui-w-full volt-ui-min-w-(--radix-select-trigger-width) volt-ui-scroll-my-1":o==="popper"}),children:t}),d.jsx(Xa,{})]})}),Pv=({className:e,...t})=>d.jsx(pv,{"data-slot":"select-label",className:I("volt-ui-text-gray volt-ui-font-semibold volt-ui-px-2 volt-ui-py-1.5 volt-ui-text-xs",e),...t}),Tv=({className:e,children:t,...o})=>d.jsxs(vv,{"data-slot":"select-item",className:I("volt-ui-pl-3 volt-ui-py-1.5 volt-ui-not-first:mt-0.5 volt-ui-text-gray-default [&_svg:not([class*='volt-ui-text-'])]:text-gray-light volt-ui-relative volt-ui-flex volt-ui-w-full volt-ui-cursor-default volt-ui-items-center volt-ui-gap-2 volt-ui-rounded-md volt-ui-pr-8 volt-ui-text-sm volt-ui-outline-none volt-ui-select-none volt-ui-data-disabled:pointer-events-none volt-ui-data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 volt-ui-*:[span]:last:flex volt-ui-*:[span]:last:items-center volt-ui-*:[span]:last:gap-2","volt-ui-focus:bg-accent-a3 volt-ui-data-[state=checked]:bg-accent-a3",e),...o,children:[d.jsx("span",{className:"volt-ui-absolute volt-ui-right-2 volt-ui-flex volt-ui-size-4 volt-ui-items-center volt-ui-justify-center",children:d.jsx(gv,{children:d.jsx(yv,{className:"volt-ui-size-4 volt-ui-text-gray-light"})})}),d.jsx(mv,{children:t})]}),kv=({className:e,...t})=>d.jsx(bv,{"data-slot":"volt-ui-select-separator",className:I("volt-ui-bg-gray-soft volt-ui-pointer-events-none volt-ui--mx-1 volt-ui-my-1 volt-ui-h-px",e),...t}),Za=({className:e,...t})=>d.jsx(hv,{"data-slot":"volt-ui-select-scroll-up-button",className:I("volt-ui-flex volt-ui-cursor-default volt-ui-items-center volt-ui-justify-center volt-ui-pb-1",e),...t,children:d.jsx(Ka,{className:"volt-ui-size-6"})}),Xa=({className:e,...t})=>d.jsx(xv,{"data-slot":"volt-ui-select-scroll-down-button",className:I("volt-ui-flex volt-ui-cursor-default volt-ui-items-center volt-ui-justify-center volt-ui-pt-1",e),...t,children:d.jsx(Ka,{className:"volt-ui-size-6 volt-ui-rotate-180"})});var[mo]=de("Tooltip",[ut]),go=ut(),Qa="TooltipProvider",Av=700,Xo="tooltip.open",[Iv,Pn]=mo(Qa),Ja=e=>{const{__scopeTooltip:t,delayDuration:o=Av,skipDelayDuration:n=300,disableHoverableContent:r=!1,children:i}=e,a=l.useRef(!0),s=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),d.jsx(Iv,{scope:t,isOpenDelayedRef:a,delayDuration:o,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:l.useCallback(u=>{s.current=u},[]),disableHoverableContent:r,children:i})};Ja.displayName=Qa;var yt="Tooltip",[Nv,Tt]=mo(yt),es=e=>{const{__scopeTooltip:t,children:o,open:n,defaultOpen:r,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,c=Pn(yt,e.__scopeTooltip),u=go(t),[f,p]=l.useState(null),g=ie(),m=l.useRef(0),b=a??c.disableHoverableContent,v=s??c.delayDuration,h=l.useRef(!1),[y,x]=fe({prop:n,defaultProp:r??!1,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xo))):c.onClose(),i==null||i(E)},caller:yt}),w=l.useMemo(()=>y?h.current?"delayed-open":"instant-open":"closed",[y]),C=l.useCallback(()=>{window.clearTimeout(m.current),m.current=0,h.current=!1,x(!0)},[x]),S=l.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),k=l.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{h.current=!0,x(!0),m.current=0},v)},[v,x]);return l.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),d.jsx(yn,{...u,children:d.jsx(Nv,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?k():C()},[c.isOpenDelayedRef,k,C]),onTriggerLeave:l.useCallback(()=>{b?S():(window.clearTimeout(m.current),m.current=0)},[S,b]),onOpen:C,onClose:S,disableHoverableContent:b,children:o})})};es.displayName=yt;var Qo="TooltipTrigger",ts=l.forwardRef((e,t)=>{const{__scopeTooltip:o,...n}=e,r=Tt(Qo,o),i=Pn(Qo,o),a=go(o),s=l.useRef(null),c=Q(t,s,r.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(so,{asChild:!0,...a,children:d.jsx($.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...n,ref:c,onPointerMove:L(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:L(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:L(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:L(e.onBlur,r.onClose),onClick:L(e.onClick,r.onClose)})})});ts.displayName=Qo;var Tn="TooltipPortal",[jv,Ov]=mo(Tn,{forceMount:void 0}),os=e=>{const{__scopeTooltip:t,forceMount:o,children:n,container:r}=e,i=Tt(Tn,t);return d.jsx(jv,{scope:t,forceMount:o,children:d.jsx(ge,{present:o||i.open,children:d.jsx(St,{asChild:!0,container:r,children:n})})})};os.displayName=Tn;var it="TooltipContent",ns=l.forwardRef((e,t)=>{const o=Ov(it,e.__scopeTooltip),{forceMount:n=o.forceMount,side:r="top",...i}=e,a=Tt(it,e.__scopeTooltip);return d.jsx(ge,{present:n||a.open,children:a.disableHoverableContent?d.jsx(rs,{side:r,...i,ref:t}):d.jsx(_v,{side:r,...i,ref:t})})}),_v=l.forwardRef((e,t)=>{const o=Tt(it,e.__scopeTooltip),n=Pn(it,e.__scopeTooltip),r=l.useRef(null),i=Q(t,r),[a,s]=l.useState(null),{trigger:c,onClose:u}=o,f=r.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{s(null),p(!1)},[p]),m=l.useCallback((b,v)=>{const h=b.currentTarget,y={x:b.clientX,y:b.clientY},x=Fv(y,h.getBoundingClientRect()),w=$v(y,x),C=Bv(v.getBoundingClientRect()),S=zv([...w,...C]);s(S),p(!0)},[p]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&f){const b=h=>m(h,f),v=h=>m(h,c);return c.addEventListener("pointerleave",b),f.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",v)}}},[c,f,m,g]),l.useEffect(()=>{if(a){const b=v=>{const h=v.target,y={x:v.clientX,y:v.clientY},x=(c==null?void 0:c.contains(h))||(f==null?void 0:f.contains(h)),w=!qv(y,a);x?g():w&&(g(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,a,u,g]),d.jsx(rs,{...e,ref:i})}),[Mv,Dv]=mo(yt,{isInside:!1}),Lv=qc("TooltipContent"),rs=l.forwardRef((e,t)=>{const{__scopeTooltip:o,children:n,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,c=Tt(it,o),u=go(o),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(Xo,f),()=>document.removeEventListener(Xo,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=g=>{const m=g.target;m!=null&&m.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),d.jsx(Ct,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:d.jsxs(wn,{"data-state":c.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(Lv,{children:n}),d.jsx(Mv,{scope:o,isInside:!0,children:d.jsx(Fp,{id:c.contentId,role:"tooltip",children:r||n})})]})})});ns.displayName=it;var is="TooltipArrow",as=l.forwardRef((e,t)=>{const{__scopeTooltip:o,...n}=e,r=go(o);return Dv(is,o).isInside?null:d.jsx(Cn,{...r,...n,ref:t})});as.displayName=is;function Fv(e,t){const o=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(o,n,r,i)){case i:return"left";case r:return"right";case o:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function $v(e,t,o=5){const n=[];switch(t){case"top":n.push({x:e.x-o,y:e.y+o},{x:e.x+o,y:e.y+o});break;case"bottom":n.push({x:e.x-o,y:e.y-o},{x:e.x+o,y:e.y-o});break;case"left":n.push({x:e.x+o,y:e.y-o},{x:e.x+o,y:e.y+o});break;case"right":n.push({x:e.x-o,y:e.y-o},{x:e.x-o,y:e.y+o});break}return n}function Bv(e){const{top:t,right:o,bottom:n,left:r}=e;return[{x:r,y:t},{x:o,y:t},{x:o,y:n},{x:r,y:n}]}function qv(e,t){const{x:o,y:n}=e;let r=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],c=t[a],u=s.x,f=s.y,p=c.x,g=c.y;f>n!=g>n&&o<(p-u)*(n-f)/(g-f)+u&&(r=!r)}return r}function zv(e){const t=e.slice();return t.sort((o,n)=>o.x<n.x?-1:o.x>n.x?1:o.y<n.y?-1:o.y>n.y?1:0),Vv(t)}function Vv(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(r.y-a.y)>=(i.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const o=[];for(let n=e.length-1;n>=0;n--){const r=e[n];for(;o.length>=2;){const i=o[o.length-1],a=o[o.length-2];if((i.x-a.x)*(r.y-a.y)>=(i.y-a.y)*(r.x-a.x))o.pop();else break}o.push(r)}return o.pop(),t.length===1&&o.length===1&&t[0].x===o[0].x&&t[0].y===o[0].y?t:t.concat(o)}var Wv=Ja,Gv=es,Hv=ts,Uv=os,Kv=ns,Yv=as;const ss=({...e})=>d.jsx(Wv,{"data-slot":"tooltip-provider",...e}),Zv=({...e})=>d.jsx(ss,{children:d.jsx(Gv,{"data-slot":"tooltip",...e})}),Xv=({...e})=>d.jsx(Hv,{"data-slot":"tooltip-trigger",...e}),Qv=({className:e,sideOffset:t=2,hideArrow:o=!1,children:n,...r})=>d.jsx(Uv,{children:d.jsxs(Kv,{"data-slot":"tooltip-content",sideOffset:t,className:I("volt-ui-bg-gray-12 volt-ui-text-gray-1 volt-ui-animate-in volt-ui-fade-in-0 volt-ui-zoom-in-95 volt-ui-data-[state=closed]:animate-out volt-ui-data-[state=closed]:fade-out-0 volt-ui-data-[state=closed]:zoom-out-95 volt-ui-data-[side=bottom]:slide-in-from-top-2 volt-ui-data-[side=left]:slide-in-from-right-2 volt-ui-data-[side=right]:slide-in-from-left-2 volt-ui-data-[side=top]:slide-in-from-bottom-2 volt-ui-z-50 volt-ui-w-fit volt-ui-origin-(--radix-tooltip-content-transform-origin) volt-ui-rounded-lg volt-ui-p-2 volt-ui-text-xs volt-ui-text-balance",e),...r,children:[n,!o&&d.jsx(Yv,{className:"volt-ui-bg-gray-12 volt-ui-fill-gray-12 volt-ui-z-50 volt-ui-size-3 volt-ui-translate-y-[calc(-50%-2px)] volt-ui-rotate-45 volt-ui-rounded-[2px]"})]})});var ho="Switch",[Jv]=de(ho),[em,tm]=Jv(ho),ls=l.forwardRef((e,t)=>{const{__scopeSwitch:o,name:n,checked:r,defaultChecked:i,required:a,disabled:s,value:c="on",onCheckedChange:u,form:f,...p}=e,[g,m]=l.useState(null),b=Q(t,w=>m(w)),v=l.useRef(!1),h=g?f||!!g.closest("form"):!0,[y,x]=fe({prop:r,defaultProp:i??!1,onChange:u,caller:ho});return d.jsxs(em,{scope:o,checked:y,disabled:s,children:[d.jsx($.button,{type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":fs(y),"data-disabled":s?"":void 0,disabled:s,value:c,...p,ref:b,onClick:L(e.onClick,w=>{x(C=>!C),h&&(v.current=w.isPropagationStopped(),v.current||w.stopPropagation())})}),h&&d.jsx(ds,{control:g,bubbles:!v.current,name:n,value:c,checked:y,required:a,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});ls.displayName=ho;var cs="SwitchThumb",us=l.forwardRef((e,t)=>{const{__scopeSwitch:o,...n}=e,r=tm(cs,o);return d.jsx($.span,{"data-state":fs(r.checked),"data-disabled":r.disabled?"":void 0,...n,ref:t})});us.displayName=cs;var om="SwitchBubbleInput",ds=l.forwardRef(({__scopeSwitch:e,control:t,checked:o,bubbles:n=!0,...r},i)=>{const a=l.useRef(null),s=Q(a,i),c=uo(o),u=ao(t);return l.useEffect(()=>{const f=a.current;if(!f)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==o&&m){const b=new Event("click",{bubbles:n});m.call(f,o),f.dispatchEvent(b)}},[c,o,n]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...r,tabIndex:-1,ref:s,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ds.displayName=om;function fs(e){return e?"checked":"unchecked"}var nm=ls,rm=us;const im=Ae("volt-ui-peer volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-inline-flex volt-ui-shrink-0 volt-ui-items-center volt-ui-rounded-full volt-ui-border volt-ui-border-transparent volt-ui-shadow-xs volt-ui-transition-all volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50",{variants:{variant:{primary:"volt-ui-data-[state=checked]:bg-accent-solid volt-ui-data-[state=unchecked]:bg-gray-a4 volt-ui-focus-visible:outline-accent-a8",destructive:"volt-ui-data-[state=checked]:bg-error-solid volt-ui-data-[state=unchecked]:bg-error-a4 volt-ui-focus-visible:outline-error-a8"},size:{sm:"volt-ui-h-[16px] volt-ui-w-[27px]",base:"volt-ui-h-[19px] volt-ui-w-[33px]",lg:"volt-ui-h-[24px] volt-ui-w-[41px]"}},defaultVariants:{variant:"primary",size:"base"}}),am=Ae("volt-ui-pointer-events-none volt-ui-block volt-ui-rounded-full volt-ui-ring-0 volt-ui-transition-transform volt-ui-data-[state=checked]:translate-x-[calc(100%-2px)] volt-ui-data-[state=unchecked]:translate-x-px",{variants:{variant:{primary:"volt-ui-bg-gray-contrast volt-ui-border volt-ui-border-gray-a7 volt-ui-data-[state=checked]:border-accent-a11",destructive:"volt-ui-bg-error-contrast volt-ui-border volt-ui-border-error-a7 volt-ui-data-[state=checked]:border-error-a11"},size:{sm:"volt-ui-w-[13px] volt-ui-h-[13px]",base:"volt-ui-w-4 volt-ui-h-4",lg:"volt-ui-w-[20px] volt-ui-h-[20px]"}},defaultVariants:{variant:"primary",size:"base"}});function sm({variant:e,size:t,className:o,...n}){return d.jsx(nm,{"data-slot":"switch",className:I(im({variant:e,size:t,className:o})),...n,children:d.jsx(rm,{"data-slot":"switch-thumb",className:I(am({variant:e,size:t}))})})}const lm=({...e})=>d.jsx(hp,{"data-slot":"popover-portal",...e}),cm=({...e})=>d.jsx(pa,{"data-slot":"popover",...e}),um=({...e})=>d.jsx(va,{"data-slot":"popover-trigger",...e}),dm=({className:e,align:t="center",sideOffset:o=4,...n})=>d.jsx(ma,{"data-slot":"popover-content",align:t,sideOffset:o,className:I("volt-ui-bg-body volt-ui-text-gray-default volt-ui-data-[state=open]:animate-in volt-ui-data-[state=closed]:animate-out volt-ui-data-[state=closed]:fade-out-0 volt-ui-data-[state=open]:fade-in-0 volt-ui-data-[state=closed]:zoom-out-95 volt-ui-data-[state=open]:zoom-in-95 volt-ui-data-[side=bottom]:slide-in-from-top-2 volt-ui-data-[side=left]:slide-in-from-right-2 volt-ui-data-[side=right]:slide-in-from-left-2 volt-ui-data-[side=top]:slide-in-from-bottom-2 volt-ui-z-50 volt-ui-origin-(--radix-popover-content-transform-origin) volt-ui-rounded-lg volt-ui-border volt-ui-p-6 volt-ui-shadow-md volt-ui-outline-hidden",e),...n}),fm=({...e})=>d.jsx(gp,{"data-slot":"popover-anchor",...e});var xo="Checkbox",[pm]=de(xo),[vm,kn]=pm(xo);function mm(e){const{__scopeCheckbox:t,checked:o,children:n,defaultChecked:r,disabled:i,form:a,name:s,onCheckedChange:c,required:u,value:f="on",internal_do_not_use_render:p}=e,[g,m]=fe({prop:o,defaultProp:r??!1,onChange:c,caller:xo}),[b,v]=l.useState(null),[h,y]=l.useState(null),x=l.useRef(!1),w=b?!!a||!!b.closest("form"):!0,C={checked:g,disabled:i,setChecked:m,control:b,setControl:v,name:s,form:a,value:f,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:je(r)?!1:r,isFormControl:w,bubbleInput:h,setBubbleInput:y};return d.jsx(vm,{scope:t,...C,children:gm(p)?p(C):n})}var ps="CheckboxTrigger",vs=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:o,...n},r)=>{const{control:i,value:a,disabled:s,checked:c,required:u,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:g,isFormControl:m,bubbleInput:b}=kn(ps,e),v=Q(r,f),h=l.useRef(c);return l.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const x=()=>p(h.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[i,p]),d.jsx($.button,{type:"button",role:"checkbox","aria-checked":je(c)?"mixed":c,"aria-required":u,"data-state":ys(c),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:v,onKeyDown:L(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:L(o,y=>{p(x=>je(x)?!0:!x),b&&m&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})})});vs.displayName=ps;var ms=l.forwardRef((e,t)=>{const{__scopeCheckbox:o,name:n,checked:r,defaultChecked:i,required:a,disabled:s,value:c,onCheckedChange:u,form:f,...p}=e;return d.jsx(mm,{__scopeCheckbox:o,checked:r,defaultChecked:i,disabled:s,required:a,onCheckedChange:u,name:n,form:f,value:c,internal_do_not_use_render:({isFormControl:g})=>d.jsxs(d.Fragment,{children:[d.jsx(vs,{...p,ref:t,__scopeCheckbox:o}),g&&d.jsx(bs,{__scopeCheckbox:o})]})})});ms.displayName=xo;var gs="CheckboxIndicator",hs=l.forwardRef((e,t)=>{const{__scopeCheckbox:o,forceMount:n,...r}=e,i=kn(gs,o);return d.jsx(ge,{present:n||je(i.checked)||i.checked===!0,children:d.jsx($.span,{"data-state":ys(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});hs.displayName=gs;var xs="CheckboxBubbleInput",bs=l.forwardRef(({__scopeCheckbox:e,...t},o)=>{const{control:n,hasConsumerStoppedPropagationRef:r,checked:i,defaultChecked:a,required:s,disabled:c,name:u,value:f,form:p,bubbleInput:g,setBubbleInput:m}=kn(xs,e),b=Q(o,m),v=uo(i),h=ao(n);l.useEffect(()=>{const x=g;if(!x)return;const w=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(w,"checked").set,k=!r.current;if(v!==i&&S){const E=new Event("click",{bubbles:k});x.indeterminate=je(i),S.call(x,je(i)?!1:i),x.dispatchEvent(E)}},[g,v,i,r]);const y=l.useRef(je(i)?!1:i);return d.jsx($.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:c,name:u,value:f,form:p,...t,tabIndex:-1,ref:b,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});bs.displayName=xs;function gm(e){return typeof e=="function"}function je(e){return e==="indeterminate"}function ys(e){return je(e)?"indeterminate":e?"checked":"unchecked"}const hm=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"})}),xm=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M280-440q-17 0-28.5-11.5T240-480q0-17 11.5-28.5T280-520h400q17 0 28.5 11.5T720-480q0 17-11.5 28.5T680-440H280Z"})}),bm=({className:e,...t})=>d.jsx(ms,{"data-slot":"checkbox",className:I("volt-ui-peer volt-ui-border-accent-a7 volt-ui-bg-accent-a4 volt-ui-disabled:border-gray-a4 volt-ui-data-[state=indeterminate]:bg-accent-a7 volt-ui-data-[state=indeterminate]:border-transparent volt-ui-data-[state=indeterminate]:text-accent-a12 volt-ui-data-[state=checked]:bg-accent-solid volt-ui-data-[state=checked]:border-0 volt-ui-data-[state=checked]:text-accent-contrast volt-ui-focus-visible:outline-offset-2 volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-accent-a8 volt-ui-aria-invalid:outline-error-a8 volt-ui-aria-invalid:border-error-a8 volt-ui-size-4 volt-ui-shrink-0 volt-ui-rounded-sm volt-ui-border volt-ui-shadow-xs volt-ui-transition-shadow volt-ui-disabled:cursor-not-allowed volt-ui-disabled:opacity-50",e),...t,children:d.jsx(hs,{"data-slot":"checkbox-indicator",className:"volt-ui-grid volt-ui-place-content-center volt-ui-text-current volt-ui-transition-none",children:t.checked==="indeterminate"?d.jsx(xm,{className:"volt-ui-size-3.5"}):d.jsx(hm,{className:"volt-ui-size-3.5"})})});var Lo="rovingFocusGroup.onEntryFocus",ym={bubbles:!1,cancelable:!0},kt="RovingFocusGroup",[Jo,ws,wm]=Rn(kt),[Cm,Cs]=de(kt,[wm]),[Sm,Rm]=Cm(kt),Ss=l.forwardRef((e,t)=>d.jsx(Jo.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Jo.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Em,{...e,ref:t})})}));Ss.displayName=kt;var Em=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,orientation:n,loop:r=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),m=Q(t,g),b=co(i),[v,h]=fe({prop:a,defaultProp:s??null,onChange:c,caller:kt}),[y,x]=l.useState(!1),w=_e(u),C=ws(o),S=l.useRef(!1),[k,E]=l.useState(0);return l.useEffect(()=>{const R=g.current;if(R)return R.addEventListener(Lo,w),()=>R.removeEventListener(Lo,w)},[w]),d.jsx(Sm,{scope:o,orientation:n,dir:b,loop:r,currentTabStopId:v,onItemFocus:l.useCallback(R=>h(R),[h]),onItemShiftTab:l.useCallback(()=>x(!0),[]),onFocusableItemAdd:l.useCallback(()=>E(R=>R+1),[]),onFocusableItemRemove:l.useCallback(()=>E(R=>R-1),[]),children:d.jsx($.div,{tabIndex:y||k===0?-1:0,"data-orientation":n,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{S.current=!0}),onFocus:L(e.onFocus,R=>{const F=!S.current;if(R.target===R.currentTarget&&F&&!y){const B=new CustomEvent(Lo,ym);if(R.currentTarget.dispatchEvent(B),!B.defaultPrevented){const K=C().filter(M=>M.focusable),Y=K.find(M=>M.active),Z=K.find(M=>M.id===v),G=[Y,Z,...K].filter(Boolean).map(M=>M.ref.current);Ps(G,f)}}S.current=!1}),onBlur:L(e.onBlur,()=>x(!1))})})}),Rs="RovingFocusGroupItem",Es=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,focusable:n=!0,active:r=!1,tabStopId:i,children:a,...s}=e,c=ie(),u=i||c,f=Rm(Rs,o),p=f.currentTabStopId===u,g=ws(o),{onFocusableItemAdd:m,onFocusableItemRemove:b,currentTabStopId:v}=f;return l.useEffect(()=>{if(n)return m(),()=>b()},[n,m,b]),d.jsx(Jo.ItemSlot,{scope:o,id:u,focusable:n,active:r,children:d.jsx($.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:L(e.onMouseDown,h=>{n?f.onItemFocus(u):h.preventDefault()}),onFocus:L(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:L(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){f.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=km(h,f.orientation,f.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let w=g().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const C=w.indexOf(h.currentTarget);w=f.loop?Am(w,C+1):w.slice(C+1)}setTimeout(()=>Ps(w))}}),children:typeof a=="function"?a({isCurrentTabStop:p,hasTabStop:v!=null}):a})})});Es.displayName=Rs;var Pm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Tm(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function km(e,t,o){const n=Tm(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Pm[n]}function Ps(e,t=!1){const o=document.activeElement;for(const n of e)if(n===o||(n.focus({preventScroll:t}),document.activeElement!==o))return}function Am(e,t){return e.map((o,n)=>e[(t+n)%e.length])}var Im=Ss,Nm=Es,An="Radio",[jm,Ts]=de(An),[Om,_m]=jm(An),ks=l.forwardRef((e,t)=>{const{__scopeRadio:o,name:n,checked:r=!1,required:i,disabled:a,value:s="on",onCheck:c,form:u,...f}=e,[p,g]=l.useState(null),m=Q(t,h=>g(h)),b=l.useRef(!1),v=p?u||!!p.closest("form"):!0;return d.jsxs(Om,{scope:o,checked:r,disabled:a,children:[d.jsx($.button,{type:"button",role:"radio","aria-checked":r,"data-state":js(r),"data-disabled":a?"":void 0,disabled:a,value:s,...f,ref:m,onClick:L(e.onClick,h=>{r||c==null||c(),v&&(b.current=h.isPropagationStopped(),b.current||h.stopPropagation())})}),v&&d.jsx(Ns,{control:p,bubbles:!b.current,name:n,value:s,checked:r,required:i,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});ks.displayName=An;var As="RadioIndicator",Is=l.forwardRef((e,t)=>{const{__scopeRadio:o,forceMount:n,...r}=e,i=_m(As,o);return d.jsx(ge,{present:n||i.checked,children:d.jsx($.span,{"data-state":js(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})})});Is.displayName=As;var Mm="RadioBubbleInput",Ns=l.forwardRef(({__scopeRadio:e,control:t,checked:o,bubbles:n=!0,...r},i)=>{const a=l.useRef(null),s=Q(a,i),c=uo(o),u=ao(t);return l.useEffect(()=>{const f=a.current;if(!f)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==o&&m){const b=new Event("click",{bubbles:n});m.call(f,o),f.dispatchEvent(b)}},[c,o,n]),d.jsx($.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...r,tabIndex:-1,ref:s,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Ns.displayName=Mm;function js(e){return e?"checked":"unchecked"}var Dm=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],bo="RadioGroup",[Lm]=de(bo,[Cs,Ts]),Os=Cs(),_s=Ts(),[Fm,$m]=Lm(bo),Ms=l.forwardRef((e,t)=>{const{__scopeRadioGroup:o,name:n,defaultValue:r,value:i,required:a=!1,disabled:s=!1,orientation:c,dir:u,loop:f=!0,onValueChange:p,...g}=e,m=Os(o),b=co(u),[v,h]=fe({prop:i,defaultProp:r??null,onChange:p,caller:bo});return d.jsx(Fm,{scope:o,name:n,required:a,disabled:s,value:v,onValueChange:h,children:d.jsx(Im,{asChild:!0,...m,orientation:c,dir:b,loop:f,children:d.jsx($.div,{role:"radiogroup","aria-required":a,"aria-orientation":c,"data-disabled":s?"":void 0,dir:b,...g,ref:t})})})});Ms.displayName=bo;var Ds="RadioGroupItem",Ls=l.forwardRef((e,t)=>{const{__scopeRadioGroup:o,disabled:n,...r}=e,i=$m(Ds,o),a=i.disabled||n,s=Os(o),c=_s(o),u=l.useRef(null),f=Q(t,u),p=i.value===r.value,g=l.useRef(!1);return l.useEffect(()=>{const m=v=>{Dm.includes(v.key)&&(g.current=!0)},b=()=>g.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",b)}},[]),d.jsx(Nm,{asChild:!0,...s,focusable:!a,active:p,children:d.jsx(ks,{disabled:a,required:i.required,checked:p,...c,...r,name:i.name,ref:f,onCheck:()=>i.onValueChange(r.value),onKeyDown:L(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:L(r.onFocus,()=>{var m;g.current&&((m=u.current)==null||m.click())})})})});Ls.displayName=Ds;var Bm="RadioGroupIndicator",Fs=l.forwardRef((e,t)=>{const{__scopeRadioGroup:o,...n}=e,r=_s(o);return d.jsx(Is,{...r,...n,ref:t})});Fs.displayName=Bm;var qm=Ms,zm=Ls,Vm=Fs;const Wm=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:d.jsx("circle",{cx:"12",cy:"12",r:"10"})}),Gm=({className:e,...t})=>d.jsx(qm,{"data-slot":"radio-group",className:I("volt-ui-grid volt-ui-gap-3",e),...t}),Hm=({className:e,...t})=>d.jsx(zm,{"data-slot":"radio-group-item",className:I("volt-ui-border-accent-a7 volt-ui-data-[state='checked']:bg-accent-solid volt-ui-data-[checked=true]:text-accent-contrast volt-ui-bg-accent-a4 volt-ui-text-accent-default volt-ui-focus-visible:outline-accent-a8 volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-aria-invalid:bg-error-a4 volt-ui-aria-invalid:border-error-a8 volt-ui-aria-invalid:outline-error-a8 volt-ui-data-[state='checked']:aria-invalid:border-transparent volt-ui-data-[state='checked']:aria-invalid:bg-error-a10 volt-ui-aspect-square volt-ui-size-4 volt-ui-shrink-0 volt-ui-rounded-full volt-ui-border volt-ui-shadow-xs volt-ui-transition-[color,box-shadow] volt-ui-disabled:cursor-not-allowed volt-ui-disabled:bg-gray-a3 volt-ui-disabled:border-transparent volt-ui-data-[state='checked']:disabled:bg-gray-a3",e),...t,children:d.jsx(Vm,{"data-slot":"radio-group-indicator",className:"volt-ui-relative volt-ui-flex volt-ui-items-center volt-ui-justify-center",children:d.jsx(Wm,{className:"volt-ui-text-accent-contrast volt-ui-absolute volt-ui-top-1/2 volt-ui-left-1/2 volt-ui-size-2 volt-ui--translate-x-1/2 volt-ui--translate-y-1/2"})})}),$s={blue:"blue",sky:"sky",mint:"mint",green:"green",teal:"teal",cyan:"cyan",indigo:"indigo",purple:"purple",pink:"pink",red:"red",orange:"orange",yellow:"yellow",bronze:"bronze",gray:"gray"},Bs={soft:e=>`volt-ui-bg-${e}-soft volt-ui-text-${e}-default [a&]:hover:bg-${e}-soft-hover volt-ui-border volt-ui-border-transparent `,solid:e=>`volt-ui-bg-${e}-solid volt-ui-text-${e}-contrast [a&]:hover:bg-${e}-solid-hover volt-ui-border volt-ui-border-transparent `,surface:e=>`volt-ui-bg-${e}-surface volt-ui-border-${e}-a6 volt-ui-border volt-ui-text-${e}-default`},Um=Object.keys($s),Km=Object.keys(Bs),Ym=Um.flatMap(e=>Km.map(t=>({color:e,style:t,class:Bs[t](e)}))),qs=Ae("volt-ui-inline-flex volt-ui-items-center volt-ui-gap-2 volt-ui-justify-center volt-ui-px-1.5 volt-ui-py-0.25 volt-ui-text-sm volt-ui-font-normal volt-ui-w-fit volt-ui-whitespace-nowrap volt-ui-shrink-0 [&>svg]:size-4 [&>svg]:pointer-events-none volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-focus-visible:outline-accent-a8 volt-ui-aria-invalid:outline-error-a8 volt-ui-transition-[color,box-shadow] volt-ui-overflow-hidden",{variants:{color:$s,style:{soft:"",solid:"",surface:""},shape:{default:"volt-ui-rounded-md",rounded:"volt-ui-rounded-full"}},compoundVariants:Ym,defaultVariants:{color:"blue",shape:"default",style:"soft"}}),Zm=({className:e,color:t,style:o,shape:n,asChild:r=!1,...i})=>{const a=r?on:"span";return d.jsx(a,{"data-slot":"badge",className:I(qs({color:t,style:o,shape:n}),e),...i})},xr=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320v-160q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480v160q0 17 11.5 28.5T480-280Zm0-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Xm=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M109-120q-11 0-20-5.5T75-140q-5-9-5.5-19.5T75-180l370-640q6-10 15.5-15t19.5-5q10 0 19.5 5t15.5 15l370 640q6 10 5.5 20.5T885-140q-5 9-14 14.5t-20 5.5H109Zm69-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm0-120q17 0 28.5-11.5T520-400v-120q0-17-11.5-28.5T480-560q-17 0-28.5 11.5T440-520v120q0 17 11.5 28.5T480-360Zm0-100Z"})}),Qm=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"m424-408-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-408Zm56 328q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Jm=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480v-160q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640v160q0 17 11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),eg=Ae("volt-ui-group volt-ui-relative volt-ui-w-full volt-ui-rounded-xl volt-ui-p-3 volt-ui-text-sm volt-ui-has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] volt-ui-has-data-[slot=callout-icon]:grid-cols-[calc(var(--spacing)*4)_1fr] volt-ui-grid volt-ui-grid-cols-[0_1fr_auto] volt-ui-has-[>svg]:gap-x-3 volt-ui-has-data-[slot=callout-icon]:gap-x-4 volt-ui-gap-y-0.5 volt-ui-items-start",{variants:{type:{info:"volt-ui-bg-accent-soft volt-ui-text-accent-default",gray:"volt-ui-bg-gray-soft volt-ui-text-gray-default",success:"volt-ui-bg-success-soft volt-ui-text-success-default",warning:"volt-ui-bg-warning-soft volt-ui-text-warning-default",destructive:"volt-ui-text-error-default volt-ui-bg-error-soft"}},defaultVariants:{type:"info"}}),zs=l.createContext({type:"info"}),tg=({className:e,type:t="info",customIcon:o,...n})=>d.jsx(zs.Provider,{value:{type:t},children:d.jsxs("div",{"data-callout-variant":t,"data-slot":"callout",role:"alert",className:I(eg({type:t}),e),...n,children:[d.jsx(ag,{customIcon:o}),n.children]})}),og=({className:e,...t})=>d.jsx("div",{"data-slot":"callout-title",className:I("volt-ui-col-start-2 volt-ui-line-clamp-1 volt-ui-text-current volt-ui-min-h-4 volt-ui-text-base volt-ui-font-medium",e),...t}),ng=({className:e,...t})=>d.jsx("div",{"data-slot":"callout-description",className:I("volt-ui-text-current volt-ui-col-start-2 volt-ui-grid volt-ui-justify-items-start volt-ui-gap-1 volt-ui-text-sm [&_p]:leading-relaxed",e),...t}),rg=({className:e,align:t="start",...o})=>d.jsx("div",{"data-slot":"callout-action","data-align":t,className:I("volt-ui-flex volt-ui-w-full volt-ui-col-span-3 volt-ui-mt-2",{"volt-ui-justify-start volt-ui-ml-8":t==="start","volt-ui-justify-end":t==="end"},e),...o}),ig=({customIcon:e,...t})=>{const{type:o}=l.useContext(zs);if(e)return e;let n=null;switch(o){case"info":n=d.jsx(xr,{...t});break;case"success":n=d.jsx(Qm,{...t});break;case"warning":n=d.jsx(Xm,{...t});break;case"destructive":n=d.jsx(Jm,{...t});break;case"gray":n=d.jsx(xr,{...t});break}return n},ag=({className:e,customIcon:t,...o})=>d.jsx(ig,{"data-slot":"callout-icon",customIcon:t,className:I("volt-ui-size-5 volt-ui-translate-y-0.5 volt-ui-text-current volt-ui-shrink-0",e),...o});var yo="Collapsible",[sg,Vs]=de(yo),[lg,In]=sg(yo),Ws=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,open:n,defaultOpen:r,disabled:i,onOpenChange:a,...s}=e,[c,u]=fe({prop:n,defaultProp:r??!1,onChange:a,caller:yo});return d.jsx(lg,{scope:o,disabled:i,contentId:ie(),open:c,onOpenToggle:l.useCallback(()=>u(f=>!f),[u]),children:d.jsx($.div,{"data-state":jn(c),"data-disabled":i?"":void 0,...s,ref:t})})});Ws.displayName=yo;var Gs="CollapsibleTrigger",Hs=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,...n}=e,r=In(Gs,o);return d.jsx($.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":jn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:t,onClick:L(e.onClick,r.onOpenToggle)})});Hs.displayName=Gs;var Nn="CollapsibleContent",Us=l.forwardRef((e,t)=>{const{forceMount:o,...n}=e,r=In(Nn,e.__scopeCollapsible);return d.jsx(ge,{present:o||r.open,children:({present:i})=>d.jsx(cg,{...n,ref:t,present:i})})});Us.displayName=Nn;var cg=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,present:n,children:r,...i}=e,a=In(Nn,o),[s,c]=l.useState(n),u=l.useRef(null),f=Q(t,u),p=l.useRef(0),g=p.current,m=l.useRef(0),b=m.current,v=a.open||s,h=l.useRef(v),y=l.useRef(void 0);return l.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),ae(()=>{const x=u.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();p.current=w.height,m.current=w.width,h.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),c(n)}},[a.open,n]),d.jsx($.div,{"data-state":jn(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...i,ref:f,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&r})});function jn(e){return e?"open":"closed"}var ug=Ws,dg=Hs,fg=Us,xe="Accordion",pg=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[On,vg,mg]=Rn(xe),[wo]=de(xe,[mg,Vs]),_n=Vs(),Ks=oe.forwardRef((e,t)=>{const{type:o,...n}=e,r=n,i=n;return d.jsx(On.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?d.jsx(bg,{...i,ref:t}):d.jsx(xg,{...r,ref:t})})});Ks.displayName=xe;var[Ys,gg]=wo(xe),[Zs,hg]=wo(xe,{collapsible:!1}),xg=oe.forwardRef((e,t)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},collapsible:i=!1,...a}=e,[s,c]=fe({prop:o,defaultProp:n??"",onChange:r,caller:xe});return d.jsx(Ys,{scope:e.__scopeAccordion,value:oe.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:oe.useCallback(()=>i&&c(""),[i,c]),children:d.jsx(Zs,{scope:e.__scopeAccordion,collapsible:i,children:d.jsx(Xs,{...a,ref:t})})})}),bg=oe.forwardRef((e,t)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},...i}=e,[a,s]=fe({prop:o,defaultProp:n??[],onChange:r,caller:xe}),c=oe.useCallback(f=>s((p=[])=>[...p,f]),[s]),u=oe.useCallback(f=>s((p=[])=>p.filter(g=>g!==f)),[s]);return d.jsx(Ys,{scope:e.__scopeAccordion,value:a,onItemOpen:c,onItemClose:u,children:d.jsx(Zs,{scope:e.__scopeAccordion,collapsible:!0,children:d.jsx(Xs,{...i,ref:t})})})}),[yg,Co]=wo(xe),Xs=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,disabled:n,dir:r,orientation:i="vertical",...a}=e,s=oe.useRef(null),c=Q(s,t),u=vg(o),p=co(r)==="ltr",g=L(e.onKeyDown,m=>{var R;if(!pg.includes(m.key))return;const b=m.target,v=u().filter(F=>{var B;return!((B=F.ref.current)!=null&&B.disabled)}),h=v.findIndex(F=>F.ref.current===b),y=v.length;if(h===-1)return;m.preventDefault();let x=h;const w=0,C=y-1,S=()=>{x=h+1,x>C&&(x=w)},k=()=>{x=h-1,x<w&&(x=C)};switch(m.key){case"Home":x=w;break;case"End":x=C;break;case"ArrowRight":i==="horizontal"&&(p?S():k());break;case"ArrowDown":i==="vertical"&&S();break;case"ArrowLeft":i==="horizontal"&&(p?k():S());break;case"ArrowUp":i==="vertical"&&k();break}const E=x%y;(R=v[E].ref.current)==null||R.focus()});return d.jsx(yg,{scope:o,disabled:n,direction:r,orientation:i,children:d.jsx(On.Slot,{scope:o,children:d.jsx($.div,{...a,"data-orientation":i,ref:c,onKeyDown:n?void 0:g})})})}),Yt="AccordionItem",[wg,Mn]=wo(Yt),Qs=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,value:n,...r}=e,i=Co(Yt,o),a=gg(Yt,o),s=_n(o),c=ie(),u=n&&a.value.includes(n)||!1,f=i.disabled||e.disabled;return d.jsx(wg,{scope:o,open:u,disabled:f,triggerId:c,children:d.jsx(ug,{"data-orientation":i.orientation,"data-state":rl(u),...s,...r,ref:t,disabled:f,open:u,onOpenChange:p=>{p?a.onItemOpen(n):a.onItemClose(n)}})})});Qs.displayName=Yt;var Js="AccordionHeader",el=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=Co(xe,o),i=Mn(Js,o);return d.jsx($.h3,{"data-orientation":r.orientation,"data-state":rl(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});el.displayName=Js;var en="AccordionTrigger",tl=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=Co(xe,o),i=Mn(en,o),a=hg(en,o),s=_n(o);return d.jsx(On.ItemSlot,{scope:o,children:d.jsx(dg,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:i.triggerId,...s,...n,ref:t})})});tl.displayName=en;var ol="AccordionContent",nl=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=Co(xe,o),i=Mn(ol,o),a=_n(o);return d.jsx(fg,{role:"region","aria-labelledby":i.triggerId,"data-orientation":r.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});nl.displayName=ol;function rl(e){return e?"open":"closed"}var Cg=Ks,Sg=Qs,Rg=el,Eg=tl,Pg=nl;const Tg=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-361q-8 0-15-2.5t-13-8.5L268-556q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-372q-6 6-13 8.5t-15 2.5Z"})}),kg=({className:e,...t})=>d.jsx(Cg,{"data-slot":"accordion",className:I(e),...t}),Ag=({className:e,...t})=>d.jsx(Sg,{"data-slot":"accordion-item",className:I(e),...t}),br=({className:e,...t})=>d.jsx(Tg,{className:I("volt-ui-text-gray-light volt-ui-pointer-events-none volt-ui-size-5 volt-ui-shrink-0 volt-ui-translate-y-0 volt-ui-transition-transform volt-ui-duration-200",e),...t}),Ig=({className:e,align:t="end",children:o,...n})=>d.jsx(Rg,{className:"volt-ui-flex",children:d.jsxs(Eg,{"data-slot":"accordion-trigger",className:I("volt-ui-outline-accent-a8 volt-ui-p-3 volt-ui-focus-visible:outline-offset-2 volt-ui-focus-visible:outline-2 volt-ui-flex volt-ui-flex-1 volt-ui-items-start volt-ui-gap-3 volt-ui-rounded-md volt-ui-py-4 volt-ui-text-left volt-ui-text-sm volt-ui-font-medium volt-ui-transition-all volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",{"volt-ui-justify-start":t==="start","volt-ui-justify-between":t==="end"},e),...n,children:[t==="start"&&d.jsx(br,{}),o,t==="end"&&d.jsx(br,{})]})}),Ng=({className:e,children:t,...o})=>d.jsx(Pg,{"data-slot":"accordion-content",className:"volt-ui-data-[state=closed]:animate-accordion-up volt-ui-data-[state=open]:animate-accordion-down volt-ui-overflow-hidden volt-ui-duration-75 volt-ui-text-sm volt-ui-px-3 volt-ui-pb-2 volt-ui-pt-0",...o,children:d.jsx("div",{className:I("volt-ui-p-0",e),children:t})});exports.Accordion=kg;exports.AccordionContent=Ng;exports.AccordionItem=Ag;exports.AccordionTrigger=Ig;exports.Badge=Zm;exports.Button=Fr;exports.ButtonGroup=sc;exports.ButtonGroupSeparator=cc;exports.ButtonGroupText=lc;exports.Callout=tg;exports.CalloutAction=rg;exports.CalloutDescription=ng;exports.CalloutTitle=og;exports.Checkbox=bm;exports.Dialog=Ed;exports.DialogClose=Td;exports.DialogContent=kd;exports.DialogDescription=jd;exports.DialogFooter=Id;exports.DialogHeader=Ad;exports.DialogOverlay=_i;exports.DialogPortal=Oi;exports.DialogTitle=Nd;exports.DialogTrigger=Pd;exports.Field=gc;exports.FieldCombobox=yp;exports.FieldComboboxClear=Op;exports.FieldComboboxClearValue=Mp;exports.FieldComboboxContent=Ep;exports.FieldComboboxEmpty=Ap;exports.FieldComboboxGroup=wp;exports.FieldComboboxGroupLabel=Cp;exports.FieldComboboxInput=Pp;exports.FieldComboboxItem=kp;exports.FieldComboboxItemCheckIcon=Np;exports.FieldComboboxList=Tp;exports.FieldComboboxLoading=jp;exports.FieldComboboxPlaceholder=_p;exports.FieldComboboxSeparator=Ip;exports.FieldComboboxTrigger=Rp;exports.FieldComboboxValue=Sp;exports.FieldContent=hc;exports.FieldDescription=yc;exports.FieldError=wc;exports.FieldGroup=pc;exports.FieldGroupAddon=Sc;exports.FieldInput=Vr;exports.FieldInputGroup=Wr;exports.FieldLabel=xc;exports.FieldLabelContent=bc;exports.FieldSet=vc;exports.FieldTextarea=Gr;exports.Label=rn;exports.Popover=cm;exports.PopoverAnchor=fm;exports.PopoverContent=dm;exports.PopoverPortal=lm;exports.PopoverTrigger=um;exports.RadioGroup=Gm;exports.RadioGroupItem=Hm;exports.Select=Cv;exports.SelectContent=Ev;exports.SelectGroup=Sv;exports.SelectItem=Tv;exports.SelectLabel=Pv;exports.SelectScrollDownButton=Xa;exports.SelectScrollUpButton=Za;exports.SelectSeparator=kv;exports.SelectTrigger=Ya;exports.SelectValue=Rv;exports.Separator=Br;exports.Switch=sm;exports.Tooltip=Zv;exports.TooltipContent=Qv;exports.TooltipProvider=ss;exports.TooltipTrigger=Xv;exports.badgeVariants=qs;exports.buttonVariants=nn;exports.cn=I;exports.useFieldContext=wt;
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},_u="DialogDescriptionWarning",Ou=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pa(_u).contentName}}.`;return i.useEffect(()=>{var a;const r=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},mn=pa,Ta=ma,gn=ha,hn=xa,xn=ba,ka=wa,Na=Sa,no=Ea,Du=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=Du.reduce((e,t)=>{const o=Xt(`Primitive.${t}`),n=i.forwardRef((r,a)=>{const{asChild:l,...s}=r,c=l?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ht='[cmdk-group=""]',$o='[cmdk-group-items=""]',Mu='[cmdk-group-heading=""]',Ia='[cmdk-item=""]',fr=`${Ia}:not([aria-disabled="true"])`,Uo="cmdk-item-select",Je="data-value",Lu=(e,t,o)=>ed(e,t,o),ja=i.createContext(void 0),Et=()=>i.useContext(ja),_a=i.createContext(void 0),bn=()=>i.useContext(_a),Oa=i.createContext(void 0),Da=i.forwardRef((e,t)=>{let o=et(()=>{var A,_;return{search:"",value:(_=(A=e.value)!=null?A:e.defaultValue)!=null?_:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=et(()=>new Set),r=et(()=>new Map),a=et(()=>new Map),l=et(()=>new Set),s=Ma(e),{label:c,children:u,value:f,onValueChange:p,filter:m,shouldFilter:g,loop:b,disablePointerSelection:v=!1,vimBindings:h=!0,...y}=e,x=ae(),w=ae(),C=ae(),S=i.useRef(null),T=Ku();Ge(()=>{if(f!==void 0){let A=f.trim();o.current.value=A,E.emit()}},[f]),Ge(()=>{T(6,Y)},[]);let E=i.useMemo(()=>({subscribe:A=>(l.current.add(A),()=>l.current.delete(A)),snapshot:()=>o.current,setState:(A,_,M)=>{var O,H,k,q;if(!Object.is(o.current[A],_)){if(o.current[A]=_,A==="search")Z(),B(),T(1,K);else if(A==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let U=document.getElementById(C);U?U.focus():(O=document.getElementById(x))==null||O.focus()}if(T(7,()=>{var U;o.current.selectedItemId=(U=V())==null?void 0:U.id,E.emit()}),M||T(5,Y),((H=s.current)==null?void 0:H.value)!==void 0){let U=_??"";(q=(k=s.current).onValueChange)==null||q.call(k,U);return}}E.emit()}},emit:()=>{l.current.forEach(A=>A())}}),[]),R=i.useMemo(()=>({value:(A,_,M)=>{var O;_!==((O=a.current.get(A))==null?void 0:O.value)&&(a.current.set(A,{value:_,keywords:M}),o.current.filtered.items.set(A,$(_,M)),T(2,()=>{B(),E.emit()}))},item:(A,_)=>(n.current.add(A),_&&(r.current.has(_)?r.current.get(_).add(A):r.current.set(_,new Set([A]))),T(3,()=>{Z(),B(),o.current.value||K(),E.emit()}),()=>{a.current.delete(A),n.current.delete(A),o.current.filtered.items.delete(A);let M=V();T(4,()=>{Z(),(M==null?void 0:M.getAttribute("id"))===A&&K(),E.emit()})}),group:A=>(r.current.has(A)||r.current.set(A,new Set),()=>{a.current.delete(A),r.current.delete(A)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:C,labelId:w,listInnerRef:S}),[]);function $(A,_){var M,O;let H=(O=(M=s.current)==null?void 0:M.filter)!=null?O:Lu;return A?H(A,o.current.search,_):0}function B(){if(!o.current.search||s.current.shouldFilter===!1)return;let A=o.current.filtered.items,_=[];o.current.filtered.groups.forEach(O=>{let H=r.current.get(O),k=0;H.forEach(q=>{let U=A.get(q);k=Math.max(U,k)}),_.push([O,k])});let M=S.current;G().sort((O,H)=>{var k,q;let U=O.getAttribute("id"),X=H.getAttribute("id");return((k=A.get(X))!=null?k:0)-((q=A.get(U))!=null?q:0)}).forEach(O=>{let H=O.closest($o);H?H.appendChild(O.parentElement===H?O:O.closest(`${$o} > *`)):M.appendChild(O.parentElement===M?O:O.closest(`${$o} > *`))}),_.sort((O,H)=>H[1]-O[1]).forEach(O=>{var H;let k=(H=S.current)==null?void 0:H.querySelector(`${ht}[${Je}="${encodeURIComponent(O[0])}"]`);k==null||k.parentElement.appendChild(k)})}function K(){let A=G().find(M=>M.getAttribute("aria-disabled")!=="true"),_=A==null?void 0:A.getAttribute(Je);E.setState("value",_||void 0)}function Z(){var A,_,M,O;if(!o.current.search||s.current.shouldFilter===!1){o.current.filtered.count=n.current.size;return}o.current.filtered.groups=new Set;let H=0;for(let k of n.current){let q=(_=(A=a.current.get(k))==null?void 0:A.value)!=null?_:"",U=(O=(M=a.current.get(k))==null?void 0:M.keywords)!=null?O:[],X=$(q,U);o.current.filtered.items.set(k,X),X>0&&H++}for(let[k,q]of r.current)for(let U of q)if(o.current.filtered.items.get(U)>0){o.current.filtered.groups.add(k);break}o.current.filtered.count=H}function Y(){var A,_,M;let O=V();O&&(((A=O.parentElement)==null?void 0:A.firstChild)===O&&((M=(_=O.closest(ht))==null?void 0:_.querySelector(Mu))==null||M.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function V(){var A;return(A=S.current)==null?void 0:A.querySelector(`${Ia}[aria-selected="true"]`)}function G(){var A;return Array.from(((A=S.current)==null?void 0:A.querySelectorAll(fr))||[])}function D(A){let _=G()[A];_&&E.setState("value",_.getAttribute(Je))}function z(A){var _;let M=V(),O=G(),H=O.findIndex(q=>q===M),k=O[H+A];(_=s.current)!=null&&_.loop&&(k=H+A<0?O[O.length-1]:H+A===O.length?O[0]:O[H+A]),k&&E.setState("value",k.getAttribute(Je))}function P(A){let _=V(),M=_==null?void 0:_.closest(ht),O;for(;M&&!O;)M=A>0?Hu(M,ht):Uu(M,ht),O=M==null?void 0:M.querySelector(fr);O?E.setState("value",O.getAttribute(Je)):z(A)}let te=()=>D(G().length-1),ne=A=>{A.preventDefault(),A.metaKey?te():A.altKey?P(1):z(1)},se=A=>{A.preventDefault(),A.metaKey?D(0):A.altKey?P(-1):z(-1)};return i.createElement($e.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:A=>{var _;(_=y.onKeyDown)==null||_.call(y,A);let M=A.nativeEvent.isComposing||A.keyCode===229;if(!(A.defaultPrevented||M))switch(A.key){case"n":case"j":{h&&A.ctrlKey&&ne(A);break}case"ArrowDown":{ne(A);break}case"p":case"k":{h&&A.ctrlKey&&se(A);break}case"ArrowUp":{se(A);break}case"Home":{A.preventDefault(),D(0);break}case"End":{A.preventDefault(),te();break}case"Enter":{A.preventDefault();let O=V();if(O){let H=new Event(Uo);O.dispatchEvent(H)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:Yu},c),ro(e,A=>i.createElement(_a.Provider,{value:E},i.createElement(ja.Provider,{value:R},A))))}),$u=i.forwardRef((e,t)=>{var o,n;let r=ae(),a=i.useRef(null),l=i.useContext(Oa),s=Et(),c=Ma(e),u=(n=(o=c.current)==null?void 0:o.forceMount)!=null?n:l==null?void 0:l.forceMount;Ge(()=>{if(!u)return s.item(r,l==null?void 0:l.id)},[u]);let f=La(r,a,[e.value,e.children,a],e.keywords),p=bn(),m=De(T=>T.value&&T.value===f.current),g=De(T=>u||s.filter()===!1?!0:T.search?T.filtered.items.get(r)>0:!0);i.useEffect(()=>{let T=a.current;if(!(!T||e.disabled))return T.addEventListener(Uo,b),()=>T.removeEventListener(Uo,b)},[g,e.onSelect,e.disabled]);function b(){var T,E;v(),(E=(T=c.current).onSelect)==null||E.call(T,f.current)}function v(){p.setState("value",f.current,!0)}if(!g)return null;let{disabled:h,value:y,onSelect:x,forceMount:w,keywords:C,...S}=e;return i.createElement($e.div,{ref:ve(a,t),...S,id:r,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!m,"data-disabled":!!h,"data-selected":!!m,onPointerMove:h||s.getDisablePointerSelection()?void 0:v,onClick:h?void 0:b},e.children)}),Fu=i.forwardRef((e,t)=>{let{heading:o,children:n,forceMount:r,...a}=e,l=ae(),s=i.useRef(null),c=i.useRef(null),u=ae(),f=Et(),p=De(g=>r||f.filter()===!1?!0:g.search?g.filtered.groups.has(l):!0);Ge(()=>f.group(l),[]),La(l,s,[e.value,e.heading,c]);let m=i.useMemo(()=>({id:l,forceMount:r}),[r]);return i.createElement($e.div,{ref:ve(s,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},o&&i.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},o),ro(e,g=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?u:void 0},i.createElement(Oa.Provider,{value:m},g))))}),Bu=i.forwardRef((e,t)=>{let{alwaysRender:o,...n}=e,r=i.useRef(null),a=De(l=>!l.search);return!o&&!a?null:i.createElement($e.div,{ref:ve(r,t),...n,"cmdk-separator":"",role:"separator"})}),Vu=i.forwardRef((e,t)=>{let{onValueChange:o,...n}=e,r=e.value!=null,a=bn(),l=De(u=>u.search),s=De(u=>u.selectedItemId),c=Et();return i.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),i.createElement($e.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:r?e.value:l,onChange:u=>{r||a.setState("search",u.target.value),o==null||o(u.target.value)}})}),zu=i.forwardRef((e,t)=>{let{children:o,label:n="Suggestions",...r}=e,a=i.useRef(null),l=i.useRef(null),s=De(u=>u.selectedItemId),c=Et();return i.useEffect(()=>{if(l.current&&a.current){let u=l.current,f=a.current,p,m=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let g=u.offsetHeight;f.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return m.observe(u),()=>{cancelAnimationFrame(p),m.unobserve(u)}}},[]),i.createElement($e.div,{ref:ve(a,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:c.listId},ro(e,u=>i.createElement("div",{ref:ve(l,c.listInnerRef),"cmdk-list-sizer":""},u)))}),qu=i.forwardRef((e,t)=>{let{open:o,onOpenChange:n,overlayClassName:r,contentClassName:a,container:l,...s}=e;return i.createElement(mn,{open:o,onOpenChange:n},i.createElement(gn,{container:l},i.createElement(hn,{"cmdk-overlay":"",className:r}),i.createElement(xn,{"aria-label":e.label,"cmdk-dialog":"",className:a},i.createElement(Da,{ref:t,...s}))))}),Wu=i.forwardRef((e,t)=>De(o=>o.filtered.count===0)?i.createElement($e.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Gu=i.forwardRef((e,t)=>{let{progress:o,children:n,label:r="Loading...",...a}=e;return i.createElement($e.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},ro(e,l=>i.createElement("div",{"aria-hidden":!0},l)))}),Fe=Object.assign(Da,{List:zu,Item:$u,Input:Vu,Group:Fu,Separator:Bu,Dialog:qu,Empty:Wu,Loading:Gu});function Hu(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return o;o=o.nextElementSibling}}function Uu(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return o;o=o.previousElementSibling}}function Ma(e){let t=i.useRef(e);return Ge(()=>{t.current=e}),t}var Ge=typeof window>"u"?i.useEffect:i.useLayoutEffect;function et(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function De(e){let t=bn(),o=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,o,o)}function La(e,t,o,n=[]){let r=i.useRef(),a=Et();return Ge(()=>{var l;let s=(()=>{var u;for(let f of o){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():r.current}})(),c=n.map(u=>u.trim());a.value(e,s,c),(l=t.current)==null||l.setAttribute(Je,s),r.current=s}),r}var Ku=()=>{let[e,t]=i.useState(),o=et(()=>new Map);return Ge(()=>{o.current.forEach(n=>n()),o.current=new Map},[e]),(n,r)=>{o.current.set(n,r),t({})}};function Zu(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ro({asChild:e,children:t},o){return e&&i.isValidElement(t)?i.cloneElement(Zu(t),{ref:t.ref},o(t.props.children)):o(t)}var Yu={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Xu=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"})}),Qu=({...e})=>d.jsx(mn,{"data-slot":"dialog",...e}),Ju=({...e})=>d.jsx(Ta,{"data-slot":"dialog-trigger",...e}),$a=({...e})=>d.jsx(gn,{"data-slot":"dialog-portal",...e}),ef=({className:e,...t})=>d.jsx(no,{"data-slot":"dialog-close",className:N("volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-focus-visible:outline-accent-a8",e),...t}),Fa=({className:e,...t})=>d.jsx(hn,{"data-slot":"dialog-overlay",className:N("volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-fixed volt-inset-0 volt-z-50 volt-bg-black/50",e),...t}),tf=({className:e,children:t,showCloseButton:o=!0,size:n="lg",...r})=>d.jsxs($a,{"data-slot":"dialog-portal",children:[d.jsx(Fa,{}),d.jsxs(xn,{"data-slot":"dialog-content",className:N("volt-bg-body volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-data-[state=closed]:zoom-out-95 volt-data-[state=open]:zoom-in-95 volt-fixed volt-top-[50%] volt-left-[50%] volt-z-50 volt-grid volt-w-full volt-max-w-[calc(100%-2rem)] volt-translate-x-[-50%] volt-translate-y-[-50%] volt-gap-6 volt-rounded-xl volt-border volt-p-6 volt-shadow-lg volt-duration-200",{"volt-sm:max-w-sm":n==="sm","volt-sm:max-w-md":n==="md","volt-sm:max-w-lg":n==="lg","volt-sm:max-w-xl":n==="xl","volt-sm:max-w-2xl":n==="2xl","volt-sm:max-w-3xl":n==="3xl","volt-sm:max-w-4xl":n==="4xl","volt-sm:max-w-5xl":n==="5xl","volt-w-full":n==="volt-full-width"},e),...r,children:[t,o&&d.jsxs(no,{"data-slot":"dialog-close",className:"volt-data-[state=open]:bg-body volt-size-6 volt-opacity-70 volt-hover:opacity-100 volt-focus-visible:opacity-100 volt-transition-all volt-data-[state=open]:text-gray-light volt-absolute volt-top-4 volt-right-4 volt-rounded-full volt-cursor-pointer volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-focus-visible:outline-accent-a8 volt-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='volt-size-'])]:size-4",children:[d.jsx(Xu,{}),d.jsx("span",{className:"volt-sr-only",children:"Close"})]})]})]}),of=({className:e,...t})=>d.jsx("div",{"data-slot":"volt-dialog-header",className:N("volt-flex volt-flex-col volt-gap-2 volt-text-left",e),...t}),nf=({className:e,...t})=>d.jsx("div",{"data-slot":"volt-dialog-footer",className:N("volt-flex volt-gap-2 volt-justify-end",e),...t}),rf=({className:e,...t})=>d.jsx(ka,{"data-slot":"volt-dialog-title",className:N("volt-text-lg volt-leading-none volt-font-semibold volt-text-gray-default",e),...t}),af=({className:e,...t})=>d.jsx(Na,{"data-slot":"volt-dialog-description",className:N("volt-text-gray-light volt-text-sm",e),...t}),lf=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M380-320q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l224 224q11 11 11 28t-11 28q-11 11-28 11t-28-11L532-372q-30 24-69 38t-83 14Zm0-80q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})}),sf=({className:e,...t})=>d.jsx(Fe,{"data-slot":"command",className:N("volt-bg-body volt-text-gray-default volt-flex volt-h-full volt-w-full volt-flex-col volt-overflow-hidden volt-rounded-md",e),...t}),cf=({className:e,...t})=>d.jsxs("div",{"data-slot":"command-input-wrapper",className:"volt-flex volt-items-center volt-gap-2 volt-border-b volt-px-3",children:[d.jsx(lf,{className:"volt-size-5 volt-shrink-0 volt-opacity-50"}),d.jsx(Fe.Input,{"data-slot":"command-input",className:N("volt-placeholder:text-gray-light volt-h-12 volt-flex volt-w-full volt-rounded-md volt-bg-transparent volt-py-3 volt-text-sm volt-outline-hidden volt-disabled:cursor-not-allowed volt-disabled:opacity-50",e),...t})]}),df=({className:e,...t})=>d.jsx(Fe.List,{"data-slot":"command-list",className:N("volt-scroll-py-1 volt-overflow-x-hidden volt-overflow-y-auto",e),...t}),uf=({...e})=>d.jsx(Fe.Empty,{"data-slot":"command-empty",className:"volt-py-6 volt-text-center volt-text-sm",...e}),ff=({className:e,...t})=>d.jsx(Fe.Group,{"data-slot":"command-group",className:N("volt-text-foreground volt-**:[[cmdk-group-heading]]:text-gray-light volt-overflow-hidden volt-p-1 volt-**:[[cmdk-group-heading]]:px-2 volt-**:[[cmdk-group-heading]]:py-1.5 volt-**:[[cmdk-group-heading]]:text-xs volt-**:[[cmdk-group-heading]]:font-medium",e),...t}),pf=({className:e,...t})=>d.jsx(Fe.Separator,{"data-slot":"command-separator",className:N("volt-bg-gray-soft volt--mx-1 volt-h-px",e),...t}),vf=({className:e,...t})=>d.jsx(Fe.Item,{"data-slot":"command-item",className:N("volt-data-[selected=true]:bg-accent-a3 volt-data-[selected=true]:text-gray-default [&_svg:not([class*='volt-text-'])]:text-gray-light volt-relative volt-flex volt-cursor-default volt-items-center volt-gap-2 volt-rounded-sm volt-px-2 volt-py-1.5 volt-text-sm volt-outline-hidden volt-select-none volt-data-[disabled=true]:pointer-events-none volt-data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='volt-size-'])]:size-4",e),...t}),mf=({className:e,...t})=>d.jsx(Fe.Loading,{"data-slot":"volt-command-loading",className:N("volt-text-gray-light",e),...t}),gf=["top","right","bottom","left"],Me=Math.min,ce=Math.max,Wt=Math.round,Lt=Math.floor,Ce=e=>({x:e,y:e}),hf={left:"right",right:"left",bottom:"top",top:"bottom"},xf={start:"end",end:"start"};function Ko(e,t,o){return ce(e,Me(t,o))}function Pe(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function yn(e){return e==="x"?"y":"x"}function wn(e){return e==="y"?"height":"width"}const bf=new Set(["top","bottom"]);function we(e){return bf.has(Te(e))?"y":"x"}function Cn(e){return yn(we(e))}function yf(e,t,o){o===void 0&&(o=!1);const n=ct(e),r=Cn(e),a=wn(r);let l=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=Gt(l)),[l,Gt(l)]}function wf(e){const t=Gt(e);return[Zo(e),t,Zo(t)]}function Zo(e){return e.replace(/start|end/g,t=>xf[t])}const pr=["left","right"],vr=["right","left"],Cf=["top","bottom"],Sf=["bottom","top"];function Rf(e,t,o){switch(e){case"top":case"bottom":return o?t?vr:pr:t?pr:vr;case"left":case"right":return t?Cf:Sf;default:return[]}}function Ef(e,t,o,n){const r=ct(e);let a=Rf(Te(e),o==="start",n);return r&&(a=a.map(l=>l+"-"+r),t&&(a=a.concat(a.map(Zo)))),a}function Gt(e){return e.replace(/left|right|bottom|top/g,t=>hf[t])}function Af(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ba(e){return typeof e!="number"?Af(e):{top:e,right:e,bottom:e,left:e}}function Ht(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function mr(e,t,o){let{reference:n,floating:r}=e;const a=we(t),l=Cn(t),s=wn(l),c=Te(t),u=a==="y",f=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,m=n[s]/2-r[s]/2;let g;switch(c){case"top":g={x:f,y:n.y-r.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-r.width,y:p};break;default:g={x:n.x,y:n.y}}switch(ct(t)){case"start":g[l]-=m*(o&&u?-1:1);break;case"end":g[l]+=m*(o&&u?-1:1);break}return g}const Pf=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:l}=o,s=a.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:p}=mr(u,n,c),m=n,g={},b=0;for(let v=0;v<s.length;v++){const{name:h,fn:y}=s[v],{x,y:w,data:C,reset:S}=await y({x:f,y:p,initialPlacement:n,placement:m,strategy:r,middlewareData:g,rects:u,platform:l,elements:{reference:e,floating:t}});f=x??f,p=w??p,g={...g,[h]:{...g[h],...C}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(u=S.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:f,y:p}=mr(u,m,c)),v=-1)}return{x:f,y:p,placement:m,strategy:r,middlewareData:g}};async function bt(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:a,rects:l,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=Pe(t,e),b=Ba(g),h=s[m?p==="floating"?"reference":"floating":p],y=Ht(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(h)))==null||o?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),x=p==="floating"?{x:n,y:r,width:l.floating.width,height:l.floating.height}:l.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Ht(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-S.top+b.top)/C.y,bottom:(S.bottom-y.bottom+b.bottom)/C.y,left:(y.left-S.left+b.left)/C.x,right:(S.right-y.right+b.right)/C.x}}const Tf=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:a,platform:l,elements:s,middlewareData:c}=t,{element:u,padding:f=0}=Pe(e,t)||{};if(u==null)return{};const p=Ba(f),m={x:o,y:n},g=Cn(r),b=wn(g),v=await l.getDimensions(u),h=g==="y",y=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[g]-m[g]-a.floating[b],S=m[g]-a.reference[g],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let E=T?T[w]:0;(!E||!await(l.isElement==null?void 0:l.isElement(T)))&&(E=s.floating[w]||a.floating[b]);const R=C/2-S/2,$=E/2-v[b]/2-1,B=Me(p[y],$),K=Me(p[x],$),Z=B,Y=E-v[b]-K,V=E/2-v[b]/2+R,G=Ko(Z,V,Y),D=!c.arrow&&ct(r)!=null&&V!==G&&a.reference[b]/2-(V<Z?B:K)-v[b]/2<0,z=D?V<Z?V-Z:V-Y:0;return{[g]:m[g]+z,data:{[g]:G,centerOffset:V-G-z,...D&&{alignmentOffset:z}},reset:D}}}),kf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:a,rects:l,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...h}=Pe(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return{};const y=Te(r),x=we(s),w=Te(s)===s,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=m||(w||!v?[Gt(s)]:wf(s)),T=b!=="none";!m&&T&&S.push(...Ef(s,v,b,C));const E=[s,...S],R=await bt(t,h),$=[];let B=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&$.push(R[y]),p){const V=yf(r,l,C);$.push(R[V[0]],R[V[1]])}if(B=[...B,{placement:r,overflows:$}],!$.every(V=>V<=0)){var K,Z;const V=(((K=a.flip)==null?void 0:K.index)||0)+1,G=E[V];if(G&&(!(p==="alignment"?x!==we(G):!1)||B.every(P=>we(P.placement)===x?P.overflows[0]>0:!0)))return{data:{index:V,overflows:B},reset:{placement:G}};let D=(Z=B.filter(z=>z.overflows[0]<=0).sort((z,P)=>z.overflows[1]-P.overflows[1])[0])==null?void 0:Z.placement;if(!D)switch(g){case"bestFit":{var Y;const z=(Y=B.filter(P=>{if(T){const te=we(P.placement);return te===x||te==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(te=>te>0).reduce((te,ne)=>te+ne,0)]).sort((P,te)=>P[1]-te[1])[0])==null?void 0:Y[0];z&&(D=z);break}case"initialPlacement":D=s;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function gr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hr(e){return gf.some(t=>e[t]>=0)}const Nf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:n="referenceHidden",...r}=Pe(e,t);switch(n){case"referenceHidden":{const a=await bt(t,{...r,elementContext:"reference"}),l=gr(a,o.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:hr(l)}}}case"escaped":{const a=await bt(t,{...r,altBoundary:!0}),l=gr(a,o.floating);return{data:{escapedOffsets:l,escaped:hr(l)}}}default:return{}}}}},Va=new Set(["left","top"]);async function If(e,t){const{placement:o,platform:n,elements:r}=e,a=await(n.isRTL==null?void 0:n.isRTL(r.floating)),l=Te(o),s=ct(o),c=we(o)==="y",u=Va.has(l)?-1:1,f=a&&c?-1:1,p=Pe(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),c?{x:g*f,y:m*u}:{x:m*u,y:g*f}}const jf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:a,placement:l,middlewareData:s}=t,c=await If(t,e);return l===((o=s.offset)==null?void 0:o.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:a+c.y,data:{...c,placement:l}}}}},_f=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:h=>{let{x:y,y:x}=h;return{x:y,y:x}}},...c}=Pe(e,t),u={x:o,y:n},f=await bt(t,c),p=we(Te(r)),m=yn(p);let g=u[m],b=u[p];if(a){const h=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=g+f[h],w=g-f[y];g=Ko(x,g,w)}if(l){const h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=b+f[h],w=b-f[y];b=Ko(x,b,w)}const v=s.fn({...t,[m]:g,[p]:b});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[m]:a,[p]:l}}}}}},Of=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:n,placement:r,rects:a,middlewareData:l}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Pe(e,t),f={x:o,y:n},p=we(r),m=yn(p);let g=f[m],b=f[p];const v=Pe(s,t),h=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=m==="y"?"height":"width",C=a.reference[m]-a.floating[w]+h.mainAxis,S=a.reference[m]+a.reference[w]-h.mainAxis;g<C?g=C:g>S&&(g=S)}if(u){var y,x;const w=m==="y"?"width":"height",C=Va.has(Te(r)),S=a.reference[p]-a.floating[w]+(C&&((y=l.offset)==null?void 0:y[p])||0)+(C?0:h.crossAxis),T=a.reference[p]+a.reference[w]+(C?0:((x=l.offset)==null?void 0:x[p])||0)-(C?h.crossAxis:0);b<S?b=S:b>T&&(b=T)}return{[m]:g,[p]:b}}}},Df=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:r,rects:a,platform:l,elements:s}=t,{apply:c=()=>{},...u}=Pe(e,t),f=await bt(t,u),p=Te(r),m=ct(r),g=we(r)==="y",{width:b,height:v}=a.floating;let h,y;p==="top"||p==="bottom"?(h=p,y=m===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,h=m==="end"?"top":"bottom");const x=v-f.top-f.bottom,w=b-f.left-f.right,C=Me(v-f[h],x),S=Me(b-f[y],w),T=!t.middlewareData.shift;let E=C,R=S;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(R=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=x),T&&!m){const B=ce(f.left,0),K=ce(f.right,0),Z=ce(f.top,0),Y=ce(f.bottom,0);g?R=b-2*(B!==0||K!==0?B+K:ce(f.left,f.right)):E=v-2*(Z!==0||Y!==0?Z+Y:ce(f.top,f.bottom))}await c({...t,availableWidth:R,availableHeight:E});const $=await l.getDimensions(s.floating);return b!==$.width||v!==$.height?{reset:{rects:!0}}:{}}}};function ao(){return typeof window<"u"}function dt(e){return za(e)?(e.nodeName||"").toLowerCase():"#document"}function de(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ee(e){var t;return(t=(za(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function za(e){return ao()?e instanceof Node||e instanceof de(e).Node:!1}function me(e){return ao()?e instanceof Element||e instanceof de(e).Element:!1}function Se(e){return ao()?e instanceof HTMLElement||e instanceof de(e).HTMLElement:!1}function xr(e){return!ao()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof de(e).ShadowRoot}const Mf=new Set(["inline","contents"]);function At(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!Mf.has(r)}const Lf=new Set(["table","td","th"]);function $f(e){return Lf.has(dt(e))}const Ff=[":popover-open",":modal"];function lo(e){return Ff.some(t=>{try{return e.matches(t)}catch{return!1}})}const Bf=["transform","translate","scale","rotate","perspective"],Vf=["transform","translate","scale","rotate","perspective","filter"],zf=["paint","layout","strict","content"];function Sn(e){const t=Rn(),o=me(e)?ge(e):e;return Bf.some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||Vf.some(n=>(o.willChange||"").includes(n))||zf.some(n=>(o.contain||"").includes(n))}function qf(e){let t=Le(e);for(;Se(t)&&!rt(t);){if(Sn(t))return t;if(lo(t))return null;t=Le(t)}return null}function Rn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Wf=new Set(["html","body","#document"]);function rt(e){return Wf.has(dt(e))}function ge(e){return de(e).getComputedStyle(e)}function so(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Le(e){if(dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xr(e)&&e.host||Ee(e);return xr(t)?t.host:t}function qa(e){const t=Le(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&&At(t)?t:qa(t)}function yt(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=qa(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),l=de(r);if(a){const s=Yo(l);return t.concat(l,l.visualViewport||[],At(r)?r:[],s&&o?yt(s):[])}return t.concat(r,yt(r,[],o))}function Yo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wa(e){const t=ge(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Se(e),a=r?e.offsetWidth:o,l=r?e.offsetHeight:n,s=Wt(o)!==a||Wt(n)!==l;return s&&(o=a,n=l),{width:o,height:n,$:s}}function En(e){return me(e)?e:e.contextElement}function ot(e){const t=En(e);if(!Se(t))return Ce(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:a}=Wa(t);let l=(a?Wt(o.width):o.width)/n,s=(a?Wt(o.height):o.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const Gf=Ce(0);function Ga(e){const t=de(e);return!Rn()||!t.visualViewport?Gf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Hf(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==de(e)?!1:t}function He(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),a=En(e);let l=Ce(1);t&&(n?me(n)&&(l=ot(n)):l=ot(e));const s=Hf(a,o,n)?Ga(a):Ce(0);let c=(r.left+s.x)/l.x,u=(r.top+s.y)/l.y,f=r.width/l.x,p=r.height/l.y;if(a){const m=de(a),g=n&&me(n)?de(n):n;let b=m,v=Yo(b);for(;v&&n&&g!==b;){const h=ot(v),y=v.getBoundingClientRect(),x=ge(v),w=y.left+(v.clientLeft+parseFloat(x.paddingLeft))*h.x,C=y.top+(v.clientTop+parseFloat(x.paddingTop))*h.y;c*=h.x,u*=h.y,f*=h.x,p*=h.y,c+=w,u+=C,b=de(v),v=Yo(b)}}return Ht({width:f,height:p,x:c,y:u})}function io(e,t){const o=so(e).scrollLeft;return t?t.left+o:He(Ee(e)).left+o}function Ha(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-io(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function Uf(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const a=r==="fixed",l=Ee(n),s=t?lo(t.floating):!1;if(n===l||s&&a)return o;let c={scrollLeft:0,scrollTop:0},u=Ce(1);const f=Ce(0),p=Se(n);if((p||!p&&!a)&&((dt(n)!=="body"||At(l))&&(c=so(n)),Se(n))){const g=He(n);u=ot(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const m=l&&!p&&!a?Ha(l,c):Ce(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-c.scrollLeft*u.x+f.x+m.x,y:o.y*u.y-c.scrollTop*u.y+f.y+m.y}}function Kf(e){return Array.from(e.getClientRects())}function Zf(e){const t=Ee(e),o=so(e),n=e.ownerDocument.body,r=ce(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ce(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-o.scrollLeft+io(e);const s=-o.scrollTop;return ge(n).direction==="rtl"&&(l+=ce(t.clientWidth,n.clientWidth)-r),{width:r,height:a,x:l,y:s}}const br=25;function Yf(e,t){const o=de(e),n=Ee(e),r=o.visualViewport;let a=n.clientWidth,l=n.clientHeight,s=0,c=0;if(r){a=r.width,l=r.height;const f=Rn();(!f||f&&t==="fixed")&&(s=r.offsetLeft,c=r.offsetTop)}const u=io(n);if(u<=0){const f=n.ownerDocument,p=f.body,m=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-g);b<=br&&(a-=b)}else u<=br&&(a+=u);return{width:a,height:l,x:s,y:c}}const Xf=new Set(["absolute","fixed"]);function Qf(e,t){const o=He(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,a=Se(e)?ot(e):Ce(1),l=e.clientWidth*a.x,s=e.clientHeight*a.y,c=r*a.x,u=n*a.y;return{width:l,height:s,x:c,y:u}}function yr(e,t,o){let n;if(t==="viewport")n=Yf(e,o);else if(t==="document")n=Zf(Ee(e));else if(me(t))n=Qf(t,o);else{const r=Ga(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ht(n)}function Ua(e,t){const o=Le(e);return o===t||!me(o)||rt(o)?!1:ge(o).position==="fixed"||Ua(o,t)}function Jf(e,t){const o=t.get(e);if(o)return o;let n=yt(e,[],!1).filter(s=>me(s)&&dt(s)!=="body"),r=null;const a=ge(e).position==="fixed";let l=a?Le(e):e;for(;me(l)&&!rt(l);){const s=ge(l),c=Sn(l);!c&&s.position==="fixed"&&(r=null),(a?!c&&!r:!c&&s.position==="static"&&!!r&&Xf.has(r.position)||At(l)&&!c&&Ua(e,l))?n=n.filter(f=>f!==l):r=s,l=Le(l)}return t.set(e,n),n}function ep(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const l=[...o==="clippingAncestors"?lo(t)?[]:Jf(t,this._c):[].concat(o),n],s=l[0],c=l.reduce((u,f)=>{const p=yr(t,f,r);return u.top=ce(p.top,u.top),u.right=Me(p.right,u.right),u.bottom=Me(p.bottom,u.bottom),u.left=ce(p.left,u.left),u},yr(t,s,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function tp(e){const{width:t,height:o}=Wa(e);return{width:t,height:o}}function op(e,t,o){const n=Se(t),r=Ee(t),a=o==="fixed",l=He(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=Ce(0);function u(){c.x=io(r)}if(n||!n&&!a)if((dt(t)!=="body"||At(r))&&(s=so(t)),n){const g=He(t,!0,a,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else r&&u();a&&!n&&r&&u();const f=r&&!n&&!a?Ha(r,s):Ce(0),p=l.left+s.scrollLeft-c.x-f.x,m=l.top+s.scrollTop-c.y-f.y;return{x:p,y:m,width:l.width,height:l.height}}function Fo(e){return ge(e).position==="static"}function wr(e,t){if(!Se(e)||ge(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ee(e)===o&&(o=o.ownerDocument.body),o}function Ka(e,t){const o=de(e);if(lo(e))return o;if(!Se(e)){let r=Le(e);for(;r&&!rt(r);){if(me(r)&&!Fo(r))return r;r=Le(r)}return o}let n=wr(e,t);for(;n&&$f(n)&&Fo(n);)n=wr(n,t);return n&&rt(n)&&Fo(n)&&!Sn(n)?o:n||qf(e)||o}const np=async function(e){const t=this.getOffsetParent||Ka,o=this.getDimensions,n=await o(e.floating);return{reference:op(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function rp(e){return ge(e).direction==="rtl"}const ap={convertOffsetParentRelativeRectToViewportRelativeRect:Uf,getDocumentElement:Ee,getClippingRect:ep,getOffsetParent:Ka,getElementRects:np,getClientRects:Kf,getDimensions:tp,getScale:ot,isElement:me,isRTL:rp};function Za(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lp(e,t){let o=null,n;const r=Ee(e);function a(){var s;clearTimeout(n),(s=o)==null||s.disconnect(),o=null}function l(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=u;if(s||t(),!m||!g)return;const b=Lt(p),v=Lt(r.clientWidth-(f+m)),h=Lt(r.clientHeight-(p+g)),y=Lt(f),w={rootMargin:-b+"px "+-v+"px "+-h+"px "+-y+"px",threshold:ce(0,Me(1,c))||1};let C=!0;function S(T){const E=T[0].intersectionRatio;if(E!==c){if(!C)return l();E?l(!1,E):n=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!Za(u,e.getBoundingClientRect())&&l(),C=!1}try{o=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{o=new IntersectionObserver(S,w)}o.observe(e)}return l(!0),a}function sp(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=En(e),f=r||a?[...u?yt(u):[],...yt(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",o,{passive:!0}),a&&y.addEventListener("resize",o)});const p=u&&s?lp(u,o):null;let m=-1,g=null;l&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),o()}),u&&!c&&g.observe(u),g.observe(t));let b,v=c?He(e):null;c&&h();function h(){const y=He(e);v&&!Za(v,y)&&o(),v=y,b=requestAnimationFrame(h)}return o(),()=>{var y;f.forEach(x=>{r&&x.removeEventListener("scroll",o),a&&x.removeEventListener("resize",o)}),p==null||p(),(y=g)==null||y.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const ip=jf,cp=_f,dp=kf,up=Df,fp=Nf,Cr=Tf,pp=Of,vp=(e,t,o)=>{const n=new Map,r={platform:ap,...o},a={...r.platform,_c:n};return Pf(e,t,{...r,platform:a})};var mp=typeof document<"u",gp=function(){},Bt=mp?oe.useLayoutEffect:gp;function Ut(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 o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(n=o;n--!==0;)if(!Ut(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=o;n--!==0;){const a=r[n];if(!(a==="_owner"&&e.$$typeof)&&!Ut(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ya(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sr(e,t){const o=Ya(e);return Math.round(t*o)/o}function Bo(e){const t=i.useRef(e);return Bt(()=>{t.current=e}),t}function hp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,p]=i.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=i.useState(n);Ut(m,n)||g(n);const[b,v]=i.useState(null),[h,y]=i.useState(null),x=i.useCallback(P=>{P!==T.current&&(T.current=P,v(P))},[]),w=i.useCallback(P=>{P!==E.current&&(E.current=P,y(P))},[]),C=a||b,S=l||h,T=i.useRef(null),E=i.useRef(null),R=i.useRef(f),$=c!=null,B=Bo(c),K=Bo(r),Z=Bo(u),Y=i.useCallback(()=>{if(!T.current||!E.current)return;const P={placement:t,strategy:o,middleware:m};K.current&&(P.platform=K.current),vp(T.current,E.current,P).then(te=>{const ne={...te,isPositioned:Z.current!==!1};V.current&&!Ut(R.current,ne)&&(R.current=ne,Yt.flushSync(()=>{p(ne)}))})},[m,t,o,K,Z]);Bt(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[u]);const V=i.useRef(!1);Bt(()=>(V.current=!0,()=>{V.current=!1}),[]),Bt(()=>{if(C&&(T.current=C),S&&(E.current=S),C&&S){if(B.current)return B.current(C,S,Y);Y()}},[C,S,Y,B,$]);const G=i.useMemo(()=>({reference:T,floating:E,setReference:x,setFloating:w}),[x,w]),D=i.useMemo(()=>({reference:C,floating:S}),[C,S]),z=i.useMemo(()=>{const P={position:o,left:0,top:0};if(!D.floating)return P;const te=Sr(D.floating,f.x),ne=Sr(D.floating,f.y);return s?{...P,transform:"translate("+te+"px, "+ne+"px)",...Ya(D.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:te,top:ne}},[o,s,D.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:Y,refs:G,elements:D,floatingStyles:z}),[f,Y,G,D,z])}const xp=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){const{element:n,padding:r}=typeof e=="function"?e(o):e;return n&&t(n)?n.current!=null?Cr({element:n.current,padding:r}).fn(o):{}:n?Cr({element:n,padding:r}).fn(o):{}}}},bp=(e,t)=>({...ip(e),options:[e,t]}),yp=(e,t)=>({...cp(e),options:[e,t]}),wp=(e,t)=>({...pp(e),options:[e,t]}),Cp=(e,t)=>({...dp(e),options:[e,t]}),Sp=(e,t)=>({...up(e),options:[e,t]}),Rp=(e,t)=>({...fp(e),options:[e,t]}),Ep=(e,t)=>({...xp(e),options:[e,t]});var Ap="Arrow",Xa=i.forwardRef((e,t)=>{const{children:o,width:n=10,height:r=5,...a}=e;return d.jsx(F.svg,{...a,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Xa.displayName=Ap;var Pp=Xa;function co(e){const[t,o]=i.useState(void 0);return le(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let l,s;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;o({width:l,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else o(void 0)},[e]),t}var An="Popper",[Qa,ut]=ue(An),[Tp,Ja]=Qa(An),el=e=>{const{__scopePopper:t,children:o}=e,[n,r]=i.useState(null);return d.jsx(Tp,{scope:t,anchor:n,onAnchorChange:r,children:o})};el.displayName=An;var tl="PopperAnchor",ol=i.forwardRef((e,t)=>{const{__scopePopper:o,virtualRef:n,...r}=e,a=Ja(tl,o),l=i.useRef(null),s=Q(t,l),c=i.useRef(null);return i.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||l.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:d.jsx(F.div,{...r,ref:s})});ol.displayName=tl;var Pn="PopperContent",[kp,Np]=Qa(Pn),nl=i.forwardRef((e,t)=>{var k,q,U,X,ee,J;const{__scopePopper:o,side:n="bottom",sideOffset:r=0,align:a="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...v}=e,h=Ja(Pn,o),[y,x]=i.useState(null),w=Q(t,ie=>x(ie)),[C,S]=i.useState(null),T=co(C),E=(T==null?void 0:T.width)??0,R=(T==null?void 0:T.height)??0,$=n+(a!=="center"?"-"+a:""),B=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},K=Array.isArray(u)?u:[u],Z=K.length>0,Y={padding:B,boundary:K.filter(jp),altBoundary:Z},{refs:V,floatingStyles:G,placement:D,isPositioned:z,middlewareData:P}=hp({strategy:"fixed",placement:$,whileElementsMounted:(...ie)=>sp(...ie,{animationFrame:g==="always"}),elements:{reference:h.anchor},middleware:[bp({mainAxis:r+R,alignmentAxis:l}),c&&yp({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?wp():void 0,...Y}),c&&Cp({...Y}),Sp({...Y,apply:({elements:ie,rects:be,availableWidth:pt,availableHeight:vt})=>{const{width:mt,height:Ri}=be.reference,kt=ie.floating.style;kt.setProperty("--radix-popper-available-width",`${pt}px`),kt.setProperty("--radix-popper-available-height",`${vt}px`),kt.setProperty("--radix-popper-anchor-width",`${mt}px`),kt.setProperty("--radix-popper-anchor-height",`${Ri}px`)}}),C&&Ep({element:C,padding:s}),_p({arrowWidth:E,arrowHeight:R}),m&&Rp({strategy:"referenceHidden",...Y})]}),[te,ne]=ll(D),se=Oe(b);le(()=>{z&&(se==null||se())},[z,se]);const A=(k=P.arrow)==null?void 0:k.x,_=(q=P.arrow)==null?void 0:q.y,M=((U=P.arrow)==null?void 0:U.centerOffset)!==0,[O,H]=i.useState();return le(()=>{y&&H(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:z?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(X=P.transformOrigin)==null?void 0:X.x,(ee=P.transformOrigin)==null?void 0:ee.y].join(" "),...((J=P.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(kp,{scope:o,placedSide:te,onArrowChange:S,arrowX:A,arrowY:_,shouldHideArrow:M,children:d.jsx(F.div,{"data-side":te,"data-align":ne,...v,ref:w,style:{...v.style,animation:z?void 0:"none"}})})})});nl.displayName=Pn;var rl="PopperArrow",Ip={top:"bottom",right:"left",bottom:"top",left:"right"},al=i.forwardRef(function(t,o){const{__scopePopper:n,...r}=t,a=Np(rl,n),l=Ip[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(Pp,{...r,ref:o,style:{...r.style,display:"block"}})})});al.displayName=rl;function jp(e){return e!==null}var _p=e=>({name:"transformOrigin",options:e,fn(t){var h,y,x;const{placement:o,rects:n,middlewareData:r}=t,l=((h=r.arrow)==null?void 0:h.centerOffset)!==0,s=l?0:e.arrowWidth,c=l?0:e.arrowHeight,[u,f]=ll(o),p={start:"0%",center:"50%",end:"100%"}[f],m=(((y=r.arrow)==null?void 0:y.x)??0)+s/2,g=(((x=r.arrow)==null?void 0:x.y)??0)+c/2;let b="",v="";return u==="bottom"?(b=l?p:`${m}px`,v=`${-c}px`):u==="top"?(b=l?p:`${m}px`,v=`${n.floating.height+c}px`):u==="right"?(b=`${-c}px`,v=l?p:`${g}px`):u==="left"&&(b=`${n.floating.width+c}px`,v=l?p:`${g}px`),{data:{x:b,y:v}}}});function ll(e){const[t,o="center"]=e.split("-");return[t,o]}var Tn=el,uo=ol,kn=nl,Nn=al;function Op(e){const t=Dp(e),o=i.forwardRef((n,r)=>{const{children:a,...l}=n,s=i.Children.toArray(a),c=s.find(Lp);if(c){const u=c.props.children,f=s.map(p=>p===c?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...l,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...l,ref:r,children:a})});return o.displayName=`${e}.Slot`,o}function Dp(e){const t=i.forwardRef((o,n)=>{const{children:r,...a}=o;if(i.isValidElement(r)){const l=Fp(r),s=$p(a,r.props);return r.type!==i.Fragment&&(s.ref=n?ve(n,l):l),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mp=Symbol("radix.slottable");function Lp(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mp}function $p(e,t){const o={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...s)=>{const c=a(...s);return r(...s),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...a}:n==="className"&&(o[n]=[r,a].filter(Boolean).join(" "))}return{...e,...o}}function Fp(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var fo="Popover",[sl]=ue(fo,[ut]),Pt=ut(),[Bp,Be]=sl(fo),il=e=>{const{__scopePopover:t,children:o,open:n,defaultOpen:r,onOpenChange:a,modal:l=!1}=e,s=Pt(t),c=i.useRef(null),[u,f]=i.useState(!1),[p,m]=fe({prop:n,defaultProp:r??!1,onChange:a,caller:fo});return d.jsx(Tn,{...s,children:d.jsx(Bp,{scope:t,contentId:ae(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:i.useCallback(()=>m(g=>!g),[m]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:l,children:o})})};il.displayName=fo;var cl="PopoverAnchor",dl=i.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=Be(cl,o),a=Pt(o),{onCustomAnchorAdd:l,onCustomAnchorRemove:s}=r;return i.useEffect(()=>(l(),()=>s()),[l,s]),d.jsx(uo,{...a,...n,ref:t})});dl.displayName=cl;var ul="PopoverTrigger",fl=i.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=Be(ul,o),a=Pt(o),l=Q(t,r.triggerRef),s=d.jsx(F.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":hl(r.open),...n,ref:l,onClick:L(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?s:d.jsx(uo,{asChild:!0,...a,children:s})});fl.displayName=ul;var In="PopoverPortal",[Vp,zp]=sl(In,{forceMount:void 0}),pl=e=>{const{__scopePopover:t,forceMount:o,children:n,container:r}=e,a=Be(In,t);return d.jsx(Vp,{scope:t,forceMount:o,children:d.jsx(Re,{present:o||a.open,children:d.jsx(Jt,{asChild:!0,container:r,children:n})})})};pl.displayName=In;var at="PopoverContent",vl=i.forwardRef((e,t)=>{const o=zp(at,e.__scopePopover),{forceMount:n=o.forceMount,...r}=e,a=Be(at,e.__scopePopover);return d.jsx(Re,{present:n||a.open,children:a.modal?d.jsx(Wp,{...r,ref:t}):d.jsx(Gp,{...r,ref:t})})});vl.displayName=at;var qp=Op("PopoverContent.RemoveScroll"),Wp=i.forwardRef((e,t)=>{const o=Be(at,e.__scopePopover),n=i.useRef(null),r=Q(t,n),a=i.useRef(!1);return i.useEffect(()=>{const l=n.current;if(l)return un(l)},[]),d.jsx(to,{as:qp,allowPinchZoom:!0,children:d.jsx(ml,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,l=>{var s;l.preventDefault(),a.current||(s=o.triggerRef.current)==null||s.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,l=>{const s=l.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,u=s.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:L(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),Gp=i.forwardRef((e,t)=>{const o=Be(at,e.__scopePopover),n=i.useRef(!1),r=i.useRef(!1);return d.jsx(ml,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var l,s;(l=e.onCloseAutoFocus)==null||l.call(e,a),a.defaultPrevented||(n.current||(s=o.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const l=a.target;((u=o.triggerRef.current)==null?void 0:u.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),ml=i.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...p}=e,m=Be(at,o),g=Pt(o);return dn(),d.jsx(Qt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:a,children:d.jsx(Rt,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:d.jsx(kn,{"data-state":hl(m.open),role:"dialog",id:m.contentId,...g,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),gl="PopoverClose",Hp=i.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=Be(gl,o);return d.jsx(F.button,{type:"button",...n,ref:t,onClick:L(e.onClick,()=>r.onOpenChange(!1))})});Hp.displayName=gl;var Up="PopoverArrow",Kp=i.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=Pt(o);return d.jsx(Nn,{...r,...n,ref:t})});Kp.displayName=Up;function hl(e){return e?"open":"closed"}var xl=il,Zp=dl,bl=fl,Yp=pl,yl=vl;const Xp=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"})}),Qp=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z"})}),wl=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"})}),Jp=({...e})=>d.jsx(xl,{"data-slot":"combobox",...e}),ev=({className:e,...t})=>d.jsx(ff,{"data-slot":"combobox-group",className:N("volt-p-0!",e),...t}),tv=({className:e,...t})=>d.jsx(cn,{"data-slot":"combobox-group-label",className:N("volt-text-gray volt-font-semibold volt-px-2 volt-py-1.5 volt-text-xs",e),...t}),ov=({className:e,children:t,...o})=>d.jsx("div",{"data-slot":"combobox-value",className:N("volt-text-gray-default volt-w-full volt-text-left volt-flex-wrap volt-flex volt-gap-2 volt-relative",e),...o,children:t}),nv=i.forwardRef(({className:e,children:t,...o},n)=>{const{inputRef:r}=St();return d.jsxs(bl,{ref:a=>{r&&(r.current=a),typeof n=="function"?n(a):n&&(n.current=a)},"data-slot":"select-trigger",className:N("volt-group volt-data-placeholder:text-gray-a8 volt-w-full volt-flex volt-items-center volt-justify-between volt-gap-2 volt-rounded-lg volt-bg-transparent volt-text-sm volt-whitespace-nowrap volt-transition-[color,box-shadow] volt-outline-none volt-disabled:cursor-not-allowed volt-disabled:opacity-50 volt-*:data-[slot=select-value]:line-clamp-1 volt-*:data-[slot=select-value]:flex volt-*:data-[slot=select-value]:items-center volt-*:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...o,children:[t,d.jsx(Qp,{className:"volt-transition-all volt-size-6 volt-group-data-[selected=open]:rotate-180 volt-text-gray-light"})]})}),rv=({className:e,children:t,...o})=>d.jsx(yl,{"data-slot":"combobox-content",className:N("volt-bg-body volt-gap-1 volt-text-gray-default volt-data-[selected=open]:animate-in volt-data-[selected=closed]:animate-out volt-data-[selected=closed]:fade-out-0 volt-data-[selected=open]:fade-in-0 volt-data-[selected=closed]:zoom-out-95 volt-data-[selected=open]:zoom-in-95 volt-data-[side=bottom]:slide-in-from-top-2 volt-data-[side=left]:slide-in-from-right-2 volt-data-[side=right]:slide-in-from-left-2 volt-data-[side=top]:slide-in-from-bottom-2 volt-relative volt-z-50 volt-origin-(--radix-select-content-transform-origin) volt-overflow-x-hidden volt-overflow-y-auto volt-rounded-2xl volt-border volt-shadow-md","volt-w-(--radix-popover-trigger-width) volt-max-h-(--radix-popper-available-height)",e),...o,children:d.jsx(sf,{"data-slot":"combobox-command",className:"volt-w-full volt-rounded-none",children:t})}),av=({className:e,...t})=>d.jsx(cf,{"data-slot":"combobox-command-input",className:N("volt-w-full volt-placeholder:text-gray-a8",e),...t}),lv=({className:e,...t})=>d.jsx(df,{"data-slot":"combobox-command-list",className:N("volt-px-2 volt-py-3",e),...t}),sv=({className:e,children:t,...o})=>d.jsx(vf,{"data-slot":"combobox-item",className:N("volt-pl-3 volt-py-1.5 volt-not-first:mt-0.5 volt-text-gray-default [&_svg:not([class*='volt-text-'])]:text-gray-default volt-relative volt-flex volt-w-full volt-cursor-default volt-items-center volt-gap-2 volt-rounded-md! volt-pr-8 volt-text-sm volt-outline-none volt-select-none volt-data-[disabled=true]:pointer-events-none volt-data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 volt-*:[span]:last:flex volt-*:[span]:last:items-center volt-*:[span]:last:gap-2","volt-hover:bg-accent-a3 volt-focus:bg-accent-a3 volt-data-[selected=true]:bg-accent-a3",e),...o,children:t}),iv=({className:e,...t})=>d.jsx(uf,{"data-slot":"volt-combobox-empty",className:N("volt-py-6 volt-text-center volt-text-gray-default volt-text-sm",e),...t}),cv=({className:e,...t})=>d.jsx(pf,{"data-slot":"volt-select-separator",className:N("volt-bg-gray-soft volt-pointer-events-none volt--mx-1 volt-my-2 volt-h-px",e),...t}),dv=({className:e})=>d.jsx("span",{className:"volt-absolute volt-right-2 volt-flex volt-size-4 volt-items-center volt-justify-center",children:d.jsx(Xp,{className:N("volt-size-4 volt-text-gray-default",e)})}),uv=({className:e,...t})=>d.jsx(mf,{"data-slot":"volt-combobox-command-loading",className:N("volt-text-gray-light volt-px-3 volt-py-2",e),...t}),fv=({className:e,onClick:t,...o})=>d.jsx("span",{className:N("volt-p-0.5! volt-min-h-auto volt-absolute volt-right-11 volt-cursor-pointer",Ct({variant:"primary",size:"xs"}),e),role:"button",tabIndex:0,onMouseDown:n=>{var r;n.preventDefault(),(r=o.onMouseDown)==null||r.call(o,n)},onClick:n=>{n.preventDefault(),n.stopPropagation(),t==null||t(n)},...o,children:d.jsx(wl,{className:"volt-transition-all volt-text-accent-contrast volt-size-4 volt-group-data-[selected=open]:rotate-180"})}),pv=({className:e,...t})=>d.jsx("span",{className:N("volt-text-gray-a8",e),...t}),vv=({className:e,onClick:t,...o})=>d.jsx("span",{role:"button",tabIndex:0,className:N("volt-cursor-pointer volt-hover:opacity-70 volt-text-current volt-rounded-full volt-focus-visible:outline-2 volt-focus-visible:outline-offset-1 volt-focus-visible:outline-accent-a8",e),onMouseDown:n=>{var r;n.preventDefault(),(r=o.onMouseDown)==null||r.call(o,n)},onClick:n=>{n.preventDefault(),n.stopPropagation(),t==null||t(n)},...o,children:d.jsx(wl,{className:"volt-size-4 volt-text-current"})});function Rr(e,[t,o]){return Math.min(o,Math.max(t,e))}function jn(e){const t=e+"CollectionProvider",[o,n]=ue(t),[r,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),l=v=>{const{scope:h,children:y}=v,x=oe.useRef(null),w=oe.useRef(new Map).current;return d.jsx(r,{scope:h,itemMap:w,collectionRef:x,children:y})};l.displayName=t;const s=e+"CollectionSlot",c=Wo(s),u=oe.forwardRef((v,h)=>{const{scope:y,children:x}=v,w=a(s,y),C=Q(h,w.collectionRef);return d.jsx(c,{ref:C,children:x})});u.displayName=s;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=Wo(f),g=oe.forwardRef((v,h)=>{const{scope:y,children:x,...w}=v,C=oe.useRef(null),S=Q(h,C),T=a(f,y);return oe.useEffect(()=>(T.itemMap.set(C,{ref:C,...w}),()=>void T.itemMap.delete(C))),d.jsx(m,{[p]:"",ref:S,children:x})});g.displayName=f;function b(v){const h=a(e+"CollectionConsumer",v);return oe.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((T,E)=>w.indexOf(T.ref.current)-w.indexOf(E.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:l,Slot:u,ItemSlot:g},b,n]}var mv=i.createContext(void 0);function po(e){const t=i.useContext(mv);return e||t||"ltr"}function gv(e){const t=hv(e),o=i.forwardRef((n,r)=>{const{children:a,...l}=n,s=i.Children.toArray(a),c=s.find(bv);if(c){const u=c.props.children,f=s.map(p=>p===c?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...l,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...l,ref:r,children:a})});return o.displayName=`${e}.Slot`,o}function hv(e){const t=i.forwardRef((o,n)=>{const{children:r,...a}=o;if(i.isValidElement(r)){const l=wv(r),s=yv(a,r.props);return r.type!==i.Fragment&&(s.ref=n?ve(n,l):l),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xv=Symbol("radix.slottable");function bv(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xv}function yv(e,t){const o={...t};for(const n in t){const r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...s)=>{const c=a(...s);return r(...s),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...a}:n==="className"&&(o[n]=[r,a].filter(Boolean).join(" "))}return{...e,...o}}function wv(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function vo(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Cl=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"}),Cv="VisuallyHidden",Sl=i.forwardRef((e,t)=>d.jsx(F.span,{...e,ref:t,style:{...Cl,...e.style}}));Sl.displayName=Cv;var Sv=Sl,Rv=[" ","Enter","ArrowUp","ArrowDown"],Ev=[" ","Enter"],Ue="Select",[mo,go,Av]=jn(Ue),[ft]=ue(Ue,[Av,ut]),ho=ut(),[Pv,Ve]=ft(Ue),[Tv,kv]=ft(Ue),Rl=e=>{const{__scopeSelect:t,children:o,open:n,defaultOpen:r,onOpenChange:a,value:l,defaultValue:s,onValueChange:c,dir:u,name:f,autoComplete:p,disabled:m,required:g,form:b}=e,v=ho(t),[h,y]=i.useState(null),[x,w]=i.useState(null),[C,S]=i.useState(!1),T=po(u),[E,R]=fe({prop:n,defaultProp:r??!1,onChange:a,caller:Ue}),[$,B]=fe({prop:l,defaultProp:s,onChange:c,caller:Ue}),K=i.useRef(null),Z=h?b||!!h.closest("form"):!0,[Y,V]=i.useState(new Set),G=Array.from(Y).map(D=>D.props.value).join(";");return d.jsx(Tn,{...v,children:d.jsxs(Pv,{required:g,scope:t,trigger:h,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:ae(),value:$,onValueChange:B,open:E,onOpenChange:R,dir:T,triggerPointerDownPosRef:K,disabled:m,children:[d.jsx(mo.Provider,{scope:t,children:d.jsx(Tv,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(D=>{V(z=>new Set(z).add(D))},[]),onNativeOptionRemove:i.useCallback(D=>{V(z=>{const P=new Set(z);return P.delete(D),P})},[]),children:o})}),Z?d.jsxs(Zl,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:$,onChange:D=>B(D.target.value),disabled:m,form:b,children:[$===void 0?d.jsx("option",{value:""}):null,Array.from(Y)]},G):null]})})};Rl.displayName=Ue;var El="SelectTrigger",Al=i.forwardRef((e,t)=>{const{__scopeSelect:o,disabled:n=!1,...r}=e,a=ho(o),l=Ve(El,o),s=l.disabled||n,c=Q(t,l.onTriggerChange),u=go(o),f=i.useRef("touch"),[p,m,g]=Xl(v=>{const h=u().filter(w=>!w.disabled),y=h.find(w=>w.value===l.value),x=Ql(h,v,y);x!==void 0&&l.onValueChange(x.value)}),b=v=>{s||(l.onOpenChange(!0),g()),v&&(l.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return d.jsx(uo,{asChild:!0,...a,children:d.jsx(F.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Yl(l.value)?"":void 0,...r,ref:c,onClick:L(r.onClick,v=>{v.currentTarget.focus(),f.current!=="mouse"&&b(v)}),onPointerDown:L(r.onPointerDown,v=>{f.current=v.pointerType;const h=v.target;h.hasPointerCapture(v.pointerId)&&h.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(b(v),v.preventDefault())}),onKeyDown:L(r.onKeyDown,v=>{const h=p.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&m(v.key),!(h&&v.key===" ")&&Rv.includes(v.key)&&(b(),v.preventDefault())})})})});Al.displayName=El;var Pl="SelectValue",Tl=i.forwardRef((e,t)=>{const{__scopeSelect:o,className:n,style:r,children:a,placeholder:l="",...s}=e,c=Ve(Pl,o),{onValueNodeHasChildrenChange:u}=c,f=a!==void 0,p=Q(t,c.onValueNodeChange);return le(()=>{u(f)},[u,f]),d.jsx(F.span,{...s,ref:p,style:{pointerEvents:"none"},children:Yl(c.value)?d.jsx(d.Fragment,{children:l}):a})});Tl.displayName=Pl;var Nv="SelectIcon",kl=i.forwardRef((e,t)=>{const{__scopeSelect:o,children:n,...r}=e;return d.jsx(F.span,{"aria-hidden":!0,...r,ref:t,children:n||"▼"})});kl.displayName=Nv;var Iv="SelectPortal",Nl=e=>d.jsx(Jt,{asChild:!0,...e});Nl.displayName=Iv;var Ke="SelectContent",Il=i.forwardRef((e,t)=>{const o=Ve(Ke,e.__scopeSelect),[n,r]=i.useState();if(le(()=>{r(new DocumentFragment)},[]),!o.open){const a=n;return a?Yt.createPortal(d.jsx(jl,{scope:e.__scopeSelect,children:d.jsx(mo.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(_l,{...e,ref:t})});Il.displayName=Ke;var pe=10,[jl,ze]=ft(Ke),jv="SelectContentImpl",_v=gv("SelectContent.RemoveScroll"),_l=i.forwardRef((e,t)=>{const{__scopeSelect:o,position:n="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:a,onPointerDownOutside:l,side:s,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:b,hideWhenDetached:v,avoidCollisions:h,...y}=e,x=Ve(Ke,o),[w,C]=i.useState(null),[S,T]=i.useState(null),E=Q(t,k=>C(k)),[R,$]=i.useState(null),[B,K]=i.useState(null),Z=go(o),[Y,V]=i.useState(!1),G=i.useRef(!1);i.useEffect(()=>{if(w)return un(w)},[w]),dn();const D=i.useCallback(k=>{const[q,...U]=Z().map(J=>J.ref.current),[X]=U.slice(-1),ee=document.activeElement;for(const J of k)if(J===ee||(J==null||J.scrollIntoView({block:"nearest"}),J===q&&S&&(S.scrollTop=0),J===X&&S&&(S.scrollTop=S.scrollHeight),J==null||J.focus(),document.activeElement!==ee))return},[Z,S]),z=i.useCallback(()=>D([R,w]),[D,R,w]);i.useEffect(()=>{Y&&z()},[Y,z]);const{onOpenChange:P,triggerPointerDownPosRef:te}=x;i.useEffect(()=>{if(w){let k={x:0,y:0};const q=X=>{var ee,J;k={x:Math.abs(Math.round(X.pageX)-(((ee=te.current)==null?void 0:ee.x)??0)),y:Math.abs(Math.round(X.pageY)-(((J=te.current)==null?void 0:J.y)??0))}},U=X=>{k.x<=10&&k.y<=10?X.preventDefault():w.contains(X.target)||P(!1),document.removeEventListener("pointermove",q),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,P,te]),i.useEffect(()=>{const k=()=>P(!1);return window.addEventListener("blur",k),window.addEventListener("resize",k),()=>{window.removeEventListener("blur",k),window.removeEventListener("resize",k)}},[P]);const[ne,se]=Xl(k=>{const q=Z().filter(ee=>!ee.disabled),U=q.find(ee=>ee.ref.current===document.activeElement),X=Ql(q,k,U);X&&setTimeout(()=>X.ref.current.focus())}),A=i.useCallback((k,q,U)=>{const X=!G.current&&!U;(x.value!==void 0&&x.value===q||X)&&($(k),X&&(G.current=!0))},[x.value]),_=i.useCallback(()=>w==null?void 0:w.focus(),[w]),M=i.useCallback((k,q,U)=>{const X=!G.current&&!U;(x.value!==void 0&&x.value===q||X)&&K(k)},[x.value]),O=n==="popper"?Xo:Ol,H=O===Xo?{side:s,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:b,hideWhenDetached:v,avoidCollisions:h}:{};return d.jsx(jl,{scope:o,content:w,viewport:S,onViewportChange:T,itemRefCallback:A,selectedItem:R,onItemLeave:_,itemTextRefCallback:M,focusSelectedItem:z,selectedItemText:B,position:n,isPositioned:Y,searchRef:ne,children:d.jsx(to,{as:_v,allowPinchZoom:!0,children:d.jsx(Qt,{asChild:!0,trapped:x.open,onMountAutoFocus:k=>{k.preventDefault()},onUnmountAutoFocus:L(r,k=>{var q;(q=x.trigger)==null||q.focus({preventScroll:!0}),k.preventDefault()}),children:d.jsx(Rt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:k=>k.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:d.jsx(O,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:k=>k.preventDefault(),...y,...H,onPlaced:()=>V(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:L(y.onKeyDown,k=>{const q=k.ctrlKey||k.altKey||k.metaKey;if(k.key==="Tab"&&k.preventDefault(),!q&&k.key.length===1&&se(k.key),["ArrowUp","ArrowDown","Home","End"].includes(k.key)){let X=Z().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(k.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(k.key)){const ee=k.target,J=X.indexOf(ee);X=X.slice(J+1)}setTimeout(()=>D(X)),k.preventDefault()}})})})})})})});_l.displayName=jv;var Ov="SelectItemAlignedPosition",Ol=i.forwardRef((e,t)=>{const{__scopeSelect:o,onPlaced:n,...r}=e,a=Ve(Ke,o),l=ze(Ke,o),[s,c]=i.useState(null),[u,f]=i.useState(null),p=Q(t,E=>f(E)),m=go(o),g=i.useRef(!1),b=i.useRef(!0),{viewport:v,selectedItem:h,selectedItemText:y,focusSelectedItem:x}=l,w=i.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&v&&h&&y){const E=a.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),$=a.valueNode.getBoundingClientRect(),B=y.getBoundingClientRect();if(a.dir!=="rtl"){const ee=B.left-R.left,J=$.left-ee,ie=E.left-J,be=E.width+ie,pt=Math.max(be,R.width),vt=window.innerWidth-pe,mt=Rr(J,[pe,Math.max(pe,vt-pt)]);s.style.minWidth=be+"px",s.style.left=mt+"px"}else{const ee=R.right-B.right,J=window.innerWidth-$.right-ee,ie=window.innerWidth-E.right-J,be=E.width+ie,pt=Math.max(be,R.width),vt=window.innerWidth-pe,mt=Rr(J,[pe,Math.max(pe,vt-pt)]);s.style.minWidth=be+"px",s.style.right=mt+"px"}const K=m(),Z=window.innerHeight-pe*2,Y=v.scrollHeight,V=window.getComputedStyle(u),G=parseInt(V.borderTopWidth,10),D=parseInt(V.paddingTop,10),z=parseInt(V.borderBottomWidth,10),P=parseInt(V.paddingBottom,10),te=G+D+Y+P+z,ne=Math.min(h.offsetHeight*5,te),se=window.getComputedStyle(v),A=parseInt(se.paddingTop,10),_=parseInt(se.paddingBottom,10),M=E.top+E.height/2-pe,O=Z-M,H=h.offsetHeight/2,k=h.offsetTop+H,q=G+D+k,U=te-q;if(q<=M){const ee=K.length>0&&h===K[K.length-1].ref.current;s.style.bottom="0px";const J=u.clientHeight-v.offsetTop-v.offsetHeight,ie=Math.max(O,H+(ee?_:0)+J+z),be=q+ie;s.style.height=be+"px"}else{const ee=K.length>0&&h===K[0].ref.current;s.style.top="0px";const ie=Math.max(M,G+v.offsetTop+(ee?A:0)+H)+U;s.style.height=ie+"px",v.scrollTop=q-M+v.offsetTop}s.style.margin=`${pe}px 0`,s.style.minHeight=ne+"px",s.style.maxHeight=Z+"px",n==null||n(),requestAnimationFrame(()=>g.current=!0)}},[m,a.trigger,a.valueNode,s,u,v,h,y,a.dir,n]);le(()=>w(),[w]);const[C,S]=i.useState();le(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const T=i.useCallback(E=>{E&&b.current===!0&&(w(),x==null||x(),b.current=!1)},[w,x]);return d.jsx(Mv,{scope:o,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:d.jsx(F.div,{...r,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Ol.displayName=Ov;var Dv="SelectPopperPosition",Xo=i.forwardRef((e,t)=>{const{__scopeSelect:o,align:n="start",collisionPadding:r=pe,...a}=e,l=ho(o);return d.jsx(kn,{...l,...a,ref:t,align:n,collisionPadding:r,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Xo.displayName=Dv;var[Mv,_n]=ft(Ke,{}),Qo="SelectViewport",Dl=i.forwardRef((e,t)=>{const{__scopeSelect:o,nonce:n,...r}=e,a=ze(Qo,o),l=_n(Qo,o),s=Q(t,a.onViewportChange),c=i.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),d.jsx(mo.Slot,{scope:o,children:d.jsx(F.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:L(r.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=l;if(m!=null&&m.current&&p){const g=Math.abs(c.current-f.scrollTop);if(g>0){const b=window.innerHeight-pe*2,v=parseFloat(p.style.minHeight),h=parseFloat(p.style.height),y=Math.max(v,h);if(y<b){const x=y+g,w=Math.min(b,x),C=x-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Dl.displayName=Qo;var Ml="SelectGroup",[Lv,$v]=ft(Ml),Ll=i.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=ae();return d.jsx(Lv,{scope:o,id:r,children:d.jsx(F.div,{role:"group","aria-labelledby":r,...n,ref:t})})});Ll.displayName=Ml;var $l="SelectLabel",Fl=i.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=$v($l,o);return d.jsx(F.div,{id:r.id,...n,ref:t})});Fl.displayName=$l;var Kt="SelectItem",[Fv,Bl]=ft(Kt),Vl=i.forwardRef((e,t)=>{const{__scopeSelect:o,value:n,disabled:r=!1,textValue:a,...l}=e,s=Ve(Kt,o),c=ze(Kt,o),u=s.value===n,[f,p]=i.useState(a??""),[m,g]=i.useState(!1),b=Q(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,n,r)}),v=ae(),h=i.useRef("touch"),y=()=>{r||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Fv,{scope:o,value:n,disabled:r,textId:v,isSelected:u,onItemTextChange:i.useCallback(x=>{p(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:d.jsx(mo.ItemSlot,{scope:o,value:n,disabled:r,textValue:f,children:d.jsx(F.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...l,ref:b,onFocus:L(l.onFocus,()=>g(!0)),onBlur:L(l.onBlur,()=>g(!1)),onClick:L(l.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:L(l.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:L(l.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:L(l.onPointerMove,x=>{var w;h.current=x.pointerType,r?(w=c.onItemLeave)==null||w.call(c):h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:L(l.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:L(l.onKeyDown,x=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&x.key===" "||(Ev.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});Vl.displayName=Kt;var xt="SelectItemText",zl=i.forwardRef((e,t)=>{const{__scopeSelect:o,className:n,style:r,...a}=e,l=Ve(xt,o),s=ze(xt,o),c=Bl(xt,o),u=kv(xt,o),[f,p]=i.useState(null),m=Q(t,y=>p(y),c.onItemTextChange,y=>{var x;return(x=s.itemTextRefCallback)==null?void 0:x.call(s,y,c.value,c.disabled)}),g=f==null?void 0:f.textContent,b=i.useMemo(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:h}=u;return le(()=>(v(b),()=>h(b)),[v,h,b]),d.jsxs(d.Fragment,{children:[d.jsx(F.span,{id:c.textId,...a,ref:m}),c.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Yt.createPortal(a.children,l.valueNode):null]})});zl.displayName=xt;var ql="SelectItemIndicator",Wl=i.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e;return Bl(ql,o).isSelected?d.jsx(F.span,{"aria-hidden":!0,...n,ref:t}):null});Wl.displayName=ql;var Jo="SelectScrollUpButton",Gl=i.forwardRef((e,t)=>{const o=ze(Jo,e.__scopeSelect),n=_n(Jo,e.__scopeSelect),[r,a]=i.useState(!1),l=Q(t,n.onScrollButtonChange);return le(()=>{if(o.viewport&&o.isPositioned){let s=function(){const u=c.scrollTop>0;a(u)};const c=o.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[o.viewport,o.isPositioned]),r?d.jsx(Ul,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=o;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});Gl.displayName=Jo;var en="SelectScrollDownButton",Hl=i.forwardRef((e,t)=>{const o=ze(en,e.__scopeSelect),n=_n(en,e.__scopeSelect),[r,a]=i.useState(!1),l=Q(t,n.onScrollButtonChange);return le(()=>{if(o.viewport&&o.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;a(f)};const c=o.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[o.viewport,o.isPositioned]),r?d.jsx(Ul,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=o;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});Hl.displayName=en;var Ul=i.forwardRef((e,t)=>{const{__scopeSelect:o,onAutoScroll:n,...r}=e,a=ze("SelectScrollButton",o),l=i.useRef(null),s=go(o),c=i.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return i.useEffect(()=>()=>c(),[c]),le(()=>{var f;const u=s().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[s]),d.jsx(F.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:L(r.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(n,50))}),onPointerMove:L(r.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),l.current===null&&(l.current=window.setInterval(n,50))}),onPointerLeave:L(r.onPointerLeave,()=>{c()})})}),Bv="SelectSeparator",Kl=i.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e;return d.jsx(F.div,{"aria-hidden":!0,...n,ref:t})});Kl.displayName=Bv;var tn="SelectArrow",Vv=i.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=ho(o),a=Ve(tn,o),l=ze(tn,o);return a.open&&l.position==="popper"?d.jsx(Nn,{...r,...n,ref:t}):null});Vv.displayName=tn;var zv="SelectBubbleInput",Zl=i.forwardRef(({__scopeSelect:e,value:t,...o},n)=>{const r=i.useRef(null),a=Q(n,r),l=vo(t);return i.useEffect(()=>{const s=r.current;if(!s)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(l!==t&&f){const p=new Event("change",{bubbles:!0});f.call(s,t),s.dispatchEvent(p)}},[l,t]),d.jsx(F.select,{...o,style:{...Cl,...o.style},ref:a,defaultValue:t})});Zl.displayName=zv;function Yl(e){return e===""||e===void 0}function Xl(e){const t=Oe(e),o=i.useRef(""),n=i.useRef(0),r=i.useCallback(l=>{const s=o.current+l;t(s),function c(u){o.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),a=i.useCallback(()=>{o.current="",window.clearTimeout(n.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(n.current),[]),[o,r,a]}function Ql(e,t,o){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=o?e.indexOf(o):-1;let l=qv(e,Math.max(a,0));r.length===1&&(l=l.filter(u=>u!==o));const c=l.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==o?c:void 0}function qv(e,t){return e.map((o,n)=>e[(t+n)%e.length])}var Wv=Rl,Gv=Al,Hv=Tl,Uv=kl,Kv=Nl,Zv=Il,Yv=Dl,Xv=Ll,Qv=Fl,Jv=Vl,em=zl,tm=Wl,om=Gl,nm=Hl,rm=Kl;const am=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"})}),lm=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z"})}),Jl=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-528 324-372q-11 11-28 11t-28-11q-11-11-11-28t11-28l184-184q12-12 28-12t28 12l184 184q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-528Z"})}),sm=({...e})=>d.jsx(Wv,{"data-slot":"select",...e}),im=({...e})=>d.jsx(Xv,{"data-slot":"select-group",...e}),cm=({className:e,...t})=>d.jsx(Hv,{"data-slot":"select-value",className:N("volt-whitespace-break-spaces volt-wrap-break-word",e),...t}),es=i.forwardRef(({className:e,children:t,...o},n)=>{const{inputRef:r}=St();return d.jsxs(Gv,{ref:a=>{r&&(r.current=a),typeof n=="function"?n(a):n&&(n.current=a)},"data-slot":"select-trigger",className:N("volt-group volt-data-placeholder:text-gray-a8 volt-w-full volt-flex volt-items-center volt-justify-between volt-gap-2 volt-rounded-lg volt-bg-transparent volt-text-sm volt-whitespace-nowrap volt-transition-[color,box-shadow] volt-outline-none volt-disabled:cursor-not-allowed volt-disabled:opacity-50 volt-*:data-[slot=select-value]:line-clamp-1 volt-*:data-[slot=select-value]:flex volt-*:data-[slot=select-value]:items-center volt-*:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...o,children:[t,d.jsx(Uv,{asChild:!0,children:d.jsx(lm,{className:"volt-transition-all volt-size-6 volt-group-data-[state=open]:rotate-180 volt-text-gray-light"})})]})});es.displayName="SelectTrigger";const dm=({className:e,children:t,position:o="popper",align:n="center",...r})=>d.jsx(Kv,{children:d.jsxs(Zv,{"data-slot":"select-content",className:N("volt-bg-body volt-px-2 volt-py-3 volt-gap-1 volt-text-gray-default volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-data-[state=closed]:zoom-out-95 volt-data-[state=open]:zoom-in-95 volt-data-[side=bottom]:slide-in-from-top-2 volt-data-[side=left]:slide-in-from-right-2 volt-data-[side=right]:slide-in-from-left-2 volt-data-[side=top]:slide-in-from-bottom-2 volt-relative volt-z-50 volt-origin-(--radix-select-content-transform-origin) volt-overflow-x-hidden volt-overflow-y-auto volt-rounded-2xl volt-border volt-shadow-md","volt-max-h-(--radix-popper-available-height)",{"volt-data-[side=bottom]:translate-y-1 volt-data-[side=left]:-translate-x-1 volt-data-[side=right]:translate-x-1 volt-data-[side=top]:-translate-y-1":o==="popper"},e),position:o,align:n,...r,children:[d.jsx(ts,{}),d.jsx(Yv,{className:N({"volt-h-(--radix-select-trigger-height) volt-w-full volt-min-w-(--radix-select-trigger-width) volt-scroll-my-1":o==="popper"}),children:t}),d.jsx(os,{})]})}),um=({className:e,...t})=>d.jsx(Qv,{"data-slot":"select-label",className:N("volt-text-gray volt-font-semibold volt-px-2 volt-py-1.5 volt-text-xs",e),...t}),fm=({className:e,children:t,...o})=>d.jsxs(Jv,{"data-slot":"select-item",className:N("volt-pl-3 volt-py-1.5 volt-not-first:mt-0.5 volt-text-gray-default [&_svg:not([class*='volt-text-'])]:text-gray-light volt-relative volt-flex volt-w-full volt-cursor-default volt-items-center volt-gap-2 volt-rounded-md volt-pr-8 volt-text-sm volt-outline-none volt-select-none volt-data-disabled:pointer-events-none volt-data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 volt-*:[span]:last:flex volt-*:[span]:last:items-center volt-*:[span]:last:gap-2","volt-focus:bg-accent-a3 volt-data-[state=checked]:bg-accent-a3",e),...o,children:[d.jsx("span",{className:"volt-absolute volt-right-2 volt-flex volt-size-4 volt-items-center volt-justify-center",children:d.jsx(tm,{children:d.jsx(am,{className:"volt-size-4 volt-text-gray-light"})})}),d.jsx(em,{children:t})]}),pm=({className:e,...t})=>d.jsx(rm,{"data-slot":"volt-select-separator",className:N("volt-bg-gray-soft volt-pointer-events-none volt--mx-1 volt-my-1 volt-h-px",e),...t}),ts=({className:e,...t})=>d.jsx(om,{"data-slot":"volt-select-scroll-up-button",className:N("volt-flex volt-cursor-default volt-items-center volt-justify-center volt-pb-1",e),...t,children:d.jsx(Jl,{className:"volt-size-6"})}),os=({className:e,...t})=>d.jsx(nm,{"data-slot":"volt-select-scroll-down-button",className:N("volt-flex volt-cursor-default volt-items-center volt-justify-center volt-pt-1",e),...t,children:d.jsx(Jl,{className:"volt-size-6 volt-rotate-180"})});var vm=Symbol("radix.slottable");function mm(e){const t=({children:o})=>d.jsx(d.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=vm,t}var[xo]=ue("Tooltip",[ut]),bo=ut(),ns="TooltipProvider",gm=700,on="tooltip.open",[hm,On]=xo(ns),rs=e=>{const{__scopeTooltip:t,delayDuration:o=gm,skipDelayDuration:n=300,disableHoverableContent:r=!1,children:a}=e,l=i.useRef(!0),s=i.useRef(!1),c=i.useRef(0);return i.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),d.jsx(hm,{scope:t,isOpenDelayedRef:l,delayDuration:o,onOpen:i.useCallback(()=>{window.clearTimeout(c.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:i.useCallback(u=>{s.current=u},[]),disableHoverableContent:r,children:a})};rs.displayName=ns;var wt="Tooltip",[xm,yo]=xo(wt),as=e=>{const{__scopeTooltip:t,children:o,open:n,defaultOpen:r,onOpenChange:a,disableHoverableContent:l,delayDuration:s}=e,c=On(wt,e.__scopeTooltip),u=bo(t),[f,p]=i.useState(null),m=ae(),g=i.useRef(0),b=l??c.disableHoverableContent,v=s??c.delayDuration,h=i.useRef(!1),[y,x]=fe({prop:n,defaultProp:r??!1,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(on))):c.onClose(),a==null||a(E)},caller:wt}),w=i.useMemo(()=>y?h.current?"delayed-open":"instant-open":"closed",[y]),C=i.useCallback(()=>{window.clearTimeout(g.current),g.current=0,h.current=!1,x(!0)},[x]),S=i.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),T=i.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{h.current=!0,x(!0),g.current=0},v)},[v,x]);return i.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),d.jsx(Tn,{...u,children:d.jsx(xm,{scope:t,contentId:m,open:y,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:i.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:i.useCallback(()=>{b?S():(window.clearTimeout(g.current),g.current=0)},[S,b]),onOpen:C,onClose:S,disableHoverableContent:b,children:o})})};as.displayName=wt;var nn="TooltipTrigger",ls=i.forwardRef((e,t)=>{const{__scopeTooltip:o,...n}=e,r=yo(nn,o),a=On(nn,o),l=bo(o),s=i.useRef(null),c=Q(t,s,r.onTriggerChange),u=i.useRef(!1),f=i.useRef(!1),p=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(uo,{asChild:!0,...l,children:d.jsx(F.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...n,ref:c,onPointerMove:L(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:L(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:L(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:L(e.onBlur,r.onClose),onClick:L(e.onClick,r.onClose)})})});ls.displayName=nn;var bm="TooltipPortal",[Qh,ym]=xo(bm,{forceMount:void 0}),lt="TooltipContent",ss=i.forwardRef((e,t)=>{const o=ym(lt,e.__scopeTooltip),{forceMount:n=o.forceMount,side:r="top",...a}=e,l=yo(lt,e.__scopeTooltip);return d.jsx(Re,{present:n||l.open,children:l.disableHoverableContent?d.jsx(is,{side:r,...a,ref:t}):d.jsx(wm,{side:r,...a,ref:t})})}),wm=i.forwardRef((e,t)=>{const o=yo(lt,e.__scopeTooltip),n=On(lt,e.__scopeTooltip),r=i.useRef(null),a=Q(t,r),[l,s]=i.useState(null),{trigger:c,onClose:u}=o,f=r.current,{onPointerInTransitChange:p}=n,m=i.useCallback(()=>{s(null),p(!1)},[p]),g=i.useCallback((b,v)=>{const h=b.currentTarget,y={x:b.clientX,y:b.clientY},x=Em(y,h.getBoundingClientRect()),w=Am(y,x),C=Pm(v.getBoundingClientRect()),S=km([...w,...C]);s(S),p(!0)},[p]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(c&&f){const b=h=>g(h,f),v=h=>g(h,c);return c.addEventListener("pointerleave",b),f.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",v)}}},[c,f,g,m]),i.useEffect(()=>{if(l){const b=v=>{const h=v.target,y={x:v.clientX,y:v.clientY},x=(c==null?void 0:c.contains(h))||(f==null?void 0:f.contains(h)),w=!Tm(y,l);x?m():w&&(m(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,l,u,m]),d.jsx(is,{...e,ref:a})}),[Cm,Sm]=xo(wt,{isInside:!1}),Rm=mm("TooltipContent"),is=i.forwardRef((e,t)=>{const{__scopeTooltip:o,children:n,"aria-label":r,onEscapeKeyDown:a,onPointerDownOutside:l,...s}=e,c=yo(lt,o),u=bo(o),{onClose:f}=c;return i.useEffect(()=>(document.addEventListener(on,f),()=>document.removeEventListener(on,f)),[f]),i.useEffect(()=>{if(c.trigger){const p=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),d.jsx(Rt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:d.jsxs(kn,{"data-state":c.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(Rm,{children:n}),d.jsx(Cm,{scope:o,isInside:!0,children:d.jsx(Sv,{id:c.contentId,role:"tooltip",children:r||n})})]})})});ss.displayName=lt;var cs="TooltipArrow",ds=i.forwardRef((e,t)=>{const{__scopeTooltip:o,...n}=e,r=bo(o);return Sm(cs,o).isInside?null:d.jsx(Nn,{...r,...n,ref:t})});ds.displayName=cs;function Em(e,t){const o=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(o,n,r,a)){case a:return"left";case r:return"right";case o:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Am(e,t,o=5){const n=[];switch(t){case"top":n.push({x:e.x-o,y:e.y+o},{x:e.x+o,y:e.y+o});break;case"bottom":n.push({x:e.x-o,y:e.y-o},{x:e.x+o,y:e.y-o});break;case"left":n.push({x:e.x+o,y:e.y-o},{x:e.x+o,y:e.y+o});break;case"right":n.push({x:e.x-o,y:e.y-o},{x:e.x-o,y:e.y+o});break}return n}function Pm(e){const{top:t,right:o,bottom:n,left:r}=e;return[{x:r,y:t},{x:o,y:t},{x:o,y:n},{x:r,y:n}]}function Tm(e,t){const{x:o,y:n}=e;let r=!1;for(let a=0,l=t.length-1;a<t.length;l=a++){const s=t[a],c=t[l],u=s.x,f=s.y,p=c.x,m=c.y;f>n!=m>n&&o<(p-u)*(n-f)/(m-f)+u&&(r=!r)}return r}function km(e){const t=e.slice();return t.sort((o,n)=>o.x<n.x?-1:o.x>n.x?1:o.y<n.y?-1:o.y>n.y?1:0),Nm(t)}function Nm(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const a=t[t.length-1],l=t[t.length-2];if((a.x-l.x)*(r.y-l.y)>=(a.y-l.y)*(r.x-l.x))t.pop();else break}t.push(r)}t.pop();const o=[];for(let n=e.length-1;n>=0;n--){const r=e[n];for(;o.length>=2;){const a=o[o.length-1],l=o[o.length-2];if((a.x-l.x)*(r.y-l.y)>=(a.y-l.y)*(r.x-l.x))o.pop();else break}o.push(r)}return o.pop(),t.length===1&&o.length===1&&t[0].x===o[0].x&&t[0].y===o[0].y?t:t.concat(o)}var Im=rs,jm=as,_m=ls,Om=ss,Dm=ds;const Mm=({delayDuration:e=0,...t})=>d.jsx(Im,{delayDuration:e,"data-slot":"tooltip-provider",...t}),Lm=({...e})=>d.jsx(jm,{"data-slot":"tooltip",...e}),$m=({...e})=>d.jsx(_m,{"data-slot":"tooltip-trigger",...e}),Fm=({className:e,hideArrow:t=!1,children:o,...n})=>d.jsxs(Om,{"data-slot":"tooltip-content",className:N("volt-bg-gray-12 volt-text-gray-1 volt-animate-in volt-fade-in-0 volt-zoom-in-95 volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=closed]:zoom-out-95 volt-data-[side=bottom]:slide-in-from-top-2 volt-data-[side=left]:slide-in-from-right-2 volt-data-[side=right]:slide-in-from-left-2 volt-data-[side=top]:slide-in-from-bottom-2 volt-z-50 volt-w-fit volt-origin-(--radix-tooltip-content-transform-origin) volt-rounded-lg volt-p-2 volt-text-xs volt-text-balance",e),...n,children:[o,!t&&d.jsx(Dm,{className:"volt-relative volt-bg-gray-12 volt-fill-gray-12 volt-z-50 volt-size-2.5 volt-translate-y-[calc(-50%-2px)] volt-rotate-45 volt-rounded-[2px]"})]});var wo="Switch",[Bm]=ue(wo),[Vm,zm]=Bm(wo),us=i.forwardRef((e,t)=>{const{__scopeSwitch:o,name:n,checked:r,defaultChecked:a,required:l,disabled:s,value:c="on",onCheckedChange:u,form:f,...p}=e,[m,g]=i.useState(null),b=Q(t,w=>g(w)),v=i.useRef(!1),h=m?f||!!m.closest("form"):!0,[y,x]=fe({prop:r,defaultProp:a??!1,onChange:u,caller:wo});return d.jsxs(Vm,{scope:o,checked:y,disabled:s,children:[d.jsx(F.button,{type:"button",role:"switch","aria-checked":y,"aria-required":l,"data-state":ms(y),"data-disabled":s?"":void 0,disabled:s,value:c,...p,ref:b,onClick:L(e.onClick,w=>{x(C=>!C),h&&(v.current=w.isPropagationStopped(),v.current||w.stopPropagation())})}),h&&d.jsx(vs,{control:m,bubbles:!v.current,name:n,value:c,checked:y,required:l,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});us.displayName=wo;var fs="SwitchThumb",ps=i.forwardRef((e,t)=>{const{__scopeSwitch:o,...n}=e,r=zm(fs,o);return d.jsx(F.span,{"data-state":ms(r.checked),"data-disabled":r.disabled?"":void 0,...n,ref:t})});ps.displayName=fs;var qm="SwitchBubbleInput",vs=i.forwardRef(({__scopeSwitch:e,control:t,checked:o,bubbles:n=!0,...r},a)=>{const l=i.useRef(null),s=Q(l,a),c=vo(o),u=co(t);return i.useEffect(()=>{const f=l.current;if(!f)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==o&&g){const b=new Event("click",{bubbles:n});g.call(f,o),f.dispatchEvent(b)}},[c,o,n]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...r,tabIndex:-1,ref:s,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});vs.displayName=qm;function ms(e){return e?"checked":"unchecked"}var Wm=us,Gm=ps;const Hm=ke("volt-peer volt-cursor-pointer volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-inline-flex volt-shrink-0 volt-items-center volt-rounded-full volt-border volt-border-transparent volt-shadow-xs volt-transition-all volt-disabled:pointer-events-none volt-disabled:opacity-50",{variants:{variant:{primary:"volt-data-[state=checked]:bg-accent-solid volt-data-[state=unchecked]:bg-gray-a4 volt-focus-visible:outline-accent-a8",destructive:"volt-data-[state=checked]:bg-error-solid volt-data-[state=unchecked]:bg-error-a4 volt-focus-visible:outline-error-a8"},size:{sm:"volt-h-[16px] volt-w-[27px]",base:"volt-h-[19px] volt-w-[33px]",lg:"volt-h-[24px] volt-w-[41px]"}},defaultVariants:{variant:"primary",size:"base"}}),Um=ke("volt-pointer-events-none volt-block volt-rounded-full volt-ring-0 volt-transition-transform volt-data-[state=checked]:translate-x-[calc(100%-2px)] volt-data-[state=unchecked]:translate-x-px",{variants:{variant:{primary:"volt-bg-gray-contrast volt-border volt-border-gray-a7 volt-data-[state=checked]:border-accent-a11",destructive:"volt-bg-error-contrast volt-border volt-border-error-a7 volt-data-[state=checked]:border-error-a11"},size:{sm:"volt-w-[13px] volt-h-[13px]",base:"volt-w-4 volt-h-4",lg:"volt-w-[20px] volt-h-[20px]"}},defaultVariants:{variant:"primary",size:"base"}});function Km({variant:e,size:t,className:o,...n}){return d.jsx(Wm,{"data-slot":"switch",className:N(Hm({variant:e,size:t,className:o})),...n,children:d.jsx(Gm,{"data-slot":"switch-thumb",className:N(Um({variant:e,size:t}))})})}const Zm=({...e})=>d.jsx(Yp,{"data-slot":"popover-portal",...e}),Ym=({...e})=>d.jsx(xl,{"data-slot":"popover",...e}),Xm=({...e})=>d.jsx(bl,{"data-slot":"popover-trigger",...e}),Qm=({className:e,align:t="center",sideOffset:o=4,...n})=>d.jsx(yl,{"data-slot":"popover-content",align:t,sideOffset:o,className:N("volt-bg-body volt-text-gray-default volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-data-[state=closed]:zoom-out-95 volt-data-[state=open]:zoom-in-95 volt-data-[side=bottom]:slide-in-from-top-2 volt-data-[side=left]:slide-in-from-right-2 volt-data-[side=right]:slide-in-from-left-2 volt-data-[side=top]:slide-in-from-bottom-2 volt-z-50 volt-origin-(--radix-popover-content-transform-origin) volt-rounded-xl volt-border volt-p-6 volt-shadow-md volt-outline-hidden",e),...n}),Jm=({...e})=>d.jsx(Zp,{"data-slot":"popover-anchor",...e});var Co="Checkbox",[eg]=ue(Co),[tg,Dn]=eg(Co);function og(e){const{__scopeCheckbox:t,checked:o,children:n,defaultChecked:r,disabled:a,form:l,name:s,onCheckedChange:c,required:u,value:f="on",internal_do_not_use_render:p}=e,[m,g]=fe({prop:o,defaultProp:r??!1,onChange:c,caller:Co}),[b,v]=i.useState(null),[h,y]=i.useState(null),x=i.useRef(!1),w=b?!!l||!!b.closest("form"):!0,C={checked:m,disabled:a,setChecked:g,control:b,setControl:v,name:s,form:l,value:f,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:_e(r)?!1:r,isFormControl:w,bubbleInput:h,setBubbleInput:y};return d.jsx(tg,{scope:t,...C,children:ng(p)?p(C):n})}var gs="CheckboxTrigger",hs=i.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:o,...n},r)=>{const{control:a,value:l,disabled:s,checked:c,required:u,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:g,bubbleInput:b}=Dn(gs,e),v=Q(r,f),h=i.useRef(c);return i.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const x=()=>p(h.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[a,p]),d.jsx(F.button,{type:"button",role:"checkbox","aria-checked":_e(c)?"mixed":c,"aria-required":u,"data-state":Ss(c),"data-disabled":s?"":void 0,disabled:s,value:l,...n,ref:v,onKeyDown:L(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:L(o,y=>{p(x=>_e(x)?!0:!x),b&&g&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})})});hs.displayName=gs;var xs=i.forwardRef((e,t)=>{const{__scopeCheckbox:o,name:n,checked:r,defaultChecked:a,required:l,disabled:s,value:c,onCheckedChange:u,form:f,...p}=e;return d.jsx(og,{__scopeCheckbox:o,checked:r,defaultChecked:a,disabled:s,required:l,onCheckedChange:u,name:n,form:f,value:c,internal_do_not_use_render:({isFormControl:m})=>d.jsxs(d.Fragment,{children:[d.jsx(hs,{...p,ref:t,__scopeCheckbox:o}),m&&d.jsx(Cs,{__scopeCheckbox:o})]})})});xs.displayName=Co;var bs="CheckboxIndicator",ys=i.forwardRef((e,t)=>{const{__scopeCheckbox:o,forceMount:n,...r}=e,a=Dn(bs,o);return d.jsx(Re,{present:n||_e(a.checked)||a.checked===!0,children:d.jsx(F.span,{"data-state":Ss(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});ys.displayName=bs;var ws="CheckboxBubbleInput",Cs=i.forwardRef(({__scopeCheckbox:e,...t},o)=>{const{control:n,hasConsumerStoppedPropagationRef:r,checked:a,defaultChecked:l,required:s,disabled:c,name:u,value:f,form:p,bubbleInput:m,setBubbleInput:g}=Dn(ws,e),b=Q(o,g),v=vo(a),h=co(n);i.useEffect(()=>{const x=m;if(!x)return;const w=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(w,"checked").set,T=!r.current;if(v!==a&&S){const E=new Event("click",{bubbles:T});x.indeterminate=_e(a),S.call(x,_e(a)?!1:a),x.dispatchEvent(E)}},[m,v,a,r]);const y=i.useRef(_e(a)?!1:a);return d.jsx(F.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??y.current,required:s,disabled:c,name:u,value:f,form:p,...t,tabIndex:-1,ref:b,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Cs.displayName=ws;function ng(e){return typeof e=="function"}function _e(e){return e==="indeterminate"}function Ss(e){return _e(e)?"indeterminate":e?"checked":"unchecked"}const rg=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"})}),ag=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M280-440q-17 0-28.5-11.5T240-480q0-17 11.5-28.5T280-520h400q17 0 28.5 11.5T720-480q0 17-11.5 28.5T680-440H280Z"})}),lg=({className:e,...t})=>d.jsx(xs,{"data-slot":"checkbox",className:N("volt-peer volt-border-accent-a7 volt-bg-accent-a4 volt-disabled:border-gray-a4 volt-data-[state=indeterminate]:bg-accent-a7 volt-data-[state=indeterminate]:border-transparent volt-data-[state=indeterminate]:text-accent-a12 volt-data-[state=checked]:bg-accent-solid volt-data-[state=checked]:border-0 volt-data-[state=checked]:text-accent-contrast volt-focus-visible:outline-offset-2 volt-focus-visible:outline-2 volt-focus-visible:outline-accent-a8 volt-aria-invalid:outline-error-a8 volt-aria-invalid:border-error-a8 volt-size-4 volt-shrink-0 volt-rounded-sm volt-border volt-shadow-xs volt-transition-shadow volt-disabled:cursor-not-allowed volt-disabled:opacity-50",e),...t,children:d.jsx(ys,{"data-slot":"checkbox-indicator",className:"volt-grid volt-place-content-center volt-text-current volt-transition-none",children:t.checked==="indeterminate"?d.jsx(ag,{className:"volt-size-3.5"}):d.jsx(rg,{className:"volt-size-3.5"})})});var Vo="rovingFocusGroup.onEntryFocus",sg={bubbles:!1,cancelable:!0},Tt="RovingFocusGroup",[rn,Rs,ig]=jn(Tt),[cg,Es]=ue(Tt,[ig]),[dg,ug]=cg(Tt),As=i.forwardRef((e,t)=>d.jsx(rn.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(rn.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(fg,{...e,ref:t})})}));As.displayName=Tt;var fg=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,orientation:n,loop:r=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,m=i.useRef(null),g=Q(t,m),b=po(a),[v,h]=fe({prop:l,defaultProp:s??null,onChange:c,caller:Tt}),[y,x]=i.useState(!1),w=Oe(u),C=Rs(o),S=i.useRef(!1),[T,E]=i.useState(0);return i.useEffect(()=>{const R=m.current;if(R)return R.addEventListener(Vo,w),()=>R.removeEventListener(Vo,w)},[w]),d.jsx(dg,{scope:o,orientation:n,dir:b,loop:r,currentTabStopId:v,onItemFocus:i.useCallback(R=>h(R),[h]),onItemShiftTab:i.useCallback(()=>x(!0),[]),onFocusableItemAdd:i.useCallback(()=>E(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>E(R=>R-1),[]),children:d.jsx(F.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{S.current=!0}),onFocus:L(e.onFocus,R=>{const $=!S.current;if(R.target===R.currentTarget&&$&&!y){const B=new CustomEvent(Vo,sg);if(R.currentTarget.dispatchEvent(B),!B.defaultPrevented){const K=C().filter(D=>D.focusable),Z=K.find(D=>D.active),Y=K.find(D=>D.id===v),G=[Z,Y,...K].filter(Boolean).map(D=>D.ref.current);ks(G,f)}}S.current=!1}),onBlur:L(e.onBlur,()=>x(!1))})})}),Ps="RovingFocusGroupItem",Ts=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,focusable:n=!0,active:r=!1,tabStopId:a,children:l,...s}=e,c=ae(),u=a||c,f=ug(Ps,o),p=f.currentTabStopId===u,m=Rs(o),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:v}=f;return i.useEffect(()=>{if(n)return g(),()=>b()},[n,g,b]),d.jsx(rn.ItemSlot,{scope:o,id:u,focusable:n,active:r,children:d.jsx(F.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:L(e.onMouseDown,h=>{n?f.onItemFocus(u):h.preventDefault()}),onFocus:L(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:L(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){f.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=mg(h,f.orientation,f.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let w=m().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const C=w.indexOf(h.currentTarget);w=f.loop?gg(w,C+1):w.slice(C+1)}setTimeout(()=>ks(w))}}),children:typeof l=="function"?l({isCurrentTabStop:p,hasTabStop:v!=null}):l})})});Ts.displayName=Ps;var pg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vg(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mg(e,t,o){const n=vg(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return pg[n]}function ks(e,t=!1){const o=document.activeElement;for(const n of e)if(n===o||(n.focus({preventScroll:t}),document.activeElement!==o))return}function gg(e,t){return e.map((o,n)=>e[(t+n)%e.length])}var hg=As,xg=Ts,Mn="Radio",[bg,Ns]=ue(Mn),[yg,wg]=bg(Mn),Is=i.forwardRef((e,t)=>{const{__scopeRadio:o,name:n,checked:r=!1,required:a,disabled:l,value:s="on",onCheck:c,form:u,...f}=e,[p,m]=i.useState(null),g=Q(t,h=>m(h)),b=i.useRef(!1),v=p?u||!!p.closest("form"):!0;return d.jsxs(yg,{scope:o,checked:r,disabled:l,children:[d.jsx(F.button,{type:"button",role:"radio","aria-checked":r,"data-state":Ds(r),"data-disabled":l?"":void 0,disabled:l,value:s,...f,ref:g,onClick:L(e.onClick,h=>{r||c==null||c(),v&&(b.current=h.isPropagationStopped(),b.current||h.stopPropagation())})}),v&&d.jsx(Os,{control:p,bubbles:!b.current,name:n,value:s,checked:r,required:a,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});Is.displayName=Mn;var js="RadioIndicator",_s=i.forwardRef((e,t)=>{const{__scopeRadio:o,forceMount:n,...r}=e,a=wg(js,o);return d.jsx(Re,{present:n||a.checked,children:d.jsx(F.span,{"data-state":Ds(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})})});_s.displayName=js;var Cg="RadioBubbleInput",Os=i.forwardRef(({__scopeRadio:e,control:t,checked:o,bubbles:n=!0,...r},a)=>{const l=i.useRef(null),s=Q(l,a),c=vo(o),u=co(t);return i.useEffect(()=>{const f=l.current;if(!f)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==o&&g){const b=new Event("click",{bubbles:n});g.call(f,o),f.dispatchEvent(b)}},[c,o,n]),d.jsx(F.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...r,tabIndex:-1,ref:s,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Os.displayName=Cg;function Ds(e){return e?"checked":"unchecked"}var Sg=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],So="RadioGroup",[Rg]=ue(So,[Es,Ns]),Ms=Es(),Ls=Ns(),[Eg,Ag]=Rg(So),$s=i.forwardRef((e,t)=>{const{__scopeRadioGroup:o,name:n,defaultValue:r,value:a,required:l=!1,disabled:s=!1,orientation:c,dir:u,loop:f=!0,onValueChange:p,...m}=e,g=Ms(o),b=po(u),[v,h]=fe({prop:a,defaultProp:r??null,onChange:p,caller:So});return d.jsx(Eg,{scope:o,name:n,required:l,disabled:s,value:v,onValueChange:h,children:d.jsx(hg,{asChild:!0,...g,orientation:c,dir:b,loop:f,children:d.jsx(F.div,{role:"radiogroup","aria-required":l,"aria-orientation":c,"data-disabled":s?"":void 0,dir:b,...m,ref:t})})})});$s.displayName=So;var Fs="RadioGroupItem",Bs=i.forwardRef((e,t)=>{const{__scopeRadioGroup:o,disabled:n,...r}=e,a=Ag(Fs,o),l=a.disabled||n,s=Ms(o),c=Ls(o),u=i.useRef(null),f=Q(t,u),p=a.value===r.value,m=i.useRef(!1);return i.useEffect(()=>{const g=v=>{Sg.includes(v.key)&&(m.current=!0)},b=()=>m.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",b)}},[]),d.jsx(xg,{asChild:!0,...s,focusable:!l,active:p,children:d.jsx(Is,{disabled:l,required:a.required,checked:p,...c,...r,name:a.name,ref:f,onCheck:()=>a.onValueChange(r.value),onKeyDown:L(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:L(r.onFocus,()=>{var g;m.current&&((g=u.current)==null||g.click())})})})});Bs.displayName=Fs;var Pg="RadioGroupIndicator",Vs=i.forwardRef((e,t)=>{const{__scopeRadioGroup:o,...n}=e,r=Ls(o);return d.jsx(_s,{...r,...n,ref:t})});Vs.displayName=Pg;var Tg=$s,kg=Bs,Ng=Vs;const Ig=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:d.jsx("circle",{cx:"12",cy:"12",r:"10"})}),jg=({className:e,...t})=>d.jsx(Tg,{"data-slot":"radio-group",className:N("volt-grid volt-gap-3",e),...t}),_g=({className:e,...t})=>d.jsx(kg,{"data-slot":"radio-group-item",className:N("volt-border-accent-a7 volt-data-[state='checked']:bg-accent-solid volt-data-[checked=true]:text-accent-contrast volt-bg-accent-a4 volt-text-accent-default volt-focus-visible:outline-accent-a8 volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-aria-invalid:bg-error-a4 volt-aria-invalid:border-error-a8 volt-aria-invalid:outline-error-a8 volt-data-[state='checked']:aria-invalid:border-transparent volt-data-[state='checked']:aria-invalid:bg-error-a10 volt-aspect-square volt-size-4 volt-shrink-0 volt-rounded-full volt-border volt-shadow-xs volt-transition-[color,box-shadow] volt-disabled:cursor-not-allowed volt-disabled:bg-gray-a3 volt-disabled:border-transparent volt-data-[state='checked']:disabled:bg-gray-a3",e),...t,children:d.jsx(Ng,{"data-slot":"radio-group-indicator",className:"volt-relative volt-flex volt-items-center volt-justify-center",children:d.jsx(Ig,{className:"volt-text-accent-contrast volt-absolute volt-top-1/2 volt-left-1/2 volt-size-2 volt--translate-x-1/2 volt--translate-y-1/2"})})}),zs={blue:"blue",sky:"sky",mint:"mint",green:"green",teal:"teal",cyan:"cyan",indigo:"indigo",purple:"purple",pink:"pink",red:"red",orange:"orange",yellow:"yellow",bronze:"bronze",gray:"gray"},qs={soft:e=>`volt-bg-${e}-soft volt-text-${e}-default [a&]:hover:bg-${e}-soft-hover volt-border volt-border-transparent `,solid:e=>`volt-bg-${e}-solid volt-text-${e}-contrast [a&]:hover:bg-${e}-solid-hover volt-border volt-border-transparent `,surface:e=>`volt-bg-${e}-surface volt-border-${e}-a6 volt-border volt-text-${e}-default`},Og=Object.keys(zs),Dg=Object.keys(qs),Mg=Og.flatMap(e=>Dg.map(t=>({color:e,style:t,class:qs[t](e)}))),Ws=ke("volt-inline-flex volt-items-center volt-gap-2 volt-justify-center volt-px-1.5 volt-py-0.25 volt-text-sm volt-font-normal volt-w-fit volt-whitespace-nowrap volt-shrink-0 [&>svg]:size-4 [&>svg]:pointer-events-none volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-focus-visible:outline-accent-a8 volt-aria-invalid:outline-error-a8 volt-transition-[color,box-shadow] volt-overflow-hidden",{variants:{color:zs,style:{soft:"",solid:"",surface:""},shape:{default:"volt-rounded-md",rounded:"volt-rounded-full"}},compoundVariants:Mg,defaultVariants:{color:"blue",shape:"default",style:"soft"}}),Lg=({className:e,color:t,style:o,shape:n,asChild:r=!1,...a})=>{const l=r?sn:"span";return d.jsx(l,{"data-slot":"badge",className:N(Ws({color:t,style:o,shape:n}),e),...a})},Er=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320v-160q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480v160q0 17 11.5 28.5T480-280Zm0-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),$g=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M109-120q-11 0-20-5.5T75-140q-5-9-5.5-19.5T75-180l370-640q6-10 15.5-15t19.5-5q10 0 19.5 5t15.5 15l370 640q6 10 5.5 20.5T885-140q-5 9-14 14.5t-20 5.5H109Zm69-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm0-120q17 0 28.5-11.5T520-400v-120q0-17-11.5-28.5T480-560q-17 0-28.5 11.5T440-520v120q0 17 11.5 28.5T480-360Zm0-100Z"})}),Fg=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"m424-408-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-408Zm56 328q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Bg=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480v-160q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640v160q0 17 11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Vg=ke("volt-group volt-relative volt-w-full volt-rounded-xl volt-p-3 volt-text-sm volt-has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] volt-has-data-[slot=callout-icon]:grid-cols-[calc(var(--spacing)*4)_1fr] volt-grid volt-grid-cols-[0_1fr_auto] volt-has-[>svg]:gap-x-3 volt-has-data-[slot=callout-icon]:gap-x-4 volt-gap-y-0.5 volt-items-start",{variants:{variant:{info:"volt-bg-accent-soft volt-text-accent-default",gray:"volt-bg-gray-soft volt-text-gray-default",success:"volt-bg-success-soft volt-text-success-default",warning:"volt-bg-warning-soft volt-text-warning-default",destructive:"volt-text-error-default volt-bg-error-soft"}},defaultVariants:{variant:"info"}}),Gs=i.createContext({variant:"info"}),zg=({className:e,variant:t="info",hideIcon:o=!1,customIcon:n,...r})=>d.jsx(Gs.Provider,{value:{variant:t},children:d.jsxs("div",{"data-callout-variant":t,"data-slot":"callout",role:"alert",className:N(Vg({variant:t}),e),...r,children:[!o&&d.jsx(Ug,{customIcon:n}),r.children]})}),qg=({className:e,...t})=>d.jsx("div",{"data-slot":"callout-title",className:N("volt-col-start-2 volt-line-clamp-1 volt-text-current volt-min-h-4 volt-text-base volt-font-medium",e),...t}),Wg=({className:e,...t})=>d.jsx("div",{"data-slot":"callout-description",className:N("volt-text-current volt-col-start-2 volt-grid volt-justify-items-start volt-gap-1 volt-text-sm [&_p]:leading-relaxed",e),...t}),Gg=({className:e,align:t="start",...o})=>d.jsx("div",{"data-slot":"callout-action","data-align":t,className:N("volt-flex volt-w-full volt-col-span-3 volt-mt-2",{"volt-justify-start volt-ml-8":t==="start","volt-justify-end":t==="end"},e),...o}),Hg=({customIcon:e,...t})=>{const{variant:o}=i.useContext(Gs);if(e)return e;let n=null;switch(o){case"info":n=d.jsx(Er,{...t});break;case"success":n=d.jsx(Fg,{...t});break;case"warning":n=d.jsx($g,{...t});break;case"destructive":n=d.jsx(Bg,{...t});break;case"gray":n=d.jsx(Er,{...t});break}return n},Ug=({className:e,customIcon:t,...o})=>d.jsx(Hg,{"data-slot":"callout-icon",customIcon:t,className:N("volt-size-5 volt-translate-y-0.5 volt-text-current volt-shrink-0",e),...o});var Ro="Collapsible",[Kg,Hs]=ue(Ro),[Zg,Ln]=Kg(Ro),Us=i.forwardRef((e,t)=>{const{__scopeCollapsible:o,open:n,defaultOpen:r,disabled:a,onOpenChange:l,...s}=e,[c,u]=fe({prop:n,defaultProp:r??!1,onChange:l,caller:Ro});return d.jsx(Zg,{scope:o,disabled:a,contentId:ae(),open:c,onOpenToggle:i.useCallback(()=>u(f=>!f),[u]),children:d.jsx(F.div,{"data-state":Fn(c),"data-disabled":a?"":void 0,...s,ref:t})})});Us.displayName=Ro;var Ks="CollapsibleTrigger",Zs=i.forwardRef((e,t)=>{const{__scopeCollapsible:o,...n}=e,r=Ln(Ks,o);return d.jsx(F.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Fn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:t,onClick:L(e.onClick,r.onOpenToggle)})});Zs.displayName=Ks;var $n="CollapsibleContent",Ys=i.forwardRef((e,t)=>{const{forceMount:o,...n}=e,r=Ln($n,e.__scopeCollapsible);return d.jsx(Re,{present:o||r.open,children:({present:a})=>d.jsx(Yg,{...n,ref:t,present:a})})});Ys.displayName=$n;var Yg=i.forwardRef((e,t)=>{const{__scopeCollapsible:o,present:n,children:r,...a}=e,l=Ln($n,o),[s,c]=i.useState(n),u=i.useRef(null),f=Q(t,u),p=i.useRef(0),m=p.current,g=i.useRef(0),b=g.current,v=l.open||s,h=i.useRef(v),y=i.useRef(void 0);return i.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),le(()=>{const x=u.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();p.current=w.height,g.current=w.width,h.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),c(n)}},[l.open,n]),d.jsx(F.div,{"data-state":Fn(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!v,...a,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&r})});function Fn(e){return e?"open":"closed"}var Xg=Us,Qg=Zs,Jg=Ys,xe="Accordion",eh=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Bn,th,oh]=jn(xe),[Eo]=ue(xe,[oh,Hs]),Vn=Hs(),Xs=oe.forwardRef((e,t)=>{const{type:o,...n}=e,r=n,a=n;return d.jsx(Bn.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?d.jsx(lh,{...a,ref:t}):d.jsx(ah,{...r,ref:t})})});Xs.displayName=xe;var[Qs,nh]=Eo(xe),[Js,rh]=Eo(xe,{collapsible:!1}),ah=oe.forwardRef((e,t)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},collapsible:a=!1,...l}=e,[s,c]=fe({prop:o,defaultProp:n??"",onChange:r,caller:xe});return d.jsx(Qs,{scope:e.__scopeAccordion,value:oe.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:oe.useCallback(()=>a&&c(""),[a,c]),children:d.jsx(Js,{scope:e.__scopeAccordion,collapsible:a,children:d.jsx(ei,{...l,ref:t})})})}),lh=oe.forwardRef((e,t)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},...a}=e,[l,s]=fe({prop:o,defaultProp:n??[],onChange:r,caller:xe}),c=oe.useCallback(f=>s((p=[])=>[...p,f]),[s]),u=oe.useCallback(f=>s((p=[])=>p.filter(m=>m!==f)),[s]);return d.jsx(Qs,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:u,children:d.jsx(Js,{scope:e.__scopeAccordion,collapsible:!0,children:d.jsx(ei,{...a,ref:t})})})}),[sh,Ao]=Eo(xe),ei=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,disabled:n,dir:r,orientation:a="vertical",...l}=e,s=oe.useRef(null),c=Q(s,t),u=th(o),p=po(r)==="ltr",m=L(e.onKeyDown,g=>{var R;if(!eh.includes(g.key))return;const b=g.target,v=u().filter($=>{var B;return!((B=$.ref.current)!=null&&B.disabled)}),h=v.findIndex($=>$.ref.current===b),y=v.length;if(h===-1)return;g.preventDefault();let x=h;const w=0,C=y-1,S=()=>{x=h+1,x>C&&(x=w)},T=()=>{x=h-1,x<w&&(x=C)};switch(g.key){case"Home":x=w;break;case"End":x=C;break;case"ArrowRight":a==="horizontal"&&(p?S():T());break;case"ArrowDown":a==="vertical"&&S();break;case"ArrowLeft":a==="horizontal"&&(p?T():S());break;case"ArrowUp":a==="vertical"&&T();break}const E=x%y;(R=v[E].ref.current)==null||R.focus()});return d.jsx(sh,{scope:o,disabled:n,direction:r,orientation:a,children:d.jsx(Bn.Slot,{scope:o,children:d.jsx(F.div,{...l,"data-orientation":a,ref:c,onKeyDown:n?void 0:m})})})}),Zt="AccordionItem",[ih,zn]=Eo(Zt),ti=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,value:n,...r}=e,a=Ao(Zt,o),l=nh(Zt,o),s=Vn(o),c=ae(),u=n&&l.value.includes(n)||!1,f=a.disabled||e.disabled;return d.jsx(ih,{scope:o,open:u,disabled:f,triggerId:c,children:d.jsx(Xg,{"data-orientation":a.orientation,"data-state":si(u),...s,...r,ref:t,disabled:f,open:u,onOpenChange:p=>{p?l.onItemOpen(n):l.onItemClose(n)}})})});ti.displayName=Zt;var oi="AccordionHeader",ni=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=Ao(xe,o),a=zn(oi,o);return d.jsx(F.h3,{"data-orientation":r.orientation,"data-state":si(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});ni.displayName=oi;var an="AccordionTrigger",ri=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=Ao(xe,o),a=zn(an,o),l=rh(an,o),s=Vn(o);return d.jsx(Bn.ItemSlot,{scope:o,children:d.jsx(Qg,{"aria-disabled":a.open&&!l.collapsible||void 0,"data-orientation":r.orientation,id:a.triggerId,...s,...n,ref:t})})});ri.displayName=an;var ai="AccordionContent",li=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=Ao(xe,o),a=zn(ai,o),l=Vn(o);return d.jsx(Jg,{role:"region","aria-labelledby":a.triggerId,"data-orientation":r.orientation,...l,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});li.displayName=ai;function si(e){return e?"open":"closed"}var ch=Xs,dh=ti,uh=ni,fh=ri,ph=li;const vh=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:d.jsx("path",{d:"M480-361q-8 0-15-2.5t-13-8.5L268-556q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-372q-6 6-13 8.5t-15 2.5Z"})}),mh=({className:e,...t})=>d.jsx(ch,{"data-slot":"accordion",className:N(e),...t}),gh=({className:e,...t})=>d.jsx(dh,{"data-slot":"accordion-item",className:N(e),...t}),Ar=({className:e,...t})=>d.jsx(vh,{className:N("volt-text-gray-light volt-pointer-events-none volt-size-5 volt-shrink-0 volt-translate-y-0 volt-transition-transform volt-duration-200",e),...t}),hh=({className:e,align:t="end",children:o,...n})=>d.jsx(uh,{className:"volt-flex",children:d.jsxs(fh,{"data-slot":"accordion-trigger",className:N("volt-outline-accent-a8 volt-p-3 volt-cursor-pointer volt-focus-visible:outline-offset-2 volt-focus-visible:outline-2 volt-flex volt-flex-1 volt-items-start volt-gap-3 volt-rounded-md volt-py-4 volt-text-left volt-text-sm volt-font-medium volt-transition-all volt-disabled:pointer-events-none volt-disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",{"volt-justify-start":t==="start","volt-justify-between":t==="end"},e),...n,children:[t==="start"&&d.jsx(Ar,{}),o,t==="end"&&d.jsx(Ar,{})]})}),xh=({className:e,children:t,...o})=>d.jsx(ph,{"data-slot":"accordion-content",className:"volt-data-[state=closed]:animate-accordion-up volt-data-[state=open]:animate-accordion-down volt-overflow-hidden volt-duration-75 volt-text-sm volt-px-3 volt-pb-2 volt-pt-1",...o,children:d.jsx("div",{className:N("volt-p-0",e),children:t})});function bh(e,t=[]){let o=[];function n(a,l){const s=i.createContext(l),c=o.length;o=[...o,l];const u=p=>{var y;const{scope:m,children:g,...b}=p,v=((y=m==null?void 0:m[e])==null?void 0:y[c])||s,h=i.useMemo(()=>b,Object.values(b));return d.jsx(v.Provider,{value:h,children:g})};u.displayName=a+"Provider";function f(p,m){var v;const g=((v=m==null?void 0:m[e])==null?void 0:v[c])||s,b=i.useContext(g);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const r=()=>{const a=o.map(l=>i.createContext(l));return function(s){const c=(s==null?void 0:s[e])||a;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return r.scopeName=e,[n,yh(r,...t)]}function yh(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const l=n.reduce((s,{useScope:c,scopeName:u})=>{const p=c(a)[`__scope${u}`];return{...s,...p}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return o.scopeName=t.scopeName,o}function Pr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wh(...e){return t=>{let o=!1;const n=e.map(r=>{const a=Pr(r,t);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let r=0;r<n.length;r++){const a=n[r];typeof a=="function"?a():Pr(e[r],null)}}}}function ii(...e){return i.useCallback(wh(...e),e)}function Ch(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e==null||e(r),o===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var Sh=Symbol("radix.slottable");function Rh(e){const t=({children:o})=>d.jsx(d.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=Sh,t}var ci="AlertDialog",[Eh]=bh(ci,[fa]),Ne=fa(),di=e=>{const{__scopeAlertDialog:t,...o}=e,n=Ne(t);return d.jsx(mn,{...n,...o,modal:!0})};di.displayName=ci;var Ah="AlertDialogTrigger",ui=i.forwardRef((e,t)=>{const{__scopeAlertDialog:o,...n}=e,r=Ne(o);return d.jsx(Ta,{...r,...n,ref:t})});ui.displayName=Ah;var Ph="AlertDialogPortal",fi=e=>{const{__scopeAlertDialog:t,...o}=e,n=Ne(t);return d.jsx(gn,{...n,...o})};fi.displayName=Ph;var Th="AlertDialogOverlay",pi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:o,...n}=e,r=Ne(o);return d.jsx(hn,{...r,...n,ref:t})});pi.displayName=Th;var nt="AlertDialogContent",[kh,Nh]=Eh(nt),Ih=Rh("AlertDialogContent"),vi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:o,children:n,...r}=e,a=Ne(o),l=i.useRef(null),s=ii(t,l),c=i.useRef(null);return d.jsx(Iu,{contentName:nt,titleName:mi,docsSlug:"alert-dialog",children:d.jsx(kh,{scope:o,cancelRef:c,children:d.jsxs(xn,{role:"alertdialog",...a,...r,ref:s,onOpenAutoFocus:Ch(r.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=c.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[d.jsx(Ih,{children:n}),d.jsx(_h,{contentRef:l})]})})})});vi.displayName=nt;var mi="AlertDialogTitle",gi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:o,...n}=e,r=Ne(o);return d.jsx(ka,{...r,...n,ref:t})});gi.displayName=mi;var hi="AlertDialogDescription",xi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:o,...n}=e,r=Ne(o);return d.jsx(Na,{...r,...n,ref:t})});xi.displayName=hi;var jh="AlertDialogAction",bi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:o,...n}=e,r=Ne(o);return d.jsx(no,{...r,...n,ref:t})});bi.displayName=jh;var yi="AlertDialogCancel",wi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:o,...n}=e,{cancelRef:r}=Nh(yi,o),a=Ne(o),l=ii(t,r);return d.jsx(no,{...a,...n,ref:l})});wi.displayName=yi;var _h=({contentRef:e})=>{const t=`\`${nt}\` requires a description for the component to be accessible for screen reader users.
46
+
47
+ You can add a description to the \`${nt}\` by passing a \`${hi}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
48
+
49
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${nt}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
50
+
51
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Oh=di,Dh=ui,Mh=fi,Lh=pi,$h=vi,Fh=bi,Bh=wi,Vh=gi,zh=xi;const qh=({...e})=>d.jsx(Oh,{"data-slot":"alert-dialog",...e}),Wh=({...e})=>d.jsx(Dh,{"data-slot":"alert-dialog-trigger",...e}),Ci=({...e})=>d.jsx(Mh,{"data-slot":"alert-dialog-portal",...e}),Si=({className:e,...t})=>d.jsx(Lh,{"data-slot":"alert-dialog-overlay",className:N("volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-fixed volt-inset-0 volt-z-50 volt-bg-black/50",e),...t}),Gh=({className:e,...t})=>d.jsxs(Ci,{children:[d.jsx(Si,{}),d.jsx($h,{"data-slot":"alert-dialog-content",className:N("volt-bg-body volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-data-[state=closed]:zoom-out-95 volt-data-[state=open]:zoom-in-95 volt-fixed volt-top-[50%] volt-left-[50%] volt-z-50 volt-grid volt-w-full volt-max-w-[calc(100%-2rem)] volt-translate-x-[-50%] volt-translate-y-[-50%] volt-gap-4 volt-rounded-xl volt-border volt-p-6 volt-shadow-lg volt-duration-200 volt-sm:max-w-xl",e),...t})]}),Hh=({className:e,...t})=>d.jsx("div",{"data-slot":"alert-dialog-header",className:N("volt-flex volt-flex-col volt-gap-2 volt-text-center volt-sm:text-left",e),...t}),Uh=({className:e,...t})=>d.jsx("div",{"data-slot":"alert-dialog-footer",className:N("volt-flex volt-flex-col-reverse volt-gap-2 volt-sm:flex-row volt-sm:justify-end",e),...t}),Kh=({className:e,...t})=>d.jsx(Vh,{"data-slot":"alert-dialog-title",className:N("volt-text-lg volt-font-semibold",e),...t}),Zh=({className:e,...t})=>d.jsx(zh,{"data-slot":"alert-dialog-description",className:N("volt-text-gray-light volt-text-sm",e),...t}),Yh=({className:e,...t})=>d.jsx(Fh,{className:N(Ct(),e),...t}),Xh=({className:e,...t})=>d.jsx(Bh,{className:N(Ct({variant:"tertiary"}),e),...t});exports.Accordion=mh;exports.AccordionContent=xh;exports.AccordionItem=gh;exports.AccordionTrigger=hh;exports.AlertDialog=qh;exports.AlertDialogAction=Yh;exports.AlertDialogCancel=Xh;exports.AlertDialogContent=Gh;exports.AlertDialogDescription=Zh;exports.AlertDialogFooter=Uh;exports.AlertDialogHeader=Hh;exports.AlertDialogOverlay=Si;exports.AlertDialogPortal=Ci;exports.AlertDialogTitle=Kh;exports.AlertDialogTrigger=Wh;exports.Badge=Lg;exports.Button=Gr;exports.ButtonGroup=Pc;exports.ButtonGroupSeparator=kc;exports.ButtonGroupText=Tc;exports.Callout=zg;exports.CalloutAction=Gg;exports.CalloutDescription=Wg;exports.CalloutTitle=qg;exports.Checkbox=lg;exports.Dialog=Qu;exports.DialogClose=ef;exports.DialogContent=tf;exports.DialogDescription=af;exports.DialogFooter=nf;exports.DialogHeader=of;exports.DialogOverlay=Fa;exports.DialogPortal=$a;exports.DialogTitle=rf;exports.DialogTrigger=Ju;exports.Field=$c;exports.FieldCombobox=Jp;exports.FieldComboboxClear=fv;exports.FieldComboboxClearValue=vv;exports.FieldComboboxContent=rv;exports.FieldComboboxEmpty=iv;exports.FieldComboboxGroup=ev;exports.FieldComboboxGroupLabel=tv;exports.FieldComboboxInput=av;exports.FieldComboboxItem=sv;exports.FieldComboboxItemCheckIcon=dv;exports.FieldComboboxList=lv;exports.FieldComboboxLoading=uv;exports.FieldComboboxPlaceholder=pv;exports.FieldComboboxSeparator=cv;exports.FieldComboboxTrigger=nv;exports.FieldComboboxValue=ov;exports.FieldContent=Fc;exports.FieldDescription=zc;exports.FieldError=qc;exports.FieldGroup=Dc;exports.FieldGroupAddon=Gc;exports.FieldInput=Yr;exports.FieldInputGroup=Xr;exports.FieldLabel=Bc;exports.FieldLabelContent=Vc;exports.FieldSet=Mc;exports.FieldTextarea=Qr;exports.Label=cn;exports.Popover=Ym;exports.PopoverAnchor=Jm;exports.PopoverContent=Qm;exports.PopoverPortal=Zm;exports.PopoverTrigger=Xm;exports.RadioGroup=jg;exports.RadioGroupItem=_g;exports.Select=sm;exports.SelectContent=dm;exports.SelectGroup=im;exports.SelectItem=fm;exports.SelectLabel=um;exports.SelectScrollDownButton=os;exports.SelectScrollUpButton=ts;exports.SelectSeparator=pm;exports.SelectTrigger=es;exports.SelectValue=cm;exports.Separator=Ur;exports.Switch=Km;exports.Tooltip=Lm;exports.TooltipContent=Fm;exports.TooltipProvider=Mm;exports.TooltipTrigger=$m;exports.badgeVariants=Ws;exports.buttonVariants=Ct;exports.cn=N;exports.useFieldContext=St;