randmarcomps 1.0.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.
@@ -0,0 +1,119 @@
1
+ (function(N,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-router-dom"],u):(N=typeof globalThis<"u"?globalThis:N||self,u(N.randmarcomps={},N.jsxRuntime,N.React,N.ReactDOM,N["react-router-dom"]))})(this,function(N,u,X,hr,tt){"use strict";function gr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=gr(X),qt=gr(hr);var Ts=Object.defineProperty,Ps=Object.defineProperties,Ns=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,br=(e,t,n)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,As=(e,t)=>{for(var n in t||(t={}))mr.call(t,n)&&br(e,n,t[n]);if(ft)for(var n of ft(t))vr.call(t,n)&&br(e,n,t[n]);return e},Os=(e,t)=>Ps(e,Ns(t)),Ms=(e,t)=>{var n={};for(var r in e)mr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ft)for(var r of ft(e))t.indexOf(r)<0&&vr.call(e,r)&&(n[r]=e[r]);return n};function ks(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function _s(e){let t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}var Is=18,yr=40,Ds=`${yr}px`,Ls=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Rs({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,a]=i.useState(!1),[s,c]=i.useState(!1),[d,l]=i.useState(!1),f=i.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&s,[o,s,n]),h=i.useCallback(()=>{let v=e.current,g=t.current;if(!v||!g||d||n==="none")return;let b=v,p=b.getBoundingClientRect().left+b.offsetWidth,m=b.getBoundingClientRect().top+b.offsetHeight/2,y=p-Is,w=m;document.querySelectorAll(Ls).length===0&&document.elementFromPoint(y,w)===v||(a(!0),l(!0))},[e,t,d,n]);return i.useEffect(()=>{let v=e.current;if(!v||n==="none")return;function g(){let p=window.innerWidth-v.getBoundingClientRect().right;c(p>=yr)}g();let b=setInterval(g,1e3);return()=>{clearInterval(b)}},[e,n]),i.useEffect(()=>{let v=r||document.activeElement===t.current;if(n==="none"||!v)return;let g=setTimeout(h,0),b=setTimeout(h,2e3),p=setTimeout(h,5e3),m=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(g),clearTimeout(b),clearTimeout(p),clearTimeout(m)}},[t,r,n,h]),{hasPWMBadge:o,willPushPWMBadge:f,PWM_BADGE_SPACE_WIDTH:Ds}}var wr=i.createContext({}),xr=i.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:a,textAlign:s="left",pattern:c,placeholder:d,inputMode:l="numeric",onComplete:f,pushPasswordManagerStrategy:h="increase-width",pasteTransformer:v,containerClassName:g,noScriptCSSFallback:b=Fs,render:p,children:m}=n,y=Ms(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,x,E,C,S;let[T,$]=i.useState(typeof y.defaultValue=="string"?y.defaultValue:""),I=r??T,z=_s(I),H=i.useCallback(D=>{o==null||o(D),$(D)},[o]),W=i.useMemo(()=>c?typeof c=="string"?new RegExp(c):c:null,[c]),_=i.useRef(null),P=i.useRef(null),B=i.useRef({value:I,onChange:H,isIOS:typeof window<"u"&&((x=(w=window==null?void 0:window.CSS)==null?void 0:w.supports)==null?void 0:x.call(w,"-webkit-touch-callout","none"))}),M=i.useRef({prev:[(E=_.current)==null?void 0:E.selectionStart,(C=_.current)==null?void 0:C.selectionEnd,(S=_.current)==null?void 0:S.selectionDirection]});i.useImperativeHandle(t,()=>_.current,[]),i.useEffect(()=>{let D=_.current,F=P.current;if(!D||!F)return;B.current.value!==D.value&&B.current.onChange(D.value),M.current.prev=[D.selectionStart,D.selectionEnd,D.selectionDirection];function Q(){if(document.activeElement!==D){ne(null),te(null);return}let G=D.selectionStart,ce=D.selectionEnd,Xt=D.selectionDirection,he=D.maxLength,ze=D.value,Se=M.current.prev,Me=-1,ke=-1,We;if(ze.length!==0&&G!==null&&ce!==null){let Pu=G===ce,Nu=G===ze.length&&ze.length<he;if(Pu&&!Nu){let Be=G;if(Be===0)Me=0,ke=1,We="forward";else if(Be===he)Me=Be-1,ke=Be,We="backward";else if(he>1&&ze.length>1){let pr=0;if(Se[0]!==null&&Se[1]!==null){We=Be<Se[1]?"backward":"forward";let Au=Se[0]===Se[1]&&Se[0]<he;We==="backward"&&!Au&&(pr=-1)}Me=pr+Be,ke=pr+Be+1}}Me!==-1&&ke!==-1&&Me!==ke&&_.current.setSelectionRange(Me,ke,We)}let Es=Me!==-1?Me:G,Cs=ke!==-1?ke:ce,Tu=We??Xt;ne(Es),te(Cs),M.current.prev=[Es,Cs,Tu]}if(document.addEventListener("selectionchange",Q,{capture:!0}),Q(),document.activeElement===D&&Y(!0),!document.getElementById("input-otp-style")){let G=document.createElement("style");if(G.id="input-otp-style",document.head.appendChild(G),G.sheet){let ce="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";nt(G.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),nt(G.sheet,`[data-input-otp]:autofill { ${ce} }`),nt(G.sheet,`[data-input-otp]:-webkit-autofill { ${ce} }`),nt(G.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),nt(G.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let re=()=>{F&&F.style.setProperty("--root-height",`${D.clientHeight}px`)};re();let oe=new ResizeObserver(re);return oe.observe(D),()=>{document.removeEventListener("selectionchange",Q,{capture:!0}),oe.disconnect()}},[]);let[j,k]=i.useState(!1),[R,Y]=i.useState(!1),[Z,ne]=i.useState(null),[J,te]=i.useState(null);i.useEffect(()=>{ks(()=>{var D,F,Q,re;(D=_.current)==null||D.dispatchEvent(new Event("input"));let oe=(F=_.current)==null?void 0:F.selectionStart,G=(Q=_.current)==null?void 0:Q.selectionEnd,ce=(re=_.current)==null?void 0:re.selectionDirection;oe!==null&&G!==null&&(ne(oe),te(G),M.current.prev=[oe,G,ce])})},[I,R]),i.useEffect(()=>{z!==void 0&&I!==z&&z.length<a&&I.length===a&&(f==null||f(I))},[a,f,z,I]);let ie=Rs({containerRef:P,inputRef:_,pushPasswordManagerStrategy:h,isFocused:R}),Oe=i.useCallback(D=>{let F=D.currentTarget.value.slice(0,a);if(F.length>0&&W&&!W.test(F)){D.preventDefault();return}typeof z=="string"&&F.length<z.length&&document.dispatchEvent(new Event("selectionchange")),H(F)},[a,H,z,W]),ye=i.useCallback(()=>{var D;if(_.current){let F=Math.min(_.current.value.length,a-1),Q=_.current.value.length;(D=_.current)==null||D.setSelectionRange(F,Q),ne(F),te(Q)}Y(!0)},[a]),dt=i.useCallback(D=>{var F,Q;let re=_.current;if(!v&&(!B.current.isIOS||!D.clipboardData||!re))return;let oe=D.clipboardData.getData("text/plain"),G=v?v(oe):oe;D.preventDefault();let ce=(F=_.current)==null?void 0:F.selectionStart,Xt=(Q=_.current)==null?void 0:Q.selectionEnd,he=(ce!==Xt?I.slice(0,ce)+G+I.slice(Xt):I.slice(0,ce)+G+I.slice(ce)).slice(0,a);if(he.length>0&&W&&!W.test(he))return;re.value=he,H(he);let ze=Math.min(he.length,a-1),Se=he.length;re.setSelectionRange(ze,Se),ne(ze),te(Se)},[a,H,W,I]),Kt=i.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),ut=i.useMemo(()=>({position:"absolute",inset:0,width:ie.willPushPWMBadge?`calc(100% + ${ie.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ie.willPushPWMBadge?`inset(0 ${ie.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:s,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[ie.PWM_BADGE_SPACE_WIDTH,ie.willPushPWMBadge,s]),Yt=i.useMemo(()=>i.createElement("input",Os(As({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":I.length===0||void 0,"data-input-otp-mss":Z,"data-input-otp-mse":J,inputMode:l,pattern:W==null?void 0:W.source,"aria-placeholder":d,style:ut,maxLength:a,value:I,ref:_,onPaste:D=>{var F;dt(D),(F=y.onPaste)==null||F.call(y,D)},onChange:Oe,onMouseOver:D=>{var F;k(!0),(F=y.onMouseOver)==null||F.call(y,D)},onMouseLeave:D=>{var F;k(!1),(F=y.onMouseLeave)==null||F.call(y,D)},onFocus:D=>{var F;ye(),(F=y.onFocus)==null||F.call(y,D)},onBlur:D=>{var F;Y(!1),(F=y.onBlur)==null||F.call(y,D)}})),[Oe,ye,dt,l,ut,a,J,Z,y,W==null?void 0:W.source,I]),et=i.useMemo(()=>({slots:Array.from({length:a}).map((D,F)=>{var Q;let re=R&&Z!==null&&J!==null&&(Z===J&&F===Z||F>=Z&&F<J),oe=I[F]!==void 0?I[F]:null,G=I[0]!==void 0?null:(Q=d==null?void 0:d[F])!=null?Q:null;return{char:oe,placeholderChar:G,isActive:re,hasFakeCaret:re&&oe===null}}),isFocused:R,isHovering:!y.disabled&&j}),[R,j,a,J,Z,y.disabled,I]),$e=i.useMemo(()=>p?p(et):i.createElement(wr.Provider,{value:et},m),[m,et,p]);return i.createElement(i.Fragment,null,b!==null&&i.createElement("noscript",null,i.createElement("style",null,b)),i.createElement("div",{ref:P,"data-input-otp-container":!0,style:Kt,className:g},$e,i.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Yt)))});xr.displayName="Input";function nt(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var Fs=`
2
+ [data-input-otp] {
3
+ --nojs-bg: white !important;
4
+ --nojs-fg: black !important;
5
+
6
+ background-color: var(--nojs-bg) !important;
7
+ color: var(--nojs-fg) !important;
8
+ caret-color: var(--nojs-fg) !important;
9
+ letter-spacing: .25em !important;
10
+ text-align: center !important;
11
+ border: 1px solid var(--nojs-fg) !important;
12
+ border-radius: 4px !important;
13
+ width: 100% !important;
14
+ }
15
+ @media (prefers-color-scheme: dark) {
16
+ [data-input-otp] {
17
+ --nojs-bg: black !important;
18
+ --nojs-fg: white !important;
19
+ }
20
+ }`;/**
21
+ * @license lucide-react v0.479.0 - ISC
22
+ *
23
+ * This source code is licensed under the ISC license.
24
+ * See the LICENSE file in the root directory of this source tree.
25
+ */const $s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
26
+ * @license lucide-react v0.479.0 - ISC
27
+ *
28
+ * This source code is licensed under the ISC license.
29
+ * See the LICENSE file in the root directory of this source tree.
30
+ */var zs={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"};/**
31
+ * @license lucide-react v0.479.0 - ISC
32
+ *
33
+ * This source code is licensed under the ISC license.
34
+ * See the LICENSE file in the root directory of this source tree.
35
+ */const Ws=X.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...c},d)=>X.createElement("svg",{ref:d,...zs,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Sr("lucide",o),...c},[...s.map(([l,f])=>X.createElement(l,f)),...Array.isArray(a)?a:[a]]));/**
36
+ * @license lucide-react v0.479.0 - ISC
37
+ *
38
+ * This source code is licensed under the ISC license.
39
+ * See the LICENSE file in the root directory of this source tree.
40
+ */const _e=(e,t)=>{const n=X.forwardRef(({className:r,...o},a)=>X.createElement(Ws,{ref:a,iconNode:t,className:Sr(`lucide-${$s(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
41
+ * @license lucide-react v0.479.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const Bs=_e("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
46
+ * @license lucide-react v0.479.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 Vs=_e("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
51
+ * @license lucide-react v0.479.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
+ */const Hs=_e("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
56
+ * @license lucide-react v0.479.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 js=_e("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
61
+ * @license lucide-react v0.479.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 Gs=_e("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
66
+ * @license lucide-react v0.479.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 Us=_e("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
71
+ * @license lucide-react v0.479.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 Er=_e("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Cr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Cr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Tr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Cr(e))&&(r&&(r+=" "),r+=t);return r}const Zt="-",Ks=e=>{const t=Xs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const c=s.split(Zt);return c[0]===""&&c.length!==1&&c.shift(),Pr(c,t)||Ys(s)},getConflictingClassGroupIds:(s,c)=>{const d=n[s]||[];return c&&r[s]?[...d,...r[s]]:d}}},Pr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Pr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Zt);return(s=t.validators.find(({validator:c})=>c(a)))==null?void 0:s.classGroupId},Nr=/^\[(.+)\]$/,Ys=e=>{if(Nr.test(e)){const t=Nr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Xs=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Qt(n[o],r,o,t);return r},Qt=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Ar(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(qs(o)){Qt(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{Qt(s,Ar(t,a),n,r)})})},Ar=(e,t)=>{let n=e;return t.split(Zt).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},qs=e=>e.isThemeGetter,Zs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},Jt="!",en=":",Qs=en.length,Js=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,c=0,d=0,l;for(let b=0;b<o.length;b++){let p=o[b];if(s===0&&c===0){if(p===en){a.push(o.slice(d,b)),d=b+Qs;continue}if(p==="/"){l=b;continue}}p==="["?s++:p==="]"?s--:p==="("?c++:p===")"&&c--}const f=a.length===0?o:o.substring(d),h=ei(f),v=h!==f,g=l&&l>d?l-d:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:h,maybePostfixModifierPosition:g}};if(t){const o=t+en,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},ei=e=>e.endsWith(Jt)?e.substring(0,e.length-1):e.startsWith(Jt)?e.substring(1):e,ti=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},ni=e=>({cache:Zs(e.cacheSize),parseClassName:Js(e),sortModifiers:ti(e),...Ks(e)}),ri=/\s+/,oi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],c=e.trim().split(ri);let d="";for(let l=c.length-1;l>=0;l-=1){const f=c[l],{isExternal:h,modifiers:v,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:p}=n(f);if(h){d=f+(d.length>0?" "+d:d);continue}let m=!!p,y=r(m?b.substring(0,p):b);if(!y){if(!m){d=f+(d.length>0?" "+d:d);continue}if(y=r(b),!y){d=f+(d.length>0?" "+d:d);continue}m=!1}const w=a(v).join(":"),x=g?w+Jt:w,E=x+y;if(s.includes(E))continue;s.push(E);const C=o(y,m);for(let S=0;S<C.length;++S){const T=C[S];s.push(x+T)}d=f+(d.length>0?" "+d:d)}return d};function ai(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Or(t))&&(r&&(r+=" "),r+=n);return r}const Or=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Or(e[r]))&&(n&&(n+=" "),n+=t);return n};function si(e,...t){let n,r,o,a=s;function s(d){const l=t.reduce((f,h)=>h(f),e());return n=ni(l),r=n.cache.get,o=n.cache.set,a=c,c(d)}function c(d){const l=r(d);if(l)return l;const f=oi(d,n);return o(d,f),f}return function(){return a(ai.apply(null,arguments))}}const q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Mr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ii=/^\d+\/\d+$/,ci=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,li=/\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$/,di=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ui=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>ii.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>!!e&&Number.isInteger(Number(e)),_r=e=>e.endsWith("%")&&V(e.slice(0,-1)),Ee=e=>ci.test(e),pi=()=>!0,hi=e=>li.test(e)&&!di.test(e),tn=()=>!1,gi=e=>ui.test(e),mi=e=>fi.test(e),vi=e=>!A(e)&&!O(e),bi=e=>He(e,Lr,tn),A=e=>Mr.test(e),De=e=>He(e,Rr,hi),nn=e=>He(e,Oi,V),yi=e=>He(e,Ir,tn),wi=e=>He(e,Dr,mi),xi=e=>He(e,tn,gi),O=e=>kr.test(e),pt=e=>je(e,Rr),Si=e=>je(e,Mi),Ei=e=>je(e,Ir),Ci=e=>je(e,Lr),Ti=e=>je(e,Dr),Pi=e=>je(e,ki,!0),He=(e,t,n)=>{const r=Mr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},je=(e,t,n=!1)=>{const r=kr.exec(e);return r?r[1]?t(r[1]):n:!1},Ir=e=>e==="position",Ni=new Set(["image","url"]),Dr=e=>Ni.has(e),Ai=new Set(["length","size","percentage"]),Lr=e=>Ai.has(e),Rr=e=>e==="length",Oi=e=>e==="number",Mi=e=>e==="family-name",ki=e=>e==="shadow",_i=si(()=>{const e=q("color"),t=q("font"),n=q("text"),r=q("font-weight"),o=q("tracking"),a=q("leading"),s=q("breakpoint"),c=q("container"),d=q("spacing"),l=q("radius"),f=q("shadow"),h=q("inset-shadow"),v=q("drop-shadow"),g=q("blur"),b=q("perspective"),p=q("aspect"),m=q("ease"),y=q("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],S=()=>[O,A,d],T=()=>[Ve,"full","auto",...S()],$=()=>[Ie,"none","subgrid",O,A],I=()=>["auto",{span:["full",Ie,O,A]},O,A],z=()=>[Ie,"auto",O,A],H=()=>["auto","min","max","fr",O,A],W=()=>["start","end","center","between","around","evenly","stretch","baseline"],_=()=>["start","end","center","stretch"],P=()=>["auto",...S()],B=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],M=()=>[e,O,A],j=()=>[_r,De],k=()=>["","none","full",l,O,A],R=()=>["",V,pt,De],Y=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>["","none",g,O,A],J=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O,A],te=()=>["none",V,O,A],ie=()=>["none",V,O,A],Oe=()=>[V,O,A],ye=()=>[Ve,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[pi],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[vi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",V],text:[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,A,O,p]}],container:["container"],columns:[{columns:[V,A,O,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...x(),A,O]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Ie,"auto",O,A]}],basis:[{basis:[Ve,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[V,Ve,"auto","initial","none",A]}],grow:[{grow:["",V,O,A]}],shrink:[{shrink:["",V,O,A]}],order:[{order:[Ie,"first","last","none",O,A]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[..._(),"baseline"]}],"align-self":[{self:["auto",..._(),"baseline"]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[c,"screen",...B()]}],"min-w":[{"min-w":[c,"screen","none",...B()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...B()]}],h:[{h:["screen",...B()]}],"min-h":[{"min-h":["screen","none",...B()]}],"max-h":[{"max-h":["screen",...B()]}],"font-size":[{text:["base",n,pt,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,O,nn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_r,A]}],"font-family":[{font:[Si,A,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,O,A]}],"line-clamp":[{"line-clamp":[V,"none",O,nn]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",O,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[V,"from-font","auto",O,De]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[V,"auto",O,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,A]}],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",O,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...x(),Ei,yi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Ci,bi]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ie,O,A],radial:["",O,A],conic:[Ie,O,A]},Ti,wi]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[V,O,A]}],"outline-w":[{outline:["",V,pt,De]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,Pi,xi]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",O,A,h]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[V,De]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":M()}],opacity:[{opacity:[V,O,A]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none",O,A]}],blur:[{blur:ne()}],brightness:[{brightness:[V,O,A]}],contrast:[{contrast:[V,O,A]}],"drop-shadow":[{"drop-shadow":["","none",v,O,A]}],grayscale:[{grayscale:["",V,O,A]}],"hue-rotate":[{"hue-rotate":[V,O,A]}],invert:[{invert:["",V,O,A]}],saturate:[{saturate:[V,O,A]}],sepia:[{sepia:["",V,O,A]}],"backdrop-filter":[{"backdrop-filter":["","none",O,A]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[V,O,A]}],"backdrop-contrast":[{"backdrop-contrast":[V,O,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",V,O,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,O,A]}],"backdrop-invert":[{"backdrop-invert":["",V,O,A]}],"backdrop-opacity":[{"backdrop-opacity":[V,O,A]}],"backdrop-saturate":[{"backdrop-saturate":[V,O,A]}],"backdrop-sepia":[{"backdrop-sepia":["",V,O,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[V,"initial",O,A]}],ease:[{ease:["linear","initial",m,O,A]}],delay:[{delay:[V,O,A]}],animate:[{animate:["none",y,O,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,O,A]}],"perspective-origin":[{"perspective-origin":J()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[O,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:J()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",O,A]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[V,pt,De,nn]}],stroke:[{stroke:["none",...M()]}],"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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}});function L(...e){return _i(Tr(e))}function Ii({className:e,containerClassName:t,...n}){return u.jsx(xr,{"data-slot":"input-otp",containerClassName:L("flex items-center gap-2 has-disabled:opacity-50",t),className:L("disabled:cursor-not-allowed",e),...n})}function Di({className:e,...t}){return u.jsx("div",{"data-slot":"input-otp-group",className:L("flex items-center",e),...t})}function Li({index:e,className:t,...n}){const r=i.useContext(wr),{char:o,hasFakeCaret:a,isActive:s}=(r==null?void 0:r.slots[e])??{};return u.jsxs("div",{"data-slot":"input-otp-slot","data-active":s,className:L("border-input data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...n,children:[o,a&&u.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:u.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function Ri({...e}){return u.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:u.jsx(Hs,{})})}function Fr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $r(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Fr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Fr(e[o],null)}}}}function ee(...e){return i.useCallback($r(...e),e)}var de=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(Fi);if(a){const s=a.props.children,c=o.map(d=>d===a?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:d);return u.jsx(rn,{...r,ref:t,children:i.isValidElement(s)?i.cloneElement(s,void 0,c):null})}return u.jsx(rn,{...r,ref:t,children:n})});de.displayName="Slot";var rn=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=zi(n),a=$i(r,n.props);return n.type!==i.Fragment&&(a.ref=t?$r(t,o):o),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null});rn.displayName="SlotClone";var zr=({children:e})=>u.jsx(u.Fragment,{children:e});function Fi(e){return i.isValidElement(e)&&e.type===zr}function $i(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{a(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function zi(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Wr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Br=Tr,ht=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Br(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(l=>{const f=n==null?void 0:n[l],h=a==null?void 0:a[l];if(f===null)return null;const v=Wr(f)||Wr(h);return o[l][v]}),c=n&&Object.entries(n).reduce((l,f)=>{let[h,v]=f;return v===void 0||(l[h]=v),l},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,f)=>{let{class:h,className:v,...g}=f;return Object.entries(g).every(b=>{let[p,m]=b;return Array.isArray(m)?m.includes({...a,...c}[p]):{...a,...c}[p]===m})?[...l,h,v]:l},[]);return Br(e,s,d,n==null?void 0:n.class,n==null?void 0:n.className)},Vr=ht("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",defaultOutline:"border border-red-600/30 text-red-600 bg-background shadow-xs hover:bg-red-600/5 ",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",blue:"bg-randmar-blue text-gray-100 shadow-sm hover:bg-randmar-blue/90",red:"bg-randmar-red text-gray-100 shadow-sm hover:bg-randmar-red/90",none:""},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),gt=i.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?de:"button";return u.jsx(s,{className:L(Vr({variant:t,size:n,className:e})),ref:a,...o})});gt.displayName="Button";const mt=i.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:L("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));mt.displayName="Input";var Wi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],K=Wi.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...s}=r,c=a?de:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Hr(e,t){e&&qt.flushSync(()=>e.dispatchEvent(t))}var Bi="Separator",jr="horizontal",Vi=["horizontal","vertical"],Gr=i.forwardRef((e,t)=>{const{decorative:n,orientation:r=jr,...o}=e,a=Hi(r)?r:jr,c=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(K.div,{"data-orientation":a,...c,...o,ref:t})});Gr.displayName=Bi;function Hi(e){return Vi.includes(e)}var Ur=Gr;const on=i.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>u.jsx(Ur,{ref:o,decorative:n,orientation:t,className:L("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));on.displayName=Ur.displayName;function U(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ji(e,t){const n=i.createContext(t),r=a=>{const{children:s,...c}=a,d=i.useMemo(()=>c,Object.values(c));return u.jsx(n.Provider,{value:d,children:s})};r.displayName=e+"Provider";function o(a){const s=i.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function rt(e,t=[]){let n=[];function r(a,s){const c=i.createContext(s),d=n.length;n=[...n,s];const l=h=>{var y;const{scope:v,children:g,...b}=h,p=((y=v==null?void 0:v[e])==null?void 0:y[d])||c,m=i.useMemo(()=>b,Object.values(b));return u.jsx(p.Provider,{value:m,children:g})};l.displayName=a+"Provider";function f(h,v){var p;const g=((p=v==null?void 0:v[e])==null?void 0:p[d])||c,b=i.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[l,f]}const o=()=>{const a=n.map(s=>i.createContext(s));return function(c){const d=(c==null?void 0:c[e])||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,Gi(o,...t)]}function Gi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((c,{useScope:d,scopeName:l})=>{const h=d(a)[`__scope${l}`];return{...c,...h}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Ce=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},Ui=i.useId||(()=>{}),Ki=0;function vt(e){const[t,n]=i.useState(Ui());return Ce(()=>{n(r=>r??String(Ki++))},[e]),e||(t?`radix-${t}`:"")}function le(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function an({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Yi({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,c=le(n),d=i.useCallback(l=>{if(a){const h=typeof l=="function"?l(e):l;h!==e&&c(h)}else o(l)},[a,e,o,c]);return[s,d]}function Yi({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=le(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function Xi(e,t=globalThis==null?void 0:globalThis.document){const n=le(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var qi="DismissableLayer",sn="dismissableLayer.update",Zi="dismissableLayer.pointerDownOutside",Qi="dismissableLayer.focusOutside",Kr,Yr=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bt=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...d}=e,l=i.useContext(Yr),[f,h]=i.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=i.useState({}),b=ee(t,T=>h(T)),p=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(m),w=f?p.indexOf(f):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,C=ec(T=>{const $=T.target,I=[...l.branches].some(z=>z.contains($));!E||I||(o==null||o(T),s==null||s(T),T.defaultPrevented||c==null||c())},v),S=tc(T=>{const $=T.target;[...l.branches].some(z=>z.contains($))||(a==null||a(T),s==null||s(T),T.defaultPrevented||c==null||c())},v);return Xi(T=>{w===l.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&c&&(T.preventDefault(),c()))},v),i.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Kr=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),qr(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Kr)}},[f,v,n,l]),i.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),qr())},[f,l]),i.useEffect(()=>{const T=()=>g({});return document.addEventListener(sn,T),()=>document.removeEventListener(sn,T)},[]),u.jsx(K.div,{...d,ref:b,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,S.onFocusCapture),onBlurCapture:U(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,C.onPointerDownCapture)})});bt.displayName=qi;var Ji="DismissableLayerBranch",Xr=i.forwardRef((e,t)=>{const n=i.useContext(Yr),r=i.useRef(null),o=ee(t,r);return i.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),u.jsx(K.div,{...e,ref:o})});Xr.displayName=Ji;function ec(e,t=globalThis==null?void 0:globalThis.document){const n=le(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let d=function(){Zr(Zi,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tc(e,t=globalThis==null?void 0:globalThis.document){const n=le(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Zr(Qi,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qr(){const e=new CustomEvent(sn);document.dispatchEvent(e)}function Zr(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hr(o,a):o.dispatchEvent(a)}var nc=bt,rc=Xr,cn="focusScope.autoFocusOnMount",ln="focusScope.autoFocusOnUnmount",Qr={bubbles:!1,cancelable:!0},oc="FocusScope",Jr=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[c,d]=i.useState(null),l=le(o),f=le(a),h=i.useRef(null),v=ee(t,p=>d(p)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let p=function(x){if(g.paused||!c)return;const E=x.target;c.contains(E)?h.current=E:Te(h.current,{select:!0})},m=function(x){if(g.paused||!c)return;const E=x.relatedTarget;E!==null&&(c.contains(E)||Te(h.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&Te(c)};document.addEventListener("focusin",p),document.addEventListener("focusout",m);const w=new MutationObserver(y);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),w.disconnect()}}},[r,c,g.paused]),i.useEffect(()=>{if(c){no.add(g);const p=document.activeElement;if(!c.contains(p)){const y=new CustomEvent(cn,Qr);c.addEventListener(cn,l),c.dispatchEvent(y),y.defaultPrevented||(ac(dc(eo(c)),{select:!0}),document.activeElement===p&&Te(c))}return()=>{c.removeEventListener(cn,l),setTimeout(()=>{const y=new CustomEvent(ln,Qr);c.addEventListener(ln,f),c.dispatchEvent(y),y.defaultPrevented||Te(p??document.body,{select:!0}),c.removeEventListener(ln,f),no.remove(g)},0)}}},[c,l,f,g]);const b=i.useCallback(p=>{if(!n&&!r||g.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(m&&y){const w=p.currentTarget,[x,E]=sc(w);x&&E?!p.shiftKey&&y===E?(p.preventDefault(),n&&Te(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),n&&Te(E,{select:!0})):y===w&&p.preventDefault()}},[n,r,g.paused]);return u.jsx(K.div,{tabIndex:-1,...s,ref:v,onKeyDown:b})});Jr.displayName=oc;function ac(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function sc(e){const t=eo(e),n=to(t,e),r=to(t.reverse(),e);return[n,r]}function eo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function to(e,t){for(const n of e)if(!ic(n,{upTo:t}))return n}function ic(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 cc(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cc(e)&&t&&e.select()}}var no=lc();function lc(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ro(e,t),e.unshift(t)},remove(t){var n;e=ro(e,t),(n=e[0])==null||n.resume()}}}function ro(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function dc(e){return e.filter(t=>t.tagName!=="A")}var uc="Portal",yt=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,a]=i.useState(!1);Ce(()=>a(!0),[]);const s=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?hr.createPortal(u.jsx(K.div,{...r,ref:t}),s):null});yt.displayName=uc;function fc(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Le=e=>{const{present:t,children:n}=e,r=pc(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=ee(r.ref,hc(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function pc(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,d]=fc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const l=wt(r.current);a.current=c==="mounted"?l:"none"},[c]),Ce(()=>{const l=r.current,f=o.current;if(f!==e){const v=a.current,g=wt(l);e?d("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?d("UNMOUNT"):d(f&&v!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ce(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,h=g=>{const p=wt(r.current).includes(g.animationName);if(g.target===t&&p&&(d("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},v=g=>{g.target===t&&(a.current=wt(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function wt(e){return(e==null?void 0:e.animationName)||"none"}function hc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dn=0;function gc(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oo()),document.body.insertAdjacentElement("beforeend",e[1]??oo()),dn++,()=>{dn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),dn--}},[])}function oo(){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 ge=function(){return ge=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ge.apply(this,arguments)};function ao(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function mc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var xt="right-scroll-bar-position",St="width-before-scroll-bar",vc="with-scroll-bars-hidden",bc="--removed-body-scroll-bar-size";function un(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yc(e,t){var n=X.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var wc=typeof window<"u"?i.useLayoutEffect:i.useEffect,so=new WeakMap;function xc(e,t){var n=yc(null,function(r){return e.forEach(function(o){return un(o,r)})});return wc(function(){var r=so.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(c){a.has(c)||un(c,null)}),a.forEach(function(c){o.has(c)||un(c,s)})}so.set(n,e)},[e]),n}function Sc(e){return e}function Ec(e,t){t===void 0&&(t=Sc);var n=[],r=!1,o={read:function(){if(r)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(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var d=function(){var f=s;s=[],f.forEach(a)},l=function(){return Promise.resolve().then(d)};l(),n={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),n}}}};return o}function Cc(e){e===void 0&&(e={});var t=Ec(null);return t.options=ge({async:!0,ssr:!1},e),t}var io=function(e){var t=e.sideCar,n=ao(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,ge({},n))};io.isSideCarExport=!0;function Tc(e,t){return e.useMedium(t),io}var co=Cc(),fn=function(){},Et=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:fn,onWheelCapture:fn,onTouchMoveCapture:fn}),o=r[0],a=r[1],s=e.forwardProps,c=e.children,d=e.className,l=e.removeScrollBar,f=e.enabled,h=e.shards,v=e.sideCar,g=e.noIsolation,b=e.inert,p=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,w=e.gapMode,x=ao(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,C=xc([n,t]),S=ge(ge({},x),o);return i.createElement(i.Fragment,null,f&&i.createElement(E,{sideCar:co,removeScrollBar:l,shards:h,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!p,lockRef:n,gapMode:w}),s?i.cloneElement(i.Children.only(c),ge(ge({},S),{ref:C})):i.createElement(y,ge({},S,{className:d,ref:C}),c))});Et.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Et.classNames={fullWidth:St,zeroRight:xt};var Pc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pc();return t&&e.setAttribute("nonce",t),e}function Ac(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Oc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nc())&&(Ac(t,n),Oc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kc=function(){var e=Mc();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},lo=function(){var e=kc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_c={left:0,top:0,right:0,gap:0},pn=function(e){return parseInt(e||"",10)||0},Ic=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[pn(n),pn(r),pn(o)]},Dc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _c;var t=Ic(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Lc=lo(),Ge="data-scroll-locked",Rc=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
76
+ .`.concat(vc,` {
77
+ overflow: hidden `).concat(r,`;
78
+ padding-right: `).concat(c,"px ").concat(r,`;
79
+ }
80
+ body[`).concat(Ge,`] {
81
+ overflow: hidden `).concat(r,`;
82
+ overscroll-behavior: contain;
83
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
84
+ padding-left: `.concat(o,`px;
85
+ padding-top: `).concat(a,`px;
86
+ padding-right: `).concat(s,`px;
87
+ margin-left:0;
88
+ margin-top:0;
89
+ margin-right: `).concat(c,"px ").concat(r,`;
90
+ `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
91
+ }
92
+
93
+ .`).concat(xt,` {
94
+ right: `).concat(c,"px ").concat(r,`;
95
+ }
96
+
97
+ .`).concat(St,` {
98
+ margin-right: `).concat(c,"px ").concat(r,`;
99
+ }
100
+
101
+ .`).concat(xt," .").concat(xt,` {
102
+ right: 0 `).concat(r,`;
103
+ }
104
+
105
+ .`).concat(St," .").concat(St,` {
106
+ margin-right: 0 `).concat(r,`;
107
+ }
108
+
109
+ body[`).concat(Ge,`] {
110
+ `).concat(bc,": ").concat(c,`px;
111
+ }
112
+ `)},uo=function(){var e=parseInt(document.body.getAttribute(Ge)||"0",10);return isFinite(e)?e:0},Fc=function(){i.useEffect(function(){return document.body.setAttribute(Ge,(uo()+1).toString()),function(){var e=uo()-1;e<=0?document.body.removeAttribute(Ge):document.body.setAttribute(Ge,e.toString())}},[])},$c=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Fc();var a=i.useMemo(function(){return Dc(o)},[o]);return i.createElement(Lc,{styles:Rc(a,!t,o,n?"":"!important")})},hn=!1;if(typeof window<"u")try{var Ct=Object.defineProperty({},"passive",{get:function(){return hn=!0,!0}});window.addEventListener("test",Ct,Ct),window.removeEventListener("test",Ct,Ct)}catch{hn=!1}var Ue=hn?{passive:!1}:!1,zc=function(e){return e.tagName==="TEXTAREA"},fo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!zc(e)&&n[t]==="visible")},Wc=function(e){return fo(e,"overflowY")},Bc=function(e){return fo(e,"overflowX")},po=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ho(e,r);if(o){var a=go(e,r),s=a[1],c=a[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Vc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Hc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ho=function(e,t){return e==="v"?Wc(t):Bc(t)},go=function(e,t){return e==="v"?Vc(t):Hc(t)},jc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Gc=function(e,t,n,r,o){var a=jc(e,window.getComputedStyle(t).direction),s=a*r,c=n.target,d=t.contains(c),l=!1,f=s>0,h=0,v=0;do{var g=go(e,c),b=g[0],p=g[1],m=g[2],y=p-m-a*b;(b||y)&&ho(e,c)&&(h+=y,v+=b),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(f&&Math.abs(h)<1||!f&&Math.abs(v)<1)&&(l=!0),l},Tt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mo=function(e){return[e.deltaX,e.deltaY]},vo=function(e){return e&&"current"in e?e.current:e},Uc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kc=function(e){return`
113
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
114
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
115
+ `)},Yc=0,Ke=[];function Xc(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Yc++)[0],a=i.useState(lo)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=mc([e.lockRef.current],(e.shards||[]).map(vo),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(p,m){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var y=Tt(p),w=n.current,x="deltaX"in p?p.deltaX:w[0]-y[0],E="deltaY"in p?p.deltaY:w[1]-y[1],C,S=p.target,T=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in p&&T==="h"&&S.type==="range")return!1;var $=po(T,S);if(!$)return!0;if($?C=T:(C=T==="v"?"h":"v",$=po(T,S)),!$)return!1;if(!r.current&&"changedTouches"in p&&(x||E)&&(r.current=C),!C)return!0;var I=r.current||C;return Gc(I,m,p,I==="h"?x:E)},[]),d=i.useCallback(function(p){var m=p;if(!(!Ke.length||Ke[Ke.length-1]!==a)){var y="deltaY"in m?mo(m):Tt(m),w=t.current.filter(function(C){return C.name===m.type&&(C.target===m.target||m.target===C.shadowParent)&&Uc(C.delta,y)})[0];if(w&&w.should){m.cancelable&&m.preventDefault();return}if(!w){var x=(s.current.shards||[]).map(vo).filter(Boolean).filter(function(C){return C.contains(m.target)}),E=x.length>0?c(m,x[0]):!s.current.noIsolation;E&&m.cancelable&&m.preventDefault()}}},[]),l=i.useCallback(function(p,m,y,w){var x={name:p,delta:m,target:y,should:w,shadowParent:qc(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=i.useCallback(function(p){n.current=Tt(p),r.current=void 0},[]),h=i.useCallback(function(p){l(p.type,mo(p),p.target,c(p,e.lockRef.current))},[]),v=i.useCallback(function(p){l(p.type,Tt(p),p.target,c(p,e.lockRef.current))},[]);i.useEffect(function(){return Ke.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:v}),document.addEventListener("wheel",d,Ue),document.addEventListener("touchmove",d,Ue),document.addEventListener("touchstart",f,Ue),function(){Ke=Ke.filter(function(p){return p!==a}),document.removeEventListener("wheel",d,Ue),document.removeEventListener("touchmove",d,Ue),document.removeEventListener("touchstart",f,Ue)}},[]);var g=e.removeScrollBar,b=e.inert;return i.createElement(i.Fragment,null,b?i.createElement(a,{styles:Kc(o)}):null,g?i.createElement($c,{gapMode:e.gapMode}):null)}function qc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zc=Tc(co,Xc);var bo=i.forwardRef(function(e,t){return i.createElement(Et,ge({},e,{ref:t,sideCar:Zc}))});bo.classNames=Et.classNames;var Qc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ye=new WeakMap,Pt=new WeakMap,Nt={},gn=0,yo=function(e){return e&&(e.host||yo(e.parentNode))},Jc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=yo(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},el=function(e,t,n,r){var o=Jc(t,Array.isArray(e)?e:[e]);Nt[n]||(Nt[n]=new WeakMap);var a=Nt[n],s=[],c=new Set,d=new Set(o),l=function(h){!h||c.has(h)||(c.add(h),l(h.parentNode))};o.forEach(l);var f=function(h){!h||d.has(h)||Array.prototype.forEach.call(h.children,function(v){if(c.has(v))f(v);else try{var g=v.getAttribute(r),b=g!==null&&g!=="false",p=(Ye.get(v)||0)+1,m=(a.get(v)||0)+1;Ye.set(v,p),a.set(v,m),s.push(v),p===1&&b&&Pt.set(v,!0),m===1&&v.setAttribute(n,"true"),b||v.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return f(t),c.clear(),gn++,function(){s.forEach(function(h){var v=Ye.get(h)-1,g=a.get(h)-1;Ye.set(h,v),a.set(h,g),v||(Pt.has(h)||h.removeAttribute(r),Pt.delete(h)),g||h.removeAttribute(n)}),gn--,gn||(Ye=new WeakMap,Ye=new WeakMap,Pt=new WeakMap,Nt={})}},tl=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),el(r,o,n,"aria-hidden")):function(){return null}},mn="Dialog",[wo,Fu]=rt(mn),[nl,ue]=wo(mn),xo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=i.useRef(null),d=i.useRef(null),[l=!1,f]=an({prop:r,defaultProp:o,onChange:a});return u.jsx(nl,{scope:t,triggerRef:c,contentRef:d,contentId:vt(),titleId:vt(),descriptionId:vt(),open:l,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(h=>!h),[f]),modal:s,children:n})};xo.displayName=mn;var So="DialogTrigger",Eo=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(So,n),a=ee(t,o.triggerRef);return u.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yn(o.open),...r,ref:a,onClick:U(e.onClick,o.onOpenToggle)})});Eo.displayName=So;var vn="DialogPortal",[rl,Co]=wo(vn,{forceMount:void 0}),To=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=ue(vn,t);return u.jsx(rl,{scope:t,forceMount:n,children:i.Children.map(r,s=>u.jsx(Le,{present:n||a.open,children:u.jsx(yt,{asChild:!0,container:o,children:s})}))})};To.displayName=vn;var At="DialogOverlay",Po=i.forwardRef((e,t)=>{const n=Co(At,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ue(At,e.__scopeDialog);return a.modal?u.jsx(Le,{present:r||a.open,children:u.jsx(ol,{...o,ref:t})}):null});Po.displayName=At;var ol=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(At,n);return u.jsx(bo,{as:de,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(K.div,{"data-state":yn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Re="DialogContent",No=i.forwardRef((e,t)=>{const n=Co(Re,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ue(Re,e.__scopeDialog);return u.jsx(Le,{present:r||a.open,children:a.modal?u.jsx(al,{...o,ref:t}):u.jsx(sl,{...o,ref:t})})});No.displayName=Re;var al=i.forwardRef((e,t)=>{const n=ue(Re,e.__scopeDialog),r=i.useRef(null),o=ee(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return tl(a)},[]),u.jsx(Ao,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&a.preventDefault()}),onFocusOutside:U(e.onFocusOutside,a=>a.preventDefault())})}),sl=i.forwardRef((e,t)=>{const n=ue(Re,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return u.jsx(Ao,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var d,l;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ao=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,c=ue(Re,n),d=i.useRef(null),l=ee(t,d);return gc(),u.jsxs(u.Fragment,{children:[u.jsx(Jr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(bt,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":yn(c.open),...s,ref:l,onDismiss:()=>c.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(il,{titleId:c.titleId}),u.jsx(ll,{contentRef:d,descriptionId:c.descriptionId})]})]})}),bn="DialogTitle",Oo=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(bn,n);return u.jsx(K.h2,{id:o.titleId,...r,ref:t})});Oo.displayName=bn;var Mo="DialogDescription",ko=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(Mo,n);return u.jsx(K.p,{id:o.descriptionId,...r,ref:t})});ko.displayName=Mo;var _o="DialogClose",Io=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(_o,n);return u.jsx(K.button,{type:"button",...r,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});Io.displayName=_o;function yn(e){return e?"open":"closed"}var Do="DialogTitleWarning",[$u,Lo]=ji(Do,{contentName:Re,titleName:bn,docsSlug:"dialog"}),il=({titleId:e})=>{const t=Lo(Do),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
116
+
117
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
118
+
119
+ 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},cl="DialogDescriptionWarning",ll=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Lo(cl).contentName}}.`;return i.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},dl=xo,ul=Eo,fl=To,Ro=Po,Fo=No,$o=Oo,zo=ko,Wo=Io;const Bo=dl,pl=ul,hl=Wo,Vo=fl,wn=i.forwardRef(({className:e,...t},n)=>u.jsx(Ro,{className:L("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));wn.displayName=Ro.displayName;const gl=ht("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),xn=i.forwardRef(({side:e="right",className:t,children:n,...r},o)=>u.jsxs(Vo,{children:[u.jsx(wn,{}),u.jsxs(Fo,{ref:o,className:L(gl({side:e}),t),...r,children:[u.jsxs(Wo,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[u.jsx(Er,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));xn.displayName=Fo.displayName;const Ho=({className:e,...t})=>u.jsx("div",{className:L("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ho.displayName="SheetHeader";const jo=({className:e,...t})=>u.jsx("div",{className:L("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});jo.displayName="SheetFooter";const Go=i.forwardRef(({className:e,...t},n)=>u.jsx($o,{ref:n,className:L("text-lg font-semibold text-foreground",e),...t}));Go.displayName=$o.displayName;const Uo=i.forwardRef(({className:e,...t},n)=>u.jsx(zo,{ref:n,className:L("text-sm text-muted-foreground",e),...t}));Uo.displayName=zo.displayName;const Sn=1024;function Ko(){const[e,t]=i.useState(void 0);return i.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Sn-1}px)`),r=()=>{t(window.innerWidth<Sn)};return n.addEventListener("change",r),t(window.innerWidth<Sn),()=>n.removeEventListener("change",r)},[]),!!e}function En({className:e,...t}){return u.jsx("div",{className:L("animate-pulse rounded-md bg-primary/20",e),...t})}const ml=["top","right","bottom","left"],Pe=Math.min,ae=Math.max,Ot=Math.round,Mt=Math.floor,me=e=>({x:e,y:e}),vl={left:"right",right:"left",bottom:"top",top:"bottom"},bl={start:"end",end:"start"};function Cn(e,t,n){return ae(e,Pe(t,n))}function we(e,t){return typeof e=="function"?e(t):e}function xe(e){return e.split("-")[0]}function Xe(e){return e.split("-")[1]}function Tn(e){return e==="x"?"y":"x"}function Pn(e){return e==="y"?"height":"width"}function Ne(e){return["top","bottom"].includes(xe(e))?"y":"x"}function Nn(e){return Tn(Ne(e))}function yl(e,t,n){n===void 0&&(n=!1);const r=Xe(e),o=Nn(e),a=Pn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=kt(s)),[s,kt(s)]}function wl(e){const t=kt(e);return[An(e),t,An(t)]}function An(e){return e.replace(/start|end/g,t=>bl[t])}function xl(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function Sl(e,t,n,r){const o=Xe(e);let a=xl(xe(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(An)))),a}function kt(e){return e.replace(/left|right|bottom|top/g,t=>vl[t])}function El(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yo(e){return typeof e!="number"?El(e):{top:e,right:e,bottom:e,left:e}}function _t(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Xo(e,t,n){let{reference:r,floating:o}=e;const a=Ne(t),s=Nn(t),c=Pn(s),d=xe(t),l=a==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,v=r[c]/2-o[c]/2;let g;switch(d){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(Xe(t)){case"start":g[s]-=v*(n&&l?-1:1);break;case"end":g[s]+=v*(n&&l?-1:1);break}return g}const Cl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=Xo(l,r,d),v=r,g={},b=0;for(let p=0;p<c.length;p++){const{name:m,fn:y}=c[p],{x:w,y:x,data:E,reset:C}=await y({x:f,y:h,initialPlacement:r,placement:v,strategy:o,middlewareData:g,rects:l,platform:s,elements:{reference:e,floating:t}});f=w??f,h=x??h,g={...g,[m]:{...g[m],...E}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(l=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:h}=Xo(l,v,d)),p=-1)}return{x:f,y:h,placement:v,strategy:o,middlewareData:g}};async function ot(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:c,strategy:d}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:v=!1,padding:g=0}=we(t,e),b=Yo(g),m=c[v?h==="floating"?"reference":"floating":h],y=_t(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(m)))==null||n?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:l,rootBoundary:f,strategy:d})),w=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),E=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},C=_t(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:d}):w);return{top:(y.top-C.top+b.top)/E.y,bottom:(C.bottom-y.bottom+b.bottom)/E.y,left:(y.left-C.left+b.left)/E.x,right:(C.right-y.right+b.right)/E.x}}const Tl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:l,padding:f=0}=we(e,t)||{};if(l==null)return{};const h=Yo(f),v={x:n,y:r},g=Nn(o),b=Pn(g),p=await s.getDimensions(l),m=g==="y",y=m?"top":"left",w=m?"bottom":"right",x=m?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[g]-v[g]-a.floating[b],C=v[g]-a.reference[g],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let T=S?S[x]:0;(!T||!await(s.isElement==null?void 0:s.isElement(S)))&&(T=c.floating[x]||a.floating[b]);const $=E/2-C/2,I=T/2-p[b]/2-1,z=Pe(h[y],I),H=Pe(h[w],I),W=z,_=T-p[b]-H,P=T/2-p[b]/2+$,B=Cn(W,P,_),M=!d.arrow&&Xe(o)!=null&&P!==B&&a.reference[b]/2-(P<W?z:H)-p[b]/2<0,j=M?P<W?P-W:P-_:0;return{[g]:v[g]+j,data:{[g]:B,centerOffset:P-B-j,...M&&{alignmentOffset:j}},reset:M}}}),Pl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:l}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...m}=we(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=xe(o),w=Ne(c),x=xe(c)===c,E=await(d.isRTL==null?void 0:d.isRTL(l.floating)),C=v||(x||!p?[kt(c)]:wl(c)),S=b!=="none";!v&&S&&C.push(...Sl(c,p,b,E));const T=[c,...C],$=await ot(t,m),I=[];let z=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&I.push($[y]),h){const P=yl(o,s,E);I.push($[P[0]],$[P[1]])}if(z=[...z,{placement:o,overflows:I}],!I.every(P=>P<=0)){var H,W;const P=(((H=a.flip)==null?void 0:H.index)||0)+1,B=T[P];if(B)return{data:{index:P,overflows:z},reset:{placement:B}};let M=(W=z.filter(j=>j.overflows[0]<=0).sort((j,k)=>j.overflows[1]-k.overflows[1])[0])==null?void 0:W.placement;if(!M)switch(g){case"bestFit":{var _;const j=(_=z.filter(k=>{if(S){const R=Ne(k.placement);return R===w||R==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(R=>R>0).reduce((R,Y)=>R+Y,0)]).sort((k,R)=>k[1]-R[1])[0])==null?void 0:_[0];j&&(M=j);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function qo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zo(e){return ml.some(t=>e[t]>=0)}const Nl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=we(e,t);switch(r){case"referenceHidden":{const a=await ot(t,{...o,elementContext:"reference"}),s=qo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zo(s)}}}case"escaped":{const a=await ot(t,{...o,altBoundary:!0}),s=qo(a,n.floating);return{data:{escapedOffsets:s,escaped:Zo(s)}}}default:return{}}}}};async function Al(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=xe(n),c=Xe(n),d=Ne(n)==="y",l=["left","top"].includes(s)?-1:1,f=a&&d?-1:1,h=we(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof b=="number"&&(g=c==="end"?b*-1:b),d?{x:g*f,y:v*l}:{x:v*l,y:g*f}}const Ol=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:c}=t,d=await Al(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Ml=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:m=>{let{x:y,y:w}=m;return{x:y,y:w}}},...d}=we(e,t),l={x:n,y:r},f=await ot(t,d),h=Ne(xe(o)),v=Tn(h);let g=l[v],b=l[h];if(a){const m=v==="y"?"top":"left",y=v==="y"?"bottom":"right",w=g+f[m],x=g-f[y];g=Cn(w,g,x)}if(s){const m=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=b+f[m],x=b-f[y];b=Cn(w,b,x)}const p=c.fn({...t,[v]:g,[h]:b});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[v]:a,[h]:s}}}}}},kl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:d=!0,crossAxis:l=!0}=we(e,t),f={x:n,y:r},h=Ne(o),v=Tn(h);let g=f[v],b=f[h];const p=we(c,t),m=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(d){const x=v==="y"?"height":"width",E=a.reference[v]-a.floating[x]+m.mainAxis,C=a.reference[v]+a.reference[x]-m.mainAxis;g<E?g=E:g>C&&(g=C)}if(l){var y,w;const x=v==="y"?"width":"height",E=["top","left"].includes(xe(o)),C=a.reference[h]-a.floating[x]+(E&&((y=s.offset)==null?void 0:y[h])||0)+(E?0:m.crossAxis),S=a.reference[h]+a.reference[x]+(E?0:((w=s.offset)==null?void 0:w[h])||0)-(E?m.crossAxis:0);b<C?b=C:b>S&&(b=S)}return{[v]:g,[h]:b}}}},_l=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:c}=t,{apply:d=()=>{},...l}=we(e,t),f=await ot(t,l),h=xe(o),v=Xe(o),g=Ne(o)==="y",{width:b,height:p}=a.floating;let m,y;h==="top"||h==="bottom"?(m=h,y=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(y=h,m=v==="end"?"top":"bottom");const w=p-f.top-f.bottom,x=b-f.left-f.right,E=Pe(p-f[m],w),C=Pe(b-f[y],x),S=!t.middlewareData.shift;let T=E,$=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=w),S&&!v){const z=ae(f.left,0),H=ae(f.right,0),W=ae(f.top,0),_=ae(f.bottom,0);g?$=b-2*(z!==0||H!==0?z+H:ae(f.left,f.right)):T=p-2*(W!==0||_!==0?W+_:ae(f.top,f.bottom))}await d({...t,availableWidth:$,availableHeight:T});const I=await s.getDimensions(c.floating);return b!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function It(){return typeof window<"u"}function qe(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(Qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qo(e){return It()?e instanceof Node||e instanceof se(e).Node:!1}function fe(e){return It()?e instanceof Element||e instanceof se(e).Element:!1}function be(e){return It()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function Jo(e){return!It()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function at(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Il(e){return["table","td","th"].includes(qe(e))}function Dt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function On(e){const t=Mn(),n=fe(e)?pe(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="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(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Dl(e){let t=Ae(e);for(;be(t)&&!Ze(t);){if(On(t))return t;if(Dt(t))return null;t=Ae(t)}return null}function Mn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ze(e){return["html","body","#document"].includes(qe(e))}function pe(e){return se(e).getComputedStyle(e)}function Lt(e){return fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jo(e)&&e.host||ve(e);return Jo(t)?t.host:t}function ea(e){const t=Ae(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&at(t)?t:ea(t)}function st(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ea(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=se(o);if(a){const c=kn(s);return t.concat(s,s.visualViewport||[],at(o)?o:[],c&&n?st(c):[])}return t.concat(o,st(o,[],n))}function kn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ta(e){const t=pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=be(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=Ot(n)!==a||Ot(r)!==s;return c&&(n=a,r=s),{width:n,height:r,$:c}}function _n(e){return fe(e)?e:e.contextElement}function Qe(e){const t=_n(e);if(!be(t))return me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ta(t);let s=(a?Ot(n.width):n.width)/r,c=(a?Ot(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Ll=me(0);function na(e){const t=se(e);return!Mn()||!t.visualViewport?Ll:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==se(e)?!1:t}function Fe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=_n(e);let s=me(1);t&&(r?fe(r)&&(s=Qe(r)):s=Qe(e));const c=Rl(a,n,r)?na(a):me(0);let d=(o.left+c.x)/s.x,l=(o.top+c.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(a){const v=se(a),g=r&&fe(r)?se(r):r;let b=v,p=kn(b);for(;p&&r&&g!==b;){const m=Qe(p),y=p.getBoundingClientRect(),w=pe(p),x=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*m.x,E=y.top+(p.clientTop+parseFloat(w.paddingTop))*m.y;d*=m.x,l*=m.y,f*=m.x,h*=m.y,d+=x,l+=E,b=se(p),p=kn(b)}}return _t({width:f,height:h,x:d,y:l})}function In(e,t){const n=Lt(e).scrollLeft;return t?t.left+n:Fe(ve(e)).left+n}function ra(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:In(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Fl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=ve(r),c=t?Dt(t.floating):!1;if(r===s||c&&a)return n;let d={scrollLeft:0,scrollTop:0},l=me(1);const f=me(0),h=be(r);if((h||!h&&!a)&&((qe(r)!=="body"||at(s))&&(d=Lt(r)),be(r))){const g=Fe(r);l=Qe(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const v=s&&!h&&!a?ra(s,d,!0):me(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-d.scrollLeft*l.x+f.x+v.x,y:n.y*l.y-d.scrollTop*l.y+f.y+v.y}}function $l(e){return Array.from(e.getClientRects())}function zl(e){const t=ve(e),n=Lt(e),r=e.ownerDocument.body,o=ae(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ae(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+In(e);const c=-n.scrollTop;return pe(r).direction==="rtl"&&(s+=ae(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Wl(e,t){const n=se(e),r=ve(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,d=0;if(o){a=o.width,s=o.height;const l=Mn();(!l||l&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:c,y:d}}function Bl(e,t){const n=Fe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=be(e)?Qe(e):me(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,d=o*a.x,l=r*a.y;return{width:s,height:c,x:d,y:l}}function oa(e,t,n){let r;if(t==="viewport")r=Wl(e,n);else if(t==="document")r=zl(ve(e));else if(fe(t))r=Bl(t,n);else{const o=na(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _t(r)}function aa(e,t){const n=Ae(e);return n===t||!fe(n)||Ze(n)?!1:pe(n).position==="fixed"||aa(n,t)}function Vl(e,t){const n=t.get(e);if(n)return n;let r=st(e,[],!1).filter(c=>fe(c)&&qe(c)!=="body"),o=null;const a=pe(e).position==="fixed";let s=a?Ae(e):e;for(;fe(s)&&!Ze(s);){const c=pe(s),d=On(s);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||at(s)&&!d&&aa(e,s))?r=r.filter(f=>f!==s):o=c,s=Ae(s)}return t.set(e,r),r}function Hl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Dt(t)?[]:Vl(t,this._c):[].concat(n),r],c=s[0],d=s.reduce((l,f)=>{const h=oa(t,f,o);return l.top=ae(h.top,l.top),l.right=Pe(h.right,l.right),l.bottom=Pe(h.bottom,l.bottom),l.left=ae(h.left,l.left),l},oa(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function jl(e){const{width:t,height:n}=ta(e);return{width:t,height:n}}function Gl(e,t,n){const r=be(t),o=ve(t),a=n==="fixed",s=Fe(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const d=me(0);if(r||!r&&!a)if((qe(t)!=="body"||at(o))&&(c=Lt(t)),r){const v=Fe(t,!0,a,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else o&&(d.x=In(o));const l=o&&!r&&!a?ra(o,c):me(0),f=s.left+c.scrollLeft-d.x-l.x,h=s.top+c.scrollTop-d.y-l.y;return{x:f,y:h,width:s.width,height:s.height}}function Dn(e){return pe(e).position==="static"}function sa(e,t){if(!be(e)||pe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function ia(e,t){const n=se(e);if(Dt(e))return n;if(!be(e)){let o=Ae(e);for(;o&&!Ze(o);){if(fe(o)&&!Dn(o))return o;o=Ae(o)}return n}let r=sa(e,t);for(;r&&Il(r)&&Dn(r);)r=sa(r,t);return r&&Ze(r)&&Dn(r)&&!On(r)?n:r||Dl(e)||n}const Ul=async function(e){const t=this.getOffsetParent||ia,n=this.getDimensions,r=await n(e.floating);return{reference:Gl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Kl(e){return pe(e).direction==="rtl"}const Yl={convertOffsetParentRelativeRectToViewportRelativeRect:Fl,getDocumentElement:ve,getClippingRect:Hl,getOffsetParent:ia,getElementRects:Ul,getClientRects:$l,getDimensions:jl,getScale:Qe,isElement:fe,isRTL:Kl};function ca(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xl(e,t){let n=null,r;const o=ve(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();const l=e.getBoundingClientRect(),{left:f,top:h,width:v,height:g}=l;if(c||t(),!v||!g)return;const b=Mt(h),p=Mt(o.clientWidth-(f+v)),m=Mt(o.clientHeight-(h+g)),y=Mt(f),x={rootMargin:-b+"px "+-p+"px "+-m+"px "+-y+"px",threshold:ae(0,Pe(1,d))||1};let E=!0;function C(S){const T=S[0].intersectionRatio;if(T!==d){if(!E)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!ca(l,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return s(!0),a}function ql(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,l=_n(e),f=o||a?[...l?st(l):[],...st(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const h=l&&c?Xl(l,n):null;let v=-1,g=null;s&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),n()}),l&&!d&&g.observe(l),g.observe(t));let b,p=d?Fe(e):null;d&&m();function m(){const y=Fe(e);p&&!ca(p,y)&&n(),p=y,b=requestAnimationFrame(m)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),h==null||h(),(y=g)==null||y.disconnect(),g=null,d&&cancelAnimationFrame(b)}}const Zl=Ol,Ql=Ml,Jl=Pl,ed=_l,td=Nl,la=Tl,nd=kl,rd=(e,t,n)=>{const r=new Map,o={platform:Yl,...n},a={...o.platform,_c:r};return Cl(e,t,{...o,platform:a})};var Rt=typeof document<"u"?X.useLayoutEffect:X.useEffect;function Ft(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function da(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ua(e,t){const n=da(e);return Math.round(t*n)/n}function Ln(e){const t=i.useRef(e);return Rt(()=>{t.current=e}),t}function od(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:d,open:l}=e,[f,h]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=i.useState(r);Ft(v,r)||g(r);const[b,p]=i.useState(null),[m,y]=i.useState(null),w=i.useCallback(k=>{k!==S.current&&(S.current=k,p(k))},[]),x=i.useCallback(k=>{k!==T.current&&(T.current=k,y(k))},[]),E=a||b,C=s||m,S=i.useRef(null),T=i.useRef(null),$=i.useRef(f),I=d!=null,z=Ln(d),H=Ln(o),W=Ln(l),_=i.useCallback(()=>{if(!S.current||!T.current)return;const k={placement:t,strategy:n,middleware:v};H.current&&(k.platform=H.current),rd(S.current,T.current,k).then(R=>{const Y={...R,isPositioned:W.current!==!1};P.current&&!Ft($.current,Y)&&($.current=Y,qt.flushSync(()=>{h(Y)}))})},[v,t,n,H,W]);Rt(()=>{l===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(k=>({...k,isPositioned:!1})))},[l]);const P=i.useRef(!1);Rt(()=>(P.current=!0,()=>{P.current=!1}),[]),Rt(()=>{if(E&&(S.current=E),C&&(T.current=C),E&&C){if(z.current)return z.current(E,C,_);_()}},[E,C,_,z,I]);const B=i.useMemo(()=>({reference:S,floating:T,setReference:w,setFloating:x}),[w,x]),M=i.useMemo(()=>({reference:E,floating:C}),[E,C]),j=i.useMemo(()=>{const k={position:n,left:0,top:0};if(!M.floating)return k;const R=ua(M.floating,f.x),Y=ua(M.floating,f.y);return c?{...k,transform:"translate("+R+"px, "+Y+"px)",...da(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:Y}},[n,c,M.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:_,refs:B,elements:M,floatingStyles:j}),[f,_,B,M,j])}const ad=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?la({element:r.current,padding:o}).fn(n):{}:r?la({element:r,padding:o}).fn(n):{}}}},sd=(e,t)=>({...Zl(e),options:[e,t]}),id=(e,t)=>({...Ql(e),options:[e,t]}),cd=(e,t)=>({...nd(e),options:[e,t]}),ld=(e,t)=>({...Jl(e),options:[e,t]}),dd=(e,t)=>({...ed(e),options:[e,t]}),ud=(e,t)=>({...td(e),options:[e,t]}),fd=(e,t)=>({...ad(e),options:[e,t]});var pd="Arrow",fa=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return u.jsx(K.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});fa.displayName=pd;var hd=fa;function gd(e){const[t,n]=i.useState(void 0);return Ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,c;if("borderBoxSize"in a){const d=a.borderBoxSize,l=Array.isArray(d)?d[0]:d;s=l.inlineSize,c=l.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Rn="Popper",[pa,ha]=rt(Rn),[md,ga]=pa(Rn),ma=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return u.jsx(md,{scope:t,anchor:r,onAnchorChange:o,children:n})};ma.displayName=Rn;var va="PopperAnchor",ba=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ga(va,n),s=i.useRef(null),c=ee(t,s);return i.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:u.jsx(K.div,{...o,ref:c})});ba.displayName=va;var Fn="PopperContent",[vd,bd]=pa(Fn),ya=i.forwardRef((e,t)=>{var ye,dt,Kt,ut,Yt,et;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:b,...p}=e,m=ga(Fn,n),[y,w]=i.useState(null),x=ee(t,$e=>w($e)),[E,C]=i.useState(null),S=gd(E),T=(S==null?void 0:S.width)??0,$=(S==null?void 0:S.height)??0,I=r+(a!=="center"?"-"+a:""),z=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(l)?l:[l],W=H.length>0,_={padding:z,boundary:H.filter(wd),altBoundary:W},{refs:P,floatingStyles:B,placement:M,isPositioned:j,middlewareData:k}=od({strategy:"fixed",placement:I,whileElementsMounted:(...$e)=>ql(...$e,{animationFrame:g==="always"}),elements:{reference:m.anchor},middleware:[sd({mainAxis:o+$,alignmentAxis:s}),d&&id({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?cd():void 0,..._}),d&&ld({..._}),dd({..._,apply:({elements:$e,rects:D,availableWidth:F,availableHeight:Q})=>{const{width:re,height:oe}=D.reference,G=$e.floating.style;G.setProperty("--radix-popper-available-width",`${F}px`),G.setProperty("--radix-popper-available-height",`${Q}px`),G.setProperty("--radix-popper-anchor-width",`${re}px`),G.setProperty("--radix-popper-anchor-height",`${oe}px`)}}),E&&fd({element:E,padding:c}),xd({arrowWidth:T,arrowHeight:$}),v&&ud({strategy:"referenceHidden",..._})]}),[R,Y]=Sa(M),Z=le(b);Ce(()=>{j&&(Z==null||Z())},[j,Z]);const ne=(ye=k.arrow)==null?void 0:ye.x,J=(dt=k.arrow)==null?void 0:dt.y,te=((Kt=k.arrow)==null?void 0:Kt.centerOffset)!==0,[ie,Oe]=i.useState();return Ce(()=>{y&&Oe(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:j?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[(ut=k.transformOrigin)==null?void 0:ut.x,(Yt=k.transformOrigin)==null?void 0:Yt.y].join(" "),...((et=k.hide)==null?void 0:et.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(vd,{scope:n,placedSide:R,onArrowChange:C,arrowX:ne,arrowY:J,shouldHideArrow:te,children:u.jsx(K.div,{"data-side":R,"data-align":Y,...p,ref:x,style:{...p.style,animation:j?void 0:"none"}})})})});ya.displayName=Fn;var wa="PopperArrow",yd={top:"bottom",right:"left",bottom:"top",left:"right"},xa=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=bd(wa,r),s=yd[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(hd,{...o,ref:n,style:{...o.style,display:"block"}})})});xa.displayName=wa;function wd(e){return e!==null}var xd=e=>({name:"transformOrigin",options:e,fn(t){var m,y,w;const{placement:n,rects:r,middlewareData:o}=t,s=((m=o.arrow)==null?void 0:m.centerOffset)!==0,c=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[l,f]=Sa(n),h={start:"0%",center:"50%",end:"100%"}[f],v=(((y=o.arrow)==null?void 0:y.x)??0)+c/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+d/2;let b="",p="";return l==="bottom"?(b=s?h:`${v}px`,p=`${-d}px`):l==="top"?(b=s?h:`${v}px`,p=`${r.floating.height+d}px`):l==="right"?(b=`${-d}px`,p=s?h:`${g}px`):l==="left"&&(b=`${r.floating.width+d}px`,p=s?h:`${g}px`),{data:{x:b,y:p}}}});function Sa(e){const[t,n="center"]=e.split("-");return[t,n]}var Sd=ma,Ed=ba,Cd=ya,Td=xa,Pd="VisuallyHidden",$t=i.forwardRef((e,t)=>u.jsx(K.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}}));$t.displayName=Pd;var Nd=$t,[zt,zu]=rt("Tooltip",[ha]),Wt=ha(),Ea="TooltipProvider",Ad=700,$n="tooltip.open",[Od,zn]=zt(Ea),Ca=e=>{const{__scopeTooltip:t,delayDuration:n=Ad,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[s,c]=i.useState(!0),d=i.useRef(!1),l=i.useRef(0);return i.useEffect(()=>{const f=l.current;return()=>window.clearTimeout(f)},[]),u.jsx(Od,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(l.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(f=>{d.current=f},[]),disableHoverableContent:o,children:a})};Ca.displayName=Ea;var Bt="Tooltip",[Md,it]=zt(Bt),Ta=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,d=zn(Bt,e.__scopeTooltip),l=Wt(t),[f,h]=i.useState(null),v=vt(),g=i.useRef(0),b=s??d.disableHoverableContent,p=c??d.delayDuration,m=i.useRef(!1),[y=!1,w]=an({prop:r,defaultProp:o,onChange:T=>{T?(d.onOpen(),document.dispatchEvent(new CustomEvent($n))):d.onClose(),a==null||a(T)}}),x=i.useMemo(()=>y?m.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(g.current),g.current=0,m.current=!1,w(!0)},[w]),C=i.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),S=i.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{m.current=!0,w(!0),g.current=0},p)},[p,w]);return i.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(Sd,{...l,children:u.jsx(Md,{scope:t,contentId:v,open:y,stateAttribute:x,trigger:f,onTriggerChange:h,onTriggerEnter:i.useCallback(()=>{d.isOpenDelayed?S():E()},[d.isOpenDelayed,S,E]),onTriggerLeave:i.useCallback(()=>{b?C():(window.clearTimeout(g.current),g.current=0)},[C,b]),onOpen:E,onClose:C,disableHoverableContent:b,children:n})})};Ta.displayName=Bt;var Wn="TooltipTrigger",Pa=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=it(Wn,n),a=zn(Wn,n),s=Wt(n),c=i.useRef(null),d=ee(t,c,o.onTriggerChange),l=i.useRef(!1),f=i.useRef(!1),h=i.useCallback(()=>l.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(Ed,{asChild:!0,...s,children:u.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:U(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:U(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:U(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:U(e.onBlur,o.onClose),onClick:U(e.onClick,o.onClose)})})});Pa.displayName=Wn;var Bn="TooltipPortal",[kd,_d]=zt(Bn,{forceMount:void 0}),Na=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=it(Bn,t);return u.jsx(kd,{scope:t,forceMount:n,children:u.jsx(Le,{present:n||a.open,children:u.jsx(yt,{asChild:!0,container:o,children:r})})})};Na.displayName=Bn;var Je="TooltipContent",Aa=i.forwardRef((e,t)=>{const n=_d(Je,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=it(Je,e.__scopeTooltip);return u.jsx(Le,{present:r||s.open,children:s.disableHoverableContent?u.jsx(Oa,{side:o,...a,ref:t}):u.jsx(Id,{side:o,...a,ref:t})})}),Id=i.forwardRef((e,t)=>{const n=it(Je,e.__scopeTooltip),r=zn(Je,e.__scopeTooltip),o=i.useRef(null),a=ee(t,o),[s,c]=i.useState(null),{trigger:d,onClose:l}=n,f=o.current,{onPointerInTransitChange:h}=r,v=i.useCallback(()=>{c(null),h(!1)},[h]),g=i.useCallback((b,p)=>{const m=b.currentTarget,y={x:b.clientX,y:b.clientY},w=Fd(y,m.getBoundingClientRect()),x=$d(y,w),E=zd(p.getBoundingClientRect()),C=Bd([...x,...E]);c(C),h(!0)},[h]);return i.useEffect(()=>()=>v(),[v]),i.useEffect(()=>{if(d&&f){const b=m=>g(m,f),p=m=>g(m,d);return d.addEventListener("pointerleave",b),f.addEventListener("pointerleave",p),()=>{d.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",p)}}},[d,f,g,v]),i.useEffect(()=>{if(s){const b=p=>{const m=p.target,y={x:p.clientX,y:p.clientY},w=(d==null?void 0:d.contains(m))||(f==null?void 0:f.contains(m)),x=!Wd(y,s);w?v():x&&(v(),l())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[d,f,s,l,v]),u.jsx(Oa,{...e,ref:a})}),[Dd,Ld]=zt(Bt,{isInside:!1}),Oa=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,d=it(Je,n),l=Wt(n),{onClose:f}=d;return i.useEffect(()=>(document.addEventListener($n,f),()=>document.removeEventListener($n,f)),[f]),i.useEffect(()=>{if(d.trigger){const h=v=>{const g=v.target;g!=null&&g.contains(d.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[d.trigger,f]),u.jsx(bt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:u.jsxs(Cd,{"data-state":d.stateAttribute,...l,...c,ref:t,style:{...c.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:[u.jsx(zr,{children:r}),u.jsx(Dd,{scope:n,isInside:!0,children:u.jsx(Nd,{id:d.contentId,role:"tooltip",children:o||r})})]})})});Aa.displayName=Je;var Ma="TooltipArrow",Rd=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(n);return Ld(Ma,n).isInside?null:u.jsx(Td,{...o,...r,ref:t})});Rd.displayName=Ma;function Fd(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function $d(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function zd(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Wd(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,d=t[a].y,l=t[s].x,f=t[s].y;d>r!=f>r&&n<(l-c)*(r-d)/(f-d)+c&&(o=!o)}return o}function Bd(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Vd(t)}function Vd(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}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 Hd=Ca,jd=Ta,Gd=Pa,Ud=Na,ka=Aa;const _a=Hd,Ia=jd,Da=Gd,Vn=i.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(Ud,{children:u.jsx(ka,{ref:r,sideOffset:t,className:L("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Vn.displayName=ka.displayName;const Kd="sidebar:state",Yd=60*60*24*7,Xd="16rem",qd="18rem",Zd="3rem",Qd="b",La=i.createContext(null);function ct(){const e=i.useContext(La);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Hn=i.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s},c)=>{const d=Ko(),[l,f]=i.useState(!1),[h,v]=i.useState(e),g=t??h,b=i.useCallback(w=>{const x=typeof w=="function"?w(g):w;n?n(x):v(x),document.cookie=`${Kd}=${x}; path=/; max-age=${Yd}`},[n,g]),p=i.useCallback(()=>d?f(w=>!w):b(w=>!w),[d,b,f]);i.useEffect(()=>{const w=x=>{x.key===Qd&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),p())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[p]);const m=g?"expanded":"collapsed",y=i.useMemo(()=>({state:m,open:g,setOpen:b,isMobile:d,openMobile:l,setOpenMobile:f,toggleSidebar:p}),[m,g,b,d,l,f,p]);return u.jsx(La.Provider,{value:y,children:u.jsx(_a,{delayDuration:0,children:u.jsx("div",{style:{"--sidebar-width":Xd,"--sidebar-width-icon":Zd,...o},className:L("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),ref:c,...s,children:a})})})});Hn.displayName="SidebarProvider";const jn=i.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a},s)=>{const{isMobile:c,state:d,openMobile:l,setOpenMobile:f}=ct();return n==="none"?u.jsx("div",{className:L("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),ref:s,...a,children:o}):c?u.jsx(Bo,{open:l,onOpenChange:f,...a,children:u.jsx(xn,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":qd},side:e,children:u.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):u.jsxs("div",{ref:s,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?n:"","data-variant":t,"data-side":e,children:[u.jsx("div",{className:L("duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),u.jsx("div",{className:L("duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:u.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:o})})]})});jn.displayName="Sidebar";const Gn=i.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=ct();return u.jsxs(gt,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:L("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...n,children:[u.jsx(js,{}),u.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Gn.displayName="SidebarTrigger";const Ra=i.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=ct();return u.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:L("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Ra.displayName="SidebarRail";const Fa=i.forwardRef(({className:e,...t},n)=>u.jsx("main",{ref:n,className:L("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e),...t}));Fa.displayName="SidebarInset";const $a=i.forwardRef(({className:e,...t},n)=>u.jsx(mt,{ref:n,"data-sidebar":"input",className:L("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));$a.displayName="SidebarInput";const Un=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"header",className:L("flex flex-col gap-2 p-2",e),...t}));Un.displayName="SidebarHeader";const Kn=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"footer",className:L("flex flex-col gap-2 p-2",e),...t}));Kn.displayName="SidebarFooter";const za=i.forwardRef(({className:e,...t},n)=>u.jsx(on,{ref:n,"data-sidebar":"separator",className:L("mx-2 w-auto bg-sidebar-border",e),...t}));za.displayName="SidebarSeparator";const Yn=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"content",className:L("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Yn.displayName="SidebarContent";const Wa=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"group",className:L("relative flex w-full min-w-0 flex-col p-2",e),...t}));Wa.displayName="SidebarGroup";const Ba=i.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?de:"div";return u.jsx(o,{ref:r,"data-sidebar":"group-label",className:L("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});Ba.displayName="SidebarGroupLabel";const Va=i.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?de:"button";return u.jsx(o,{ref:r,"data-sidebar":"group-action",className:L("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})});Va.displayName="SidebarGroupAction";const Ha=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"group-content",className:L("w-full text-sm",e),...t}));Ha.displayName="SidebarGroupContent";const Xn=i.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,"data-sidebar":"menu",className:L("flex w-full min-w-0 flex-col gap-1",e),...t}));Xn.displayName="SidebarMenu";const qn=i.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,"data-sidebar":"menu-item",className:L("group/menu-item relative",e),...t}));qn.displayName="SidebarMenuItem";const Jd=ht("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),Zn=i.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s},c)=>{const d=e?de:"button",{isMobile:l,state:f}=ct(),h=u.jsx(d,{ref:c,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:L(Jd({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),u.jsxs(Ia,{children:[u.jsx(Da,{asChild:!0,children:h}),u.jsx(Vn,{side:"right",align:"center",hidden:f!=="collapsed"||l,...o})]})):h});Zn.displayName="SidebarMenuButton";const ja=i.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const a=t?de:"button";return u.jsx(a,{ref:o,"data-sidebar":"menu-action",className:L("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});ja.displayName="SidebarMenuAction";const Ga=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:L("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Ga.displayName="SidebarMenuBadge";const Ua=i.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=i.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return u.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:L("rounded-md h-8 flex gap-2 px-2 items-center",e),...n,children:[t&&u.jsx(En,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),u.jsx(En,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});Ua.displayName="SidebarMenuSkeleton";const Ka=i.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:L("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ka.displayName="SidebarMenuSub";const Ya=i.forwardRef(({...e},t)=>u.jsx("li",{ref:t,...e}));Ya.displayName="SidebarMenuSubItem";const Xa=i.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},a)=>{const s=e?de:"a";return u.jsx(s,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:L("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});Xa.displayName="SidebarMenuSubButton";function eu(e){const t=e+"CollectionProvider",[n,r]=rt(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:b,children:p}=g,m=X.useRef(null),y=X.useRef(new Map).current;return u.jsx(o,{scope:b,itemMap:y,collectionRef:m,children:p})};s.displayName=t;const c=e+"CollectionSlot",d=X.forwardRef((g,b)=>{const{scope:p,children:m}=g,y=a(c,p),w=ee(b,y.collectionRef);return u.jsx(de,{ref:w,children:m})});d.displayName=c;const l=e+"CollectionItemSlot",f="data-radix-collection-item",h=X.forwardRef((g,b)=>{const{scope:p,children:m,...y}=g,w=X.useRef(null),x=ee(b,w),E=a(l,p);return X.useEffect(()=>(E.itemMap.set(w,{ref:w,...y}),()=>void E.itemMap.delete(w))),u.jsx(de,{[f]:"",ref:x,children:m})});h.displayName=l;function v(g){const b=a(e+"CollectionConsumer",g);return X.useCallback(()=>{const m=b.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((E,C)=>y.indexOf(E.ref.current)-y.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:d,ItemSlot:h},v,r]}var Qn="ToastProvider",[Jn,tu,nu]=eu("Toast"),[qa,Wu]=rt("Toast",[nu]),[ru,Vt]=qa(Qn),Za=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:s}=e,[c,d]=i.useState(null),[l,f]=i.useState(0),h=i.useRef(!1),v=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Qn}\`. Expected non-empty \`string\`.`),u.jsx(Jn.Provider,{scope:t,children:u.jsx(ru,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:l,viewport:c,onViewportChange:d,onToastAdd:i.useCallback(()=>f(g=>g+1),[]),onToastRemove:i.useCallback(()=>f(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:v,children:s})})};Za.displayName=Qn;var Qa="ToastViewport",ou=["F8"],er="toast.viewportPause",tr="toast.viewportResume",Ja=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=ou,label:o="Notifications ({hotkey})",...a}=e,s=Vt(Qa,n),c=tu(n),d=i.useRef(null),l=i.useRef(null),f=i.useRef(null),h=i.useRef(null),v=ee(t,h,s.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=s.toastCount>0;i.useEffect(()=>{const m=y=>{var x;r.length!==0&&r.every(E=>y[E]||y.code===E)&&((x=h.current)==null||x.focus())};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[r]),i.useEffect(()=>{const m=d.current,y=h.current;if(b&&m&&y){const w=()=>{if(!s.isClosePausedRef.current){const S=new CustomEvent(er);y.dispatchEvent(S),s.isClosePausedRef.current=!0}},x=()=>{if(s.isClosePausedRef.current){const S=new CustomEvent(tr);y.dispatchEvent(S),s.isClosePausedRef.current=!1}},E=S=>{!m.contains(S.relatedTarget)&&x()},C=()=>{m.contains(document.activeElement)||x()};return m.addEventListener("focusin",w),m.addEventListener("focusout",E),m.addEventListener("pointermove",w),m.addEventListener("pointerleave",C),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{m.removeEventListener("focusin",w),m.removeEventListener("focusout",E),m.removeEventListener("pointermove",w),m.removeEventListener("pointerleave",C),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[b,s.isClosePausedRef]);const p=i.useCallback(({tabbingDirection:m})=>{const w=c().map(x=>{const E=x.ref.current,C=[E,...vu(E)];return m==="forwards"?C:C.reverse()});return(m==="forwards"?w.reverse():w).flat()},[c]);return i.useEffect(()=>{const m=h.current;if(m){const y=w=>{var C,S,T;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const $=document.activeElement,I=w.shiftKey;if(w.target===m&&I){(C=l.current)==null||C.focus();return}const W=p({tabbingDirection:I?"backwards":"forwards"}),_=W.findIndex(P=>P===$);or(W.slice(_+1))?w.preventDefault():I?(S=l.current)==null||S.focus():(T=f.current)==null||T.focus()}};return m.addEventListener("keydown",y),()=>m.removeEventListener("keydown",y)}},[c,p]),u.jsxs(rc,{ref:d,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&u.jsx(nr,{ref:l,onFocusFromOutsideViewport:()=>{const m=p({tabbingDirection:"forwards"});or(m)}}),u.jsx(Jn.Slot,{scope:n,children:u.jsx(K.ol,{tabIndex:-1,...a,ref:v})}),b&&u.jsx(nr,{ref:f,onFocusFromOutsideViewport:()=>{const m=p({tabbingDirection:"backwards"});or(m)}})]})});Ja.displayName=Qa;var es="ToastFocusProxy",nr=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=Vt(es,n);return u.jsx($t,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var l;const c=s.relatedTarget;!((l=a.viewport)!=null&&l.contains(c))&&r()}})});nr.displayName=es;var Ht="Toast",au="toast.swipeStart",su="toast.swipeMove",iu="toast.swipeCancel",cu="toast.swipeEnd",ts=i.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[c=!0,d]=an({prop:r,defaultProp:o,onChange:a});return u.jsx(Le,{present:n||c,children:u.jsx(uu,{open:c,...s,ref:t,onClose:()=>d(!1),onPause:le(e.onPause),onResume:le(e.onResume),onSwipeStart:U(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:U(e.onSwipeMove,l=>{const{x:f,y:h}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:U(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:U(e.onSwipeEnd,l=>{const{x:f,y:h}=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",`${f}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),d(!1)})})})});ts.displayName=Ht;var[lu,du]=qa(Ht,{onClose(){}}),uu=i.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:s,onEscapeKeyDown:c,onPause:d,onResume:l,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:v,onSwipeEnd:g,...b}=e,p=Vt(Ht,n),[m,y]=i.useState(null),w=ee(t,P=>y(P)),x=i.useRef(null),E=i.useRef(null),C=o||p.duration,S=i.useRef(0),T=i.useRef(C),$=i.useRef(0),{onToastAdd:I,onToastRemove:z}=p,H=le(()=>{var B;(m==null?void 0:m.contains(document.activeElement))&&((B=p.viewport)==null||B.focus()),s()}),W=i.useCallback(P=>{!P||P===1/0||(window.clearTimeout($.current),S.current=new Date().getTime(),$.current=window.setTimeout(H,P))},[H]);i.useEffect(()=>{const P=p.viewport;if(P){const B=()=>{W(T.current),l==null||l()},M=()=>{const j=new Date().getTime()-S.current;T.current=T.current-j,window.clearTimeout($.current),d==null||d()};return P.addEventListener(er,M),P.addEventListener(tr,B),()=>{P.removeEventListener(er,M),P.removeEventListener(tr,B)}}},[p.viewport,C,d,l,W]),i.useEffect(()=>{a&&!p.isClosePausedRef.current&&W(C)},[a,C,p.isClosePausedRef,W]),i.useEffect(()=>(I(),()=>z()),[I,z]);const _=i.useMemo(()=>m?cs(m):null,[m]);return p.viewport?u.jsxs(u.Fragment,{children:[_&&u.jsx(fu,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:_}),u.jsx(lu,{scope:n,onClose:H,children:qt.createPortal(u.jsx(Jn.ItemSlot,{scope:n,children:u.jsx(nc,{asChild:!0,onEscapeKeyDown:U(c,()=>{p.isFocusedToastEscapeKeyDownRef.current||H(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(K.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":p.swipeDirection,...b,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:U(e.onKeyDown,P=>{P.key==="Escape"&&(c==null||c(P.nativeEvent),P.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:U(e.onPointerDown,P=>{P.button===0&&(x.current={x:P.clientX,y:P.clientY})}),onPointerMove:U(e.onPointerMove,P=>{if(!x.current)return;const B=P.clientX-x.current.x,M=P.clientY-x.current.y,j=!!E.current,k=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,Y=k?R(0,B):0,Z=k?0:R(0,M),ne=P.pointerType==="touch"?10:2,J={x:Y,y:Z},te={originalEvent:P,delta:J};j?(E.current=J,jt(su,h,te,{discrete:!1})):ls(J,p.swipeDirection,ne)?(E.current=J,jt(au,f,te,{discrete:!1}),P.target.setPointerCapture(P.pointerId)):(Math.abs(B)>ne||Math.abs(M)>ne)&&(x.current=null)}),onPointerUp:U(e.onPointerUp,P=>{const B=E.current,M=P.target;if(M.hasPointerCapture(P.pointerId)&&M.releasePointerCapture(P.pointerId),E.current=null,x.current=null,B){const j=P.currentTarget,k={originalEvent:P,delta:B};ls(B,p.swipeDirection,p.swipeThreshold)?jt(cu,g,k,{discrete:!0}):jt(iu,v,k,{discrete:!0}),j.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),fu=e=>{const{__scopeToast:t,children:n,...r}=e,o=Vt(Ht,t),[a,s]=i.useState(!1),[c,d]=i.useState(!1);return gu(()=>s(!0)),i.useEffect(()=>{const l=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(l)},[]),c?null:u.jsx(yt,{asChild:!0,children:u.jsx($t,{...r,children:a&&u.jsxs(u.Fragment,{children:[o.label," ",n]})})})},pu="ToastTitle",ns=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(K.div,{...r,ref:t})});ns.displayName=pu;var hu="ToastDescription",rs=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(K.div,{...r,ref:t})});rs.displayName=hu;var os="ToastAction",as=i.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(is,{altText:n,asChild:!0,children:u.jsx(rr,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${os}\`. Expected non-empty \`string\`.`),null)});as.displayName=os;var ss="ToastClose",rr=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=du(ss,n);return u.jsx(is,{asChild:!0,children:u.jsx(K.button,{type:"button",...r,ref:t,onClick:U(e.onClick,o.onClose)})})});rr.displayName=ss;var is=i.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return u.jsx(K.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cs(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),mu(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...cs(r))}}),t}function jt(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hr(o,a):o.dispatchEvent(a)}var ls=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function gu(e=()=>{}){const t=le(e);Ce(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function mu(e){return e.nodeType===e.ELEMENT_NODE}function vu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function or(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var bu=Za,ds=Ja,us=ts,fs=ns,ps=rs,hs=as,gs=rr;const ms=bu,ar=i.forwardRef(({className:e,...t},n)=>u.jsx(ds,{ref:n,className:L("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ar.displayName=ds.displayName;const yu=ht("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground",success:"border-green-600 bg-green-600 text-white",warning:"border-yellow-500 bg-yellow-500 text-white",info:"border-blue-500 bg-blue-500 text-white",secondary:"border-secondary bg-secondary text-secondary-foreground",outline:"border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{variant:"default"}}),sr=i.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(us,{ref:r,className:L(yu({variant:t}),e),...n}));sr.displayName=us.displayName;const vs=i.forwardRef(({className:e,...t},n)=>u.jsx(hs,{ref:n,className:L("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-hidden focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",e),...t}));vs.displayName=hs.displayName;const ir=i.forwardRef(({className:e,...t},n)=>u.jsx(gs,{ref:n,className:L("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-50 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(Er,{className:"h-4 w-4"})}));ir.displayName=gs.displayName;const cr=i.forwardRef(({className:e,...t},n)=>u.jsx(fs,{ref:n,className:L("text-sm font-semibold [&+div]:text-xs",e),...t}));cr.displayName=fs.displayName;const lr=i.forwardRef(({className:e,...t},n)=>u.jsx(ps,{ref:n,className:L("text-sm opacity-90",e),...t}));lr.displayName=ps.displayName;const wu=1,xu=1e6;let dr=0;function Su(){return dr=(dr+1)%Number.MAX_SAFE_INTEGER,dr.toString()}const ur=new Map,bs=e=>{if(ur.has(e))return;const t=setTimeout(()=>{ur.delete(e),lt({type:"REMOVE_TOAST",toastId:e})},xu);ur.set(e,t)},Eu=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,wu)};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?bs(n):e.toasts.forEach(r=>bs(r.id)),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return{...e,toasts:t.toastId?e.toasts.filter(n=>n.id!==t.toastId):[]}}},Gt=[];let Ut={toasts:[]};function lt(e){Ut=Eu(Ut,e),Gt.forEach(t=>t(Ut))}function ys({...e}){const t=Su(),n=o=>lt({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>lt({type:"DISMISS_TOAST",toastId:t});return lt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function fr(){const[e,t]=i.useState(Ut);return i.useEffect(()=>(Gt.push(t),()=>{const n=Gt.indexOf(t);n>-1&&Gt.splice(n,1)}),[]),{...e,toast:ys,dismiss:n=>lt({type:"DISMISS_TOAST",toastId:n})}}function ws(){const{toasts:e}=fr();return u.jsxs(ms,{children:[e.map(function({id:t,title:n,description:r,action:o,...a}){return u.jsxs(sr,{...a,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(cr,{children:n}),r&&u.jsx(lr,{children:r})]}),o,u.jsx(ir,{})]},t)}),u.jsx(ar,{})]})}function xs({onSignOut:e,searchResultsRouteName:t}){const[n,r]=X.useState(""),o=tt.useNavigate(),{toast:a}=fr(),{appID:s}=tt.useParams(),c=()=>{const l=n.trim();if(!l||l.length<2){a({title:"Enter more characters to search",description:"At least 2 characters are needed to search products.",variant:"destructive",duration:5e3});return}const f=new URLSearchParams({q:l});o({pathname:`/${s}/${t}`,search:f.toString()}),r("")},d=l=>{l.key==="Enter"&&c()};return u.jsxs("header",{className:"flex h-16 items-center gap-4 border-b dark text-foreground bg-background px-6 fixed top-0 right-0 z-50 lg:left-64 left-0",children:[u.jsx(Gn,{className:"lg:hidden",children:u.jsx(Vs,{className:"h-6 w-6"})}),u.jsx("div",{className:"flex flex-1 items-center gap-4",children:u.jsx("div",{className:"relative w-full max-w-sm",children:u.jsxs("div",{children:[u.jsx("button",{type:"button",className:"absolute left-2 top-1/2 -translate-y-1/2",onClick:c,"aria-label":"Search",children:u.jsx(Gs,{className:"h-4 w-4 text-muted-foreground"})}),u.jsx(mt,{placeholder:"Search...",className:"w-full pl-8 bg-white text-black",value:n,onChange:l=>r(l.target.value),onKeyDown:d})]})})}),u.jsx("div",{className:"flex items-center gap-4",children:u.jsxs(gt,{variant:"ghost",size:"icon",className:"h-9 w-9",onClick:e,children:[u.jsx(Bs,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Sign out"})]})})]})}function Ss({routes:e,getMyAccountPath:t,publicName:n,applicationName:r,dashboardTitle:o="Partner Dashboard"}){const{appID:a}=tt.useParams(),s=e.filter(h=>h.showInNav),c=`https://api.randmar.io/v4/Partner/${a}/Account/Logo?height=72&width=72`,[d,l]=X.useState(!1),f=()=>{l(!0)};return u.jsxs(jn,{className:"border-r dark",children:[u.jsx(Un,{className:"border-b px-6 h-16 justify-center bg-background text-foreground",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"flex items-center justify-center",children:u.jsx("img",{src:"https://api.randmar.io/images/RandmarIcon.svg",alt:"Randmar Icon",className:"h-4 w-4 filter brightness-0 saturate-100 invert"})}),u.jsx("span",{className:"font-semibold text-lg",children:o})]})}),u.jsx(Yn,{className:"py-4 bg-background text-foreground",children:u.jsx(Xn,{children:s.map(h=>{const v=h.icon,g=`/${h.path.replace(":appID",a)}`;return u.jsx(qn,{children:u.jsx(Zn,{asChild:!0,children:u.jsxs(tt.Link,{to:g,className:"transition-colors hover:bg-muted px-6",children:[v&&u.jsx(v,{className:"h-4 w-4"}),u.jsx("span",{children:h.label})]})})},h.key)})})}),u.jsx(Kn,{className:"border-t p-4 bg-background text-foreground",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-muted",children:d?u.jsx(tt.Link,{to:`${t(a)}#brand`,className:"transition-colors hover:bg-muted px-6",children:u.jsx(Us,{className:"h-5 w-5 text-muted-foreground"})}):u.jsx("img",{src:c,alt:"Partner logo",className:"h-9 w-9 object-cover bg-neutral-100",onError:f})}),u.jsxs("div",{className:"flex flex-1 flex-col",children:[u.jsx("span",{className:"text-sm font-medium",children:n||"Partner"}),u.jsx("span",{className:"text-xs text-muted-foreground",children:r})]})]})})]})}function Cu({children:e,routes:t,searchResultsRouteName:n="search",getMyAccountPath:r,accountData:o,applicationName:a,dashboardTitle:s,onSignOut:c}){return u.jsx(u.Fragment,{children:u.jsx(Hn,{children:u.jsxs("div",{className:"flex grow",children:[u.jsx(Ss,{routes:t,getMyAccountPath:r,publicName:o==null?void 0:o.PublicName,applicationName:a,dashboardTitle:s}),u.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[u.jsx(xs,{onSignOut:c,searchResultsRouteName:n}),u.jsx("main",{className:"flex-1 overflow-auto mt-16",children:e}),u.jsx(ws,{})]})]})})})}N.Button=gt,N.Input=mt,N.InputOTP=Ii,N.InputOTPGroup=Di,N.InputOTPSeparator=Ri,N.InputOTPSlot=Li,N.Layout=Cu,N.Navbar=Ss,N.Separator=on,N.Sheet=Bo,N.SheetClose=hl,N.SheetContent=xn,N.SheetDescription=Uo,N.SheetFooter=jo,N.SheetHeader=Ho,N.SheetOverlay=wn,N.SheetPortal=Vo,N.SheetTitle=Go,N.SheetTrigger=pl,N.Sidebar=jn,N.SidebarContent=Yn,N.SidebarFooter=Kn,N.SidebarGroup=Wa,N.SidebarGroupAction=Va,N.SidebarGroupContent=Ha,N.SidebarGroupLabel=Ba,N.SidebarHeader=Un,N.SidebarInput=$a,N.SidebarInset=Fa,N.SidebarMenu=Xn,N.SidebarMenuAction=ja,N.SidebarMenuBadge=Ga,N.SidebarMenuButton=Zn,N.SidebarMenuItem=qn,N.SidebarMenuSkeleton=Ua,N.SidebarMenuSub=Ka,N.SidebarMenuSubButton=Xa,N.SidebarMenuSubItem=Ya,N.SidebarProvider=Hn,N.SidebarRail=Ra,N.SidebarSeparator=za,N.SidebarTrigger=Gn,N.Skeleton=En,N.Toast=sr,N.ToastAction=vs,N.ToastClose=ir,N.ToastDescription=lr,N.ToastProvider=ms,N.ToastTitle=cr,N.ToastViewport=ar,N.Toaster=ws,N.Tooltip=Ia,N.TooltipContent=Vn,N.TooltipProvider=_a,N.TooltipTrigger=Da,N.Topbar=xs,N.buttonVariants=Vr,N.toast=ys,N.useIsMobile=Ko,N.useSidebar=ct,N.useToast=fr,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
package/package.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "randmarcomps",
3
+ "private": false,
4
+ "version": "1.0.0",
5
+ "description": "The UI library enabling speed and consistency in Randmar frontends.",
6
+ "type": "module",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "main": "./dist/randmarcomps.umd.cjs",
11
+ "module": "./dist/randmarcomps.js",
12
+ "types": "./dist/randmarcomps.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/randmarcomps.d.ts",
16
+ "import": "./dist/randmarcomps.js",
17
+ "require": "./dist/randmarcomps.umd.cjs"
18
+ }
19
+ },
20
+
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://dev.azure.com/randmar/Randmar%20Open%20Source/_git/randmarcomps"
24
+ },
25
+ "author": "Randmar Inc.",
26
+ "license": "MIT",
27
+ "homepage": "https://dev.azure.com/randmar/Randmar%20Open%20Source/_git/randmarcomps",
28
+
29
+ "publishConfig": {
30
+ "registry": "https://registry.npmjs.org/"
31
+ },
32
+
33
+ "scripts": {
34
+ "dev": "vite",
35
+ "build": "vite build",
36
+ "lint": "eslint .",
37
+ "ladle-build": "npx ladle build",
38
+ "ladle-preview": "npx ladle preview",
39
+ "ladle-dev": "npx ladle serve"
40
+ },
41
+ "peerDependencies": {
42
+ "react": "^19.0.0",
43
+ "react-dom": "^19.0.0",
44
+ "react-router-dom": "^7.3.0",
45
+ "tailwindcss": "^4.0.0"
46
+ },
47
+ "devDependencies": {
48
+ "@eslint/js": "^9.21.0",
49
+ "@tailwindcss/vite": "^4.0.12",
50
+ "@types/node": "^22.13.10",
51
+ "@types/react": "^19.0.10",
52
+ "@types/react-dom": "^19.0.4",
53
+ "@vitejs/plugin-react": "^4.3.4",
54
+ "eslint": "^9.21.0",
55
+ "eslint-plugin-react-hooks": "^5.1.0",
56
+ "eslint-plugin-react-refresh": "^0.4.19",
57
+ "globals": "^15.15.0",
58
+ "tailwindcss": "^4.0.12",
59
+ "typescript": "~5.7.2",
60
+ "typescript-eslint": "^8.24.1",
61
+ "vite": "^6.2.0",
62
+ "vite-plugin-dts": "^4.5.3"
63
+ },
64
+ "dependencies": {
65
+ "@ladle/react": "^5.0.1",
66
+ "@radix-ui/react-alert-dialog": "^1.1.6",
67
+ "@radix-ui/react-avatar": "^1.1.3",
68
+ "@radix-ui/react-checkbox": "^1.1.4",
69
+ "@radix-ui/react-dialog": "^1.1.6",
70
+ "@radix-ui/react-label": "^2.1.2",
71
+ "@radix-ui/react-popover": "^1.1.6",
72
+ "@radix-ui/react-progress": "^1.1.2",
73
+ "@radix-ui/react-radio-group": "^1.2.3",
74
+ "@radix-ui/react-scroll-area": "^1.2.3",
75
+ "@radix-ui/react-select": "^2.1.6",
76
+ "@radix-ui/react-separator": "^1.1.2",
77
+ "@radix-ui/react-slot": "^1.1.2",
78
+ "@radix-ui/react-switch": "^1.1.3",
79
+ "@radix-ui/react-tabs": "^1.1.3",
80
+ "@radix-ui/react-toast": "^1.2.6",
81
+ "@radix-ui/react-tooltip": "^1.1.8",
82
+ "class-variance-authority": "^0.7.1",
83
+ "clsx": "^2.1.1",
84
+ "i": "^0.3.7",
85
+ "input-otp": "^1.4.2",
86
+ "lucide-react": "^0.479.0",
87
+ "npm": "^11.2.0",
88
+ "tailwind-merge": "^3.0.2",
89
+ "tailwindcss-animate": "^1.0.7"
90
+ }
91
+ }