@epilot/volt-ui 1.0.0-alpha.26 → 1.0.0-alpha.28

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,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),Q=require("react"),mr=require("react-dom");function ys(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=ys(Q),Bt=ys(mr);function ws(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=ws(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Cs(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=ws(e))&&(n&&(n+=" "),n+=t);return n}const ed=(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},td=(e,t)=>({classGroupId:e,validator:t}),Ss=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),$o="-",di=[],od="arbitrary..",nd=e=>{const t=id(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return rd(s);const a=s.split($o),c=a[0]===""&&a.length>1?1:0;return Es(a,c,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=n[s],u=o[s];return c?u?ed(u,c):c:u||di}return o[s]||di}}},Es=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const r=e[t],i=o.nextPart.get(r);if(i){const u=Es(e,t+1,i);if(u)return u}const s=o.validators;if(s===null)return;const a=t===0?e.join($o):e.slice(t).join($o),c=s.length;for(let u=0;u<c;u++){const d=s[u];if(d.validator(a))return d.classGroupId}},rd=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?od+n:void 0})(),id=e=>{const{theme:t,classGroups:o}=e;return sd(o,t)},sd=(e,t)=>{const o=Ss();for(const n in e){const r=e[n];hr(r,o,n,t)}return o},hr=(e,t,o,n)=>{const r=e.length;for(let i=0;i<r;i++){const s=e[i];ad(s,t,o,n)}},ad=(e,t,o,n)=>{if(typeof e=="string"){ld(e,t,o);return}if(typeof e=="function"){cd(e,t,o,n);return}ud(e,t,o,n)},ld=(e,t,o)=>{const n=e===""?t:Rs(t,e);n.classGroupId=o},cd=(e,t,o,n)=>{if(dd(e)){hr(e(n),t,o,n);return}t.validators===null&&(t.validators=[]),t.validators.push(td(o,e))},ud=(e,t,o,n)=>{const r=Object.entries(e),i=r.length;for(let s=0;s<i;s++){const[a,c]=r[s];hr(c,Rs(t,a),o,n)}},Rs=(e,t)=>{let o=e;const n=t.split($o),r=n.length;for(let i=0;i<r;i++){const s=n[i];let a=o.nextPart.get(s);a||(a=Ss(),o.nextPart.set(s,a)),o=a}return o},dd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,fd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),n=Object.create(null);const r=(i,s)=>{o[i]=s,t++,t>e&&(t=0,n=o,o=Object.create(null))};return{get(i){let s=o[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return r(i,s),s},set(i,s){i in o?o[i]=s:r(i,s)}}},Un="!",fi=":",pd=[],pi=(e,t,o,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:n,isExternal:r}),vd=e=>{const{prefix:t,experimentalParseClassName:o}=e;let n=r=>{const i=[];let s=0,a=0,c=0,u;const d=r.length;for(let v=0;v<d;v++){const g=r[v];if(s===0&&a===0){if(g===fi){i.push(r.slice(c,v)),c=v+1;continue}if(g==="/"){u=v;continue}}g==="["?s++:g==="]"?s--:g==="("?a++:g===")"&&a--}const f=i.length===0?r:r.slice(c);let h=f,m=!1;f.endsWith(Un)?(h=f.slice(0,-1),m=!0):f.startsWith(Un)&&(h=f.slice(1),m=!0);const x=u&&u>c?u-c:void 0;return pi(i,m,h,x)};if(t){const r=t+fi,i=n;n=s=>s.startsWith(r)?i(s.slice(r.length)):pi(pd,!1,s,void 0,!0)}if(o){const r=n;n=i=>o({className:i,parseClassName:r})}return n},md=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 s=o[i],a=s[0]==="[",c=t.has(s);a||c?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(s)):r.push(s)}return r.length>0&&(r.sort(),n.push(...r)),n}},hd=e=>({cache:fd(e.cacheSize),parseClassName:vd(e),sortModifiers:md(e),...nd(e)}),gd=/\s+/,xd=(e,t)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i}=t,s=[],a=e.trim().split(gd);let c="";for(let u=a.length-1;u>=0;u-=1){const d=a[u],{isExternal:f,modifiers:h,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:v}=o(d);if(f){c=d+(c.length>0?" "+c:c);continue}let g=!!v,b=n(g?x.substring(0,v):x);if(!b){if(!g){c=d+(c.length>0?" "+c:c);continue}if(b=n(x),!b){c=d+(c.length>0?" "+c:c);continue}g=!1}const y=h.length===0?"":h.length===1?h[0]:i(h).join(":"),w=m?y+Un:y,C=w+b;if(s.indexOf(C)>-1)continue;s.push(C);const S=r(b,g);for(let R=0;R<S.length;++R){const E=S[R];s.push(w+E)}c=d+(c.length>0?" "+c:c)}return c},bd=(...e)=>{let t=0,o,n,r="";for(;t<e.length;)(o=e[t++])&&(n=Ps(o))&&(r&&(r+=" "),r+=n);return r},Ps=e=>{if(typeof e=="string")return e;let t,o="";for(let n=0;n<e.length;n++)e[n]&&(t=Ps(e[n]))&&(o&&(o+=" "),o+=t);return o},yd=(e,...t)=>{let o,n,r,i;const s=c=>{const u=t.reduce((d,f)=>f(d),e());return o=hd(u),n=o.cache.get,r=o.cache.set,i=a,a(c)},a=c=>{const u=n(c);if(u)return u;const d=xd(c,o);return r(c,d),d};return i=s,(...c)=>i(bd(...c))},wd=[],ae=e=>{const t=o=>o[e]||wd;return t.isThemeGetter=!0,t},As=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ts=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cd=/^\d+\/\d+$/,Sd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ed=/\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$/,Rd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Pd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ad=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wt=e=>Cd.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),qe=e=>!!e&&Number.isInteger(Number(e)),Sn=e=>e.endsWith("%")&&Z(e.slice(0,-1)),je=e=>Sd.test(e),Td=()=>!0,Nd=e=>Ed.test(e)&&!Rd.test(e),Ns=()=>!1,Od=e=>Pd.test(e),kd=e=>Ad.test(e),$d=e=>!M(e)&&!L(e),Id=e=>Wt(e,$s,Ns),M=e=>As.test(e),ut=e=>Wt(e,Is,Nd),En=e=>Wt(e,Ld,Z),vi=e=>Wt(e,Os,Ns),_d=e=>Wt(e,ks,kd),fo=e=>Wt(e,_s,Od),L=e=>Ts.test(e),Xt=e=>Vt(e,Is),Dd=e=>Vt(e,Fd),mi=e=>Vt(e,Os),jd=e=>Vt(e,$s),Md=e=>Vt(e,ks),po=e=>Vt(e,_s,!0),Wt=(e,t,o)=>{const n=As.exec(e);return n?n[1]?t(n[1]):o(n[2]):!1},Vt=(e,t,o=!1)=>{const n=Ts.exec(e);return n?n[1]?t(n[1]):o:!1},Os=e=>e==="position"||e==="percentage",ks=e=>e==="image"||e==="url",$s=e=>e==="length"||e==="size"||e==="bg-size",Is=e=>e==="length",Ld=e=>e==="number",Fd=e=>e==="family-name",_s=e=>e==="shadow",Bd=()=>{const e=ae("color"),t=ae("font"),o=ae("text"),n=ae("font-weight"),r=ae("tracking"),i=ae("leading"),s=ae("breakpoint"),a=ae("container"),c=ae("spacing"),u=ae("radius"),d=ae("shadow"),f=ae("inset-shadow"),h=ae("text-shadow"),m=ae("drop-shadow"),x=ae("blur"),v=ae("perspective"),g=ae("aspect"),b=ae("ease"),y=ae("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(),L,M],R=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],P=()=>[L,M,c],$=()=>[wt,"full","auto",...P()],I=()=>[qe,"none","subgrid",L,M],V=()=>["auto",{span:["full",qe,L,M]},qe,L,M],z=()=>[qe,"auto",L,M],W=()=>["auto","min","max","fr",L,M],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...P()],F=()=>[wt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],A=()=>[e,L,M],H=()=>[...C(),mi,vi,{position:[L,M]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",jd,Id,{size:[L,M]}],T=()=>[Sn,Xt,ut],D=()=>["","none","full",u,L,M],B=()=>["",Z,Xt,ut],j=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>[Z,Sn,mi,vi],G=()=>["","none",x,L,M],Y=()=>["none",Z,L,M],X=()=>["none",Z,L,M],te=()=>[Z,L,M],J=()=>[wt,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[je],breakpoint:[je],color:[Td],container:[je],"drop-shadow":[je],ease:["in","out","in-out"],font:[$d],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[je],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[je],shadow:[je],spacing:["px",Z],text:[je],"text-shadow":[je],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wt,M,L,g]}],container:["container"],columns:[{columns:[Z,M,L,a]}],"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:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],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:[qe,"auto",L,M]}],basis:[{basis:[wt,"full","auto",a,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Z,wt,"auto","initial","none",M]}],grow:[{grow:["",Z,L,M]}],shrink:[{shrink:["",Z,L,M]}],order:[{order:[qe,"first","last","none",L,M]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:V()}],"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":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[a,"screen",...F()]}],"min-w":[{"min-w":[a,"screen","none",...F()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",o,Xt,ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,L,En]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sn,M]}],"font-family":[{font:[Dd,M,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,L,M]}],"line-clamp":[{"line-clamp":[Z,"none",L,En]}],leading:[{leading:[i,...P()]}],"list-image":[{"list-image":["none",L,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[Z,"from-font","auto",L,ut]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Z,"auto",L,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qe,L,M],radial:["",L,M],conic:[qe,L,M]},Md,_d]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Z,L,M]}],"outline-w":[{outline:["",Z,Xt,ut]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",d,po,fo]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",f,po,fo]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Z,ut]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",h,po,fo]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Z,L,M]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"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":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[L,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,M]}],filter:[{filter:["","none",L,M]}],blur:[{blur:G()}],brightness:[{brightness:[Z,L,M]}],contrast:[{contrast:[Z,L,M]}],"drop-shadow":[{"drop-shadow":["","none",m,po,fo]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Z,L,M]}],"hue-rotate":[{"hue-rotate":[Z,L,M]}],invert:[{invert:["",Z,L,M]}],saturate:[{saturate:[Z,L,M]}],sepia:[{sepia:["",Z,L,M]}],"backdrop-filter":[{"backdrop-filter":["","none",L,M]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[Z,L,M]}],"backdrop-contrast":[{"backdrop-contrast":[Z,L,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Z,L,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,L,M]}],"backdrop-invert":[{"backdrop-invert":["",Z,L,M]}],"backdrop-opacity":[{"backdrop-opacity":[Z,L,M]}],"backdrop-saturate":[{"backdrop-saturate":[Z,L,M]}],"backdrop-sepia":[{"backdrop-sepia":["",Z,L,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Z,"initial",L,M]}],ease:[{ease:["linear","initial",b,L,M]}],delay:[{delay:[Z,L,M]}],animate:[{animate:["none",y,L,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,L,M]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[L,M,"","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:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",L,M]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",L,M]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Z,Xt,ut,En]}],stroke:[{stroke:["none",...A()]}],"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"]}},Wd=yd(Bd),k=(...e)=>Wd(Cs(e));function hi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zt(...e){return t=>{let o=!1;const n=e.map(r=>{const i=hi(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():hi(e[r],null)}}}}function le(...e){return l.useCallback(zt(...e),e)}var Vd=Symbol.for("react.lazy"),Io=l[" use ".trim().toString()];function zd(e){return typeof e=="object"&&e!==null&&"then"in e}function Ds(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Vd&&"_payload"in e&&zd(e._payload)}function gr(e){const t=qd(e),o=l.forwardRef((n,r)=>{let{children:i,...s}=n;Ds(i)&&typeof Io=="function"&&(i=Io(i._payload));const a=l.Children.toArray(i),c=a.find(Gd);if(c){const u=c.props.children,d=a.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return p.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}var xr=gr("Slot");function qd(e){const t=l.forwardRef((o,n)=>{let{children:r,...i}=o;if(Ds(r)&&typeof Io=="function"&&(r=Io(r._payload)),l.isValidElement(r)){const s=Kd(r),a=Ud(i,r.props);return r.type!==l.Fragment&&(a.ref=n?zt(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hd=Symbol("radix.slottable");function Gd(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hd}function Ud(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function Kd(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 gi=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xi=Cs,et=(e,t)=>o=>{var n;if((t==null?void 0:t.variants)==null)return xi(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:r,defaultVariants:i}=t,s=Object.keys(r).map(u=>{const d=o==null?void 0:o[u],f=i==null?void 0:i[u];if(d===null)return null;const h=gi(d)||gi(f);return r[u][h]}),a=o&&Object.entries(o).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(x=>{let[v,g]=x;return Array.isArray(g)?g.includes({...i,...a}[v]):{...i,...a}[v]===g})?[...u,f,h]:u},[]);return xi(e,s,c,o==null?void 0:o.class,o==null?void 0:o.className)},br=et("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"}}),js=Q.forwardRef(({variant:e,size:t,asChild:o=!1,className:n,...r},i)=>{const s=o?xr:"button";return p.jsx(s,{"data-slot":"button",className:k(br({variant:e,size:t,className:n})),ref:i,...r})});js.displayName="Button";var Yd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Xd=Yd.reduce((e,t)=>{const o=gr(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Zd="Separator",bi="horizontal",Qd=["horizontal","vertical"],Ms=l.forwardRef((e,t)=>{const{decorative:o,orientation:n=bi,...r}=e,i=Jd(n)?n:bi,a=o?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return p.jsx(Xd.div,{"data-orientation":i,...a,...r,ref:t})});Ms.displayName=Zd;function Jd(e){return Qd.includes(e)}var ef=Ms;const Ls=({className:e,orientation:t="horizontal",decorative:o=!0,...n})=>p.jsx(ef,{"data-slot":"separator",decorative:o,orientation:t,className:k("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}),tf=et("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"}}),of=({className:e,orientation:t,...o})=>p.jsx("div",{role:"group","data-slot":"volt-ui-button-group","data-orientation":t,className:k(tf({orientation:t}),e),...o}),nf=({className:e,asChild:t=!1,...o})=>{const n=t?xr:"div";return p.jsx(n,{className:k("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})},rf=({className:e,orientation:t="vertical",...o})=>p.jsx(Ls,{"data-slot":"volt-ui-button-group-separator",orientation:t,className:k("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 sf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],af=sf.reduce((e,t)=>{const o=gr(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),lf="Label",Fs=l.forwardRef((e,t)=>p.jsx(af.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())}}));Fs.displayName=lf;var cf=Fs;const uf=et("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"}}),yr=({variant:e,size:t,className:o,...n})=>p.jsx(cf,{"data-slot":"label",className:k(uf({variant:e,size:t,className:o})),...n}),Bs=Q.createContext(null),ro=()=>{const e=Q.useContext(Bs);if(!e)throw new Error("FieldInput must be used within a Field component");return e},df=({className:e,...t})=>p.jsx("div",{"data-slot":"field-group",className:k("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}),ff=({className:e,...t})=>p.jsx("fieldset",{"data-slot":"field-set",className:k("volt-ui-flex volt-ui-flex-col volt-ui-gap-6",e),...t}),pf=({className:e,children:t,onClick:o,...n})=>{const r=l.useRef(null);return p.jsx(Bs.Provider,{value:{inputRef:r},children:p.jsx("div",{role:"group","data-slot":"field",className:k("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-bg-accent-a3 volt-ui-hover:bg-accent-a4 volt-ui-data-[invalid=true]:bg-error-soft volt-ui-focus-within:outline-2 volt-ui-focus-within:outline-offset-2 [&:not([data-invalid=true]):focus-within]:outline-accent-a8 volt-ui-data-[invalid=true]:focus-within:outline-error-a8 volt-ui-data-[invalid=true]:hover:bg-error-a4","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",e),onClick:i=>{var s,a;i.stopPropagation(),i.target===i.currentTarget&&r.current&&!r.current.disabled&&((a=(s=r.current)==null?void 0:s.dataset.slot)!=null&&a.match(/select-trigger/)&&r.current.click(),r.current.focus()),o==null||o(i)},...n,children:t})})},vf=({className:e,...t})=>p.jsx("div",{"data-slot":"field-content",className:k("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}),mf=({className:e,...t})=>p.jsx(yr,{"data-slot":"field-label",className:k("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}),hf=({className:e,showOnHover:t=!0,...o})=>p.jsx("div",{"data-slot":"field-label-content",className:k("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}),gf=({className:e,...t})=>p.jsx("p",{"data-slot":"field-description",className:k("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}),xf=({className:e,children:t,errors:o,...n})=>{const r=Q.useMemo(()=>{var s;if(t)return t;if(!(o!=null&&o.length))return null;const i=[...new Map(o.map(a=>[a==null?void 0:a.message,a])).values()];return(i==null?void 0:i.length)==1?(s=i[0])==null?void 0:s.message:p.jsx("ul",{className:"volt-ui-flex volt-ui-list-disc volt-ui-flex-col volt-ui-m-0",children:i.map((a,c)=>(a==null?void 0:a.message)&&p.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:a.message},c))})},[t,o]);return r?p.jsx("div",{role:"alert","data-slot":"field-error",className:k("volt-ui-text-error-light volt-ui-text-xs volt-ui-font-normal",e),...n,children:r}):null},Ws=Q.forwardRef(({className:e,...t},o)=>{const{inputRef:n}=ro();return p.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:k("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})});Ws.displayName="FieldInput";const Vs=Q.forwardRef(({className:e,...t},o)=>p.jsx("div",{ref:o,"data-slot":"field-input-group",className:k("volt-ui-flex volt-ui-items-center volt-ui-gap-1",e),...t}));Vs.displayName="FieldInputGroup";const bf=et("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"}}),yf=({className:e,align:t="start",...o})=>p.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:k(bf({align:t}),e),...o}),zs=Q.forwardRef(({className:e,resize:t="none",...o},n)=>{const{inputRef:r}=ro();return p.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:k("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})});zs.displayName="FieldTextarea";var yi=1,wf=.9,Cf=.8,Sf=.17,Rn=.1,Pn=.999,Ef=.9999,Rf=.99,Pf=/[\\\/_+.#"@\[\(\{&]/,Af=/[\\\/_+.#"@\[\(\{&]/g,Tf=/[\s-]/,qs=/[\s-]/g;function Kn(e,t,o,n,r,i,s){if(i===t.length)return r===e.length?yi:Rf;var a=`${r},${i}`;if(s[a]!==void 0)return s[a];for(var c=n.charAt(i),u=o.indexOf(c,r),d=0,f,h,m,x;u>=0;)f=Kn(e,t,o,n,u+1,i+1,s),f>d&&(u===r?f*=yi:Pf.test(e.charAt(u-1))?(f*=Cf,m=e.slice(r,u-1).match(Af),m&&r>0&&(f*=Math.pow(Pn,m.length))):Tf.test(e.charAt(u-1))?(f*=wf,x=e.slice(r,u-1).match(qs),x&&r>0&&(f*=Math.pow(Pn,x.length))):(f*=Sf,r>0&&(f*=Math.pow(Pn,u-r))),e.charAt(u)!==t.charAt(i)&&(f*=Ef)),(f<Rn&&o.charAt(u-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&o.charAt(u-1)!==n.charAt(i))&&(h=Kn(e,t,o,n,u+1,i+2,s),h*Rn>f&&(f=h*Rn)),f>d&&(d=f),u=o.indexOf(c,u+1);return s[a]=d,d}function wi(e){return e.toLowerCase().replace(qs," ")}function Nf(e,t,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,Kn(e,t,wi(e),wi(t),0,0,{})}function U(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 Ci(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Me(...e){return t=>{let o=!1;const n=e.map(r=>{const i=Ci(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():Ci(e[r],null)}}}}function ne(...e){return l.useCallback(Me(...e),e)}function Of(e,t){const o=l.createContext(t),n=i=>{const{children:s,...a}=i,c=l.useMemo(()=>a,Object.values(a));return p.jsx(o.Provider,{value:c,children:s})};n.displayName=e+"Provider";function r(i){const s=l.useContext(o);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,r]}function ze(e,t=[]){let o=[];function n(i,s){const a=l.createContext(s),c=o.length;o=[...o,s];const u=f=>{var b;const{scope:h,children:m,...x}=f,v=((b=h==null?void 0:h[e])==null?void 0:b[c])||a,g=l.useMemo(()=>x,Object.values(x));return p.jsx(v.Provider,{value:g,children:m})};u.displayName=i+"Provider";function d(f,h){var v;const m=((v=h==null?void 0:h[e])==null?void 0:v[c])||a,x=l.useContext(m);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const r=()=>{const i=o.map(s=>l.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[n,kf(r,...t)]}function kf(...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 s=n.reduce((a,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...a,...f}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}var ue=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},$f=l[" useId ".trim().toString()]||(()=>{}),If=0;function de(e){const[t,o]=l.useState($f());return ue(()=>{o(n=>n??String(If++))},[e]),e||(t?`radix-${t}`:"")}var _f=l[" useInsertionEffect ".trim().toString()]||ue;function dt({prop:e,defaultProp:t,onChange:o=()=>{},caller:n}){const[r,i,s]=Df({defaultProp:t,onChange:o}),a=e!==void 0,c=a?e:r;{const d=l.useRef(e!==void 0);l.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const u=l.useCallback(d=>{var f;if(a){const h=jf(d)?d(e):d;h!==e&&((f=s.current)==null||f.call(s,h))}else i(d)},[a,e,i,s]);return[c,u]}function Df({defaultProp:e,onChange:t}){const[o,n]=l.useState(e),r=l.useRef(o),i=l.useRef(t);return _f(()=>{i.current=t},[t]),l.useEffect(()=>{var s;r.current!==o&&((s=i.current)==null||s.call(i,o),r.current=o)},[o,r]),[o,n,i]}function jf(e){return typeof e=="function"}function _o(e){const t=Mf(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(Ff);if(c){const u=c.props.children,d=a.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return p.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function Mf(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=Wf(r),a=Bf(i,r.props);return r.type!==l.Fragment&&(a.ref=n?Me(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lf=Symbol("radix.slottable");function Ff(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lf}function Bf(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function Wf(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 Vf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=Vf.reduce((e,t)=>{const o=_o(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function zf(e,t){e&&Bt.flushSync(()=>e.dispatchEvent(t))}function Ke(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 qf(e,t=globalThis==null?void 0:globalThis.document){const o=Ke(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 Hf="DismissableLayer",Yn="dismissableLayer.update",Gf="dismissableLayer.pointerDownOutside",Uf="dismissableLayer.focusOutside",Si,Hs=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uo=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,u=l.useContext(Hs),[d,f]=l.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=l.useState({}),x=ne(t,E=>f(E)),v=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(g),y=d?v.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=y>=b,S=Xf(E=>{const P=E.target,$=[...u.branches].some(I=>I.contains(P));!C||$||(r==null||r(E),s==null||s(E),E.defaultPrevented||a==null||a())},h),R=Zf(E=>{const P=E.target;[...u.branches].some(I=>I.contains(P))||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},h);return qf(E=>{y===u.layers.size-1&&(n==null||n(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),l.useEffect(()=>{if(d)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Si=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ei(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Si)}},[d,h,o,u]),l.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ei())},[d,u]),l.useEffect(()=>{const E=()=>m({});return document.addEventListener(Yn,E),()=>document.removeEventListener(Yn,E)},[]),p.jsx(ee.div,{...c,ref:x,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,R.onFocusCapture),onBlurCapture:U(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,S.onPointerDownCapture)})});Uo.displayName=Hf;var Kf="DismissableLayerBranch",Yf=l.forwardRef((e,t)=>{const o=l.useContext(Hs),n=l.useRef(null),r=ne(t,n);return l.useEffect(()=>{const i=n.current;if(i)return o.branches.add(i),()=>{o.branches.delete(i)}},[o.branches]),p.jsx(ee.div,{...e,ref:r})});Yf.displayName=Kf;function Xf(e,t=globalThis==null?void 0:globalThis.document){const o=Ke(e),n=l.useRef(!1),r=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){Gs(Gf,o,u,{discrete:!0})};const u={originalEvent:a};a.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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,o]),{onPointerDownCapture:()=>n.current=!0}}function Zf(e,t=globalThis==null?void 0:globalThis.document){const o=Ke(e),n=l.useRef(!1);return l.useEffect(()=>{const r=i=>{i.target&&!n.current&&Gs(Uf,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 Ei(){const e=new CustomEvent(Yn);document.dispatchEvent(e)}function Gs(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?zf(r,i):r.dispatchEvent(i)}var An="focusScope.autoFocusOnMount",Tn="focusScope.autoFocusOnUnmount",Ri={bubbles:!1,cancelable:!0},Qf="FocusScope",wr=l.forwardRef((e,t)=>{const{loop:o=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...s}=e,[a,c]=l.useState(null),u=Ke(r),d=Ke(i),f=l.useRef(null),h=ne(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||!a)return;const C=w.target;a.contains(C)?f.current=C:He(f.current,{select:!0})},g=function(w){if(m.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||He(f.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&He(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",g),y.disconnect()}}},[n,a,m.paused]),l.useEffect(()=>{if(a){Ai.add(m);const v=document.activeElement;if(!a.contains(v)){const b=new CustomEvent(An,Ri);a.addEventListener(An,u),a.dispatchEvent(b),b.defaultPrevented||(Jf(rp(Us(a)),{select:!0}),document.activeElement===v&&He(a))}return()=>{a.removeEventListener(An,u),setTimeout(()=>{const b=new CustomEvent(Tn,Ri);a.addEventListener(Tn,d),a.dispatchEvent(b),b.defaultPrevented||He(v??document.body,{select:!0}),a.removeEventListener(Tn,d),Ai.remove(m)},0)}}},[a,u,d,m]);const x=l.useCallback(v=>{if(!o&&!n||m.paused)return;const g=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(g&&b){const y=v.currentTarget,[w,C]=ep(y);w&&C?!v.shiftKey&&b===C?(v.preventDefault(),o&&He(w,{select:!0})):v.shiftKey&&b===w&&(v.preventDefault(),o&&He(C,{select:!0})):b===y&&v.preventDefault()}},[o,n,m.paused]);return p.jsx(ee.div,{tabIndex:-1,...s,ref:h,onKeyDown:x})});wr.displayName=Qf;function Jf(e,{select:t=!1}={}){const o=document.activeElement;for(const n of e)if(He(n,{select:t}),document.activeElement!==o)return}function ep(e){const t=Us(e),o=Pi(t,e),n=Pi(t.reverse(),e);return[o,n]}function Us(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 Pi(e,t){for(const o of e)if(!tp(o,{upTo:t}))return o}function tp(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 op(e){return e instanceof HTMLInputElement&&"select"in e}function He(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&op(e)&&t&&e.select()}}var Ai=np();function np(){let e=[];return{add(t){const o=e[0];t!==o&&(o==null||o.pause()),e=Ti(e,t),e.unshift(t)},remove(t){var o;e=Ti(e,t),(o=e[0])==null||o.resume()}}}function Ti(e,t){const o=[...e],n=o.indexOf(t);return n!==-1&&o.splice(n,1),o}function rp(e){return e.filter(t=>t.tagName!=="A")}var ip="Portal",Ko=l.forwardRef((e,t)=>{var a;const{container:o,...n}=e,[r,i]=l.useState(!1);ue(()=>i(!0),[]);const s=o||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?mr.createPortal(p.jsx(ee.div,{...n,ref:t}),s):null});Ko.displayName=ip;function sp(e,t){return l.useReducer((o,n)=>t[o][n]??o,e)}var tt=e=>{const{present:t,children:o}=e,n=ap(t),r=typeof o=="function"?o({present:n.isPresent}):l.Children.only(o),i=ne(n.ref,lp(r));return typeof o=="function"||n.isPresent?l.cloneElement(r,{ref:i}):null};tt.displayName="Presence";function ap(e){const[t,o]=l.useState(),n=l.useRef(null),r=l.useRef(e),i=l.useRef("none"),s=e?"mounted":"unmounted",[a,c]=sp(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=vo(n.current);i.current=a==="mounted"?u:"none"},[a]),ue(()=>{const u=n.current,d=r.current;if(d!==e){const h=i.current,m=vo(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ue(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=m=>{const v=vo(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(c("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=m=>{m.target===t&&(i.current=vo(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(u=>{n.current=u?getComputedStyle(u):null,o(u)},[])}}function vo(e){return(e==null?void 0:e.animationName)||"none"}function lp(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 Nn=0;function Ks(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ni()),document.body.insertAdjacentElement("beforeend",e[1]??Ni()),Nn++,()=>{Nn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Nn--}},[])}function Ni(){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 Re=function(){return Re=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},Re.apply(this,arguments)};function Ys(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 cp(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 Po="right-scroll-bar-position",Ao="width-before-scroll-bar",up="with-scroll-bars-hidden",dp="--removed-body-scroll-bar-size";function On(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function fp(e,t){var o=Q.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 pp=typeof window<"u"?l.useLayoutEffect:l.useEffect,Oi=new WeakMap;function vp(e,t){var o=fp(null,function(n){return e.forEach(function(r){return On(r,n)})});return pp(function(){var n=Oi.get(o);if(n){var r=new Set(n),i=new Set(e),s=o.current;r.forEach(function(a){i.has(a)||On(a,null)}),i.forEach(function(a){r.has(a)||On(a,s)})}Oi.set(o,e)},[e]),o}function mp(e){return e}function hp(e,t){t===void 0&&(t=mp);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 s=t(i,n);return o.push(s),function(){o=o.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;o.length;){var s=o;o=[],s.forEach(i)}o={push:function(a){return i(a)},filter:function(){return o}}},assignMedium:function(i){n=!0;var s=[];if(o.length){var a=o;o=[],a.forEach(i),s=o}var c=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),o={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),o}}}};return r}function gp(e){e===void 0&&(e={});var t=hp(null);return t.options=Re({async:!0,ssr:!1},e),t}var Xs=function(e){var t=e.sideCar,o=Ys(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,Re({},o))};Xs.isSideCarExport=!0;function xp(e,t){return e.useMedium(t),Xs}var Zs=gp(),kn=function(){},Yo=l.forwardRef(function(e,t){var o=l.useRef(null),n=l.useState({onScrollCapture:kn,onWheelCapture:kn,onTouchMoveCapture:kn}),r=n[0],i=n[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,x=e.noIsolation,v=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,C=Ys(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,R=vp([o,t]),E=Re(Re({},C),r);return l.createElement(l.Fragment,null,d&&l.createElement(S,{sideCar:Zs,removeScrollBar:u,shards:f,noRelative:m,noIsolation:x,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:o,gapMode:w}),s?l.cloneElement(l.Children.only(a),Re(Re({},E),{ref:R})):l.createElement(y,Re({},E,{className:c,ref:R}),a))});Yo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yo.classNames={fullWidth:Ao,zeroRight:Po};var bp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=bp();return t&&e.setAttribute("nonce",t),e}function wp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Cp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Sp=function(){var e=0,t=null;return{add:function(o){e==0&&(t=yp())&&(wp(t,o),Cp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ep=function(){var e=Sp();return function(t,o){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}},Qs=function(){var e=Ep(),t=function(o){var n=o.styles,r=o.dynamic;return e(n,r),null};return t},Rp={left:0,top:0,right:0,gap:0},$n=function(e){return parseInt(e||"",10)||0},Pp=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[$n(o),$n(n),$n(r)]},Ap=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Rp;var t=Pp(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])}},Tp=Qs(),Ot="data-scroll-locked",Np=function(e,t,o,n){var r=e.left,i=e.top,s=e.right,a=e.gap;return o===void 0&&(o="margin"),`
2
- .`.concat(up,` {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),oe=require("react"),wr=require("react-dom");function Cr(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=Cr(oe),Zt=Cr(wr);function Sr(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=Sr(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Er(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Sr(e))&&(n&&(n+=" "),n+=t);return n}const il=(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}),Bt="-",Mn=[],al="arbitrary..",ll=e=>{const t=ul(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return cl(s);const a=s.split(Bt),c=a[0]===""&&a.length>1?1:0;return Pr(a,c,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=n[s],u=o[s];return c?u?il(u,c):c:u||Mn}return o[s]||Mn}}},Pr=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const r=e[t],i=o.nextPart.get(r);if(i){const u=Pr(e,t+1,i);if(u)return u}const s=o.validators;if(s===null)return;const a=t===0?e.join(Bt):e.slice(t).join(Bt),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(f.validator(a))return f.classGroupId}},cl=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?al+n:void 0})(),ul=e=>{const{theme:t,classGroups:o}=e;return dl(o,t)},dl=(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 s=e[i];fl(s,t,o,n)}},fl=(e,t,o,n)=>{if(typeof e=="string"){pl(e,t,o);return}if(typeof e=="function"){vl(e,t,o,n);return}ml(e,t,o,n)},pl=(e,t,o)=>{const n=e===""?t:Tr(t,e);n.classGroupId=o},vl=(e,t,o,n)=>{if(gl(e)){tn(e(n),t,o,n);return}t.validators===null&&(t.validators=[]),t.validators.push(sl(o,e))},ml=(e,t,o,n)=>{const r=Object.entries(e),i=r.length;for(let s=0;s<i;s++){const[a,c]=r[s];tn(c,Tr(t,a),o,n)}},Tr=(e,t)=>{let o=e;const n=t.split(Bt),r=n.length;for(let i=0;i<r;i++){const s=n[i];let a=o.nextPart.get(s);a||(a=Rr(),o.nextPart.set(s,a)),o=a}return o},gl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,hl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),n=Object.create(null);const r=(i,s)=>{o[i]=s,t++,t>e&&(t=0,n=o,o=Object.create(null))};return{get(i){let s=o[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return r(i,s),s},set(i,s){i in o?o[i]=s:r(i,s)}}},Fo="!",Ln=":",xl=[],Fn=(e,t,o,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:n,isExternal:r}),bl=e=>{const{prefix:t,experimentalParseClassName:o}=e;let n=r=>{const i=[];let s=0,a=0,c=0,u;const f=r.length;for(let v=0;v<f;v++){const h=r[v];if(s===0&&a===0){if(h===Ln){i.push(r.slice(c,v)),c=v+1;continue}if(h==="/"){u=v;continue}}h==="["?s++:h==="]"?s--:h==="("?a++:h===")"&&a--}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=s=>s.startsWith(r)?i(s.slice(r.length)):Fn(xl,!1,s,void 0,!0)}if(o){const r=n;n=i=>o({className:i,parseClassName:r})}return n},yl=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 s=o[i],a=s[0]==="[",c=t.has(s);a||c?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(s)):r.push(s)}return r.length>0&&(r.sort(),n.push(...r)),n}},wl=e=>({cache:hl(e.cacheSize),parseClassName:bl(e),sortModifiers:yl(e),...ll(e)}),Cl=/\s+/,Sl=(e,t)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i}=t,s=[],a=e.trim().split(Cl);let c="";for(let u=a.length-1;u>=0;u-=1){const f=a[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(s.indexOf(C)>-1)continue;s.push(C);const S=r(y,h);for(let A=0;A<S.length;++A){const R=S[A];s.push(w+R)}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=Ar(o))&&(r&&(r+=" "),r+=n);return r},Ar=e=>{if(typeof e=="string")return e;let t,o="";for(let n=0;n<e.length;n++)e[n]&&(t=Ar(e[n]))&&(o&&(o+=" "),o+=t);return o},Rl=(e,...t)=>{let o,n,r,i;const s=c=>{const u=t.reduce((f,p)=>p(f),e());return o=wl(u),n=o.cache.get,r=o.cache.set,i=a,a(c)},a=c=>{const u=n(c);if(u)return u;const f=Sl(c,o);return r(c,f),f};return i=s,(...c)=>i(El(...c))},Pl=[],re=e=>{const t=o=>o[e]||Pl;return t.isThemeGetter=!0,t},kr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ir=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Tl=/^\d+\/\d+$/,Al=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kl=/\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$/,Il=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Nl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Tl.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),ke=e=>!!e&&Number.isInteger(Number(e)),So=e=>e.endsWith("%")&&W(e.slice(0,-1)),Pe=e=>Al.test(e),Ol=()=>!0,_l=e=>kl.test(e)&&!Il.test(e),Nr=()=>!1,Dl=e=>Nl.test(e),Ml=e=>jl.test(e),Ll=e=>!N(e)&&!j(e),Fl=e=>it(e,_r,Nr),N=e=>kr.test(e),ze=e=>it(e,Dr,_l),Eo=e=>it(e,ql,W),$n=e=>it(e,jr,Nr),$l=e=>it(e,Or,Ml),kt=e=>it(e,Mr,Dl),j=e=>Ir.test(e),vt=e=>st(e,Dr),Bl=e=>st(e,Wl),Bn=e=>st(e,jr),Vl=e=>st(e,_r),zl=e=>st(e,Or),It=e=>st(e,Mr,!0),it=(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=Ir.exec(e);return n?n[1]?t(n[1]):o:!1},jr=e=>e==="position"||e==="percentage",Or=e=>e==="image"||e==="url",_r=e=>e==="length"||e==="size"||e==="bg-size",Dr=e=>e==="length",ql=e=>e==="number",Wl=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"),s=re("breakpoint"),a=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],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],E=()=>[j,N,c],F=()=>[Ke,"full","auto",...E()],B=()=>[ke,"none","subgrid",j,N],K=()=>["auto",{span:["full",ke,j,N]},ke,j,N],Z=()=>[ke,"auto",j,N],Y=()=>["auto","min","max","fr",j,N],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...E()],z=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],T=()=>[e,j,N],te=()=>[...C(),Bn,$n,{position:[j,N]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",Vl,Fl,{size:[j,N]}],P=()=>[So,vt,ze],O=()=>["","none","full",u,j,N],M=()=>["",W,vt,ze],_=()=>["solid","dashed","dotted","double"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>[W,So,Bn,$n],q=()=>["","none",b,j,N],U=()=>["none",W,j,N],X=()=>["none",W,j,N],ee=()=>[W,j,N],J=()=>[Ke,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pe],breakpoint:[Pe],color:[Ol],container:[Pe],"drop-shadow":[Pe],ease:["in","out","in-out"],font:[Ll],"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,a]}],"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:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],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:[ke,"auto",j,N]}],basis:[{basis:[Ke,"full","auto",a,...E()]}],"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:[ke,"first","last","none",j,N]}],"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:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[a,"screen",...z()]}],"min-w":[{"min-w":[a,"screen","none",...z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...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,vt,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,j,Eo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",So,N]}],"font-family":[{font:[Bl,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,Eo]}],leading:[{leading:[i,...E()]}],"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:E()}],"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:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ke,j,N],radial:["",j,N],conic:[ke,j,N]},zl,$l]}],"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: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:[..._(),"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,vt,ze]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",f,It,kt]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",p,It,kt]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:M()}],"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":M()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",g,It,kt]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[W,j,N]}],"mix-blend":[{"mix-blend":[...G(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":G()}],"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":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"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":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"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":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"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":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"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":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"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":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"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":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":k()}],"mask-image-radial-to-pos":[{"mask-radial-to":k()}],"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":k()}],"mask-image-conic-to-pos":[{"mask-conic-to":k()}],"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:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,N]}],filter:[{filter:["","none",j,N]}],blur:[{blur:q()}],brightness:[{brightness:[W,j,N]}],contrast:[{contrast:[W,j,N]}],"drop-shadow":[{"drop-shadow":["","none",m,It,kt]}],"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":q()}],"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":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j,N]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[W,vt,ze,Eo]}],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"]}},Gl=Rl(Hl),I=(...e)=>Gl(Er(e));function Vn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fe(...e){return t=>{let o=!1;const n=e.map(r=>{const i=Vn(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():Vn(e[r],null)}}}}function Q(...e){return l.useCallback(fe(...e),e)}var Ul=Symbol.for("react.lazy"),Vt=l[" use ".trim().toString()];function Kl(e){return typeof e=="object"&&e!==null&&"then"in e}function Lr(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ul&&"_payload"in e&&Kl(e._payload)}function Yt(e){const t=Zl(e),o=l.forwardRef((n,r)=>{let{children:i,...s}=n;Lr(i)&&typeof Vt=="function"&&(i=Vt(i._payload));const a=l.Children.toArray(i),c=a.find(Xl);if(c){const u=c.props.children,f=a.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,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}var on=Yt("Slot");function Zl(e){const t=l.forwardRef((o,n)=>{let{children:r,...i}=o;if(Lr(r)&&typeof Vt=="function"&&(r=Vt(r._payload)),l.isValidElement(r)){const s=Jl(r),a=Ql(i,r.props);return r.type!==l.Fragment&&(a.ref=n?fe(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yl=Symbol("radix.slottable");function Xl(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yl}function Ql(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function Jl(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,qn=Er,Me=(e,t)=>o=>{var n;if((t==null?void 0:t.variants)==null)return qn(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:r,defaultVariants:i}=t,s=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]}),a=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,...a}[v]):{...i,...a}[v]===h})?[...u,p,g]:u},[]);return qn(e,s,c,o==null?void 0:o.class,o==null?void 0:o.className)},nn=Me("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 s=o?on:"button";return d.jsx(s,{"data-slot":"button",className:I(nn({variant:e,size:t,className:n})),ref:i,...r})});Fr.displayName="Button";var ec=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tc=ec.reduce((e,t)=>{const o=Yt(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,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,a=o?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return d.jsx(tc.div,{"data-orientation":i,...a,...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}),sc=Me("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"}}),ac=({className:e,orientation:t,...o})=>d.jsx("div",{role:"group","data-slot":"volt-ui-button-group","data-orientation":t,className:I(sc({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=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dc=uc.reduce((e,t)=>{const o=Yt(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),fc="Label",Vr=l.forwardRef((e,t)=>d.jsx(dc.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())}}));Vr.displayName=fc;var pc=Vr;const vc=Me("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(pc,{"data-slot":"label",className:I(vc({variant:e,size:t,className:o})),...n}),zr=oe.createContext(null),yt=()=>{const e=oe.useContext(zr);if(!e)throw new Error("FieldInput must be used within a Field component");return e},mc=({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}),gc=({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}),hc=({className:e,children:t,onClick:o,...n})=>{const r=l.useRef(null);return d.jsx(zr.Provider,{value:{inputRef:r},children:d.jsx("div",{role:"group","data-slot":"field",className:I("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-bg-accent-a3 volt-ui-hover:bg-accent-a4 volt-ui-data-[invalid=true]:bg-error-soft volt-ui-focus-within:outline-2 volt-ui-focus-within:outline-offset-2 [&:not([data-invalid=true]):focus-within]:outline-accent-a8 volt-ui-data-[invalid=true]:focus-within:outline-error-a8 volt-ui-data-[invalid=true]:hover:bg-error-a4","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",e),onClick:i=>{var s,a;i.stopPropagation(),i.target===i.currentTarget&&r.current&&!r.current.disabled&&((a=(s=r.current)==null?void 0:s.dataset.slot)!=null&&a.match(/select-trigger/)&&r.current.click(),r.current.focus()),o==null||o(i)},...n,children:t})})},xc=({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}),bc=({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}),yc=({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}),wc=({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}),Cc=({className:e,children:t,errors:o,...n})=>{const r=oe.useMemo(()=>{var s;if(t)return t;if(!(o!=null&&o.length))return null;const i=[...new Map(o.map(a=>[a==null?void 0:a.message,a])).values()];return(i==null?void 0:i.length)==1?(s=i[0])==null?void 0:s.message:d.jsx("ul",{className:"volt-ui-flex volt-ui-list-disc volt-ui-flex-col volt-ui-m-0",children:i.map((a,c)=>(a==null?void 0:a.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:a.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},qr=oe.forwardRef(({className:e,...t},o)=>{const{inputRef:n}=yt();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})});qr.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 Sc=Me("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"}}),Ec=({className:e,align:t="start",...o})=>d.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:I(Sc({align:t}),e),...o}),Hr=oe.forwardRef(({className:e,resize:t="none",...o},n)=>{const{inputRef:r}=yt();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})});Hr.displayName="FieldTextarea";var Hn=1,Rc=.9,Pc=.8,Tc=.17,Ro=.1,Po=.999,Ac=.9999,kc=.99,Ic=/[\\\/_+.#"@\[\(\{&]/,Nc=/[\\\/_+.#"@\[\(\{&]/g,jc=/[\s-]/,Gr=/[\s-]/g;function $o(e,t,o,n,r,i,s){if(i===t.length)return r===e.length?Hn:kc;var a=`${r},${i}`;if(s[a]!==void 0)return s[a];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,s),p>f&&(u===r?p*=Hn:Ic.test(e.charAt(u-1))?(p*=Pc,m=e.slice(r,u-1).match(Nc),m&&r>0&&(p*=Math.pow(Po,m.length))):jc.test(e.charAt(u-1))?(p*=Rc,b=e.slice(r,u-1).match(Gr),b&&r>0&&(p*=Math.pow(Po,b.length))):(p*=Tc,r>0&&(p*=Math.pow(Po,u-r))),e.charAt(u)!==t.charAt(i)&&(p*=Ac)),(p<Ro&&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,s),g*Ro>p&&(p=g*Ro)),p>f&&(f=p),u=o.indexOf(c,u+1);return s[a]=f,f}function Gn(e){return e.toLowerCase().replace(Gr," ")}function Oc(e,t,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,$o(e,t,Gn(e),Gn(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 _c(e,t){const o=l.createContext(t),n=i=>{const{children:s,...a}=i,c=l.useMemo(()=>a,Object.values(a));return d.jsx(o.Provider,{value:c,children:s})};n.displayName=e+"Provider";function r(i){const s=l.useContext(o);if(s)return s;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,s){const a=l.createContext(s),c=o.length;o=[...o,s];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])||a,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])||a,b=l.useContext(m);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,f]}const r=()=>{const i=o.map(s=>l.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[n,Dc(r,...t)]}function Dc(...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 s=n.reduce((a,{useScope:c,scopeName:u})=>{const p=c(i)[`__scope${u}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}var se=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Mc=l[" useId ".trim().toString()]||(()=>{}),Lc=0;function ie(e){const[t,o]=l.useState(Mc());return se(()=>{o(n=>n??String(Lc++))},[e]),e||(t?`radix-${t}`:"")}var Fc=l[" useInsertionEffect ".trim().toString()]||se;function pe({prop:e,defaultProp:t,onChange:o=()=>{},caller:n}){const[r,i,s]=$c({defaultProp:t,onChange:o}),a=e!==void 0,c=a?e:r;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==a&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,n])}const u=l.useCallback(f=>{var p;if(a){const g=Bc(f)?f(e):f;g!==e&&((p=s.current)==null||p.call(s,g))}else i(f)},[a,e,i,s]);return[c,u]}function $c({defaultProp:e,onChange:t}){const[o,n]=l.useState(e),r=l.useRef(o),i=l.useRef(t);return Fc(()=>{i.current=t},[t]),l.useEffect(()=>{var s;r.current!==o&&((s=i.current)==null||s.call(i,o),r.current=o)},[o,r]),[o,n,i]}function Bc(e){return typeof e=="function"}function Vc(e){const t=zc(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(Wc);if(c){const u=c.props.children,f=a.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,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function zc(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=Gc(r),a=Hc(i,r.props);return r.type!==l.Fragment&&(a.ref=n?fe(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qc=Symbol("radix.slottable");function Wc(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qc}function Hc(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function Gc(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 Uc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=Uc.reduce((e,t)=>{const o=Vc(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Kc(e,t){e&&Zt.flushSync(()=>e.dispatchEvent(t))}function je(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 Zc(e,t=globalThis==null?void 0:globalThis.document){const o=je(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 Yc="DismissableLayer",Bo="dismissableLayer.update",Xc="dismissableLayer.pointerDownOutside",Qc="dismissableLayer.focusOutside",Un,Ur=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,u=l.useContext(Ur),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=l.useState({}),b=Q(t,R=>p(R)),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=tu(R=>{const E=R.target,F=[...u.branches].some(B=>B.contains(E));!C||F||(r==null||r(R),s==null||s(R),R.defaultPrevented||a==null||a())},g),A=ou(R=>{const E=R.target;[...u.branches].some(B=>B.contains(E))||(i==null||i(R),s==null||s(R),R.defaultPrevented||a==null||a())},g);return Zc(R=>{x===u.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},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 R=()=>m({});return document.addEventListener(Bo,R),()=>document.removeEventListener(Bo,R)},[]),d.jsx($.div,{...c,ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,A.onFocusCapture),onBlurCapture:L(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,S.onPointerDownCapture)})});wt.displayName=Yc;var Jc="DismissableLayerBranch",eu=l.forwardRef((e,t)=>{const o=l.useContext(Ur),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})});eu.displayName=Jc;function tu(e,t=globalThis==null?void 0:globalThis.document){const o=je(e),n=l.useRef(!1),r=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){Kr(Xc,o,u,{discrete:!0})};const u={originalEvent:a};a.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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,o]),{onPointerDownCapture:()=>n.current=!0}}function ou(e,t=globalThis==null?void 0:globalThis.document){const o=je(e),n=l.useRef(!1);return l.useEffect(()=>{const r=i=>{i.target&&!n.current&&Kr(Qc,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 Kr(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?Kc(r,i):r.dispatchEvent(i)}var To="focusScope.autoFocusOnMount",Ao="focusScope.autoFocusOnUnmount",Zn={bubbles:!1,cancelable:!0},nu="FocusScope",Xt=l.forwardRef((e,t)=>{const{loop:o=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...s}=e,[a,c]=l.useState(null),u=je(r),f=je(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||!a)return;const C=w.target;a.contains(C)?p.current=C:Ie(p.current,{select:!0})},h=function(w){if(m.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||Ie(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ie(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",h);const x=new MutationObserver(y);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",h),x.disconnect()}}},[n,a,m.paused]),l.useEffect(()=>{if(a){Xn.add(m);const v=document.activeElement;if(!a.contains(v)){const y=new CustomEvent(To,Zn);a.addEventListener(To,u),a.dispatchEvent(y),y.defaultPrevented||(ru(cu(Zr(a)),{select:!0}),document.activeElement===v&&Ie(a))}return()=>{a.removeEventListener(To,u),setTimeout(()=>{const y=new CustomEvent(Ao,Zn);a.addEventListener(Ao,f),a.dispatchEvent(y),y.defaultPrevented||Ie(v??document.body,{select:!0}),a.removeEventListener(Ao,f),Xn.remove(m)},0)}}},[a,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]=iu(x);w&&C?!v.shiftKey&&y===C?(v.preventDefault(),o&&Ie(w,{select:!0})):v.shiftKey&&y===w&&(v.preventDefault(),o&&Ie(C,{select:!0})):y===x&&v.preventDefault()}},[o,n,m.paused]);return d.jsx($.div,{tabIndex:-1,...s,ref:g,onKeyDown:b})});Xt.displayName=nu;function ru(e,{select:t=!1}={}){const o=document.activeElement;for(const n of e)if(Ie(n,{select:t}),document.activeElement!==o)return}function iu(e){const t=Zr(e),o=Yn(t,e),n=Yn(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 Yn(e,t){for(const o of e)if(!su(o,{upTo:t}))return o}function su(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 au(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&au(e)&&t&&e.select()}}var Xn=lu();function lu(){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 cu(e){return e.filter(t=>t.tagName!=="A")}var uu="Portal",Ct=l.forwardRef((e,t)=>{var a;const{container:o,...n}=e,[r,i]=l.useState(!1);se(()=>i(!0),[]);const s=o||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?wr.createPortal(d.jsx($.div,{...n,ref:t}),s):null});Ct.displayName=uu;function du(e,t){return l.useReducer((o,n)=>t[o][n]??o,e)}var he=e=>{const{present:t,children:o}=e,n=fu(t),r=typeof o=="function"?o({present:n.isPresent}):l.Children.only(o),i=Q(n.ref,pu(r));return typeof o=="function"||n.isPresent?l.cloneElement(r,{ref:i}):null};he.displayName="Presence";function fu(e){const[t,o]=l.useState(),n=l.useRef(null),r=l.useRef(e),i=l.useRef("none"),s=e?"mounted":"unmounted",[a,c]=du(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Nt(n.current);i.current=a==="mounted"?u:"none"},[a]),se(()=>{const u=n.current,f=r.current;if(f!==e){const g=i.current,m=Nt(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]),se(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=m=>{const v=Nt(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=Nt(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(a),ref:l.useCallback(u=>{n.current=u?getComputedStyle(u):null,o(u)},[])}}function Nt(e){return(e==null?void 0:e.animationName)||"none"}function pu(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 ko=0;function sn(){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()),ko++,()=>{ko===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ko--}},[])}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 we=function(){return we=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},we.apply(this,arguments)};function Yr(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 vu(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 Lt="right-scroll-bar-position",Ft="width-before-scroll-bar",mu="with-scroll-bars-hidden",gu="--removed-body-scroll-bar-size";function Io(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hu(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 xu=typeof window<"u"?l.useLayoutEffect:l.useEffect,er=new WeakMap;function bu(e,t){var o=hu(null,function(n){return e.forEach(function(r){return Io(r,n)})});return xu(function(){var n=er.get(o);if(n){var r=new Set(n),i=new Set(e),s=o.current;r.forEach(function(a){i.has(a)||Io(a,null)}),i.forEach(function(a){r.has(a)||Io(a,s)})}er.set(o,e)},[e]),o}function yu(e){return e}function wu(e,t){t===void 0&&(t=yu);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 s=t(i,n);return o.push(s),function(){o=o.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;o.length;){var s=o;o=[],s.forEach(i)}o={push:function(a){return i(a)},filter:function(){return o}}},assignMedium:function(i){n=!0;var s=[];if(o.length){var a=o;o=[],a.forEach(i),s=o}var c=function(){var f=s;s=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),o={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),o}}}};return r}function Cu(e){e===void 0&&(e={});var t=wu(null);return t.options=we({async:!0,ssr:!1},e),t}var Xr=function(e){var t=e.sideCar,o=Yr(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,we({},o))};Xr.isSideCarExport=!0;function Su(e,t){return e.useMedium(t),Xr}var Qr=Cu(),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],s=e.forwardProps,a=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=Yr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,A=bu([o,t]),R=we(we({},C),r);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:Qr,removeScrollBar:u,shards:p,noRelative:m,noIsolation:b,inert:v,setCallbacks:i,allowPinchZoom:!!h,lockRef:o,gapMode:w}),s?l.cloneElement(l.Children.only(a),we(we({},R),{ref:A})):l.createElement(x,we({},R,{className:c,ref:A}),a))});Qt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qt.classNames={fullWidth:Ft,zeroRight:Lt};var Eu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ru(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Eu();return t&&e.setAttribute("nonce",t),e}function Pu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Au=function(){var e=0,t=null;return{add:function(o){e==0&&(t=Ru())&&(Pu(t,o),Tu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ku=function(){var e=Au();return function(t,o){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}},Jr=function(){var e=ku(),t=function(o){var n=o.styles,r=o.dynamic;return e(n,r),null};return t},Iu={left:0,top:0,right:0,gap:0},jo=function(e){return parseInt(e||"",10)||0},Nu=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)]},ju=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Iu;var t=Nu(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])}},Ou=Jr(),et="data-scroll-locked",_u=function(e,t,o,n){var r=e.left,i=e.top,s=e.right,a=e.gap;return o===void 0&&(o="margin"),`
2
+ .`.concat(mu,` {
3
3
  overflow: hidden `).concat(n,`;
4
4
  padding-right: `).concat(a,"px ").concat(n,`;
5
5
  }
6
- body[`).concat(Ot,`] {
6
+ body[`).concat(et,`] {
7
7
  overflow: hidden `).concat(n,`;
8
8
  overscroll-behavior: contain;
9
9
  `).concat([t&&"position: relative ".concat(n,";"),o==="margin"&&`
@@ -16,74 +16,30 @@
16
16
  `),o==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
17
17
  }
18
18
 
19
- .`).concat(Po,` {
19
+ .`).concat(Lt,` {
20
20
  right: `).concat(a,"px ").concat(n,`;
21
21
  }
22
22
 
23
- .`).concat(Ao,` {
23
+ .`).concat(Ft,` {
24
24
  margin-right: `).concat(a,"px ").concat(n,`;
25
25
  }
26
26
 
27
- .`).concat(Po," .").concat(Po,` {
27
+ .`).concat(Lt," .").concat(Lt,` {
28
28
  right: 0 `).concat(n,`;
29
29
  }
30
30
 
31
- .`).concat(Ao," .").concat(Ao,` {
31
+ .`).concat(Ft," .").concat(Ft,` {
32
32
  margin-right: 0 `).concat(n,`;
33
33
  }
34
34
 
35
- body[`).concat(Ot,`] {
36
- `).concat(dp,": ").concat(a,`px;
35
+ body[`).concat(et,`] {
36
+ `).concat(gu,": ").concat(a,`px;
37
37
  }
38
- `)},ki=function(){var e=parseInt(document.body.getAttribute(Ot)||"0",10);return isFinite(e)?e:0},Op=function(){l.useEffect(function(){return document.body.setAttribute(Ot,(ki()+1).toString()),function(){var e=ki()-1;e<=0?document.body.removeAttribute(Ot):document.body.setAttribute(Ot,e.toString())}},[])},kp=function(e){var t=e.noRelative,o=e.noImportant,n=e.gapMode,r=n===void 0?"margin":n;Op();var i=l.useMemo(function(){return Ap(r)},[r]);return l.createElement(Tp,{styles:Np(i,!t,r,o?"":"!important")})},Xn=!1;if(typeof window<"u")try{var mo=Object.defineProperty({},"passive",{get:function(){return Xn=!0,!0}});window.addEventListener("test",mo,mo),window.removeEventListener("test",mo,mo)}catch{Xn=!1}var Ct=Xn?{passive:!1}:!1,$p=function(e){return e.tagName==="TEXTAREA"},Js=function(e,t){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[t]!=="hidden"&&!(o.overflowY===o.overflowX&&!$p(e)&&o[t]==="visible")},Ip=function(e){return Js(e,"overflowY")},_p=function(e){return Js(e,"overflowX")},$i=function(e,t){var o=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=ea(e,n);if(r){var i=ta(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==o.body);return!1},Dp=function(e){var t=e.scrollTop,o=e.scrollHeight,n=e.clientHeight;return[t,o,n]},jp=function(e){var t=e.scrollLeft,o=e.scrollWidth,n=e.clientWidth;return[t,o,n]},ea=function(e,t){return e==="v"?Ip(t):_p(t)},ta=function(e,t){return e==="v"?Dp(t):jp(t)},Mp=function(e,t){return e==="h"&&t==="rtl"?-1:1},Lp=function(e,t,o,n,r){var i=Mp(e,window.getComputedStyle(t).direction),s=i*n,a=o.target,c=t.contains(a),u=!1,d=s>0,f=0,h=0;do{if(!a)break;var m=ta(e,a),x=m[0],v=m[1],g=m[2],b=v-g-i*x;(x||b)&&ea(e,a)&&(f+=b,h+=x);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(u=!0),u},ho=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ii=function(e){return[e.deltaX,e.deltaY]},_i=function(e){return e&&"current"in e?e.current:e},Fp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Bp=function(e){return`
38
+ `)},tr=function(){var e=parseInt(document.body.getAttribute(et)||"0",10);return isFinite(e)?e:0},Du=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())}},[])},Mu=function(e){var t=e.noRelative,o=e.noImportant,n=e.gapMode,r=n===void 0?"margin":n;Du();var i=l.useMemo(function(){return ju(r)},[r]);return l.createElement(Ou,{styles:_u(i,!t,r,o?"":"!important")})},Vo=!1;if(typeof window<"u")try{var jt=Object.defineProperty({},"passive",{get:function(){return Vo=!0,!0}});window.addEventListener("test",jt,jt),window.removeEventListener("test",jt,jt)}catch{Vo=!1}var Ze=Vo?{passive:!1}:!1,Lu=function(e){return e.tagName==="TEXTAREA"},ei=function(e,t){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[t]!=="hidden"&&!(o.overflowY===o.overflowX&&!Lu(e)&&o[t]==="visible")},Fu=function(e){return ei(e,"overflowY")},$u=function(e){return ei(e,"overflowX")},or=function(e,t){var o=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=ti(e,n);if(r){var i=oi(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==o.body);return!1},Bu=function(e){var t=e.scrollTop,o=e.scrollHeight,n=e.clientHeight;return[t,o,n]},Vu=function(e){var t=e.scrollLeft,o=e.scrollWidth,n=e.clientWidth;return[t,o,n]},ti=function(e,t){return e==="v"?Fu(t):$u(t)},oi=function(e,t){return e==="v"?Bu(t):Vu(t)},zu=function(e,t){return e==="h"&&t==="rtl"?-1:1},qu=function(e,t,o,n,r){var i=zu(e,window.getComputedStyle(t).direction),s=i*n,a=o.target,c=t.contains(a),u=!1,f=s>0,p=0,g=0;do{if(!a)break;var m=oi(e,a),b=m[0],v=m[1],h=m[2],y=v-h-i*b;(b||y)&&ti(e,a)&&(p+=y,g+=b);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(u=!0),u},Ot=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},Wu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hu=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},Wp=0,St=[];function Vp(e){var t=l.useRef([]),o=l.useRef([0,0]),n=l.useRef(),r=l.useState(Wp++)[0],i=l.useState(Qs)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=cp([e.lockRef.current],(e.shards||[]).map(_i),!0).filter(Boolean);return v.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(v,g){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var b=ho(v),y=o.current,w="deltaX"in v?v.deltaX:y[0]-b[0],C="deltaY"in v?v.deltaY:y[1]-b[1],S,R=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&R.type==="range")return!1;var P=$i(E,R);if(!P)return!0;if(P?S=E:(S=E==="v"?"h":"v",P=$i(E,R)),!P)return!1;if(!n.current&&"changedTouches"in v&&(w||C)&&(n.current=S),!S)return!0;var $=n.current||S;return Lp($,g,v,$==="h"?w:C)},[]),c=l.useCallback(function(v){var g=v;if(!(!St.length||St[St.length-1]!==i)){var b="deltaY"in g?Ii(g):ho(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&Fp(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(s.current.shards||[]).map(_i).filter(Boolean).filter(function(S){return S.contains(g.target)}),C=w.length>0?a(g,w[0]):!s.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),u=l.useCallback(function(v,g,b,y){var w={name:v,delta:g,target:b,should:y,shadowParent:zp(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),d=l.useCallback(function(v){o.current=ho(v),n.current=void 0},[]),f=l.useCallback(function(v){u(v.type,Ii(v),v.target,a(v,e.lockRef.current))},[]),h=l.useCallback(function(v){u(v.type,ho(v),v.target,a(v,e.lockRef.current))},[]);l.useEffect(function(){return St.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Ct),document.addEventListener("touchmove",c,Ct),document.addEventListener("touchstart",d,Ct),function(){St=St.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,Ct),document.removeEventListener("touchmove",c,Ct),document.removeEventListener("touchstart",d,Ct)}},[]);var m=e.removeScrollBar,x=e.inert;return l.createElement(l.Fragment,null,x?l.createElement(i,{styles:Bp(r)}):null,m?l.createElement(kp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qp=xp(Zs,Vp);var Cr=l.forwardRef(function(e,t){return l.createElement(Yo,Re({},e,{ref:t,sideCar:qp}))});Cr.classNames=Yo.classNames;var Hp=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Et=new WeakMap,go=new WeakMap,xo={},In=0,oa=function(e){return e&&(e.host||oa(e.parentNode))},Gp=function(e,t){return t.map(function(o){if(e.contains(o))return o;var n=oa(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})},Up=function(e,t,o,n){var r=Gp(t,Array.isArray(e)?e:[e]);xo[o]||(xo[o]=new WeakMap);var i=xo[o],s=[],a=new Set,c=new Set(r),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};r.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(n),x=m!==null&&m!=="false",v=(Et.get(h)||0)+1,g=(i.get(h)||0)+1;Et.set(h,v),i.set(h,g),s.push(h),v===1&&x&&go.set(h,!0),g===1&&h.setAttribute(o,"true"),x||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return d(t),a.clear(),In++,function(){s.forEach(function(f){var h=Et.get(f)-1,m=i.get(f)-1;Et.set(f,h),i.set(f,m),h||(go.has(f)||f.removeAttribute(n),go.delete(f)),m||f.removeAttribute(o)}),In--,In||(Et=new WeakMap,Et=new WeakMap,go=new WeakMap,xo={})}},na=function(e,t,o){o===void 0&&(o="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=Hp(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),Up(n,r,o,"aria-hidden")):function(){return null}};function Kp(e){const t=Yp(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(Zp);if(c){const u=c.props.children,d=a.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return p.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function Yp(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=Jp(r),a=Qp(i,r.props);return r.type!==l.Fragment&&(a.ref=n?Me(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xp=Symbol("radix.slottable");function Zp(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xp}function Qp(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function Jp(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 Xo="Dialog",[ra]=ze(Xo),[ev,Ce]=ra(Xo),ia=e=>{const{__scopeDialog:t,children:o,open:n,defaultOpen:r,onOpenChange:i,modal:s=!0}=e,a=l.useRef(null),c=l.useRef(null),[u,d]=dt({prop:n,defaultProp:r??!1,onChange:i,caller:Xo});return p.jsx(ev,{scope:t,triggerRef:a,contentRef:c,contentId:de(),titleId:de(),descriptionId:de(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(f=>!f),[d]),modal:s,children:o})};ia.displayName=Xo;var sa="DialogTrigger",tv=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=Ce(sa,o),i=ne(t,r.triggerRef);return p.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Rr(r.open),...n,ref:i,onClick:U(e.onClick,r.onOpenToggle)})});tv.displayName=sa;var Sr="DialogPortal",[ov,aa]=ra(Sr,{forceMount:void 0}),la=e=>{const{__scopeDialog:t,forceMount:o,children:n,container:r}=e,i=Ce(Sr,t);return p.jsx(ov,{scope:t,forceMount:o,children:l.Children.map(n,s=>p.jsx(tt,{present:o||i.open,children:p.jsx(Ko,{asChild:!0,container:r,children:s})}))})};la.displayName=Sr;var Do="DialogOverlay",ca=l.forwardRef((e,t)=>{const o=aa(Do,e.__scopeDialog),{forceMount:n=o.forceMount,...r}=e,i=Ce(Do,e.__scopeDialog);return i.modal?p.jsx(tt,{present:n||i.open,children:p.jsx(rv,{...r,ref:t})}):null});ca.displayName=Do;var nv=Kp("DialogOverlay.RemoveScroll"),rv=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=Ce(Do,o);return p.jsx(Cr,{as:nv,allowPinchZoom:!0,shards:[r.contentRef],children:p.jsx(ee.div,{"data-state":Rr(r.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ft="DialogContent",ua=l.forwardRef((e,t)=>{const o=aa(ft,e.__scopeDialog),{forceMount:n=o.forceMount,...r}=e,i=Ce(ft,e.__scopeDialog);return p.jsx(tt,{present:n||i.open,children:i.modal?p.jsx(iv,{...r,ref:t}):p.jsx(sv,{...r,ref:t})})});ua.displayName=ft;var iv=l.forwardRef((e,t)=>{const o=Ce(ft,e.__scopeDialog),n=l.useRef(null),r=ne(t,o.contentRef,n);return l.useEffect(()=>{const i=n.current;if(i)return na(i)},[]),p.jsx(da,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=o.triggerRef.current)==null||s.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault())})}),sv=l.forwardRef((e,t)=>{const o=Ce(ft,e.__scopeDialog),n=l.useRef(!1),r=l.useRef(!1);return p.jsx(da,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=o.triggerRef.current)==null||a.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 s=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),da=l.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,...s}=e,a=Ce(ft,o),c=l.useRef(null),u=ne(t,c);return Ks(),p.jsxs(p.Fragment,{children:[p.jsx(wr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:i,children:p.jsx(Uo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Rr(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(uv,{titleId:a.titleId}),p.jsx(fv,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Er="DialogTitle",av=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=Ce(Er,o);return p.jsx(ee.h2,{id:r.titleId,...n,ref:t})});av.displayName=Er;var fa="DialogDescription",lv=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=Ce(fa,o);return p.jsx(ee.p,{id:r.descriptionId,...n,ref:t})});lv.displayName=fa;var pa="DialogClose",cv=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=Ce(pa,o);return p.jsx(ee.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>r.onOpenChange(!1))})});cv.displayName=pa;function Rr(e){return e?"open":"closed"}var va="DialogTitleWarning",[gC,ma]=Of(va,{contentName:ft,titleName:Er,docsSlug:"dialog"}),uv=({titleId:e})=>{const t=ma(va),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},Gu=0,Ye=[];function Uu(e){var t=l.useRef([]),o=l.useRef([0,0]),n=l.useRef(),r=l.useState(Gu++)[0],i=l.useState(Jr)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=vu([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 a=l.useCallback(function(v,h){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.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,A=v.target,R=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&R==="h"&&A.type==="range")return!1;var E=or(R,A);if(!E)return!0;if(E?S=R:(S=R==="v"?"h":"v",E=or(R,A)),!E)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(!(!Ye.length||Ye[Ye.length-1]!==i)){var y="deltaY"in h?nr(h):Ot(h),x=t.current.filter(function(S){return S.name===h.type&&(S.target===h.target||h.target===S.shadowParent)&&Wu(S.delta,y)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var w=(s.current.shards||[]).map(rr).filter(Boolean).filter(function(S){return S.contains(h.target)}),C=w.length>0?a(h,w[0]):!s.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:Ku(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=Ot(v),n.current=void 0},[]),p=l.useCallback(function(v){u(v.type,nr(v),v.target,a(v,e.lockRef.current))},[]),g=l.useCallback(function(v){u(v.type,Ot(v),v.target,a(v,e.lockRef.current))},[]);l.useEffect(function(){return Ye.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Ze),document.addEventListener("touchmove",c,Ze),document.addEventListener("touchstart",f,Ze),function(){Ye=Ye.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,Ze),document.removeEventListener("touchmove",c,Ze),document.removeEventListener("touchstart",f,Ze)}},[]);var m=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(i,{styles:Hu(r)}):null,m?l.createElement(Mu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ku(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zu=Su(Qr,Uu);var Jt=l.forwardRef(function(e,t){return l.createElement(Qt,we({},e,{ref:t,sideCar:Zu}))});Jt.classNames=Qt.classNames;var Yu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xe=new WeakMap,_t=new WeakMap,Dt={},Oo=0,ni=function(e){return e&&(e.host||ni(e.parentNode))},Xu=function(e,t){return t.map(function(o){if(e.contains(o))return o;var n=ni(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})},Qu=function(e,t,o,n){var r=Xu(t,Array.isArray(e)?e:[e]);Dt[o]||(Dt[o]=new WeakMap);var i=Dt[o],s=[],a=new Set,c=new Set(r),u=function(p){!p||a.has(p)||(a.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(a.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),s.push(g),v===1&&b&&_t.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),a.clear(),Oo++,function(){s.forEach(function(p){var g=Xe.get(p)-1,m=i.get(p)-1;Xe.set(p,g),i.set(p,m),g||(_t.has(p)||p.removeAttribute(n),_t.delete(p)),m||p.removeAttribute(o)}),Oo--,Oo||(Xe=new WeakMap,Xe=new WeakMap,_t=new WeakMap,Dt={})}},an=function(e,t,o){o===void 0&&(o="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=Yu(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),Qu(n,r,o,"aria-hidden")):function(){return null}};function Ju(e){const t=ed(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(od);if(c){const u=c.props.children,f=a.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,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function ed(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=rd(r),a=nd(i,r.props);return r.type!==l.Fragment&&(a.ref=n?fe(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var td=Symbol("radix.slottable");function od(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===td}function nd(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function rd(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 eo="Dialog",[ri]=de(eo),[id,xe]=ri(eo),ii=e=>{const{__scopeDialog:t,children:o,open:n,defaultOpen:r,onOpenChange:i,modal:s=!0}=e,a=l.useRef(null),c=l.useRef(null),[u,f]=pe({prop:n,defaultProp:r??!1,onChange:i,caller:eo});return d.jsx(id,{scope:t,triggerRef:a,contentRef:c,contentId:ie(),titleId:ie(),descriptionId:ie(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:s,children:o})};ii.displayName=eo;var si="DialogTrigger",ai=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=xe(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)})});ai.displayName=si;var ln="DialogPortal",[sd,li]=ri(ln,{forceMount:void 0}),ci=e=>{const{__scopeDialog:t,forceMount:o,children:n,container:r}=e,i=xe(ln,t);return d.jsx(sd,{scope:t,forceMount:o,children:l.Children.map(n,s=>d.jsx(he,{present:o||i.open,children:d.jsx(Ct,{asChild:!0,container:r,children:s})}))})};ci.displayName=ln;var zt="DialogOverlay",ui=l.forwardRef((e,t)=>{const o=li(zt,e.__scopeDialog),{forceMount:n=o.forceMount,...r}=e,i=xe(zt,e.__scopeDialog);return i.modal?d.jsx(he,{present:n||i.open,children:d.jsx(ld,{...r,ref:t})}):null});ui.displayName=zt;var ad=Ju("DialogOverlay.RemoveScroll"),ld=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=xe(zt,o);return d.jsx(Jt,{as:ad,allowPinchZoom:!0,shards:[r.contentRef],children:d.jsx($.div,{"data-state":un(r.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),qe="DialogContent",di=l.forwardRef((e,t)=>{const o=li(qe,e.__scopeDialog),{forceMount:n=o.forceMount,...r}=e,i=xe(qe,e.__scopeDialog);return d.jsx(he,{present:n||i.open,children:i.modal?d.jsx(cd,{...r,ref:t}):d.jsx(ud,{...r,ref:t})})});di.displayName=qe;var cd=l.forwardRef((e,t)=>{const o=xe(qe,e.__scopeDialog),n=l.useRef(null),r=Q(t,o.contentRef,n);return l.useEffect(()=>{const i=n.current;if(i)return an(i)},[]),d.jsx(fi,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=o.triggerRef.current)==null||s.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:L(e.onFocusOutside,i=>i.preventDefault())})}),ud=l.forwardRef((e,t)=>{const o=xe(qe,e.__scopeDialog),n=l.useRef(!1),r=l.useRef(!1);return d.jsx(fi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=o.triggerRef.current)==null||a.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 s=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),fi=l.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,...s}=e,a=xe(qe,o),c=l.useRef(null),u=Q(t,c);return sn(),d.jsxs(d.Fragment,{children:[d.jsx(Xt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:i,children:d.jsx(wt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":un(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(dd,{titleId:a.titleId}),d.jsx(pd,{contentRef:c,descriptionId:a.descriptionId})]})]})}),cn="DialogTitle",pi=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=xe(cn,o);return d.jsx($.h2,{id:r.titleId,...n,ref:t})});pi.displayName=cn;var vi="DialogDescription",mi=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=xe(vi,o);return d.jsx($.p,{id:r.descriptionId,...n,ref:t})});mi.displayName=vi;var gi="DialogClose",hi=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=xe(gi,o);return d.jsx($.button,{type:"button",...n,ref:t,onClick:L(e.onClick,()=>r.onOpenChange(!1))})});hi.displayName=gi;function un(e){return e?"open":"closed"}var xi="DialogTitleWarning",[sh,bi]=_c(xi,{contentName:qe,titleName:cn,docsSlug:"dialog"}),dd=({titleId:e})=>{const t=bi(xi),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},dv="DialogDescriptionWarning",fv=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ma(dv).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},pv=ia,vv=la,mv=ca,hv=ua,gv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ot=gv.reduce((e,t)=>{const o=_o(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Zt='[cmdk-group=""]',_n='[cmdk-group-items=""]',xv='[cmdk-group-heading=""]',ha='[cmdk-item=""]',Di=`${ha}:not([aria-disabled="true"])`,Zn="cmdk-item-select",Tt="data-value",bv=(e,t,o)=>Nf(e,t,o),ga=l.createContext(void 0),io=()=>l.useContext(ga),xa=l.createContext(void 0),Pr=()=>l.useContext(xa),ba=l.createContext(void 0),ya=l.forwardRef((e,t)=>{let o=Nt(()=>{var T,D;return{search:"",value:(D=(T=e.value)!=null?T:e.defaultValue)!=null?D:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Nt(()=>new Set),r=Nt(()=>new Map),i=Nt(()=>new Map),s=Nt(()=>new Set),a=wa(e),{label:c,children:u,value:d,onValueChange:f,filter:h,shouldFilter:m,loop:x,disablePointerSelection:v=!1,vimBindings:g=!0,...b}=e,y=de(),w=de(),C=de(),S=l.useRef(null),R=Ov();pt(()=>{if(d!==void 0){let T=d.trim();o.current.value=T,E.emit()}},[d]),pt(()=>{R(6,W)},[]);let E=l.useMemo(()=>({subscribe:T=>(s.current.add(T),()=>s.current.delete(T)),snapshot:()=>o.current,setState:(T,D,B)=>{var j,K,N,G;if(!Object.is(o.current[T],D)){if(o.current[T]=D,T==="search")z(),I(),R(1,V);else if(T==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Y=document.getElementById(C);Y?Y.focus():(j=document.getElementById(y))==null||j.focus()}if(R(7,()=>{var Y;o.current.selectedItemId=(Y=_())==null?void 0:Y.id,E.emit()}),B||R(5,W),((K=a.current)==null?void 0:K.value)!==void 0){let Y=D??"";(G=(N=a.current).onValueChange)==null||G.call(N,Y);return}}E.emit()}},emit:()=>{s.current.forEach(T=>T())}}),[]),P=l.useMemo(()=>({value:(T,D,B)=>{var j;D!==((j=i.current.get(T))==null?void 0:j.value)&&(i.current.set(T,{value:D,keywords:B}),o.current.filtered.items.set(T,$(D,B)),R(2,()=>{I(),E.emit()}))},item:(T,D)=>(n.current.add(T),D&&(r.current.has(D)?r.current.get(D).add(T):r.current.set(D,new Set([T]))),R(3,()=>{z(),I(),o.current.value||V(),E.emit()}),()=>{i.current.delete(T),n.current.delete(T),o.current.filtered.items.delete(T);let B=_();R(4,()=>{z(),(B==null?void 0:B.getAttribute("id"))===T&&V(),E.emit()})}),group:T=>(r.current.has(T)||r.current.set(T,new Set),()=>{i.current.delete(T),r.current.delete(T)}),filter:()=>a.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:y,inputId:C,labelId:w,listInnerRef:S}),[]);function $(T,D){var B,j;let K=(j=(B=a.current)==null?void 0:B.filter)!=null?j:bv;return T?K(T,o.current.search,D):0}function I(){if(!o.current.search||a.current.shouldFilter===!1)return;let T=o.current.filtered.items,D=[];o.current.filtered.groups.forEach(j=>{let K=r.current.get(j),N=0;K.forEach(G=>{let Y=T.get(G);N=Math.max(Y,N)}),D.push([j,N])});let B=S.current;q().sort((j,K)=>{var N,G;let Y=j.getAttribute("id"),X=K.getAttribute("id");return((N=T.get(X))!=null?N:0)-((G=T.get(Y))!=null?G:0)}).forEach(j=>{let K=j.closest(_n);K?K.appendChild(j.parentElement===K?j:j.closest(`${_n} > *`)):B.appendChild(j.parentElement===B?j:j.closest(`${_n} > *`))}),D.sort((j,K)=>K[1]-j[1]).forEach(j=>{var K;let N=(K=S.current)==null?void 0:K.querySelector(`${Zt}[${Tt}="${encodeURIComponent(j[0])}"]`);N==null||N.parentElement.appendChild(N)})}function V(){let T=q().find(B=>B.getAttribute("aria-disabled")!=="true"),D=T==null?void 0:T.getAttribute(Tt);E.setState("value",D||void 0)}function z(){var T,D,B,j;if(!o.current.search||a.current.shouldFilter===!1){o.current.filtered.count=n.current.size;return}o.current.filtered.groups=new Set;let K=0;for(let N of n.current){let G=(D=(T=i.current.get(N))==null?void 0:T.value)!=null?D:"",Y=(j=(B=i.current.get(N))==null?void 0:B.keywords)!=null?j:[],X=$(G,Y);o.current.filtered.items.set(N,X),X>0&&K++}for(let[N,G]of r.current)for(let Y of G)if(o.current.filtered.items.get(Y)>0){o.current.filtered.groups.add(N);break}o.current.filtered.count=K}function W(){var T,D,B;let j=_();j&&(((T=j.parentElement)==null?void 0:T.firstChild)===j&&((B=(D=j.closest(Zt))==null?void 0:D.querySelector(xv))==null||B.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function _(){var T;return(T=S.current)==null?void 0:T.querySelector(`${ha}[aria-selected="true"]`)}function q(){var T;return Array.from(((T=S.current)==null?void 0:T.querySelectorAll(Di))||[])}function O(T){let D=q()[T];D&&E.setState("value",D.getAttribute(Tt))}function F(T){var D;let B=_(),j=q(),K=j.findIndex(G=>G===B),N=j[K+T];(D=a.current)!=null&&D.loop&&(N=K+T<0?j[j.length-1]:K+T===j.length?j[0]:j[K+T]),N&&E.setState("value",N.getAttribute(Tt))}function A(T){let D=_(),B=D==null?void 0:D.closest(Zt),j;for(;B&&!j;)B=T>0?Tv(B,Zt):Nv(B,Zt),j=B==null?void 0:B.querySelector(Di);j?E.setState("value",j.getAttribute(Tt)):F(T)}let H=()=>O(q().length-1),oe=T=>{T.preventDefault(),T.metaKey?H():T.altKey?A(1):F(1)},ie=T=>{T.preventDefault(),T.metaKey?O(0):T.altKey?A(-1):F(-1)};return l.createElement(ot.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:T=>{var D;(D=b.onKeyDown)==null||D.call(b,T);let B=T.nativeEvent.isComposing||T.keyCode===229;if(!(T.defaultPrevented||B))switch(T.key){case"n":case"j":{g&&T.ctrlKey&&oe(T);break}case"ArrowDown":{oe(T);break}case"p":case"k":{g&&T.ctrlKey&&ie(T);break}case"ArrowUp":{ie(T);break}case"Home":{T.preventDefault(),O(0);break}case"End":{T.preventDefault(),H();break}case"Enter":{T.preventDefault();let j=_();if(j){let K=new Event(Zn);j.dispatchEvent(K)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:$v},c),Zo(e,T=>l.createElement(xa.Provider,{value:E},l.createElement(ga.Provider,{value:P},T))))}),yv=l.forwardRef((e,t)=>{var o,n;let r=de(),i=l.useRef(null),s=l.useContext(ba),a=io(),c=wa(e),u=(n=(o=c.current)==null?void 0:o.forceMount)!=null?n:s==null?void 0:s.forceMount;pt(()=>{if(!u)return a.item(r,s==null?void 0:s.id)},[u]);let d=Ca(r,i,[e.value,e.children,i],e.keywords),f=Pr(),h=Ye(R=>R.value&&R.value===d.current),m=Ye(R=>u||a.filter()===!1?!0:R.search?R.filtered.items.get(r)>0:!0);l.useEffect(()=>{let R=i.current;if(!(!R||e.disabled))return R.addEventListener(Zn,x),()=>R.removeEventListener(Zn,x)},[m,e.onSelect,e.disabled]);function x(){var R,E;v(),(E=(R=c.current).onSelect)==null||E.call(R,d.current)}function v(){f.setState("value",d.current,!0)}if(!m)return null;let{disabled:g,value:b,onSelect:y,forceMount:w,keywords:C,...S}=e;return l.createElement(ot.div,{ref:Me(i,t),...S,id:r,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!h,"data-disabled":!!g,"data-selected":!!h,onPointerMove:g||a.getDisablePointerSelection()?void 0:v,onClick:g?void 0:x},e.children)}),wv=l.forwardRef((e,t)=>{let{heading:o,children:n,forceMount:r,...i}=e,s=de(),a=l.useRef(null),c=l.useRef(null),u=de(),d=io(),f=Ye(m=>r||d.filter()===!1?!0:m.search?m.filtered.groups.has(s):!0);pt(()=>d.group(s),[]),Ca(s,a,[e.value,e.heading,c]);let h=l.useMemo(()=>({id:s,forceMount:r}),[r]);return l.createElement(ot.div,{ref:Me(a,t),...i,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},o&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},o),Zo(e,m=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?u:void 0},l.createElement(ba.Provider,{value:h},m))))}),Cv=l.forwardRef((e,t)=>{let{alwaysRender:o,...n}=e,r=l.useRef(null),i=Ye(s=>!s.search);return!o&&!i?null:l.createElement(ot.div,{ref:Me(r,t),...n,"cmdk-separator":"",role:"separator"})}),Sv=l.forwardRef((e,t)=>{let{onValueChange:o,...n}=e,r=e.value!=null,i=Pr(),s=Ye(u=>u.search),a=Ye(u=>u.selectedItemId),c=io();return l.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),l.createElement(ot.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":a,id:c.inputId,type:"text",value:r?e.value:s,onChange:u=>{r||i.setState("search",u.target.value),o==null||o(u.target.value)}})}),Ev=l.forwardRef((e,t)=>{let{children:o,label:n="Suggestions",...r}=e,i=l.useRef(null),s=l.useRef(null),a=Ye(u=>u.selectedItemId),c=io();return l.useEffect(()=>{if(s.current&&i.current){let u=s.current,d=i.current,f,h=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let m=u.offsetHeight;d.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return h.observe(u),()=>{cancelAnimationFrame(f),h.unobserve(u)}}},[]),l.createElement(ot.div,{ref:Me(i,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":n,id:c.listId},Zo(e,u=>l.createElement("div",{ref:Me(s,c.listInnerRef),"cmdk-list-sizer":""},u)))}),Rv=l.forwardRef((e,t)=>{let{open:o,onOpenChange:n,overlayClassName:r,contentClassName:i,container:s,...a}=e;return l.createElement(pv,{open:o,onOpenChange:n},l.createElement(vv,{container:s},l.createElement(mv,{"cmdk-overlay":"",className:r}),l.createElement(hv,{"aria-label":e.label,"cmdk-dialog":"",className:i},l.createElement(ya,{ref:t,...a}))))}),Pv=l.forwardRef((e,t)=>Ye(o=>o.filtered.count===0)?l.createElement(ot.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Av=l.forwardRef((e,t)=>{let{progress:o,children:n,label:r="Loading...",...i}=e;return l.createElement(ot.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},Zo(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),nt=Object.assign(ya,{List:Ev,Item:yv,Input:Sv,Group:wv,Separator:Cv,Dialog:Rv,Empty:Pv,Loading:Av});function Tv(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return o;o=o.nextElementSibling}}function Nv(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return o;o=o.previousElementSibling}}function wa(e){let t=l.useRef(e);return pt(()=>{t.current=e}),t}var pt=typeof window>"u"?l.useEffect:l.useLayoutEffect;function Nt(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Ye(e){let t=Pr(),o=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,o,o)}function Ca(e,t,o,n=[]){let r=l.useRef(),i=io();return pt(()=>{var s;let a=(()=>{var u;for(let d of o){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():r.current}})(),c=n.map(u=>u.trim());i.value(e,a,c),(s=t.current)==null||s.setAttribute(Tt,a),r.current=a}),r}var Ov=()=>{let[e,t]=l.useState(),o=Nt(()=>new Map);return pt(()=>{o.current.forEach(n=>n()),o.current=new Map},[e]),(n,r)=>{o.current.set(n,r),t({})}};function kv(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Zo({asChild:e,children:t},o){return e&&l.isValidElement(t)?l.cloneElement(kv(t),{ref:t.ref},o(t.props.children)):o(t)}var $v={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function ce(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 Iv(e,t){const o=l.createContext(t),n=i=>{const{children:s,...a}=i,c=l.useMemo(()=>a,Object.values(a));return p.jsx(o.Provider,{value:c,children:s})};n.displayName=e+"Provider";function r(i){const s=l.useContext(o);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,r]}function bt(e,t=[]){let o=[];function n(i,s){const a=l.createContext(s),c=o.length;o=[...o,s];const u=f=>{var b;const{scope:h,children:m,...x}=f,v=((b=h==null?void 0:h[e])==null?void 0:b[c])||a,g=l.useMemo(()=>x,Object.values(x));return p.jsx(v.Provider,{value:g,children:m})};u.displayName=i+"Provider";function d(f,h){var v;const m=((v=h==null?void 0:h[e])==null?void 0:v[c])||a,x=l.useContext(m);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const r=()=>{const i=o.map(s=>l.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[n,_v(r,...t)]}function _v(...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 s=n.reduce((a,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...a,...f}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}var Le=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Dv=l[" useId ".trim().toString()]||(()=>{}),jv=0;function kt(e){const[t,o]=l.useState(Dv());return Le(()=>{o(n=>n??String(jv++))},[e]),e||(t?`radix-${t}`:"")}var Mv=l[" useInsertionEffect ".trim().toString()]||Le;function qt({prop:e,defaultProp:t,onChange:o=()=>{},caller:n}){const[r,i,s]=Lv({defaultProp:t,onChange:o}),a=e!==void 0,c=a?e:r;{const d=l.useRef(e!==void 0);l.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const u=l.useCallback(d=>{var f;if(a){const h=Fv(d)?d(e):d;h!==e&&((f=s.current)==null||f.call(s,h))}else i(d)},[a,e,i,s]);return[c,u]}function Lv({defaultProp:e,onChange:t}){const[o,n]=l.useState(e),r=l.useRef(o),i=l.useRef(t);return Mv(()=>{i.current=t},[t]),l.useEffect(()=>{var s;r.current!==o&&((s=i.current)==null||s.call(i,o),r.current=o)},[o,r]),[o,n,i]}function Fv(e){return typeof e=="function"}function Bv(e){const t=Wv(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(zv);if(c){const u=c.props.children,d=a.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return p.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function Wv(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=Hv(r),a=qv(i,r.props);return r.type!==l.Fragment&&(a.ref=n?zt(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vv=Symbol("radix.slottable");function zv(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vv}function qv(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function Hv(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 Gv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],re=Gv.reduce((e,t)=>{const o=Bv(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Uv(e,t){e&&Bt.flushSync(()=>e.dispatchEvent(t))}function Dt(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 Kv(e,t=globalThis==null?void 0:globalThis.document){const o=Dt(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 Yv="DismissableLayer",Qn="dismissableLayer.update",Xv="dismissableLayer.pointerDownOutside",Zv="dismissableLayer.focusOutside",ji,Sa=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ar=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,u=l.useContext(Sa),[d,f]=l.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=l.useState({}),x=le(t,E=>f(E)),v=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(g),y=d?v.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=y>=b,S=em(E=>{const P=E.target,$=[...u.branches].some(I=>I.contains(P));!C||$||(r==null||r(E),s==null||s(E),E.defaultPrevented||a==null||a())},h),R=tm(E=>{const P=E.target;[...u.branches].some(I=>I.contains(P))||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},h);return Kv(E=>{y===u.layers.size-1&&(n==null||n(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),l.useEffect(()=>{if(d)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ji=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Mi(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ji)}},[d,h,o,u]),l.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Mi())},[d,u]),l.useEffect(()=>{const E=()=>m({});return document.addEventListener(Qn,E),()=>document.removeEventListener(Qn,E)},[]),p.jsx(re.div,{...c,ref:x,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,S.onPointerDownCapture)})});Ar.displayName=Yv;var Qv="DismissableLayerBranch",Jv=l.forwardRef((e,t)=>{const o=l.useContext(Sa),n=l.useRef(null),r=le(t,n);return l.useEffect(()=>{const i=n.current;if(i)return o.branches.add(i),()=>{o.branches.delete(i)}},[o.branches]),p.jsx(re.div,{...e,ref:r})});Jv.displayName=Qv;function em(e,t=globalThis==null?void 0:globalThis.document){const o=Dt(e),n=l.useRef(!1),r=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){Ea(Xv,o,u,{discrete:!0})};const u={originalEvent:a};a.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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,o]),{onPointerDownCapture:()=>n.current=!0}}function tm(e,t=globalThis==null?void 0:globalThis.document){const o=Dt(e),n=l.useRef(!1);return l.useEffect(()=>{const r=i=>{i.target&&!n.current&&Ea(Zv,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 Mi(){const e=new CustomEvent(Qn);document.dispatchEvent(e)}function Ea(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?Uv(r,i):r.dispatchEvent(i)}var Dn="focusScope.autoFocusOnMount",jn="focusScope.autoFocusOnUnmount",Li={bubbles:!1,cancelable:!0},om="FocusScope",Tr=l.forwardRef((e,t)=>{const{loop:o=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...s}=e,[a,c]=l.useState(null),u=Dt(r),d=Dt(i),f=l.useRef(null),h=le(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||!a)return;const C=w.target;a.contains(C)?f.current=C:Ge(f.current,{select:!0})},g=function(w){if(m.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||Ge(f.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ge(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",g),y.disconnect()}}},[n,a,m.paused]),l.useEffect(()=>{if(a){Bi.add(m);const v=document.activeElement;if(!a.contains(v)){const b=new CustomEvent(Dn,Li);a.addEventListener(Dn,u),a.dispatchEvent(b),b.defaultPrevented||(nm(lm(Ra(a)),{select:!0}),document.activeElement===v&&Ge(a))}return()=>{a.removeEventListener(Dn,u),setTimeout(()=>{const b=new CustomEvent(jn,Li);a.addEventListener(jn,d),a.dispatchEvent(b),b.defaultPrevented||Ge(v??document.body,{select:!0}),a.removeEventListener(jn,d),Bi.remove(m)},0)}}},[a,u,d,m]);const x=l.useCallback(v=>{if(!o&&!n||m.paused)return;const g=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(g&&b){const y=v.currentTarget,[w,C]=rm(y);w&&C?!v.shiftKey&&b===C?(v.preventDefault(),o&&Ge(w,{select:!0})):v.shiftKey&&b===w&&(v.preventDefault(),o&&Ge(C,{select:!0})):b===y&&v.preventDefault()}},[o,n,m.paused]);return p.jsx(re.div,{tabIndex:-1,...s,ref:h,onKeyDown:x})});Tr.displayName=om;function nm(e,{select:t=!1}={}){const o=document.activeElement;for(const n of e)if(Ge(n,{select:t}),document.activeElement!==o)return}function rm(e){const t=Ra(e),o=Fi(t,e),n=Fi(t.reverse(),e);return[o,n]}function Ra(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 Fi(e,t){for(const o of e)if(!im(o,{upTo:t}))return o}function im(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 sm(e){return e instanceof HTMLInputElement&&"select"in e}function Ge(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&sm(e)&&t&&e.select()}}var Bi=am();function am(){let e=[];return{add(t){const o=e[0];t!==o&&(o==null||o.pause()),e=Wi(e,t),e.unshift(t)},remove(t){var o;e=Wi(e,t),(o=e[0])==null||o.resume()}}}function Wi(e,t){const o=[...e],n=o.indexOf(t);return n!==-1&&o.splice(n,1),o}function lm(e){return e.filter(t=>t.tagName!=="A")}var cm="Portal",Nr=l.forwardRef((e,t)=>{var a;const{container:o,...n}=e,[r,i]=l.useState(!1);Le(()=>i(!0),[]);const s=o||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?mr.createPortal(p.jsx(re.div,{...n,ref:t}),s):null});Nr.displayName=cm;function um(e,t){return l.useReducer((o,n)=>t[o][n]??o,e)}var yt=e=>{const{present:t,children:o}=e,n=dm(t),r=typeof o=="function"?o({present:n.isPresent}):l.Children.only(o),i=le(n.ref,fm(r));return typeof o=="function"||n.isPresent?l.cloneElement(r,{ref:i}):null};yt.displayName="Presence";function dm(e){const[t,o]=l.useState(),n=l.useRef(null),r=l.useRef(e),i=l.useRef("none"),s=e?"mounted":"unmounted",[a,c]=um(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=bo(n.current);i.current=a==="mounted"?u:"none"},[a]),Le(()=>{const u=n.current,d=r.current;if(d!==e){const h=i.current,m=bo(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Le(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=m=>{const v=bo(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(c("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=m=>{m.target===t&&(i.current=bo(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(u=>{n.current=u?getComputedStyle(u):null,o(u)},[])}}function bo(e){return(e==null?void 0:e.animationName)||"none"}function fm(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 Mn=0;function Pa(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vi()),document.body.insertAdjacentElement("beforeend",e[1]??Vi()),Mn++,()=>{Mn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mn--}},[])}function Vi(){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 Pe=function(){return Pe=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},Pe.apply(this,arguments)};function Aa(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 pm(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 To="right-scroll-bar-position",No="width-before-scroll-bar",vm="with-scroll-bars-hidden",mm="--removed-body-scroll-bar-size";function Ln(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hm(e,t){var o=Q.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 gm=typeof window<"u"?l.useLayoutEffect:l.useEffect,zi=new WeakMap;function xm(e,t){var o=hm(null,function(n){return e.forEach(function(r){return Ln(r,n)})});return gm(function(){var n=zi.get(o);if(n){var r=new Set(n),i=new Set(e),s=o.current;r.forEach(function(a){i.has(a)||Ln(a,null)}),i.forEach(function(a){r.has(a)||Ln(a,s)})}zi.set(o,e)},[e]),o}function bm(e){return e}function ym(e,t){t===void 0&&(t=bm);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 s=t(i,n);return o.push(s),function(){o=o.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;o.length;){var s=o;o=[],s.forEach(i)}o={push:function(a){return i(a)},filter:function(){return o}}},assignMedium:function(i){n=!0;var s=[];if(o.length){var a=o;o=[],a.forEach(i),s=o}var c=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),o={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),o}}}};return r}function wm(e){e===void 0&&(e={});var t=ym(null);return t.options=Pe({async:!0,ssr:!1},e),t}var Ta=function(e){var t=e.sideCar,o=Aa(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,Pe({},o))};Ta.isSideCarExport=!0;function Cm(e,t){return e.useMedium(t),Ta}var Na=wm(),Fn=function(){},Qo=l.forwardRef(function(e,t){var o=l.useRef(null),n=l.useState({onScrollCapture:Fn,onWheelCapture:Fn,onTouchMoveCapture:Fn}),r=n[0],i=n[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,x=e.noIsolation,v=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,C=Aa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,R=xm([o,t]),E=Pe(Pe({},C),r);return l.createElement(l.Fragment,null,d&&l.createElement(S,{sideCar:Na,removeScrollBar:u,shards:f,noRelative:m,noIsolation:x,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:o,gapMode:w}),s?l.cloneElement(l.Children.only(a),Pe(Pe({},E),{ref:R})):l.createElement(y,Pe({},E,{className:c,ref:R}),a))});Qo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qo.classNames={fullWidth:No,zeroRight:To};var Sm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Em(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sm();return t&&e.setAttribute("nonce",t),e}function Rm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Am=function(){var e=0,t=null;return{add:function(o){e==0&&(t=Em())&&(Rm(t,o),Pm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tm=function(){var e=Am();return function(t,o){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}},Oa=function(){var e=Tm(),t=function(o){var n=o.styles,r=o.dynamic;return e(n,r),null};return t},Nm={left:0,top:0,right:0,gap:0},Bn=function(e){return parseInt(e||"",10)||0},Om=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[Bn(o),Bn(n),Bn(r)]},km=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Nm;var t=Om(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])}},$m=Oa(),$t="data-scroll-locked",Im=function(e,t,o,n){var r=e.left,i=e.top,s=e.right,a=e.gap;return o===void 0&&(o="margin"),`
46
- .`.concat(vm,` {
47
- overflow: hidden `).concat(n,`;
48
- padding-right: `).concat(a,"px ").concat(n,`;
49
- }
50
- body[`).concat($t,`] {
51
- overflow: hidden `).concat(n,`;
52
- overscroll-behavior: contain;
53
- `).concat([t&&"position: relative ".concat(n,";"),o==="margin"&&`
54
- padding-left: `.concat(r,`px;
55
- padding-top: `).concat(i,`px;
56
- padding-right: `).concat(s,`px;
57
- margin-left:0;
58
- margin-top:0;
59
- margin-right: `).concat(a,"px ").concat(n,`;
60
- `),o==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
61
- }
62
-
63
- .`).concat(To,` {
64
- right: `).concat(a,"px ").concat(n,`;
65
- }
66
-
67
- .`).concat(No,` {
68
- margin-right: `).concat(a,"px ").concat(n,`;
69
- }
70
-
71
- .`).concat(To," .").concat(To,` {
72
- right: 0 `).concat(n,`;
73
- }
74
-
75
- .`).concat(No," .").concat(No,` {
76
- margin-right: 0 `).concat(n,`;
77
- }
78
-
79
- body[`).concat($t,`] {
80
- `).concat(mm,": ").concat(a,`px;
81
- }
82
- `)},qi=function(){var e=parseInt(document.body.getAttribute($t)||"0",10);return isFinite(e)?e:0},_m=function(){l.useEffect(function(){return document.body.setAttribute($t,(qi()+1).toString()),function(){var e=qi()-1;e<=0?document.body.removeAttribute($t):document.body.setAttribute($t,e.toString())}},[])},Dm=function(e){var t=e.noRelative,o=e.noImportant,n=e.gapMode,r=n===void 0?"margin":n;_m();var i=l.useMemo(function(){return km(r)},[r]);return l.createElement($m,{styles:Im(i,!t,r,o?"":"!important")})},Jn=!1;if(typeof window<"u")try{var yo=Object.defineProperty({},"passive",{get:function(){return Jn=!0,!0}});window.addEventListener("test",yo,yo),window.removeEventListener("test",yo,yo)}catch{Jn=!1}var Rt=Jn?{passive:!1}:!1,jm=function(e){return e.tagName==="TEXTAREA"},ka=function(e,t){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[t]!=="hidden"&&!(o.overflowY===o.overflowX&&!jm(e)&&o[t]==="visible")},Mm=function(e){return ka(e,"overflowY")},Lm=function(e){return ka(e,"overflowX")},Hi=function(e,t){var o=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=$a(e,n);if(r){var i=Ia(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==o.body);return!1},Fm=function(e){var t=e.scrollTop,o=e.scrollHeight,n=e.clientHeight;return[t,o,n]},Bm=function(e){var t=e.scrollLeft,o=e.scrollWidth,n=e.clientWidth;return[t,o,n]},$a=function(e,t){return e==="v"?Mm(t):Lm(t)},Ia=function(e,t){return e==="v"?Fm(t):Bm(t)},Wm=function(e,t){return e==="h"&&t==="rtl"?-1:1},Vm=function(e,t,o,n,r){var i=Wm(e,window.getComputedStyle(t).direction),s=i*n,a=o.target,c=t.contains(a),u=!1,d=s>0,f=0,h=0;do{if(!a)break;var m=Ia(e,a),x=m[0],v=m[1],g=m[2],b=v-g-i*x;(x||b)&&$a(e,a)&&(f+=b,h+=x);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(u=!0),u},wo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gi=function(e){return[e.deltaX,e.deltaY]},Ui=function(e){return e&&"current"in e?e.current:e},zm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qm=function(e){return`
83
- .block-interactivity-`.concat(e,` {pointer-events: none;}
84
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
85
- `)},Hm=0,Pt=[];function Gm(e){var t=l.useRef([]),o=l.useRef([0,0]),n=l.useRef(),r=l.useState(Hm++)[0],i=l.useState(Oa)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=pm([e.lockRef.current],(e.shards||[]).map(Ui),!0).filter(Boolean);return v.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(v,g){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var b=wo(v),y=o.current,w="deltaX"in v?v.deltaX:y[0]-b[0],C="deltaY"in v?v.deltaY:y[1]-b[1],S,R=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&R.type==="range")return!1;var P=Hi(E,R);if(!P)return!0;if(P?S=E:(S=E==="v"?"h":"v",P=Hi(E,R)),!P)return!1;if(!n.current&&"changedTouches"in v&&(w||C)&&(n.current=S),!S)return!0;var $=n.current||S;return Vm($,g,v,$==="h"?w:C)},[]),c=l.useCallback(function(v){var g=v;if(!(!Pt.length||Pt[Pt.length-1]!==i)){var b="deltaY"in g?Gi(g):wo(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&zm(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(s.current.shards||[]).map(Ui).filter(Boolean).filter(function(S){return S.contains(g.target)}),C=w.length>0?a(g,w[0]):!s.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),u=l.useCallback(function(v,g,b,y){var w={name:v,delta:g,target:b,should:y,shadowParent:Um(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),d=l.useCallback(function(v){o.current=wo(v),n.current=void 0},[]),f=l.useCallback(function(v){u(v.type,Gi(v),v.target,a(v,e.lockRef.current))},[]),h=l.useCallback(function(v){u(v.type,wo(v),v.target,a(v,e.lockRef.current))},[]);l.useEffect(function(){return Pt.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Rt),document.addEventListener("touchmove",c,Rt),document.addEventListener("touchstart",d,Rt),function(){Pt=Pt.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,Rt),document.removeEventListener("touchmove",c,Rt),document.removeEventListener("touchstart",d,Rt)}},[]);var m=e.removeScrollBar,x=e.inert;return l.createElement(l.Fragment,null,x?l.createElement(i,{styles:qm(r)}):null,m?l.createElement(Dm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Um(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Km=Cm(Na,Gm);var Or=l.forwardRef(function(e,t){return l.createElement(Qo,Pe({},e,{ref:t,sideCar:Km}))});Or.classNames=Qo.classNames;var Ym=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},At=new WeakMap,Co=new WeakMap,So={},Wn=0,_a=function(e){return e&&(e.host||_a(e.parentNode))},Xm=function(e,t){return t.map(function(o){if(e.contains(o))return o;var n=_a(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})},Zm=function(e,t,o,n){var r=Xm(t,Array.isArray(e)?e:[e]);So[o]||(So[o]=new WeakMap);var i=So[o],s=[],a=new Set,c=new Set(r),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};r.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(n),x=m!==null&&m!=="false",v=(At.get(h)||0)+1,g=(i.get(h)||0)+1;At.set(h,v),i.set(h,g),s.push(h),v===1&&x&&Co.set(h,!0),g===1&&h.setAttribute(o,"true"),x||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return d(t),a.clear(),Wn++,function(){s.forEach(function(f){var h=At.get(f)-1,m=i.get(f)-1;At.set(f,h),i.set(f,m),h||(Co.has(f)||f.removeAttribute(n),Co.delete(f)),m||f.removeAttribute(o)}),Wn--,Wn||(At=new WeakMap,At=new WeakMap,Co=new WeakMap,So={})}},Da=function(e,t,o){o===void 0&&(o="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=Ym(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),Zm(n,r,o,"aria-hidden")):function(){return null}};function Qm(e){const t=Jm(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(th);if(c){const u=c.props.children,d=a.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return p.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function Jm(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=nh(r),a=oh(i,r.props);return r.type!==l.Fragment&&(a.ref=n?zt(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var eh=Symbol("radix.slottable");function th(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eh}function oh(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function nh(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 Jo="Dialog",[ja]=bt(Jo),[rh,Se]=ja(Jo),Ma=e=>{const{__scopeDialog:t,children:o,open:n,defaultOpen:r,onOpenChange:i,modal:s=!0}=e,a=l.useRef(null),c=l.useRef(null),[u,d]=qt({prop:n,defaultProp:r??!1,onChange:i,caller:Jo});return p.jsx(rh,{scope:t,triggerRef:a,contentRef:c,contentId:kt(),titleId:kt(),descriptionId:kt(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(f=>!f),[d]),modal:s,children:o})};Ma.displayName=Jo;var La="DialogTrigger",Fa=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=Se(La,o),i=le(t,r.triggerRef);return p.jsx(re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Ir(r.open),...n,ref:i,onClick:ce(e.onClick,r.onOpenToggle)})});Fa.displayName=La;var kr="DialogPortal",[ih,Ba]=ja(kr,{forceMount:void 0}),Wa=e=>{const{__scopeDialog:t,forceMount:o,children:n,container:r}=e,i=Se(kr,t);return p.jsx(ih,{scope:t,forceMount:o,children:l.Children.map(n,s=>p.jsx(yt,{present:o||i.open,children:p.jsx(Nr,{asChild:!0,container:r,children:s})}))})};Wa.displayName=kr;var jo="DialogOverlay",Va=l.forwardRef((e,t)=>{const o=Ba(jo,e.__scopeDialog),{forceMount:n=o.forceMount,...r}=e,i=Se(jo,e.__scopeDialog);return i.modal?p.jsx(yt,{present:n||i.open,children:p.jsx(ah,{...r,ref:t})}):null});Va.displayName=jo;var sh=Qm("DialogOverlay.RemoveScroll"),ah=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=Se(jo,o);return p.jsx(Or,{as:sh,allowPinchZoom:!0,shards:[r.contentRef],children:p.jsx(re.div,{"data-state":Ir(r.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),vt="DialogContent",za=l.forwardRef((e,t)=>{const o=Ba(vt,e.__scopeDialog),{forceMount:n=o.forceMount,...r}=e,i=Se(vt,e.__scopeDialog);return p.jsx(yt,{present:n||i.open,children:i.modal?p.jsx(lh,{...r,ref:t}):p.jsx(ch,{...r,ref:t})})});za.displayName=vt;var lh=l.forwardRef((e,t)=>{const o=Se(vt,e.__scopeDialog),n=l.useRef(null),r=le(t,o.contentRef,n);return l.useEffect(()=>{const i=n.current;if(i)return Da(i)},[]),p.jsx(qa,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=o.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ce(e.onFocusOutside,i=>i.preventDefault())})}),ch=l.forwardRef((e,t)=>{const o=Se(vt,e.__scopeDialog),n=l.useRef(!1),r=l.useRef(!1);return p.jsx(qa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=o.triggerRef.current)==null||a.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 s=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),qa=l.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,...s}=e,a=Se(vt,o),c=l.useRef(null),u=le(t,c);return Pa(),p.jsxs(p.Fragment,{children:[p.jsx(Tr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:i,children:p.jsx(Ar,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ir(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(uh,{titleId:a.titleId}),p.jsx(fh,{contentRef:c,descriptionId:a.descriptionId})]})]})}),$r="DialogTitle",Ha=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=Se($r,o);return p.jsx(re.h2,{id:r.titleId,...n,ref:t})});Ha.displayName=$r;var Ga="DialogDescription",Ua=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=Se(Ga,o);return p.jsx(re.p,{id:r.descriptionId,...n,ref:t})});Ua.displayName=Ga;var Ka="DialogClose",Ya=l.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,r=Se(Ka,o);return p.jsx(re.button,{type:"button",...n,ref:t,onClick:ce(e.onClick,()=>r.onOpenChange(!1))})});Ya.displayName=Ka;function Ir(e){return e?"open":"closed"}var Xa="DialogTitleWarning",[xC,Za]=Iv(Xa,{contentName:vt,titleName:$r,docsSlug:"dialog"}),uh=({titleId:e})=>{const t=Za(Xa),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
86
-
87
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
88
-
89
- 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},dh="DialogDescriptionWarning",fh=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Za(dh).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},ph=Ma,vh=Fa,mh=Wa,hh=Va,gh=za,xh=Ha,bh=Ua,Qa=Ya;const yh=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),wh=({...e})=>p.jsx(ph,{"data-slot":"dialog",...e}),Ch=({...e})=>p.jsx(vh,{"data-slot":"dialog-trigger",...e}),Ja=({...e})=>p.jsx(mh,{"data-slot":"dialog-portal",...e}),Sh=({className:e,...t})=>p.jsx(Qa,{"data-slot":"dialog-close",className:k("volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-focus-visible:outline-accent-a8",e),...t}),el=({className:e,...t})=>p.jsx(hh,{"data-slot":"dialog-overlay",className:k("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}),Eh=({className:e,children:t,showCloseButton:o=!0,size:n="lg",...r})=>p.jsxs(Ja,{"data-slot":"dialog-portal",children:[p.jsx(el,{}),p.jsxs(gh,{"data-slot":"dialog-content",className:k("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&&p.jsxs(Qa,{"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:[p.jsx(yh,{}),p.jsx("span",{className:"volt-ui-sr-only",children:"Close"})]})]})]}),Rh=({className:e,...t})=>p.jsx("div",{"data-slot":"volt-ui-dialog-header",className:k("volt-ui-flex volt-ui-flex-col volt-ui-gap-2 volt-ui-text-left",e),...t}),Ph=({className:e,...t})=>p.jsx("div",{"data-slot":"volt-ui-dialog-footer",className:k("volt-ui-flex volt-ui-gap-2 volt-ui-justify-end",e),...t}),Ah=({className:e,...t})=>p.jsx(xh,{"data-slot":"volt-ui-dialog-title",className:k("volt-ui-text-lg volt-ui-leading-none volt-ui-font-semibold volt-ui-text-gray-default",e),...t}),Th=({className:e,...t})=>p.jsx(bh,{"data-slot":"volt-ui-dialog-description",className:k("volt-ui-text-gray-light volt-ui-text-sm",e),...t}),Nh=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),Oh=({className:e,...t})=>p.jsx(nt,{"data-slot":"command",className:k("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}),kh=({className:e,...t})=>p.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:[p.jsx(Nh,{className:"volt-ui-size-5 volt-ui-shrink-0 volt-ui-opacity-50"}),p.jsx(nt.Input,{"data-slot":"command-input",className:k("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})]}),$h=({className:e,...t})=>p.jsx(nt.List,{"data-slot":"command-list",className:k("volt-ui-scroll-py-1 volt-ui-overflow-x-hidden volt-ui-overflow-y-auto",e),...t}),Ih=({...e})=>p.jsx(nt.Empty,{"data-slot":"command-empty",className:"volt-ui-py-6 volt-ui-text-center volt-ui-text-sm",...e}),_h=({className:e,...t})=>p.jsx(nt.Group,{"data-slot":"command-group",className:k("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}),Dh=({className:e,...t})=>p.jsx(nt.Separator,{"data-slot":"command-separator",className:k("volt-ui-bg-gray-soft volt-ui--mx-1 volt-ui-h-px",e),...t}),jh=({className:e,...t})=>p.jsx(nt.Item,{"data-slot":"command-item",className:k("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}),Mh=({className:e,...t})=>p.jsx(nt.Loading,{"data-slot":"volt-ui-command-loading",className:k("volt-ui-text-gray-light",e),...t}),Lh=["top","right","bottom","left"],Xe=Math.min,pe=Math.max,Mo=Math.round,Eo=Math.floor,Ne=e=>({x:e,y:e}),Fh={left:"right",right:"left",bottom:"top",top:"bottom"},Bh={start:"end",end:"start"};function er(e,t,o){return pe(e,Xe(t,o))}function Fe(e,t){return typeof e=="function"?e(t):e}function Be(e){return e.split("-")[0]}function Ht(e){return e.split("-")[1]}function _r(e){return e==="x"?"y":"x"}function Dr(e){return e==="y"?"height":"width"}const Wh=new Set(["top","bottom"]);function Ae(e){return Wh.has(Be(e))?"y":"x"}function jr(e){return _r(Ae(e))}function Vh(e,t,o){o===void 0&&(o=!1);const n=Ht(e),r=jr(e),i=Dr(r);let s=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Lo(s)),[s,Lo(s)]}function zh(e){const t=Lo(e);return[tr(e),t,tr(t)]}function tr(e){return e.replace(/start|end/g,t=>Bh[t])}const Ki=["left","right"],Yi=["right","left"],qh=["top","bottom"],Hh=["bottom","top"];function Gh(e,t,o){switch(e){case"top":case"bottom":return o?t?Yi:Ki:t?Ki:Yi;case"left":case"right":return t?qh:Hh;default:return[]}}function Uh(e,t,o,n){const r=Ht(e);let i=Gh(Be(e),o==="start",n);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(tr)))),i}function Lo(e){return e.replace(/left|right|bottom|top/g,t=>Fh[t])}function Kh(e){return{top:0,right:0,bottom:0,left:0,...e}}function tl(e){return typeof e!="number"?Kh(e):{top:e,right:e,bottom:e,left:e}}function Fo(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 Xi(e,t,o){let{reference:n,floating:r}=e;const i=Ae(t),s=jr(t),a=Dr(s),c=Be(t),u=i==="y",d=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,h=n[a]/2-r[a]/2;let m;switch(c){case"top":m={x:d,y:n.y-r.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:f};break;case"left":m={x:n.x-r.width,y:f};break;default:m={x:n.x,y:n.y}}switch(Ht(t)){case"start":m[s]-=h*(o&&u?-1:1);break;case"end":m[s]+=h*(o&&u?-1:1);break}return m}const Yh=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s}=o,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=Xi(u,n,c),h=n,m={},x=0;for(let v=0;v<a.length;v++){const{name:g,fn:b}=a[v],{x:y,y:w,data:C,reset:S}=await b({x:d,y:f,initialPlacement:n,placement:h,strategy:r,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=y??d,f=w??f,m={...m,[g]:{...m[g],...C}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:f}=Xi(u,h,c)),v=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:m}};async function Jt(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=Fe(t,e),x=tl(m),g=a[h?f==="floating"?"reference":"floating":f],b=Fo(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(g)))==null||o?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),y=f==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.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=Fo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:c}):y);return{top:(b.top-S.top+x.top)/C.y,bottom:(S.bottom-b.bottom+x.bottom)/C.y,left:(b.left-S.left+x.left)/C.x,right:(S.right-b.right+x.right)/C.x}}const Xh=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=Fe(e,t)||{};if(u==null)return{};const f=tl(d),h={x:o,y:n},m=jr(r),x=Dr(m),v=await s.getDimensions(u),g=m==="y",b=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",C=i.reference[x]+i.reference[m]-h[m]-i.floating[x],S=h[m]-i.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let E=R?R[w]:0;(!E||!await(s.isElement==null?void 0:s.isElement(R)))&&(E=a.floating[w]||i.floating[x]);const P=C/2-S/2,$=E/2-v[x]/2-1,I=Xe(f[b],$),V=Xe(f[y],$),z=I,W=E-v[x]-V,_=E/2-v[x]/2+P,q=er(z,_,W),O=!c.arrow&&Ht(r)!=null&&_!==q&&i.reference[x]/2-(_<z?I:V)-v[x]/2<0,F=O?_<z?_-z:_-W:0;return{[m]:h[m]+F,data:{[m]:q,centerOffset:_-q-F,...O&&{alignmentOffset:F}},reset:O}}}),Zh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...g}=Fe(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const b=Be(r),y=Ae(a),w=Be(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=h||(w||!v?[Lo(a)]:zh(a)),R=x!=="none";!h&&R&&S.push(...Uh(a,v,x,C));const E=[a,...S],P=await Jt(t,g),$=[];let I=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&$.push(P[b]),f){const _=Vh(r,s,C);$.push(P[_[0]],P[_[1]])}if(I=[...I,{placement:r,overflows:$}],!$.every(_=>_<=0)){var V,z;const _=(((V=i.flip)==null?void 0:V.index)||0)+1,q=E[_];if(q&&(!(f==="alignment"?y!==Ae(q):!1)||I.every(A=>Ae(A.placement)===y?A.overflows[0]>0:!0)))return{data:{index:_,overflows:I},reset:{placement:q}};let O=(z=I.filter(F=>F.overflows[0]<=0).sort((F,A)=>F.overflows[1]-A.overflows[1])[0])==null?void 0:z.placement;if(!O)switch(m){case"bestFit":{var W;const F=(W=I.filter(A=>{if(R){const H=Ae(A.placement);return H===y||H==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(H=>H>0).reduce((H,oe)=>H+oe,0)]).sort((A,H)=>A[1]-H[1])[0])==null?void 0:W[0];F&&(O=F);break}case"initialPlacement":O=a;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function Zi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qi(e){return Lh.some(t=>e[t]>=0)}const Qh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:n="referenceHidden",...r}=Fe(e,t);switch(n){case"referenceHidden":{const i=await Jt(t,{...r,elementContext:"reference"}),s=Zi(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Qi(s)}}}case"escaped":{const i=await Jt(t,{...r,altBoundary:!0}),s=Zi(i,o.floating);return{data:{escapedOffsets:s,escaped:Qi(s)}}}default:return{}}}}},ol=new Set(["left","top"]);async function Jh(e,t){const{placement:o,platform:n,elements:r}=e,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Be(o),a=Ht(o),c=Ae(o)==="y",u=ol.has(s)?-1:1,d=i&&c?-1:1,f=Fe(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof x=="number"&&(m=a==="end"?x*-1:x),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const eg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await Jh(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},tg=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:s=!1,limiter:a={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...c}=Fe(e,t),u={x:o,y:n},d=await Jt(t,c),f=Ae(Be(r)),h=_r(f);let m=u[h],x=u[f];if(i){const g=h==="y"?"top":"left",b=h==="y"?"bottom":"right",y=m+d[g],w=m-d[b];m=er(y,m,w)}if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",y=x+d[g],w=x-d[b];x=er(y,x,w)}const v=a.fn({...t,[h]:m,[f]:x});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[h]:i,[f]:s}}}}}},og=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:n,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Fe(e,t),d={x:o,y:n},f=Ae(r),h=_r(f);let m=d[h],x=d[f];const v=Fe(a,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=h==="y"?"height":"width",C=i.reference[h]-i.floating[w]+g.mainAxis,S=i.reference[h]+i.reference[w]-g.mainAxis;m<C?m=C:m>S&&(m=S)}if(u){var b,y;const w=h==="y"?"width":"height",C=ol.has(Be(r)),S=i.reference[f]-i.floating[w]+(C&&((b=s.offset)==null?void 0:b[f])||0)+(C?0:g.crossAxis),R=i.reference[f]+i.reference[w]+(C?0:((y=s.offset)==null?void 0:y[f])||0)-(C?g.crossAxis:0);x<S?x=S:x>R&&(x=R)}return{[h]:m,[f]:x}}}},ng=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...u}=Fe(e,t),d=await Jt(t,u),f=Be(r),h=Ht(r),m=Ae(r)==="y",{width:x,height:v}=i.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,g=h==="end"?"top":"bottom");const y=v-d.top-d.bottom,w=x-d.left-d.right,C=Xe(v-d[g],y),S=Xe(x-d[b],w),R=!t.middlewareData.shift;let E=C,P=S;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(P=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=y),R&&!h){const I=pe(d.left,0),V=pe(d.right,0),z=pe(d.top,0),W=pe(d.bottom,0);m?P=x-2*(I!==0||V!==0?I+V:pe(d.left,d.right)):E=v-2*(z!==0||W!==0?z+W:pe(d.top,d.bottom))}await c({...t,availableWidth:P,availableHeight:E});const $=await s.getDimensions(a.floating);return x!==$.width||v!==$.height?{reset:{rects:!0}}:{}}}};function en(){return typeof window<"u"}function Gt(e){return nl(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(nl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nl(e){return en()?e instanceof Node||e instanceof me(e).Node:!1}function xe(e){return en()?e instanceof Element||e instanceof me(e).Element:!1}function ke(e){return en()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function Ji(e){return!en()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}const rg=new Set(["inline","contents"]);function so(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=be(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!rg.has(r)}const ig=new Set(["table","td","th"]);function sg(e){return ig.has(Gt(e))}const ag=[":popover-open",":modal"];function tn(e){return ag.some(t=>{try{return e.matches(t)}catch{return!1}})}const lg=["transform","translate","scale","rotate","perspective"],cg=["transform","translate","scale","rotate","perspective","filter"],ug=["paint","layout","strict","content"];function Mr(e){const t=Lr(),o=xe(e)?be(e):e;return lg.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)||cg.some(n=>(o.willChange||"").includes(n))||ug.some(n=>(o.contain||"").includes(n))}function dg(e){let t=Ze(e);for(;ke(t)&&!jt(t);){if(Mr(t))return t;if(tn(t))return null;t=Ze(t)}return null}function Lr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fg=new Set(["html","body","#document"]);function jt(e){return fg.has(Gt(e))}function be(e){return me(e).getComputedStyle(e)}function on(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ze(e){if(Gt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ji(e)&&e.host||Ie(e);return Ji(t)?t.host:t}function rl(e){const t=Ze(e);return jt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&so(t)?t:rl(t)}function eo(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=rl(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=me(r);if(i){const a=or(s);return t.concat(s,s.visualViewport||[],so(r)?r:[],a&&o?eo(a):[])}return t.concat(r,eo(r,[],o))}function or(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function il(e){const t=be(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=ke(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n,a=Mo(o)!==i||Mo(n)!==s;return a&&(o=i,n=s),{width:o,height:n,$:a}}function Fr(e){return xe(e)?e:e.contextElement}function It(e){const t=Fr(e);if(!ke(t))return Ne(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:i}=il(t);let s=(i?Mo(o.width):o.width)/n,a=(i?Mo(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const pg=Ne(0);function sl(e){const t=me(e);return!Lr()||!t.visualViewport?pg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vg(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==me(e)?!1:t}function mt(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),i=Fr(e);let s=Ne(1);t&&(n?xe(n)&&(s=It(n)):s=It(e));const a=vg(i,o,n)?sl(i):Ne(0);let c=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(i){const h=me(i),m=n&&xe(n)?me(n):n;let x=h,v=or(x);for(;v&&n&&m!==x;){const g=It(v),b=v.getBoundingClientRect(),y=be(v),w=b.left+(v.clientLeft+parseFloat(y.paddingLeft))*g.x,C=b.top+(v.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=w,u+=C,x=me(v),v=or(x)}}return Fo({width:d,height:f,x:c,y:u})}function nn(e,t){const o=on(e).scrollLeft;return t?t.left+o:mt(Ie(e)).left+o}function al(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-nn(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function mg(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const i=r==="fixed",s=Ie(n),a=t?tn(t.floating):!1;if(n===s||a&&i)return o;let c={scrollLeft:0,scrollTop:0},u=Ne(1);const d=Ne(0),f=ke(n);if((f||!f&&!i)&&((Gt(n)!=="body"||so(s))&&(c=on(n)),ke(n))){const m=mt(n);u=It(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}const h=s&&!f&&!i?al(s,c):Ne(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:o.y*u.y-c.scrollTop*u.y+d.y+h.y}}function hg(e){return Array.from(e.getClientRects())}function gg(e){const t=Ie(e),o=on(e),n=e.ownerDocument.body,r=pe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=pe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+nn(e);const a=-o.scrollTop;return be(n).direction==="rtl"&&(s+=pe(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:s,y:a}}const es=25;function xg(e,t){const o=me(e),n=Ie(e),r=o.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const d=Lr();(!d||d&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}const u=nn(n);if(u<=0){const d=n.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,x=Math.abs(n.clientWidth-f.clientWidth-m);x<=es&&(i-=x)}else u<=es&&(i+=u);return{width:i,height:s,x:a,y:c}}const bg=new Set(["absolute","fixed"]);function yg(e,t){const o=mt(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=ke(e)?It(e):Ne(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,u=n*i.y;return{width:s,height:a,x:c,y:u}}function ts(e,t,o){let n;if(t==="viewport")n=xg(e,o);else if(t==="document")n=gg(Ie(e));else if(xe(t))n=yg(t,o);else{const r=sl(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Fo(n)}function ll(e,t){const o=Ze(e);return o===t||!xe(o)||jt(o)?!1:be(o).position==="fixed"||ll(o,t)}function wg(e,t){const o=t.get(e);if(o)return o;let n=eo(e,[],!1).filter(a=>xe(a)&&Gt(a)!=="body"),r=null;const i=be(e).position==="fixed";let s=i?Ze(e):e;for(;xe(s)&&!jt(s);){const a=be(s),c=Mr(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&bg.has(r.position)||so(s)&&!c&&ll(e,s))?n=n.filter(d=>d!==s):r=a,s=Ze(s)}return t.set(e,n),n}function Cg(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const s=[...o==="clippingAncestors"?tn(t)?[]:wg(t,this._c):[].concat(o),n],a=s[0],c=s.reduce((u,d)=>{const f=ts(t,d,r);return u.top=pe(f.top,u.top),u.right=Xe(f.right,u.right),u.bottom=Xe(f.bottom,u.bottom),u.left=pe(f.left,u.left),u},ts(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Sg(e){const{width:t,height:o}=il(e);return{width:t,height:o}}function Eg(e,t,o){const n=ke(t),r=Ie(t),i=o==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Ne(0);function u(){c.x=nn(r)}if(n||!n&&!i)if((Gt(t)!=="body"||so(r))&&(a=on(t)),n){const m=mt(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else r&&u();i&&!n&&r&&u();const d=r&&!n&&!i?al(r,a):Ne(0),f=s.left+a.scrollLeft-c.x-d.x,h=s.top+a.scrollTop-c.y-d.y;return{x:f,y:h,width:s.width,height:s.height}}function Vn(e){return be(e).position==="static"}function os(e,t){if(!ke(e)||be(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ie(e)===o&&(o=o.ownerDocument.body),o}function cl(e,t){const o=me(e);if(tn(e))return o;if(!ke(e)){let r=Ze(e);for(;r&&!jt(r);){if(xe(r)&&!Vn(r))return r;r=Ze(r)}return o}let n=os(e,t);for(;n&&sg(n)&&Vn(n);)n=os(n,t);return n&&jt(n)&&Vn(n)&&!Mr(n)?o:n||dg(e)||o}const Rg=async function(e){const t=this.getOffsetParent||cl,o=this.getDimensions,n=await o(e.floating);return{reference:Eg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Pg(e){return be(e).direction==="rtl"}const Ag={convertOffsetParentRelativeRectToViewportRelativeRect:mg,getDocumentElement:Ie,getClippingRect:Cg,getOffsetParent:cl,getElementRects:Rg,getClientRects:hg,getDimensions:Sg,getScale:It,isElement:xe,isRTL:Pg};function ul(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tg(e,t){let o=null,n;const r=Ie(e);function i(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=u;if(a||t(),!h||!m)return;const x=Eo(f),v=Eo(r.clientWidth-(d+h)),g=Eo(r.clientHeight-(f+m)),b=Eo(d),w={rootMargin:-x+"px "+-v+"px "+-g+"px "+-b+"px",threshold:pe(0,Xe(1,c))||1};let C=!0;function S(R){const E=R[0].intersectionRatio;if(E!==c){if(!C)return s();E?s(!1,E):n=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!ul(u,e.getBoundingClientRect())&&s(),C=!1}try{o=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{o=new IntersectionObserver(S,w)}o.observe(e)}return s(!0),i}function Ng(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Fr(e),d=r||i?[...u?eo(u):[],...eo(t)]:[];d.forEach(b=>{r&&b.addEventListener("scroll",o,{passive:!0}),i&&b.addEventListener("resize",o)});const f=u&&a?Tg(u,o):null;let h=-1,m=null;s&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),o()}),u&&!c&&m.observe(u),m.observe(t));let x,v=c?mt(e):null;c&&g();function g(){const b=mt(e);v&&!ul(v,b)&&o(),v=b,x=requestAnimationFrame(g)}return o(),()=>{var b;d.forEach(y=>{r&&y.removeEventListener("scroll",o),i&&y.removeEventListener("resize",o)}),f==null||f(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(x)}}const Og=eg,kg=tg,$g=Zh,Ig=ng,_g=Qh,ns=Xh,Dg=og,jg=(e,t,o)=>{const n=new Map,r={platform:Ag,...o},i={...r.platform,_c:n};return Yh(e,t,{...r,platform:i})};var Mg=typeof document<"u",Lg=function(){},Oo=Mg?Q.useLayoutEffect:Lg;function Bo(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(!Bo(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)&&!Bo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function dl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rs(e,t){const o=dl(e);return Math.round(t*o)/o}function zn(e){const t=l.useRef(e);return Oo(()=>{t.current=e}),t}function Fg(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=l.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=l.useState(n);Bo(h,n)||m(n);const[x,v]=l.useState(null),[g,b]=l.useState(null),y=l.useCallback(A=>{A!==R.current&&(R.current=A,v(A))},[]),w=l.useCallback(A=>{A!==E.current&&(E.current=A,b(A))},[]),C=i||x,S=s||g,R=l.useRef(null),E=l.useRef(null),P=l.useRef(d),$=c!=null,I=zn(c),V=zn(r),z=zn(u),W=l.useCallback(()=>{if(!R.current||!E.current)return;const A={placement:t,strategy:o,middleware:h};V.current&&(A.platform=V.current),jg(R.current,E.current,A).then(H=>{const oe={...H,isPositioned:z.current!==!1};_.current&&!Bo(P.current,oe)&&(P.current=oe,Bt.flushSync(()=>{f(oe)}))})},[h,t,o,V,z]);Oo(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[u]);const _=l.useRef(!1);Oo(()=>(_.current=!0,()=>{_.current=!1}),[]),Oo(()=>{if(C&&(R.current=C),S&&(E.current=S),C&&S){if(I.current)return I.current(C,S,W);W()}},[C,S,W,I,$]);const q=l.useMemo(()=>({reference:R,floating:E,setReference:y,setFloating:w}),[y,w]),O=l.useMemo(()=>({reference:C,floating:S}),[C,S]),F=l.useMemo(()=>{const A={position:o,left:0,top:0};if(!O.floating)return A;const H=rs(O.floating,d.x),oe=rs(O.floating,d.y);return a?{...A,transform:"translate("+H+"px, "+oe+"px)",...dl(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:H,top:oe}},[o,a,O.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:W,refs:q,elements:O,floatingStyles:F}),[d,W,q,O,F])}const Bg=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?ns({element:n.current,padding:r}).fn(o):{}:n?ns({element:n,padding:r}).fn(o):{}}}},Wg=(e,t)=>({...Og(e),options:[e,t]}),Vg=(e,t)=>({...kg(e),options:[e,t]}),zg=(e,t)=>({...Dg(e),options:[e,t]}),qg=(e,t)=>({...$g(e),options:[e,t]}),Hg=(e,t)=>({...Ig(e),options:[e,t]}),Gg=(e,t)=>({..._g(e),options:[e,t]}),Ug=(e,t)=>({...Bg(e),options:[e,t]});var Kg="Arrow",fl=l.forwardRef((e,t)=>{const{children:o,width:n=10,height:r=5,...i}=e;return p.jsx(re.svg,{...i,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});fl.displayName=Kg;var Yg=fl;function pl(e){const[t,o]=l.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 i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;o({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else o(void 0)},[e]),t}var Br="Popper",[vl,ml]=bt(Br),[Xg,hl]=vl(Br),gl=e=>{const{__scopePopper:t,children:o}=e,[n,r]=l.useState(null);return p.jsx(Xg,{scope:t,anchor:n,onAnchorChange:r,children:o})};gl.displayName=Br;var xl="PopperAnchor",bl=l.forwardRef((e,t)=>{const{__scopePopper:o,virtualRef:n,...r}=e,i=hl(xl,o),s=l.useRef(null),a=le(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||s.current,u!==c.current&&i.onAnchorChange(c.current)}),n?null:p.jsx(re.div,{...r,ref:a})});bl.displayName=xl;var Wr="PopperContent",[Zg,Qg]=vl(Wr),yl=l.forwardRef((e,t)=>{var N,G,Y,X,te,J;const{__scopePopper:o,side:n="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:x,...v}=e,g=hl(Wr,o),[b,y]=l.useState(null),w=le(t,se=>y(se)),[C,S]=l.useState(null),R=pl(C),E=(R==null?void 0:R.width)??0,P=(R==null?void 0:R.height)??0,$=n+(i!=="center"?"-"+i:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(u)?u:[u],z=V.length>0,W={padding:I,boundary:V.filter(ex),altBoundary:z},{refs:_,floatingStyles:q,placement:O,isPositioned:F,middlewareData:A}=Fg({strategy:"fixed",placement:$,whileElementsMounted:(...se)=>Ng(...se,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Wg({mainAxis:r+P,alignmentAxis:s}),c&&Vg({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?zg():void 0,...W}),c&&qg({...W}),Hg({...W,apply:({elements:se,rects:fe,availableWidth:at,availableHeight:lt})=>{const{width:ct,height:Cn}=fe.reference,De=se.floating.style;De.setProperty("--radix-popper-available-width",`${at}px`),De.setProperty("--radix-popper-available-height",`${lt}px`),De.setProperty("--radix-popper-anchor-width",`${ct}px`),De.setProperty("--radix-popper-anchor-height",`${Cn}px`)}}),C&&Ug({element:C,padding:a}),tx({arrowWidth:E,arrowHeight:P}),h&&Gg({strategy:"referenceHidden",...W})]}),[H,oe]=Sl(O),ie=Dt(x);Le(()=>{F&&(ie==null||ie())},[F,ie]);const T=(N=A.arrow)==null?void 0:N.x,D=(G=A.arrow)==null?void 0:G.y,B=((Y=A.arrow)==null?void 0:Y.centerOffset)!==0,[j,K]=l.useState();return Le(()=>{b&&K(window.getComputedStyle(b).zIndex)},[b]),p.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:F?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(X=A.transformOrigin)==null?void 0:X.x,(te=A.transformOrigin)==null?void 0:te.y].join(" "),...((J=A.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(Zg,{scope:o,placedSide:H,onArrowChange:S,arrowX:T,arrowY:D,shouldHideArrow:B,children:p.jsx(re.div,{"data-side":H,"data-align":oe,...v,ref:w,style:{...v.style,animation:F?void 0:"none"}})})})});yl.displayName=Wr;var wl="PopperArrow",Jg={top:"bottom",right:"left",bottom:"top",left:"right"},Cl=l.forwardRef(function(t,o){const{__scopePopper:n,...r}=t,i=Qg(wl,n),s=Jg[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]: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:p.jsx(Yg,{...r,ref:o,style:{...r.style,display:"block"}})})});Cl.displayName=wl;function ex(e){return e!==null}var tx=e=>({name:"transformOrigin",options:e,fn(t){var g,b,y;const{placement:o,rects:n,middlewareData:r}=t,s=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,d]=Sl(o),f={start:"0%",center:"50%",end:"100%"}[d],h=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,m=(((y=r.arrow)==null?void 0:y.y)??0)+c/2;let x="",v="";return u==="bottom"?(x=s?f:`${h}px`,v=`${-c}px`):u==="top"?(x=s?f:`${h}px`,v=`${n.floating.height+c}px`):u==="right"?(x=`${-c}px`,v=s?f:`${m}px`):u==="left"&&(x=`${n.floating.width+c}px`,v=s?f:`${m}px`),{data:{x,y:v}}}});function Sl(e){const[t,o="center"]=e.split("-");return[t,o]}var ox=gl,El=bl,nx=yl,rx=Cl;function ix(e){const t=sx(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(lx);if(c){const u=c.props.children,d=a.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return p.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function sx(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=ux(r),a=cx(i,r.props);return r.type!==l.Fragment&&(a.ref=n?zt(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ax=Symbol("radix.slottable");function lx(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ax}function cx(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function ux(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 rn="Popover",[Rl]=bt(rn,[ml]),ao=ml(),[dx,rt]=Rl(rn),Pl=e=>{const{__scopePopover:t,children:o,open:n,defaultOpen:r,onOpenChange:i,modal:s=!1}=e,a=ao(t),c=l.useRef(null),[u,d]=l.useState(!1),[f,h]=qt({prop:n,defaultProp:r??!1,onChange:i,caller:rn});return p.jsx(ox,{...a,children:p.jsx(dx,{scope:t,contentId:kt(),triggerRef:c,open:f,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:s,children:o})})};Pl.displayName=rn;var Al="PopoverAnchor",Tl=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=rt(Al,o),i=ao(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=r;return l.useEffect(()=>(s(),()=>a()),[s,a]),p.jsx(El,{...i,...n,ref:t})});Tl.displayName=Al;var Nl="PopoverTrigger",Ol=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=rt(Nl,o),i=ao(o),s=le(t,r.triggerRef),a=p.jsx(re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Dl(r.open),...n,ref:s,onClick:ce(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:p.jsx(El,{asChild:!0,...i,children:a})});Ol.displayName=Nl;var Vr="PopoverPortal",[fx,px]=Rl(Vr,{forceMount:void 0}),kl=e=>{const{__scopePopover:t,forceMount:o,children:n,container:r}=e,i=rt(Vr,t);return p.jsx(fx,{scope:t,forceMount:o,children:p.jsx(yt,{present:o||i.open,children:p.jsx(Nr,{asChild:!0,container:r,children:n})})})};kl.displayName=Vr;var Mt="PopoverContent",$l=l.forwardRef((e,t)=>{const o=px(Mt,e.__scopePopover),{forceMount:n=o.forceMount,...r}=e,i=rt(Mt,e.__scopePopover);return p.jsx(yt,{present:n||i.open,children:i.modal?p.jsx(mx,{...r,ref:t}):p.jsx(hx,{...r,ref:t})})});$l.displayName=Mt;var vx=ix("PopoverContent.RemoveScroll"),mx=l.forwardRef((e,t)=>{const o=rt(Mt,e.__scopePopover),n=l.useRef(null),r=le(t,n),i=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return Da(s)},[]),p.jsx(Or,{as:vx,allowPinchZoom:!0,children:p.jsx(Il,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,u=a.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:ce(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),hx=l.forwardRef((e,t)=>{const o=rt(Mt,e.__scopePopover),n=l.useRef(!1),r=l.useRef(!1);return p.jsx(Il,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=o.triggerRef.current)==null||a.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 s=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Il=l.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,h=rt(Mt,o),m=ao(o);return Pa(),p.jsx(Tr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:i,children:p.jsx(Ar,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:p.jsx(nx,{"data-state":Dl(h.open),role:"dialog",id:h.contentId,...m,...f,ref:t,style:{...f.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)"}})})})}),_l="PopoverClose",gx=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=rt(_l,o);return p.jsx(re.button,{type:"button",...n,ref:t,onClick:ce(e.onClick,()=>r.onOpenChange(!1))})});gx.displayName=_l;var xx="PopoverArrow",bx=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=ao(o);return p.jsx(rx,{...r,...n,ref:t})});bx.displayName=xx;function Dl(e){return e?"open":"closed"}var jl=Pl,yx=Tl,Ml=Ol,wx=kl,Ll=$l;const Cx=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),Sx=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),Fl=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),Ex=({...e})=>p.jsx(jl,{"data-slot":"combobox",...e}),Rx=({className:e,...t})=>p.jsx(_h,{"data-slot":"combobox-group",className:k("volt-ui-p-0!",e),...t}),Px=({className:e,...t})=>p.jsx(yr,{"data-slot":"combobox-group-label",className:k("volt-ui-text-gray volt-ui-font-semibold volt-ui-px-2 volt-ui-py-1.5 volt-ui-text-xs",e),...t}),Ax=({className:e,children:t,...o})=>p.jsx("div",{"data-slot":"combobox-value",className:k("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}),Tx=l.forwardRef(({className:e,children:t,...o},n)=>{const{inputRef:r}=ro();return p.jsxs(Ml,{ref:i=>{r&&(r.current=i),typeof n=="function"?n(i):n&&(n.current=i)},"data-slot":"select-trigger",className:k("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,p.jsx(Sx,{className:"volt-ui-transition-all volt-ui-size-6 volt-ui-group-data-[selected=open]:rotate-180 volt-ui-text-gray-light"})]})}),Nx=({className:e,children:t,...o})=>p.jsx(Ll,{"data-slot":"combobox-content",className:k("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:p.jsx(Oh,{"data-slot":"combobox-command",className:"volt-ui-w-full volt-ui-rounded-none",children:t})}),Ox=({className:e,...t})=>p.jsx(kh,{"data-slot":"combobox-command-input",className:k("volt-ui-w-full volt-ui-placeholder:text-gray-a8",e),...t}),kx=({className:e,...t})=>p.jsx($h,{"data-slot":"combobox-command-list",className:k("volt-ui-px-2 volt-ui-py-3",e),...t}),$x=({className:e,children:t,...o})=>p.jsx(jh,{"data-slot":"combobox-item",className:k("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}),Ix=({className:e,...t})=>p.jsx(Ih,{"data-slot":"volt-ui-combobox-empty",className:k("volt-ui-py-6 volt-ui-text-center volt-ui-text-gray-default volt-ui-text-sm",e),...t}),_x=({className:e,...t})=>p.jsx(Dh,{"data-slot":"volt-ui-select-separator",className:k("volt-ui-bg-gray-soft volt-ui-pointer-events-none volt-ui--mx-1 volt-ui-my-2 volt-ui-h-px",e),...t}),Dx=({className:e})=>p.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:p.jsx(Cx,{className:k("volt-ui-size-4 volt-ui-text-gray-default",e)})}),jx=({className:e,...t})=>p.jsx(Mh,{"data-slot":"volt-ui-combobox-command-loading",className:k("volt-ui-text-gray-light volt-ui-px-3 volt-ui-py-2",e),...t}),Mx=({className:e,onClick:t,...o})=>p.jsx("span",{className:k("volt-ui-p-0.5! volt-ui-min-h-auto volt-ui-absolute volt-ui-right-11 volt-ui-cursor-pointer",br({variant:"primary",size:"xs"}),e),role:"button",tabIndex:0,onClick:n=>{n.stopPropagation(),t==null||t(n)},...o,children:p.jsx(Fl,{className:"volt-ui-transition-all volt-ui-text-accent-contrast volt-ui-size-4 volt-ui-group-data-[selected=open]:rotate-180"})}),Lx=({className:e,...t})=>p.jsx("span",{className:k("volt-ui-text-gray-a8",e),...t}),Fx=({className:e,onClick:t,...o})=>p.jsx("span",{role:"button",tabIndex:0,className:k("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),onClick:n=>{n.stopPropagation(),t==null||t(n)},...o,children:p.jsx(Fl,{className:"volt-ui-size-4 volt-ui-text-current"})});function is(e,[t,o]){return Math.min(o,Math.max(t,e))}function Bl(e){const t=e+"CollectionProvider",[o,n]=ze(t),[r,i]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:g,children:b}=v,y=Q.useRef(null),w=Q.useRef(new Map).current;return p.jsx(r,{scope:g,itemMap:w,collectionRef:y,children:b})};s.displayName=t;const a=e+"CollectionSlot",c=_o(a),u=Q.forwardRef((v,g)=>{const{scope:b,children:y}=v,w=i(a,b),C=ne(g,w.collectionRef);return p.jsx(c,{ref:C,children:y})});u.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=_o(d),m=Q.forwardRef((v,g)=>{const{scope:b,children:y,...w}=v,C=Q.useRef(null),S=ne(g,C),R=i(d,b);return Q.useEffect(()=>(R.itemMap.set(C,{ref:C,...w}),()=>void R.itemMap.delete(C))),p.jsx(h,{[f]:"",ref:S,children:y})});m.displayName=d;function x(v){const g=i(e+"CollectionConsumer",v);return Q.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((R,E)=>w.indexOf(R.ref.current)-w.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},x,n]}var Bx=l.createContext(void 0);function zr(e){const t=l.useContext(Bx);return e||t||"ltr"}const Wx=["top","right","bottom","left"],Qe=Math.min,ve=Math.max,Wo=Math.round,Ro=Math.floor,Oe=e=>({x:e,y:e}),Vx={left:"right",right:"left",bottom:"top",top:"bottom"},zx={start:"end",end:"start"};function nr(e,t,o){return ve(e,Qe(t,o))}function We(e,t){return typeof e=="function"?e(t):e}function Ve(e){return e.split("-")[0]}function Ut(e){return e.split("-")[1]}function qr(e){return e==="x"?"y":"x"}function Hr(e){return e==="y"?"height":"width"}const qx=new Set(["top","bottom"]);function Te(e){return qx.has(Ve(e))?"y":"x"}function Gr(e){return qr(Te(e))}function Hx(e,t,o){o===void 0&&(o=!1);const n=Ut(e),r=Gr(e),i=Hr(r);let s=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vo(s)),[s,Vo(s)]}function Gx(e){const t=Vo(e);return[rr(e),t,rr(t)]}function rr(e){return e.replace(/start|end/g,t=>zx[t])}const ss=["left","right"],as=["right","left"],Ux=["top","bottom"],Kx=["bottom","top"];function Yx(e,t,o){switch(e){case"top":case"bottom":return o?t?as:ss:t?ss:as;case"left":case"right":return t?Ux:Kx;default:return[]}}function Xx(e,t,o,n){const r=Ut(e);let i=Yx(Ve(e),o==="start",n);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(rr)))),i}function Vo(e){return e.replace(/left|right|bottom|top/g,t=>Vx[t])}function Zx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wl(e){return typeof e!="number"?Zx(e):{top:e,right:e,bottom:e,left:e}}function zo(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 ls(e,t,o){let{reference:n,floating:r}=e;const i=Te(t),s=Gr(t),a=Hr(s),c=Ve(t),u=i==="y",d=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,h=n[a]/2-r[a]/2;let m;switch(c){case"top":m={x:d,y:n.y-r.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:f};break;case"left":m={x:n.x-r.width,y:f};break;default:m={x:n.x,y:n.y}}switch(Ut(t)){case"start":m[s]-=h*(o&&u?-1:1);break;case"end":m[s]+=h*(o&&u?-1:1);break}return m}const Qx=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s}=o,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=ls(u,n,c),h=n,m={},x=0;for(let v=0;v<a.length;v++){const{name:g,fn:b}=a[v],{x:y,y:w,data:C,reset:S}=await b({x:d,y:f,initialPlacement:n,placement:h,strategy:r,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=y??d,f=w??f,m={...m,[g]:{...m[g],...C}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:f}=ls(u,h,c)),v=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:m}};async function to(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=We(t,e),x=Wl(m),g=a[h?f==="floating"?"reference":"floating":f],b=zo(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(g)))==null||o?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),y=f==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.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=zo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:c}):y);return{top:(b.top-S.top+x.top)/C.y,bottom:(S.bottom-b.bottom+x.bottom)/C.y,left:(b.left-S.left+x.left)/C.x,right:(S.right-b.right+x.right)/C.x}}const Jx=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=We(e,t)||{};if(u==null)return{};const f=Wl(d),h={x:o,y:n},m=Gr(r),x=Hr(m),v=await s.getDimensions(u),g=m==="y",b=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",C=i.reference[x]+i.reference[m]-h[m]-i.floating[x],S=h[m]-i.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let E=R?R[w]:0;(!E||!await(s.isElement==null?void 0:s.isElement(R)))&&(E=a.floating[w]||i.floating[x]);const P=C/2-S/2,$=E/2-v[x]/2-1,I=Qe(f[b],$),V=Qe(f[y],$),z=I,W=E-v[x]-V,_=E/2-v[x]/2+P,q=nr(z,_,W),O=!c.arrow&&Ut(r)!=null&&_!==q&&i.reference[x]/2-(_<z?I:V)-v[x]/2<0,F=O?_<z?_-z:_-W:0;return{[m]:h[m]+F,data:{[m]:q,centerOffset:_-q-F,...O&&{alignmentOffset:F}},reset:O}}}),eb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...g}=We(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const b=Ve(r),y=Te(a),w=Ve(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=h||(w||!v?[Vo(a)]:Gx(a)),R=x!=="none";!h&&R&&S.push(...Xx(a,v,x,C));const E=[a,...S],P=await to(t,g),$=[];let I=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&$.push(P[b]),f){const _=Hx(r,s,C);$.push(P[_[0]],P[_[1]])}if(I=[...I,{placement:r,overflows:$}],!$.every(_=>_<=0)){var V,z;const _=(((V=i.flip)==null?void 0:V.index)||0)+1,q=E[_];if(q&&(!(f==="alignment"?y!==Te(q):!1)||I.every(A=>Te(A.placement)===y?A.overflows[0]>0:!0)))return{data:{index:_,overflows:I},reset:{placement:q}};let O=(z=I.filter(F=>F.overflows[0]<=0).sort((F,A)=>F.overflows[1]-A.overflows[1])[0])==null?void 0:z.placement;if(!O)switch(m){case"bestFit":{var W;const F=(W=I.filter(A=>{if(R){const H=Te(A.placement);return H===y||H==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(H=>H>0).reduce((H,oe)=>H+oe,0)]).sort((A,H)=>A[1]-H[1])[0])==null?void 0:W[0];F&&(O=F);break}case"initialPlacement":O=a;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function cs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function us(e){return Wx.some(t=>e[t]>=0)}const tb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:n="referenceHidden",...r}=We(e,t);switch(n){case"referenceHidden":{const i=await to(t,{...r,elementContext:"reference"}),s=cs(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:us(s)}}}case"escaped":{const i=await to(t,{...r,altBoundary:!0}),s=cs(i,o.floating);return{data:{escapedOffsets:s,escaped:us(s)}}}default:return{}}}}},Vl=new Set(["left","top"]);async function ob(e,t){const{placement:o,platform:n,elements:r}=e,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Ve(o),a=Ut(o),c=Te(o)==="y",u=Vl.has(s)?-1:1,d=i&&c?-1:1,f=We(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof x=="number"&&(m=a==="end"?x*-1:x),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const nb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await ob(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},rb=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:s=!1,limiter:a={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...c}=We(e,t),u={x:o,y:n},d=await to(t,c),f=Te(Ve(r)),h=qr(f);let m=u[h],x=u[f];if(i){const g=h==="y"?"top":"left",b=h==="y"?"bottom":"right",y=m+d[g],w=m-d[b];m=nr(y,m,w)}if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",y=x+d[g],w=x-d[b];x=nr(y,x,w)}const v=a.fn({...t,[h]:m,[f]:x});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[h]:i,[f]:s}}}}}},ib=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:n,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=We(e,t),d={x:o,y:n},f=Te(r),h=qr(f);let m=d[h],x=d[f];const v=We(a,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=h==="y"?"height":"width",C=i.reference[h]-i.floating[w]+g.mainAxis,S=i.reference[h]+i.reference[w]-g.mainAxis;m<C?m=C:m>S&&(m=S)}if(u){var b,y;const w=h==="y"?"width":"height",C=Vl.has(Ve(r)),S=i.reference[f]-i.floating[w]+(C&&((b=s.offset)==null?void 0:b[f])||0)+(C?0:g.crossAxis),R=i.reference[f]+i.reference[w]+(C?0:((y=s.offset)==null?void 0:y[f])||0)-(C?g.crossAxis:0);x<S?x=S:x>R&&(x=R)}return{[h]:m,[f]:x}}}},sb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...u}=We(e,t),d=await to(t,u),f=Ve(r),h=Ut(r),m=Te(r)==="y",{width:x,height:v}=i.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,g=h==="end"?"top":"bottom");const y=v-d.top-d.bottom,w=x-d.left-d.right,C=Qe(v-d[g],y),S=Qe(x-d[b],w),R=!t.middlewareData.shift;let E=C,P=S;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(P=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=y),R&&!h){const I=ve(d.left,0),V=ve(d.right,0),z=ve(d.top,0),W=ve(d.bottom,0);m?P=x-2*(I!==0||V!==0?I+V:ve(d.left,d.right)):E=v-2*(z!==0||W!==0?z+W:ve(d.top,d.bottom))}await c({...t,availableWidth:P,availableHeight:E});const $=await s.getDimensions(a.floating);return x!==$.width||v!==$.height?{reset:{rects:!0}}:{}}}};function sn(){return typeof window<"u"}function Kt(e){return zl(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _e(e){var t;return(t=(zl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zl(e){return sn()?e instanceof Node||e instanceof he(e).Node:!1}function ye(e){return sn()?e instanceof Element||e instanceof he(e).Element:!1}function $e(e){return sn()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function ds(e){return!sn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}const ab=new Set(["inline","contents"]);function lo(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=we(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!ab.has(r)}const lb=new Set(["table","td","th"]);function cb(e){return lb.has(Kt(e))}const ub=[":popover-open",":modal"];function an(e){return ub.some(t=>{try{return e.matches(t)}catch{return!1}})}const db=["transform","translate","scale","rotate","perspective"],fb=["transform","translate","scale","rotate","perspective","filter"],pb=["paint","layout","strict","content"];function Ur(e){const t=Kr(),o=ye(e)?we(e):e;return db.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)||fb.some(n=>(o.willChange||"").includes(n))||pb.some(n=>(o.contain||"").includes(n))}function vb(e){let t=Je(e);for(;$e(t)&&!Lt(t);){if(Ur(t))return t;if(an(t))return null;t=Je(t)}return null}function Kr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mb=new Set(["html","body","#document"]);function Lt(e){return mb.has(Kt(e))}function we(e){return he(e).getComputedStyle(e)}function ln(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(Kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ds(e)&&e.host||_e(e);return ds(t)?t.host:t}function ql(e){const t=Je(e);return Lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&lo(t)?t:ql(t)}function oo(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=ql(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=he(r);if(i){const a=ir(s);return t.concat(s,s.visualViewport||[],lo(r)?r:[],a&&o?oo(a):[])}return t.concat(r,oo(r,[],o))}function ir(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hl(e){const t=we(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=$e(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n,a=Wo(o)!==i||Wo(n)!==s;return a&&(o=i,n=s),{width:o,height:n,$:a}}function Yr(e){return ye(e)?e:e.contextElement}function _t(e){const t=Yr(e);if(!$e(t))return Oe(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:i}=Hl(t);let s=(i?Wo(o.width):o.width)/n,a=(i?Wo(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const hb=Oe(0);function Gl(e){const t=he(e);return!Kr()||!t.visualViewport?hb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gb(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==he(e)?!1:t}function ht(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),i=Yr(e);let s=Oe(1);t&&(n?ye(n)&&(s=_t(n)):s=_t(e));const a=gb(i,o,n)?Gl(i):Oe(0);let c=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(i){const h=he(i),m=n&&ye(n)?he(n):n;let x=h,v=ir(x);for(;v&&n&&m!==x;){const g=_t(v),b=v.getBoundingClientRect(),y=we(v),w=b.left+(v.clientLeft+parseFloat(y.paddingLeft))*g.x,C=b.top+(v.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=w,u+=C,x=he(v),v=ir(x)}}return zo({width:d,height:f,x:c,y:u})}function cn(e,t){const o=ln(e).scrollLeft;return t?t.left+o:ht(_e(e)).left+o}function Ul(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-cn(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function xb(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const i=r==="fixed",s=_e(n),a=t?an(t.floating):!1;if(n===s||a&&i)return o;let c={scrollLeft:0,scrollTop:0},u=Oe(1);const d=Oe(0),f=$e(n);if((f||!f&&!i)&&((Kt(n)!=="body"||lo(s))&&(c=ln(n)),$e(n))){const m=ht(n);u=_t(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}const h=s&&!f&&!i?Ul(s,c):Oe(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:o.y*u.y-c.scrollTop*u.y+d.y+h.y}}function bb(e){return Array.from(e.getClientRects())}function yb(e){const t=_e(e),o=ln(e),n=e.ownerDocument.body,r=ve(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ve(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+cn(e);const a=-o.scrollTop;return we(n).direction==="rtl"&&(s+=ve(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:s,y:a}}const fs=25;function wb(e,t){const o=he(e),n=_e(e),r=o.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const d=Kr();(!d||d&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}const u=cn(n);if(u<=0){const d=n.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,x=Math.abs(n.clientWidth-f.clientWidth-m);x<=fs&&(i-=x)}else u<=fs&&(i+=u);return{width:i,height:s,x:a,y:c}}const Cb=new Set(["absolute","fixed"]);function Sb(e,t){const o=ht(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=$e(e)?_t(e):Oe(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,u=n*i.y;return{width:s,height:a,x:c,y:u}}function ps(e,t,o){let n;if(t==="viewport")n=wb(e,o);else if(t==="document")n=yb(_e(e));else if(ye(t))n=Sb(t,o);else{const r=Gl(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return zo(n)}function Kl(e,t){const o=Je(e);return o===t||!ye(o)||Lt(o)?!1:we(o).position==="fixed"||Kl(o,t)}function Eb(e,t){const o=t.get(e);if(o)return o;let n=oo(e,[],!1).filter(a=>ye(a)&&Kt(a)!=="body"),r=null;const i=we(e).position==="fixed";let s=i?Je(e):e;for(;ye(s)&&!Lt(s);){const a=we(s),c=Ur(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&Cb.has(r.position)||lo(s)&&!c&&Kl(e,s))?n=n.filter(d=>d!==s):r=a,s=Je(s)}return t.set(e,n),n}function Rb(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const s=[...o==="clippingAncestors"?an(t)?[]:Eb(t,this._c):[].concat(o),n],a=s[0],c=s.reduce((u,d)=>{const f=ps(t,d,r);return u.top=ve(f.top,u.top),u.right=Qe(f.right,u.right),u.bottom=Qe(f.bottom,u.bottom),u.left=ve(f.left,u.left),u},ps(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Pb(e){const{width:t,height:o}=Hl(e);return{width:t,height:o}}function Ab(e,t,o){const n=$e(t),r=_e(t),i=o==="fixed",s=ht(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Oe(0);function u(){c.x=cn(r)}if(n||!n&&!i)if((Kt(t)!=="body"||lo(r))&&(a=ln(t)),n){const m=ht(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else r&&u();i&&!n&&r&&u();const d=r&&!n&&!i?Ul(r,a):Oe(0),f=s.left+a.scrollLeft-c.x-d.x,h=s.top+a.scrollTop-c.y-d.y;return{x:f,y:h,width:s.width,height:s.height}}function qn(e){return we(e).position==="static"}function vs(e,t){if(!$e(e)||we(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return _e(e)===o&&(o=o.ownerDocument.body),o}function Yl(e,t){const o=he(e);if(an(e))return o;if(!$e(e)){let r=Je(e);for(;r&&!Lt(r);){if(ye(r)&&!qn(r))return r;r=Je(r)}return o}let n=vs(e,t);for(;n&&cb(n)&&qn(n);)n=vs(n,t);return n&&Lt(n)&&qn(n)&&!Ur(n)?o:n||vb(e)||o}const Tb=async function(e){const t=this.getOffsetParent||Yl,o=this.getDimensions,n=await o(e.floating);return{reference:Ab(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Nb(e){return we(e).direction==="rtl"}const Ob={convertOffsetParentRelativeRectToViewportRelativeRect:xb,getDocumentElement:_e,getClippingRect:Rb,getOffsetParent:Yl,getElementRects:Tb,getClientRects:bb,getDimensions:Pb,getScale:_t,isElement:ye,isRTL:Nb};function Xl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kb(e,t){let o=null,n;const r=_e(e);function i(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=u;if(a||t(),!h||!m)return;const x=Ro(f),v=Ro(r.clientWidth-(d+h)),g=Ro(r.clientHeight-(f+m)),b=Ro(d),w={rootMargin:-x+"px "+-v+"px "+-g+"px "+-b+"px",threshold:ve(0,Qe(1,c))||1};let C=!0;function S(R){const E=R[0].intersectionRatio;if(E!==c){if(!C)return s();E?s(!1,E):n=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!Xl(u,e.getBoundingClientRect())&&s(),C=!1}try{o=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{o=new IntersectionObserver(S,w)}o.observe(e)}return s(!0),i}function $b(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Yr(e),d=r||i?[...u?oo(u):[],...oo(t)]:[];d.forEach(b=>{r&&b.addEventListener("scroll",o,{passive:!0}),i&&b.addEventListener("resize",o)});const f=u&&a?kb(u,o):null;let h=-1,m=null;s&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),o()}),u&&!c&&m.observe(u),m.observe(t));let x,v=c?ht(e):null;c&&g();function g(){const b=ht(e);v&&!Xl(v,b)&&o(),v=b,x=requestAnimationFrame(g)}return o(),()=>{var b;d.forEach(y=>{r&&y.removeEventListener("scroll",o),i&&y.removeEventListener("resize",o)}),f==null||f(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(x)}}const Ib=nb,_b=rb,Db=eb,jb=sb,Mb=tb,ms=Jx,Lb=ib,Fb=(e,t,o)=>{const n=new Map,r={platform:Ob,...o},i={...r.platform,_c:n};return Qx(e,t,{...r,platform:i})};var Bb=typeof document<"u",Wb=function(){},ko=Bb?Q.useLayoutEffect:Wb;function qo(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(!qo(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)&&!qo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Zl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hs(e,t){const o=Zl(e);return Math.round(t*o)/o}function Hn(e){const t=l.useRef(e);return ko(()=>{t.current=e}),t}function Vb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=l.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=l.useState(n);qo(h,n)||m(n);const[x,v]=l.useState(null),[g,b]=l.useState(null),y=l.useCallback(A=>{A!==R.current&&(R.current=A,v(A))},[]),w=l.useCallback(A=>{A!==E.current&&(E.current=A,b(A))},[]),C=i||x,S=s||g,R=l.useRef(null),E=l.useRef(null),P=l.useRef(d),$=c!=null,I=Hn(c),V=Hn(r),z=Hn(u),W=l.useCallback(()=>{if(!R.current||!E.current)return;const A={placement:t,strategy:o,middleware:h};V.current&&(A.platform=V.current),Fb(R.current,E.current,A).then(H=>{const oe={...H,isPositioned:z.current!==!1};_.current&&!qo(P.current,oe)&&(P.current=oe,Bt.flushSync(()=>{f(oe)}))})},[h,t,o,V,z]);ko(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[u]);const _=l.useRef(!1);ko(()=>(_.current=!0,()=>{_.current=!1}),[]),ko(()=>{if(C&&(R.current=C),S&&(E.current=S),C&&S){if(I.current)return I.current(C,S,W);W()}},[C,S,W,I,$]);const q=l.useMemo(()=>({reference:R,floating:E,setReference:y,setFloating:w}),[y,w]),O=l.useMemo(()=>({reference:C,floating:S}),[C,S]),F=l.useMemo(()=>{const A={position:o,left:0,top:0};if(!O.floating)return A;const H=hs(O.floating,d.x),oe=hs(O.floating,d.y);return a?{...A,transform:"translate("+H+"px, "+oe+"px)",...Zl(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:H,top:oe}},[o,a,O.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:W,refs:q,elements:O,floatingStyles:F}),[d,W,q,O,F])}const zb=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?ms({element:n.current,padding:r}).fn(o):{}:n?ms({element:n,padding:r}).fn(o):{}}}},qb=(e,t)=>({...Ib(e),options:[e,t]}),Hb=(e,t)=>({..._b(e),options:[e,t]}),Gb=(e,t)=>({...Lb(e),options:[e,t]}),Ub=(e,t)=>({...Db(e),options:[e,t]}),Kb=(e,t)=>({...jb(e),options:[e,t]}),Yb=(e,t)=>({...Mb(e),options:[e,t]}),Xb=(e,t)=>({...zb(e),options:[e,t]});var Zb="Arrow",Ql=l.forwardRef((e,t)=>{const{children:o,width:n=10,height:r=5,...i}=e;return p.jsx(ee.svg,{...i,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ql.displayName=Zb;var Qb=Ql;function Xr(e){const[t,o]=l.useState(void 0);return ue(()=>{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 s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;o({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else o(void 0)},[e]),t}var Zr="Popper",[Jl,un]=ze(Zr),[Jb,ec]=Jl(Zr),tc=e=>{const{__scopePopper:t,children:o}=e,[n,r]=l.useState(null);return p.jsx(Jb,{scope:t,anchor:n,onAnchorChange:r,children:o})};tc.displayName=Zr;var oc="PopperAnchor",nc=l.forwardRef((e,t)=>{const{__scopePopper:o,virtualRef:n,...r}=e,i=ec(oc,o),s=l.useRef(null),a=ne(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||s.current,u!==c.current&&i.onAnchorChange(c.current)}),n?null:p.jsx(ee.div,{...r,ref:a})});nc.displayName=oc;var Qr="PopperContent",[ey,ty]=Jl(Qr),rc=l.forwardRef((e,t)=>{var N,G,Y,X,te,J;const{__scopePopper:o,side:n="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:x,...v}=e,g=ec(Qr,o),[b,y]=l.useState(null),w=ne(t,se=>y(se)),[C,S]=l.useState(null),R=Xr(C),E=(R==null?void 0:R.width)??0,P=(R==null?void 0:R.height)??0,$=n+(i!=="center"?"-"+i:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(u)?u:[u],z=V.length>0,W={padding:I,boundary:V.filter(ny),altBoundary:z},{refs:_,floatingStyles:q,placement:O,isPositioned:F,middlewareData:A}=Vb({strategy:"fixed",placement:$,whileElementsMounted:(...se)=>$b(...se,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[qb({mainAxis:r+P,alignmentAxis:s}),c&&Hb({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Gb():void 0,...W}),c&&Ub({...W}),Kb({...W,apply:({elements:se,rects:fe,availableWidth:at,availableHeight:lt})=>{const{width:ct,height:Cn}=fe.reference,De=se.floating.style;De.setProperty("--radix-popper-available-width",`${at}px`),De.setProperty("--radix-popper-available-height",`${lt}px`),De.setProperty("--radix-popper-anchor-width",`${ct}px`),De.setProperty("--radix-popper-anchor-height",`${Cn}px`)}}),C&&Xb({element:C,padding:a}),ry({arrowWidth:E,arrowHeight:P}),h&&Yb({strategy:"referenceHidden",...W})]}),[H,oe]=ac(O),ie=Ke(x);ue(()=>{F&&(ie==null||ie())},[F,ie]);const T=(N=A.arrow)==null?void 0:N.x,D=(G=A.arrow)==null?void 0:G.y,B=((Y=A.arrow)==null?void 0:Y.centerOffset)!==0,[j,K]=l.useState();return ue(()=>{b&&K(window.getComputedStyle(b).zIndex)},[b]),p.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:F?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(X=A.transformOrigin)==null?void 0:X.x,(te=A.transformOrigin)==null?void 0:te.y].join(" "),...((J=A.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(ey,{scope:o,placedSide:H,onArrowChange:S,arrowX:T,arrowY:D,shouldHideArrow:B,children:p.jsx(ee.div,{"data-side":H,"data-align":oe,...v,ref:w,style:{...v.style,animation:F?void 0:"none"}})})})});rc.displayName=Qr;var ic="PopperArrow",oy={top:"bottom",right:"left",bottom:"top",left:"right"},sc=l.forwardRef(function(t,o){const{__scopePopper:n,...r}=t,i=ty(ic,n),s=oy[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]: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:p.jsx(Qb,{...r,ref:o,style:{...r.style,display:"block"}})})});sc.displayName=ic;function ny(e){return e!==null}var ry=e=>({name:"transformOrigin",options:e,fn(t){var g,b,y;const{placement:o,rects:n,middlewareData:r}=t,s=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,d]=ac(o),f={start:"0%",center:"50%",end:"100%"}[d],h=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,m=(((y=r.arrow)==null?void 0:y.y)??0)+c/2;let x="",v="";return u==="bottom"?(x=s?f:`${h}px`,v=`${-c}px`):u==="top"?(x=s?f:`${h}px`,v=`${n.floating.height+c}px`):u==="right"?(x=`${-c}px`,v=s?f:`${m}px`):u==="left"&&(x=`${n.floating.width+c}px`,v=s?f:`${m}px`),{data:{x,y:v}}}});function ac(e){const[t,o="center"]=e.split("-");return[t,o]}var lc=tc,cc=nc,uc=rc,dc=sc;function iy(e){const t=sy(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(ly);if(c){const u=c.props.children,d=a.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return p.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function sy(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=uy(r),a=cy(i,r.props);return r.type!==l.Fragment&&(a.ref=n?Me(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ay=Symbol("radix.slottable");function ly(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ay}function cy(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function uy(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 Jr(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 fc=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"}),dy="VisuallyHidden",pc=l.forwardRef((e,t)=>p.jsx(ee.span,{...e,ref:t,style:{...fc,...e.style}}));pc.displayName=dy;var fy=pc,py=[" ","Enter","ArrowUp","ArrowDown"],vy=[" ","Enter"],gt="Select",[dn,fn,my]=Bl(gt),[Yt]=ze(gt,[my,un]),pn=un(),[hy,it]=Yt(gt),[gy,xy]=Yt(gt),vc=e=>{const{__scopeSelect:t,children:o,open:n,defaultOpen:r,onOpenChange:i,value:s,defaultValue:a,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:h,required:m,form:x}=e,v=pn(t),[g,b]=l.useState(null),[y,w]=l.useState(null),[C,S]=l.useState(!1),R=zr(u),[E,P]=dt({prop:n,defaultProp:r??!1,onChange:i,caller:gt}),[$,I]=dt({prop:s,defaultProp:a,onChange:c,caller:gt}),V=l.useRef(null),z=g?x||!!g.closest("form"):!0,[W,_]=l.useState(new Set),q=Array.from(W).map(O=>O.props.value).join(";");return p.jsx(lc,{...v,children:p.jsxs(hy,{required:m,scope:t,trigger:g,onTriggerChange:b,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:de(),value:$,onValueChange:I,open:E,onOpenChange:P,dir:R,triggerPointerDownPosRef:V,disabled:h,children:[p.jsx(dn.Provider,{scope:t,children:p.jsx(gy,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(O=>{_(F=>new Set(F).add(O))},[]),onNativeOptionRemove:l.useCallback(O=>{_(F=>{const A=new Set(F);return A.delete(O),A})},[]),children:o})}),z?p.jsxs(Fc,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:$,onChange:O=>I(O.target.value),disabled:h,form:x,children:[$===void 0?p.jsx("option",{value:""}):null,Array.from(W)]},q):null]})})};vc.displayName=gt;var mc="SelectTrigger",hc=l.forwardRef((e,t)=>{const{__scopeSelect:o,disabled:n=!1,...r}=e,i=pn(o),s=it(mc,o),a=s.disabled||n,c=ne(t,s.onTriggerChange),u=fn(o),d=l.useRef("touch"),[f,h,m]=Wc(v=>{const g=u().filter(w=>!w.disabled),b=g.find(w=>w.value===s.value),y=Vc(g,v,b);y!==void 0&&s.onValueChange(y.value)}),x=v=>{a||(s.onOpenChange(!0),m()),v&&(s.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return p.jsx(cc,{asChild:!0,...i,children:p.jsx(ee.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Bc(s.value)?"":void 0,...r,ref:c,onClick:U(r.onClick,v=>{v.currentTarget.focus(),d.current!=="mouse"&&x(v)}),onPointerDown:U(r.onPointerDown,v=>{d.current=v.pointerType;const g=v.target;g.hasPointerCapture(v.pointerId)&&g.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(x(v),v.preventDefault())}),onKeyDown:U(r.onKeyDown,v=>{const g=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&h(v.key),!(g&&v.key===" ")&&py.includes(v.key)&&(x(),v.preventDefault())})})})});hc.displayName=mc;var gc="SelectValue",xc=l.forwardRef((e,t)=>{const{__scopeSelect:o,className:n,style:r,children:i,placeholder:s="",...a}=e,c=it(gc,o),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,f=ne(t,c.onValueNodeChange);return ue(()=>{u(d)},[u,d]),p.jsx(ee.span,{...a,ref:f,style:{pointerEvents:"none"},children:Bc(c.value)?p.jsx(p.Fragment,{children:s}):i})});xc.displayName=gc;var by="SelectIcon",bc=l.forwardRef((e,t)=>{const{__scopeSelect:o,children:n,...r}=e;return p.jsx(ee.span,{"aria-hidden":!0,...r,ref:t,children:n||"▼"})});bc.displayName=by;var yy="SelectPortal",yc=e=>p.jsx(Ko,{asChild:!0,...e});yc.displayName=yy;var xt="SelectContent",wc=l.forwardRef((e,t)=>{const o=it(xt,e.__scopeSelect),[n,r]=l.useState();if(ue(()=>{r(new DocumentFragment)},[]),!o.open){const i=n;return i?Bt.createPortal(p.jsx(Cc,{scope:e.__scopeSelect,children:p.jsx(dn.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),i):null}return p.jsx(Sc,{...e,ref:t})});wc.displayName=xt;var ge=10,[Cc,st]=Yt(xt),wy="SelectContentImpl",Cy=iy("SelectContent.RemoveScroll"),Sc=l.forwardRef((e,t)=>{const{__scopeSelect:o,position:n="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:x,hideWhenDetached:v,avoidCollisions:g,...b}=e,y=it(xt,o),[w,C]=l.useState(null),[S,R]=l.useState(null),E=ne(t,N=>C(N)),[P,$]=l.useState(null),[I,V]=l.useState(null),z=fn(o),[W,_]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(w)return na(w)},[w]),Ks();const O=l.useCallback(N=>{const[G,...Y]=z().map(J=>J.ref.current),[X]=Y.slice(-1),te=document.activeElement;for(const J of N)if(J===te||(J==null||J.scrollIntoView({block:"nearest"}),J===G&&S&&(S.scrollTop=0),J===X&&S&&(S.scrollTop=S.scrollHeight),J==null||J.focus(),document.activeElement!==te))return},[z,S]),F=l.useCallback(()=>O([P,w]),[O,P,w]);l.useEffect(()=>{W&&F()},[W,F]);const{onOpenChange:A,triggerPointerDownPosRef:H}=y;l.useEffect(()=>{if(w){let N={x:0,y:0};const G=X=>{var te,J;N={x:Math.abs(Math.round(X.pageX)-(((te=H.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(X.pageY)-(((J=H.current)==null?void 0:J.y)??0))}},Y=X=>{N.x<=10&&N.y<=10?X.preventDefault():w.contains(X.target)||A(!1),document.removeEventListener("pointermove",G),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",Y,{capture:!0})}}},[w,A,H]),l.useEffect(()=>{const N=()=>A(!1);return window.addEventListener("blur",N),window.addEventListener("resize",N),()=>{window.removeEventListener("blur",N),window.removeEventListener("resize",N)}},[A]);const[oe,ie]=Wc(N=>{const G=z().filter(te=>!te.disabled),Y=G.find(te=>te.ref.current===document.activeElement),X=Vc(G,N,Y);X&&setTimeout(()=>X.ref.current.focus())}),T=l.useCallback((N,G,Y)=>{const X=!q.current&&!Y;(y.value!==void 0&&y.value===G||X)&&($(N),X&&(q.current=!0))},[y.value]),D=l.useCallback(()=>w==null?void 0:w.focus(),[w]),B=l.useCallback((N,G,Y)=>{const X=!q.current&&!Y;(y.value!==void 0&&y.value===G||X)&&V(N)},[y.value]),j=n==="popper"?sr:Ec,K=j===sr?{side:a,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:x,hideWhenDetached:v,avoidCollisions:g}:{};return p.jsx(Cc,{scope:o,content:w,viewport:S,onViewportChange:R,itemRefCallback:T,selectedItem:P,onItemLeave:D,itemTextRefCallback:B,focusSelectedItem:F,selectedItemText:I,position:n,isPositioned:W,searchRef:oe,children:p.jsx(Cr,{as:Cy,allowPinchZoom:!0,children:p.jsx(wr,{asChild:!0,trapped:y.open,onMountAutoFocus:N=>{N.preventDefault()},onUnmountAutoFocus:U(r,N=>{var G;(G=y.trigger)==null||G.focus({preventScroll:!0}),N.preventDefault()}),children:p.jsx(Uo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:N=>N.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:p.jsx(j,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:N=>N.preventDefault(),...b,...K,onPlaced:()=>_(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:U(b.onKeyDown,N=>{const G=N.ctrlKey||N.altKey||N.metaKey;if(N.key==="Tab"&&N.preventDefault(),!G&&N.key.length===1&&ie(N.key),["ArrowUp","ArrowDown","Home","End"].includes(N.key)){let X=z().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(N.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(N.key)){const te=N.target,J=X.indexOf(te);X=X.slice(J+1)}setTimeout(()=>O(X)),N.preventDefault()}})})})})})})});Sc.displayName=wy;var Sy="SelectItemAlignedPosition",Ec=l.forwardRef((e,t)=>{const{__scopeSelect:o,onPlaced:n,...r}=e,i=it(xt,o),s=st(xt,o),[a,c]=l.useState(null),[u,d]=l.useState(null),f=ne(t,E=>d(E)),h=fn(o),m=l.useRef(!1),x=l.useRef(!0),{viewport:v,selectedItem:g,selectedItemText:b,focusSelectedItem:y}=s,w=l.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&v&&g&&b){const E=i.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),$=i.valueNode.getBoundingClientRect(),I=b.getBoundingClientRect();if(i.dir!=="rtl"){const te=I.left-P.left,J=$.left-te,se=E.left-J,fe=E.width+se,at=Math.max(fe,P.width),lt=window.innerWidth-ge,ct=is(J,[ge,Math.max(ge,lt-at)]);a.style.minWidth=fe+"px",a.style.left=ct+"px"}else{const te=P.right-I.right,J=window.innerWidth-$.right-te,se=window.innerWidth-E.right-J,fe=E.width+se,at=Math.max(fe,P.width),lt=window.innerWidth-ge,ct=is(J,[ge,Math.max(ge,lt-at)]);a.style.minWidth=fe+"px",a.style.right=ct+"px"}const V=h(),z=window.innerHeight-ge*2,W=v.scrollHeight,_=window.getComputedStyle(u),q=parseInt(_.borderTopWidth,10),O=parseInt(_.paddingTop,10),F=parseInt(_.borderBottomWidth,10),A=parseInt(_.paddingBottom,10),H=q+O+W+A+F,oe=Math.min(g.offsetHeight*5,H),ie=window.getComputedStyle(v),T=parseInt(ie.paddingTop,10),D=parseInt(ie.paddingBottom,10),B=E.top+E.height/2-ge,j=z-B,K=g.offsetHeight/2,N=g.offsetTop+K,G=q+O+N,Y=H-G;if(G<=B){const te=V.length>0&&g===V[V.length-1].ref.current;a.style.bottom="0px";const J=u.clientHeight-v.offsetTop-v.offsetHeight,se=Math.max(j,K+(te?D:0)+J+F),fe=G+se;a.style.height=fe+"px"}else{const te=V.length>0&&g===V[0].ref.current;a.style.top="0px";const se=Math.max(B,q+v.offsetTop+(te?T:0)+K)+Y;a.style.height=se+"px",v.scrollTop=G-B+v.offsetTop}a.style.margin=`${ge}px 0`,a.style.minHeight=oe+"px",a.style.maxHeight=z+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[h,i.trigger,i.valueNode,a,u,v,g,b,i.dir,n]);ue(()=>w(),[w]);const[C,S]=l.useState();ue(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const R=l.useCallback(E=>{E&&x.current===!0&&(w(),y==null||y(),x.current=!1)},[w,y]);return p.jsx(Ry,{scope:o,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:p.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:p.jsx(ee.div,{...r,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Ec.displayName=Sy;var Ey="SelectPopperPosition",sr=l.forwardRef((e,t)=>{const{__scopeSelect:o,align:n="start",collisionPadding:r=ge,...i}=e,s=pn(o);return p.jsx(uc,{...s,...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)"}})});sr.displayName=Ey;var[Ry,ei]=Yt(xt,{}),ar="SelectViewport",Rc=l.forwardRef((e,t)=>{const{__scopeSelect:o,nonce:n,...r}=e,i=st(ar,o),s=ei(ar,o),a=ne(t,i.onViewportChange),c=l.useRef(0);return p.jsxs(p.Fragment,{children:[p.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}),p.jsx(dn.Slot,{scope:o,children:p.jsx(ee.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:U(r.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=s;if(h!=null&&h.current&&f){const m=Math.abs(c.current-d.scrollTop);if(m>0){const x=window.innerHeight-ge*2,v=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),b=Math.max(v,g);if(b<x){const y=b+m,w=Math.min(x,y),C=y-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});Rc.displayName=ar;var Pc="SelectGroup",[Py,Ay]=Yt(Pc),Ac=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=de();return p.jsx(Py,{scope:o,id:r,children:p.jsx(ee.div,{role:"group","aria-labelledby":r,...n,ref:t})})});Ac.displayName=Pc;var Tc="SelectLabel",Nc=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=Ay(Tc,o);return p.jsx(ee.div,{id:r.id,...n,ref:t})});Nc.displayName=Tc;var Ho="SelectItem",[Ty,Oc]=Yt(Ho),kc=l.forwardRef((e,t)=>{const{__scopeSelect:o,value:n,disabled:r=!1,textValue:i,...s}=e,a=it(Ho,o),c=st(Ho,o),u=a.value===n,[d,f]=l.useState(i??""),[h,m]=l.useState(!1),x=ne(t,y=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,y,n,r)}),v=de(),g=l.useRef("touch"),b=()=>{r||(a.onValueChange(n),a.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 p.jsx(Ty,{scope:o,value:n,disabled:r,textId:v,isSelected:u,onItemTextChange:l.useCallback(y=>{f(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:p.jsx(dn.ItemSlot,{scope:o,value:n,disabled:r,textValue:d,children:p.jsx(ee.div,{role:"option","aria-labelledby":v,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...s,ref:x,onFocus:U(s.onFocus,()=>m(!0)),onBlur:U(s.onBlur,()=>m(!1)),onClick:U(s.onClick,()=>{g.current!=="mouse"&&b()}),onPointerUp:U(s.onPointerUp,()=>{g.current==="mouse"&&b()}),onPointerDown:U(s.onPointerDown,y=>{g.current=y.pointerType}),onPointerMove:U(s.onPointerMove,y=>{var w;g.current=y.pointerType,r?(w=c.onItemLeave)==null||w.call(c):g.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:U(s.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:U(s.onKeyDown,y=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&y.key===" "||(vy.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});kc.displayName=Ho;var Qt="SelectItemText",$c=l.forwardRef((e,t)=>{const{__scopeSelect:o,className:n,style:r,...i}=e,s=it(Qt,o),a=st(Qt,o),c=Oc(Qt,o),u=xy(Qt,o),[d,f]=l.useState(null),h=ne(t,b=>f(b),c.onItemTextChange,b=>{var y;return(y=a.itemTextRefCallback)==null?void 0:y.call(a,b,c.value,c.disabled)}),m=d==null?void 0:d.textContent,x=l.useMemo(()=>p.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:v,onNativeOptionRemove:g}=u;return ue(()=>(v(x),()=>g(x)),[v,g,x]),p.jsxs(p.Fragment,{children:[p.jsx(ee.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Bt.createPortal(i.children,s.valueNode):null]})});$c.displayName=Qt;var Ic="SelectItemIndicator",_c=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e;return Oc(Ic,o).isSelected?p.jsx(ee.span,{"aria-hidden":!0,...n,ref:t}):null});_c.displayName=Ic;var lr="SelectScrollUpButton",Dc=l.forwardRef((e,t)=>{const o=st(lr,e.__scopeSelect),n=ei(lr,e.__scopeSelect),[r,i]=l.useState(!1),s=ne(t,n.onScrollButtonChange);return ue(()=>{if(o.viewport&&o.isPositioned){let a=function(){const u=c.scrollTop>0;i(u)};const c=o.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[o.viewport,o.isPositioned]),r?p.jsx(Mc,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=o;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});Dc.displayName=lr;var cr="SelectScrollDownButton",jc=l.forwardRef((e,t)=>{const o=st(cr,e.__scopeSelect),n=ei(cr,e.__scopeSelect),[r,i]=l.useState(!1),s=ne(t,n.onScrollButtonChange);return ue(()=>{if(o.viewport&&o.isPositioned){let a=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};const c=o.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[o.viewport,o.isPositioned]),r?p.jsx(Mc,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=o;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});jc.displayName=cr;var Mc=l.forwardRef((e,t)=>{const{__scopeSelect:o,onAutoScroll:n,...r}=e,i=st("SelectScrollButton",o),s=l.useRef(null),a=fn(o),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ue(()=>{var d;const u=a().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),p.jsx(ee.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:U(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:U(r.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:U(r.onPointerLeave,()=>{c()})})}),Ny="SelectSeparator",Lc=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e;return p.jsx(ee.div,{"aria-hidden":!0,...n,ref:t})});Lc.displayName=Ny;var ur="SelectArrow",Oy=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=pn(o),i=it(ur,o),s=st(ur,o);return i.open&&s.position==="popper"?p.jsx(dc,{...r,...n,ref:t}):null});Oy.displayName=ur;var ky="SelectBubbleInput",Fc=l.forwardRef(({__scopeSelect:e,value:t,...o},n)=>{const r=l.useRef(null),i=ne(n,r),s=Jr(t);return l.useEffect(()=>{const a=r.current;if(!a)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&d){const f=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(f)}},[s,t]),p.jsx(ee.select,{...o,style:{...fc,...o.style},ref:i,defaultValue:t})});Fc.displayName=ky;function Bc(e){return e===""||e===void 0}function Wc(e){const t=Ke(e),o=l.useRef(""),n=l.useRef(0),r=l.useCallback(s=>{const a=o.current+s;t(a),function c(u){o.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(a)},[t]),i=l.useCallback(()=>{o.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[o,r,i]}function Vc(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 s=$y(e,Math.max(i,0));r.length===1&&(s=s.filter(u=>u!==o));const c=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==o?c:void 0}function $y(e,t){return e.map((o,n)=>e[(t+n)%e.length])}var Iy=vc,_y=hc,Dy=xc,jy=bc,My=yc,Ly=wc,Fy=Rc,By=Ac,Wy=Nc,Vy=kc,zy=$c,qy=_c,Hy=Dc,Gy=jc,Uy=Lc;const Ky=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),Yy=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),zc=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),Xy=({...e})=>p.jsx(Iy,{"data-slot":"select",...e}),Zy=({...e})=>p.jsx(By,{"data-slot":"select-group",...e}),Qy=({className:e,...t})=>p.jsx(Dy,{"data-slot":"select-value",className:k("volt-ui-whitespace-break-spaces volt-ui-wrap-break-word",e),...t}),qc=l.forwardRef(({className:e,children:t,...o},n)=>{const{inputRef:r}=ro();return p.jsxs(_y,{ref:i=>{r&&(r.current=i),typeof n=="function"?n(i):n&&(n.current=i)},"data-slot":"select-trigger",className:k("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,p.jsx(jy,{asChild:!0,children:p.jsx(Yy,{className:"volt-ui-transition-all volt-ui-size-6 volt-ui-group-data-[state=open]:rotate-180 volt-ui-text-gray-light"})})]})});qc.displayName="SelectTrigger";const Jy=({className:e,children:t,position:o="popper",align:n="center",...r})=>p.jsx(My,{children:p.jsxs(Ly,{"data-slot":"select-content",className:k("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:[p.jsx(Hc,{}),p.jsx(Fy,{className:k({"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}),p.jsx(Gc,{})]})}),ew=({className:e,...t})=>p.jsx(Wy,{"data-slot":"select-label",className:k("volt-ui-text-gray volt-ui-font-semibold volt-ui-px-2 volt-ui-py-1.5 volt-ui-text-xs",e),...t}),tw=({className:e,children:t,...o})=>p.jsxs(Vy,{"data-slot":"select-item",className:k("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:[p.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:p.jsx(qy,{children:p.jsx(Ky,{className:"volt-ui-size-4 volt-ui-text-gray-light"})})}),p.jsx(zy,{children:t})]}),ow=({className:e,...t})=>p.jsx(Uy,{"data-slot":"volt-ui-select-separator",className:k("volt-ui-bg-gray-soft volt-ui-pointer-events-none volt-ui--mx-1 volt-ui-my-1 volt-ui-h-px",e),...t}),Hc=({className:e,...t})=>p.jsx(Hy,{"data-slot":"volt-ui-select-scroll-up-button",className:k("volt-ui-flex volt-ui-cursor-default volt-ui-items-center volt-ui-justify-center volt-ui-pb-1",e),...t,children:p.jsx(zc,{className:"volt-ui-size-6"})}),Gc=({className:e,...t})=>p.jsx(Gy,{"data-slot":"volt-ui-select-scroll-down-button",className:k("volt-ui-flex volt-ui-cursor-default volt-ui-items-center volt-ui-justify-center volt-ui-pt-1",e),...t,children:p.jsx(zc,{className:"volt-ui-size-6 volt-ui-rotate-180"})});var nw=Symbol("radix.slottable");function rw(e){const t=({children:o})=>p.jsx(p.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=nw,t}var[vn]=ze("Tooltip",[un]),mn=un(),Uc="TooltipProvider",iw=700,dr="tooltip.open",[sw,ti]=vn(Uc),Kc=e=>{const{__scopeTooltip:t,delayDuration:o=iw,skipDelayDuration:n=300,disableHoverableContent:r=!1,children:i}=e,s=l.useRef(!0),a=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),p.jsx(sw,{scope:t,isOpenDelayedRef:s,delayDuration:o,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:l.useCallback(u=>{a.current=u},[]),disableHoverableContent:r,children:i})};Kc.displayName=Uc;var no="Tooltip",[aw,co]=vn(no),Yc=e=>{const{__scopeTooltip:t,children:o,open:n,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=ti(no,e.__scopeTooltip),u=mn(t),[d,f]=l.useState(null),h=de(),m=l.useRef(0),x=s??c.disableHoverableContent,v=a??c.delayDuration,g=l.useRef(!1),[b,y]=dt({prop:n,defaultProp:r??!1,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(dr))):c.onClose(),i==null||i(E)},caller:no}),w=l.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),C=l.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,y(!0)},[y]),S=l.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),R=l.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,y(!0),m.current=0},v)},[v,y]);return l.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),p.jsx(lc,{...u,children:p.jsx(aw,{scope:t,contentId:h,open:b,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?R():C()},[c.isOpenDelayedRef,R,C]),onTriggerLeave:l.useCallback(()=>{x?S():(window.clearTimeout(m.current),m.current=0)},[S,x]),onOpen:C,onClose:S,disableHoverableContent:x,children:o})})};Yc.displayName=no;var fr="TooltipTrigger",Xc=l.forwardRef((e,t)=>{const{__scopeTooltip:o,...n}=e,r=co(fr,o),i=ti(fr,o),s=mn(o),a=l.useRef(null),c=ne(t,a,r.onTriggerChange),u=l.useRef(!1),d=l.useRef(!1),f=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(cc,{asChild:!0,...s,children:p.jsx(ee.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...n,ref:c,onPointerMove:U(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:U(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:U(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:U(e.onBlur,r.onClose),onClick:U(e.onClick,r.onClose)})})});Xc.displayName=fr;var oi="TooltipPortal",[lw,cw]=vn(oi,{forceMount:void 0}),Zc=e=>{const{__scopeTooltip:t,forceMount:o,children:n,container:r}=e,i=co(oi,t);return p.jsx(lw,{scope:t,forceMount:o,children:p.jsx(tt,{present:o||i.open,children:p.jsx(Ko,{asChild:!0,container:r,children:n})})})};Zc.displayName=oi;var Ft="TooltipContent",Qc=l.forwardRef((e,t)=>{const o=cw(Ft,e.__scopeTooltip),{forceMount:n=o.forceMount,side:r="top",...i}=e,s=co(Ft,e.__scopeTooltip);return p.jsx(tt,{present:n||s.open,children:s.disableHoverableContent?p.jsx(Jc,{side:r,...i,ref:t}):p.jsx(uw,{side:r,...i,ref:t})})}),uw=l.forwardRef((e,t)=>{const o=co(Ft,e.__scopeTooltip),n=ti(Ft,e.__scopeTooltip),r=l.useRef(null),i=ne(t,r),[s,a]=l.useState(null),{trigger:c,onClose:u}=o,d=r.current,{onPointerInTransitChange:f}=n,h=l.useCallback(()=>{a(null),f(!1)},[f]),m=l.useCallback((x,v)=>{const g=x.currentTarget,b={x:x.clientX,y:x.clientY},y=vw(b,g.getBoundingClientRect()),w=mw(b,y),C=hw(v.getBoundingClientRect()),S=xw([...w,...C]);a(S),f(!0)},[f]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(c&&d){const x=g=>m(g,d),v=g=>m(g,c);return c.addEventListener("pointerleave",x),d.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",v)}}},[c,d,m,h]),l.useEffect(()=>{if(s){const x=v=>{const g=v.target,b={x:v.clientX,y:v.clientY},y=(c==null?void 0:c.contains(g))||(d==null?void 0:d.contains(g)),w=!gw(b,s);y?h():w&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,d,s,u,h]),p.jsx(Jc,{...e,ref:i})}),[dw,fw]=vn(no,{isInside:!1}),pw=rw("TooltipContent"),Jc=l.forwardRef((e,t)=>{const{__scopeTooltip:o,children:n,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=co(Ft,o),u=mn(o),{onClose:d}=c;return l.useEffect(()=>(document.addEventListener(dr,d),()=>document.removeEventListener(dr,d)),[d]),l.useEffect(()=>{if(c.trigger){const f=h=>{const m=h.target;m!=null&&m.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),p.jsx(Uo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(uc,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.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:[p.jsx(pw,{children:n}),p.jsx(dw,{scope:o,isInside:!0,children:p.jsx(fy,{id:c.contentId,role:"tooltip",children:r||n})})]})})});Qc.displayName=Ft;var eu="TooltipArrow",tu=l.forwardRef((e,t)=>{const{__scopeTooltip:o,...n}=e,r=mn(o);return fw(eu,o).isInside?null:p.jsx(dc,{...r,...n,ref:t})});tu.displayName=eu;function vw(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 mw(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 hw(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 gw(e,t){const{x:o,y:n}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],u=a.x,d=a.y,f=c.x,h=c.y;d>n!=h>n&&o<(f-u)*(n-d)/(h-d)+u&&(r=!r)}return r}function xw(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),bw(t)}function bw(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],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.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],s=o[o.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.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 yw=Kc,ww=Yc,Cw=Xc,Sw=Zc,Ew=Qc,Rw=tu;const ou=({...e})=>p.jsx(yw,{"data-slot":"tooltip-provider",...e}),Pw=({...e})=>p.jsx(ou,{children:p.jsx(ww,{"data-slot":"tooltip",...e})}),Aw=({...e})=>p.jsx(Cw,{"data-slot":"tooltip-trigger",...e}),Tw=({className:e,sideOffset:t=2,hideArrow:o=!1,children:n,...r})=>p.jsx(Sw,{children:p.jsxs(Ew,{"data-slot":"tooltip-content",sideOffset:t,className:k("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&&p.jsx(Rw,{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]"})]})});function Nw(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 hn="Switch",[Ow]=bt(hn),[kw,$w]=Ow(hn),nu=l.forwardRef((e,t)=>{const{__scopeSwitch:o,name:n,checked:r,defaultChecked:i,required:s,disabled:a,value:c="on",onCheckedChange:u,form:d,...f}=e,[h,m]=l.useState(null),x=le(t,w=>m(w)),v=l.useRef(!1),g=h?d||!!h.closest("form"):!0,[b,y]=qt({prop:r,defaultProp:i??!1,onChange:u,caller:hn});return p.jsxs(kw,{scope:o,checked:b,disabled:a,children:[p.jsx(re.button,{type:"button",role:"switch","aria-checked":b,"aria-required":s,"data-state":au(b),"data-disabled":a?"":void 0,disabled:a,value:c,...f,ref:x,onClick:ce(e.onClick,w=>{y(C=>!C),g&&(v.current=w.isPropagationStopped(),v.current||w.stopPropagation())})}),g&&p.jsx(su,{control:h,bubbles:!v.current,name:n,value:c,checked:b,required:s,disabled:a,form:d,style:{transform:"translateX(-100%)"}})]})});nu.displayName=hn;var ru="SwitchThumb",iu=l.forwardRef((e,t)=>{const{__scopeSwitch:o,...n}=e,r=$w(ru,o);return p.jsx(re.span,{"data-state":au(r.checked),"data-disabled":r.disabled?"":void 0,...n,ref:t})});iu.displayName=ru;var Iw="SwitchBubbleInput",su=l.forwardRef(({__scopeSwitch:e,control:t,checked:o,bubbles:n=!0,...r},i)=>{const s=l.useRef(null),a=le(s,i),c=Nw(o),u=pl(t);return l.useEffect(()=>{const d=s.current;if(!d)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==o&&m){const x=new Event("click",{bubbles:n});m.call(d,o),d.dispatchEvent(x)}},[c,o,n]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...r,tabIndex:-1,ref:a,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});su.displayName=Iw;function au(e){return e?"checked":"unchecked"}var _w=nu,Dw=iu;const jw=et("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"}}),Mw=et("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 Lw({variant:e,size:t,className:o,...n}){return p.jsx(_w,{"data-slot":"switch",className:k(jw({variant:e,size:t,className:o})),...n,children:p.jsx(Dw,{"data-slot":"switch-thumb",className:k(Mw({variant:e,size:t}))})})}const Fw=({...e})=>p.jsx(wx,{"data-slot":"popover-portal",...e}),Bw=({...e})=>p.jsx(jl,{"data-slot":"popover",...e}),Ww=({...e})=>p.jsx(Ml,{"data-slot":"popover-trigger",...e}),Vw=({className:e,align:t="center",sideOffset:o=4,...n})=>p.jsx(Ll,{"data-slot":"popover-content",align:t,sideOffset:o,className:k("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}),zw=({...e})=>p.jsx(yx,{"data-slot":"popover-anchor",...e});var gn="Checkbox",[qw]=ze(gn),[Hw,ni]=qw(gn);function Gw(e){const{__scopeCheckbox:t,checked:o,children:n,defaultChecked:r,disabled:i,form:s,name:a,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:f}=e,[h,m]=dt({prop:o,defaultProp:r??!1,onChange:c,caller:gn}),[x,v]=l.useState(null),[g,b]=l.useState(null),y=l.useRef(!1),w=x?!!s||!!x.closest("form"):!0,C={checked:h,disabled:i,setChecked:m,control:x,setControl:v,name:a,form:s,value:d,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:Ue(r)?!1:r,isFormControl:w,bubbleInput:g,setBubbleInput:b};return p.jsx(Hw,{scope:t,...C,children:Uw(f)?f(C):n})}var lu="CheckboxTrigger",cu=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:o,...n},r)=>{const{control:i,value:s,disabled:a,checked:c,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:m,bubbleInput:x}=ni(lu,e),v=ne(r,d),g=l.useRef(c);return l.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const y=()=>f(g.current);return b.addEventListener("reset",y),()=>b.removeEventListener("reset",y)}},[i,f]),p.jsx(ee.button,{type:"button",role:"checkbox","aria-checked":Ue(c)?"mixed":c,"aria-required":u,"data-state":mu(c),"data-disabled":a?"":void 0,disabled:a,value:s,...n,ref:v,onKeyDown:U(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:U(o,b=>{f(y=>Ue(y)?!0:!y),x&&m&&(h.current=b.isPropagationStopped(),h.current||b.stopPropagation())})})});cu.displayName=lu;var uu=l.forwardRef((e,t)=>{const{__scopeCheckbox:o,name:n,checked:r,defaultChecked:i,required:s,disabled:a,value:c,onCheckedChange:u,form:d,...f}=e;return p.jsx(Gw,{__scopeCheckbox:o,checked:r,defaultChecked:i,disabled:a,required:s,onCheckedChange:u,name:n,form:d,value:c,internal_do_not_use_render:({isFormControl:h})=>p.jsxs(p.Fragment,{children:[p.jsx(cu,{...f,ref:t,__scopeCheckbox:o}),h&&p.jsx(vu,{__scopeCheckbox:o})]})})});uu.displayName=gn;var du="CheckboxIndicator",fu=l.forwardRef((e,t)=>{const{__scopeCheckbox:o,forceMount:n,...r}=e,i=ni(du,o);return p.jsx(tt,{present:n||Ue(i.checked)||i.checked===!0,children:p.jsx(ee.span,{"data-state":mu(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});fu.displayName=du;var pu="CheckboxBubbleInput",vu=l.forwardRef(({__scopeCheckbox:e,...t},o)=>{const{control:n,hasConsumerStoppedPropagationRef:r,checked:i,defaultChecked:s,required:a,disabled:c,name:u,value:d,form:f,bubbleInput:h,setBubbleInput:m}=ni(pu,e),x=ne(o,m),v=Jr(i),g=Xr(n);l.useEffect(()=>{const y=h;if(!y)return;const w=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(w,"checked").set,R=!r.current;if(v!==i&&S){const E=new Event("click",{bubbles:R});y.indeterminate=Ue(i),S.call(y,Ue(i)?!1:i),y.dispatchEvent(E)}},[h,v,i,r]);const b=l.useRef(Ue(i)?!1:i);return p.jsx(ee.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??b.current,required:a,disabled:c,name:u,value:d,form:f,...t,tabIndex:-1,ref:x,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});vu.displayName=pu;function Uw(e){return typeof e=="function"}function Ue(e){return e==="indeterminate"}function mu(e){return Ue(e)?"indeterminate":e?"checked":"unchecked"}const Kw=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),Yw=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),Xw=({className:e,...t})=>p.jsx(uu,{"data-slot":"checkbox",className:k("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:p.jsx(fu,{"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"?p.jsx(Yw,{className:"volt-ui-size-3.5"}):p.jsx(Kw,{className:"volt-ui-size-3.5"})})});var Gn="rovingFocusGroup.onEntryFocus",Zw={bubbles:!1,cancelable:!0},uo="RovingFocusGroup",[pr,hu,Qw]=Bl(uo),[Jw,gu]=ze(uo,[Qw]),[e1,t1]=Jw(uo),xu=l.forwardRef((e,t)=>p.jsx(pr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(pr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(o1,{...e,ref:t})})}));xu.displayName=uo;var o1=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,orientation:n,loop:r=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,h=l.useRef(null),m=ne(t,h),x=zr(i),[v,g]=dt({prop:s,defaultProp:a??null,onChange:c,caller:uo}),[b,y]=l.useState(!1),w=Ke(u),C=hu(o),S=l.useRef(!1),[R,E]=l.useState(0);return l.useEffect(()=>{const P=h.current;if(P)return P.addEventListener(Gn,w),()=>P.removeEventListener(Gn,w)},[w]),p.jsx(e1,{scope:o,orientation:n,dir:x,loop:r,currentTabStopId:v,onItemFocus:l.useCallback(P=>g(P),[g]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>E(P=>P+1),[]),onFocusableItemRemove:l.useCallback(()=>E(P=>P-1),[]),children:p.jsx(ee.div,{tabIndex:b||R===0?-1:0,"data-orientation":n,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{S.current=!0}),onFocus:U(e.onFocus,P=>{const $=!S.current;if(P.target===P.currentTarget&&$&&!b){const I=new CustomEvent(Gn,Zw);if(P.currentTarget.dispatchEvent(I),!I.defaultPrevented){const V=C().filter(O=>O.focusable),z=V.find(O=>O.active),W=V.find(O=>O.id===v),q=[z,W,...V].filter(Boolean).map(O=>O.ref.current);wu(q,d)}}S.current=!1}),onBlur:U(e.onBlur,()=>y(!1))})})}),bu="RovingFocusGroupItem",yu=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,focusable:n=!0,active:r=!1,tabStopId:i,children:s,...a}=e,c=de(),u=i||c,d=t1(bu,o),f=d.currentTabStopId===u,h=hu(o),{onFocusableItemAdd:m,onFocusableItemRemove:x,currentTabStopId:v}=d;return l.useEffect(()=>{if(n)return m(),()=>x()},[n,m,x]),p.jsx(pr.ItemSlot,{scope:o,id:u,focusable:n,active:r,children:p.jsx(ee.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:U(e.onMouseDown,g=>{n?d.onItemFocus(u):g.preventDefault()}),onFocus:U(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:U(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=i1(g,d.orientation,d.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let w=h().filter(C=>C.focusable).map(C=>C.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const C=w.indexOf(g.currentTarget);w=d.loop?s1(w,C+1):w.slice(C+1)}setTimeout(()=>wu(w))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:v!=null}):s})})});yu.displayName=bu;var n1={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function r1(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function i1(e,t,o){const n=r1(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return n1[n]}function wu(e,t=!1){const o=document.activeElement;for(const n of e)if(n===o||(n.focus({preventScroll:t}),document.activeElement!==o))return}function s1(e,t){return e.map((o,n)=>e[(t+n)%e.length])}var a1=xu,l1=yu,ri="Radio",[c1,Cu]=ze(ri),[u1,d1]=c1(ri),Su=l.forwardRef((e,t)=>{const{__scopeRadio:o,name:n,checked:r=!1,required:i,disabled:s,value:a="on",onCheck:c,form:u,...d}=e,[f,h]=l.useState(null),m=ne(t,g=>h(g)),x=l.useRef(!1),v=f?u||!!f.closest("form"):!0;return p.jsxs(u1,{scope:o,checked:r,disabled:s,children:[p.jsx(ee.button,{type:"button",role:"radio","aria-checked":r,"data-state":Au(r),"data-disabled":s?"":void 0,disabled:s,value:a,...d,ref:m,onClick:U(e.onClick,g=>{r||c==null||c(),v&&(x.current=g.isPropagationStopped(),x.current||g.stopPropagation())})}),v&&p.jsx(Pu,{control:f,bubbles:!x.current,name:n,value:a,checked:r,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});Su.displayName=ri;var Eu="RadioIndicator",Ru=l.forwardRef((e,t)=>{const{__scopeRadio:o,forceMount:n,...r}=e,i=d1(Eu,o);return p.jsx(tt,{present:n||i.checked,children:p.jsx(ee.span,{"data-state":Au(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})})});Ru.displayName=Eu;var f1="RadioBubbleInput",Pu=l.forwardRef(({__scopeRadio:e,control:t,checked:o,bubbles:n=!0,...r},i)=>{const s=l.useRef(null),a=ne(s,i),c=Jr(o),u=Xr(t);return l.useEffect(()=>{const d=s.current;if(!d)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==o&&m){const x=new Event("click",{bubbles:n});m.call(d,o),d.dispatchEvent(x)}},[c,o,n]),p.jsx(ee.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...r,tabIndex:-1,ref:a,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Pu.displayName=f1;function Au(e){return e?"checked":"unchecked"}var p1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],xn="RadioGroup",[v1]=ze(xn,[gu,Cu]),Tu=gu(),Nu=Cu(),[m1,h1]=v1(xn),Ou=l.forwardRef((e,t)=>{const{__scopeRadioGroup:o,name:n,defaultValue:r,value:i,required:s=!1,disabled:a=!1,orientation:c,dir:u,loop:d=!0,onValueChange:f,...h}=e,m=Tu(o),x=zr(u),[v,g]=dt({prop:i,defaultProp:r??null,onChange:f,caller:xn});return p.jsx(m1,{scope:o,name:n,required:s,disabled:a,value:v,onValueChange:g,children:p.jsx(a1,{asChild:!0,...m,orientation:c,dir:x,loop:d,children:p.jsx(ee.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":a?"":void 0,dir:x,...h,ref:t})})})});Ou.displayName=xn;var ku="RadioGroupItem",$u=l.forwardRef((e,t)=>{const{__scopeRadioGroup:o,disabled:n,...r}=e,i=h1(ku,o),s=i.disabled||n,a=Tu(o),c=Nu(o),u=l.useRef(null),d=ne(t,u),f=i.value===r.value,h=l.useRef(!1);return l.useEffect(()=>{const m=v=>{p1.includes(v.key)&&(h.current=!0)},x=()=>h.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",x)}},[]),p.jsx(l1,{asChild:!0,...a,focusable:!s,active:f,children:p.jsx(Su,{disabled:s,required:i.required,checked:f,...c,...r,name:i.name,ref:d,onCheck:()=>i.onValueChange(r.value),onKeyDown:U(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:U(r.onFocus,()=>{var m;h.current&&((m=u.current)==null||m.click())})})})});$u.displayName=ku;var g1="RadioGroupIndicator",Iu=l.forwardRef((e,t)=>{const{__scopeRadioGroup:o,...n}=e,r=Nu(o);return p.jsx(Ru,{...r,...n,ref:t})});Iu.displayName=g1;var x1=Ou,b1=$u,y1=Iu;const w1=e=>p.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:p.jsx("circle",{cx:"12",cy:"12",r:"10"})}),C1=({className:e,...t})=>p.jsx(x1,{"data-slot":"radio-group",className:k("volt-ui-grid volt-ui-gap-3",e),...t}),S1=({className:e,...t})=>p.jsx(b1,{"data-slot":"radio-group-item",className:k("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:p.jsx(y1,{"data-slot":"radio-group-indicator",className:"volt-ui-relative volt-ui-flex volt-ui-items-center volt-ui-justify-center",children:p.jsx(w1,{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"})})}),_u={blue:"text-blue-default",sky:"text-sky-default",mint:"text-mint-default",green:"text-green-default",teal:"text-teal-default",cyan:"text-cyan-default",indigo:"text-indigo-default",purple:"text-purple-default",pink:"text-pink-default",red:"text-red-default",orange:"text-orange-default",yellow:"text-yellow-default",bronze:"text-bronze-default",gray:"text-gray-default"},Du={soft:e=>`volt-ui-bg-${e}-soft volt-ui-border volt-ui-border-transparent volt-ui-text-${e}-default [a&]:hover:volt-ui-bg-${e}-soft-hover`,solid:e=>`volt-ui-bg-${e}-solid volt-ui-border volt-ui-border-transparent volt-ui-text-${e}-contrast [a&]:hover:volt-ui-bg-${e}-solid-hover`,surface:e=>`volt-ui-bg-${e}-surface volt-ui-border-${e}-a6 volt-ui-border volt-ui-text-${e}-default`},E1=Object.keys(_u),R1=Object.keys(Du),P1=E1.flatMap(e=>R1.map(t=>({color:e,style:t,class:Du[t](e)}))),ju=et("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:_u,style:{soft:"",solid:"",surface:""},shape:{default:"volt-ui-rounded-md",rounded:"volt-ui-rounded-full"}},compoundVariants:P1,defaultVariants:{color:"blue",shape:"default",style:"soft"}}),A1=({className:e,color:t,style:o,shape:n,asChild:r=!1,...i})=>{const s=r?xr:"span";return p.jsx(s,{"data-slot":"badge",className:k(ju({color:t,style:o,shape:n}),e),...i})},gs=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),T1=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),N1=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),O1=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),k1=et("volt-ui-group volt-ui-relative volt-ui-w-full volt-ui-rounded-xl volt-ui-px-3 volt-ui-py-2.5 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-3 volt-ui-gap-y-0.5 volt-ui-items-start [&>svg]:size-4.5 [&>svg]:translate-y-0.75 [&>svg]:text-current",{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"}}),Mu=l.createContext({type:"info"}),$1=({className:e,type:t="info",...o})=>p.jsx(Mu.Provider,{value:{type:t},children:p.jsx("div",{"data-callout-variant":t,"data-slot":"callout",role:"alert",className:k(k1({type:t}),e),...o})}),I1=({className:e,...t})=>p.jsx("div",{"data-slot":"callout-title",className:k("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}),_1=({className:e,...t})=>p.jsx("div",{"data-slot":"callout-description",className:k("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}),D1=({className:e,align:t="start",...o})=>p.jsx("div",{"data-slot":"callout-action","data-align":t,className:k("volt-ui-flex volt-ui-w-full volt-ui-col-span-3 volt-ui-mt-2",{"volt-ui-justify-start":t==="start","volt-ui-justify-end":t==="end"},e),...o}),j1=({custom:e})=>{const{type:t}=l.useContext(Mu);if(e)return e;let o=null;switch(t){case"info":o=p.jsx(gs,{});break;case"success":o=p.jsx(N1,{});break;case"warning":o=p.jsx(T1,{});break;case"destructive":o=p.jsx(O1,{});break;case"gray":o=p.jsx(gs,{});break}return o},M1=({className:e,custom:t,...o})=>p.jsx(j1,{"data-slot":"callout-icon",custom:t,className:k("volt-ui-size-4 volt-ui-translate-y-1 volt-ui-text-current volt-ui-shrink-0",e),...o});function xs(e){const t=L1(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(B1);if(c){const u=c.props.children,d=a.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return p.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function L1(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=V1(r),a=W1(i,r.props);return r.type!==l.Fragment&&(a.ref=n?zt(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var F1=Symbol("radix.slottable");function B1(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===F1}function W1(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function V1(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 z1(e){const t=e+"CollectionProvider",[o,n]=bt(t),[r,i]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:g,children:b}=v,y=Q.useRef(null),w=Q.useRef(new Map).current;return p.jsx(r,{scope:g,itemMap:w,collectionRef:y,children:b})};s.displayName=t;const a=e+"CollectionSlot",c=xs(a),u=Q.forwardRef((v,g)=>{const{scope:b,children:y}=v,w=i(a,b),C=le(g,w.collectionRef);return p.jsx(c,{ref:C,children:y})});u.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=xs(d),m=Q.forwardRef((v,g)=>{const{scope:b,children:y,...w}=v,C=Q.useRef(null),S=le(g,C),R=i(d,b);return Q.useEffect(()=>(R.itemMap.set(C,{ref:C,...w}),()=>void R.itemMap.delete(C))),p.jsx(h,{[f]:"",ref:S,children:y})});m.displayName=d;function x(v){const g=i(e+"CollectionConsumer",v);return Q.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((R,E)=>w.indexOf(R.ref.current)-w.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},x,n]}var bn="Collapsible",[q1,Lu]=bt(bn),[H1,ii]=q1(bn),Fu=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,open:n,defaultOpen:r,disabled:i,onOpenChange:s,...a}=e,[c,u]=qt({prop:n,defaultProp:r??!1,onChange:s,caller:bn});return p.jsx(H1,{scope:o,disabled:i,contentId:kt(),open:c,onOpenToggle:l.useCallback(()=>u(d=>!d),[u]),children:p.jsx(re.div,{"data-state":ai(c),"data-disabled":i?"":void 0,...a,ref:t})})});Fu.displayName=bn;var Bu="CollapsibleTrigger",Wu=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,...n}=e,r=ii(Bu,o);return p.jsx(re.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":ai(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:t,onClick:ce(e.onClick,r.onOpenToggle)})});Wu.displayName=Bu;var si="CollapsibleContent",Vu=l.forwardRef((e,t)=>{const{forceMount:o,...n}=e,r=ii(si,e.__scopeCollapsible);return p.jsx(yt,{present:o||r.open,children:({present:i})=>p.jsx(G1,{...n,ref:t,present:i})})});Vu.displayName=si;var G1=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,present:n,children:r,...i}=e,s=ii(si,o),[a,c]=l.useState(n),u=l.useRef(null),d=le(t,u),f=l.useRef(0),h=f.current,m=l.useRef(0),x=m.current,v=s.open||a,g=l.useRef(v),b=l.useRef(void 0);return l.useEffect(()=>{const y=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(y)},[]),Le(()=>{const y=u.current;if(y){b.current=b.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const w=y.getBoundingClientRect();f.current=w.height,m.current=w.width,g.current||(y.style.transitionDuration=b.current.transitionDuration,y.style.animationName=b.current.animationName),c(n)}},[s.open,n]),p.jsx(re.div,{"data-state":ai(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!v,...i,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:v&&r})});function ai(e){return e?"open":"closed"}var U1=Fu,K1=Wu,Y1=Vu,X1=l.createContext(void 0);function Z1(e){const t=l.useContext(X1);return e||t||"ltr"}var Ee="Accordion",Q1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[li,J1,eC]=z1(Ee),[yn]=bt(Ee,[eC,Lu]),ci=Lu(),zu=Q.forwardRef((e,t)=>{const{type:o,...n}=e,r=n,i=n;return p.jsx(li.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?p.jsx(rC,{...i,ref:t}):p.jsx(nC,{...r,ref:t})})});zu.displayName=Ee;var[qu,tC]=yn(Ee),[Hu,oC]=yn(Ee,{collapsible:!1}),nC=Q.forwardRef((e,t)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},collapsible:i=!1,...s}=e,[a,c]=qt({prop:o,defaultProp:n??"",onChange:r,caller:Ee});return p.jsx(qu,{scope:e.__scopeAccordion,value:Q.useMemo(()=>a?[a]:[],[a]),onItemOpen:c,onItemClose:Q.useCallback(()=>i&&c(""),[i,c]),children:p.jsx(Hu,{scope:e.__scopeAccordion,collapsible:i,children:p.jsx(Gu,{...s,ref:t})})})}),rC=Q.forwardRef((e,t)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},...i}=e,[s,a]=qt({prop:o,defaultProp:n??[],onChange:r,caller:Ee}),c=Q.useCallback(d=>a((f=[])=>[...f,d]),[a]),u=Q.useCallback(d=>a((f=[])=>f.filter(h=>h!==d)),[a]);return p.jsx(qu,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:u,children:p.jsx(Hu,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(Gu,{...i,ref:t})})})}),[iC,wn]=yn(Ee),Gu=Q.forwardRef((e,t)=>{const{__scopeAccordion:o,disabled:n,dir:r,orientation:i="vertical",...s}=e,a=Q.useRef(null),c=le(a,t),u=J1(o),f=Z1(r)==="ltr",h=ce(e.onKeyDown,m=>{var P;if(!Q1.includes(m.key))return;const x=m.target,v=u().filter($=>{var I;return!((I=$.ref.current)!=null&&I.disabled)}),g=v.findIndex($=>$.ref.current===x),b=v.length;if(g===-1)return;m.preventDefault();let y=g;const w=0,C=b-1,S=()=>{y=g+1,y>C&&(y=w)},R=()=>{y=g-1,y<w&&(y=C)};switch(m.key){case"Home":y=w;break;case"End":y=C;break;case"ArrowRight":i==="horizontal"&&(f?S():R());break;case"ArrowDown":i==="vertical"&&S();break;case"ArrowLeft":i==="horizontal"&&(f?R():S());break;case"ArrowUp":i==="vertical"&&R();break}const E=y%b;(P=v[E].ref.current)==null||P.focus()});return p.jsx(iC,{scope:o,disabled:n,direction:r,orientation:i,children:p.jsx(li.Slot,{scope:o,children:p.jsx(re.div,{...s,"data-orientation":i,ref:c,onKeyDown:n?void 0:h})})})}),Go="AccordionItem",[sC,ui]=yn(Go),Uu=Q.forwardRef((e,t)=>{const{__scopeAccordion:o,value:n,...r}=e,i=wn(Go,o),s=tC(Go,o),a=ci(o),c=kt(),u=n&&s.value.includes(n)||!1,d=i.disabled||e.disabled;return p.jsx(sC,{scope:o,open:u,disabled:d,triggerId:c,children:p.jsx(U1,{"data-orientation":i.orientation,"data-state":Ju(u),...a,...r,ref:t,disabled:d,open:u,onOpenChange:f=>{f?s.onItemOpen(n):s.onItemClose(n)}})})});Uu.displayName=Go;var Ku="AccordionHeader",Yu=Q.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=wn(Ee,o),i=ui(Ku,o);return p.jsx(re.h3,{"data-orientation":r.orientation,"data-state":Ju(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});Yu.displayName=Ku;var vr="AccordionTrigger",Xu=Q.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=wn(Ee,o),i=ui(vr,o),s=oC(vr,o),a=ci(o);return p.jsx(li.ItemSlot,{scope:o,children:p.jsx(K1,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":r.orientation,id:i.triggerId,...a,...n,ref:t})})});Xu.displayName=vr;var Zu="AccordionContent",Qu=Q.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=wn(Ee,o),i=ui(Zu,o),s=ci(o);return p.jsx(Y1,{role:"region","aria-labelledby":i.triggerId,"data-orientation":r.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Qu.displayName=Zu;function Ju(e){return e?"open":"closed"}var aC=zu,lC=Uu,cC=Yu,uC=Xu,dC=Qu;const fC=e=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e,children:p.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"})}),pC=({className:e,...t})=>p.jsx(aC,{"data-slot":"accordion",className:k(e),...t}),vC=({className:e,...t})=>p.jsx(lC,{"data-slot":"accordion-item",className:k(e),...t}),bs=({className:e,...t})=>p.jsx(fC,{className:k("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}),mC=({className:e,align:t="end",children:o,...n})=>p.jsx(cC,{className:"volt-ui-flex",children:p.jsxs(uC,{"data-slot":"accordion-trigger",className:k("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"&&p.jsx(bs,{}),o,t==="end"&&p.jsx(bs,{})]})}),hC=({className:e,children:t,...o})=>p.jsx(dC,{"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:p.jsx("div",{className:k("volt-ui-p-0",e),children:t})});exports.Accordion=pC;exports.AccordionContent=hC;exports.AccordionItem=vC;exports.AccordionTrigger=mC;exports.Badge=A1;exports.Button=js;exports.ButtonGroup=of;exports.ButtonGroupSeparator=rf;exports.ButtonGroupText=nf;exports.Callout=$1;exports.CalloutAction=D1;exports.CalloutDescription=_1;exports.CalloutIcon=M1;exports.CalloutTitle=I1;exports.Checkbox=Xw;exports.Dialog=wh;exports.DialogClose=Sh;exports.DialogContent=Eh;exports.DialogDescription=Th;exports.DialogFooter=Ph;exports.DialogHeader=Rh;exports.DialogOverlay=el;exports.DialogPortal=Ja;exports.DialogTitle=Ah;exports.DialogTrigger=Ch;exports.Field=pf;exports.FieldCombobox=Ex;exports.FieldComboboxClear=Mx;exports.FieldComboboxClearValue=Fx;exports.FieldComboboxContent=Nx;exports.FieldComboboxEmpty=Ix;exports.FieldComboboxGroup=Rx;exports.FieldComboboxGroupLabel=Px;exports.FieldComboboxInput=Ox;exports.FieldComboboxItem=$x;exports.FieldComboboxItemCheckIcon=Dx;exports.FieldComboboxList=kx;exports.FieldComboboxLoading=jx;exports.FieldComboboxPlaceholder=Lx;exports.FieldComboboxSeparator=_x;exports.FieldComboboxTrigger=Tx;exports.FieldComboboxValue=Ax;exports.FieldContent=vf;exports.FieldDescription=gf;exports.FieldError=xf;exports.FieldGroup=df;exports.FieldGroupAddon=yf;exports.FieldInput=Ws;exports.FieldInputGroup=Vs;exports.FieldLabel=mf;exports.FieldLabelContent=hf;exports.FieldSet=ff;exports.FieldTextarea=zs;exports.Label=yr;exports.Popover=Bw;exports.PopoverAnchor=zw;exports.PopoverContent=Vw;exports.PopoverPortal=Fw;exports.PopoverTrigger=Ww;exports.RadioGroup=C1;exports.RadioGroupItem=S1;exports.Select=Xy;exports.SelectContent=Jy;exports.SelectGroup=Zy;exports.SelectItem=tw;exports.SelectLabel=ew;exports.SelectScrollDownButton=Gc;exports.SelectScrollUpButton=Hc;exports.SelectSeparator=ow;exports.SelectTrigger=qc;exports.SelectValue=Qy;exports.Separator=Ls;exports.Switch=Lw;exports.Tooltip=Pw;exports.TooltipContent=Tw;exports.TooltipProvider=ou;exports.TooltipTrigger=Aw;exports.badgeVariants=ju;exports.buttonVariants=br;exports.cn=k;exports.useFieldContext=ro;
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},fd="DialogDescriptionWarning",pd=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bi(fd).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},yi=ii,vd=ai,wi=ci,Ci=ui,Si=di,md=pi,gd=mi,Ei=hi,hd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=hd.reduce((e,t)=>{const o=Yt(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),mt='[cmdk-group=""]',_o='[cmdk-group-items=""]',xd='[cmdk-group-heading=""]',Ri='[cmdk-item=""]',ir=`${Ri}:not([aria-disabled="true"])`,zo="cmdk-item-select",Qe="data-value",bd=(e,t,o)=>Oc(e,t,o),Pi=l.createContext(void 0),St=()=>l.useContext(Pi),Ti=l.createContext(void 0),dn=()=>l.useContext(Ti),Ai=l.createContext(void 0),ki=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),s=Je(()=>new Set),a=Ii(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),A=Id();We(()=>{if(f!==void 0){let P=f.trim();o.current.value=P,R.emit()}},[f]),We(()=>{A(6,Y)},[]);let R=l.useMemo(()=>({subscribe:P=>(s.current.add(P),()=>s.current.delete(P)),snapshot:()=>o.current,setState:(P,O,M)=>{var _,G,k,q;if(!Object.is(o.current[P],O)){if(o.current[P]=O,P==="search")Z(),B(),A(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(A(7,()=>{var U;o.current.selectedItemId=(U=V())==null?void 0:U.id,R.emit()}),M||A(5,Y),((G=a.current)==null?void 0:G.value)!==void 0){let U=O??"";(q=(k=a.current).onValueChange)==null||q.call(k,U);return}}R.emit()}},emit:()=>{s.current.forEach(P=>P())}}),[]),E=l.useMemo(()=>({value:(P,O,M)=>{var _;O!==((_=i.current.get(P))==null?void 0:_.value)&&(i.current.set(P,{value:O,keywords:M}),o.current.filtered.items.set(P,F(O,M)),A(2,()=>{B(),R.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]))),A(3,()=>{Z(),B(),o.current.value||K(),R.emit()}),()=>{i.current.delete(P),n.current.delete(P),o.current.filtered.items.delete(P);let M=V();A(4,()=>{Z(),(M==null?void 0:M.getAttribute("id"))===P&&K(),R.emit()})}),group:P=>(r.current.has(P)||r.current.set(P,new Set),()=>{i.current.delete(P),r.current.delete(P)}),filter:()=>a.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:x,inputId:C,labelId:w,listInnerRef:S}),[]);function F(P,O){var M,_;let G=(_=(M=a.current)==null?void 0:M.filter)!=null?_:bd;return P?G(P,o.current.search,O):0}function B(){if(!o.current.search||a.current.shouldFilter===!1)return;let P=o.current.filtered.items,O=[];o.current.filtered.groups.forEach(_=>{let G=r.current.get(_),k=0;G.forEach(q=>{let U=P.get(q);k=Math.max(U,k)}),O.push([_,k])});let M=S.current;H().sort((_,G)=>{var k,q;let U=_.getAttribute("id"),X=G.getAttribute("id");return((k=P.get(X))!=null?k:0)-((q=P.get(U))!=null?q:0)}).forEach(_=>{let G=_.closest(_o);G?G.appendChild(_.parentElement===G?_:_.closest(`${_o} > *`)):M.appendChild(_.parentElement===M?_:_.closest(`${_o} > *`))}),O.sort((_,G)=>G[1]-_[1]).forEach(_=>{var G;let k=(G=S.current)==null?void 0:G.querySelector(`${mt}[${Qe}="${encodeURIComponent(_[0])}"]`);k==null||k.parentElement.appendChild(k)})}function K(){let P=H().find(M=>M.getAttribute("aria-disabled")!=="true"),O=P==null?void 0:P.getAttribute(Qe);R.setState("value",O||void 0)}function Z(){var P,O,M,_;if(!o.current.search||a.current.shouldFilter===!1){o.current.filtered.count=n.current.size;return}o.current.filtered.groups=new Set;let G=0;for(let k of n.current){let q=(O=(P=i.current.get(k))==null?void 0:P.value)!=null?O:"",U=(_=(M=i.current.get(k))==null?void 0:M.keywords)!=null?_:[],X=F(q,U);o.current.filtered.items.set(k,X),X>0&&G++}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=G}function Y(){var P,O,M;let _=V();_&&(((P=_.parentElement)==null?void 0:P.firstChild)===_&&((M=(O=_.closest(mt))==null?void 0:O.querySelector(xd))==null||M.scrollIntoView({block:"nearest"})),_.scrollIntoView({block:"nearest"}))}function V(){var P;return(P=S.current)==null?void 0:P.querySelector(`${Ri}[aria-selected="true"]`)}function H(){var P;return Array.from(((P=S.current)==null?void 0:P.querySelectorAll(ir))||[])}function D(P){let O=H()[P];O&&R.setState("value",O.getAttribute(Qe))}function z(P){var O;let M=V(),_=H(),G=_.findIndex(q=>q===M),k=_[G+P];(O=a.current)!=null&&O.loop&&(k=G+P<0?_[_.length-1]:G+P===_.length?_[0]:_[G+P]),k&&R.setState("value",k.getAttribute(Qe))}function T(P){let O=V(),M=O==null?void 0:O.closest(mt),_;for(;M&&!_;)M=P>0?Ad(M,mt):kd(M,mt),_=M==null?void 0:M.querySelector(ir);_?R.setState("value",_.getAttribute(Qe)):z(P)}let te=()=>D(H().length-1),ne=P=>{P.preventDefault(),P.metaKey?te():P.altKey?T(1):z(1)},ae=P=>{P.preventDefault(),P.metaKey?D(0):P.altKey?T(-1):z(-1)};return l.createElement(Le.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:P=>{var O;(O=y.onKeyDown)==null||O.call(y,P);let M=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||M))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&&ae(P);break}case"ArrowUp":{ae(P);break}case"Home":{P.preventDefault(),D(0);break}case"End":{P.preventDefault(),te();break}case"Enter":{P.preventDefault();let _=V();if(_){let G=new Event(zo);_.dispatchEvent(G)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:jd},c),to(e,P=>l.createElement(Ti.Provider,{value:R},l.createElement(Pi.Provider,{value:E},P))))}),yd=l.forwardRef((e,t)=>{var o,n;let r=ie(),i=l.useRef(null),s=l.useContext(Ai),a=St(),c=Ii(e),u=(n=(o=c.current)==null?void 0:o.forceMount)!=null?n:s==null?void 0:s.forceMount;We(()=>{if(!u)return a.item(r,s==null?void 0:s.id)},[u]);let f=Ni(r,i,[e.value,e.children,i],e.keywords),p=dn(),g=Oe(A=>A.value&&A.value===f.current),m=Oe(A=>u||a.filter()===!1?!0:A.search?A.filtered.items.get(r)>0:!0);l.useEffect(()=>{let A=i.current;if(!(!A||e.disabled))return A.addEventListener(zo,b),()=>A.removeEventListener(zo,b)},[m,e.onSelect,e.disabled]);function b(){var A,R;v(),(R=(A=c.current).onSelect)==null||R.call(A,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(Le.div,{ref:fe(i,t),...S,id:r,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!g,"data-disabled":!!h,"data-selected":!!g,onPointerMove:h||a.getDisablePointerSelection()?void 0:v,onClick:h?void 0:b},e.children)}),wd=l.forwardRef((e,t)=>{let{heading:o,children:n,forceMount:r,...i}=e,s=ie(),a=l.useRef(null),c=l.useRef(null),u=ie(),f=St(),p=Oe(m=>r||f.filter()===!1?!0:m.search?m.filtered.groups.has(s):!0);We(()=>f.group(s),[]),Ni(s,a,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:r}),[r]);return l.createElement(Le.div,{ref:fe(a,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))))}),Cd=l.forwardRef((e,t)=>{let{alwaysRender:o,...n}=e,r=l.useRef(null),i=Oe(s=>!s.search);return!o&&!i?null:l.createElement(Le.div,{ref:fe(r,t),...n,"cmdk-separator":"",role:"separator"})}),Sd=l.forwardRef((e,t)=>{let{onValueChange:o,...n}=e,r=e.value!=null,i=dn(),s=Oe(u=>u.search),a=Oe(u=>u.selectedItemId),c=St();return l.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),l.createElement(Le.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":a,id:c.inputId,type:"text",value:r?e.value:s,onChange:u=>{r||i.setState("search",u.target.value),o==null||o(u.target.value)}})}),Ed=l.forwardRef((e,t)=>{let{children:o,label:n="Suggestions",...r}=e,i=l.useRef(null),s=l.useRef(null),a=Oe(u=>u.selectedItemId),c=St();return l.useEffect(()=>{if(s.current&&i.current){let u=s.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(Le.div,{ref:fe(i,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":n,id:c.listId},to(e,u=>l.createElement("div",{ref:fe(s,c.listInnerRef),"cmdk-list-sizer":""},u)))}),Rd=l.forwardRef((e,t)=>{let{open:o,onOpenChange:n,overlayClassName:r,contentClassName:i,container:s,...a}=e;return l.createElement(yi,{open:o,onOpenChange:n},l.createElement(wi,{container:s},l.createElement(Ci,{"cmdk-overlay":"",className:r}),l.createElement(Si,{"aria-label":e.label,"cmdk-dialog":"",className:i},l.createElement(ki,{ref:t,...a}))))}),Pd=l.forwardRef((e,t)=>Oe(o=>o.filtered.count===0)?l.createElement(Le.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Td=l.forwardRef((e,t)=>{let{progress:o,children:n,label:r="Loading...",...i}=e;return l.createElement(Le.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},to(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),Fe=Object.assign(ki,{List:Ed,Item:yd,Input:Sd,Group:wd,Separator:Cd,Dialog:Rd,Empty:Pd,Loading:Td});function Ad(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return o;o=o.nextElementSibling}}function kd(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return o;o=o.previousElementSibling}}function Ii(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 Oe(e){let t=dn(),o=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,o,o)}function Ni(e,t,o,n=[]){let r=l.useRef(),i=St();return We(()=>{var s;let a=(()=>{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,a,c),(s=t.current)==null||s.setAttribute(Qe,a),r.current=a}),r}var Id=()=>{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 Nd(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(Nd(t),{ref:t.ref},o(t.props.children)):o(t)}var jd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const 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:"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"})}),_d=({...e})=>d.jsx(yi,{"data-slot":"dialog",...e}),Dd=({...e})=>d.jsx(vd,{"data-slot":"dialog-trigger",...e}),ji=({...e})=>d.jsx(wi,{"data-slot":"dialog-portal",...e}),Md=({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}),Oi=({className:e,...t})=>d.jsx(Ci,{"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}),Ld=({className:e,children:t,showCloseButton:o=!0,size:n="lg",...r})=>d.jsxs(ji,{"data-slot":"dialog-portal",children:[d.jsx(Oi,{}),d.jsxs(Si,{"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(Od,{}),d.jsx("span",{className:"volt-ui-sr-only",children:"Close"})]})]})]}),Fd=({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}),$d=({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}),Bd=({className:e,...t})=>d.jsx(md,{"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}),Vd=({className:e,...t})=>d.jsx(gd,{"data-slot":"volt-ui-dialog-description",className:I("volt-ui-text-gray-light volt-ui-text-sm",e),...t}),zd=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"})}),qd=({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}),Wd=({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(zd,{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})]}),Hd=({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}),Gd=({...e})=>d.jsx(Fe.Empty,{"data-slot":"command-empty",className:"volt-ui-py-6 volt-ui-text-center volt-ui-text-sm",...e}),Ud=({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}),Kd=({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}),Zd=({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}),Yd=({className:e,...t})=>d.jsx(Fe.Loading,{"data-slot":"volt-ui-command-loading",className:I("volt-ui-text-gray-light",e),...t}),Xd=["top","right","bottom","left"],_e=Math.min,ce=Math.max,qt=Math.round,Mt=Math.floor,Se=e=>({x:e,y:e}),Qd={left:"right",right:"left",bottom:"top",top:"bottom"},Jd={start:"end",end:"start"};function qo(e,t,o){return ce(e,_e(t,o))}function Te(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function at(e){return e.split("-")[1]}function fn(e){return e==="x"?"y":"x"}function pn(e){return e==="y"?"height":"width"}const ef=new Set(["top","bottom"]);function Ce(e){return ef.has(Ae(e))?"y":"x"}function vn(e){return fn(Ce(e))}function tf(e,t,o){o===void 0&&(o=!1);const n=at(e),r=vn(e),i=pn(r);let s=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wt(s)),[s,Wt(s)]}function of(e){const t=Wt(e);return[Wo(e),t,Wo(t)]}function Wo(e){return e.replace(/start|end/g,t=>Jd[t])}const sr=["left","right"],ar=["right","left"],nf=["top","bottom"],rf=["bottom","top"];function sf(e,t,o){switch(e){case"top":case"bottom":return o?t?ar:sr:t?sr:ar;case"left":case"right":return t?nf:rf;default:return[]}}function af(e,t,o,n){const r=at(e);let i=sf(Ae(e),o==="start",n);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Wo)))),i}function Wt(e){return e.replace(/left|right|bottom|top/g,t=>Qd[t])}function lf(e){return{top:0,right:0,bottom:0,left:0,...e}}function _i(e){return typeof e!="number"?lf(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=Ce(t),s=vn(t),a=pn(s),c=Ae(t),u=i==="y",f=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,g=n[a]/2-r[a]/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(at(t)){case"start":m[s]-=g*(o&&u?-1:1);break;case"end":m[s]+=g*(o&&u?-1:1);break}return m}const cf=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s}=o,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.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<a.length;v++){const{name:h,fn:y}=a[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:s,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 s.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 ht(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:m=0}=Te(t,e),b=_i(m),h=a[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(a.floating)),boundary:u,rootBoundary:f,strategy:c})),x=p==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.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:a,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 uf=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:f=0}=Te(e,t)||{};if(u==null)return{};const p=_i(f),g={x:o,y:n},m=vn(r),b=pn(m),v=await s.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],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=A?A[w]:0;(!R||!await(s.isElement==null?void 0:s.isElement(A)))&&(R=a.floating[w]||i.floating[b]);const E=C/2-S/2,F=R/2-v[b]/2-1,B=_e(p[y],F),K=_e(p[x],F),Z=B,Y=R-v[b]-K,V=R/2-v[b]/2+E,H=qo(Z,V,Y),D=!c.arrow&&at(r)!=null&&V!==H&&i.reference[b]/2-(V<Z?B:K)-v[b]/2<0,z=D?V<Z?V-Z:V-Y:0;return{[m]:g[m]+z,data:{[m]:H,centerOffset:V-H-z,...D&&{alignmentOffset:z}},reset:D}}}),df=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,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=Ae(r),x=Ce(a),w=Ae(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=g||(w||!v?[Wt(a)]:of(a)),A=b!=="none";!g&&A&&S.push(...af(a,v,b,C));const R=[a,...S],E=await ht(t,h),F=[];let B=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&F.push(E[y]),p){const V=tf(r,s,C);F.push(E[V[0]],E[V[1]])}if(B=[...B,{placement:r,overflows:F}],!F.every(V=>V<=0)){var K,Z;const V=(((K=i.flip)==null?void 0:K.index)||0)+1,H=R[V];if(H&&(!(p==="alignment"?x!==Ce(H):!1)||B.every(T=>Ce(T.placement)===x?T.overflows[0]>0:!0)))return{data:{index:V,overflows:B},reset:{placement:H}};let D=(Z=B.filter(z=>z.overflows[0]<=0).sort((z,T)=>z.overflows[1]-T.overflows[1])[0])==null?void 0:Z.placement;if(!D)switch(m){case"bestFit":{var Y;const z=(Y=B.filter(T=>{if(A){const te=Ce(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:Y[0];z&&(D=z);break}case"initialPlacement":D=a;break}if(r!==D)return{reset:{placement:D}}}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 Xd.some(t=>e[t]>=0)}const ff=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 ht(t,{...r,elementContext:"reference"}),s=cr(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ur(s)}}}case"escaped":{const i=await ht(t,{...r,altBoundary:!0}),s=cr(i,o.floating);return{data:{escapedOffsets:s,escaped:ur(s)}}}default:return{}}}}},Di=new Set(["left","top"]);async function pf(e,t){const{placement:o,platform:n,elements:r}=e,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Ae(o),a=at(o),c=Ce(o)==="y",u=Di.has(s)?-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 a&&typeof b=="number"&&(m=a==="end"?b*-1:b),c?{x:m*f,y:g*u}:{x:g*u,y:m*f}}const vf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await pf(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},mf=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:s=!1,limiter:a={fn:h=>{let{x:y,y:x}=h;return{x:y,y:x}}},...c}=Te(e,t),u={x:o,y:n},f=await ht(t,c),p=Ce(Ae(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=qo(x,m,w)}if(s){const h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=b+f[h],w=b-f[y];b=qo(x,b,w)}const v=a.fn({...t,[g]:m,[p]:b});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[g]:i,[p]:s}}}}}},gf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:n,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Te(e,t),f={x:o,y:n},p=Ce(r),g=fn(p);let m=f[g],b=f[p];const v=Te(a,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(Ae(r)),S=i.reference[p]-i.floating[w]+(C&&((y=s.offset)==null?void 0:y[p])||0)+(C?0:h.crossAxis),A=i.reference[p]+i.reference[w]+(C?0:((x=s.offset)==null?void 0:x[p])||0)-(C?h.crossAxis:0);b<S?b=S:b>A&&(b=A)}return{[g]:m,[p]:b}}}},hf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...u}=Te(e,t),f=await ht(t,u),p=Ae(r),g=at(r),m=Ce(r)==="y",{width:b,height:v}=i.floating;let h,y;p==="top"||p==="bottom"?(h=p,y=g===(await(s.isRTL==null?void 0:s.isRTL(a.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=_e(v-f[h],x),S=_e(b-f[y],w),A=!t.middlewareData.shift;let R=C,E=S;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(E=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=x),A&&!g){const B=ce(f.left,0),K=ce(f.right,0),Z=ce(f.top,0),Y=ce(f.bottom,0);m?E=b-2*(B!==0||K!==0?B+K:ce(f.left,f.right)):R=v-2*(Z!==0||Y!==0?Z+Y:ce(f.top,f.bottom))}await c({...t,availableWidth:E,availableHeight:R});const F=await s.getDimensions(a.floating);return b!==F.width||v!==F.height?{reset:{rects:!0}}:{}}}};function oo(){return typeof window<"u"}function lt(e){return Mi(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Re(e){var t;return(t=(Mi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mi(e){return oo()?e instanceof Node||e instanceof ue(e).Node:!1}function me(e){return oo()?e instanceof Element||e instanceof ue(e).Element:!1}function Ee(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 xf=new Set(["inline","contents"]);function Et(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!xf.has(r)}const bf=new Set(["table","td","th"]);function yf(e){return bf.has(lt(e))}const wf=[":popover-open",":modal"];function no(e){return wf.some(t=>{try{return e.matches(t)}catch{return!1}})}const Cf=["transform","translate","scale","rotate","perspective"],Sf=["transform","translate","scale","rotate","perspective","filter"],Ef=["paint","layout","strict","content"];function mn(e){const t=gn(),o=me(e)?ge(e):e;return Cf.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)||Sf.some(n=>(o.willChange||"").includes(n))||Ef.some(n=>(o.contain||"").includes(n))}function Rf(e){let t=De(e);for(;Ee(t)&&!ot(t);){if(mn(t))return t;if(no(t))return null;t=De(t)}return null}function gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Pf=new Set(["html","body","#document"]);function ot(e){return Pf.has(lt(e))}function ge(e){return ue(e).getComputedStyle(e)}function ro(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function De(e){if(lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dr(e)&&e.host||Re(e);return dr(t)?t.host:t}function Li(e){const t=De(e);return ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&Et(t)?t:Li(t)}function xt(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Li(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=ue(r);if(i){const a=Ho(s);return t.concat(s,s.visualViewport||[],Et(r)?r:[],a&&o?xt(a):[])}return t.concat(r,xt(r,[],o))}function Ho(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Fi(e){const t=ge(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Ee(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n,a=qt(o)!==i||qt(n)!==s;return a&&(o=i,n=s),{width:o,height:n,$:a}}function hn(e){return me(e)?e:e.contextElement}function tt(e){const t=hn(e);if(!Ee(t))return Se(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:i}=Fi(t);let s=(i?qt(o.width):o.width)/n,a=(i?qt(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Tf=Se(0);function $i(e){const t=ue(e);return!gn()||!t.visualViewport?Tf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Af(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ue(e)?!1:t}function He(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),i=hn(e);let s=Se(1);t&&(n?me(n)&&(s=tt(n)):s=tt(e));const a=Af(i,o,n)?$i(i):Se(0);let c=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,f=r.width/s.x,p=r.height/s.y;if(i){const g=ue(i),m=n&&me(n)?ue(n):n;let b=g,v=Ho(b);for(;v&&n&&m!==b;){const h=tt(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=ue(v),v=Ho(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:He(Re(e)).left+o}function Bi(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 kf(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const i=r==="fixed",s=Re(n),a=t?no(t.floating):!1;if(n===s||a&&i)return o;let c={scrollLeft:0,scrollTop:0},u=Se(1);const f=Se(0),p=Ee(n);if((p||!p&&!i)&&((lt(n)!=="body"||Et(s))&&(c=ro(n)),Ee(n))){const m=He(n);u=tt(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const g=s&&!p&&!i?Bi(s,c):Se(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 If(e){return Array.from(e.getClientRects())}function Nf(e){const t=Re(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 s=-o.scrollLeft+io(e);const a=-o.scrollTop;return ge(n).direction==="rtl"&&(s+=ce(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:s,y:a}}const fr=25;function jf(e,t){const o=ue(e),n=Re(e),r=o.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const f=gn();(!f||f&&t==="fixed")&&(a=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:s,x:a,y:c}}const Of=new Set(["absolute","fixed"]);function _f(e,t){const o=He(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=Ee(e)?tt(e):Se(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,u=n*i.y;return{width:s,height:a,x:c,y:u}}function pr(e,t,o){let n;if(t==="viewport")n=jf(e,o);else if(t==="document")n=Nf(Re(e));else if(me(t))n=_f(t,o);else{const r=$i(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ht(n)}function Vi(e,t){const o=De(e);return o===t||!me(o)||ot(o)?!1:ge(o).position==="fixed"||Vi(o,t)}function Df(e,t){const o=t.get(e);if(o)return o;let n=xt(e,[],!1).filter(a=>me(a)&&lt(a)!=="body"),r=null;const i=ge(e).position==="fixed";let s=i?De(e):e;for(;me(s)&&!ot(s);){const a=ge(s),c=mn(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&Of.has(r.position)||Et(s)&&!c&&Vi(e,s))?n=n.filter(f=>f!==s):r=a,s=De(s)}return t.set(e,n),n}function Mf(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const s=[...o==="clippingAncestors"?no(t)?[]:Df(t,this._c):[].concat(o),n],a=s[0],c=s.reduce((u,f)=>{const p=pr(t,f,r);return u.top=ce(p.top,u.top),u.right=_e(p.right,u.right),u.bottom=_e(p.bottom,u.bottom),u.left=ce(p.left,u.left),u},pr(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Lf(e){const{width:t,height:o}=Fi(e);return{width:t,height:o}}function Ff(e,t,o){const n=Ee(t),r=Re(t),i=o==="fixed",s=He(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Se(0);function u(){c.x=io(r)}if(n||!n&&!i)if((lt(t)!=="body"||Et(r))&&(a=ro(t)),n){const m=He(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?Bi(r,a):Se(0),p=s.left+a.scrollLeft-c.x-f.x,g=s.top+a.scrollTop-c.y-f.y;return{x:p,y:g,width:s.width,height:s.height}}function Do(e){return ge(e).position==="static"}function vr(e,t){if(!Ee(e)||ge(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Re(e)===o&&(o=o.ownerDocument.body),o}function zi(e,t){const o=ue(e);if(no(e))return o;if(!Ee(e)){let r=De(e);for(;r&&!ot(r);){if(me(r)&&!Do(r))return r;r=De(r)}return o}let n=vr(e,t);for(;n&&yf(n)&&Do(n);)n=vr(n,t);return n&&ot(n)&&Do(n)&&!mn(n)?o:n||Rf(e)||o}const $f=async function(e){const t=this.getOffsetParent||zi,o=this.getDimensions,n=await o(e.floating);return{reference:Ff(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Bf(e){return ge(e).direction==="rtl"}const Vf={convertOffsetParentRelativeRectToViewportRelativeRect:kf,getDocumentElement:Re,getClippingRect:Mf,getOffsetParent:zi,getElementRects:$f,getClientRects:If,getDimensions:Lf,getScale:tt,isElement:me,isRTL:Bf};function qi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zf(e,t){let o=null,n;const r=Re(e);function i(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:m}=u;if(a||t(),!g||!m)return;const b=Mt(p),v=Mt(r.clientWidth-(f+g)),h=Mt(r.clientHeight-(p+m)),y=Mt(f),w={rootMargin:-b+"px "+-v+"px "+-h+"px "+-y+"px",threshold:ce(0,_e(1,c))||1};let C=!0;function S(A){const R=A[0].intersectionRatio;if(R!==c){if(!C)return s();R?s(!1,R):n=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!qi(u,e.getBoundingClientRect())&&s(),C=!1}try{o=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{o=new IntersectionObserver(S,w)}o.observe(e)}return s(!0),i}function qf(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=hn(e),f=r||i?[...u?xt(u):[],...xt(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",o,{passive:!0}),i&&y.addEventListener("resize",o)});const p=u&&a?zf(u,o):null;let g=-1,m=null;s&&(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?He(e):null;c&&h();function h(){const y=He(e);v&&!qi(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 Wf=vf,Hf=mf,Gf=df,Uf=hf,Kf=ff,mr=uf,Zf=gf,Yf=(e,t,o)=>{const n=new Map,r={platform:Vf,...o},i={...r.platform,_c:n};return cf(e,t,{...r,platform:i})};var Xf=typeof document<"u",Qf=function(){},$t=Xf?oe.useLayoutEffect:Qf;function Gt(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(!Gt(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)&&!Gt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Wi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gr(e,t){const o=Wi(e);return Math.round(t*o)/o}function Mo(e){const t=l.useRef(e);return $t(()=>{t.current=e}),t}function Jf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!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);Gt(g,n)||m(n);const[b,v]=l.useState(null),[h,y]=l.useState(null),x=l.useCallback(T=>{T!==A.current&&(A.current=T,v(T))},[]),w=l.useCallback(T=>{T!==R.current&&(R.current=T,y(T))},[]),C=i||b,S=s||h,A=l.useRef(null),R=l.useRef(null),E=l.useRef(f),F=c!=null,B=Mo(c),K=Mo(r),Z=Mo(u),Y=l.useCallback(()=>{if(!A.current||!R.current)return;const T={placement:t,strategy:o,middleware:g};K.current&&(T.platform=K.current),Yf(A.current,R.current,T).then(te=>{const ne={...te,isPositioned:Z.current!==!1};V.current&&!Gt(E.current,ne)&&(E.current=ne,Zt.flushSync(()=>{p(ne)}))})},[g,t,o,K,Z]);$t(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(T=>({...T,isPositioned:!1})))},[u]);const V=l.useRef(!1);$t(()=>(V.current=!0,()=>{V.current=!1}),[]),$t(()=>{if(C&&(A.current=C),S&&(R.current=S),C&&S){if(B.current)return B.current(C,S,Y);Y()}},[C,S,Y,B,F]);const H=l.useMemo(()=>({reference:A,floating:R,setReference:x,setFloating:w}),[x,w]),D=l.useMemo(()=>({reference:C,floating:S}),[C,S]),z=l.useMemo(()=>{const T={position:o,left:0,top:0};if(!D.floating)return T;const te=gr(D.floating,f.x),ne=gr(D.floating,f.y);return a?{...T,transform:"translate("+te+"px, "+ne+"px)",...Wi(D.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:te,top:ne}},[o,a,D.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:Y,refs:H,elements:D,floatingStyles:z}),[f,Y,H,D,z])}const ep=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):{}}}},tp=(e,t)=>({...Wf(e),options:[e,t]}),op=(e,t)=>({...Hf(e),options:[e,t]}),np=(e,t)=>({...Zf(e),options:[e,t]}),rp=(e,t)=>({...Gf(e),options:[e,t]}),ip=(e,t)=>({...Uf(e),options:[e,t]}),sp=(e,t)=>({...Kf(e),options:[e,t]}),ap=(e,t)=>({...ep(e),options:[e,t]});var lp="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=lp;var cp=Hi;function so(e){const[t,o]=l.useState(void 0);return se(()=>{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 s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;o({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else o(void 0)},[e]),t}var xn="Popper",[Gi,ct]=de(xn),[up,Ui]=Gi(xn),Ki=e=>{const{__scopePopper:t,children:o}=e,[n,r]=l.useState(null);return d.jsx(up,{scope:t,anchor:n,onAnchorChange:r,children:o})};Ki.displayName=xn;var Zi="PopperAnchor",Yi=l.forwardRef((e,t)=>{const{__scopePopper:o,virtualRef:n,...r}=e,i=Ui(Zi,o),s=l.useRef(null),a=Q(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||s.current,u!==c.current&&i.onAnchorChange(c.current)}),n?null:d.jsx($.div,{...r,ref:a})});Yi.displayName=Zi;var bn="PopperContent",[dp,fp]=Gi(bn),Xi=l.forwardRef((e,t)=>{var k,q,U,X,ee,J;const{__scopePopper:o,side:n="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:b,...v}=e,h=Ui(bn,o),[y,x]=l.useState(null),w=Q(t,le=>x(le)),[C,S]=l.useState(null),A=so(C),R=(A==null?void 0:A.width)??0,E=(A==null?void 0:A.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],Z=K.length>0,Y={padding:B,boundary:K.filter(vp),altBoundary:Z},{refs:V,floatingStyles:H,placement:D,isPositioned:z,middlewareData:T}=Jf({strategy:"fixed",placement:F,whileElementsMounted:(...le)=>qf(...le,{animationFrame:m==="always"}),elements:{reference:h.anchor},middleware:[tp({mainAxis:r+E,alignmentAxis:s}),c&&op({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?np():void 0,...Y}),c&&rp({...Y}),ip({...Y,apply:({elements:le,rects:ye,availableWidth:dt,availableHeight:ft})=>{const{width:pt,height:rl}=ye.reference,At=le.floating.style;At.setProperty("--radix-popper-available-width",`${dt}px`),At.setProperty("--radix-popper-available-height",`${ft}px`),At.setProperty("--radix-popper-anchor-width",`${pt}px`),At.setProperty("--radix-popper-anchor-height",`${rl}px`)}}),C&&ap({element:C,padding:a}),mp({arrowWidth:R,arrowHeight:E}),g&&sp({strategy:"referenceHidden",...Y})]}),[te,ne]=es(D),ae=je(b);se(()=>{z&&(ae==null||ae())},[z,ae]);const P=(k=T.arrow)==null?void 0:k.x,O=(q=T.arrow)==null?void 0:q.y,M=((U=T.arrow)==null?void 0:U.centerOffset)!==0,[_,G]=l.useState();return se(()=>{y&&G(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:z?H.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(dp,{scope:o,placedSide:te,onArrowChange:S,arrowX:P,arrowY:O,shouldHideArrow:M,children:d.jsx($.div,{"data-side":te,"data-align":ne,...v,ref:w,style:{...v.style,animation:z?void 0:"none"}})})})});Xi.displayName=bn;var Qi="PopperArrow",pp={top:"bottom",right:"left",bottom:"top",left:"right"},Ji=l.forwardRef(function(t,o){const{__scopePopper:n,...r}=t,i=fp(Qi,n),s=pp[i.placedSide];return d.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]: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(cp,{...r,ref:o,style:{...r.style,display:"block"}})})});Ji.displayName=Qi;function vp(e){return e!==null}var mp=e=>({name:"transformOrigin",options:e,fn(t){var h,y,x;const{placement:o,rects:n,middlewareData:r}=t,s=((h=r.arrow)==null?void 0:h.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,f]=es(o),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=r.arrow)==null?void 0:y.x)??0)+a/2,m=(((x=r.arrow)==null?void 0:x.y)??0)+c/2;let b="",v="";return u==="bottom"?(b=s?p:`${g}px`,v=`${-c}px`):u==="top"?(b=s?p:`${g}px`,v=`${n.floating.height+c}px`):u==="right"?(b=`${-c}px`,v=s?p:`${m}px`):u==="left"&&(b=`${n.floating.width+c}px`,v=s?p:`${m}px`),{data:{x:b,y:v}}}});function es(e){const[t,o="center"]=e.split("-");return[t,o]}var yn=Ki,ao=Yi,wn=Xi,Cn=Ji;function gp(e){const t=hp(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(bp);if(c){const u=c.props.children,f=a.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,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function hp(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=wp(r),a=yp(i,r.props);return r.type!==l.Fragment&&(a.ref=n?fe(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xp=Symbol("radix.slottable");function bp(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xp}function yp(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function wp(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 lo="Popover",[ts]=de(lo,[ct]),Rt=ct(),[Cp,$e]=ts(lo),os=e=>{const{__scopePopover:t,children:o,open:n,defaultOpen:r,onOpenChange:i,modal:s=!1}=e,a=Rt(t),c=l.useRef(null),[u,f]=l.useState(!1),[p,g]=pe({prop:n,defaultProp:r??!1,onChange:i,caller:lo});return d.jsx(yn,{...a,children:d.jsx(Cp,{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:s,children:o})})};os.displayName=lo;var ns="PopoverAnchor",rs=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=$e(ns,o),i=Rt(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=r;return l.useEffect(()=>(s(),()=>a()),[s,a]),d.jsx(ao,{...i,...n,ref:t})});rs.displayName=ns;var is="PopoverTrigger",ss=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=$e(is,o),i=Rt(o),s=Q(t,r.triggerRef),a=d.jsx($.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":ds(r.open),...n,ref:s,onClick:L(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:d.jsx(ao,{asChild:!0,...i,children:a})});ss.displayName=is;var Sn="PopoverPortal",[Sp,Ep]=ts(Sn,{forceMount:void 0}),as=e=>{const{__scopePopover:t,forceMount:o,children:n,container:r}=e,i=$e(Sn,t);return d.jsx(Sp,{scope:t,forceMount:o,children:d.jsx(he,{present:o||i.open,children:d.jsx(Ct,{asChild:!0,container:r,children:n})})})};as.displayName=Sn;var nt="PopoverContent",ls=l.forwardRef((e,t)=>{const o=Ep(nt,e.__scopePopover),{forceMount:n=o.forceMount,...r}=e,i=$e(nt,e.__scopePopover);return d.jsx(he,{present:n||i.open,children:i.modal?d.jsx(Pp,{...r,ref:t}):d.jsx(Tp,{...r,ref:t})})});ls.displayName=nt;var Rp=gp("PopoverContent.RemoveScroll"),Pp=l.forwardRef((e,t)=>{const o=$e(nt,e.__scopePopover),n=l.useRef(null),r=Q(t,n),i=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return an(s)},[]),d.jsx(Jt,{as:Rp,allowPinchZoom:!0,children:d.jsx(cs,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,u=a.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Tp=l.forwardRef((e,t)=>{const o=$e(nt,e.__scopePopover),n=l.useRef(!1),r=l.useRef(!1);return d.jsx(cs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=o.triggerRef.current)==null||a.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 s=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),cs=l.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...p}=e,g=$e(nt,o),m=Rt(o);return sn(),d.jsx(Xt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:i,children:d.jsx(wt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(wn,{"data-state":ds(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)"}})})})}),us="PopoverClose",Ap=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=$e(us,o);return d.jsx($.button,{type:"button",...n,ref:t,onClick:L(e.onClick,()=>r.onOpenChange(!1))})});Ap.displayName=us;var kp="PopoverArrow",Ip=l.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=Rt(o);return d.jsx(Cn,{...r,...n,ref:t})});Ip.displayName=kp;function ds(e){return e?"open":"closed"}var fs=os,Np=rs,ps=ss,jp=as,vs=ls;const Op=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"})}),_p=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"})}),ms=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"})}),Dp=({...e})=>d.jsx(fs,{"data-slot":"combobox",...e}),Mp=({className:e,...t})=>d.jsx(Ud,{"data-slot":"combobox-group",className:I("volt-ui-p-0!",e),...t}),Lp=({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}),Fp=({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}),$p=l.forwardRef(({className:e,children:t,...o},n)=>{const{inputRef:r}=yt();return d.jsxs(ps,{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(_p,{className:"volt-ui-transition-all volt-ui-size-6 volt-ui-group-data-[selected=open]:rotate-180 volt-ui-text-gray-light"})]})}),Bp=({className:e,children:t,...o})=>d.jsx(vs,{"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(qd,{"data-slot":"combobox-command",className:"volt-ui-w-full volt-ui-rounded-none",children:t})}),Vp=({className:e,...t})=>d.jsx(Wd,{"data-slot":"combobox-command-input",className:I("volt-ui-w-full volt-ui-placeholder:text-gray-a8",e),...t}),zp=({className:e,...t})=>d.jsx(Hd,{"data-slot":"combobox-command-list",className:I("volt-ui-px-2 volt-ui-py-3",e),...t}),qp=({className:e,children:t,...o})=>d.jsx(Zd,{"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}),Wp=({className:e,...t})=>d.jsx(Gd,{"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}),Hp=({className:e,...t})=>d.jsx(Kd,{"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}),Gp=({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(Op,{className:I("volt-ui-size-4 volt-ui-text-gray-default",e)})}),Up=({className:e,...t})=>d.jsx(Yd,{"data-slot":"volt-ui-combobox-command-loading",className:I("volt-ui-text-gray-light volt-ui-px-3 volt-ui-py-2",e),...t}),Kp=({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,onClick:n=>{n.stopPropagation(),t==null||t(n)},...o,children:d.jsx(ms,{className:"volt-ui-transition-all volt-ui-text-accent-contrast volt-ui-size-4 volt-ui-group-data-[selected=open]:rotate-180"})}),Zp=({className:e,...t})=>d.jsx("span",{className:I("volt-ui-text-gray-a8",e),...t}),Yp=({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),onClick:n=>{n.stopPropagation(),t==null||t(n)},...o,children:d.jsx(ms,{className:"volt-ui-size-4 volt-ui-text-current"})});function hr(e,[t,o]){return Math.min(o,Math.max(t,e))}function xr(e){const t=Xp(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(Jp);if(c){const u=c.props.children,f=a.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,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function Xp(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=tv(r),a=ev(i,r.props);return r.type!==l.Fragment&&(a.ref=n?fe(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qp=Symbol("radix.slottable");function Jp(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qp}function ev(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function tv(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 En(e){const t=e+"CollectionProvider",[o,n]=de(t),[r,i]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=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})};s.displayName=t;const a=e+"CollectionSlot",c=xr(a),u=oe.forwardRef((v,h)=>{const{scope:y,children:x}=v,w=i(a,y),C=Q(h,w.collectionRef);return d.jsx(c,{ref:C,children:x})});u.displayName=a;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=xr(f),m=oe.forwardRef((v,h)=>{const{scope:y,children:x,...w}=v,C=oe.useRef(null),S=Q(h,C),A=i(f,y);return oe.useEffect(()=>(A.itemMap.set(C,{ref:C,...w}),()=>void A.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((A,R)=>w.indexOf(A.ref.current)-w.indexOf(R.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},b,n]}var ov=l.createContext(void 0);function co(e){const t=l.useContext(ov);return e||t||"ltr"}function nv(e){const t=rv(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(sv);if(c){const u=c.props.children,f=a.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,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function rv(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=lv(r),a=av(i,r.props);return r.type!==l.Fragment&&(a.ref=n?fe(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var iv=Symbol("radix.slottable");function sv(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===iv}function av(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]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function lv(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 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 gs=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",hs=l.forwardRef((e,t)=>d.jsx($.span,{...e,ref:t,style:{...gs,...e.style}}));hs.displayName=cv;var uv=hs,dv=[" ","Enter","ArrowUp","ArrowDown"],fv=[" ","Enter"],Ge="Select",[fo,po,pv]=En(Ge),[ut]=de(Ge,[pv,ct]),vo=ct(),[vv,Be]=ut(Ge),[mv,gv]=ut(Ge),xs=e=>{const{__scopeSelect:t,children:o,open:n,defaultOpen:r,onOpenChange:i,value:s,defaultValue:a,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),A=co(u),[R,E]=pe({prop:n,defaultProp:r??!1,onChange:i,caller:Ge}),[F,B]=pe({prop:s,defaultProp:a,onChange:c,caller:Ge}),K=l.useRef(null),Z=h?b||!!h.closest("form"):!0,[Y,V]=l.useState(new Set),H=Array.from(Y).map(D=>D.props.value).join(";");return d.jsx(yn,{...v,children:d.jsxs(vv,{required:m,scope:t,trigger:h,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:ie(),value:F,onValueChange:B,open:R,onOpenChange:E,dir:A,triggerPointerDownPosRef:K,disabled:g,children:[d.jsx(fo.Provider,{scope:t,children:d.jsx(mv,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(D=>{V(z=>new Set(z).add(D))},[]),onNativeOptionRemove:l.useCallback(D=>{V(z=>{const T=new Set(z);return T.delete(D),T})},[]),children:o})}),Z?d.jsxs(qs,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:p,value:F,onChange:D=>B(D.target.value),disabled:g,form:b,children:[F===void 0?d.jsx("option",{value:""}):null,Array.from(Y)]},H):null]})})};xs.displayName=Ge;var bs="SelectTrigger",ys=l.forwardRef((e,t)=>{const{__scopeSelect:o,disabled:n=!1,...r}=e,i=vo(o),s=Be(bs,o),a=s.disabled||n,c=Q(t,s.onTriggerChange),u=po(o),f=l.useRef("touch"),[p,g,m]=Hs(v=>{const h=u().filter(w=>!w.disabled),y=h.find(w=>w.value===s.value),x=Gs(h,v,y);x!==void 0&&s.onValueChange(x.value)}),b=v=>{a||(s.onOpenChange(!0),m()),v&&(s.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return d.jsx(ao,{asChild:!0,...i,children:d.jsx($.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Ws(s.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===" ")&&dv.includes(v.key)&&(b(),v.preventDefault())})})})});ys.displayName=bs;var ws="SelectValue",Cs=l.forwardRef((e,t)=>{const{__scopeSelect:o,className:n,style:r,children:i,placeholder:s="",...a}=e,c=Be(ws,o),{onValueNodeHasChildrenChange:u}=c,f=i!==void 0,p=Q(t,c.onValueNodeChange);return se(()=>{u(f)},[u,f]),d.jsx($.span,{...a,ref:p,style:{pointerEvents:"none"},children:Ws(c.value)?d.jsx(d.Fragment,{children:s}):i})});Cs.displayName=ws;var hv="SelectIcon",Ss=l.forwardRef((e,t)=>{const{__scopeSelect:o,children:n,...r}=e;return d.jsx($.span,{"aria-hidden":!0,...r,ref:t,children:n||"▼"})});Ss.displayName=hv;var xv="SelectPortal",Es=e=>d.jsx(Ct,{asChild:!0,...e});Es.displayName=xv;var Ue="SelectContent",Rs=l.forwardRef((e,t)=>{const o=Be(Ue,e.__scopeSelect),[n,r]=l.useState();if(se(()=>{r(new DocumentFragment)},[]),!o.open){const i=n;return i?Zt.createPortal(d.jsx(Ps,{scope:e.__scopeSelect,children:d.jsx(fo.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),i):null}return d.jsx(Ts,{...e,ref:t})});Rs.displayName=Ue;var ve=10,[Ps,Ve]=ut(Ue),bv="SelectContentImpl",yv=nv("SelectContent.RemoveScroll"),Ts=l.forwardRef((e,t)=>{const{__scopeSelect:o,position:n="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,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,A]=l.useState(null),R=Q(t,k=>C(k)),[E,F]=l.useState(null),[B,K]=l.useState(null),Z=po(o),[Y,V]=l.useState(!1),H=l.useRef(!1);l.useEffect(()=>{if(w)return an(w)},[w]),sn();const D=l.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=l.useCallback(()=>D([E,w]),[D,E,w]);l.useEffect(()=>{Y&&z()},[Y,z]);const{onOpenChange:T,triggerPointerDownPosRef:te}=x;l.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)||T(!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,T,te]),l.useEffect(()=>{const k=()=>T(!1);return window.addEventListener("blur",k),window.addEventListener("resize",k),()=>{window.removeEventListener("blur",k),window.removeEventListener("resize",k)}},[T]);const[ne,ae]=Hs(k=>{const q=Z().filter(ee=>!ee.disabled),U=q.find(ee=>ee.ref.current===document.activeElement),X=Gs(q,k,U);X&&setTimeout(()=>X.ref.current.focus())}),P=l.useCallback((k,q,U)=>{const X=!H.current&&!U;(x.value!==void 0&&x.value===q||X)&&(F(k),X&&(H.current=!0))},[x.value]),O=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((k,q,U)=>{const X=!H.current&&!U;(x.value!==void 0&&x.value===q||X)&&K(k)},[x.value]),_=n==="popper"?Go:As,G=_===Go?{side:a,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:v,avoidCollisions:h}:{};return d.jsx(Ps,{scope:o,content:w,viewport:S,onViewportChange:A,itemRefCallback:P,selectedItem:E,onItemLeave:O,itemTextRefCallback:M,focusSelectedItem:z,selectedItemText:B,position:n,isPositioned:Y,searchRef:ne,children:d.jsx(Jt,{as:yv,allowPinchZoom:!0,children:d.jsx(Xt,{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(wt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:k=>k.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:d.jsx(_,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:k=>k.preventDefault(),...y,...G,onPlaced:()=>V(!0),ref:R,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&&ae(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()}})})})})})})});Ts.displayName=bv;var wv="SelectItemAlignedPosition",As=l.forwardRef((e,t)=>{const{__scopeSelect:o,onPlaced:n,...r}=e,i=Be(Ue,o),s=Ve(Ue,o),[a,c]=l.useState(null),[u,f]=l.useState(null),p=Q(t,R=>f(R)),g=po(o),m=l.useRef(!1),b=l.useRef(!0),{viewport:v,selectedItem:h,selectedItemText:y,focusSelectedItem:x}=s,w=l.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&v&&h&&y){const R=i.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),F=i.valueNode.getBoundingClientRect(),B=y.getBoundingClientRect();if(i.dir!=="rtl"){const ee=B.left-E.left,J=F.left-ee,le=R.left-J,ye=R.width+le,dt=Math.max(ye,E.width),ft=window.innerWidth-ve,pt=hr(J,[ve,Math.max(ve,ft-dt)]);a.style.minWidth=ye+"px",a.style.left=pt+"px"}else{const ee=E.right-B.right,J=window.innerWidth-F.right-ee,le=window.innerWidth-R.right-J,ye=R.width+le,dt=Math.max(ye,E.width),ft=window.innerWidth-ve,pt=hr(J,[ve,Math.max(ve,ft-dt)]);a.style.minWidth=ye+"px",a.style.right=pt+"px"}const K=g(),Z=window.innerHeight-ve*2,Y=v.scrollHeight,V=window.getComputedStyle(u),H=parseInt(V.borderTopWidth,10),D=parseInt(V.paddingTop,10),z=parseInt(V.borderBottomWidth,10),T=parseInt(V.paddingBottom,10),te=H+D+Y+T+z,ne=Math.min(h.offsetHeight*5,te),ae=window.getComputedStyle(v),P=parseInt(ae.paddingTop,10),O=parseInt(ae.paddingBottom,10),M=R.top+R.height/2-ve,_=Z-M,G=h.offsetHeight/2,k=h.offsetTop+G,q=H+D+k,U=te-q;if(q<=M){const ee=K.length>0&&h===K[K.length-1].ref.current;a.style.bottom="0px";const J=u.clientHeight-v.offsetTop-v.offsetHeight,le=Math.max(_,G+(ee?O:0)+J+z),ye=q+le;a.style.height=ye+"px"}else{const ee=K.length>0&&h===K[0].ref.current;a.style.top="0px";const le=Math.max(M,H+v.offsetTop+(ee?P:0)+G)+U;a.style.height=le+"px",v.scrollTop=q-M+v.offsetTop}a.style.margin=`${ve}px 0`,a.style.minHeight=ne+"px",a.style.maxHeight=Z+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[g,i.trigger,i.valueNode,a,u,v,h,y,i.dir,n]);se(()=>w(),[w]);const[C,S]=l.useState();se(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const A=l.useCallback(R=>{R&&b.current===!0&&(w(),x==null||x(),b.current=!1)},[w,x]);return d.jsx(Sv,{scope:o,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:A,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}})})})});As.displayName=wv;var Cv="SelectPopperPosition",Go=l.forwardRef((e,t)=>{const{__scopeSelect:o,align:n="start",collisionPadding:r=ve,...i}=e,s=vo(o);return d.jsx(wn,{...s,...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)"}})});Go.displayName=Cv;var[Sv,Rn]=ut(Ue,{}),Uo="SelectViewport",ks=l.forwardRef((e,t)=>{const{__scopeSelect:o,nonce:n,...r}=e,i=Ve(Uo,o),s=Rn(Uo,o),a=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:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:L(r.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&p){const m=Math.abs(c.current-f.scrollTop);if(m>0){const b=window.innerHeight-ve*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})})})]})});ks.displayName=Uo;var Is="SelectGroup",[Ev,Rv]=ut(Is),Ns=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=ie();return d.jsx(Ev,{scope:o,id:r,children:d.jsx($.div,{role:"group","aria-labelledby":r,...n,ref:t})})});Ns.displayName=Is;var js="SelectLabel",Os=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=Rv(js,o);return d.jsx($.div,{id:r.id,...n,ref:t})});Os.displayName=js;var Ut="SelectItem",[Pv,_s]=ut(Ut),Ds=l.forwardRef((e,t)=>{const{__scopeSelect:o,value:n,disabled:r=!1,textValue:i,...s}=e,a=Be(Ut,o),c=Ve(Ut,o),u=a.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||(a.onValueChange(n),a.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(Pv,{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,...s,ref:b,onFocus:L(s.onFocus,()=>m(!0)),onBlur:L(s.onBlur,()=>m(!1)),onClick:L(s.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:L(s.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:L(s.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:L(s.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(s.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:L(s.onKeyDown,x=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&x.key===" "||(fv.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});Ds.displayName=Ut;var gt="SelectItemText",Ms=l.forwardRef((e,t)=>{const{__scopeSelect:o,className:n,style:r,...i}=e,s=Be(gt,o),a=Ve(gt,o),c=_s(gt,o),u=gv(gt,o),[f,p]=l.useState(null),g=Q(t,y=>p(y),c.onItemTextChange,y=>{var x;return(x=a.itemTextRefCallback)==null?void 0:x.call(a,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 se(()=>(v(b),()=>h(b)),[v,h,b]),d.jsxs(d.Fragment,{children:[d.jsx($.span,{id:c.textId,...i,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Zt.createPortal(i.children,s.valueNode):null]})});Ms.displayName=gt;var Ls="SelectItemIndicator",Fs=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e;return _s(Ls,o).isSelected?d.jsx($.span,{"aria-hidden":!0,...n,ref:t}):null});Fs.displayName=Ls;var Ko="SelectScrollUpButton",$s=l.forwardRef((e,t)=>{const o=Ve(Ko,e.__scopeSelect),n=Rn(Ko,e.__scopeSelect),[r,i]=l.useState(!1),s=Q(t,n.onScrollButtonChange);return se(()=>{if(o.viewport&&o.isPositioned){let a=function(){const u=c.scrollTop>0;i(u)};const c=o.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[o.viewport,o.isPositioned]),r?d.jsx(Vs,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=o;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});$s.displayName=Ko;var Zo="SelectScrollDownButton",Bs=l.forwardRef((e,t)=>{const o=Ve(Zo,e.__scopeSelect),n=Rn(Zo,e.__scopeSelect),[r,i]=l.useState(!1),s=Q(t,n.onScrollButtonChange);return se(()=>{if(o.viewport&&o.isPositioned){let a=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;i(f)};const c=o.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[o.viewport,o.isPositioned]),r?d.jsx(Vs,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=o;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});Bs.displayName=Zo;var Vs=l.forwardRef((e,t)=>{const{__scopeSelect:o,onAutoScroll:n,...r}=e,i=Ve("SelectScrollButton",o),s=l.useRef(null),a=po(o),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),se(()=>{var f;const u=a().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),d.jsx($.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:L(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:L(r.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:L(r.onPointerLeave,()=>{c()})})}),Tv="SelectSeparator",zs=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e;return d.jsx($.div,{"aria-hidden":!0,...n,ref:t})});zs.displayName=Tv;var Yo="SelectArrow",Av=l.forwardRef((e,t)=>{const{__scopeSelect:o,...n}=e,r=vo(o),i=Be(Yo,o),s=Ve(Yo,o);return i.open&&s.position==="popper"?d.jsx(Cn,{...r,...n,ref:t}):null});Av.displayName=Yo;var kv="SelectBubbleInput",qs=l.forwardRef(({__scopeSelect:e,value:t,...o},n)=>{const r=l.useRef(null),i=Q(n,r),s=uo(t);return l.useEffect(()=>{const a=r.current;if(!a)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(p)}},[s,t]),d.jsx($.select,{...o,style:{...gs,...o.style},ref:i,defaultValue:t})});qs.displayName=kv;function Ws(e){return e===""||e===void 0}function Hs(e){const t=je(e),o=l.useRef(""),n=l.useRef(0),r=l.useCallback(s=>{const a=o.current+s;t(a),function c(u){o.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(a)},[t]),i=l.useCallback(()=>{o.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[o,r,i]}function Gs(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 s=Iv(e,Math.max(i,0));r.length===1&&(s=s.filter(u=>u!==o));const c=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==o?c:void 0}function Iv(e,t){return e.map((o,n)=>e[(t+n)%e.length])}var Nv=xs,jv=ys,Ov=Cs,_v=Ss,Dv=Es,Mv=Rs,Lv=ks,Fv=Ns,$v=Os,Bv=Ds,Vv=Ms,zv=Fs,qv=$s,Wv=Bs,Hv=zs;const Gv=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"})}),Uv=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"})}),Us=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"})}),Kv=({...e})=>d.jsx(Nv,{"data-slot":"select",...e}),Zv=({...e})=>d.jsx(Fv,{"data-slot":"select-group",...e}),Yv=({className:e,...t})=>d.jsx(Ov,{"data-slot":"select-value",className:I("volt-ui-whitespace-break-spaces volt-ui-wrap-break-word",e),...t}),Ks=l.forwardRef(({className:e,children:t,...o},n)=>{const{inputRef:r}=yt();return d.jsxs(jv,{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(_v,{asChild:!0,children:d.jsx(Uv,{className:"volt-ui-transition-all volt-ui-size-6 volt-ui-group-data-[state=open]:rotate-180 volt-ui-text-gray-light"})})]})});Ks.displayName="SelectTrigger";const Xv=({className:e,children:t,position:o="popper",align:n="center",...r})=>d.jsx(Dv,{children:d.jsxs(Mv,{"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(Zs,{}),d.jsx(Lv,{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(Ys,{})]})}),Qv=({className:e,...t})=>d.jsx($v,{"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}),Jv=({className:e,children:t,...o})=>d.jsxs(Bv,{"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(zv,{children:d.jsx(Gv,{className:"volt-ui-size-4 volt-ui-text-gray-light"})})}),d.jsx(Vv,{children:t})]}),em=({className:e,...t})=>d.jsx(Hv,{"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}),Zs=({className:e,...t})=>d.jsx(qv,{"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(Us,{className:"volt-ui-size-6"})}),Ys=({className:e,...t})=>d.jsx(Wv,{"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(Us,{className:"volt-ui-size-6 volt-ui-rotate-180"})});var tm=Symbol("radix.slottable");function om(e){const t=({children:o})=>d.jsx(d.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=tm,t}var[mo]=de("Tooltip",[ct]),go=ct(),Xs="TooltipProvider",nm=700,Xo="tooltip.open",[rm,Pn]=mo(Xs),Qs=e=>{const{__scopeTooltip:t,delayDuration:o=nm,skipDelayDuration:n=300,disableHoverableContent:r=!1,children:i}=e,s=l.useRef(!0),a=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),d.jsx(rm,{scope:t,isOpenDelayedRef:s,delayDuration:o,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:l.useCallback(u=>{a.current=u},[]),disableHoverableContent:r,children:i})};Qs.displayName=Xs;var bt="Tooltip",[im,Pt]=mo(bt),Js=e=>{const{__scopeTooltip:t,children:o,open:n,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=Pn(bt,e.__scopeTooltip),u=go(t),[f,p]=l.useState(null),g=ie(),m=l.useRef(0),b=s??c.disableHoverableContent,v=a??c.delayDuration,h=l.useRef(!1),[y,x]=pe({prop:n,defaultProp:r??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xo))):c.onClose(),i==null||i(R)},caller:bt}),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]),A=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(im,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?A():C()},[c.isOpenDelayedRef,A,C]),onTriggerLeave:l.useCallback(()=>{b?S():(window.clearTimeout(m.current),m.current=0)},[S,b]),onOpen:C,onClose:S,disableHoverableContent:b,children:o})})};Js.displayName=bt;var Qo="TooltipTrigger",ea=l.forwardRef((e,t)=>{const{__scopeTooltip:o,...n}=e,r=Pt(Qo,o),i=Pn(Qo,o),s=go(o),a=l.useRef(null),c=Q(t,a,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(ao,{asChild:!0,...s,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)})})});ea.displayName=Qo;var Tn="TooltipPortal",[sm,am]=mo(Tn,{forceMount:void 0}),ta=e=>{const{__scopeTooltip:t,forceMount:o,children:n,container:r}=e,i=Pt(Tn,t);return d.jsx(sm,{scope:t,forceMount:o,children:d.jsx(he,{present:o||i.open,children:d.jsx(Ct,{asChild:!0,container:r,children:n})})})};ta.displayName=Tn;var rt="TooltipContent",oa=l.forwardRef((e,t)=>{const o=am(rt,e.__scopeTooltip),{forceMount:n=o.forceMount,side:r="top",...i}=e,s=Pt(rt,e.__scopeTooltip);return d.jsx(he,{present:n||s.open,children:s.disableHoverableContent?d.jsx(na,{side:r,...i,ref:t}):d.jsx(lm,{side:r,...i,ref:t})})}),lm=l.forwardRef((e,t)=>{const o=Pt(rt,e.__scopeTooltip),n=Pn(rt,e.__scopeTooltip),r=l.useRef(null),i=Q(t,r),[s,a]=l.useState(null),{trigger:c,onClose:u}=o,f=r.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{a(null),p(!1)},[p]),m=l.useCallback((b,v)=>{const h=b.currentTarget,y={x:b.clientX,y:b.clientY},x=fm(y,h.getBoundingClientRect()),w=pm(y,x),C=vm(v.getBoundingClientRect()),S=gm([...w,...C]);a(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(s){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=!mm(y,s);x?g():w&&(g(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,s,u,g]),d.jsx(na,{...e,ref:i})}),[cm,um]=mo(bt,{isInside:!1}),dm=om("TooltipContent"),na=l.forwardRef((e,t)=>{const{__scopeTooltip:o,children:n,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Pt(rt,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(wt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:d.jsxs(wn,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.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(dm,{children:n}),d.jsx(cm,{scope:o,isInside:!0,children:d.jsx(uv,{id:c.contentId,role:"tooltip",children:r||n})})]})})});oa.displayName=rt;var ra="TooltipArrow",ia=l.forwardRef((e,t)=>{const{__scopeTooltip:o,...n}=e,r=go(o);return um(ra,o).isInside?null:d.jsx(Cn,{...r,...n,ref:t})});ia.displayName=ra;function fm(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 pm(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 vm(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 mm(e,t){const{x:o,y:n}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],u=a.x,f=a.y,p=c.x,g=c.y;f>n!=g>n&&o<(p-u)*(n-f)/(g-f)+u&&(r=!r)}return r}function gm(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),hm(t)}function hm(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],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.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],s=o[o.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.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 xm=Qs,bm=Js,ym=ea,wm=ta,Cm=oa,Sm=ia;const sa=({...e})=>d.jsx(xm,{"data-slot":"tooltip-provider",...e}),Em=({...e})=>d.jsx(sa,{children:d.jsx(bm,{"data-slot":"tooltip",...e})}),Rm=({...e})=>d.jsx(ym,{"data-slot":"tooltip-trigger",...e}),Pm=({className:e,sideOffset:t=2,hideArrow:o=!1,children:n,...r})=>d.jsx(wm,{children:d.jsxs(Cm,{"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(Sm,{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",[Tm]=de(ho),[Am,km]=Tm(ho),aa=l.forwardRef((e,t)=>{const{__scopeSwitch:o,name:n,checked:r,defaultChecked:i,required:s,disabled:a,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]=pe({prop:r,defaultProp:i??!1,onChange:u,caller:ho});return d.jsxs(Am,{scope:o,checked:y,disabled:a,children:[d.jsx($.button,{type:"button",role:"switch","aria-checked":y,"aria-required":s,"data-state":da(y),"data-disabled":a?"":void 0,disabled:a,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(ua,{control:g,bubbles:!v.current,name:n,value:c,checked:y,required:s,disabled:a,form:f,style:{transform:"translateX(-100%)"}})]})});aa.displayName=ho;var la="SwitchThumb",ca=l.forwardRef((e,t)=>{const{__scopeSwitch:o,...n}=e,r=km(la,o);return d.jsx($.span,{"data-state":da(r.checked),"data-disabled":r.disabled?"":void 0,...n,ref:t})});ca.displayName=la;var Im="SwitchBubbleInput",ua=l.forwardRef(({__scopeSwitch:e,control:t,checked:o,bubbles:n=!0,...r},i)=>{const s=l.useRef(null),a=Q(s,i),c=uo(o),u=so(t);return l.useEffect(()=>{const f=s.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:a,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ua.displayName=Im;function da(e){return e?"checked":"unchecked"}var Nm=aa,jm=ca;const Om=Me("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"}}),_m=Me("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 Dm({variant:e,size:t,className:o,...n}){return d.jsx(Nm,{"data-slot":"switch",className:I(Om({variant:e,size:t,className:o})),...n,children:d.jsx(jm,{"data-slot":"switch-thumb",className:I(_m({variant:e,size:t}))})})}const Mm=({...e})=>d.jsx(jp,{"data-slot":"popover-portal",...e}),Lm=({...e})=>d.jsx(fs,{"data-slot":"popover",...e}),Fm=({...e})=>d.jsx(ps,{"data-slot":"popover-trigger",...e}),$m=({className:e,align:t="center",sideOffset:o=4,...n})=>d.jsx(vs,{"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}),Bm=({...e})=>d.jsx(Np,{"data-slot":"popover-anchor",...e});var xo="Checkbox",[Vm]=de(xo),[zm,An]=Vm(xo);function qm(e){const{__scopeCheckbox:t,checked:o,children:n,defaultChecked:r,disabled:i,form:s,name:a,onCheckedChange:c,required:u,value:f="on",internal_do_not_use_render:p}=e,[g,m]=pe({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?!!s||!!b.closest("form"):!0,C={checked:g,disabled:i,setChecked:m,control:b,setControl:v,name:a,form:s,value:f,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:Ne(r)?!1:r,isFormControl:w,bubbleInput:h,setBubbleInput:y};return d.jsx(zm,{scope:t,...C,children:Wm(p)?p(C):n})}var fa="CheckboxTrigger",pa=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:o,...n},r)=>{const{control:i,value:s,disabled:a,checked:c,required:u,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:g,isFormControl:m,bubbleInput:b}=An(fa,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":Ne(c)?"mixed":c,"aria-required":u,"data-state":ba(c),"data-disabled":a?"":void 0,disabled:a,value:s,...n,ref:v,onKeyDown:L(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:L(o,y=>{p(x=>Ne(x)?!0:!x),b&&m&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})})});pa.displayName=fa;var va=l.forwardRef((e,t)=>{const{__scopeCheckbox:o,name:n,checked:r,defaultChecked:i,required:s,disabled:a,value:c,onCheckedChange:u,form:f,...p}=e;return d.jsx(qm,{__scopeCheckbox:o,checked:r,defaultChecked:i,disabled:a,required:s,onCheckedChange:u,name:n,form:f,value:c,internal_do_not_use_render:({isFormControl:g})=>d.jsxs(d.Fragment,{children:[d.jsx(pa,{...p,ref:t,__scopeCheckbox:o}),g&&d.jsx(xa,{__scopeCheckbox:o})]})})});va.displayName=xo;var ma="CheckboxIndicator",ga=l.forwardRef((e,t)=>{const{__scopeCheckbox:o,forceMount:n,...r}=e,i=An(ma,o);return d.jsx(he,{present:n||Ne(i.checked)||i.checked===!0,children:d.jsx($.span,{"data-state":ba(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});ga.displayName=ma;var ha="CheckboxBubbleInput",xa=l.forwardRef(({__scopeCheckbox:e,...t},o)=>{const{control:n,hasConsumerStoppedPropagationRef:r,checked:i,defaultChecked:s,required:a,disabled:c,name:u,value:f,form:p,bubbleInput:g,setBubbleInput:m}=An(ha,e),b=Q(o,m),v=uo(i),h=so(n);l.useEffect(()=>{const x=g;if(!x)return;const w=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(w,"checked").set,A=!r.current;if(v!==i&&S){const R=new Event("click",{bubbles:A});x.indeterminate=Ne(i),S.call(x,Ne(i)?!1:i),x.dispatchEvent(R)}},[g,v,i,r]);const y=l.useRef(Ne(i)?!1:i);return d.jsx($.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??y.current,required:a,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%)"}})});xa.displayName=ha;function Wm(e){return typeof e=="function"}function Ne(e){return e==="indeterminate"}function ba(e){return Ne(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"})}),Gm=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"})}),Um=({className:e,...t})=>d.jsx(va,{"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(ga,{"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(Gm,{className:"volt-ui-size-3.5"}):d.jsx(Hm,{className:"volt-ui-size-3.5"})})});var Lo="rovingFocusGroup.onEntryFocus",Km={bubbles:!1,cancelable:!0},Tt="RovingFocusGroup",[Jo,ya,Zm]=En(Tt),[Ym,wa]=de(Tt,[Zm]),[Xm,Qm]=Ym(Tt),Ca=l.forwardRef((e,t)=>d.jsx(Jo.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Jo.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Jm,{...e,ref:t})})}));Ca.displayName=Tt;var Jm=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,orientation:n,loop:r=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),m=Q(t,g),b=co(i),[v,h]=pe({prop:s,defaultProp:a??null,onChange:c,caller:Tt}),[y,x]=l.useState(!1),w=je(u),C=ya(o),S=l.useRef(!1),[A,R]=l.useState(0);return l.useEffect(()=>{const E=g.current;if(E)return E.addEventListener(Lo,w),()=>E.removeEventListener(Lo,w)},[w]),d.jsx(Xm,{scope:o,orientation:n,dir:b,loop:r,currentTabStopId:v,onItemFocus:l.useCallback(E=>h(E),[h]),onItemShiftTab:l.useCallback(()=>x(!0),[]),onFocusableItemAdd:l.useCallback(()=>R(E=>E+1),[]),onFocusableItemRemove:l.useCallback(()=>R(E=>E-1),[]),children:d.jsx($.div,{tabIndex:y||A===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,E=>{const F=!S.current;if(E.target===E.currentTarget&&F&&!y){const B=new CustomEvent(Lo,Km);if(E.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),H=[Z,Y,...K].filter(Boolean).map(D=>D.ref.current);Ra(H,f)}}S.current=!1}),onBlur:L(e.onBlur,()=>x(!1))})})}),Sa="RovingFocusGroupItem",Ea=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,focusable:n=!0,active:r=!1,tabStopId:i,children:s,...a}=e,c=ie(),u=i||c,f=Qm(Sa,o),p=f.currentTabStopId===u,g=ya(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,...a,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=og(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?ng(w,C+1):w.slice(C+1)}setTimeout(()=>Ra(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:v!=null}):s})})});Ea.displayName=Sa;var eg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tg(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function og(e,t,o){const n=tg(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return eg[n]}function Ra(e,t=!1){const o=document.activeElement;for(const n of e)if(n===o||(n.focus({preventScroll:t}),document.activeElement!==o))return}function ng(e,t){return e.map((o,n)=>e[(t+n)%e.length])}var rg=Ca,ig=Ea,kn="Radio",[sg,Pa]=de(kn),[ag,lg]=sg(kn),Ta=l.forwardRef((e,t)=>{const{__scopeRadio:o,name:n,checked:r=!1,required:i,disabled:s,value:a="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(ag,{scope:o,checked:r,disabled:s,children:[d.jsx($.button,{type:"button",role:"radio","aria-checked":r,"data-state":Na(r),"data-disabled":s?"":void 0,disabled:s,value:a,...f,ref:m,onClick:L(e.onClick,h=>{r||c==null||c(),v&&(b.current=h.isPropagationStopped(),b.current||h.stopPropagation())})}),v&&d.jsx(Ia,{control:p,bubbles:!b.current,name:n,value:a,checked:r,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});Ta.displayName=kn;var Aa="RadioIndicator",ka=l.forwardRef((e,t)=>{const{__scopeRadio:o,forceMount:n,...r}=e,i=lg(Aa,o);return d.jsx(he,{present:n||i.checked,children:d.jsx($.span,{"data-state":Na(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})})});ka.displayName=Aa;var cg="RadioBubbleInput",Ia=l.forwardRef(({__scopeRadio:e,control:t,checked:o,bubbles:n=!0,...r},i)=>{const s=l.useRef(null),a=Q(s,i),c=uo(o),u=so(t);return l.useEffect(()=>{const f=s.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:a,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Ia.displayName=cg;function Na(e){return e?"checked":"unchecked"}var ug=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],bo="RadioGroup",[dg]=de(bo,[wa,Pa]),ja=wa(),Oa=Pa(),[fg,pg]=dg(bo),_a=l.forwardRef((e,t)=>{const{__scopeRadioGroup:o,name:n,defaultValue:r,value:i,required:s=!1,disabled:a=!1,orientation:c,dir:u,loop:f=!0,onValueChange:p,...g}=e,m=ja(o),b=co(u),[v,h]=pe({prop:i,defaultProp:r??null,onChange:p,caller:bo});return d.jsx(fg,{scope:o,name:n,required:s,disabled:a,value:v,onValueChange:h,children:d.jsx(rg,{asChild:!0,...m,orientation:c,dir:b,loop:f,children:d.jsx($.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":a?"":void 0,dir:b,...g,ref:t})})})});_a.displayName=bo;var Da="RadioGroupItem",Ma=l.forwardRef((e,t)=>{const{__scopeRadioGroup:o,disabled:n,...r}=e,i=pg(Da,o),s=i.disabled||n,a=ja(o),c=Oa(o),u=l.useRef(null),f=Q(t,u),p=i.value===r.value,g=l.useRef(!1);return l.useEffect(()=>{const m=v=>{ug.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(ig,{asChild:!0,...a,focusable:!s,active:p,children:d.jsx(Ta,{disabled:s,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())})})})});Ma.displayName=Da;var vg="RadioGroupIndicator",La=l.forwardRef((e,t)=>{const{__scopeRadioGroup:o,...n}=e,r=Oa(o);return d.jsx(ka,{...r,...n,ref:t})});La.displayName=vg;var mg=_a,gg=Ma,hg=La;const xg=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"})}),bg=({className:e,...t})=>d.jsx(mg,{"data-slot":"radio-group",className:I("volt-ui-grid volt-ui-gap-3",e),...t}),yg=({className:e,...t})=>d.jsx(gg,{"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(hg,{"data-slot":"radio-group-indicator",className:"volt-ui-relative volt-ui-flex volt-ui-items-center volt-ui-justify-center",children:d.jsx(xg,{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"})})}),Fa={blue:"text-blue-default",sky:"text-sky-default",mint:"text-mint-default",green:"text-green-default",teal:"text-teal-default",cyan:"text-cyan-default",indigo:"text-indigo-default",purple:"text-purple-default",pink:"text-pink-default",red:"text-red-default",orange:"text-orange-default",yellow:"text-yellow-default",bronze:"text-bronze-default",gray:"text-gray-default"},$a={soft:e=>`volt-ui-bg-${e}-soft volt-ui-border volt-ui-border-transparent volt-ui-text-${e}-default [a&]:hover:volt-ui-bg-${e}-soft-hover`,solid:e=>`volt-ui-bg-${e}-solid volt-ui-border volt-ui-border-transparent volt-ui-text-${e}-contrast [a&]:hover:volt-ui-bg-${e}-solid-hover`,surface:e=>`volt-ui-bg-${e}-surface volt-ui-border-${e}-a6 volt-ui-border volt-ui-text-${e}-default`},wg=Object.keys(Fa),Cg=Object.keys($a),Sg=wg.flatMap(e=>Cg.map(t=>({color:e,style:t,class:$a[t](e)}))),Ba=Me("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:Fa,style:{soft:"",solid:"",surface:""},shape:{default:"volt-ui-rounded-md",rounded:"volt-ui-rounded-full"}},compoundVariants:Sg,defaultVariants:{color:"blue",shape:"default",style:"soft"}}),Eg=({className:e,color:t,style:o,shape:n,asChild:r=!1,...i})=>{const s=r?on:"span";return d.jsx(s,{"data-slot":"badge",className:I(Ba({color:t,style:o,shape:n}),e),...i})},br=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"})}),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:"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"})}),Pg=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"})}),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-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"})}),Ag=Me("volt-ui-group volt-ui-relative volt-ui-w-full volt-ui-rounded-xl volt-ui-px-3 volt-ui-py-2.5 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-3 volt-ui-gap-y-0.5 volt-ui-items-start [&>svg]:size-4.5 [&>svg]:translate-y-0.75 [&>svg]:text-current",{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"}}),Va=l.createContext({type:"info"}),kg=({className:e,type:t="info",...o})=>d.jsx(Va.Provider,{value:{type:t},children:d.jsx("div",{"data-callout-variant":t,"data-slot":"callout",role:"alert",className:I(Ag({type:t}),e),...o})}),Ig=({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}),jg=({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":t==="start","volt-ui-justify-end":t==="end"},e),...o}),Og=({custom:e})=>{const{type:t}=l.useContext(Va);if(e)return e;let o=null;switch(t){case"info":o=d.jsx(br,{});break;case"success":o=d.jsx(Pg,{});break;case"warning":o=d.jsx(Rg,{});break;case"destructive":o=d.jsx(Tg,{});break;case"gray":o=d.jsx(br,{});break}return o},_g=({className:e,custom:t,...o})=>d.jsx(Og,{"data-slot":"callout-icon",custom:t,className:I("volt-ui-size-4 volt-ui-translate-y-1 volt-ui-text-current volt-ui-shrink-0",e),...o});var yo="Collapsible",[Dg,za]=de(yo),[Mg,In]=Dg(yo),qa=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,open:n,defaultOpen:r,disabled:i,onOpenChange:s,...a}=e,[c,u]=pe({prop:n,defaultProp:r??!1,onChange:s,caller:yo});return d.jsx(Mg,{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,...a,ref:t})})});qa.displayName=yo;var Wa="CollapsibleTrigger",Ha=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,...n}=e,r=In(Wa,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)})});Ha.displayName=Wa;var Nn="CollapsibleContent",Ga=l.forwardRef((e,t)=>{const{forceMount:o,...n}=e,r=In(Nn,e.__scopeCollapsible);return d.jsx(he,{present:o||r.open,children:({present:i})=>d.jsx(Lg,{...n,ref:t,present:i})})});Ga.displayName=Nn;var Lg=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,present:n,children:r,...i}=e,s=In(Nn,o),[a,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=s.open||a,h=l.useRef(v),y=l.useRef(void 0);return l.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),se(()=>{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)}},[s.open,n]),d.jsx($.div,{"data-state":jn(s.open),"data-disabled":s.disabled?"":void 0,id:s.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 Fg=qa,$g=Ha,Bg=Ga,be="Accordion",Vg=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[On,zg,qg]=En(be),[wo]=de(be,[qg,za]),_n=za(),Ua=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(Ug,{...i,ref:t}):d.jsx(Gg,{...r,ref:t})})});Ua.displayName=be;var[Ka,Wg]=wo(be),[Za,Hg]=wo(be,{collapsible:!1}),Gg=oe.forwardRef((e,t)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},collapsible:i=!1,...s}=e,[a,c]=pe({prop:o,defaultProp:n??"",onChange:r,caller:be});return d.jsx(Ka,{scope:e.__scopeAccordion,value:oe.useMemo(()=>a?[a]:[],[a]),onItemOpen:c,onItemClose:oe.useCallback(()=>i&&c(""),[i,c]),children:d.jsx(Za,{scope:e.__scopeAccordion,collapsible:i,children:d.jsx(Ya,{...s,ref:t})})})}),Ug=oe.forwardRef((e,t)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},...i}=e,[s,a]=pe({prop:o,defaultProp:n??[],onChange:r,caller:be}),c=oe.useCallback(f=>a((p=[])=>[...p,f]),[a]),u=oe.useCallback(f=>a((p=[])=>p.filter(g=>g!==f)),[a]);return d.jsx(Ka,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:u,children:d.jsx(Za,{scope:e.__scopeAccordion,collapsible:!0,children:d.jsx(Ya,{...i,ref:t})})})}),[Kg,Co]=wo(be),Ya=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,disabled:n,dir:r,orientation:i="vertical",...s}=e,a=oe.useRef(null),c=Q(a,t),u=zg(o),p=co(r)==="ltr",g=L(e.onKeyDown,m=>{var E;if(!Vg.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)},A=()=>{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():A());break;case"ArrowDown":i==="vertical"&&S();break;case"ArrowLeft":i==="horizontal"&&(p?A():S());break;case"ArrowUp":i==="vertical"&&A();break}const R=x%y;(E=v[R].ref.current)==null||E.focus()});return d.jsx(Kg,{scope:o,disabled:n,direction:r,orientation:i,children:d.jsx(On.Slot,{scope:o,children:d.jsx($.div,{...s,"data-orientation":i,ref:c,onKeyDown:n?void 0:g})})})}),Kt="AccordionItem",[Zg,Dn]=wo(Kt),Xa=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,value:n,...r}=e,i=Co(Kt,o),s=Wg(Kt,o),a=_n(o),c=ie(),u=n&&s.value.includes(n)||!1,f=i.disabled||e.disabled;return d.jsx(Zg,{scope:o,open:u,disabled:f,triggerId:c,children:d.jsx(Fg,{"data-orientation":i.orientation,"data-state":nl(u),...a,...r,ref:t,disabled:f,open:u,onOpenChange:p=>{p?s.onItemOpen(n):s.onItemClose(n)}})})});Xa.displayName=Kt;var Qa="AccordionHeader",Ja=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=Co(be,o),i=Dn(Qa,o);return d.jsx($.h3,{"data-orientation":r.orientation,"data-state":nl(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});Ja.displayName=Qa;var en="AccordionTrigger",el=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=Co(be,o),i=Dn(en,o),s=Hg(en,o),a=_n(o);return d.jsx(On.ItemSlot,{scope:o,children:d.jsx($g,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":r.orientation,id:i.triggerId,...a,...n,ref:t})})});el.displayName=en;var tl="AccordionContent",ol=oe.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=Co(be,o),i=Dn(tl,o),s=_n(o);return d.jsx(Bg,{role:"region","aria-labelledby":i.triggerId,"data-orientation":r.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});ol.displayName=tl;function nl(e){return e?"open":"closed"}var Yg=Ua,Xg=Xa,Qg=Ja,Jg=el,eh=ol;const th=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"})}),oh=({className:e,...t})=>d.jsx(Yg,{"data-slot":"accordion",className:I(e),...t}),nh=({className:e,...t})=>d.jsx(Xg,{"data-slot":"accordion-item",className:I(e),...t}),yr=({className:e,...t})=>d.jsx(th,{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}),rh=({className:e,align:t="end",children:o,...n})=>d.jsx(Qg,{className:"volt-ui-flex",children:d.jsxs(Jg,{"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(yr,{}),o,t==="end"&&d.jsx(yr,{})]})}),ih=({className:e,children:t,...o})=>d.jsx(eh,{"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=oh;exports.AccordionContent=ih;exports.AccordionItem=nh;exports.AccordionTrigger=rh;exports.Badge=Eg;exports.Button=Fr;exports.ButtonGroup=ac;exports.ButtonGroupSeparator=cc;exports.ButtonGroupText=lc;exports.Callout=kg;exports.CalloutAction=jg;exports.CalloutDescription=Ng;exports.CalloutIcon=_g;exports.CalloutTitle=Ig;exports.Checkbox=Um;exports.Dialog=_d;exports.DialogClose=Md;exports.DialogContent=Ld;exports.DialogDescription=Vd;exports.DialogFooter=$d;exports.DialogHeader=Fd;exports.DialogOverlay=Oi;exports.DialogPortal=ji;exports.DialogTitle=Bd;exports.DialogTrigger=Dd;exports.Field=hc;exports.FieldCombobox=Dp;exports.FieldComboboxClear=Kp;exports.FieldComboboxClearValue=Yp;exports.FieldComboboxContent=Bp;exports.FieldComboboxEmpty=Wp;exports.FieldComboboxGroup=Mp;exports.FieldComboboxGroupLabel=Lp;exports.FieldComboboxInput=Vp;exports.FieldComboboxItem=qp;exports.FieldComboboxItemCheckIcon=Gp;exports.FieldComboboxList=zp;exports.FieldComboboxLoading=Up;exports.FieldComboboxPlaceholder=Zp;exports.FieldComboboxSeparator=Hp;exports.FieldComboboxTrigger=$p;exports.FieldComboboxValue=Fp;exports.FieldContent=xc;exports.FieldDescription=wc;exports.FieldError=Cc;exports.FieldGroup=mc;exports.FieldGroupAddon=Ec;exports.FieldInput=qr;exports.FieldInputGroup=Wr;exports.FieldLabel=bc;exports.FieldLabelContent=yc;exports.FieldSet=gc;exports.FieldTextarea=Hr;exports.Label=rn;exports.Popover=Lm;exports.PopoverAnchor=Bm;exports.PopoverContent=$m;exports.PopoverPortal=Mm;exports.PopoverTrigger=Fm;exports.RadioGroup=bg;exports.RadioGroupItem=yg;exports.Select=Kv;exports.SelectContent=Xv;exports.SelectGroup=Zv;exports.SelectItem=Jv;exports.SelectLabel=Qv;exports.SelectScrollDownButton=Ys;exports.SelectScrollUpButton=Zs;exports.SelectSeparator=em;exports.SelectTrigger=Ks;exports.SelectValue=Yv;exports.Separator=Br;exports.Switch=Dm;exports.Tooltip=Em;exports.TooltipContent=Pm;exports.TooltipProvider=sa;exports.TooltipTrigger=Rm;exports.badgeVariants=Ba;exports.buttonVariants=nn;exports.cn=I;exports.useFieldContext=yt;