commerce-toolkit 0.0.26 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/spinner.d.ts +17 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/toaster/index.d.ts +2 -0
- package/dist/components/toaster/index.d.ts.map +1 -0
- package/dist/components/toaster/toaster.d.ts +25 -0
- package/dist/components/toaster/toaster.d.ts.map +1 -0
- package/dist/index.cjs +31 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4306 -3462
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),_=require("react"),jn=require("react-dom");function Nn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=Nn(_),Tn=Nn(jn);function xi({className:e,colorScheme:t="light",items:r,...n}){return c.jsx(uo,{className:e,colorScheme:t,...n,children:r.map(({content:o,title:a,value:s})=>c.jsxs(co,{value:s,children:[c.jsx(mo,{children:c.jsxs(vo,{children:[c.jsx(ho,{children:a}),c.jsx(go,{})]})}),c.jsx(fo,{children:c.jsx(po,{children:o})})]},s))})}function Ee(e,t=[]){let r=[];function n(a,s){const i=l.createContext(s),u=r.length;r=[...r,s];const d=p=>{const{scope:m,children:h,...v}=p,g=m?.[e]?.[u]||i,b=l.useMemo(()=>v,Object.values(v));return c.jsx(g.Provider,{value:b,children:h})};d.displayName=a+"Provider";function f(p,m){const h=m?.[e]?.[u]||i,v=l.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(s=>l.createContext(s));return function(i){const u=i?.[e]||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[n,wi(o,...t)]}function wi(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:u,scopeName:d})=>{const p=u(a)[`__scope${d}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Jr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nt(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Jr(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Jr(e[o],null)}}}}function G(...e){return l.useCallback(nt(...e),e)}function Rt(e){const t=yi(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),u=i.find(Si);if(u){const d=u.props.children,f=i.map(p=>p===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:p);return c.jsx(t,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function yi(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=Ai(o),i=Ri(a,o.props);return o.type!==l.Fragment&&(i.ref=n?nt(n,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ci=Symbol("radix.slottable");function Si(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ci}function Ri(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Ai(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function xr(e){const t=e+"CollectionProvider",[r,n]=Ee(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:b,children:x}=g,w=_.useRef(null),y=_.useRef(new Map).current;return c.jsx(o,{scope:b,itemMap:y,collectionRef:w,children:x})};s.displayName=t;const i=e+"CollectionSlot",u=Rt(i),d=_.forwardRef((g,b)=>{const{scope:x,children:w}=g,y=a(i,x),C=G(b,y.collectionRef);return c.jsx(u,{ref:C,children:w})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=Rt(f),h=_.forwardRef((g,b)=>{const{scope:x,children:w,...y}=g,C=_.useRef(null),A=G(b,C),j=a(f,x);return _.useEffect(()=>(j.itemMap.set(C,{ref:C,...y}),()=>void j.itemMap.delete(C))),c.jsx(m,{[p]:"",ref:A,children:w})});h.displayName=f;function v(g){const b=a(e+"CollectionConsumer",g);return _.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((j,E)=>y.indexOf(j.ref.current)-y.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:d,ItemSlot:h},v,n]}function O(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var fe=globalThis?.document?l.useLayoutEffect:()=>{},Ei=l[" useInsertionEffect ".trim().toString()]||fe;function je({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=ki({defaultProp:t,onChange:r}),i=e!==void 0,u=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const d=l.useCallback(f=>{if(i){const p=Pi(f)?f(e):f;p!==e&&s.current?.(p)}else a(f)},[i,e,a,s]);return[u,d]}function ki({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return Ei(()=>{a.current=t},[t]),l.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function Pi(e){return typeof e=="function"}var Mi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=Mi.reduce((e,t)=>{const r=Rt(`Primitive.${t}`),n=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function In(e,t){e&&Tn.flushSync(()=>e.dispatchEvent(t))}function _i(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var me=e=>{const{present:t,children:r}=e,n=ji(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=G(n.ref,Ni(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};me.displayName="Presence";function ji(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,u]=_i(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=ft(n.current);a.current=i==="mounted"?d:"none"},[i]),fe(()=>{const d=n.current,f=o.current;if(f!==e){const m=a.current,h=ft(d);e?u("MOUNT"):h==="none"||d?.display==="none"?u("UNMOUNT"):u(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),fe(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const g=ft(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(u("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=h=>{h.target===t&&(a.current=ft(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function ft(e){return e?.animationName||"none"}function Ni(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ti=l[" useId ".trim().toString()]||(()=>{}),Ii=0;function Me(e){const[t,r]=l.useState(Ti());return fe(()=>{r(n=>n??String(Ii++))},[e]),t?`radix-${t}`:""}var Ot="Collapsible",[Oi,On]=Ee(Ot),[Di,wr]=Oi(Ot),Dn=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[u,d]=je({prop:n,defaultProp:o??!1,onChange:s,caller:Ot});return c.jsx(Di,{scope:r,disabled:a,contentId:Me(),open:u,onOpenToggle:l.useCallback(()=>d(f=>!f),[d]),children:c.jsx(H.div,{"data-state":Cr(u),"data-disabled":a?"":void 0,...i,ref:t})})});Dn.displayName=Ot;var Ln="CollapsibleTrigger",Fn=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=wr(Ln,r);return c.jsx(H.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Cr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:O(e.onClick,o.onOpenToggle)})});Fn.displayName=Ln;var yr="CollapsibleContent",Bn=l.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=wr(yr,e.__scopeCollapsible);return c.jsx(me,{present:r||o.open,children:({present:a})=>c.jsx(Li,{...n,ref:t,present:a})})});Bn.displayName=yr;var Li=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,s=wr(yr,r),[i,u]=l.useState(n),d=l.useRef(null),f=G(t,d),p=l.useRef(0),m=p.current,h=l.useRef(0),v=h.current,g=s.open||i,b=l.useRef(g),x=l.useRef(void 0);return l.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),fe(()=>{const w=d.current;if(w){x.current=x.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const y=w.getBoundingClientRect();p.current=y.height,h.current=y.width,b.current||(w.style.transitionDuration=x.current.transitionDuration,w.style.animationName=x.current.animationName),u(n)}},[s.open,n]),c.jsx(H.div,{"data-state":Cr(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&o})});function Cr(e){return e?"open":"closed"}var Fi=Dn,Bi=Fn,$i=Bn,zi=l.createContext(void 0);function Dt(e){const t=l.useContext(zi);return e||t||"ltr"}var ie="Accordion",Wi=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Sr,Vi,Hi]=xr(ie),[Lt]=Ee(ie,[Hi,On]),Rr=On(),$n=_.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return c.jsx(Sr.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?c.jsx(Yi,{...a,ref:t}):c.jsx(Ki,{...o,ref:t})})});$n.displayName=ie;var[zn,Ui]=Lt(ie),[Wn,Gi]=Lt(ie,{collapsible:!1}),Ki=_.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[i,u]=je({prop:r,defaultProp:n??"",onChange:o,caller:ie});return c.jsx(zn,{scope:e.__scopeAccordion,value:_.useMemo(()=>i?[i]:[],[i]),onItemOpen:u,onItemClose:_.useCallback(()=>a&&u(""),[a,u]),children:c.jsx(Wn,{scope:e.__scopeAccordion,collapsible:a,children:c.jsx(Vn,{...s,ref:t})})})}),Yi=_.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[s,i]=je({prop:r,defaultProp:n??[],onChange:o,caller:ie}),u=_.useCallback(f=>i((p=[])=>[...p,f]),[i]),d=_.useCallback(f=>i((p=[])=>p.filter(m=>m!==f)),[i]);return c.jsx(zn,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:d,children:c.jsx(Wn,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(Vn,{...a,ref:t})})})}),[Xi,Ft]=Lt(ie),Vn=_.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...s}=e,i=_.useRef(null),u=G(i,t),d=Vi(r),p=Dt(o)==="ltr",m=O(e.onKeyDown,h=>{if(!Wi.includes(h.key))return;const v=h.target,g=d().filter(S=>!S.ref.current?.disabled),b=g.findIndex(S=>S.ref.current===v),x=g.length;if(b===-1)return;h.preventDefault();let w=b;const y=0,C=x-1,A=()=>{w=b+1,w>C&&(w=y)},j=()=>{w=b-1,w<y&&(w=C)};switch(h.key){case"Home":w=y;break;case"End":w=C;break;case"ArrowRight":a==="horizontal"&&(p?A():j());break;case"ArrowDown":a==="vertical"&&A();break;case"ArrowLeft":a==="horizontal"&&(p?j():A());break;case"ArrowUp":a==="vertical"&&j();break}const E=w%x;g[E].ref.current?.focus()});return c.jsx(Xi,{scope:r,disabled:n,direction:o,orientation:a,children:c.jsx(Sr.Slot,{scope:r,children:c.jsx(H.div,{...s,"data-orientation":a,ref:u,onKeyDown:n?void 0:m})})})}),At="AccordionItem",[qi,Ar]=Lt(At),Hn=_.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=Ft(At,r),s=Ui(At,r),i=Rr(r),u=Me(),d=n&&s.value.includes(n)||!1,f=a.disabled||e.disabled;return c.jsx(qi,{scope:r,open:d,disabled:f,triggerId:u,children:c.jsx(Fi,{"data-orientation":a.orientation,"data-state":qn(d),...i,...o,ref:t,disabled:f,open:d,onOpenChange:p=>{p?s.onItemOpen(n):s.onItemClose(n)}})})});Hn.displayName=At;var Un="AccordionHeader",Gn=_.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Ft(ie,r),a=Ar(Un,r);return c.jsx(H.h3,{"data-orientation":o.orientation,"data-state":qn(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});Gn.displayName=Un;var cr="AccordionTrigger",Kn=_.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Ft(ie,r),a=Ar(cr,r),s=Gi(cr,r),i=Rr(r);return c.jsx(Sr.ItemSlot,{scope:r,children:c.jsx(Bi,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...i,...n,ref:t})})});Kn.displayName=cr;var Yn="AccordionContent",Xn=_.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Ft(ie,r),a=Ar(Yn,r),s=Rr(r);return c.jsx($i,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Xn.displayName=Yn;function qn(e){return e?"open":"closed"}var Zi=$n,Qi=Hn,Ji=Gn,ec=Kn,tc=Xn;function Zn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function rc(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zn(e))&&(n&&(n+=" "),n+=t);return n}const Er="-",nc=e=>{const t=ac(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(Er);return i[0]===""&&i.length!==1&&i.shift(),Qn(i,t)||oc(s)},getConflictingClassGroupIds:(s,i)=>{const u=r[s]||[];return i&&n[s]?[...u,...n[s]]:u}}},Qn=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Qn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Er);return t.validators.find(({validator:s})=>s(a))?.classGroupId},en=/^\[(.+)\]$/,oc=e=>{if(en.test(e)){const t=en.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ac=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)lr(r[o],n,o,t);return n},lr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:tn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(sc(o)){lr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{lr(s,tn(t,a),r,n)})})},tn=(e,t)=>{let r=e;return t.split(Er).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},sc=e=>e.isThemeGetter,ic=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},ur="!",dr=":",cc=dr.length,lc=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,u=0,d;for(let v=0;v<o.length;v++){let g=o[v];if(s===0&&i===0){if(g===dr){a.push(o.slice(u,v)),u=v+cc;continue}if(g==="/"){d=v;continue}}g==="["?s++:g==="]"?s--:g==="("?i++:g===")"&&i--}const f=a.length===0?o:o.substring(u),p=uc(f),m=p!==f,h=d&&d>u?d-u:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+dr,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},uc=e=>e.endsWith(ur)?e.substring(0,e.length-1):e.startsWith(ur)?e.substring(1):e,dc=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},fc=e=>({cache:ic(e.cacheSize),parseClassName:lc(e),sortModifiers:dc(e),...nc(e)}),pc=/\s+/,mc=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(pc);let u="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:p,modifiers:m,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:g}=r(f);if(p){u=f+(u.length>0?" "+u:u);continue}let b=!!g,x=n(b?v.substring(0,g):v);if(!x){if(!b){u=f+(u.length>0?" "+u:u);continue}if(x=n(v),!x){u=f+(u.length>0?" "+u:u);continue}b=!1}const w=a(m).join(":"),y=h?w+ur:w,C=y+x;if(s.includes(C))continue;s.push(C);const A=o(x,b);for(let j=0;j<A.length;++j){const E=A[j];s.push(y+E)}u=f+(u.length>0?" "+u:u)}return u};function hc(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Jn(t))&&(n&&(n+=" "),n+=r);return n}const Jn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Jn(e[n]))&&(r&&(r+=" "),r+=t);return r};function gc(e,...t){let r,n,o,a=s;function s(u){const d=t.reduce((f,p)=>p(f),e());return r=fc(d),n=r.cache.get,o=r.cache.set,a=i,i(u)}function i(u){const d=n(u);if(d)return d;const f=mc(u,r);return o(u,f),f}return function(){return a(hc.apply(null,arguments))}}const q=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},eo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,to=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vc=/^\d+\/\d+$/,bc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xc=/\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$/,wc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,De=e=>vc.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),Ce=e=>!!e&&Number.isInteger(Number(e)),qt=e=>e.endsWith("%")&&L(e.slice(0,-1)),be=e=>bc.test(e),Sc=()=>!0,Rc=e=>xc.test(e)&&!wc.test(e),ro=()=>!1,Ac=e=>yc.test(e),Ec=e=>Cc.test(e),kc=e=>!P(e)&&!M(e),Pc=e=>He(e,ao,ro),P=e=>eo.test(e),Pe=e=>He(e,so,Rc),Zt=e=>He(e,Tc,L),rn=e=>He(e,no,ro),Mc=e=>He(e,oo,Ec),pt=e=>He(e,io,Ac),M=e=>to.test(e),qe=e=>Ue(e,so),_c=e=>Ue(e,Ic),nn=e=>Ue(e,no),jc=e=>Ue(e,ao),Nc=e=>Ue(e,oo),mt=e=>Ue(e,io,!0),He=(e,t,r)=>{const n=eo.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ue=(e,t,r=!1)=>{const n=to.exec(e);return n?n[1]?t(n[1]):r:!1},no=e=>e==="position"||e==="percentage",oo=e=>e==="image"||e==="url",ao=e=>e==="length"||e==="size"||e==="bg-size",so=e=>e==="length",Tc=e=>e==="number",Ic=e=>e==="family-name",io=e=>e==="shadow",Oc=()=>{const e=q("color"),t=q("font"),r=q("text"),n=q("font-weight"),o=q("tracking"),a=q("leading"),s=q("breakpoint"),i=q("container"),u=q("spacing"),d=q("radius"),f=q("shadow"),p=q("inset-shadow"),m=q("text-shadow"),h=q("drop-shadow"),v=q("blur"),g=q("perspective"),b=q("aspect"),x=q("ease"),w=q("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...C(),M,P],j=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],S=()=>[M,P,u],T=()=>[De,"full","auto",...S()],I=()=>[Ce,"none","subgrid",M,P],B=()=>["auto",{span:["full",Ce,M,P]},Ce,M,P],W=()=>[Ce,"auto",M,P],V=()=>["auto","min","max","fr",M,P],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...S()],z=()=>[De,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],R=()=>[e,M,P],N=()=>[...C(),nn,rn,{position:[M,P]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",jc,Pc,{size:[M,P]}],oe=()=>[qt,qe,Pe],K=()=>["","none","full",d,M,P],X=()=>["",L,qe,Pe],ve=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[L,qt,nn,rn],ye=()=>["","none",v,M,P],Te=()=>["none",L,M,P],Ie=()=>["none",L,M,P],Xe=()=>[L,M,P],Oe=()=>[De,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[be],breakpoint:[be],color:[Sc],container:[be],"drop-shadow":[be],ease:["in","out","in-out"],font:[kc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[be],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[be],shadow:[be],spacing:["px",L],text:[be],"text-shadow":[be],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",De,P,M,b]}],container:["container"],columns:[{columns:[L,P,M,i]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:A()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],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:[Ce,"auto",M,P]}],basis:[{basis:[De,"full","auto",i,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,De,"auto","initial","none",P]}],grow:[{grow:["",L,M,P]}],shrink:[{shrink:["",L,M,P]}],order:[{order:[Ce,"first","last","none",M,P]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[i,"screen",...z()]}],"min-w":[{"min-w":[i,"screen","none",...z()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",r,qe,Pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,M,Zt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qt,P]}],"font-family":[{font:[_c,P,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,M,P]}],"line-clamp":[{"line-clamp":[L,"none",M,Zt]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",M,P]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",M,Pe]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[L,"auto",M,P]}],"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",M,P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ce,M,P],radial:["",M,P],conic:[Ce,M,P]},Nc,Mc]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],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:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,M,P]}],"outline-w":[{outline:["",L,qe,Pe]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",f,mt,pt]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",p,mt,pt]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[L,Pe]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",m,mt,pt]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[L,M,P]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[L]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[M,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[L]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,P]}],filter:[{filter:["","none",M,P]}],blur:[{blur:ye()}],brightness:[{brightness:[L,M,P]}],contrast:[{contrast:[L,M,P]}],"drop-shadow":[{"drop-shadow":["","none",h,mt,pt]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",L,M,P]}],"hue-rotate":[{"hue-rotate":[L,M,P]}],invert:[{invert:["",L,M,P]}],saturate:[{saturate:[L,M,P]}],sepia:[{sepia:["",L,M,P]}],"backdrop-filter":[{"backdrop-filter":["","none",M,P]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[L,M,P]}],"backdrop-contrast":[{"backdrop-contrast":[L,M,P]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,M,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,M,P]}],"backdrop-invert":[{"backdrop-invert":["",L,M,P]}],"backdrop-opacity":[{"backdrop-opacity":[L,M,P]}],"backdrop-saturate":[{"backdrop-saturate":[L,M,P]}],"backdrop-sepia":[{"backdrop-sepia":["",L,M,P]}],"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",M,P]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",M,P]}],ease:[{ease:["linear","initial",x,M,P]}],delay:[{delay:[L,M,P]}],animate:[{animate:["none",w,M,P]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,M,P]}],"perspective-origin":[{"perspective-origin":A()}],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:Xe()}],"skew-x":[{"skew-x":Xe()}],"skew-y":[{"skew-y":Xe()}],transform:[{transform:[M,P,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Oe()}],"translate-x":[{"translate-x":Oe()}],"translate-y":[{"translate-y":Oe()}],"translate-z":[{"translate-z":Oe()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,P]}],"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",M,P]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[L,qe,Pe,Zt]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Dc=gc(Oc);function k(...e){return Dc(rc(e))}function co({children:e,className:t,...r}){const{colorScheme:n}=ot();return c.jsx(Qi,{className:k("focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",{light:"ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",dark:"ring-offset-[var(--acordion-dark-offset,hsl(var(--foreground)))]"}[n],t),"data-slot":"accordion-item",...r,children:e})}const lo=_.createContext(void 0);function uo({className:e,colorScheme:t="light",children:r,...n}){const o=_.useMemo(()=>({colorScheme:t}),[t]);return c.jsx(lo.Provider,{value:o,children:c.jsx(Zi,{className:k(e),"data-slot":"accordion-root",...n,children:r})})}function ot(){const e=_.use(lo);if(e===void 0)throw new Error("useAccordion must be used within an AccordionRoot");return e}function fo({className:e,children:t,...r}){const[n,o]=_.useState(!1);return _.useEffect(()=>{o(!0)},[]),c.jsx(tc,{className:k("overflow-hidden",n&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),"data-slot":"accordion-content",...r,children:t})}function po({children:e,className:t,...r}){const{colorScheme:n}=ot();return c.jsx("div",{className:k("py-3 text-base font-light leading-normal [font-family:var(--accordion-content-font-family,var(--font-family-body))]",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[n],t),"data-slot":"accordion-content-area",...r,children:e})}function mo({children:e,className:t,...r}){return c.jsx(Ji,{className:t,...r,children:e})}function ho({children:e,className:t,...r}){const{colorScheme:n}=ot();return c.jsx("div",{className:k("flex-1 select-none text-sm font-normal uppercase transition-colors duration-300 ease-out [font-family:var(--accordion-title-font-family,var(--font-family-mono))]",{light:"text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"}[n],t),...r,children:e})}function go({className:e,...t}){const{colorScheme:r}=ot();return c.jsxs("svg",{className:k("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",{light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[r],e),"data-slot":"accordion-chevron",viewBox:"0 0 10 10",width:16,...t,children:[c.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),c.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})}function vo({className:e,children:t,...r}){return c.jsx(ec,{className:k("group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",e),"data-slot":"accordion-trigger",...r,children:t})}function Lc({className:e,variant:t,message:r,description:n,action:o,dismiss:a}){return c.jsxs(xo,{action:o,className:e,dismiss:a,variant:t,children:[c.jsxs(wo,{children:[c.jsx(yo,{children:r}),c.jsx(Co,{children:n})]}),c.jsxs(So,{children:[c.jsx(Ao,{}),c.jsx(Eo,{})]})]})}const bo=_.createContext(void 0);function xo({className:e,children:t,action:r,dismiss:n,variant:o,...a}){const s=_.useMemo(()=>({action:r,dismiss:n,variant:o}),[r,n,o]);return c.jsx(bo.Provider,{value:s,children:c.jsx("div",{className:k("flex max-w-[356px] items-center justify-between gap-2 rounded-xl border border-[var(--alert-border,color-mix(in_oklab,hsl(var(--foreground))_10%,transparent))] py-3 pe-3 ps-4 shadow",{success:"bg-[var(--alert-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",warning:"bg-[var(--alert-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--alert-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",info:"bg-[var(--alert-info-background,hsl(var(--background)))]"}[o],e),"data-slot":"alert-root",role:"alert",...a,children:t})})}function kr(){const e=_.use(bo);if(e===void 0)throw new Error("useAlert must be used within an AlertRoot");return e}function wo({children:e,className:t,...r}){return c.jsx("div",{className:k("[font-family:var(--alert-font-family,var(--font-family-body))]",t),"data-slot":"alert-header",...r,children:e})}function yo({children:e,className:t,...r}){return c.jsx("h5",{className:k("text-sm font-normal text-[var(--alert-message-text,hsl(var(--foreground)))]",t),"data-slot":"alert-title",...r,children:e})}function Co({className:e,children:t,...r}){return c.jsx("p",{className:k("text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",e),"data-slot":"alert-description",...r,children:t})}function So({children:e,className:t,...r}){return c.jsx("div",{className:k("flex items-center gap-1",t),"data-slot":"alert-actions",...r,children:e})}/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),w=require("react"),Kn=require("react-dom");function bo(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 f=bo(w),xo=bo(Kn);function hl({className:e,colorScheme:t="light",items:n,...r}){return c.jsx(qo,{className:e,colorScheme:t,...r,children:n.map(({content:o,title:a,value:s})=>c.jsxs(Ko,{value:s,children:[c.jsx(Jo,{children:c.jsxs(na,{children:[c.jsx(ea,{children:a}),c.jsx(ta,{})]})}),c.jsx(Zo,{children:c.jsx(Qo,{children:o})})]},s))})}function Ve(e,t=[]){let n=[];function r(a,s){const l=f.createContext(s),d=n.length;n=[...n,s];const u=i=>{const{scope:p,children:h,...v}=i,g=p?.[e]?.[d]||l,x=f.useMemo(()=>v,Object.values(v));return c.jsx(g.Provider,{value:x,children:h})};u.displayName=a+"Provider";function m(i,p){const h=p?.[e]?.[d]||l,v=f.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${i}\` must be used within \`${a}\``)}return[u,m]}const o=()=>{const a=n.map(s=>f.createContext(s));return function(l){const d=l?.[e]||a;return f.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};return o.scopeName=e,[r,gl(o,...t)]}function gl(...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((l,{useScope:d,scopeName:u})=>{const i=d(a)[`__scope${u}`];return{...l,...i}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Fr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Et(...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 J(...e){return f.useCallback(Et(...e),e)}function Kt(e){const t=vl(e),n=f.forwardRef((r,o)=>{const{children:a,...s}=r,l=f.Children.toArray(a),d=l.find(xl);if(d){const u=d.props.children,m=l.map(i=>i===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:i);return c.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,m):null})}return c.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function vl(e){const t=f.forwardRef((n,r)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const s=yl(o),l=wl(a,o.props);return o.type!==f.Fragment&&(l.ref=r?Et(r,s):s),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bl=Symbol("radix.slottable");function xl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bl}function wl(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]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function yl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Xn(e){const t=e+"CollectionProvider",[n,r]=Ve(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:x,children:b}=g,y=w.useRef(null),C=w.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:C,collectionRef:y,children:b})};s.displayName=t;const l=e+"CollectionSlot",d=Kt(l),u=w.forwardRef((g,x)=>{const{scope:b,children:y}=g,C=a(l,b),S=J(x,C.collectionRef);return c.jsx(d,{ref:S,children:y})});u.displayName=l;const m=e+"CollectionItemSlot",i="data-radix-collection-item",p=Kt(m),h=w.forwardRef((g,x)=>{const{scope:b,children:y,...C}=g,S=w.useRef(null),k=J(x,S),M=a(m,b);return w.useEffect(()=>(M.itemMap.set(S,{ref:S,...C}),()=>void M.itemMap.delete(S))),c.jsx(p,{[i]:"",ref:k,children:y})});h.displayName=m;function v(g){const x=a(e+"CollectionConsumer",g);return w.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const C=Array.from(y.querySelectorAll(`[${i}]`));return Array.from(x.itemMap.values()).sort((M,A)=>C.indexOf(M.ref.current)-C.indexOf(A.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},v,r]}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var Me=globalThis?.document?f.useLayoutEffect:()=>{},Cl=f[" useInsertionEffect ".trim().toString()]||Me;function qe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Sl({defaultProp:t,onChange:n}),l=e!==void 0,d=l?e:o;{const m=f.useRef(e!==void 0);f.useEffect(()=>{const i=m.current;i!==l&&console.warn(`${r} is changing from ${i?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=l},[l,r])}const u=f.useCallback(m=>{if(l){const i=El(m)?m(e):m;i!==e&&s.current?.(i)}else a(m)},[l,e,a,s]);return[d,u]}function Sl({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),a=f.useRef(t);return Cl(()=>{a.current=t},[t]),f.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function El(e){return typeof e=="function"}var Rl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=Rl.reduce((e,t)=>{const n=Kt(`Primitive.${t}`),r=f.forwardRef((o,a)=>{const{asChild:s,...l}=o,d=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(d,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wo(e,t){e&&xo.flushSync(()=>e.dispatchEvent(t))}function kl(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Ne=e=>{const{present:t,children:n}=e,r=Al(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),a=J(r.ref,Pl(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:a}):null};Ne.displayName="Presence";function Al(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[l,d]=kl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=Dt(r.current);a.current=l==="mounted"?u:"none"},[l]),Me(()=>{const u=r.current,m=o.current;if(m!==e){const p=a.current,h=Dt(u);e?d("MOUNT"):h==="none"||u?.display==="none"?d("UNMOUNT"):d(m&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Me(()=>{if(t){let u;const m=t.ownerDocument.defaultView??window,i=h=>{const g=Dt(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(d("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=h=>{h.target===t&&(a.current=Dt(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{m.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Dt(e){return e?.animationName||"none"}function Pl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ml=f[" useId ".trim().toString()]||(()=>{}),_l=0;function Ke(e){const[t,n]=f.useState(Ml());return Me(()=>{n(r=>r??String(_l++))},[e]),t?`radix-${t}`:""}var an="Collapsible",[Nl,yo]=Ve(an),[Tl,qn]=Nl(an),Co=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...l}=e,[d,u]=qe({prop:r,defaultProp:o??!1,onChange:s,caller:an});return c.jsx(Tl,{scope:n,disabled:a,contentId:Ke(),open:d,onOpenToggle:f.useCallback(()=>u(m=>!m),[u]),children:c.jsx(Z.div,{"data-state":Qn(d),"data-disabled":a?"":void 0,...l,ref:t})})});Co.displayName=an;var So="CollapsibleTrigger",Eo=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=qn(So,n);return c.jsx(Z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Qn(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:B(e.onClick,o.onOpenToggle)})});Eo.displayName=So;var Zn="CollapsibleContent",Ro=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=qn(Zn,e.__scopeCollapsible);return c.jsx(Ne,{present:n||o.open,children:({present:a})=>c.jsx(jl,{...r,ref:t,present:a})})});Ro.displayName=Zn;var jl=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=qn(Zn,n),[l,d]=f.useState(r),u=f.useRef(null),m=J(t,u),i=f.useRef(0),p=i.current,h=f.useRef(0),v=h.current,g=s.open||l,x=f.useRef(g),b=f.useRef(void 0);return f.useEffect(()=>{const y=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(y)},[]),Me(()=>{const y=u.current;if(y){b.current=b.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const C=y.getBoundingClientRect();i.current=C.height,h.current=C.width,x.current||(y.style.transitionDuration=b.current.transitionDuration,y.style.animationName=b.current.animationName),d(r)}},[s.open,r]),c.jsx(Z.div,{"data-state":Qn(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:m,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&o})});function Qn(e){return e?"open":"closed"}var Il=Co,Dl=Eo,Ol=Ro,Ll=f.createContext(void 0);function sn(e){const t=f.useContext(Ll);return e||t||"ltr"}var Se="Accordion",Fl=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Jn,Bl,$l]=Xn(Se),[ln]=Ve(Se,[$l,yo]),er=yo(),ko=w.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return c.jsx(Jn.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?c.jsx(Vl,{...a,ref:t}):c.jsx(Hl,{...o,ref:t})})});ko.displayName=Se;var[Ao,zl]=ln(Se),[Po,Wl]=ln(Se,{collapsible:!1}),Hl=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[l,d]=qe({prop:n,defaultProp:r??"",onChange:o,caller:Se});return c.jsx(Ao,{scope:e.__scopeAccordion,value:w.useMemo(()=>l?[l]:[],[l]),onItemOpen:d,onItemClose:w.useCallback(()=>a&&d(""),[a,d]),children:c.jsx(Po,{scope:e.__scopeAccordion,collapsible:a,children:c.jsx(Mo,{...s,ref:t})})})}),Vl=w.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,l]=qe({prop:n,defaultProp:r??[],onChange:o,caller:Se}),d=w.useCallback(m=>l((i=[])=>[...i,m]),[l]),u=w.useCallback(m=>l((i=[])=>i.filter(p=>p!==m)),[l]);return c.jsx(Ao,{scope:e.__scopeAccordion,value:s,onItemOpen:d,onItemClose:u,children:c.jsx(Po,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(Mo,{...a,ref:t})})})}),[Ul,cn]=ln(Se),Mo=w.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...s}=e,l=w.useRef(null),d=J(l,t),u=Bl(n),i=sn(o)==="ltr",p=B(e.onKeyDown,h=>{if(!Fl.includes(h.key))return;const v=h.target,g=u().filter(E=>!E.ref.current?.disabled),x=g.findIndex(E=>E.ref.current===v),b=g.length;if(x===-1)return;h.preventDefault();let y=x;const C=0,S=b-1,k=()=>{y=x+1,y>S&&(y=C)},M=()=>{y=x-1,y<C&&(y=S)};switch(h.key){case"Home":y=C;break;case"End":y=S;break;case"ArrowRight":a==="horizontal"&&(i?k():M());break;case"ArrowDown":a==="vertical"&&k();break;case"ArrowLeft":a==="horizontal"&&(i?M():k());break;case"ArrowUp":a==="vertical"&&M();break}const A=y%b;g[A].ref.current?.focus()});return c.jsx(Ul,{scope:n,disabled:r,direction:o,orientation:a,children:c.jsx(Jn.Slot,{scope:n,children:c.jsx(Z.div,{...s,"data-orientation":a,ref:d,onKeyDown:r?void 0:p})})})}),Xt="AccordionItem",[Gl,tr]=ln(Xt),_o=w.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=cn(Xt,n),s=zl(Xt,n),l=er(n),d=Ke(),u=r&&s.value.includes(r)||!1,m=a.disabled||e.disabled;return c.jsx(Gl,{scope:n,open:u,disabled:m,triggerId:d,children:c.jsx(Il,{"data-orientation":a.orientation,"data-state":Oo(u),...l,...o,ref:t,disabled:m,open:u,onOpenChange:i=>{i?s.onItemOpen(r):s.onItemClose(r)}})})});_o.displayName=Xt;var No="AccordionHeader",To=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=cn(Se,n),a=tr(No,n);return c.jsx(Z.h3,{"data-orientation":o.orientation,"data-state":Oo(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});To.displayName=No;var On="AccordionTrigger",jo=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=cn(Se,n),a=tr(On,n),s=Wl(On,n),l=er(n);return c.jsx(Jn.ItemSlot,{scope:n,children:c.jsx(Dl,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...r,ref:t})})});jo.displayName=On;var Io="AccordionContent",Do=w.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=cn(Se,n),a=tr(Io,n),s=er(n);return c.jsx(Ol,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Do.displayName=Io;function Oo(e){return e?"open":"closed"}var Yl=ko,Kl=_o,Xl=To,ql=jo,Zl=Do;function Lo(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=Lo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ql(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Lo(e))&&(r&&(r+=" "),r+=t);return r}const nr="-",Jl=e=>{const t=tc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(nr);return l[0]===""&&l.length!==1&&l.shift(),Fo(l,t)||ec(s)},getConflictingClassGroupIds:(s,l)=>{const d=n[s]||[];return l&&r[s]?[...d,...r[s]]:d}}},Fo=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Fo(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(nr);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Br=/^\[(.+)\]$/,ec=e=>{if(Br.test(e)){const t=Br.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},tc=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Ln(n[o],r,o,t);return r},Ln=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:$r(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(nc(o)){Ln(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{Ln(s,$r(t,a),n,r)})})},$r=(e,t)=>{let n=e;return t.split(nr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},nc=e=>e.isThemeGetter,rc=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)}}},Fn="!",Bn=":",oc=Bn.length,ac=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,l=0,d=0,u;for(let v=0;v<o.length;v++){let g=o[v];if(s===0&&l===0){if(g===Bn){a.push(o.slice(d,v)),d=v+oc;continue}if(g==="/"){u=v;continue}}g==="["?s++:g==="]"?s--:g==="("?l++:g===")"&&l--}const m=a.length===0?o:o.substring(d),i=sc(m),p=i!==m,h=u&&u>d?u-d:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:i,maybePostfixModifierPosition:h}};if(t){const o=t+Bn,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},sc=e=>e.endsWith(Fn)?e.substring(0,e.length-1):e.startsWith(Fn)?e.substring(1):e,ic=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}},lc=e=>({cache:rc(e.cacheSize),parseClassName:ac(e),sortModifiers:ic(e),...Jl(e)}),cc=/\s+/,dc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],l=e.trim().split(cc);let d="";for(let u=l.length-1;u>=0;u-=1){const m=l[u],{isExternal:i,modifiers:p,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:g}=n(m);if(i){d=m+(d.length>0?" "+d:d);continue}let x=!!g,b=r(x?v.substring(0,g):v);if(!b){if(!x){d=m+(d.length>0?" "+d:d);continue}if(b=r(v),!b){d=m+(d.length>0?" "+d:d);continue}x=!1}const y=a(p).join(":"),C=h?y+Fn:y,S=C+b;if(s.includes(S))continue;s.push(S);const k=o(b,x);for(let M=0;M<k.length;++M){const A=k[M];s.push(C+A)}d=m+(d.length>0?" "+d:d)}return d};function uc(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Bo(t))&&(r&&(r+=" "),r+=n);return r}const Bo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Bo(e[r]))&&(n&&(n+=" "),n+=t);return n};function fc(e,...t){let n,r,o,a=s;function s(d){const u=t.reduce((m,i)=>i(m),e());return n=lc(u),r=n.cache.get,o=n.cache.set,a=l,l(d)}function l(d){const u=r(d);if(u)return u;const m=dc(d,n);return o(d,m),m}return function(){return a(uc.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},$o=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mc=/^\d+\/\d+$/,pc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hc=/\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$/,gc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nt=e=>mc.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Be=e=>!!e&&Number.isInteger(Number(e)),En=e=>e.endsWith("%")&&W(e.slice(0,-1)),De=e=>pc.test(e),xc=()=>!0,wc=e=>hc.test(e)&&!gc.test(e),Wo=()=>!1,yc=e=>vc.test(e),Cc=e=>bc.test(e),Sc=e=>!T(e)&&!j(e),Ec=e=>dt(e,Uo,Wo),T=e=>$o.test(e),Ye=e=>dt(e,Go,wc),Rn=e=>dt(e,Mc,W),zr=e=>dt(e,Ho,Wo),Rc=e=>dt(e,Vo,Cc),Ot=e=>dt(e,Yo,yc),j=e=>zo.test(e),gt=e=>ut(e,Go),kc=e=>ut(e,_c),Wr=e=>ut(e,Ho),Ac=e=>ut(e,Uo),Pc=e=>ut(e,Vo),Lt=e=>ut(e,Yo,!0),dt=(e,t,n)=>{const r=$o.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ut=(e,t,n=!1)=>{const r=zo.exec(e);return r?r[1]?t(r[1]):n:!1},Ho=e=>e==="position"||e==="percentage",Vo=e=>e==="image"||e==="url",Uo=e=>e==="length"||e==="size"||e==="bg-size",Go=e=>e==="length",Mc=e=>e==="number",_c=e=>e==="family-name",Yo=e=>e==="shadow",Nc=()=>{const e=te("color"),t=te("font"),n=te("text"),r=te("font-weight"),o=te("tracking"),a=te("leading"),s=te("breakpoint"),l=te("container"),d=te("spacing"),u=te("radius"),m=te("shadow"),i=te("inset-shadow"),p=te("text-shadow"),h=te("drop-shadow"),v=te("blur"),g=te("perspective"),x=te("aspect"),b=te("ease"),y=te("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...S(),j,T],M=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],E=()=>[j,T,d],I=()=>[nt,"full","auto",...E()],O=()=>[Be,"none","subgrid",j,T],V=()=>["auto",{span:["full",Be,j,T]},Be,j,T],G=()=>[Be,"auto",j,T],H=()=>["auto","min","max","fr",j,T],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...E()],L=()=>[nt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],R=()=>[e,j,T],_=()=>[...S(),Wr,zr,{position:[j,T]}],K=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",Ac,Ec,{size:[j,T]}],ae=()=>[En,gt,Ye],D=()=>["","none","full",u,j,T],$=()=>["",W,gt,Ye],X=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[W,En,Wr,zr],Y=()=>["","none",v,j,T],ce=()=>["none",W,j,T],be=()=>["none",W,j,T],Ee=()=>[W,j,T],de=()=>[nt,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[De],breakpoint:[De],color:[xc],container:[De],"drop-shadow":[De],ease:["in","out","in-out"],font:[Sc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[De],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[De],shadow:[De],spacing:["px",W],text:[De],"text-shadow":[De],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",nt,T,j,x]}],container:["container"],columns:[{columns:[W,T,j,l]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Be,"auto",j,T]}],basis:[{basis:[nt,"full","auto",l,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,nt,"auto","initial","none",T]}],grow:[{grow:["",W,j,T]}],shrink:[{shrink:["",W,j,T]}],order:[{order:[Be,"first","last","none",j,T]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[l,"screen",...L()]}],"min-w":[{"min-w":[l,"screen","none",...L()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,gt,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,j,Rn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",En,T]}],"font-family":[{font:[kc,T,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,j,T]}],"line-clamp":[{"line-clamp":[W,"none",j,Rn]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",j,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",j,Ye]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[W,"auto",j,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:K()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Be,j,T],radial:["",j,T],conic:[Be,j,T]},Pc,Rc]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,j,T]}],"outline-w":[{outline:["",W,gt,Ye]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",m,Lt,Ot]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",i,Lt,Ot]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[W,Ye]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",p,Lt,Ot]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[W,j,T]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[j,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:K()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,T]}],filter:[{filter:["","none",j,T]}],blur:[{blur:Y()}],brightness:[{brightness:[W,j,T]}],contrast:[{contrast:[W,j,T]}],"drop-shadow":[{"drop-shadow":["","none",h,Lt,Ot]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",W,j,T]}],"hue-rotate":[{"hue-rotate":[W,j,T]}],invert:[{invert:["",W,j,T]}],saturate:[{saturate:[W,j,T]}],sepia:[{sepia:["",W,j,T]}],"backdrop-filter":[{"backdrop-filter":["","none",j,T]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[W,j,T]}],"backdrop-contrast":[{"backdrop-contrast":[W,j,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,j,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,j,T]}],"backdrop-invert":[{"backdrop-invert":["",W,j,T]}],"backdrop-opacity":[{"backdrop-opacity":[W,j,T]}],"backdrop-saturate":[{"backdrop-saturate":[W,j,T]}],"backdrop-sepia":[{"backdrop-sepia":["",W,j,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",j,T]}],ease:[{ease:["linear","initial",b,j,T]}],delay:[{delay:[W,j,T]}],animate:[{animate:["none",y,j,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,j,T]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[j,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j,T]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[W,gt,Ye,Rn]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Tc=fc(Nc);function P(...e){return Tc(Ql(e))}function Ko({children:e,className:t,...n}){const{colorScheme:r}=Rt();return c.jsx(Kl,{className:P("focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",{light:"ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",dark:"ring-offset-[var(--acordion-dark-offset,hsl(var(--foreground)))]"}[r],t),"data-slot":"accordion-item",...n,children:e})}const Xo=w.createContext(void 0);function qo({className:e,colorScheme:t="light",children:n,...r}){const o=w.useMemo(()=>({colorScheme:t}),[t]);return c.jsx(Xo.Provider,{value:o,children:c.jsx(Yl,{className:P(e),"data-slot":"accordion-root",...r,children:n})})}function Rt(){const e=w.use(Xo);if(e===void 0)throw new Error("useAccordion must be used within an AccordionRoot");return e}function Zo({className:e,children:t,...n}){const[r,o]=w.useState(!1);return w.useEffect(()=>{o(!0)},[]),c.jsx(Zl,{className:P("overflow-hidden",r&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),"data-slot":"accordion-content",...n,children:t})}function Qo({children:e,className:t,...n}){const{colorScheme:r}=Rt();return c.jsx("div",{className:P("py-3 text-base font-light leading-normal [font-family:var(--accordion-content-font-family,var(--font-family-body))]",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[r],t),"data-slot":"accordion-content-area",...n,children:e})}function Jo({children:e,className:t,...n}){return c.jsx(Xl,{className:t,...n,children:e})}function ea({children:e,className:t,...n}){const{colorScheme:r}=Rt();return c.jsx("div",{className:P("flex-1 select-none text-sm font-normal uppercase transition-colors duration-300 ease-out [font-family:var(--accordion-title-font-family,var(--font-family-mono))]",{light:"text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"}[r],t),...n,children:e})}function ta({className:e,...t}){const{colorScheme:n}=Rt();return c.jsxs("svg",{className:P("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",{light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[n],e),"data-slot":"accordion-chevron",viewBox:"0 0 10 10",width:16,...t,children:[c.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),c.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})}function na({className:e,children:t,...n}){return c.jsx(ql,{className:P("group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",e),"data-slot":"accordion-trigger",...n,children:t})}function bt({className:e,variant:t,message:n,description:r,action:o,dismiss:a}){return c.jsxs(oa,{action:o,className:e,dismiss:a,variant:t,children:[c.jsxs(aa,{children:[c.jsx(sa,{children:n}),c.jsx(ia,{children:r})]}),c.jsxs(la,{children:[c.jsx(da,{}),c.jsx(ua,{})]})]})}const ra=w.createContext(void 0);function oa({className:e,children:t,action:n,dismiss:r,variant:o,...a}){const s=w.useMemo(()=>({action:n,dismiss:r,variant:o}),[n,r,o]);return c.jsx(ra.Provider,{value:s,children:c.jsx("div",{className:P("flex max-w-[356px] items-center justify-between gap-2 rounded-xl border border-[var(--alert-border,color-mix(in_oklab,hsl(var(--foreground))_10%,transparent))] py-3 pe-3 ps-4 shadow",{success:"bg-[var(--alert-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",warning:"bg-[var(--alert-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--alert-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",info:"bg-[var(--alert-info-background,hsl(var(--background)))]"}[o],e),"data-slot":"alert-root",role:"alert",...a,children:t})})}function rr(){const e=w.use(ra);if(e===void 0)throw new Error("useAlert must be used within an AlertRoot");return e}function aa({children:e,className:t,...n}){return c.jsx("div",{className:P("[font-family:var(--alert-font-family,var(--font-family-body))]",t),"data-slot":"alert-header",...n,children:e})}function sa({children:e,className:t,...n}){return c.jsx("h5",{className:P("text-sm font-normal text-[var(--alert-message-text,hsl(var(--foreground)))]",t),"data-slot":"alert-title",...n,children:e})}function ia({className:e,children:t,...n}){return c.jsx("p",{className:P("text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",e),"data-slot":"alert-description",...n,children:t})}function la({children:e,className:t,...n}){return c.jsx("div",{className:P("flex items-center gap-1",t),"data-slot":"alert-actions",...n,children:e})}/**
|
|
2
2
|
* @license lucide-react v0.545.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
6
|
+
*/const jc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ic=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Hr=e=>{const t=Ic(e);return t.charAt(0).toUpperCase()+t.slice(1)},ca=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Dc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
7
7
|
* @license lucide-react v0.545.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var
|
|
11
|
+
*/var Oc={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"};/**
|
|
12
12
|
* @license lucide-react v0.545.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const Lc=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...l},d)=>w.createElement("svg",{ref:d,...Oc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ca("lucide",o),...!a&&!Dc(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,m])=>w.createElement(u,m)),...Array.isArray(a)?a:[a]]));/**
|
|
17
17
|
* @license lucide-react v0.545.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const ft=(e,t)=>{const n=w.forwardRef(({className:r,...o},a)=>w.createElement(Lc,{ref:a,iconNode:t,className:ca(`lucide-${jc(Hr(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Hr(e),n};/**
|
|
22
22
|
* @license lucide-react v0.545.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const Fc=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Bc=ft("check",Fc);/**
|
|
27
27
|
* @license lucide-react v0.545.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const $c=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],zc=ft("chevron-right",$c);/**
|
|
32
32
|
* @license lucide-react v0.545.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
36
|
+
*/const Wc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Hc=ft("circle-alert",Wc);/**
|
|
37
37
|
* @license lucide-react v0.545.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const Vc=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Uc=ft("ellipsis",Vc);/**
|
|
42
42
|
* @license lucide-react v0.545.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const
|
|
46
|
+
*/const Gc=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Yc=ft("loader-circle",Gc);/**
|
|
47
47
|
* @license lucide-react v0.545.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const Jc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Pr=Ge("x",Jc);function at({variant:e="primary",size:t="large",shape:r="pill",loading:n=!1,type:o="button",disabled:a=!1,className:s,children:i,...u}){return c.jsxs("button",{"aria-busy":n,className:k("after:ease-[cubic-bezier(0,0.25,0,1)] relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition-[opacity,transform] after:duration-300 focus-visible:outline-2 focus-visible:outline-[var(--button-focus,hsl(var(--primary)))] disabled:pointer-events-none disabled:opacity-30",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))] focus-visible:outline-offset-2",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))] focus-visible:outline-offset-2",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))] focus-visible:outline-offset-2",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))] focus-visible:outline-offset-0",danger:"border-[var(--button-danger-border,color-mix(in_oklab,hsl(var(--error)),white_30%))] bg-[var(--button-danger-background,color-mix(in_oklab,hsl(var(--error)),white_30%))] text-[var(--button-danger-text,hsl(var(--foreground)))] after:bg-[var(--button-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] focus-visible:outline-offset-2"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],!n&&!a&&"hover:after:translate-x-0",n&&"pointer-events-none",s),"data-slot":"button",disabled:a,type:o,...u,children:[c.jsx("span",{className:k("inline-flex items-center justify-center transition-all duration-300 ease-in-out",n?"-translate-y-10 opacity-0":"translate-y-0 opacity-100",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:i}),c.jsx("span",{className:k("absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",n?"translate-y-0 opacity-100":"translate-y-10 opacity-0"),children:c.jsx(Qc,{className:k("animate-spin",e==="tertiary"&&"text-[var(--button-loader-icon,hsl(var(--foreground)))]")})})]})}function Ao({children:e,...t}){const{action:r}=kr();if(!r)return null;const{label:n,onClick:o}=r;return c.jsx(at,{"data-slot":"alert-button",onClick:o,size:"x-small",variant:"ghost",...t,children:n})}function Eo({...e}){const{dismiss:t}=kr(),{label:r,onClick:n}=t;return c.jsx(at,{"aria-label":r,"data-slot":"alert-close-button",onClick:n,shape:"circle",size:"x-small",variant:"ghost",...e,children:c.jsx(Pr,{size:20,strokeWidth:1})})}function ko({className:e,children:t,...r}){return c.jsx("span",{className:k("origin-left font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] [font-family:var(--animated-underline-font-family,var(--font-family-body))] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",e),...r,children:t})}function el({children:e,shape:t="rounded",className:r,variant:n="primary",...o}){return c.jsx("span",{className:k("px-2 py-0.5 text-xs uppercase tracking-tighter text-[var(--badge-text,hsl(var(--foreground)))] [font-family:var(--badge-font-family,var(--font-family-mono))]",{pill:"rounded-full",rounded:"rounded"}[t],{primary:"bg-[var(--badge-primary-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",warning:"bg-[var(--badge-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--badge-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",success:"bg-[var(--badge-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",info:"bg-[var(--badge-info-background,color-mix(in_oklab,hsl(var(--info)),white_75%))]"}[n],r),...o,children:e})}const tl=({id:e,children:t,hideDismiss:r=!1,className:n,onDismiss:o})=>c.jsx(Mo,{hideDismiss:r,id:e,onDismiss:o,children:c.jsx(_o,{className:n,children:c.jsxs(jo,{children:[c.jsx(No,{children:t}),c.jsx(To,{})]})})}),Po=_.createContext(void 0);function Mo({id:e,hideDismiss:t,onDismiss:r,children:n}){const[o,a]=_.useState(!1),[s,i]=_.useState(!1);_.useEffect(()=>{const f=localStorage.getItem(`${e}-hidden-banner`)==="true";a(f),i(!0)},[e]);const u=_.useCallback(()=>{a(!0),localStorage.setItem(`${e}-hidden-banner`,"true"),r?.()},[e,r]),d=_.useMemo(()=>({id:e,isInitialized:s,isDismissed:o,hideDismiss:t,handleDismiss:u}),[e,s,o,t,u]);return c.jsx(Po.Provider,{value:d,children:s?n:null})}function Mr(){const e=_.use(Po);if(e===void 0)throw new Error("useBanner must be used within a BannerProvider");return e}function _o({children:e,className:t,...r}){const{id:n,isDismissed:o}=Mr();return c.jsx("div",{className:k("overflow-hidden bg-[var(--banner-background,hsl(var(--primary)))] transition-all duration-300 ease-in @container",o?"pointer-events-none max-h-0":"max-h-32",t),"data-slot":"banner-root",id:n,...r,children:e})}function jo({className:e,children:t}){return c.jsx("div",{className:k("flex items-center justify-between gap-4 px-8 py-3",e),"data-slot":"banner-content",children:t})}function No({children:e,className:t,...r}){return c.jsx("div",{className:k("flex-1 text-sm text-[var(--banner-text,hsl(var(--foreground)))] [font-family:var(--banner-font-family,var(--font-family-body))] @xl:text-center @xl:text-base",t),"data-slot":"banner-text",...r,children:e})}function To({className:e,...t}){const{hideDismiss:r,handleDismiss:n}=Mr();return r?null:c.jsx("button",{"aria-label":"Dismiss banner",className:k("flex h-8 w-8 items-center justify-center rounded-full bg-[var(--banner-close-background,transparent)] text-[var(--banner-close-icon,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] transition-colors duration-300 hover:bg-[var(--banner-close-background-hover,color-mix(in_oklab,hsl(var(--background))_40%,transparent))] hover:text-[var(--banner-close-icon-hover,hsl(var(--foreground)))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--banner-focus,hsl(var(--foreground)))]",e),"data-slot":"banner-dismiss",onClick:o=>{o.preventDefault(),n()},...t,children:c.jsx(Pr,{absoluteStrokeWidth:!0,size:20,strokeWidth:1.5})})}function rl({author:e,content:t,date:r,link:n,image:o,title:a,className:s}){return c.jsxs(Io,{className:s,children:[c.jsx(Lo,{children:o?c.jsx("img",{alt:o.alt,src:o.src}):c.jsx(Oo,{children:a})}),c.jsx(Bo,{children:a}),c.jsx($o,{children:t}),c.jsxs(zo,{children:[c.jsx(Wo,{children:r}),e!==void 0&&c.jsx(Vo,{children:e})]}),c.jsx(Fo,{href:n.href,children:c.jsx("span",{className:"sr-only",children:n.ariaLabel})})]})}function Io({as:e,className:t,children:r,...n}){const o=e??"article";return c.jsx(o,{className:k("group relative w-full max-w-md @container [font-family:var(--blog-post-card-font-family,var(--font-family-body))]",t),"data-slot":"blog-post-card-root",...n,children:r})}function Oo({children:e,className:t,...r}){return c.jsx("div",{className:k("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",t),...r,children:e})}var nl=Symbol.for("react.lazy"),Et=l[" use ".trim().toString()];function ol(e){return typeof e=="object"&&e!==null&&"then"in e}function Do(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===nl&&"_payload"in e&&ol(e._payload)}function al(e){const t=sl(e),r=l.forwardRef((n,o)=>{let{children:a,...s}=n;Do(a)&&typeof Et=="function"&&(a=Et(a._payload));const i=l.Children.toArray(a),u=i.find(cl);if(u){const d=u.props.children,f=i.map(p=>p===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:p);return c.jsx(t,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var _r=al("Slot");function sl(e){const t=l.forwardRef((r,n)=>{let{children:o,...a}=r;if(Do(o)&&typeof Et=="function"&&(o=Et(o._payload)),l.isValidElement(o)){const s=ul(o),i=ll(a,o.props);return o.type!==l.Fragment&&(i.ref=n?nt(n,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var il=Symbol("radix.slottable");function cl(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===il}function ll(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ul(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Lo({asChild:e=!1,className:t,children:r,...n}){const o="h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110",a=()=>e&&r?c.jsx(_r,{className:o,children:r}):r;return c.jsx("div",{className:k("relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-[var(--blog-post-card-image-background,hsl(var(--contrast-100)))]",t),...n,children:a()})}function Fo({asChild:e=!1,className:t,children:r,...n}){const o=k("absolute inset-0 rounded-b-lg rounded-t-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--blog-post-card-focus,hsl(var(--primary)))] focus-visible:ring-offset-4",t);return e?c.jsx(_r,{className:o,...n,children:r}):c.jsx("a",{className:o,...n,children:r})}function Bo({className:e,children:t,...r}){return c.jsx("h5",{className:k("mt-4 text-lg font-medium leading-snug text-[var(--blog-post-card-title-text,hsl(var(--foreground)))]",e),"data-slot":"blog-post-card-title",...r,children:t})}function $o({className:e,children:t,...r}){return c.jsx("p",{className:k("mt-1.5 line-clamp-3 text-sm font-normal text-[var(--blog-post-card-content-text,hsl(var(--contrast-400)))]",e),"data-slot":"blog-post-card-content",...r,children:t})}function zo({children:e,className:t,...r}){return c.jsx("div",{className:k("mt-3 text-sm text-[var(--blog-post-card-author-date-text,hsl(var(--foreground)))]",t),"data-slot":"blog-post-card-details",...r,children:e})}function Wo({className:e,children:t,...r}){return c.jsx("time",{className:e,dateTime:t,...r,"data-slot":"blog-post-card-date",children:new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})}function Vo({className:e,children:t,...r}){return c.jsxs(c.Fragment,{children:[c.jsx("span",{className:k("after:mx-2 after:content-['•']",e),"data-slot":"blog-post-card-author",...r}),c.jsx("span",{children:t})]})}function Ho({className:e,...t}){return c.jsx("div",{className:k("bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]",e),"data-slot":"skeleton-box",...t})}function Ze({characterCount:e=10,className:t,...r}){return c.jsx("div",{className:k("flex h-[1lh] items-center",t),"data-slot":"skeleton-text",...r,children:c.jsx("div",{className:k("h-[1ex] max-w-full rounded-[inherit] bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]"),style:{width:e==="full"?"100%":`${e}ch`}})})}function dl({className:e,aspectRatio:t="4:3",...r}){return c.jsxs("div",{className:k("w-full max-w-md @container",e),...r,children:[c.jsx(Ho,{className:k("mb-4 w-full rounded-2xl",{"5:6":"aspect-[5/6]","3:4":"aspect-[3/4]","4:3":"aspect-[4/3]","1:1":"aspect-square"}[t])}),c.jsx(Ze,{characterCount:25,className:"mt-4 rounded text-lg"}),c.jsxs("div",{className:"mt-1.5",children:[c.jsx(Ze,{characterCount:"full",className:"rounded text-sm"}),c.jsx(Ze,{characterCount:"full",className:"rounded text-sm"}),c.jsx(Ze,{characterCount:15,className:"rounded text-sm"})]}),c.jsx(Ze,{characterCount:10,className:"mt-3 rounded text-sm"})]})}function fl({variant:e="primary",size:t="large",shape:r="pill",className:n,children:o,render:a,...s}){const i=k("relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition after:duration-300 after:[animation-timing-function:cubic-bezier(0,0.25,0,1)] hover:after:translate-x-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--button-focus,hsl(var(--primary)))] focus-visible:ring-offset-2",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))]",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))]",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))]"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],n),u=c.jsx("span",{className:k("inline-flex items-center justify-center",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:o});function d(){return a?a({...s,className:i,children:u}):c.jsx("a",{...s,className:i,children:u})}return c.jsx(c.Fragment,{children:d()})}function pl({as:e,className:t,children:r,link:n,...o}){return c.jsxs(Go,{as:e,className:t,...o,children:[r,n&&c.jsx(Uo,{href:n.href,children:c.jsx("span",{className:"sr-only",children:n.ariaLabel})})]})}function Uo({asChild:e=!1,className:t,children:r,...n}){const o=k("absolute inset-0 rounded-2xl","focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--card-focus,hsl(var(--primary)))]",t);return e?c.jsx(_r,{className:o,"data-slot":"card-link",...n,children:r}):c.jsx("a",{className:o,"data-slot":"card-link",...n,children:r})}function Go({as:e,className:t,children:r}){const n=e??"div";return c.jsx(n,{className:k("group/card relative w-full rounded-2xl border p-6 @container","border-[var(--card-border-color,hsl(var(--contrast-200)))] bg-[var(--card-background,hsl(var(--background)))] has-[a]:hover:bg-[var(--card-hover-background,color-mix(in_oklab,hsl(var(--contrast-100))_50%,transparent))]","transition-colors duration-300 ease-linear",t),"data-slot":"card-root",children:r})}function ml({className:e,...t}){return c.jsx("div",{className:k("@container",e),...t,children:c.jsx(Ho,{})})}function hl({className:e,children:t,removeLabel:r="Remove",...n}){return c.jsxs(Ko,{className:e,children:[t,c.jsx(Yo,{title:r,...n})]})}function Ko({children:e,className:t,...r}){return c.jsx("span",{className:k("flex h-9 items-center gap-1.5 rounded-lg bg-[var(--chip-background,hsl(var(--contrast-100)))] py-2 pe-2 ps-3 text-sm font-semibold leading-5 text-[var(--chip-text,hsl(var(--foreground)))] [font-family:var(--chip-font-family,var(--font-family-body))]",t),...r,children:e})}function Yo({className:e,...t}){return c.jsx("button",{className:k("flex h-5 w-5 items-center justify-center rounded-full hover:bg-[var(--chip-background-hover,hsl(var(--contrast-200)))] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--button-focus,hsl(var(--foreground)))]",e),...t,children:c.jsx(Pr,{size:12})})}function gl({className:e,items:t,trigger:r,align:n,sideOffset:o,label:a,showScrollArea:s=!0,maxHeight:i=320}){return c.jsxs(Es,{align:n,maxHeight:i,showScrollArea:s,sideOffset:o,children:[c.jsx(ks,{asChild:!0,children:r!==void 0?r:c.jsx(at,{shape:"circle",size:"small",variant:"ghost",children:c.jsx(qc,{size:20})})}),c.jsx(Yr,{children:c.jsx(Ps,{className:k(e),children:c.jsxs(Qr,{children:[c.jsx(js,{children:a}),t.map((u,d)=>c.jsx(oi,{menuKey:d,menuNode:u},d))]})})})]})}function Z(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>t.current?.(...r),[])}function vl(e,t=globalThis?.document){const r=Z(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var bl="DismissableLayer",fr="dismissableLayer.update",xl="dismissableLayer.pointerDownOutside",wl="dismissableLayer.focusOutside",an,Xo=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qo=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...u}=e,d=l.useContext(Xo),[f,p]=l.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=l.useState({}),v=G(t,E=>p(E)),g=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(b),w=f?g.indexOf(f):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=x,A=Sl(E=>{const S=E.target,T=[...d.branches].some(I=>I.contains(S));!C||T||(o?.(E),s?.(E),E.defaultPrevented||i?.())},m),j=Rl(E=>{const S=E.target;[...d.branches].some(I=>I.contains(S))||(a?.(E),s?.(E),E.defaultPrevented||i?.())},m);return vl(E=>{w===d.layers.size-1&&(n?.(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},m),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(an=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),sn(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=an)}},[f,m,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),sn())},[f,d]),l.useEffect(()=>{const E=()=>h({});return document.addEventListener(fr,E),()=>document.removeEventListener(fr,E)},[]),c.jsx(H.div,{...u,ref:v,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:O(e.onFocusCapture,j.onFocusCapture),onBlurCapture:O(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,A.onPointerDownCapture)})});qo.displayName=bl;var yl="DismissableLayerBranch",Cl=l.forwardRef((e,t)=>{const r=l.useContext(Xo),n=l.useRef(null),o=G(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),c.jsx(H.div,{...e,ref:o})});Cl.displayName=yl;function Sl(e,t=globalThis?.document){const r=Z(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let u=function(){Zo(xl,r,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Rl(e,t=globalThis?.document){const r=Z(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&Zo(wl,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function sn(){const e=new CustomEvent(fr);document.dispatchEvent(e)}function Zo(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?In(o,a):o.dispatchEvent(a)}var Qt=0;function Al(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cn()),document.body.insertAdjacentElement("beforeend",e[1]??cn()),Qt++,()=>{Qt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qt--}},[])}function cn(){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 Jt="focusScope.autoFocusOnMount",er="focusScope.autoFocusOnUnmount",ln={bubbles:!1,cancelable:!0},El="FocusScope",Qo=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,u]=l.useState(null),d=Z(o),f=Z(a),p=l.useRef(null),m=G(t,g=>u(g)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let g=function(y){if(h.paused||!i)return;const C=y.target;i.contains(C)?p.current=C:Se(p.current,{select:!0})},b=function(y){if(h.paused||!i)return;const C=y.relatedTarget;C!==null&&(i.contains(C)||Se(p.current,{select:!0}))},x=function(y){if(document.activeElement===document.body)for(const A of y)A.removedNodes.length>0&&Se(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const w=new MutationObserver(x);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),w.disconnect()}}},[n,i,h.paused]),l.useEffect(()=>{if(i){dn.add(h);const g=document.activeElement;if(!i.contains(g)){const x=new CustomEvent(Jt,ln);i.addEventListener(Jt,d),i.dispatchEvent(x),x.defaultPrevented||(kl(Nl(Jo(i)),{select:!0}),document.activeElement===g&&Se(i))}return()=>{i.removeEventListener(Jt,d),setTimeout(()=>{const x=new CustomEvent(er,ln);i.addEventListener(er,f),i.dispatchEvent(x),x.defaultPrevented||Se(g??document.body,{select:!0}),i.removeEventListener(er,f),dn.remove(h)},0)}}},[i,d,f,h]);const v=l.useCallback(g=>{if(!r&&!n||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(b&&x){const w=g.currentTarget,[y,C]=Pl(w);y&&C?!g.shiftKey&&x===C?(g.preventDefault(),r&&Se(y,{select:!0})):g.shiftKey&&x===y&&(g.preventDefault(),r&&Se(C,{select:!0})):x===w&&g.preventDefault()}},[r,n,h.paused]);return c.jsx(H.div,{tabIndex:-1,...s,ref:m,onKeyDown:v})});Qo.displayName=El;function kl(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Se(n,{select:t}),document.activeElement!==r)return}function Pl(e){const t=Jo(e),r=un(t,e),n=un(t.reverse(),e);return[r,n]}function Jo(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function un(e,t){for(const r of e)if(!Ml(r,{upTo:t}))return r}function Ml(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 _l(e){return e instanceof HTMLInputElement&&"select"in e}function Se(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&_l(e)&&t&&e.select()}}var dn=jl();function jl(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=fn(e,t),e.unshift(t)},remove(t){e=fn(e,t),e[0]?.resume()}}}function fn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Nl(e){return e.filter(t=>t.tagName!=="A")}const Tl=["top","right","bottom","left"],Re=Math.min,ee=Math.max,kt=Math.round,ht=Math.floor,de=e=>({x:e,y:e}),Il={left:"right",right:"left",bottom:"top",top:"bottom"},Ol={start:"end",end:"start"};function pr(e,t,r){return ee(e,Re(t,r))}function xe(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function jr(e){return e==="x"?"y":"x"}function Nr(e){return e==="y"?"height":"width"}const Dl=new Set(["top","bottom"]);function ue(e){return Dl.has(we(e))?"y":"x"}function Tr(e){return jr(ue(e))}function Ll(e,t,r){r===void 0&&(r=!1);const n=Ke(e),o=Tr(e),a=Nr(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Pt(s)),[s,Pt(s)]}function Fl(e){const t=Pt(e);return[mr(e),t,mr(t)]}function mr(e){return e.replace(/start|end/g,t=>Ol[t])}const pn=["left","right"],mn=["right","left"],Bl=["top","bottom"],$l=["bottom","top"];function zl(e,t,r){switch(e){case"top":case"bottom":return r?t?mn:pn:t?pn:mn;case"left":case"right":return t?Bl:$l;default:return[]}}function Wl(e,t,r,n){const o=Ke(e);let a=zl(we(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(mr)))),a}function Pt(e){return e.replace(/left|right|bottom|top/g,t=>Il[t])}function Vl(e){return{top:0,right:0,bottom:0,left:0,...e}}function ea(e){return typeof e!="number"?Vl(e):{top:e,right:e,bottom:e,left:e}}function Mt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function hn(e,t,r){let{reference:n,floating:o}=e;const a=ue(t),s=Tr(t),i=Nr(s),u=we(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,m=n[i]/2-o[i]/2;let h;switch(u){case"top":h={x:f,y:n.y-o.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(Ke(t)){case"start":h[s]-=m*(r&&d?-1:1);break;case"end":h[s]+=m*(r&&d?-1:1);break}return h}const Hl=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=hn(d,n,u),m=n,h={},v=0;for(let g=0;g<i.length;g++){const{name:b,fn:x}=i[g],{x:w,y,data:C,reset:A}=await x({x:f,y:p,initialPlacement:n,placement:m,strategy:o,middlewareData:h,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,p=y??p,h={...h,[b]:{...h[b],...C}},A&&v<=50&&(v++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(d=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:p}=hn(d,m,u)),g=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:h}};async function Je(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=xe(t,e),v=ea(h),b=i[m?p==="floating"?"reference":"floating":p],x=Mt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:u})),w=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),C=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},A=Mt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:y,strategy:u}):w);return{top:(x.top-A.top+v.top)/C.y,bottom:(A.bottom-x.bottom+v.bottom)/C.y,left:(x.left-A.left+v.left)/C.x,right:(A.right-x.right+v.right)/C.x}}const Ul=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:u}=t,{element:d,padding:f=0}=xe(e,t)||{};if(d==null)return{};const p=ea(f),m={x:r,y:n},h=Tr(o),v=Nr(h),g=await s.getDimensions(d),b=h==="y",x=b?"top":"left",w=b?"bottom":"right",y=b?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-m[h]-a.floating[v],A=m[h]-a.reference[h],j=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let E=j?j[y]:0;(!E||!await(s.isElement==null?void 0:s.isElement(j)))&&(E=i.floating[y]||a.floating[v]);const S=C/2-A/2,T=E/2-g[v]/2-1,I=Re(p[x],T),B=Re(p[w],T),W=I,V=E-g[v]-B,$=E/2-g[v]/2+S,U=pr(W,$,V),D=!u.arrow&&Ke(o)!=null&&$!==U&&a.reference[v]/2-($<W?I:B)-g[v]/2<0,z=D?$<W?$-W:$-V:0;return{[h]:m[h]+z,data:{[h]:U,centerOffset:$-U-z,...D&&{alignmentOffset:z}},reset:D}}}),Gl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...b}=xe(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=we(o),w=ue(i),y=we(i)===i,C=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=m||(y||!g?[Pt(i)]:Fl(i)),j=v!=="none";!m&&j&&A.push(...Wl(i,g,v,C));const E=[i,...A],S=await Je(t,b),T=[];let I=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&T.push(S[x]),p){const $=Ll(o,s,C);T.push(S[$[0]],S[$[1]])}if(I=[...I,{placement:o,overflows:T}],!T.every($=>$<=0)){var B,W;const $=(((B=a.flip)==null?void 0:B.index)||0)+1,U=E[$];if(U&&(!(p==="alignment"?w!==ue(U):!1)||I.every(R=>ue(R.placement)===w?R.overflows[0]>0:!0)))return{data:{index:$,overflows:I},reset:{placement:U}};let D=(W=I.filter(z=>z.overflows[0]<=0).sort((z,R)=>z.overflows[1]-R.overflows[1])[0])==null?void 0:W.placement;if(!D)switch(h){case"bestFit":{var V;const z=(V=I.filter(R=>{if(j){const N=ue(R.placement);return N===w||N==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(N=>N>0).reduce((N,Y)=>N+Y,0)]).sort((R,N)=>R[1]-N[1])[0])==null?void 0:V[0];z&&(D=z);break}case"initialPlacement":D=i;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function gn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vn(e){return Tl.some(t=>e[t]>=0)}const Kl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=xe(e,t);switch(n){case"referenceHidden":{const a=await Je(t,{...o,elementContext:"reference"}),s=gn(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:vn(s)}}}case"escaped":{const a=await Je(t,{...o,altBoundary:!0}),s=gn(a,r.floating);return{data:{escapedOffsets:s,escaped:vn(s)}}}default:return{}}}}},ta=new Set(["left","top"]);async function Yl(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=we(r),i=Ke(r),u=ue(r)==="y",d=ta.has(s)?-1:1,f=a&&u?-1:1,p=xe(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),u?{x:h*f,y:m*d}:{x:m*d,y:h*f}}const Xl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,u=await Yl(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:s}}}}},ql=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...u}=xe(e,t),d={x:r,y:n},f=await Je(t,u),p=ue(we(o)),m=jr(p);let h=d[m],v=d[p];if(a){const b=m==="y"?"top":"left",x=m==="y"?"bottom":"right",w=h+f[b],y=h-f[x];h=pr(w,h,y)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=v+f[b],y=v-f[x];v=pr(w,v,y)}const g=i.fn({...t,[m]:h,[p]:v});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[m]:a,[p]:s}}}}}},Zl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:u=!0,crossAxis:d=!0}=xe(e,t),f={x:r,y:n},p=ue(o),m=jr(p);let h=f[m],v=f[p];const g=xe(i,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const y=m==="y"?"height":"width",C=a.reference[m]-a.floating[y]+b.mainAxis,A=a.reference[m]+a.reference[y]-b.mainAxis;h<C?h=C:h>A&&(h=A)}if(d){var x,w;const y=m==="y"?"width":"height",C=ta.has(we(o)),A=a.reference[p]-a.floating[y]+(C&&((x=s.offset)==null?void 0:x[p])||0)+(C?0:b.crossAxis),j=a.reference[p]+a.reference[y]+(C?0:((w=s.offset)==null?void 0:w[p])||0)-(C?b.crossAxis:0);v<A?v=A:v>j&&(v=j)}return{[m]:h,[p]:v}}}},Ql=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:u=()=>{},...d}=xe(e,t),f=await Je(t,d),p=we(o),m=Ke(o),h=ue(o)==="y",{width:v,height:g}=a.floating;let b,x;p==="top"||p==="bottom"?(b=p,x=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=p,b=m==="end"?"top":"bottom");const w=g-f.top-f.bottom,y=v-f.left-f.right,C=Re(g-f[b],w),A=Re(v-f[x],y),j=!t.middlewareData.shift;let E=C,S=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(S=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=w),j&&!m){const I=ee(f.left,0),B=ee(f.right,0),W=ee(f.top,0),V=ee(f.bottom,0);h?S=v-2*(I!==0||B!==0?I+B:ee(f.left,f.right)):E=g-2*(W!==0||V!==0?W+V:ee(f.top,f.bottom))}await u({...t,availableWidth:S,availableHeight:E});const T=await s.getDimensions(i.floating);return v!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};function Bt(){return typeof window<"u"}function Ye(e){return ra(e)?(e.nodeName||"").toLowerCase():"#document"}function te(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function he(e){var t;return(t=(ra(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ra(e){return Bt()?e instanceof Node||e instanceof te(e).Node:!1}function ae(e){return Bt()?e instanceof Element||e instanceof te(e).Element:!1}function pe(e){return Bt()?e instanceof HTMLElement||e instanceof te(e).HTMLElement:!1}function bn(e){return!Bt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof te(e).ShadowRoot}const Jl=new Set(["inline","contents"]);function st(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Jl.has(o)}const eu=new Set(["table","td","th"]);function tu(e){return eu.has(Ye(e))}const ru=[":popover-open",":modal"];function $t(e){return ru.some(t=>{try{return e.matches(t)}catch{return!1}})}const nu=["transform","translate","scale","rotate","perspective"],ou=["transform","translate","scale","rotate","perspective","filter"],au=["paint","layout","strict","content"];function Ir(e){const t=Or(),r=ae(e)?se(e):e;return nu.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||ou.some(n=>(r.willChange||"").includes(n))||au.some(n=>(r.contain||"").includes(n))}function su(e){let t=Ae(e);for(;pe(t)&&!We(t);){if(Ir(t))return t;if($t(t))return null;t=Ae(t)}return null}function Or(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iu=new Set(["html","body","#document"]);function We(e){return iu.has(Ye(e))}function se(e){return te(e).getComputedStyle(e)}function zt(e){return ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(Ye(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bn(e)&&e.host||he(e);return bn(t)?t.host:t}function na(e){const t=Ae(e);return We(t)?e.ownerDocument?e.ownerDocument.body:e.body:pe(t)&&st(t)?t:na(t)}function et(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=na(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=te(o);if(a){const i=hr(s);return t.concat(s,s.visualViewport||[],st(o)?o:[],i&&r?et(i):[])}return t.concat(o,et(o,[],r))}function hr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oa(e){const t=se(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=pe(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=kt(r)!==a||kt(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function Dr(e){return ae(e)?e:e.contextElement}function $e(e){const t=Dr(e);if(!pe(t))return de(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=oa(t);let s=(a?kt(r.width):r.width)/n,i=(a?kt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const cu=de(0);function aa(e){const t=te(e);return!Or()||!t.visualViewport?cu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lu(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==te(e)?!1:t}function _e(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Dr(e);let s=de(1);t&&(n?ae(n)&&(s=$e(n)):s=$e(e));const i=lu(a,r,n)?aa(a):de(0);let u=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const m=te(a),h=n&&ae(n)?te(n):n;let v=m,g=hr(v);for(;g&&n&&h!==v;){const b=$e(g),x=g.getBoundingClientRect(),w=se(g),y=x.left+(g.clientLeft+parseFloat(w.paddingLeft))*b.x,C=x.top+(g.clientTop+parseFloat(w.paddingTop))*b.y;u*=b.x,d*=b.y,f*=b.x,p*=b.y,u+=y,d+=C,v=te(g),g=hr(v)}}return Mt({width:f,height:p,x:u,y:d})}function Wt(e,t){const r=zt(e).scrollLeft;return t?t.left+r:_e(he(e)).left+r}function sa(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Wt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function uu(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=he(n),i=t?$t(t.floating):!1;if(n===s||i&&a)return r;let u={scrollLeft:0,scrollTop:0},d=de(1);const f=de(0),p=pe(n);if((p||!p&&!a)&&((Ye(n)!=="body"||st(s))&&(u=zt(n)),pe(n))){const h=_e(n);d=$e(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const m=s&&!p&&!a?sa(s,u):de(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+f.x+m.x,y:r.y*d.y-u.scrollTop*d.y+f.y+m.y}}function du(e){return Array.from(e.getClientRects())}function fu(e){const t=he(e),r=zt(e),n=e.ownerDocument.body,o=ee(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ee(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Wt(e);const i=-r.scrollTop;return se(n).direction==="rtl"&&(s+=ee(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const xn=25;function pu(e,t){const r=te(e),n=he(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,u=0;if(o){a=o.width,s=o.height;const f=Or();(!f||f&&t==="fixed")&&(i=o.offsetLeft,u=o.offsetTop)}const d=Wt(n);if(d<=0){const f=n.ownerDocument,p=f.body,m=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(n.clientWidth-p.clientWidth-h);v<=xn&&(a-=v)}else d<=xn&&(a+=d);return{width:a,height:s,x:i,y:u}}const mu=new Set(["absolute","fixed"]);function hu(e,t){const r=_e(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=pe(e)?$e(e):de(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,u=o*a.x,d=n*a.y;return{width:s,height:i,x:u,y:d}}function wn(e,t,r){let n;if(t==="viewport")n=pu(e,r);else if(t==="document")n=fu(he(e));else if(ae(t))n=hu(t,r);else{const o=aa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Mt(n)}function ia(e,t){const r=Ae(e);return r===t||!ae(r)||We(r)?!1:se(r).position==="fixed"||ia(r,t)}function gu(e,t){const r=t.get(e);if(r)return r;let n=et(e,[],!1).filter(i=>ae(i)&&Ye(i)!=="body"),o=null;const a=se(e).position==="fixed";let s=a?Ae(e):e;for(;ae(s)&&!We(s);){const i=se(s),u=Ir(s);!u&&i.position==="fixed"&&(o=null),(a?!u&&!o:!u&&i.position==="static"&&!!o&&mu.has(o.position)||st(s)&&!u&&ia(e,s))?n=n.filter(f=>f!==s):o=i,s=Ae(s)}return t.set(e,n),n}function vu(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?$t(t)?[]:gu(t,this._c):[].concat(r),n],i=s[0],u=s.reduce((d,f)=>{const p=wn(t,f,o);return d.top=ee(p.top,d.top),d.right=Re(p.right,d.right),d.bottom=Re(p.bottom,d.bottom),d.left=ee(p.left,d.left),d},wn(t,i,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function bu(e){const{width:t,height:r}=oa(e);return{width:t,height:r}}function xu(e,t,r){const n=pe(t),o=he(t),a=r==="fixed",s=_e(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const u=de(0);function d(){u.x=Wt(o)}if(n||!n&&!a)if((Ye(t)!=="body"||st(o))&&(i=zt(t)),n){const h=_e(t,!0,a,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else o&&d();a&&!n&&o&&d();const f=o&&!n&&!a?sa(o,i):de(0),p=s.left+i.scrollLeft-u.x-f.x,m=s.top+i.scrollTop-u.y-f.y;return{x:p,y:m,width:s.width,height:s.height}}function tr(e){return se(e).position==="static"}function yn(e,t){if(!pe(e)||se(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return he(e)===r&&(r=r.ownerDocument.body),r}function ca(e,t){const r=te(e);if($t(e))return r;if(!pe(e)){let o=Ae(e);for(;o&&!We(o);){if(ae(o)&&!tr(o))return o;o=Ae(o)}return r}let n=yn(e,t);for(;n&&tu(n)&&tr(n);)n=yn(n,t);return n&&We(n)&&tr(n)&&!Ir(n)?r:n||su(e)||r}const wu=async function(e){const t=this.getOffsetParent||ca,r=this.getDimensions,n=await r(e.floating);return{reference:xu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function yu(e){return se(e).direction==="rtl"}const Cu={convertOffsetParentRelativeRectToViewportRelativeRect:uu,getDocumentElement:he,getClippingRect:vu,getOffsetParent:ca,getElementRects:wu,getClientRects:du,getDimensions:bu,getScale:$e,isElement:ae,isRTL:yu};function la(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Su(e,t){let r=null,n;const o=he(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:m,height:h}=d;if(i||t(),!m||!h)return;const v=ht(p),g=ht(o.clientWidth-(f+m)),b=ht(o.clientHeight-(p+h)),x=ht(f),y={rootMargin:-v+"px "+-g+"px "+-b+"px "+-x+"px",threshold:ee(0,Re(1,u))||1};let C=!0;function A(j){const E=j[0].intersectionRatio;if(E!==u){if(!C)return s();E?s(!1,E):n=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!la(d,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(A,{...y,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,y)}r.observe(e)}return s(!0),a}function Ru(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,d=Dr(e),f=o||a?[...d?et(d):[],...et(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const p=d&&i?Su(d,r):null;let m=-1,h=null;s&&(h=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),r()}),d&&!u&&h.observe(d),h.observe(t));let v,g=u?_e(e):null;u&&b();function b(){const x=_e(e);g&&!la(g,x)&&r(),g=x,v=requestAnimationFrame(b)}return r(),()=>{var x;f.forEach(w=>{o&&w.removeEventListener("scroll",r),a&&w.removeEventListener("resize",r)}),p?.(),(x=h)==null||x.disconnect(),h=null,u&&cancelAnimationFrame(v)}}const Au=Xl,Eu=ql,ku=Gl,Pu=Ql,Mu=Kl,Cn=Ul,_u=Zl,ju=(e,t,r)=>{const n=new Map,o={platform:Cu,...r},a={...o.platform,_c:n};return Hl(e,t,{...o,platform:a})};var Nu=typeof document<"u",Tu=function(){},wt=Nu?_.useLayoutEffect:Tu;function _t(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!_t(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!_t(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ua(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sn(e,t){const r=ua(e);return Math.round(t*r)/r}function rr(e){const t=l.useRef(e);return wt(()=>{t.current=e}),t}function Iu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:u,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=l.useState(n);_t(m,n)||h(n);const[v,g]=l.useState(null),[b,x]=l.useState(null),w=l.useCallback(R=>{R!==j.current&&(j.current=R,g(R))},[]),y=l.useCallback(R=>{R!==E.current&&(E.current=R,x(R))},[]),C=a||v,A=s||b,j=l.useRef(null),E=l.useRef(null),S=l.useRef(f),T=u!=null,I=rr(u),B=rr(o),W=rr(d),V=l.useCallback(()=>{if(!j.current||!E.current)return;const R={placement:t,strategy:r,middleware:m};B.current&&(R.platform=B.current),ju(j.current,E.current,R).then(N=>{const Y={...N,isPositioned:W.current!==!1};$.current&&!_t(S.current,Y)&&(S.current=Y,Tn.flushSync(()=>{p(Y)}))})},[m,t,r,B,W]);wt(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,p(R=>({...R,isPositioned:!1})))},[d]);const $=l.useRef(!1);wt(()=>($.current=!0,()=>{$.current=!1}),[]),wt(()=>{if(C&&(j.current=C),A&&(E.current=A),C&&A){if(I.current)return I.current(C,A,V);V()}},[C,A,V,I,T]);const U=l.useMemo(()=>({reference:j,floating:E,setReference:w,setFloating:y}),[w,y]),D=l.useMemo(()=>({reference:C,floating:A}),[C,A]),z=l.useMemo(()=>{const R={position:r,left:0,top:0};if(!D.floating)return R;const N=Sn(D.floating,f.x),Y=Sn(D.floating,f.y);return i?{...R,transform:"translate("+N+"px, "+Y+"px)",...ua(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:N,top:Y}},[r,i,D.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:V,refs:U,elements:D,floatingStyles:z}),[f,V,U,D,z])}const Ou=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Cn({element:n.current,padding:o}).fn(r):{}:n?Cn({element:n,padding:o}).fn(r):{}}}},Du=(e,t)=>({...Au(e),options:[e,t]}),Lu=(e,t)=>({...Eu(e),options:[e,t]}),Fu=(e,t)=>({..._u(e),options:[e,t]}),Bu=(e,t)=>({...ku(e),options:[e,t]}),$u=(e,t)=>({...Pu(e),options:[e,t]}),zu=(e,t)=>({...Mu(e),options:[e,t]}),Wu=(e,t)=>({...Ou(e),options:[e,t]});var Vu="Arrow",da=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return c.jsx(H.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});da.displayName=Vu;var Hu=da;function Uu(e){const[t,r]=l.useState(void 0);return fe(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Lr="Popper",[fa,pa]=Ee(Lr),[Gu,ma]=fa(Lr),ha=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return c.jsx(Gu,{scope:t,anchor:n,onAnchorChange:o,children:r})};ha.displayName=Lr;var ga="PopperAnchor",va=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=ma(ga,r),s=l.useRef(null),i=G(t,s),u=l.useRef(null);return l.useEffect(()=>{const d=u.current;u.current=n?.current||s.current,d!==u.current&&a.onAnchorChange(u.current)}),n?null:c.jsx(H.div,{...o,ref:i})});va.displayName=ga;var Fr="PopperContent",[Ku,Yu]=fa(Fr),ba=l.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:v,...g}=e,b=ma(Fr,r),[x,w]=l.useState(null),y=G(t,F=>w(F)),[C,A]=l.useState(null),j=Uu(C),E=j?.width??0,S=j?.height??0,T=n+(a!=="center"?"-"+a:""),I=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(d)?d:[d],W=B.length>0,V={padding:I,boundary:B.filter(qu),altBoundary:W},{refs:$,floatingStyles:U,placement:D,isPositioned:z,middlewareData:R}=Iu({strategy:"fixed",placement:T,whileElementsMounted:(...F)=>Ru(...F,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[Du({mainAxis:o+S,alignmentAxis:s}),u&&Lu({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Fu():void 0,...V}),u&&Bu({...V}),$u({...V,apply:({elements:F,rects:ye,availableWidth:Te,availableHeight:Ie})=>{const{width:Xe,height:Oe}=ye.reference,dt=F.floating.style;dt.setProperty("--radix-popper-available-width",`${Te}px`),dt.setProperty("--radix-popper-available-height",`${Ie}px`),dt.setProperty("--radix-popper-anchor-width",`${Xe}px`),dt.setProperty("--radix-popper-anchor-height",`${Oe}px`)}}),C&&Wu({element:C,padding:i}),Zu({arrowWidth:E,arrowHeight:S}),m&&zu({strategy:"referenceHidden",...V})]}),[N,Y]=ya(D),J=Z(v);fe(()=>{z&&J?.()},[z,J]);const oe=R.arrow?.x,K=R.arrow?.y,X=R.arrow?.centerOffset!==0,[ve,ce]=l.useState();return fe(()=>{x&&ce(window.getComputedStyle(x).zIndex)},[x]),c.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:z?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Ku,{scope:r,placedSide:N,onArrowChange:A,arrowX:oe,arrowY:K,shouldHideArrow:X,children:c.jsx(H.div,{"data-side":N,"data-align":Y,...g,ref:y,style:{...g.style,animation:z?void 0:"none"}})})})});ba.displayName=Fr;var xa="PopperArrow",Xu={top:"bottom",right:"left",bottom:"top",left:"right"},wa=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Yu(xa,n),s=Xu[a.placedSide];return c.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:c.jsx(Hu,{...o,ref:r,style:{...o.style,display:"block"}})})});wa.displayName=xa;function qu(e){return e!==null}var Zu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[d,f]=ya(r),p={start:"0%",center:"50%",end:"100%"}[f],m=(o.arrow?.x??0)+i/2,h=(o.arrow?.y??0)+u/2;let v="",g="";return d==="bottom"?(v=s?p:`${m}px`,g=`${-u}px`):d==="top"?(v=s?p:`${m}px`,g=`${n.floating.height+u}px`):d==="right"?(v=`${-u}px`,g=s?p:`${h}px`):d==="left"&&(v=`${n.floating.width+u}px`,g=s?p:`${h}px`),{data:{x:v,y:g}}}});function ya(e){const[t,r="center"]=e.split("-");return[t,r]}var Ca=ha,Qu=va,Ju=ba,ed=wa,td="Portal",Sa=l.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=l.useState(!1);fe(()=>a(!0),[]);const s=r||o&&globalThis?.document?.body;return s?jn.createPortal(c.jsx(H.div,{...n,ref:t}),s):null});Sa.displayName=td;var nr="rovingFocusGroup.onEntryFocus",rd={bubbles:!1,cancelable:!0},it="RovingFocusGroup",[gr,Ra,nd]=xr(it),[od,Aa]=Ee(it,[nd]),[ad,sd]=od(it),Ea=l.forwardRef((e,t)=>c.jsx(gr.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(gr.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(id,{...e,ref:t})})}));Ea.displayName=it;var id=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=l.useRef(null),h=G(t,m),v=Dt(a),[g,b]=je({prop:s,defaultProp:i??null,onChange:u,caller:it}),[x,w]=l.useState(!1),y=Z(d),C=Ra(r),A=l.useRef(!1),[j,E]=l.useState(0);return l.useEffect(()=>{const S=m.current;if(S)return S.addEventListener(nr,y),()=>S.removeEventListener(nr,y)},[y]),c.jsx(ad,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:g,onItemFocus:l.useCallback(S=>b(S),[b]),onItemShiftTab:l.useCallback(()=>w(!0),[]),onFocusableItemAdd:l.useCallback(()=>E(S=>S+1),[]),onFocusableItemRemove:l.useCallback(()=>E(S=>S-1),[]),children:c.jsx(H.div,{tabIndex:x||j===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{A.current=!0}),onFocus:O(e.onFocus,S=>{const T=!A.current;if(S.target===S.currentTarget&&T&&!x){const I=new CustomEvent(nr,rd);if(S.currentTarget.dispatchEvent(I),!I.defaultPrevented){const B=C().filter(D=>D.focusable),W=B.find(D=>D.active),V=B.find(D=>D.id===g),U=[W,V,...B].filter(Boolean).map(D=>D.ref.current);Ma(U,f)}}A.current=!1}),onBlur:O(e.onBlur,()=>w(!1))})})}),ka="RovingFocusGroupItem",Pa=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,u=Me(),d=a||u,f=sd(ka,r),p=f.currentTabStopId===d,m=Ra(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:g}=f;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),c.jsx(gr.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:c.jsx(H.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:O(e.onMouseDown,b=>{n?f.onItemFocus(d):b.preventDefault()}),onFocus:O(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:O(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=ud(b,f.orientation,f.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let y=m().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")y.reverse();else if(x==="prev"||x==="next"){x==="prev"&&y.reverse();const C=y.indexOf(b.currentTarget);y=f.loop?dd(y,C+1):y.slice(C+1)}setTimeout(()=>Ma(y))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:g!=null}):s})})});Pa.displayName=ka;var cd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ld(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ud(e,t,r){const n=ld(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return cd[n]}function Ma(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function dd(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var fd=Ea,pd=Pa,md=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Le=new WeakMap,gt=new WeakMap,vt={},or=0,_a=function(e){return e&&(e.host||_a(e.parentNode))},hd=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=_a(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},gd=function(e,t,r,n){var o=hd(t,Array.isArray(e)?e:[e]);vt[r]||(vt[r]=new WeakMap);var a=vt[r],s=[],i=new Set,u=new Set(o),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(m){if(i.has(m))f(m);else try{var h=m.getAttribute(n),v=h!==null&&h!=="false",g=(Le.get(m)||0)+1,b=(a.get(m)||0)+1;Le.set(m,g),a.set(m,b),s.push(m),g===1&&v&>.set(m,!0),b===1&&m.setAttribute(r,"true"),v||m.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return f(t),i.clear(),or++,function(){s.forEach(function(p){var m=Le.get(p)-1,h=a.get(p)-1;Le.set(p,m),a.set(p,h),m||(gt.has(p)||p.removeAttribute(n),gt.delete(p)),h||p.removeAttribute(r)}),or--,or||(Le=new WeakMap,Le=new WeakMap,gt=new WeakMap,vt={})}},vd=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=md(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),gd(n,o,r,"aria-hidden")):function(){return null}},le=function(){return le=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},le.apply(this,arguments)};function ja(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function bd(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var yt="right-scroll-bar-position",Ct="width-before-scroll-bar",xd="with-scroll-bars-hidden",wd="--removed-body-scroll-bar-size";function ar(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yd(e,t){var r=_.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Cd=typeof window<"u"?l.useLayoutEffect:l.useEffect,Rn=new WeakMap;function Sd(e,t){var r=yd(null,function(n){return e.forEach(function(o){return ar(o,n)})});return Cd(function(){var n=Rn.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||ar(i,null)}),a.forEach(function(i){o.has(i)||ar(i,s)})}Rn.set(r,e)},[e]),r}function Rd(e){return e}function Ad(e,t){t===void 0&&(t=Rd);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var u=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(u)};d(),r={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),r}}}};return o}function Ed(e){e===void 0&&(e={});var t=Ad(null);return t.options=le({async:!0,ssr:!1},e),t}var Na=function(e){var t=e.sideCar,r=ja(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,le({},r))};Na.isSideCarExport=!0;function kd(e,t){return e.useMedium(t),Na}var Ta=Ed(),sr=function(){},Vt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:sr,onWheelCapture:sr,onTouchMoveCapture:sr}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,h=e.noRelative,v=e.noIsolation,g=e.inert,b=e.allowPinchZoom,x=e.as,w=x===void 0?"div":x,y=e.gapMode,C=ja(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=m,j=Sd([r,t]),E=le(le({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(A,{sideCar:Ta,removeScrollBar:d,shards:p,noRelative:h,noIsolation:v,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:y}),s?l.cloneElement(l.Children.only(i),le(le({},E),{ref:j})):l.createElement(w,le({},E,{className:u,ref:j}),i))});Vt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vt.classNames={fullWidth:Ct,zeroRight:yt};var Pd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Md(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pd();return t&&e.setAttribute("nonce",t),e}function _d(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Nd=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Md())&&(_d(t,r),jd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Td=function(){var e=Nd();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ia=function(){var e=Td(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Id={left:0,top:0,right:0,gap:0},ir=function(e){return parseInt(e||"",10)||0},Od=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ir(r),ir(n),ir(o)]},Dd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Id;var t=Od(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Ld=Ia(),ze="data-scroll-locked",Fd=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
52
|
-
.`.concat(
|
|
53
|
-
overflow: hidden `).concat(
|
|
54
|
-
padding-right: `).concat(
|
|
51
|
+
*/const Kc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],or=ft("x",Kc);function kt({variant:e="primary",size:t="large",shape:n="pill",loading:r=!1,type:o="button",disabled:a=!1,className:s,children:l,...d}){return c.jsxs("button",{"aria-busy":r,className:P("after:ease-[cubic-bezier(0,0.25,0,1)] relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition-[opacity,transform] after:duration-300 focus-visible:outline-2 focus-visible:outline-[var(--button-focus,hsl(var(--primary)))] disabled:pointer-events-none disabled:opacity-30",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))] focus-visible:outline-offset-2",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))] focus-visible:outline-offset-2",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))] focus-visible:outline-offset-2",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))] focus-visible:outline-offset-0",danger:"border-[var(--button-danger-border,color-mix(in_oklab,hsl(var(--error)),white_30%))] bg-[var(--button-danger-background,color-mix(in_oklab,hsl(var(--error)),white_30%))] text-[var(--button-danger-text,hsl(var(--foreground)))] after:bg-[var(--button-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] focus-visible:outline-offset-2"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[n],!r&&!a&&"hover:after:translate-x-0",r&&"pointer-events-none",s),"data-slot":"button",disabled:a,type:o,...d,children:[c.jsx("span",{className:P("inline-flex items-center justify-center transition-all duration-300 ease-in-out",r?"-translate-y-10 opacity-0":"translate-y-0 opacity-100",n==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],n!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:l}),c.jsx("span",{className:P("absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",r?"translate-y-0 opacity-100":"translate-y-10 opacity-0"),children:c.jsx(Yc,{className:P("animate-spin",e==="tertiary"&&"text-[var(--button-loader-icon,hsl(var(--foreground)))]")})})]})}function da({children:e,...t}){const{action:n}=rr();if(!n)return null;const{label:r,onClick:o}=n;return c.jsx(kt,{"data-slot":"alert-button",onClick:o,size:"x-small",variant:"ghost",...t,children:r})}function ua({...e}){const{dismiss:t}=rr(),{label:n,onClick:r}=t;return c.jsx(kt,{"aria-label":n,"data-slot":"alert-close-button",onClick:r,shape:"circle",size:"x-small",variant:"ghost",...e,children:c.jsx(or,{size:20,strokeWidth:1})})}function fa({className:e,children:t,...n}){return c.jsx("span",{className:P("origin-left font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] [font-family:var(--animated-underline-font-family,var(--font-family-body))] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",e),...n,children:t})}function Xc({children:e,shape:t="rounded",className:n,variant:r="primary",...o}){return c.jsx("span",{className:P("px-2 py-0.5 text-xs uppercase tracking-tighter text-[var(--badge-text,hsl(var(--foreground)))] [font-family:var(--badge-font-family,var(--font-family-mono))]",{pill:"rounded-full",rounded:"rounded"}[t],{primary:"bg-[var(--badge-primary-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",warning:"bg-[var(--badge-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--badge-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",success:"bg-[var(--badge-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",info:"bg-[var(--badge-info-background,color-mix(in_oklab,hsl(var(--info)),white_75%))]"}[r],n),...o,children:e})}const qc=({id:e,children:t,hideDismiss:n=!1,className:r,onDismiss:o})=>c.jsx(pa,{hideDismiss:n,id:e,onDismiss:o,children:c.jsx(ha,{className:r,children:c.jsxs(ga,{children:[c.jsx(va,{children:t}),c.jsx(ba,{})]})})}),ma=w.createContext(void 0);function pa({id:e,hideDismiss:t,onDismiss:n,children:r}){const[o,a]=w.useState(!1),[s,l]=w.useState(!1);w.useEffect(()=>{const m=localStorage.getItem(`${e}-hidden-banner`)==="true";a(m),l(!0)},[e]);const d=w.useCallback(()=>{a(!0),localStorage.setItem(`${e}-hidden-banner`,"true"),n?.()},[e,n]),u=w.useMemo(()=>({id:e,isInitialized:s,isDismissed:o,hideDismiss:t,handleDismiss:d}),[e,s,o,t,d]);return c.jsx(ma.Provider,{value:u,children:s?r:null})}function ar(){const e=w.use(ma);if(e===void 0)throw new Error("useBanner must be used within a BannerProvider");return e}function ha({children:e,className:t,...n}){const{id:r,isDismissed:o}=ar();return c.jsx("div",{className:P("overflow-hidden bg-[var(--banner-background,hsl(var(--primary)))] transition-all duration-300 ease-in @container",o?"pointer-events-none max-h-0":"max-h-32",t),"data-slot":"banner-root",id:r,...n,children:e})}function ga({className:e,children:t}){return c.jsx("div",{className:P("flex items-center justify-between gap-4 px-8 py-3",e),"data-slot":"banner-content",children:t})}function va({children:e,className:t,...n}){return c.jsx("div",{className:P("flex-1 text-sm text-[var(--banner-text,hsl(var(--foreground)))] [font-family:var(--banner-font-family,var(--font-family-body))] @xl:text-center @xl:text-base",t),"data-slot":"banner-text",...n,children:e})}function ba({className:e,...t}){const{hideDismiss:n,handleDismiss:r}=ar();return n?null:c.jsx("button",{"aria-label":"Dismiss banner",className:P("flex h-8 w-8 items-center justify-center rounded-full bg-[var(--banner-close-background,transparent)] text-[var(--banner-close-icon,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] transition-colors duration-300 hover:bg-[var(--banner-close-background-hover,color-mix(in_oklab,hsl(var(--background))_40%,transparent))] hover:text-[var(--banner-close-icon-hover,hsl(var(--foreground)))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--banner-focus,hsl(var(--foreground)))]",e),"data-slot":"banner-dismiss",onClick:o=>{o.preventDefault(),r()},...t,children:c.jsx(or,{absoluteStrokeWidth:!0,size:20,strokeWidth:1.5})})}function Zc({author:e,content:t,date:n,link:r,image:o,title:a,className:s}){return c.jsxs(xa,{className:s,children:[c.jsx(Ca,{children:o?c.jsx("img",{alt:o.alt,src:o.src}):c.jsx(wa,{children:a})}),c.jsx(Ea,{children:a}),c.jsx(Ra,{children:t}),c.jsxs(ka,{children:[c.jsx(Aa,{children:n}),e!==void 0&&c.jsx(Pa,{children:e})]}),c.jsx(Sa,{href:r.href,children:c.jsx("span",{className:"sr-only",children:r.ariaLabel})})]})}function xa({as:e,className:t,children:n,...r}){const o=e??"article";return c.jsx(o,{className:P("group relative w-full max-w-md @container [font-family:var(--blog-post-card-font-family,var(--font-family-body))]",t),"data-slot":"blog-post-card-root",...r,children:n})}function wa({children:e,className:t,...n}){return c.jsx("div",{className:P("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",t),...n,children:e})}var Qc=Symbol.for("react.lazy"),qt=f[" use ".trim().toString()];function Jc(e){return typeof e=="object"&&e!==null&&"then"in e}function ya(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Qc&&"_payload"in e&&Jc(e._payload)}function ed(e){const t=td(e),n=f.forwardRef((r,o)=>{let{children:a,...s}=r;ya(a)&&typeof qt=="function"&&(a=qt(a._payload));const l=f.Children.toArray(a),d=l.find(rd);if(d){const u=d.props.children,m=l.map(i=>i===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:i);return c.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,m):null})}return c.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var sr=ed("Slot");function td(e){const t=f.forwardRef((n,r)=>{let{children:o,...a}=n;if(ya(o)&&typeof qt=="function"&&(o=qt(o._payload)),f.isValidElement(o)){const s=ad(o),l=od(a,o.props);return o.type!==f.Fragment&&(l.ref=r?Et(r,s):s),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nd=Symbol("radix.slottable");function rd(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nd}function od(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]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function ad(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ca({asChild:e=!1,className:t,children:n,...r}){const o="h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110",a=()=>e&&n?c.jsx(sr,{className:o,children:n}):n;return c.jsx("div",{className:P("relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-[var(--blog-post-card-image-background,hsl(var(--contrast-100)))]",t),...r,children:a()})}function Sa({asChild:e=!1,className:t,children:n,...r}){const o=P("absolute inset-0 rounded-b-lg rounded-t-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--blog-post-card-focus,hsl(var(--primary)))] focus-visible:ring-offset-4",t);return e?c.jsx(sr,{className:o,...r,children:n}):c.jsx("a",{className:o,...r,children:n})}function Ea({className:e,children:t,...n}){return c.jsx("h5",{className:P("mt-4 text-lg font-medium leading-snug text-[var(--blog-post-card-title-text,hsl(var(--foreground)))]",e),"data-slot":"blog-post-card-title",...n,children:t})}function Ra({className:e,children:t,...n}){return c.jsx("p",{className:P("mt-1.5 line-clamp-3 text-sm font-normal text-[var(--blog-post-card-content-text,hsl(var(--contrast-400)))]",e),"data-slot":"blog-post-card-content",...n,children:t})}function ka({children:e,className:t,...n}){return c.jsx("div",{className:P("mt-3 text-sm text-[var(--blog-post-card-author-date-text,hsl(var(--foreground)))]",t),"data-slot":"blog-post-card-details",...n,children:e})}function Aa({className:e,children:t,...n}){return c.jsx("time",{className:e,dateTime:t,...n,"data-slot":"blog-post-card-date",children:new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})}function Pa({className:e,children:t,...n}){return c.jsxs(c.Fragment,{children:[c.jsx("span",{className:P("after:mx-2 after:content-['•']",e),"data-slot":"blog-post-card-author",...n}),c.jsx("span",{children:t})]})}function Ma({className:e,...t}){return c.jsx("div",{className:P("bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]",e),"data-slot":"skeleton-box",...t})}function vt({characterCount:e=10,className:t,...n}){return c.jsx("div",{className:P("flex h-[1lh] items-center",t),"data-slot":"skeleton-text",...n,children:c.jsx("div",{className:P("h-[1ex] max-w-full rounded-[inherit] bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]"),style:{width:e==="full"?"100%":`${e}ch`}})})}function sd({className:e,aspectRatio:t="4:3",...n}){return c.jsxs("div",{className:P("w-full max-w-md @container",e),...n,children:[c.jsx(Ma,{className:P("mb-4 w-full rounded-2xl",{"5:6":"aspect-[5/6]","3:4":"aspect-[3/4]","4:3":"aspect-[4/3]","1:1":"aspect-square"}[t])}),c.jsx(vt,{characterCount:25,className:"mt-4 rounded text-lg"}),c.jsxs("div",{className:"mt-1.5",children:[c.jsx(vt,{characterCount:"full",className:"rounded text-sm"}),c.jsx(vt,{characterCount:"full",className:"rounded text-sm"}),c.jsx(vt,{characterCount:15,className:"rounded text-sm"})]}),c.jsx(vt,{characterCount:10,className:"mt-3 rounded text-sm"})]})}function id({variant:e="primary",size:t="large",shape:n="pill",className:r,children:o,render:a,...s}){const l=P("relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition after:duration-300 after:[animation-timing-function:cubic-bezier(0,0.25,0,1)] hover:after:translate-x-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--button-focus,hsl(var(--primary)))] focus-visible:ring-offset-2",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))]",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))]",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))]"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[n],r),d=c.jsx("span",{className:P("inline-flex items-center justify-center",n==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],n!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:o});function u(){return a?a({...s,className:l,children:d}):c.jsx("a",{...s,className:l,children:d})}return c.jsx(c.Fragment,{children:u()})}function ld({as:e,className:t,children:n,link:r,...o}){return c.jsxs(Na,{as:e,className:t,...o,children:[n,r&&c.jsx(_a,{href:r.href,children:c.jsx("span",{className:"sr-only",children:r.ariaLabel})})]})}function _a({asChild:e=!1,className:t,children:n,...r}){const o=P("absolute inset-0 rounded-2xl","focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--card-focus,hsl(var(--primary)))]",t);return e?c.jsx(sr,{className:o,"data-slot":"card-link",...r,children:n}):c.jsx("a",{className:o,"data-slot":"card-link",...r,children:n})}function Na({as:e,className:t,children:n}){const r=e??"div";return c.jsx(r,{className:P("group/card relative w-full rounded-2xl border p-6 @container","border-[var(--card-border-color,hsl(var(--contrast-200)))] bg-[var(--card-background,hsl(var(--background)))] has-[a]:hover:bg-[var(--card-hover-background,color-mix(in_oklab,hsl(var(--contrast-100))_50%,transparent))]","transition-colors duration-300 ease-linear",t),"data-slot":"card-root",children:n})}function cd({className:e,...t}){return c.jsx("div",{className:P("@container",e),...t,children:c.jsx(Ma,{})})}function dd({className:e,children:t,removeLabel:n="Remove",...r}){return c.jsxs(Ta,{className:e,children:[t,c.jsx(ja,{title:n,...r})]})}function Ta({children:e,className:t,...n}){return c.jsx("span",{className:P("flex h-9 items-center gap-1.5 rounded-lg bg-[var(--chip-background,hsl(var(--contrast-100)))] py-2 pe-2 ps-3 text-sm font-semibold leading-5 text-[var(--chip-text,hsl(var(--foreground)))] [font-family:var(--chip-font-family,var(--font-family-body))]",t),...n,children:e})}function ja({className:e,...t}){return c.jsx("button",{className:P("flex h-5 w-5 items-center justify-center rounded-full hover:bg-[var(--chip-background-hover,hsl(var(--contrast-200)))] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--button-focus,hsl(var(--foreground)))]",e),...t,children:c.jsx(or,{size:12})})}function ud({className:e,items:t,trigger:n,align:r,sideOffset:o,label:a,showScrollArea:s=!0,maxHeight:l=320}){return c.jsxs(ui,{align:r,maxHeight:l,showScrollArea:s,sideOffset:o,children:[c.jsx(fi,{asChild:!0,children:n!==void 0?n:c.jsx(kt,{shape:"circle",size:"small",variant:"ghost",children:c.jsx(Uc,{size:20})})}),c.jsx(Er,{children:c.jsx(mi,{className:P(e),children:c.jsxs(Pr,{children:[c.jsx(gi,{children:a}),t.map((d,u)=>c.jsx(Hi,{menuKey:u,menuNode:d},u))]})})})]})}function oe(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function fd(e,t=globalThis?.document){const n=oe(e);f.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 md="DismissableLayer",$n="dismissableLayer.update",pd="dismissableLayer.pointerDownOutside",hd="dismissableLayer.focusOutside",Vr,Ia=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Da=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...d}=e,u=f.useContext(Ia),[m,i]=f.useState(null),p=m?.ownerDocument??globalThis?.document,[,h]=f.useState({}),v=J(t,A=>i(A)),g=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(x),y=m?g.indexOf(m):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=b,k=bd(A=>{const E=A.target,I=[...u.branches].some(O=>O.contains(E));!S||I||(o?.(A),s?.(A),A.defaultPrevented||l?.())},p),M=xd(A=>{const E=A.target;[...u.branches].some(O=>O.contains(E))||(a?.(A),s?.(A),A.defaultPrevented||l?.())},p);return fd(A=>{y===u.layers.size-1&&(r?.(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},p),f.useEffect(()=>{if(m)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Vr=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),Ur(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Vr)}},[m,p,n,u]),f.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),Ur())},[m,u]),f.useEffect(()=>{const A=()=>h({});return document.addEventListener($n,A),()=>document.removeEventListener($n,A)},[]),c.jsx(Z.div,{...d,ref:v,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,M.onFocusCapture),onBlurCapture:B(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,k.onPointerDownCapture)})});Da.displayName=md;var gd="DismissableLayerBranch",vd=f.forwardRef((e,t)=>{const n=f.useContext(Ia),r=f.useRef(null),o=J(t,r);return f.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.jsx(Z.div,{...e,ref:o})});vd.displayName=gd;function bd(e,t=globalThis?.document){const n=oe(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let d=function(){Oa(pd,n,u,{discrete:!0})};const u={originalEvent:l};l.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 xd(e,t=globalThis?.document){const n=oe(e),r=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!r.current&&Oa(hd,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 Ur(){const e=new CustomEvent($n);document.dispatchEvent(e)}function Oa(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?wo(o,a):o.dispatchEvent(a)}var kn=0;function wd(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gr()),document.body.insertAdjacentElement("beforeend",e[1]??Gr()),kn++,()=>{kn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),kn--}},[])}function Gr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var An="focusScope.autoFocusOnMount",Pn="focusScope.autoFocusOnUnmount",Yr={bubbles:!1,cancelable:!0},yd="FocusScope",La=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,d]=f.useState(null),u=oe(o),m=oe(a),i=f.useRef(null),p=J(t,g=>d(g)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let g=function(C){if(h.paused||!l)return;const S=C.target;l.contains(S)?i.current=S:ze(i.current,{select:!0})},x=function(C){if(h.paused||!l)return;const S=C.relatedTarget;S!==null&&(l.contains(S)||ze(i.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const k of C)k.removedNodes.length>0&&ze(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",x);const y=new MutationObserver(b);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x),y.disconnect()}}},[r,l,h.paused]),f.useEffect(()=>{if(l){Xr.add(h);const g=document.activeElement;if(!l.contains(g)){const b=new CustomEvent(An,Yr);l.addEventListener(An,u),l.dispatchEvent(b),b.defaultPrevented||(Cd(Ad(Fa(l)),{select:!0}),document.activeElement===g&&ze(l))}return()=>{l.removeEventListener(An,u),setTimeout(()=>{const b=new CustomEvent(Pn,Yr);l.addEventListener(Pn,m),l.dispatchEvent(b),b.defaultPrevented||ze(g??document.body,{select:!0}),l.removeEventListener(Pn,m),Xr.remove(h)},0)}}},[l,u,m,h]);const v=f.useCallback(g=>{if(!n&&!r||h.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(x&&b){const y=g.currentTarget,[C,S]=Sd(y);C&&S?!g.shiftKey&&b===S?(g.preventDefault(),n&&ze(C,{select:!0})):g.shiftKey&&b===C&&(g.preventDefault(),n&&ze(S,{select:!0})):b===y&&g.preventDefault()}},[n,r,h.paused]);return c.jsx(Z.div,{tabIndex:-1,...s,ref:p,onKeyDown:v})});La.displayName=yd;function Cd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ze(r,{select:t}),document.activeElement!==n)return}function Sd(e){const t=Fa(e),n=Kr(t,e),r=Kr(t.reverse(),e);return[n,r]}function Fa(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 Kr(e,t){for(const n of e)if(!Ed(n,{upTo:t}))return n}function Ed(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 Rd(e){return e instanceof HTMLInputElement&&"select"in e}function ze(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Rd(e)&&t&&e.select()}}var Xr=kd();function kd(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qr(e,t),e.unshift(t)},remove(t){e=qr(e,t),e[0]?.resume()}}}function qr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ad(e){return e.filter(t=>t.tagName!=="A")}const Pd=["top","right","bottom","left"],We=Math.min,me=Math.max,Zt=Math.round,Ft=Math.floor,Pe=e=>({x:e,y:e}),Md={left:"right",right:"left",bottom:"top",top:"bottom"},_d={start:"end",end:"start"};function zn(e,t,n){return me(e,We(t,n))}function Oe(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function mt(e){return e.split("-")[1]}function ir(e){return e==="x"?"y":"x"}function lr(e){return e==="y"?"height":"width"}const Nd=new Set(["top","bottom"]);function Ae(e){return Nd.has(Le(e))?"y":"x"}function cr(e){return ir(Ae(e))}function Td(e,t,n){n===void 0&&(n=!1);const r=mt(e),o=cr(e),a=lr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Qt(s)),[s,Qt(s)]}function jd(e){const t=Qt(e);return[Wn(e),t,Wn(t)]}function Wn(e){return e.replace(/start|end/g,t=>_d[t])}const Zr=["left","right"],Qr=["right","left"],Id=["top","bottom"],Dd=["bottom","top"];function Od(e,t,n){switch(e){case"top":case"bottom":return n?t?Qr:Zr:t?Zr:Qr;case"left":case"right":return t?Id:Dd;default:return[]}}function Ld(e,t,n,r){const o=mt(e);let a=Od(Le(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Wn)))),a}function Qt(e){return e.replace(/left|right|bottom|top/g,t=>Md[t])}function Fd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ba(e){return typeof e!="number"?Fd(e):{top:e,right:e,bottom:e,left:e}}function Jt(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 Jr(e,t,n){let{reference:r,floating:o}=e;const a=Ae(t),s=cr(t),l=lr(s),d=Le(t),u=a==="y",m=r.x+r.width/2-o.width/2,i=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let h;switch(d){case"top":h={x:m,y:r.y-o.height};break;case"bottom":h={x:m,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:i};break;case"left":h={x:r.x-o.width,y:i};break;default:h={x:r.x,y:r.y}}switch(mt(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const Bd=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:i}=Jr(u,r,d),p=r,h={},v=0;for(let g=0;g<l.length;g++){const{name:x,fn:b}=l[g],{x:y,y:C,data:S,reset:k}=await b({x:m,y:i,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});m=y??m,i=C??i,h={...h,[x]:{...h[x],...S}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:m,y:i}=Jr(u,p,d)),g=-1)}return{x:m,y:i,placement:p,strategy:o,middlewareData:h}};async function wt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:l,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:i="floating",altBoundary:p=!1,padding:h=0}=Oe(t,e),v=Ba(h),x=l[p?i==="floating"?"reference":"floating":i],b=Jt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:d})),y=i==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},k=Jt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:C,strategy:d}):y);return{top:(b.top-k.top+v.top)/S.y,bottom:(k.bottom-b.bottom+v.bottom)/S.y,left:(b.left-k.left+v.left)/S.x,right:(k.right-b.right+v.right)/S.x}}const $d=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:d}=t,{element:u,padding:m=0}=Oe(e,t)||{};if(u==null)return{};const i=Ba(m),p={x:n,y:r},h=cr(o),v=lr(h),g=await s.getDimensions(u),x=h==="y",b=x?"top":"left",y=x?"bottom":"right",C=x?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[h]-p[h]-a.floating[v],k=p[h]-a.reference[h],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let A=M?M[C]:0;(!A||!await(s.isElement==null?void 0:s.isElement(M)))&&(A=l.floating[C]||a.floating[v]);const E=S/2-k/2,I=A/2-g[v]/2-1,O=We(i[b],I),V=We(i[y],I),G=O,H=A-g[v]-V,U=A/2-g[v]/2+E,q=zn(G,U,H),N=!d.arrow&&mt(o)!=null&&U!==q&&a.reference[v]/2-(U<G?O:V)-g[v]/2<0,L=N?U<G?U-G:U-H:0;return{[h]:p[h]+L,data:{[h]:q,centerOffset:U-q-L,...N&&{alignmentOffset:L}},reset:N}}}),zd=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:l,platform:d,elements:u}=t,{mainAxis:m=!0,crossAxis:i=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...x}=Oe(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=Le(o),y=Ae(l),C=Le(l)===l,S=await(d.isRTL==null?void 0:d.isRTL(u.floating)),k=p||(C||!g?[Qt(l)]:jd(l)),M=v!=="none";!p&&M&&k.push(...Ld(l,g,v,S));const A=[l,...k],E=await wt(t,x),I=[];let O=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&I.push(E[b]),i){const U=Td(o,s,S);I.push(E[U[0]],E[U[1]])}if(O=[...O,{placement:o,overflows:I}],!I.every(U=>U<=0)){var V,G;const U=(((V=a.flip)==null?void 0:V.index)||0)+1,q=A[U];if(q&&(!(i==="alignment"?y!==Ae(q):!1)||O.every(R=>Ae(R.placement)===y?R.overflows[0]>0:!0)))return{data:{index:U,overflows:O},reset:{placement:q}};let N=(G=O.filter(L=>L.overflows[0]<=0).sort((L,R)=>L.overflows[1]-R.overflows[1])[0])==null?void 0:G.placement;if(!N)switch(h){case"bestFit":{var H;const L=(H=O.filter(R=>{if(M){const _=Ae(R.placement);return _===y||_==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(_=>_>0).reduce((_,K)=>_+K,0)]).sort((R,_)=>R[1]-_[1])[0])==null?void 0:H[0];L&&(N=L);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function eo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function to(e){return Pd.some(t=>e[t]>=0)}const Wd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Oe(e,t);switch(r){case"referenceHidden":{const a=await wt(t,{...o,elementContext:"reference"}),s=eo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:to(s)}}}case"escaped":{const a=await wt(t,{...o,altBoundary:!0}),s=eo(a,n.floating);return{data:{escapedOffsets:s,escaped:to(s)}}}default:return{}}}}},$a=new Set(["left","top"]);async function Hd(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Le(n),l=mt(n),d=Ae(n)==="y",u=$a.has(s)?-1:1,m=a&&d?-1:1,i=Oe(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:v}=typeof i=="number"?{mainAxis:i,crossAxis:0,alignmentAxis:null}:{mainAxis:i.mainAxis||0,crossAxis:i.crossAxis||0,alignmentAxis:i.alignmentAxis};return l&&typeof v=="number"&&(h=l==="end"?v*-1:v),d?{x:h*m,y:p*u}:{x:p*u,y:h*m}}const Vd=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:l}=t,d=await Hd(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Ud=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:l={fn:x=>{let{x:b,y}=x;return{x:b,y}}},...d}=Oe(e,t),u={x:n,y:r},m=await wt(t,d),i=Ae(Le(o)),p=ir(i);let h=u[p],v=u[i];if(a){const x=p==="y"?"top":"left",b=p==="y"?"bottom":"right",y=h+m[x],C=h-m[b];h=zn(y,h,C)}if(s){const x=i==="y"?"top":"left",b=i==="y"?"bottom":"right",y=v+m[x],C=v-m[b];v=zn(y,v,C)}const g=l.fn({...t,[p]:h,[i]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:a,[i]:s}}}}}},Gd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:d=!0,crossAxis:u=!0}=Oe(e,t),m={x:n,y:r},i=Ae(o),p=ir(i);let h=m[p],v=m[i];const g=Oe(l,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(d){const C=p==="y"?"height":"width",S=a.reference[p]-a.floating[C]+x.mainAxis,k=a.reference[p]+a.reference[C]-x.mainAxis;h<S?h=S:h>k&&(h=k)}if(u){var b,y;const C=p==="y"?"width":"height",S=$a.has(Le(o)),k=a.reference[i]-a.floating[C]+(S&&((b=s.offset)==null?void 0:b[i])||0)+(S?0:x.crossAxis),M=a.reference[i]+a.reference[C]+(S?0:((y=s.offset)==null?void 0:y[i])||0)-(S?x.crossAxis:0);v<k?v=k:v>M&&(v=M)}return{[p]:h,[i]:v}}}},Yd=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:l}=t,{apply:d=()=>{},...u}=Oe(e,t),m=await wt(t,u),i=Le(o),p=mt(o),h=Ae(o)==="y",{width:v,height:g}=a.floating;let x,b;i==="top"||i==="bottom"?(x=i,b=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(b=i,x=p==="end"?"top":"bottom");const y=g-m.top-m.bottom,C=v-m.left-m.right,S=We(g-m[x],y),k=We(v-m[b],C),M=!t.middlewareData.shift;let A=S,E=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),M&&!p){const O=me(m.left,0),V=me(m.right,0),G=me(m.top,0),H=me(m.bottom,0);h?E=v-2*(O!==0||V!==0?O+V:me(m.left,m.right)):A=g-2*(G!==0||H!==0?G+H:me(m.top,m.bottom))}await d({...t,availableWidth:E,availableHeight:A});const I=await s.getDimensions(l.floating);return v!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function dn(){return typeof window<"u"}function pt(e){return za(e)?(e.nodeName||"").toLowerCase():"#document"}function pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Te(e){var t;return(t=(za(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function za(e){return dn()?e instanceof Node||e instanceof pe(e).Node:!1}function ye(e){return dn()?e instanceof Element||e instanceof pe(e).Element:!1}function _e(e){return dn()?e instanceof HTMLElement||e instanceof pe(e).HTMLElement:!1}function no(e){return!dn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pe(e).ShadowRoot}const Kd=new Set(["inline","contents"]);function At(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Kd.has(o)}const Xd=new Set(["table","td","th"]);function qd(e){return Xd.has(pt(e))}const Zd=[":popover-open",":modal"];function un(e){return Zd.some(t=>{try{return e.matches(t)}catch{return!1}})}const Qd=["transform","translate","scale","rotate","perspective"],Jd=["transform","translate","scale","rotate","perspective","filter"],eu=["paint","layout","strict","content"];function dr(e){const t=ur(),n=ye(e)?Ce(e):e;return Qd.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)||Jd.some(r=>(n.willChange||"").includes(r))||eu.some(r=>(n.contain||"").includes(r))}function tu(e){let t=He(e);for(;_e(t)&&!lt(t);){if(dr(t))return t;if(un(t))return null;t=He(t)}return null}function ur(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const nu=new Set(["html","body","#document"]);function lt(e){return nu.has(pt(e))}function Ce(e){return pe(e).getComputedStyle(e)}function fn(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function He(e){if(pt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||no(e)&&e.host||Te(e);return no(t)?t.host:t}function Wa(e){const t=He(e);return lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:_e(t)&&At(t)?t:Wa(t)}function yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Wa(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=pe(o);if(a){const l=Hn(s);return t.concat(s,s.visualViewport||[],At(o)?o:[],l&&n?yt(l):[])}return t.concat(o,yt(o,[],n))}function Hn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ha(e){const t=Ce(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_e(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Zt(n)!==a||Zt(r)!==s;return l&&(n=a,r=s),{width:n,height:r,$:l}}function fr(e){return ye(e)?e:e.contextElement}function st(e){const t=fr(e);if(!_e(t))return Pe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ha(t);let s=(a?Zt(n.width):n.width)/r,l=(a?Zt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ru=Pe(0);function Va(e){const t=pe(e);return!ur()||!t.visualViewport?ru:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ou(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==pe(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=fr(e);let s=Pe(1);t&&(r?ye(r)&&(s=st(r)):s=st(e));const l=ou(a,n,r)?Va(a):Pe(0);let d=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,m=o.width/s.x,i=o.height/s.y;if(a){const p=pe(a),h=r&&ye(r)?pe(r):r;let v=p,g=Hn(v);for(;g&&r&&h!==v;){const x=st(g),b=g.getBoundingClientRect(),y=Ce(g),C=b.left+(g.clientLeft+parseFloat(y.paddingLeft))*x.x,S=b.top+(g.clientTop+parseFloat(y.paddingTop))*x.y;d*=x.x,u*=x.y,m*=x.x,i*=x.y,d+=C,u+=S,v=pe(g),g=Hn(v)}}return Jt({width:m,height:i,x:d,y:u})}function mn(e,t){const n=fn(e).scrollLeft;return t?t.left+n:Xe(Te(e)).left+n}function Ua(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-mn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function au(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Te(r),l=t?un(t.floating):!1;if(r===s||l&&a)return n;let d={scrollLeft:0,scrollTop:0},u=Pe(1);const m=Pe(0),i=_e(r);if((i||!i&&!a)&&((pt(r)!=="body"||At(s))&&(d=fn(r)),_e(r))){const h=Xe(r);u=st(r),m.x=h.x+r.clientLeft,m.y=h.y+r.clientTop}const p=s&&!i&&!a?Ua(s,d):Pe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+m.x+p.x,y:n.y*u.y-d.scrollTop*u.y+m.y+p.y}}function su(e){return Array.from(e.getClientRects())}function iu(e){const t=Te(e),n=fn(e),r=e.ownerDocument.body,o=me(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=me(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+mn(e);const l=-n.scrollTop;return Ce(r).direction==="rtl"&&(s+=me(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}const ro=25;function lu(e,t){const n=pe(e),r=Te(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;const m=ur();(!m||m&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}const u=mn(r);if(u<=0){const m=r.ownerDocument,i=m.body,p=getComputedStyle(i),h=m.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(r.clientWidth-i.clientWidth-h);v<=ro&&(a-=v)}else u<=ro&&(a+=u);return{width:a,height:s,x:l,y:d}}const cu=new Set(["absolute","fixed"]);function du(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=_e(e)?st(e):Pe(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,d=o*a.x,u=r*a.y;return{width:s,height:l,x:d,y:u}}function oo(e,t,n){let r;if(t==="viewport")r=lu(e,n);else if(t==="document")r=iu(Te(e));else if(ye(t))r=du(t,n);else{const o=Va(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Jt(r)}function Ga(e,t){const n=He(e);return n===t||!ye(n)||lt(n)?!1:Ce(n).position==="fixed"||Ga(n,t)}function uu(e,t){const n=t.get(e);if(n)return n;let r=yt(e,[],!1).filter(l=>ye(l)&&pt(l)!=="body"),o=null;const a=Ce(e).position==="fixed";let s=a?He(e):e;for(;ye(s)&&!lt(s);){const l=Ce(s),d=dr(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&cu.has(o.position)||At(s)&&!d&&Ga(e,s))?r=r.filter(m=>m!==s):o=l,s=He(s)}return t.set(e,r),r}function fu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?un(t)?[]:uu(t,this._c):[].concat(n),r],l=s[0],d=s.reduce((u,m)=>{const i=oo(t,m,o);return u.top=me(i.top,u.top),u.right=We(i.right,u.right),u.bottom=We(i.bottom,u.bottom),u.left=me(i.left,u.left),u},oo(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function mu(e){const{width:t,height:n}=Ha(e);return{width:t,height:n}}function pu(e,t,n){const r=_e(t),o=Te(t),a=n==="fixed",s=Xe(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const d=Pe(0);function u(){d.x=mn(o)}if(r||!r&&!a)if((pt(t)!=="body"||At(o))&&(l=fn(t)),r){const h=Xe(t,!0,a,t);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const m=o&&!r&&!a?Ua(o,l):Pe(0),i=s.left+l.scrollLeft-d.x-m.x,p=s.top+l.scrollTop-d.y-m.y;return{x:i,y:p,width:s.width,height:s.height}}function Mn(e){return Ce(e).position==="static"}function ao(e,t){if(!_e(e)||Ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Te(e)===n&&(n=n.ownerDocument.body),n}function Ya(e,t){const n=pe(e);if(un(e))return n;if(!_e(e)){let o=He(e);for(;o&&!lt(o);){if(ye(o)&&!Mn(o))return o;o=He(o)}return n}let r=ao(e,t);for(;r&&qd(r)&&Mn(r);)r=ao(r,t);return r&<(r)&&Mn(r)&&!dr(r)?n:r||tu(e)||n}const hu=async function(e){const t=this.getOffsetParent||Ya,n=this.getDimensions,r=await n(e.floating);return{reference:pu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gu(e){return Ce(e).direction==="rtl"}const vu={convertOffsetParentRelativeRectToViewportRelativeRect:au,getDocumentElement:Te,getClippingRect:fu,getOffsetParent:Ya,getElementRects:hu,getClientRects:su,getDimensions:mu,getScale:st,isElement:ye,isRTL:gu};function Ka(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bu(e,t){let n=null,r;const o=Te(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();const u=e.getBoundingClientRect(),{left:m,top:i,width:p,height:h}=u;if(l||t(),!p||!h)return;const v=Ft(i),g=Ft(o.clientWidth-(m+p)),x=Ft(o.clientHeight-(i+h)),b=Ft(m),C={rootMargin:-v+"px "+-g+"px "+-x+"px "+-b+"px",threshold:me(0,We(1,d))||1};let S=!0;function k(M){const A=M[0].intersectionRatio;if(A!==d){if(!S)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!Ka(u,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(k,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,C)}n.observe(e)}return s(!0),a}function xu(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=fr(e),m=o||a?[...u?yt(u):[],...yt(t)]:[];m.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const i=u&&l?bu(u,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(t)})),n()}),u&&!d&&h.observe(u),h.observe(t));let v,g=d?Xe(e):null;d&&x();function x(){const b=Xe(e);g&&!Ka(g,b)&&n(),g=b,v=requestAnimationFrame(x)}return n(),()=>{var b;m.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),i?.(),(b=h)==null||b.disconnect(),h=null,d&&cancelAnimationFrame(v)}}const wu=Vd,yu=Ud,Cu=zd,Su=Yd,Eu=Wd,so=$d,Ru=Gd,ku=(e,t,n)=>{const r=new Map,o={platform:vu,...n},a={...o.platform,_c:r};return Bd(e,t,{...o,platform:a})};var Au=typeof document<"u",Pu=function(){},Vt=Au?w.useLayoutEffect:Pu;function en(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(!en(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)&&!en(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Xa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function io(e,t){const n=Xa(e);return Math.round(t*n)/n}function _n(e){const t=f.useRef(e);return Vt(()=>{t.current=e}),t}function Mu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:d,open:u}=e,[m,i]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=f.useState(r);en(p,r)||h(r);const[v,g]=f.useState(null),[x,b]=f.useState(null),y=f.useCallback(R=>{R!==M.current&&(M.current=R,g(R))},[]),C=f.useCallback(R=>{R!==A.current&&(A.current=R,b(R))},[]),S=a||v,k=s||x,M=f.useRef(null),A=f.useRef(null),E=f.useRef(m),I=d!=null,O=_n(d),V=_n(o),G=_n(u),H=f.useCallback(()=>{if(!M.current||!A.current)return;const R={placement:t,strategy:n,middleware:p};V.current&&(R.platform=V.current),ku(M.current,A.current,R).then(_=>{const K={..._,isPositioned:G.current!==!1};U.current&&!en(E.current,K)&&(E.current=K,xo.flushSync(()=>{i(K)}))})},[p,t,n,V,G]);Vt(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,i(R=>({...R,isPositioned:!1})))},[u]);const U=f.useRef(!1);Vt(()=>(U.current=!0,()=>{U.current=!1}),[]),Vt(()=>{if(S&&(M.current=S),k&&(A.current=k),S&&k){if(O.current)return O.current(S,k,H);H()}},[S,k,H,O,I]);const q=f.useMemo(()=>({reference:M,floating:A,setReference:y,setFloating:C}),[y,C]),N=f.useMemo(()=>({reference:S,floating:k}),[S,k]),L=f.useMemo(()=>{const R={position:n,left:0,top:0};if(!N.floating)return R;const _=io(N.floating,m.x),K=io(N.floating,m.y);return l?{...R,transform:"translate("+_+"px, "+K+"px)",...Xa(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:K}},[n,l,N.floating,m.x,m.y]);return f.useMemo(()=>({...m,update:H,refs:q,elements:N,floatingStyles:L}),[m,H,q,N,L])}const _u=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?so({element:r.current,padding:o}).fn(n):{}:r?so({element:r,padding:o}).fn(n):{}}}},Nu=(e,t)=>({...wu(e),options:[e,t]}),Tu=(e,t)=>({...yu(e),options:[e,t]}),ju=(e,t)=>({...Ru(e),options:[e,t]}),Iu=(e,t)=>({...Cu(e),options:[e,t]}),Du=(e,t)=>({...Su(e),options:[e,t]}),Ou=(e,t)=>({...Eu(e),options:[e,t]}),Lu=(e,t)=>({..._u(e),options:[e,t]});var Fu="Arrow",qa=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return c.jsx(Z.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});qa.displayName=Fu;var Bu=qa;function $u(e){const[t,n]=f.useState(void 0);return Me(()=>{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,l;if("borderBoxSize"in a){const d=a.borderBoxSize,u=Array.isArray(d)?d[0]:d;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var mr="Popper",[Za,Qa]=Ve(mr),[zu,Ja]=Za(mr),es=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return c.jsx(zu,{scope:t,anchor:r,onAnchorChange:o,children:n})};es.displayName=mr;var ts="PopperAnchor",ns=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ja(ts,n),s=f.useRef(null),l=J(t,s),d=f.useRef(null);return f.useEffect(()=>{const u=d.current;d.current=r?.current||s.current,u!==d.current&&a.onAnchorChange(d.current)}),r?null:c.jsx(Z.div,{...o,ref:l})});ns.displayName=ts;var pr="PopperContent",[Wu,Hu]=Za(pr),rs=f.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:i="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:v,...g}=e,x=Ja(pr,n),[b,y]=f.useState(null),C=J(t,F=>y(F)),[S,k]=f.useState(null),M=$u(S),A=M?.width??0,E=M?.height??0,I=r+(a!=="center"?"-"+a:""),O=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},V=Array.isArray(u)?u:[u],G=V.length>0,H={padding:O,boundary:V.filter(Uu),altBoundary:G},{refs:U,floatingStyles:q,placement:N,isPositioned:L,middlewareData:R}=Mu({strategy:"fixed",placement:I,whileElementsMounted:(...F)=>xu(...F,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[Nu({mainAxis:o+E,alignmentAxis:s}),d&&Tu({mainAxis:!0,crossAxis:!1,limiter:i==="partial"?ju():void 0,...H}),d&&Iu({...H}),Du({...H,apply:({elements:F,rects:Y,availableWidth:ce,availableHeight:be})=>{const{width:Ee,height:de}=Y.reference,Qe=F.floating.style;Qe.setProperty("--radix-popper-available-width",`${ce}px`),Qe.setProperty("--radix-popper-available-height",`${be}px`),Qe.setProperty("--radix-popper-anchor-width",`${Ee}px`),Qe.setProperty("--radix-popper-anchor-height",`${de}px`)}}),S&&Lu({element:S,padding:l}),Gu({arrowWidth:A,arrowHeight:E}),p&&Ou({strategy:"referenceHidden",...H})]}),[_,K]=ss(N),ee=oe(v);Me(()=>{L&&ee?.()},[L,ee]);const ae=R.arrow?.x,D=R.arrow?.y,$=R.arrow?.centerOffset!==0,[X,Q]=f.useState();return Me(()=>{b&&Q(window.getComputedStyle(b).zIndex)},[b]),c.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:L?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Wu,{scope:n,placedSide:_,onArrowChange:k,arrowX:ae,arrowY:D,shouldHideArrow:$,children:c.jsx(Z.div,{"data-side":_,"data-align":K,...g,ref:C,style:{...g.style,animation:L?void 0:"none"}})})})});rs.displayName=pr;var os="PopperArrow",Vu={top:"bottom",right:"left",bottom:"top",left:"right"},as=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Hu(os,r),s=Vu[a.placedSide];return c.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:c.jsx(Bu,{...o,ref:n,style:{...o.style,display:"block"}})})});as.displayName=os;function Uu(e){return e!==null}var Gu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[u,m]=ss(n),i={start:"0%",center:"50%",end:"100%"}[m],p=(o.arrow?.x??0)+l/2,h=(o.arrow?.y??0)+d/2;let v="",g="";return u==="bottom"?(v=s?i:`${p}px`,g=`${-d}px`):u==="top"?(v=s?i:`${p}px`,g=`${r.floating.height+d}px`):u==="right"?(v=`${-d}px`,g=s?i:`${h}px`):u==="left"&&(v=`${r.floating.width+d}px`,g=s?i:`${h}px`),{data:{x:v,y:g}}}});function ss(e){const[t,n="center"]=e.split("-");return[t,n]}var is=es,Yu=ns,Ku=rs,Xu=as,qu="Portal",ls=f.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=f.useState(!1);Me(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Kn.createPortal(c.jsx(Z.div,{...r,ref:t}),s):null});ls.displayName=qu;var Nn="rovingFocusGroup.onEntryFocus",Zu={bubbles:!1,cancelable:!0},Pt="RovingFocusGroup",[Vn,cs,Qu]=Xn(Pt),[Ju,ds]=Ve(Pt,[Qu]),[ef,tf]=Ju(Pt),us=f.forwardRef((e,t)=>c.jsx(Vn.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Vn.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(nf,{...e,ref:t})})}));us.displayName=Pt;var nf=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...i}=e,p=f.useRef(null),h=J(t,p),v=sn(a),[g,x]=qe({prop:s,defaultProp:l??null,onChange:d,caller:Pt}),[b,y]=f.useState(!1),C=oe(u),S=cs(n),k=f.useRef(!1),[M,A]=f.useState(0);return f.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(Nn,C),()=>E.removeEventListener(Nn,C)},[C]),c.jsx(ef,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(E=>x(E),[x]),onItemShiftTab:f.useCallback(()=>y(!0),[]),onFocusableItemAdd:f.useCallback(()=>A(E=>E+1),[]),onFocusableItemRemove:f.useCallback(()=>A(E=>E-1),[]),children:c.jsx(Z.div,{tabIndex:b||M===0?-1:0,"data-orientation":r,...i,ref:h,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{k.current=!0}),onFocus:B(e.onFocus,E=>{const I=!k.current;if(E.target===E.currentTarget&&I&&!b){const O=new CustomEvent(Nn,Zu);if(E.currentTarget.dispatchEvent(O),!O.defaultPrevented){const V=S().filter(N=>N.focusable),G=V.find(N=>N.active),H=V.find(N=>N.id===g),q=[G,H,...V].filter(Boolean).map(N=>N.ref.current);ps(q,m)}}k.current=!1}),onBlur:B(e.onBlur,()=>y(!1))})})}),fs="RovingFocusGroupItem",ms=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...l}=e,d=Ke(),u=a||d,m=tf(fs,n),i=m.currentTabStopId===u,p=cs(n),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:g}=m;return f.useEffect(()=>{if(r)return h(),()=>v()},[r,h,v]),c.jsx(Vn.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:c.jsx(Z.span,{tabIndex:i?0:-1,"data-orientation":m.orientation,...l,ref:t,onMouseDown:B(e.onMouseDown,x=>{r?m.onItemFocus(u):x.preventDefault()}),onFocus:B(e.onFocus,()=>m.onItemFocus(u)),onKeyDown:B(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){m.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const b=af(x,m.orientation,m.dir);if(b!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let C=p().filter(S=>S.focusable).map(S=>S.ref.current);if(b==="last")C.reverse();else if(b==="prev"||b==="next"){b==="prev"&&C.reverse();const S=C.indexOf(x.currentTarget);C=m.loop?sf(C,S+1):C.slice(S+1)}setTimeout(()=>ps(C))}}),children:typeof s=="function"?s({isCurrentTabStop:i,hasTabStop:g!=null}):s})})});ms.displayName=fs;var rf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function of(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function af(e,t,n){const r=of(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return rf[r]}function ps(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function sf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var lf=us,cf=ms,df=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rt=new WeakMap,Bt=new WeakMap,$t={},Tn=0,hs=function(e){return e&&(e.host||hs(e.parentNode))},uf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hs(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})},ff=function(e,t,n,r){var o=uf(t,Array.isArray(e)?e:[e]);$t[n]||($t[n]=new WeakMap);var a=$t[n],s=[],l=new Set,d=new Set(o),u=function(i){!i||l.has(i)||(l.add(i),u(i.parentNode))};o.forEach(u);var m=function(i){!i||d.has(i)||Array.prototype.forEach.call(i.children,function(p){if(l.has(p))m(p);else try{var h=p.getAttribute(r),v=h!==null&&h!=="false",g=(rt.get(p)||0)+1,x=(a.get(p)||0)+1;rt.set(p,g),a.set(p,x),s.push(p),g===1&&v&&Bt.set(p,!0),x===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return m(t),l.clear(),Tn++,function(){s.forEach(function(i){var p=rt.get(i)-1,h=a.get(i)-1;rt.set(i,p),a.set(i,h),p||(Bt.has(i)||i.removeAttribute(r),Bt.delete(i)),h||i.removeAttribute(n)}),Tn--,Tn||(rt=new WeakMap,rt=new WeakMap,Bt=new WeakMap,$t={})}},mf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=df(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ff(r,o,n,"aria-hidden")):function(){return null}},ke=function(){return ke=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},ke.apply(this,arguments)};function gs(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 pf(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))}var Ut="right-scroll-bar-position",Gt="width-before-scroll-bar",hf="with-scroll-bars-hidden",gf="--removed-body-scroll-bar-size";function jn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vf(e,t){var n=w.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 bf=typeof window<"u"?f.useLayoutEffect:f.useEffect,lo=new WeakMap;function xf(e,t){var n=vf(null,function(r){return e.forEach(function(o){return jn(o,r)})});return bf(function(){var r=lo.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(l){a.has(l)||jn(l,null)}),a.forEach(function(l){o.has(l)||jn(l,s)})}lo.set(n,e)},[e]),n}function wf(e){return e}function yf(e,t){t===void 0&&(t=wf);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(l){return l!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(a),s=n}var d=function(){var m=s;s=[],m.forEach(a)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(m){s.push(m),u()},filter:function(m){return s=s.filter(m),n}}}};return o}function Cf(e){e===void 0&&(e={});var t=yf(null);return t.options=ke({async:!0,ssr:!1},e),t}var vs=function(e){var t=e.sideCar,n=gs(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 f.createElement(r,ke({},n))};vs.isSideCarExport=!0;function Sf(e,t){return e.useMedium(t),vs}var bs=Cf(),In=function(){},pn=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:In,onWheelCapture:In,onTouchMoveCapture:In}),o=r[0],a=r[1],s=e.forwardProps,l=e.children,d=e.className,u=e.removeScrollBar,m=e.enabled,i=e.shards,p=e.sideCar,h=e.noRelative,v=e.noIsolation,g=e.inert,x=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,C=e.gapMode,S=gs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,M=xf([n,t]),A=ke(ke({},S),o);return f.createElement(f.Fragment,null,m&&f.createElement(k,{sideCar:bs,removeScrollBar:u,shards:i,noRelative:h,noIsolation:v,inert:g,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:C}),s?f.cloneElement(f.Children.only(l),ke(ke({},A),{ref:M})):f.createElement(y,ke({},A,{className:d,ref:M}),l))});pn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};pn.classNames={fullWidth:Gt,zeroRight:Ut};var Ef=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ef();return t&&e.setAttribute("nonce",t),e}function kf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Af(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Rf())&&(kf(t,n),Af(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Mf=function(){var e=Pf();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xs=function(){var e=Mf(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_f={left:0,top:0,right:0,gap:0},Dn=function(e){return parseInt(e||"",10)||0},Nf=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[Dn(n),Dn(r),Dn(o)]},Tf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _f;var t=Nf(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])}},jf=xs(),it="data-scroll-locked",If=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
52
|
+
.`.concat(hf,` {
|
|
53
|
+
overflow: hidden `).concat(r,`;
|
|
54
|
+
padding-right: `).concat(l,"px ").concat(r,`;
|
|
55
55
|
}
|
|
56
|
-
body[`).concat(
|
|
57
|
-
overflow: hidden `).concat(
|
|
56
|
+
body[`).concat(it,`] {
|
|
57
|
+
overflow: hidden `).concat(r,`;
|
|
58
58
|
overscroll-behavior: contain;
|
|
59
|
-
`).concat([t&&"position: relative ".concat(
|
|
59
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
60
60
|
padding-left: `.concat(o,`px;
|
|
61
61
|
padding-top: `).concat(a,`px;
|
|
62
62
|
padding-right: `).concat(s,`px;
|
|
63
63
|
margin-left:0;
|
|
64
64
|
margin-top:0;
|
|
65
|
-
margin-right: `).concat(
|
|
66
|
-
`),
|
|
65
|
+
margin-right: `).concat(l,"px ").concat(r,`;
|
|
66
|
+
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.`).concat(
|
|
70
|
-
right: `).concat(
|
|
69
|
+
.`).concat(Ut,` {
|
|
70
|
+
right: `).concat(l,"px ").concat(r,`;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.`).concat(
|
|
74
|
-
margin-right: `).concat(
|
|
73
|
+
.`).concat(Gt,` {
|
|
74
|
+
margin-right: `).concat(l,"px ").concat(r,`;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.`).concat(
|
|
78
|
-
right: 0 `).concat(
|
|
77
|
+
.`).concat(Ut," .").concat(Ut,` {
|
|
78
|
+
right: 0 `).concat(r,`;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.`).concat(
|
|
82
|
-
margin-right: 0 `).concat(
|
|
81
|
+
.`).concat(Gt," .").concat(Gt,` {
|
|
82
|
+
margin-right: 0 `).concat(r,`;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
body[`).concat(
|
|
86
|
-
`).concat(
|
|
85
|
+
body[`).concat(it,`] {
|
|
86
|
+
`).concat(gf,": ").concat(l,`px;
|
|
87
87
|
}
|
|
88
|
-
`)},
|
|
88
|
+
`)},co=function(){var e=parseInt(document.body.getAttribute(it)||"0",10);return isFinite(e)?e:0},Df=function(){f.useEffect(function(){return document.body.setAttribute(it,(co()+1).toString()),function(){var e=co()-1;e<=0?document.body.removeAttribute(it):document.body.setAttribute(it,e.toString())}},[])},Of=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Df();var a=f.useMemo(function(){return Tf(o)},[o]);return f.createElement(jf,{styles:If(a,!t,o,n?"":"!important")})},Un=!1;if(typeof window<"u")try{var zt=Object.defineProperty({},"passive",{get:function(){return Un=!0,!0}});window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,zt)}catch{Un=!1}var ot=Un?{passive:!1}:!1,Lf=function(e){return e.tagName==="TEXTAREA"},ws=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Lf(e)&&n[t]==="visible")},Ff=function(e){return ws(e,"overflowY")},Bf=function(e){return ws(e,"overflowX")},uo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ys(e,r);if(o){var a=Cs(e,r),s=a[1],l=a[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$f=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},zf=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ys=function(e,t){return e==="v"?Ff(t):Bf(t)},Cs=function(e,t){return e==="v"?$f(t):zf(t)},Wf=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hf=function(e,t,n,r,o){var a=Wf(e,window.getComputedStyle(t).direction),s=a*r,l=n.target,d=t.contains(l),u=!1,m=s>0,i=0,p=0;do{if(!l)break;var h=Cs(e,l),v=h[0],g=h[1],x=h[2],b=g-x-a*v;(v||b)&&ys(e,l)&&(i+=b,p+=v);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!d&&l!==document.body||d&&(t.contains(l)||t===l));return(m&&Math.abs(i)<1||!m&&Math.abs(p)<1)&&(u=!0),u},Wt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fo=function(e){return[e.deltaX,e.deltaY]},mo=function(e){return e&&"current"in e?e.current:e},Vf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Uf=function(e){return`
|
|
89
89
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
90
90
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
91
|
-
`)},qd=0,Be=[];function Zd(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(qd++)[0],a=l.useState(Ia)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=bd([e.lockRef.current],(e.shards||[]).map(Pn),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var x=xt(g),w=r.current,y="deltaX"in g?g.deltaX:w[0]-x[0],C="deltaY"in g?g.deltaY:w[1]-x[1],A,j=g.target,E=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in g&&E==="h"&&j.type==="range")return!1;var S=En(E,j);if(!S)return!0;if(S?A=E:(A=E==="v"?"h":"v",S=En(E,j)),!S)return!1;if(!n.current&&"changedTouches"in g&&(y||C)&&(n.current=A),!A)return!0;var T=n.current||A;return Kd(T,b,g,T==="h"?y:C)},[]),u=l.useCallback(function(g){var b=g;if(!(!Be.length||Be[Be.length-1]!==a)){var x="deltaY"in b?kn(b):xt(b),w=t.current.filter(function(A){return A.name===b.type&&(A.target===b.target||b.target===A.shadowParent)&&Yd(A.delta,x)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var y=(s.current.shards||[]).map(Pn).filter(Boolean).filter(function(A){return A.contains(b.target)}),C=y.length>0?i(b,y[0]):!s.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),d=l.useCallback(function(g,b,x,w){var y={name:g,delta:b,target:x,should:w,shadowParent:Qd(x)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),f=l.useCallback(function(g){r.current=xt(g),n.current=void 0},[]),p=l.useCallback(function(g){d(g.type,kn(g),g.target,i(g,e.lockRef.current))},[]),m=l.useCallback(function(g){d(g.type,xt(g),g.target,i(g,e.lockRef.current))},[]);l.useEffect(function(){return Be.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",u,Fe),document.addEventListener("touchmove",u,Fe),document.addEventListener("touchstart",f,Fe),function(){Be=Be.filter(function(g){return g!==a}),document.removeEventListener("wheel",u,Fe),document.removeEventListener("touchmove",u,Fe),document.removeEventListener("touchstart",f,Fe)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Xd(o)}):null,h?l.createElement($d,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Jd=kd(Ta,Zd);var Fa=l.forwardRef(function(e,t){return l.createElement(Vt,le({},e,{ref:t,sideCar:Jd}))});Fa.classNames=Vt.classNames;var br=["Enter"," "],ef=["ArrowDown","PageUp","Home"],Ba=["ArrowUp","PageDown","End"],tf=[...ef,...Ba],rf={ltr:[...br,"ArrowRight"],rtl:[...br,"ArrowLeft"]},nf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ct="Menu",[tt,of,af]=xr(ct),[Ne,$a]=Ee(ct,[af,pa,Aa]),lt=pa(),za=Aa(),[Wa,ke]=Ne(ct),[sf,ut]=Ne(ct),Va=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:s=!0}=e,i=lt(t),[u,d]=l.useState(null),f=l.useRef(!1),p=Z(a),m=Dt(o);return l.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),c.jsx(Ca,{...i,children:c.jsx(Wa,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:d,children:c.jsx(sf,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:n})})})};Va.displayName=ct;var cf="MenuAnchor",Br=l.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=lt(r);return c.jsx(Qu,{...o,...n,ref:t})});Br.displayName=cf;var $r="MenuPortal",[lf,Ha]=Ne($r,{forceMount:void 0}),Ua=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=ke($r,t);return c.jsx(lf,{scope:t,forceMount:r,children:c.jsx(me,{present:r||a.open,children:c.jsx(Sa,{asChild:!0,container:o,children:n})})})};Ua.displayName=$r;var re="MenuContent",[uf,zr]=Ne(re),Ga=l.forwardRef((e,t)=>{const r=Ha(re,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=ke(re,e.__scopeMenu),s=ut(re,e.__scopeMenu);return c.jsx(tt.Provider,{scope:e.__scopeMenu,children:c.jsx(me,{present:n||a.open,children:c.jsx(tt.Slot,{scope:e.__scopeMenu,children:s.modal?c.jsx(df,{...o,ref:t}):c.jsx(ff,{...o,ref:t})})})})}),df=l.forwardRef((e,t)=>{const r=ke(re,e.__scopeMenu),n=l.useRef(null),o=G(t,n);return l.useEffect(()=>{const a=n.current;if(a)return vd(a)},[]),c.jsx(Wr,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:O(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ff=l.forwardRef((e,t)=>{const r=ke(re,e.__scopeMenu);return c.jsx(Wr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),pf=Rt("MenuContent.ScrollLock"),Wr=l.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:v,...g}=e,b=ke(re,r),x=ut(re,r),w=lt(r),y=za(r),C=of(r),[A,j]=l.useState(null),E=l.useRef(null),S=G(t,E,b.onContentChange),T=l.useRef(0),I=l.useRef(""),B=l.useRef(0),W=l.useRef(null),V=l.useRef("right"),$=l.useRef(0),U=v?Fa:l.Fragment,D=v?{as:pf,allowPinchZoom:!0}:void 0,z=N=>{const Y=I.current+N,J=C().filter(F=>!F.disabled),oe=document.activeElement,K=J.find(F=>F.ref.current===oe)?.textValue,X=J.map(F=>F.textValue),ve=Af(X,Y,K),ce=J.find(F=>F.textValue===ve)?.ref.current;(function F(ye){I.current=ye,window.clearTimeout(T.current),ye!==""&&(T.current=window.setTimeout(()=>F(""),1e3))})(Y),ce&&setTimeout(()=>ce.focus())};l.useEffect(()=>()=>window.clearTimeout(T.current),[]),Al();const R=l.useCallback(N=>V.current===W.current?.side&&kf(N,W.current?.area),[]);return c.jsx(uf,{scope:r,searchRef:I,onItemEnter:l.useCallback(N=>{R(N)&&N.preventDefault()},[R]),onItemLeave:l.useCallback(N=>{R(N)||(E.current?.focus(),j(null))},[R]),onTriggerLeave:l.useCallback(N=>{R(N)&&N.preventDefault()},[R]),pointerGraceTimerRef:B,onPointerGraceIntentChange:l.useCallback(N=>{W.current=N},[]),children:c.jsx(U,{...D,children:c.jsx(Qo,{asChild:!0,trapped:o,onMountAutoFocus:O(a,N=>{N.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:c.jsx(qo,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:c.jsx(fd,{asChild:!0,...y,dir:x.dir,orientation:"vertical",loop:n,currentTabStopId:A,onCurrentTabStopIdChange:j,onEntryFocus:O(u,N=>{x.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(Ju,{role:"menu","aria-orientation":"vertical","data-state":ls(b.open),"data-radix-menu-content":"",dir:x.dir,...w,...g,ref:S,style:{outline:"none",...g.style},onKeyDown:O(g.onKeyDown,N=>{const J=N.target.closest("[data-radix-menu-content]")===N.currentTarget,oe=N.ctrlKey||N.altKey||N.metaKey,K=N.key.length===1;J&&(N.key==="Tab"&&N.preventDefault(),!oe&&K&&z(N.key));const X=E.current;if(N.target!==X||!tf.includes(N.key))return;N.preventDefault();const ce=C().filter(F=>!F.disabled).map(F=>F.ref.current);Ba.includes(N.key)&&ce.reverse(),Sf(ce)}),onBlur:O(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(T.current),I.current="")}),onPointerMove:O(e.onPointerMove,rt(N=>{const Y=N.target,J=$.current!==N.clientX;if(N.currentTarget.contains(Y)&&J){const oe=N.clientX>$.current?"right":"left";V.current=oe,$.current=N.clientX}}))})})})})})})});Ga.displayName=re;var mf="MenuGroup",Vr=l.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return c.jsx(H.div,{role:"group",...n,ref:t})});Vr.displayName=mf;var hf="MenuLabel",Ka=l.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return c.jsx(H.div,{...n,ref:t})});Ka.displayName=hf;var jt="MenuItem",Mn="menu.itemSelect",Ht=l.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=l.useRef(null),s=ut(jt,e.__scopeMenu),i=zr(jt,e.__scopeMenu),u=G(t,a),d=l.useRef(!1),f=()=>{const p=a.current;if(!r&&p){const m=new CustomEvent(Mn,{bubbles:!0,cancelable:!0});p.addEventListener(Mn,h=>n?.(h),{once:!0}),In(p,m),m.defaultPrevented?d.current=!1:s.onClose()}};return c.jsx(Ya,{...o,ref:u,disabled:r,onClick:O(e.onClick,f),onPointerDown:p=>{e.onPointerDown?.(p),d.current=!0},onPointerUp:O(e.onPointerUp,p=>{d.current||p.currentTarget?.click()}),onKeyDown:O(e.onKeyDown,p=>{const m=i.searchRef.current!=="";r||m&&p.key===" "||br.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Ht.displayName=jt;var Ya=l.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,s=zr(jt,r),i=za(r),u=l.useRef(null),d=G(t,u),[f,p]=l.useState(!1),[m,h]=l.useState("");return l.useEffect(()=>{const v=u.current;v&&h((v.textContent??"").trim())},[a.children]),c.jsx(tt.ItemSlot,{scope:r,disabled:n,textValue:o??m,children:c.jsx(pd,{asChild:!0,...i,focusable:!n,children:c.jsx(H.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:d,onPointerMove:O(e.onPointerMove,rt(v=>{n?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:O(e.onPointerLeave,rt(v=>s.onItemLeave(v))),onFocus:O(e.onFocus,()=>p(!0)),onBlur:O(e.onBlur,()=>p(!1))})})})}),gf="MenuCheckboxItem",Xa=l.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return c.jsx(es,{scope:e.__scopeMenu,checked:r,children:c.jsx(Ht,{role:"menuitemcheckbox","aria-checked":Nt(r)?"mixed":r,...o,ref:t,"data-state":Gr(r),onSelect:O(o.onSelect,()=>n?.(Nt(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Xa.displayName=gf;var qa="MenuRadioGroup",[vf,bf]=Ne(qa,{value:void 0,onValueChange:()=>{}}),Za=l.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=Z(n);return c.jsx(vf,{scope:e.__scopeMenu,value:r,onValueChange:a,children:c.jsx(Vr,{...o,ref:t})})});Za.displayName=qa;var Qa="MenuRadioItem",Ja=l.forwardRef((e,t)=>{const{value:r,...n}=e,o=bf(Qa,e.__scopeMenu),a=r===o.value;return c.jsx(es,{scope:e.__scopeMenu,checked:a,children:c.jsx(Ht,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":Gr(a),onSelect:O(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Ja.displayName=Qa;var Hr="MenuItemIndicator",[es,xf]=Ne(Hr,{checked:!1}),ts=l.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=xf(Hr,r);return c.jsx(me,{present:n||Nt(a.checked)||a.checked===!0,children:c.jsx(H.span,{...o,ref:t,"data-state":Gr(a.checked)})})});ts.displayName=Hr;var wf="MenuSeparator",rs=l.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return c.jsx(H.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});rs.displayName=wf;var yf="MenuArrow",ns=l.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=lt(r);return c.jsx(ed,{...o,...n,ref:t})});ns.displayName=yf;var Ur="MenuSub",[Cf,os]=Ne(Ur),as=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=ke(Ur,t),s=lt(t),[i,u]=l.useState(null),[d,f]=l.useState(null),p=Z(o);return l.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),c.jsx(Ca,{...s,children:c.jsx(Wa,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:f,children:c.jsx(Cf,{scope:t,contentId:Me(),triggerId:Me(),trigger:i,onTriggerChange:u,children:r})})})};as.displayName=Ur;var Qe="MenuSubTrigger",ss=l.forwardRef((e,t)=>{const r=ke(Qe,e.__scopeMenu),n=ut(Qe,e.__scopeMenu),o=os(Qe,e.__scopeMenu),a=zr(Qe,e.__scopeMenu),s=l.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:u}=a,d={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return l.useEffect(()=>f,[f]),l.useEffect(()=>{const p=i.current;return()=>{window.clearTimeout(p),u(null)}},[i,u]),c.jsx(Br,{asChild:!0,...d,children:c.jsx(Ya,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":ls(r.open),...e,ref:nt(t,o.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:O(e.onPointerMove,rt(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:O(e.onPointerLeave,rt(p=>{f();const m=r.content?.getBoundingClientRect();if(m){const h=r.content?.dataset.side,v=h==="right",g=v?-5:5,b=m[v?"left":"right"],x=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+g,y:p.clientY},{x:b,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:b,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:O(e.onKeyDown,p=>{const m=a.searchRef.current!=="";e.disabled||m&&p.key===" "||rf[n.dir].includes(p.key)&&(r.onOpenChange(!0),r.content?.focus(),p.preventDefault())})})})});ss.displayName=Qe;var is="MenuSubContent",cs=l.forwardRef((e,t)=>{const r=Ha(re,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=ke(re,e.__scopeMenu),s=ut(re,e.__scopeMenu),i=os(is,e.__scopeMenu),u=l.useRef(null),d=G(t,u);return c.jsx(tt.Provider,{scope:e.__scopeMenu,children:c.jsx(me,{present:n||a.open,children:c.jsx(tt.Slot,{scope:e.__scopeMenu,children:c.jsx(Wr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{s.isUsingKeyboardRef.current&&u.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:O(e.onFocusOutside,f=>{f.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:O(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:O(e.onKeyDown,f=>{const p=f.currentTarget.contains(f.target),m=nf[s.dir].includes(f.key);p&&m&&(a.onOpenChange(!1),i.trigger?.focus(),f.preventDefault())})})})})})});cs.displayName=is;function ls(e){return e?"open":"closed"}function Nt(e){return e==="indeterminate"}function Gr(e){return Nt(e)?"indeterminate":e?"checked":"unchecked"}function Sf(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Rf(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Af(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=Rf(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==r));const u=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return u!==r?u:void 0}function Ef(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],u=t[s],d=i.x,f=i.y,p=u.x,m=u.y;f>n!=m>n&&r<(p-d)*(n-f)/(m-f)+d&&(o=!o)}return o}function kf(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return Ef(r,t)}function rt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Pf=Va,Mf=Br,_f=Ua,jf=Ga,Nf=Vr,Tf=Ka,If=Ht,Of=Xa,Df=Za,Lf=Ja,Ff=ts,Bf=rs,$f=ns,zf=as,Wf=ss,Vf=cs,Ut="DropdownMenu",[Hf]=Ee(Ut,[$a]),Q=$a(),[Uf,us]=Hf(Ut),ds=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,u=Q(t),d=l.useRef(null),[f,p]=je({prop:o,defaultProp:a??!1,onChange:s,caller:Ut});return c.jsx(Uf,{scope:t,triggerId:Me(),triggerRef:d,contentId:Me(),open:f,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(m=>!m),[p]),modal:i,children:c.jsx(Pf,{...u,open:f,onOpenChange:p,dir:n,modal:i,children:r})})};ds.displayName=Ut;var fs="DropdownMenuTrigger",ps=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=us(fs,r),s=Q(r);return c.jsx(Mf,{asChild:!0,...s,children:c.jsx(H.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:nt(t,a.triggerRef),onPointerDown:O(e.onPointerDown,i=>{!n&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:O(e.onKeyDown,i=>{n||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});ps.displayName=fs;var Gf="DropdownMenuPortal",ms=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Q(t);return c.jsx(_f,{...n,...r})};ms.displayName=Gf;var hs="DropdownMenuContent",gs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=us(hs,r),a=Q(r),s=l.useRef(!1);return c.jsx(jf,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:O(e.onCloseAutoFocus,i=>{s.current||o.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:O(e.onInteractOutside,i=>{const u=i.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,f=u.button===2||d;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gs.displayName=hs;var Kf="DropdownMenuGroup",vs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx(Nf,{...o,...n,ref:t})});vs.displayName=Kf;var Yf="DropdownMenuLabel",bs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx(Tf,{...o,...n,ref:t})});bs.displayName=Yf;var Xf="DropdownMenuItem",xs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx(If,{...o,...n,ref:t})});xs.displayName=Xf;var qf="DropdownMenuCheckboxItem",ws=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx(Of,{...o,...n,ref:t})});ws.displayName=qf;var Zf="DropdownMenuRadioGroup",Qf=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx(Df,{...o,...n,ref:t})});Qf.displayName=Zf;var Jf="DropdownMenuRadioItem",ep=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx(Lf,{...o,...n,ref:t})});ep.displayName=Jf;var tp="DropdownMenuItemIndicator",ys=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx(Ff,{...o,...n,ref:t})});ys.displayName=tp;var rp="DropdownMenuSeparator",Cs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx(Bf,{...o,...n,ref:t})});Cs.displayName=rp;var np="DropdownMenuArrow",op=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx($f,{...o,...n,ref:t})});op.displayName=np;var ap=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,s=Q(t),[i,u]=je({prop:n,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(zf,{...s,open:i,onOpenChange:u,children:r})},sp="DropdownMenuSubTrigger",Ss=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx(Wf,{...o,...n,ref:t})});Ss.displayName=sp;var ip="DropdownMenuSubContent",Rs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Q(r);return c.jsx(Vf,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Rs.displayName=ip;var cp=ds,lp=ps,up=ms,dp=gs,fp=vs,pp=bs,mp=xs,hp=ws,gp=ys,vp=Cs,bp=ap,xp=Ss,wp=Rs;const As=_.createContext(void 0);function Es({align:e="end",sideOffset:t=6,showScrollArea:r=!0,maxHeight:n=320,children:o,...a}){const s=_.useMemo(()=>({align:e,sideOffset:t,showScrollArea:r,maxHeight:n}),[e,t,r,n]);return c.jsx(As.Provider,{value:s,children:c.jsx(cp,{"data-slot":"dropdown-menu-root",...a,children:o})})}function Kr(){const e=_.useContext(As);if(e===void 0)throw new Error("useDropdownMenu must be used within a DropdownMenuRoot");return e}function ks({...e}){return c.jsx(lp,{"data-slot":"dropdown-menu-trigger",...e})}function Ps({className:e,children:t,...r}){const{align:n,sideOffset:o}=Kr();return c.jsx(dp,{align:n,className:k("z-50 min-w-32 rounded-2xl border border-[var(--dropdown-menu-border,hsl(var(--contrast-100)))] bg-[var(--dropdown-menu-background,hsl(var(--background)))] shadow-xl","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),"data-slot":"dropdown-menu-content",sideOffset:o,...r,children:t})}function Ms({className:e,variant:t="default",children:r,...n}){return c.jsx(mp,{className:k("flex h-9 cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] py-2 pl-3 pr-5 outline-none transition-colors","font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","data-[variant=default]:text-[var(--dropdown-menu-item-text,hsl(var(--contrast-500)))] data-[variant=default]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-background-hover,hsl(var(--contrast-100)))] data-[variant=default]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-text-hover,hsl(var(--foreground)))]","data-[variant=danger]:text-[var(--dropdown-menu-item-danger-text,hsl(var(--error)))] data-[variant=danger]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] data-[variant=danger]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-danger-text-hover,color-mix(in_oklab,hsl(var(--error)),black_75%))]",e),"data-slot":"dropdown-menu-item","data-variant":t,...n,children:c.jsx("div",{className:"flex items-center justify-between gap-2",children:r})})}function _s({className:e,variant:t="default",children:r,checked:n,...o}){return c.jsx(hp,{checked:n,className:k("flex h-9 w-full cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] pl-3 pr-1.5 outline-none transition-colors","font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","data-[variant=default]:text-[var(--dropdown-menu-item-text,hsl(var(--contrast-500)))] data-[variant=default]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-background-hover,hsl(var(--contrast-100)))] data-[variant=default]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-text-hover,hsl(var(--foreground)))]","data-[variant=danger]:text-[var(--dropdown-menu-item-danger-text,hsl(var(--error)))] data-[variant=danger]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] data-[variant=danger]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-danger-text-hover,color-mix(in_oklab,hsl(var(--error)),black_75%))]",e),"data-slot":"dropdown-menu-checkbox-item","data-variant":t,...o,children:c.jsxs("div",{className:"flex flex-1 items-center justify-between gap-2",children:[r,c.jsx("span",{className:"flex size-6 items-center justify-center",children:c.jsx(gp,{children:c.jsx(Hc,{absoluteStrokeWidth:!0,size:16,strokeWidth:1.5})})})]})})}function js({className:e,...t}){return c.jsx(pp,{className:k("sr-only",e),"data-slot":"dropdown-menu-label",...t})}function Ns({className:e,...t}){return c.jsx(fp,{className:k("flex flex-col gap-0.5",e),"data-slot":"dropdown-menu-group",...t})}function Ts({className:e,...t}){return c.jsx(vp,{className:k("relative my-1.5 after:absolute after:-left-2 after:-right-5 after:h-px after:bg-[var(--dropdown-menu-seperator,hsl(var(--contrast-100)))]",e),"data-slot":"dropdown-menu-separator",...t})}function Yr({...e}){return c.jsx(up,{"data-slot":"dropdown-menu-portal",...e})}function Is({className:e,children:t,orientation:r="vertical",scrollHideDelay:n=500,type:o="hover",...a}){return c.jsx(Xs,{orientation:r,scrollHideDelay:n,type:o,children:c.jsxs(Ks,{className:e,...a,children:[c.jsx(Zs,{children:t}),c.jsx(Qs,{children:c.jsx(Js,{})}),c.jsx(ei,{})]})})}function yp(e,[t,r]){return Math.min(r,Math.max(t,e))}function Cp(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var Xr="ScrollArea",[Os]=Ee(Xr),[Sp,ne]=Os(Xr),Ds=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...s}=e,[i,u]=l.useState(null),[d,f]=l.useState(null),[p,m]=l.useState(null),[h,v]=l.useState(null),[g,b]=l.useState(null),[x,w]=l.useState(0),[y,C]=l.useState(0),[A,j]=l.useState(!1),[E,S]=l.useState(!1),T=G(t,B=>u(B)),I=Dt(o);return c.jsx(Sp,{scope:r,type:n,dir:I,scrollHideDelay:a,scrollArea:i,viewport:d,onViewportChange:f,content:p,onContentChange:m,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:A,onScrollbarXEnabledChange:j,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:E,onScrollbarYEnabledChange:S,onCornerWidthChange:w,onCornerHeightChange:C,children:c.jsx(H.div,{dir:I,...s,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":y+"px",...e.style}})})});Ds.displayName=Xr;var Ls="ScrollAreaViewport",Fs=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=e,s=ne(Ls,r),i=l.useRef(null),u=G(t,i,s.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(H.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:c.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});Fs.displayName=Ls;var ge="ScrollAreaScrollbar",St=l.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=ne(ge,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return l.useEffect(()=>(i?a(!0):s(!0),()=>{i?a(!1):s(!1)}),[i,a,s]),o.type==="hover"?c.jsx(Rp,{...n,ref:t,forceMount:r}):o.type==="scroll"?c.jsx(Ap,{...n,ref:t,forceMount:r}):o.type==="auto"?c.jsx(Bs,{...n,ref:t,forceMount:r}):o.type==="always"?c.jsx(qr,{...n,ref:t}):null});St.displayName=ge;var Rp=l.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=ne(ge,e.__scopeScrollArea),[a,s]=l.useState(!1);return l.useEffect(()=>{const i=o.scrollArea;let u=0;if(i){const d=()=>{window.clearTimeout(u),s(!0)},f=()=>{u=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",d),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(u),i.removeEventListener("pointerenter",d),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),c.jsx(me,{present:r||a,children:c.jsx(Bs,{"data-state":a?"visible":"hidden",...n,ref:t})})}),Ap=l.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=ne(ge,e.__scopeScrollArea),a=e.orientation==="horizontal",s=Kt(()=>u("SCROLL_END"),100),[i,u]=Cp("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return l.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,o.scrollHideDelay,u]),l.useEffect(()=>{const d=o.viewport,f=a?"scrollLeft":"scrollTop";if(d){let p=d[f];const m=()=>{const h=d[f];p!==h&&(u("SCROLL"),s()),p=h};return d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[o.viewport,a,u,s]),c.jsx(me,{present:r||i!=="hidden",children:c.jsx(qr,{"data-state":i==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:O(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:O(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),Bs=l.forwardRef((e,t)=>{const r=ne(ge,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,s]=l.useState(!1),i=e.orientation==="horizontal",u=Kt(()=>{if(r.viewport){const d=r.viewport.offsetWidth<r.viewport.scrollWidth,f=r.viewport.offsetHeight<r.viewport.scrollHeight;s(i?d:f)}},10);return Ve(r.viewport,u),Ve(r.content,u),c.jsx(me,{present:n||a,children:c.jsx(qr,{"data-state":a?"visible":"hidden",...o,ref:t})})}),qr=l.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,o=ne(ge,e.__scopeScrollArea),a=l.useRef(null),s=l.useRef(0),[i,u]=l.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Hs(i.viewport,i.content),f={...n,sizes:i,onSizesChange:u,hasThumb:d>0&&d<1,onThumbChange:m=>a.current=m,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:m=>s.current=m};function p(m,h){return jp(m,s.current,i,h)}return r==="horizontal"?c.jsx(Ep,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollLeft,h=_n(m,i,o.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=p(m,o.dir))}}):r==="vertical"?c.jsx(kp,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollTop,h=_n(m,i);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=p(m))}}):null}),Ep=l.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=ne(ge,e.__scopeScrollArea),[s,i]=l.useState(),u=l.useRef(null),d=G(t,u,a.onScrollbarXChange);return l.useEffect(()=>{u.current&&i(getComputedStyle(u.current))},[u]),c.jsx(zs,{"data-orientation":"horizontal",...o,ref:d,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Gt(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,p)=>{if(a.viewport){const m=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),Gs(m,p)&&f.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:It(s.paddingLeft),paddingEnd:It(s.paddingRight)}})}})}),kp=l.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=ne(ge,e.__scopeScrollArea),[s,i]=l.useState(),u=l.useRef(null),d=G(t,u,a.onScrollbarYChange);return l.useEffect(()=>{u.current&&i(getComputedStyle(u.current))},[u]),c.jsx(zs,{"data-orientation":"vertical",...o,ref:d,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Gt(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,p)=>{if(a.viewport){const m=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),Gs(m,p)&&f.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:It(s.paddingTop),paddingEnd:It(s.paddingBottom)}})}})}),[Pp,$s]=Os(ge),zs=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:u,onDragScroll:d,onWheelScroll:f,onResize:p,...m}=e,h=ne(ge,r),[v,g]=l.useState(null),b=G(t,T=>g(T)),x=l.useRef(null),w=l.useRef(""),y=h.viewport,C=n.content-n.viewport,A=Z(f),j=Z(u),E=Kt(p,10);function S(T){if(x.current){const I=T.clientX-x.current.left,B=T.clientY-x.current.top;d({x:I,y:B})}}return l.useEffect(()=>{const T=I=>{const B=I.target;v?.contains(B)&&A(I,C)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[y,v,C,A]),l.useEffect(j,[n,j]),Ve(v,E),Ve(h.content,E),c.jsx(Pp,{scope:r,scrollbar:v,hasThumb:o,onThumbChange:Z(a),onThumbPointerUp:Z(s),onThumbPositionChange:j,onThumbPointerDown:Z(i),children:c.jsx(H.div,{...m,ref:b,style:{position:"absolute",...m.style},onPointerDown:O(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),x.current=v.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),S(T))}),onPointerMove:O(e.onPointerMove,S),onPointerUp:O(e.onPointerUp,T=>{const I=T.target;I.hasPointerCapture(T.pointerId)&&I.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=w.current,h.viewport&&(h.viewport.style.scrollBehavior=""),x.current=null})})})}),Tt="ScrollAreaThumb",Ws=l.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=$s(Tt,e.__scopeScrollArea);return c.jsx(me,{present:r||o.hasThumb,children:c.jsx(Mp,{ref:t,...n})})}),Mp=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,a=ne(Tt,r),s=$s(Tt,r),{onThumbPositionChange:i}=s,u=G(t,p=>s.onThumbChange(p)),d=l.useRef(void 0),f=Kt(()=>{d.current&&(d.current(),d.current=void 0)},100);return l.useEffect(()=>{const p=a.viewport;if(p){const m=()=>{if(f(),!d.current){const h=Np(p,i);d.current=h,i()}};return i(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[a.viewport,f,i]),c.jsx(H.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:O(e.onPointerDownCapture,p=>{const h=p.target.getBoundingClientRect(),v=p.clientX-h.left,g=p.clientY-h.top;s.onThumbPointerDown({x:v,y:g})}),onPointerUp:O(e.onPointerUp,s.onThumbPointerUp)})});Ws.displayName=Tt;var Zr="ScrollAreaCorner",Vs=l.forwardRef((e,t)=>{const r=ne(Zr,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?c.jsx(_p,{...e,ref:t}):null});Vs.displayName=Zr;var _p=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=ne(Zr,r),[a,s]=l.useState(0),[i,u]=l.useState(0),d=!!(a&&i);return Ve(o.scrollbarX,()=>{const f=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(f),u(f)}),Ve(o.scrollbarY,()=>{const f=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(f),s(f)}),d?c.jsx(H.div,{...n,ref:t,style:{width:a,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function It(e){return e?parseInt(e,10):0}function Hs(e,t){const r=e/t;return isNaN(r)?0:r}function Gt(e){const t=Hs(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function jp(e,t,r,n="ltr"){const o=Gt(r),a=o/2,s=t||a,i=o-s,u=r.scrollbar.paddingStart+s,d=r.scrollbar.size-r.scrollbar.paddingEnd-i,f=r.content-r.viewport,p=n==="ltr"?[0,f]:[f*-1,0];return Us([u,d],p)(e)}function _n(e,t,r="ltr"){const n=Gt(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,s=t.content-t.viewport,i=a-n,u=r==="ltr"?[0,s]:[s*-1,0],d=yp(e,u);return Us([0,s],[0,i])(d)}function Us(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Gs(e,t){return e>0&&e<t}var Np=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){const a={left:e.scrollLeft,top:e.scrollTop},s=r.left!==a.left,i=r.top!==a.top;(s||i)&&t(),r=a,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)};function Kt(e,t){const r=Z(e),n=l.useRef(0);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),l.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Ve(e,t){const r=Z(t);fe(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}var Tp=Ds,Ip=Fs,Op=Vs;function Ks({className:e,children:t,...r}){return c.jsx(Tp,{className:k("relative",e),"data-slot":"scroll-area-root",...r,children:t})}const Ys=_.createContext(void 0);function Xs({children:e,orientation:t="vertical",scrollHideDelay:r=500,type:n="hover"}){const o=_.useMemo(()=>({orientation:t,scrollHideDelay:r,type:n}),[t,r,n]);return c.jsx(Ys.Provider,{value:o,children:e})}function qs(){const e=_.use(Ys);if(e===void 0)throw new Error("useScrollArea must be used within a ScrollAreaProvider");return e}function Zs({className:e,children:t,...r}){return c.jsx(Ip,{className:k("size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary",e),"data-slot":"scroll-area-viewport",...r,children:t})}function Qs({className:e,children:t,...r}){const{orientation:n}=qs(),o="flex touch-none select-none bg-transparent p-1 transition-colors data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0 data-[state=visible]:fade-in-0",a="h-full w-3.5 border-l border-l-transparent",s="h-3.5 flex-col border-t border-t-transparent";return n==="both"?c.jsxs(c.Fragment,{children:[c.jsx(St,{className:k(o,a,e),"data-slot":"scroll-area-vertical-scrollbar",orientation:"vertical",...r,children:t}),c.jsx(St,{className:k(o,s,e),"data-slot":"scroll-area-horizontal-scrollbar",orientation:"horizontal",...r,children:t})]}):c.jsx(St,{className:k(o,n==="vertical"&&a,n==="horizontal"&&s,e),"data-slot":`scroll-area-${n}-scrollbar`,orientation:n,...r,children:t})}function Js({className:e,...t}){return c.jsx(Ws,{className:k("relative flex-1 rounded-full bg-contrast-200",e),"data-slot":"scroll-area-thumb",...t})}function ei({className:e,...t}){return c.jsx(Op,{className:e,"data-slot":"scroll-area-corner",...t})}function Qr({className:e,children:t,...r}){const{showScrollArea:n,maxHeight:o}=Kr();return c.jsx(Is,{className:k(n&&"flex flex-col"),style:{maxHeight:n?`${o}px`:void 0},...r,children:c.jsx("div",{className:k("flex flex-col gap-0.5 rounded-[inherit] p-2",e),"data-slot":"dropdown-menu-scroll-area",children:t})})}function ti({...e}){return c.jsx(bp,{"data-slot":"dropdown-menu-sub",...e})}function ri({children:e,variant:t="default",className:r,...n}){return c.jsx(xp,{className:k("flex h-9 cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] pl-3 pr-1 outline-none transition-colors","font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","data-[variant=default]:text-[var(--dropdown-menu-item-text,hsl(var(--contrast-500)))] data-[variant=default]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-background-hover,hsl(var(--contrast-100)))] data-[variant=default]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-text-hover,hsl(var(--foreground)))]","data-[variant=danger]:text-[var(--dropdown-menu-item-danger-text,hsl(var(--error)))] data-[variant=danger]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] data-[variant=danger]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-danger-text-hover,color-mix(in_oklab,hsl(var(--error)),black_75%))]",r),"data-slot":"dropdown-menu-sub-trigger","data-variant":t,...n,children:c.jsxs("div",{className:"flex flex-1 items-center justify-between gap-2",children:[e,c.jsx("span",{className:"flex size-6 items-center justify-center",children:c.jsx(Gc,{absoluteStrokeWidth:!0,size:16,strokeWidth:1.5})})]})})}function ni({className:e,children:t,...r}){return c.jsx(wp,{className:k("z-50 min-w-32 origin-top-left rounded-2xl border border-[var(--dropdown-menu-border,hsl(var(--contrast-100)))] bg-[var(--dropdown-menu-background,hsl(var(--background)))] shadow-xl","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]: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),"data-slot":"dropdown-menu-sub-content",...r,children:t})}function oi({menuNode:e,menuKey:t}){function r(n,o){switch(n.type){case"item":return c.jsx(Ms,{...n.props},o);case"checkbox":return c.jsx(_s,{...n.props},o);case"separator":return c.jsx(Ts,{...n.props},o);case"group":return c.jsx(Ns,{...n.props,children:n.items.map((a,s)=>r(a,String(s)))},o);case"sub":return c.jsxs(ti,{...n.props,children:[c.jsx(ri,{...n.trigger.props}),n.content&&c.jsx(Yr,{children:c.jsx(ni,{alignOffset:-8,className:k(n.content.props?.className),...n.content.props,children:c.jsx(Qr,{children:n.content.items.map((a,s)=>r(a,String(s)))})})})]},o)}}return r(e,t)}function Dp({checked:e=!1,setChecked:t}){return c.jsx(ii,{onPressedChange:t,pressed:e,children:c.jsx(ci,{filled:e})})}var ai="Toggle",si=l.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,i]=je({prop:r,onChange:o,defaultProp:n??!1,caller:ai});return c.jsx(H.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:O(e.onClick,()=>{e.disabled||i(!s)})})});si.displayName=ai;var Lp=si;function ii({children:e,className:t,...r}){return c.jsx(Lp,{className:k("group relative flex h-[50px] w-[50px] shrink-0 cursor-pointer items-center justify-center rounded-full border border-[var(--favorite-border,hsl(var(--contrast-100)))] text-[var(--favorite-icon,hsl(var(--foreground)))] ring-[var(--favorite-focus,hsl(var(--primary)))] transition duration-300 focus-within:outline-none focus-within:ring-2 data-[state=on]:bg-[var(--favorite-on-background,hsl(var(--contrast-100)))] data-[state=off]:hover:border-[var(--favorite-off-border,hsl(var(--contrast-200)))]",t),...r,children:e})}function ci({filled:e=!1,className:t,...r}){return c.jsxs("svg",{className:k("transform-gpu transition-transform duration-300 ease-out group-active:scale-75 group-active:animate-heart-pulse sm:group-hover:scale-110",t),fill:"none",height:"21",viewBox:"0 0 20 21",width:"20",xmlns:"http://www.w3.org/2000/svg",...r,children:[c.jsx("path",{className:k({"-translate-x-px -translate-y-px scale-110 opacity-0 transition delay-100":e}),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{className:k("origin-center transition-transform duration-300 ease-out",e?"scale-100 fill-current":"scale-0"),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z"})]})}function Fp({className:e,children:t,...r}){return c.jsxs("div",{className:k("flex items-center gap-1 text-xs text-[var(--field-error,hsl(var(--error)))]",e),...r,children:[c.jsx(Yc,{size:20,strokeWidth:1.5}),t]})}function Bp({showRating:e=!0,rating:t,className:r}){return c.jsxs(ui,{className:r,rating:t,showRating:e,children:[c.jsx(fi,{}),c.jsx(pi,{})]})}const li=_.createContext(void 0);function ui({children:e,className:t,rating:r,showRating:n=!0,...o}){const a=_.useRef(0),s=_.useCallback(()=>{const d=a.current;return a.current+=1,d},[]),i=_.useCallback(()=>{a.current=0},[]),u=_.useMemo(()=>{const d=Math.min(r,5),f=Array.from({length:5},(p,m)=>m<Math.floor(d)?"full":m<Math.ceil(d)?"half":"empty");return{rating:r,adjustedRating:d,stars:f,showRating:n,getNextStarIndex:s,resetStarIndex:i}},[r,n,s,i]);return c.jsx(li.Provider,{value:u,children:c.jsx("div",{className:k("flex items-center",t),...o,children:e})})}function Yt(){const e=_.use(li);if(e===void 0)throw new Error("useRating must be used within a RatingRoot");return e}function di({className:e,...t}){const{stars:r,getNextStarIndex:n}=Yt(),o=n(),a=r[o]??"empty",s={empty:c.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"0.4"}),half:c.jsxs(c.Fragment,{children:[c.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M10.0003 1.6665V14.8082L4.85033 17.5165L5.83366 11.7832L1.66699 7.72484L7.42533 6.88317L10.0003 1.6665Z",fill:"currentColor"})]}),full:c.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})};return c.jsx("svg",{className:k("inline-block text-[var(--rating-icon,hsl(var(--foreground)))]",e),fill:"none",height:20,viewBox:"0 0 20 20",width:20,...t,children:s[a]})}function fi(){const{resetStarIndex:e}=Yt();return e(),c.jsx(c.Fragment,{children:[0,1,2,3,4].map(t=>c.jsx(di,{},t))})}function pi({className:e,...t}){const{adjustedRating:r,showRating:n}=Yt();return n?c.jsx("span",{className:k("ml-1.5 flex h-6 min-w-6 shrink-0 items-center justify-center rounded-full border border-[var(--rating-border,hsl(var(--contrast-100)))] px-1 text-xs font-medium text-[var(--rating-text,hsl(var(--contrast-400)))]",e),...t,children:r%1!==0?r.toFixed(1):r}):null}function $p({className:e,variant:t="underline",showLabel:r="Show more",hideLabel:n="Show less",defaultOpen:o=!1,maxHeight:a=160,children:s}){return c.jsxs(hi,{className:e,defaultOpen:o,hideLabel:n,maxHeight:a,showLabel:r,variant:t,children:[c.jsx(gi,{children:s}),c.jsx(vi,{children:c.jsx(bi,{})})]})}const mi=_.createContext(void 0);function hi({children:e,className:t,variant:r="underline",showLabel:n="Show more",hideLabel:o="Show less",defaultOpen:a=!1,maxHeight:s=160,...i}){const[u,d]=_.useState(a),[f,p]=_.useState(!0),m=_.useRef(null);_.useEffect(()=>{function g(){if(m.current){const x=m.current.scrollHeight;p(x>s)}}g();const b=new ResizeObserver(g);return m.current&&b.observe(m.current),()=>{b.disconnect()}},[s]);const h=_.useCallback(()=>{d(g=>!g)},[]),v=_.useMemo(()=>({isOpen:u,hasOverflow:f,variant:r,showLabel:n,hideLabel:o,maxHeight:s,contentRef:m,toggleOpen:h}),[u,f,r,n,o,s,h]);return c.jsx(mi.Provider,{value:v,children:c.jsx("div",{className:k("relative",t),...i,children:e})})}function Xt(){const e=_.use(mi);if(e===void 0)throw new Error("useReveal must be used within a RevealRoot");return e}function gi({children:e,className:t,...r}){const{hasOverflow:n,isOpen:o,maxHeight:a,contentRef:s}=Xt();return c.jsx("div",{className:k(n&&!o&&"[mask-image:linear-gradient(to_top,transparent,black_50px,black_calc(100%-50px))]","overflow-hidden",t),ref:s,style:{maxHeight:o?"none":a},...r,children:e})}function vi({children:e,className:t,...r}){const{hasOverflow:n}=Xt();return n?c.jsx("div",{className:k("flex w-full items-end pt-4",t),...r,children:e}):null}function bi({children:e,className:t,...r}){const{variant:n,showLabel:o,hideLabel:a,isOpen:s,toggleOpen:i}=Xt();return c.jsxs(c.Fragment,{children:[n==="underline"&&c.jsx("button",{className:k("group/underline text-sm focus:outline-none",t),onClick:()=>i(),type:"button",...r,children:c.jsx(ko,{children:s?a:o})}),n==="button"&&c.jsx(at,{className:t,onClick:()=>i(),size:"x-small",type:"button",variant:"tertiary",...r,children:s?a:o})]})}exports.Accordion=xi;exports.AccordionChevron=go;exports.AccordionContent=fo;exports.AccordionContentArea=po;exports.AccordionHeader=mo;exports.AccordionItem=co;exports.AccordionRoot=uo;exports.AccordionTitle=ho;exports.AccordionTrigger=vo;exports.Alert=Lc;exports.AlertActions=So;exports.AlertButton=Ao;exports.AlertCloseButton=Eo;exports.AlertDescription=Co;exports.AlertHeader=wo;exports.AlertRoot=xo;exports.AlertTitle=yo;exports.AnimatedUnderline=ko;exports.Badge=el;exports.Banner=tl;exports.BannerContent=jo;exports.BannerDismiss=To;exports.BannerProvider=Mo;exports.BannerRoot=_o;exports.BannerText=No;exports.BlogPostCard=rl;exports.BlogPostCardAuthor=Vo;exports.BlogPostCardContent=$o;exports.BlogPostCardDate=Wo;exports.BlogPostCardDetails=zo;exports.BlogPostCardFallback=Oo;exports.BlogPostCardImage=Lo;exports.BlogPostCardLink=Fo;exports.BlogPostCardRoot=Io;exports.BlogPostCardSkeleton=dl;exports.BlogPostCardTitle=Bo;exports.Button=at;exports.ButtonLink=fl;exports.Card=pl;exports.CardLink=Uo;exports.CardRoot=Go;exports.CardSkeleton=ml;exports.Chip=hl;exports.ChipButton=Yo;exports.ChipRoot=Ko;exports.DropdownMenu=gl;exports.DropdownMenuCheckboxItem=_s;exports.DropdownMenuContent=Ps;exports.DropdownMenuGroup=Ns;exports.DropdownMenuItem=Ms;exports.DropdownMenuLabel=js;exports.DropdownMenuNode=oi;exports.DropdownMenuPortal=Yr;exports.DropdownMenuRoot=Es;exports.DropdownMenuScrollArea=Qr;exports.DropdownMenuSeparator=Ts;exports.DropdownMenuSub=ti;exports.DropdownMenuSubContent=ni;exports.DropdownMenuSubTrigger=ri;exports.DropdownMenuTrigger=ks;exports.Favorite=Dp;exports.FavoriteHeart=ci;exports.FavoriteRoot=ii;exports.FieldError=Fp;exports.Rating=Bp;exports.RatingRoot=ui;exports.RatingStar=di;exports.RatingStars=fi;exports.RatingValue=pi;exports.Reveal=$p;exports.RevealControls=vi;exports.RevealRoot=hi;exports.RevealTrigger=bi;exports.RevealViewport=gi;exports.ScrollArea=Is;exports.ScrollAreaBar=Qs;exports.ScrollAreaCorner=ei;exports.ScrollAreaProvider=Xs;exports.ScrollAreaRoot=Ks;exports.ScrollAreaThumb=Js;exports.ScrollAreaViewport=Zs;exports.useAccordion=ot;exports.useAlert=kr;exports.useBanner=Mr;exports.useDropdownMenu=Kr;exports.useRating=Yt;exports.useReveal=Xt;exports.useScrollArea=qs;
|
|
91
|
+
`)},Gf=0,at=[];function Yf(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Gf++)[0],a=f.useState(xs)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=pf([e.lockRef.current],(e.shards||[]).map(mo),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=f.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var b=Wt(g),y=n.current,C="deltaX"in g?g.deltaX:y[0]-b[0],S="deltaY"in g?g.deltaY:y[1]-b[1],k,M=g.target,A=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in g&&A==="h"&&M.type==="range")return!1;var E=uo(A,M);if(!E)return!0;if(E?k=A:(k=A==="v"?"h":"v",E=uo(A,M)),!E)return!1;if(!r.current&&"changedTouches"in g&&(C||S)&&(r.current=k),!k)return!0;var I=r.current||k;return Hf(I,x,g,I==="h"?C:S)},[]),d=f.useCallback(function(g){var x=g;if(!(!at.length||at[at.length-1]!==a)){var b="deltaY"in x?fo(x):Wt(x),y=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&Vf(k.delta,b)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var C=(s.current.shards||[]).map(mo).filter(Boolean).filter(function(k){return k.contains(x.target)}),S=C.length>0?l(x,C[0]):!s.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=f.useCallback(function(g,x,b,y){var C={name:g,delta:x,target:b,should:y,shadowParent:Kf(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),m=f.useCallback(function(g){n.current=Wt(g),r.current=void 0},[]),i=f.useCallback(function(g){u(g.type,fo(g),g.target,l(g,e.lockRef.current))},[]),p=f.useCallback(function(g){u(g.type,Wt(g),g.target,l(g,e.lockRef.current))},[]);f.useEffect(function(){return at.push(a),e.setCallbacks({onScrollCapture:i,onWheelCapture:i,onTouchMoveCapture:p}),document.addEventListener("wheel",d,ot),document.addEventListener("touchmove",d,ot),document.addEventListener("touchstart",m,ot),function(){at=at.filter(function(g){return g!==a}),document.removeEventListener("wheel",d,ot),document.removeEventListener("touchmove",d,ot),document.removeEventListener("touchstart",m,ot)}},[]);var h=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(a,{styles:Uf(o)}):null,h?f.createElement(Of,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Kf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xf=Sf(bs,Yf);var Ss=f.forwardRef(function(e,t){return f.createElement(pn,ke({},e,{ref:t,sideCar:Xf}))});Ss.classNames=pn.classNames;var Gn=["Enter"," "],qf=["ArrowDown","PageUp","Home"],Es=["ArrowUp","PageDown","End"],Zf=[...qf,...Es],Qf={ltr:[...Gn,"ArrowRight"],rtl:[...Gn,"ArrowLeft"]},Jf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Mt="Menu",[Ct,em,tm]=Xn(Mt),[Ze,Rs]=Ve(Mt,[tm,Qa,ds]),_t=Qa(),ks=ds(),[As,Ue]=Ze(Mt),[nm,Nt]=Ze(Mt),Ps=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,l=_t(t),[d,u]=f.useState(null),m=f.useRef(!1),i=oe(a),p=sn(o);return f.useEffect(()=>{const h=()=>{m.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>m.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),c.jsx(is,{...l,children:c.jsx(As,{scope:t,open:n,onOpenChange:i,content:d,onContentChange:u,children:c.jsx(nm,{scope:t,onClose:f.useCallback(()=>i(!1),[i]),isUsingKeyboardRef:m,dir:p,modal:s,children:r})})})};Ps.displayName=Mt;var rm="MenuAnchor",hr=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=_t(n);return c.jsx(Yu,{...o,...r,ref:t})});hr.displayName=rm;var gr="MenuPortal",[om,Ms]=Ze(gr,{forceMount:void 0}),_s=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ue(gr,t);return c.jsx(om,{scope:t,forceMount:n,children:c.jsx(Ne,{present:n||a.open,children:c.jsx(ls,{asChild:!0,container:o,children:r})})})};_s.displayName=gr;var ge="MenuContent",[am,vr]=Ze(ge),Ns=f.forwardRef((e,t)=>{const n=Ms(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ue(ge,e.__scopeMenu),s=Nt(ge,e.__scopeMenu);return c.jsx(Ct.Provider,{scope:e.__scopeMenu,children:c.jsx(Ne,{present:r||a.open,children:c.jsx(Ct.Slot,{scope:e.__scopeMenu,children:s.modal?c.jsx(sm,{...o,ref:t}):c.jsx(im,{...o,ref:t})})})})}),sm=f.forwardRef((e,t)=>{const n=Ue(ge,e.__scopeMenu),r=f.useRef(null),o=J(t,r);return f.useEffect(()=>{const a=r.current;if(a)return mf(a)},[]),c.jsx(br,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),im=f.forwardRef((e,t)=>{const n=Ue(ge,e.__scopeMenu);return c.jsx(br,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),lm=Kt("MenuContent.ScrollLock"),br=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:i,onInteractOutside:p,onDismiss:h,disableOutsideScroll:v,...g}=e,x=Ue(ge,n),b=Nt(ge,n),y=_t(n),C=ks(n),S=em(n),[k,M]=f.useState(null),A=f.useRef(null),E=J(t,A,x.onContentChange),I=f.useRef(0),O=f.useRef(""),V=f.useRef(0),G=f.useRef(null),H=f.useRef("right"),U=f.useRef(0),q=v?Ss:f.Fragment,N=v?{as:lm,allowPinchZoom:!0}:void 0,L=_=>{const K=O.current+_,ee=S().filter(F=>!F.disabled),ae=document.activeElement,D=ee.find(F=>F.ref.current===ae)?.textValue,$=ee.map(F=>F.textValue),X=wm($,K,D),Q=ee.find(F=>F.textValue===X)?.ref.current;(function F(Y){O.current=Y,window.clearTimeout(I.current),Y!==""&&(I.current=window.setTimeout(()=>F(""),1e3))})(K),Q&&setTimeout(()=>Q.focus())};f.useEffect(()=>()=>window.clearTimeout(I.current),[]),wd();const R=f.useCallback(_=>H.current===G.current?.side&&Cm(_,G.current?.area),[]);return c.jsx(am,{scope:n,searchRef:O,onItemEnter:f.useCallback(_=>{R(_)&&_.preventDefault()},[R]),onItemLeave:f.useCallback(_=>{R(_)||(A.current?.focus(),M(null))},[R]),onTriggerLeave:f.useCallback(_=>{R(_)&&_.preventDefault()},[R]),pointerGraceTimerRef:V,onPointerGraceIntentChange:f.useCallback(_=>{G.current=_},[]),children:c.jsx(q,{...N,children:c.jsx(La,{asChild:!0,trapped:o,onMountAutoFocus:B(a,_=>{_.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:c.jsx(Da,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:i,onInteractOutside:p,onDismiss:h,children:c.jsx(lf,{asChild:!0,...C,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:M,onEntryFocus:B(d,_=>{b.isUsingKeyboardRef.current||_.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(Ku,{role:"menu","aria-orientation":"vertical","data-state":Ks(x.open),"data-radix-menu-content":"",dir:b.dir,...y,...g,ref:E,style:{outline:"none",...g.style},onKeyDown:B(g.onKeyDown,_=>{const ee=_.target.closest("[data-radix-menu-content]")===_.currentTarget,ae=_.ctrlKey||_.altKey||_.metaKey,D=_.key.length===1;ee&&(_.key==="Tab"&&_.preventDefault(),!ae&&D&&L(_.key));const $=A.current;if(_.target!==$||!Zf.includes(_.key))return;_.preventDefault();const Q=S().filter(F=>!F.disabled).map(F=>F.ref.current);Es.includes(_.key)&&Q.reverse(),bm(Q)}),onBlur:B(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(I.current),O.current="")}),onPointerMove:B(e.onPointerMove,St(_=>{const K=_.target,ee=U.current!==_.clientX;if(_.currentTarget.contains(K)&&ee){const ae=_.clientX>U.current?"right":"left";H.current=ae,U.current=_.clientX}}))})})})})})})});Ns.displayName=ge;var cm="MenuGroup",xr=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(Z.div,{role:"group",...r,ref:t})});xr.displayName=cm;var dm="MenuLabel",Ts=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(Z.div,{...r,ref:t})});Ts.displayName=dm;var tn="MenuItem",po="menu.itemSelect",hn=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=f.useRef(null),s=Nt(tn,e.__scopeMenu),l=vr(tn,e.__scopeMenu),d=J(t,a),u=f.useRef(!1),m=()=>{const i=a.current;if(!n&&i){const p=new CustomEvent(po,{bubbles:!0,cancelable:!0});i.addEventListener(po,h=>r?.(h),{once:!0}),wo(i,p),p.defaultPrevented?u.current=!1:s.onClose()}};return c.jsx(js,{...o,ref:d,disabled:n,onClick:B(e.onClick,m),onPointerDown:i=>{e.onPointerDown?.(i),u.current=!0},onPointerUp:B(e.onPointerUp,i=>{u.current||i.currentTarget?.click()}),onKeyDown:B(e.onKeyDown,i=>{const p=l.searchRef.current!=="";n||p&&i.key===" "||Gn.includes(i.key)&&(i.currentTarget.click(),i.preventDefault())})})});hn.displayName=tn;var js=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=vr(tn,n),l=ks(n),d=f.useRef(null),u=J(t,d),[m,i]=f.useState(!1),[p,h]=f.useState("");return f.useEffect(()=>{const v=d.current;v&&h((v.textContent??"").trim())},[a.children]),c.jsx(Ct.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:c.jsx(cf,{asChild:!0,...l,focusable:!r,children:c.jsx(Z.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:B(e.onPointerMove,St(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,St(v=>s.onItemLeave(v))),onFocus:B(e.onFocus,()=>i(!0)),onBlur:B(e.onBlur,()=>i(!1))})})})}),um="MenuCheckboxItem",Is=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.jsx(Bs,{scope:e.__scopeMenu,checked:n,children:c.jsx(hn,{role:"menuitemcheckbox","aria-checked":nn(n)?"mixed":n,...o,ref:t,"data-state":Cr(n),onSelect:B(o.onSelect,()=>r?.(nn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Is.displayName=um;var Ds="MenuRadioGroup",[fm,mm]=Ze(Ds,{value:void 0,onValueChange:()=>{}}),Os=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=oe(r);return c.jsx(fm,{scope:e.__scopeMenu,value:n,onValueChange:a,children:c.jsx(xr,{...o,ref:t})})});Os.displayName=Ds;var Ls="MenuRadioItem",Fs=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=mm(Ls,e.__scopeMenu),a=n===o.value;return c.jsx(Bs,{scope:e.__scopeMenu,checked:a,children:c.jsx(hn,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Cr(a),onSelect:B(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Fs.displayName=Ls;var wr="MenuItemIndicator",[Bs,pm]=Ze(wr,{checked:!1}),$s=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=pm(wr,n);return c.jsx(Ne,{present:r||nn(a.checked)||a.checked===!0,children:c.jsx(Z.span,{...o,ref:t,"data-state":Cr(a.checked)})})});$s.displayName=wr;var hm="MenuSeparator",zs=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(Z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});zs.displayName=hm;var gm="MenuArrow",Ws=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=_t(n);return c.jsx(Xu,{...o,...r,ref:t})});Ws.displayName=gm;var yr="MenuSub",[vm,Hs]=Ze(yr),Vs=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ue(yr,t),s=_t(t),[l,d]=f.useState(null),[u,m]=f.useState(null),i=oe(o);return f.useEffect(()=>(a.open===!1&&i(!1),()=>i(!1)),[a.open,i]),c.jsx(is,{...s,children:c.jsx(As,{scope:t,open:r,onOpenChange:i,content:u,onContentChange:m,children:c.jsx(vm,{scope:t,contentId:Ke(),triggerId:Ke(),trigger:l,onTriggerChange:d,children:n})})})};Vs.displayName=yr;var xt="MenuSubTrigger",Us=f.forwardRef((e,t)=>{const n=Ue(xt,e.__scopeMenu),r=Nt(xt,e.__scopeMenu),o=Hs(xt,e.__scopeMenu),a=vr(xt,e.__scopeMenu),s=f.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:d}=a,u={__scopeMenu:e.__scopeMenu},m=f.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return f.useEffect(()=>m,[m]),f.useEffect(()=>{const i=l.current;return()=>{window.clearTimeout(i),d(null)}},[l,d]),c.jsx(hr,{asChild:!0,...u,children:c.jsx(js,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ks(n.open),...e,ref:Et(t,o.onTriggerChange),onClick:i=>{e.onClick?.(i),!(e.disabled||i.defaultPrevented)&&(i.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:B(e.onPointerMove,St(i=>{a.onItemEnter(i),!i.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:B(e.onPointerLeave,St(i=>{m();const p=n.content?.getBoundingClientRect();if(p){const h=n.content?.dataset.side,v=h==="right",g=v?-5:5,x=p[v?"left":"right"],b=p[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:i.clientX+g,y:i.clientY},{x,y:p.top},{x:b,y:p.top},{x:b,y:p.bottom},{x,y:p.bottom}],side:h}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(i),i.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,i=>{const p=a.searchRef.current!=="";e.disabled||p&&i.key===" "||Qf[r.dir].includes(i.key)&&(n.onOpenChange(!0),n.content?.focus(),i.preventDefault())})})})});Us.displayName=xt;var Gs="MenuSubContent",Ys=f.forwardRef((e,t)=>{const n=Ms(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ue(ge,e.__scopeMenu),s=Nt(ge,e.__scopeMenu),l=Hs(Gs,e.__scopeMenu),d=f.useRef(null),u=J(t,d);return c.jsx(Ct.Provider,{scope:e.__scopeMenu,children:c.jsx(Ne,{present:r||a.open,children:c.jsx(Ct.Slot,{scope:e.__scopeMenu,children:c.jsx(br,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{s.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:B(e.onFocusOutside,m=>{m.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,m=>{s.onClose(),m.preventDefault()}),onKeyDown:B(e.onKeyDown,m=>{const i=m.currentTarget.contains(m.target),p=Jf[s.dir].includes(m.key);i&&p&&(a.onOpenChange(!1),l.trigger?.focus(),m.preventDefault())})})})})})});Ys.displayName=Gs;function Ks(e){return e?"open":"closed"}function nn(e){return e==="indeterminate"}function Cr(e){return nn(e)?"indeterminate":e?"checked":"unchecked"}function bm(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function xm(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function wm(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=xm(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const d=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function ym(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 l=t[a],d=t[s],u=l.x,m=l.y,i=d.x,p=d.y;m>r!=p>r&&n<(i-u)*(r-m)/(p-m)+u&&(o=!o)}return o}function Cm(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ym(n,t)}function St(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Sm=Ps,Em=hr,Rm=_s,km=Ns,Am=xr,Pm=Ts,Mm=hn,_m=Is,Nm=Os,Tm=Fs,jm=$s,Im=zs,Dm=Ws,Om=Vs,Lm=Us,Fm=Ys,gn="DropdownMenu",[Bm]=Ve(gn,[Rs]),ie=Rs(),[$m,Xs]=Bm(gn),qs=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,d=ie(t),u=f.useRef(null),[m,i]=qe({prop:o,defaultProp:a??!1,onChange:s,caller:gn});return c.jsx($m,{scope:t,triggerId:Ke(),triggerRef:u,contentId:Ke(),open:m,onOpenChange:i,onOpenToggle:f.useCallback(()=>i(p=>!p),[i]),modal:l,children:c.jsx(Sm,{...d,open:m,onOpenChange:i,dir:r,modal:l,children:n})})};qs.displayName=gn;var Zs="DropdownMenuTrigger",Qs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Xs(Zs,n),s=ie(n);return c.jsx(Em,{asChild:!0,...s,children:c.jsx(Z.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Et(t,a.triggerRef),onPointerDown:B(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:B(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Qs.displayName=Zs;var zm="DropdownMenuPortal",Js=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ie(t);return c.jsx(Rm,{...r,...n})};Js.displayName=zm;var ei="DropdownMenuContent",ti=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xs(ei,n),a=ie(n),s=f.useRef(!1);return c.jsx(km,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,l=>{s.current||o.triggerRef.current?.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:B(e.onInteractOutside,l=>{const d=l.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,m=d.button===2||u;(!o.modal||m)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ti.displayName=ei;var Wm="DropdownMenuGroup",ni=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(Am,{...o,...r,ref:t})});ni.displayName=Wm;var Hm="DropdownMenuLabel",ri=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(Pm,{...o,...r,ref:t})});ri.displayName=Hm;var Vm="DropdownMenuItem",oi=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(Mm,{...o,...r,ref:t})});oi.displayName=Vm;var Um="DropdownMenuCheckboxItem",ai=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(_m,{...o,...r,ref:t})});ai.displayName=Um;var Gm="DropdownMenuRadioGroup",Ym=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(Nm,{...o,...r,ref:t})});Ym.displayName=Gm;var Km="DropdownMenuRadioItem",Xm=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(Tm,{...o,...r,ref:t})});Xm.displayName=Km;var qm="DropdownMenuItemIndicator",si=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(jm,{...o,...r,ref:t})});si.displayName=qm;var Zm="DropdownMenuSeparator",ii=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(Im,{...o,...r,ref:t})});ii.displayName=Zm;var Qm="DropdownMenuArrow",Jm=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(Dm,{...o,...r,ref:t})});Jm.displayName=Qm;var ep=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=ie(t),[l,d]=qe({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(Om,{...s,open:l,onOpenChange:d,children:n})},tp="DropdownMenuSubTrigger",li=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(Lm,{...o,...r,ref:t})});li.displayName=tp;var np="DropdownMenuSubContent",ci=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return c.jsx(Fm,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ci.displayName=np;var rp=qs,op=Qs,ap=Js,sp=ti,ip=ni,lp=ri,cp=oi,dp=ai,up=si,fp=ii,mp=ep,pp=li,hp=ci;const di=w.createContext(void 0);function ui({align:e="end",sideOffset:t=6,showScrollArea:n=!0,maxHeight:r=320,children:o,...a}){const s=w.useMemo(()=>({align:e,sideOffset:t,showScrollArea:n,maxHeight:r}),[e,t,n,r]);return c.jsx(di.Provider,{value:s,children:c.jsx(rp,{"data-slot":"dropdown-menu-root",...a,children:o})})}function Sr(){const e=w.useContext(di);if(e===void 0)throw new Error("useDropdownMenu must be used within a DropdownMenuRoot");return e}function fi({...e}){return c.jsx(op,{"data-slot":"dropdown-menu-trigger",...e})}function mi({className:e,children:t,...n}){const{align:r,sideOffset:o}=Sr();return c.jsx(sp,{align:r,className:P("z-50 min-w-32 rounded-2xl border border-[var(--dropdown-menu-border,hsl(var(--contrast-100)))] bg-[var(--dropdown-menu-background,hsl(var(--background)))] shadow-xl","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),"data-slot":"dropdown-menu-content",sideOffset:o,...n,children:t})}function pi({className:e,variant:t="default",children:n,...r}){return c.jsx(cp,{className:P("flex h-9 cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] py-2 pl-3 pr-5 outline-none transition-colors","font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","data-[variant=default]:text-[var(--dropdown-menu-item-text,hsl(var(--contrast-500)))] data-[variant=default]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-background-hover,hsl(var(--contrast-100)))] data-[variant=default]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-text-hover,hsl(var(--foreground)))]","data-[variant=danger]:text-[var(--dropdown-menu-item-danger-text,hsl(var(--error)))] data-[variant=danger]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] data-[variant=danger]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-danger-text-hover,color-mix(in_oklab,hsl(var(--error)),black_75%))]",e),"data-slot":"dropdown-menu-item","data-variant":t,...r,children:c.jsx("div",{className:"flex items-center justify-between gap-2",children:n})})}function hi({className:e,variant:t="default",children:n,checked:r,...o}){return c.jsx(dp,{checked:r,className:P("flex h-9 w-full cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] pl-3 pr-1.5 outline-none transition-colors","font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","data-[variant=default]:text-[var(--dropdown-menu-item-text,hsl(var(--contrast-500)))] data-[variant=default]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-background-hover,hsl(var(--contrast-100)))] data-[variant=default]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-text-hover,hsl(var(--foreground)))]","data-[variant=danger]:text-[var(--dropdown-menu-item-danger-text,hsl(var(--error)))] data-[variant=danger]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] data-[variant=danger]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-danger-text-hover,color-mix(in_oklab,hsl(var(--error)),black_75%))]",e),"data-slot":"dropdown-menu-checkbox-item","data-variant":t,...o,children:c.jsxs("div",{className:"flex flex-1 items-center justify-between gap-2",children:[n,c.jsx("span",{className:"flex size-6 items-center justify-center",children:c.jsx(up,{children:c.jsx(Bc,{absoluteStrokeWidth:!0,size:16,strokeWidth:1.5})})})]})})}function gi({className:e,...t}){return c.jsx(lp,{className:P("sr-only",e),"data-slot":"dropdown-menu-label",...t})}function vi({className:e,...t}){return c.jsx(ip,{className:P("flex flex-col gap-0.5",e),"data-slot":"dropdown-menu-group",...t})}function bi({className:e,...t}){return c.jsx(fp,{className:P("relative my-1.5 after:absolute after:-left-2 after:-right-5 after:h-px after:bg-[var(--dropdown-menu-seperator,hsl(var(--contrast-100)))]",e),"data-slot":"dropdown-menu-separator",...t})}function Er({...e}){return c.jsx(ap,{"data-slot":"dropdown-menu-portal",...e})}function xi({className:e,children:t,orientation:n="vertical",scrollHideDelay:r=500,type:o="hover",...a}){return c.jsx(Ii,{orientation:n,scrollHideDelay:r,type:o,children:c.jsxs(Ti,{className:e,...a,children:[c.jsx(Oi,{children:t}),c.jsx(Li,{children:c.jsx(Fi,{})}),c.jsx(Bi,{})]})})}function gp(e,[t,n]){return Math.min(n,Math.max(t,e))}function vp(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Rr="ScrollArea",[wi]=Ve(Rr),[bp,ve]=wi(Rr),yi=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...s}=e,[l,d]=f.useState(null),[u,m]=f.useState(null),[i,p]=f.useState(null),[h,v]=f.useState(null),[g,x]=f.useState(null),[b,y]=f.useState(0),[C,S]=f.useState(0),[k,M]=f.useState(!1),[A,E]=f.useState(!1),I=J(t,V=>d(V)),O=sn(o);return c.jsx(bp,{scope:n,type:r,dir:O,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:m,content:i,onContentChange:p,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:k,onScrollbarXEnabledChange:M,scrollbarY:g,onScrollbarYChange:x,scrollbarYEnabled:A,onScrollbarYEnabledChange:E,onCornerWidthChange:y,onCornerHeightChange:S,children:c.jsx(Z.div,{dir:O,...s,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});yi.displayName=Rr;var Ci="ScrollAreaViewport",Si=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,s=ve(Ci,n),l=f.useRef(null),d=J(t,l,s.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(Z.div,{"data-radix-scroll-area-viewport":"",...a,ref:d,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:c.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Si.displayName=Ci;var je="ScrollAreaScrollbar",Yt=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ve(je,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,l=e.orientation==="horizontal";return f.useEffect(()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)}),[l,a,s]),o.type==="hover"?c.jsx(xp,{...r,ref:t,forceMount:n}):o.type==="scroll"?c.jsx(wp,{...r,ref:t,forceMount:n}):o.type==="auto"?c.jsx(Ei,{...r,ref:t,forceMount:n}):o.type==="always"?c.jsx(kr,{...r,ref:t}):null});Yt.displayName=je;var xp=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ve(je,e.__scopeScrollArea),[a,s]=f.useState(!1);return f.useEffect(()=>{const l=o.scrollArea;let d=0;if(l){const u=()=>{window.clearTimeout(d),s(!0)},m=()=>{d=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",m),()=>{window.clearTimeout(d),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",m)}}},[o.scrollArea,o.scrollHideDelay]),c.jsx(Ne,{present:n||a,children:c.jsx(Ei,{"data-state":a?"visible":"hidden",...r,ref:t})})}),wp=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ve(je,e.__scopeScrollArea),a=e.orientation==="horizontal",s=bn(()=>d("SCROLL_END"),100),[l,d]=vp("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return f.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>d("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,d]),f.useEffect(()=>{const u=o.viewport,m=a?"scrollLeft":"scrollTop";if(u){let i=u[m];const p=()=>{const h=u[m];i!==h&&(d("SCROLL"),s()),i=h};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[o.viewport,a,d,s]),c.jsx(Ne,{present:n||l!=="hidden",children:c.jsx(kr,{"data-state":l==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:B(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:B(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),Ei=f.forwardRef((e,t)=>{const n=ve(je,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,s]=f.useState(!1),l=e.orientation==="horizontal",d=bn(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,m=n.viewport.offsetHeight<n.viewport.scrollHeight;s(l?u:m)}},10);return ct(n.viewport,d),ct(n.content,d),c.jsx(Ne,{present:r||a,children:c.jsx(kr,{"data-state":a?"visible":"hidden",...o,ref:t})})}),kr=f.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=ve(je,e.__scopeScrollArea),a=f.useRef(null),s=f.useRef(0),[l,d]=f.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Mi(l.viewport,l.content),m={...r,sizes:l,onSizesChange:d,hasThumb:u>0&&u<1,onThumbChange:p=>a.current=p,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:p=>s.current=p};function i(p,h){return kp(p,s.current,l,h)}return n==="horizontal"?c.jsx(yp,{...m,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollLeft,h=ho(p,l,o.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=i(p,o.dir))}}):n==="vertical"?c.jsx(Cp,{...m,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollTop,h=ho(p,l);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=i(p))}}):null}),yp=f.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=ve(je,e.__scopeScrollArea),[s,l]=f.useState(),d=f.useRef(null),u=J(t,d,a.onScrollbarXChange);return f.useEffect(()=>{d.current&&l(getComputedStyle(d.current))},[d]),c.jsx(ki,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":vn(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,i)=>{if(a.viewport){const p=a.viewport.scrollLeft+m.deltaX;e.onWheelScroll(p),Ni(p,i)&&m.preventDefault()}},onResize:()=>{d.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:on(s.paddingLeft),paddingEnd:on(s.paddingRight)}})}})}),Cp=f.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=ve(je,e.__scopeScrollArea),[s,l]=f.useState(),d=f.useRef(null),u=J(t,d,a.onScrollbarYChange);return f.useEffect(()=>{d.current&&l(getComputedStyle(d.current))},[d]),c.jsx(ki,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":vn(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,i)=>{if(a.viewport){const p=a.viewport.scrollTop+m.deltaY;e.onWheelScroll(p),Ni(p,i)&&m.preventDefault()}},onResize:()=>{d.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:on(s.paddingTop),paddingEnd:on(s.paddingBottom)}})}})}),[Sp,Ri]=wi(je),ki=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:l,onThumbPositionChange:d,onDragScroll:u,onWheelScroll:m,onResize:i,...p}=e,h=ve(je,n),[v,g]=f.useState(null),x=J(t,I=>g(I)),b=f.useRef(null),y=f.useRef(""),C=h.viewport,S=r.content-r.viewport,k=oe(m),M=oe(d),A=bn(i,10);function E(I){if(b.current){const O=I.clientX-b.current.left,V=I.clientY-b.current.top;u({x:O,y:V})}}return f.useEffect(()=>{const I=O=>{const V=O.target;v?.contains(V)&&k(O,S)};return document.addEventListener("wheel",I,{passive:!1}),()=>document.removeEventListener("wheel",I,{passive:!1})},[C,v,S,k]),f.useEffect(M,[r,M]),ct(v,A),ct(h.content,A),c.jsx(Sp,{scope:n,scrollbar:v,hasThumb:o,onThumbChange:oe(a),onThumbPointerUp:oe(s),onThumbPositionChange:M,onThumbPointerDown:oe(l),children:c.jsx(Z.div,{...p,ref:x,style:{position:"absolute",...p.style},onPointerDown:B(e.onPointerDown,I=>{I.button===0&&(I.target.setPointerCapture(I.pointerId),b.current=v.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),E(I))}),onPointerMove:B(e.onPointerMove,E),onPointerUp:B(e.onPointerUp,I=>{const O=I.target;O.hasPointerCapture(I.pointerId)&&O.releasePointerCapture(I.pointerId),document.body.style.webkitUserSelect=y.current,h.viewport&&(h.viewport.style.scrollBehavior=""),b.current=null})})})}),rn="ScrollAreaThumb",Ai=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ri(rn,e.__scopeScrollArea);return c.jsx(Ne,{present:n||o.hasThumb,children:c.jsx(Ep,{ref:t,...r})})}),Ep=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=ve(rn,n),s=Ri(rn,n),{onThumbPositionChange:l}=s,d=J(t,i=>s.onThumbChange(i)),u=f.useRef(void 0),m=bn(()=>{u.current&&(u.current(),u.current=void 0)},100);return f.useEffect(()=>{const i=a.viewport;if(i){const p=()=>{if(m(),!u.current){const h=Ap(i,l);u.current=h,l()}};return l(),i.addEventListener("scroll",p),()=>i.removeEventListener("scroll",p)}},[a.viewport,m,l]),c.jsx(Z.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:B(e.onPointerDownCapture,i=>{const h=i.target.getBoundingClientRect(),v=i.clientX-h.left,g=i.clientY-h.top;s.onThumbPointerDown({x:v,y:g})}),onPointerUp:B(e.onPointerUp,s.onThumbPointerUp)})});Ai.displayName=rn;var Ar="ScrollAreaCorner",Pi=f.forwardRef((e,t)=>{const n=ve(Ar,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?c.jsx(Rp,{...e,ref:t}):null});Pi.displayName=Ar;var Rp=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=ve(Ar,n),[a,s]=f.useState(0),[l,d]=f.useState(0),u=!!(a&&l);return ct(o.scrollbarX,()=>{const m=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(m),d(m)}),ct(o.scrollbarY,()=>{const m=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(m),s(m)}),u?c.jsx(Z.div,{...r,ref:t,style:{width:a,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function on(e){return e?parseInt(e,10):0}function Mi(e,t){const n=e/t;return isNaN(n)?0:n}function vn(e){const t=Mi(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function kp(e,t,n,r="ltr"){const o=vn(n),a=o/2,s=t||a,l=o-s,d=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,m=n.content-n.viewport,i=r==="ltr"?[0,m]:[m*-1,0];return _i([d,u],i)(e)}function ho(e,t,n="ltr"){const r=vn(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,s=t.content-t.viewport,l=a-r,d=n==="ltr"?[0,s]:[s*-1,0],u=gp(e,d);return _i([0,s],[0,l])(u)}function _i(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Ni(e,t){return e>0&&e<t}var Ap=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const a={left:e.scrollLeft,top:e.scrollTop},s=n.left!==a.left,l=n.top!==a.top;(s||l)&&t(),n=a,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function bn(e,t){const n=oe(e),r=f.useRef(0);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),f.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ct(e,t){const n=oe(t);Me(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var Pp=yi,Mp=Si,_p=Pi;function Ti({className:e,children:t,...n}){return c.jsx(Pp,{className:P("relative",e),"data-slot":"scroll-area-root",...n,children:t})}const ji=w.createContext(void 0);function Ii({children:e,orientation:t="vertical",scrollHideDelay:n=500,type:r="hover"}){const o=w.useMemo(()=>({orientation:t,scrollHideDelay:n,type:r}),[t,n,r]);return c.jsx(ji.Provider,{value:o,children:e})}function Di(){const e=w.use(ji);if(e===void 0)throw new Error("useScrollArea must be used within a ScrollAreaProvider");return e}function Oi({className:e,children:t,...n}){return c.jsx(Mp,{className:P("size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary",e),"data-slot":"scroll-area-viewport",...n,children:t})}function Li({className:e,children:t,...n}){const{orientation:r}=Di(),o="flex touch-none select-none bg-transparent p-1 transition-colors data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0 data-[state=visible]:fade-in-0",a="h-full w-3.5 border-l border-l-transparent",s="h-3.5 flex-col border-t border-t-transparent";return r==="both"?c.jsxs(c.Fragment,{children:[c.jsx(Yt,{className:P(o,a,e),"data-slot":"scroll-area-vertical-scrollbar",orientation:"vertical",...n,children:t}),c.jsx(Yt,{className:P(o,s,e),"data-slot":"scroll-area-horizontal-scrollbar",orientation:"horizontal",...n,children:t})]}):c.jsx(Yt,{className:P(o,r==="vertical"&&a,r==="horizontal"&&s,e),"data-slot":`scroll-area-${r}-scrollbar`,orientation:r,...n,children:t})}function Fi({className:e,...t}){return c.jsx(Ai,{className:P("relative flex-1 rounded-full bg-contrast-200",e),"data-slot":"scroll-area-thumb",...t})}function Bi({className:e,...t}){return c.jsx(_p,{className:e,"data-slot":"scroll-area-corner",...t})}function Pr({className:e,children:t,...n}){const{showScrollArea:r,maxHeight:o}=Sr();return c.jsx(xi,{className:P(r&&"flex flex-col"),style:{maxHeight:r?`${o}px`:void 0},...n,children:c.jsx("div",{className:P("flex flex-col gap-0.5 rounded-[inherit] p-2",e),"data-slot":"dropdown-menu-scroll-area",children:t})})}function $i({...e}){return c.jsx(mp,{"data-slot":"dropdown-menu-sub",...e})}function zi({children:e,variant:t="default",className:n,...r}){return c.jsx(pp,{className:P("flex h-9 cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] pl-3 pr-1 outline-none transition-colors","font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","data-[variant=default]:text-[var(--dropdown-menu-item-text,hsl(var(--contrast-500)))] data-[variant=default]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-background-hover,hsl(var(--contrast-100)))] data-[variant=default]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-text-hover,hsl(var(--foreground)))]","data-[variant=danger]:text-[var(--dropdown-menu-item-danger-text,hsl(var(--error)))] data-[variant=danger]:[&:not([data-disabled])]:focus:bg-[var(--dropdown-menu-item-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] data-[variant=danger]:[&:not([data-disabled])]:focus:text-[var(--dropdown-menu-item-danger-text-hover,color-mix(in_oklab,hsl(var(--error)),black_75%))]",n),"data-slot":"dropdown-menu-sub-trigger","data-variant":t,...r,children:c.jsxs("div",{className:"flex flex-1 items-center justify-between gap-2",children:[e,c.jsx("span",{className:"flex size-6 items-center justify-center",children:c.jsx(zc,{absoluteStrokeWidth:!0,size:16,strokeWidth:1.5})})]})})}function Wi({className:e,children:t,...n}){return c.jsx(hp,{className:P("z-50 min-w-32 origin-top-left rounded-2xl border border-[var(--dropdown-menu-border,hsl(var(--contrast-100)))] bg-[var(--dropdown-menu-background,hsl(var(--background)))] shadow-xl","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]: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),"data-slot":"dropdown-menu-sub-content",...n,children:t})}function Hi({menuNode:e,menuKey:t}){function n(r,o){switch(r.type){case"item":return c.jsx(pi,{...r.props},o);case"checkbox":return c.jsx(hi,{...r.props},o);case"separator":return c.jsx(bi,{...r.props},o);case"group":return c.jsx(vi,{...r.props,children:r.items.map((a,s)=>n(a,String(s)))},o);case"sub":return c.jsxs($i,{...r.props,children:[c.jsx(zi,{...r.trigger.props}),r.content&&c.jsx(Er,{children:c.jsx(Wi,{alignOffset:-8,className:P(r.content.props?.className),...r.content.props,children:c.jsx(Pr,{children:r.content.items.map((a,s)=>n(a,String(s)))})})})]},o)}}return n(e,t)}function Np({checked:e=!1,setChecked:t}){return c.jsx(Gi,{onPressedChange:t,pressed:e,children:c.jsx(Yi,{filled:e})})}var Vi="Toggle",Ui=f.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,l]=qe({prop:n,onChange:o,defaultProp:r??!1,caller:Vi});return c.jsx(Z.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:B(e.onClick,()=>{e.disabled||l(!s)})})});Ui.displayName=Vi;var Tp=Ui;function Gi({children:e,className:t,...n}){return c.jsx(Tp,{className:P("group relative flex h-[50px] w-[50px] shrink-0 cursor-pointer items-center justify-center rounded-full border border-[var(--favorite-border,hsl(var(--contrast-100)))] text-[var(--favorite-icon,hsl(var(--foreground)))] ring-[var(--favorite-focus,hsl(var(--primary)))] transition duration-300 focus-within:outline-none focus-within:ring-2 data-[state=on]:bg-[var(--favorite-on-background,hsl(var(--contrast-100)))] data-[state=off]:hover:border-[var(--favorite-off-border,hsl(var(--contrast-200)))]",t),...n,children:e})}function Yi({filled:e=!1,className:t,...n}){return c.jsxs("svg",{className:P("transform-gpu transition-transform duration-300 ease-out group-active:scale-75 group-active:animate-heart-pulse sm:group-hover:scale-110",t),fill:"none",height:"21",viewBox:"0 0 20 21",width:"20",xmlns:"http://www.w3.org/2000/svg",...n,children:[c.jsx("path",{className:P({"-translate-x-px -translate-y-px scale-110 opacity-0 transition delay-100":e}),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{className:P("origin-center transition-transform duration-300 ease-out",e?"scale-100 fill-current":"scale-0"),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z"})]})}function jp({className:e,children:t,...n}){return c.jsxs("div",{className:P("flex items-center gap-1 text-xs text-[var(--field-error,hsl(var(--error)))]",e),...n,children:[c.jsx(Hc,{size:20,strokeWidth:1.5}),t]})}function Ip({showRating:e=!0,rating:t,className:n}){return c.jsxs(Xi,{className:n,rating:t,showRating:e,children:[c.jsx(Zi,{}),c.jsx(Qi,{})]})}const Ki=w.createContext(void 0);function Xi({children:e,className:t,rating:n,showRating:r=!0,...o}){const a=w.useRef(0),s=w.useCallback(()=>{const u=a.current;return a.current+=1,u},[]),l=w.useCallback(()=>{a.current=0},[]),d=w.useMemo(()=>{const u=Math.min(n,5),m=Array.from({length:5},(i,p)=>p<Math.floor(u)?"full":p<Math.ceil(u)?"half":"empty");return{rating:n,adjustedRating:u,stars:m,showRating:r,getNextStarIndex:s,resetStarIndex:l}},[n,r,s,l]);return c.jsx(Ki.Provider,{value:d,children:c.jsx("div",{className:P("flex items-center",t),...o,children:e})})}function xn(){const e=w.use(Ki);if(e===void 0)throw new Error("useRating must be used within a RatingRoot");return e}function qi({className:e,...t}){const{stars:n,getNextStarIndex:r}=xn(),o=r(),a=n[o]??"empty",s={empty:c.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"0.4"}),half:c.jsxs(c.Fragment,{children:[c.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M10.0003 1.6665V14.8082L4.85033 17.5165L5.83366 11.7832L1.66699 7.72484L7.42533 6.88317L10.0003 1.6665Z",fill:"currentColor"})]}),full:c.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})};return c.jsx("svg",{className:P("inline-block text-[var(--rating-icon,hsl(var(--foreground)))]",e),fill:"none",height:20,viewBox:"0 0 20 20",width:20,...t,children:s[a]})}function Zi(){const{resetStarIndex:e}=xn();return e(),c.jsx(c.Fragment,{children:[0,1,2,3,4].map(t=>c.jsx(qi,{},t))})}function Qi({className:e,...t}){const{adjustedRating:n,showRating:r}=xn();return r?c.jsx("span",{className:P("ml-1.5 flex h-6 min-w-6 shrink-0 items-center justify-center rounded-full border border-[var(--rating-border,hsl(var(--contrast-100)))] px-1 text-xs font-medium text-[var(--rating-text,hsl(var(--contrast-400)))]",e),...t,children:n%1!==0?n.toFixed(1):n}):null}function Dp({className:e,variant:t="underline",showLabel:n="Show more",hideLabel:r="Show less",defaultOpen:o=!1,maxHeight:a=160,children:s}){return c.jsxs(el,{className:e,defaultOpen:o,hideLabel:r,maxHeight:a,showLabel:n,variant:t,children:[c.jsx(tl,{children:s}),c.jsx(nl,{children:c.jsx(rl,{})})]})}const Ji=w.createContext(void 0);function el({children:e,className:t,variant:n="underline",showLabel:r="Show more",hideLabel:o="Show less",defaultOpen:a=!1,maxHeight:s=160,...l}){const[d,u]=w.useState(a),[m,i]=w.useState(!0),p=w.useRef(null);w.useEffect(()=>{function g(){if(p.current){const b=p.current.scrollHeight;i(b>s)}}g();const x=new ResizeObserver(g);return p.current&&x.observe(p.current),()=>{x.disconnect()}},[s]);const h=w.useCallback(()=>{u(g=>!g)},[]),v=w.useMemo(()=>({isOpen:d,hasOverflow:m,variant:n,showLabel:r,hideLabel:o,maxHeight:s,contentRef:p,toggleOpen:h}),[d,m,n,r,o,s,h]);return c.jsx(Ji.Provider,{value:v,children:c.jsx("div",{className:P("relative",t),...l,children:e})})}function wn(){const e=w.use(Ji);if(e===void 0)throw new Error("useReveal must be used within a RevealRoot");return e}function tl({children:e,className:t,...n}){const{hasOverflow:r,isOpen:o,maxHeight:a,contentRef:s}=wn();return c.jsx("div",{className:P(r&&!o&&"[mask-image:linear-gradient(to_top,transparent,black_50px,black_calc(100%-50px))]","overflow-hidden",t),ref:s,style:{maxHeight:o?"none":a},...n,children:e})}function nl({children:e,className:t,...n}){const{hasOverflow:r}=wn();return r?c.jsx("div",{className:P("flex w-full items-end pt-4",t),...n,children:e}):null}function rl({children:e,className:t,...n}){const{variant:r,showLabel:o,hideLabel:a,isOpen:s,toggleOpen:l}=wn();return c.jsxs(c.Fragment,{children:[r==="underline"&&c.jsx("button",{className:P("group/underline text-sm focus:outline-none",t),onClick:()=>l(),type:"button",...n,children:c.jsx(fa,{children:s?a:o})}),r==="button"&&c.jsx(kt,{className:t,onClick:()=>l(),size:"x-small",type:"button",variant:"tertiary",...n,children:s?a:o})]})}function Op({className:e,size:t="sm",...n}){return c.jsx("span",{"aria-label":"Loading...",className:P("box-border inline-block animate-spin rounded-full border-[var(--spinner-base,hsl(var(--contrast-100)))] [border-bottom-color:var(--spinner-ring,color-mix(in_oklab,hsl(var(--primary)),black_75%))]",{xs:"h-5 w-5 border-2",sm:"h-6 w-6 border-2",md:"h-10 w-10 border-[3px]",lg:"h-14 w-14 border-4"}[t],e),role:"status",...n})}function Lp(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Fp=e=>{switch(e){case"success":return zp;case"info":return Hp;case"warning":return Wp;case"error":return Vp;default:return null}},Bp=Array(12).fill(0),$p=({visible:e,className:t})=>w.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},w.createElement("div",{className:"sonner-spinner"},Bp.map((n,r)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),zp=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Wp=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Hp=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Vp=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Up=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Gp=()=>{const[e,t]=w.useState(document.hidden);return w.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Yn=1;class Yp{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,a=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Yn++,s=this.toasts.find(d=>d.id===a),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),s?this.toasts=this.toasts.map(d=>d.id===a?(this.publish({...d,...t,id:a,title:r}),{...d,...t,id:a,dismissible:l,title:r}):d):this.addToast({title:r,...o,dismissible:l,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,s;const l=o.then(async u=>{if(s=["resolve",u],w.isValidElement(u))a=!1,this.create({id:r,type:"default",message:u});else if(Xp(u)&&!u.ok){a=!1;const i=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,v=typeof i=="object"&&!w.isValidElement(i)?i:{message:i};this.create({id:r,type:"error",description:p,...v})}else if(u instanceof Error){a=!1;const i=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description,v=typeof i=="object"&&!w.isValidElement(i)?i:{message:i};this.create({id:r,type:"error",description:p,...v})}else if(n.success!==void 0){a=!1;const i=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description,v=typeof i=="object"&&!w.isValidElement(i)?i:{message:i};this.create({id:r,type:"success",description:p,...v})}}).catch(async u=>{if(s=["reject",u],n.error!==void 0){a=!1;const m=typeof n.error=="function"?await n.error(u):n.error,i=typeof n.description=="function"?await n.description(u):n.description,h=typeof m=="object"&&!w.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:i,...h})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),d=()=>new Promise((u,m)=>l.then(()=>s[0]==="reject"?m(s[1]):u(s[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(t,n)=>{const r=n?.id||Yn++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const le=new Yp,Kp=(e,t)=>{const n=t?.id||Yn++;return le.addToast({title:e,...t,id:n}),n},Xp=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qp=Kp,Zp=()=>le.toasts,Qp=()=>le.getActiveToasts(),$e=Object.assign(qp,{success:le.success,info:le.info,warning:le.warning,error:le.error,custom:le.custom,message:le.message,promise:le.promise,dismiss:le.dismiss,loading:le.loading},{getHistory:Zp,getToasts:Qp});Lp("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ht(e){return e.label!==void 0}const Jp=3,eh="24px",th="16px",go=4e3,nh=356,rh=14,oh=45,ah=200;function Re(...e){return e.filter(Boolean).join(" ")}function sh(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const ih=e=>{var t,n,r,o,a,s,l,d,u;const{invert:m,toast:i,unstyled:p,interacting:h,setHeights:v,visibleToasts:g,heights:x,index:b,toasts:y,expanded:C,removeToast:S,defaultRichColors:k,closeButton:M,style:A,cancelButtonStyle:E,actionButtonStyle:I,className:O="",descriptionClassName:V="",duration:G,position:H,gap:U,expandByDefault:q,classNames:N,icons:L,closeButtonAriaLabel:R="Close toast"}=e,[_,K]=w.useState(null),[ee,ae]=w.useState(null),[D,$]=w.useState(!1),[X,Q]=w.useState(!1),[F,Y]=w.useState(!1),[ce,be]=w.useState(!1),[Ee,de]=w.useState(!1),[Qe,yn]=w.useState(0),[ol,Mr]=w.useState(0),ht=w.useRef(i.duration||G||go),_r=w.useRef(null),Ie=w.useRef(null),al=b===0,sl=b+1<=g,ue=i.type,Je=i.dismissible!==!1,il=i.className||"",ll=i.descriptionClassName||"",Tt=w.useMemo(()=>x.findIndex(z=>z.toastId===i.id)||0,[x,i.id]),cl=w.useMemo(()=>{var z;return(z=i.closeButton)!=null?z:M},[i.closeButton,M]),Nr=w.useMemo(()=>i.duration||G||go,[i.duration,G]),Cn=w.useRef(0),et=w.useRef(0),Tr=w.useRef(0),tt=w.useRef(null),[dl,ul]=H.split("-"),jr=w.useMemo(()=>x.reduce((z,ne,se)=>se>=Tt?z:z+ne.height,0),[x,Tt]),Ir=Gp(),fl=i.invert||m,Sn=ue==="loading";et.current=w.useMemo(()=>Tt*U+jr,[Tt,jr]),w.useEffect(()=>{ht.current=Nr},[Nr]),w.useEffect(()=>{$(!0)},[]),w.useEffect(()=>{const z=Ie.current;if(z){const ne=z.getBoundingClientRect().height;return Mr(ne),v(se=>[{toastId:i.id,height:ne,position:i.position},...se]),()=>v(se=>se.filter(fe=>fe.toastId!==i.id))}},[v,i.id]),w.useLayoutEffect(()=>{if(!D)return;const z=Ie.current,ne=z.style.height;z.style.height="auto";const se=z.getBoundingClientRect().height;z.style.height=ne,Mr(se),v(fe=>fe.find(re=>re.toastId===i.id)?fe.map(re=>re.toastId===i.id?{...re,height:se}:re):[{toastId:i.id,height:se,position:i.position},...fe])},[D,i.title,i.description,v,i.id,i.jsx,i.action,i.cancel]);const Fe=w.useCallback(()=>{Q(!0),yn(et.current),v(z=>z.filter(ne=>ne.toastId!==i.id)),setTimeout(()=>{S(i)},ah)},[i,S,v,et]);w.useEffect(()=>{if(i.promise&&ue==="loading"||i.duration===1/0||i.type==="loading")return;let z;return C||h||Ir?(()=>{if(Tr.current<Cn.current){const fe=new Date().getTime()-Cn.current;ht.current=ht.current-fe}Tr.current=new Date().getTime()})():(()=>{ht.current!==1/0&&(Cn.current=new Date().getTime(),z=setTimeout(()=>{i.onAutoClose==null||i.onAutoClose.call(i,i),Fe()},ht.current))})(),()=>clearTimeout(z)},[C,h,i,ue,Ir,Fe]),w.useEffect(()=>{i.delete&&(Fe(),i.onDismiss==null||i.onDismiss.call(i,i))},[Fe,i.delete]);function ml(){var z;if(L?.loading){var ne;return w.createElement("div",{className:Re(N?.loader,i==null||(ne=i.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":ue==="loading"},L.loading)}return w.createElement($p,{className:Re(N?.loader,i==null||(z=i.classNames)==null?void 0:z.loader),visible:ue==="loading"})}const pl=i.icon||L?.[ue]||Fp(ue);var Dr,Or;return w.createElement("li",{tabIndex:0,ref:Ie,className:Re(O,il,N?.toast,i==null||(t=i.classNames)==null?void 0:t.toast,N?.default,N?.[ue],i==null||(n=i.classNames)==null?void 0:n[ue]),"data-sonner-toast":"","data-rich-colors":(Dr=i.richColors)!=null?Dr:k,"data-styled":!(i.jsx||i.unstyled||p),"data-mounted":D,"data-promise":!!i.promise,"data-swiped":Ee,"data-removed":X,"data-visible":sl,"data-y-position":dl,"data-x-position":ul,"data-index":b,"data-front":al,"data-swiping":F,"data-dismissible":Je,"data-type":ue,"data-invert":fl,"data-swipe-out":ce,"data-swipe-direction":ee,"data-expanded":!!(C||q&&D),"data-testid":i.testId,style:{"--index":b,"--toasts-before":b,"--z-index":y.length-b,"--offset":`${X?Qe:et.current}px`,"--initial-height":q?"auto":`${ol}px`,...A,...i.style},onDragEnd:()=>{Y(!1),K(null),tt.current=null},onPointerDown:z=>{z.button!==2&&(Sn||!Je||(_r.current=new Date,yn(et.current),z.target.setPointerCapture(z.pointerId),z.target.tagName!=="BUTTON"&&(Y(!0),tt.current={x:z.clientX,y:z.clientY})))},onPointerUp:()=>{var z,ne,se;if(ce||!Je)return;tt.current=null;const fe=Number(((z=Ie.current)==null?void 0:z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),jt=Number(((ne=Ie.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),re=new Date().getTime()-((se=_r.current)==null?void 0:se.getTime()),he=_==="x"?fe:jt,It=Math.abs(he)/re;if(Math.abs(he)>=oh||It>.11){yn(et.current),i.onDismiss==null||i.onDismiss.call(i,i),ae(_==="x"?fe>0?"right":"left":jt>0?"down":"up"),Fe(),be(!0);return}else{var xe,we;(xe=Ie.current)==null||xe.style.setProperty("--swipe-amount-x","0px"),(we=Ie.current)==null||we.style.setProperty("--swipe-amount-y","0px")}de(!1),Y(!1),K(null)},onPointerMove:z=>{var ne,se,fe;if(!tt.current||!Je||((ne=window.getSelection())==null?void 0:ne.toString().length)>0)return;const re=z.clientY-tt.current.y,he=z.clientX-tt.current.x;var It;const xe=(It=e.swipeDirections)!=null?It:sh(H);!_&&(Math.abs(he)>1||Math.abs(re)>1)&&K(Math.abs(he)>Math.abs(re)?"x":"y");let we={x:0,y:0};const Lr=Ge=>1/(1.5+Math.abs(Ge)/20);if(_==="y"){if(xe.includes("top")||xe.includes("bottom"))if(xe.includes("top")&&re<0||xe.includes("bottom")&&re>0)we.y=re;else{const Ge=re*Lr(re);we.y=Math.abs(Ge)<Math.abs(re)?Ge:re}}else if(_==="x"&&(xe.includes("left")||xe.includes("right")))if(xe.includes("left")&&he<0||xe.includes("right")&&he>0)we.x=he;else{const Ge=he*Lr(he);we.x=Math.abs(Ge)<Math.abs(he)?Ge:he}(Math.abs(we.x)>0||Math.abs(we.y)>0)&&de(!0),(se=Ie.current)==null||se.style.setProperty("--swipe-amount-x",`${we.x}px`),(fe=Ie.current)==null||fe.style.setProperty("--swipe-amount-y",`${we.y}px`)}},cl&&!i.jsx&&ue!=="loading"?w.createElement("button",{"aria-label":R,"data-disabled":Sn,"data-close-button":!0,onClick:Sn||!Je?()=>{}:()=>{Fe(),i.onDismiss==null||i.onDismiss.call(i,i)},className:Re(N?.closeButton,i==null||(r=i.classNames)==null?void 0:r.closeButton)},(Or=L?.close)!=null?Or:Up):null,(ue||i.icon||i.promise)&&i.icon!==null&&(L?.[ue]!==null||i.icon)?w.createElement("div",{"data-icon":"",className:Re(N?.icon,i==null||(o=i.classNames)==null?void 0:o.icon)},i.promise||i.type==="loading"&&!i.icon?i.icon||ml():null,i.type!=="loading"?pl:null):null,w.createElement("div",{"data-content":"",className:Re(N?.content,i==null||(a=i.classNames)==null?void 0:a.content)},w.createElement("div",{"data-title":"",className:Re(N?.title,i==null||(s=i.classNames)==null?void 0:s.title)},i.jsx?i.jsx:typeof i.title=="function"?i.title():i.title),i.description?w.createElement("div",{"data-description":"",className:Re(V,ll,N?.description,i==null||(l=i.classNames)==null?void 0:l.description)},typeof i.description=="function"?i.description():i.description):null),w.isValidElement(i.cancel)?i.cancel:i.cancel&&Ht(i.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:i.cancelButtonStyle||E,onClick:z=>{Ht(i.cancel)&&Je&&(i.cancel.onClick==null||i.cancel.onClick.call(i.cancel,z),Fe())},className:Re(N?.cancelButton,i==null||(d=i.classNames)==null?void 0:d.cancelButton)},i.cancel.label):null,w.isValidElement(i.action)?i.action:i.action&&Ht(i.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:i.actionButtonStyle||I,onClick:z=>{Ht(i.action)&&(i.action.onClick==null||i.action.onClick.call(i.action,z),!z.defaultPrevented&&Fe())},className:Re(N?.actionButton,i==null||(u=i.classNames)==null?void 0:u.actionButton)},i.action.label):null)};function vo(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function lh(e,t){const n={};return[e,t].forEach((r,o)=>{const a=o===1,s=a?"--mobile-offset":"--offset",l=a?th:eh;function d(u){["top","right","bottom","left"].forEach(m=>{n[`${s}-${m}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?d(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):d(l)}),n}const ch=w.forwardRef(function(t,n){const{id:r,invert:o,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:d,className:u,offset:m,mobileOffset:i,theme:p="light",richColors:h,duration:v,style:g,visibleToasts:x=Jp,toastOptions:b,dir:y=vo(),gap:C=rh,icons:S,containerAriaLabel:k="Notifications"}=t,[M,A]=w.useState([]),E=w.useMemo(()=>r?M.filter(D=>D.toasterId===r):M.filter(D=>!D.toasterId),[M,r]),I=w.useMemo(()=>Array.from(new Set([a].concat(E.filter(D=>D.position).map(D=>D.position)))),[E,a]),[O,V]=w.useState([]),[G,H]=w.useState(!1),[U,q]=w.useState(!1),[N,L]=w.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),R=w.useRef(null),_=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),K=w.useRef(null),ee=w.useRef(!1),ae=w.useCallback(D=>{A($=>{var X;return(X=$.find(Q=>Q.id===D.id))!=null&&X.delete||le.dismiss(D.id),$.filter(({id:Q})=>Q!==D.id)})},[]);return w.useEffect(()=>le.subscribe(D=>{if(D.dismiss){requestAnimationFrame(()=>{A($=>$.map(X=>X.id===D.id?{...X,delete:!0}:X))});return}setTimeout(()=>{Kn.flushSync(()=>{A($=>{const X=$.findIndex(Q=>Q.id===D.id);return X!==-1?[...$.slice(0,X),{...$[X],...D},...$.slice(X+1)]:[D,...$]})})})}),[M]),w.useEffect(()=>{if(p!=="system"){L(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;const D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:$})=>{L($?"dark":"light")})}catch{D.addListener(({matches:X})=>{try{L(X?"dark":"light")}catch(Q){console.error(Q)}})}},[p]),w.useEffect(()=>{M.length<=1&&H(!1)},[M]),w.useEffect(()=>{const D=$=>{var X;if(s.every(Y=>$[Y]||$.code===Y)){var F;H(!0),(F=R.current)==null||F.focus()}$.code==="Escape"&&(document.activeElement===R.current||(X=R.current)!=null&&X.contains(document.activeElement))&&H(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[s]),w.useEffect(()=>{if(R.current)return()=>{K.current&&(K.current.focus({preventScroll:!0}),K.current=null,ee.current=!1)}},[R.current]),w.createElement("section",{ref:n,"aria-label":`${k} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((D,$)=>{var X;const[Q,F]=D.split("-");return E.length?w.createElement("ol",{key:D,dir:y==="auto"?vo():y,tabIndex:-1,ref:R,className:u,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":Q,"data-x-position":F,style:{"--front-toast-height":`${((X=O[0])==null?void 0:X.height)||0}px`,"--width":`${nh}px`,"--gap":`${C}px`,...g,...lh(m,i)},onBlur:Y=>{ee.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(ee.current=!1,K.current&&(K.current.focus({preventScroll:!0}),K.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||ee.current||(ee.current=!0,K.current=Y.relatedTarget)},onMouseEnter:()=>H(!0),onMouseMove:()=>H(!0),onMouseLeave:()=>{U||H(!1)},onDragEnd:()=>H(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||q(!0)},onPointerUp:()=>q(!1)},E.filter(Y=>!Y.position&&$===0||Y.position===D).map((Y,ce)=>{var be,Ee;return w.createElement(ih,{key:Y.id,icons:S,index:ce,toast:Y,defaultRichColors:h,duration:(be=b?.duration)!=null?be:v,className:b?.className,descriptionClassName:b?.descriptionClassName,invert:o,visibleToasts:x,closeButton:(Ee=b?.closeButton)!=null?Ee:d,interacting:U,position:D,style:b?.style,unstyled:b?.unstyled,classNames:b?.classNames,cancelButtonStyle:b?.cancelButtonStyle,actionButtonStyle:b?.actionButtonStyle,closeButtonAriaLabel:b?.closeButtonAriaLabel,removeToast:ae,toasts:E.filter(de=>de.position==Y.position),heights:O.filter(de=>de.position==Y.position),setHeights:V,expandByDefault:l,gap:C,expanded:G,swipeDirections:t.swipeDirections})})):null}))}),dh=({className:e,...t})=>c.jsx(ch,{className:P("flex w-full flex-col items-end",e),toastOptions:{unstyled:!0,classNames:{toast:"group focus-visible:ring-0 w-full"}},...t}),uh={success:(e,t)=>{const n=t?.position,r=$e(c.jsx(bt,{dismiss:{label:t?.dismiss?.label??"Dismiss",onClick:()=>$e.dismiss(r)},message:e,variant:"success",...t}),{position:n})},error:(e,t)=>{const n=t?.position,r=$e(c.jsx(bt,{dismiss:{label:t?.dismiss?.label??"Dismiss",onClick:()=>$e.dismiss(r)},message:e,variant:"error",...t}),{position:n})},warning:(e,t)=>{const n=t?.position,r=$e(c.jsx(bt,{dismiss:{label:t?.dismiss?.label??"Dismiss",onClick:()=>$e.dismiss(r)},message:e,variant:"warning",...t}),{position:n})},info:(e,t)=>{const n=t?.position,r=$e(c.jsx(bt,{dismiss:{label:t?.dismiss?.label??"Dismiss",onClick:()=>t?.dismiss?.onClick??$e.dismiss(r)},message:e,variant:"info",...t}),{position:n})}};exports.Accordion=hl;exports.AccordionChevron=ta;exports.AccordionContent=Zo;exports.AccordionContentArea=Qo;exports.AccordionHeader=Jo;exports.AccordionItem=Ko;exports.AccordionRoot=qo;exports.AccordionTitle=ea;exports.AccordionTrigger=na;exports.Alert=bt;exports.AlertActions=la;exports.AlertButton=da;exports.AlertCloseButton=ua;exports.AlertDescription=ia;exports.AlertHeader=aa;exports.AlertRoot=oa;exports.AlertTitle=sa;exports.AnimatedUnderline=fa;exports.Badge=Xc;exports.Banner=qc;exports.BannerContent=ga;exports.BannerDismiss=ba;exports.BannerProvider=pa;exports.BannerRoot=ha;exports.BannerText=va;exports.BlogPostCard=Zc;exports.BlogPostCardAuthor=Pa;exports.BlogPostCardContent=Ra;exports.BlogPostCardDate=Aa;exports.BlogPostCardDetails=ka;exports.BlogPostCardFallback=wa;exports.BlogPostCardImage=Ca;exports.BlogPostCardLink=Sa;exports.BlogPostCardRoot=xa;exports.BlogPostCardSkeleton=sd;exports.BlogPostCardTitle=Ea;exports.Button=kt;exports.ButtonLink=id;exports.Card=ld;exports.CardLink=_a;exports.CardRoot=Na;exports.CardSkeleton=cd;exports.Chip=dd;exports.ChipButton=ja;exports.ChipRoot=Ta;exports.DropdownMenu=ud;exports.DropdownMenuCheckboxItem=hi;exports.DropdownMenuContent=mi;exports.DropdownMenuGroup=vi;exports.DropdownMenuItem=pi;exports.DropdownMenuLabel=gi;exports.DropdownMenuNode=Hi;exports.DropdownMenuPortal=Er;exports.DropdownMenuRoot=ui;exports.DropdownMenuScrollArea=Pr;exports.DropdownMenuSeparator=bi;exports.DropdownMenuSub=$i;exports.DropdownMenuSubContent=Wi;exports.DropdownMenuSubTrigger=zi;exports.DropdownMenuTrigger=fi;exports.Favorite=Np;exports.FavoriteHeart=Yi;exports.FavoriteRoot=Gi;exports.FieldError=jp;exports.Rating=Ip;exports.RatingRoot=Xi;exports.RatingStar=qi;exports.RatingStars=Zi;exports.RatingValue=Qi;exports.Reveal=Dp;exports.RevealControls=nl;exports.RevealRoot=el;exports.RevealTrigger=rl;exports.RevealViewport=tl;exports.ScrollArea=xi;exports.ScrollAreaBar=Li;exports.ScrollAreaCorner=Bi;exports.ScrollAreaProvider=Ii;exports.ScrollAreaRoot=Ti;exports.ScrollAreaThumb=Fi;exports.ScrollAreaViewport=Oi;exports.Spinner=Op;exports.Toaster=dh;exports.toast=uh;exports.useAccordion=Rt;exports.useAlert=rr;exports.useBanner=ar;exports.useDropdownMenu=Sr;exports.useRating=xn;exports.useReveal=wn;exports.useScrollArea=Di;
|
|
92
92
|
//# sourceMappingURL=index.cjs.map
|