@keeper-security/keeper-js-ui 0.10.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(D,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],f):(D=typeof globalThis<"u"?globalThis:D||self,f(D["keeper-js-ui"]={},D["react/jsx-runtime"],D.React,D.ReactDOM))})(this,function(D,f,J,mt){"use strict";function Sr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=Sr(J),Ae=Sr(mt);function ud(e,t){const n=i.createContext(t),o=s=>{const{children:c,...a}=s,u=i.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:u,children:c})};o.displayName=e+"Provider";function r(s){const c=i.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function ce(e,t=[]){let n=[];function o(s,c){const a=i.createContext(c),u=n.length;n=[...n,c];const l=p=>{var b;const{scope:m,children:v,...w}=p,h=((b=m==null?void 0:m[e])==null?void 0:b[u])||a,g=i.useMemo(()=>w,Object.values(w));return f.jsx(h.Provider,{value:g,children:v})};l.displayName=s+"Provider";function d(p,m){var h;const v=((h=m==null?void 0:m[e])==null?void 0:h[u])||a,w=i.useContext(v);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[l,d]}const r=()=>{const s=n.map(c=>i.createContext(c));return function(a){const u=(a==null?void 0:a[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return r.scopeName=e,[o,dd(r,...t)]}function dd(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const c=o.reduce((a,{useScope:u,scopeName:l})=>{const p=u(s)[`__scope${l}`];return{...a,...p}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function V(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}var Y=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{};function Pr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Lt(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Pr(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Pr(e[r],null)}}}}function L(...e){return i.useCallback(Lt(...e),e)}var ne=i.forwardRef((e,t)=>{const{children:n,...o}=e,r=i.Children.toArray(n),s=r.find(fd);if(s){const c=s.props.children,a=r.map(u=>u===s?i.Children.count(c)>1?i.Children.only(null):i.isValidElement(c)?c.props.children:null:u);return f.jsx(Mn,{...o,ref:t,children:i.isValidElement(c)?i.cloneElement(c,void 0,a):null})}return f.jsx(Mn,{...o,ref:t,children:n})});ne.displayName="Slot";var Mn=i.forwardRef((e,t)=>{const{children:n,...o}=e;if(i.isValidElement(n)){const r=hd(n),s=pd(o,n.props);return n.type!==i.Fragment&&(s.ref=t?Lt(t,r):r),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});Mn.displayName="SlotClone";var On=({children:e})=>f.jsx(f.Fragment,{children:e});function fd(e){return i.isValidElement(e)&&e.type===On}function pd(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{s(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function hd(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var md=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],In=md.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?ne:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Dn="Avatar",[vd,Yb]=ce(Dn),[gd,Tr]=vd(Dn),Nr=i.forwardRef((e,t)=>{const{__scopeAvatar:n,...o}=e,[r,s]=i.useState("idle");return f.jsx(gd,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:s,children:f.jsx(In.span,{...o,ref:t})})});Nr.displayName=Dn;var Ar="AvatarImage",jr=i.forwardRef((e,t)=>{const{__scopeAvatar:n,src:o,onLoadingStatusChange:r=()=>{},...s}=e,c=Tr(Ar,n),a=wd(o,s.referrerPolicy),u=V(l=>{r(l),c.onImageLoadingStatusChange(l)});return Y(()=>{a!=="idle"&&u(a)},[a,u]),a==="loaded"?f.jsx(In.img,{...s,ref:t,src:o}):null});jr.displayName=Ar;var Mr="AvatarFallback",Or=i.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:o,...r}=e,s=Tr(Mr,n),[c,a]=i.useState(o===void 0);return i.useEffect(()=>{if(o!==void 0){const u=window.setTimeout(()=>a(!0),o);return()=>window.clearTimeout(u)}},[o]),c&&s.imageLoadingStatus!=="loaded"?f.jsx(In.span,{...r,ref:t}):null});Or.displayName=Mr;function wd(e,t){const[n,o]=i.useState("idle");return Y(()=>{if(!e){o("error");return}let r=!0;const s=new window.Image,c=a=>()=>{r&&o(a)};return o("loading"),s.onload=c("loaded"),s.onerror=c("error"),s.src=e,t&&(s.referrerPolicy=t),()=>{r=!1}},[e,t]),n}var Ir=Nr,Dr=jr,_r=Or;function Lr(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Lr(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Rr(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Lr(e))&&(o&&(o+=" "),o+=t);return o}const $r=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Fr=Rr,et=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Fr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,c=Object.keys(r).map(l=>{const d=n==null?void 0:n[l],p=s==null?void 0:s[l];if(d===null)return null;const m=$r(d)||$r(p);return r[l][m]}),a=n&&Object.entries(n).reduce((l,d)=>{let[p,m]=d;return m===void 0||(l[p]=m),l},{}),u=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((l,d)=>{let{class:p,className:m,...v}=d;return Object.entries(v).every(w=>{let[h,g]=w;return Array.isArray(g)?g.includes({...s,...a}[h]):{...s,...a}[h]===g})?[...l,p,m]:l},[]);return Fr(e,c,u,n==null?void 0:n.class,n==null?void 0:n.className)},_n="-",bd=e=>{const t=xd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const a=c.split(_n);return a[0]===""&&a.length!==1&&a.shift(),Wr(a,t)||yd(c)},getConflictingClassGroupIds:(c,a)=>{const u=n[c]||[];return a&&o[c]?[...u,...o[c]]:u}}},Wr=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?Wr(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join(_n);return(c=t.validators.find(({validator:a})=>a(s)))==null?void 0:c.classGroupId},Br=/^\[(.+)\]$/,yd=e=>{if(Br.test(e)){const t=Br.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},xd=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return kd(Object.entries(e.classGroups),n).forEach(([s,c])=>{Ln(c,o,s,t)}),o},Ln=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:Ur(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(Ed(r)){Ln(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,c])=>{Ln(c,Ur(t,s),n,o)})})},Ur=(e,t)=>{let n=e;return t.split(_n).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},Ed=e=>e.isThemeGetter,kd=(e,t)=>t?e.map(([n,o])=>{const r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,a])=>[t+c,a])):s);return[n,r]}):e,Cd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(s,c)=>{n.set(s,c),t++,t>e&&(t=0,o=n,n=new Map)};return{get(s){let c=n.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return r(s,c),c},set(s,c){n.has(s)?n.set(s,c):r(s,c)}}},Hr="!",Sd=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],s=t.length,c=a=>{const u=[];let l=0,d=0,p;for(let g=0;g<a.length;g++){let b=a[g];if(l===0){if(b===r&&(o||a.slice(g,g+s)===t)){u.push(a.slice(d,g)),d=g+s;continue}if(b==="/"){p=g;continue}}b==="["?l++:b==="]"&&l--}const m=u.length===0?a:a.substring(d),v=m.startsWith(Hr),w=v?m.substring(1):m,h=p&&p>d?p-d:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:c}):c},Pd=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},Td=e=>({cache:Cd(e.cacheSize),parseClassName:Sd(e),...bd(e)}),Nd=/\s+/,Ad=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],c=e.trim().split(Nd);let a="";for(let u=c.length-1;u>=0;u-=1){const l=c[u],{modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:v}=n(l);let w=!!v,h=o(w?m.substring(0,v):m);if(!h){if(!w){a=l+(a.length>0?" "+a:a);continue}if(h=o(m),!h){a=l+(a.length>0?" "+a:a);continue}w=!1}const g=Pd(d).join(":"),b=p?g+Hr:g,y=b+h;if(s.includes(y))continue;s.push(y);const x=r(h,w);for(let E=0;E<x.length;++E){const C=x[E];s.push(b+C)}a=l+(a.length>0?" "+a:a)}return a};function jd(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=zr(t))&&(o&&(o+=" "),o+=n);return o}const zr=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=zr(e[o]))&&(n&&(n+=" "),n+=t);return n};function Vr(e,...t){let n,o,r,s=c;function c(u){const l=t.reduce((d,p)=>p(d),e());return n=Td(l),o=n.cache.get,r=n.cache.set,s=a,a(u)}function a(u){const l=o(u);if(l)return l;const d=Ad(u,n);return r(u,d),d}return function(){return s(jd.apply(null,arguments))}}const ee=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Kr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Md=/^\d+\/\d+$/,Od=new Set(["px","full","screen"]),Id=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_d=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ld=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,je=e=>tt(e)||Od.has(e)||Md.test(e),$e=e=>nt(e,"length",Vd),tt=e=>!!e&&!Number.isNaN(Number(e)),Rn=e=>nt(e,"number",tt),vt=e=>!!e&&Number.isInteger(Number(e)),$d=e=>e.endsWith("%")&&tt(e.slice(0,-1)),z=e=>Kr.test(e),Fe=e=>Id.test(e),Fd=new Set(["length","size","percentage"]),Wd=e=>nt(e,Fd,Gr),Bd=e=>nt(e,"position",Gr),Ud=new Set(["image","url"]),Hd=e=>nt(e,Ud,Gd),zd=e=>nt(e,"",Kd),gt=()=>!0,nt=(e,t,n)=>{const o=Kr.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},Vd=e=>Dd.test(e)&&!_d.test(e),Gr=()=>!1,Kd=e=>Ld.test(e),Gd=e=>Rd.test(e),Yr=()=>{const e=ee("colors"),t=ee("spacing"),n=ee("blur"),o=ee("brightness"),r=ee("borderColor"),s=ee("borderRadius"),c=ee("borderSpacing"),a=ee("borderWidth"),u=ee("contrast"),l=ee("grayscale"),d=ee("hueRotate"),p=ee("invert"),m=ee("gap"),v=ee("gradientColorStops"),w=ee("gradientColorStopPositions"),h=ee("inset"),g=ee("margin"),b=ee("opacity"),y=ee("padding"),x=ee("saturate"),E=ee("scale"),C=ee("sepia"),S=ee("skew"),k=ee("space"),P=ee("translate"),N=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",z,t],I=()=>[z,t],W=()=>["",je,$e],A=()=>["auto",tt,z],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",z],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[tt,z];return{cacheSize:500,separator:":",theme:{colors:[gt],spacing:[je,$e],blur:["none","",Fe,z],brightness:H(),borderColor:[e],borderRadius:["none","","full",Fe,z],borderSpacing:I(),borderWidth:W(),contrast:H(),grayscale:j(),hueRotate:H(),invert:j(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[$d,$e],inset:$(),margin:$(),opacity:H(),padding:I(),saturate:H(),scale:H(),sepia:j(),skew:H(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[Fe]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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"],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:[...U(),z]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",vt,z]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",vt,z]}],"grid-cols":[{"grid-cols":[gt]}],"col-start-end":[{col:["auto",{span:["full",vt,z]},z]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[gt]}],"row-start-end":[{row:["auto",{span:[vt,z]},z]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,t]}],"min-w":[{"min-w":[z,t,"min","max","fit"]}],"max-w":[{"max-w":[z,t,"none","full","min","max","fit","prose",{screen:[Fe]},Fe]}],h:[{h:[z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Fe,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rn]}],"font-family":[{font:[gt]}],"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:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",tt,Rn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",je,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",je,$e]}],"underline-offset":[{"underline-offset":["auto",je,z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),Bd]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Hd]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:_()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[je,z]}],"outline-w":[{outline:[je,$e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[je,$e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Fe,zd]}],"shadow-color":[{shadow:[gt]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Fe,z]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[vt,z]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[je,$e,Rn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},Yd=(e,{cacheSize:t,prefix:n,separator:o,experimentalParseClassName:r,extend:s={},override:c={}})=>{wt(e,"cacheSize",t),wt(e,"prefix",n),wt(e,"separator",o),wt(e,"experimentalParseClassName",r);for(const a in c)Xd(e[a],c[a]);for(const a in s)qd(e[a],s[a]);return e},wt=(e,t,n)=>{n!==void 0&&(e[t]=n)},Xd=(e,t)=>{if(t)for(const n in t)wt(e,n,t[n])},qd=(e,t)=>{if(t)for(const n in t){const o=t[n];o!==void 0&&(e[n]=(e[n]||[]).concat(o))}},Zd=((e,...t)=>typeof e=="function"?Vr(Yr,e,...t):Vr(()=>Yd(Yr(),e),...t))({prefix:"ksjsui-"});function R(...e){return Zd(Rr(e))}const Xr=["#E60060","#ED0C0C","#B20000","#CC4400","#558000","#008A22","#006600","#004C40","#008099","#0059B2","#0070F0","#0022FF","#6619FF","#9900E5","#747474","#191919"],Qd=et(["ksjsui-relative ksjsui-flex ksjsui-shrink-0 ksjsui-overflow-hidden ksjsui-rounded-full"],{variants:{size:{sm:"ksjsui-size-8",md:"ksjsui-size-9",lg:"ksjsui-size-10"}},defaultVariants:{size:"md"}}),qr=i.forwardRef(({className:e,size:t,...n},o)=>f.jsx(Ir,{ref:o,className:R(Qd({size:t,className:e})),...n}));qr.displayName=Ir.displayName;const Zr=i.forwardRef(({className:e,...t},n)=>f.jsx(Dr,{ref:n,className:R("ksjsui-aspect-square ksjsui-size-full",e),...t}));Zr.displayName=Dr.displayName;const Qr=i.forwardRef(({className:e,...t},n)=>{var o;return f.jsx(_r,{ref:n,className:R("ksjsui-bg-muted ksjsui-flex ksjsui-size-full ksjsui-items-center ksjsui-justify-center ksjsui-rounded-full",e),style:{...Jd((o=t.children)==null?void 0:o.toString(),Xr)},...t})});Qr.displayName=_r.displayName;function Jd(e="",t=Xr){const n=e.substring(0,2),o=ef(n)%t.length,r=t[o],s=tf(r);return{backgroundColor:r,color:s}}function ef(e){const t=e.substring(0,2);return t.split("").reduce((o,r,s)=>o+t.charCodeAt(s),0)}function tf(e){return e==="#fff"?"#000":"#fff"}const nf=et(["ksjsui-inline-flex ksjsui-items-center ksjsui-justify-center ksjsui-whitespace-nowrap ksjsui-rounded-lg ksjsui-border ksjsui-border-transparent ksjsui-p-2 ksjsui-text-base ksjsui-ring-offset-background ksjsui-transition-colors","focus-visible:ksjsui-outline-none focus-visible:ksjsui-ring-2 focus-visible:ksjsui-ring-ring focus-visible:ksjsui-ring-offset-2","disabled:ksjsui-pointer-events-none disabled:ksjsui-cursor-not-allowed disabled:ksjsui-bg-disabled disabled:ksjsui-text-disabled-foreground","forced-colors:ksjsui-border-button-border forced-colors:ksjsui-bg-button-face forced-colors:ksjsui-text-button-text","forced-colors:hover:ksjsui-border-highlight","forced-colors:disabled:ksjsui-border-gray-text","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-shrink-0"],{variants:{variant:{solid:"",outline:"ksjsui-border-current ksjsui-text-secondary hover:ksjsui-bg-neutral-hover",plain:"ksjsui-bg-transparent",link:"ksjsui-underline-current ksjsui-h-auto ksjsui-p-0 ksjsui-text-secondary hover:ksjsui-underline",avatar:"ksjsui-rounded-full ksjsui-border-0 ksjsui-p-0"},color:{neutral:"",primary:"",secondary:"",destructive:""},fullWidth:{true:"ksjsui-w-full"},iconOnly:{true:"ksjsui-icon-only [&.ksjsui-icon-only_svg]:ksjsui-size-6"},radius:{full:"ksjsui-rounded-full"},size:{sm:"ksjsui-h-8 [&_svg]:ksjsui-size-5",md:"ksjsui-h-9 [&_svg]:ksjsui-size-5",lg:"ksjsui-h-10 [&_svg]:ksjsui-size-6"}},defaultVariants:{variant:"solid",color:"neutral",fullWidth:!1,size:"md"},compoundVariants:[{variant:"solid",color:"neutral",className:"ksjsui-bg-neutral ksjsui-text-neutral-foreground hover:ksjsui-bg-neutral-hover"},{variant:"solid",color:"primary",className:"ksjsui-bg-primary ksjsui-text-primary-foreground hover:ksjsui-bg-primary-hover"},{variant:"solid",color:"secondary",className:"ksjsui-bg-secondary ksjsui-text-secondary-foreground hover:ksjsui-bg-secondary-hover"},{variant:"solid",color:"destructive",className:"ksjsui-bg-destructive ksjsui-text-destructive-foreground hover:ksjsui-bg-destructive-hover"},{variant:["outline","plain","link"],color:"neutral",className:"ksjsui-text-neutral-foreground"},{variant:["outline","plain","link"],color:"primary",className:"ksjsui-text-primary"},{variant:["outline","plain","link"],color:"secondary",className:"ksjsui-text-secondary"},{variant:["outline","plain","link"],color:"destructive",className:"ksjsui-text-destructive"},{iconOnly:!0,size:"sm",className:"ksjsui-size-8"},{iconOnly:!0,size:"md",className:"ksjsui-size-9"},{iconOnly:!0,size:"lg",className:"ksjsui-size-10"}]}),$n=i.forwardRef(({className:e,endContent:t,startContent:n,variant:o,color:r,fullWidth:s,iconOnly:c,radius:a,size:u,asChild:l,children:d,tabIndex:p=0,...m},v)=>{const w=l?ne:"button";return f.jsxs(w,{className:R(nf({variant:o,color:r,fullWidth:s,iconOnly:c,radius:a,size:u,className:e})),ref:v,tabIndex:p,...m,children:[n&&f.jsx("span",{className:"ksjsui-me-2",children:n}),f.jsx(On,{children:d}),t&&f.jsx("span",{className:"ksjsui-ms-2",children:t})]})});$n.displayName="Button";function T(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var of=i.useId||(()=>{}),rf=0;function ve(e){const[t,n]=i.useState(of());return Y(()=>{n(o=>o??String(rf++))},[e]),t?`radix-${t}`:""}function Me({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=sf({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o,a=V(n),u=i.useCallback(l=>{if(s){const p=typeof l=="function"?l(e):l;p!==e&&a(p)}else r(l)},[s,e,r,a]);return[c,u]}function sf({defaultProp:e,onChange:t}){const n=i.useState(e),[o]=n,r=i.useRef(o),s=V(t);return i.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}var af=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Oe=af.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?ne:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cf(e,t){e&&Ae.flushSync(()=>e.dispatchEvent(t))}function bt(e,t=globalThis==null?void 0:globalThis.document){const n=V(e);i.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var lf="DismissableLayer",Fn="dismissableLayer.update",uf="dismissableLayer.pointerDownOutside",df="dismissableLayer.focusOutside",Jr,es=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ts=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...u}=e,l=i.useContext(es),[d,p]=i.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),w=L(t,k=>p(k)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(g),y=d?h.indexOf(d):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,C=hf(k=>{const P=k.target,N=[...l.branches].some(M=>M.contains(P));!E||N||(r==null||r(k),c==null||c(k),k.defaultPrevented||a==null||a())},m),S=mf(k=>{const P=k.target;[...l.branches].some(M=>M.contains(P))||(s==null||s(k),c==null||c(k),k.defaultPrevented||a==null||a())},m);return bt(k=>{y===l.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},m),i.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Jr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),ns(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Jr)}},[d,m,n,l]),i.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),ns())},[d,l]),i.useEffect(()=>{const k=()=>v({});return document.addEventListener(Fn,k),()=>document.removeEventListener(Fn,k)},[]),f.jsx(Oe.div,{...u,ref:w,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,S.onFocusCapture),onBlurCapture:T(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,C.onPointerDownCapture)})});ts.displayName=lf;var ff="DismissableLayerBranch",pf=i.forwardRef((e,t)=>{const n=i.useContext(es),o=i.useRef(null),r=L(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(Oe.div,{...e,ref:r})});pf.displayName=ff;function hf(e,t=globalThis==null?void 0:globalThis.document){const n=V(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let u=function(){os(uf,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function mf(e,t=globalThis==null?void 0:globalThis.document){const n=V(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&os(df,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function ns(){const e=new CustomEvent(Fn);document.dispatchEvent(e)}function os(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?cf(r,s):r.dispatchEvent(s)}var Wn="focusScope.autoFocusOnMount",Bn="focusScope.autoFocusOnUnmount",rs={bubbles:!1,cancelable:!0},vf="FocusScope",ss=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,u]=i.useState(null),l=V(r),d=V(s),p=i.useRef(null),m=L(t,h=>u(h)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let h=function(x){if(v.paused||!a)return;const E=x.target;a.contains(E)?p.current=E:We(p.current,{select:!0})},g=function(x){if(v.paused||!a)return;const E=x.relatedTarget;E!==null&&(a.contains(E)||We(p.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&We(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),y.disconnect()}}},[o,a,v.paused]),i.useEffect(()=>{if(a){cs.add(v);const h=document.activeElement;if(!a.contains(h)){const b=new CustomEvent(Wn,rs);a.addEventListener(Wn,l),a.dispatchEvent(b),b.defaultPrevented||(gf(Ef(is(a)),{select:!0}),document.activeElement===h&&We(a))}return()=>{a.removeEventListener(Wn,l),setTimeout(()=>{const b=new CustomEvent(Bn,rs);a.addEventListener(Bn,d),a.dispatchEvent(b),b.defaultPrevented||We(h??document.body,{select:!0}),a.removeEventListener(Bn,d),cs.remove(v)},0)}}},[a,l,d,v]);const w=i.useCallback(h=>{if(!n&&!o||v.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(g&&b){const y=h.currentTarget,[x,E]=wf(y);x&&E?!h.shiftKey&&b===E?(h.preventDefault(),n&&We(x,{select:!0})):h.shiftKey&&b===x&&(h.preventDefault(),n&&We(E,{select:!0})):b===y&&h.preventDefault()}},[n,o,v.paused]);return f.jsx(Oe.div,{tabIndex:-1,...c,ref:m,onKeyDown:w})});ss.displayName=vf;function gf(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(We(o,{select:t}),document.activeElement!==n)return}function wf(e){const t=is(e),n=as(t,e),o=as(t.reverse(),e);return[n,o]}function is(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function as(e,t){for(const n of e)if(!bf(n,{upTo:t}))return n}function bf(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 yf(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yf(e)&&t&&e.select()}}var cs=xf();function xf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ls(e,t),e.unshift(t)},remove(t){var n;e=ls(e,t),(n=e[0])==null||n.resume()}}}function ls(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Ef(e){return e.filter(t=>t.tagName!=="A")}var kf="Portal",us=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);Y(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?mt.createPortal(f.jsx(Oe.div,{...o,ref:t}),c):null});us.displayName=kf;function Cf(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var Rt=e=>{const{present:t,children:n}=e,o=Sf(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=L(o.ref,Pf(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};Rt.displayName="Presence";function Sf(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,u]=Cf(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=$t(o.current);s.current=a==="mounted"?l:"none"},[a]),Y(()=>{const l=o.current,d=r.current;if(d!==e){const m=s.current,v=$t(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(d&&m!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),Y(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,p=v=>{const h=$t(o.current).includes(v.animationName);if(v.target===t&&h&&(u("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=v=>{v.target===t&&(s.current=$t(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function $t(e){return(e==null?void 0:e.animationName)||"none"}function Pf(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Un=0;function Hn(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ds()),document.body.insertAdjacentElement("beforeend",e[1]??ds()),Un++,()=>{Un===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Un--}},[])}function ds(){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 ke=function(){return ke=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ke.apply(this,arguments)};function fs(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Tf(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ft="right-scroll-bar-position",Wt="width-before-scroll-bar",Nf="with-scroll-bars-hidden",Af="--removed-body-scroll-bar-size";function zn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jf(e,t){var n=J.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Mf=typeof window<"u"?i.useLayoutEffect:i.useEffect,ps=new WeakMap;function Of(e,t){var n=jf(null,function(o){return e.forEach(function(r){return zn(r,o)})});return Mf(function(){var o=ps.get(n);if(o){var r=new Set(o),s=new Set(e),c=n.current;r.forEach(function(a){s.has(a)||zn(a,null)}),s.forEach(function(a){r.has(a)||zn(a,c)})}ps.set(n,e)},[e]),n}function If(e){return e}function Df(e,t){t===void 0&&(t=If);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var c=t(s,o);return n.push(c),function(){n=n.filter(function(a){return a!==c})}},assignSyncMedium:function(s){for(o=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var c=[];if(n.length){var a=n;n=[],a.forEach(s),c=n}var u=function(){var d=c;c=[],d.forEach(s)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(d){c.push(d),l()},filter:function(d){return c=c.filter(d),n}}}};return r}function _f(e){e===void 0&&(e={});var t=Df(null);return t.options=ke({async:!0,ssr:!1},e),t}var hs=function(e){var t=e.sideCar,n=fs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return i.createElement(o,ke({},n))};hs.isSideCarExport=!0;function Lf(e,t){return e.useMedium(t),hs}var ms=_f(),Vn=function(){},Bt=i.forwardRef(function(e,t){var n=i.useRef(null),o=i.useState({onScrollCapture:Vn,onWheelCapture:Vn,onTouchMoveCapture:Vn}),r=o[0],s=o[1],c=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,v=e.noIsolation,w=e.inert,h=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,y=e.gapMode,x=fs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,C=Of([n,t]),S=ke(ke({},x),r);return i.createElement(i.Fragment,null,d&&i.createElement(E,{sideCar:ms,removeScrollBar:l,shards:p,noIsolation:v,inert:w,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:y}),c?i.cloneElement(i.Children.only(a),ke(ke({},S),{ref:C})):i.createElement(b,ke({},S,{className:u,ref:C}),a))});Bt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bt.classNames={fullWidth:Wt,zeroRight:Ft};var Rf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $f(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rf();return t&&e.setAttribute("nonce",t),e}function Ff(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Wf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Bf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$f())&&(Ff(t,n),Wf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Uf=function(){var e=Bf();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vs=function(){var e=Uf(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Hf={left:0,top:0,right:0,gap:0},Kn=function(e){return parseInt(e||"",10)||0},zf=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Kn(n),Kn(o),Kn(r)]},Vf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Hf;var t=zf(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Kf=vs(),ot="data-scroll-locked",Gf=function(e,t,n,o){var r=e.left,s=e.top,c=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(Nf,` {
1
+ (function(S,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],l):(S=typeof globalThis<"u"?globalThis:S||self,l(S["keeper-js-ui"]={},S["react/jsx-runtime"],S.React,S.ReactDOM))})(this,function(S,l,te,ut){"use strict";function Xr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=Xr(te),xe=Xr(ut);function gd(e,t){const n=i.createContext(t),o=s=>{const{children:c,...a}=s,d=i.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:d,children:c})};o.displayName=e+"Provider";function r(s){const c=i.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function de(e,t=[]){let n=[];function o(s,c){const a=i.createContext(c),d=n.length;n=[...n,c];const u=h=>{var b;const{scope:v,children:m,...C}=h,p=((b=v==null?void 0:v[e])==null?void 0:b[d])||a,g=i.useMemo(()=>C,Object.values(C));return l.jsx(p.Provider,{value:g,children:m})};u.displayName=s+"Provider";function f(h,v){var p;const m=((p=v==null?void 0:v[e])==null?void 0:p[d])||a,C=i.useContext(m);if(C)return C;if(c!==void 0)return c;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,f]}const r=()=>{const s=n.map(c=>i.createContext(c));return function(a){const d=(a==null?void 0:a[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return r.scopeName=e,[o,Cd(r,...t)]}function Cd(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const c=o.reduce((a,{useScope:d,scopeName:u})=>{const h=d(s)[`__scope${u}`];return{...a,...h}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function U(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}var J=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{};function qr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Kt(...e){return t=>{let n=!1;const o=e.map(r=>{const s=qr(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():qr(e[r],null)}}}}function V(...e){return i.useCallback(Kt(...e),e)}var re=i.forwardRef((e,t)=>{const{children:n,...o}=e,r=i.Children.toArray(n),s=r.find(bd);if(s){const c=s.props.children,a=r.map(d=>d===s?i.Children.count(c)>1?i.Children.only(null):i.isValidElement(c)?c.props.children:null:d);return l.jsx(Jn,{...o,ref:t,children:i.isValidElement(c)?i.cloneElement(c,void 0,a):null})}return l.jsx(Jn,{...o,ref:t,children:n})});re.displayName="Slot";var Jn=i.forwardRef((e,t)=>{const{children:n,...o}=e;if(i.isValidElement(n)){const r=wd(n),s=yd(o,n.props);return n.type!==i.Fragment&&(s.ref=t?Kt(t,r):r),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});Jn.displayName="SlotClone";var eo=({children:e})=>l.jsx(l.Fragment,{children:e});function bd(e){return i.isValidElement(e)&&e.type===eo}function yd(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{s(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function wd(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],to=kd.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?re:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),no="Avatar",[Ed,Mv]=de(no),[Sd,Qr]=Ed(no),Jr=i.forwardRef((e,t)=>{const{__scopeAvatar:n,...o}=e,[r,s]=i.useState("idle");return l.jsx(Sd,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:s,children:l.jsx(to.span,{...o,ref:t})})});Jr.displayName=no;var es="AvatarImage",ts=i.forwardRef((e,t)=>{const{__scopeAvatar:n,src:o,onLoadingStatusChange:r=()=>{},...s}=e,c=Qr(es,n),a=Md(o,s.referrerPolicy),d=U(u=>{r(u),c.onImageLoadingStatusChange(u)});return J(()=>{a!=="idle"&&d(a)},[a,d]),a==="loaded"?l.jsx(to.img,{...s,ref:t,src:o}):null});ts.displayName=es;var ns="AvatarFallback",os=i.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:o,...r}=e,s=Qr(ns,n),[c,a]=i.useState(o===void 0);return i.useEffect(()=>{if(o!==void 0){const d=window.setTimeout(()=>a(!0),o);return()=>window.clearTimeout(d)}},[o]),c&&s.imageLoadingStatus!=="loaded"?l.jsx(to.span,{...r,ref:t}):null});os.displayName=ns;function Md(e,t){const[n,o]=i.useState("idle");return J(()=>{if(!e){o("error");return}let r=!0;const s=new window.Image,c=a=>()=>{r&&o(a)};return o("loading"),s.onload=c("loaded"),s.onerror=c("error"),s.src=e,t&&(s.referrerPolicy=t),()=>{r=!1}},[e,t]),n}var rs=Jr,ss=ts,is=os;function as(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=as(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function cs(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=as(e))&&(o&&(o+=" "),o+=t);return o}const ls=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,us=cs,Fe=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return us(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,c=Object.keys(r).map(u=>{const f=n==null?void 0:n[u],h=s==null?void 0:s[u];if(f===null)return null;const v=ls(f)||ls(h);return r[u][v]}),a=n&&Object.entries(n).reduce((u,f)=>{let[h,v]=f;return v===void 0||(u[h]=v),u},{}),d=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,f)=>{let{class:h,className:v,...m}=f;return Object.entries(m).every(C=>{let[p,g]=C;return Array.isArray(g)?g.includes({...s,...a}[p]):{...s,...a}[p]===g})?[...u,h,v]:u},[]);return us(e,c,d,n==null?void 0:n.class,n==null?void 0:n.className)},oo="-",Pd=e=>{const t=Ld(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const a=c.split(oo);return a[0]===""&&a.length!==1&&a.shift(),ds(a,t)||xd(c)},getConflictingClassGroupIds:(c,a)=>{const d=n[c]||[];return a&&o[c]?[...d,...o[c]]:d}}},ds=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?ds(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join(oo);return(c=t.validators.find(({validator:a})=>a(s)))==null?void 0:c.classGroupId},fs=/^\[(.+)\]$/,xd=e=>{if(fs.test(e)){const t=fs.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ld=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return Nd(Object.entries(e.classGroups),n).forEach(([s,c])=>{ro(c,o,s,t)}),o},ro=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:ps(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(Id(r)){ro(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,c])=>{ro(c,ps(t,s),n,o)})})},ps=(e,t)=>{let n=e;return t.split(oo).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},Id=e=>e.isThemeGetter,Nd=(e,t)=>t?e.map(([n,o])=>{const r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,a])=>[t+c,a])):s);return[n,r]}):e,Ad=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(s,c)=>{n.set(s,c),t++,t>e&&(t=0,o=n,n=new Map)};return{get(s){let c=n.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return r(s,c),c},set(s,c){n.has(s)?n.set(s,c):r(s,c)}}},hs="!",Td=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],s=t.length,c=a=>{const d=[];let u=0,f=0,h;for(let g=0;g<a.length;g++){let b=a[g];if(u===0){if(b===r&&(o||a.slice(g,g+s)===t)){d.push(a.slice(f,g)),f=g+s;continue}if(b==="/"){h=g;continue}}b==="["?u++:b==="]"&&u--}const v=d.length===0?a:a.substring(f),m=v.startsWith(hs),C=m?v.substring(1):v,p=h&&h>f?h-f:void 0;return{modifiers:d,hasImportantModifier:m,baseClassName:C,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:c}):c},jd=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},Od=e=>({cache:Ad(e.cacheSize),parseClassName:Td(e),...Pd(e)}),_d=/\s+/,$d=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],c=e.trim().split(_d);let a="";for(let d=c.length-1;d>=0;d-=1){const u=c[d],{modifiers:f,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=n(u);let C=!!m,p=o(C?v.substring(0,m):v);if(!p){if(!C){a=u+(a.length>0?" "+a:a);continue}if(p=o(v),!p){a=u+(a.length>0?" "+a:a);continue}C=!1}const g=jd(f).join(":"),b=h?g+hs:g,y=b+p;if(s.includes(y))continue;s.push(y);const w=r(p,C);for(let k=0;k<w.length;++k){const M=w[k];s.push(b+M)}a=u+(a.length>0?" "+a:a)}return a};function Hd(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=vs(t))&&(o&&(o+=" "),o+=n);return o}const vs=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=vs(e[o]))&&(n&&(n+=" "),n+=t);return n};function ms(e,...t){let n,o,r,s=c;function c(d){const u=t.reduce((f,h)=>h(f),e());return n=Od(u),o=n.cache.get,r=n.cache.set,s=a,a(d)}function a(d){const u=o(d);if(u)return u;const f=$d(d,n);return r(d,f),f}return function(){return s(Hd.apply(null,arguments))}}const ne=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},gs=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vd=/^\d+\/\d+$/,Dd=new Set(["px","full","screen"]),Fd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rd=/\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$/,Zd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oe=e=>dt(e)||Dd.has(e)||Vd.test(e),Re=e=>ft(e,"length",Qd),dt=e=>!!e&&!Number.isNaN(Number(e)),so=e=>ft(e,"number",dt),Pt=e=>!!e&&Number.isInteger(Number(e)),Bd=e=>e.endsWith("%")&&dt(e.slice(0,-1)),B=e=>gs.test(e),Ze=e=>Fd.test(e),Ud=new Set(["length","size","percentage"]),Kd=e=>ft(e,Ud,Cs),Gd=e=>ft(e,"position",Cs),Yd=new Set(["image","url"]),Xd=e=>ft(e,Yd,ef),qd=e=>ft(e,"",Jd),xt=()=>!0,ft=(e,t,n)=>{const o=gs.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},Qd=e=>Rd.test(e)&&!Zd.test(e),Cs=()=>!1,Jd=e=>Wd.test(e),ef=e=>zd.test(e),bs=()=>{const e=ne("colors"),t=ne("spacing"),n=ne("blur"),o=ne("brightness"),r=ne("borderColor"),s=ne("borderRadius"),c=ne("borderSpacing"),a=ne("borderWidth"),d=ne("contrast"),u=ne("grayscale"),f=ne("hueRotate"),h=ne("invert"),v=ne("gap"),m=ne("gradientColorStops"),C=ne("gradientColorStopPositions"),p=ne("inset"),g=ne("margin"),b=ne("opacity"),y=ne("padding"),w=ne("saturate"),k=ne("scale"),M=ne("sepia"),P=ne("skew"),E=ne("space"),L=ne("translate"),N=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",B,t],_=()=>[B,t],R=()=>["",Oe,Re],j=()=>["auto",dt,B],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",B],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[dt,B];return{cacheSize:500,separator:":",theme:{colors:[xt],spacing:[Oe,Re],blur:["none","",Ze,B],brightness:z(),borderColor:[e],borderRadius:["none","","full",Ze,B],borderSpacing:_(),borderWidth:R(),contrast:z(),grayscale:A(),hueRotate:z(),invert:A(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[Bd,Re],inset:D(),margin:D(),opacity:z(),padding:_(),saturate:z(),scale:z(),sepia:A(),skew:z(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[Ze]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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"],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:[...W(),B]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pt,B]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",Pt,B]}],"grid-cols":[{"grid-cols":[xt]}],"col-start-end":[{col:["auto",{span:["full",Pt,B]},B]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[xt]}],"row-start-end":[{row:["auto",{span:[Pt,B]},B]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-w":[{"min-w":[B,t,"min","max","fit"]}],"max-w":[{"max-w":[B,t,"none","full","min","max","fit","prose",{screen:[Ze]},Ze]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ze,Re]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",so]}],"font-family":[{font:[xt]}],"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:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",dt,so]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Oe,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Oe,Re]}],"underline-offset":[{"underline-offset":["auto",Oe,B]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),Gd]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Xd]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:H()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[Oe,B]}],"outline-w":[{outline:[Oe,Re]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Oe,Re]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ze,qd]}],"shadow-color":[{shadow:[xt]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ze,B]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[w]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Pt,B]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",B]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Oe,Re,so]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},tf=(e,{cacheSize:t,prefix:n,separator:o,experimentalParseClassName:r,extend:s={},override:c={}})=>{Lt(e,"cacheSize",t),Lt(e,"prefix",n),Lt(e,"separator",o),Lt(e,"experimentalParseClassName",r);for(const a in c)nf(e[a],c[a]);for(const a in s)of(e[a],s[a]);return e},Lt=(e,t,n)=>{n!==void 0&&(e[t]=n)},nf=(e,t)=>{if(t)for(const n in t)Lt(e,n,t[n])},of=(e,t)=>{if(t)for(const n in t){const o=t[n];o!==void 0&&(e[n]=(e[n]||[]).concat(o))}},rf=(e,...t)=>typeof e=="function"?ms(bs,e,...t):ms(()=>tf(bs(),e),...t),sf=Fe(["ksjsui-shrink-0","forced-colors:ksjsui-fill-canvas-text"],{variants:{color:{current:"ksjsui-fill-current",neutral:"ksjsui-fill-neutral",primary:"ksjsui-fill-primary",secondary:"ksjsui-fill-secondary",success:"ksjsui-fill-success",destructive:"ksjsui-fill-destructive"},size:{sm:"ksjsui-size-5",md:"ksjsui-size-6",lg:"ksjsui-size-8",xl:"ksjsui-size-12"}},defaultVariants:{color:"current",size:"md"}}),af=i.forwardRef(({children:e,className:t,color:n,size:o,...r},s)=>i.createElement("svg",{"aria-hidden":!0,className:$(sf({color:n,size:o,className:t})),fill:n,focusable:!1,ref:s,role:"presentation",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r},Array.isArray(e)?e.map((a,d)=>i.cloneElement(a,{key:d})):e)),cf=rf({prefix:"ksjsui-"});function $(...e){return cf(cs(e))}function x(e,t){const n=i.forwardRef(({className:o,...r},s)=>i.createElement(af,{ref:s,children:t,className:$(`ksjsui-icon-${lf(e)}`,o),...r}));return n.displayName=e,n}function lf(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}const ys=["#E60060","#ED0C0C","#B20000","#CC4400","#558000","#008A22","#006600","#004C40","#008099","#0059B2","#0070F0","#0022FF","#6619FF","#9900E5","#747474","#191919"],uf=Fe(["ksjsui-relative ksjsui-flex ksjsui-shrink-0 ksjsui-overflow-hidden ksjsui-rounded-full"],{variants:{size:{sm:"ksjsui-size-8",md:"ksjsui-size-9",lg:"ksjsui-size-10"}},defaultVariants:{size:"md"}}),ws=i.forwardRef(({className:e,size:t,...n},o)=>l.jsx(rs,{ref:o,className:$(uf({size:t,className:e})),...n}));ws.displayName=rs.displayName;const ks=i.forwardRef(({className:e,...t},n)=>l.jsx(ss,{ref:n,className:$("ksjsui-aspect-square ksjsui-size-full",e),...t}));ks.displayName=ss.displayName;const Es=i.forwardRef(({className:e,...t},n)=>{var o;return l.jsx(is,{ref:n,className:$("ksjsui-bg-muted ksjsui-flex ksjsui-size-full ksjsui-items-center ksjsui-justify-center ksjsui-rounded-full",e),style:{...df((o=t.children)==null?void 0:o.toString(),ys)},...t})});Es.displayName=is.displayName;function df(e="",t=ys){const n=e.substring(0,2),o=ff(n)%t.length,r=t[o],s=pf(r);return{backgroundColor:r,color:s}}function ff(e){const t=e.substring(0,2);return t.split("").reduce((o,r,s)=>o+t.charCodeAt(s),0)}function pf(e){return e==="#fff"?"#000":"#fff"}const hf=Fe(["motion-safe:ksjsui-animate-spin","motion-safe:[&_circle]:ksjsui-animate-loader"],{variants:{color:{current:"ksjsui-text-current",neutral:"ksjsui-text-neutral",primary:"ksjsui-text-primary",secondary:"ksjsui-text-secondary",destructive:"ksjsui-text-destructive"},size:{xs:"ksjsui-size-4",sm:"ksjsui-size-6",md:"ksjsui-size-8",lg:"ksjsui-size-12",xl:"ksjsui-size-14","2xl":"ksjsui-size-16"}},defaultVariants:{color:"current",size:"md"}}),io=i.forwardRef(({className:e,color:t,size:n,...o},r)=>l.jsx("svg",{className:$(hf({color:t,size:n,className:e})),ref:r,viewBox:"0 0 24 24",...o,children:l.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"})}));io.displayName="Loader";const vf=Fe(["ksjsui-relative ksjsui-inline-flex ksjsui-items-center ksjsui-justify-center ksjsui-whitespace-nowrap ksjsui-rounded-lg ksjsui-border ksjsui-border-transparent ksjsui-p-2 ksjsui-text-base ksjsui-ring-offset-background ksjsui-transition-colors","focus-visible:ksjsui-outline-none focus-visible:ksjsui-ring-2 focus-visible:ksjsui-ring-ring focus-visible:ksjsui-ring-offset-2","disabled:ksjsui-pointer-events-none disabled:ksjsui-cursor-not-allowed disabled:ksjsui-bg-disabled disabled:ksjsui-text-disabled-foreground","forced-colors:ksjsui-border-button-border forced-colors:ksjsui-bg-button-face forced-colors:ksjsui-text-button-text","forced-colors:hover:ksjsui-border-highlight","forced-colors:disabled:ksjsui-border-gray-text","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-shrink-0","[&_.ButtonContent]:ksjsui-opacity-100 [&_.ButtonContent]:ksjsui-delay-100","motion-safe:[&_.ButtonContent]:ksjsui-transition-opacity","[&_.ButtonLoader]:ksjsui-absolute [&_.ButtonLoader]:ksjsui-inset-0 [&_.ButtonLoader]:ksjsui-m-auto [&_.ButtonLoader]:ksjsui-opacity-0"],{variants:{variant:{solid:"",outline:"ksjsui-border-current hover:ksjsui-bg-neutral-hover",plain:"ksjsui-bg-transparent",link:"ksjsui-underline-current ksjsui-h-auto ksjsui-p-0 hover:ksjsui-underline",avatar:"ksjsui-rounded-full ksjsui-border-0 ksjsui-p-0"},color:{neutral:"",primary:"",secondary:"",success:"",destructive:""},fullWidth:{true:"ksjsui-w-full"},iconOnly:{true:"ksjsui-icon-only [&.ksjsui-icon-only_svg]:ksjsui-size-6"},loading:{true:["[&_.ButtonContent]:ksjsui-opacity-0","[&_.ButtonLoader]:ksjsui-opacity-100 [&_.ButtonLoader]:ksjsui-delay-200","motion-safe:[&_.ButtonLoader]:ksjsui-animate-spin"]},radius:{full:"ksjsui-rounded-full"},size:{sm:"ksjsui-h-8 [&_svg]:ksjsui-size-5",md:"ksjsui-h-9 [&_svg]:ksjsui-size-5",lg:"ksjsui-h-10 [&_svg]:ksjsui-size-6"}},defaultVariants:{variant:"solid",color:"neutral",fullWidth:!1,size:"md"},compoundVariants:[{variant:"solid",color:"neutral",className:"ksjsui-bg-neutral ksjsui-text-neutral-foreground hover:ksjsui-bg-neutral-hover"},{variant:"solid",color:"primary",className:"ksjsui-bg-primary ksjsui-text-primary-foreground hover:ksjsui-bg-primary-hover"},{variant:"solid",color:"secondary",className:"ksjsui-bg-secondary ksjsui-text-secondary-foreground hover:ksjsui-bg-secondary-hover"},{variant:"solid",color:"success",className:"ksjsui-bg-success ksjsui-text-success-foreground hover:ksjsui-bg-success-hover"},{variant:"solid",color:"destructive",className:"ksjsui-bg-destructive ksjsui-text-destructive-foreground hover:ksjsui-bg-destructive-hover"},{variant:["outline","plain","link"],color:"neutral",className:"ksjsui-text-neutral-foreground"},{variant:["outline","plain","link"],color:"primary",className:"ksjsui-text-primary"},{variant:["outline","plain","link"],color:"secondary",className:"ksjsui-text-secondary"},{variant:["outline","plain","link"],color:"success",className:"ksjsui-text-success"},{variant:["outline","plain","link"],color:"destructive",className:"ksjsui-text-destructive"},{iconOnly:!0,size:"sm",className:"ksjsui-size-8"},{iconOnly:!0,size:"md",className:"ksjsui-size-9"},{iconOnly:!0,size:"lg",className:"ksjsui-size-10"}]}),ao=i.forwardRef(({className:e,endContent:t,startContent:n,variant:o,color:r,fullWidth:s,iconOnly:c,radius:a,size:d,asChild:u,children:f,tabIndex:h=0,loading:v,...m},C)=>{const p=u?re:"button";return l.jsxs(p,{className:$(vf({variant:o,color:r,fullWidth:s,iconOnly:c,loading:v,radius:a,size:d,className:e})),ref:C,tabIndex:h,"aria-busy":v,...m,children:[n&&l.jsx("span",{className:$("ButtonContent ksjsui-me-2"),children:n}),l.jsx(eo,{children:u?i.cloneElement(f,f.props,l.jsx("span",{className:"ButtonContent",children:f.props.children})):l.jsx("span",{className:"ButtonContent",children:f})}),l.jsx(io,{className:"ButtonLoader"}),t&&l.jsx("span",{className:$("ButtonContent ksjsui-ms-2"),children:t})]})});ao.displayName="Button";function I(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var mf=i.useId||(()=>{}),gf=0;function ge(e){const[t,n]=i.useState(mf());return J(()=>{n(o=>o??String(gf++))},[e]),t?`radix-${t}`:""}function _e({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Cf({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o,a=U(n),d=i.useCallback(u=>{if(s){const h=typeof u=="function"?u(e):u;h!==e&&a(h)}else r(u)},[s,e,r,a]);return[c,d]}function Cf({defaultProp:e,onChange:t}){const n=i.useState(e),[o]=n,r=i.useRef(o),s=U(t);return i.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}var bf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$e=bf.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?re:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yf(e,t){e&&xe.flushSync(()=>e.dispatchEvent(t))}function It(e,t=globalThis==null?void 0:globalThis.document){const n=U(e);i.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var wf="DismissableLayer",co="dismissableLayer.update",kf="dismissableLayer.pointerDownOutside",Ef="dismissableLayer.focusOutside",Ss,Ms=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ps=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...d}=e,u=i.useContext(Ms),[f,h]=i.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=i.useState({}),C=V(t,E=>h(E)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(g),y=f?p.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=y>=b,M=Pf(E=>{const L=E.target,N=[...u.branches].some(T=>T.contains(L));!k||N||(r==null||r(E),c==null||c(E),E.defaultPrevented||a==null||a())},v),P=xf(E=>{const L=E.target;[...u.branches].some(T=>T.contains(L))||(s==null||s(E),c==null||c(E),E.defaultPrevented||a==null||a())},v);return It(E=>{y===u.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},v),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ss=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),xs(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ss)}},[f,v,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),xs())},[f,u]),i.useEffect(()=>{const E=()=>m({});return document.addEventListener(co,E),()=>document.removeEventListener(co,E)},[]),l.jsx($e.div,{...d,ref:C,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:I(e.onFocusCapture,P.onFocusCapture),onBlurCapture:I(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,M.onPointerDownCapture)})});Ps.displayName=wf;var Sf="DismissableLayerBranch",Mf=i.forwardRef((e,t)=>{const n=i.useContext(Ms),o=i.useRef(null),r=V(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx($e.div,{...e,ref:r})});Mf.displayName=Sf;function Pf(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let d=function(){Ls(kf,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=d,t.addEventListener("click",r.current,{once:!0})):d()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function xf(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Ls(Ef,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function xs(){const e=new CustomEvent(co);document.dispatchEvent(e)}function Ls(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?yf(r,s):r.dispatchEvent(s)}var lo="focusScope.autoFocusOnMount",uo="focusScope.autoFocusOnUnmount",Is={bubbles:!1,cancelable:!0},Lf="FocusScope",Ns=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,d]=i.useState(null),u=U(r),f=U(s),h=i.useRef(null),v=V(t,p=>d(p)),m=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let p=function(w){if(m.paused||!a)return;const k=w.target;a.contains(k)?h.current=k:We(h.current,{select:!0})},g=function(w){if(m.paused||!a)return;const k=w.relatedTarget;k!==null&&(a.contains(k)||We(h.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const M of w)M.removedNodes.length>0&&We(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),y.disconnect()}}},[o,a,m.paused]),i.useEffect(()=>{if(a){js.add(m);const p=document.activeElement;if(!a.contains(p)){const b=new CustomEvent(lo,Is);a.addEventListener(lo,u),a.dispatchEvent(b),b.defaultPrevented||(If(Of(As(a)),{select:!0}),document.activeElement===p&&We(a))}return()=>{a.removeEventListener(lo,u),setTimeout(()=>{const b=new CustomEvent(uo,Is);a.addEventListener(uo,f),a.dispatchEvent(b),b.defaultPrevented||We(p??document.body,{select:!0}),a.removeEventListener(uo,f),js.remove(m)},0)}}},[a,u,f,m]);const C=i.useCallback(p=>{if(!n&&!o||m.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,b=document.activeElement;if(g&&b){const y=p.currentTarget,[w,k]=Nf(y);w&&k?!p.shiftKey&&b===k?(p.preventDefault(),n&&We(w,{select:!0})):p.shiftKey&&b===w&&(p.preventDefault(),n&&We(k,{select:!0})):b===y&&p.preventDefault()}},[n,o,m.paused]);return l.jsx($e.div,{tabIndex:-1,...c,ref:v,onKeyDown:C})});Ns.displayName=Lf;function If(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(We(o,{select:t}),document.activeElement!==n)return}function Nf(e){const t=As(e),n=Ts(t,e),o=Ts(t.reverse(),e);return[n,o]}function As(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ts(e,t){for(const n of e)if(!Af(n,{upTo:t}))return n}function Af(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 Tf(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Tf(e)&&t&&e.select()}}var js=jf();function jf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Os(e,t),e.unshift(t)},remove(t){var n;e=Os(e,t),(n=e[0])==null||n.resume()}}}function Os(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Of(e){return e.filter(t=>t.tagName!=="A")}var _f="Portal",_s=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);J(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?ut.createPortal(l.jsx($e.div,{...o,ref:t}),c):null});_s.displayName=_f;function $f(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var Gt=e=>{const{present:t,children:n}=e,o=Hf(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=V(o.ref,Vf(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};Gt.displayName="Presence";function Hf(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,d]=$f(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Yt(o.current);s.current=a==="mounted"?u:"none"},[a]),J(()=>{const u=o.current,f=r.current;if(f!==e){const v=s.current,m=Yt(u);e?d("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&v!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),J(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const p=Yt(o.current).includes(m.animationName);if(m.target===t&&p&&(d("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=m=>{m.target===t&&(s.current=Yt(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function Yt(e){return(e==null?void 0:e.animationName)||"none"}function Vf(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fo=0;function po(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$s()),document.body.insertAdjacentElement("beforeend",e[1]??$s()),fo++,()=>{fo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),fo--}},[])}function $s(){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 Le=function(){return Le=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Le.apply(this,arguments)};function Hs(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Df(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Xt="right-scroll-bar-position",qt="width-before-scroll-bar",Ff="with-scroll-bars-hidden",Rf="--removed-body-scroll-bar-size";function ho(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Zf(e,t){var n=te.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Wf=typeof window<"u"?i.useLayoutEffect:i.useEffect,Vs=new WeakMap;function zf(e,t){var n=Zf(null,function(o){return e.forEach(function(r){return ho(r,o)})});return Wf(function(){var o=Vs.get(n);if(o){var r=new Set(o),s=new Set(e),c=n.current;r.forEach(function(a){s.has(a)||ho(a,null)}),s.forEach(function(a){r.has(a)||ho(a,c)})}Vs.set(n,e)},[e]),n}function Bf(e){return e}function Uf(e,t){t===void 0&&(t=Bf);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var c=t(s,o);return n.push(c),function(){n=n.filter(function(a){return a!==c})}},assignSyncMedium:function(s){for(o=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var c=[];if(n.length){var a=n;n=[],a.forEach(s),c=n}var d=function(){var f=c;c=[],f.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){c.push(f),u()},filter:function(f){return c=c.filter(f),n}}}};return r}function Kf(e){e===void 0&&(e={});var t=Uf(null);return t.options=Le({async:!0,ssr:!1},e),t}var Ds=function(e){var t=e.sideCar,n=Hs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return i.createElement(o,Le({},n))};Ds.isSideCarExport=!0;function Gf(e,t){return e.useMedium(t),Ds}var Fs=Kf(),vo=function(){},Qt=i.forwardRef(function(e,t){var n=i.useRef(null),o=i.useState({onScrollCapture:vo,onWheelCapture:vo,onTouchMoveCapture:vo}),r=o[0],s=o[1],c=e.forwardProps,a=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,h=e.shards,v=e.sideCar,m=e.noIsolation,C=e.inert,p=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,y=e.gapMode,w=Hs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=v,M=zf([n,t]),P=Le(Le({},w),r);return i.createElement(i.Fragment,null,f&&i.createElement(k,{sideCar:Fs,removeScrollBar:u,shards:h,noIsolation:m,inert:C,setCallbacks:s,allowPinchZoom:!!p,lockRef:n,gapMode:y}),c?i.cloneElement(i.Children.only(a),Le(Le({},P),{ref:M})):i.createElement(b,Le({},P,{className:d,ref:M}),a))});Qt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Qt.classNames={fullWidth:qt,zeroRight:Xt};var Yf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Yf();return t&&e.setAttribute("nonce",t),e}function qf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Jf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xf())&&(qf(t,n),Qf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},e2=function(){var e=Jf();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rs=function(){var e=e2(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},t2={left:0,top:0,right:0,gap:0},mo=function(e){return parseInt(e||"",10)||0},n2=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[mo(n),mo(o),mo(r)]},o2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return t2;var t=n2(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},r2=Rs(),pt="data-scroll-locked",s2=function(e,t,n,o){var r=e.left,s=e.top,c=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2
+ .`.concat(Ff,` {
3
3
  overflow: hidden `).concat(o,`;
4
4
  padding-right: `).concat(a,"px ").concat(o,`;
5
5
  }
6
- body[`).concat(ot,`] {
6
+ body[`).concat(pt,`] {
7
7
  overflow: hidden `).concat(o,`;
8
8
  overscroll-behavior: contain;
9
9
  `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
@@ -16,80 +16,30 @@
16
16
  `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),`
17
17
  }
18
18
 
19
- .`).concat(Ft,` {
19
+ .`).concat(Xt,` {
20
20
  right: `).concat(a,"px ").concat(o,`;
21
21
  }
22
22
 
23
- .`).concat(Wt,` {
23
+ .`).concat(qt,` {
24
24
  margin-right: `).concat(a,"px ").concat(o,`;
25
25
  }
26
26
 
27
- .`).concat(Ft," .").concat(Ft,` {
27
+ .`).concat(Xt," .").concat(Xt,` {
28
28
  right: 0 `).concat(o,`;
29
29
  }
30
30
 
31
- .`).concat(Wt," .").concat(Wt,` {
31
+ .`).concat(qt," .").concat(qt,` {
32
32
  margin-right: 0 `).concat(o,`;
33
33
  }
34
34
 
35
- body[`).concat(ot,`] {
36
- `).concat(Af,": ").concat(a,`px;
35
+ body[`).concat(pt,`] {
36
+ `).concat(Rf,": ").concat(a,`px;
37
37
  }
38
- `)},gs=function(){var e=parseInt(document.body.getAttribute(ot)||"0",10);return isFinite(e)?e:0},Yf=function(){i.useEffect(function(){return document.body.setAttribute(ot,(gs()+1).toString()),function(){var e=gs()-1;e<=0?document.body.removeAttribute(ot):document.body.setAttribute(ot,e.toString())}},[])},Xf=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Yf();var s=i.useMemo(function(){return Vf(r)},[r]);return i.createElement(Kf,{styles:Gf(s,!t,r,n?"":"!important")})},Gn=!1;if(typeof window<"u")try{var Ut=Object.defineProperty({},"passive",{get:function(){return Gn=!0,!0}});window.addEventListener("test",Ut,Ut),window.removeEventListener("test",Ut,Ut)}catch{Gn=!1}var rt=Gn?{passive:!1}:!1,qf=function(e){return e.tagName==="TEXTAREA"},ws=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qf(e)&&n[t]==="visible")},Zf=function(e){return ws(e,"overflowY")},Qf=function(e){return ws(e,"overflowX")},bs=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=ys(e,o);if(r){var s=xs(e,o),c=s[1],a=s[2];if(c>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Jf=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},ep=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},ys=function(e,t){return e==="v"?Zf(t):Qf(t)},xs=function(e,t){return e==="v"?Jf(t):ep(t)},tp=function(e,t){return e==="h"&&t==="rtl"?-1:1},np=function(e,t,n,o,r){var s=tp(e,window.getComputedStyle(t).direction),c=s*o,a=n.target,u=t.contains(a),l=!1,d=c>0,p=0,m=0;do{var v=xs(e,a),w=v[0],h=v[1],g=v[2],b=h-g-s*w;(w||b)&&ys(e,a)&&(p+=b,m+=w),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(m)<1)&&(l=!0),l},Ht=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Es=function(e){return[e.deltaX,e.deltaY]},ks=function(e){return e&&"current"in e?e.current:e},op=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rp=function(e){return`
38
+ `)},Zs=function(){var e=parseInt(document.body.getAttribute(pt)||"0",10);return isFinite(e)?e:0},i2=function(){i.useEffect(function(){return document.body.setAttribute(pt,(Zs()+1).toString()),function(){var e=Zs()-1;e<=0?document.body.removeAttribute(pt):document.body.setAttribute(pt,e.toString())}},[])},a2=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;i2();var s=i.useMemo(function(){return o2(r)},[r]);return i.createElement(r2,{styles:s2(s,!t,r,n?"":"!important")})},go=!1;if(typeof window<"u")try{var Jt=Object.defineProperty({},"passive",{get:function(){return go=!0,!0}});window.addEventListener("test",Jt,Jt),window.removeEventListener("test",Jt,Jt)}catch{go=!1}var ht=go?{passive:!1}:!1,c2=function(e){return e.tagName==="TEXTAREA"},Ws=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!c2(e)&&n[t]==="visible")},l2=function(e){return Ws(e,"overflowY")},u2=function(e){return Ws(e,"overflowX")},zs=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Bs(e,o);if(r){var s=Us(e,o),c=s[1],a=s[2];if(c>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},d2=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},f2=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Bs=function(e,t){return e==="v"?l2(t):u2(t)},Us=function(e,t){return e==="v"?d2(t):f2(t)},p2=function(e,t){return e==="h"&&t==="rtl"?-1:1},h2=function(e,t,n,o,r){var s=p2(e,window.getComputedStyle(t).direction),c=s*o,a=n.target,d=t.contains(a),u=!1,f=c>0,h=0,v=0;do{var m=Us(e,a),C=m[0],p=m[1],g=m[2],b=p-g-s*C;(C||b)&&Bs(e,a)&&(h+=b,v+=C),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(f&&Math.abs(h)<1||!f&&Math.abs(v)<1)&&(u=!0),u},en=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ks=function(e){return[e.deltaX,e.deltaY]},Gs=function(e){return e&&"current"in e?e.current:e},v2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},m2=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},sp=0,st=[];function ip(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),r=i.useState(sp++)[0],s=i.useState(vs)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var h=Tf([e.lockRef.current],(e.shards||[]).map(ks),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=i.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!c.current.allowPinchZoom;var b=Ht(h),y=n.current,x="deltaX"in h?h.deltaX:y[0]-b[0],E="deltaY"in h?h.deltaY:y[1]-b[1],C,S=h.target,k=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in h&&k==="h"&&S.type==="range")return!1;var P=bs(k,S);if(!P)return!0;if(P?C=k:(C=k==="v"?"h":"v",P=bs(k,S)),!P)return!1;if(!o.current&&"changedTouches"in h&&(x||E)&&(o.current=C),!C)return!0;var N=o.current||C;return np(N,g,h,N==="h"?x:E)},[]),u=i.useCallback(function(h){var g=h;if(!(!st.length||st[st.length-1]!==s)){var b="deltaY"in g?Es(g):Ht(g),y=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&op(C.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var x=(c.current.shards||[]).map(ks).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=x.length>0?a(g,x[0]):!c.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),l=i.useCallback(function(h,g,b,y){var x={name:h,delta:g,target:b,should:y,shadowParent:ap(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),d=i.useCallback(function(h){n.current=Ht(h),o.current=void 0},[]),p=i.useCallback(function(h){l(h.type,Es(h),h.target,a(h,e.lockRef.current))},[]),m=i.useCallback(function(h){l(h.type,Ht(h),h.target,a(h,e.lockRef.current))},[]);i.useEffect(function(){return st.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",u,rt),document.addEventListener("touchmove",u,rt),document.addEventListener("touchstart",d,rt),function(){st=st.filter(function(h){return h!==s}),document.removeEventListener("wheel",u,rt),document.removeEventListener("touchmove",u,rt),document.removeEventListener("touchstart",d,rt)}},[]);var v=e.removeScrollBar,w=e.inert;return i.createElement(i.Fragment,null,w?i.createElement(s,{styles:rp(r)}):null,v?i.createElement(Xf,{gapMode:e.gapMode}):null)}function ap(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cp=Lf(ms,ip);var zt=i.forwardRef(function(e,t){return i.createElement(Bt,ke({},e,{ref:t,sideCar:cp}))});zt.classNames=Bt.classNames;var lp=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},it=new WeakMap,Vt=new WeakMap,Kt={},Yn=0,Cs=function(e){return e&&(e.host||Cs(e.parentNode))},up=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Cs(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dp=function(e,t,n,o){var r=up(t,Array.isArray(e)?e:[e]);Kt[n]||(Kt[n]=new WeakMap);var s=Kt[n],c=[],a=new Set,u=new Set(r),l=function(p){!p||a.has(p)||(a.add(p),l(p.parentNode))};r.forEach(l);var d=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(m){if(a.has(m))d(m);else try{var v=m.getAttribute(o),w=v!==null&&v!=="false",h=(it.get(m)||0)+1,g=(s.get(m)||0)+1;it.set(m,h),s.set(m,g),c.push(m),h===1&&w&&Vt.set(m,!0),g===1&&m.setAttribute(n,"true"),w||m.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",m,b)}})};return d(t),a.clear(),Yn++,function(){c.forEach(function(p){var m=it.get(p)-1,v=s.get(p)-1;it.set(p,m),s.set(p,v),m||(Vt.has(p)||p.removeAttribute(o),Vt.delete(p)),v||p.removeAttribute(n)}),Yn--,Yn||(it=new WeakMap,it=new WeakMap,Vt=new WeakMap,Kt={})}},Xn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=lp(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),dp(o,r,n,"aria-hidden")):function(){return null}},qn="Dialog",[Ss,qb]=ce(qn),[fp,be]=Ss(qn),Ps=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:c=!0}=e,a=i.useRef(null),u=i.useRef(null),[l=!1,d]=Me({prop:o,defaultProp:r,onChange:s});return f.jsx(fp,{scope:t,triggerRef:a,contentRef:u,contentId:ve(),titleId:ve(),descriptionId:ve(),open:l,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(p=>!p),[d]),modal:c,children:n})};Ps.displayName=qn;var Ts="DialogTrigger",Ns=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=be(Ts,n),s=L(t,r.triggerRef);return f.jsx(Oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Jn(r.open),...o,ref:s,onClick:T(e.onClick,r.onOpenToggle)})});Ns.displayName=Ts;var Zn="DialogPortal",[pp,As]=Ss(Zn,{forceMount:void 0}),js=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=be(Zn,t);return f.jsx(pp,{scope:t,forceMount:n,children:i.Children.map(o,c=>f.jsx(Rt,{present:n||s.open,children:f.jsx(us,{asChild:!0,container:r,children:c})}))})};js.displayName=Zn;var Gt="DialogOverlay",Ms=i.forwardRef((e,t)=>{const n=As(Gt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=be(Gt,e.__scopeDialog);return s.modal?f.jsx(Rt,{present:o||s.open,children:f.jsx(hp,{...r,ref:t})}):null});Ms.displayName=Gt;var hp=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=be(Gt,n);return f.jsx(zt,{as:ne,allowPinchZoom:!0,shards:[r.contentRef],children:f.jsx(Oe.div,{"data-state":Jn(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Xe="DialogContent",Os=i.forwardRef((e,t)=>{const n=As(Xe,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=be(Xe,e.__scopeDialog);return f.jsx(Rt,{present:o||s.open,children:s.modal?f.jsx(mp,{...r,ref:t}):f.jsx(vp,{...r,ref:t})})});Os.displayName=Xe;var mp=i.forwardRef((e,t)=>{const n=be(Xe,e.__scopeDialog),o=i.useRef(null),r=L(t,n.contentRef,o);return i.useEffect(()=>{const s=o.current;if(s)return Xn(s)},[]),f.jsx(Is,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:T(e.onCloseAutoFocus,s=>{var c;s.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:T(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&s.preventDefault()}),onFocusOutside:T(e.onFocusOutside,s=>s.preventDefault())})}),vp=i.forwardRef((e,t)=>{const n=be(Xe,e.__scopeDialog),o=i.useRef(!1),r=i.useRef(!1);return f.jsx(Is,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,a;(c=e.onCloseAutoFocus)==null||c.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Is=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...c}=e,a=be(Xe,n),u=i.useRef(null),l=L(t,u);return Hn(),f.jsxs(f.Fragment,{children:[f.jsx(ss,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:f.jsx(ts,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Jn(a.open),...c,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(gp,{titleId:a.titleId}),f.jsx(bp,{contentRef:u,descriptionId:a.descriptionId})]})]})}),Qn="DialogTitle",Ds=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=be(Qn,n);return f.jsx(Oe.h2,{id:r.titleId,...o,ref:t})});Ds.displayName=Qn;var _s="DialogDescription",Ls=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=be(_s,n);return f.jsx(Oe.p,{id:r.descriptionId,...o,ref:t})});Ls.displayName=_s;var Rs="DialogClose",$s=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=be(Rs,n);return f.jsx(Oe.button,{type:"button",...o,ref:t,onClick:T(e.onClick,()=>r.onOpenChange(!1))})});$s.displayName=Rs;function Jn(e){return e?"open":"closed"}var Fs="DialogTitleWarning",[Zb,Ws]=ud(Fs,{contentName:Xe,titleName:Qn,docsSlug:"dialog"}),gp=({titleId:e})=>{const t=Ws(Fs),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},g2=0,vt=[];function C2(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),r=i.useState(g2++)[0],s=i.useState(Rs)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=Df([e.lockRef.current],(e.shards||[]).map(Gs),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=i.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!c.current.allowPinchZoom;var b=en(p),y=n.current,w="deltaX"in p?p.deltaX:y[0]-b[0],k="deltaY"in p?p.deltaY:y[1]-b[1],M,P=p.target,E=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in p&&E==="h"&&P.type==="range")return!1;var L=zs(E,P);if(!L)return!0;if(L?M=E:(M=E==="v"?"h":"v",L=zs(E,P)),!L)return!1;if(!o.current&&"changedTouches"in p&&(w||k)&&(o.current=M),!M)return!0;var N=o.current||M;return h2(N,g,p,N==="h"?w:k)},[]),d=i.useCallback(function(p){var g=p;if(!(!vt.length||vt[vt.length-1]!==s)){var b="deltaY"in g?Ks(g):en(g),y=t.current.filter(function(M){return M.name===g.type&&(M.target===g.target||g.target===M.shadowParent)&&v2(M.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Gs).filter(Boolean).filter(function(M){return M.contains(g.target)}),k=w.length>0?a(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),u=i.useCallback(function(p,g,b,y){var w={name:p,delta:g,target:b,should:y,shadowParent:b2(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),f=i.useCallback(function(p){n.current=en(p),o.current=void 0},[]),h=i.useCallback(function(p){u(p.type,Ks(p),p.target,a(p,e.lockRef.current))},[]),v=i.useCallback(function(p){u(p.type,en(p),p.target,a(p,e.lockRef.current))},[]);i.useEffect(function(){return vt.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:v}),document.addEventListener("wheel",d,ht),document.addEventListener("touchmove",d,ht),document.addEventListener("touchstart",f,ht),function(){vt=vt.filter(function(p){return p!==s}),document.removeEventListener("wheel",d,ht),document.removeEventListener("touchmove",d,ht),document.removeEventListener("touchstart",f,ht)}},[]);var m=e.removeScrollBar,C=e.inert;return i.createElement(i.Fragment,null,C?i.createElement(s,{styles:m2(r)}):null,m?i.createElement(a2,{gapMode:e.gapMode}):null)}function b2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const y2=Gf(Fs,C2);var Nt=i.forwardRef(function(e,t){return i.createElement(Qt,Le({},e,{ref:t,sideCar:y2}))});Nt.classNames=Qt.classNames;var w2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mt=new WeakMap,tn=new WeakMap,nn={},Co=0,Ys=function(e){return e&&(e.host||Ys(e.parentNode))},k2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Ys(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},E2=function(e,t,n,o){var r=k2(t,Array.isArray(e)?e:[e]);nn[n]||(nn[n]=new WeakMap);var s=nn[n],c=[],a=new Set,d=new Set(r),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};r.forEach(u);var f=function(h){!h||d.has(h)||Array.prototype.forEach.call(h.children,function(v){if(a.has(v))f(v);else try{var m=v.getAttribute(o),C=m!==null&&m!=="false",p=(mt.get(v)||0)+1,g=(s.get(v)||0)+1;mt.set(v,p),s.set(v,g),c.push(v),p===1&&C&&tn.set(v,!0),g===1&&v.setAttribute(n,"true"),C||v.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return f(t),a.clear(),Co++,function(){c.forEach(function(h){var v=mt.get(h)-1,m=s.get(h)-1;mt.set(h,v),s.set(h,m),v||(tn.has(h)||h.removeAttribute(o),tn.delete(h)),m||h.removeAttribute(n)}),Co--,Co||(mt=new WeakMap,mt=new WeakMap,tn=new WeakMap,nn={})}},on=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=w2(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),E2(o,r,n,"aria-hidden")):function(){return null}},bo="Dialog",[Xs,Pv]=de(bo),[S2,ye]=Xs(bo),qs=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:c=!0}=e,a=i.useRef(null),d=i.useRef(null),[u=!1,f]=_e({prop:o,defaultProp:r,onChange:s});return l.jsx(S2,{scope:t,triggerRef:a,contentRef:d,contentId:ge(),titleId:ge(),descriptionId:ge(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(h=>!h),[f]),modal:c,children:n})};qs.displayName=bo;var Qs="DialogTrigger",Js=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=ye(Qs,n),s=V(t,r.triggerRef);return l.jsx($e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":ko(r.open),...o,ref:s,onClick:I(e.onClick,r.onOpenToggle)})});Js.displayName=Qs;var yo="DialogPortal",[M2,ei]=Xs(yo,{forceMount:void 0}),ti=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=ye(yo,t);return l.jsx(M2,{scope:t,forceMount:n,children:i.Children.map(o,c=>l.jsx(Gt,{present:n||s.open,children:l.jsx(_s,{asChild:!0,container:r,children:c})}))})};ti.displayName=yo;var rn="DialogOverlay",ni=i.forwardRef((e,t)=>{const n=ei(rn,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=ye(rn,e.__scopeDialog);return s.modal?l.jsx(Gt,{present:o||s.open,children:l.jsx(P2,{...r,ref:t})}):null});ni.displayName=rn;var P2=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=ye(rn,n);return l.jsx(Nt,{as:re,allowPinchZoom:!0,shards:[r.contentRef],children:l.jsx($e.div,{"data-state":ko(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),rt="DialogContent",oi=i.forwardRef((e,t)=>{const n=ei(rt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=ye(rt,e.__scopeDialog);return l.jsx(Gt,{present:o||s.open,children:s.modal?l.jsx(x2,{...r,ref:t}):l.jsx(L2,{...r,ref:t})})});oi.displayName=rt;var x2=i.forwardRef((e,t)=>{const n=ye(rt,e.__scopeDialog),o=i.useRef(null),r=V(t,n.contentRef,o);return i.useEffect(()=>{const s=o.current;if(s)return on(s)},[]),l.jsx(ri,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:I(e.onCloseAutoFocus,s=>{var c;s.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:I(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&s.preventDefault()}),onFocusOutside:I(e.onFocusOutside,s=>s.preventDefault())})}),L2=i.forwardRef((e,t)=>{const n=ye(rt,e.__scopeDialog),o=i.useRef(!1),r=i.useRef(!1);return l.jsx(ri,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,a;(c=e.onCloseAutoFocus)==null||c.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),ri=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...c}=e,a=ye(rt,n),d=i.useRef(null),u=V(t,d);return po(),l.jsxs(l.Fragment,{children:[l.jsx(Ns,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:l.jsx(Ps,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ko(a.open),...c,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(I2,{titleId:a.titleId}),l.jsx(A2,{contentRef:d,descriptionId:a.descriptionId})]})]})}),wo="DialogTitle",si=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=ye(wo,n);return l.jsx($e.h2,{id:r.titleId,...o,ref:t})});si.displayName=wo;var ii="DialogDescription",ai=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=ye(ii,n);return l.jsx($e.p,{id:r.descriptionId,...o,ref:t})});ai.displayName=ii;var ci="DialogClose",li=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=ye(ci,n);return l.jsx($e.button,{type:"button",...o,ref:t,onClick:I(e.onClick,()=>r.onOpenChange(!1))})});li.displayName=ci;function ko(e){return e?"open":"closed"}var ui="DialogTitleWarning",[xv,di]=gd(ui,{contentName:rt,titleName:wo,docsSlug:"dialog"}),I2=({titleId:e})=>{const t=di(ui),n=`\`${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 i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wp="DialogDescriptionWarning",bp=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ws(wp).contentName}}.`;return i.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},yp=Ps,xp=Ns,Ep=js,Bs=Ms,Us=Os,Hs=Ds,zs=Ls,Vs=$s;/**
46
- * @license lucide-react v0.453.0 - ISC
47
- *
48
- * This source code is licensed under the ISC license.
49
- * See the LICENSE file in the root directory of this source tree.
50
- */const kp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ks=(...e)=>e.filter((t,n,o)=>!!t&&o.indexOf(t)===n).join(" ");/**
51
- * @license lucide-react v0.453.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */var Cp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
56
- * @license lucide-react v0.453.0 - ISC
57
- *
58
- * This source code is licensed under the ISC license.
59
- * See the LICENSE file in the root directory of this source tree.
60
- */const Sp=J.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:c,...a},u)=>J.createElement("svg",{ref:u,...Cp,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:Ks("lucide",r),...a},[...c.map(([l,d])=>J.createElement(l,d)),...Array.isArray(s)?s:[s]]));/**
61
- * @license lucide-react v0.453.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const at=(e,t)=>{const n=J.forwardRef(({className:o,...r},s)=>J.createElement(Sp,{ref:s,iconNode:t,className:Ks(`lucide-${kp(e)}`,o),...r}));return n.displayName=`${e}`,n};/**
66
- * @license lucide-react v0.453.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */const Gs=at("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
71
- * @license lucide-react v0.453.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const Pp=at("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
76
- * @license lucide-react v0.453.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const Ys=at("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
81
- * @license lucide-react v0.453.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const Xs=at("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
86
- * @license lucide-react v0.453.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const Tp=at("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
91
- * @license lucide-react v0.453.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const qs=at("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Np=yp,Ap=xp,Zs=Ep,jp=Vs,eo=i.forwardRef(({className:e,...t},n)=>f.jsx(Bs,{ref:n,className:R(["ksjsui-fixed ksjsui-inset-0 ksjsui-z-50 ksjsui-bg-black/80","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0"],e),...t}));eo.displayName=Bs.displayName;const Qs=i.forwardRef(({className:e,children:t,...n},o)=>f.jsxs(Zs,{children:[f.jsx(eo,{}),f.jsxs(Us,{ref:o,className:R(["ksjsui-fixed ksjsui-left-[50%] ksjsui-top-[50%] ksjsui-z-50 ksjsui-grid ksjsui-w-full ksjsui-max-w-lg ksjsui-translate-x-[-50%] ksjsui-translate-y-[-50%] ksjsui-gap-4 ksjsui-border ksjsui-bg-background ksjsui-p-6 ksjsui-shadow-lg ksjsui-duration-200","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0 data-[state=open]:ksjsui-zoom-in-95 data-[state=open]:ksjsui-slide-in-from-left-1/2 data-[state=open]:ksjsui-slide-in-from-top-[48%]","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95 data-[state=closed]:ksjsui-slide-out-to-left-1/2 data-[state=closed]:ksjsui-slide-out-to-top-[48%]","sm:ksjsui-rounded-lg"],e),...n,children:[t,f.jsxs(Vs,{className:R(["ksjsui-absolute ksjsui-end-4 ksjsui-top-4 ksjsui-rounded-sm ksjsui-opacity-70 ksjsui-ring-offset-background ksjsui-transition-opacity hover:ksjsui-opacity-100","focus:ksjsui-outline-none focus:ksjsui-ring-2 focus:ksjsui-ring-ring focus:ksjsui-ring-offset-2","disabled:ksjsui-pointer-events-none"]),children:[f.jsx(qs,{className:"ksjsui-size-4"}),f.jsx("span",{className:"ksjsui-sr-only",children:"Close"})]})]})]}));Qs.displayName=Us.displayName;const Js=({className:e,...t})=>f.jsx("div",{className:R("ksjsui-flex ksjsui-flex-col ksjsui-space-y-1.5",e),...t});Js.displayName="DialogHeader";const ei=({className:e,...t})=>f.jsx("div",{className:R(["ksjsui-flex ksjsui-flex-col-reverse","sm:ksjsui-flex-row sm:ksjsui-justify-end sm:ksjsui-space-x-2"],e),...t});ei.displayName="DialogFooter";const ti=i.forwardRef(({className:e,...t},n)=>f.jsx(Hs,{ref:n,className:R("ksjsui-text-lg ksjsui-font-semibold ksjsui-leading-none ksjsui-tracking-tight",e),...t}));ti.displayName=Hs.displayName;const ni=i.forwardRef(({className:e,...t},n)=>f.jsx(zs,{ref:n,className:R("ksjsui-text-sm",e),...t}));ni.displayName=zs.displayName;var Mp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],de=Mp.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?ne:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oi(e,t){e&&Ae.flushSync(()=>e.dispatchEvent(t))}function ri(e){const t=e+"CollectionProvider",[n,o]=ce(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=v=>{const{scope:w,children:h}=v,g=J.useRef(null),b=J.useRef(new Map).current;return f.jsx(r,{scope:w,itemMap:b,collectionRef:g,children:h})};c.displayName=t;const a=e+"CollectionSlot",u=J.forwardRef((v,w)=>{const{scope:h,children:g}=v,b=s(a,h),y=L(w,b.collectionRef);return f.jsx(ne,{ref:y,children:g})});u.displayName=a;const l=e+"CollectionItemSlot",d="data-radix-collection-item",p=J.forwardRef((v,w)=>{const{scope:h,children:g,...b}=v,y=J.useRef(null),x=L(w,y),E=s(l,h);return J.useEffect(()=>(E.itemMap.set(y,{ref:y,...b}),()=>void E.itemMap.delete(y))),f.jsx(ne,{[d]:"",ref:x,children:g})});p.displayName=l;function m(v){const w=s(e+"CollectionConsumer",v);return J.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const b=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((E,C)=>b.indexOf(E.ref.current)-b.indexOf(C.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:c,Slot:u,ItemSlot:p},m,o]}var si=i.createContext(void 0),Op=e=>{const{dir:t,children:n}=e;return f.jsx(si.Provider,{value:t,children:n})};function Yt(e){const t=i.useContext(si);return e||t||"ltr"}var Ip="DismissableLayer",to="dismissableLayer.update",Dp="dismissableLayer.pointerDownOutside",_p="dismissableLayer.focusOutside",ii,ai=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ci=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...u}=e,l=i.useContext(ai),[d,p]=i.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),w=L(t,k=>p(k)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(g),y=d?h.indexOf(d):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,C=$p(k=>{const P=k.target,N=[...l.branches].some(M=>M.contains(P));!E||N||(r==null||r(k),c==null||c(k),k.defaultPrevented||a==null||a())},m),S=Fp(k=>{const P=k.target;[...l.branches].some(M=>M.contains(P))||(s==null||s(k),c==null||c(k),k.defaultPrevented||a==null||a())},m);return bt(k=>{y===l.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},m),i.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ii=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),li(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ii)}},[d,m,n,l]),i.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),li())},[d,l]),i.useEffect(()=>{const k=()=>v({});return document.addEventListener(to,k),()=>document.removeEventListener(to,k)},[]),f.jsx(de.div,{...u,ref:w,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,S.onFocusCapture),onBlurCapture:T(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,C.onPointerDownCapture)})});ci.displayName=Ip;var Lp="DismissableLayerBranch",Rp=i.forwardRef((e,t)=>{const n=i.useContext(ai),o=i.useRef(null),r=L(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(de.div,{...e,ref:r})});Rp.displayName=Lp;function $p(e,t=globalThis==null?void 0:globalThis.document){const n=V(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let u=function(){ui(Dp,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Fp(e,t=globalThis==null?void 0:globalThis.document){const n=V(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&ui(_p,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function li(){const e=new CustomEvent(to);document.dispatchEvent(e)}function ui(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?oi(r,s):r.dispatchEvent(s)}var no="focusScope.autoFocusOnMount",oo="focusScope.autoFocusOnUnmount",di={bubbles:!1,cancelable:!0},Wp="FocusScope",fi=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,u]=i.useState(null),l=V(r),d=V(s),p=i.useRef(null),m=L(t,h=>u(h)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let h=function(x){if(v.paused||!a)return;const E=x.target;a.contains(E)?p.current=E:Be(p.current,{select:!0})},g=function(x){if(v.paused||!a)return;const E=x.relatedTarget;E!==null&&(a.contains(E)||Be(p.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&Be(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),y.disconnect()}}},[o,a,v.paused]),i.useEffect(()=>{if(a){mi.add(v);const h=document.activeElement;if(!a.contains(h)){const b=new CustomEvent(no,di);a.addEventListener(no,l),a.dispatchEvent(b),b.defaultPrevented||(Bp(Kp(pi(a)),{select:!0}),document.activeElement===h&&Be(a))}return()=>{a.removeEventListener(no,l),setTimeout(()=>{const b=new CustomEvent(oo,di);a.addEventListener(oo,d),a.dispatchEvent(b),b.defaultPrevented||Be(h??document.body,{select:!0}),a.removeEventListener(oo,d),mi.remove(v)},0)}}},[a,l,d,v]);const w=i.useCallback(h=>{if(!n&&!o||v.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(g&&b){const y=h.currentTarget,[x,E]=Up(y);x&&E?!h.shiftKey&&b===E?(h.preventDefault(),n&&Be(x,{select:!0})):h.shiftKey&&b===x&&(h.preventDefault(),n&&Be(E,{select:!0})):b===y&&h.preventDefault()}},[n,o,v.paused]);return f.jsx(de.div,{tabIndex:-1,...c,ref:m,onKeyDown:w})});fi.displayName=Wp;function Bp(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Be(o,{select:t}),document.activeElement!==n)return}function Up(e){const t=pi(e),n=hi(t,e),o=hi(t.reverse(),e);return[n,o]}function pi(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hi(e,t){for(const n of e)if(!Hp(n,{upTo:t}))return n}function Hp(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 zp(e){return e instanceof HTMLInputElement&&"select"in e}function Be(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&zp(e)&&t&&e.select()}}var mi=Vp();function Vp(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=vi(e,t),e.unshift(t)},remove(t){var n;e=vi(e,t),(n=e[0])==null||n.resume()}}}function vi(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Kp(e){return e.filter(t=>t.tagName!=="A")}const Gp=["top","right","bottom","left"],Ue=Math.min,pe=Math.max,Xt=Math.round,qt=Math.floor,Ce=e=>({x:e,y:e}),Yp={left:"right",right:"left",bottom:"top",top:"bottom"},Xp={start:"end",end:"start"};function ro(e,t,n){return pe(e,Ue(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function De(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function so(e){return e==="x"?"y":"x"}function io(e){return e==="y"?"height":"width"}function He(e){return["top","bottom"].includes(De(e))?"y":"x"}function ao(e){return so(He(e))}function qp(e,t,n){n===void 0&&(n=!1);const o=ct(e),r=ao(e),s=io(r);let c=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=Zt(c)),[c,Zt(c)]}function Zp(e){const t=Zt(e);return[co(e),t,co(t)]}function co(e){return e.replace(/start|end/g,t=>Xp[t])}function Qp(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:c;default:return[]}}function Jp(e,t,n,o){const r=ct(e);let s=Qp(De(e),n==="start",o);return r&&(s=s.map(c=>c+"-"+r),t&&(s=s.concat(s.map(co)))),s}function Zt(e){return e.replace(/left|right|bottom|top/g,t=>Yp[t])}function eh(e){return{top:0,right:0,bottom:0,left:0,...e}}function gi(e){return typeof e!="number"?eh(e):{top:e,right:e,bottom:e,left:e}}function Qt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function wi(e,t,n){let{reference:o,floating:r}=e;const s=He(t),c=ao(t),a=io(c),u=De(t),l=s==="y",d=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,m=o[a]/2-r[a]/2;let v;switch(u){case"top":v={x:d,y:o.y-r.height};break;case"bottom":v={x:d,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:p};break;case"left":v={x:o.x-r.width,y:p};break;default:v={x:o.x,y:o.y}}switch(ct(t)){case"start":v[c]-=m*(n&&l?-1:1);break;case"end":v[c]+=m*(n&&l?-1:1);break}return v}const th=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:c}=n,a=s.filter(Boolean),u=await(c.isRTL==null?void 0:c.isRTL(t));let l=await c.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:p}=wi(l,o,u),m=o,v={},w=0;for(let h=0;h<a.length;h++){const{name:g,fn:b}=a[h],{x:y,y:x,data:E,reset:C}=await b({x:d,y:p,initialPlacement:o,placement:m,strategy:r,middlewareData:v,rects:l,platform:c,elements:{reference:e,floating:t}});d=y??d,p=x??p,v={...v,[g]:{...v[g],...E}},C&&w<=50&&(w++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(l=C.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:r}):C.rects),{x:d,y:p}=wi(l,m,u)),h=-1)}return{x:d,y:p,placement:m,strategy:r,middlewareData:v}};async function yt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:c,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:v=0}=Ie(t,e),w=gi(v),g=a[m?p==="floating"?"reference":"floating":p],b=Qt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:u})),y=p==="floating"?{x:o,y:r,width:c.floating.width,height:c.floating.height}:c.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},C=Qt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:u}):y);return{top:(b.top-C.top+w.top)/E.y,bottom:(C.bottom-b.bottom+w.bottom)/E.y,left:(b.left-C.left+w.left)/E.x,right:(C.right-b.right+w.right)/E.x}}const nh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:c,elements:a,middlewareData:u}=t,{element:l,padding:d=0}=Ie(e,t)||{};if(l==null)return{};const p=gi(d),m={x:n,y:o},v=ao(r),w=io(v),h=await c.getDimensions(l),g=v==="y",b=g?"top":"left",y=g?"bottom":"right",x=g?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[v]-m[v]-s.floating[w],C=m[v]-s.reference[v],S=await(c.getOffsetParent==null?void 0:c.getOffsetParent(l));let k=S?S[x]:0;(!k||!await(c.isElement==null?void 0:c.isElement(S)))&&(k=a.floating[x]||s.floating[w]);const P=E/2-C/2,N=k/2-h[w]/2-1,M=Ue(p[b],N),$=Ue(p[y],N),I=M,W=k-h[w]-$,A=k/2-h[w]/2+P,U=ro(I,A,W),_=!u.arrow&&ct(r)!=null&&A!==U&&s.reference[w]/2-(A<I?M:$)-h[w]/2<0,B=_?A<I?A-I:A-W:0;return{[v]:m[v]+B,data:{[v]:U,centerOffset:A-U-B,..._&&{alignmentOffset:B}},reset:_}}}),oh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:c,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:h=!0,...g}=Ie(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=De(r),y=He(a),x=De(a)===a,E=await(u.isRTL==null?void 0:u.isRTL(l.floating)),C=m||(x||!h?[Zt(a)]:Zp(a)),S=w!=="none";!m&&S&&C.push(...Jp(a,h,w,E));const k=[a,...C],P=await yt(t,g),N=[];let M=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&N.push(P[b]),p){const A=qp(r,c,E);N.push(P[A[0]],P[A[1]])}if(M=[...M,{placement:r,overflows:N}],!N.every(A=>A<=0)){var $,I;const A=((($=s.flip)==null?void 0:$.index)||0)+1,U=k[A];if(U)return{data:{index:A,overflows:M},reset:{placement:U}};let _=(I=M.filter(B=>B.overflows[0]<=0).sort((B,O)=>B.overflows[1]-O.overflows[1])[0])==null?void 0:I.placement;if(!_)switch(v){case"bestFit":{var W;const B=(W=M.filter(O=>{if(S){const j=He(O.placement);return j===y||j==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(j=>j>0).reduce((j,K)=>j+K,0)]).sort((O,j)=>O[1]-j[1])[0])==null?void 0:W[0];B&&(_=B);break}case"initialPlacement":_=a;break}if(r!==_)return{reset:{placement:_}}}return{}}}};function bi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yi(e){return Gp.some(t=>e[t]>=0)}const rh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Ie(e,t);switch(o){case"referenceHidden":{const s=await yt(t,{...r,elementContext:"reference"}),c=bi(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:yi(c)}}}case"escaped":{const s=await yt(t,{...r,altBoundary:!0}),c=bi(s,n.floating);return{data:{escapedOffsets:c,escaped:yi(c)}}}default:return{}}}}};async function sh(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),c=De(n),a=ct(n),u=He(n)==="y",l=["left","top"].includes(c)?-1:1,d=s&&u?-1:1,p=Ie(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(v=a==="end"?w*-1:w),u?{x:v*d,y:m*l}:{x:m*l,y:v*d}}const ih=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:c,middlewareData:a}=t,u=await sh(t,e);return c===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:c}}}}},ah=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:a={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...u}=Ie(e,t),l={x:n,y:o},d=await yt(t,u),p=He(De(r)),m=so(p);let v=l[m],w=l[p];if(s){const g=m==="y"?"top":"left",b=m==="y"?"bottom":"right",y=v+d[g],x=v-d[b];v=ro(y,v,x)}if(c){const g=p==="y"?"top":"left",b=p==="y"?"bottom":"right",y=w+d[g],x=w-d[b];w=ro(y,w,x)}const h=a.fn({...t,[m]:v,[p]:w});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:s,[p]:c}}}}}},ch=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:c}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=Ie(e,t),d={x:n,y:o},p=He(r),m=so(p);let v=d[m],w=d[p];const h=Ie(a,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const x=m==="y"?"height":"width",E=s.reference[m]-s.floating[x]+g.mainAxis,C=s.reference[m]+s.reference[x]-g.mainAxis;v<E?v=E:v>C&&(v=C)}if(l){var b,y;const x=m==="y"?"width":"height",E=["top","left"].includes(De(r)),C=s.reference[p]-s.floating[x]+(E&&((b=c.offset)==null?void 0:b[p])||0)+(E?0:g.crossAxis),S=s.reference[p]+s.reference[x]+(E?0:((y=c.offset)==null?void 0:y[p])||0)-(E?g.crossAxis:0);w<C?w=C:w>S&&(w=S)}return{[m]:v,[p]:w}}}},lh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:c,elements:a}=t,{apply:u=()=>{},...l}=Ie(e,t),d=await yt(t,l),p=De(r),m=ct(r),v=He(r)==="y",{width:w,height:h}=s.floating;let g,b;p==="top"||p==="bottom"?(g=p,b=m===(await(c.isRTL==null?void 0:c.isRTL(a.floating))?"start":"end")?"left":"right"):(b=p,g=m==="end"?"top":"bottom");const y=h-d.top-d.bottom,x=w-d.left-d.right,E=Ue(h-d[g],y),C=Ue(w-d[b],x),S=!t.middlewareData.shift;let k=E,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(k=y),S&&!m){const M=pe(d.left,0),$=pe(d.right,0),I=pe(d.top,0),W=pe(d.bottom,0);v?P=w-2*(M!==0||$!==0?M+$:pe(d.left,d.right)):k=h-2*(I!==0||W!==0?I+W:pe(d.top,d.bottom))}await u({...t,availableWidth:P,availableHeight:k});const N=await c.getDimensions(a.floating);return w!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function Jt(){return typeof window<"u"}function lt(e){return xi(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(xi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xi(e){return Jt()?e instanceof Node||e instanceof he(e).Node:!1}function ye(e){return Jt()?e instanceof Element||e instanceof he(e).Element:!1}function Pe(e){return Jt()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function Ei(e){return!Jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}function xt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function uh(e){return["table","td","th"].includes(lt(e))}function en(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function lo(e){const t=uo(),n=ye(e)?xe(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function dh(e){let t=ze(e);for(;Pe(t)&&!ut(t);){if(lo(t))return t;if(en(t))return null;t=ze(t)}return null}function uo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ut(e){return["html","body","#document"].includes(lt(e))}function xe(e){return he(e).getComputedStyle(e)}function tn(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ze(e){if(lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ei(e)&&e.host||Se(e);return Ei(t)?t.host:t}function ki(e){const t=ze(e);return ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pe(t)&&xt(t)?t:ki(t)}function Et(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ki(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),c=he(r);if(s){const a=fo(c);return t.concat(c,c.visualViewport||[],xt(r)?r:[],a&&n?Et(a):[])}return t.concat(r,Et(r,[],n))}function fo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ci(e){const t=xe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Pe(e),s=r?e.offsetWidth:n,c=r?e.offsetHeight:o,a=Xt(n)!==s||Xt(o)!==c;return a&&(n=s,o=c),{width:n,height:o,$:a}}function po(e){return ye(e)?e:e.contextElement}function dt(e){const t=po(e);if(!Pe(t))return Ce(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Ci(t);let c=(s?Xt(n.width):n.width)/o,a=(s?Xt(n.height):n.height)/r;return(!c||!Number.isFinite(c))&&(c=1),(!a||!Number.isFinite(a))&&(a=1),{x:c,y:a}}const fh=Ce(0);function Si(e){const t=he(e);return!uo()||!t.visualViewport?fh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ph(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==he(e)?!1:t}function qe(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=po(e);let c=Ce(1);t&&(o?ye(o)&&(c=dt(o)):c=dt(e));const a=ph(s,n,o)?Si(s):Ce(0);let u=(r.left+a.x)/c.x,l=(r.top+a.y)/c.y,d=r.width/c.x,p=r.height/c.y;if(s){const m=he(s),v=o&&ye(o)?he(o):o;let w=m,h=fo(w);for(;h&&o&&v!==w;){const g=dt(h),b=h.getBoundingClientRect(),y=xe(h),x=b.left+(h.clientLeft+parseFloat(y.paddingLeft))*g.x,E=b.top+(h.clientTop+parseFloat(y.paddingTop))*g.y;u*=g.x,l*=g.y,d*=g.x,p*=g.y,u+=x,l+=E,w=he(h),h=fo(w)}}return Qt({width:d,height:p,x:u,y:l})}function ho(e,t){const n=tn(e).scrollLeft;return t?t.left+n:qe(Se(e)).left+n}function Pi(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:ho(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function hh(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",c=Se(o),a=t?en(t.floating):!1;if(o===c||a&&s)return n;let u={scrollLeft:0,scrollTop:0},l=Ce(1);const d=Ce(0),p=Pe(o);if((p||!p&&!s)&&((lt(o)!=="body"||xt(c))&&(u=tn(o)),Pe(o))){const v=qe(o);l=dt(o),d.x=v.x+o.clientLeft,d.y=v.y+o.clientTop}const m=c&&!p&&!s?Pi(c,u,!0):Ce(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x+m.x,y:n.y*l.y-u.scrollTop*l.y+d.y+m.y}}function mh(e){return Array.from(e.getClientRects())}function vh(e){const t=Se(e),n=tn(e),o=e.ownerDocument.body,r=pe(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=pe(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+ho(e);const a=-n.scrollTop;return xe(o).direction==="rtl"&&(c+=pe(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:c,y:a}}function gh(e,t){const n=he(e),o=Se(e),r=n.visualViewport;let s=o.clientWidth,c=o.clientHeight,a=0,u=0;if(r){s=r.width,c=r.height;const l=uo();(!l||l&&t==="fixed")&&(a=r.offsetLeft,u=r.offsetTop)}return{width:s,height:c,x:a,y:u}}function wh(e,t){const n=qe(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Pe(e)?dt(e):Ce(1),c=e.clientWidth*s.x,a=e.clientHeight*s.y,u=r*s.x,l=o*s.y;return{width:c,height:a,x:u,y:l}}function Ti(e,t,n){let o;if(t==="viewport")o=gh(e,n);else if(t==="document")o=vh(Se(e));else if(ye(t))o=wh(t,n);else{const r=Si(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Qt(o)}function Ni(e,t){const n=ze(e);return n===t||!ye(n)||ut(n)?!1:xe(n).position==="fixed"||Ni(n,t)}function bh(e,t){const n=t.get(e);if(n)return n;let o=Et(e,[],!1).filter(a=>ye(a)&&lt(a)!=="body"),r=null;const s=xe(e).position==="fixed";let c=s?ze(e):e;for(;ye(c)&&!ut(c);){const a=xe(c),u=lo(c);!u&&a.position==="fixed"&&(r=null),(s?!u&&!r:!u&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||xt(c)&&!u&&Ni(e,c))?o=o.filter(d=>d!==c):r=a,c=ze(c)}return t.set(e,o),o}function yh(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const c=[...n==="clippingAncestors"?en(t)?[]:bh(t,this._c):[].concat(n),o],a=c[0],u=c.reduce((l,d)=>{const p=Ti(t,d,r);return l.top=pe(p.top,l.top),l.right=Ue(p.right,l.right),l.bottom=Ue(p.bottom,l.bottom),l.left=pe(p.left,l.left),l},Ti(t,a,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function xh(e){const{width:t,height:n}=Ci(e);return{width:t,height:n}}function Eh(e,t,n){const o=Pe(t),r=Se(t),s=n==="fixed",c=qe(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=Ce(0);if(o||!o&&!s)if((lt(t)!=="body"||xt(r))&&(a=tn(t)),o){const m=qe(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else r&&(u.x=ho(r));const l=r&&!o&&!s?Pi(r,a):Ce(0),d=c.left+a.scrollLeft-u.x-l.x,p=c.top+a.scrollTop-u.y-l.y;return{x:d,y:p,width:c.width,height:c.height}}function mo(e){return xe(e).position==="static"}function Ai(e,t){if(!Pe(e)||xe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Se(e)===n&&(n=n.ownerDocument.body),n}function ji(e,t){const n=he(e);if(en(e))return n;if(!Pe(e)){let r=ze(e);for(;r&&!ut(r);){if(ye(r)&&!mo(r))return r;r=ze(r)}return n}let o=Ai(e,t);for(;o&&uh(o)&&mo(o);)o=Ai(o,t);return o&&ut(o)&&mo(o)&&!lo(o)?n:o||dh(e)||n}const kh=async function(e){const t=this.getOffsetParent||ji,n=this.getDimensions,o=await n(e.floating);return{reference:Eh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ch(e){return xe(e).direction==="rtl"}const Sh={convertOffsetParentRelativeRectToViewportRelativeRect:hh,getDocumentElement:Se,getClippingRect:yh,getOffsetParent:ji,getElementRects:kh,getClientRects:mh,getDimensions:xh,getScale:dt,isElement:ye,isRTL:Ch};function Mi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ph(e,t){let n=null,o;const r=Se(e);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function c(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const l=e.getBoundingClientRect(),{left:d,top:p,width:m,height:v}=l;if(a||t(),!m||!v)return;const w=qt(p),h=qt(r.clientWidth-(d+m)),g=qt(r.clientHeight-(p+v)),b=qt(d),x={rootMargin:-w+"px "+-h+"px "+-g+"px "+-b+"px",threshold:pe(0,Ue(1,u))||1};let E=!0;function C(S){const k=S[0].intersectionRatio;if(k!==u){if(!E)return c();k?c(!1,k):o=setTimeout(()=>{c(!1,1e-7)},1e3)}k===1&&!Mi(l,e.getBoundingClientRect())&&c(),E=!1}try{n=new IntersectionObserver(C,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return c(!0),s}function vo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,l=po(e),d=r||s?[...l?Et(l):[],...Et(t)]:[];d.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=l&&a?Ph(l,n):null;let m=-1,v=null;c&&(v=new ResizeObserver(b=>{let[y]=b;y&&y.target===l&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),n()}),l&&!u&&v.observe(l),v.observe(t));let w,h=u?qe(e):null;u&&g();function g(){const b=qe(e);h&&!Mi(h,b)&&n(),h=b,w=requestAnimationFrame(g)}return n(),()=>{var b;d.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),p==null||p(),(b=v)==null||b.disconnect(),v=null,u&&cancelAnimationFrame(w)}}const Th=ih,Nh=ah,Ah=oh,jh=lh,Mh=rh,Oi=nh,Oh=ch,Ih=(e,t,n)=>{const o=new Map,r={platform:Sh,...n},s={...r.platform,_c:o};return th(e,t,{...r,platform:s})};var nn=typeof document<"u"?J.useLayoutEffect:J.useEffect;function on(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!on(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!on(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ii(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Di(e,t){const n=Ii(e);return Math.round(t*n)/n}function go(e){const t=i.useRef(e);return nn(()=>{t.current=e}),t}function wo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:c}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[d,p]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=i.useState(o);on(m,o)||v(o);const[w,h]=i.useState(null),[g,b]=i.useState(null),y=i.useCallback(O=>{O!==S.current&&(S.current=O,h(O))},[]),x=i.useCallback(O=>{O!==k.current&&(k.current=O,b(O))},[]),E=s||w,C=c||g,S=i.useRef(null),k=i.useRef(null),P=i.useRef(d),N=u!=null,M=go(u),$=go(r),I=go(l),W=i.useCallback(()=>{if(!S.current||!k.current)return;const O={placement:t,strategy:n,middleware:m};$.current&&(O.platform=$.current),Ih(S.current,k.current,O).then(j=>{const K={...j,isPositioned:I.current!==!1};A.current&&!on(P.current,K)&&(P.current=K,Ae.flushSync(()=>{p(K)}))})},[m,t,n,$,I]);nn(()=>{l===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[l]);const A=i.useRef(!1);nn(()=>(A.current=!0,()=>{A.current=!1}),[]),nn(()=>{if(E&&(S.current=E),C&&(k.current=C),E&&C){if(M.current)return M.current(E,C,W);W()}},[E,C,W,M,N]);const U=i.useMemo(()=>({reference:S,floating:k,setReference:y,setFloating:x}),[y,x]),_=i.useMemo(()=>({reference:E,floating:C}),[E,C]),B=i.useMemo(()=>{const O={position:n,left:0,top:0};if(!_.floating)return O;const j=Di(_.floating,d.x),K=Di(_.floating,d.y);return a?{...O,transform:"translate("+j+"px, "+K+"px)",...Ii(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:K}},[n,a,_.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:W,refs:U,elements:_,floatingStyles:B}),[d,W,U,_,B])}const Dh=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Oi({element:o.current,padding:r}).fn(n):{}:o?Oi({element:o,padding:r}).fn(n):{}}}},bo=(e,t)=>({...Th(e),options:[e,t]}),yo=(e,t)=>({...Nh(e),options:[e,t]}),xo=(e,t)=>({...Oh(e),options:[e,t]}),Eo=(e,t)=>({...Ah(e),options:[e,t]}),ko=(e,t)=>({...jh(e),options:[e,t]}),Co=(e,t)=>({...Mh(e),options:[e,t]}),So=(e,t)=>({...Dh(e),options:[e,t]});var _h="Arrow",_i=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return f.jsx(de.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});_i.displayName=_h;var Lh=_i;function rn(e){const[t,n]=i.useState(void 0);return Y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let c,a;if("borderBoxSize"in s){const u=s.borderBoxSize,l=Array.isArray(u)?u[0]:u;c=l.inlineSize,a=l.blockSize}else c=e.offsetWidth,a=e.offsetHeight;n({width:c,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Po="Popper",[Li,Ri]=ce(Po),[Rh,$i]=Li(Po),Fi=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return f.jsx(Rh,{scope:t,anchor:o,onAnchorChange:r,children:n})};Fi.displayName=Po;var Wi="PopperAnchor",Bi=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=$i(Wi,n),c=i.useRef(null),a=L(t,c);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:f.jsx(de.div,{...r,ref:a})});Bi.displayName=Wi;var To="PopperContent",[$h,Fh]=Li(To),Ui=i.forwardRef((e,t)=>{var F,X,Q,G,q,Z;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:w,...h}=e,g=$i(To,n),[b,y]=i.useState(null),x=L(t,te=>y(te)),[E,C]=i.useState(null),S=rn(E),k=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,N=o+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(l)?l:[l],I=$.length>0,W={padding:M,boundary:$.filter(Bh),altBoundary:I},{refs:A,floatingStyles:U,placement:_,isPositioned:B,middlewareData:O}=wo({strategy:"fixed",placement:N,whileElementsMounted:(...te)=>vo(...te,{animationFrame:v==="always"}),elements:{reference:g.anchor},middleware:[bo({mainAxis:r+P,alignmentAxis:c}),u&&yo({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?xo():void 0,...W}),u&&Eo({...W}),ko({...W,apply:({elements:te,rects:ue,availableWidth:_e,availableHeight:Le})=>{const{width:Re,height:_t}=ue.reference,fe=te.floating.style;fe.setProperty("--radix-popper-available-width",`${_e}px`),fe.setProperty("--radix-popper-available-height",`${Le}px`),fe.setProperty("--radix-popper-anchor-width",`${Re}px`),fe.setProperty("--radix-popper-anchor-height",`${_t}px`)}}),E&&So({element:E,padding:a}),Uh({arrowWidth:k,arrowHeight:P}),m&&Co({strategy:"referenceHidden",...W})]}),[j,K]=Vi(_),H=V(w);Y(()=>{B&&(H==null||H())},[B,H]);const oe=(F=O.arrow)==null?void 0:F.x,ie=(X=O.arrow)==null?void 0:X.y,se=((Q=O.arrow)==null?void 0:Q.centerOffset)!==0,[me,ae]=i.useState();return Y(()=>{b&&ae(window.getComputedStyle(b).zIndex)},[b]),f.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:B?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(G=O.transformOrigin)==null?void 0:G.x,(q=O.transformOrigin)==null?void 0:q.y].join(" "),...((Z=O.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx($h,{scope:n,placedSide:j,onArrowChange:C,arrowX:oe,arrowY:ie,shouldHideArrow:se,children:f.jsx(de.div,{"data-side":j,"data-align":K,...h,ref:x,style:{...h.style,animation:B?void 0:"none"}})})})});Ui.displayName=To;var Hi="PopperArrow",Wh={top:"bottom",right:"left",bottom:"top",left:"right"},zi=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=Fh(Hi,o),c=Wh[s.placedSide];return f.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:f.jsx(Lh,{...r,ref:n,style:{...r.style,display:"block"}})})});zi.displayName=Hi;function Bh(e){return e!==null}var Uh=e=>({name:"transformOrigin",options:e,fn(t){var g,b,y;const{placement:n,rects:o,middlewareData:r}=t,c=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[l,d]=Vi(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,v=(((y=r.arrow)==null?void 0:y.y)??0)+u/2;let w="",h="";return l==="bottom"?(w=c?p:`${m}px`,h=`${-u}px`):l==="top"?(w=c?p:`${m}px`,h=`${o.floating.height+u}px`):l==="right"?(w=`${-u}px`,h=c?p:`${v}px`):l==="left"&&(w=`${o.floating.width+u}px`,h=c?p:`${v}px`),{data:{x:w,y:h}}}});function Vi(e){const[t,n="center"]=e.split("-");return[t,n]}var Ki=Fi,Hh=Bi,zh=Ui,Vh=zi,Kh="Portal",Gi=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);Y(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?mt.createPortal(f.jsx(de.div,{...o,ref:t}),c):null});Gi.displayName=Kh;function Gh(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var kt=e=>{const{present:t,children:n}=e,o=Yh(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=L(o.ref,Xh(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};kt.displayName="Presence";function Yh(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,u]=Gh(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=sn(o.current);s.current=a==="mounted"?l:"none"},[a]),Y(()=>{const l=o.current,d=r.current;if(d!==e){const m=s.current,v=sn(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(d&&m!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),Y(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,p=v=>{const h=sn(o.current).includes(v.animationName);if(v.target===t&&h&&(u("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=v=>{v.target===t&&(s.current=sn(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function sn(e){return(e==null?void 0:e.animationName)||"none"}function Xh(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var No="rovingFocusGroup.onEntryFocus",qh={bubbles:!1,cancelable:!0},an="RovingFocusGroup",[Ao,Yi,Zh]=ri(an),[Qh,Xi]=ce(an,[Zh]),[Jh,em]=Qh(an),qi=i.forwardRef((e,t)=>f.jsx(Ao.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsx(Ao.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsx(tm,{...e,ref:t})})}));qi.displayName=an;var tm=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...p}=e,m=i.useRef(null),v=L(t,m),w=Yt(s),[h=null,g]=Me({prop:c,defaultProp:a,onChange:u}),[b,y]=i.useState(!1),x=V(l),E=Yi(n),C=i.useRef(!1),[S,k]=i.useState(0);return i.useEffect(()=>{const P=m.current;if(P)return P.addEventListener(No,x),()=>P.removeEventListener(No,x)},[x]),f.jsx(Jh,{scope:n,orientation:o,dir:w,loop:r,currentTabStopId:h,onItemFocus:i.useCallback(P=>g(P),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>k(P=>P+1),[]),onFocusableItemRemove:i.useCallback(()=>k(P=>P-1),[]),children:f.jsx(de.div,{tabIndex:b||S===0?-1:0,"data-orientation":o,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:T(e.onMouseDown,()=>{C.current=!0}),onFocus:T(e.onFocus,P=>{const N=!C.current;if(P.target===P.currentTarget&&N&&!b){const M=new CustomEvent(No,qh);if(P.currentTarget.dispatchEvent(M),!M.defaultPrevented){const $=E().filter(_=>_.focusable),I=$.find(_=>_.active),W=$.find(_=>_.id===h),U=[I,W,...$].filter(Boolean).map(_=>_.ref.current);Ji(U,d)}}C.current=!1}),onBlur:T(e.onBlur,()=>y(!1))})})}),Zi="RovingFocusGroupItem",Qi=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,...c}=e,a=ve(),u=s||a,l=em(Zi,n),d=l.currentTabStopId===u,p=Yi(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=l;return i.useEffect(()=>{if(o)return m(),()=>v()},[o,m,v]),f.jsx(Ao.ItemSlot,{scope:n,id:u,focusable:o,active:r,children:f.jsx(de.span,{tabIndex:d?0:-1,"data-orientation":l.orientation,...c,ref:t,onMouseDown:T(e.onMouseDown,w=>{o?l.onItemFocus(u):w.preventDefault()}),onFocus:T(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:T(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){l.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const h=rm(w,l.orientation,l.dir);if(h!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let b=p().filter(y=>y.focusable).map(y=>y.ref.current);if(h==="last")b.reverse();else if(h==="prev"||h==="next"){h==="prev"&&b.reverse();const y=b.indexOf(w.currentTarget);b=l.loop?sm(b,y+1):b.slice(y+1)}setTimeout(()=>Ji(b))}})})})});Qi.displayName=Zi;var nm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function om(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rm(e,t,n){const o=om(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return nm[o]}function Ji(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function sm(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var im=qi,am=Qi,jo=["Enter"," "],cm=["ArrowDown","PageUp","Home"],ea=["ArrowUp","PageDown","End"],lm=[...cm,...ea],um={ltr:[...jo,"ArrowRight"],rtl:[...jo,"ArrowLeft"]},dm={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ct="Menu",[St,fm,pm]=ri(Ct),[Ze,ta]=ce(Ct,[pm,Ri,Xi]),Pt=Ri(),na=Xi(),[oa,Ve]=Ze(Ct),[hm,Tt]=Ze(Ct),ra=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:c=!0}=e,a=Pt(t),[u,l]=i.useState(null),d=i.useRef(!1),p=V(s),m=Yt(r);return i.useEffect(()=>{const v=()=>{d.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>d.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),f.jsx(Ki,{...a,children:f.jsx(oa,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:l,children:f.jsx(hm,{scope:t,onClose:i.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:m,modal:c,children:o})})})};ra.displayName=Ct;var mm="MenuAnchor",Mo=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Pt(n);return f.jsx(Hh,{...r,...o,ref:t})});Mo.displayName=mm;var Oo="MenuPortal",[vm,sa]=Ze(Oo,{forceMount:void 0}),ia=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=Ve(Oo,t);return f.jsx(vm,{scope:t,forceMount:n,children:f.jsx(kt,{present:n||s.open,children:f.jsx(Gi,{asChild:!0,container:r,children:o})})})};ia.displayName=Oo;var ge="MenuContent",[gm,Io]=Ze(ge),aa=i.forwardRef((e,t)=>{const n=sa(ge,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Ve(ge,e.__scopeMenu),c=Tt(ge,e.__scopeMenu);return f.jsx(St.Provider,{scope:e.__scopeMenu,children:f.jsx(kt,{present:o||s.open,children:f.jsx(St.Slot,{scope:e.__scopeMenu,children:c.modal?f.jsx(wm,{...r,ref:t}):f.jsx(bm,{...r,ref:t})})})})}),wm=i.forwardRef((e,t)=>{const n=Ve(ge,e.__scopeMenu),o=i.useRef(null),r=L(t,o);return i.useEffect(()=>{const s=o.current;if(s)return Xn(s)},[]),f.jsx(Do,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:T(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),bm=i.forwardRef((e,t)=>{const n=Ve(ge,e.__scopeMenu);return f.jsx(Do,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Do=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:a,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,onDismiss:v,disableOutsideScroll:w,...h}=e,g=Ve(ge,n),b=Tt(ge,n),y=Pt(n),x=na(n),E=fm(n),[C,S]=i.useState(null),k=i.useRef(null),P=L(t,k,g.onContentChange),N=i.useRef(0),M=i.useRef(""),$=i.useRef(0),I=i.useRef(null),W=i.useRef("right"),A=i.useRef(0),U=w?zt:i.Fragment,_=w?{as:ne,allowPinchZoom:!0}:void 0,B=j=>{var F,X;const K=M.current+j,H=E().filter(Q=>!Q.disabled),oe=document.activeElement,ie=(F=H.find(Q=>Q.ref.current===oe))==null?void 0:F.textValue,se=H.map(Q=>Q.textValue),me=Mm(se,K,ie),ae=(X=H.find(Q=>Q.textValue===me))==null?void 0:X.ref.current;(function Q(G){M.current=G,window.clearTimeout(N.current),G!==""&&(N.current=window.setTimeout(()=>Q(""),1e3))})(K),ae&&setTimeout(()=>ae.focus())};i.useEffect(()=>()=>window.clearTimeout(N.current),[]),Hn();const O=i.useCallback(j=>{var H,oe;return W.current===((H=I.current)==null?void 0:H.side)&&Im(j,(oe=I.current)==null?void 0:oe.area)},[]);return f.jsx(gm,{scope:n,searchRef:M,onItemEnter:i.useCallback(j=>{O(j)&&j.preventDefault()},[O]),onItemLeave:i.useCallback(j=>{var K;O(j)||((K=k.current)==null||K.focus(),S(null))},[O]),onTriggerLeave:i.useCallback(j=>{O(j)&&j.preventDefault()},[O]),pointerGraceTimerRef:$,onPointerGraceIntentChange:i.useCallback(j=>{I.current=j},[]),children:f.jsx(U,{..._,children:f.jsx(fi,{asChild:!0,trapped:r,onMountAutoFocus:T(s,j=>{var K;j.preventDefault(),(K=k.current)==null||K.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:f.jsx(ci,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,onDismiss:v,children:f.jsx(im,{asChild:!0,...x,dir:b.dir,orientation:"vertical",loop:o,currentTabStopId:C,onCurrentTabStopIdChange:S,onEntryFocus:T(u,j=>{b.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:f.jsx(zh,{role:"menu","aria-orientation":"vertical","data-state":Sa(g.open),"data-radix-menu-content":"",dir:b.dir,...y,...h,ref:P,style:{outline:"none",...h.style},onKeyDown:T(h.onKeyDown,j=>{const H=j.target.closest("[data-radix-menu-content]")===j.currentTarget,oe=j.ctrlKey||j.altKey||j.metaKey,ie=j.key.length===1;H&&(j.key==="Tab"&&j.preventDefault(),!oe&&ie&&B(j.key));const se=k.current;if(j.target!==se||!lm.includes(j.key))return;j.preventDefault();const ae=E().filter(F=>!F.disabled).map(F=>F.ref.current);ea.includes(j.key)&&ae.reverse(),Am(ae)}),onBlur:T(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(N.current),M.current="")}),onPointerMove:T(e.onPointerMove,At(j=>{const K=j.target,H=A.current!==j.clientX;if(j.currentTarget.contains(K)&&H){const oe=j.clientX>A.current?"right":"left";W.current=oe,A.current=j.clientX}}))})})})})})})});aa.displayName=ge;var ym="MenuGroup",_o=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return f.jsx(de.div,{role:"group",...o,ref:t})});_o.displayName=ym;var xm="MenuLabel",ca=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return f.jsx(de.div,{...o,ref:t})});ca.displayName=xm;var cn="MenuItem",la="menu.itemSelect",ln=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=i.useRef(null),c=Tt(cn,e.__scopeMenu),a=Io(cn,e.__scopeMenu),u=L(t,s),l=i.useRef(!1),d=()=>{const p=s.current;if(!n&&p){const m=new CustomEvent(la,{bubbles:!0,cancelable:!0});p.addEventListener(la,v=>o==null?void 0:o(v),{once:!0}),oi(p,m),m.defaultPrevented?l.current=!1:c.onClose()}};return f.jsx(ua,{...r,ref:u,disabled:n,onClick:T(e.onClick,d),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),l.current=!0},onPointerUp:T(e.onPointerUp,p=>{var m;l.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:T(e.onKeyDown,p=>{const m=a.searchRef.current!=="";n||m&&p.key===" "||jo.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});ln.displayName=cn;var ua=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,c=Io(cn,n),a=na(n),u=i.useRef(null),l=L(t,u),[d,p]=i.useState(!1),[m,v]=i.useState("");return i.useEffect(()=>{const w=u.current;w&&v((w.textContent??"").trim())},[s.children]),f.jsx(St.ItemSlot,{scope:n,disabled:o,textValue:r??m,children:f.jsx(am,{asChild:!0,...a,focusable:!o,children:f.jsx(de.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:l,onPointerMove:T(e.onPointerMove,At(w=>{o?c.onItemLeave(w):(c.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:T(e.onPointerLeave,At(w=>c.onItemLeave(w))),onFocus:T(e.onFocus,()=>p(!0)),onBlur:T(e.onBlur,()=>p(!1))})})})}),Em="MenuCheckboxItem",da=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return f.jsx(va,{scope:e.__scopeMenu,checked:n,children:f.jsx(ln,{role:"menuitemcheckbox","aria-checked":un(n)?"mixed":n,...r,ref:t,"data-state":$o(n),onSelect:T(r.onSelect,()=>o==null?void 0:o(un(n)?!0:!n),{checkForDefaultPrevented:!1})})})});da.displayName=Em;var fa="MenuRadioGroup",[km,Cm]=Ze(fa,{value:void 0,onValueChange:()=>{}}),pa=i.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=V(o);return f.jsx(km,{scope:e.__scopeMenu,value:n,onValueChange:s,children:f.jsx(_o,{...r,ref:t})})});pa.displayName=fa;var ha="MenuRadioItem",ma=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=Cm(ha,e.__scopeMenu),s=n===r.value;return f.jsx(va,{scope:e.__scopeMenu,checked:s,children:f.jsx(ln,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":$o(s),onSelect:T(o.onSelect,()=>{var c;return(c=r.onValueChange)==null?void 0:c.call(r,n)},{checkForDefaultPrevented:!1})})})});ma.displayName=ha;var Lo="MenuItemIndicator",[va,Sm]=Ze(Lo,{checked:!1}),ga=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Sm(Lo,n);return f.jsx(kt,{present:o||un(s.checked)||s.checked===!0,children:f.jsx(de.span,{...r,ref:t,"data-state":$o(s.checked)})})});ga.displayName=Lo;var Pm="MenuSeparator",wa=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return f.jsx(de.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});wa.displayName=Pm;var Tm="MenuArrow",ba=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Pt(n);return f.jsx(Vh,{...r,...o,ref:t})});ba.displayName=Tm;var Ro="MenuSub",[Nm,ya]=Ze(Ro),xa=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,s=Ve(Ro,t),c=Pt(t),[a,u]=i.useState(null),[l,d]=i.useState(null),p=V(r);return i.useEffect(()=>(s.open===!1&&p(!1),()=>p(!1)),[s.open,p]),f.jsx(Ki,{...c,children:f.jsx(oa,{scope:t,open:o,onOpenChange:p,content:l,onContentChange:d,children:f.jsx(Nm,{scope:t,contentId:ve(),triggerId:ve(),trigger:a,onTriggerChange:u,children:n})})})};xa.displayName=Ro;var Nt="MenuSubTrigger",Ea=i.forwardRef((e,t)=>{const n=Ve(Nt,e.__scopeMenu),o=Tt(Nt,e.__scopeMenu),r=ya(Nt,e.__scopeMenu),s=Io(Nt,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:u}=s,l={__scopeMenu:e.__scopeMenu},d=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return i.useEffect(()=>d,[d]),i.useEffect(()=>{const p=a.current;return()=>{window.clearTimeout(p),u(null)}},[a,u]),f.jsx(Mo,{asChild:!0,...l,children:f.jsx(ua,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Sa(n.open),...e,ref:Lt(t,r.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:T(e.onPointerMove,At(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:T(e.onPointerLeave,At(p=>{var v,w;d();const m=(v=n.content)==null?void 0:v.getBoundingClientRect();if(m){const h=(w=n.content)==null?void 0:w.dataset.side,g=h==="right",b=g?-5:5,y=m[g?"left":"right"],x=m[g?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+b,y:p.clientY},{x:y,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:y,y:m.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:T(e.onKeyDown,p=>{var v;const m=s.searchRef.current!=="";e.disabled||m&&p.key===" "||um[o.dir].includes(p.key)&&(n.onOpenChange(!0),(v=n.content)==null||v.focus(),p.preventDefault())})})})});Ea.displayName=Nt;var ka="MenuSubContent",Ca=i.forwardRef((e,t)=>{const n=sa(ge,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Ve(ge,e.__scopeMenu),c=Tt(ge,e.__scopeMenu),a=ya(ka,e.__scopeMenu),u=i.useRef(null),l=L(t,u);return f.jsx(St.Provider,{scope:e.__scopeMenu,children:f.jsx(kt,{present:o||s.open,children:f.jsx(St.Slot,{scope:e.__scopeMenu,children:f.jsx(Do,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:l,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var p;c.isUsingKeyboardRef.current&&((p=u.current)==null||p.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:T(e.onFocusOutside,d=>{d.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:T(e.onEscapeKeyDown,d=>{c.onClose(),d.preventDefault()}),onKeyDown:T(e.onKeyDown,d=>{var v;const p=d.currentTarget.contains(d.target),m=dm[c.dir].includes(d.key);p&&m&&(s.onOpenChange(!1),(v=a.trigger)==null||v.focus(),d.preventDefault())})})})})})});Ca.displayName=ka;function Sa(e){return e?"open":"closed"}function un(e){return e==="indeterminate"}function $o(e){return un(e)?"indeterminate":e?"checked":"unchecked"}function Am(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function jm(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Mm(e,t,n){const r=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=jm(e,Math.max(s,0));r.length===1&&(c=c.filter(l=>l!==n));const u=c.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function Om(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const a=t[s].x,u=t[s].y,l=t[c].x,d=t[c].y;u>o!=d>o&&n<(l-a)*(o-u)/(d-u)+a&&(r=!r)}return r}function Im(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Om(n,t)}function At(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Dm=ra,_m=Mo,Lm=ia,Rm=aa,$m=_o,Fm=ca,Wm=ln,Bm=da,Um=pa,Hm=ma,zm=ga,Vm=wa,Km=ba,Gm=xa,Ym=Ea,Xm=Ca,Fo="DropdownMenu",[qm,Qb]=ce(Fo,[ta]),le=ta(),[Zm,Pa]=qm(Fo),Ta=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:c,modal:a=!0}=e,u=le(t),l=i.useRef(null),[d=!1,p]=Me({prop:r,defaultProp:s,onChange:c});return f.jsx(Zm,{scope:t,triggerId:ve(),triggerRef:l,contentId:ve(),open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(m=>!m),[p]),modal:a,children:f.jsx(Dm,{...u,open:d,onOpenChange:p,dir:o,modal:a,children:n})})};Ta.displayName=Fo;var Na="DropdownMenuTrigger",Aa=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=Pa(Na,n),c=le(n);return f.jsx(_m,{asChild:!0,...c,children:f.jsx(de.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Lt(t,s.triggerRef),onPointerDown:T(e.onPointerDown,a=>{!o&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:T(e.onKeyDown,a=>{o||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Aa.displayName=Na;var Qm="DropdownMenuPortal",ja=e=>{const{__scopeDropdownMenu:t,...n}=e,o=le(t);return f.jsx(Lm,{...o,...n})};ja.displayName=Qm;var Ma="DropdownMenuContent",Oa=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Pa(Ma,n),s=le(n),c=i.useRef(!1);return f.jsx(Rm,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:T(e.onCloseAutoFocus,a=>{var u;c.current||(u=r.triggerRef.current)==null||u.focus(),c.current=!1,a.preventDefault()}),onInteractOutside:T(e.onInteractOutside,a=>{const u=a.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,d=u.button===2||l;(!r.modal||d)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Oa.displayName=Ma;var Jm="DropdownMenuGroup",Ia=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx($m,{...r,...o,ref:t})});Ia.displayName=Jm;var ev="DropdownMenuLabel",Da=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx(Fm,{...r,...o,ref:t})});Da.displayName=ev;var tv="DropdownMenuItem",_a=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx(Wm,{...r,...o,ref:t})});_a.displayName=tv;var nv="DropdownMenuCheckboxItem",La=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx(Bm,{...r,...o,ref:t})});La.displayName=nv;var ov="DropdownMenuRadioGroup",Ra=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx(Um,{...r,...o,ref:t})});Ra.displayName=ov;var rv="DropdownMenuRadioItem",$a=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx(Hm,{...r,...o,ref:t})});$a.displayName=rv;var sv="DropdownMenuItemIndicator",Fa=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx(zm,{...r,...o,ref:t})});Fa.displayName=sv;var iv="DropdownMenuSeparator",Wa=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx(Vm,{...r,...o,ref:t})});Wa.displayName=iv;var av="DropdownMenuArrow",cv=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx(Km,{...r,...o,ref:t})});cv.displayName=av;var lv=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:s}=e,c=le(t),[a=!1,u]=Me({prop:o,defaultProp:s,onChange:r});return f.jsx(Gm,{...c,open:a,onOpenChange:u,children:n})},uv="DropdownMenuSubTrigger",Ba=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx(Ym,{...r,...o,ref:t})});Ba.displayName=uv;var dv="DropdownMenuSubContent",Ua=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return f.jsx(Xm,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ua.displayName=dv;var fv=Ta,pv=Aa,Ha=ja,za=Oa,Va=Ia,Ka=Da,Ga=_a,Ya=La,hv=Ra,Xa=$a,qa=Fa,Za=Wa,mv=lv,Qa=Ba,Ja=Ua;const vv=fv,gv=pv,ec=i.forwardRef(({className:e,...t},n)=>f.jsx(Va,{ref:n,className:R("ksjsui-flex ksjsui-flex-col ksjsui-gap-y-2",e),...t}));ec.displayName=Va.displayName;const wv=Ha,bv=mv,yv=hv,tc=i.forwardRef(({className:e,inset:t,children:n,...o},r)=>f.jsxs(Qa,{ref:r,className:R(["ksjsui-group ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-start ksjsui-gap-2 ksjsui-rounded-sm ksjsui-border-0 ksjsui-px-2 ksjsui-py-1 ksjsui-text-base ksjsui-outline-none ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground","data-[disabled]:ksjsui-opacity-50","data-[state=open]:ksjsui-bg-neutral data-[state=open]:ksjsui-text-neutral-foreground","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-shrink-0","[&_>_svg]:ksjsui-size-6","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],t&&"ksjsui-ps-8",e),...o,children:[n,f.jsxs("span",{className:R(["-ksjsui-me-2 ksjsui-ms-auto ksjsui-mt-1 ksjsui-text-label","[&_svg]:ksjsui-size-4","group-focus:forced-colors:ksjsui-text-current"]),children:[f.jsx(Xs,{className:"rtl:ksjsui-hidden"}),f.jsx(Ys,{className:"ltr:ksjsui-hidden"})]})]}));tc.displayName=Qa.displayName;const nc=i.forwardRef(({className:e,...t},n)=>f.jsx(Ja,{ref:n,className:R(["ksjsui-z-50 ksjsui-flex ksjsui-min-w-32 ksjsui-flex-col ksjsui-gap-y-2 ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-bg-popover ksjsui-px-2 ksjsui-py-4 ksjsui-text-popover-foreground ksjsui-shadow-lg","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0 data-[state=open]:ksjsui-zoom-in-95","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95","data-[side=top]:ksjsui-slide-in-from-bottom-2","data-[side=right]:ksjsui-slide-in-from-left-2","data-[side=bottom]:ksjsui-slide-in-from-top-2","data-[side=left]:ksjsui-slide-in-from-right-2","forced-colors:ksjsui-border"],e),...t}));nc.displayName=Ja.displayName;const oc=i.forwardRef(({className:e,align:t="start",side:n="bottom",sideOffset:o=4,...r},s)=>f.jsx(Ha,{children:f.jsx(za,{ref:s,align:t,side:n,sideOffset:o,className:R(["ksjsui-z-50 ksjsui-flex ksjsui-min-w-32 ksjsui-flex-col ksjsui-gap-y-2 ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-bg-popover ksjsui-px-2 ksjsui-py-4 ksjsui-text-popover-foreground ksjsui-shadow-md","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0 data-[state=open]:ksjsui-zoom-in-95","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95","data-[side=top]:ksjsui-slide-in-from-bottom-2","data-[side=right]:ksjsui-slide-in-from-left-2","data-[side=bottom]:ksjsui-slide-in-from-top-2","data-[side=left]:ksjsui-slide-in-from-right-2","forced-colors:ksjsui-border"],e),...r})}));oc.displayName=za.displayName;const rc=i.forwardRef(({className:e,inset:t,...n},o)=>f.jsx(Ga,{ref:o,className:R(["ksjsui-group ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-start ksjsui-gap-2 ksjsui-rounded-sm ksjsui-border-0 ksjsui-px-2 ksjsui-py-1 ksjsui-text-base ksjsui-outline-none ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground","hover:ksjsui-bg-neutral hover:ksjsui-text-neutral-foreground","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-size-6 [&_svg]:ksjsui-shrink-0","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:hover:ksjsui-bg-highlight forced-colors:hover:ksjsui-text-highlight-text forced-colors:hover:ksjsui-forced-color-adjust-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],t&&"ksjsui-ps-10",e),...n}));rc.displayName=Ga.displayName;const sc=i.forwardRef(({className:e,children:t,checked:n,...o},r)=>f.jsxs(Ya,{ref:r,className:R(["ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-start ksjsui-justify-between ksjsui-gap-2 ksjsui-rounded-sm ksjsui-border-0 ksjsui-px-2 ksjsui-py-1 ksjsui-text-base ksjsui-outline-none ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground","hover:ksjsui-bg-neutral hover:ksjsui-text-neutral-foreground","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:hover:ksjsui-bg-highlight forced-colors:hover:ksjsui-text-highlight-text forced-colors:hover:ksjsui-forced-color-adjust-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],e),checked:n,...o,children:[t,f.jsx(qa,{children:f.jsx(Gs,{className:"ksjsui-size-6"})})]}));sc.displayName=Ya.displayName;const ic=i.forwardRef(({className:e,children:t,...n},o)=>f.jsxs(Xa,{ref:o,className:R(["ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-center ksjsui-justify-between ksjsui-gap-2 ksjsui-rounded-sm ksjsui-border-0 ksjsui-px-2 ksjsui-py-1 ksjsui-text-base ksjsui-outline-none ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground","hover:ksjsui-bg-neutral hover:ksjsui-text-neutral-foreground","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:hover:ksjsui-bg-highlight forced-colors:hover:ksjsui-text-highlight-text forced-colors:hover:ksjsui-forced-color-adjust-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],e),...n,children:[t,f.jsx("span",{className:"ksjsui-flex ksjsui-size-3.5 ksjsui-items-center ksjsui-justify-center",children:f.jsx(qa,{children:f.jsx(Tp,{className:"ksjsui-size-2"})})})]}));ic.displayName=Xa.displayName;const ac=i.forwardRef(({className:e,inset:t,...n},o)=>f.jsx(Ka,{ref:o,className:R("ksjsui-px-2 ksjsui-text-sm ksjsui-text-label",t&&"ksjsui-ps-8",e),...n}));ac.displayName=Ka.displayName;const cc=i.forwardRef(({className:e,...t},n)=>f.jsx(Za,{ref:n,className:R(["ksjsui-my-1 ksjsui-h-px ksjsui-bg-border","forced-colors:ksjsui-bg-canvas-text"],e),...t}));cc.displayName=Za.displayName;const lc=({className:e,...t})=>f.jsx("span",{className:R("ksjsui-ms-auto ksjsui-mt-0.5 ksjsui-text-sm ksjsui-tracking-widest ksjsui-text-label","group-focus:forced-colors:ksjsui-text-current",e),...t});lc.displayName="DropdownMenuShortcut";const xv=i.forwardRef(({className:e,primary:t,secondary:n,...o},r)=>f.jsxs("div",{ref:r,className:R(e),...o,children:[f.jsx("span",{className:R(["DropdownMenuItemPrimaryText"],e),children:t}),n&&f.jsx("div",{className:R(["DropdownMenuItemSecondaryText","ksjsui-text-sm ksjsui-text-label","group-focus:forced-colors:ksjsui-text-current"],e),children:n})]}));xv.displayName="DropdownMenuItemText";const uc=i.forwardRef((e,t)=>f.jsx($n,{ref:t,...e,iconOnly:!0,fullWidth:!1}));uc.displayName="IconButton";const dc=i.forwardRef(({className:e,...t},n)=>f.jsx("ul",{ref:n,className:R(["ksjsui-flex ksjsui-w-full ksjsui-flex-col ksjsui-gap-y-2"],e),...t}));dc.displayName="List";const fc=i.forwardRef(({className:e,inset:t,...n},o)=>f.jsx("li",{ref:o,className:R(["ksjsui-flex ksjsui-gap-2 ksjsui-rounded-lg ksjsui-p-2 ksjsui-transition-colors","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-size-6 [&_svg]:ksjsui-shrink-0","has-[.ListItemButton:hover]:ksjsui-bg-neutral","has-[.ListItemButton:focus-visible]:ksjsui-outline-none has-[.ListItemButton:focus-visible]:ksjsui-ring-2 has-[.ListItemButton:focus-visible]:ksjsui-ring-ring has-[.ListItemButton:focus-visible]:ksjsui-ring-offset-2 has-[.ListItemButton:focus-visible]:ksjsui-ring-offset-background","has-[:disabled]:ksjsui-cursor-not-allowed","has-[.ListItemButton:hover]:forced-colors:ksjsui-outline-none has-[.ListItemButton:hover]:forced-colors:ksjsui-outline-highlight","has-[.ListItemButton:focus-visible]:forced-colors:ksjsui-outline-highlight"],t&&["ListItem-inset ksjsui-group","ksjsui-ps-10","has-[.ListItemButton]:ksjsui-p-0"],e),...n}));fc.displayName="ListItem";const pc=({className:e,...t})=>{const n="py-1 ksjsui-pointer-events-none ksjsui-hidden ksjsui-shrink-0 ksjsui-text-foreground",o={"aria-hidden":!0,focusable:!1,role:"presentation"};return f.jsxs(f.Fragment,{children:[f.jsx(Ys,{className:R("rtl:ksjsui-inline-block",n,e),...o,...t}),f.jsx(Xs,{className:R("ltr:ksjsui-inline-block",n,e),...o,...t})]})};pc.displayName="ListItemArrow";const Ev=et(["ListItemButton","ksjsui-flex ksjsui-w-full ksjsui-gap-2","focus-visible:ksjsui-border-0 focus-visible:ksjsui-outline-none","disabled:ksjsui-pointer-events-none disabled:ksjsui-opacity-50","forced-colors:focus-visible:ksjsui-outline-0","group-[.ListItem-inset]:ksjsui-p-2 group-[.ListItem-inset]:ksjsui-ps-10"],{variants:{color:{secondary:"ksjsui-text-secondary",destructive:"ksjsui-text-destructive"}}}),hc=i.forwardRef(({color:e,className:t,tabIndex:n=0,...o},r)=>f.jsx("button",{ref:r,className:R(Ev({color:e,className:t})),tabIndex:n,...o}));hc.displayName="ListItemButton";const mc=i.forwardRef(({className:e,primary:t,secondary:n,...o},r)=>f.jsxs("span",{ref:r,className:R(["ksjsui-flex ksjsui-w-full ksjsui-flex-col ksjsui-items-start"],e),...o,children:[f.jsx("span",{className:R(["ksjsui-text-start ksjsui-text-[15px]"],e),children:t}),n&&f.jsx("span",{className:R(["ksjsui-text-start ksjsui-text-[15px] ksjsui-text-label"],e),children:n})]}));mc.displayName="ListItemText";const vc=i.forwardRef(({className:e,inset:t,...n},o)=>f.jsx("li",{ref:o,className:R("ksjsui-block ksjsui-px-2 ksjsui-py-3 ksjsui-text-sm ksjsui-text-label",t&&"ksjsui-ps-8",e),...n}));vc.displayName="ListLabel";const gc=i.forwardRef(({className:e,...t},n)=>f.jsx("li",{ref:n,className:R(["ksjsui-my-1 ksjsui-block ksjsui-h-px ksjsui-bg-border","forced-colors:ksjsui-bg-canvas-text"],e),role:"separator",...t}));gc.displayName="ListSeparator";var kv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],jt=kv.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?ne:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Cv(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var Mt=e=>{const{present:t,children:n}=e,o=Sv(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=L(o.ref,Pv(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};Mt.displayName="Presence";function Sv(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,u]=Cv(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=dn(o.current);s.current=a==="mounted"?l:"none"},[a]),Y(()=>{const l=o.current,d=r.current;if(d!==e){const m=s.current,v=dn(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(d&&m!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),Y(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,p=v=>{const h=dn(o.current).includes(v.animationName);if(v.target===t&&h&&(u("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=v=>{v.target===t&&(s.current=dn(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function dn(e){return(e==null?void 0:e.animationName)||"none"}function Pv(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Wo(e,[t,n]){return Math.min(n,Math.max(t,e))}function Tv(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var Bo="ScrollArea",[wc,Jb]=ce(Bo),[Nv,we]=wc(Bo),bc=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:o="hover",dir:r,scrollHideDelay:s=600,...c}=e,[a,u]=i.useState(null),[l,d]=i.useState(null),[p,m]=i.useState(null),[v,w]=i.useState(null),[h,g]=i.useState(null),[b,y]=i.useState(0),[x,E]=i.useState(0),[C,S]=i.useState(!1),[k,P]=i.useState(!1),N=L(t,$=>u($)),M=Yt(r);return f.jsx(Nv,{scope:n,type:o,dir:M,scrollHideDelay:s,scrollArea:a,viewport:l,onViewportChange:d,content:p,onContentChange:m,scrollbarX:v,onScrollbarXChange:w,scrollbarXEnabled:C,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:k,onScrollbarYEnabledChange:P,onCornerWidthChange:y,onCornerHeightChange:E,children:f.jsx(jt.div,{dir:M,...c,ref:N,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});bc.displayName=Bo;var yc="ScrollAreaViewport",xc=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:o,nonce:r,...s}=e,c=we(yc,n),a=i.useRef(null),u=L(t,a,c.onViewportChange);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),f.jsx(jt.div,{"data-radix-scroll-area-viewport":"",...s,ref:u,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:f.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});xc.displayName=yc;var Te="ScrollAreaScrollbar",Uo=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=we(Te,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=r,a=e.orientation==="horizontal";return i.useEffect(()=>(a?s(!0):c(!0),()=>{a?s(!1):c(!1)}),[a,s,c]),r.type==="hover"?f.jsx(Av,{...o,ref:t,forceMount:n}):r.type==="scroll"?f.jsx(jv,{...o,ref:t,forceMount:n}):r.type==="auto"?f.jsx(Ec,{...o,ref:t,forceMount:n}):r.type==="always"?f.jsx(Ho,{...o,ref:t}):null});Uo.displayName=Te;var Av=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=we(Te,e.__scopeScrollArea),[s,c]=i.useState(!1);return i.useEffect(()=>{const a=r.scrollArea;let u=0;if(a){const l=()=>{window.clearTimeout(u),c(!0)},d=()=>{u=window.setTimeout(()=>c(!1),r.scrollHideDelay)};return a.addEventListener("pointerenter",l),a.addEventListener("pointerleave",d),()=>{window.clearTimeout(u),a.removeEventListener("pointerenter",l),a.removeEventListener("pointerleave",d)}}},[r.scrollArea,r.scrollHideDelay]),f.jsx(Mt,{present:n||s,children:f.jsx(Ec,{"data-state":s?"visible":"hidden",...o,ref:t})})}),jv=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=we(Te,e.__scopeScrollArea),s=e.orientation==="horizontal",c=mn(()=>u("SCROLL_END"),100),[a,u]=Tv("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return i.useEffect(()=>{if(a==="idle"){const l=window.setTimeout(()=>u("HIDE"),r.scrollHideDelay);return()=>window.clearTimeout(l)}},[a,r.scrollHideDelay,u]),i.useEffect(()=>{const l=r.viewport,d=s?"scrollLeft":"scrollTop";if(l){let p=l[d];const m=()=>{const v=l[d];p!==v&&(u("SCROLL"),c()),p=v};return l.addEventListener("scroll",m),()=>l.removeEventListener("scroll",m)}},[r.viewport,s,u,c]),f.jsx(Mt,{present:n||a!=="hidden",children:f.jsx(Ho,{"data-state":a==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:T(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:T(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),Ec=i.forwardRef((e,t)=>{const n=we(Te,e.__scopeScrollArea),{forceMount:o,...r}=e,[s,c]=i.useState(!1),a=e.orientation==="horizontal",u=mn(()=>{if(n.viewport){const l=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;c(a?l:d)}},10);return ft(n.viewport,u),ft(n.content,u),f.jsx(Mt,{present:o||s,children:f.jsx(Ho,{"data-state":s?"visible":"hidden",...r,ref:t})})}),Ho=i.forwardRef((e,t)=>{const{orientation:n="vertical",...o}=e,r=we(Te,e.__scopeScrollArea),s=i.useRef(null),c=i.useRef(0),[a,u]=i.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=Tc(a.viewport,a.content),d={...o,sizes:a,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:m=>s.current=m,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:m=>c.current=m};function p(m,v){return Lv(m,c.current,a,v)}return n==="horizontal"?f.jsx(Mv,{...d,ref:t,onThumbPositionChange:()=>{if(r.viewport&&s.current){const m=r.viewport.scrollLeft,v=Nc(m,a,r.dir);s.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:m=>{r.viewport&&(r.viewport.scrollLeft=m)},onDragScroll:m=>{r.viewport&&(r.viewport.scrollLeft=p(m,r.dir))}}):n==="vertical"?f.jsx(Ov,{...d,ref:t,onThumbPositionChange:()=>{if(r.viewport&&s.current){const m=r.viewport.scrollTop,v=Nc(m,a);s.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:m=>{r.viewport&&(r.viewport.scrollTop=m)},onDragScroll:m=>{r.viewport&&(r.viewport.scrollTop=p(m))}}):null}),Mv=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...r}=e,s=we(Te,e.__scopeScrollArea),[c,a]=i.useState(),u=i.useRef(null),l=L(t,u,s.onScrollbarXChange);return i.useEffect(()=>{u.current&&a(getComputedStyle(u.current))},[u]),f.jsx(Cc,{"data-orientation":"horizontal",...r,ref:l,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":hn(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,p)=>{if(s.viewport){const m=s.viewport.scrollLeft+d.deltaX;e.onWheelScroll(m),jc(m,p)&&d.preventDefault()}},onResize:()=>{u.current&&s.viewport&&c&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:pn(c.paddingLeft),paddingEnd:pn(c.paddingRight)}})}})}),Ov=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...r}=e,s=we(Te,e.__scopeScrollArea),[c,a]=i.useState(),u=i.useRef(null),l=L(t,u,s.onScrollbarYChange);return i.useEffect(()=>{u.current&&a(getComputedStyle(u.current))},[u]),f.jsx(Cc,{"data-orientation":"vertical",...r,ref:l,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":hn(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,p)=>{if(s.viewport){const m=s.viewport.scrollTop+d.deltaY;e.onWheelScroll(m),jc(m,p)&&d.preventDefault()}},onResize:()=>{u.current&&s.viewport&&c&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:pn(c.paddingTop),paddingEnd:pn(c.paddingBottom)}})}})}),[Iv,kc]=wc(Te),Cc=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:o,hasThumb:r,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:a,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:d,onResize:p,...m}=e,v=we(Te,n),[w,h]=i.useState(null),g=L(t,N=>h(N)),b=i.useRef(null),y=i.useRef(""),x=v.viewport,E=o.content-o.viewport,C=V(d),S=V(u),k=mn(p,10);function P(N){if(b.current){const M=N.clientX-b.current.left,$=N.clientY-b.current.top;l({x:M,y:$})}}return i.useEffect(()=>{const N=M=>{const $=M.target;(w==null?void 0:w.contains($))&&C(M,E)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[x,w,E,C]),i.useEffect(S,[o,S]),ft(w,k),ft(v.content,k),f.jsx(Iv,{scope:n,scrollbar:w,hasThumb:r,onThumbChange:V(s),onThumbPointerUp:V(c),onThumbPositionChange:S,onThumbPointerDown:V(a),children:f.jsx(jt.div,{...m,ref:g,style:{position:"absolute",...m.style},onPointerDown:T(e.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),b.current=w.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),P(N))}),onPointerMove:T(e.onPointerMove,P),onPointerUp:T(e.onPointerUp,N=>{const M=N.target;M.hasPointerCapture(N.pointerId)&&M.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=y.current,v.viewport&&(v.viewport.style.scrollBehavior=""),b.current=null})})})}),fn="ScrollAreaThumb",Sc=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=kc(fn,e.__scopeScrollArea);return f.jsx(Mt,{present:n||r.hasThumb,children:f.jsx(Dv,{ref:t,...o})})}),Dv=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:o,...r}=e,s=we(fn,n),c=kc(fn,n),{onThumbPositionChange:a}=c,u=L(t,p=>c.onThumbChange(p)),l=i.useRef(void 0),d=mn(()=>{l.current&&(l.current(),l.current=void 0)},100);return i.useEffect(()=>{const p=s.viewport;if(p){const m=()=>{if(d(),!l.current){const v=Rv(p,a);l.current=v,a()}};return a(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[s.viewport,d,a]),f.jsx(jt.div,{"data-state":c.hasThumb?"visible":"hidden",...r,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:T(e.onPointerDownCapture,p=>{const v=p.target.getBoundingClientRect(),w=p.clientX-v.left,h=p.clientY-v.top;c.onThumbPointerDown({x:w,y:h})}),onPointerUp:T(e.onPointerUp,c.onThumbPointerUp)})});Sc.displayName=fn;var zo="ScrollAreaCorner",Pc=i.forwardRef((e,t)=>{const n=we(zo,e.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?f.jsx(_v,{...e,ref:t}):null});Pc.displayName=zo;var _v=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,...o}=e,r=we(zo,n),[s,c]=i.useState(0),[a,u]=i.useState(0),l=!!(s&&a);return ft(r.scrollbarX,()=>{var p;const d=((p=r.scrollbarX)==null?void 0:p.offsetHeight)||0;r.onCornerHeightChange(d),u(d)}),ft(r.scrollbarY,()=>{var p;const d=((p=r.scrollbarY)==null?void 0:p.offsetWidth)||0;r.onCornerWidthChange(d),c(d)}),l?f.jsx(jt.div,{...o,ref:t,style:{width:s,height:a,position:"absolute",right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function pn(e){return e?parseInt(e,10):0}function Tc(e,t){const n=e/t;return isNaN(n)?0:n}function hn(e){const t=Tc(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*t;return Math.max(o,18)}function Lv(e,t,n,o="ltr"){const r=hn(n),s=r/2,c=t||s,a=r-c,u=n.scrollbar.paddingStart+c,l=n.scrollbar.size-n.scrollbar.paddingEnd-a,d=n.content-n.viewport,p=o==="ltr"?[0,d]:[d*-1,0];return Ac([u,l],p)(e)}function Nc(e,t,n="ltr"){const o=hn(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-r,c=t.content-t.viewport,a=s-o,u=n==="ltr"?[0,c]:[c*-1,0],l=Wo(e,u);return Ac([0,c],[0,a])(l)}function Ac(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function jc(e,t){return e>0&&e<t}var Rv=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},o=0;return function r(){const s={left:e.scrollLeft,top:e.scrollTop},c=n.left!==s.left,a=n.top!==s.top;(c||a)&&t(),n=s,o=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(o)};function mn(e,t){const n=V(e),o=i.useRef(0);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),i.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,t)},[n,t])}function ft(e,t){const n=V(t);Y(()=>{let o=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(o),r.unobserve(e)}}},[e,n])}var Mc=bc,Oc=xc,$v=Pc;const Vo=i.forwardRef(({className:e,children:t,...n},o)=>f.jsxs(Mc,{ref:o,className:R("ksjsui-relative ksjsui-size-full ksjsui-overflow-hidden",e),...n,children:[t,f.jsx(Go,{}),f.jsx($v,{})]}));Vo.displayName=Mc.displayName;const Ko=i.forwardRef(({className:e,children:t,...n},o)=>f.jsx(Oc,{ref:o,className:R(["ksjsui-size-full ksjsui-rounded-[inherit]",e]),...n,children:t}));Ko.displayName=Oc.displayName;const Go=i.forwardRef(({className:e,orientation:t="vertical",...n},o)=>f.jsx(Uo,{ref:o,orientation:t,className:R("ksjsui-flex ksjsui-touch-none ksjsui-select-none ksjsui-transition-colors",t==="vertical"&&"ksjsui-h-full ksjsui-w-2.5 ksjsui-border-l ksjsui-border-l-transparent ksjsui-p-[1px]",t==="horizontal"&&"ksjsui-h-2.5 ksjsui-flex-col ksjsui-border-t ksjsui-border-t-transparent ksjsui-p-[1px]",e),...n,children:f.jsx(Sc,{className:R(["ksjsui-relative ksjsui-flex-1 ksjsui-rounded-full ksjsui-bg-border","forced-colors:ksjsui-bg-canvas-text","forced-colors:hover:ksjsui-bg-highlight"])})}));Go.displayName=Uo.displayName;function Fv(e){const t=e+"CollectionProvider",[n,o]=ce(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=v=>{const{scope:w,children:h}=v,g=J.useRef(null),b=J.useRef(new Map).current;return f.jsx(r,{scope:w,itemMap:b,collectionRef:g,children:h})};c.displayName=t;const a=e+"CollectionSlot",u=J.forwardRef((v,w)=>{const{scope:h,children:g}=v,b=s(a,h),y=L(w,b.collectionRef);return f.jsx(ne,{ref:y,children:g})});u.displayName=a;const l=e+"CollectionItemSlot",d="data-radix-collection-item",p=J.forwardRef((v,w)=>{const{scope:h,children:g,...b}=v,y=J.useRef(null),x=L(w,y),E=s(l,h);return J.useEffect(()=>(E.itemMap.set(y,{ref:y,...b}),()=>void E.itemMap.delete(y))),f.jsx(ne,{[d]:"",ref:x,children:g})});p.displayName=l;function m(v){const w=s(e+"CollectionConsumer",v);return J.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const b=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((E,C)=>b.indexOf(E.ref.current)-b.indexOf(C.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:c,Slot:u,ItemSlot:p},m,o]}var Wv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],re=Wv.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?ne:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Bv(e,t){e&&Ae.flushSync(()=>e.dispatchEvent(t))}var Uv="DismissableLayer",Yo="dismissableLayer.update",Hv="dismissableLayer.pointerDownOutside",zv="dismissableLayer.focusOutside",Ic,Dc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_c=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...u}=e,l=i.useContext(Dc),[d,p]=i.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),w=L(t,k=>p(k)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(g),y=d?h.indexOf(d):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,C=Gv(k=>{const P=k.target,N=[...l.branches].some(M=>M.contains(P));!E||N||(r==null||r(k),c==null||c(k),k.defaultPrevented||a==null||a())},m),S=Yv(k=>{const P=k.target;[...l.branches].some(M=>M.contains(P))||(s==null||s(k),c==null||c(k),k.defaultPrevented||a==null||a())},m);return bt(k=>{y===l.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},m),i.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ic=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Lc(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ic)}},[d,m,n,l]),i.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Lc())},[d,l]),i.useEffect(()=>{const k=()=>v({});return document.addEventListener(Yo,k),()=>document.removeEventListener(Yo,k)},[]),f.jsx(re.div,{...u,ref:w,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,S.onFocusCapture),onBlurCapture:T(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,C.onPointerDownCapture)})});_c.displayName=Uv;var Vv="DismissableLayerBranch",Kv=i.forwardRef((e,t)=>{const n=i.useContext(Dc),o=i.useRef(null),r=L(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(re.div,{...e,ref:r})});Kv.displayName=Vv;function Gv(e,t=globalThis==null?void 0:globalThis.document){const n=V(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let u=function(){Rc(Hv,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Yv(e,t=globalThis==null?void 0:globalThis.document){const n=V(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Rc(zv,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Lc(){const e=new CustomEvent(Yo);document.dispatchEvent(e)}function Rc(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Bv(r,s):r.dispatchEvent(s)}var Xo="focusScope.autoFocusOnMount",qo="focusScope.autoFocusOnUnmount",$c={bubbles:!1,cancelable:!0},Xv="FocusScope",Fc=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,u]=i.useState(null),l=V(r),d=V(s),p=i.useRef(null),m=L(t,h=>u(h)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let h=function(x){if(v.paused||!a)return;const E=x.target;a.contains(E)?p.current=E:Ke(p.current,{select:!0})},g=function(x){if(v.paused||!a)return;const E=x.relatedTarget;E!==null&&(a.contains(E)||Ke(p.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&Ke(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),y.disconnect()}}},[o,a,v.paused]),i.useEffect(()=>{if(a){Uc.add(v);const h=document.activeElement;if(!a.contains(h)){const b=new CustomEvent(Xo,$c);a.addEventListener(Xo,l),a.dispatchEvent(b),b.defaultPrevented||(qv(tg(Wc(a)),{select:!0}),document.activeElement===h&&Ke(a))}return()=>{a.removeEventListener(Xo,l),setTimeout(()=>{const b=new CustomEvent(qo,$c);a.addEventListener(qo,d),a.dispatchEvent(b),b.defaultPrevented||Ke(h??document.body,{select:!0}),a.removeEventListener(qo,d),Uc.remove(v)},0)}}},[a,l,d,v]);const w=i.useCallback(h=>{if(!n&&!o||v.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(g&&b){const y=h.currentTarget,[x,E]=Zv(y);x&&E?!h.shiftKey&&b===E?(h.preventDefault(),n&&Ke(x,{select:!0})):h.shiftKey&&b===x&&(h.preventDefault(),n&&Ke(E,{select:!0})):b===y&&h.preventDefault()}},[n,o,v.paused]);return f.jsx(re.div,{tabIndex:-1,...c,ref:m,onKeyDown:w})});Fc.displayName=Xv;function qv(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Ke(o,{select:t}),document.activeElement!==n)return}function Zv(e){const t=Wc(e),n=Bc(t,e),o=Bc(t.reverse(),e);return[n,o]}function Wc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bc(e,t){for(const n of e)if(!Qv(n,{upTo:t}))return n}function Qv(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 Jv(e){return e instanceof HTMLInputElement&&"select"in e}function Ke(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Jv(e)&&t&&e.select()}}var Uc=eg();function eg(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Hc(e,t),e.unshift(t)},remove(t){var n;e=Hc(e,t),(n=e[0])==null||n.resume()}}}function Hc(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function tg(e){return e.filter(t=>t.tagName!=="A")}var ng="Arrow",zc=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return f.jsx(re.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});zc.displayName=ng;var og=zc,Zo="Popper",[Vc,Kc]=ce(Zo),[rg,Gc]=Vc(Zo),Yc=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return f.jsx(rg,{scope:t,anchor:o,onAnchorChange:r,children:n})};Yc.displayName=Zo;var Xc="PopperAnchor",qc=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Gc(Xc,n),c=i.useRef(null),a=L(t,c);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:f.jsx(re.div,{...r,ref:a})});qc.displayName=Xc;var Qo="PopperContent",[sg,ig]=Vc(Qo),Zc=i.forwardRef((e,t)=>{var F,X,Q,G,q,Z;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:w,...h}=e,g=Gc(Qo,n),[b,y]=i.useState(null),x=L(t,te=>y(te)),[E,C]=i.useState(null),S=rn(E),k=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,N=o+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(l)?l:[l],I=$.length>0,W={padding:M,boundary:$.filter(cg),altBoundary:I},{refs:A,floatingStyles:U,placement:_,isPositioned:B,middlewareData:O}=wo({strategy:"fixed",placement:N,whileElementsMounted:(...te)=>vo(...te,{animationFrame:v==="always"}),elements:{reference:g.anchor},middleware:[bo({mainAxis:r+P,alignmentAxis:c}),u&&yo({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?xo():void 0,...W}),u&&Eo({...W}),ko({...W,apply:({elements:te,rects:ue,availableWidth:_e,availableHeight:Le})=>{const{width:Re,height:_t}=ue.reference,fe=te.floating.style;fe.setProperty("--radix-popper-available-width",`${_e}px`),fe.setProperty("--radix-popper-available-height",`${Le}px`),fe.setProperty("--radix-popper-anchor-width",`${Re}px`),fe.setProperty("--radix-popper-anchor-height",`${_t}px`)}}),E&&So({element:E,padding:a}),lg({arrowWidth:k,arrowHeight:P}),m&&Co({strategy:"referenceHidden",...W})]}),[j,K]=el(_),H=V(w);Y(()=>{B&&(H==null||H())},[B,H]);const oe=(F=O.arrow)==null?void 0:F.x,ie=(X=O.arrow)==null?void 0:X.y,se=((Q=O.arrow)==null?void 0:Q.centerOffset)!==0,[me,ae]=i.useState();return Y(()=>{b&&ae(window.getComputedStyle(b).zIndex)},[b]),f.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:B?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(G=O.transformOrigin)==null?void 0:G.x,(q=O.transformOrigin)==null?void 0:q.y].join(" "),...((Z=O.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(sg,{scope:n,placedSide:j,onArrowChange:C,arrowX:oe,arrowY:ie,shouldHideArrow:se,children:f.jsx(re.div,{"data-side":j,"data-align":K,...h,ref:x,style:{...h.style,animation:B?void 0:"none"}})})})});Zc.displayName=Qo;var Qc="PopperArrow",ag={top:"bottom",right:"left",bottom:"top",left:"right"},Jc=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=ig(Qc,o),c=ag[s.placedSide];return f.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:f.jsx(og,{...r,ref:n,style:{...r.style,display:"block"}})})});Jc.displayName=Qc;function cg(e){return e!==null}var lg=e=>({name:"transformOrigin",options:e,fn(t){var g,b,y;const{placement:n,rects:o,middlewareData:r}=t,c=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[l,d]=el(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,v=(((y=r.arrow)==null?void 0:y.y)??0)+u/2;let w="",h="";return l==="bottom"?(w=c?p:`${m}px`,h=`${-u}px`):l==="top"?(w=c?p:`${m}px`,h=`${o.floating.height+u}px`):l==="right"?(w=`${-u}px`,h=c?p:`${v}px`):l==="left"&&(w=`${o.floating.width+u}px`,h=c?p:`${v}px`),{data:{x:w,y:h}}}});function el(e){const[t,n="center"]=e.split("-");return[t,n]}var ug=Yc,dg=qc,fg=Zc,pg=Jc,hg="Portal",tl=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);Y(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?mt.createPortal(f.jsx(re.div,{...o,ref:t}),c):null});tl.displayName=hg;function nl(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var mg="VisuallyHidden",ol=i.forwardRef((e,t)=>f.jsx(re.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ol.displayName=mg;var vg=[" ","Enter","ArrowUp","ArrowDown"],gg=[" ","Enter"],Ot="Select",[vn,gn,wg]=Fv(Ot),[pt,ey]=ce(Ot,[wg,Kc]),wn=Kc(),[bg,Ge]=pt(Ot),[yg,xg]=pt(Ot),rl=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:c,defaultValue:a,onValueChange:u,dir:l,name:d,autoComplete:p,disabled:m,required:v,form:w}=e,h=wn(t),[g,b]=i.useState(null),[y,x]=i.useState(null),[E,C]=i.useState(!1),S=Yt(l),[k=!1,P]=Me({prop:o,defaultProp:r,onChange:s}),[N,M]=Me({prop:c,defaultProp:a,onChange:u}),$=i.useRef(null),I=g?w||!!g.closest("form"):!0,[W,A]=i.useState(new Set),U=Array.from(W).map(_=>_.props.value).join(";");return f.jsx(ug,{...h,children:f.jsxs(bg,{required:v,scope:t,trigger:g,onTriggerChange:b,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:ve(),value:N,onValueChange:M,open:k,onOpenChange:P,dir:S,triggerPointerDownPosRef:$,disabled:m,children:[f.jsx(vn.Provider,{scope:t,children:f.jsx(yg,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(_=>{A(B=>new Set(B).add(_))},[]),onNativeOptionRemove:i.useCallback(_=>{A(B=>{const O=new Set(B);return O.delete(_),O})},[]),children:n})}),I?f.jsxs(Tl,{"aria-hidden":!0,required:v,tabIndex:-1,name:d,autoComplete:p,value:N,onChange:_=>M(_.target.value),disabled:m,form:w,children:[N===void 0?f.jsx("option",{value:""}):null,Array.from(W)]},U):null]})})};rl.displayName=Ot;var sl="SelectTrigger",il=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=wn(n),c=Ge(sl,n),a=c.disabled||o,u=L(t,c.onTriggerChange),l=gn(n),d=i.useRef("touch"),[p,m,v]=Nl(h=>{const g=l().filter(x=>!x.disabled),b=g.find(x=>x.value===c.value),y=Al(g,h,b);y!==void 0&&c.onValueChange(y.value)}),w=h=>{a||(c.onOpenChange(!0),v()),h&&(c.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return f.jsx(dg,{asChild:!0,...s,children:f.jsx(re.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Pl(c.value)?"":void 0,...r,ref:u,onClick:T(r.onClick,h=>{h.currentTarget.focus(),d.current!=="mouse"&&w(h)}),onPointerDown:T(r.onPointerDown,h=>{d.current=h.pointerType;const g=h.target;g.hasPointerCapture(h.pointerId)&&g.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(w(h),h.preventDefault())}),onKeyDown:T(r.onKeyDown,h=>{const g=p.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&m(h.key),!(g&&h.key===" ")&&vg.includes(h.key)&&(w(),h.preventDefault())})})})});il.displayName=sl;var al="SelectValue",cl=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:c="",...a}=e,u=Ge(al,n),{onValueNodeHasChildrenChange:l}=u,d=s!==void 0,p=L(t,u.onValueNodeChange);return Y(()=>{l(d)},[l,d]),f.jsx(re.span,{...a,ref:p,style:{pointerEvents:"none"},children:Pl(u.value)?f.jsx(f.Fragment,{children:c}):s})});cl.displayName=al;var Eg="SelectIcon",ll=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return f.jsx(re.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});ll.displayName=Eg;var kg="SelectPortal",ul=e=>f.jsx(tl,{asChild:!0,...e});ul.displayName=kg;var Qe="SelectContent",dl=i.forwardRef((e,t)=>{const n=Ge(Qe,e.__scopeSelect),[o,r]=i.useState();if(Y(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?Ae.createPortal(f.jsx(fl,{scope:e.__scopeSelect,children:f.jsx(vn.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),s):null}return f.jsx(pl,{...e,ref:t})});dl.displayName=Qe;var Ee=10,[fl,Ye]=pt(Qe),Cg="SelectContentImpl",pl=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:c,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:v,sticky:w,hideWhenDetached:h,avoidCollisions:g,...b}=e,y=Ge(Qe,n),[x,E]=i.useState(null),[C,S]=i.useState(null),k=L(t,F=>E(F)),[P,N]=i.useState(null),[M,$]=i.useState(null),I=gn(n),[W,A]=i.useState(!1),U=i.useRef(!1);i.useEffect(()=>{if(x)return Xn(x)},[x]),Hn();const _=i.useCallback(F=>{const[X,...Q]=I().map(Z=>Z.ref.current),[G]=Q.slice(-1),q=document.activeElement;for(const Z of F)if(Z===q||(Z==null||Z.scrollIntoView({block:"nearest"}),Z===X&&C&&(C.scrollTop=0),Z===G&&C&&(C.scrollTop=C.scrollHeight),Z==null||Z.focus(),document.activeElement!==q))return},[I,C]),B=i.useCallback(()=>_([P,x]),[_,P,x]);i.useEffect(()=>{W&&B()},[W,B]);const{onOpenChange:O,triggerPointerDownPosRef:j}=y;i.useEffect(()=>{if(x){let F={x:0,y:0};const X=G=>{var q,Z;F={x:Math.abs(Math.round(G.pageX)-(((q=j.current)==null?void 0:q.x)??0)),y:Math.abs(Math.round(G.pageY)-(((Z=j.current)==null?void 0:Z.y)??0))}},Q=G=>{F.x<=10&&F.y<=10?G.preventDefault():x.contains(G.target)||O(!1),document.removeEventListener("pointermove",X),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",Q,{capture:!0})}}},[x,O,j]),i.useEffect(()=>{const F=()=>O(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[O]);const[K,H]=Nl(F=>{const X=I().filter(q=>!q.disabled),Q=X.find(q=>q.ref.current===document.activeElement),G=Al(X,F,Q);G&&setTimeout(()=>G.ref.current.focus())}),oe=i.useCallback((F,X,Q)=>{const G=!U.current&&!Q;(y.value!==void 0&&y.value===X||G)&&(N(F),G&&(U.current=!0))},[y.value]),ie=i.useCallback(()=>x==null?void 0:x.focus(),[x]),se=i.useCallback((F,X,Q)=>{const G=!U.current&&!Q;(y.value!==void 0&&y.value===X||G)&&$(F)},[y.value]),me=o==="popper"?Jo:hl,ae=me===Jo?{side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:v,sticky:w,hideWhenDetached:h,avoidCollisions:g}:{};return f.jsx(fl,{scope:n,content:x,viewport:C,onViewportChange:S,itemRefCallback:oe,selectedItem:P,onItemLeave:ie,itemTextRefCallback:se,focusSelectedItem:B,selectedItemText:M,position:o,isPositioned:W,searchRef:K,children:f.jsx(zt,{as:ne,allowPinchZoom:!0,children:f.jsx(Fc,{asChild:!0,trapped:y.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:T(r,F=>{var X;(X=y.trigger)==null||X.focus({preventScroll:!0}),F.preventDefault()}),children:f.jsx(_c,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:f.jsx(me,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:F=>F.preventDefault(),...b,...ae,onPlaced:()=>A(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:T(b.onKeyDown,F=>{const X=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!X&&F.key.length===1&&H(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let G=I().filter(q=>!q.disabled).map(q=>q.ref.current);if(["ArrowUp","End"].includes(F.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const q=F.target,Z=G.indexOf(q);G=G.slice(Z+1)}setTimeout(()=>_(G)),F.preventDefault()}})})})})})})});pl.displayName=Cg;var Sg="SelectItemAlignedPosition",hl=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Ge(Qe,n),c=Ye(Qe,n),[a,u]=i.useState(null),[l,d]=i.useState(null),p=L(t,k=>d(k)),m=gn(n),v=i.useRef(!1),w=i.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:b,focusSelectedItem:y}=c,x=i.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&l&&h&&g&&b){const k=s.trigger.getBoundingClientRect(),P=l.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),M=b.getBoundingClientRect();if(s.dir!=="rtl"){const q=M.left-P.left,Z=N.left-q,te=k.left-Z,ue=k.width+te,_e=Math.max(ue,P.width),Le=window.innerWidth-Ee,Re=Wo(Z,[Ee,Math.max(Ee,Le-_e)]);a.style.minWidth=ue+"px",a.style.left=Re+"px"}else{const q=P.right-M.right,Z=window.innerWidth-N.right-q,te=window.innerWidth-k.right-Z,ue=k.width+te,_e=Math.max(ue,P.width),Le=window.innerWidth-Ee,Re=Wo(Z,[Ee,Math.max(Ee,Le-_e)]);a.style.minWidth=ue+"px",a.style.right=Re+"px"}const $=m(),I=window.innerHeight-Ee*2,W=h.scrollHeight,A=window.getComputedStyle(l),U=parseInt(A.borderTopWidth,10),_=parseInt(A.paddingTop,10),B=parseInt(A.borderBottomWidth,10),O=parseInt(A.paddingBottom,10),j=U+_+W+O+B,K=Math.min(g.offsetHeight*5,j),H=window.getComputedStyle(h),oe=parseInt(H.paddingTop,10),ie=parseInt(H.paddingBottom,10),se=k.top+k.height/2-Ee,me=I-se,ae=g.offsetHeight/2,F=g.offsetTop+ae,X=U+_+F,Q=j-X;if(X<=se){const q=$.length>0&&g===$[$.length-1].ref.current;a.style.bottom="0px";const Z=l.clientHeight-h.offsetTop-h.offsetHeight,te=Math.max(me,ae+(q?ie:0)+Z+B),ue=X+te;a.style.height=ue+"px"}else{const q=$.length>0&&g===$[0].ref.current;a.style.top="0px";const te=Math.max(se,U+h.offsetTop+(q?oe:0)+ae)+Q;a.style.height=te+"px",h.scrollTop=X-se+h.offsetTop}a.style.margin=`${Ee}px 0`,a.style.minHeight=K+"px",a.style.maxHeight=I+"px",o==null||o(),requestAnimationFrame(()=>v.current=!0)}},[m,s.trigger,s.valueNode,a,l,h,g,b,s.dir,o]);Y(()=>x(),[x]);const[E,C]=i.useState();Y(()=>{l&&C(window.getComputedStyle(l).zIndex)},[l]);const S=i.useCallback(k=>{k&&w.current===!0&&(x(),y==null||y(),w.current=!1)},[x,y]);return f.jsx(Tg,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:S,children:f.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:f.jsx(re.div,{...r,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});hl.displayName=Sg;var Pg="SelectPopperPosition",Jo=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=Ee,...s}=e,c=wn(n);return f.jsx(fg,{...c,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.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)"}})});Jo.displayName=Pg;var[Tg,er]=pt(Qe,{}),tr="SelectViewport",ml=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=Ye(tr,n),c=er(tr,n),a=L(t,s.onViewportChange),u=i.useRef(0);return f.jsxs(f.Fragment,{children:[f.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:o}),f.jsx(vn.Slot,{scope:n,children:f.jsx(re.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:T(r.onScroll,l=>{const d=l.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=c;if(m!=null&&m.current&&p){const v=Math.abs(u.current-d.scrollTop);if(v>0){const w=window.innerHeight-Ee*2,h=parseFloat(p.style.minHeight),g=parseFloat(p.style.height),b=Math.max(h,g);if(b<w){const y=b+v,x=Math.min(w,y),E=y-x;p.style.height=x+"px",p.style.bottom==="0px"&&(d.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}u.current=d.scrollTop})})})]})});ml.displayName=tr;var vl="SelectGroup",[Ng,Ag]=pt(vl),jg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=ve();return f.jsx(Ng,{scope:n,id:r,children:f.jsx(re.div,{role:"group","aria-labelledby":r,...o,ref:t})})});jg.displayName=vl;var gl="SelectLabel",wl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Ag(gl,n);return f.jsx(re.div,{id:r.id,...o,ref:t})});wl.displayName=gl;var bn="SelectItem",[Mg,bl]=pt(bn),yl=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...c}=e,a=Ge(bn,n),u=Ye(bn,n),l=a.value===o,[d,p]=i.useState(s??""),[m,v]=i.useState(!1),w=L(t,y=>{var x;return(x=u.itemRefCallback)==null?void 0:x.call(u,y,o,r)}),h=ve(),g=i.useRef("touch"),b=()=>{r||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")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 f.jsx(Mg,{scope:n,value:o,disabled:r,textId:h,isSelected:l,onItemTextChange:i.useCallback(y=>{p(x=>x||((y==null?void 0:y.textContent)??"").trim())},[]),children:f.jsx(vn.ItemSlot,{scope:n,value:o,disabled:r,textValue:d,children:f.jsx(re.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":l&&m,"data-state":l?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...c,ref:w,onFocus:T(c.onFocus,()=>v(!0)),onBlur:T(c.onBlur,()=>v(!1)),onClick:T(c.onClick,()=>{g.current!=="mouse"&&b()}),onPointerUp:T(c.onPointerUp,()=>{g.current==="mouse"&&b()}),onPointerDown:T(c.onPointerDown,y=>{g.current=y.pointerType}),onPointerMove:T(c.onPointerMove,y=>{var x;g.current=y.pointerType,r?(x=u.onItemLeave)==null||x.call(u):g.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:T(c.onPointerLeave,y=>{var x;y.currentTarget===document.activeElement&&((x=u.onItemLeave)==null||x.call(u))}),onKeyDown:T(c.onKeyDown,y=>{var E;((E=u.searchRef)==null?void 0:E.current)!==""&&y.key===" "||(gg.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});yl.displayName=bn;var It="SelectItemText",xl=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,c=Ge(It,n),a=Ye(It,n),u=bl(It,n),l=xg(It,n),[d,p]=i.useState(null),m=L(t,b=>p(b),u.onItemTextChange,b=>{var y;return(y=a.itemTextRefCallback)==null?void 0:y.call(a,b,u.value,u.disabled)}),v=d==null?void 0:d.textContent,w=i.useMemo(()=>f.jsx("option",{value:u.value,disabled:u.disabled,children:v},u.value),[u.disabled,u.value,v]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return Y(()=>(h(w),()=>g(w)),[h,g,w]),f.jsxs(f.Fragment,{children:[f.jsx(re.span,{id:u.textId,...s,ref:m}),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Ae.createPortal(s.children,c.valueNode):null]})});xl.displayName=It;var El="SelectItemIndicator",kl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return bl(El,n).isSelected?f.jsx(re.span,{"aria-hidden":!0,...o,ref:t}):null});kl.displayName=El;var nr="SelectScrollUpButton",Og=i.forwardRef((e,t)=>{const n=Ye(nr,e.__scopeSelect),o=er(nr,e.__scopeSelect),[r,s]=i.useState(!1),c=L(t,o.onScrollButtonChange);return Y(()=>{if(n.viewport&&n.isPositioned){let a=function(){const l=u.scrollTop>0;s(l)};const u=n.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?f.jsx(Cl,{...e,ref:c,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=n;a&&u&&(a.scrollTop=a.scrollTop-u.offsetHeight)}}):null});Og.displayName=nr;var or="SelectScrollDownButton",Ig=i.forwardRef((e,t)=>{const n=Ye(or,e.__scopeSelect),o=er(or,e.__scopeSelect),[r,s]=i.useState(!1),c=L(t,o.onScrollButtonChange);return Y(()=>{if(n.viewport&&n.isPositioned){let a=function(){const l=u.scrollHeight-u.clientHeight,d=Math.ceil(u.scrollTop)<l;s(d)};const u=n.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?f.jsx(Cl,{...e,ref:c,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=n;a&&u&&(a.scrollTop=a.scrollTop+u.offsetHeight)}}):null});Ig.displayName=or;var Cl=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=Ye("SelectScrollButton",n),c=i.useRef(null),a=gn(n),u=i.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return i.useEffect(()=>()=>u(),[u]),Y(()=>{var d;const l=a().find(p=>p.ref.current===document.activeElement);(d=l==null?void 0:l.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),f.jsx(re.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:T(r.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(o,50))}),onPointerMove:T(r.onPointerMove,()=>{var l;(l=s.onItemLeave)==null||l.call(s),c.current===null&&(c.current=window.setInterval(o,50))}),onPointerLeave:T(r.onPointerLeave,()=>{u()})})}),Dg="SelectSeparator",Sl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return f.jsx(re.div,{"aria-hidden":!0,...o,ref:t})});Sl.displayName=Dg;var rr="SelectArrow",_g=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=wn(n),s=Ge(rr,n),c=Ye(rr,n);return s.open&&c.position==="popper"?f.jsx(pg,{...r,...o,ref:t}):null});_g.displayName=rr;function Pl(e){return e===""||e===void 0}var Tl=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=i.useRef(null),s=L(t,r),c=nl(n);return i.useEffect(()=>{const a=r.current,u=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(u,"value").set;if(c!==n&&d){const p=new Event("change",{bubbles:!0});d.call(a,n),a.dispatchEvent(p)}},[c,n]),f.jsx(ol,{asChild:!0,children:f.jsx("select",{...o,ref:s,defaultValue:n})})});Tl.displayName="BubbleSelect";function Nl(e){const t=V(e),n=i.useRef(""),o=i.useRef(0),r=i.useCallback(c=>{const a=n.current+c;t(a),function u(l){n.current=l,window.clearTimeout(o.current),l!==""&&(o.current=window.setTimeout(()=>u(""),1e3))}(a)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Al(e,t,n){const r=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=Lg(e,Math.max(s,0));r.length===1&&(c=c.filter(l=>l!==n));const u=c.find(l=>l.textValue.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function Lg(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Rg=rl,jl=il,$g=cl,Fg=ll,Wg=ul,Ml=dl,Bg=ml,Ol=wl,Il=yl,Ug=xl,Hg=kl,Dl=Sl;const zg=Rg,Vg=$g,_l=i.forwardRef(({className:e,children:t,...n},o)=>f.jsxs(jl,{ref:o,className:R(["ksjsui-flex ksjsui-h-10 ksjsui-w-full ksjsui-items-center ksjsui-justify-between ksjsui-gap-x-2 ksjsui-rounded-md ksjsui-border ksjsui-border-input ksjsui-bg-background ksjsui-px-3 ksjsui-py-2 ksjsui-text-sm ksjsui-ring-offset-background","data-[placeholder]:ksjsui-text-placeholder","focus:ksjsui-outline-none focus:ksjsui-ring-2 focus:ksjsui-ring-ring focus:ksjsui-ring-offset-2","disabled:ksjsui-cursor-not-allowed disabled:ksjsui-opacity-50","[&>span]:ksjsui-truncate"],e),...n,children:[t,f.jsx(Fg,{asChild:!0,children:f.jsx(Pp,{className:"ksjsui-size-4 ksjsui-shrink-0 ksjsui-opacity-50"})})]}));_l.displayName=jl.displayName;const Ll=i.forwardRef(({className:e,children:t,position:n="popper",...o},r)=>f.jsx(Wg,{children:f.jsx(Ml,{ref:r,className:R(["ksjsui-z-50 ksjsui-flex ksjsui-flex-col ksjsui-gap-y-2 ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-border-0 ksjsui-bg-popover ksjsui-text-popover-foreground ksjsui-shadow-md","ksjsui-max-h-[var(--radix-select-content-available-height)]","ksjsui-min-w-[var(--radix-select-trigger-width)] ksjsui-max-w-[var(--radix-select-content-available-width)]","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0 data-[state=open]:ksjsui-zoom-in-95","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95","data-[side=top]:ksjsui-slide-in-from-bottom-2","data-[side=right]:ksjsui-slide-in-from-left-2","data-[side=bottom]:ksjsui-slide-in-from-top-2","data-[side=left]:ksjsui-slide-in-from-right-2","forced-colors:ksjsui-border"],n==="popper"&&["data-[side=top]:-ksjsui-translate-y-1","data-[side=right]:ksjsui-translate-x-1","data-[side=bottom]:ksjsui-translate-y-1","data-[side=left]:-ksjsui-translate-x-1"],e),position:n,...o,children:f.jsx(Bg,{className:R("ksjsui-flex ksjsui-flex-col ksjsui-gap-y-2 ksjsui-px-2 ksjsui-py-4"),asChild:!0,children:f.jsx(Vo,{children:f.jsx(Ko,{children:t})})})})}));Ll.displayName=Ml.displayName;const Kg=i.forwardRef(({className:e,...t},n)=>f.jsx(Ol,{ref:n,className:R("ksjsui-px-2 ksjsui-pt-2 ksjsui-text-sm ksjsui-text-label",e),...t}));Kg.displayName=Ol.displayName;const Rl=i.forwardRef(({className:e,children:t,...n},o)=>f.jsxs(Il,{ref:o,className:R(["ksjsui-flex ksjsui-w-full ksjsui-cursor-default ksjsui-select-none ksjsui-items-center ksjsui-justify-between ksjsui-gap-2 ksjsui-rounded-sm ksjsui-px-2 ksjsui-py-1 ksjsui-text-base ksjsui-outline-0","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","focus:ksjsui-bg-selected-hover focus:ksjsui-text-selected-foreground","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],e),...n,children:[f.jsx(Ug,{children:t}),f.jsx(Hg,{children:f.jsx(Gs,{className:"ksjsui-size-6 ksjsui-shrink-0"})})]}));Rl.displayName=Il.displayName;const Gg=i.forwardRef(({className:e,...t},n)=>f.jsx(Dl,{ref:n,className:R(["ksjsui-my-1 ksjsui-h-px ksjsui-shrink-0 ksjsui-bg-border","forced-colors:ksjsui-bg-button-border"],e),...t}));Gg.displayName=Dl.displayName;var Yg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Xg=Yg.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?ne:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),qg="Separator",$l="horizontal",Zg=["horizontal","vertical"],Fl=i.forwardRef((e,t)=>{const{decorative:n,orientation:o=$l,...r}=e,s=Qg(o)?o:$l,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return f.jsx(Xg.div,{"data-orientation":s,...a,...r,ref:t})});Fl.displayName=qg;function Qg(e){return Zg.includes(e)}var Wl=Fl;const Bl=i.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...o},r)=>f.jsx(Wl,{ref:r,decorative:n,orientation:t,className:R("ksjsui-shrink-0 ksjsui-bg-border forced-colors:ksjsui-bg-canvas-text forced-colors:ksjsui-forced-color-adjust-none",t==="horizontal"?"ksjsui-block ksjsui-h-px ksjsui-w-full":"ksjsui-inline-block ksjsui-w-px",e),...o}));Bl.displayName=Wl.displayName;var Jg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ul=Jg.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?ne:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),sr="Switch",[ew,ty]=ce(sr),[tw,nw]=ew(sr),Hl=i.forwardRef((e,t)=>{const{__scopeSwitch:n,name:o,checked:r,defaultChecked:s,required:c,disabled:a,value:u="on",onCheckedChange:l,form:d,...p}=e,[m,v]=i.useState(null),w=L(t,x=>v(x)),h=i.useRef(!1),g=m?d||!!m.closest("form"):!0,[b=!1,y]=Me({prop:r,defaultProp:s,onChange:l});return f.jsxs(tw,{scope:n,checked:b,disabled:a,children:[f.jsx(Ul.button,{type:"button",role:"switch","aria-checked":b,"aria-required":c,"data-state":Kl(b),"data-disabled":a?"":void 0,disabled:a,value:u,...p,ref:w,onClick:T(e.onClick,x=>{y(E=>!E),g&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),g&&f.jsx(ow,{control:m,bubbles:!h.current,name:o,value:u,checked:b,required:c,disabled:a,form:d,style:{transform:"translateX(-100%)"}})]})});Hl.displayName=sr;var zl="SwitchThumb",Vl=i.forwardRef((e,t)=>{const{__scopeSwitch:n,...o}=e,r=nw(zl,n);return f.jsx(Ul.span,{"data-state":Kl(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:t})});Vl.displayName=zl;var ow=e=>{const{control:t,checked:n,bubbles:o=!0,...r}=e,s=i.useRef(null),c=nl(n),a=rn(t);return i.useEffect(()=>{const u=s.current,l=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(l,"checked").set;if(c!==n&&p){const m=new Event("click",{bubbles:o});p.call(u,n),u.dispatchEvent(m)}},[c,n,o]),f.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:s,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Kl(e){return e?"checked":"unchecked"}var Gl=Hl,rw=Vl;const Yl=i.forwardRef(({className:e,tabIndex:t=0,...n},o)=>f.jsx(Gl,{className:R(["ksjsui-peer ksjsui-inline-flex ksjsui-h-6 ksjsui-w-11 ksjsui-shrink-0 ksjsui-cursor-pointer ksjsui-items-center ksjsui-rounded-full ksjsui-border-2 ksjsui-border-transparent ksjsui-bg-neutral ksjsui-transition-colors","focus-visible:ksjsui-outline-none focus-visible:ksjsui-ring-2 focus-visible:ksjsui-ring-ring focus-visible:ksjsui-ring-offset-2 focus-visible:ksjsui-ring-offset-background","disabled:ksjsui-pointer-events-none disabled:ksjsui-cursor-not-allowed disabled:ksjsui-opacity-50","data-[state=unchecked]:ksjsui-bg-input","data-[state=checked]:ksjsui-border-secondary data-[state=checked]:ksjsui-bg-secondary","forced-colors:ksjsui-border-button-border forced-colors:ksjsui-transition-none","forced-colors:data-[state=checked]:ksjsui-border-highlight forced-colors:data-[state=checked]:ksjsui-bg-highlight"],e),tabIndex:t,...n,ref:o,children:f.jsx(rw,{className:R(["ksjsui-pointer-events-none ksjsui-block ksjsui-size-5 ksjsui-translate-x-0 ksjsui-rounded-full ksjsui-bg-thumb ksjsui-shadow ksjsui-ring-0 ksjsui-transition-transform","data-[state=unchecked]:ksjsui-translate-x-0","data-[state=checked]:ksjsui-translate-x-5","rtl:data-[state=checked]:-ksjsui-translate-x-5","forced-colors:ksjsui-bg-button-border forced-colors:ksjsui-transition-none","forced-colors:data-[state=checked]:ksjsui-bg-canvas"])})}));Yl.displayName=Gl.displayName;function sw(e){const t=e+"CollectionProvider",[n,o]=ce(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=v=>{const{scope:w,children:h}=v,g=J.useRef(null),b=J.useRef(new Map).current;return f.jsx(r,{scope:w,itemMap:b,collectionRef:g,children:h})};c.displayName=t;const a=e+"CollectionSlot",u=J.forwardRef((v,w)=>{const{scope:h,children:g}=v,b=s(a,h),y=L(w,b.collectionRef);return f.jsx(ne,{ref:y,children:g})});u.displayName=a;const l=e+"CollectionItemSlot",d="data-radix-collection-item",p=J.forwardRef((v,w)=>{const{scope:h,children:g,...b}=v,y=J.useRef(null),x=L(w,y),E=s(l,h);return J.useEffect(()=>(E.itemMap.set(y,{ref:y,...b}),()=>void E.itemMap.delete(y))),f.jsx(ne,{[d]:"",ref:x,children:g})});p.displayName=l;function m(v){const w=s(e+"CollectionConsumer",v);return J.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const b=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((E,C)=>b.indexOf(E.ref.current)-b.indexOf(C.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:c,Slot:u,ItemSlot:p},m,o]}var iw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ne=iw.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?ne:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Xl(e,t){e&&Ae.flushSync(()=>e.dispatchEvent(t))}var aw="DismissableLayer",ir="dismissableLayer.update",cw="dismissableLayer.pointerDownOutside",lw="dismissableLayer.focusOutside",ql,Zl=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ql=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...u}=e,l=i.useContext(Zl),[d,p]=i.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),w=L(t,k=>p(k)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(g),y=d?h.indexOf(d):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,C=dw(k=>{const P=k.target,N=[...l.branches].some(M=>M.contains(P));!E||N||(r==null||r(k),c==null||c(k),k.defaultPrevented||a==null||a())},m),S=fw(k=>{const P=k.target;[...l.branches].some(M=>M.contains(P))||(s==null||s(k),c==null||c(k),k.defaultPrevented||a==null||a())},m);return bt(k=>{y===l.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},m),i.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ql=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),eu(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ql)}},[d,m,n,l]),i.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),eu())},[d,l]),i.useEffect(()=>{const k=()=>v({});return document.addEventListener(ir,k),()=>document.removeEventListener(ir,k)},[]),f.jsx(Ne.div,{...u,ref:w,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,S.onFocusCapture),onBlurCapture:T(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,C.onPointerDownCapture)})});Ql.displayName=aw;var uw="DismissableLayerBranch",Jl=i.forwardRef((e,t)=>{const n=i.useContext(Zl),o=i.useRef(null),r=L(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(Ne.div,{...e,ref:r})});Jl.displayName=uw;function dw(e,t=globalThis==null?void 0:globalThis.document){const n=V(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let u=function(){tu(cw,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function fw(e,t=globalThis==null?void 0:globalThis.document){const n=V(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&tu(lw,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function eu(){const e=new CustomEvent(ir);document.dispatchEvent(e)}function tu(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Xl(r,s):r.dispatchEvent(s)}var pw=Ql,hw=Jl,mw="Portal",nu=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);Y(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?mt.createPortal(f.jsx(Ne.div,{...o,ref:t}),c):null});nu.displayName=mw;function vw(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var ou=e=>{const{present:t,children:n}=e,o=gw(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=L(o.ref,ww(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};ou.displayName="Presence";function gw(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,u]=vw(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=yn(o.current);s.current=a==="mounted"?l:"none"},[a]),Y(()=>{const l=o.current,d=r.current;if(d!==e){const m=s.current,v=yn(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(d&&m!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),Y(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,p=v=>{const h=yn(o.current).includes(v.animationName);if(v.target===t&&h&&(u("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=v=>{v.target===t&&(s.current=yn(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function yn(e){return(e==null?void 0:e.animationName)||"none"}function ww(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bw="VisuallyHidden",ar=i.forwardRef((e,t)=>f.jsx(Ne.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ar.displayName=bw;var cr="ToastProvider",[lr,yw,xw]=sw("Toast"),[ru,ny]=ce("Toast",[xw]),[Ew,xn]=ru(cr),su=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:c}=e,[a,u]=i.useState(null),[l,d]=i.useState(0),p=i.useRef(!1),m=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${cr}\`. Expected non-empty \`string\`.`),f.jsx(lr.Provider,{scope:t,children:f.jsx(Ew,{scope:t,label:n,duration:o,swipeDirection:r,swipeThreshold:s,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:i.useCallback(()=>d(v=>v+1),[]),onToastRemove:i.useCallback(()=>d(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:c})})};su.displayName=cr;var iu="ToastViewport",kw=["F8"],ur="toast.viewportPause",dr="toast.viewportResume",au=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:o=kw,label:r="Notifications ({hotkey})",...s}=e,c=xn(iu,n),a=yw(n),u=i.useRef(null),l=i.useRef(null),d=i.useRef(null),p=i.useRef(null),m=L(t,p,c.onViewportChange),v=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=c.toastCount>0;i.useEffect(()=>{const g=b=>{var x;o.length!==0&&o.every(E=>b[E]||b.code===E)&&((x=p.current)==null||x.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[o]),i.useEffect(()=>{const g=u.current,b=p.current;if(w&&g&&b){const y=()=>{if(!c.isClosePausedRef.current){const S=new CustomEvent(ur);b.dispatchEvent(S),c.isClosePausedRef.current=!0}},x=()=>{if(c.isClosePausedRef.current){const S=new CustomEvent(dr);b.dispatchEvent(S),c.isClosePausedRef.current=!1}},E=S=>{!g.contains(S.relatedTarget)&&x()},C=()=>{g.contains(document.activeElement)||x()};return g.addEventListener("focusin",y),g.addEventListener("focusout",E),g.addEventListener("pointermove",y),g.addEventListener("pointerleave",C),window.addEventListener("blur",y),window.addEventListener("focus",x),()=>{g.removeEventListener("focusin",y),g.removeEventListener("focusout",E),g.removeEventListener("pointermove",y),g.removeEventListener("pointerleave",C),window.removeEventListener("blur",y),window.removeEventListener("focus",x)}}},[w,c.isClosePausedRef]);const h=i.useCallback(({tabbingDirection:g})=>{const y=a().map(x=>{const E=x.ref.current,C=[E,...Lw(E)];return g==="forwards"?C:C.reverse()});return(g==="forwards"?y.reverse():y).flat()},[a]);return i.useEffect(()=>{const g=p.current;if(g){const b=y=>{var C,S,k;const x=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!x){const P=document.activeElement,N=y.shiftKey;if(y.target===g&&N){(C=l.current)==null||C.focus();return}const I=h({tabbingDirection:N?"backwards":"forwards"}),W=I.findIndex(A=>A===P);hr(I.slice(W+1))?y.preventDefault():N?(S=l.current)==null||S.focus():(k=d.current)==null||k.focus()}};return g.addEventListener("keydown",b),()=>g.removeEventListener("keydown",b)}},[a,h]),f.jsxs(hw,{ref:u,role:"region","aria-label":r.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&f.jsx(fr,{ref:l,onFocusFromOutsideViewport:()=>{const g=h({tabbingDirection:"forwards"});hr(g)}}),f.jsx(lr.Slot,{scope:n,children:f.jsx(Ne.ol,{tabIndex:-1,...s,ref:m})}),w&&f.jsx(fr,{ref:d,onFocusFromOutsideViewport:()=>{const g=h({tabbingDirection:"backwards"});hr(g)}})]})});au.displayName=iu;var cu="ToastFocusProxy",fr=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:o,...r}=e,s=xn(cu,n);return f.jsx(ar,{"aria-hidden":!0,tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:c=>{var l;const a=c.relatedTarget;!((l=s.viewport)!=null&&l.contains(a))&&o()}})});fr.displayName=cu;var En="Toast",Cw="toast.swipeStart",Sw="toast.swipeMove",Pw="toast.swipeCancel",Tw="toast.swipeEnd",lu=i.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:r,onOpenChange:s,...c}=e,[a=!0,u]=Me({prop:o,defaultProp:r,onChange:s});return f.jsx(ou,{present:n||a,children:f.jsx(jw,{open:a,...c,ref:t,onClose:()=>u(!1),onPause:V(e.onPause),onResume:V(e.onResume),onSwipeStart:T(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:T(e.onSwipeMove,l=>{const{x:d,y:p}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:T(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:T(e.onSwipeEnd,l=>{const{x:d,y:p}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),u(!1)})})})});lu.displayName=En;var[Nw,Aw]=ru(En,{onClose(){}}),jw=i.forwardRef((e,t)=>{const{__scopeToast:n,type:o="foreground",duration:r,open:s,onClose:c,onEscapeKeyDown:a,onPause:u,onResume:l,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:v,...w}=e,h=xn(En,n),[g,b]=i.useState(null),y=L(t,A=>b(A)),x=i.useRef(null),E=i.useRef(null),C=r||h.duration,S=i.useRef(0),k=i.useRef(C),P=i.useRef(0),{onToastAdd:N,onToastRemove:M}=h,$=V(()=>{var U;(g==null?void 0:g.contains(document.activeElement))&&((U=h.viewport)==null||U.focus()),c()}),I=i.useCallback(A=>{!A||A===1/0||(window.clearTimeout(P.current),S.current=new Date().getTime(),P.current=window.setTimeout($,A))},[$]);i.useEffect(()=>{const A=h.viewport;if(A){const U=()=>{I(k.current),l==null||l()},_=()=>{const B=new Date().getTime()-S.current;k.current=k.current-B,window.clearTimeout(P.current),u==null||u()};return A.addEventListener(ur,_),A.addEventListener(dr,U),()=>{A.removeEventListener(ur,_),A.removeEventListener(dr,U)}}},[h.viewport,C,u,l,I]),i.useEffect(()=>{s&&!h.isClosePausedRef.current&&I(C)},[s,C,h.isClosePausedRef,I]),i.useEffect(()=>(N(),()=>M()),[N,M]);const W=i.useMemo(()=>g?vu(g):null,[g]);return h.viewport?f.jsxs(f.Fragment,{children:[W&&f.jsx(Mw,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),f.jsx(Nw,{scope:n,onClose:$,children:Ae.createPortal(f.jsx(lr.ItemSlot,{scope:n,children:f.jsx(pw,{asChild:!0,onEscapeKeyDown:T(a,()=>{h.isFocusedToastEscapeKeyDownRef.current||$(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(Ne.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":h.swipeDirection,...w,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:T(e.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:T(e.onPointerDown,A=>{A.button===0&&(x.current={x:A.clientX,y:A.clientY})}),onPointerMove:T(e.onPointerMove,A=>{if(!x.current)return;const U=A.clientX-x.current.x,_=A.clientY-x.current.y,B=!!E.current,O=["left","right"].includes(h.swipeDirection),j=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,K=O?j(0,U):0,H=O?0:j(0,_),oe=A.pointerType==="touch"?10:2,ie={x:K,y:H},se={originalEvent:A,delta:ie};B?(E.current=ie,kn(Sw,p,se,{discrete:!1})):gu(ie,h.swipeDirection,oe)?(E.current=ie,kn(Cw,d,se,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(U)>oe||Math.abs(_)>oe)&&(x.current=null)}),onPointerUp:T(e.onPointerUp,A=>{const U=E.current,_=A.target;if(_.hasPointerCapture(A.pointerId)&&_.releasePointerCapture(A.pointerId),E.current=null,x.current=null,U){const B=A.currentTarget,O={originalEvent:A,delta:U};gu(U,h.swipeDirection,h.swipeThreshold)?kn(Tw,v,O,{discrete:!0}):kn(Pw,m,O,{discrete:!0}),B.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),Mw=e=>{const{__scopeToast:t,children:n,...o}=e,r=xn(En,t),[s,c]=i.useState(!1),[a,u]=i.useState(!1);return Dw(()=>c(!0)),i.useEffect(()=>{const l=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:f.jsx(nu,{asChild:!0,children:f.jsx(ar,{...o,children:s&&f.jsxs(f.Fragment,{children:[r.label," ",n]})})})},Ow="ToastTitle",uu=i.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return f.jsx(Ne.div,{...o,ref:t})});uu.displayName=Ow;var Iw="ToastDescription",du=i.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return f.jsx(Ne.div,{...o,ref:t})});du.displayName=Iw;var fu="ToastAction",pu=i.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?f.jsx(mu,{altText:n,asChild:!0,children:f.jsx(pr,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${fu}\`. Expected non-empty \`string\`.`),null)});pu.displayName=fu;var hu="ToastClose",pr=i.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,r=Aw(hu,n);return f.jsx(mu,{asChild:!0,children:f.jsx(Ne.button,{type:"button",...o,ref:t,onClick:T(e.onClick,r.onClose)})})});pr.displayName=hu;var mu=i.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...r}=e;return f.jsx(Ne.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...r,ref:t})});function vu(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),_w(o)){const r=o.ariaHidden||o.hidden||o.style.display==="none",s=o.dataset.radixToastAnnounceExclude==="";if(!r)if(s){const c=o.dataset.radixToastAnnounceAlt;c&&t.push(c)}else t.push(...vu(o))}}),t}function kn(e,t,n,{discrete:o}){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Xl(r,s):r.dispatchEvent(s)}var gu=(e,t,n=0)=>{const o=Math.abs(e.x),r=Math.abs(e.y),s=o>r;return t==="left"||t==="right"?s&&o>n:!s&&r>n};function Dw(e=()=>{}){const t=V(e);Y(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function _w(e){return e.nodeType===e.ELEMENT_NODE}function Lw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hr(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Rw=su,wu=au,bu=lu,yu=uu,xu=du,Eu=pu,ku=pr;const $w=1,Fw=1e6;let mr=0;function Ww(){return mr=(mr+1)%Number.MAX_SAFE_INTEGER,mr.toString()}const vr=new Map,Cu=e=>{if(vr.has(e))return;const t=setTimeout(()=>{vr.delete(e),Dt({type:"REMOVE_TOAST",toastId:e})},Fw);vr.set(e,t)},Bw=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,$w)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Cu(n):e.toasts.forEach(o=>{Cu(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===n||n===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Cn=[];let Sn={toasts:[]};function Dt(e){Sn=Bw(Sn,e),Cn.forEach(t=>{t(Sn)})}function Uw({...e}){const t=Ww(),n=r=>Dt({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Dt({type:"DISMISS_TOAST",toastId:t});return Dt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:n}}function Su(){const[e,t]=i.useState(Sn);return i.useEffect(()=>(Cn.push(t),()=>{const n=Cn.indexOf(t);n>-1&&Cn.splice(n,1)}),[e]),{...e,toast:Uw,dismiss:n=>Dt({type:"DISMISS_TOAST",toastId:n})}}let gr={toast:{dismissButtonLabel:"missing ksjsui string"}};const Pu=i.createContext(gr);function Hw({children:e}){const t=i.useRef(gr);return f.jsx(Pu.Provider,{value:t.current,children:e})}function zw(){const e=i.useContext(Pu);if(!e)throw new Error("useStrings must be used inside <StringsProvider />");return e}function Vw(e){gr=e}const Kw=Rw,Tu=i.forwardRef(({className:e,...t},n)=>f.jsx(wu,{ref:n,className:R(["ksjsui-fixed ksjsui-bottom-0 ksjsui-end-0 ksjsui-z-[100] ksjsui-flex ksjsui-max-h-screen ksjsui-w-full ksjsui-flex-col ksjsui-p-4","empty:ksjsui-p-0","empty:focus:ksjsui-outline-none","xs:ksjsui-max-w-[calc(theme(spacing.80)_+_theme(spacing.8))]"],e),...t}));Tu.displayName=wu.displayName;const Gw=et(["ksjsui-group ksjsui-pointer-events-auto ksjsui-relative ksjsui-flex ksjsui-w-full ksjsui-items-center ksjsui-justify-between ksjsui-space-x-2 ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-border ksjsui-border-transparent ksjsui-bg-toast ksjsui-p-3 ksjsui-text-toast-foreground ksjsui-shadow-lg ksjsui-outline-ring ksjsui-transition-all","rtl:ksjsui-space-x-reverse","focus-visible:ksjsui-outline","data-[swipe=cancel]:ksjsui-translate-x-0","data-[swipe=end]:ksjsui-translate-x-[var(--radix-toast-swipe-end-x)]","data-[swipe=move]:ksjsui-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:ksjsui-transition-none","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-slide-in-from-bottom-full","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-80","data-[state=closed]:ksjsui-slide-out-to-bottom-full"]),Nu=i.forwardRef(({className:e,...t},n)=>f.jsx(bu,{ref:n,className:R(Gw(),e),...t}));Nu.displayName=bu.displayName;const Yw=i.forwardRef(({className:e,...t},n)=>f.jsx(Eu,{ref:n,className:R(["ksjsui-inline-flex ksjsui-h-8 ksjsui-shrink-0 ksjsui-items-center ksjsui-justify-center ksjsui-rounded-lg ksjsui-border ksjsui-bg-transparent ksjsui-px-3 ksjsui-text-sm ksjsui-font-medium ksjsui-ring-offset-background ksjsui-transition-colors","focus:ksjsui-outline-none focus:ksjsui-ring-2 focus:ksjsui-ring-ring focus:ksjsui-ring-offset-2","disabled:ksjsui-pointer-events-none disabled:ksjsui-opacity-50"],e),...t}));Yw.displayName=Eu.displayName;const Au=i.forwardRef(({className:e,...t},n)=>f.jsx(ku,{ref:n,className:R(["ksjsui-text-current/50 ksjsui-absolute ksjsui-top-1 ksjsui-self-start ksjsui-rounded-sm ksjsui-p-1 ksjsui-opacity-0 ksjsui-transition-opacity","ltr:ksjsui-right-1 rtl:ksjsui-left-1","focus-visible:ksjsui-opacity-100 focus-visible:ksjsui-outline focus-visible:ksjsui-outline-ring","group-hover:ksjsui-opacity-100","group-focus-visible:ksjsui-opacity-100"],e),"toast-close":"",...t,children:f.jsx(qs,{"aria-hidden":!0,className:"ksjsui-size-4"})}));Au.displayName=ku.displayName;const ju=i.forwardRef(({className:e,...t},n)=>f.jsx(yu,{ref:n,className:R("ksjsui-text-[15px] ksjsui-font-semibold",e),...t}));ju.displayName=yu.displayName;const Mu=i.forwardRef(({className:e,...t},n)=>f.jsx(xu,{ref:n,className:R("ksjsui-text-[15px]",e),...t}));Mu.displayName=xu.displayName;const Xw=()=>{const{toasts:e}=Su(),{toast:t}=zw();return f.jsxs(Kw,{children:[e.map(function({id:n,className:o,title:r,description:s,action:c,icon:a,dismissButtonLabel:u,...l}){return f.jsxs(Nu,{...l,className:R("ksjsui-flex ksjsui-gap-x-2",o),children:[a&&f.jsx("div",{className:"ksjsui-shrink-0",children:a}),f.jsxs("div",{className:"ksjsui-grid ksjsui-grow ksjsui-gap-1",children:[r&&f.jsx(ju,{children:r}),s&&f.jsx(Mu,{children:s})]}),c,f.jsx(Au,{"aria-label":u||t.dismissButtonLabel})]},n)}),f.jsx(Tu,{})]})};var qw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Je=qw.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?ne:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Zw(e,t){e&&Ae.flushSync(()=>e.dispatchEvent(t))}var Qw="DismissableLayer",wr="dismissableLayer.update",Jw="dismissableLayer.pointerDownOutside",eb="dismissableLayer.focusOutside",Ou,Iu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Du=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...u}=e,l=i.useContext(Iu),[d,p]=i.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),w=L(t,k=>p(k)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(g),y=d?h.indexOf(d):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,E=y>=b,C=ob(k=>{const P=k.target,N=[...l.branches].some(M=>M.contains(P));!E||N||(r==null||r(k),c==null||c(k),k.defaultPrevented||a==null||a())},m),S=rb(k=>{const P=k.target;[...l.branches].some(M=>M.contains(P))||(s==null||s(k),c==null||c(k),k.defaultPrevented||a==null||a())},m);return bt(k=>{y===l.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},m),i.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ou=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),_u(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ou)}},[d,m,n,l]),i.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),_u())},[d,l]),i.useEffect(()=>{const k=()=>v({});return document.addEventListener(wr,k),()=>document.removeEventListener(wr,k)},[]),f.jsx(Je.div,{...u,ref:w,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,S.onFocusCapture),onBlurCapture:T(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,C.onPointerDownCapture)})});Du.displayName=Qw;var tb="DismissableLayerBranch",nb=i.forwardRef((e,t)=>{const n=i.useContext(Iu),o=i.useRef(null),r=L(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(Je.div,{...e,ref:r})});nb.displayName=tb;function ob(e,t=globalThis==null?void 0:globalThis.document){const n=V(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let u=function(){Lu(Jw,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function rb(e,t=globalThis==null?void 0:globalThis.document){const n=V(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Lu(eb,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function _u(){const e=new CustomEvent(wr);document.dispatchEvent(e)}function Lu(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Zw(r,s):r.dispatchEvent(s)}var sb="Arrow",Ru=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return f.jsx(Je.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ru.displayName=sb;var ib=Ru,br="Popper",[$u,Fu]=ce(br),[ab,Wu]=$u(br),Bu=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return f.jsx(ab,{scope:t,anchor:o,onAnchorChange:r,children:n})};Bu.displayName=br;var Uu="PopperAnchor",Hu=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Wu(Uu,n),c=i.useRef(null),a=L(t,c);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:f.jsx(Je.div,{...r,ref:a})});Hu.displayName=Uu;var yr="PopperContent",[cb,lb]=$u(yr),zu=i.forwardRef((e,t)=>{var F,X,Q,G,q,Z;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:w,...h}=e,g=Wu(yr,n),[b,y]=i.useState(null),x=L(t,te=>y(te)),[E,C]=i.useState(null),S=rn(E),k=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,N=o+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(l)?l:[l],I=$.length>0,W={padding:M,boundary:$.filter(db),altBoundary:I},{refs:A,floatingStyles:U,placement:_,isPositioned:B,middlewareData:O}=wo({strategy:"fixed",placement:N,whileElementsMounted:(...te)=>vo(...te,{animationFrame:v==="always"}),elements:{reference:g.anchor},middleware:[bo({mainAxis:r+P,alignmentAxis:c}),u&&yo({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?xo():void 0,...W}),u&&Eo({...W}),ko({...W,apply:({elements:te,rects:ue,availableWidth:_e,availableHeight:Le})=>{const{width:Re,height:_t}=ue.reference,fe=te.floating.style;fe.setProperty("--radix-popper-available-width",`${_e}px`),fe.setProperty("--radix-popper-available-height",`${Le}px`),fe.setProperty("--radix-popper-anchor-width",`${Re}px`),fe.setProperty("--radix-popper-anchor-height",`${_t}px`)}}),E&&So({element:E,padding:a}),fb({arrowWidth:k,arrowHeight:P}),m&&Co({strategy:"referenceHidden",...W})]}),[j,K]=Gu(_),H=V(w);Y(()=>{B&&(H==null||H())},[B,H]);const oe=(F=O.arrow)==null?void 0:F.x,ie=(X=O.arrow)==null?void 0:X.y,se=((Q=O.arrow)==null?void 0:Q.centerOffset)!==0,[me,ae]=i.useState();return Y(()=>{b&&ae(window.getComputedStyle(b).zIndex)},[b]),f.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:B?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(G=O.transformOrigin)==null?void 0:G.x,(q=O.transformOrigin)==null?void 0:q.y].join(" "),...((Z=O.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(cb,{scope:n,placedSide:j,onArrowChange:C,arrowX:oe,arrowY:ie,shouldHideArrow:se,children:f.jsx(Je.div,{"data-side":j,"data-align":K,...h,ref:x,style:{...h.style,animation:B?void 0:"none"}})})})});zu.displayName=yr;var Vu="PopperArrow",ub={top:"bottom",right:"left",bottom:"top",left:"right"},Ku=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=lb(Vu,o),c=ub[s.placedSide];return f.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:f.jsx(ib,{...r,ref:n,style:{...r.style,display:"block"}})})});Ku.displayName=Vu;function db(e){return e!==null}var fb=e=>({name:"transformOrigin",options:e,fn(t){var g,b,y;const{placement:n,rects:o,middlewareData:r}=t,c=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[l,d]=Gu(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,v=(((y=r.arrow)==null?void 0:y.y)??0)+u/2;let w="",h="";return l==="bottom"?(w=c?p:`${m}px`,h=`${-u}px`):l==="top"?(w=c?p:`${m}px`,h=`${o.floating.height+u}px`):l==="right"?(w=`${-u}px`,h=c?p:`${v}px`):l==="left"&&(w=`${o.floating.width+u}px`,h=c?p:`${v}px`),{data:{x:w,y:h}}}});function Gu(e){const[t,n="center"]=e.split("-");return[t,n]}var pb=Bu,hb=Hu,mb=zu,vb=Ku;function gb(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var Yu=e=>{const{present:t,children:n}=e,o=wb(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=L(o.ref,bb(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};Yu.displayName="Presence";function wb(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,u]=gb(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=Pn(o.current);s.current=a==="mounted"?l:"none"},[a]),Y(()=>{const l=o.current,d=r.current;if(d!==e){const m=s.current,v=Pn(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(d&&m!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),Y(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,p=v=>{const h=Pn(o.current).includes(v.animationName);if(v.target===t&&h&&(u("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=v=>{v.target===t&&(s.current=Pn(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function Pn(e){return(e==null?void 0:e.animationName)||"none"}function bb(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yb="VisuallyHidden",Xu=i.forwardRef((e,t)=>f.jsx(Je.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Xu.displayName=yb;var xb=Xu,[Tn,ry]=ce("Tooltip",[Fu]),Nn=Fu(),qu="TooltipProvider",Eb=700,xr="tooltip.open",[kb,Er]=Tn(qu),Zu=e=>{const{__scopeTooltip:t,delayDuration:n=Eb,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,[c,a]=i.useState(!0),u=i.useRef(!1),l=i.useRef(0);return i.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),f.jsx(kb,{scope:t,isOpenDelayed:c,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:u,onPointerInTransitChange:i.useCallback(d=>{u.current=d},[]),disableHoverableContent:r,children:s})};Zu.displayName=qu;var An="Tooltip",[Cb,jn]=Tn(An),Qu=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:s,disableHoverableContent:c,delayDuration:a}=e,u=Er(An,e.__scopeTooltip),l=Nn(t),[d,p]=i.useState(null),m=ve(),v=i.useRef(0),w=c??u.disableHoverableContent,h=a??u.delayDuration,g=i.useRef(!1),[b=!1,y]=Me({prop:o,defaultProp:r,onChange:k=>{k?(u.onOpen(),document.dispatchEvent(new CustomEvent(xr))):u.onClose(),s==null||s(k)}}),x=i.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),E=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,g.current=!1,y(!0)},[y]),C=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y(!1)},[y]),S=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{g.current=!0,y(!0),v.current=0},h)},[h,y]);return i.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),f.jsx(pb,{...l,children:f.jsx(Cb,{scope:t,contentId:m,open:b,stateAttribute:x,trigger:d,onTriggerChange:p,onTriggerEnter:i.useCallback(()=>{u.isOpenDelayed?S():E()},[u.isOpenDelayed,S,E]),onTriggerLeave:i.useCallback(()=>{w?C():(window.clearTimeout(v.current),v.current=0)},[C,w]),onOpen:E,onClose:C,disableHoverableContent:w,children:n})})};Qu.displayName=An;var kr="TooltipTrigger",Ju=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=jn(kr,n),s=Er(kr,n),c=Nn(n),a=i.useRef(null),u=L(t,a,r.onTriggerChange),l=i.useRef(!1),d=i.useRef(!1),p=i.useCallback(()=>l.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),f.jsx(hb,{asChild:!0,...c,children:f.jsx(Je.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:u,onPointerMove:T(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:T(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:T(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:T(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:T(e.onBlur,r.onClose),onClick:T(e.onClick,r.onClose)})})});Ju.displayName=kr;var Sb="TooltipPortal",[sy,Pb]=Tn(Sb,{forceMount:void 0}),ht="TooltipContent",ed=i.forwardRef((e,t)=>{const n=Pb(ht,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,c=jn(ht,e.__scopeTooltip);return f.jsx(Yu,{present:o||c.open,children:c.disableHoverableContent?f.jsx(td,{side:r,...s,ref:t}):f.jsx(Tb,{side:r,...s,ref:t})})}),Tb=i.forwardRef((e,t)=>{const n=jn(ht,e.__scopeTooltip),o=Er(ht,e.__scopeTooltip),r=i.useRef(null),s=L(t,r),[c,a]=i.useState(null),{trigger:u,onClose:l}=n,d=r.current,{onPointerInTransitChange:p}=o,m=i.useCallback(()=>{a(null),p(!1)},[p]),v=i.useCallback((w,h)=>{const g=w.currentTarget,b={x:w.clientX,y:w.clientY},y=jb(b,g.getBoundingClientRect()),x=Mb(b,y),E=Ob(h.getBoundingClientRect()),C=Db([...x,...E]);a(C),p(!0)},[p]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(u&&d){const w=g=>v(g,d),h=g=>v(g,u);return u.addEventListener("pointerleave",w),d.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",h)}}},[u,d,v,m]),i.useEffect(()=>{if(c){const w=h=>{const g=h.target,b={x:h.clientX,y:h.clientY},y=(u==null?void 0:u.contains(g))||(d==null?void 0:d.contains(g)),x=!Ib(b,c);y?m():x&&(m(),l())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[u,d,c,l,m]),f.jsx(td,{...e,ref:s})}),[Nb,Ab]=Tn(An,{isInside:!1}),td=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:c,...a}=e,u=jn(ht,n),l=Nn(n),{onClose:d}=u;return i.useEffect(()=>(document.addEventListener(xr,d),()=>document.removeEventListener(xr,d)),[d]),i.useEffect(()=>{if(u.trigger){const p=m=>{const v=m.target;v!=null&&v.contains(u.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[u.trigger,d]),f.jsx(Du,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:f.jsxs(mb,{"data-state":u.stateAttribute,...l,...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:[f.jsx(On,{children:o}),f.jsx(Nb,{scope:n,isInside:!0,children:f.jsx(xb,{id:u.contentId,role:"tooltip",children:r||o})})]})})});ed.displayName=ht;var nd="TooltipArrow",od=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Nn(n);return Ab(nd,n).isInside?null:f.jsx(vb,{...r,...o,ref:t})});od.displayName=nd;function jb(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Mb(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Ob(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Ib(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const a=t[s].x,u=t[s].y,l=t[c].x,d=t[c].y;u>o!=d>o&&n<(l-a)*(o-u)/(d-u)+a&&(r=!r)}return r}function Db(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),_b(t)}function _b(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],c=t[t.length-2];if((s.x-c.x)*(r.y-c.y)>=(s.y-c.y)*(r.x-c.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(r.y-c.y)>=(s.y-c.y)*(r.x-c.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Lb=Zu,Rb=Qu,$b=Ju,rd=ed,Fb=od;const Wb=({disableHoverableContent:e=!0,...t})=>f.jsx(Lb,{disableHoverableContent:e,...t}),Bb=Rb,Ub=$b,sd=i.forwardRef(({children:e,className:t,collisionPadding:n={left:12,right:12},side:o="bottom",sideOffset:r=4,...s},c)=>f.jsxs(rd,{ref:c,sideOffset:r,side:o,collisionPadding:n,className:R(["ksjsui-z-50 ksjsui-max-w-[var(--radix-popper-available-width)] ksjsui-rounded ksjsui-bg-popover-foreground ksjsui-px-3 ksjsui-py-2 ksjsui-text-[15px] ksjsui-text-popover ksjsui-shadow-md ksjsui-animate-in ksjsui-fade-in-0 ksjsui-zoom-in-95","sm:ksjsui-max-w-prose","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95","data-[side=top]:ksjsui-slide-in-from-bottom-2","data-[side=right]:ksjsui-slide-in-from-left-2","data-[side=left]:ksjsui-slide-in-from-right-2","data-[side=bottom]:ksjsui-slide-in-from-top-2","forced-colors:ksjsui-border forced-colors:ksjsui-border-canvas-text"],t),...s,children:[e,f.jsx(Fb,{className:R(["ksjsui-fill-popover-foreground ksjsui-shadow-md","forced-colors:ksjsui-fill-canvas-text"])})]}));sd.displayName=rd.displayName;const Cr=["px",0,.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],Hb=[...Cr,"auto"];function zb(){return Cr.reduce((e,t)=>(e.gap[t]=`ksjsui-gap-${t}`,e.gapColumn[t]=`ksjsui-gap-x-${t}`,e.gapRow[t]=`ksjsui-gap-y-${t}`,e),{gap:{},gapColumn:{},gapRow:{}})}function id(){return Hb.reduce((e,t)=>(e.m[t]=`ksjsui-m-${t}`,e.mb[t]=`ksjsui-mb-${t}`,e.me[t]=`ksjsui-me-${t}`,e.ms[t]=`ksjsui-ms-${t}`,e.mt[t]=`ksjsui-mt-${t}`,e.mx[t]=`ksjsui-mx-${t}`,e.my[t]=`ksjsui-my-${t}`,e),{m:{},mb:{},me:{},ms:{},mt:{},mx:{},my:{}})}function ad(){return Cr.reduce((e,t)=>(e.p[t]=`ksjsui-p-${t}`,e.pb[t]=`ksjsui-pb-${t}`,e.pe[t]=`ksjsui-pe-${t}`,e.ps[t]=`ksjsui-ps-${t}`,e.pt[t]=`ksjsui-pt-${t}`,e.px[t]=`ksjsui-px-${t}`,e.py[t]=`ksjsui-py-${t}`,e),{p:{},pb:{},pe:{},ps:{},pt:{},px:{},py:{}})}const Vb=et("",{variants:{display:{block:"ksjsui-block","inline-block":"ksjsui-inline-block",none:"ksjsui-hidden"},...id(),...ad()},defaultVariants:{display:"block"}}),cd=i.forwardRef(({as:e="div",asChild:t,className:n,display:o,m:r,mb:s,me:c,ms:a,mt:u,mx:l,my:d,p,pb:m,pe:v,ps:w,pt:h,px:g,py:b,...y},x)=>{const E=t?ne:e;return f.jsx(E,{className:R(Vb({display:o,m:r,mb:s,me:c,ms:a,mt:u,mx:l,my:d,p,pb:m,pe:v,ps:w,pt:h,px:g,py:b,className:n})),ref:x,...y})});cd.displayName="Box";const Kb={align:{baseline:"ksjsui-items-baseline",center:"ksjsui-items-center",end:"ksjsui-items-end",start:"ksjsui-items-start",stretch:"ksjsui-items-stretch"},direction:{"column-reverse":"ksjsui-flex-col-reverse","row-reverse":"ksjsui-flex-row-reverse",column:"ksjsui-flex-col",row:"ksjsui-flex-row"},display:{"inline-flex":"ksjsui-inline-flex",flex:"ksjsui-flex",none:"ksjsui-hidden"},...zb(),grow:{0:"ksjsui-grow-0",1:"ksjsui-grow"},justify:{around:"ksjsui-justify-around",baseline:"ksjsui-justify-baseline",between:"ksjsui-justify-between",center:"ksjsui-justify-center",end:"ksjsui-justify-end",evenly:"ksjsui-justify-evenly",normal:"ksjsui-justify-normal",start:"ksjsui-justify-start",stretch:"ksjsui-justify-stretch"},...id(),...ad(),self:{auto:"ksjsui-self-auto",baseline:"ksjsui-self-baseline",center:"ksjsui-self-center",end:"ksjsui-self-end",start:"ksjsui-self-start",stretch:"ksjsui-self-stretch"},shrink:{0:"ksjsui-shrink-0",1:"ksjsui-shrink"},wrap:{nowrap:"ksjsui-flex-nowrap",reverse:"ksjsui-flex-wrap-reverse",wrap:"ksjsui-flex-wrap"}},Gb=et("ksjsui-inline-flex",{variants:{...Kb},defaultVariants:{display:"flex",justify:"start"}}),ld=i.forwardRef(({align:e,as:t="div",asChild:n,className:o,display:r,direction:s,gap:c,gapColumn:a,gapRow:u,grow:l,justify:d,m:p,mb:m,me:v,ms:w,mt:h,mx:g,my:b,p:y,pb:x,pe:E,ps:C,pt:S,px:k,py:P,self:N,shrink:M,wrap:$,...I},W)=>{const A=n?ne:t;return f.jsx(A,{className:R(Gb({align:e,direction:s,display:r,gap:c,gapColumn:a,gapRow:u,grow:l,justify:d,m:p,mb:m,me:v,ms:w,mt:h,mx:g,my:b,p:y,pb:x,pe:E,ps:C,pt:S,px:k,py:P,self:N,shrink:M,wrap:$,className:o})),ref:W,...I})});ld.displayName="Flex",D.Avatar=qr,D.AvatarFallback=Qr,D.AvatarImage=Zr,D.Box=cd,D.Button=$n,D.Dialog=Np,D.DialogClose=jp,D.DialogContent=Qs,D.DialogDescription=ni,D.DialogFooter=ei,D.DialogHeader=Js,D.DialogOverlay=eo,D.DialogPortal=Zs,D.DialogTitle=ti,D.DialogTrigger=Ap,D.DirectionProvider=Op,D.DropdownMenu=vv,D.DropdownMenuCheckboxItem=sc,D.DropdownMenuContent=oc,D.DropdownMenuGroup=ec,D.DropdownMenuItem=rc,D.DropdownMenuLabel=ac,D.DropdownMenuPortal=wv,D.DropdownMenuRadioGroup=yv,D.DropdownMenuRadioItem=ic,D.DropdownMenuSeparator=cc,D.DropdownMenuShortcut=lc,D.DropdownMenuSub=bv,D.DropdownMenuSubContent=nc,D.DropdownMenuSubTrigger=tc,D.DropdownMenuTrigger=gv,D.Flex=ld,D.IconButton=uc,D.List=dc,D.ListItem=fc,D.ListItemArrow=pc,D.ListItemButton=hc,D.ListItemText=mc,D.ListLabel=vc,D.ListSeparator=gc,D.ScrollArea=Vo,D.ScrollAreaViewport=Ko,D.ScrollBar=Go,D.Select=zg,D.SelectContent=Ll,D.SelectItem=Rl,D.SelectTrigger=_l,D.SelectValue=Vg,D.Separator=Bl,D.StringsProvider=Hw,D.Switch=Yl,D.Toast=Xw,D.Tooltip=Bb,D.TooltipContent=sd,D.TooltipProvider=Wb,D.TooltipTrigger=Ub,D.configureStrings=Vw,D.useToast=Su,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},N2="DialogDescriptionWarning",A2=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${di(N2).contentName}}.`;return i.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},T2=qs,j2=Js,O2=ti,fi=ni,pi=oi,hi=si,vi=ai,mi=li;const _2=x("AccessibilityIcon",l.jsx("path",{d:"M20.5 6C17.89 6.7 14.83 7 12 7C9.17 7 6.11 6.7 3.5 6L3 8C4.86 8.5 7 8.83 9 9V22H11V16H13V22H15V9C17 8.83 19.14 8.5 21 8L20.5 6ZM12 6C13.1 6 14 5.1 14 4C14 2.9 13.1 2 12 2C10.9 2 10 2.9 10 4C10 5.1 10.9 6 12 6Z"})),$2=l.jsxs(l.Fragment,{children:[l.jsxs("g",{clipPath:"url(#clip0_1268_26388)",children:[l.jsx("rect",{x:"10",y:"8",width:"10",height:"4"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 20C1 20.5523 1.44772 21 2 21H22C22.5523 21 23 20.5523 23 20V4C23 3.44772 22.5523 3 22 3H2C1.44772 3 1 3.44772 1 4V20ZM3 7V19H21V7H3Z"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_1268_26388",children:l.jsx("rect",{width:"24",height:"24"})})})]}),H2=x("AppWindowPromptTopRightIcon",$2),V2=l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",d:"M3 2H21C21.5304 2 22.0391 2.21071 22.4142 2.58579C22.7893 2.96086 23 3.46957 23 4V20C23 20.5304 22.7893 21.0391 22.4142 21.4142C22.0391 21.7893 21.5304 22 21 22H3C2.46957 22 1.96086 21.7893 1.58579 21.4142C1.21071 21.0391 1 20.5304 1 20V4C1 3.46957 1.21071 2.96086 1.58579 2.58579C1.96086 2.21071 2.46957 2 3 2ZM3 20H21V6H3V20ZM11.995 8C9.235 8 7 10.24 7 13C7 15.76 9.235 18 11.995 18C14.76 18 17 15.76 17 13C17 10.24 14.76 8 11.995 8ZM15.46 11H13.985C13.825 10.375 13.595 9.77499 13.295 9.21999C14.215 9.53499 14.98 10.175 15.46 11ZM12.955 11C12.74 10.285 12.415 9.62 12 9.02C11.585 9.62 11.26 10.285 11.045 11H12.955ZM8.12996 14C8.04996 13.68 7.99996 13.345 7.99996 13C7.99996 12.655 8.04996 12.32 8.12996 12H9.81996C9.77996 12.33 9.74996 12.66 9.74996 13C9.74996 13.34 9.77996 13.67 9.81996 14H8.12996ZM10.0149 15H8.53992C9.01992 15.83 9.78492 16.465 10.7049 16.78C10.4049 16.225 10.1749 15.625 10.0149 15ZM10.0149 11H8.53992C9.01992 10.17 9.78492 9.53499 10.7049 9.21999C10.4049 9.77499 10.1749 10.375 10.0149 11ZM11.045 15C11.26 15.715 11.585 16.38 12 16.98C12.415 16.38 12.74 15.715 12.955 15H11.045ZM13.17 14H10.83C10.785 13.67 10.75 13.34 10.75 13C10.75 12.66 10.785 12.325 10.83 12H13.17C13.215 12.325 13.25 12.66 13.25 13C13.25 13.34 13.215 13.67 13.17 14ZM13.985 15C13.825 15.625 13.595 16.225 13.295 16.78C14.215 16.465 14.98 15.825 15.46 15H13.985ZM14.18 14C14.22 13.67 14.25 13.34 14.25 13C14.25 12.66 14.22 12.33 14.18 12H15.87C15.95 12.32 16 12.655 16 13C16 13.345 15.95 13.68 15.87 14H14.18Z"}),l.jsx("path",{d:"M22.4142 2.58579L22.3435 2.6565L22.4142 2.58579ZM1.58579 21.4142L1.6565 21.3435L1.58579 21.4142ZM1.58579 2.58579L1.6565 2.6565L1.58579 2.58579ZM21 20V20.1H21.1V20H21ZM3 20H2.9V20.1H3V20ZM21 6H21.1V5.9H21V6ZM3 6V5.9H2.9V6H3ZM13.985 11L13.8881 11.0248L13.9073 11.1H13.985V11ZM15.46 11V11.1H15.6338L15.5464 10.9497L15.46 11ZM13.295 9.21999L13.3274 9.12538L13.0854 9.04253L13.207 9.26754L13.295 9.21999ZM12 9.02L12.0822 8.96311L12 8.84421L11.9178 8.96311L12 9.02ZM12.955 11V11.1H13.0895L13.0508 10.9712L12.955 11ZM11.045 11L10.9492 10.9712L10.9105 11.1H11.045V11ZM8.12996 14L8.03294 14.0242L8.05188 14.1H8.12996V14ZM8.12996 12V11.9H8.05188L8.03294 11.9757L8.12996 12ZM9.81996 12L9.91923 12.012L9.93281 11.9H9.81996V12ZM9.81996 14V14.1H9.93281L9.91923 13.988L9.81996 14ZM8.53992 15V14.9H8.36657L8.45335 15.05L8.53992 15ZM10.0149 15L10.1118 14.9752L10.0925 14.9H10.0149V15ZM10.7049 16.78L10.6725 16.8746L10.9145 16.9574L10.7929 16.7324L10.7049 16.78ZM8.53992 11L8.45335 10.9499L8.36657 11.1H8.53992V11ZM10.0149 11V11.1H10.0925L10.1118 11.0248L10.0149 11ZM10.7049 9.21999L10.7929 9.26754L10.9145 9.04253L10.6725 9.12538L10.7049 9.21999ZM12 16.98L11.9178 17.0369L12 17.1558L12.0822 17.0369L12 16.98ZM11.045 15V14.9H10.9105L10.9492 15.0288L11.045 15ZM12.955 15L13.0508 15.0288L13.0895 14.9H12.955V15ZM10.83 14L10.7309 14.0135L10.7427 14.1H10.83V14ZM13.17 14V14.1H13.2573L13.2691 14.0135L13.17 14ZM10.83 12V11.9H10.7429L10.7309 11.9863L10.83 12ZM13.17 12L13.2691 11.9863L13.2571 11.9H13.17V12ZM13.295 16.78L13.207 16.7324L13.0854 16.9574L13.3274 16.8746L13.295 16.78ZM13.985 15V14.9H13.9073L13.8881 14.9752L13.985 15ZM15.46 15L15.5464 15.0503L15.6338 14.9H15.46V15ZM14.18 14L14.0807 13.988L14.0671 14.1H14.18V14ZM14.18 12V11.9H14.0671L14.0807 12.012L14.18 12ZM15.87 12L15.967 11.9757L15.948 11.9H15.87V12ZM15.87 14V14.1H15.948L15.967 14.0242L15.87 14ZM21 1.9H3V2.1H21V1.9ZM22.4849 2.51508C22.0911 2.12125 21.557 1.9 21 1.9V2.1C21.5039 2.1 21.9872 2.30018 22.3435 2.6565L22.4849 2.51508ZM23.1 4C23.1 3.44305 22.8787 2.9089 22.4849 2.51508L22.3435 2.6565C22.6998 3.01282 22.9 3.49609 22.9 4H23.1ZM23.1 20V4H22.9V20H23.1ZM22.4849 21.4849C22.8787 21.0911 23.1 20.557 23.1 20H22.9C22.9 20.5039 22.6998 20.9872 22.3435 21.3435L22.4849 21.4849ZM21 22.1C21.557 22.1 22.0911 21.8787 22.4849 21.4849L22.3435 21.3435C21.9872 21.6998 21.5039 21.9 21 21.9V22.1ZM3 22.1H21V21.9H3V22.1ZM1.51508 21.4849C1.9089 21.8787 2.44305 22.1 3 22.1V21.9C2.49609 21.9 2.01282 21.6998 1.6565 21.3435L1.51508 21.4849ZM0.9 20C0.9 20.557 1.12125 21.0911 1.51508 21.4849L1.6565 21.3435C1.30018 20.9872 1.1 20.5039 1.1 20H0.9ZM0.9 4V20H1.1V4H0.9ZM1.51508 2.51508C1.12125 2.9089 0.9 3.44305 0.9 4H1.1C1.1 3.49609 1.30018 3.01282 1.6565 2.6565L1.51508 2.51508ZM3 1.9C2.44305 1.9 1.9089 2.12125 1.51508 2.51508L1.6565 2.6565C2.01282 2.30018 2.49609 2.1 3 2.1V1.9ZM21 19.9H3V20.1H21V19.9ZM20.9 6V20H21.1V6H20.9ZM3 6.1H21V5.9H3V6.1ZM3.1 20V6H2.9V20H3.1ZM7.1 13C7.1 10.2951 9.29036 8.1 11.995 8.1V7.9C9.17964 7.9 6.9 10.1849 6.9 13H7.1ZM11.995 17.9C9.29036 17.9 7.1 15.7049 7.1 13H6.9C6.9 15.8151 9.17964 18.1 11.995 18.1V17.9ZM16.9 13C16.9 15.7047 14.7048 17.9 11.995 17.9V18.1C14.8152 18.1 17.1 15.8153 17.1 13H16.9ZM11.995 8.1C14.7048 8.1 16.9 10.2953 16.9 13H17.1C17.1 10.1847 14.8152 7.9 11.995 7.9V8.1ZM13.985 11.1H15.46V10.9H13.985V11.1ZM13.207 9.26754C13.5028 9.81486 13.73 10.4072 13.8881 11.0248L14.0818 10.9752C13.92 10.3428 13.6871 9.73512 13.3829 9.17244L13.207 9.26754ZM15.5464 10.9497C15.0546 10.1043 14.2706 9.44834 13.3274 9.12538L13.2626 9.3146C14.1593 9.62165 14.9054 10.2456 15.3735 11.0503L15.5464 10.9497ZM11.9178 9.07688C12.327 9.66852 12.6473 10.3241 12.8592 11.0288L13.0508 10.9712C12.8327 10.2459 12.503 9.57148 12.0822 8.96311L11.9178 9.07688ZM11.1408 11.0288C11.3527 10.3241 11.673 9.66852 12.0822 9.07688L11.9178 8.96311C11.497 9.57148 11.1673 10.2459 10.9492 10.9712L11.1408 11.0288ZM12.955 10.9H11.045V11.1H12.955V10.9ZM7.89996 13C7.89996 13.3546 7.95136 13.6979 8.03294 14.0242L8.22697 13.9757C8.14856 13.6621 8.09996 13.3353 8.09996 13H7.89996ZM8.03294 11.9757C7.95136 12.3021 7.89996 12.6453 7.89996 13H8.09996C8.09996 12.6646 8.14856 12.3379 8.22697 12.0242L8.03294 11.9757ZM9.81996 11.9H8.12996V12.1H9.81996V11.9ZM9.84996 13C9.84996 12.6657 9.87945 12.3402 9.91923 12.012L9.72069 11.988C9.68047 12.3198 9.64996 12.6542 9.64996 13H9.84996ZM9.91923 13.988C9.87945 13.6598 9.84996 13.3342 9.84996 13H9.64996C9.64996 13.3457 9.68047 13.6802 9.72069 14.012L9.91923 13.988ZM8.12996 14.1H9.81996V13.9H8.12996V14.1ZM8.53992 15.1H10.0149V14.9H8.53992V15.1ZM10.7373 16.6854C9.84031 16.3782 9.09448 15.7591 8.62648 14.9499L8.45335 15.05C8.94535 15.9008 9.72952 16.5517 10.6725 16.8746L10.7373 16.6854ZM9.91804 15.0248C10.0799 15.6571 10.3128 16.2648 10.6169 16.8275L10.7929 16.7324C10.497 16.1851 10.2699 15.5928 10.1118 14.9752L9.91804 15.0248ZM8.53992 11.1H10.0149V10.9H8.53992V11.1ZM10.6725 9.12538C9.72952 9.44826 8.94535 10.0992 8.45335 10.9499L8.62648 11.0501C9.09448 10.2408 9.84031 9.62172 10.7373 9.3146L10.6725 9.12538ZM10.1118 11.0248C10.2699 10.4072 10.497 9.81486 10.7929 9.26754L10.6169 9.17244C10.3128 9.73512 10.0799 10.3428 9.91804 10.9752L10.1118 11.0248ZM12.0822 16.9231C11.673 16.3314 11.3527 15.6759 11.1408 14.9712L10.9492 15.0288C11.1673 15.754 11.497 16.4285 11.9178 17.0369L12.0822 16.9231ZM12.8592 14.9712C12.6473 15.6759 12.327 16.3314 11.9178 16.9231L12.0822 17.0369C12.503 16.4285 12.8327 15.754 13.0508 15.0288L12.8592 14.9712ZM11.045 15.1H12.955V14.9H11.045V15.1ZM10.83 14.1H13.17V13.9H10.83V14.1ZM10.65 13C10.65 13.3466 10.6857 13.6818 10.7309 14.0135L10.9291 13.9865C10.8843 13.6582 10.85 13.3333 10.85 13H10.65ZM10.7309 11.9863C10.6857 12.3133 10.65 12.6534 10.65 13H10.85C10.85 12.6666 10.8843 12.3367 10.9291 12.0137L10.7309 11.9863ZM13.17 11.9H10.83V12.1H13.17V11.9ZM13.35 13C13.35 12.6534 13.3143 12.3133 13.2691 11.9863L13.0709 12.0137C13.1157 12.3367 13.15 12.6666 13.15 13H13.35ZM13.2691 14.0135C13.3143 13.6818 13.35 13.3466 13.35 13H13.15C13.15 13.3333 13.1157 13.6582 13.0709 13.9865L13.2691 14.0135ZM13.3829 16.8275C13.6871 16.2648 13.92 15.6571 14.0818 15.0248L13.8881 14.9752C13.73 15.5928 13.5028 16.1851 13.207 16.7324L13.3829 16.8275ZM15.3735 14.9497C14.9054 15.7543 14.1593 16.3783 13.2626 16.6854L13.3274 16.8746C14.2706 16.5516 15.0546 15.8956 15.5464 15.0503L15.3735 14.9497ZM13.985 15.1H15.46V14.9H13.985V15.1ZM14.15 13C14.15 13.3342 14.1205 13.6598 14.0807 13.988L14.2792 14.012C14.3195 13.6802 14.35 13.3457 14.35 13H14.15ZM14.0807 12.012C14.1205 12.3402 14.15 12.6657 14.15 13H14.35C14.35 12.6542 14.3195 12.3198 14.2792 11.988L14.0807 12.012ZM15.87 11.9H14.18V12.1H15.87V11.9ZM16.1 13C16.1 12.6453 16.0486 12.3021 15.967 11.9757L15.773 12.0242C15.8514 12.3379 15.9 12.6646 15.9 13H16.1ZM15.967 14.0242C16.0486 13.6979 16.1 13.3546 16.1 13H15.9C15.9 13.3353 15.8514 13.6621 15.773 13.9757L15.967 14.0242ZM14.18 14.1H15.87V13.9H14.18V14.1Z"})]}),D2=x("AppWindowGlobeIcon",V2),F2=x("AppWindowTerminalIcon",l.jsx("path",{d:"M19.9641 18.7351V6.15232H4.03593V18.7351H19.9641ZM19.9641 2C21.0419 2 22 2.88079 22 4.13907V18.8609C22 19.9934 21.1617 21 19.9641 21H4.03593C2.83832 20.8742 2 19.9934 2 18.7351V4.13907C2 2.88079 2.95808 2 4.03593 2H19.9641ZM13.018 16.7219V14.5828H18.0479V16.7219H13.018ZM9.54491 12.4437L5.59281 8.29139H8.46707L11.7006 11.8146C12.0599 12.1921 12.0599 12.947 11.7006 13.3245L8.46707 16.7219H5.59281L9.54491 12.4437Z"})),gi=x("ArrowDownIcon",l.jsx("path",{d:"M7 10.041L12 14.939L17 10.041H7Z"})),R2=x("ArrowLeftIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 11H7.8L13.4 5.4L12 4L4 12L12 20L13.4 18.6L7.8 13H20V11Z"})),Z2=x("BadgeUserIcon",l.jsx("path",{d:"M18 19H6V17.6C6 15.6 10 14.5 12 14.5C14 14.5 18 15.6 18 17.6M12 7C12.7956 7 13.5587 7.31607 14.1213 7.87868C14.6839 8.44129 15 9.20435 15 10C15 10.7956 14.6839 11.5587 14.1213 12.1213C13.5587 12.6839 12.7956 13 12 13C11.2044 13 10.4413 12.6839 9.87868 12.1213C9.31607 11.5587 9 10.7956 9 10C9 9.20435 9.31607 8.44129 9.87868 7.87868C10.4413 7.31607 11.2044 7 12 7ZM12 3C12.2652 3 12.5196 3.10536 12.7071 3.29289C12.8946 3.48043 13 3.73478 13 4C13 4.26522 12.8946 4.51957 12.7071 4.70711C12.5196 4.89464 12.2652 5 12 5C11.7348 5 11.4804 4.89464 11.2929 4.70711C11.1054 4.51957 11 4.26522 11 4C11 3.73478 11.1054 3.48043 11.2929 3.29289C11.4804 3.10536 11.7348 3 12 3ZM19 3H14.82C14.4 1.84 13.3 1 12 1C10.7 1 9.6 1.84 9.18 3H5C4.46957 3 3.96086 3.21071 3.58579 3.58579C3.21071 3.96086 3 4.46957 3 5V19C3 19.5304 3.21071 20.0391 3.58579 20.4142C3.96086 20.7893 4.46957 21 5 21H19C19.5304 21 20.0391 20.7893 20.4142 20.4142C20.7893 20.0391 21 19.5304 21 19V5C21 4.46957 20.7893 3.96086 20.4142 3.58579C20.0391 3.21071 19.5304 3 19 3Z"})),W2=x("BirthCertificateIcon",l.jsx("path",{d:"M13.9744 2H7.03419C5.83761 2 5 2.84 5 4.04V18.08C5 19.16 5.83761 20 7.03419 20H10.0256V23L12.0598 22.04L14.094 23V20H16.9658C18.0427 20 19 19.16 19 17.96V7.04M13.9744 14.96V17L11.9402 16.04L9.90598 17V14.96L7.99145 14L10.0256 13.04V11L12.0598 11.96L14.094 11V13.04L16.1282 14M13.0171 8V3.44L17.4444 8H13.0171Z"})),Eo=x("CheckIcon",l.jsx("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"})),z2=x("ChevronDownIcon",l.jsx("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),So=x("ChevronLeftIcon",l.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Mo=x("ChevronRightIcon",l.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),B2=x("ChevronUpIcon",l.jsx("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),U2=x("CircleAlertOutlineIcon",l.jsx("path",{d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58004 20 4 16.42 4 12C4 7.57997 7.58004 4 12 4C16.42 4 20 7.57997 20 12C20 16.42 16.42 20 12 20Z"})),K2=x("CircleAlertIcon",l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z"})),G2=x("CircleCheckIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM10 18L5 13L6.41 11.59L10 15.17L17.59 7.58L19 9L10 18Z"})),Y2=x("CircleHelpOutlineIcon",l.jsx("path",{d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z"})),X2=x("CircleHelpIcon",l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"})),q2=x("CircleInfoOutlineIcon",l.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})),Q2=l.jsxs(l.Fragment,{children:[l.jsxs("mask",{id:"mask0_6_73",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",children:[l.jsx("path",{d:"M22 12C22 17.5227 17.5227 22 12 22C6.47733 22 2 17.5227 2 12C2 6.47733 6.47733 2 12 2C17.5227 2 22 6.47733 22 12Z",fill:"white"}),l.jsx("path",{d:"M10.074 9.34856V10.6516H8.59266V9.34856C8.59266 7.47283 10.1243 5.94122 12 5.94122C13.8757 5.94122 15.4073 7.47283 15.4073 9.34856V10.6516H13.926V9.34856C13.926 8.29095 13.0576 7.42256 12 7.42256C10.9424 7.42256 10.074 8.29095 10.074 9.34856ZM7.33333 12V13.6667H16.6667V12H7.33333ZM7.33333 15V16.6667H16.6667V15H7.33333Z"})]}),l.jsx("g",{mask:"url(#mask0_6_73)",children:l.jsx("path",{d:"M22 2H2V22H22V2Z"})})]}),J2=x("CircleLockIcon",Q2),ep=x("CirclePlusIcon",l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM17 13H13V17H11V13H7V11H11V7H13V11H17V13Z"})),tp=l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M4.50619 11.9753C4.50619 16.1276 7.87236 19.4939 12.0248 19.4939C15.8372 19.4939 18.987 16.6562 19.4771 12.9777H22C21.497 18.0435 17.2229 22 12.0248 22C6.48822 22 2 17.5118 2 11.9753C2 6.77706 5.95645 2.50297 11.0223 2V4.52294C7.34384 5.01305 4.50619 8.16277 4.50619 11.9753Z"}),l.jsx("path",{d:"M22 10.9728C21.5298 6.23669 17.7634 2.47023 13.0272 2V4.52294C16.3777 4.96935 19.0306 7.62227 19.4771 10.9728H22Z"})]}),np=x("CircleSegmentTopRightIcon",tp),op=l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.8078 2.80762L21.1925 21.1923L19.7783 22.6065L17.5162 20.3443C17.0127 20.6753 16.4741 20.9645 15.9002 21.212C14.6835 21.7373 13.3835 22 12.0002 22C10.6168 22 9.31685 21.7373 8.10018 21.212C6.88352 20.6873 5.82518 19.975 4.92518 19.075C4.02518 18.175 3.31285 17.1167 2.78818 15.9C2.26285 14.6833 2.00018 13.3833 2.00018 12C2.00018 10.6167 2.26285 9.31667 2.78818 8.1C3.03566 7.52611 3.3249 6.98745 3.65589 6.48401L1.39355 4.22168L2.8078 2.80762ZM5.85018 17.1C6.70018 16.45 7.65018 15.9373 8.70018 15.562C9.75018 15.1873 10.8502 15 12.0002 15C12.058 15 12.1157 15.0005 12.1733 15.0014L5.09065 7.91878C4.36367 9.12574 4.00018 10.4861 4.00018 12C4.00018 12.9833 4.16285 13.9083 4.48818 14.775C4.81285 15.6417 5.26685 16.4167 5.85018 17.1Z"}),l.jsx("path",{d:"M6.4841 3.65549L7.91892 5.09031C9.12569 4.36344 10.4861 4 12.0002 4C14.2169 4 16.1045 4.779 17.6632 6.337C19.2212 7.89567 20.0002 9.78333 20.0002 12C20.0002 12.9833 19.8379 13.9083 19.5132 14.775C19.3423 15.2303 19.1358 15.6603 18.8936 16.065L20.3445 17.5159C20.6755 17.0125 20.9647 16.4739 21.2122 15.9C21.7375 14.6833 22.0002 13.3833 22.0002 12C22.0002 10.6167 21.7375 9.31667 21.2122 8.1C20.6875 6.88333 19.9752 5.825 19.0752 4.925C18.1752 4.025 17.1168 3.31233 15.9002 2.787C14.6835 2.26233 13.3835 2 12.0002 2C10.6168 2 9.31685 2.26233 8.10018 2.787C7.52626 3.03481 6.98756 3.32431 6.4841 3.65549Z"}),l.jsx("path",{d:"M14.6474 11.8187C15.2159 11.1756 15.5002 10.4027 15.5002 9.5C15.5002 8.51667 15.1628 7.68733 14.4882 7.012C13.8128 6.33733 12.9835 6 12.0002 6C11.0975 6 10.3246 6.28428 9.68144 6.85282L14.6474 11.8187Z"})]}),rp=x("CircleUserOffIcon",op),sp=x("CircleUserIcon",l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"})),ip=x("CircleXIcon",l.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12L17 15.59Z"})),ap=l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",d:"M14.82 3H19c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h4.18C9.6 1.84 10.7 1 12 1c1.3 0 2.4.84 2.82 2ZM13 4c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1ZM5 21V5h2v3h10V5h2v16H5Zm9.475-2.61 1.414-1.415-6.364-6.364-1.414 1.414 6.364 6.364Z",clipRule:"evenodd"}),l.jsx("path",{d:"m9.525 18.389-1.414-1.414 6.364-6.364 1.414 1.414-6.364 6.364Z"})]}),cp=x("ClipboardXIcon",ap),lp=l.jsx(l.Fragment,{children:l.jsx("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})}),up=x("ClipboardIcon",lp),dp=x("CopyIcon",l.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})),fp=x("CreditCardIcon",l.jsx("path",{d:"M19.9641 4H3.91617C2.83832 4 2 4.95522 2 6.02985V17.9701C2 19.0448 2.83832 20 4.03593 20H19.9641C21.0419 20 22 19.1642 22 17.9701V6.02985C21.8802 4.95522 21.0419 4 19.9641 4ZM19.9641 17.9701H3.91617V12H19.8443V17.9701H19.9641ZM19.9641 8.0597H3.91617V6.02985H19.8443V8.0597H19.9641Z"})),pp=x("DatabaseMapPinIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 16.898C6 17.3878 8.13 18.8572 12 18.8572C12.71 18.8572 13.34 18.7984 13.93 18.7103C14.25 19.347 14.62 19.974 15 20.5323C14.07 20.7087 13.06 20.8164 12 20.8164C7.59 20.8164 4 19.0629 4 16.898V7.102C4 4.93708 7.58 3.18359 12 3.18359C16.42 3.18359 20 4.93708 20 7.102V10.2563C19.5 10.1192 19 10.0408 18.5 10.0408C18.33 10.0408 18.17 10.0408 18 10.0702V9.68815C16.53 10.5012 14.39 11.0204 12 11.0204C9.61 11.0204 7.47 10.5012 6 9.68815V12.4408C7.3 13.3715 9.58 13.9592 12 13.9592C12.42 13.9592 12.83 13.9592 13.24 13.9004C13.09 14.3902 13 14.8996 13 15.4286C13 15.5756 13 15.7225 13.03 15.8694C12.9464 15.8743 12.8628 15.8797 12.7791 15.8851L12.779 15.8851L12.779 15.8851C12.5222 15.9017 12.2639 15.9184 12 15.9184C9.72 15.9184 7.61 15.4776 6 14.7135V16.898ZM18 7.102C18 6.6122 15.87 5.1428 12 5.1428C8.13 5.1428 6 6.6122 6 7.102C6 7.5918 8.13 9.0612 12 9.0612C15.87 9.0612 18 7.5918 18 7.102ZM18.5 12C16.6 12 15 13.5674 15 15.4286C15 17.9756 18.5 21.796 18.5 21.796C18.5 21.796 22 17.9756 22 15.4286C22 13.5674 20.4 12 18.5 12ZM17.3 15.5266C17.3 16.1143 17.8 16.7021 18.5 16.7021C19.2 16.7021 19.8 16.1143 19.7 15.5266C19.7 14.9388 19.1 14.3511 18.5 14.3511C17.9 14.3511 17.3 14.8409 17.3 15.5266Z"})),hp=x("DatabaseIcon",l.jsx("path",{d:"M12 3C7.6 3 4 4.8 4 7s3.6 4 8 4 8-1.8 8-4-3.6-4-8-4M4 9v3c0 2.2 3.6 4 8 4s8-1.8 8-4V9c0 2.2-3.6 4-8 4s-8-1.8-8-4m0 5v3c0 2.2 3.6 4 8 4s8-1.8 8-4v-3c0 2.2-3.6 4-8 4s-8-1.8-8-4z"})),vp=l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M10.3885 13.9489C10.3885 14.6375 9.90507 14.9166 9.30874 14.5723C8.71242 14.228 8.229 13.3907 8.229 12.7022C8.229 12.0136 8.71242 11.7345 9.30874 12.0788C9.90507 12.4231 10.3885 13.2604 10.3885 13.9489Z"}),l.jsx("path",{d:"M4.98965 17.0655C5.58598 17.4098 6.06939 17.1307 6.06939 16.4421C6.06939 15.7535 5.58598 14.9162 4.98965 14.5719C4.39333 14.2276 3.90991 14.5068 3.90991 15.1953C3.90991 15.8839 4.39333 16.7212 4.98965 17.0655Z"}),l.jsx("path",{d:"M20.105 10.2088C20.105 10.8974 19.6216 11.7347 19.0253 12.079C18.429 12.4232 17.9456 12.1441 17.9456 11.4556C17.9456 10.767 18.429 9.92969 19.0253 9.58541C19.6216 9.24112 20.105 9.52022 20.105 10.2088Z"}),l.jsx("path",{d:"M16.8656 15.8192C17.462 15.4749 17.9454 14.6376 17.9454 13.949C17.9454 13.2605 17.462 12.9814 16.8656 13.3256C16.2693 13.6699 15.7859 14.5072 15.7859 15.1958C15.7859 15.8844 16.2693 16.1635 16.8656 15.8192Z"}),l.jsx("path",{d:"M14.7062 19.5594C15.3025 19.2151 15.7859 18.3778 15.7859 17.6893C15.7859 17.0007 15.3025 16.7216 14.7062 17.0659C14.1099 17.4102 13.6265 18.2475 13.6265 18.936C13.6265 19.6246 14.1099 19.9037 14.7062 19.5594Z"}),l.jsx("path",{d:"M10.9851 6.82341C11.5815 7.1677 12.5483 7.1677 13.1446 6.82341C13.7409 6.47912 13.7409 5.92092 13.1446 5.57664C12.5483 5.23235 11.5815 5.23235 10.9851 5.57664C10.3888 5.92092 10.3888 6.47912 10.9851 6.82341Z"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4416 0.902943C11.406 0.346155 12.5941 0.346154 13.5585 0.902942L14.1336 1.23495C14.1423 1.23987 14.151 1.24483 14.1596 1.24983L20.6381 4.99015C20.6467 4.99514 20.6553 5.00014 20.6638 5.00517L20.6999 5.02604C21.6083 5.55046 22.1881 6.49377 22.2524 7.53211C22.2604 7.61447 22.2644 7.70039 22.2644 7.78976V15.2704C22.2644 15.3336 22.2624 15.3974 22.2584 15.4617V15.9716C22.2584 17.0852 21.6643 18.1141 20.6999 18.6709L13.5585 22.794C12.5941 23.3508 11.406 23.3508 10.4416 22.794L3.30017 18.6709C2.33579 18.1141 1.7417 17.0851 1.7417 15.9716V7.72538C1.7417 6.61181 2.33578 5.58282 3.30017 5.02604L3.35083 4.99679C3.35463 4.99457 3.35844 4.99236 3.36226 4.99016L9.84069 1.24983C9.8445 1.24763 9.84832 1.24544 9.85214 1.24325L10.4416 0.902943ZM11.467 14.0236C11.467 13.9968 11.4674 13.9698 11.4681 13.9427V13.4002C11.4681 12.7117 10.9847 11.8744 10.3884 11.5301L10.0459 11.3323C9.97537 11.2983 9.90689 11.2623 9.84069 11.224L3.7714 7.71993C3.24052 7.49195 2.83023 7.77878 2.83023 8.41315L2.83023 15.8938C2.83023 16.5824 3.31364 17.4197 3.90997 17.764L10.3884 21.5043C10.9682 21.8391 11.4413 21.5844 11.467 20.937V14.0236ZM12.5479 14.0236V20.937C12.5736 21.5844 13.0467 21.8391 13.6265 21.5043L20.105 17.764C20.7013 17.4197 21.1847 16.5824 21.1847 15.8938V8.41314C21.1847 7.74694 20.7322 7.46404 20.1627 7.75816L14.1597 11.224C14.1323 11.2398 14.1045 11.2553 14.0764 11.2704L13.6265 11.5301C13.0302 11.8744 12.5468 12.7117 12.5468 13.4002V13.9427C12.5475 13.9698 12.5479 13.9968 12.5479 14.0236ZM13.6265 10.2833L19.6146 6.82609C20.154 6.47998 20.1353 5.94664 19.5583 5.61354L13.0799 1.87322C12.4836 1.52893 11.5168 1.52893 10.9204 1.87322L4.442 5.61354C3.89262 5.93073 3.84937 6.42946 4.31224 6.77523L10.3884 10.2833C10.4546 10.3215 10.5201 10.3628 10.5848 10.4069L10.9204 10.6006C11.5168 10.9449 12.4836 10.9449 13.0799 10.6006L13.5448 10.3323C13.5719 10.3154 13.5991 10.2991 13.6265 10.2833Z"})]}),mp=x("DiceOutlineIcon",vp),gp=l.jsxs(l.Fragment,{children:[l.jsx("path",{className:"ksjsui-fill-black",d:"M10.4415 0.902713C11.4059 0.345926 12.5941 0.345925 13.5585 0.902712L20.6999 5.02581C21.6643 5.5826 22.2583 6.61158 22.2583 7.72516V15.9713C22.2583 17.0849 21.6642 18.1139 20.6999 18.6707L13.5585 22.7938C12.5941 23.3506 11.4059 23.3506 10.4415 22.7938L3.30011 18.6707C2.33572 18.1139 1.74164 17.0849 1.74164 15.9713V7.72515C1.74164 6.61158 2.33572 5.5826 3.3001 5.02581L10.4415 0.902713Z"}),l.jsx("rect",{className:"ksjsui-fill-white ksjsui-stroke-black",x:"-3.71568e-08",y:"0.623388",width:"11.221",height:"11.221",rx:"1.87016",transform:"matrix(0.866025 0.5 -0.866025 0.5 12.5399 0.314624)",strokeWidth:"1.24678"}),l.jsx("circle",{className:"ksjsui-fill-black",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 0.5 -0.866025 0.5 12.0647 4.95312)"}),l.jsx("rect",{className:"ksjsui-fill-white ksjsui-stroke-black",x:"0.53987",y:"0.935082",width:"11.221",height:"11.221",rx:"1.87016",transform:"matrix(0.866025 0.5 -2.20305e-08 1 1.82279 5.02499)",strokeWidth:"1.24678"}),l.jsx("circle",{className:"ksjsui-fill-black",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 0.5 -2.20305e-08 1 3.90991 13.9473)"}),l.jsx("circle",{className:"ksjsui-fill-black",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 0.5 -2.20305e-08 1 8.22891 11.4541)"}),l.jsx("rect",{className:"ksjsui-fill-white ksjsui-stroke-black",x:"0.53987",y:"0.311694",width:"11.221",height:"11.221",rx:"1.87016",transform:"matrix(0.866025 -0.5 2.20305e-08 1 11.5396 11.7992)",strokeWidth:"1.24678"}),l.jsx("circle",{className:"ksjsui-fill-black",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 -0.5 2.20305e-08 1 13.6267 17.6885)"}),l.jsx("circle",{className:"ksjsui-fill-black",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 -0.5 2.20305e-08 1 15.7862 13.9482)"}),l.jsx("circle",{className:"ksjsui-fill-black",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 -0.5 2.20305e-08 1 17.9457 10.208)"})]}),Cp=x("DiceWhiteIcon",gp),bp=l.jsxs(l.Fragment,{children:[l.jsx("path",{className:"ksjsui-fill-background",d:"M10.4415 0.902713C11.4059 0.345926 12.5941 0.345925 13.5585 0.902712L20.6999 5.02581C21.6643 5.5826 22.2583 6.61158 22.2583 7.72516V15.9713C22.2583 17.0849 21.6642 18.1139 20.6999 18.6707L13.5585 22.7938C12.5941 23.3506 11.4059 23.3506 10.4415 22.7938L3.30011 18.6707C2.33572 18.1139 1.74164 17.0849 1.74164 15.9713V7.72515C1.74164 6.61158 2.33572 5.5826 3.3001 5.02581L10.4415 0.902713Z"}),l.jsx("rect",{className:"ksjsui-stroke-background",x:"-3.71568e-08",y:"0.623388",width:"11.221",height:"11.221",rx:"1.87016",transform:"matrix(0.866025 0.5 -0.866025 0.5 12.5399 0.314624)",strokeWidth:"1.24678"}),l.jsx("circle",{className:"ksjsui-fill-background",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 0.5 -0.866025 0.5 12.0647 4.95312)"}),l.jsx("rect",{className:"ksjsui-stroke-background",x:"0.53987",y:"0.935082",width:"11.221",height:"11.221",rx:"1.87016",transform:"matrix(0.866025 0.5 -2.20305e-08 1 1.82279 5.02499)",strokeWidth:"1.24678"}),l.jsx("circle",{className:"ksjsui-fill-background",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 0.5 -2.20305e-08 1 3.90991 13.9473)"}),l.jsx("circle",{className:"ksjsui-fill-background",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 0.5 -2.20305e-08 1 8.22891 11.4541)"}),l.jsx("rect",{className:"ksjsui-stroke-background",x:"0.53987",y:"0.311694",width:"11.221",height:"11.221",rx:"1.87016",transform:"matrix(0.866025 -0.5 2.20305e-08 1 11.5396 11.7992)",strokeWidth:"1.24678"}),l.jsx("circle",{className:"ksjsui-fill-background",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 -0.5 2.20305e-08 1 13.6267 17.6885)"}),l.jsx("circle",{className:"ksjsui-fill-background",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 -0.5 2.20305e-08 1 15.7862 13.9482)"}),l.jsx("circle",{className:"ksjsui-fill-background",cx:"1.24678",cy:"1.24678",r:"1.24678",transform:"matrix(0.866025 -0.5 2.20305e-08 1 17.9457 10.208)"})]}),yp=x("DiceIcon",bp),wp=x("DotIcon",l.jsx("circle",{cx:"12",cy:"12",r:"6"})),kp=x("DotOutlineIcon",l.jsx("path",{d:"M12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6ZM12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8Z"})),Ep=x("DownloadIcon",l.jsx("path",{d:"M18,15v3H6v-3H4v3c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2v-3H18z M17,11l-1.41-1.41L13,12.17V4h-2v8.17L8.41,9.59L7,11l5,5 L17,11z"})),Sp=x("EarthIcon",l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"})),Mp=x("EllipsisHorizontalIcon",l.jsx("path",{d:"M6 10C4.9 10 4 10.9 4 12C4 13.1 4.9 14 6 14C7.1 14 8 13.1 8 12C8 10.9 7.1 10 6 10ZM18 10C16.9 10 16 10.9 16 12C16 13.1 16.9 14 18 14C19.1 14 20 13.1 20 12C20 10.9 19.1 10 18 10ZM10 12C10 10.9 10.9 10 12 10C13.1 10 14 10.9 14 12C14 13.1 13.1 14 12 14C10.9 14 10 13.1 10 12Z"})),Pp=x("EllipsisVerticalIcon",l.jsx("path",{d:"M12 8C13.1 8 14 7.1 14 6C14 4.9 13.1 4 12 4C10.9 4 10 4.9 10 6C10 7.1 10.9 8 12 8ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM12 16C10.9 16 10 16.9 10 18C10 19.1 10.9 20 12 20C13.1 20 14 19.1 14 18C14 16.9 13.1 16 12 16Z"})),xp=x("EyeIcon",l.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})),Lp=x("EyeOffIcon",l.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"})),Ip=x("FileCogIcon",l.jsx("path",{d:"M6 2c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h6.7c-.5-.9-.7-2-.7-3 0-3.9 3.1-7 7-7 .3 0 .7 0 1 .1V8l-6-6H6m7 1.5L18.5 9H13V3.5M18 14c-.1 0-.2.1-.3.2l-.2 1.3c-.3.1-.6.3-.9.5l-1.2-.5c-.1 0-.2 0-.3.1l-1 1.7c-.1.1 0 .2.1.3l1.1.8v1l-1.1.8c-.1.1-.1.2-.1.3l1 1.7c.1.1.2.1.3.1l1.2-.5c.3.2.5.4.9.5l.2 1.3c0 .1.1.2.3.2h2c.1 0 .2-.1.2-.2l.2-1.3c.3-.1.6-.3.8-.5l1.2.5c.1 0 .3 0 .3-.1l1-1.7c.1-.1 0-.2-.1-.3l-1.1-.8v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.1-.3-.1l-1.1.5c-.3-.2-.5-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.2-.2h-2m1 3.5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5z"})),Np=x("FileLockIcon",l.jsx("path",{d:"M6 2c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6H6m7 1.5L18.5 9H13V3.5M12 11c1.7 0 3 1.3 3 3v1h1v4H8v-4h1v-1c0-1.6 1.3-3 3-3m0 2c-.6 0-1 .4-1 1v1h2v-1c0-.5-.4-1-1-1z"})),Ap=x("FingerprintIcon",l.jsx("path",{d:"M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39s-4.66 1.97-4.66 4.39c0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94s3.08 1.32 3.08 2.94c0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z"})),Tp=x("FolderIcon",l.jsx("path",{d:"M10.3333 5H4.83333C3.825 5 3.00917 5.825 3.00917 6.83334L3 17.8333C3 18.8417 3.825 19.6667 4.83333 19.6667H19.5C20.5083 19.6667 21.3333 18.8417 21.3333 17.8333V8.66667C21.3333 7.65834 20.5083 6.83334 19.5 6.83334H12.1667L10.3333 5Z"})),jp=x("FolderShareIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1667 6.83334H19.5C20.5083 6.83334 21.3333 7.65834 21.3333 8.66667V17.8333C21.3333 18.8417 20.5083 19.6667 19.5 19.6667H4.83333C3.825 19.6667 3 18.8417 3 17.8333L3.00917 6.83334C3.00917 5.825 3.825 5 4.83333 5H10.3333L12.1667 6.83334ZM16.31 15.5002C16.5483 15.284 16.86 15.1459 17.2083 15.1459C17.9463 15.1459 18.5467 15.7487 18.5467 16.4896C18.5467 17.2305 17.9463 17.8333 17.2083 17.8333C16.4704 17.8333 15.87 17.2305 15.87 16.4896C15.87 16.3884 15.8838 16.2871 15.9067 16.1905L12.6433 14.2762C12.3958 14.5063 12.0704 14.6489 11.7083 14.6489C10.9475 14.6489 10.3333 14.0323 10.3333 13.2684C10.3333 12.5045 10.9475 11.8879 11.7083 11.8879C12.0704 11.8879 12.3958 12.0305 12.6433 12.2606L15.8746 10.3693C15.8517 10.2635 15.8333 10.1576 15.8333 10.0472C15.8333 9.2833 16.4475 8.66667 17.2083 8.66667C17.9692 8.66667 18.5833 9.2833 18.5833 10.0472C18.5833 10.8111 17.9692 11.4277 17.2083 11.4277C16.8463 11.4277 16.5208 11.2851 16.2733 11.055L13.0421 12.9463C13.065 13.0521 13.0833 13.158 13.0833 13.2684C13.0833 13.3788 13.065 13.4847 13.0421 13.5905L16.31 15.5002Z"})),Op=x("GlobeIcon",l.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"})),_p=x("HospitalIcon",l.jsx("path",{d:"M4 20V8.02395C4 7.54491 4.38788 7.25749 4.77576 7.25749H7.97576V4H16.0242V7.16168H19.2242C19.7091 7.16168 20 7.54491 20 7.92814V19.9042H13.697V15.8802H10.497V19.9042H4M9.62424 5.62874V10.4192H11.2727V8.79042H12.9212V10.4192H14.5697V5.62874H12.9212V7.25749H11.2727V5.62874H9.62424ZM5.64848 18.3713H8.84848V15.976H5.64848V18.3713ZM5.64848 14.3473H8.84848V11.9521H5.64848V14.3473ZM15.3455 18.3713H18.5455V15.976H15.3455V18.3713ZM15.3455 14.3473H18.5455V11.9521H15.3455V14.3473ZM10.497 14.3473H13.697V11.9521H10.497V14.3473Z"})),$p=x("IdCardIcon",l.jsx("path",{d:"M3.67665 5H20.3234C21.1617 5 22 5.84 22 6.68V18.32C22 19.16 21.1617 20 20.3234 20H3.67665C2.83832 20 2 19.16 2 18.32V6.68C2 5.72 2.71856 5 3.67665 5ZM13.6168 7.4V8.24H20.3234V7.4H13.6168ZM13.6168 9.08V9.92H20.2036V9.08H13.6168ZM13.6168 10.76V11.6H19.485V10.76H13.6168ZM8.58683 14C6.91018 14 3.55689 14.96 3.55689 16.52V17.36H13.497V16.52C13.6168 14.96 10.2635 14 8.58683 14ZM8.58683 7.4C7.1497 7.4 6.07186 8.48 6.07186 9.92C6.07186 11.36 7.1497 12.44 8.58683 12.44C10.024 12.44 11.1018 11.36 11.1018 9.92C11.1018 8.48 10.024 7.4 8.58683 7.4Z"})),Hp=x("KeeperIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM14.6889 3.87651L13.1441 3.48323V8.25298L14.4073 8.2597L17.701 5.56054L16.4176 4.61769L14.6889 6.03449V3.87651ZM10.1219 3.27315H11.6667V9.51517H14.8576L18.6961 6.46306L19.6607 7.66811L15.3989 11.0563H10.1219V3.27315ZM4.03862 15.0849L5.58347 16.3958V7.81432L4.03862 9.22777V15.0849ZM8.61243 18.2412L7.06591 19.5807V4.495L8.61243 5.83449V18.2412ZM14.6889 18.1168L16.4176 19.5337L17.701 18.5891L14.4073 15.8916L13.1441 15.8984V20.6681L14.6889 20.2748V18.1168ZM18.6961 17.4782L14.8576 14.4244H11.6667V20.6664H10.1219V12.8849H15.3989L19.6607 16.2731L18.6961 17.4782ZM16.7363 11.9706L19.8969 14.5706L20.8818 13.3824L19.1649 11.9706L20.8818 10.5589L19.8969 9.37063L16.7363 11.9706Z"})),ze={foreground:"ksjsui-fill-[hsl(var(--ksjsui-color-keeper-gold))] [.dark-mode_&]:ksjsui-fill-black",background:"ksjsui-fill-black [.dark-mode_&]:ksjsui-fill-[hsl(var(--ksjsui-color-keeper-gold))]"},Vp=l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",className:ze.background}),l.jsx("path",{d:"M13.144 3.48322L14.6888 3.87649V6.03447L16.4175 4.61767L17.7009 5.56052L14.4072 8.25968L13.144 8.25296V3.48322Z",className:ze.foreground}),l.jsx("path",{d:"M10.1219 3.27313H11.6667V9.51515H14.8577L18.6962 6.46305L19.6608 7.66809L15.399 11.0563H10.1219V3.27313Z",className:ze.foreground}),l.jsx("path",{d:"M5.58342 16.3958L4.03857 15.0849V9.22778L5.58342 7.81433V16.3958Z",className:ze.foreground}),l.jsx("path",{d:"M8.61244 18.2413L7.06592 19.5807V4.495L8.61244 5.83449V18.2413Z",className:ze.foreground}),l.jsx("path",{d:"M16.4175 19.5337L14.6888 18.1168V20.2748L13.144 20.6681V15.8983L14.4072 15.8917L17.7009 18.5891L16.4175 19.5337Z",className:ze.foreground}),l.jsx("path",{d:"M18.6962 17.4782L14.8577 14.4244H11.6667V20.6664H10.1219V12.8849H15.399L19.6608 16.2732L18.6962 17.4782Z",className:ze.foreground}),l.jsx("path",{d:"M19.8968 14.5707L16.7363 11.9707L19.8968 9.37064L20.8817 10.5588L19.1649 11.9707L20.8817 13.3824L19.8968 14.5707Z",className:ze.foreground})]}),Dp=x("KeeperCoinIcon",Vp),Fp=x("KeeperOffIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 14.0826 21.3634 16.0165 20.2742 17.6177L19.3357 16.6792L19.6607 16.2731L16.094 13.4375L13.7128 11.0563H15.3989L19.6607 7.66811L18.6961 6.46306L14.8576 9.51517H12.1717L11.6667 9.0102V3.27315H10.1219V7.46536L8.61243 5.95594V5.83449L7.70525 5.04875L6.38235 3.72585C7.98355 2.63661 9.91743 2 12 2C17.5228 2 22 6.47715 22 12ZM17.411 20.411L19.3848 22.3848L20.799 20.9706L2.41421 2.58579L1 4L3.58899 6.58899C2.58348 8.14875 2 10.0062 2 12C2 17.5228 6.47715 22 12 22C13.9938 22 15.8512 21.4165 17.411 20.411ZM11.6667 14.6667V20.6664H10.1219V13.1219L11.6667 14.6667ZM8.61243 11.6124V18.2412L7.06591 19.5807V10.0659L8.61243 11.6124ZM5.58347 8.58347V16.3958L4.03862 15.0849V9.22777L5.18181 8.18181L5.58347 8.58347ZM13.1441 16.1441L16.4844 19.4844L16.4176 19.5337L14.6889 18.1168V20.2748L13.1441 20.6681V16.1441ZM14.6889 3.87651L13.1441 3.48323V8.25298L14.4073 8.2597L17.701 5.56054L16.4176 4.61769L14.6889 6.03449V3.87651ZM16.7363 11.9706L19.8969 14.5706L20.8818 13.3824L19.1649 11.9706L20.8818 10.5589L19.8969 9.37063L16.7363 11.9706Z"})),Rp=l.jsxs(l.Fragment,{children:[l.jsx("mask",{id:"mask0_75_26430",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"6",width:"12",height:"12",children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C13.3137 18 16 15.3137 16 12C16 8.68629 13.3137 6 10 6C6.68629 6 4 8.68629 4 12C4 15.3137 6.68629 18 10 18ZM11.6134 7.1263L10.6865 6.89033V9.75218L11.4444 9.75621L13.4207 8.13672L12.6506 7.571L11.6134 8.42109V7.1263ZM8.8731 6.76377H9.8V10.509H11.7145L14.0176 8.67772L14.5964 9.40074L12.0393 11.4337H8.8731V6.76377ZM5.22322 13.8507L6.15012 14.6373V9.48838L5.22322 10.3364V13.8507ZM7.96739 15.7445L7.03948 16.5482V7.49678L7.96739 8.30047V15.7445ZM11.6134 15.6698L12.6506 16.5199L13.4207 15.9532L11.4444 14.3347L10.6865 14.3387V17.2006L11.6134 16.9646V15.6698ZM14.0176 15.2871L11.7145 13.4549H9.8V17.2001H8.8731V12.5312H12.0393L14.5964 14.5641L14.0176 15.2871ZM12.8418 11.9827L14.7381 13.5427L15.3291 12.8297L14.2989 11.9827L15.3291 11.1356L14.7381 10.4227L12.8418 11.9827Z"})}),l.jsx("g",{mask:"url(#mask0_75_26430)",children:l.jsx("rect",{x:"4",y:"6",width:"12",height:"12"})}),l.jsx("mask",{id:"path-4-inside-1_75_26430",children:l.jsx("path",{d:"M2 2H18C20.2091 2 22 3.79086 22 6V18C22 20.2091 20.2091 22 18 22H2V2Z",fill:"white"})}),l.jsx("path",{d:"M2 0H18C21.3137 0 24 2.68629 24 6H20C20 4.89543 19.1046 4 18 4H2V0ZM24 18C24 21.3137 21.3137 24 18 24H2V20H18C19.1046 20 20 19.1046 20 18H24ZM2 22V2V22ZM18 0C21.3137 0 24 2.68629 24 6V18C24 21.3137 21.3137 24 18 24V20C19.1046 20 20 19.1046 20 18V6C20 4.89543 19.1046 4 18 4V0Z",mask:"url(#path-4-inside-1_75_26430)"})]}),Zp=x("KeeperSquareInputIcon",Rp),Wp=l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M16 7C16 9.21 14.21 11 12 11C9.79 11 8 9.21 8 7C8 4.79 9.79 3 12 3C14.21 3 16 4.79 16 7ZM4 17C4 14.34 9.33 13 12 13C12.5719 13 13.2659 13.0615 14.0033 13.1842C14.0599 14.7452 14.8325 16.121 16 16.9967V19H4V17Z"}),l.jsx("path",{d:"M18 15.825C16.835 15.415 16 14.305 16 13C16 11.345 17.345 10 19 10C20.655 10 22 11.345 22 13C22 14.305 21.165 15.415 20 15.825L20 19L22 19L22 21L20 21L20 22L18 22L18 15.825ZM20 13C20 12.45 19.55 12 19 12C18.45 12 18 12.45 18 13C18 13.55 18.45 14 19 14C19.55 14 20 13.55 20 13Z"})]}),zp=x("KeyUserIcon",Wp),Bp=x("KeyboardIcon",l.jsx("path",{d:"M20 7V17H4V7H20ZM20 5H4C2.9 5 2.01 5.9 2.01 7L2 17C2 18.1 2.9 19 4 19H20C21.1 19 22 18.1 22 17V7C22 5.9 21.1 5 20 5ZM11 8H13V10H11V8ZM11 11H13V13H11V11ZM8 8H10V10H8V8ZM8 11H10V13H8V11ZM5 11H7V13H5V11ZM5 8H7V10H5V8ZM8 14H16V16H8V14ZM14 11H16V13H14V11ZM14 8H16V10H14V8ZM17 11H19V13H17V11ZM17 8H19V10H17V8Z"})),Up=x("LandmarkIcon",l.jsx("path",{d:"M5.62025 10.7143V16.68H8.1519V10.7143H5.62025ZM10.6835 10.7143V16.68H13.2152V10.7143H10.6835ZM4 21H20V18.4286H4V21ZM15.7468 10.7143V16.68H18.2785V10.7143H15.7468ZM12 3L4 7.32V9.06857H20V7.32L12 3Z"})),Kp=l.jsxs(l.Fragment,{children:[l.jsx("g",{clipPath:"url(#clip0_224_47006)",children:l.jsx("path",{d:"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z",fill:"black"})}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_224_47006",children:l.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),Gp=x("LightbulbIcon",Kp),Yp=x("LockOutlineIcon",l.jsx("path",{d:"M17.25 9H16.375V7.28571C16.375 4.92 14.415 3 12 3C9.585 3 7.625 4.92 7.625 7.28571V9H6.75C5.7875 9 5 9.77143 5 10.7143V19.2857C5 20.2286 5.7875 21 6.75 21H17.25C18.2125 21 19 20.2286 19 19.2857V10.7143C19 9.77143 18.2125 9 17.25 9ZM9.375 7.28571C9.375 5.86286 10.5475 4.71429 12 4.71429C13.4525 4.71429 14.625 5.86286 14.625 7.28571V9H9.375V7.28571ZM17.25 19.2857H6.75V10.7143H17.25V19.2857ZM12 16.7143C12.9625 16.7143 13.75 15.9429 13.75 15C13.75 14.0571 12.9625 13.2857 12 13.2857C11.0375 13.2857 10.25 14.0571 10.25 15C10.25 15.9429 11.0375 16.7143 12 16.7143Z"})),Xp=x("LockIcon",l.jsx("path",{d:"M17.25 9H16.375V7.28571C16.375 4.92 14.415 3 12 3C9.585 3 7.625 4.92 7.625 7.28571V9H6.75C5.7875 9 5 9.77143 5 10.7143V19.2857C5 20.2286 5.7875 21 6.75 21H17.25C18.2125 21 19 20.2286 19 19.2857V10.7143C19 9.77143 18.2125 9 17.25 9ZM12 16.7143C11.0375 16.7143 10.25 15.9429 10.25 15C10.25 14.0571 11.0375 13.2857 12 13.2857C12.9625 13.2857 13.75 14.0571 13.75 15C13.75 15.9429 12.9625 16.7143 12 16.7143ZM14.7125 9H9.2875V7.28571C9.2875 5.82 10.5037 4.62857 12 4.62857C13.4963 4.62857 14.7125 5.82 14.7125 7.28571V9Z"})),qp=x("LogInIcon",l.jsx("path",{d:"M11 7L9.6 8.4L12.2 11H2V13H12.2L9.6 15.6L11 17L16 12L11 7ZM20 19H12V21H20C21.1 21 22 20.1 22 19V5C22 3.9 21.1 3 20 3H12V5H20V19Z"})),Qp=x("LogOutIcon",l.jsx("path",{d:"M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12L17 7ZM4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z"})),Jp=x("MapPinIcon",l.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})),e0=x("MembershipCardIcon",l.jsx("path",{d:"M19.9641 20H4.03593C2.95808 20 2 19.1579 2 17.9549V5.92481C2 4.84211 2.83832 4 4.03593 4H19.9641C21.0419 4 22 4.84211 22 6.04511V18.0752C22 19.1579 21.0419 20 19.9641 20ZM4.99401 13.0226V15.0677H13.976V13.0226H4.99401ZM4.99401 9.05263V11.0977H19.9641V9.05263H4.99401Z"})),t0=x("MessageSquareInfoIcon",l.jsx("path",{d:"M9 22C8.4 22 8 21.6 8 21L8 18H4C2.9 18 2 17.1 2 16L2 4C2 2.9 2.9 2 4 2L20 2C21.1 2 22 2.9 22 4V16C22 17.1 21.1 18 20 18H13.9L10.2 21.7C10 21.9 9.8 22 9.5 22H9ZM13 7V5L11 5V7L13 7ZM13 15L13 9L11 9L11 15H13Z"})),n0=x("MessageSquareMoreIcon",l.jsx("path",{d:"M20 2H4C2.9 2 2 2.9 2 4V22L6.00002 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2ZM20 16H6.00002L4 18V4H20V16ZM6.99998 9.00003H9.00003V11H6.99998V9.00003ZM11 9.00003H13V11H11V9.00003ZM15 9.00003H17V11H15V9.00003Z"})),o0=x("MessageSquarePenLineIcon",l.jsx("path",{d:"M19.9762 2H4.02381C2.95238 2 2 2.95808 2 4.03593V22L6.04762 17.9281H19.9762C21.0476 17.9281 22 16.9701 22 15.8922V3.91617C21.881 2.83832 21.0476 2 19.9762 2ZM6.04762 13.976V11.4611L12.8333 4.63473C13.0714 4.39521 13.3095 4.39521 13.5476 4.63473L15.3333 6.43114C15.5714 6.67066 15.5714 6.91018 15.3333 7.1497L8.54762 13.976H6.04762ZM17.9524 13.976H10.5714L12.5952 11.9401H17.9524V13.976Z"})),r0=x("MonitorLayoutGridIcon",l.jsx("path",{d:"M20.1522 16.3114V4.93413H3.84783V16.3114H20.1522ZM20.1522 3C21.1304 3 22 3.79641 22 4.93413V16.3114C22 17.3353 21.2391 18.2455 20.1522 18.2455H13.8478V20.0659H15.6957V22H8.30435V20.0659H10.1522V18.1317H3.84783C2.86957 18.1317 2 17.2216 2 16.1976V4.82036C2 3.79641 2.76087 3 3.84783 3H20.1522ZM5.58696 6.75449H13.7391V11.5329H5.58696V6.75449ZM14.7174 6.75449H18.3043V8.68862H14.7174V6.75449ZM18.3043 9.5988V14.3772H14.7174V9.5988H18.3043ZM5.58696 12.4431H9.17391V14.3772H5.58696V12.4431ZM10.1522 12.4431H13.7391V14.3772H10.1522V12.4431Z"})),s0=x("NetworkIcon",l.jsx("path",{d:"M10 2C8.89 2 8 2.89 8 4V7C8 8.11 8.89 9 10 9H11V11H2V13H6V15H5C3.89 15 3 15.89 3 17V20C3 21.11 3.89 22 5 22H9C10.11 22 11 21.11 11 20V17C11 15.89 10.11 15 9 15H8V13H16V15H15C13.89 15 13 15.89 13 17V20C13 21.11 13.89 22 15 22H19C20.11 22 21 21.11 21 20V17C21 15.89 20.11 15 19 15H18V13H22V11H13V9H14C15.11 9 16 8.11 16 7V4C16 2.89 15.11 2 14 2H10ZM10 4H14V7H10V4ZM5 17H9V20H5V17ZM15 17H19V20H15V17Z"})),i0=x("PaletteIcon",l.jsx("path",{d:"M12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C12.83 21 13.5 20.33 13.5 19.5C13.5 19.11 13.35 18.76 13.11 18.49C12.88 18.23 12.73 17.88 12.73 17.5C12.73 16.67 13.4 16 14.23 16H16C18.76 16 21 13.76 21 11C21 6.58 16.97 3 12 3ZM6.5 12C5.67 12 5 11.33 5 10.5C5 9.67 5.67 9 6.5 9C7.33 9 8 9.67 8 10.5C8 11.33 7.33 12 6.5 12ZM9.5 8C8.67 8 8 7.33 8 6.5C8 5.67 8.67 5 9.5 5C10.33 5 11 5.67 11 6.5C11 7.33 10.33 8 9.5 8ZM14.5 8C13.67 8 13 7.33 13 6.5C13 5.67 13.67 5 14.5 5C15.33 5 16 5.67 16 6.5C16 7.33 15.33 8 14.5 8ZM17.5 12C16.67 12 16 11.33 16 10.5C16 9.67 16.67 9 17.5 9C18.33 9 19 9.67 19 10.5C19 11.33 18.33 12 17.5 12Z"})),a0=x("PanelLandscapeIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 6C21 4.89543 20.1046 4 19 4H5C3.89543 4 3 4.89543 3 6V18C3 19.1046 3.89543 20 5 20H19C20.1046 20 21 19.1046 21 18V6ZM5 9V18H10V9H5ZM12 9V18H19V9H12Z"})),c0=x("PanelPortraitIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2C17.1046 2 18 2.89543 18 4V20C18 21.1046 17.1046 22 16 22H8C6.8954 22 6 21.1046 6 20V4C6 2.89543 6.8954 2 8 2H16ZM8 20V7H16V20H8Z"})),l0=x("PanelsTopLeftIcon",l.jsx("path",{d:"M7,7 L6,7 L3,7 L3,9 L7,9 L7,7 Z M9,9 L21,9 L21,7 L7,7 C7,7.70904 7,8.37096 7,9 C7,12.52849 7,15.0228 7,19 L9,19 L9,9 Z M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,19 C1,20.1 1.9,21 3,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 Z M21,19.01 L3,19.01 L3,9 L3,7 L3,4.99 L21,4.99 L21,19.01 Z"})),u0=x("PaperclipIcon",l.jsx("path",{d:"M19.6 10.6l-8.1 8.1c-1.6 1.6-4.1 1.6-5.7 0s-1.6-4.1 0-5.7l8.8-8.8c1-1 2.6-1 3.5 0 1 1 1 2.6 0 3.5l-7.4 7.4c-.4.4-1 .4-1.4 0-.4-.4-.4-1 0-1.4L16 7.1 15 6l-6.7 6.7c-1 1-1 2.6 0 3.5s2.6 1 3.5 0l7.4-7.4c1.6-1.6 1.6-4.1 0-5.7s-4.1-1.6-5.7 0L4.7 12c-2.1 2.1-2.1 5.6 0 7.8s5.6 2.1 7.8 0l8.1-8.1-1-1.1z"})),d0=x("PcCaseIcon",l.jsx("path",{d:"M8 2H16C16.5304 2 17.0391 2.21071 17.4142 2.58579C17.7893 2.96086 18 3.46957 18 4V20C18 20.5304 17.7893 21.0391 17.4142 21.4142C17.0391 21.7893 16.5304 22 16 22H8C7.46957 22 6.96086 21.7893 6.58579 21.4142C6.21071 21.0391 6 20.5304 6 20V4C6 3.46957 6.21071 2.96086 6.58579 2.58579C6.96086 2.21071 7.46957 2 8 2ZM8 4V6H16V4H8ZM16 8H8V10H16V8ZM16 18H14V20H16V18Z"})),f0=x("PencilIcon",l.jsx("path",{d:"M3 17.25V21H6.75L17.81 9.94L14.06 6.19L3 17.25ZM20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C17.98 2.9 17.35 2.9 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04Z"})),p0=l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"})]}),h0=x("PowerIcon",p0),Ci=x("RadioSelectedIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C7.58399 4 4 7.584 4 12C4 16.416 7.58399 20 12 20C16.4159 20 20 16.416 20 12C20 7.584 16.4159 4 12 4ZM12 8C9.79198 8 7.99998 9.79201 7.99998 12C7.99998 14.208 9.79198 16.0001 12 16.0001C14.208 16.0001 16 14.208 16 12C16 9.79201 14.208 8 12 8ZM5.59999 12C5.59999 15.536 8.46399 18.4001 12 18.4001C15.536 18.4001 18.4 15.536 18.4 12C18.4 8.46401 15.536 5.6 12 5.6C8.46399 5.6 5.59999 8.46401 5.59999 12Z"})),v0=x("RadioIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C4 7.584 7.58399 4 12 4C16.4159 4 20 7.584 20 12C20 16.416 16.4159 20 12 20C7.58399 20 4 16.416 4 12ZM5.59999 12C5.59999 15.536 8.46399 18.4001 12 18.4001C15.536 18.4001 18.4 15.536 18.4 12C18.4 8.46401 15.536 5.6 12 5.6C8.46399 5.6 5.59999 8.46401 5.59999 12Z"})),m0=x("RefreshCcwIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1V3.99999C16.4199 3.99999 20 7.58 20 12C20 13.5699 19.5399 15.03 18.7599 16.26L17.3 14.7999C17.75 13.97 18 13.01 18 12C18 8.68999 15.3099 5.99999 12 5.99999V8.99999L8 5L12 1ZM6 12C6 15.3099 8.69 18 12 18V15L15.9999 18.9999L12 23V20C7.58 20 4 16.4199 4 12C4 10.43 4.46001 8.96999 5.24001 7.73999L6.69999 9.19999C6.25 10.03 6 10.99 6 12Z"})),g0=x("ReplyIcon",l.jsx("path",{d:"M14 9V5L21 12L14 19V14.9C9 14.9 5.5 16.5 3 20C4 15 7 10 14 9Z"})),C0=x("RotateCwIcon",l.jsx("path",{d:"M18.3546 5.64375C16.7223 4.0125 14.4822 3 11.9944 3C7.01876 3 3 7.0275 3 12C3 16.9725 7.01876 21 11.9944 21C16.1932 21 19.6942 18.1313 20.6961 14.25H18.3546C17.4315 16.8713 14.9325 18.75 11.9944 18.75C8.26829 18.75 5.24015 15.7238 5.24015 12C5.24015 8.27625 8.26829 5.25 11.9944 5.25C13.863 5.25 15.5291 6.02625 16.7448 7.2525L13.1201 10.875H21V3L18.3546 5.64375Z"})),b0=x("SaveIcon",l.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"})),y0=x("ScanCameraIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.85185 2C2.8291 2 2 2.84568 2 3.88889V7.66667H3.85185V3.88889H7.55556V2H3.85185ZM22 3.88889C22 2.84568 21.1709 2 20.1481 2H16.4444V3.88889H20.1481V7.66667H22V3.88889ZM3.85185 22C2.8291 22 2 21.1543 2 20.1111V16.3334H3.85185V20.1111H7.55556V22H3.85185ZM20.1481 22C21.1709 22 22 21.1543 22 20.1111V16.3334H20.1481V20.1111H16.4444V22H20.1481ZM16.6667 7.33334H14.8175L14.0942 6.54584C13.8783 6.30667 13.5633 6.16667 13.2367 6.16667H10.7633C10.4367 6.16667 10.1217 6.30667 9.9 6.54584L9.1825 7.33334H7.33333C6.69167 7.33334 6.16667 7.85834 6.16667 8.50001V15.5C6.16667 16.1417 6.69167 16.6667 7.33333 16.6667H16.6667C17.3083 16.6667 17.8333 16.1417 17.8333 15.5V8.50001C17.8333 7.85834 17.3083 7.33334 16.6667 7.33334ZM12 14.9167C10.39 14.9167 9.08333 13.61 9.08333 12C9.08333 10.39 10.39 9.08334 12 9.08334C13.61 9.08334 14.9167 10.39 14.9167 12C14.9167 13.61 13.61 14.9167 12 14.9167ZM12 13.75C12.9665 13.75 13.75 12.9665 13.75 12C13.75 11.0335 12.9665 10.25 12 10.25C11.0335 10.25 10.25 11.0335 10.25 12C10.25 12.9665 11.0335 13.75 12 13.75Z"})),w0=x("SearchIcon",l.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})),k0=x("ServerIcon",l.jsx("path",{d:"M5.28689 3H18.3689C18.8607 3 19.1557 3.39344 19.1557 3.78689V7.13115C19.1557 7.62295 18.7623 7.91803 18.3689 7.91803H5.28689C4.89344 7.91803 4.5 7.62295 4.5 7.13115V3.88525C4.5 3.39344 4.89344 3 5.28689 3ZM5.28689 9.59016H18.3689C18.8607 9.59016 19.1557 9.98361 19.1557 10.377V13.623C19.1557 14.1148 18.7623 14.4098 18.3689 14.4098H5.28689C4.79508 14.4098 4.5 14.0164 4.5 13.623V10.377C4.5 9.98361 4.89344 9.59016 5.28689 9.59016ZM5.28689 16.1803H18.3689C18.8607 16.1803 19.1557 16.5738 19.1557 16.9672V20.2131C19.1557 20.7049 18.7623 21 18.3689 21H5.28689C4.79508 21 4.5 20.6066 4.5 20.2131V16.9672C4.5 16.4754 4.89344 16.1803 5.28689 16.1803ZM9.41803 6.34426H10.2049V4.67213H9.41803V6.34426ZM9.41803 12.8361H10.2049V11.2623H9.41803V12.8361ZM9.41803 19.4262H10.2049V17.7541H9.41803V19.4262ZM6.17213 4.67213V6.34426H7.84426V4.67213H6.17213ZM6.17213 11.2623V12.9344H7.84426V11.2623H6.17213ZM6.17213 17.7541V19.4262H7.84426V17.7541H6.17213Z"})),E0=x("SettingsIcon",l.jsx("path",{d:"M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z"})),S0=l.jsxs(l.Fragment,{children:[l.jsxs("g",{clipPath:"url(#clip0_4444_236325)",children:[l.jsx("path",{d:"M12 2L6.5 11H17.5L12 2Z"}),l.jsx("path",{d:"M17.5 22C19.9853 22 22 19.9853 22 17.5C22 15.0147 19.9853 13 17.5 13C15.0147 13 13 15.0147 13 17.5C13 19.9853 15.0147 22 17.5 22Z"}),l.jsx("path",{d:"M3 13.5H11V21.5H3V13.5Z"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_4444_236325",children:l.jsx("rect",{width:"24",height:"24"})})})]}),M0=x("ShapesIcon",S0),P0=x("ShieldQuestionIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1L3 5V11C3 16.55 6.84 21.74 12 23C17.16 21.74 21 16.55 21 11V5L12 1ZM11 19V17H13V19H11ZM14.17 12.17L15.07 11.25C15.64 10.68 16 9.88 16 9C16 6.79 14.21 5 12 5C9.79 5 8 6.79 8 9H10C10 7.9 10.9 7 12 7C13.1 7 14 7.9 14 9C14 9.55 13.78 10.05 13.41 10.41L12.17 11.67C11.45 12.4 11 13.4 11 14.5V15H13C13 13.5 13.45 12.9 14.17 12.17Z"})),x0=x("ShieldSecurityIcon",l.jsx("path",{d:"M12 1L3 5V11C3 16.55 6.84 21.74 12 23C17.16 21.74 21 16.55 21 11V5L12 1ZM12 11.99H19C18.47 16.11 15.72 19.78 12 20.93V12H5V6.3L12 3.19V11.99Z"})),L0=x("SkipForwardIcon",l.jsx("path",{d:"M6 18L14.5 12L6 6V18ZM16 6V18H18V6H16Z"})),I0=l.jsxs(l.Fragment,{children:[l.jsx("g",{clipPath:"url(#clip0_2389_1034)",children:l.jsx("path",{d:"M3 17V19H9V17H3ZM3 5V7H13V5H3ZM13 21V19H21V17H13V15H11V21H13ZM7 9V11H3V13H7V15H9V9H7ZM21 13V11H11V13H21ZM15 9H17V7H21V5H17V3H15V9Z"})}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_2389_1034",children:l.jsx("rect",{width:"24",height:"24"})})})]}),N0=x("SlidersHorizontalIcon",I0),A0=x("SocialSecurityCardIcon",l.jsx("path",{d:"M12 15H10V13H12V15ZM18 15H14V13H18V15ZM8 11H6V9H8V11ZM18 11H10V9H18V11ZM20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20ZM4 6V18H20V6H4Z"})),T0=x("SquareIcon",l.jsx("path",{d:"M18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z"})),j0=x("SquareArrowOutUpRightIcon",l.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"})),O0=l.jsxs(l.Fragment,{children:[l.jsx("g",{clipPath:"url(#clip0_60_35451)",children:l.jsx("path",{d:"M19 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.11 21 21 20.1 21 19V5C21 3.9 20.11 3 19 3ZM10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"})}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_60_35451",children:l.jsx("rect",{width:"24",height:"24"})})})]}),_0=x("SquareCheckIcon",O0),$0=x("SquareGlobeLineIcon",l.jsx("path",{d:"M6 2C4.92537 2 4 2.95238 4 4.14286V19.9762C4 21.0476 4.83582 22 6.02985 22H17.9701C19.0448 22 20 21.1667 20 19.9762V4.02381C20 2.95238 19.1642 2 17.9701 2H12M12 5.09524C14.7463 5.09524 17.0149 7.35714 17.0149 10.0952C17.0149 12.8333 14.7463 15.0952 12 15.0952C9.25373 15.0952 6.98507 12.8333 6.98507 10.0952C6.98507 7.35714 9.25373 5.09524 12 5.09524ZM12 6.04762C11.6418 6.64286 11.2836 7.35714 11.0448 8.07143H12.9552C12.7164 7.35714 12.4776 6.64286 12 6.04762ZM10.6866 6.28571C9.73134 6.64286 9.01492 7.2381 8.53731 8.07143H9.97015C10.209 7.35714 10.4478 6.76191 10.6866 6.28571ZM13.3134 6.28571L14.0299 8.07143H15.4627C14.9851 7.2381 14.1493 6.52381 13.3134 6.28571ZM8.1791 9.02381C8.0597 9.38095 8.0597 9.61905 8.0597 9.97619C8.0597 10.3333 8.0597 10.6905 8.1791 10.9286H9.85075C9.85075 10.5714 9.73134 10.2143 9.73134 9.97619C9.73134 9.61905 9.73134 9.26191 9.85075 9.02381H8.1791ZM10.806 9.02381V9.97619C10.806 10.3333 10.806 10.6905 10.9254 10.9286H13.3134C13.194 10.6905 13.194 10.3333 13.194 9.97619V9.02381H10.806ZM14.1493 9.02381C14.1493 9.38095 14.2687 9.7381 14.2687 9.97619C14.2687 10.3333 14.2687 10.6905 14.1493 10.9286H15.8209C15.9403 10.5714 15.9403 10.3333 15.9403 9.97619C15.9403 9.61905 15.9403 9.26191 15.8209 9.02381H14.1493ZM8.53731 12C9.01492 12.8333 9.73134 13.4286 10.6866 13.7857L9.97015 12H8.53731ZM11.0448 12C11.2836 12.7143 11.6418 13.3095 12 14.0238C12.4776 13.4286 12.7164 12.7143 12.9552 12H11.0448ZM14.0299 12C13.791 12.5952 13.6716 13.1905 13.3134 13.7857C14.2687 13.4286 14.9851 12.8333 15.4627 12H14.0299ZM6.98507 17H16.8955V19.0238H6.98507V17Z"})),H0=x("SquareImageIcon",l.jsx("path",{d:"M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3 3.5-4.5 4.5 6H5z"})),V0=x("SquareInputIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20.9805H20C21.1 20.9805 22 20.0905 22 18.9805V4.98049C22 3.88049 21.1 3.00049 20 3.00049H4C2.9 3.00049 2 3.88049 2 4.98049V8.99049H4V4.97049H20V19.0005H4V14.9905H2V18.9805C2 20.0805 2.9 20.9805 4 20.9805ZM15 12L11 8.00002V11H2V13H11V16L15 12Z"})),D0=x("SquareKeyUserIcon",l.jsxs("g",{clipPath:"url(#clip0_12_2)",children:[l.jsxs("mask",{id:"mask0_12_2",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",children:[l.jsx("path",{d:"M24 0H0V24H24V0Z",fill:"black"}),l.jsx("path",{d:"M2 6C2 3.79086 3.79086 2 6 2H18C20.2091 2 22 3.79086 22 6V18C22 20.2091 20.2091 22 18 22H6C3.79086 22 2 20.2091 2 18V6Z",fill:"white"}),l.jsx("path",{d:"M11 10C12.6575 10 14 8.65744 14 6.99993C14 5.34249 12.6575 4 11 4C9.34244 4 8 5.34249 8 6.99993C8 8.65744 9.34244 10 11 10Z",fill:"black"}),l.jsx("path",{d:"M11 12C8.99751 12 5 13.1486 5 15.4286V18H14V15.4257C13.1244 14.675 12.5449 13.4959 12.5025 12.158C11.9494 12.0528 11.429 12 11 12Z",fill:"black"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.3307 13.9288C18.3006 13.5818 18.9959 12.6426 18.9959 11.5385C18.9959 10.1382 17.876 9 16.4979 9C15.1199 9 14 10.1382 14 11.5385C14 11.7348 14.0221 11.926 14.0637 12.1095C14.1319 12.4107 14.2531 12.6915 14.4167 12.941C14.7138 13.3944 15.151 13.7449 15.6653 13.9288L15.6694 20H17.3348V19.1537H19V17.4615H17.3348L17.3307 13.9288ZM16.4979 10.6923C16.956 10.6923 17.3307 11.0731 17.3307 11.5385C17.3307 12.0039 16.956 12.3847 16.4979 12.3847C16.04 12.3847 15.6653 12.0039 15.6653 11.5385C15.6653 11.0731 16.04 10.6923 16.4979 10.6923Z",fill:"black"})]}),l.jsx("g",{mask:"url(#mask0_12_2)",children:l.jsx("path",{d:"M24 0H0V24H24V0Z"})})]})),F0=x("SquareUserIcon",l.jsx("path",{d:"M2 4.25166V19.7483C2 20.9404 2.92715 22 4.25166 22H19.7483C20.9404 22 22 20.9404 22 19.7483V4.25166C22 3.0596 20.9404 2 19.7483 2H4.25166C2.92715 2 2 2.92715 2 4.25166ZM15.245 8.62252C15.245 10.4768 13.7881 11.9338 11.9338 11.9338C10.0795 11.9338 8.62252 10.4768 8.62252 8.62252C8.62252 6.76821 10.0795 5.31126 11.9338 5.31126C13.7881 5.31126 15.245 6.76821 15.245 8.62252ZM5.31126 17.4967C5.31126 15.245 9.68212 14.053 11.9338 14.053C14.1854 14.053 18.5563 15.245 18.5563 17.4967V18.5563H5.31126V17.4967Z"})),R0=x("StarOutlineIcon",l.jsx("path",{d:"M22 9.24L14.81 8.62L12 2L9.19 8.63L2 9.24L7.46 13.97L5.82 21L12 17.27L18.18 21L16.55 13.97L22 9.24ZM12 15.4L8.24 17.67L9.24 13.39L5.92 10.51L10.3 10.13L12 6.1L13.71 10.14L18.09 10.52L14.77 13.4L15.77 17.68L12 15.4Z"})),Z0=x("StarIcon",l.jsx("path",{d:"M12 17.27L18.18 21L16.54 13.97L22 9.24L14.81 8.63L12 2L9.19 8.63L2 9.24L7.46 13.97L5.82 21L12 17.27Z"})),W0=x("TimerIcon",l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.21429 2H14.9286V3.90476H9.21429V2ZM11.119 14.381V8.66667H13.0238V14.381H11.119ZM18.7667 8.08571L20.119 6.73333C19.7095 6.24762 19.2619 5.79048 18.7762 5.39048L17.4238 6.74286C15.9476 5.5619 14.0905 4.85714 12.0714 4.85714C7.3381 4.85714 3.5 8.69524 3.5 13.4286C3.5 18.1619 7.32857 22 12.0714 22C16.8143 22 20.6429 18.1619 20.6429 13.4286C20.6429 11.4095 19.9381 9.55238 18.7667 8.08571ZM5.40476 13.4286C5.40476 17.1143 8.38571 20.0952 12.0714 20.0952C15.7571 20.0952 18.7381 17.1143 18.7381 13.4286C18.7381 9.74286 15.7571 6.7619 12.0714 6.7619C8.38571 6.7619 5.40476 9.74286 5.40476 13.4286Z"})),z0=l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M7 22C6.45 22 5.97933 21.8043 5.588 21.413C5.196 21.021 5 20.55 5 20V6H19V20C19 20.55 18.8043 21.021 18.413 21.413C18.021 21.8043 17.55 22 17 22H7ZM17 8H7V20H17V8ZM9 19H11V9H9V19ZM13 19H15V9H13V19Z"}),l.jsx("path",{d:"M20 5H4V3H9V2H15V3H20V5Z"})]}),B0=x("TrashIcon",z0),U0=x("TriangleAlertIcon",l.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 19H11V17H13V19ZM13 15H11V9H13V15Z"})),K0=x("UsersIcon",l.jsx("path",{d:"M16 11C17.66 11 18.99 9.66 18.99 8C18.99 6.34 17.66 5 16 5C14.34 5 13 6.34 13 8C13 9.66 14.34 11 16 11ZM8 11C9.66 11 10.99 9.66 10.99 8C10.99 6.34 9.66 5 8 5C6.34 5 5 6.34 5 8C5 9.66 6.34 11 8 11ZM8 13C5.67 13 1 14.17 1 16.5V19H15V16.5C15 14.17 10.33 13 8 13ZM16 13C15.71 13 15.38 13.02 15.03 13.05C16.19 13.89 17 15.02 17 16.5V19H23V16.5C23 14.17 18.33 13 16 13Z"})),G0=l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12.125 14.5C13.7819 14.5 15.125 13.1569 15.125 11.5C15.125 9.84315 13.7819 8.5 12.125 8.5C10.4681 8.5 9.125 9.84315 9.125 11.5C9.125 13.1569 10.4681 14.5 12.125 14.5Z"}),l.jsx("path",{d:"M2.125 3.5C2.125 2.39543 3.02043 1.5 4.125 1.5H20.125C21.2296 1.5 22.125 2.39543 22.125 3.5V19.5C22.125 20.6046 21.2296 21.5 20.125 21.5H19.125V22C19.125 22.5523 18.6773 23 18.125 23C17.5727 23 17.125 22.5523 17.125 22V21.5H7.125V22C7.125 22.5523 6.67728 23 6.125 23C5.57272 23 5.125 22.5523 5.125 22V21.5H4.125C3.02043 21.5 2.125 20.6046 2.125 19.5V3.5ZM11.125 6V6.60002C9.16587 6.9977 7.6227 8.54087 7.22502 10.5H6.625C6.07272 10.5 5.625 10.9477 5.625 11.5C5.625 12.0523 6.07272 12.5 6.625 12.5H7.22502C7.6227 14.4591 9.16587 16.0023 11.125 16.4V17C11.125 17.5523 11.5727 18 12.125 18C12.6773 18 13.125 17.5523 13.125 17V16.4C15.0841 16.0023 16.6273 14.4591 17.025 12.5H17.625C18.1773 12.5 18.625 12.0523 18.625 11.5C18.625 10.9477 18.1773 10.5 17.625 10.5H17.025C16.6273 8.54087 15.0841 6.9977 13.125 6.60002V6C13.125 5.44772 12.6773 5 12.125 5C11.5727 5 11.125 5.44772 11.125 6Z"})]}),Y0=x("VaultIcon",G0),Po=x("XIcon",l.jsx("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"})),X0=T2,q0=j2,bi=O2,Q0=mi,xo=i.forwardRef(({className:e,...t},n)=>l.jsx(fi,{ref:n,className:$(["ksjsui-fixed ksjsui-inset-0 ksjsui-z-50 ksjsui-bg-black/80","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0"],e),...t}));xo.displayName=fi.displayName;const yi=i.forwardRef(({className:e,children:t,...n},o)=>l.jsxs(bi,{children:[l.jsx(xo,{}),l.jsxs(pi,{ref:o,className:$(["ksjsui-fixed ksjsui-left-[50%] ksjsui-top-[50%] ksjsui-z-50 ksjsui-grid ksjsui-w-full ksjsui-max-w-lg ksjsui-translate-x-[-50%] ksjsui-translate-y-[-50%] ksjsui-gap-4 ksjsui-border ksjsui-bg-background ksjsui-p-6 ksjsui-shadow-lg ksjsui-duration-200","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0 data-[state=open]:ksjsui-zoom-in-95 data-[state=open]:ksjsui-slide-in-from-left-1/2 data-[state=open]:ksjsui-slide-in-from-top-[48%]","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95 data-[state=closed]:ksjsui-slide-out-to-left-1/2 data-[state=closed]:ksjsui-slide-out-to-top-[48%]","sm:ksjsui-rounded-lg"],e),...n,children:[t,l.jsxs(mi,{className:$(["ksjsui-absolute ksjsui-end-4 ksjsui-top-4 ksjsui-rounded-sm ksjsui-opacity-70 ksjsui-ring-offset-background ksjsui-transition-opacity hover:ksjsui-opacity-100","focus:ksjsui-outline-none focus:ksjsui-ring-2 focus:ksjsui-ring-ring focus:ksjsui-ring-offset-2","disabled:ksjsui-pointer-events-none"]),children:[l.jsx(Po,{className:"ksjsui-size-4"}),l.jsx("span",{className:"ksjsui-sr-only",children:"Close"})]})]})]}));yi.displayName=pi.displayName;const wi=({className:e,...t})=>l.jsx("div",{className:$("ksjsui-flex ksjsui-flex-col ksjsui-space-y-1.5",e),...t});wi.displayName="DialogHeader";const ki=({className:e,...t})=>l.jsx("div",{className:$(["ksjsui-flex ksjsui-flex-col-reverse","sm:ksjsui-flex-row sm:ksjsui-justify-end sm:ksjsui-space-x-2"],e),...t});ki.displayName="DialogFooter";const Ei=i.forwardRef(({className:e,...t},n)=>l.jsx(hi,{ref:n,className:$("ksjsui-text-lg ksjsui-font-semibold ksjsui-leading-none ksjsui-tracking-tight",e),...t}));Ei.displayName=hi.displayName;const Si=i.forwardRef(({className:e,...t},n)=>l.jsx(vi,{ref:n,className:$("ksjsui-text-sm",e),...t}));Si.displayName=vi.displayName;var J0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],pe=J0.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?re:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Mi(e,t){e&&xe.flushSync(()=>e.dispatchEvent(t))}function Pi(e){const t=e+"CollectionProvider",[n,o]=de(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=m=>{const{scope:C,children:p}=m,g=te.useRef(null),b=te.useRef(new Map).current;return l.jsx(r,{scope:C,itemMap:b,collectionRef:g,children:p})};c.displayName=t;const a=e+"CollectionSlot",d=te.forwardRef((m,C)=>{const{scope:p,children:g}=m,b=s(a,p),y=V(C,b.collectionRef);return l.jsx(re,{ref:y,children:g})});d.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",h=te.forwardRef((m,C)=>{const{scope:p,children:g,...b}=m,y=te.useRef(null),w=V(C,y),k=s(u,p);return te.useEffect(()=>(k.itemMap.set(y,{ref:y,...b}),()=>void k.itemMap.delete(y))),l.jsx(re,{[f]:"",ref:w,children:g})});h.displayName=u;function v(m){const C=s(e+"CollectionConsumer",m);return te.useCallback(()=>{const g=C.collectionRef.current;if(!g)return[];const b=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(C.itemMap.values()).sort((k,M)=>b.indexOf(k.ref.current)-b.indexOf(M.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},v,o]}var xi=i.createContext(void 0),e3=e=>{const{dir:t,children:n}=e;return l.jsx(xi.Provider,{value:t,children:n})};function sn(e){const t=i.useContext(xi);return e||t||"ltr"}var t3="DismissableLayer",Lo="dismissableLayer.update",n3="dismissableLayer.pointerDownOutside",o3="dismissableLayer.focusOutside",Li,Ii=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ni=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...d}=e,u=i.useContext(Ii),[f,h]=i.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=i.useState({}),C=V(t,E=>h(E)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(g),y=f?p.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=y>=b,M=i3(E=>{const L=E.target,N=[...u.branches].some(T=>T.contains(L));!k||N||(r==null||r(E),c==null||c(E),E.defaultPrevented||a==null||a())},v),P=a3(E=>{const L=E.target;[...u.branches].some(T=>T.contains(L))||(s==null||s(E),c==null||c(E),E.defaultPrevented||a==null||a())},v);return It(E=>{y===u.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},v),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Li=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ai(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Li)}},[f,v,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ai())},[f,u]),i.useEffect(()=>{const E=()=>m({});return document.addEventListener(Lo,E),()=>document.removeEventListener(Lo,E)},[]),l.jsx(pe.div,{...d,ref:C,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:I(e.onFocusCapture,P.onFocusCapture),onBlurCapture:I(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,M.onPointerDownCapture)})});Ni.displayName=t3;var r3="DismissableLayerBranch",s3=i.forwardRef((e,t)=>{const n=i.useContext(Ii),o=i.useRef(null),r=V(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(pe.div,{...e,ref:r})});s3.displayName=r3;function i3(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let d=function(){Ti(n3,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=d,t.addEventListener("click",r.current,{once:!0})):d()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function a3(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Ti(o3,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ai(){const e=new CustomEvent(Lo);document.dispatchEvent(e)}function Ti(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Mi(r,s):r.dispatchEvent(s)}var Io="focusScope.autoFocusOnMount",No="focusScope.autoFocusOnUnmount",ji={bubbles:!1,cancelable:!0},c3="FocusScope",Oi=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,d]=i.useState(null),u=U(r),f=U(s),h=i.useRef(null),v=V(t,p=>d(p)),m=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let p=function(w){if(m.paused||!a)return;const k=w.target;a.contains(k)?h.current=k:Be(h.current,{select:!0})},g=function(w){if(m.paused||!a)return;const k=w.relatedTarget;k!==null&&(a.contains(k)||Be(h.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const M of w)M.removedNodes.length>0&&Be(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),y.disconnect()}}},[o,a,m.paused]),i.useEffect(()=>{if(a){Hi.add(m);const p=document.activeElement;if(!a.contains(p)){const b=new CustomEvent(Io,ji);a.addEventListener(Io,u),a.dispatchEvent(b),b.defaultPrevented||(l3(h3(_i(a)),{select:!0}),document.activeElement===p&&Be(a))}return()=>{a.removeEventListener(Io,u),setTimeout(()=>{const b=new CustomEvent(No,ji);a.addEventListener(No,f),a.dispatchEvent(b),b.defaultPrevented||Be(p??document.body,{select:!0}),a.removeEventListener(No,f),Hi.remove(m)},0)}}},[a,u,f,m]);const C=i.useCallback(p=>{if(!n&&!o||m.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,b=document.activeElement;if(g&&b){const y=p.currentTarget,[w,k]=u3(y);w&&k?!p.shiftKey&&b===k?(p.preventDefault(),n&&Be(w,{select:!0})):p.shiftKey&&b===w&&(p.preventDefault(),n&&Be(k,{select:!0})):b===y&&p.preventDefault()}},[n,o,m.paused]);return l.jsx(pe.div,{tabIndex:-1,...c,ref:v,onKeyDown:C})});Oi.displayName=c3;function l3(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Be(o,{select:t}),document.activeElement!==n)return}function u3(e){const t=_i(e),n=$i(t,e),o=$i(t.reverse(),e);return[n,o]}function _i(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $i(e,t){for(const n of e)if(!d3(n,{upTo:t}))return n}function d3(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 f3(e){return e instanceof HTMLInputElement&&"select"in e}function Be(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&f3(e)&&t&&e.select()}}var Hi=p3();function p3(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Vi(e,t),e.unshift(t)},remove(t){var n;e=Vi(e,t),(n=e[0])==null||n.resume()}}}function Vi(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function h3(e){return e.filter(t=>t.tagName!=="A")}const v3=["top","right","bottom","left"],Ue=Math.min,ve=Math.max,an=Math.round,cn=Math.floor,Ie=e=>({x:e,y:e}),m3={left:"right",right:"left",bottom:"top",top:"bottom"},g3={start:"end",end:"start"};function Ao(e,t,n){return ve(e,Ue(t,n))}function He(e,t){return typeof e=="function"?e(t):e}function Ve(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function To(e){return e==="x"?"y":"x"}function jo(e){return e==="y"?"height":"width"}function Ke(e){return["top","bottom"].includes(Ve(e))?"y":"x"}function Oo(e){return To(Ke(e))}function C3(e,t,n){n===void 0&&(n=!1);const o=gt(e),r=Oo(e),s=jo(r);let c=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=ln(c)),[c,ln(c)]}function b3(e){const t=ln(e);return[_o(e),t,_o(t)]}function _o(e){return e.replace(/start|end/g,t=>g3[t])}function y3(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:c;default:return[]}}function w3(e,t,n,o){const r=gt(e);let s=y3(Ve(e),n==="start",o);return r&&(s=s.map(c=>c+"-"+r),t&&(s=s.concat(s.map(_o)))),s}function ln(e){return e.replace(/left|right|bottom|top/g,t=>m3[t])}function k3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Di(e){return typeof e!="number"?k3(e):{top:e,right:e,bottom:e,left:e}}function un(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Fi(e,t,n){let{reference:o,floating:r}=e;const s=Ke(t),c=Oo(t),a=jo(c),d=Ve(t),u=s==="y",f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,v=o[a]/2-r[a]/2;let m;switch(d){case"top":m={x:f,y:o.y-r.height};break;case"bottom":m={x:f,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:h};break;case"left":m={x:o.x-r.width,y:h};break;default:m={x:o.x,y:o.y}}switch(gt(t)){case"start":m[c]-=v*(n&&u?-1:1);break;case"end":m[c]+=v*(n&&u?-1:1);break}return m}const E3=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:c}=n,a=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(t));let u=await c.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:h}=Fi(u,o,d),v=o,m={},C=0;for(let p=0;p<a.length;p++){const{name:g,fn:b}=a[p],{x:y,y:w,data:k,reset:M}=await b({x:f,y:h,initialPlacement:o,placement:v,strategy:r,middlewareData:m,rects:u,platform:c,elements:{reference:e,floating:t}});f=y??f,h=w??h,m={...m,[g]:{...m[g],...k}},M&&C<=50&&(C++,typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(u=M.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:r}):M.rects),{x:f,y:h}=Fi(u,v,d)),p=-1)}return{x:f,y:h,placement:v,strategy:r,middlewareData:m}};async function At(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:c,elements:a,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:v=!1,padding:m=0}=He(t,e),C=Di(m),g=a[v?h==="floating"?"reference":"floating":h],b=un(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:d})),y=h==="floating"?{x:o,y:r,width:c.floating.width,height:c.floating.height}:c.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),k=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},M=un(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:d}):y);return{top:(b.top-M.top+C.top)/k.y,bottom:(M.bottom-b.bottom+C.bottom)/k.y,left:(b.left-M.left+C.left)/k.x,right:(M.right-b.right+C.right)/k.x}}const S3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:c,elements:a,middlewareData:d}=t,{element:u,padding:f=0}=He(e,t)||{};if(u==null)return{};const h=Di(f),v={x:n,y:o},m=Oo(r),C=jo(m),p=await c.getDimensions(u),g=m==="y",b=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",k=s.reference[C]+s.reference[m]-v[m]-s.floating[C],M=v[m]-s.reference[m],P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(u));let E=P?P[w]:0;(!E||!await(c.isElement==null?void 0:c.isElement(P)))&&(E=a.floating[w]||s.floating[C]);const L=k/2-M/2,N=E/2-p[C]/2-1,T=Ue(h[b],N),D=Ue(h[y],N),_=T,R=E-p[C]-D,j=E/2-p[C]/2+L,W=Ao(_,j,R),H=!d.arrow&&gt(r)!=null&&j!==W&&s.reference[C]/2-(j<_?T:D)-p[C]/2<0,Z=H?j<_?j-_:j-R:0;return{[m]:v[m]+Z,data:{[m]:W,centerOffset:j-W-Z,...H&&{alignmentOffset:Z}},reset:H}}}),M3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:c,initialPlacement:a,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:p=!0,...g}=He(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Ve(r),y=Ke(a),w=Ve(a)===a,k=await(d.isRTL==null?void 0:d.isRTL(u.floating)),M=v||(w||!p?[ln(a)]:b3(a)),P=C!=="none";!v&&P&&M.push(...w3(a,p,C,k));const E=[a,...M],L=await At(t,g),N=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&N.push(L[b]),h){const j=C3(r,c,k);N.push(L[j[0]],L[j[1]])}if(T=[...T,{placement:r,overflows:N}],!N.every(j=>j<=0)){var D,_;const j=(((D=s.flip)==null?void 0:D.index)||0)+1,W=E[j];if(W)return{data:{index:j,overflows:T},reset:{placement:W}};let H=(_=T.filter(Z=>Z.overflows[0]<=0).sort((Z,O)=>Z.overflows[1]-O.overflows[1])[0])==null?void 0:_.placement;if(!H)switch(m){case"bestFit":{var R;const Z=(R=T.filter(O=>{if(P){const A=Ke(O.placement);return A===y||A==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(A=>A>0).reduce((A,K)=>A+K,0)]).sort((O,A)=>O[1]-A[1])[0])==null?void 0:R[0];Z&&(H=Z);break}case"initialPlacement":H=a;break}if(r!==H)return{reset:{placement:H}}}return{}}}};function Ri(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zi(e){return v3.some(t=>e[t]>=0)}const P3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=He(e,t);switch(o){case"referenceHidden":{const s=await At(t,{...r,elementContext:"reference"}),c=Ri(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Zi(c)}}}case"escaped":{const s=await At(t,{...r,altBoundary:!0}),c=Ri(s,n.floating);return{data:{escapedOffsets:c,escaped:Zi(c)}}}default:return{}}}}};async function x3(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),c=Ve(n),a=gt(n),d=Ke(n)==="y",u=["left","top"].includes(c)?-1:1,f=s&&d?-1:1,h=He(t,e);let{mainAxis:v,crossAxis:m,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof C=="number"&&(m=a==="end"?C*-1:C),d?{x:m*f,y:v*u}:{x:v*u,y:m*f}}const L3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:c,middlewareData:a}=t,d=await x3(t,e);return c===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+d.x,y:s+d.y,data:{...d,placement:c}}}}},I3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:a={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...d}=He(e,t),u={x:n,y:o},f=await At(t,d),h=Ke(Ve(r)),v=To(h);let m=u[v],C=u[h];if(s){const g=v==="y"?"top":"left",b=v==="y"?"bottom":"right",y=m+f[g],w=m-f[b];m=Ao(y,m,w)}if(c){const g=h==="y"?"top":"left",b=h==="y"?"bottom":"right",y=C+f[g],w=C-f[b];C=Ao(y,C,w)}const p=a.fn({...t,[v]:m,[h]:C});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[v]:s,[h]:c}}}}}},N3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:c}=t,{offset:a=0,mainAxis:d=!0,crossAxis:u=!0}=He(e,t),f={x:n,y:o},h=Ke(r),v=To(h);let m=f[v],C=f[h];const p=He(a,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(d){const w=v==="y"?"height":"width",k=s.reference[v]-s.floating[w]+g.mainAxis,M=s.reference[v]+s.reference[w]-g.mainAxis;m<k?m=k:m>M&&(m=M)}if(u){var b,y;const w=v==="y"?"width":"height",k=["top","left"].includes(Ve(r)),M=s.reference[h]-s.floating[w]+(k&&((b=c.offset)==null?void 0:b[h])||0)+(k?0:g.crossAxis),P=s.reference[h]+s.reference[w]+(k?0:((y=c.offset)==null?void 0:y[h])||0)-(k?g.crossAxis:0);C<M?C=M:C>P&&(C=P)}return{[v]:m,[h]:C}}}},A3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:c,elements:a}=t,{apply:d=()=>{},...u}=He(e,t),f=await At(t,u),h=Ve(r),v=gt(r),m=Ke(r)==="y",{width:C,height:p}=s.floating;let g,b;h==="top"||h==="bottom"?(g=h,b=v===(await(c.isRTL==null?void 0:c.isRTL(a.floating))?"start":"end")?"left":"right"):(b=h,g=v==="end"?"top":"bottom");const y=p-f.top-f.bottom,w=C-f.left-f.right,k=Ue(p-f[g],y),M=Ue(C-f[b],w),P=!t.middlewareData.shift;let E=k,L=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=y),P&&!v){const T=ve(f.left,0),D=ve(f.right,0),_=ve(f.top,0),R=ve(f.bottom,0);m?L=C-2*(T!==0||D!==0?T+D:ve(f.left,f.right)):E=p-2*(_!==0||R!==0?_+R:ve(f.top,f.bottom))}await d({...t,availableWidth:L,availableHeight:E});const N=await c.getDimensions(a.floating);return C!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function dn(){return typeof window<"u"}function Ct(e){return Wi(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(Wi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Wi(e){return dn()?e instanceof Node||e instanceof me(e).Node:!1}function we(e){return dn()?e instanceof Element||e instanceof me(e).Element:!1}function Ae(e){return dn()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function zi(e){return!dn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function Tt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function T3(e){return["table","td","th"].includes(Ct(e))}function fn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function $o(e){const t=Ho(),n=we(e)?ke(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function j3(e){let t=Ge(e);for(;Ae(t)&&!bt(t);){if($o(t))return t;if(fn(t))return null;t=Ge(t)}return null}function Ho(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bt(e){return["html","body","#document"].includes(Ct(e))}function ke(e){return me(e).getComputedStyle(e)}function pn(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ge(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zi(e)&&e.host||Ne(e);return zi(t)?t.host:t}function Bi(e){const t=Ge(e);return bt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(t)&&Tt(t)?t:Bi(t)}function jt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Bi(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),c=me(r);if(s){const a=Vo(c);return t.concat(c,c.visualViewport||[],Tt(r)?r:[],a&&n?jt(a):[])}return t.concat(r,jt(r,[],n))}function Vo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ui(e){const t=ke(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ae(e),s=r?e.offsetWidth:n,c=r?e.offsetHeight:o,a=an(n)!==s||an(o)!==c;return a&&(n=s,o=c),{width:n,height:o,$:a}}function Do(e){return we(e)?e:e.contextElement}function yt(e){const t=Do(e);if(!Ae(t))return Ie(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Ui(t);let c=(s?an(n.width):n.width)/o,a=(s?an(n.height):n.height)/r;return(!c||!Number.isFinite(c))&&(c=1),(!a||!Number.isFinite(a))&&(a=1),{x:c,y:a}}const O3=Ie(0);function Ki(e){const t=me(e);return!Ho()||!t.visualViewport?O3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==me(e)?!1:t}function st(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Do(e);let c=Ie(1);t&&(o?we(o)&&(c=yt(o)):c=yt(e));const a=_3(s,n,o)?Ki(s):Ie(0);let d=(r.left+a.x)/c.x,u=(r.top+a.y)/c.y,f=r.width/c.x,h=r.height/c.y;if(s){const v=me(s),m=o&&we(o)?me(o):o;let C=v,p=Vo(C);for(;p&&o&&m!==C;){const g=yt(p),b=p.getBoundingClientRect(),y=ke(p),w=b.left+(p.clientLeft+parseFloat(y.paddingLeft))*g.x,k=b.top+(p.clientTop+parseFloat(y.paddingTop))*g.y;d*=g.x,u*=g.y,f*=g.x,h*=g.y,d+=w,u+=k,C=me(p),p=Vo(C)}}return un({width:f,height:h,x:d,y:u})}function Fo(e,t){const n=pn(e).scrollLeft;return t?t.left+n:st(Ne(e)).left+n}function Gi(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:Fo(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function $3(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",c=Ne(o),a=t?fn(t.floating):!1;if(o===c||a&&s)return n;let d={scrollLeft:0,scrollTop:0},u=Ie(1);const f=Ie(0),h=Ae(o);if((h||!h&&!s)&&((Ct(o)!=="body"||Tt(c))&&(d=pn(o)),Ae(o))){const m=st(o);u=yt(o),f.x=m.x+o.clientLeft,f.y=m.y+o.clientTop}const v=c&&!h&&!s?Gi(c,d,!0):Ie(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+v.x,y:n.y*u.y-d.scrollTop*u.y+f.y+v.y}}function H3(e){return Array.from(e.getClientRects())}function V3(e){const t=Ne(e),n=pn(e),o=e.ownerDocument.body,r=ve(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ve(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+Fo(e);const a=-n.scrollTop;return ke(o).direction==="rtl"&&(c+=ve(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:c,y:a}}function D3(e,t){const n=me(e),o=Ne(e),r=n.visualViewport;let s=o.clientWidth,c=o.clientHeight,a=0,d=0;if(r){s=r.width,c=r.height;const u=Ho();(!u||u&&t==="fixed")&&(a=r.offsetLeft,d=r.offsetTop)}return{width:s,height:c,x:a,y:d}}function F3(e,t){const n=st(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Ae(e)?yt(e):Ie(1),c=e.clientWidth*s.x,a=e.clientHeight*s.y,d=r*s.x,u=o*s.y;return{width:c,height:a,x:d,y:u}}function Yi(e,t,n){let o;if(t==="viewport")o=D3(e,n);else if(t==="document")o=V3(Ne(e));else if(we(t))o=F3(t,n);else{const r=Ki(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return un(o)}function Xi(e,t){const n=Ge(e);return n===t||!we(n)||bt(n)?!1:ke(n).position==="fixed"||Xi(n,t)}function R3(e,t){const n=t.get(e);if(n)return n;let o=jt(e,[],!1).filter(a=>we(a)&&Ct(a)!=="body"),r=null;const s=ke(e).position==="fixed";let c=s?Ge(e):e;for(;we(c)&&!bt(c);){const a=ke(c),d=$o(c);!d&&a.position==="fixed"&&(r=null),(s?!d&&!r:!d&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Tt(c)&&!d&&Xi(e,c))?o=o.filter(f=>f!==c):r=a,c=Ge(c)}return t.set(e,o),o}function Z3(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const c=[...n==="clippingAncestors"?fn(t)?[]:R3(t,this._c):[].concat(n),o],a=c[0],d=c.reduce((u,f)=>{const h=Yi(t,f,r);return u.top=ve(h.top,u.top),u.right=Ue(h.right,u.right),u.bottom=Ue(h.bottom,u.bottom),u.left=ve(h.left,u.left),u},Yi(t,a,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function W3(e){const{width:t,height:n}=Ui(e);return{width:t,height:n}}function z3(e,t,n){const o=Ae(t),r=Ne(t),s=n==="fixed",c=st(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const d=Ie(0);if(o||!o&&!s)if((Ct(t)!=="body"||Tt(r))&&(a=pn(t)),o){const v=st(t,!0,s,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else r&&(d.x=Fo(r));const u=r&&!o&&!s?Gi(r,a):Ie(0),f=c.left+a.scrollLeft-d.x-u.x,h=c.top+a.scrollTop-d.y-u.y;return{x:f,y:h,width:c.width,height:c.height}}function Ro(e){return ke(e).position==="static"}function qi(e,t){if(!Ae(e)||ke(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ne(e)===n&&(n=n.ownerDocument.body),n}function Qi(e,t){const n=me(e);if(fn(e))return n;if(!Ae(e)){let r=Ge(e);for(;r&&!bt(r);){if(we(r)&&!Ro(r))return r;r=Ge(r)}return n}let o=qi(e,t);for(;o&&T3(o)&&Ro(o);)o=qi(o,t);return o&&bt(o)&&Ro(o)&&!$o(o)?n:o||j3(e)||n}const B3=async function(e){const t=this.getOffsetParent||Qi,n=this.getDimensions,o=await n(e.floating);return{reference:z3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function U3(e){return ke(e).direction==="rtl"}const K3={convertOffsetParentRelativeRectToViewportRelativeRect:$3,getDocumentElement:Ne,getClippingRect:Z3,getOffsetParent:Qi,getElementRects:B3,getClientRects:H3,getDimensions:W3,getScale:yt,isElement:we,isRTL:U3};function Ji(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function G3(e,t){let n=null,o;const r=Ne(e);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function c(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:f,top:h,width:v,height:m}=u;if(a||t(),!v||!m)return;const C=cn(h),p=cn(r.clientWidth-(f+v)),g=cn(r.clientHeight-(h+m)),b=cn(f),w={rootMargin:-C+"px "+-p+"px "+-g+"px "+-b+"px",threshold:ve(0,Ue(1,d))||1};let k=!0;function M(P){const E=P[0].intersectionRatio;if(E!==d){if(!k)return c();E?c(!1,E):o=setTimeout(()=>{c(!1,1e-7)},1e3)}E===1&&!Ji(u,e.getBoundingClientRect())&&c(),k=!1}try{n=new IntersectionObserver(M,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(M,w)}n.observe(e)}return c(!0),s}function hn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,u=Do(e),f=r||s?[...u?jt(u):[],...jt(t)]:[];f.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const h=u&&a?G3(u,n):null;let v=-1,m=null;c&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),u&&!d&&m.observe(u),m.observe(t));let C,p=d?st(e):null;d&&g();function g(){const b=st(e);p&&!Ji(p,b)&&n(),p=b,C=requestAnimationFrame(g)}return n(),()=>{var b;f.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),h==null||h(),(b=m)==null||b.disconnect(),m=null,d&&cancelAnimationFrame(C)}}const Y3=L3,X3=I3,q3=M3,Q3=A3,J3=P3,ea=S3,eh=N3,th=(e,t,n)=>{const o=new Map,r={platform:K3,...n},s={...r.platform,_c:o};return E3(e,t,{...r,platform:s})};var vn=typeof document<"u"?te.useLayoutEffect:te.useEffect;function mn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!mn(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!mn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ta(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function na(e,t){const n=ta(e);return Math.round(t*n)/n}function Zo(e){const t=i.useRef(e);return vn(()=>{t.current=e}),t}function gn(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:c}={},transform:a=!0,whileElementsMounted:d,open:u}=e,[f,h]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,m]=i.useState(o);mn(v,o)||m(o);const[C,p]=i.useState(null),[g,b]=i.useState(null),y=i.useCallback(O=>{O!==P.current&&(P.current=O,p(O))},[]),w=i.useCallback(O=>{O!==E.current&&(E.current=O,b(O))},[]),k=s||C,M=c||g,P=i.useRef(null),E=i.useRef(null),L=i.useRef(f),N=d!=null,T=Zo(d),D=Zo(r),_=Zo(u),R=i.useCallback(()=>{if(!P.current||!E.current)return;const O={placement:t,strategy:n,middleware:v};D.current&&(O.platform=D.current),th(P.current,E.current,O).then(A=>{const K={...A,isPositioned:_.current!==!1};j.current&&!mn(L.current,K)&&(L.current=K,xe.flushSync(()=>{h(K)}))})},[v,t,n,D,_]);vn(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,h(O=>({...O,isPositioned:!1})))},[u]);const j=i.useRef(!1);vn(()=>(j.current=!0,()=>{j.current=!1}),[]),vn(()=>{if(k&&(P.current=k),M&&(E.current=M),k&&M){if(T.current)return T.current(k,M,R);R()}},[k,M,R,T,N]);const W=i.useMemo(()=>({reference:P,floating:E,setReference:y,setFloating:w}),[y,w]),H=i.useMemo(()=>({reference:k,floating:M}),[k,M]),Z=i.useMemo(()=>{const O={position:n,left:0,top:0};if(!H.floating)return O;const A=na(H.floating,f.x),K=na(H.floating,f.y);return a?{...O,transform:"translate("+A+"px, "+K+"px)",...ta(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:K}},[n,a,H.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:R,refs:W,elements:H,floatingStyles:Z}),[f,R,W,H,Z])}const nh=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?ea({element:o.current,padding:r}).fn(n):{}:o?ea({element:o,padding:r}).fn(n):{}}}},Cn=(e,t)=>({...Y3(e),options:[e,t]}),bn=(e,t)=>({...X3(e),options:[e,t]}),yn=(e,t)=>({...eh(e),options:[e,t]}),wn=(e,t)=>({...q3(e),options:[e,t]}),kn=(e,t)=>({...Q3(e),options:[e,t]}),En=(e,t)=>({...J3(e),options:[e,t]}),Sn=(e,t)=>({...nh(e),options:[e,t]});var oh="Arrow",oa=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return l.jsx(pe.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});oa.displayName=oh;var rh=oa;function Mn(e){const[t,n]=i.useState(void 0);return J(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let c,a;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;c=u.inlineSize,a=u.blockSize}else c=e.offsetWidth,a=e.offsetHeight;n({width:c,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Wo="Popper",[ra,sa]=de(Wo),[sh,ia]=ra(Wo),aa=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return l.jsx(sh,{scope:t,anchor:o,onAnchorChange:r,children:n})};aa.displayName=Wo;var ca="PopperAnchor",la=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=ia(ca,n),c=i.useRef(null),a=V(t,c);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:l.jsx(pe.div,{...r,ref:a})});la.displayName=ca;var zo="PopperContent",[ih,ah]=ra(zo),ua=i.forwardRef((e,t)=>{var F,Y,Q,G,X,q;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:C,...p}=e,g=ia(zo,n),[b,y]=i.useState(null),w=V(t,ee=>y(ee)),[k,M]=i.useState(null),P=Mn(k),E=(P==null?void 0:P.width)??0,L=(P==null?void 0:P.height)??0,N=o+(s!=="center"?"-"+s:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(u)?u:[u],_=D.length>0,R={padding:T,boundary:D.filter(lh),altBoundary:_},{refs:j,floatingStyles:W,placement:H,isPositioned:Z,middlewareData:O}=gn({strategy:"fixed",placement:N,whileElementsMounted:(...ee)=>hn(...ee,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Cn({mainAxis:r+L,alignmentAxis:c}),d&&bn({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?yn():void 0,...R}),d&&wn({...R}),kn({...R,apply:({elements:ee,rects:le,availableWidth:Se,availableHeight:Me})=>{const{width:Pe,height:lt}=le.reference,ue=ee.floating.style;ue.setProperty("--radix-popper-available-width",`${Se}px`),ue.setProperty("--radix-popper-available-height",`${Me}px`),ue.setProperty("--radix-popper-anchor-width",`${Pe}px`),ue.setProperty("--radix-popper-anchor-height",`${lt}px`)}}),k&&Sn({element:k,padding:a}),uh({arrowWidth:E,arrowHeight:L}),v&&En({strategy:"referenceHidden",...R})]}),[A,K]=pa(H),z=U(C);J(()=>{Z&&(z==null||z())},[Z,z]);const oe=(F=O.arrow)==null?void 0:F.x,ae=(Y=O.arrow)==null?void 0:Y.y,se=((Q=O.arrow)==null?void 0:Q.centerOffset)!==0,[he,ce]=i.useState();return J(()=>{b&&ce(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:Z?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(G=O.transformOrigin)==null?void 0:G.x,(X=O.transformOrigin)==null?void 0:X.y].join(" "),...((q=O.hide)==null?void 0:q.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(ih,{scope:n,placedSide:A,onArrowChange:M,arrowX:oe,arrowY:ae,shouldHideArrow:se,children:l.jsx(pe.div,{"data-side":A,"data-align":K,...p,ref:w,style:{...p.style,animation:Z?void 0:"none"}})})})});ua.displayName=zo;var da="PopperArrow",ch={top:"bottom",right:"left",bottom:"top",left:"right"},fa=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=ah(da,o),c=ch[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(rh,{...r,ref:n,style:{...r.style,display:"block"}})})});fa.displayName=da;function lh(e){return e!==null}var uh=e=>({name:"transformOrigin",options:e,fn(t){var g,b,y;const{placement:n,rects:o,middlewareData:r}=t,c=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[u,f]=pa(n),h={start:"0%",center:"50%",end:"100%"}[f],v=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,m=(((y=r.arrow)==null?void 0:y.y)??0)+d/2;let C="",p="";return u==="bottom"?(C=c?h:`${v}px`,p=`${-d}px`):u==="top"?(C=c?h:`${v}px`,p=`${o.floating.height+d}px`):u==="right"?(C=`${-d}px`,p=c?h:`${m}px`):u==="left"&&(C=`${o.floating.width+d}px`,p=c?h:`${m}px`),{data:{x:C,y:p}}}});function pa(e){const[t,n="center"]=e.split("-");return[t,n]}var ha=aa,dh=la,fh=ua,ph=fa,hh="Portal",va=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);J(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?ut.createPortal(l.jsx(pe.div,{...o,ref:t}),c):null});va.displayName=hh;function vh(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var Ot=e=>{const{present:t,children:n}=e,o=mh(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=V(o.ref,gh(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};Ot.displayName="Presence";function mh(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,d]=vh(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Pn(o.current);s.current=a==="mounted"?u:"none"},[a]),J(()=>{const u=o.current,f=r.current;if(f!==e){const v=s.current,m=Pn(u);e?d("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&v!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),J(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const p=Pn(o.current).includes(m.animationName);if(m.target===t&&p&&(d("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=m=>{m.target===t&&(s.current=Pn(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function Pn(e){return(e==null?void 0:e.animationName)||"none"}function gh(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bo="rovingFocusGroup.onEntryFocus",Ch={bubbles:!1,cancelable:!0},xn="RovingFocusGroup",[Uo,ma,bh]=Pi(xn),[yh,ga]=de(xn,[bh]),[wh,kh]=yh(xn),Ca=i.forwardRef((e,t)=>l.jsx(Uo.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Uo.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Eh,{...e,ref:t})})}));Ca.displayName=xn;var Eh=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...h}=e,v=i.useRef(null),m=V(t,v),C=sn(s),[p=null,g]=_e({prop:c,defaultProp:a,onChange:d}),[b,y]=i.useState(!1),w=U(u),k=ma(n),M=i.useRef(!1),[P,E]=i.useState(0);return i.useEffect(()=>{const L=v.current;if(L)return L.addEventListener(Bo,w),()=>L.removeEventListener(Bo,w)},[w]),l.jsx(wh,{scope:n,orientation:o,dir:C,loop:r,currentTabStopId:p,onItemFocus:i.useCallback(L=>g(L),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>E(L=>L+1),[]),onFocusableItemRemove:i.useCallback(()=>E(L=>L-1),[]),children:l.jsx(pe.div,{tabIndex:b||P===0?-1:0,"data-orientation":o,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:I(e.onMouseDown,()=>{M.current=!0}),onFocus:I(e.onFocus,L=>{const N=!M.current;if(L.target===L.currentTarget&&N&&!b){const T=new CustomEvent(Bo,Ch);if(L.currentTarget.dispatchEvent(T),!T.defaultPrevented){const D=k().filter(H=>H.focusable),_=D.find(H=>H.active),R=D.find(H=>H.id===p),W=[_,R,...D].filter(Boolean).map(H=>H.ref.current);wa(W,f)}}M.current=!1}),onBlur:I(e.onBlur,()=>y(!1))})})}),ba="RovingFocusGroupItem",ya=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,...c}=e,a=ge(),d=s||a,u=kh(ba,n),f=u.currentTabStopId===d,h=ma(n),{onFocusableItemAdd:v,onFocusableItemRemove:m}=u;return i.useEffect(()=>{if(o)return v(),()=>m()},[o,v,m]),l.jsx(Uo.ItemSlot,{scope:n,id:d,focusable:o,active:r,children:l.jsx(pe.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...c,ref:t,onMouseDown:I(e.onMouseDown,C=>{o?u.onItemFocus(d):C.preventDefault()}),onFocus:I(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:I(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){u.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const p=Ph(C,u.orientation,u.dir);if(p!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let b=h().filter(y=>y.focusable).map(y=>y.ref.current);if(p==="last")b.reverse();else if(p==="prev"||p==="next"){p==="prev"&&b.reverse();const y=b.indexOf(C.currentTarget);b=u.loop?xh(b,y+1):b.slice(y+1)}setTimeout(()=>wa(b))}})})})});ya.displayName=ba;var Sh={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mh(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ph(e,t,n){const o=Mh(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Sh[o]}function wa(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function xh(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Lh=Ca,Ih=ya,Ko=["Enter"," "],Nh=["ArrowDown","PageUp","Home"],ka=["ArrowUp","PageDown","End"],Ah=[...Nh,...ka],Th={ltr:[...Ko,"ArrowRight"],rtl:[...Ko,"ArrowLeft"]},jh={ltr:["ArrowLeft"],rtl:["ArrowRight"]},_t="Menu",[$t,Oh,_h]=Pi(_t),[it,Ea]=de(_t,[_h,sa,ga]),Ht=sa(),Sa=ga(),[Ma,Ye]=it(_t),[$h,Vt]=it(_t),Pa=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:c=!0}=e,a=Ht(t),[d,u]=i.useState(null),f=i.useRef(!1),h=U(s),v=sn(r);return i.useEffect(()=>{const m=()=>{f.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>f.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),l.jsx(ha,{...a,children:l.jsx(Ma,{scope:t,open:n,onOpenChange:h,content:d,onContentChange:u,children:l.jsx($h,{scope:t,onClose:i.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:f,dir:v,modal:c,children:o})})})};Pa.displayName=_t;var Hh="MenuAnchor",Go=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Ht(n);return l.jsx(dh,{...r,...o,ref:t})});Go.displayName=Hh;var Yo="MenuPortal",[Vh,xa]=it(Yo,{forceMount:void 0}),La=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=Ye(Yo,t);return l.jsx(Vh,{scope:t,forceMount:n,children:l.jsx(Ot,{present:n||s.open,children:l.jsx(va,{asChild:!0,container:r,children:o})})})};La.displayName=Yo;var Ce="MenuContent",[Dh,Xo]=it(Ce),Ia=i.forwardRef((e,t)=>{const n=xa(Ce,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Ye(Ce,e.__scopeMenu),c=Vt(Ce,e.__scopeMenu);return l.jsx($t.Provider,{scope:e.__scopeMenu,children:l.jsx(Ot,{present:o||s.open,children:l.jsx($t.Slot,{scope:e.__scopeMenu,children:c.modal?l.jsx(Fh,{...r,ref:t}):l.jsx(Rh,{...r,ref:t})})})})}),Fh=i.forwardRef((e,t)=>{const n=Ye(Ce,e.__scopeMenu),o=i.useRef(null),r=V(t,o);return i.useEffect(()=>{const s=o.current;if(s)return on(s)},[]),l.jsx(qo,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:I(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Rh=i.forwardRef((e,t)=>{const n=Ye(Ce,e.__scopeMenu);return l.jsx(qo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),qo=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:a,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:v,onDismiss:m,disableOutsideScroll:C,...p}=e,g=Ye(Ce,n),b=Vt(Ce,n),y=Ht(n),w=Sa(n),k=Oh(n),[M,P]=i.useState(null),E=i.useRef(null),L=V(t,E,g.onContentChange),N=i.useRef(0),T=i.useRef(""),D=i.useRef(0),_=i.useRef(null),R=i.useRef("right"),j=i.useRef(0),W=C?Nt:i.Fragment,H=C?{as:re,allowPinchZoom:!0}:void 0,Z=A=>{var F,Y;const K=T.current+A,z=k().filter(Q=>!Q.disabled),oe=document.activeElement,ae=(F=z.find(Q=>Q.ref.current===oe))==null?void 0:F.textValue,se=z.map(Q=>Q.textValue),he=Jh(se,K,ae),ce=(Y=z.find(Q=>Q.textValue===he))==null?void 0:Y.ref.current;(function Q(G){T.current=G,window.clearTimeout(N.current),G!==""&&(N.current=window.setTimeout(()=>Q(""),1e3))})(K),ce&&setTimeout(()=>ce.focus())};i.useEffect(()=>()=>window.clearTimeout(N.current),[]),po();const O=i.useCallback(A=>{var z,oe;return R.current===((z=_.current)==null?void 0:z.side)&&t5(A,(oe=_.current)==null?void 0:oe.area)},[]);return l.jsx(Dh,{scope:n,searchRef:T,onItemEnter:i.useCallback(A=>{O(A)&&A.preventDefault()},[O]),onItemLeave:i.useCallback(A=>{var K;O(A)||((K=E.current)==null||K.focus(),P(null))},[O]),onTriggerLeave:i.useCallback(A=>{O(A)&&A.preventDefault()},[O]),pointerGraceTimerRef:D,onPointerGraceIntentChange:i.useCallback(A=>{_.current=A},[]),children:l.jsx(W,{...H,children:l.jsx(Oi,{asChild:!0,trapped:r,onMountAutoFocus:I(s,A=>{var K;A.preventDefault(),(K=E.current)==null||K.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:l.jsx(Ni,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:v,onDismiss:m,children:l.jsx(Lh,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:o,currentTabStopId:M,onCurrentTabStopIdChange:P,onEntryFocus:I(d,A=>{b.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(fh,{role:"menu","aria-orientation":"vertical","data-state":Ka(g.open),"data-radix-menu-content":"",dir:b.dir,...y,...p,ref:L,style:{outline:"none",...p.style},onKeyDown:I(p.onKeyDown,A=>{const z=A.target.closest("[data-radix-menu-content]")===A.currentTarget,oe=A.ctrlKey||A.altKey||A.metaKey,ae=A.key.length===1;z&&(A.key==="Tab"&&A.preventDefault(),!oe&&ae&&Z(A.key));const se=E.current;if(A.target!==se||!Ah.includes(A.key))return;A.preventDefault();const ce=k().filter(F=>!F.disabled).map(F=>F.ref.current);ka.includes(A.key)&&ce.reverse(),qh(ce)}),onBlur:I(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(N.current),T.current="")}),onPointerMove:I(e.onPointerMove,Ft(A=>{const K=A.target,z=j.current!==A.clientX;if(A.currentTarget.contains(K)&&z){const oe=A.clientX>j.current?"right":"left";R.current=oe,j.current=A.clientX}}))})})})})})})});Ia.displayName=Ce;var Zh="MenuGroup",Qo=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return l.jsx(pe.div,{role:"group",...o,ref:t})});Qo.displayName=Zh;var Wh="MenuLabel",Na=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return l.jsx(pe.div,{...o,ref:t})});Na.displayName=Wh;var Ln="MenuItem",Aa="menu.itemSelect",In=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=i.useRef(null),c=Vt(Ln,e.__scopeMenu),a=Xo(Ln,e.__scopeMenu),d=V(t,s),u=i.useRef(!1),f=()=>{const h=s.current;if(!n&&h){const v=new CustomEvent(Aa,{bubbles:!0,cancelable:!0});h.addEventListener(Aa,m=>o==null?void 0:o(m),{once:!0}),Mi(h,v),v.defaultPrevented?u.current=!1:c.onClose()}};return l.jsx(Ta,{...r,ref:d,disabled:n,onClick:I(e.onClick,f),onPointerDown:h=>{var v;(v=e.onPointerDown)==null||v.call(e,h),u.current=!0},onPointerUp:I(e.onPointerUp,h=>{var v;u.current||(v=h.currentTarget)==null||v.click()}),onKeyDown:I(e.onKeyDown,h=>{const v=a.searchRef.current!=="";n||v&&h.key===" "||Ko.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});In.displayName=Ln;var Ta=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,c=Xo(Ln,n),a=Sa(n),d=i.useRef(null),u=V(t,d),[f,h]=i.useState(!1),[v,m]=i.useState("");return i.useEffect(()=>{const C=d.current;C&&m((C.textContent??"").trim())},[s.children]),l.jsx($t.ItemSlot,{scope:n,disabled:o,textValue:r??v,children:l.jsx(Ih,{asChild:!0,...a,focusable:!o,children:l.jsx(pe.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:u,onPointerMove:I(e.onPointerMove,Ft(C=>{o?c.onItemLeave(C):(c.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:I(e.onPointerLeave,Ft(C=>c.onItemLeave(C))),onFocus:I(e.onFocus,()=>h(!0)),onBlur:I(e.onBlur,()=>h(!1))})})})}),zh="MenuCheckboxItem",ja=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return l.jsx(Va,{scope:e.__scopeMenu,checked:n,children:l.jsx(In,{role:"menuitemcheckbox","aria-checked":Nn(n)?"mixed":n,...r,ref:t,"data-state":tr(n),onSelect:I(r.onSelect,()=>o==null?void 0:o(Nn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ja.displayName=zh;var Oa="MenuRadioGroup",[Bh,Uh]=it(Oa,{value:void 0,onValueChange:()=>{}}),_a=i.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=U(o);return l.jsx(Bh,{scope:e.__scopeMenu,value:n,onValueChange:s,children:l.jsx(Qo,{...r,ref:t})})});_a.displayName=Oa;var $a="MenuRadioItem",Ha=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=Uh($a,e.__scopeMenu),s=n===r.value;return l.jsx(Va,{scope:e.__scopeMenu,checked:s,children:l.jsx(In,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":tr(s),onSelect:I(o.onSelect,()=>{var c;return(c=r.onValueChange)==null?void 0:c.call(r,n)},{checkForDefaultPrevented:!1})})})});Ha.displayName=$a;var Jo="MenuItemIndicator",[Va,Kh]=it(Jo,{checked:!1}),Da=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Kh(Jo,n);return l.jsx(Ot,{present:o||Nn(s.checked)||s.checked===!0,children:l.jsx(pe.span,{...r,ref:t,"data-state":tr(s.checked)})})});Da.displayName=Jo;var Gh="MenuSeparator",Fa=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return l.jsx(pe.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Fa.displayName=Gh;var Yh="MenuArrow",Ra=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Ht(n);return l.jsx(ph,{...r,...o,ref:t})});Ra.displayName=Yh;var er="MenuSub",[Xh,Za]=it(er),Wa=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,s=Ye(er,t),c=Ht(t),[a,d]=i.useState(null),[u,f]=i.useState(null),h=U(r);return i.useEffect(()=>(s.open===!1&&h(!1),()=>h(!1)),[s.open,h]),l.jsx(ha,{...c,children:l.jsx(Ma,{scope:t,open:o,onOpenChange:h,content:u,onContentChange:f,children:l.jsx(Xh,{scope:t,contentId:ge(),triggerId:ge(),trigger:a,onTriggerChange:d,children:n})})})};Wa.displayName=er;var Dt="MenuSubTrigger",za=i.forwardRef((e,t)=>{const n=Ye(Dt,e.__scopeMenu),o=Vt(Dt,e.__scopeMenu),r=Za(Dt,e.__scopeMenu),s=Xo(Dt,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:d}=s,u={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const h=a.current;return()=>{window.clearTimeout(h),d(null)}},[a,d]),l.jsx(Go,{asChild:!0,...u,children:l.jsx(Ta,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Ka(n.open),...e,ref:Kt(t,r.onTriggerChange),onClick:h=>{var v;(v=e.onClick)==null||v.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:I(e.onPointerMove,Ft(h=>{s.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:I(e.onPointerLeave,Ft(h=>{var m,C;f();const v=(m=n.content)==null?void 0:m.getBoundingClientRect();if(v){const p=(C=n.content)==null?void 0:C.dataset.side,g=p==="right",b=g?-5:5,y=v[g?"left":"right"],w=v[g?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+b,y:h.clientY},{x:y,y:v.top},{x:w,y:v.top},{x:w,y:v.bottom},{x:y,y:v.bottom}],side:p}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:I(e.onKeyDown,h=>{var m;const v=s.searchRef.current!=="";e.disabled||v&&h.key===" "||Th[o.dir].includes(h.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),h.preventDefault())})})})});za.displayName=Dt;var Ba="MenuSubContent",Ua=i.forwardRef((e,t)=>{const n=xa(Ce,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Ye(Ce,e.__scopeMenu),c=Vt(Ce,e.__scopeMenu),a=Za(Ba,e.__scopeMenu),d=i.useRef(null),u=V(t,d);return l.jsx($t.Provider,{scope:e.__scopeMenu,children:l.jsx(Ot,{present:o||s.open,children:l.jsx($t.Slot,{scope:e.__scopeMenu,children:l.jsx(qo,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:u,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var h;c.isUsingKeyboardRef.current&&((h=d.current)==null||h.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:I(e.onFocusOutside,f=>{f.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:I(e.onEscapeKeyDown,f=>{c.onClose(),f.preventDefault()}),onKeyDown:I(e.onKeyDown,f=>{var m;const h=f.currentTarget.contains(f.target),v=jh[c.dir].includes(f.key);h&&v&&(s.onOpenChange(!1),(m=a.trigger)==null||m.focus(),f.preventDefault())})})})})})});Ua.displayName=Ba;function Ka(e){return e?"open":"closed"}function Nn(e){return e==="indeterminate"}function tr(e){return Nn(e)?"indeterminate":e?"checked":"unchecked"}function qh(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qh(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Jh(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=Qh(e,Math.max(s,0));r.length===1&&(c=c.filter(u=>u!==n));const d=c.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return d!==n?d:void 0}function e5(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const a=t[s].x,d=t[s].y,u=t[c].x,f=t[c].y;d>o!=f>o&&n<(u-a)*(o-d)/(f-d)+a&&(r=!r)}return r}function t5(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return e5(n,t)}function Ft(e){return t=>t.pointerType==="mouse"?e(t):void 0}var n5=Pa,o5=Go,r5=La,s5=Ia,i5=Qo,a5=Na,c5=In,l5=ja,u5=_a,d5=Ha,f5=Da,p5=Fa,h5=Ra,v5=Wa,m5=za,g5=Ua,nr="DropdownMenu",[C5,lm]=de(nr,[Ea]),fe=Ea(),[b5,Ga]=C5(nr),Ya=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:c,modal:a=!0}=e,d=fe(t),u=i.useRef(null),[f=!1,h]=_e({prop:r,defaultProp:s,onChange:c});return l.jsx(b5,{scope:t,triggerId:ge(),triggerRef:u,contentId:ge(),open:f,onOpenChange:h,onOpenToggle:i.useCallback(()=>h(v=>!v),[h]),modal:a,children:l.jsx(n5,{...d,open:f,onOpenChange:h,dir:o,modal:a,children:n})})};Ya.displayName=nr;var Xa="DropdownMenuTrigger",qa=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=Ga(Xa,n),c=fe(n);return l.jsx(o5,{asChild:!0,...c,children:l.jsx(pe.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Kt(t,s.triggerRef),onPointerDown:I(e.onPointerDown,a=>{!o&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:I(e.onKeyDown,a=>{o||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});qa.displayName=Xa;var y5="DropdownMenuPortal",Qa=e=>{const{__scopeDropdownMenu:t,...n}=e,o=fe(t);return l.jsx(r5,{...o,...n})};Qa.displayName=y5;var Ja="DropdownMenuContent",ec=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Ga(Ja,n),s=fe(n),c=i.useRef(!1);return l.jsx(s5,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:I(e.onCloseAutoFocus,a=>{var d;c.current||(d=r.triggerRef.current)==null||d.focus(),c.current=!1,a.preventDefault()}),onInteractOutside:I(e.onInteractOutside,a=>{const d=a.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!r.modal||f)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ec.displayName=Ja;var w5="DropdownMenuGroup",tc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(i5,{...r,...o,ref:t})});tc.displayName=w5;var k5="DropdownMenuLabel",nc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(a5,{...r,...o,ref:t})});nc.displayName=k5;var E5="DropdownMenuItem",oc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(c5,{...r,...o,ref:t})});oc.displayName=E5;var S5="DropdownMenuCheckboxItem",rc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(l5,{...r,...o,ref:t})});rc.displayName=S5;var M5="DropdownMenuRadioGroup",sc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(u5,{...r,...o,ref:t})});sc.displayName=M5;var P5="DropdownMenuRadioItem",ic=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(d5,{...r,...o,ref:t})});ic.displayName=P5;var x5="DropdownMenuItemIndicator",ac=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(f5,{...r,...o,ref:t})});ac.displayName=x5;var L5="DropdownMenuSeparator",cc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(p5,{...r,...o,ref:t})});cc.displayName=L5;var I5="DropdownMenuArrow",N5=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(h5,{...r,...o,ref:t})});N5.displayName=I5;var A5=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:s}=e,c=fe(t),[a=!1,d]=_e({prop:o,defaultProp:s,onChange:r});return l.jsx(v5,{...c,open:a,onOpenChange:d,children:n})},T5="DropdownMenuSubTrigger",lc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(m5,{...r,...o,ref:t})});lc.displayName=T5;var j5="DropdownMenuSubContent",uc=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=fe(n);return l.jsx(g5,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});uc.displayName=j5;var O5=Ya,_5=qa,dc=Qa,fc=ec,pc=tc,hc=nc,vc=oc,mc=rc,$5=sc,gc=ic,Cc=ac,bc=cc,H5=A5,yc=lc,wc=uc;const V5=O5,D5=_5,kc=i.forwardRef(({className:e,...t},n)=>l.jsx(pc,{ref:n,className:$("ksjsui-flex ksjsui-flex-col ksjsui-gap-y-2",e),...t}));kc.displayName=pc.displayName;const F5=dc,R5=H5,Z5=$5,Ec=i.forwardRef(({className:e,inset:t,children:n,...o},r)=>l.jsxs(yc,{ref:r,className:$(["ksjsui-group","ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-start ksjsui-gap-2 ksjsui-rounded-sm ksjsui-border-0 ksjsui-px-2 ksjsui-py-1 ksjsui-text-base ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground focus:ksjsui-outline-none","data-[disabled]:ksjsui-opacity-50","data-[state=open]:ksjsui-bg-neutral data-[state=open]:ksjsui-text-neutral-foreground","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-shrink-0","[&_>_svg]:ksjsui-size-6","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],t&&"ksjsui-ps-8",e),...o,children:[n,l.jsxs("span",{className:$(["-ksjsui-me-2 ksjsui-ms-auto ksjsui-mt-1 ksjsui-text-label","[&_svg]:ksjsui-size-4","group-focus:forced-colors:[&_svg]:ksjsui-fill-highlight-text"]),children:[l.jsx(Mo,{className:"rtl:ksjsui-hidden"}),l.jsx(So,{className:"ltr:ksjsui-hidden"})]})]}));Ec.displayName=yc.displayName;const Sc=i.forwardRef(({className:e,...t},n)=>l.jsx(wc,{ref:n,className:$(["ksjsui-z-50 ksjsui-flex ksjsui-min-w-32 ksjsui-flex-col ksjsui-gap-y-2 ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-bg-popover ksjsui-px-2 ksjsui-py-4 ksjsui-text-popover-foreground ksjsui-shadow-lg","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0 data-[state=open]:ksjsui-zoom-in-95","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95","data-[side=top]:ksjsui-slide-in-from-bottom-2","data-[side=right]:ksjsui-slide-in-from-left-2","data-[side=bottom]:ksjsui-slide-in-from-top-2","data-[side=left]:ksjsui-slide-in-from-right-2","forced-colors:ksjsui-border"],e),...t}));Sc.displayName=wc.displayName;const Mc=i.forwardRef(({className:e,align:t="start",side:n="bottom",sideOffset:o=4,...r},s)=>l.jsx(dc,{children:l.jsx(fc,{ref:s,align:t,side:n,sideOffset:o,className:$(["ksjsui-z-50 ksjsui-flex ksjsui-min-w-32 ksjsui-flex-col ksjsui-gap-y-2 ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-bg-popover ksjsui-px-2 ksjsui-py-4 ksjsui-text-popover-foreground ksjsui-shadow-md","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0 data-[state=open]:ksjsui-zoom-in-95","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95","data-[side=top]:ksjsui-slide-in-from-bottom-2","data-[side=right]:ksjsui-slide-in-from-left-2","data-[side=bottom]:ksjsui-slide-in-from-top-2","data-[side=left]:ksjsui-slide-in-from-right-2","forced-colors:ksjsui-border"],e),...r})}));Mc.displayName=fc.displayName;const Pc=i.forwardRef(({className:e,inset:t,...n},o)=>l.jsx(vc,{ref:o,className:$(["ksjsui-group","ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-start ksjsui-gap-2 ksjsui-rounded-sm ksjsui-border-0 ksjsui-px-2 ksjsui-py-1 ksjsui-text-base ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground focus:ksjsui-outline-none","hover:ksjsui-bg-neutral hover:ksjsui-text-neutral-foreground","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-size-6 [&_svg]:ksjsui-shrink-0","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:hover:ksjsui-bg-highlight forced-colors:hover:ksjsui-text-highlight-text forced-colors:hover:ksjsui-forced-color-adjust-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],t&&"ksjsui-ps-10",e),...n}));Pc.displayName=vc.displayName;const xc=i.forwardRef(({className:e,children:t,checked:n,...o},r)=>l.jsxs(mc,{ref:r,className:$(["ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-start ksjsui-justify-between ksjsui-gap-2 ksjsui-rounded-sm ksjsui-border-0 ksjsui-px-2 ksjsui-py-1 ksjsui-text-base ksjsui-outline-none ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground","hover:ksjsui-bg-neutral hover:ksjsui-text-neutral-foreground","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:hover:ksjsui-bg-highlight forced-colors:hover:ksjsui-text-highlight-text forced-colors:hover:ksjsui-forced-color-adjust-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],e),checked:n,...o,children:[t,l.jsx(Cc,{children:l.jsx(Eo,{className:"ksjsui-size-6"})})]}));xc.displayName=mc.displayName;const Lc=i.forwardRef(({className:e,children:t,...n},o)=>l.jsxs(gc,{ref:o,className:$(["ksjsui-flex ksjsui-cursor-default ksjsui-select-none ksjsui-items-center ksjsui-justify-between ksjsui-gap-2 ksjsui-rounded-sm ksjsui-border-0 ksjsui-px-2 ksjsui-py-1 ksjsui-text-base ksjsui-outline-none ksjsui-transition-colors","focus:ksjsui-bg-neutral focus:ksjsui-text-neutral-foreground","hover:ksjsui-bg-neutral hover:ksjsui-text-neutral-foreground","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","forced-colors:ksjsui-outline-0 forced-colors:ksjsui-transition-none","forced-colors:hover:ksjsui-bg-highlight forced-colors:hover:ksjsui-text-highlight-text forced-colors:hover:ksjsui-forced-color-adjust-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],e),...n,children:[t,l.jsx("span",{className:"ksjsui-flex ksjsui-size-3.5 ksjsui-items-center ksjsui-justify-center",children:l.jsx(Cc,{children:l.jsx(Ci,{className:"ksjsui-size-2"})})})]}));Lc.displayName=gc.displayName;const Ic=i.forwardRef(({className:e,inset:t,...n},o)=>l.jsx(hc,{ref:o,className:$("ksjsui-px-2 ksjsui-text-sm ksjsui-text-label",t&&"ksjsui-ps-8",e),...n}));Ic.displayName=hc.displayName;const Nc=i.forwardRef(({className:e,...t},n)=>l.jsx(bc,{ref:n,className:$(["ksjsui-my-1 ksjsui-h-px ksjsui-bg-border","forced-colors:ksjsui-bg-canvas-text"],e),...t}));Nc.displayName=bc.displayName;const Ac=({className:e,...t})=>l.jsx("span",{className:$("ksjsui-ms-auto ksjsui-mt-0.5 ksjsui-text-sm ksjsui-tracking-widest ksjsui-text-label","group-focus:forced-colors:ksjsui-text-current",e),...t});Ac.displayName="DropdownMenuShortcut";const W5=i.forwardRef(({className:e,primary:t,secondary:n,...o},r)=>l.jsxs("div",{ref:r,className:$(e),...o,children:[l.jsx("span",{className:$(["DropdownMenuItemPrimaryText"],e),children:t}),n&&l.jsx("div",{className:$(["DropdownMenuItemSecondaryText","ksjsui-text-sm ksjsui-text-label","group-focus:forced-colors:ksjsui-text-current"],e),children:n})]}));W5.displayName="DropdownMenuItemText";const Tc=i.forwardRef((e,t)=>l.jsx(ao,{ref:t,...e,iconOnly:!0,fullWidth:!1}));Tc.displayName="IconButton";const jc=i.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,className:$(["ksjsui-flex ksjsui-w-full ksjsui-flex-col ksjsui-gap-y-2"],e),...t}));jc.displayName="List";const Oc=i.forwardRef(({className:e,inset:t,...n},o)=>l.jsx("li",{ref:o,className:$(["ksjsui-flex ksjsui-gap-2 ksjsui-rounded-lg ksjsui-p-2 ksjsui-transition-colors","[&_svg]:ksjsui-pointer-events-none [&_svg]:ksjsui-size-6 [&_svg]:ksjsui-shrink-0","has-[.ListItemButton:hover]:ksjsui-bg-neutral","has-[.ListItemButton:focus-visible]:ksjsui-outline-none has-[.ListItemButton:focus-visible]:ksjsui-ring-2 has-[.ListItemButton:focus-visible]:ksjsui-ring-ring has-[.ListItemButton:focus-visible]:ksjsui-ring-offset-2 has-[.ListItemButton:focus-visible]:ksjsui-ring-offset-background","has-[:disabled]:ksjsui-cursor-not-allowed","has-[.ListItemButton:hover]:forced-colors:ksjsui-outline-none has-[.ListItemButton:hover]:forced-colors:ksjsui-outline-highlight","has-[.ListItemButton:focus-visible]:forced-colors:ksjsui-outline-highlight"],t&&["ksjsui-group","ListItem-inset","ksjsui-ps-10","has-[.ListItemButton]:ksjsui-p-0"],e),...n}));Oc.displayName="ListItem";const _c=({className:e,...t})=>{const n="py-1 ksjsui-pointer-events-none ksjsui-hidden ksjsui-shrink-0 ksjsui-text-foreground";return l.jsxs(l.Fragment,{children:[l.jsx(So,{className:$("rtl:ksjsui-inline-block",n,e),...t}),l.jsx(Mo,{className:$("ltr:ksjsui-inline-block",n,e),...t})]})};_c.displayName="ListItemArrow";const z5=Fe(["ListItemButton","ksjsui-flex ksjsui-w-full ksjsui-gap-2","focus-visible:ksjsui-border-0 focus-visible:ksjsui-outline-none","disabled:ksjsui-pointer-events-none disabled:ksjsui-opacity-50","forced-colors:focus-visible:ksjsui-outline-0","group-[.ListItem-inset]:ksjsui-p-2 group-[.ListItem-inset]:ksjsui-ps-10"],{variants:{color:{secondary:"ksjsui-text-secondary",destructive:"ksjsui-text-destructive"}}}),$c=i.forwardRef(({color:e,className:t,tabIndex:n=0,...o},r)=>l.jsx("button",{ref:r,className:$(z5({color:e,className:t})),tabIndex:n,...o}));$c.displayName="ListItemButton";const Hc=i.forwardRef(({className:e,primary:t,secondary:n,...o},r)=>l.jsxs("span",{ref:r,className:$(["ksjsui-flex ksjsui-w-full ksjsui-flex-col ksjsui-items-start"],e),...o,children:[l.jsx("span",{className:$(["ksjsui-text-start ksjsui-text-[15px]"],e),children:t}),n&&l.jsx("span",{className:$(["ksjsui-text-start ksjsui-text-[15px] ksjsui-text-label"],e),children:n})]}));Hc.displayName="ListItemText";const Vc=i.forwardRef(({className:e,inset:t,...n},o)=>l.jsx("li",{ref:o,className:$("ksjsui-block ksjsui-px-2 ksjsui-py-3 ksjsui-text-sm ksjsui-text-label",t&&"ksjsui-ps-8",e),...n}));Vc.displayName="ListLabel";const Dc=i.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:$(["ksjsui-my-1 ksjsui-block ksjsui-h-px ksjsui-bg-border","forced-colors:ksjsui-bg-canvas-text"],e),role:"separator",...t}));Dc.displayName="ListSeparator";function Xe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Fc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rc(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Fc(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Fc(e[r],null)}}}}function qe(...e){return i.useCallback(Rc(...e),e)}function Zc(e,t=[]){let n=[];function o(s,c){const a=i.createContext(c),d=n.length;n=[...n,c];const u=h=>{var b;const{scope:v,children:m,...C}=h,p=((b=v==null?void 0:v[e])==null?void 0:b[d])||a,g=i.useMemo(()=>C,Object.values(C));return l.jsx(p.Provider,{value:g,children:m})};u.displayName=s+"Provider";function f(h,v){var p;const m=((p=v==null?void 0:v[e])==null?void 0:p[d])||a,C=i.useContext(m);if(C)return C;if(c!==void 0)return c;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,f]}const r=()=>{const s=n.map(c=>i.createContext(c));return function(a){const d=(a==null?void 0:a[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return r.scopeName=e,[o,B5(r,...t)]}function B5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const c=o.reduce((a,{useScope:d,scopeName:u})=>{const h=d(s)[`__scope${u}`];return{...a,...h}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Wc(e){const t=U5(e),n=i.forwardRef((o,r)=>{const{children:s,...c}=o,a=i.Children.toArray(s),d=a.find(G5);if(d){const u=d.props.children,f=a.map(h=>h===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...c,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return l.jsx(t,{...c,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function U5(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const c=X5(r),a=Y5(s,r.props);return r.type!==i.Fragment&&(a.ref=o?Rc(o,c):c),i.cloneElement(r,a)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var K5=Symbol("radix.slottable");function G5(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===K5}function Y5(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const d=s(...a);return r(...a),d}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function X5(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var q5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=q5.reduce((e,t)=>{const n=Wc(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:c,...a}=r,d=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(d,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Q5(e,t){e&&xe.flushSync(()=>e.dispatchEvent(t))}function wt(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function J5(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e);i.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var e9="DismissableLayer",or="dismissableLayer.update",t9="dismissableLayer.pointerDownOutside",n9="dismissableLayer.focusOutside",zc,Bc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uc=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...d}=e,u=i.useContext(Bc),[f,h]=i.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=i.useState({}),C=qe(t,E=>h(E)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(g),y=f?p.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=y>=b,M=s9(E=>{const L=E.target,N=[...u.branches].some(T=>T.contains(L));!k||N||(r==null||r(E),c==null||c(E),E.defaultPrevented||a==null||a())},v),P=i9(E=>{const L=E.target;[...u.branches].some(T=>T.contains(L))||(s==null||s(E),c==null||c(E),E.defaultPrevented||a==null||a())},v);return J5(E=>{y===u.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},v),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zc=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Kc(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=zc)}},[f,v,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Kc())},[f,u]),i.useEffect(()=>{const E=()=>m({});return document.addEventListener(or,E),()=>document.removeEventListener(or,E)},[]),l.jsx(De.div,{...d,ref:C,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Xe(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Xe(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Xe(e.onPointerDownCapture,M.onPointerDownCapture)})});Uc.displayName=e9;var o9="DismissableLayerBranch",r9=i.forwardRef((e,t)=>{const n=i.useContext(Bc),o=i.useRef(null),r=qe(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(De.div,{...e,ref:r})});r9.displayName=o9;function s9(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let d=function(){Gc(t9,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=d,t.addEventListener("click",r.current,{once:!0})):d()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function i9(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Gc(n9,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Kc(){const e=new CustomEvent(or);document.dispatchEvent(e)}function Gc(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Q5(r,s):r.dispatchEvent(s)}var rr=0;function a9(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yc()),document.body.insertAdjacentElement("beforeend",e[1]??Yc()),rr++,()=>{rr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rr--}},[])}function Yc(){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 sr="focusScope.autoFocusOnMount",ir="focusScope.autoFocusOnUnmount",Xc={bubbles:!1,cancelable:!0},c9="FocusScope",qc=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,d]=i.useState(null),u=wt(r),f=wt(s),h=i.useRef(null),v=qe(t,p=>d(p)),m=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let p=function(w){if(m.paused||!a)return;const k=w.target;a.contains(k)?h.current=k:Qe(h.current,{select:!0})},g=function(w){if(m.paused||!a)return;const k=w.relatedTarget;k!==null&&(a.contains(k)||Qe(h.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const M of w)M.removedNodes.length>0&&Qe(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),y.disconnect()}}},[o,a,m.paused]),i.useEffect(()=>{if(a){el.add(m);const p=document.activeElement;if(!a.contains(p)){const b=new CustomEvent(sr,Xc);a.addEventListener(sr,u),a.dispatchEvent(b),b.defaultPrevented||(l9(h9(Qc(a)),{select:!0}),document.activeElement===p&&Qe(a))}return()=>{a.removeEventListener(sr,u),setTimeout(()=>{const b=new CustomEvent(ir,Xc);a.addEventListener(ir,f),a.dispatchEvent(b),b.defaultPrevented||Qe(p??document.body,{select:!0}),a.removeEventListener(ir,f),el.remove(m)},0)}}},[a,u,f,m]);const C=i.useCallback(p=>{if(!n&&!o||m.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,b=document.activeElement;if(g&&b){const y=p.currentTarget,[w,k]=u9(y);w&&k?!p.shiftKey&&b===k?(p.preventDefault(),n&&Qe(w,{select:!0})):p.shiftKey&&b===w&&(p.preventDefault(),n&&Qe(k,{select:!0})):b===y&&p.preventDefault()}},[n,o,m.paused]);return l.jsx(De.div,{tabIndex:-1,...c,ref:v,onKeyDown:C})});qc.displayName=c9;function l9(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Qe(o,{select:t}),document.activeElement!==n)return}function u9(e){const t=Qc(e),n=Jc(t,e),o=Jc(t.reverse(),e);return[n,o]}function Qc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Jc(e,t){for(const n of e)if(!d9(n,{upTo:t}))return n}function d9(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 f9(e){return e instanceof HTMLInputElement&&"select"in e}function Qe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&f9(e)&&t&&e.select()}}var el=p9();function p9(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=tl(e,t),e.unshift(t)},remove(t){var n;e=tl(e,t),(n=e[0])==null||n.resume()}}}function tl(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function h9(e){return e.filter(t=>t.tagName!=="A")}var Je=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},v9=i[" useId ".trim().toString()]||(()=>{}),m9=0;function g9(e){const[t,n]=i.useState(v9());return Je(()=>{n(o=>o??String(m9++))},[e]),e||(t?`radix-${t}`:"")}var C9="Arrow",nl=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return l.jsx(De.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});nl.displayName=C9;var b9=nl;function y9(e){const[t,n]=i.useState(void 0);return Je(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let c,a;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;c=u.inlineSize,a=u.blockSize}else c=e.offsetWidth,a=e.offsetHeight;n({width:c,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var ar="Popper",[ol,rl]=Zc(ar),[w9,sl]=ol(ar),il=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return l.jsx(w9,{scope:t,anchor:o,onAnchorChange:r,children:n})};il.displayName=ar;var al="PopperAnchor",cl=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=sl(al,n),c=i.useRef(null),a=qe(t,c);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:l.jsx(De.div,{...r,ref:a})});cl.displayName=al;var cr="PopperContent",[k9,E9]=ol(cr),ll=i.forwardRef((e,t)=>{var F,Y,Q,G,X,q;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:C,...p}=e,g=sl(cr,n),[b,y]=i.useState(null),w=qe(t,ee=>y(ee)),[k,M]=i.useState(null),P=y9(k),E=(P==null?void 0:P.width)??0,L=(P==null?void 0:P.height)??0,N=o+(s!=="center"?"-"+s:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(u)?u:[u],_=D.length>0,R={padding:T,boundary:D.filter(M9),altBoundary:_},{refs:j,floatingStyles:W,placement:H,isPositioned:Z,middlewareData:O}=gn({strategy:"fixed",placement:N,whileElementsMounted:(...ee)=>hn(...ee,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Cn({mainAxis:r+L,alignmentAxis:c}),d&&bn({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?yn():void 0,...R}),d&&wn({...R}),kn({...R,apply:({elements:ee,rects:le,availableWidth:Se,availableHeight:Me})=>{const{width:Pe,height:lt}=le.reference,ue=ee.floating.style;ue.setProperty("--radix-popper-available-width",`${Se}px`),ue.setProperty("--radix-popper-available-height",`${Me}px`),ue.setProperty("--radix-popper-anchor-width",`${Pe}px`),ue.setProperty("--radix-popper-anchor-height",`${lt}px`)}}),k&&Sn({element:k,padding:a}),P9({arrowWidth:E,arrowHeight:L}),v&&En({strategy:"referenceHidden",...R})]}),[A,K]=fl(H),z=wt(C);Je(()=>{Z&&(z==null||z())},[Z,z]);const oe=(F=O.arrow)==null?void 0:F.x,ae=(Y=O.arrow)==null?void 0:Y.y,se=((Q=O.arrow)==null?void 0:Q.centerOffset)!==0,[he,ce]=i.useState();return Je(()=>{b&&ce(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:Z?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(G=O.transformOrigin)==null?void 0:G.x,(X=O.transformOrigin)==null?void 0:X.y].join(" "),...((q=O.hide)==null?void 0:q.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(k9,{scope:n,placedSide:A,onArrowChange:M,arrowX:oe,arrowY:ae,shouldHideArrow:se,children:l.jsx(De.div,{"data-side":A,"data-align":K,...p,ref:w,style:{...p.style,animation:Z?void 0:"none"}})})})});ll.displayName=cr;var ul="PopperArrow",S9={top:"bottom",right:"left",bottom:"top",left:"right"},dl=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=E9(ul,o),c=S9[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(b9,{...r,ref:n,style:{...r.style,display:"block"}})})});dl.displayName=ul;function M9(e){return e!==null}var P9=e=>({name:"transformOrigin",options:e,fn(t){var g,b,y;const{placement:n,rects:o,middlewareData:r}=t,c=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[u,f]=fl(n),h={start:"0%",center:"50%",end:"100%"}[f],v=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,m=(((y=r.arrow)==null?void 0:y.y)??0)+d/2;let C="",p="";return u==="bottom"?(C=c?h:`${v}px`,p=`${-d}px`):u==="top"?(C=c?h:`${v}px`,p=`${o.floating.height+d}px`):u==="right"?(C=`${-d}px`,p=c?h:`${m}px`):u==="left"&&(C=`${o.floating.width+d}px`,p=c?h:`${m}px`),{data:{x:C,y:p}}}});function fl(e){const[t,n="center"]=e.split("-");return[t,n]}var x9=il,pl=cl,L9=ll,I9=dl,N9="Portal",hl=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);Je(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?ut.createPortal(l.jsx(De.div,{...o,ref:t}),c):null});hl.displayName=N9;function A9(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var lr=e=>{const{present:t,children:n}=e,o=T9(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=qe(o.ref,j9(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};lr.displayName="Presence";function T9(e){const[t,n]=i.useState(),o=i.useRef(null),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,d]=A9(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=An(o.current);s.current=a==="mounted"?u:"none"},[a]),Je(()=>{const u=o.current,f=r.current;if(f!==e){const v=s.current,m=An(u);e?d("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&v!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),Je(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const p=An(o.current).includes(m.animationName);if(m.target===t&&p&&(d("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=m=>{m.target===t&&(s.current=An(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function An(e){return(e==null?void 0:e.animationName)||"none"}function j9(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var O9=i[" useInsertionEffect ".trim().toString()]||Je;function _9({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,c]=$9({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:r;{const f=i.useRef(e!==void 0);i.useEffect(()=>{const h=f.current;h!==a&&console.warn(`${o} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,o])}const u=i.useCallback(f=>{var h;if(a){const v=H9(f)?f(e):f;v!==e&&((h=c.current)==null||h.call(c,v))}else s(f)},[a,e,s,c]);return[d,u]}function $9({defaultProp:e,onChange:t}){const[n,o]=i.useState(e),r=i.useRef(n),s=i.useRef(t);return O9(()=>{s.current=t},[t]),i.useEffect(()=>{var c;r.current!==n&&((c=s.current)==null||c.call(s,n),r.current=n)},[n,r]),[n,o,s]}function H9(e){return typeof e=="function"}var Tn="Popover",[vl,um]=Zc(Tn,[rl]),Rt=rl(),[V9,et]=vl(Tn),ml=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:c=!1}=e,a=Rt(t),d=i.useRef(null),[u,f]=i.useState(!1),[h,v]=_9({prop:o,defaultProp:r??!1,onChange:s,caller:Tn});return l.jsx(x9,{...a,children:l.jsx(V9,{scope:t,contentId:g9(),triggerRef:d,open:h,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(m=>!m),[v]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:c,children:n})})};ml.displayName=Tn;var gl="PopoverAnchor",D9=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=et(gl,n),s=Rt(n),{onCustomAnchorAdd:c,onCustomAnchorRemove:a}=r;return i.useEffect(()=>(c(),()=>a()),[c,a]),l.jsx(pl,{...s,...o,ref:t})});D9.displayName=gl;var Cl="PopoverTrigger",bl=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=et(Cl,n),s=Rt(n),c=qe(t,r.triggerRef),a=l.jsx(De.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Ml(r.open),...o,ref:c,onClick:Xe(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:l.jsx(pl,{asChild:!0,...s,children:a})});bl.displayName=Cl;var ur="PopoverPortal",[F9,R9]=vl(ur,{forceMount:void 0}),yl=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,s=et(ur,t);return l.jsx(F9,{scope:t,forceMount:n,children:l.jsx(lr,{present:n||s.open,children:l.jsx(hl,{asChild:!0,container:r,children:o})})})};yl.displayName=ur;var kt="PopoverContent",wl=i.forwardRef((e,t)=>{const n=R9(kt,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,s=et(kt,e.__scopePopover);return l.jsx(lr,{present:o||s.open,children:s.modal?l.jsx(W9,{...r,ref:t}):l.jsx(z9,{...r,ref:t})})});wl.displayName=kt;var Z9=Wc("PopoverContent.RemoveScroll"),W9=i.forwardRef((e,t)=>{const n=et(kt,e.__scopePopover),o=i.useRef(null),r=qe(t,o),s=i.useRef(!1);return i.useEffect(()=>{const c=o.current;if(c)return on(c)},[]),l.jsx(Nt,{as:Z9,allowPinchZoom:!0,children:l.jsx(kl,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xe(e.onCloseAutoFocus,c=>{var a;c.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Xe(e.onPointerDownOutside,c=>{const a=c.detail.originalEvent,d=a.button===0&&a.ctrlKey===!0,u=a.button===2||d;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Xe(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),z9=i.forwardRef((e,t)=>{const n=et(kt,e.__scopePopover),o=i.useRef(!1),r=i.useRef(!1);return l.jsx(kl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,a;(c=e.onCloseAutoFocus)==null||c.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),kl=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,...h}=e,v=et(kt,n),m=Rt(n);return a9(),l.jsx(qc,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:l.jsx(Uc,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>v.onOpenChange(!1),children:l.jsx(L9,{"data-state":Ml(v.open),role:"dialog",id:v.contentId,...m,...h,ref:t,style:{...h.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)"}})})})}),El="PopoverClose",B9=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=et(El,n);return l.jsx(De.button,{type:"button",...o,ref:t,onClick:Xe(e.onClick,()=>r.onOpenChange(!1))})});B9.displayName=El;var U9="PopoverArrow",Sl=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Rt(n);return l.jsx(I9,{...r,...o,ref:t})});Sl.displayName=U9;function Ml(e){return e?"open":"closed"}var K9=ml,G9=bl,Y9=yl,Pl=wl,X9=Sl;const q9=K9,Q9=G9,xl=i.forwardRef(({className:e,align:t="center",children:n,sideOffset:o=4,side:r="bottom",onOpenAutoFocus:s=d=>d.preventDefault(),...c},a)=>l.jsx(Y9,{children:l.jsxs(Pl,{ref:a,align:t,className:$(["ksjsui-group","ksjsui-z-50 ksjsui-w-72 ksjsui-origin-[--radix-popover-content-transform-origin] ksjsui-rounded ksjsui-border ksjsui-border-border ksjsui-bg-popover ksjsui-p-4 ksjsui-text-popover-foreground ksjsui-shadow-md ksjsui-outline-none ksjsui-will-change-transform","motion-safe:data-[state=open]:ksjsui-animate-in motion-safe:data-[state=open]:ksjsui-fade-in-0","motion-safe:data-[state=closed]:ksjsui-animate-out motion-safe:data-[state=closed]:ksjsui-fade-out-0","forced-colors:ksjsui-outline-0 focus:forced-colors:ksjsui-border-highlight"],e),onOpenAutoFocus:s,side:r,sideOffset:o,...c,children:[n,l.jsx(X9,{className:$(["ksjsui-z-50 ksjsui-translate-y-[calc(-50%_+_0.75px)] ksjsui-rotate-45 ksjsui-rounded-br-[2px] ksjsui-border-b ksjsui-border-r ksjsui-border-border ksjsui-bg-popover ksjsui-fill-popover","forced-colors:ksjsui-border-canvas-text forced-colors:ksjsui-bg-canvas forced-colors:ksjsui-fill-canvas forced-colors:ksjsui-drop-shadow-none","group-focus:forced-colors:ksjsui-border-highlight"]),style:{width:10,height:10}})]})}));xl.displayName=Pl.displayName;var J9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Zt=J9.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?re:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function e4(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var Wt=e=>{const{present:t,children:n}=e,o=t4(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=V(o.ref,n4(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};Wt.displayName="Presence";function t4(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,d]=e4(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=jn(o.current);s.current=a==="mounted"?u:"none"},[a]),J(()=>{const u=o.current,f=r.current;if(f!==e){const v=s.current,m=jn(u);e?d("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&v!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),J(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const p=jn(o.current).includes(m.animationName);if(m.target===t&&p&&(d("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=m=>{m.target===t&&(s.current=jn(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function jn(e){return(e==null?void 0:e.animationName)||"none"}function n4(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function dr(e,[t,n]){return Math.min(n,Math.max(t,e))}function o4(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var fr="ScrollArea",[Ll,dm]=de(fr),[r4,be]=Ll(fr),Il=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:o="hover",dir:r,scrollHideDelay:s=600,...c}=e,[a,d]=i.useState(null),[u,f]=i.useState(null),[h,v]=i.useState(null),[m,C]=i.useState(null),[p,g]=i.useState(null),[b,y]=i.useState(0),[w,k]=i.useState(0),[M,P]=i.useState(!1),[E,L]=i.useState(!1),N=V(t,D=>d(D)),T=sn(r);return l.jsx(r4,{scope:n,type:o,dir:T,scrollHideDelay:s,scrollArea:a,viewport:u,onViewportChange:f,content:h,onContentChange:v,scrollbarX:m,onScrollbarXChange:C,scrollbarXEnabled:M,onScrollbarXEnabledChange:P,scrollbarY:p,onScrollbarYChange:g,scrollbarYEnabled:E,onScrollbarYEnabledChange:L,onCornerWidthChange:y,onCornerHeightChange:k,children:l.jsx(Zt.div,{dir:T,...c,ref:N,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});Il.displayName=fr;var Nl="ScrollAreaViewport",Al=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:o,nonce:r,...s}=e,c=be(Nl,n),a=i.useRef(null),d=V(t,a,c.onViewportChange);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsx(Zt.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:l.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});Al.displayName=Nl;var Te="ScrollAreaScrollbar",pr=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=be(Te,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=r,a=e.orientation==="horizontal";return i.useEffect(()=>(a?s(!0):c(!0),()=>{a?s(!1):c(!1)}),[a,s,c]),r.type==="hover"?l.jsx(s4,{...o,ref:t,forceMount:n}):r.type==="scroll"?l.jsx(i4,{...o,ref:t,forceMount:n}):r.type==="auto"?l.jsx(Tl,{...o,ref:t,forceMount:n}):r.type==="always"?l.jsx(hr,{...o,ref:t}):null});pr.displayName=Te;var s4=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=be(Te,e.__scopeScrollArea),[s,c]=i.useState(!1);return i.useEffect(()=>{const a=r.scrollArea;let d=0;if(a){const u=()=>{window.clearTimeout(d),c(!0)},f=()=>{d=window.setTimeout(()=>c(!1),r.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",f),()=>{window.clearTimeout(d),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",f)}}},[r.scrollArea,r.scrollHideDelay]),l.jsx(Wt,{present:n||s,children:l.jsx(Tl,{"data-state":s?"visible":"hidden",...o,ref:t})})}),i4=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=be(Te,e.__scopeScrollArea),s=e.orientation==="horizontal",c=Hn(()=>d("SCROLL_END"),100),[a,d]=o4("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return i.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>d("HIDE"),r.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,r.scrollHideDelay,d]),i.useEffect(()=>{const u=r.viewport,f=s?"scrollLeft":"scrollTop";if(u){let h=u[f];const v=()=>{const m=u[f];h!==m&&(d("SCROLL"),c()),h=m};return u.addEventListener("scroll",v),()=>u.removeEventListener("scroll",v)}},[r.viewport,s,d,c]),l.jsx(Wt,{present:n||a!=="hidden",children:l.jsx(hr,{"data-state":a==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:I(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:I(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),Tl=i.forwardRef((e,t)=>{const n=be(Te,e.__scopeScrollArea),{forceMount:o,...r}=e,[s,c]=i.useState(!1),a=e.orientation==="horizontal",d=Hn(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;c(a?u:f)}},10);return Et(n.viewport,d),Et(n.content,d),l.jsx(Wt,{present:o||s,children:l.jsx(hr,{"data-state":s?"visible":"hidden",...r,ref:t})})}),hr=i.forwardRef((e,t)=>{const{orientation:n="vertical",...o}=e,r=be(Te,e.__scopeScrollArea),s=i.useRef(null),c=i.useRef(0),[a,d]=i.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Hl(a.viewport,a.content),f={...o,sizes:a,onSizesChange:d,hasThumb:u>0&&u<1,onThumbChange:v=>s.current=v,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:v=>c.current=v};function h(v,m){return f4(v,c.current,a,m)}return n==="horizontal"?l.jsx(a4,{...f,ref:t,onThumbPositionChange:()=>{if(r.viewport&&s.current){const v=r.viewport.scrollLeft,m=Vl(v,a,r.dir);s.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:v=>{r.viewport&&(r.viewport.scrollLeft=v)},onDragScroll:v=>{r.viewport&&(r.viewport.scrollLeft=h(v,r.dir))}}):n==="vertical"?l.jsx(c4,{...f,ref:t,onThumbPositionChange:()=>{if(r.viewport&&s.current){const v=r.viewport.scrollTop,m=Vl(v,a);s.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:v=>{r.viewport&&(r.viewport.scrollTop=v)},onDragScroll:v=>{r.viewport&&(r.viewport.scrollTop=h(v))}}):null}),a4=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...r}=e,s=be(Te,e.__scopeScrollArea),[c,a]=i.useState(),d=i.useRef(null),u=V(t,d,s.onScrollbarXChange);return i.useEffect(()=>{d.current&&a(getComputedStyle(d.current))},[d]),l.jsx(Ol,{"data-orientation":"horizontal",...r,ref:u,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":$n(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,h)=>{if(s.viewport){const v=s.viewport.scrollLeft+f.deltaX;e.onWheelScroll(v),Fl(v,h)&&f.preventDefault()}},onResize:()=>{d.current&&s.viewport&&c&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:_n(c.paddingLeft),paddingEnd:_n(c.paddingRight)}})}})}),c4=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...r}=e,s=be(Te,e.__scopeScrollArea),[c,a]=i.useState(),d=i.useRef(null),u=V(t,d,s.onScrollbarYChange);return i.useEffect(()=>{d.current&&a(getComputedStyle(d.current))},[d]),l.jsx(Ol,{"data-orientation":"vertical",...r,ref:u,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":$n(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,h)=>{if(s.viewport){const v=s.viewport.scrollTop+f.deltaY;e.onWheelScroll(v),Fl(v,h)&&f.preventDefault()}},onResize:()=>{d.current&&s.viewport&&c&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:_n(c.paddingTop),paddingEnd:_n(c.paddingBottom)}})}})}),[l4,jl]=Ll(Te),Ol=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:o,hasThumb:r,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:a,onThumbPositionChange:d,onDragScroll:u,onWheelScroll:f,onResize:h,...v}=e,m=be(Te,n),[C,p]=i.useState(null),g=V(t,N=>p(N)),b=i.useRef(null),y=i.useRef(""),w=m.viewport,k=o.content-o.viewport,M=U(f),P=U(d),E=Hn(h,10);function L(N){if(b.current){const T=N.clientX-b.current.left,D=N.clientY-b.current.top;u({x:T,y:D})}}return i.useEffect(()=>{const N=T=>{const D=T.target;(C==null?void 0:C.contains(D))&&M(T,k)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[w,C,k,M]),i.useEffect(P,[o,P]),Et(C,E),Et(m.content,E),l.jsx(l4,{scope:n,scrollbar:C,hasThumb:r,onThumbChange:U(s),onThumbPointerUp:U(c),onThumbPositionChange:P,onThumbPointerDown:U(a),children:l.jsx(Zt.div,{...v,ref:g,style:{position:"absolute",...v.style},onPointerDown:I(e.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),b.current=C.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),L(N))}),onPointerMove:I(e.onPointerMove,L),onPointerUp:I(e.onPointerUp,N=>{const T=N.target;T.hasPointerCapture(N.pointerId)&&T.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=y.current,m.viewport&&(m.viewport.style.scrollBehavior=""),b.current=null})})})}),On="ScrollAreaThumb",_l=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=jl(On,e.__scopeScrollArea);return l.jsx(Wt,{present:n||r.hasThumb,children:l.jsx(u4,{ref:t,...o})})}),u4=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:o,...r}=e,s=be(On,n),c=jl(On,n),{onThumbPositionChange:a}=c,d=V(t,h=>c.onThumbChange(h)),u=i.useRef(void 0),f=Hn(()=>{u.current&&(u.current(),u.current=void 0)},100);return i.useEffect(()=>{const h=s.viewport;if(h){const v=()=>{if(f(),!u.current){const m=p4(h,a);u.current=m,a()}};return a(),h.addEventListener("scroll",v),()=>h.removeEventListener("scroll",v)}},[s.viewport,f,a]),l.jsx(Zt.div,{"data-state":c.hasThumb?"visible":"hidden",...r,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:I(e.onPointerDownCapture,h=>{const m=h.target.getBoundingClientRect(),C=h.clientX-m.left,p=h.clientY-m.top;c.onThumbPointerDown({x:C,y:p})}),onPointerUp:I(e.onPointerUp,c.onThumbPointerUp)})});_l.displayName=On;var vr="ScrollAreaCorner",$l=i.forwardRef((e,t)=>{const n=be(vr,e.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?l.jsx(d4,{...e,ref:t}):null});$l.displayName=vr;var d4=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,...o}=e,r=be(vr,n),[s,c]=i.useState(0),[a,d]=i.useState(0),u=!!(s&&a);return Et(r.scrollbarX,()=>{var h;const f=((h=r.scrollbarX)==null?void 0:h.offsetHeight)||0;r.onCornerHeightChange(f),d(f)}),Et(r.scrollbarY,()=>{var h;const f=((h=r.scrollbarY)==null?void 0:h.offsetWidth)||0;r.onCornerWidthChange(f),c(f)}),u?l.jsx(Zt.div,{...o,ref:t,style:{width:s,height:a,position:"absolute",right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function _n(e){return e?parseInt(e,10):0}function Hl(e,t){const n=e/t;return isNaN(n)?0:n}function $n(e){const t=Hl(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*t;return Math.max(o,18)}function f4(e,t,n,o="ltr"){const r=$n(n),s=r/2,c=t||s,a=r-c,d=n.scrollbar.paddingStart+c,u=n.scrollbar.size-n.scrollbar.paddingEnd-a,f=n.content-n.viewport,h=o==="ltr"?[0,f]:[f*-1,0];return Dl([d,u],h)(e)}function Vl(e,t,n="ltr"){const o=$n(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-r,c=t.content-t.viewport,a=s-o,d=n==="ltr"?[0,c]:[c*-1,0],u=dr(e,d);return Dl([0,c],[0,a])(u)}function Dl(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function Fl(e,t){return e>0&&e<t}var p4=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},o=0;return function r(){const s={left:e.scrollLeft,top:e.scrollTop},c=n.left!==s.left,a=n.top!==s.top;(c||a)&&t(),n=s,o=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(o)};function Hn(e,t){const n=U(e),o=i.useRef(0);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),i.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,t)},[n,t])}function Et(e,t){const n=U(t);J(()=>{let o=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(o),r.unobserve(e)}}},[e,n])}var Rl=Il,Zl=Al,h4=$l;const mr=i.forwardRef(({className:e,children:t,...n},o)=>l.jsxs(Rl,{ref:o,className:$("ksjsui-relative ksjsui-size-full ksjsui-overflow-hidden",e),...n,children:[t,l.jsx(Cr,{}),l.jsx(h4,{})]}));mr.displayName=Rl.displayName;const gr=i.forwardRef(({className:e,children:t,...n},o)=>l.jsx(Zl,{ref:o,className:$(["ksjsui-size-full ksjsui-rounded-[inherit]",e]),...n,children:t}));gr.displayName=Zl.displayName;const Cr=i.forwardRef(({className:e,orientation:t="vertical",...n},o)=>l.jsx(pr,{ref:o,orientation:t,className:$("ksjsui-flex ksjsui-touch-none ksjsui-select-none ksjsui-transition-colors",t==="vertical"&&"ksjsui-h-full ksjsui-w-2.5 ksjsui-border-l ksjsui-border-l-transparent ksjsui-p-[1px]",t==="horizontal"&&"ksjsui-h-2.5 ksjsui-flex-col ksjsui-border-t ksjsui-border-t-transparent ksjsui-p-[1px]",e),...n,children:l.jsx(_l,{className:$(["ksjsui-relative ksjsui-flex-1 ksjsui-rounded-full ksjsui-bg-border","forced-colors:ksjsui-bg-canvas-text","forced-colors:hover:ksjsui-bg-highlight"])})}));Cr.displayName=pr.displayName;function v4(e){const t=e+"CollectionProvider",[n,o]=de(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=m=>{const{scope:C,children:p}=m,g=te.useRef(null),b=te.useRef(new Map).current;return l.jsx(r,{scope:C,itemMap:b,collectionRef:g,children:p})};c.displayName=t;const a=e+"CollectionSlot",d=te.forwardRef((m,C)=>{const{scope:p,children:g}=m,b=s(a,p),y=V(C,b.collectionRef);return l.jsx(re,{ref:y,children:g})});d.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",h=te.forwardRef((m,C)=>{const{scope:p,children:g,...b}=m,y=te.useRef(null),w=V(C,y),k=s(u,p);return te.useEffect(()=>(k.itemMap.set(y,{ref:y,...b}),()=>void k.itemMap.delete(y))),l.jsx(re,{[f]:"",ref:w,children:g})});h.displayName=u;function v(m){const C=s(e+"CollectionConsumer",m);return te.useCallback(()=>{const g=C.collectionRef.current;if(!g)return[];const b=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(C.itemMap.values()).sort((k,M)=>b.indexOf(k.ref.current)-b.indexOf(M.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},v,o]}var m4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ie=m4.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?re:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function g4(e,t){e&&xe.flushSync(()=>e.dispatchEvent(t))}var C4="DismissableLayer",br="dismissableLayer.update",b4="dismissableLayer.pointerDownOutside",y4="dismissableLayer.focusOutside",Wl,zl=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bl=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...d}=e,u=i.useContext(zl),[f,h]=i.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=i.useState({}),C=V(t,E=>h(E)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(g),y=f?p.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=y>=b,M=E4(E=>{const L=E.target,N=[...u.branches].some(T=>T.contains(L));!k||N||(r==null||r(E),c==null||c(E),E.defaultPrevented||a==null||a())},v),P=S4(E=>{const L=E.target;[...u.branches].some(T=>T.contains(L))||(s==null||s(E),c==null||c(E),E.defaultPrevented||a==null||a())},v);return It(E=>{y===u.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},v),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wl=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ul(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Wl)}},[f,v,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ul())},[f,u]),i.useEffect(()=>{const E=()=>m({});return document.addEventListener(br,E),()=>document.removeEventListener(br,E)},[]),l.jsx(ie.div,{...d,ref:C,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:I(e.onFocusCapture,P.onFocusCapture),onBlurCapture:I(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,M.onPointerDownCapture)})});Bl.displayName=C4;var w4="DismissableLayerBranch",k4=i.forwardRef((e,t)=>{const n=i.useContext(zl),o=i.useRef(null),r=V(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(ie.div,{...e,ref:r})});k4.displayName=w4;function E4(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let d=function(){Kl(b4,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=d,t.addEventListener("click",r.current,{once:!0})):d()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function S4(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Kl(y4,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ul(){const e=new CustomEvent(br);document.dispatchEvent(e)}function Kl(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?g4(r,s):r.dispatchEvent(s)}var yr="focusScope.autoFocusOnMount",wr="focusScope.autoFocusOnUnmount",Gl={bubbles:!1,cancelable:!0},M4="FocusScope",Yl=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,d]=i.useState(null),u=U(r),f=U(s),h=i.useRef(null),v=V(t,p=>d(p)),m=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let p=function(w){if(m.paused||!a)return;const k=w.target;a.contains(k)?h.current=k:tt(h.current,{select:!0})},g=function(w){if(m.paused||!a)return;const k=w.relatedTarget;k!==null&&(a.contains(k)||tt(h.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const M of w)M.removedNodes.length>0&&tt(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),y.disconnect()}}},[o,a,m.paused]),i.useEffect(()=>{if(a){Ql.add(m);const p=document.activeElement;if(!a.contains(p)){const b=new CustomEvent(yr,Gl);a.addEventListener(yr,u),a.dispatchEvent(b),b.defaultPrevented||(P4(A4(Xl(a)),{select:!0}),document.activeElement===p&&tt(a))}return()=>{a.removeEventListener(yr,u),setTimeout(()=>{const b=new CustomEvent(wr,Gl);a.addEventListener(wr,f),a.dispatchEvent(b),b.defaultPrevented||tt(p??document.body,{select:!0}),a.removeEventListener(wr,f),Ql.remove(m)},0)}}},[a,u,f,m]);const C=i.useCallback(p=>{if(!n&&!o||m.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,b=document.activeElement;if(g&&b){const y=p.currentTarget,[w,k]=x4(y);w&&k?!p.shiftKey&&b===k?(p.preventDefault(),n&&tt(w,{select:!0})):p.shiftKey&&b===w&&(p.preventDefault(),n&&tt(k,{select:!0})):b===y&&p.preventDefault()}},[n,o,m.paused]);return l.jsx(ie.div,{tabIndex:-1,...c,ref:v,onKeyDown:C})});Yl.displayName=M4;function P4(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(tt(o,{select:t}),document.activeElement!==n)return}function x4(e){const t=Xl(e),n=ql(t,e),o=ql(t.reverse(),e);return[n,o]}function Xl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ql(e,t){for(const n of e)if(!L4(n,{upTo:t}))return n}function L4(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 I4(e){return e instanceof HTMLInputElement&&"select"in e}function tt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&I4(e)&&t&&e.select()}}var Ql=N4();function N4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Jl(e,t),e.unshift(t)},remove(t){var n;e=Jl(e,t),(n=e[0])==null||n.resume()}}}function Jl(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function A4(e){return e.filter(t=>t.tagName!=="A")}var T4="Arrow",e1=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return l.jsx(ie.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});e1.displayName=T4;var j4=e1,kr="Popper",[t1,n1]=de(kr),[O4,o1]=t1(kr),r1=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return l.jsx(O4,{scope:t,anchor:o,onAnchorChange:r,children:n})};r1.displayName=kr;var s1="PopperAnchor",i1=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=o1(s1,n),c=i.useRef(null),a=V(t,c);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:l.jsx(ie.div,{...r,ref:a})});i1.displayName=s1;var Er="PopperContent",[_4,$4]=t1(Er),a1=i.forwardRef((e,t)=>{var F,Y,Q,G,X,q;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:C,...p}=e,g=o1(Er,n),[b,y]=i.useState(null),w=V(t,ee=>y(ee)),[k,M]=i.useState(null),P=Mn(k),E=(P==null?void 0:P.width)??0,L=(P==null?void 0:P.height)??0,N=o+(s!=="center"?"-"+s:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(u)?u:[u],_=D.length>0,R={padding:T,boundary:D.filter(V4),altBoundary:_},{refs:j,floatingStyles:W,placement:H,isPositioned:Z,middlewareData:O}=gn({strategy:"fixed",placement:N,whileElementsMounted:(...ee)=>hn(...ee,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Cn({mainAxis:r+L,alignmentAxis:c}),d&&bn({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?yn():void 0,...R}),d&&wn({...R}),kn({...R,apply:({elements:ee,rects:le,availableWidth:Se,availableHeight:Me})=>{const{width:Pe,height:lt}=le.reference,ue=ee.floating.style;ue.setProperty("--radix-popper-available-width",`${Se}px`),ue.setProperty("--radix-popper-available-height",`${Me}px`),ue.setProperty("--radix-popper-anchor-width",`${Pe}px`),ue.setProperty("--radix-popper-anchor-height",`${lt}px`)}}),k&&Sn({element:k,padding:a}),D4({arrowWidth:E,arrowHeight:L}),v&&En({strategy:"referenceHidden",...R})]}),[A,K]=u1(H),z=U(C);J(()=>{Z&&(z==null||z())},[Z,z]);const oe=(F=O.arrow)==null?void 0:F.x,ae=(Y=O.arrow)==null?void 0:Y.y,se=((Q=O.arrow)==null?void 0:Q.centerOffset)!==0,[he,ce]=i.useState();return J(()=>{b&&ce(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:Z?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(G=O.transformOrigin)==null?void 0:G.x,(X=O.transformOrigin)==null?void 0:X.y].join(" "),...((q=O.hide)==null?void 0:q.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(_4,{scope:n,placedSide:A,onArrowChange:M,arrowX:oe,arrowY:ae,shouldHideArrow:se,children:l.jsx(ie.div,{"data-side":A,"data-align":K,...p,ref:w,style:{...p.style,animation:Z?void 0:"none"}})})})});a1.displayName=Er;var c1="PopperArrow",H4={top:"bottom",right:"left",bottom:"top",left:"right"},l1=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=$4(c1,o),c=H4[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(j4,{...r,ref:n,style:{...r.style,display:"block"}})})});l1.displayName=c1;function V4(e){return e!==null}var D4=e=>({name:"transformOrigin",options:e,fn(t){var g,b,y;const{placement:n,rects:o,middlewareData:r}=t,c=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[u,f]=u1(n),h={start:"0%",center:"50%",end:"100%"}[f],v=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,m=(((y=r.arrow)==null?void 0:y.y)??0)+d/2;let C="",p="";return u==="bottom"?(C=c?h:`${v}px`,p=`${-d}px`):u==="top"?(C=c?h:`${v}px`,p=`${o.floating.height+d}px`):u==="right"?(C=`${-d}px`,p=c?h:`${m}px`):u==="left"&&(C=`${o.floating.width+d}px`,p=c?h:`${m}px`),{data:{x:C,y:p}}}});function u1(e){const[t,n="center"]=e.split("-");return[t,n]}var F4=r1,R4=i1,Z4=a1,W4=l1,z4="Portal",d1=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);J(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?ut.createPortal(l.jsx(ie.div,{...o,ref:t}),c):null});d1.displayName=z4;function f1(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var B4="VisuallyHidden",p1=i.forwardRef((e,t)=>l.jsx(ie.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));p1.displayName=B4;var U4=[" ","Enter","ArrowUp","ArrowDown"],K4=[" ","Enter"],zt="Select",[Vn,Dn,G4]=v4(zt),[St,fm]=de(zt,[G4,n1]),Fn=n1(),[Y4,nt]=St(zt),[X4,q4]=St(zt),h1=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:c,defaultValue:a,onValueChange:d,dir:u,name:f,autoComplete:h,disabled:v,required:m,form:C}=e,p=Fn(t),[g,b]=i.useState(null),[y,w]=i.useState(null),[k,M]=i.useState(!1),P=sn(u),[E=!1,L]=_e({prop:o,defaultProp:r,onChange:s}),[N,T]=_e({prop:c,defaultProp:a,onChange:d}),D=i.useRef(null),_=g?C||!!g.closest("form"):!0,[R,j]=i.useState(new Set),W=Array.from(R).map(H=>H.props.value).join(";");return l.jsx(F4,{...p,children:l.jsxs(Y4,{required:m,scope:t,trigger:g,onTriggerChange:b,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:M,contentId:ge(),value:N,onValueChange:T,open:E,onOpenChange:L,dir:P,triggerPointerDownPosRef:D,disabled:v,children:[l.jsx(Vn.Provider,{scope:t,children:l.jsx(X4,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(H=>{j(Z=>new Set(Z).add(H))},[]),onNativeOptionRemove:i.useCallback(H=>{j(Z=>{const O=new Set(Z);return O.delete(H),O})},[]),children:n})}),_?l.jsxs(H1,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:h,value:N,onChange:H=>T(H.target.value),disabled:v,form:C,children:[N===void 0?l.jsx("option",{value:""}):null,Array.from(R)]},W):null]})})};h1.displayName=zt;var v1="SelectTrigger",m1=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=Fn(n),c=nt(v1,n),a=c.disabled||o,d=V(t,c.onTriggerChange),u=Dn(n),f=i.useRef("touch"),[h,v,m]=V1(p=>{const g=u().filter(w=>!w.disabled),b=g.find(w=>w.value===c.value),y=D1(g,p,b);y!==void 0&&c.onValueChange(y.value)}),C=p=>{a||(c.onOpenChange(!0),m()),p&&(c.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return l.jsx(R4,{asChild:!0,...s,children:l.jsx(ie.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":$1(c.value)?"":void 0,...r,ref:d,onClick:I(r.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&C(p)}),onPointerDown:I(r.onPointerDown,p=>{f.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(C(p),p.preventDefault())}),onKeyDown:I(r.onKeyDown,p=>{const g=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&v(p.key),!(g&&p.key===" ")&&U4.includes(p.key)&&(C(),p.preventDefault())})})})});m1.displayName=v1;var g1="SelectValue",C1=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:c="",...a}=e,d=nt(g1,n),{onValueNodeHasChildrenChange:u}=d,f=s!==void 0,h=V(t,d.onValueNodeChange);return J(()=>{u(f)},[u,f]),l.jsx(ie.span,{...a,ref:h,style:{pointerEvents:"none"},children:$1(d.value)?l.jsx(l.Fragment,{children:c}):s})});C1.displayName=g1;var Q4="SelectIcon",b1=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return l.jsx(ie.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});b1.displayName=Q4;var J4="SelectPortal",y1=e=>l.jsx(d1,{asChild:!0,...e});y1.displayName=J4;var at="SelectContent",w1=i.forwardRef((e,t)=>{const n=nt(at,e.__scopeSelect),[o,r]=i.useState();if(J(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?xe.createPortal(l.jsx(k1,{scope:e.__scopeSelect,children:l.jsx(Vn.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),s):null}return l.jsx(E1,{...e,ref:t})});w1.displayName=at;var Ee=10,[k1,ot]=St(at),e6="SelectContentImpl",E1=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:c,side:a,sideOffset:d,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:v,collisionPadding:m,sticky:C,hideWhenDetached:p,avoidCollisions:g,...b}=e,y=nt(at,n),[w,k]=i.useState(null),[M,P]=i.useState(null),E=V(t,F=>k(F)),[L,N]=i.useState(null),[T,D]=i.useState(null),_=Dn(n),[R,j]=i.useState(!1),W=i.useRef(!1);i.useEffect(()=>{if(w)return on(w)},[w]),po();const H=i.useCallback(F=>{const[Y,...Q]=_().map(q=>q.ref.current),[G]=Q.slice(-1),X=document.activeElement;for(const q of F)if(q===X||(q==null||q.scrollIntoView({block:"nearest"}),q===Y&&M&&(M.scrollTop=0),q===G&&M&&(M.scrollTop=M.scrollHeight),q==null||q.focus(),document.activeElement!==X))return},[_,M]),Z=i.useCallback(()=>H([L,w]),[H,L,w]);i.useEffect(()=>{R&&Z()},[R,Z]);const{onOpenChange:O,triggerPointerDownPosRef:A}=y;i.useEffect(()=>{if(w){let F={x:0,y:0};const Y=G=>{var X,q;F={x:Math.abs(Math.round(G.pageX)-(((X=A.current)==null?void 0:X.x)??0)),y:Math.abs(Math.round(G.pageY)-(((q=A.current)==null?void 0:q.y)??0))}},Q=G=>{F.x<=10&&F.y<=10?G.preventDefault():w.contains(G.target)||O(!1),document.removeEventListener("pointermove",Y),A.current=null};return A.current!==null&&(document.addEventListener("pointermove",Y),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",Q,{capture:!0})}}},[w,O,A]),i.useEffect(()=>{const F=()=>O(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[O]);const[K,z]=V1(F=>{const Y=_().filter(X=>!X.disabled),Q=Y.find(X=>X.ref.current===document.activeElement),G=D1(Y,F,Q);G&&setTimeout(()=>G.ref.current.focus())}),oe=i.useCallback((F,Y,Q)=>{const G=!W.current&&!Q;(y.value!==void 0&&y.value===Y||G)&&(N(F),G&&(W.current=!0))},[y.value]),ae=i.useCallback(()=>w==null?void 0:w.focus(),[w]),se=i.useCallback((F,Y,Q)=>{const G=!W.current&&!Q;(y.value!==void 0&&y.value===Y||G)&&D(F)},[y.value]),he=o==="popper"?Sr:S1,ce=he===Sr?{side:a,sideOffset:d,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:v,collisionPadding:m,sticky:C,hideWhenDetached:p,avoidCollisions:g}:{};return l.jsx(k1,{scope:n,content:w,viewport:M,onViewportChange:P,itemRefCallback:oe,selectedItem:L,onItemLeave:ae,itemTextRefCallback:se,focusSelectedItem:Z,selectedItemText:T,position:o,isPositioned:R,searchRef:K,children:l.jsx(Nt,{as:re,allowPinchZoom:!0,children:l.jsx(Yl,{asChild:!0,trapped:y.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:I(r,F=>{var Y;(Y=y.trigger)==null||Y.focus({preventScroll:!0}),F.preventDefault()}),children:l.jsx(Bl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:l.jsx(he,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:F=>F.preventDefault(),...b,...ce,onPlaced:()=>j(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:I(b.onKeyDown,F=>{const Y=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!Y&&F.key.length===1&&z(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let G=_().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(F.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const X=F.target,q=G.indexOf(X);G=G.slice(q+1)}setTimeout(()=>H(G)),F.preventDefault()}})})})})})})});E1.displayName=e6;var t6="SelectItemAlignedPosition",S1=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=nt(at,n),c=ot(at,n),[a,d]=i.useState(null),[u,f]=i.useState(null),h=V(t,E=>f(E)),v=Dn(n),m=i.useRef(!1),C=i.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:b,focusSelectedItem:y}=c,w=i.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&p&&g&&b){const E=s.trigger.getBoundingClientRect(),L=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),T=b.getBoundingClientRect();if(s.dir!=="rtl"){const X=T.left-L.left,q=N.left-X,ee=E.left-q,le=E.width+ee,Se=Math.max(le,L.width),Me=window.innerWidth-Ee,Pe=dr(q,[Ee,Math.max(Ee,Me-Se)]);a.style.minWidth=le+"px",a.style.left=Pe+"px"}else{const X=L.right-T.right,q=window.innerWidth-N.right-X,ee=window.innerWidth-E.right-q,le=E.width+ee,Se=Math.max(le,L.width),Me=window.innerWidth-Ee,Pe=dr(q,[Ee,Math.max(Ee,Me-Se)]);a.style.minWidth=le+"px",a.style.right=Pe+"px"}const D=v(),_=window.innerHeight-Ee*2,R=p.scrollHeight,j=window.getComputedStyle(u),W=parseInt(j.borderTopWidth,10),H=parseInt(j.paddingTop,10),Z=parseInt(j.borderBottomWidth,10),O=parseInt(j.paddingBottom,10),A=W+H+R+O+Z,K=Math.min(g.offsetHeight*5,A),z=window.getComputedStyle(p),oe=parseInt(z.paddingTop,10),ae=parseInt(z.paddingBottom,10),se=E.top+E.height/2-Ee,he=_-se,ce=g.offsetHeight/2,F=g.offsetTop+ce,Y=W+H+F,Q=A-Y;if(Y<=se){const X=D.length>0&&g===D[D.length-1].ref.current;a.style.bottom="0px";const q=u.clientHeight-p.offsetTop-p.offsetHeight,ee=Math.max(he,ce+(X?ae:0)+q+Z),le=Y+ee;a.style.height=le+"px"}else{const X=D.length>0&&g===D[0].ref.current;a.style.top="0px";const ee=Math.max(se,W+p.offsetTop+(X?oe:0)+ce)+Q;a.style.height=ee+"px",p.scrollTop=Y-se+p.offsetTop}a.style.margin=`${Ee}px 0`,a.style.minHeight=K+"px",a.style.maxHeight=_+"px",o==null||o(),requestAnimationFrame(()=>m.current=!0)}},[v,s.trigger,s.valueNode,a,u,p,g,b,s.dir,o]);J(()=>w(),[w]);const[k,M]=i.useState();J(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const P=i.useCallback(E=>{E&&C.current===!0&&(w(),y==null||y(),C.current=!1)},[w,y]);return l.jsx(o6,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:l.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:l.jsx(ie.div,{...r,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});S1.displayName=t6;var n6="SelectPopperPosition",Sr=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=Ee,...s}=e,c=Fn(n);return l.jsx(Z4,{...c,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.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=n6;var[o6,Mr]=St(at,{}),Pr="SelectViewport",M1=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=ot(Pr,n),c=Mr(Pr,n),a=V(t,s.onViewportChange),d=i.useRef(0);return l.jsxs(l.Fragment,{children:[l.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:o}),l.jsx(Vn.Slot,{scope:n,children:l.jsx(ie.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:I(r.onScroll,u=>{const f=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:v}=c;if(v!=null&&v.current&&h){const m=Math.abs(d.current-f.scrollTop);if(m>0){const C=window.innerHeight-Ee*2,p=parseFloat(h.style.minHeight),g=parseFloat(h.style.height),b=Math.max(p,g);if(b<C){const y=b+m,w=Math.min(C,y),k=y-w;h.style.height=w+"px",h.style.bottom==="0px"&&(f.scrollTop=k>0?k:0,h.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});M1.displayName=Pr;var P1="SelectGroup",[r6,s6]=St(P1),i6=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=ge();return l.jsx(r6,{scope:n,id:r,children:l.jsx(ie.div,{role:"group","aria-labelledby":r,...o,ref:t})})});i6.displayName=P1;var x1="SelectLabel",L1=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=s6(x1,n);return l.jsx(ie.div,{id:r.id,...o,ref:t})});L1.displayName=x1;var Rn="SelectItem",[a6,I1]=St(Rn),N1=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...c}=e,a=nt(Rn,n),d=ot(Rn,n),u=a.value===o,[f,h]=i.useState(s??""),[v,m]=i.useState(!1),C=V(t,y=>{var w;return(w=d.itemRefCallback)==null?void 0:w.call(d,y,o,r)}),p=ge(),g=i.useRef("touch"),b=()=>{r||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")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 l.jsx(a6,{scope:n,value:o,disabled:r,textId:p,isSelected:u,onItemTextChange:i.useCallback(y=>{h(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:l.jsx(Vn.ItemSlot,{scope:n,value:o,disabled:r,textValue:f,children:l.jsx(ie.div,{role:"option","aria-labelledby":p,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...c,ref:C,onFocus:I(c.onFocus,()=>m(!0)),onBlur:I(c.onBlur,()=>m(!1)),onClick:I(c.onClick,()=>{g.current!=="mouse"&&b()}),onPointerUp:I(c.onPointerUp,()=>{g.current==="mouse"&&b()}),onPointerDown:I(c.onPointerDown,y=>{g.current=y.pointerType}),onPointerMove:I(c.onPointerMove,y=>{var w;g.current=y.pointerType,r?(w=d.onItemLeave)==null||w.call(d):g.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:I(c.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=d.onItemLeave)==null||w.call(d))}),onKeyDown:I(c.onKeyDown,y=>{var k;((k=d.searchRef)==null?void 0:k.current)!==""&&y.key===" "||(K4.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});N1.displayName=Rn;var Bt="SelectItemText",A1=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,c=nt(Bt,n),a=ot(Bt,n),d=I1(Bt,n),u=q4(Bt,n),[f,h]=i.useState(null),v=V(t,b=>h(b),d.onItemTextChange,b=>{var y;return(y=a.itemTextRefCallback)==null?void 0:y.call(a,b,d.value,d.disabled)}),m=f==null?void 0:f.textContent,C=i.useMemo(()=>l.jsx("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return J(()=>(p(C),()=>g(C)),[p,g,C]),l.jsxs(l.Fragment,{children:[l.jsx(ie.span,{id:d.textId,...s,ref:v}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?xe.createPortal(s.children,c.valueNode):null]})});A1.displayName=Bt;var T1="SelectItemIndicator",j1=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return I1(T1,n).isSelected?l.jsx(ie.span,{"aria-hidden":!0,...o,ref:t}):null});j1.displayName=T1;var xr="SelectScrollUpButton",c6=i.forwardRef((e,t)=>{const n=ot(xr,e.__scopeSelect),o=Mr(xr,e.__scopeSelect),[r,s]=i.useState(!1),c=V(t,o.onScrollButtonChange);return J(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=d.scrollTop>0;s(u)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?l.jsx(O1,{...e,ref:c,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop-d.offsetHeight)}}):null});c6.displayName=xr;var Lr="SelectScrollDownButton",l6=i.forwardRef((e,t)=>{const n=ot(Lr,e.__scopeSelect),o=Mr(Lr,e.__scopeSelect),[r,s]=i.useState(!1),c=V(t,o.onScrollButtonChange);return J(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<u;s(f)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?l.jsx(O1,{...e,ref:c,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop+d.offsetHeight)}}):null});l6.displayName=Lr;var O1=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=ot("SelectScrollButton",n),c=i.useRef(null),a=Dn(n),d=i.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return i.useEffect(()=>()=>d(),[d]),J(()=>{var f;const u=a().find(h=>h.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),l.jsx(ie.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:I(r.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(o,50))}),onPointerMove:I(r.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),c.current===null&&(c.current=window.setInterval(o,50))}),onPointerLeave:I(r.onPointerLeave,()=>{d()})})}),u6="SelectSeparator",_1=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return l.jsx(ie.div,{"aria-hidden":!0,...o,ref:t})});_1.displayName=u6;var Ir="SelectArrow",d6=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Fn(n),s=nt(Ir,n),c=ot(Ir,n);return s.open&&c.position==="popper"?l.jsx(W4,{...r,...o,ref:t}):null});d6.displayName=Ir;function $1(e){return e===""||e===void 0}var H1=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=i.useRef(null),s=V(t,r),c=f1(n);return i.useEffect(()=>{const a=r.current,d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(c!==n&&f){const h=new Event("change",{bubbles:!0});f.call(a,n),a.dispatchEvent(h)}},[c,n]),l.jsx(p1,{asChild:!0,children:l.jsx("select",{...o,ref:s,defaultValue:n})})});H1.displayName="BubbleSelect";function V1(e){const t=U(e),n=i.useRef(""),o=i.useRef(0),r=i.useCallback(c=>{const a=n.current+c;t(a),function d(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>d(""),1e3))}(a)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function D1(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=f6(e,Math.max(s,0));r.length===1&&(c=c.filter(u=>u!==n));const d=c.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return d!==n?d:void 0}function f6(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var p6=h1,F1=m1,h6=C1,v6=b1,m6=y1,R1=w1,g6=M1,Z1=L1,W1=N1,C6=A1,b6=j1,z1=_1;const y6=p6,w6=h6,B1=i.forwardRef(({className:e,children:t,tabIndex:n=0,...o},r)=>l.jsxs(F1,{ref:r,className:$(["ksjsui-flex ksjsui-h-10 ksjsui-w-full ksjsui-items-center ksjsui-justify-between ksjsui-gap-x-2 ksjsui-rounded-md ksjsui-border ksjsui-border-input ksjsui-bg-background ksjsui-px-3 ksjsui-py-2 ksjsui-text-sm ksjsui-ring-offset-background","data-[placeholder]:ksjsui-text-placeholder","focus:ksjsui-outline-none focus:ksjsui-outline-ring","disabled:ksjsui-cursor-not-allowed disabled:ksjsui-opacity-50","[&>span]:ksjsui-truncate"],e),tabIndex:n,...o,children:[t,l.jsx(v6,{asChild:!0,children:l.jsx(gi,{className:"ksjsui-shrink-0 ksjsui-opacity-50"})})]}));B1.displayName=F1.displayName;const U1=i.forwardRef(({className:e,children:t,position:n="popper",...o},r)=>l.jsx(m6,{children:l.jsx(R1,{ref:r,className:$(["ksjsui-z-50 ksjsui-flex ksjsui-flex-col ksjsui-gap-y-2 ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-border-0 ksjsui-bg-popover ksjsui-text-popover-foreground ksjsui-shadow-md","ksjsui-max-h-[var(--radix-select-content-available-height)]","ksjsui-min-w-[var(--radix-select-trigger-width)] ksjsui-max-w-[var(--radix-select-content-available-width)]","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-fade-in-0 data-[state=open]:ksjsui-zoom-in-95","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-0 data-[state=closed]:ksjsui-zoom-out-95","data-[side=top]:ksjsui-slide-in-from-bottom-2","data-[side=right]:ksjsui-slide-in-from-left-2","data-[side=bottom]:ksjsui-slide-in-from-top-2","data-[side=left]:ksjsui-slide-in-from-right-2","forced-colors:ksjsui-border"],n==="popper"&&["data-[side=top]:-ksjsui-translate-y-1","data-[side=right]:ksjsui-translate-x-1","data-[side=bottom]:ksjsui-translate-y-1","data-[side=left]:-ksjsui-translate-x-1"],e),position:n,...o,children:l.jsx(g6,{className:$("ksjsui-flex ksjsui-flex-col ksjsui-gap-y-2 ksjsui-px-2 ksjsui-py-4"),asChild:!0,children:l.jsx(mr,{children:l.jsx(gr,{children:t})})})})}));U1.displayName=R1.displayName;const k6=i.forwardRef(({className:e,...t},n)=>l.jsx(Z1,{ref:n,className:$("ksjsui-px-2 ksjsui-pt-2 ksjsui-text-sm ksjsui-text-label",e),...t}));k6.displayName=Z1.displayName;const K1=i.forwardRef(({className:e,children:t,...n},o)=>l.jsxs(W1,{ref:o,className:$(["ksjsui-group","ksjsui-flex ksjsui-w-full ksjsui-cursor-default ksjsui-select-none ksjsui-items-center ksjsui-justify-between ksjsui-gap-2 ksjsui-rounded-sm ksjsui-px-2 ksjsui-py-1 ksjsui-text-base","data-[disabled]:ksjsui-pointer-events-none data-[disabled]:ksjsui-opacity-50","focus:ksjsui-bg-selected-hover focus:ksjsui-text-selected-foreground focus:ksjsui-outline-none","forced-colors:focus:ksjsui-bg-highlight forced-colors:focus:ksjsui-text-highlight-text forced-colors:focus:ksjsui-forced-color-adjust-none"],e),...n,children:[l.jsx(C6,{children:t}),l.jsx(b6,{children:l.jsx(Eo,{className:$(["ksjsui-size-6 ksjsui-shrink-0","group-focus:forced-colors:ksjsui-fill-highlight-text"])})})]}));K1.displayName=W1.displayName;const E6=i.forwardRef(({className:e,...t},n)=>l.jsx(z1,{ref:n,className:$(["ksjsui-my-1 ksjsui-h-px ksjsui-shrink-0 ksjsui-bg-border","forced-colors:ksjsui-bg-button-border"],e),...t}));E6.displayName=z1.displayName;var S6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],M6=S6.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?re:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),P6="Separator",G1="horizontal",x6=["horizontal","vertical"],Y1=i.forwardRef((e,t)=>{const{decorative:n,orientation:o=G1,...r}=e,s=L6(o)?o:G1,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return l.jsx(M6.div,{"data-orientation":s,...a,...r,ref:t})});Y1.displayName=P6;function L6(e){return x6.includes(e)}var X1=Y1;const q1=i.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...o},r)=>l.jsx(X1,{ref:r,decorative:n,orientation:t,className:$("ksjsui-shrink-0 ksjsui-bg-border forced-colors:ksjsui-bg-canvas-text forced-colors:ksjsui-forced-color-adjust-none",t==="horizontal"?"ksjsui-block ksjsui-h-px ksjsui-w-full":"ksjsui-inline-block ksjsui-w-px",e),...o}));q1.displayName=X1.displayName;var I6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Q1=I6.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?re:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Nr="Switch",[N6,pm]=de(Nr),[A6,T6]=N6(Nr),J1=i.forwardRef((e,t)=>{const{__scopeSwitch:n,name:o,checked:r,defaultChecked:s,required:c,disabled:a,value:d="on",onCheckedChange:u,form:f,...h}=e,[v,m]=i.useState(null),C=V(t,w=>m(w)),p=i.useRef(!1),g=v?f||!!v.closest("form"):!0,[b=!1,y]=_e({prop:r,defaultProp:s,onChange:u});return l.jsxs(A6,{scope:n,checked:b,disabled:a,children:[l.jsx(Q1.button,{type:"button",role:"switch","aria-checked":b,"aria-required":c,"data-state":nu(b),"data-disabled":a?"":void 0,disabled:a,value:d,...h,ref:C,onClick:I(e.onClick,w=>{y(k=>!k),g&&(p.current=w.isPropagationStopped(),p.current||w.stopPropagation())})}),g&&l.jsx(j6,{control:v,bubbles:!p.current,name:o,value:d,checked:b,required:c,disabled:a,form:f,style:{transform:"translateX(-100%)"}})]})});J1.displayName=Nr;var eu="SwitchThumb",tu=i.forwardRef((e,t)=>{const{__scopeSwitch:n,...o}=e,r=T6(eu,n);return l.jsx(Q1.span,{"data-state":nu(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:t})});tu.displayName=eu;var j6=e=>{const{control:t,checked:n,bubbles:o=!0,...r}=e,s=i.useRef(null),c=f1(n),a=Mn(t);return i.useEffect(()=>{const d=s.current,u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(c!==n&&h){const v=new Event("click",{bubbles:o});h.call(d,n),d.dispatchEvent(v)}},[c,n,o]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:s,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function nu(e){return e?"checked":"unchecked"}var ou=J1,O6=tu;const ru=i.forwardRef(({className:e,tabIndex:t=0,...n},o)=>l.jsx(ou,{className:$(["ksjsui-peer ksjsui-inline-flex ksjsui-h-6 ksjsui-w-11 ksjsui-shrink-0 ksjsui-cursor-pointer ksjsui-items-center ksjsui-rounded-full ksjsui-border-2 ksjsui-border-transparent ksjsui-bg-neutral ksjsui-transition-colors","focus-visible:ksjsui-outline-none focus-visible:ksjsui-ring-2 focus-visible:ksjsui-ring-ring focus-visible:ksjsui-ring-offset-2 focus-visible:ksjsui-ring-offset-background","disabled:ksjsui-pointer-events-none disabled:ksjsui-cursor-not-allowed disabled:ksjsui-opacity-50","data-[state=unchecked]:ksjsui-bg-input","data-[state=checked]:ksjsui-border-secondary data-[state=checked]:ksjsui-bg-secondary","forced-colors:ksjsui-border-button-border forced-colors:ksjsui-transition-none","forced-colors:data-[state=checked]:ksjsui-border-highlight forced-colors:data-[state=checked]:ksjsui-bg-highlight"],e),tabIndex:t,...n,ref:o,children:l.jsx(O6,{className:$(["ksjsui-pointer-events-none ksjsui-block ksjsui-size-5 ksjsui-translate-x-0 ksjsui-rounded-full ksjsui-bg-thumb ksjsui-shadow ksjsui-ring-0 ksjsui-transition-transform","data-[state=unchecked]:ksjsui-translate-x-0","data-[state=checked]:ksjsui-translate-x-5","rtl:data-[state=checked]:-ksjsui-translate-x-5","forced-colors:ksjsui-bg-button-border forced-colors:ksjsui-transition-none","forced-colors:data-[state=checked]:ksjsui-bg-canvas"])})}));ru.displayName=ou.displayName;function _6(e){const t=e+"CollectionProvider",[n,o]=de(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=m=>{const{scope:C,children:p}=m,g=te.useRef(null),b=te.useRef(new Map).current;return l.jsx(r,{scope:C,itemMap:b,collectionRef:g,children:p})};c.displayName=t;const a=e+"CollectionSlot",d=te.forwardRef((m,C)=>{const{scope:p,children:g}=m,b=s(a,p),y=V(C,b.collectionRef);return l.jsx(re,{ref:y,children:g})});d.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",h=te.forwardRef((m,C)=>{const{scope:p,children:g,...b}=m,y=te.useRef(null),w=V(C,y),k=s(u,p);return te.useEffect(()=>(k.itemMap.set(y,{ref:y,...b}),()=>void k.itemMap.delete(y))),l.jsx(re,{[f]:"",ref:w,children:g})});h.displayName=u;function v(m){const C=s(e+"CollectionConsumer",m);return te.useCallback(()=>{const g=C.collectionRef.current;if(!g)return[];const b=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(C.itemMap.values()).sort((k,M)=>b.indexOf(k.ref.current)-b.indexOf(M.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},v,o]}var $6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],je=$6.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?re:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function su(e,t){e&&xe.flushSync(()=>e.dispatchEvent(t))}var H6="DismissableLayer",Ar="dismissableLayer.update",V6="dismissableLayer.pointerDownOutside",D6="dismissableLayer.focusOutside",iu,au=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cu=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...d}=e,u=i.useContext(au),[f,h]=i.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=i.useState({}),C=V(t,E=>h(E)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(g),y=f?p.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=y>=b,M=R6(E=>{const L=E.target,N=[...u.branches].some(T=>T.contains(L));!k||N||(r==null||r(E),c==null||c(E),E.defaultPrevented||a==null||a())},v),P=Z6(E=>{const L=E.target;[...u.branches].some(T=>T.contains(L))||(s==null||s(E),c==null||c(E),E.defaultPrevented||a==null||a())},v);return It(E=>{y===u.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},v),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(iu=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),uu(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=iu)}},[f,v,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),uu())},[f,u]),i.useEffect(()=>{const E=()=>m({});return document.addEventListener(Ar,E),()=>document.removeEventListener(Ar,E)},[]),l.jsx(je.div,{...d,ref:C,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:I(e.onFocusCapture,P.onFocusCapture),onBlurCapture:I(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,M.onPointerDownCapture)})});cu.displayName=H6;var F6="DismissableLayerBranch",lu=i.forwardRef((e,t)=>{const n=i.useContext(au),o=i.useRef(null),r=V(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(je.div,{...e,ref:r})});lu.displayName=F6;function R6(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let d=function(){du(V6,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=d,t.addEventListener("click",r.current,{once:!0})):d()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Z6(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&du(D6,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function uu(){const e=new CustomEvent(Ar);document.dispatchEvent(e)}function du(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?su(r,s):r.dispatchEvent(s)}var W6=cu,z6=lu,B6="Portal",fu=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);J(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?ut.createPortal(l.jsx(je.div,{...o,ref:t}),c):null});fu.displayName=B6;function U6(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var pu=e=>{const{present:t,children:n}=e,o=K6(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=V(o.ref,G6(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};pu.displayName="Presence";function K6(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,d]=U6(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Zn(o.current);s.current=a==="mounted"?u:"none"},[a]),J(()=>{const u=o.current,f=r.current;if(f!==e){const v=s.current,m=Zn(u);e?d("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&v!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),J(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const p=Zn(o.current).includes(m.animationName);if(m.target===t&&p&&(d("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=m=>{m.target===t&&(s.current=Zn(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function Zn(e){return(e==null?void 0:e.animationName)||"none"}function G6(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Y6="VisuallyHidden",Tr=i.forwardRef((e,t)=>l.jsx(je.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Tr.displayName=Y6;var jr="ToastProvider",[Or,X6,q6]=_6("Toast"),[hu,hm]=de("Toast",[q6]),[Q6,Wn]=hu(jr),vu=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:c}=e,[a,d]=i.useState(null),[u,f]=i.useState(0),h=i.useRef(!1),v=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${jr}\`. Expected non-empty \`string\`.`),l.jsx(Or.Provider,{scope:t,children:l.jsx(Q6,{scope:t,label:n,duration:o,swipeDirection:r,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:d,onToastAdd:i.useCallback(()=>f(m=>m+1),[]),onToastRemove:i.useCallback(()=>f(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:v,children:c})})};vu.displayName=jr;var mu="ToastViewport",J6=["F8"],_r="toast.viewportPause",$r="toast.viewportResume",gu=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:o=J6,label:r="Notifications ({hotkey})",...s}=e,c=Wn(mu,n),a=X6(n),d=i.useRef(null),u=i.useRef(null),f=i.useRef(null),h=i.useRef(null),v=V(t,h,c.onViewportChange),m=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=c.toastCount>0;i.useEffect(()=>{const g=b=>{var w;o.length!==0&&o.every(k=>b[k]||b.code===k)&&((w=h.current)==null||w.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[o]),i.useEffect(()=>{const g=d.current,b=h.current;if(C&&g&&b){const y=()=>{if(!c.isClosePausedRef.current){const P=new CustomEvent(_r);b.dispatchEvent(P),c.isClosePausedRef.current=!0}},w=()=>{if(c.isClosePausedRef.current){const P=new CustomEvent($r);b.dispatchEvent(P),c.isClosePausedRef.current=!1}},k=P=>{!g.contains(P.relatedTarget)&&w()},M=()=>{g.contains(document.activeElement)||w()};return g.addEventListener("focusin",y),g.addEventListener("focusout",k),g.addEventListener("pointermove",y),g.addEventListener("pointerleave",M),window.addEventListener("blur",y),window.addEventListener("focus",w),()=>{g.removeEventListener("focusin",y),g.removeEventListener("focusout",k),g.removeEventListener("pointermove",y),g.removeEventListener("pointerleave",M),window.removeEventListener("blur",y),window.removeEventListener("focus",w)}}},[C,c.isClosePausedRef]);const p=i.useCallback(({tabbingDirection:g})=>{const y=a().map(w=>{const k=w.ref.current,M=[k,...p8(k)];return g==="forwards"?M:M.reverse()});return(g==="forwards"?y.reverse():y).flat()},[a]);return i.useEffect(()=>{const g=h.current;if(g){const b=y=>{var M,P,E;const w=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!w){const L=document.activeElement,N=y.shiftKey;if(y.target===g&&N){(M=u.current)==null||M.focus();return}const _=p({tabbingDirection:N?"backwards":"forwards"}),R=_.findIndex(j=>j===L);Dr(_.slice(R+1))?y.preventDefault():N?(P=u.current)==null||P.focus():(E=f.current)==null||E.focus()}};return g.addEventListener("keydown",b),()=>g.removeEventListener("keydown",b)}},[a,p]),l.jsxs(z6,{ref:d,role:"region","aria-label":r.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&l.jsx(Hr,{ref:u,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"forwards"});Dr(g)}}),l.jsx(Or.Slot,{scope:n,children:l.jsx(je.ol,{tabIndex:-1,...s,ref:v})}),C&&l.jsx(Hr,{ref:f,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"backwards"});Dr(g)}})]})});gu.displayName=mu;var Cu="ToastFocusProxy",Hr=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:o,...r}=e,s=Wn(Cu,n);return l.jsx(Tr,{"aria-hidden":!0,tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:c=>{var u;const a=c.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&o()}})});Hr.displayName=Cu;var zn="Toast",e8="toast.swipeStart",t8="toast.swipeMove",n8="toast.swipeCancel",o8="toast.swipeEnd",bu=i.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:r,onOpenChange:s,...c}=e,[a=!0,d]=_e({prop:o,defaultProp:r,onChange:s});return l.jsx(pu,{present:n||a,children:l.jsx(i8,{open:a,...c,ref:t,onClose:()=>d(!1),onPause:U(e.onPause),onResume:U(e.onResume),onSwipeStart:I(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:I(e.onSwipeMove,u=>{const{x:f,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:I(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:I(e.onSwipeEnd,u=>{const{x:f,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),d(!1)})})})});bu.displayName=zn;var[r8,s8]=hu(zn,{onClose(){}}),i8=i.forwardRef((e,t)=>{const{__scopeToast:n,type:o="foreground",duration:r,open:s,onClose:c,onEscapeKeyDown:a,onPause:d,onResume:u,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:v,onSwipeEnd:m,...C}=e,p=Wn(zn,n),[g,b]=i.useState(null),y=V(t,j=>b(j)),w=i.useRef(null),k=i.useRef(null),M=r||p.duration,P=i.useRef(0),E=i.useRef(M),L=i.useRef(0),{onToastAdd:N,onToastRemove:T}=p,D=U(()=>{var W;(g==null?void 0:g.contains(document.activeElement))&&((W=p.viewport)==null||W.focus()),c()}),_=i.useCallback(j=>{!j||j===1/0||(window.clearTimeout(L.current),P.current=new Date().getTime(),L.current=window.setTimeout(D,j))},[D]);i.useEffect(()=>{const j=p.viewport;if(j){const W=()=>{_(E.current),u==null||u()},H=()=>{const Z=new Date().getTime()-P.current;E.current=E.current-Z,window.clearTimeout(L.current),d==null||d()};return j.addEventListener(_r,H),j.addEventListener($r,W),()=>{j.removeEventListener(_r,H),j.removeEventListener($r,W)}}},[p.viewport,M,d,u,_]),i.useEffect(()=>{s&&!p.isClosePausedRef.current&&_(M)},[s,M,p.isClosePausedRef,_]),i.useEffect(()=>(N(),()=>T()),[N,T]);const R=i.useMemo(()=>g?Mu(g):null,[g]);return p.viewport?l.jsxs(l.Fragment,{children:[R&&l.jsx(a8,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:R}),l.jsx(r8,{scope:n,onClose:D,children:xe.createPortal(l.jsx(Or.ItemSlot,{scope:n,children:l.jsx(W6,{asChild:!0,onEscapeKeyDown:I(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||D(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(je.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":p.swipeDirection,...C,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:I(e.onKeyDown,j=>{j.key==="Escape"&&(a==null||a(j.nativeEvent),j.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:I(e.onPointerDown,j=>{j.button===0&&(w.current={x:j.clientX,y:j.clientY})}),onPointerMove:I(e.onPointerMove,j=>{if(!w.current)return;const W=j.clientX-w.current.x,H=j.clientY-w.current.y,Z=!!k.current,O=["left","right"].includes(p.swipeDirection),A=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,K=O?A(0,W):0,z=O?0:A(0,H),oe=j.pointerType==="touch"?10:2,ae={x:K,y:z},se={originalEvent:j,delta:ae};Z?(k.current=ae,Bn(t8,h,se,{discrete:!1})):Pu(ae,p.swipeDirection,oe)?(k.current=ae,Bn(e8,f,se,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(W)>oe||Math.abs(H)>oe)&&(w.current=null)}),onPointerUp:I(e.onPointerUp,j=>{const W=k.current,H=j.target;if(H.hasPointerCapture(j.pointerId)&&H.releasePointerCapture(j.pointerId),k.current=null,w.current=null,W){const Z=j.currentTarget,O={originalEvent:j,delta:W};Pu(W,p.swipeDirection,p.swipeThreshold)?Bn(o8,m,O,{discrete:!0}):Bn(n8,v,O,{discrete:!0}),Z.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),a8=e=>{const{__scopeToast:t,children:n,...o}=e,r=Wn(zn,t),[s,c]=i.useState(!1),[a,d]=i.useState(!1);return d8(()=>c(!0)),i.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:l.jsx(fu,{asChild:!0,children:l.jsx(Tr,{...o,children:s&&l.jsxs(l.Fragment,{children:[r.label," ",n]})})})},c8="ToastTitle",l8=i.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return l.jsx(je.div,{...o,ref:t})});l8.displayName=c8;var u8="ToastDescription",yu=i.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return l.jsx(je.div,{...o,ref:t})});yu.displayName=u8;var wu="ToastAction",ku=i.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?l.jsx(Su,{altText:n,asChild:!0,children:l.jsx(Vr,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${wu}\`. Expected non-empty \`string\`.`),null)});ku.displayName=wu;var Eu="ToastClose",Vr=i.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,r=s8(Eu,n);return l.jsx(Su,{asChild:!0,children:l.jsx(je.button,{type:"button",...o,ref:t,onClick:I(e.onClick,r.onClose)})})});Vr.displayName=Eu;var Su=i.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...r}=e;return l.jsx(je.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...r,ref:t})});function Mu(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),f8(o)){const r=o.ariaHidden||o.hidden||o.style.display==="none",s=o.dataset.radixToastAnnounceExclude==="";if(!r)if(s){const c=o.dataset.radixToastAnnounceAlt;c&&t.push(c)}else t.push(...Mu(o))}}),t}function Bn(e,t,n,{discrete:o}){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?su(r,s):r.dispatchEvent(s)}var Pu=(e,t,n=0)=>{const o=Math.abs(e.x),r=Math.abs(e.y),s=o>r;return t==="left"||t==="right"?s&&o>n:!s&&r>n};function d8(e=()=>{}){const t=U(e);J(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function f8(e){return e.nodeType===e.ELEMENT_NODE}function p8(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Dr(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var h8=vu,xu=gu,Lu=bu,Iu=yu,Nu=ku,Au=Vr;const v8=1,m8=1e6;let Fr=0;function g8(){return Fr=(Fr+1)%Number.MAX_SAFE_INTEGER,Fr.toString()}const Rr=new Map,Tu=e=>{if(Rr.has(e))return;const t=setTimeout(()=>{Rr.delete(e),Ut({type:"REMOVE_TOAST",toastId:e})},m8);Rr.set(e,t)},C8=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,v8)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Tu(n):e.toasts.forEach(o=>{Tu(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===n||n===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Un=[];let Kn={toasts:[]};function Ut(e){Kn=C8(Kn,e),Un.forEach(t=>{t(Kn)})}function b8({...e}){const t=g8(),n=r=>Ut({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Ut({type:"DISMISS_TOAST",toastId:t});return Ut({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:n}}function ju(){const[e,t]=i.useState(Kn);return i.useEffect(()=>(Un.push(t),()=>{const n=Un.indexOf(t);n>-1&&Un.splice(n,1)}),[e]),{...e,toast:b8,dismiss:n=>Ut({type:"DISMISS_TOAST",toastId:n})}}let Zr={toast:{dismissButtonLabel:"missing ksjsui string"}};const Ou=i.createContext(Zr);function y8({children:e}){const t=i.useRef(Zr);return l.jsx(Ou.Provider,{value:t.current,children:e})}function w8(){const e=i.useContext(Ou);if(!e)throw new Error("useStrings must be used inside <StringsProvider />");return e}function k8(e){Zr=e}const E8=h8,_u=i.forwardRef(({className:e,...t},n)=>l.jsx(xu,{ref:n,className:$(["dark-mode","ksjsui-fixed ksjsui-bottom-0 ksjsui-end-0 ksjsui-z-[100] ksjsui-flex ksjsui-max-h-screen ksjsui-w-full ksjsui-flex-col ksjsui-p-4","focus:ksjsui-outline-none","xs:ksjsui-max-w-[calc(theme(spacing.80)_+_theme(spacing.8))]"],e),...t}));_u.displayName=xu.displayName;const S8=Fe(["ksjsui-group","ksjsui-pointer-events-auto ksjsui-relative ksjsui-flex ksjsui-w-full ksjsui-items-center ksjsui-justify-between ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-border ksjsui-border-transparent ksjsui-bg-toast ksjsui-p-3 ksjsui-text-toast-foreground ksjsui-shadow-lg ksjsui-outline-ring ksjsui-transition-all","focus-visible:ksjsui-outline focus-visible:ksjsui-outline-2","data-[swipe=cancel]:ksjsui-translate-x-0","data-[swipe=end]:ksjsui-translate-x-[var(--radix-toast-swipe-end-x)]","data-[swipe=move]:ksjsui-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:ksjsui-transition-none","data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-slide-in-from-bottom-full","data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-80","data-[state=closed]:ksjsui-slide-out-to-bottom-full","[.light-mode_&]:focus:ksjsui-outline-light-mode-focus-fix"]),$u=i.forwardRef(({className:e,...t},n)=>l.jsx(Lu,{ref:n,className:$(S8(),e),...t}));$u.displayName=Lu.displayName;const M8=i.forwardRef(({className:e,...t},n)=>l.jsx(Nu,{ref:n,className:$(["ksjsui-inline-flex ksjsui-h-8 ksjsui-shrink-0 ksjsui-items-center ksjsui-justify-center ksjsui-rounded-lg ksjsui-border ksjsui-bg-transparent ksjsui-px-3 ksjsui-text-sm ksjsui-font-medium ksjsui-ring-offset-background ksjsui-transition-colors","focus:ksjsui-outline-none focus:ksjsui-ring-2 focus:ksjsui-ring-ring focus:ksjsui-ring-offset-2","disabled:ksjsui-pointer-events-none disabled:ksjsui-opacity-50"],e),...t}));M8.displayName=Nu.displayName;const Hu=i.forwardRef(({className:e,...t},n)=>l.jsx(Au,{ref:n,className:$(["ksjsui-text-current/50 ksjsui-self-start ksjsui-rounded-sm ksjsui-opacity-0 ksjsui-outline-ring ksjsui-transition-opacity","focus-visible:ksjsui-opacity-100 focus-visible:ksjsui-outline focus-visible:ksjsui-outline-2","group-hover:ksjsui-opacity-100","group-focus-visible:ksjsui-opacity-100","[.light-mode_&]:focus:ksjsui-outline-light-mode-focus-fix"],e),"toast-close":"",...t,children:l.jsx(Po,{})}));Hu.displayName=Au.displayName;const Vu=i.forwardRef(({className:e,...t},n)=>l.jsx(Iu,{ref:n,className:$("ksjsui-text-[15px]",e),...t}));Vu.displayName=Iu.displayName;const P8=()=>{const{toasts:e}=ju(),{toast:t}=w8();return l.jsxs(E8,{children:[e.map(function({id:n,className:o,title:r,description:s,action:c,icon:a,dismissButtonLabel:d,...u}){return l.jsxs($u,{...u,className:$("ksjsui-flex ksjsui-items-start ksjsui-gap-x-4",o),children:[a&&l.jsx("div",{className:"ksjsui-shrink-0",children:a}),l.jsx("div",{className:"ksjsui-grid ksjsui-grow ksjsui-gap-1",children:s&&l.jsx(Vu,{children:s})}),c,l.jsx(Hu,{"aria-label":d||t.dismissButtonLabel})]},n)}),l.jsx(_u,{})]})};var x8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ct=x8.reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...c}=o,a=s?re:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...c,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function L8(e,t){e&&xe.flushSync(()=>e.dispatchEvent(t))}var I8="DismissableLayer",Wr="dismissableLayer.update",N8="dismissableLayer.pointerDownOutside",A8="dismissableLayer.focusOutside",Du,Fu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ru=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...d}=e,u=i.useContext(Fu),[f,h]=i.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=i.useState({}),C=V(t,E=>h(E)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(g),y=f?p.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=y>=b,M=O8(E=>{const L=E.target,N=[...u.branches].some(T=>T.contains(L));!k||N||(r==null||r(E),c==null||c(E),E.defaultPrevented||a==null||a())},v),P=_8(E=>{const L=E.target;[...u.branches].some(T=>T.contains(L))||(s==null||s(E),c==null||c(E),E.defaultPrevented||a==null||a())},v);return It(E=>{y===u.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},v),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Du=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Zu(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Du)}},[f,v,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Zu())},[f,u]),i.useEffect(()=>{const E=()=>m({});return document.addEventListener(Wr,E),()=>document.removeEventListener(Wr,E)},[]),l.jsx(ct.div,{...d,ref:C,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:I(e.onFocusCapture,P.onFocusCapture),onBlurCapture:I(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,M.onPointerDownCapture)})});Ru.displayName=I8;var T8="DismissableLayerBranch",j8=i.forwardRef((e,t)=>{const n=i.useContext(Fu),o=i.useRef(null),r=V(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(ct.div,{...e,ref:r})});j8.displayName=T8;function O8(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let d=function(){Wu(N8,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=d,t.addEventListener("click",r.current,{once:!0})):d()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function _8(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Wu(A8,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Zu(){const e=new CustomEvent(Wr);document.dispatchEvent(e)}function Wu(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?L8(r,s):r.dispatchEvent(s)}var $8="Arrow",zu=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return l.jsx(ct.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});zu.displayName=$8;var H8=zu,zr="Popper",[Bu,Uu]=de(zr),[V8,Ku]=Bu(zr),Gu=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return l.jsx(V8,{scope:t,anchor:o,onAnchorChange:r,children:n})};Gu.displayName=zr;var Yu="PopperAnchor",Xu=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Ku(Yu,n),c=i.useRef(null),a=V(t,c);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:l.jsx(ct.div,{...r,ref:a})});Xu.displayName=Yu;var Br="PopperContent",[D8,F8]=Bu(Br),qu=i.forwardRef((e,t)=>{var F,Y,Q,G,X,q;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:C,...p}=e,g=Ku(Br,n),[b,y]=i.useState(null),w=V(t,ee=>y(ee)),[k,M]=i.useState(null),P=Mn(k),E=(P==null?void 0:P.width)??0,L=(P==null?void 0:P.height)??0,N=o+(s!=="center"?"-"+s:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(u)?u:[u],_=D.length>0,R={padding:T,boundary:D.filter(Z8),altBoundary:_},{refs:j,floatingStyles:W,placement:H,isPositioned:Z,middlewareData:O}=gn({strategy:"fixed",placement:N,whileElementsMounted:(...ee)=>hn(...ee,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Cn({mainAxis:r+L,alignmentAxis:c}),d&&bn({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?yn():void 0,...R}),d&&wn({...R}),kn({...R,apply:({elements:ee,rects:le,availableWidth:Se,availableHeight:Me})=>{const{width:Pe,height:lt}=le.reference,ue=ee.floating.style;ue.setProperty("--radix-popper-available-width",`${Se}px`),ue.setProperty("--radix-popper-available-height",`${Me}px`),ue.setProperty("--radix-popper-anchor-width",`${Pe}px`),ue.setProperty("--radix-popper-anchor-height",`${lt}px`)}}),k&&Sn({element:k,padding:a}),W8({arrowWidth:E,arrowHeight:L}),v&&En({strategy:"referenceHidden",...R})]}),[A,K]=ed(H),z=U(C);J(()=>{Z&&(z==null||z())},[Z,z]);const oe=(F=O.arrow)==null?void 0:F.x,ae=(Y=O.arrow)==null?void 0:Y.y,se=((Q=O.arrow)==null?void 0:Q.centerOffset)!==0,[he,ce]=i.useState();return J(()=>{b&&ce(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:Z?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(G=O.transformOrigin)==null?void 0:G.x,(X=O.transformOrigin)==null?void 0:X.y].join(" "),...((q=O.hide)==null?void 0:q.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(D8,{scope:n,placedSide:A,onArrowChange:M,arrowX:oe,arrowY:ae,shouldHideArrow:se,children:l.jsx(ct.div,{"data-side":A,"data-align":K,...p,ref:w,style:{...p.style,animation:Z?void 0:"none"}})})})});qu.displayName=Br;var Qu="PopperArrow",R8={top:"bottom",right:"left",bottom:"top",left:"right"},Ju=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=F8(Qu,o),c=R8[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(H8,{...r,ref:n,style:{...r.style,display:"block"}})})});Ju.displayName=Qu;function Z8(e){return e!==null}var W8=e=>({name:"transformOrigin",options:e,fn(t){var g,b,y;const{placement:n,rects:o,middlewareData:r}=t,c=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[u,f]=ed(n),h={start:"0%",center:"50%",end:"100%"}[f],v=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,m=(((y=r.arrow)==null?void 0:y.y)??0)+d/2;let C="",p="";return u==="bottom"?(C=c?h:`${v}px`,p=`${-d}px`):u==="top"?(C=c?h:`${v}px`,p=`${o.floating.height+d}px`):u==="right"?(C=`${-d}px`,p=c?h:`${m}px`):u==="left"&&(C=`${o.floating.width+d}px`,p=c?h:`${m}px`),{data:{x:C,y:p}}}});function ed(e){const[t,n="center"]=e.split("-");return[t,n]}var z8=Gu,B8=Xu,U8=qu,K8=Ju;function G8(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var td=e=>{const{present:t,children:n}=e,o=Y8(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=V(o.ref,X8(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};td.displayName="Presence";function Y8(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[a,d]=G8(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Gn(o.current);s.current=a==="mounted"?u:"none"},[a]),J(()=>{const u=o.current,f=r.current;if(f!==e){const v=s.current,m=Gn(u);e?d("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&v!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),J(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const p=Gn(o.current).includes(m.animationName);if(m.target===t&&p&&(d("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=m=>{m.target===t&&(s.current=Gn(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function Gn(e){return(e==null?void 0:e.animationName)||"none"}function X8(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var q8="VisuallyHidden",nd=i.forwardRef((e,t)=>l.jsx(ct.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));nd.displayName=q8;var Q8=nd,[Yn,mm]=de("Tooltip",[Uu]),Xn=Uu(),od="TooltipProvider",J8=700,Ur="tooltip.open",[ev,Kr]=Yn(od),rd=e=>{const{__scopeTooltip:t,delayDuration:n=J8,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,[c,a]=i.useState(!0),d=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),l.jsx(ev,{scope:t,isOpenDelayed:c,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(f=>{d.current=f},[]),disableHoverableContent:r,children:s})};rd.displayName=od;var qn="Tooltip",[tv,Qn]=Yn(qn),sd=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:s,disableHoverableContent:c,delayDuration:a}=e,d=Kr(qn,e.__scopeTooltip),u=Xn(t),[f,h]=i.useState(null),v=ge(),m=i.useRef(0),C=c??d.disableHoverableContent,p=a??d.delayDuration,g=i.useRef(!1),[b=!1,y]=_e({prop:o,defaultProp:r,onChange:E=>{E?(d.onOpen(),document.dispatchEvent(new CustomEvent(Ur))):d.onClose(),s==null||s(E)}}),w=i.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),k=i.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,y(!0)},[y]),M=i.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),P=i.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,y(!0),m.current=0},p)},[p,y]);return i.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),l.jsx(z8,{...u,children:l.jsx(tv,{scope:t,contentId:v,open:b,stateAttribute:w,trigger:f,onTriggerChange:h,onTriggerEnter:i.useCallback(()=>{d.isOpenDelayed?P():k()},[d.isOpenDelayed,P,k]),onTriggerLeave:i.useCallback(()=>{C?M():(window.clearTimeout(m.current),m.current=0)},[M,C]),onOpen:k,onClose:M,disableHoverableContent:C,children:n})})};sd.displayName=qn;var Gr="TooltipTrigger",id=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Qn(Gr,n),s=Kr(Gr,n),c=Xn(n),a=i.useRef(null),d=V(t,a,r.onTriggerChange),u=i.useRef(!1),f=i.useRef(!1),h=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),l.jsx(B8,{asChild:!0,...c,children:l.jsx(ct.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:d,onPointerMove:I(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:I(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:I(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:I(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:I(e.onBlur,r.onClose),onClick:I(e.onClick,r.onClose)})})});id.displayName=Gr;var nv="TooltipPortal",[gm,ov]=Yn(nv,{forceMount:void 0}),Mt="TooltipContent",ad=i.forwardRef((e,t)=>{const n=ov(Mt,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,c=Qn(Mt,e.__scopeTooltip);return l.jsx(td,{present:o||c.open,children:c.disableHoverableContent?l.jsx(cd,{side:r,...s,ref:t}):l.jsx(rv,{side:r,...s,ref:t})})}),rv=i.forwardRef((e,t)=>{const n=Qn(Mt,e.__scopeTooltip),o=Kr(Mt,e.__scopeTooltip),r=i.useRef(null),s=V(t,r),[c,a]=i.useState(null),{trigger:d,onClose:u}=n,f=r.current,{onPointerInTransitChange:h}=o,v=i.useCallback(()=>{a(null),h(!1)},[h]),m=i.useCallback((C,p)=>{const g=C.currentTarget,b={x:C.clientX,y:C.clientY},y=av(b,g.getBoundingClientRect()),w=cv(b,y),k=lv(p.getBoundingClientRect()),M=dv([...w,...k]);a(M),h(!0)},[h]);return i.useEffect(()=>()=>v(),[v]),i.useEffect(()=>{if(d&&f){const C=g=>m(g,f),p=g=>m(g,d);return d.addEventListener("pointerleave",C),f.addEventListener("pointerleave",p),()=>{d.removeEventListener("pointerleave",C),f.removeEventListener("pointerleave",p)}}},[d,f,m,v]),i.useEffect(()=>{if(c){const C=p=>{const g=p.target,b={x:p.clientX,y:p.clientY},y=(d==null?void 0:d.contains(g))||(f==null?void 0:f.contains(g)),w=!uv(b,c);y?v():w&&(v(),u())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[d,f,c,u,v]),l.jsx(cd,{...e,ref:s})}),[sv,iv]=Yn(qn,{isInside:!1}),cd=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:c,...a}=e,d=Qn(Mt,n),u=Xn(n),{onClose:f}=d;return i.useEffect(()=>(document.addEventListener(Ur,f),()=>document.removeEventListener(Ur,f)),[f]),i.useEffect(()=>{if(d.trigger){const h=v=>{const m=v.target;m!=null&&m.contains(d.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[d.trigger,f]),l.jsx(Ru,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:l.jsxs(U8,{"data-state":d.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:[l.jsx(eo,{children:o}),l.jsx(sv,{scope:n,isInside:!0,children:l.jsx(Q8,{id:d.contentId,role:"tooltip",children:r||o})})]})})});ad.displayName=Mt;var ld="TooltipArrow",ud=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Xn(n);return iv(ld,n).isInside?null:l.jsx(K8,{...r,...o,ref:t})});ud.displayName=ld;function av(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function cv(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function lv(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function uv(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const a=t[s].x,d=t[s].y,u=t[c].x,f=t[c].y;d>o!=f>o&&n<(u-a)*(o-d)/(f-d)+a&&(r=!r)}return r}function dv(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),fv(t)}function fv(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],c=t[t.length-2];if((s.x-c.x)*(r.y-c.y)>=(s.y-c.y)*(r.x-c.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(r.y-c.y)>=(s.y-c.y)*(r.x-c.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var pv=rd,hv=sd,vv=id,dd=ad,mv=ud;const gv=({disableHoverableContent:e=!0,...t})=>l.jsx(pv,{disableHoverableContent:e,...t}),Cv=hv,bv=vv,fd=i.forwardRef(({children:e,className:t,collisionPadding:n={left:12,right:12},side:o="bottom",sideOffset:r=4,...s},c)=>l.jsxs(dd,{ref:c,sideOffset:r,side:o,collisionPadding:n,className:$(["ksjsui-z-50 ksjsui-max-w-[var(--radix-popper-available-width)] ksjsui-origin-[var(--radix-tooltip-content-transform-origin)] ksjsui-rounded ksjsui-bg-popover-foreground ksjsui-px-3 ksjsui-py-2 ksjsui-text-[15px] ksjsui-text-popover ksjsui-shadow-md ksjsui-will-change-transform","sm:ksjsui-max-w-prose","motion-safe:ksjsui-duration-300 motion-safe:ksjsui-animate-in motion-safe:ksjsui-fade-in-0","motion-safe:data-[state=closed]:ksjsui-animate-out motion-safe:data-[state=closed]:ksjsui-fade-out-0","forced-colors:ksjsui-border forced-colors:ksjsui-border-canvas-text"],t),...s,children:[e,l.jsx(mv,{className:$(["ksjsui-z-50 -ksjsui-translate-y-1/2 ksjsui-rotate-45 ksjsui-rounded-br-[2px] ksjsui-border-b ksjsui-border-r ksjsui-border-popover-foreground ksjsui-bg-popover-foreground ksjsui-fill-popover-foreground","forced-colors:ksjsui-translate-y-[calc(-50%_+_0.75px)] forced-colors:ksjsui-border-canvas-text forced-colors:ksjsui-bg-canvas forced-colors:ksjsui-fill-canvas forced-colors:ksjsui-shadow-none"]),style:{width:10,height:10}})]}));fd.displayName=dd.displayName;const Yr=["px",0,.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],yv=[...Yr,"auto"];function wv(){return Yr.reduce((e,t)=>(e.gap[t]=`ksjsui-gap-${t}`,e.gapColumn[t]=`ksjsui-gap-x-${t}`,e.gapRow[t]=`ksjsui-gap-y-${t}`,e),{gap:{},gapColumn:{},gapRow:{}})}function pd(){return yv.reduce((e,t)=>(e.m[t]=`ksjsui-m-${t}`,e.mb[t]=`ksjsui-mb-${t}`,e.me[t]=`ksjsui-me-${t}`,e.ms[t]=`ksjsui-ms-${t}`,e.mt[t]=`ksjsui-mt-${t}`,e.mx[t]=`ksjsui-mx-${t}`,e.my[t]=`ksjsui-my-${t}`,e),{m:{},mb:{},me:{},ms:{},mt:{},mx:{},my:{}})}function hd(){return Yr.reduce((e,t)=>(e.p[t]=`ksjsui-p-${t}`,e.pb[t]=`ksjsui-pb-${t}`,e.pe[t]=`ksjsui-pe-${t}`,e.ps[t]=`ksjsui-ps-${t}`,e.pt[t]=`ksjsui-pt-${t}`,e.px[t]=`ksjsui-px-${t}`,e.py[t]=`ksjsui-py-${t}`,e),{p:{},pb:{},pe:{},ps:{},pt:{},px:{},py:{}})}const kv=Fe("",{variants:{display:{block:"ksjsui-block","inline-block":"ksjsui-inline-block",none:"ksjsui-hidden"},...pd(),...hd()},defaultVariants:{display:"block"}}),vd=i.forwardRef(({as:e="div",asChild:t,className:n,display:o,m:r,mb:s,me:c,ms:a,mt:d,mx:u,my:f,p:h,pb:v,pe:m,ps:C,pt:p,px:g,py:b,...y},w)=>{const k=t?re:e;return l.jsx(k,{className:$(kv({display:o,m:r,mb:s,me:c,ms:a,mt:d,mx:u,my:f,p:h,pb:v,pe:m,ps:C,pt:p,px:g,py:b,className:n})),ref:w,...y})});vd.displayName="Box";const Ev={align:{baseline:"ksjsui-items-baseline",center:"ksjsui-items-center",end:"ksjsui-items-end",start:"ksjsui-items-start",stretch:"ksjsui-items-stretch"},direction:{"column-reverse":"ksjsui-flex-col-reverse","row-reverse":"ksjsui-flex-row-reverse",column:"ksjsui-flex-col",row:"ksjsui-flex-row"},display:{"inline-flex":"ksjsui-inline-flex",flex:"ksjsui-flex",none:"ksjsui-hidden"},...wv(),grow:{0:"ksjsui-grow-0",1:"ksjsui-grow"},justify:{around:"ksjsui-justify-around",baseline:"ksjsui-justify-baseline",between:"ksjsui-justify-between",center:"ksjsui-justify-center",end:"ksjsui-justify-end",evenly:"ksjsui-justify-evenly",normal:"ksjsui-justify-normal",start:"ksjsui-justify-start",stretch:"ksjsui-justify-stretch"},...pd(),...hd(),self:{auto:"ksjsui-self-auto",baseline:"ksjsui-self-baseline",center:"ksjsui-self-center",end:"ksjsui-self-end",start:"ksjsui-self-start",stretch:"ksjsui-self-stretch"},shrink:{0:"ksjsui-shrink-0",1:"ksjsui-shrink"},wrap:{nowrap:"ksjsui-flex-nowrap",reverse:"ksjsui-flex-wrap-reverse",wrap:"ksjsui-flex-wrap"}},Sv=Fe("ksjsui-inline-flex",{variants:{...Ev},defaultVariants:{display:"flex",justify:"start"}}),md=i.forwardRef(({align:e,as:t="div",asChild:n,className:o,display:r,direction:s,gap:c,gapColumn:a,gapRow:d,grow:u,justify:f,m:h,mb:v,me:m,ms:C,mt:p,mx:g,my:b,p:y,pb:w,pe:k,ps:M,pt:P,px:E,py:L,self:N,shrink:T,wrap:D,..._},R)=>{const j=n?re:t;return l.jsx(j,{className:$(Sv({align:e,direction:s,display:r,gap:c,gapColumn:a,gapRow:d,grow:u,justify:f,m:h,mb:v,me:m,ms:C,mt:p,mx:g,my:b,p:y,pb:w,pe:k,ps:M,pt:P,px:E,py:L,self:N,shrink:T,wrap:D,className:o})),ref:R,..._})});md.displayName="Flex",S.AccessibilityIcon=_2,S.AppWindowGlobeIcon=D2,S.AppWindowPromptTopRightIcon=H2,S.AppWindowTerminalIcon=F2,S.ArrowDownIcon=gi,S.ArrowLeftIcon=R2,S.Avatar=ws,S.AvatarFallback=Es,S.AvatarImage=ks,S.BadgeUserIcon=Z2,S.BirthCertificateIcon=W2,S.Box=vd,S.Button=ao,S.CheckIcon=Eo,S.ChevronDownIcon=z2,S.ChevronLeftIcon=So,S.ChevronRightIcon=Mo,S.ChevronUpIcon=B2,S.CircleAlertIcon=K2,S.CircleAlertOutlineIcon=U2,S.CircleCheckIcon=G2,S.CircleHelpIcon=X2,S.CircleHelpOutlineIcon=Y2,S.CircleInfoOutlineIcon=q2,S.CircleLockIcon=J2,S.CirclePlusIcon=ep,S.CircleSegmentTopRightIcon=np,S.CircleUserIcon=sp,S.CircleUserOffIcon=rp,S.CircleXIcon=ip,S.ClipboardIcon=up,S.ClipboardXIcon=cp,S.CopyIcon=dp,S.CreditCardIcon=fp,S.DatabaseIcon=hp,S.DatabaseMapPinIcon=pp,S.Dialog=X0,S.DialogClose=Q0,S.DialogContent=yi,S.DialogDescription=Si,S.DialogFooter=ki,S.DialogHeader=wi,S.DialogOverlay=xo,S.DialogPortal=bi,S.DialogTitle=Ei,S.DialogTrigger=q0,S.DiceIcon=yp,S.DiceOutlineIcon=mp,S.DiceWhiteIcon=Cp,S.DirectionProvider=e3,S.DotIcon=wp,S.DotOutlineIcon=kp,S.DownloadIcon=Ep,S.DropdownMenu=V5,S.DropdownMenuCheckboxItem=xc,S.DropdownMenuContent=Mc,S.DropdownMenuGroup=kc,S.DropdownMenuItem=Pc,S.DropdownMenuLabel=Ic,S.DropdownMenuPortal=F5,S.DropdownMenuRadioGroup=Z5,S.DropdownMenuRadioItem=Lc,S.DropdownMenuSeparator=Nc,S.DropdownMenuShortcut=Ac,S.DropdownMenuSub=R5,S.DropdownMenuSubContent=Sc,S.DropdownMenuSubTrigger=Ec,S.DropdownMenuTrigger=D5,S.EarthIcon=Sp,S.EllipsisHorizontalIcon=Mp,S.EllipsisVerticalIcon=Pp,S.EyeIcon=xp,S.EyeOffIcon=Lp,S.FileCogIcon=Ip,S.FileLockIcon=Np,S.FingerprintIcon=Ap,S.Flex=md,S.FolderIcon=Tp,S.FolderShareIcon=jp,S.GlobeIcon=Op,S.HospitalIcon=_p,S.IconButton=Tc,S.IdCardIcon=$p,S.KeeperCoinIcon=Dp,S.KeeperIcon=Hp,S.KeeperOffIcon=Fp,S.KeeperSquareInputIcon=Zp,S.KeyUserIcon=zp,S.KeyboardIcon=Bp,S.LandmarkIcon=Up,S.LightbulbIcon=Gp,S.List=jc,S.ListItem=Oc,S.ListItemArrow=_c,S.ListItemButton=$c,S.ListItemText=Hc,S.ListLabel=Vc,S.ListSeparator=Dc,S.Loader=io,S.LockIcon=Xp,S.LockOutlineIcon=Yp,S.LogInIcon=qp,S.LogOutIcon=Qp,S.MapPinIcon=Jp,S.MembershipCardIcon=e0,S.MessageSquareInfoIcon=t0,S.MessageSquareMoreIcon=n0,S.MessageSquarePenLineIcon=o0,S.MonitorLayoutGridIcon=r0,S.NetworkIcon=s0,S.PaletteIcon=i0,S.PanelLandscapeIcon=a0,S.PanelPortraitIcon=c0,S.PanelsTopLeftIcon=l0,S.PaperclipIcon=u0,S.PcCaseIcon=d0,S.PencilIcon=f0,S.Popover=q9,S.PopoverContent=xl,S.PopoverTrigger=Q9,S.PowerIcon=h0,S.RadioIcon=v0,S.RadioSelectedIcon=Ci,S.RefreshCcwIcon=m0,S.ReplyIcon=g0,S.RotateCwIcon=C0,S.SaveIcon=b0,S.ScanCameraIcon=y0,S.ScrollArea=mr,S.ScrollAreaViewport=gr,S.ScrollBar=Cr,S.SearchIcon=w0,S.Select=y6,S.SelectContent=U1,S.SelectItem=K1,S.SelectTrigger=B1,S.SelectValue=w6,S.Separator=q1,S.ServerIcon=k0,S.SettingsIcon=E0,S.ShapesIcon=M0,S.ShieldQuestionIcon=P0,S.ShieldSecurityIcon=x0,S.SkipForwardIcon=L0,S.SlidersHorizontalIcon=N0,S.SocialSecurityCardIcon=A0,S.SquareArrowOutUpRightIcon=j0,S.SquareCheckIcon=_0,S.SquareGlobeLineIcon=$0,S.SquareIcon=T0,S.SquareImageIcon=H0,S.SquareInputIcon=V0,S.SquareKeyUserIcon=D0,S.SquareUserIcon=F0,S.StarIcon=Z0,S.StarOutlineIcon=R0,S.StringsProvider=y8,S.Switch=ru,S.TimerIcon=W0,S.Toast=P8,S.Tooltip=Cv,S.TooltipContent=fd,S.TooltipProvider=gv,S.TooltipTrigger=bv,S.TrashIcon=B0,S.TriangleAlertIcon=U0,S.UsersIcon=K0,S.VaultIcon=Y0,S.XIcon=Po,S.configureStrings=k8,S.useToast=ju,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});