@moontra/moonui 6.25.0 → 6.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- /** @license MoonUI v6.25.0 — MIT — https://moonui.dev
1
+ /** @license MoonUI v6.26.0 — MIT — https://moonui.dev
2
2
  * CDN build (ESM — sayfada importmap gerektirir). React bundle'a DAHIL DEGILDIR — sayfadan gelir.
3
3
  * Stil icin moonui.css de yuklenmelidir.
4
4
  */
5
- var iE=Object.create;var Xl=Object.defineProperty;var lE=Object.getOwnPropertyDescriptor;var uE=Object.getOwnPropertyNames;var cE=Object.getPrototypeOf,dE=Object.prototype.hasOwnProperty;var fE=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,o)=>(typeof require<"u"?require:t)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var pE=(e,t)=>()=>(e&&(t=e(e=0)),t);var mv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mE=(e,t)=>{for(var o in t)Xl(e,o,{get:t[o],enumerable:!0})},gv=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of uE(t))!dE.call(e,a)&&a!==o&&Xl(e,a,{get:()=>t[a],enumerable:!(r=lE(t,a))||r.enumerable});return e};var gE=(e,t,o)=>(o=e!=null?iE(cE(e)):{},gv(t||!e||!e.__esModule?Xl(o,"default",{value:e,enumerable:!0}):o,e)),hE=e=>gv(Xl({},"__esModule",{value:!0}),e);var H={};mE(H,{Children:()=>Ie,Component:()=>Is,Fragment:()=>Je,Profiler:()=>vE,PureComponent:()=>xE,StrictMode:()=>yE,Suspense:()=>bE,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>CE,act:()=>wE,cloneElement:()=>Fe,createContext:()=>le,createElement:()=>me,createFactory:()=>SE,createRef:()=>RE,default:()=>Pe,forwardRef:()=>C,isValidElement:()=>Le,lazy:()=>IE,memo:()=>Zd,startTransition:()=>PE,unstable_act:()=>LE,useCallback:()=>B,useContext:()=>te,useDebugValue:()=>TE,useDeferredValue:()=>ME,useEffect:()=>D,useId:()=>Ge,useImperativeHandle:()=>ta,useInsertionEffect:()=>Ps,useLayoutEffect:()=>ct,useMemo:()=>Z,useReducer:()=>Gt,useRef:()=>E,useState:()=>k,useSyncExternalStore:()=>Qd,useTransition:()=>kE,version:()=>EE});import*as oe from"react";var Ie,Is,Je,vE,xE,yE,bE,CE,wE,Fe,le,me,SE,RE,C,Le,IE,Zd,PE,LE,B,te,TE,ME,D,Ge,ta,Ps,ct,Z,Gt,E,k,Qd,kE,EE,Pe,O=pE(()=>{Ie=oe.Children,Is=oe.Component,Je=oe.Fragment,vE=oe.Profiler,xE=oe.PureComponent,yE=oe.StrictMode,bE=oe.Suspense,CE=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,wE=oe.act,Fe=oe.cloneElement,le=oe.createContext,me=oe.createElement,SE=oe.createFactory,RE=oe.createRef,C=oe.forwardRef,Le=oe.isValidElement,IE=oe.lazy,Zd=oe.memo,PE=oe.startTransition,LE=oe.unstable_act,B=oe.useCallback,te=oe.useContext,TE=oe.useDebugValue,ME=oe.useDeferredValue,D=oe.useEffect,Ge=oe.useId,ta=oe.useImperativeHandle,Ps=oe.useInsertionEffect,ct=oe.useLayoutEffect,Z=oe.useMemo,Gt=oe.useReducer,E=oe.useRef,k=oe.useState,Qd=oe.useSyncExternalStore,kE=oe.useTransition,EE=oe.version,Pe=oe.default!==void 0?oe.default:oe});var ux=mv(lx=>{"use strict";var cn=(O(),hE(H));function WD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qD=typeof Object.is=="function"?Object.is:WD,$D=cn.useState,jD=cn.useEffect,KD=cn.useLayoutEffect,XD=cn.useDebugValue;function YD(e,t){var o=t(),r=$D({inst:{value:o,getSnapshot:t}}),a=r[0].inst,n=r[1];return KD(function(){a.value=o,a.getSnapshot=t,gf(a)&&n({inst:a})},[e,o,t]),jD(function(){return gf(a)&&n({inst:a}),e(function(){gf(a)&&n({inst:a})})},[e]),XD(o),o}function gf(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!qD(e,o)}catch{return!0}}function ZD(e,t){return t()}var QD=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ZD:YD;lx.useSyncExternalStore=cn.useSyncExternalStore!==void 0?cn.useSyncExternalStore:QD});var dx=mv((q$,cx)=>{"use strict";cx.exports=ux()});O();O();O();import*as oa from"react/jsx-runtime";var Ve=oa.Fragment,d=oa.jsx,P=oa.jsxs;function hv(e,t){let o=le(t),r=n=>{let{children:s,...i}=n,l=Z(()=>i,Object.values(i));return d(o.Provider,{value:l,children:s})};r.displayName=e+"Provider";function a(n){let s=te(o);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}return[r,a]}function Ee(e,t=[]){let o=[];function r(n,s){let i=le(s),l=o.length;o=[...o,s];let u=f=>{let{scope:p,children:m,...h}=f,g=p?.[e]?.[l]||i,v=Z(()=>h,Object.values(h));return d(g.Provider,{value:v,children:m})};u.displayName=n+"Provider";function c(f,p){let m=p?.[e]?.[l]||i,h=te(m);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[u,c]}let a=()=>{let n=o.map(s=>le(s));return function(i){let l=i?.[e]||n;return Z(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return a.scopeName=e,[r,AE(a,...t)]}function AE(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let f=l(n)[`__scope${u}`];return{...i,...f}},{});return Z(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}O();O();function vv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nt(...e){return t=>{let o=!1,r=e.map(a=>{let n=vv(a,t);return!o&&typeof n=="function"&&(o=!0),n});if(o)return()=>{for(let a=0;a<r.length;a++){let n=r[a];typeof n=="function"?n():vv(e[a],null)}}}}function pe(...e){return B(Nt(...e),e)}O();function It(e){let t=DE(e),o=C((r,a)=>{let{children:n,...s}=r,i=Ie.toArray(n),l=i.find(NE);if(l){let u=l.props.children,c=i.map(f=>f===l?Ie.count(u)>1?Ie.only(null):Le(u)?u.props.children:null:f);return d(t,{...s,ref:a,children:Le(u)?Fe(u,void 0,c):null})}return d(t,{...s,ref:a,children:n})});return o.displayName=`${e}.Slot`,o}var Ya=It("Slot");function DE(e){let t=C((o,r)=>{let{children:a,...n}=o;if(Le(a)){let s=FE(a),i=OE(n,a.props);return a.type!==Je&&(i.ref=r?Nt(r,s):s),Fe(a,i)}return Ie.count(a)>1?Ie.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xv=Symbol("radix.slottable");function Jd(e){let t=({children:o})=>d(Ve,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=xv,t}var yv=Jd("Slottable");function NE(e){return Le(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xv}function OE(e,t){let o={...t};for(let r in t){let a=e[r],n=t[r];/^on[A-Z]/.test(r)?a&&n?o[r]=(...i)=>{let l=n(...i);return a(...i),l}:a&&(o[r]=a):r==="style"?o[r]={...a,...n}:r==="className"&&(o[r]=[a,n].filter(Boolean).join(" "))}return{...e,...o}}function FE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}O();function Lo(e){let t=e+"CollectionProvider",[o,r]=Ee(t),[a,n]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{let{scope:v,children:x}=g,y=Pe.useRef(null),b=Pe.useRef(new Map).current;return d(a,{scope:v,itemMap:b,collectionRef:y,children:x})};s.displayName=t;let i=e+"CollectionSlot",l=It(i),u=Pe.forwardRef((g,v)=>{let{scope:x,children:y}=g,b=n(i,x),R=pe(v,b.collectionRef);return d(l,{ref:R,children:y})});u.displayName=i;let c=e+"CollectionItemSlot",f="data-radix-collection-item",p=It(c),m=Pe.forwardRef((g,v)=>{let{scope:x,children:y,...b}=g,R=Pe.useRef(null),w=pe(v,R),I=n(c,x);return Pe.useEffect(()=>(I.itemMap.set(R,{ref:R,...b}),()=>void I.itemMap.delete(R))),d(p,{[f]:"",ref:w,children:y})});m.displayName=c;function h(g){let v=n(e+"CollectionConsumer",g);return Pe.useCallback(()=>{let y=v.collectionRef.current;if(!y)return[];let b=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((I,S)=>b.indexOf(I.ref.current)-b.indexOf(S.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},h,r]}var b5=!!(typeof window<"u"&&window.document&&window.document.createElement);function X(e,t,{checkForDefaultPrevented:o=!0}={}){return function(a){if(e?.(a),o===!1||!a.defaultPrevented)return t?.(a)}}O();O();var Ae=globalThis?.document?ct:()=>{};O();var _E=H[" useInsertionEffect ".trim().toString()]||Ae;function Be({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){let[a,n,s]=VE({defaultProp:t,onChange:o}),i=e!==void 0,l=i?e:a;{let c=E(e!==void 0);D(()=>{let f=c.current;f!==i&&console.warn(`${r} is changing from ${f?"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.`),c.current=i},[i,r])}let u=B(c=>{if(i){let f=BE(c)?c(e):c;f!==e&&s.current?.(f)}else n(c)},[i,e,n,s]);return[l,u]}function VE({defaultProp:e,onChange:t}){let[o,r]=k(e),a=E(o),n=E(t);return _E(()=>{n.current=t},[t]),D(()=>{a.current!==o&&(n.current?.(o),a.current=o)},[o,a]),[o,r,n]}function BE(e){return typeof e=="function"}var R5=Symbol("RADIX:SYNC_STATE");O();import*as st from"react-dom";var Ls=st.createPortal;var Go=st.flushSync;var bv=st.default!==void 0?st.default:st;var HE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=HE.reduce((e,t)=>{let o=It(`Primitive.${t}`),r=C((a,n)=>{let{asChild:s,...i}=a,l=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Za(e,t){e&&Go(()=>e.dispatchEvent(t))}O();O();O();function UE(e,t){return Gt((o,r)=>t[o][r]??o,e)}var $e=e=>{let{present:t,children:o}=e,r=GE(t),a=typeof o=="function"?o({present:r.isPresent}):Ie.only(o),n=pe(r.ref,zE(a));return typeof o=="function"||r.isPresent?Fe(a,{ref:n}):null};$e.displayName="Presence";function GE(e){let[t,o]=k(),r=E(null),a=E(e),n=E("none"),s=e?"mounted":"unmounted",[i,l]=UE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D(()=>{let u=Yl(r.current);n.current=i==="mounted"?u:"none"},[i]),Ae(()=>{let u=r.current,c=a.current;if(c!==e){let p=n.current,m=Yl(u);e?l("MOUNT"):m==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&p!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),Ae(()=>{if(t){let u,c=t.ownerDocument.defaultView??window,f=m=>{let g=Yl(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(l("ANIMATION_END"),!a.current)){let v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=m=>{m.target===t&&(n.current=Yl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:B(u=>{r.current=u?getComputedStyle(u):null,o(u)},[])}}function Yl(e){return e?.animationName||"none"}function zE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}O();var WE=H[" useId ".trim().toString()]||(()=>{}),qE=0;function Te(e){let[t,o]=k(WE());return Ae(()=>{e||o(r=>r??String(qE++))},[e]),e||(t?`radix-${t}`:"")}var Zl="Collapsible",[$E,ef]=Ee(Zl),[jE,tf]=$E(Zl),Cv=C((e,t)=>{let{__scopeCollapsible:o,open:r,defaultOpen:a,disabled:n,onOpenChange:s,...i}=e,[l,u]=Be({prop:r,defaultProp:a??!1,onChange:s,caller:Zl});return d(jE,{scope:o,disabled:n,contentId:Te(),open:l,onOpenToggle:B(()=>u(c=>!c),[u]),children:d(Y.div,{"data-state":rf(l),"data-disabled":n?"":void 0,...i,ref:t})})});Cv.displayName=Zl;var wv="CollapsibleTrigger",Sv=C((e,t)=>{let{__scopeCollapsible:o,...r}=e,a=tf(wv,o);return d(Y.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":rf(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:X(e.onClick,a.onOpenToggle)})});Sv.displayName=wv;var of="CollapsibleContent",Rv=C((e,t)=>{let{forceMount:o,...r}=e,a=tf(of,e.__scopeCollapsible);return d($e,{present:o||a.open,children:({present:n})=>d(KE,{...r,ref:t,present:n})})});Rv.displayName=of;var KE=C((e,t)=>{let{__scopeCollapsible:o,present:r,children:a,...n}=e,s=tf(of,o),[i,l]=k(r),u=E(null),c=pe(t,u),f=E(0),p=f.current,m=E(0),h=m.current,g=s.open||i,v=E(g),x=E(void 0);return D(()=>{let y=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(y)},[]),Ae(()=>{let y=u.current;if(y){x.current=x.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";let b=y.getBoundingClientRect();f.current=b.height,m.current=b.width,v.current||(y.style.transitionDuration=x.current.transitionDuration,y.style.animationName=x.current.animationName),l(r)}},[s.open,r]),d(Y.div,{"data-state":rf(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...n,ref:c,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&a})});function rf(e){return e?"open":"closed"}var Ql=Cv,Qa=Sv,Ts=Rv;O();var XE=le(void 0);function To(e){let t=te(XE);return e||t||"ltr"}var ao="Accordion",YE=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[nf,ZE,QE]=Lo(ao),[eu,oW]=Ee(ao,[QE,ef]),sf=ef(),Pv=Pe.forwardRef((e,t)=>{let{type:o,...r}=e,a=r,n=r;return d(nf.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?d(oA,{...n,ref:t}):d(tA,{...a,ref:t})})});Pv.displayName=ao;var[Lv,JE]=eu(ao),[Tv,eA]=eu(ao,{collapsible:!1}),tA=Pe.forwardRef((e,t)=>{let{value:o,defaultValue:r,onValueChange:a=()=>{},collapsible:n=!1,...s}=e,[i,l]=Be({prop:o,defaultProp:r??"",onChange:a,caller:ao});return d(Lv,{scope:e.__scopeAccordion,value:Pe.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:Pe.useCallback(()=>n&&l(""),[n,l]),children:d(Tv,{scope:e.__scopeAccordion,collapsible:n,children:d(Mv,{...s,ref:t})})})}),oA=Pe.forwardRef((e,t)=>{let{value:o,defaultValue:r,onValueChange:a=()=>{},...n}=e,[s,i]=Be({prop:o,defaultProp:r??[],onChange:a,caller:ao}),l=Pe.useCallback(c=>i((f=[])=>[...f,c]),[i]),u=Pe.useCallback(c=>i((f=[])=>f.filter(p=>p!==c)),[i]);return d(Lv,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:d(Tv,{scope:e.__scopeAccordion,collapsible:!0,children:d(Mv,{...n,ref:t})})})}),[rA,tu]=eu(ao),Mv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,disabled:r,dir:a,orientation:n="vertical",...s}=e,i=Pe.useRef(null),l=pe(i,t),u=ZE(o),f=To(a)==="ltr",p=X(e.onKeyDown,m=>{if(!YE.includes(m.key))return;let h=m.target,g=u().filter(T=>!T.ref.current?.disabled),v=g.findIndex(T=>T.ref.current===h),x=g.length;if(v===-1)return;m.preventDefault();let y=v,b=0,R=x-1,w=()=>{y=v+1,y>R&&(y=b)},I=()=>{y=v-1,y<b&&(y=R)};switch(m.key){case"Home":y=b;break;case"End":y=R;break;case"ArrowRight":n==="horizontal"&&(f?w():I());break;case"ArrowDown":n==="vertical"&&w();break;case"ArrowLeft":n==="horizontal"&&(f?I():w());break;case"ArrowUp":n==="vertical"&&I();break}let S=y%x;g[S].ref.current?.focus()});return d(rA,{scope:o,disabled:r,direction:a,orientation:n,children:d(nf.Slot,{scope:o,children:d(Y.div,{...s,"data-orientation":n,ref:l,onKeyDown:r?void 0:p})})})}),Jl="AccordionItem",[aA,lf]=eu(Jl),kv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,value:r,...a}=e,n=tu(Jl,o),s=JE(Jl,o),i=sf(o),l=Te(),u=r&&s.value.includes(r)||!1,c=n.disabled||e.disabled;return d(aA,{scope:o,open:u,disabled:c,triggerId:l,children:d(Ql,{"data-orientation":n.orientation,"data-state":Fv(u),...i,...a,ref:t,disabled:c,open:u,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});kv.displayName=Jl;var Ev="AccordionHeader",Av=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=tu(ao,o),n=lf(Ev,o);return d(Y.h3,{"data-orientation":a.orientation,"data-state":Fv(n.open),"data-disabled":n.disabled?"":void 0,...r,ref:t})});Av.displayName=Ev;var af="AccordionTrigger",Dv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=tu(ao,o),n=lf(af,o),s=eA(af,o),i=sf(o);return d(nf.ItemSlot,{scope:o,children:d(Qa,{"aria-disabled":n.open&&!s.collapsible||void 0,"data-orientation":a.orientation,id:n.triggerId,...i,...r,ref:t})})});Dv.displayName=af;var Nv="AccordionContent",Ov=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=tu(ao,o),n=lf(Nv,o),s=sf(o);return d(Ts,{role:"region","aria-labelledby":n.triggerId,"data-orientation":a.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}})});Ov.displayName=Nv;function Fv(e){return e?"open":"closed"}var _v=Pv,Vv=kv,Bv=Av,uf=Dv,cf=Ov;O();var Hv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sA=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase()),df=e=>{let t=sA(e);return t.charAt(0).toUpperCase()+t.slice(1)},ou=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim(),Uv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};O();var Gv={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"};var zv=C(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:a="",children:n,iconNode:s,...i},l)=>me("svg",{ref:l,...Gv,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:ou("lucide",a),...!n&&!Uv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,c])=>me(u,c)),...Array.isArray(n)?n:[n]]));var j=(e,t)=>{let o=C(({className:r,...a},n)=>me(zv,{ref:n,iconNode:t,className:ou(`lucide-${Hv(df(e))}`,`lucide-${e}`,r),...a}));return o.displayName=df(e),o};var iA=[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Ms=j("align-center",iA);var lA=[["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 18h18",key:"1h113x"}],["path",{d:"M3 6h18",key:"d0wm0j"}]],ks=j("align-justify",lA);var uA=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Es=j("align-left",uA);var cA=[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],As=j("align-right",cA);var dA=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Ja=j("arrow-down",dA);var fA=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ds=j("arrow-left",fA);var pA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ns=j("arrow-right",pA);var mA=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],en=j("arrow-up-down",mA);var gA=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],tn=j("arrow-up",gA);var hA=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],Os=j("bold",hA);var vA=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],aa=j("calendar",vA);var xA=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pt=j("check",xA);var yA=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mo=j("chevron-down",yA);var bA=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],no=j("chevron-left",bA);var CA=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wt=j("chevron-right",CA);var wA=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Fs=j("chevron-up",wA);var SA=[["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"}]],so=j("circle-alert",SA);var RA=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],hr=j("circle-check-big",RA);var IA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],na=j("circle",IA);var PA=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],_s=j("clock",PA);var LA=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Vs=j("code",LA);var TA=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Bs=j("copy",TA);var MA=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Hs=j("credit-card",MA);var kA=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],on=j("crown",kA);var EA=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],Us=j("dot",EA);var AA=[["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"}]],ko=j("ellipsis",AA);var DA=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Gs=j("external-link",DA);var NA=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sa=j("eye",NA);var OA=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],zs=j("file-text",OA);var FA=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Ws=j("file",FA);var _A=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],qs=j("git-fork",_A);var VA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ia=j("image",VA);var BA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],rn=j("info",BA);var HA=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],$s=j("italic",HA);var UA=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],js=j("link",UA);var GA=[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]],Ks=j("list-ordered",GA);var zA=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Xs=j("list",zA);var WA=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ot=j("loader-circle",WA);var qA=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],an=j("lock",qA);var $A=[["path",{d:"M5 12h14",key:"1ays0h"}]],Ys=j("minus",$A);var jA=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Zs=j("music",jA);var KA=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],nn=j("palette",KA);var XA=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Qs=j("phone",XA);var YA=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],ru=j("pipette",YA);var ZA=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],Js=j("quote",ZA);var QA=[["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]],ei=j("redo",QA);var JA=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],la=j("search",JA);var eD=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Pt=j("square-pen",eD);var tD=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],vr=j("star",tD);var oD=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],ti=j("strikethrough",oD);var rD=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],xr=j("triangle-alert",rD);var aD=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],oi=j("underline",aD);var nD=[["path",{d:"M3 7v6h6",key:"1v2h90"}],["path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",key:"1r6uu6"}]],ri=j("undo",nD);var sD=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ai=j("upload",sD);var iD=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],ni=j("video",iD);var lD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ot=j("x",lD);var uD=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],sn=j("zap",uD);O();function Wv(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=Wv(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function au(){for(var e,t,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=Wv(e))&&(r&&(r+=" "),r+=t);return r}var mf="-",cD=e=>{let t=fD(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split(mf);return i[0]===""&&i.length!==1&&i.shift(),jv(i,t)||dD(s)},getConflictingClassGroupIds:(s,i)=>{let l=o[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},jv=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?jv(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(mf);return t.validators.find(({validator:s})=>s(n))?.classGroupId},qv=/^\[(.+)\]$/,dD=e=>{if(qv.test(e)){let t=qv.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},fD=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return mD(Object.entries(e.classGroups),o).forEach(([n,s])=>{pf(s,r,n,t)}),r},pf=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:$v(t,a);n.classGroupId=o;return}if(typeof a=="function"){if(pD(a)){pf(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([n,s])=>{pf(s,$v(t,n),o,r)})})},$v=(e,t)=>{let o=e;return t.split(mf).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},pD=e=>e.isThemeGetter,mD=(e,t)=>t?e.map(([o,r])=>{let a=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[o,a]}):e,gD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(n,s)=>{o.set(n,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let s=o.get(n);if(s!==void 0)return s;if((s=r.get(n))!==void 0)return a(n,s),s},set(n,s){o.has(n)?o.set(n,s):a(n,s)}}},Kv="!",hD=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],n=t.length,s=i=>{let l=[],u=0,c=0,f;for(let v=0;v<i.length;v++){let x=i[v];if(u===0){if(x===a&&(r||i.slice(v,v+n)===t)){l.push(i.slice(c,v)),c=v+n;continue}if(x==="/"){f=v;continue}}x==="["?u++:x==="]"&&u--}let p=l.length===0?i:i.substring(c),m=p.startsWith(Kv),h=m?p.substring(1):p,g=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}};return o?i=>o({className:i,parseClassName:s}):s},vD=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},xD=e=>({cache:gD(e.cacheSize),parseClassName:hD(e),...cD(e)}),yD=/\s+/,bD=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,n=[],s=e.trim().split(yD),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:c,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(u),h=!!m,g=r(h?p.substring(0,m):p);if(!g){if(!h){i=u+(i.length>0?" "+i:i);continue}if(g=r(p),!g){i=u+(i.length>0?" "+i:i);continue}h=!1}let v=vD(c).join(":"),x=f?v+Kv:v,y=x+g;if(n.includes(y))continue;n.push(y);let b=a(g,h);for(let R=0;R<b.length;++R){let w=b[R];n.push(x+w)}i=u+(i.length>0?" "+i:i)}return i};function CD(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Xv(t))&&(r&&(r+=" "),r+=o);return r}var Xv=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Xv(e[r]))&&(o&&(o+=" "),o+=t);return o};function wD(e,...t){let o,r,a,n=s;function s(l){let u=t.reduce((c,f)=>f(c),e());return o=xD(u),r=o.cache.get,a=o.cache.set,n=i,i(l)}function i(l){let u=r(l);if(u)return u;let c=bD(l,o);return a(l,c),c}return function(){return n(CD.apply(null,arguments))}}var ze=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Yv=/^\[(?:([a-z-]+):)?(.+)\]$/i,SD=/^\d+\/\d+$/,RD=new Set(["px","full","screen"]),ID=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PD=/\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$/,LD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,TD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,MD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zo=e=>ln(e)||RD.has(e)||SD.test(e),yr=e=>un(e,"length",_D),ln=e=>!!e&&!Number.isNaN(Number(e)),ff=e=>un(e,"number",ln),si=e=>!!e&&Number.isInteger(Number(e)),kD=e=>e.endsWith("%")&&ln(e.slice(0,-1)),Ce=e=>Yv.test(e),br=e=>ID.test(e),ED=new Set(["length","size","percentage"]),AD=e=>un(e,ED,Zv),DD=e=>un(e,"position",Zv),ND=new Set(["image","url"]),OD=e=>un(e,ND,BD),FD=e=>un(e,"",VD),ii=()=>!0,un=(e,t,o)=>{let r=Yv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},_D=e=>PD.test(e)&&!LD.test(e),Zv=()=>!1,VD=e=>TD.test(e),BD=e=>MD.test(e);var HD=()=>{let e=ze("colors"),t=ze("spacing"),o=ze("blur"),r=ze("brightness"),a=ze("borderColor"),n=ze("borderRadius"),s=ze("borderSpacing"),i=ze("borderWidth"),l=ze("contrast"),u=ze("grayscale"),c=ze("hueRotate"),f=ze("invert"),p=ze("gap"),m=ze("gradientColorStops"),h=ze("gradientColorStopPositions"),g=ze("inset"),v=ze("margin"),x=ze("opacity"),y=ze("padding"),b=ze("saturate"),R=ze("scale"),w=ze("sepia"),I=ze("skew"),S=ze("space"),T=ze("translate"),M=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",Ce,t],V=()=>[Ce,t],U=()=>["",zo,yr],N=()=>["auto",ln,Ce],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",Ce],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[ln,Ce];return{cacheSize:500,separator:":",theme:{colors:[ii],spacing:[zo,yr],blur:["none","",br,Ce],brightness:se(),borderColor:[e],borderRadius:["none","","full",br,Ce],borderSpacing:V(),borderWidth:U(),contrast:se(),grayscale:q(),hueRotate:se(),invert:q(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[kD,yr],inset:_(),margin:_(),opacity:se(),padding:V(),saturate:se(),scale:se(),sepia:q(),skew:se(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[br]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$(),Ce]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",si,Ce]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",si,Ce]}],"grid-cols":[{"grid-cols":[ii]}],"col-start-end":[{col:["auto",{span:["full",si,Ce]},Ce]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[ii]}],"row-start-end":[{row:["auto",{span:[si,Ce]},Ce]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ce,t]}],"min-w":[{"min-w":[Ce,t,"min","max","fit"]}],"max-w":[{"max-w":[Ce,t,"none","full","min","max","fit","prose",{screen:[br]},br]}],h:[{h:[Ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",br,yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ff]}],"font-family":[{font:[ii]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",ln,ff]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zo,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zo,yr]}],"underline-offset":[{"underline-offset":["auto",zo,Ce]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),DD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",AD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},OD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:G()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[zo,Ce]}],"outline-w":[{outline:[zo,yr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[zo,yr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",br,FD]}],"shadow-color":[{shadow:[ii]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",br,Ce]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"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:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[si,Ce]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zo,yr,ff]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Qv=wD(HD);function L(...e){return Qv(au(e))}function li(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return String(e);if(Array.isArray(e))return e.map(li).filter(Boolean).join(" ").trim();if(Le(e)){let t=e.props;return li(t.children)}return""}var UD=_v,Jv=C(({className:e,...t},o)=>d(Vv,{ref:o,className:L("moonui-theme","border-b border-border",e),...t}));Jv.displayName="AccordionItem";var ex=C(({className:e,children:t,...o},r)=>d(Bv,{className:"flex",children:P(uf,{ref:r,className:L("flex flex-1 items-center justify-between py-4 font-medium transition-all","hover:underline hover:text-primary","[&[data-state=open]>svg]:rotate-180",e),...o,children:[t,d(Mo,{className:"h-4 w-4 shrink-0 transition-transform duration-200 opacity-70 group-hover:opacity-100"})]})}));ex.displayName=uf.displayName;var tx=C(({className:e,children:t,...o},r)=>d(cf,{ref:r,className:L("overflow-hidden text-sm text-foreground/80 transition-all","data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...o,children:d("div",{className:"pb-4 pt-0",children:t})}));tx.displayName=cf.displayName;O();var ox=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rx=au,Q=(e,t)=>o=>{var r;if(t?.variants==null)return rx(e,o?.class,o?.className);let{variants:a,defaultVariants:n}=t,s=Object.keys(a).map(u=>{let c=o?.[u],f=n?.[u];if(c===null)return null;let p=ox(c)||ox(f);return a[u][p]}),i=o&&Object.entries(o).reduce((u,c)=>{let[f,p]=c;return p===void 0||(u[f]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:p,...m}=c;return Object.entries(m).every(h=>{let[g,v]=h;return Array.isArray(v)?v.includes({...n,...i}[g]):{...n,...i}[g]===v})?[...u,f,p]:u},[]);return rx(e,s,l,o?.class,o?.className)};var GD=Q("relative w-full flex items-center gap-3 p-4 border text-foreground [&>svg]:shrink-0",{variants:{variant:{default:"bg-background text-foreground border-border",primary:"bg-primary/10 text-primary border-primary/30",success:"bg-success/10 text-success border-success/30",warning:"bg-warning/10 text-warning-subtle-foreground border-warning/30",error:"bg-destructive/10 text-destructive border-destructive/30",info:"bg-info/10 text-info border-info/30"},size:{sm:"py-2 text-xs",md:"py-3 text-sm",lg:"py-4 text-base",default:"py-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-sm",default:"rounded-md",lg:"rounded-lg",full:"rounded-full"},withClose:{true:"pr-10"}},defaultVariants:{variant:"default",size:"md",radius:"default",withClose:!1}}),ax=C(({className:e,variant:t="default",size:o,radius:r,hideIcon:a=!1,closable:n=!1,onClose:s,children:i,...l},u)=>{let c=Z(()=>{switch(t){case"success":return pt;case"warning":return xr;case"error":return so;case"info":return rn;default:return rn}},[t]);return P("div",{ref:u,role:"alert",className:L("moonui-theme",GD({variant:t,size:o,radius:r,withClose:n}),e),...l,children:[!a&&d(c,{className:"h-5 w-5"}),d("div",{className:"flex-1",children:i}),n&&s&&d("button",{onClick:s,className:"absolute right-3 top-3 inline-flex h-6 w-6 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100","aria-label":"Close alert",children:d(Ot,{className:"h-4 w-4"})})]})});ax.displayName="Alert";var nx=C(({className:e,as:t="div",...o},r)=>d(t,{ref:r,className:L("moonui-theme","font-semibold leading-tight tracking-tight mb-1",e),...o}));nx.displayName="AlertTitle";var sx=C(({className:e,...t},o)=>d("div",{ref:o,className:L("moonui-theme","text-sm leading-5 text-muted-foreground",e),...t}));sx.displayName="AlertDescription";O();var zD=Q("relative overflow-hidden",{variants:{variant:{default:"bg-muted/10",ghost:"bg-transparent",outline:"border border-border",card:"bg-card shadow-sm"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"default",radius:"md"}}),ix=C(({className:e,variant:t,radius:o,ratio:r=16/9,style:a,children:n,...s},i)=>d("div",{ref:i,className:L("moonui-theme",zD({variant:t,radius:o}),e),style:{position:"relative",paddingBottom:`${1/r*100}%`,...a},...s,children:d("div",{className:"absolute inset-0",children:n})}));ix.displayName="AspectRatio";O();O();O();function We(e){let t=E(e);return D(()=>{t.current=e}),Z(()=>(...o)=>t.current?.(...o),[])}var fx=gE(dx(),1);function px(){return(0,fx.useSyncExternalStore)(JD,()=>!0,()=>!1)}function JD(){return()=>{}}var hf="Avatar",[e1,J$]=Ee(hf),[t1,gx]=e1(hf),hx=C((e,t)=>{let{__scopeAvatar:o,...r}=e,[a,n]=k("idle");return d(t1,{scope:o,imageLoadingStatus:a,onImageLoadingStatusChange:n,children:d(Y.span,{...r,ref:t})})});hx.displayName=hf;var vx="AvatarImage",xx=C((e,t)=>{let{__scopeAvatar:o,src:r,onLoadingStatusChange:a=()=>{},...n}=e,s=gx(vx,o),i=o1(r,n),l=We(u=>{a(u),s.onImageLoadingStatusChange(u)});return Ae(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?d(Y.img,{...n,ref:t,src:r}):null});xx.displayName=vx;var yx="AvatarFallback",bx=C((e,t)=>{let{__scopeAvatar:o,delayMs:r,...a}=e,n=gx(yx,o),[s,i]=k(r===void 0);return D(()=>{if(r!==void 0){let l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&n.imageLoadingStatus!=="loaded"?d(Y.span,{...a,ref:t}):null});bx.displayName=yx;function mx(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function o1(e,{referrerPolicy:t,crossOrigin:o}){let r=px(),a=E(null),n=(()=>r?(a.current||(a.current=new window.Image),a.current):null)(),[s,i]=k(()=>mx(n,e));return Ae(()=>{i(mx(n,e))},[n,e]),Ae(()=>{let l=f=>()=>{i(f)};if(!n)return;let u=l("loaded"),c=l("error");return n.addEventListener("load",u),n.addEventListener("error",c),t&&(n.referrerPolicy=t),typeof o=="string"&&(n.crossOrigin=o),()=>{n.removeEventListener("load",u),n.removeEventListener("error",c)}},[n,o,t]),s}var vf=hx,xf=xx,yf=bx;var a1=Q("relative flex shrink-0 overflow-hidden",{variants:{size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12",xl:"h-16 w-16","2xl":"h-20 w-20",default:"h-10 w-10"},radius:{default:"rounded-full",sm:"rounded-md",lg:"rounded-xl",full:"rounded-full",none:"rounded-none"},variant:{default:"",ring:"ring-2 ring-border",ringOffset:"ring-2 ring-border ring-offset-2 ring-offset-background",border:"border-2 border-border"}},defaultVariants:{size:"md",radius:"default",variant:"default"}}),bf=C(({className:e,size:t,radius:o,variant:r,...a},n)=>d(vf,{ref:n,className:L("moonui-theme",a1({size:t,radius:o,variant:r}),e),...a}));bf.displayName=vf.displayName;var Cx=C(({className:e,alt:t="",...o},r)=>d(xf,{ref:r,alt:t,className:L("moonui-theme","aspect-square h-full w-full",e),...o}));Cx.displayName=xf.displayName;var Cf=C(({className:e,...t},o)=>d(yf,{ref:o,className:L("flex h-full w-full items-center justify-center bg-muted",e),...t}));Cf.displayName=yf.displayName;var wx=C(({className:e,max:t,children:o,overlapOffset:r=-8,...a},n)=>{let s=Ie.toArray(o),i=t?s.slice(0,t):s,l=t?Math.max(0,s.length-t):0;return d("div",{ref:n,className:L("moonui-theme","flex items-center",e),...a,children:P("div",{className:"flex",children:[i.map((u,c)=>d("div",{className:"relative",style:{marginLeft:c===0?0:`${r}px`,zIndex:i.length-c},children:u},c)),l>0&&d("div",{className:"relative z-0",style:{marginLeft:`${r}px`},children:d(bf,{variant:"border",children:P(Cf,{children:["+",l]})})})]})})});wx.displayName="AvatarGroup";O();var Sx=Q(["inline-flex items-center justify-center gap-1.5","font-medium transition-colors duration-200","border focus:outline-none","focus-visible:ring-2 focus-visible:ring-offset-1","mr-2 mb-2 last:mr-0"],{variants:{variant:{primary:["border-transparent bg-primary text-primary-foreground","hover:bg-primary/90","focus-visible:ring-primary/30 dark:focus-visible:ring-primary/40","dark:shadow-inner dark:shadow-primary/10"],secondary:["border-transparent bg-secondary text-secondary-foreground","hover:bg-gray-200 dark:hover:bg-gray-600","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:bg-gray-700/50 dark:text-gray-50 dark:shadow-inner dark:shadow-gray-950/10"],outline:["border-gray-200 dark:border-gray-600","bg-transparent text-foreground","hover:border-gray-300 dark:hover:border-gray-500","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:text-gray-100 dark:bg-transparent dark:backdrop-blur-sm"],destructive:["border-transparent bg-error-600 text-white","hover:bg-error-700 dark:hover:bg-error-700","focus-visible:ring-error/30 dark:focus-visible:ring-error/25","dark:text-white dark:shadow-inner dark:shadow-error/10"],success:["border-transparent bg-success text-success-foreground","hover:bg-success/90 dark:hover:bg-success/80","focus-visible:ring-success/30 dark:focus-visible:ring-success/25","dark:bg-success/90 dark:text-success-foreground dark:shadow-inner dark:shadow-success/10"],warning:["border-transparent bg-warning text-warning-foreground","hover:bg-warning/90 dark:hover:bg-warning/80","focus-visible:ring-warning/30 dark:focus-visible:ring-warning/25","dark:bg-warning/90 dark:text-warning-foreground dark:shadow-inner dark:shadow-warning/10"],ghost:["border border-gray-200 bg-gray-50/50 text-gray-700","hover:bg-gray-100 dark:hover:bg-gray-800/60","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:border-gray-700 dark:bg-gray-800/30 dark:text-gray-300","transition-all duration-200"],pro:["border-transparent bg-gradient-to-r from-purple-600 to-pink-600 text-white","hover:from-purple-700 hover:to-pink-700","focus-visible:ring-purple-400/30 dark:focus-visible:ring-purple-500/40","shadow-md dark:shadow-lg dark:shadow-purple-500/10"],admin:["border-transparent bg-gradient-to-r from-purple-600 to-pink-600 text-white","hover:from-purple-700 hover:to-pink-700","focus-visible:ring-purple-400/30 dark:focus-visible:ring-purple-500/40","shadow-md dark:shadow-lg dark:shadow-purple-500/10"]},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-3 text-sm",lg:"h-8 px-4 text-base"},radius:{default:"rounded-full",sm:"rounded-md",lg:"rounded-xl",none:"rounded-none"}},defaultVariants:{variant:"primary",size:"md",radius:"default"}}),Lt=C(({className:e,variant:t,size:o,radius:r,withDot:a,dotColor:n,removable:s,onRemove:i,removeLabel:l,leftIcon:u,rightIcon:c,noAutoSpacing:f,children:p,...m},h)=>{let g=u,v=p;return t==="pro"&&(g=u||P("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-3 h-3",children:[d("path",{d:"M12 0L13.09 8.26L22 9L13.09 9.74L12 18L10.91 9.74L2 9L10.91 8.26L12 0Z",fill:"currentColor"}),d("path",{d:"M19 5L19.5 7L21 7.5L19.5 8L19 10L18.5 8L17 7.5L18.5 7L19 5Z",fill:"currentColor"}),d("path",{d:"M19 15L19.5 17L21 17.5L19.5 18L19 20L18.5 18L17 17.5L18.5 17L19 15Z",fill:"currentColor"})]}),v=p||"Pro"),t==="admin"&&(g=u||d("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-3 h-3",children:d("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"currentColor"})}),v=p||"Admin Pro"),P("div",{ref:h,className:L("moonui-theme",Sx({variant:t,size:o,radius:r}),f&&"mr-0 mb-0",e),"data-removable":s?"":void 0,...m,children:[a&&d("span",{className:L("h-2 w-2 rounded-full",n||(t==="destructive"||t==="success"||t==="warning"?"bg-white":t==="secondary"?"bg-secondary-foreground":t==="outline"||t==="ghost"?"bg-foreground":t==="pro"||t==="admin"?"bg-white":"bg-primary-foreground")),"aria-hidden":"true"}),g&&d("span",{className:"inline-flex shrink-0 items-center",children:g}),d("span",{className:"inline-flex items-center",children:v}),c&&d("span",{className:"inline-flex shrink-0 items-center",children:c}),s&&i&&d("button",{type:"button",className:"ml-1 -mr-1 h-3.5 w-3.5 rounded-full inline-flex items-center justify-center hover:bg-black/10 dark:hover:bg-white/10",onClick:x=>{x.stopPropagation(),i()},"aria-label":l||(li(v)?`Remove ${li(v)}`:"Remove badge"),children:d("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"opacity-70","aria-hidden":"true",children:d("path",{d:"M0.799988 7.19999L7.19999 0.799988M0.799988 0.799988L7.19999 7.19999",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Lt.displayName="Badge";O();var n1=Q("flex items-center gap-1.5 text-sm",{variants:{variant:{default:"text-foreground transition-colors",muted:"text-muted-foreground transition-colors",ghost:"text-foreground/60 transition-colors"},size:{md:"text-sm",sm:"text-xs",lg:"text-base",default:"text-sm"}},defaultVariants:{variant:"default",size:"md"}}),Rx=le(void 0),Ix=C(({className:e,variant:t,size:o,separator:r,showHomeIcon:a,...n},s)=>d(Rx.Provider,{value:r,children:d("nav",{ref:s,className:L("moonui-theme",n1({variant:t,size:o}),e),"aria-label":"breadcrumb",...n})}));Ix.displayName="Breadcrumb";var Px=C(({className:e,collapsed:t,collapsedWidth:o=3,...r},a)=>{let n=Ie.toArray(r.children).filter(Boolean),s=n.length;if(t&&s>o){let i=n[0],l=n.slice(-2);return P("ol",{ref:a,className:L("flex flex-wrap items-center gap-1.5 sm:gap-2.5",e),...r,children:[i,d(wf,{}),l]})}return d("ol",{ref:a,className:L("flex flex-wrap items-center gap-1.5 sm:gap-2.5",e),...r})});Px.displayName="BreadcrumbList";var Lx=C(({className:e,isCurrent:t,href:o,asChild:r=!1,children:a,...n},s)=>{let i=r?Ya:o?"a":"span",l=!r&&o?{href:o}:{};return d("li",{ref:s,className:L("moonui-theme","inline-flex items-center gap-1.5",e),...n,children:d(i,{"aria-current":t?"page":void 0,className:L("transition-colors duration-200 hover:text-foreground",t?"font-medium text-foreground":"text-muted-foreground hover:text-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30"),...l,children:a})})});Lx.displayName="BreadcrumbItem";var Tx=({children:e,className:t,icon:o,...r})=>{let a=te(Rx);return d("span",{role:"presentation","aria-hidden":"true",className:L("moonui-theme","text-muted-foreground opacity-70",t),...r,children:e||o||a||d(wt,{className:"h-3.5 w-3.5"})})};Tx.displayName="BreadcrumbSeparator";var wf=({className:e,icon:t,...o})=>P("span",{role:"presentation",className:L("moonui-theme","flex items-center text-muted-foreground hover:text-foreground/80 transition-colors duration-200",e),...o,children:[d("span",{"aria-hidden":"true",className:"flex items-center",children:t||d(ko,{className:"h-4 w-4"})}),d("span",{className:"sr-only",children:"More pages"})]});wf.displayName="BreadcrumbEllipsis";var Mx=C(({className:e,href:t,...o},r)=>d("a",{ref:r,href:t,className:L("transition-colors duration-200 hover:text-foreground text-muted-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30",e),...o}));Mx.displayName="BreadcrumbLink";var kx=C(({className:e,...t},o)=>d("span",{ref:o,className:L("font-medium text-foreground dark:text-white dark:text-opacity-95",e),...t}));kx.displayName="BreadcrumbPage";O();var nu=Q(["inline-flex items-center justify-center gap-2 whitespace-nowrap","font-medium relative","transition-all duration-200 ease-out","transform active:scale-[0.98]","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none disabled:transform-none"],{variants:{variant:{primary:["bg-primary text-primary-foreground","dark:bg-primary dark:text-primary-foreground","hover:bg-primary/90 dark:hover:bg-primary/90","active:bg-primary/80 dark:active:bg-primary/80","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],secondary:["bg-gray-100 text-gray-900","dark:bg-gray-800 dark:text-gray-100","hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600","border border-input","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","shadow-sm hover:shadow-md"],outline:["bg-background text-foreground","dark:bg-background dark:text-foreground","border border-input dark:border-input","hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent dark:hover:text-accent-foreground","active:bg-accent/80 dark:active:bg-accent/80","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],ghost:["text-gray-700","dark:text-gray-300","hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-gray-100","active:bg-gray-200 dark:active:bg-gray-700","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],destructive:["bg-destructive text-destructive-foreground","dark:bg-error-600 dark:text-destructive-foreground","hover:bg-destructive/90 dark:hover:bg-error-700","active:bg-destructive/80 dark:active:bg-error-800","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],success:["bg-success text-success-foreground","dark:bg-success dark:text-success-foreground","hover:bg-success/90 dark:hover:bg-success/90","active:bg-success/80 dark:active:bg-success/80","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],link:["text-primary bg-transparent","underline-offset-4 hover:underline","hover:text-primary/80 active:text-primary/70","p-0 h-auto","transition-colors duration-200"],gradient:["bg-gradient-to-r from-purple-500 to-pink-500 text-white","hover:from-purple-600 hover:to-pink-600","active:from-purple-700 active:to-pink-700","shadow-xl shadow-purple-500/40","hover:shadow-2xl hover:shadow-purple-500/50","focus-visible:ring-purple-500/50","transition-all duration-300"],glow:["bg-blue-500 text-white","shadow-[0_0_30px_rgba(var(--glow-blue-rgb),0.5)]","hover:shadow-[0_0_40px_rgba(var(--glow-blue-rgb),0.7)]","active:shadow-[0_0_20px_rgba(var(--glow-blue-rgb),0.4)]","hover:bg-blue-600","focus-visible:ring-blue-500/50","transition-all duration-300"],soft:["bg-primary/10 text-primary","hover:bg-primary/20","active:bg-primary/30","focus-visible:ring-primary/50","dark:bg-primary/20 dark:text-primary-foreground","dark:hover:bg-primary/30 dark:active:bg-primary/40","transition-colors duration-200"],glass:["bg-white/10 backdrop-blur-md text-foreground","border border-white/20","hover:bg-white/20 hover:border-white/30","active:bg-white/30","shadow-lg","focus-visible:ring-white/50","dark:bg-gray-800/10 dark:border-gray-700/20","dark:hover:bg-gray-800/20 dark:hover:border-gray-700/30","transition-all duration-200"],neon:["bg-transparent text-green-400","border-2 border-green-400","hover:bg-green-400 hover:text-gray-900","hover:shadow-[0_0_30px_rgba(var(--glow-green-rgb),0.6)]","active:shadow-[0_0_15px_rgba(var(--glow-green-rgb),0.4)]","focus-visible:ring-green-400/50","transition-all duration-300"]},size:{xs:"h-7 px-2.5 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-base",lg:"h-12 px-6 text-lg",xl:"h-14 px-8 text-xl",icon:"h-10 w-10 p-2","icon-sm":"h-8 w-8 p-1.5","icon-lg":"h-12 w-12 p-3"},rounded:{default:"rounded-xl",full:"rounded-full",none:"rounded-none",sm:"rounded-lg",lg:"rounded-2xl"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md",rounded:"default",fullWidth:!1}}),Me=C(({className:e,variant:t,size:o,rounded:r,fullWidth:a,asChild:n=!1,loading:s=!1,leftIcon:i,rightIcon:l,children:u,disabled:c,onClick:f,...p},m)=>{let h=n&&Le(u),g=h?Ya:"button",v=c||s,x=h?{"aria-disabled":v||void 0,"data-disabled":v?"":void 0}:{disabled:v},y=h&&v?b=>{b.preventDefault(),b.stopPropagation()}:f;return P(g,{className:L("moonui-theme",nu({variant:t,size:o,rounded:r,fullWidth:a,className:e}),h&&v&&"opacity-50 cursor-not-allowed pointer-events-none"),ref:m,...x,"aria-busy":s||void 0,"data-loading":s?"":void 0,...p,onClick:y,children:[s&&d(ot,{className:"w-4 h-4 animate-spin","aria-hidden":"true"}),!s&&i,h?d(yv,{children:u}):u,!s&&l]})});Me.displayName="Button";O();O();O();var dn=le({});O();function Eo(e){let t=E(null);return t.current===null&&(t.current=e()),t.current}O();var fn=typeof window<"u";var pn=fn?ct:D;O();O();O();var Cr=le(null);function ua(e,t){e.indexOf(t)===-1&&e.push(t)}function io(e,t){let o=e.indexOf(t);o>-1&&e.splice(o,1)}var it=(e,t,o)=>o>t?t:o<e?e:o;var Wo=()=>{},dt=()=>{};var mt={};var ui=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ci(e){return typeof e=="object"&&e!==null}var di=e=>/^0[^.\s]+$/u.test(e);function ca(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ke=e=>e;var s1=(e,t)=>o=>t(e(o)),lo=(...e)=>e.reduce(s1);var zt=(e,t,o)=>{let r=t-e;return r===0?1:(o-e)/r};var qo=class{constructor(){this.subscriptions=[]}add(t){return ua(this.subscriptions,t),()=>io(this.subscriptions,t)}notify(t,o,r){let a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,o,r);else for(let n=0;n<a;n++){let s=this.subscriptions[n];s&&s(t,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var et=e=>e*1e3,rt=e=>e/1e3;function fi(e,t){return t?e*(1e3/t):0}var Ex=(e,t,o)=>{let r=t-e;return((o-e)%r+r)%r+e};var Ax=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,i1=1e-7,l1=12;function u1(e,t,o,r,a){let n,s,i=0;do s=t+(o-t)/2,n=Ax(s,r,a)-e,n>0?o=s:t=s;while(Math.abs(n)>i1&&++i<l1);return s}function wr(e,t,o,r){if(e===t&&o===r)return Ke;let a=n=>u1(n,0,1,e,o);return n=>n===0||n===1?n:Ax(a(n),t,r)}var su=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var iu=e=>t=>1-e(1-t);var lu=wr(.33,1.53,.69,.99),mn=iu(lu),pi=su(mn);var mi=e=>(e*=2)<1?.5*mn(e):.5*(2-Math.pow(2,-10*(e-1)));var gi=e=>1-Math.sin(Math.acos(e)),hi=iu(gi),vi=su(gi);var Sf=wr(.42,0,1,1),Rf=wr(0,0,.58,1),xi=wr(.42,0,.58,1);var yi=e=>Array.isArray(e)&&typeof e[0]!="number";function bi(e,t){return yi(e)?e[Ex(0,e.length,t)]:e}var Ci=e=>Array.isArray(e)&&typeof e[0]=="number";var Dx={linear:Ke,easeIn:Sf,easeInOut:xi,easeOut:Rf,circIn:gi,circInOut:vi,circOut:hi,backIn:mn,backInOut:pi,backOut:lu,anticipate:mi},c1=e=>typeof e=="string",uu=e=>{if(Ci(e)){dt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,o,r,a]=e;return wr(t,o,r,a)}else if(c1(e))return dt(Dx[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Dx[e];return e};var wi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Tt={value:null,addProjectionMetrics:null};function Nx(e,t){let o=new Set,r=new Set,a=!1,n=!1,s=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1},l=0;function u(f){s.has(f)&&(c.schedule(f),e()),l++,f(i)}let c={schedule:(f,p=!1,m=!1)=>{let g=m&&a?o:r;return p&&s.add(f),g.has(f)||g.add(f),f},cancel:f=>{r.delete(f),s.delete(f)},process:f=>{if(i=f,a){n=!0;return}a=!0,[o,r]=[r,o],o.forEach(u),t&&Tt.value&&Tt.value.frameloop[t].push(l),l=0,o.clear(),a=!1,n&&(n=!1,c.process(f))}};return c}var d1=40;function cu(e,t){let o=!1,r=!0,a={delta:0,timestamp:0,isProcessing:!1},n=()=>o=!0,s=wi.reduce((b,R)=>(b[R]=Nx(n,t?R:void 0),b),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:p,render:m,postRender:h}=s,g=()=>{let b=mt.useManualTiming?a.timestamp:performance.now();o=!1,mt.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(b-a.timestamp,d1),1)),a.timestamp=b,a.isProcessing=!0,i.process(a),l.process(a),u.process(a),c.process(a),f.process(a),p.process(a),m.process(a),h.process(a),a.isProcessing=!1,o&&t&&(r=!1,e(g))},v=()=>{o=!0,r=!0,a.isProcessing||e(g)};return{schedule:wi.reduce((b,R)=>{let w=s[R];return b[R]=(I,S=!1,T=!1)=>(o||v(),w.schedule(I,S,T)),b},{}),cancel:b=>{for(let R=0;R<wi.length;R++)s[wi[R]].cancel(b)},state:a,steps:s}}var{schedule:we,cancel:gt,state:Ye,steps:Si}=cu(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ke,!0);var du;function f1(){du=void 0}var Ze={now:()=>(du===void 0&&Ze.set(Ye.isProcessing||mt.useManualTiming?Ye.timestamp:performance.now()),du),set:e=>{du=e,queueMicrotask(f1)}};var uo={layout:0,mainThread:0,waapi:0};var Ox=e=>t=>typeof t=="string"&&t.startsWith(e),da=Ox("--"),p1=Ox("var(--"),fa=e=>p1(e)?m1.test(e.split("/*")[0].trim()):!1,m1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Ao={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$o={...Ao,transform:e=>it(0,1,e)},Ri={...Ao,default:1};var Sr=e=>Math.round(e*1e5)/1e5;var gn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fx(e){return e==null}var _x=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var hn=(e,t)=>o=>!!(typeof o=="string"&&_x.test(o)&&o.startsWith(e)||t&&!Fx(o)&&Object.prototype.hasOwnProperty.call(o,t)),fu=(e,t,o)=>r=>{if(typeof r!="string")return r;let[a,n,s,i]=r.match(gn);return{[e]:parseFloat(a),[t]:parseFloat(n),[o]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var g1=e=>it(0,255,e),If={...Ao,transform:e=>Math.round(g1(e))},Do={test:hn("rgb","red"),parse:fu("red","green","blue"),transform:({red:e,green:t,blue:o,alpha:r=1})=>"rgba("+If.transform(e)+", "+If.transform(t)+", "+If.transform(o)+", "+Sr($o.transform(r))+")"};function h1(e){let t="",o="",r="",a="";return e.length>5?(t=e.substring(1,3),o=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),o=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,o+=o,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}var Ii={test:hn("#"),parse:h1,transform:Do.transform};var Pi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),co=Pi("deg"),ht=Pi("%"),de=Pi("px"),Pf=Pi("vh"),Lf=Pi("vw"),pu=(()=>({...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)}))();var Rr={test:hn("hsl","hue"),parse:fu("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:o,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(Sr(t))+", "+ht.transform(Sr(o))+", "+Sr($o.transform(r))+")"};var je={test:e=>Do.test(e)||Ii.test(e)||Rr.test(e),parse:e=>Do.test(e)?Do.parse(e):Rr.test(e)?Rr.parse(e):Ii.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Do.transform(e):Rr.transform(e),getAnimatableNone:e=>{let t=je.parse(e);return t.alpha=0,je.transform(t)}};var Vx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function v1(e){return isNaN(e)&&typeof e=="string"&&(e.match(gn)?.length||0)+(e.match(Vx)?.length||0)>0}var Hx="number",Ux="color",x1="var",y1="var(",Bx="${}",b1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ir(e){let t=e.toString(),o=[],r={color:[],number:[],var:[]},a=[],n=0,i=t.replace(b1,l=>(je.test(l)?(r.color.push(n),a.push(Ux),o.push(je.parse(l))):l.startsWith(y1)?(r.var.push(n),a.push(x1),o.push(l)):(r.number.push(n),a.push(Hx),o.push(parseFloat(l))),++n,Bx)).split(Bx);return{values:o,split:i,indexes:r,types:a}}function Gx(e){return Ir(e).values}function zx(e){let{split:t,types:o}=Ir(e),r=t.length;return a=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],a[s]!==void 0){let i=o[s];i===Hx?n+=Sr(a[s]):i===Ux?n+=je.transform(a[s]):n+=a[s]}return n}}var C1=e=>typeof e=="number"?0:je.test(e)?je.getAnimatableNone(e):e;function w1(e){let t=Gx(e);return zx(e)(t.map(C1))}var vt={test:v1,parse:Gx,createTransformer:zx,getAnimatableNone:w1};function Tf(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Wx({hue:e,saturation:t,lightness:o,alpha:r}){e/=360,t/=100,o/=100;let a=0,n=0,s=0;if(!t)a=n=s=o;else{let i=o<.5?o*(1+t):o+t-o*t,l=2*o-i;a=Tf(l,i,e+1/3),n=Tf(l,i,e),s=Tf(l,i,e-1/3)}return{red:Math.round(a*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:r}}function vn(e,t){return o=>o>0?t:e}var Re=(e,t,o)=>e+(t-e)*o;var Mf=(e,t,o)=>{let r=e*e,a=o*(t*t-r)+r;return a<0?0:Math.sqrt(a)},S1=[Ii,Do,Rr],R1=e=>S1.find(t=>t.test(e));function qx(e){let t=R1(e);if(Wo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let o=t.parse(e);return t===Rr&&(o=Wx(o)),o}var kf=(e,t)=>{let o=qx(e),r=qx(t);if(!o||!r)return vn(e,t);let a={...o};return n=>(a.red=Mf(o.red,r.red,n),a.green=Mf(o.green,r.green,n),a.blue=Mf(o.blue,r.blue,n),a.alpha=Re(o.alpha,r.alpha,n),Do.transform(a))};var mu=new Set(["none","hidden"]);function $x(e,t){return mu.has(e)?o=>o<=0?e:t:o=>o>=1?t:e}function I1(e,t){return o=>Re(e,t,o)}function gu(e){return typeof e=="number"?I1:typeof e=="string"?fa(e)?vn:je.test(e)?kf:T1:Array.isArray(e)?jx:typeof e=="object"?je.test(e)?kf:P1:vn}function jx(e,t){let o=[...e],r=o.length,a=e.map((n,s)=>gu(n)(n,t[s]));return n=>{for(let s=0;s<r;s++)o[s]=a[s](n);return o}}function P1(e,t){let o={...e,...t},r={};for(let a in o)e[a]!==void 0&&t[a]!==void 0&&(r[a]=gu(e[a])(e[a],t[a]));return a=>{for(let n in r)o[n]=r[n](a);return o}}function L1(e,t){let o=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let n=t.types[a],s=e.indexes[n][r[n]],i=e.values[s]??0;o[a]=i,r[n]++}return o}var T1=(e,t)=>{let o=vt.createTransformer(t),r=Ir(e),a=Ir(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?mu.has(e)&&!a.values.length||mu.has(t)&&!r.values.length?$x(e,t):lo(jx(L1(r,a),a.values),o):(Wo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),vn(e,t))};function hu(e,t,o){return typeof e=="number"&&typeof t=="number"&&typeof o=="number"?Re(e,t,o):gu(e)(e,t)}var Kx=e=>{let t=({timestamp:o})=>e(o);return{start:(o=!0)=>we.update(t,o),stop:()=>gt(t),now:()=>Ye.isProcessing?Ye.timestamp:Ze.now()}};var vu=(e,t,o=10)=>{let r="",a=Math.max(Math.round(t/o),2);for(let n=0;n<a;n++)r+=Math.round(e(n/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function xn(e){let t=0,o=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=o,r=e.next(t);return t>=2e4?1/0:t}function Li(e,t=100,o){let r=o({...e,keyframes:[0,t]}),a=Math.min(xn(r),2e4);return{type:"keyframes",ease:n=>r.next(a*n).value/t,duration:rt(a)}}var M1=5;function xu(e,t,o){let r=Math.max(t-M1,0);return fi(o-e(r),t-r)}var qe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var Af=.001;function Xx({duration:e=qe.duration,bounce:t=qe.bounce,velocity:o=qe.velocity,mass:r=qe.mass}){let a,n;Wo(e<=et(qe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=it(qe.minDamping,qe.maxDamping,s),e=it(qe.minDuration,qe.maxDuration,rt(e)),s<1?(a=u=>{let c=u*s,f=c*e,p=c-o,m=yu(u,s),h=Math.exp(-f);return Af-p/m*h},n=u=>{let f=u*s*e,p=f*o+o,m=Math.pow(s,2)*Math.pow(u,2)*e,h=Math.exp(-f),g=yu(Math.pow(u,2),s);return(-a(u)+Af>0?-1:1)*((p-m)*h)/g}):(a=u=>{let c=Math.exp(-u*e),f=(u-o)*e+1;return-Af+c*f},n=u=>{let c=Math.exp(-u*e),f=(o-u)*(e*e);return c*f});let i=5/e,l=E1(a,n,i);if(e=et(e),isNaN(l))return{stiffness:qe.stiffness,damping:qe.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var k1=12;function E1(e,t,o){let r=o;for(let a=1;a<k1;a++)r=r-e(r)/t(r);return r}function yu(e,t){return e*Math.sqrt(1-t*t)}var A1=["duration","bounce"],D1=["stiffness","damping","mass"];function Yx(e,t){return t.some(o=>e[o]!==void 0)}function N1(e){let t={velocity:qe.velocity,stiffness:qe.stiffness,damping:qe.damping,mass:qe.mass,isResolvedFromDuration:!1,...e};if(!Yx(e,D1)&&Yx(e,A1))if(e.visualDuration){let o=e.visualDuration,r=2*Math.PI/(o*1.2),a=r*r,n=2*it(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:qe.mass,stiffness:a,damping:n}}else{let o=Xx(e);t={...t,...o,mass:qe.mass},t.isResolvedFromDuration=!0}return t}function jo(e=qe.visualDuration,t=qe.bounce){let o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:a}=o,n=o.keyframes[0],s=o.keyframes[o.keyframes.length-1],i={done:!1,value:n},{stiffness:l,damping:u,mass:c,duration:f,velocity:p,isResolvedFromDuration:m}=N1({...o,velocity:-rt(o.velocity||0)}),h=p||0,g=u/(2*Math.sqrt(l*c)),v=s-n,x=rt(Math.sqrt(l/c)),y=Math.abs(v)<5;r||(r=y?qe.restSpeed.granular:qe.restSpeed.default),a||(a=y?qe.restDelta.granular:qe.restDelta.default);let b;if(g<1){let w=yu(x,g);b=I=>{let S=Math.exp(-g*x*I);return s-S*((h+g*x*v)/w*Math.sin(w*I)+v*Math.cos(w*I))}}else if(g===1)b=w=>s-Math.exp(-x*w)*(v+(h+x*v)*w);else{let w=x*Math.sqrt(g*g-1);b=I=>{let S=Math.exp(-g*x*I),T=Math.min(w*I,300);return s-S*((h+g*x*v)*Math.sinh(T)+w*v*Math.cosh(T))/w}}let R={calculatedDuration:m&&f||null,next:w=>{let I=b(w);if(m)i.done=w>=f;else{let S=w===0?h:0;g<1&&(S=w===0?et(h):xu(b,w,I));let T=Math.abs(S)<=r,M=Math.abs(s-I)<=a;i.done=T&&M}return i.value=i.done?s:I,i},toString:()=>{let w=Math.min(xn(R),2e4),I=vu(S=>R.next(w*S).value,w,30);return w+"ms "+I},toTransition:()=>{}};return R}jo.applyToOptions=e=>{let t=Li(e,100,jo);return e.ease=t.ease,e.duration=et(t.duration),e.type="keyframes",e};function Ti({keyframes:e,velocity:t=0,power:o=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:n=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:c}){let f=e[0],p={done:!1,value:f},m=T=>i!==void 0&&T<i||l!==void 0&&T>l,h=T=>i===void 0?l:l===void 0||Math.abs(i-T)<Math.abs(l-T)?i:l,g=o*t,v=f+g,x=s===void 0?v:s(v);x!==v&&(g=x-f);let y=T=>-g*Math.exp(-T/r),b=T=>x+y(T),R=T=>{let M=y(T),A=b(T);p.done=Math.abs(M)<=u,p.value=p.done?x:A},w,I,S=T=>{m(p.value)&&(w=T,I=jo({keyframes:[p.value,h(p.value)],velocity:xu(b,T,p.value),damping:a,stiffness:n,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:T=>{let M=!1;return!I&&w===void 0&&(M=!0,R(T),S(T)),w!==void 0&&T>=w?I.next(T-w):(!M&&R(T),p)}}}function O1(e,t,o){let r=[],a=o||mt.mix||hu,n=e.length-1;for(let s=0;s<n;s++){let i=a(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Ke:t;i=lo(l,i)}r.push(i)}return r}function bu(e,t,{clamp:o=!0,ease:r,mixer:a}={}){let n=e.length;if(dt(n===t.length,"Both input and output ranges must be the same length","range-length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=O1(t,r,a),l=i.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);let p=zt(e[f],e[f+1],c);return i[f](p)};return o?c=>u(it(e[0],e[n-1],c)):u}function Mi(e,t){let o=e[e.length-1];for(let r=1;r<=t;r++){let a=zt(0,t,r);e.push(Re(o,1,a))}}function ki(e){let t=[0];return Mi(t,e.length-1),t}function Zx(e,t){return e.map(o=>o*t)}function F1(e,t){return e.map(()=>t||xi).splice(0,e.length-1)}function pa({duration:e=300,keyframes:t,times:o,ease:r="easeInOut"}){let a=yi(r)?r.map(uu):uu(r),n={done:!1,value:t[0]},s=Zx(o&&o.length===t.length?o:ki(t),e),i=bu(s,t,{ease:Array.isArray(a)?a:F1(t,a)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var _1=e=>e!==null;function yn(e,{repeat:t,repeatType:o="loop"},r,a=1){let n=e.filter(_1),i=a<0||t&&o!=="loop"&&t%2===1?0:n.length-1;return!i||r===void 0?n[i]:r}var V1={decay:Ti,inertia:Ti,tween:pa,keyframes:pa,spring:jo};function Cu(e){typeof e.type=="string"&&(e.type=V1[e.type])}var Pr=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,o){return this.finished.then(t,o)}};var B1=e=>e/100,Ko=class extends Pr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:o}=this.options;o&&o.updatedAt!==Ze.now()&&this.tick(Ze.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},uo.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;Cu(t);let{type:o=pa,repeat:r=0,repeatDelay:a=0,repeatType:n,velocity:s=0}=t,{keyframes:i}=t,l=o||pa;l!==pa&&typeof i[0]!="number"&&(this.mixKeyframes=lo(B1,hu(i[0],i[1])),i=[0,100]);let u=l({...t,keyframes:i});n==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=xn(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=u}updateTime(t){let o=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(t,o=!1){let{generator:r,totalDuration:a,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);let{delay:u=0,keyframes:c,repeat:f,repeatType:p,repeatDelay:m,type:h,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),o?this.currentTime=t:this.updateTime(t);let x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?x<0:x>a;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let b=this.currentTime,R=r;if(f){let T=Math.min(this.currentTime,a)/i,M=Math.floor(T),A=T%1;!A&&T>=1&&(A=1),A===1&&M--,M=Math.min(M,f+1),!!(M%2)&&(p==="reverse"?(A=1-A,m&&(A-=m/i)):p==="mirror"&&(R=s)),b=it(0,1,A)*i}let w=y?{done:!1,value:c[0]}:R.next(b);n&&(w.value=n(w.value));let{done:I}=w;!y&&l!==null&&(I=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return S&&h!==Ti&&(w.value=yn(c,this.options,v,this.speed)),g&&g(w.value),S&&this.finish(),w}then(t,o){return this.finished.then(t,o)}get duration(){return rt(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+rt(t)}get time(){return rt(this.currentTime)}set time(t){t=et(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ze.now());let o=this.playbackSpeed!==t;this.playbackSpeed=t,o&&(this.time=rt(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=Kx,startTime:o}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();let r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=o??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ze.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,uo.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};function Qx(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ma=e=>e*180/Math.PI,Df=e=>{let t=ma(Math.atan2(e[1],e[0]));return Nf(t)},H1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Df,rotateZ:Df,skewX:e=>ma(Math.atan(e[1])),skewY:e=>ma(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Nf=e=>(e=e%360,e<0&&(e+=360),e),Jx=Df,ey=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ty=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),U1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ey,scaleY:ty,scale:e=>(ey(e)+ty(e))/2,rotateX:e=>Nf(ma(Math.atan2(e[6],e[5]))),rotateY:e=>Nf(ma(Math.atan2(-e[2],e[0]))),rotateZ:Jx,rotate:Jx,skewX:e=>ma(Math.atan(e[4])),skewY:e=>ma(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ei(e){return e.includes("scale")?1:0}function Ai(e,t){if(!e||e==="none")return Ei(t);let o=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,a;if(o)r=U1,a=o;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=H1,a=i}if(!a)return Ei(t);let n=r[t],s=a[1].split(",").map(G1);return typeof n=="function"?n(s):s[n]}var Of=(e,t)=>{let{transform:o="none"}=getComputedStyle(e);return Ai(o,t)};function G1(e){return parseFloat(e.trim())}var fo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=(()=>new Set(fo))();var Ff=e=>e===Ao||e===de,z1=new Set(["x","y","z"]),W1=fo.filter(e=>!z1.has(e));function oy(e){let t=[];return W1.forEach(o=>{let r=e.getValue(o);r!==void 0&&(t.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),t}var Lr={width:({x:e},{paddingLeft:t="0",paddingRight:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),height:({y:e},{paddingTop:t="0",paddingBottom:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ai(t,"x"),y:(e,{transform:t})=>Ai(t,"y")};Lr.translateX=Lr.x;Lr.translateY=Lr.y;var ga=new Set,_f=!1,Vf=!1,Bf=!1;function ry(){if(Vf){let e=Array.from(ga).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),o=new Map;t.forEach(r=>{let a=oy(r);a.length&&(o.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let a=o.get(r);a&&a.forEach(([n,s])=>{r.getValue(n)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Vf=!1,_f=!1,ga.forEach(e=>e.complete(Bf)),ga.clear()}function ay(){ga.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Vf=!0)})}function Hf(){Bf=!0,ay(),ry(),Bf=!1}var Xo=class{constructor(t,o,r,a,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=o,this.name=r,this.motionValue=a,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(ga.add(this),_f||(_f=!0,we.read(ay),we.resolveKeyframes(ry))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:o,element:r,motionValue:a}=this;if(t[0]===null){let n=a?.get(),s=t[t.length-1];if(n!==void 0)t[0]=n;else if(r&&o){let i=r.readValue(o,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),a&&n===void 0&&a.set(t[0])}Qx(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ga.delete(this)}cancel(){this.state==="scheduled"&&(ga.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var ny=e=>e.startsWith("--");function sy(e,t,o){ny(t)?e.style.setProperty(t,o):e.style[t]=o}var iy=ca(()=>window.ScrollTimeline!==void 0);var ly={};function uy(e,t){let o=ca(e);return()=>ly[t]??o()}var wu=uy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var ha=([e,t,o,r])=>`cubic-bezier(${e}, ${t}, ${o}, ${r})`;var Uf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ha([0,.65,.55,1]),circOut:ha([.55,0,1,.45]),backIn:ha([.31,.01,.66,-.59]),backOut:ha([.33,1.53,.69,.99])};function Gf(e,t){if(e)return typeof e=="function"?wu()?vu(e,t):"ease-out":Ci(e)?ha(e):Array.isArray(e)?e.map(o=>Gf(o,t)||Uf.easeOut):Uf[e]}function cy(e,t,o,{delay:r=0,duration:a=300,repeat:n=0,repeatType:s="loop",ease:i="easeOut",times:l}={},u=void 0){let c={[t]:o};l&&(c.offset=l);let f=Gf(i,a);Array.isArray(f)&&(c.easing=f),Tt.value&&uo.waapi++;let p={delay:r,duration:a,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"};u&&(p.pseudoElement=u);let m=e.animate(c,p);return Tt.value&&m.finished.finally(()=>{uo.waapi--}),m}function va(e){return typeof e=="function"&&"applyToOptions"in e}function dy({type:e,...t}){return va(e)&&wu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Su=class extends Pr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:o,name:r,keyframes:a,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,dt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=dy(t);this.animation=cy(o,r,a,u,n),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let c=yn(a,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(c):sy(o,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return rt(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+rt(t)}get time(){return rt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=et(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&iy()?(this.animation.timeline=t,Ke):o(this)}};var fy={anticipate:mi,backInOut:pi,circInOut:vi};function q1(e){return e in fy}function py(e){typeof e.ease=="string"&&q1(e.ease)&&(e.ease=fy[e.ease])}var my=10,Ru=class extends Su{constructor(t){py(t),Cu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:o,onUpdate:r,onComplete:a,element:n,...s}=this.options;if(!o)return;if(t!==void 0){o.set(t);return}let i=new Ko({...s,autoplay:!1}),l=et(this.finishedTime??this.time);o.setWithVelocity(i.sample(l-my).value,i.sample(l).value,my),i.stop()}};var zf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vt.test(e)||e==="0")&&!e.startsWith("url("));function $1(e){let t=e[0];if(e.length===1)return!0;for(let o=0;o<e.length;o++)if(e[o]!==t)return!0}function gy(e,t,o,r){let a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],s=zf(a,t),i=zf(n,t);return Wo(s===i,`You are trying to animate ${t} from "${a}" to "${n}". "${s?n:a}" is not an animatable value.`,"value-not-animatable"),!s||!i?!1:$1(e)||(o==="spring"||va(o))&&r}function bn(e){e.duration=0,e.type="keyframes"}var j1=new Set(["opacity","clipPath","filter","transform"]),K1=ca(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function hy(e){let{motionValue:t,name:o,repeatDelay:r,repeatType:a,damping:n,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return K1()&&o&&j1.has(o)&&(o!=="transform"||!u)&&!l&&!r&&a!=="mirror"&&n!==0&&s!=="inertia"}var X1=40,Di=class extends Pr{constructor({autoplay:t=!0,delay:o=0,type:r="keyframes",repeat:a=0,repeatDelay:n=0,repeatType:s="loop",keyframes:i,name:l,motionValue:u,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ze.now();let p={autoplay:t,delay:o,type:r,repeat:a,repeatDelay:n,repeatType:s,name:l,motionValue:u,element:c,...f},m=c?.KeyframeResolver||Xo;this.keyframeResolver=new m(i,(h,g,v)=>this.onKeyframesResolved(h,g,p,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,o,r,a){this.keyframeResolver=void 0;let{name:n,type:s,velocity:i,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ze.now(),gy(t,n,s,i)||((mt.instantAnimations||!l)&&c?.(yn(t,r,o)),t[0]=t[t.length-1],bn(r),r.repeat=0);let p={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>X1?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:t},m=!u&&hy(p)?new Ru({...p,element:p.motionValue.owner.current}):new Ko(p);m.finished.then(()=>this.notifyFinished()).catch(Ke),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,o){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Hf()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var Iu=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,o){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=o}attachTimeline(t){let o=this.animations.map(r=>r.attachTimeline(t));return()=>{o.forEach((r,a)=>{r&&r(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return vy(this.animations,"duration")}get iterationDuration(){return vy(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(o=>o[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function vy(e,t){let o=0;for(let r=0;r<e.length;r++){let a=e[r][t];a!==null&&a>o&&(o=a)}return o}var Ni=class extends Iu{then(t,o){return this.finished.finally(t).then(()=>{})}};var Y1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z1(e){let t=Y1.exec(e);if(!t)return[,];let[,o,r,a]=t;return[`--${o??r}`,a]}var Q1=4;function Wf(e,t,o=1){dt(o<=Q1,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,a]=Z1(e);if(!r)return;let n=window.getComputedStyle(t).getPropertyValue(r);if(n){let s=n.trim();return ui(s)?parseFloat(s):s}return fa(a)?Wf(a,t,o+1):a}function xa(e,t){return e?.[t]??e?.default??e}var Oi=new Set(["width","height","top","left","right","bottom",...fo]);var xy={test:e=>e==="auto",parse:e=>e};var Pu=e=>t=>t.test(e);var qf=[Ao,de,ht,co,Lf,Pf,xy],$f=e=>qf.find(Pu(e));function yy(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||di(e):!0}var J1=new Set(["brightness","contrast","saturate","opacity"]);function eN(e){let[t,o]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=o.match(gn)||[];if(!r)return e;let a=o.replace(r,""),n=J1.has(t)?1:0;return r!==o&&(n*=100),t+"("+n+a+")"}var tN=/\b([a-z-]*)\(.*?\)/gu,Fi={...vt,getAnimatableNone:e=>{let t=e.match(tN);return t?t.map(eN).join(" "):e}};var jf={...Ao,transform:Math.round};var by={rotate:co,rotateX:co,rotateY:co,rotateZ:co,scale:Ri,scaleX:Ri,scaleY:Ri,scaleZ:Ri,skew:co,skewX:co,skewY:co,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:$o,originX:pu,originY:pu,originZ:de};var ya={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,backgroundPositionX:de,backgroundPositionY:de,...by,zIndex:jf,fillOpacity:$o,strokeOpacity:$o,numOctaves:jf};var Cy={...ya,color:je,backgroundColor:je,outlineColor:je,fill:je,stroke:je,borderColor:je,borderTopColor:je,borderRightColor:je,borderBottomColor:je,borderLeftColor:je,filter:Fi,WebkitFilter:Fi},_i=e=>Cy[e];function Vi(e,t){let o=_i(e);return o!==Fi&&(o=vt),o.getAnimatableNone?o.getAnimatableNone(t):void 0}var oN=new Set(["auto","none","0"]);function wy(e,t,o){let r=0,a;for(;r<e.length&&!a;){let n=e[r];typeof n=="string"&&!oN.has(n)&&Ir(n).values.length&&(a=e[r]),r++}if(a&&o)for(let n of t)e[n]=Vi(o,a)}var Bi=class extends Xo{constructor(t,o,r,a,n){super(t,o,r,a,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),fa(u))){let c=Wf(u,o.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Oi.has(r)||t.length!==2)return;let[a,n]=t,s=$f(a),i=$f(n);if(s!==i)if(Ff(s)&&Ff(i))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Lr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:o}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||yy(t[a]))&&r.push(a);r.length&&wy(t,r,o)}measureInitialState(){let{element:t,unresolvedKeyframes:o,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Lr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),o[0]=this.measuredOrigin;let a=o[o.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){let{element:t,name:o,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let a=t.getValue(o);a&&a.jump(this.measuredOrigin,!1);let n=r.length-1,s=r[n];r[n]=Lr[o](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,l])=>{t.getValue(i).set(l)}),this.resolveNoneKeyframes()}};function Hi(e,t,o){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);let a=o?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}var Ui=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Gi(e){return ci(e)&&"offsetHeight"in e}var Sy=30,rN=e=>!isNaN(parseFloat(e)),ba={current:void 0},Lu=class{constructor(t,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{let a=Ze.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=o.owner}setCurrent(t){this.current=t,this.updatedAt=Ze.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=rN(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,o){this.events[t]||(this.events[t]=new qo);let r=this.events[t].add(o);return t==="change"?()=>{r(),we.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,o){this.passiveEffect=t,this.stopPassiveEffect=o}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,o=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ba.current&&ba.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Ze.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Sy)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,Sy);return fi(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(t){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=t(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Mt(e,t){return new Lu(e,t)}var{schedule:Ca,cancel:aN}=cu(queueMicrotask,!1);var Wt={x:!1,y:!1};function Tu(){return Wt.x||Wt.y}function Kf(e){return e==="x"||e==="y"?Wt[e]?null:(Wt[e]=!0,()=>{Wt[e]=!1}):Wt.x||Wt.y?null:(Wt.x=Wt.y=!0,()=>{Wt.x=Wt.y=!1})}function Mu(e,t){let o=Hi(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[o,a,()=>r.abort()]}function Ry(e){return!(e.pointerType==="touch"||Tu())}function Xf(e,t,o={}){let[r,a,n]=Mu(e,o),s=i=>{if(!Ry(i))return;let{target:l}=i,u=t(l,i);if(typeof u!="function"||!l)return;let c=f=>{Ry(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,a)};return r.forEach(i=>{i.addEventListener("pointerenter",s,a)}),n}var Yf=(e,t)=>t?e===t?!0:Yf(e,t.parentElement):!1;var wa=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var nN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Iy(e){return nN.has(e.tagName)||e.tabIndex!==-1}var Cn=new WeakSet;function Py(e){return t=>{t.key==="Enter"&&e(t)}}function Zf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var Ly=(e,t)=>{let o=e.currentTarget;if(!o)return;let r=Py(()=>{if(Cn.has(o))return;Zf(o,"down");let a=Py(()=>{Zf(o,"up")}),n=()=>Zf(o,"cancel");o.addEventListener("keyup",a,t),o.addEventListener("blur",n,t)});o.addEventListener("keydown",r,t),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),t)};function Ty(e){return wa(e)&&!Tu()}function Qf(e,t,o={}){let[r,a,n]=Mu(e,o),s=i=>{let l=i.currentTarget;if(!Ty(i))return;Cn.add(l);let u=t(l,i),c=(m,h)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),Cn.has(l)&&Cn.delete(l),Ty(m)&&typeof u=="function"&&u(m,{success:h})},f=m=>{c(m,l===window||l===document||o.useGlobalTarget||Yf(l,m.target))},p=m=>{c(m,!1)};window.addEventListener("pointerup",f,a),window.addEventListener("pointercancel",p,a)};return r.forEach(i=>{(o.useGlobalTarget?window:i).addEventListener("pointerdown",s,a),Gi(i)&&(i.addEventListener("focus",u=>Ly(u,a)),!Iy(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),n}function Sa(e){return ci(e)&&"ownerSVGElement"in e}function zi(e){return Sa(e)&&e.tagName==="svg"}function Jf(...e){let t=!Array.isArray(e[0]),o=t?0:-1,r=e[0+o],a=e[1+o],n=e[2+o],s=e[3+o],i=bu(a,n,s);return t?i(r):i}var De=e=>!!(e&&e.getVelocity);var sN=[...qf,je,vt],ep=e=>sN.find(Pu(e));O();O();O();var Tr=le({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});O();function My(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function iN(...e){return t=>{let o=!1,r=e.map(a=>{let n=My(a,t);return!o&&typeof n=="function"&&(o=!0),n});if(o)return()=>{for(let a=0;a<r.length;a++){let n=r[a];typeof n=="function"?n():My(e[a],null)}}}}function ky(...e){return B(iN(...e),e)}var tp=class extends Is{getSnapshotBeforeUpdate(t){let o=this.props.childRef.current;if(o&&t.isPresent&&!this.props.isPresent){let r=o.offsetParent,a=Gi(r)&&r.offsetWidth||0,n=this.props.sizeRef.current;n.height=o.offsetHeight||0,n.width=o.offsetWidth||0,n.top=o.offsetTop,n.left=o.offsetLeft,n.right=a-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}};function Ey({children:e,isPresent:t,anchorX:o,root:r}){let a=Ge(),n=E(null),s=E({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=te(Tr),l=ky(n,e?.ref);return Ps(()=>{let{width:u,height:c,top:f,left:p,right:m}=s.current;if(t||!n.current||!u||!c)return;let h=o==="left"?`left: ${p}`:`right: ${m}`;n.current.dataset.motionPopId=a;let g=document.createElement("style");i&&(g.nonce=i);let v=r??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(`
5
+ var iE=Object.create;var Xl=Object.defineProperty;var lE=Object.getOwnPropertyDescriptor;var uE=Object.getOwnPropertyNames;var cE=Object.getPrototypeOf,dE=Object.prototype.hasOwnProperty;var fE=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,o)=>(typeof require<"u"?require:t)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var pE=(e,t)=>()=>(e&&(t=e(e=0)),t);var mv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mE=(e,t)=>{for(var o in t)Xl(e,o,{get:t[o],enumerable:!0})},gv=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of uE(t))!dE.call(e,a)&&a!==o&&Xl(e,a,{get:()=>t[a],enumerable:!(r=lE(t,a))||r.enumerable});return e};var gE=(e,t,o)=>(o=e!=null?iE(cE(e)):{},gv(t||!e||!e.__esModule?Xl(o,"default",{value:e,enumerable:!0}):o,e)),hE=e=>gv(Xl({},"__esModule",{value:!0}),e);var H={};mE(H,{Children:()=>Ie,Component:()=>Is,Fragment:()=>Je,Profiler:()=>vE,PureComponent:()=>xE,StrictMode:()=>yE,Suspense:()=>bE,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>CE,act:()=>wE,cloneElement:()=>Fe,createContext:()=>le,createElement:()=>me,createFactory:()=>SE,createRef:()=>RE,default:()=>Pe,forwardRef:()=>C,isValidElement:()=>Le,lazy:()=>IE,memo:()=>Zd,startTransition:()=>PE,unstable_act:()=>LE,useCallback:()=>B,useContext:()=>te,useDebugValue:()=>TE,useDeferredValue:()=>ME,useEffect:()=>D,useId:()=>Ge,useImperativeHandle:()=>ta,useInsertionEffect:()=>Ps,useLayoutEffect:()=>ct,useMemo:()=>Z,useReducer:()=>Gt,useRef:()=>E,useState:()=>k,useSyncExternalStore:()=>Qd,useTransition:()=>kE,version:()=>EE});import*as oe from"react";var Ie,Is,Je,vE,xE,yE,bE,CE,wE,Fe,le,me,SE,RE,C,Le,IE,Zd,PE,LE,B,te,TE,ME,D,Ge,ta,Ps,ct,Z,Gt,E,k,Qd,kE,EE,Pe,O=pE(()=>{Ie=oe.Children,Is=oe.Component,Je=oe.Fragment,vE=oe.Profiler,xE=oe.PureComponent,yE=oe.StrictMode,bE=oe.Suspense,CE=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,wE=oe.act,Fe=oe.cloneElement,le=oe.createContext,me=oe.createElement,SE=oe.createFactory,RE=oe.createRef,C=oe.forwardRef,Le=oe.isValidElement,IE=oe.lazy,Zd=oe.memo,PE=oe.startTransition,LE=oe.unstable_act,B=oe.useCallback,te=oe.useContext,TE=oe.useDebugValue,ME=oe.useDeferredValue,D=oe.useEffect,Ge=oe.useId,ta=oe.useImperativeHandle,Ps=oe.useInsertionEffect,ct=oe.useLayoutEffect,Z=oe.useMemo,Gt=oe.useReducer,E=oe.useRef,k=oe.useState,Qd=oe.useSyncExternalStore,kE=oe.useTransition,EE=oe.version,Pe=oe.default!==void 0?oe.default:oe});var ux=mv(lx=>{"use strict";var cn=(O(),hE(H));function WD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qD=typeof Object.is=="function"?Object.is:WD,$D=cn.useState,jD=cn.useEffect,KD=cn.useLayoutEffect,XD=cn.useDebugValue;function YD(e,t){var o=t(),r=$D({inst:{value:o,getSnapshot:t}}),a=r[0].inst,n=r[1];return KD(function(){a.value=o,a.getSnapshot=t,gf(a)&&n({inst:a})},[e,o,t]),jD(function(){return gf(a)&&n({inst:a}),e(function(){gf(a)&&n({inst:a})})},[e]),XD(o),o}function gf(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!qD(e,o)}catch{return!0}}function ZD(e,t){return t()}var QD=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ZD:YD;lx.useSyncExternalStore=cn.useSyncExternalStore!==void 0?cn.useSyncExternalStore:QD});var dx=mv((q$,cx)=>{"use strict";cx.exports=ux()});O();O();O();import*as oa from"react/jsx-runtime";var Ve=oa.Fragment,d=oa.jsx,P=oa.jsxs;function hv(e,t){let o=le(t),r=n=>{let{children:s,...i}=n,l=Z(()=>i,Object.values(i));return d(o.Provider,{value:l,children:s})};r.displayName=e+"Provider";function a(n){let s=te(o);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}return[r,a]}function Ee(e,t=[]){let o=[];function r(n,s){let i=le(s),l=o.length;o=[...o,s];let u=f=>{let{scope:p,children:m,...h}=f,g=p?.[e]?.[l]||i,v=Z(()=>h,Object.values(h));return d(g.Provider,{value:v,children:m})};u.displayName=n+"Provider";function c(f,p){let m=p?.[e]?.[l]||i,h=te(m);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[u,c]}let a=()=>{let n=o.map(s=>le(s));return function(i){let l=i?.[e]||n;return Z(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return a.scopeName=e,[r,AE(a,...t)]}function AE(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let f=l(n)[`__scope${u}`];return{...i,...f}},{});return Z(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}O();O();function vv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nt(...e){return t=>{let o=!1,r=e.map(a=>{let n=vv(a,t);return!o&&typeof n=="function"&&(o=!0),n});if(o)return()=>{for(let a=0;a<r.length;a++){let n=r[a];typeof n=="function"?n():vv(e[a],null)}}}}function pe(...e){return B(Nt(...e),e)}O();function It(e){let t=DE(e),o=C((r,a)=>{let{children:n,...s}=r,i=Ie.toArray(n),l=i.find(NE);if(l){let u=l.props.children,c=i.map(f=>f===l?Ie.count(u)>1?Ie.only(null):Le(u)?u.props.children:null:f);return d(t,{...s,ref:a,children:Le(u)?Fe(u,void 0,c):null})}return d(t,{...s,ref:a,children:n})});return o.displayName=`${e}.Slot`,o}var Ya=It("Slot");function DE(e){let t=C((o,r)=>{let{children:a,...n}=o;if(Le(a)){let s=FE(a),i=OE(n,a.props);return a.type!==Je&&(i.ref=r?Nt(r,s):s),Fe(a,i)}return Ie.count(a)>1?Ie.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xv=Symbol("radix.slottable");function Jd(e){let t=({children:o})=>d(Ve,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=xv,t}var yv=Jd("Slottable");function NE(e){return Le(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xv}function OE(e,t){let o={...t};for(let r in t){let a=e[r],n=t[r];/^on[A-Z]/.test(r)?a&&n?o[r]=(...i)=>{let l=n(...i);return a(...i),l}:a&&(o[r]=a):r==="style"?o[r]={...a,...n}:r==="className"&&(o[r]=[a,n].filter(Boolean).join(" "))}return{...e,...o}}function FE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}O();function Lo(e){let t=e+"CollectionProvider",[o,r]=Ee(t),[a,n]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{let{scope:v,children:x}=g,y=Pe.useRef(null),b=Pe.useRef(new Map).current;return d(a,{scope:v,itemMap:b,collectionRef:y,children:x})};s.displayName=t;let i=e+"CollectionSlot",l=It(i),u=Pe.forwardRef((g,v)=>{let{scope:x,children:y}=g,b=n(i,x),R=pe(v,b.collectionRef);return d(l,{ref:R,children:y})});u.displayName=i;let c=e+"CollectionItemSlot",f="data-radix-collection-item",p=It(c),m=Pe.forwardRef((g,v)=>{let{scope:x,children:y,...b}=g,R=Pe.useRef(null),w=pe(v,R),I=n(c,x);return Pe.useEffect(()=>(I.itemMap.set(R,{ref:R,...b}),()=>void I.itemMap.delete(R))),d(p,{[f]:"",ref:w,children:y})});m.displayName=c;function h(g){let v=n(e+"CollectionConsumer",g);return Pe.useCallback(()=>{let y=v.collectionRef.current;if(!y)return[];let b=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((I,S)=>b.indexOf(I.ref.current)-b.indexOf(S.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},h,r]}var b5=!!(typeof window<"u"&&window.document&&window.document.createElement);function X(e,t,{checkForDefaultPrevented:o=!0}={}){return function(a){if(e?.(a),o===!1||!a.defaultPrevented)return t?.(a)}}O();O();var Ae=globalThis?.document?ct:()=>{};O();var _E=H[" useInsertionEffect ".trim().toString()]||Ae;function Be({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){let[a,n,s]=VE({defaultProp:t,onChange:o}),i=e!==void 0,l=i?e:a;{let c=E(e!==void 0);D(()=>{let f=c.current;f!==i&&console.warn(`${r} is changing from ${f?"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.`),c.current=i},[i,r])}let u=B(c=>{if(i){let f=BE(c)?c(e):c;f!==e&&s.current?.(f)}else n(c)},[i,e,n,s]);return[l,u]}function VE({defaultProp:e,onChange:t}){let[o,r]=k(e),a=E(o),n=E(t);return _E(()=>{n.current=t},[t]),D(()=>{a.current!==o&&(n.current?.(o),a.current=o)},[o,a]),[o,r,n]}function BE(e){return typeof e=="function"}var R5=Symbol("RADIX:SYNC_STATE");O();import*as st from"react-dom";var Ls=st.createPortal;var Go=st.flushSync;var bv=st.default!==void 0?st.default:st;var HE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=HE.reduce((e,t)=>{let o=It(`Primitive.${t}`),r=C((a,n)=>{let{asChild:s,...i}=a,l=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Za(e,t){e&&Go(()=>e.dispatchEvent(t))}O();O();O();function UE(e,t){return Gt((o,r)=>t[o][r]??o,e)}var $e=e=>{let{present:t,children:o}=e,r=GE(t),a=typeof o=="function"?o({present:r.isPresent}):Ie.only(o),n=pe(r.ref,zE(a));return typeof o=="function"||r.isPresent?Fe(a,{ref:n}):null};$e.displayName="Presence";function GE(e){let[t,o]=k(),r=E(null),a=E(e),n=E("none"),s=e?"mounted":"unmounted",[i,l]=UE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D(()=>{let u=Yl(r.current);n.current=i==="mounted"?u:"none"},[i]),Ae(()=>{let u=r.current,c=a.current;if(c!==e){let p=n.current,m=Yl(u);e?l("MOUNT"):m==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&p!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),Ae(()=>{if(t){let u,c=t.ownerDocument.defaultView??window,f=m=>{let g=Yl(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(l("ANIMATION_END"),!a.current)){let v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=m=>{m.target===t&&(n.current=Yl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:B(u=>{r.current=u?getComputedStyle(u):null,o(u)},[])}}function Yl(e){return e?.animationName||"none"}function zE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}O();var WE=H[" useId ".trim().toString()]||(()=>{}),qE=0;function Te(e){let[t,o]=k(WE());return Ae(()=>{e||o(r=>r??String(qE++))},[e]),e||(t?`radix-${t}`:"")}var Zl="Collapsible",[$E,ef]=Ee(Zl),[jE,tf]=$E(Zl),Cv=C((e,t)=>{let{__scopeCollapsible:o,open:r,defaultOpen:a,disabled:n,onOpenChange:s,...i}=e,[l,u]=Be({prop:r,defaultProp:a??!1,onChange:s,caller:Zl});return d(jE,{scope:o,disabled:n,contentId:Te(),open:l,onOpenToggle:B(()=>u(c=>!c),[u]),children:d(Y.div,{"data-state":rf(l),"data-disabled":n?"":void 0,...i,ref:t})})});Cv.displayName=Zl;var wv="CollapsibleTrigger",Sv=C((e,t)=>{let{__scopeCollapsible:o,...r}=e,a=tf(wv,o);return d(Y.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":rf(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:X(e.onClick,a.onOpenToggle)})});Sv.displayName=wv;var of="CollapsibleContent",Rv=C((e,t)=>{let{forceMount:o,...r}=e,a=tf(of,e.__scopeCollapsible);return d($e,{present:o||a.open,children:({present:n})=>d(KE,{...r,ref:t,present:n})})});Rv.displayName=of;var KE=C((e,t)=>{let{__scopeCollapsible:o,present:r,children:a,...n}=e,s=tf(of,o),[i,l]=k(r),u=E(null),c=pe(t,u),f=E(0),p=f.current,m=E(0),h=m.current,g=s.open||i,v=E(g),x=E(void 0);return D(()=>{let y=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(y)},[]),Ae(()=>{let y=u.current;if(y){x.current=x.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";let b=y.getBoundingClientRect();f.current=b.height,m.current=b.width,v.current||(y.style.transitionDuration=x.current.transitionDuration,y.style.animationName=x.current.animationName),l(r)}},[s.open,r]),d(Y.div,{"data-state":rf(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...n,ref:c,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&a})});function rf(e){return e?"open":"closed"}var Ql=Cv,Qa=Sv,Ts=Rv;O();var XE=le(void 0);function To(e){let t=te(XE);return e||t||"ltr"}var ao="Accordion",YE=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[nf,ZE,QE]=Lo(ao),[eu,oW]=Ee(ao,[QE,ef]),sf=ef(),Pv=Pe.forwardRef((e,t)=>{let{type:o,...r}=e,a=r,n=r;return d(nf.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?d(oA,{...n,ref:t}):d(tA,{...a,ref:t})})});Pv.displayName=ao;var[Lv,JE]=eu(ao),[Tv,eA]=eu(ao,{collapsible:!1}),tA=Pe.forwardRef((e,t)=>{let{value:o,defaultValue:r,onValueChange:a=()=>{},collapsible:n=!1,...s}=e,[i,l]=Be({prop:o,defaultProp:r??"",onChange:a,caller:ao});return d(Lv,{scope:e.__scopeAccordion,value:Pe.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:Pe.useCallback(()=>n&&l(""),[n,l]),children:d(Tv,{scope:e.__scopeAccordion,collapsible:n,children:d(Mv,{...s,ref:t})})})}),oA=Pe.forwardRef((e,t)=>{let{value:o,defaultValue:r,onValueChange:a=()=>{},...n}=e,[s,i]=Be({prop:o,defaultProp:r??[],onChange:a,caller:ao}),l=Pe.useCallback(c=>i((f=[])=>[...f,c]),[i]),u=Pe.useCallback(c=>i((f=[])=>f.filter(p=>p!==c)),[i]);return d(Lv,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:d(Tv,{scope:e.__scopeAccordion,collapsible:!0,children:d(Mv,{...n,ref:t})})})}),[rA,tu]=eu(ao),Mv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,disabled:r,dir:a,orientation:n="vertical",...s}=e,i=Pe.useRef(null),l=pe(i,t),u=ZE(o),f=To(a)==="ltr",p=X(e.onKeyDown,m=>{if(!YE.includes(m.key))return;let h=m.target,g=u().filter(T=>!T.ref.current?.disabled),v=g.findIndex(T=>T.ref.current===h),x=g.length;if(v===-1)return;m.preventDefault();let y=v,b=0,R=x-1,w=()=>{y=v+1,y>R&&(y=b)},I=()=>{y=v-1,y<b&&(y=R)};switch(m.key){case"Home":y=b;break;case"End":y=R;break;case"ArrowRight":n==="horizontal"&&(f?w():I());break;case"ArrowDown":n==="vertical"&&w();break;case"ArrowLeft":n==="horizontal"&&(f?I():w());break;case"ArrowUp":n==="vertical"&&I();break}let S=y%x;g[S].ref.current?.focus()});return d(rA,{scope:o,disabled:r,direction:a,orientation:n,children:d(nf.Slot,{scope:o,children:d(Y.div,{...s,"data-orientation":n,ref:l,onKeyDown:r?void 0:p})})})}),Jl="AccordionItem",[aA,lf]=eu(Jl),kv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,value:r,...a}=e,n=tu(Jl,o),s=JE(Jl,o),i=sf(o),l=Te(),u=r&&s.value.includes(r)||!1,c=n.disabled||e.disabled;return d(aA,{scope:o,open:u,disabled:c,triggerId:l,children:d(Ql,{"data-orientation":n.orientation,"data-state":Fv(u),...i,...a,ref:t,disabled:c,open:u,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});kv.displayName=Jl;var Ev="AccordionHeader",Av=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=tu(ao,o),n=lf(Ev,o);return d(Y.h3,{"data-orientation":a.orientation,"data-state":Fv(n.open),"data-disabled":n.disabled?"":void 0,...r,ref:t})});Av.displayName=Ev;var af="AccordionTrigger",Dv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=tu(ao,o),n=lf(af,o),s=eA(af,o),i=sf(o);return d(nf.ItemSlot,{scope:o,children:d(Qa,{"aria-disabled":n.open&&!s.collapsible||void 0,"data-orientation":a.orientation,id:n.triggerId,...i,...r,ref:t})})});Dv.displayName=af;var Nv="AccordionContent",Ov=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=tu(ao,o),n=lf(Nv,o),s=sf(o);return d(Ts,{role:"region","aria-labelledby":n.triggerId,"data-orientation":a.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}})});Ov.displayName=Nv;function Fv(e){return e?"open":"closed"}var _v=Pv,Vv=kv,Bv=Av,uf=Dv,cf=Ov;O();var Hv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sA=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase()),df=e=>{let t=sA(e);return t.charAt(0).toUpperCase()+t.slice(1)},ou=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim(),Uv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};O();var Gv={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"};var zv=C(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:a="",children:n,iconNode:s,...i},l)=>me("svg",{ref:l,...Gv,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:ou("lucide",a),...!n&&!Uv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,c])=>me(u,c)),...Array.isArray(n)?n:[n]]));var j=(e,t)=>{let o=C(({className:r,...a},n)=>me(zv,{ref:n,iconNode:t,className:ou(`lucide-${Hv(df(e))}`,`lucide-${e}`,r),...a}));return o.displayName=df(e),o};var iA=[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Ms=j("align-center",iA);var lA=[["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 18h18",key:"1h113x"}],["path",{d:"M3 6h18",key:"d0wm0j"}]],ks=j("align-justify",lA);var uA=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Es=j("align-left",uA);var cA=[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],As=j("align-right",cA);var dA=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Ja=j("arrow-down",dA);var fA=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ds=j("arrow-left",fA);var pA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ns=j("arrow-right",pA);var mA=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],en=j("arrow-up-down",mA);var gA=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],tn=j("arrow-up",gA);var hA=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],Os=j("bold",hA);var vA=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],aa=j("calendar",vA);var xA=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pt=j("check",xA);var yA=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mo=j("chevron-down",yA);var bA=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],no=j("chevron-left",bA);var CA=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wt=j("chevron-right",CA);var wA=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Fs=j("chevron-up",wA);var SA=[["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"}]],so=j("circle-alert",SA);var RA=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],hr=j("circle-check-big",RA);var IA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],na=j("circle",IA);var PA=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],_s=j("clock",PA);var LA=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Vs=j("code",LA);var TA=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Bs=j("copy",TA);var MA=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Hs=j("credit-card",MA);var kA=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],on=j("crown",kA);var EA=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],Us=j("dot",EA);var AA=[["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"}]],ko=j("ellipsis",AA);var DA=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Gs=j("external-link",DA);var NA=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sa=j("eye",NA);var OA=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],zs=j("file-text",OA);var FA=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Ws=j("file",FA);var _A=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],qs=j("git-fork",_A);var VA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ia=j("image",VA);var BA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],rn=j("info",BA);var HA=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],$s=j("italic",HA);var UA=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],js=j("link",UA);var GA=[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]],Ks=j("list-ordered",GA);var zA=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Xs=j("list",zA);var WA=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ot=j("loader-circle",WA);var qA=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],an=j("lock",qA);var $A=[["path",{d:"M5 12h14",key:"1ays0h"}]],Ys=j("minus",$A);var jA=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Zs=j("music",jA);var KA=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],nn=j("palette",KA);var XA=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Qs=j("phone",XA);var YA=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],ru=j("pipette",YA);var ZA=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],Js=j("quote",ZA);var QA=[["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]],ei=j("redo",QA);var JA=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],la=j("search",JA);var eD=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Pt=j("square-pen",eD);var tD=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],vr=j("star",tD);var oD=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],ti=j("strikethrough",oD);var rD=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],xr=j("triangle-alert",rD);var aD=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],oi=j("underline",aD);var nD=[["path",{d:"M3 7v6h6",key:"1v2h90"}],["path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",key:"1r6uu6"}]],ri=j("undo",nD);var sD=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ai=j("upload",sD);var iD=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],ni=j("video",iD);var lD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ot=j("x",lD);var uD=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],sn=j("zap",uD);O();function Wv(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=Wv(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function au(){for(var e,t,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=Wv(e))&&(r&&(r+=" "),r+=t);return r}var mf="-",cD=e=>{let t=fD(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split(mf);return i[0]===""&&i.length!==1&&i.shift(),jv(i,t)||dD(s)},getConflictingClassGroupIds:(s,i)=>{let l=o[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},jv=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?jv(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(mf);return t.validators.find(({validator:s})=>s(n))?.classGroupId},qv=/^\[(.+)\]$/,dD=e=>{if(qv.test(e)){let t=qv.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},fD=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return mD(Object.entries(e.classGroups),o).forEach(([n,s])=>{pf(s,r,n,t)}),r},pf=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:$v(t,a);n.classGroupId=o;return}if(typeof a=="function"){if(pD(a)){pf(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([n,s])=>{pf(s,$v(t,n),o,r)})})},$v=(e,t)=>{let o=e;return t.split(mf).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},pD=e=>e.isThemeGetter,mD=(e,t)=>t?e.map(([o,r])=>{let a=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[o,a]}):e,gD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(n,s)=>{o.set(n,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let s=o.get(n);if(s!==void 0)return s;if((s=r.get(n))!==void 0)return a(n,s),s},set(n,s){o.has(n)?o.set(n,s):a(n,s)}}},Kv="!",hD=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],n=t.length,s=i=>{let l=[],u=0,c=0,f;for(let v=0;v<i.length;v++){let x=i[v];if(u===0){if(x===a&&(r||i.slice(v,v+n)===t)){l.push(i.slice(c,v)),c=v+n;continue}if(x==="/"){f=v;continue}}x==="["?u++:x==="]"&&u--}let p=l.length===0?i:i.substring(c),m=p.startsWith(Kv),h=m?p.substring(1):p,g=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}};return o?i=>o({className:i,parseClassName:s}):s},vD=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},xD=e=>({cache:gD(e.cacheSize),parseClassName:hD(e),...cD(e)}),yD=/\s+/,bD=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,n=[],s=e.trim().split(yD),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:c,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(u),h=!!m,g=r(h?p.substring(0,m):p);if(!g){if(!h){i=u+(i.length>0?" "+i:i);continue}if(g=r(p),!g){i=u+(i.length>0?" "+i:i);continue}h=!1}let v=vD(c).join(":"),x=f?v+Kv:v,y=x+g;if(n.includes(y))continue;n.push(y);let b=a(g,h);for(let R=0;R<b.length;++R){let w=b[R];n.push(x+w)}i=u+(i.length>0?" "+i:i)}return i};function CD(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Xv(t))&&(r&&(r+=" "),r+=o);return r}var Xv=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Xv(e[r]))&&(o&&(o+=" "),o+=t);return o};function wD(e,...t){let o,r,a,n=s;function s(l){let u=t.reduce((c,f)=>f(c),e());return o=xD(u),r=o.cache.get,a=o.cache.set,n=i,i(l)}function i(l){let u=r(l);if(u)return u;let c=bD(l,o);return a(l,c),c}return function(){return n(CD.apply(null,arguments))}}var ze=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Yv=/^\[(?:([a-z-]+):)?(.+)\]$/i,SD=/^\d+\/\d+$/,RD=new Set(["px","full","screen"]),ID=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PD=/\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$/,LD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,TD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,MD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zo=e=>ln(e)||RD.has(e)||SD.test(e),yr=e=>un(e,"length",_D),ln=e=>!!e&&!Number.isNaN(Number(e)),ff=e=>un(e,"number",ln),si=e=>!!e&&Number.isInteger(Number(e)),kD=e=>e.endsWith("%")&&ln(e.slice(0,-1)),Ce=e=>Yv.test(e),br=e=>ID.test(e),ED=new Set(["length","size","percentage"]),AD=e=>un(e,ED,Zv),DD=e=>un(e,"position",Zv),ND=new Set(["image","url"]),OD=e=>un(e,ND,BD),FD=e=>un(e,"",VD),ii=()=>!0,un=(e,t,o)=>{let r=Yv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},_D=e=>PD.test(e)&&!LD.test(e),Zv=()=>!1,VD=e=>TD.test(e),BD=e=>MD.test(e);var HD=()=>{let e=ze("colors"),t=ze("spacing"),o=ze("blur"),r=ze("brightness"),a=ze("borderColor"),n=ze("borderRadius"),s=ze("borderSpacing"),i=ze("borderWidth"),l=ze("contrast"),u=ze("grayscale"),c=ze("hueRotate"),f=ze("invert"),p=ze("gap"),m=ze("gradientColorStops"),h=ze("gradientColorStopPositions"),g=ze("inset"),v=ze("margin"),x=ze("opacity"),y=ze("padding"),b=ze("saturate"),R=ze("scale"),w=ze("sepia"),I=ze("skew"),S=ze("space"),T=ze("translate"),M=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",Ce,t],V=()=>[Ce,t],U=()=>["",zo,yr],N=()=>["auto",ln,Ce],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",Ce],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[ln,Ce];return{cacheSize:500,separator:":",theme:{colors:[ii],spacing:[zo,yr],blur:["none","",br,Ce],brightness:se(),borderColor:[e],borderRadius:["none","","full",br,Ce],borderSpacing:V(),borderWidth:U(),contrast:se(),grayscale:q(),hueRotate:se(),invert:q(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[kD,yr],inset:_(),margin:_(),opacity:se(),padding:V(),saturate:se(),scale:se(),sepia:q(),skew:se(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[br]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$(),Ce]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",si,Ce]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",si,Ce]}],"grid-cols":[{"grid-cols":[ii]}],"col-start-end":[{col:["auto",{span:["full",si,Ce]},Ce]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[ii]}],"row-start-end":[{row:["auto",{span:[si,Ce]},Ce]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ce,t]}],"min-w":[{"min-w":[Ce,t,"min","max","fit"]}],"max-w":[{"max-w":[Ce,t,"none","full","min","max","fit","prose",{screen:[br]},br]}],h:[{h:[Ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",br,yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ff]}],"font-family":[{font:[ii]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",ln,ff]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zo,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zo,yr]}],"underline-offset":[{"underline-offset":["auto",zo,Ce]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),DD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",AD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},OD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:G()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[zo,Ce]}],"outline-w":[{outline:[zo,yr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[zo,yr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",br,FD]}],"shadow-color":[{shadow:[ii]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",br,Ce]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"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:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[si,Ce]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zo,yr,ff]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Qv=wD(HD);function L(...e){return Qv(au(e))}function li(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return String(e);if(Array.isArray(e))return e.map(li).filter(Boolean).join(" ").trim();if(Le(e)){let t=e.props;return li(t.children)}return""}var UD=_v,Jv=C(({className:e,...t},o)=>d(Vv,{ref:o,className:L("moonui-theme","border-b border-border",e),...t}));Jv.displayName="AccordionItem";var ex=C(({className:e,children:t,...o},r)=>d(Bv,{className:"flex",children:P(uf,{ref:r,className:L("flex flex-1 items-center justify-between py-4 font-medium transition-all","hover:underline hover:text-primary","[&[data-state=open]>svg]:rotate-180",e),...o,children:[t,d(Mo,{className:"h-4 w-4 shrink-0 transition-transform duration-200 opacity-70 group-hover:opacity-100"})]})}));ex.displayName=uf.displayName;var tx=C(({className:e,children:t,...o},r)=>d(cf,{ref:r,className:L("overflow-hidden text-sm text-foreground/80 transition-all","data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...o,children:d("div",{className:"pb-4 pt-0",children:t})}));tx.displayName=cf.displayName;O();var ox=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rx=au,Q=(e,t)=>o=>{var r;if(t?.variants==null)return rx(e,o?.class,o?.className);let{variants:a,defaultVariants:n}=t,s=Object.keys(a).map(u=>{let c=o?.[u],f=n?.[u];if(c===null)return null;let p=ox(c)||ox(f);return a[u][p]}),i=o&&Object.entries(o).reduce((u,c)=>{let[f,p]=c;return p===void 0||(u[f]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:p,...m}=c;return Object.entries(m).every(h=>{let[g,v]=h;return Array.isArray(v)?v.includes({...n,...i}[g]):{...n,...i}[g]===v})?[...u,f,p]:u},[]);return rx(e,s,l,o?.class,o?.className)};var GD=Q("relative w-full flex items-center gap-3 p-4 border text-foreground [&>svg]:shrink-0",{variants:{variant:{default:"bg-background text-foreground border-border",primary:"bg-primary/10 text-primary border-primary/30",success:"bg-success/10 text-success border-success/30",warning:"bg-warning/10 text-warning-subtle-foreground border-warning/30",error:"bg-destructive/10 text-destructive border-destructive/30",info:"bg-info/10 text-info border-info/30"},size:{sm:"py-2 text-xs",md:"py-3 text-sm",lg:"py-4 text-base",default:"py-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-sm",default:"rounded-md",lg:"rounded-lg",full:"rounded-full"},withClose:{true:"pr-10"}},defaultVariants:{variant:"default",size:"md",radius:"default",withClose:!1}}),ax=C(({className:e,variant:t="default",size:o,radius:r,hideIcon:a=!1,closable:n=!1,onClose:s,children:i,...l},u)=>{let c=Z(()=>{switch(t){case"success":return pt;case"warning":return xr;case"error":return so;case"info":return rn;default:return rn}},[t]);return P("div",{ref:u,role:"alert",className:L("moonui-theme",GD({variant:t,size:o,radius:r,withClose:n}),e),...l,children:[!a&&d(c,{className:"h-5 w-5"}),d("div",{className:"flex-1",children:i}),n&&s&&d("button",{onClick:s,className:"absolute right-3 top-3 inline-flex h-6 w-6 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100","aria-label":"Close alert",children:d(Ot,{className:"h-4 w-4"})})]})});ax.displayName="Alert";var nx=C(({className:e,as:t="div",...o},r)=>d(t,{ref:r,className:L("moonui-theme","font-semibold leading-tight tracking-tight mb-1",e),...o}));nx.displayName="AlertTitle";var sx=C(({className:e,...t},o)=>d("div",{ref:o,className:L("moonui-theme","text-sm leading-5 text-muted-foreground",e),...t}));sx.displayName="AlertDescription";O();var zD=Q("relative overflow-hidden",{variants:{variant:{default:"bg-muted/10",ghost:"bg-transparent",outline:"border border-border",card:"bg-card shadow-sm"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"default",radius:"md"}}),ix=C(({className:e,variant:t,radius:o,ratio:r=16/9,style:a,children:n,...s},i)=>d("div",{ref:i,className:L("moonui-theme",zD({variant:t,radius:o}),e),style:{position:"relative",paddingBottom:`${1/r*100}%`,...a},...s,children:d("div",{className:"absolute inset-0",children:n})}));ix.displayName="AspectRatio";O();O();O();function We(e){let t=E(e);return D(()=>{t.current=e}),Z(()=>(...o)=>t.current?.(...o),[])}var fx=gE(dx(),1);function px(){return(0,fx.useSyncExternalStore)(JD,()=>!0,()=>!1)}function JD(){return()=>{}}var hf="Avatar",[e1,J$]=Ee(hf),[t1,gx]=e1(hf),hx=C((e,t)=>{let{__scopeAvatar:o,...r}=e,[a,n]=k("idle");return d(t1,{scope:o,imageLoadingStatus:a,onImageLoadingStatusChange:n,children:d(Y.span,{...r,ref:t})})});hx.displayName=hf;var vx="AvatarImage",xx=C((e,t)=>{let{__scopeAvatar:o,src:r,onLoadingStatusChange:a=()=>{},...n}=e,s=gx(vx,o),i=o1(r,n),l=We(u=>{a(u),s.onImageLoadingStatusChange(u)});return Ae(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?d(Y.img,{...n,ref:t,src:r}):null});xx.displayName=vx;var yx="AvatarFallback",bx=C((e,t)=>{let{__scopeAvatar:o,delayMs:r,...a}=e,n=gx(yx,o),[s,i]=k(r===void 0);return D(()=>{if(r!==void 0){let l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&n.imageLoadingStatus!=="loaded"?d(Y.span,{...a,ref:t}):null});bx.displayName=yx;function mx(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function o1(e,{referrerPolicy:t,crossOrigin:o}){let r=px(),a=E(null),n=(()=>r?(a.current||(a.current=new window.Image),a.current):null)(),[s,i]=k(()=>mx(n,e));return Ae(()=>{i(mx(n,e))},[n,e]),Ae(()=>{let l=f=>()=>{i(f)};if(!n)return;let u=l("loaded"),c=l("error");return n.addEventListener("load",u),n.addEventListener("error",c),t&&(n.referrerPolicy=t),typeof o=="string"&&(n.crossOrigin=o),()=>{n.removeEventListener("load",u),n.removeEventListener("error",c)}},[n,o,t]),s}var vf=hx,xf=xx,yf=bx;var a1=Q("relative flex shrink-0 overflow-hidden",{variants:{size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12",xl:"h-16 w-16","2xl":"h-20 w-20",default:"h-10 w-10"},radius:{default:"rounded-full",sm:"rounded-md",lg:"rounded-xl",full:"rounded-full",none:"rounded-none"},variant:{default:"",ring:"ring-2 ring-border",ringOffset:"ring-2 ring-border ring-offset-2 ring-offset-background",border:"border-2 border-border"}},defaultVariants:{size:"md",radius:"default",variant:"default"}}),bf=C(({className:e,size:t,radius:o,variant:r,...a},n)=>d(vf,{ref:n,className:L("moonui-theme",a1({size:t,radius:o,variant:r}),e),...a}));bf.displayName=vf.displayName;var Cx=C(({className:e,alt:t="",...o},r)=>d(xf,{ref:r,alt:t,className:L("moonui-theme","aspect-square h-full w-full",e),...o}));Cx.displayName=xf.displayName;var Cf=C(({className:e,...t},o)=>d(yf,{ref:o,className:L("flex h-full w-full items-center justify-center bg-muted",e),...t}));Cf.displayName=yf.displayName;var wx=C(({className:e,max:t,children:o,overlapOffset:r=-8,...a},n)=>{let s=Ie.toArray(o),i=t?s.slice(0,t):s,l=t?Math.max(0,s.length-t):0;return d("div",{ref:n,className:L("moonui-theme","flex items-center",e),...a,children:P("div",{className:"flex",children:[i.map((u,c)=>d("div",{className:"relative",style:{marginLeft:c===0?0:`${r}px`,zIndex:i.length-c},children:u},c)),l>0&&d("div",{className:"relative z-0",style:{marginLeft:`${r}px`},children:d(bf,{variant:"border",children:P(Cf,{children:["+",l]})})})]})})});wx.displayName="AvatarGroup";O();var Sx=Q(["inline-flex items-center justify-center gap-1.5","font-medium transition-colors duration-200","border focus:outline-none","focus-visible:ring-2 focus-visible:ring-offset-1","mr-2 mb-2 last:mr-0"],{variants:{variant:{primary:["border-transparent bg-primary text-primary-foreground","hover:bg-primary/90","focus-visible:ring-primary/30 dark:focus-visible:ring-primary/40","dark:shadow-inner dark:shadow-primary/10"],secondary:["border-transparent bg-secondary text-secondary-foreground","hover:bg-gray-200 dark:hover:bg-gray-600","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:bg-gray-700/50 dark:text-gray-50 dark:shadow-inner dark:shadow-gray-950/10"],outline:["border-gray-200 dark:border-gray-600","bg-transparent text-foreground","hover:border-gray-300 dark:hover:border-gray-500","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:text-gray-100 dark:bg-transparent dark:backdrop-blur-sm"],destructive:["border-transparent bg-error-600 text-white","hover:bg-error-700 dark:hover:bg-error-700","focus-visible:ring-error/30 dark:focus-visible:ring-error/25","dark:text-white dark:shadow-inner dark:shadow-error/10"],success:["border-transparent bg-success text-success-foreground","hover:bg-success/90 dark:hover:bg-success/80","focus-visible:ring-success/30 dark:focus-visible:ring-success/25","dark:bg-success/90 dark:text-success-foreground dark:shadow-inner dark:shadow-success/10"],warning:["border-transparent bg-warning text-warning-foreground","hover:bg-warning/90 dark:hover:bg-warning/80","focus-visible:ring-warning/30 dark:focus-visible:ring-warning/25","dark:bg-warning/90 dark:text-warning-foreground dark:shadow-inner dark:shadow-warning/10"],ghost:["border border-gray-200 bg-gray-50/50 text-gray-700","hover:bg-gray-100 dark:hover:bg-gray-800/60","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:border-gray-700 dark:bg-gray-800/30 dark:text-gray-300","transition-all duration-200"],pro:["border-transparent bg-gradient-to-r from-purple-600 to-pink-600 text-white","hover:from-purple-700 hover:to-pink-700","focus-visible:ring-purple-400/30 dark:focus-visible:ring-purple-500/40","shadow-md dark:shadow-lg dark:shadow-purple-500/10"],admin:["border-transparent bg-gradient-to-r from-purple-600 to-pink-600 text-white","hover:from-purple-700 hover:to-pink-700","focus-visible:ring-purple-400/30 dark:focus-visible:ring-purple-500/40","shadow-md dark:shadow-lg dark:shadow-purple-500/10"]},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-3 text-sm",lg:"h-8 px-4 text-base"},radius:{default:"rounded-full",sm:"rounded-md",lg:"rounded-xl",none:"rounded-none"}},defaultVariants:{variant:"primary",size:"md",radius:"default"}}),Lt=C(({className:e,variant:t,size:o,radius:r,withDot:a,dotColor:n,removable:s,onRemove:i,removeLabel:l,leftIcon:u,rightIcon:c,noAutoSpacing:f,children:p,...m},h)=>{let g=u,v=p;return t==="pro"&&(g=u||P("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-3 h-3",children:[d("path",{d:"M12 0L13.09 8.26L22 9L13.09 9.74L12 18L10.91 9.74L2 9L10.91 8.26L12 0Z",fill:"currentColor"}),d("path",{d:"M19 5L19.5 7L21 7.5L19.5 8L19 10L18.5 8L17 7.5L18.5 7L19 5Z",fill:"currentColor"}),d("path",{d:"M19 15L19.5 17L21 17.5L19.5 18L19 20L18.5 18L17 17.5L18.5 17L19 15Z",fill:"currentColor"})]}),v=p||"Pro"),t==="admin"&&(g=u||d("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-3 h-3",children:d("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"currentColor"})}),v=p||"Admin Pro"),P("div",{ref:h,className:L("moonui-theme",Sx({variant:t,size:o,radius:r}),f&&"mr-0 mb-0",e),"data-removable":s?"":void 0,...m,children:[a&&d("span",{className:L("h-2 w-2 rounded-full",n||(t==="destructive"||t==="success"||t==="warning"?"bg-white":t==="secondary"?"bg-secondary-foreground":t==="outline"||t==="ghost"?"bg-foreground":t==="pro"||t==="admin"?"bg-white":"bg-primary-foreground")),"aria-hidden":"true"}),g&&d("span",{className:"inline-flex shrink-0 items-center",children:g}),d("span",{className:"inline-flex items-center",children:v}),c&&d("span",{className:"inline-flex shrink-0 items-center",children:c}),s&&i&&d("button",{type:"button",className:"ml-1 -mr-1 h-3.5 w-3.5 rounded-full inline-flex items-center justify-center hover:bg-black/10 dark:hover:bg-white/10",onClick:x=>{x.stopPropagation(),i()},"aria-label":l||(li(v)?`Remove ${li(v)}`:"Remove badge"),children:d("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"opacity-70","aria-hidden":"true",children:d("path",{d:"M0.799988 7.19999L7.19999 0.799988M0.799988 0.799988L7.19999 7.19999",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Lt.displayName="Badge";O();var n1=Q("flex items-center gap-1.5 text-sm",{variants:{variant:{default:"text-foreground transition-colors",muted:"text-muted-foreground transition-colors",ghost:"text-foreground/60 transition-colors"},size:{md:"text-sm",sm:"text-xs",lg:"text-base",default:"text-sm"}},defaultVariants:{variant:"default",size:"md"}}),Rx=le(void 0),Ix=C(({className:e,variant:t,size:o,separator:r,showHomeIcon:a,...n},s)=>d(Rx.Provider,{value:r,children:d("nav",{ref:s,className:L("moonui-theme",n1({variant:t,size:o}),e),"aria-label":"breadcrumb",...n})}));Ix.displayName="Breadcrumb";var Px=C(({className:e,collapsed:t,collapsedWidth:o=3,...r},a)=>{let n=Ie.toArray(r.children).filter(Boolean),s=n.length;if(t&&s>o){let i=n[0],l=n.slice(-2);return P("ol",{ref:a,className:L("flex flex-wrap items-center gap-1.5 sm:gap-2.5",e),...r,children:[i,d(wf,{}),l]})}return d("ol",{ref:a,className:L("flex flex-wrap items-center gap-1.5 sm:gap-2.5",e),...r})});Px.displayName="BreadcrumbList";var Lx=C(({className:e,isCurrent:t,href:o,asChild:r=!1,children:a,...n},s)=>{let i=r?Ya:o?"a":"span",l=!r&&o?{href:o}:{};return d("li",{ref:s,className:L("moonui-theme","inline-flex items-center gap-1.5",e),...n,children:d(i,{"aria-current":t?"page":void 0,className:L("transition-colors duration-200 hover:text-foreground",t?"font-medium text-foreground":"text-muted-foreground hover:text-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30"),...l,children:a})})});Lx.displayName="BreadcrumbItem";var Tx=({children:e,className:t,icon:o,...r})=>{let a=te(Rx);return d("span",{role:"presentation","aria-hidden":"true",className:L("moonui-theme","text-muted-foreground opacity-70",t),...r,children:e||o||a||d(wt,{className:"h-3.5 w-3.5"})})};Tx.displayName="BreadcrumbSeparator";var wf=({className:e,icon:t,...o})=>P("span",{role:"presentation",className:L("moonui-theme","flex items-center text-muted-foreground hover:text-foreground/80 transition-colors duration-200",e),...o,children:[d("span",{"aria-hidden":"true",className:"flex items-center",children:t||d(ko,{className:"h-4 w-4"})}),d("span",{className:"sr-only",children:"More pages"})]});wf.displayName="BreadcrumbEllipsis";var Mx=C(({className:e,href:t,...o},r)=>d("a",{ref:r,href:t,className:L("transition-colors duration-200 hover:text-foreground text-muted-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30",e),...o}));Mx.displayName="BreadcrumbLink";var kx=C(({className:e,...t},o)=>d("span",{ref:o,className:L("font-medium text-foreground dark:text-white dark:text-opacity-95",e),...t}));kx.displayName="BreadcrumbPage";O();var nu=Q(["inline-flex items-center justify-center gap-2 whitespace-nowrap","font-medium relative","transition-all duration-200 ease-out","transform active:scale-[0.98]","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none disabled:transform-none"],{variants:{variant:{primary:["bg-primary text-primary-foreground","dark:bg-primary dark:text-primary-foreground","hover:bg-primary/90 dark:hover:bg-primary/90","active:bg-primary/80 dark:active:bg-primary/80","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],secondary:["bg-gray-100 text-gray-900","dark:bg-gray-800 dark:text-gray-100","hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600","border border-input","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","shadow-sm hover:shadow-md"],outline:["bg-background text-foreground","dark:bg-background dark:text-foreground","border border-input dark:border-input","hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent dark:hover:text-accent-foreground","active:bg-accent/80 dark:active:bg-accent/80","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],ghost:["text-gray-700","dark:text-gray-300","hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-gray-100","active:bg-gray-200 dark:active:bg-gray-700","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],destructive:["bg-destructive text-destructive-foreground","dark:bg-error-600 dark:text-destructive-foreground","hover:bg-destructive/90 dark:hover:bg-error-700","active:bg-destructive/80 dark:active:bg-error-800","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],success:["bg-success text-success-foreground","dark:bg-success-700 dark:text-success-foreground","hover:bg-success/90 dark:hover:bg-success-800","active:bg-success/80 dark:active:bg-success-900","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],link:["text-primary bg-transparent","underline-offset-4 hover:underline","hover:text-primary/80 active:text-primary/70","p-0 h-auto","transition-colors duration-200"],gradient:["bg-gradient-to-r from-purple-500 to-pink-500 text-white","hover:from-purple-600 hover:to-pink-600","active:from-purple-700 active:to-pink-700","shadow-xl shadow-purple-500/40","hover:shadow-2xl hover:shadow-purple-500/50","focus-visible:ring-purple-500/50","transition-all duration-300"],glow:["bg-blue-600 text-white","shadow-[0_0_30px_rgba(var(--glow-blue-rgb),0.5)]","hover:shadow-[0_0_40px_rgba(var(--glow-blue-rgb),0.7)]","active:shadow-[0_0_20px_rgba(var(--glow-blue-rgb),0.4)]","hover:bg-blue-700","focus-visible:ring-blue-500/50","transition-all duration-300"],soft:["bg-primary/10 text-primary","hover:bg-primary/20","active:bg-primary/30","focus-visible:ring-primary/50","dark:bg-primary-subtle dark:text-primary-subtle-foreground","dark:hover:bg-primary/30 dark:active:bg-primary/40","transition-colors duration-200"],glass:["bg-white/10 backdrop-blur-md text-foreground","border border-white/20","hover:bg-white/20 hover:border-white/30","active:bg-white/30","shadow-lg","focus-visible:ring-white/50","dark:bg-gray-800/10 dark:border-gray-700/20","dark:hover:bg-gray-800/20 dark:hover:border-gray-700/30","transition-all duration-200"],neon:["bg-transparent text-green-400","border-2 border-green-400","hover:bg-green-400 hover:text-gray-900","hover:shadow-[0_0_30px_rgba(var(--glow-green-rgb),0.6)]","active:shadow-[0_0_15px_rgba(var(--glow-green-rgb),0.4)]","focus-visible:ring-green-400/50","transition-all duration-300"]},size:{xs:"h-7 px-2.5 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-base",lg:"h-12 px-6 text-lg",xl:"h-14 px-8 text-xl",icon:"h-10 w-10 p-2","icon-sm":"h-8 w-8 p-1.5","icon-lg":"h-12 w-12 p-3"},rounded:{default:"rounded-xl",full:"rounded-full",none:"rounded-none",sm:"rounded-lg",lg:"rounded-2xl"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md",rounded:"default",fullWidth:!1}}),Me=C(({className:e,variant:t,size:o,rounded:r,fullWidth:a,asChild:n=!1,loading:s=!1,leftIcon:i,rightIcon:l,children:u,disabled:c,onClick:f,...p},m)=>{let h=n&&Le(u),g=h?Ya:"button",v=c||s,x=h?{"aria-disabled":v||void 0,"data-disabled":v?"":void 0}:{disabled:v},y=h&&v?b=>{b.preventDefault(),b.stopPropagation()}:f;return P(g,{className:L("moonui-theme",nu({variant:t,size:o,rounded:r,fullWidth:a,className:e}),h&&v&&"opacity-50 cursor-not-allowed pointer-events-none"),ref:m,...x,"aria-busy":s||void 0,"data-loading":s?"":void 0,...p,onClick:y,children:[s&&d(ot,{className:"w-4 h-4 animate-spin","aria-hidden":"true"}),!s&&i,h?d(yv,{children:u}):u,!s&&l]})});Me.displayName="Button";O();O();O();var dn=le({});O();function Eo(e){let t=E(null);return t.current===null&&(t.current=e()),t.current}O();var fn=typeof window<"u";var pn=fn?ct:D;O();O();O();var Cr=le(null);function ua(e,t){e.indexOf(t)===-1&&e.push(t)}function io(e,t){let o=e.indexOf(t);o>-1&&e.splice(o,1)}var it=(e,t,o)=>o>t?t:o<e?e:o;var Wo=()=>{},dt=()=>{};var mt={};var ui=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ci(e){return typeof e=="object"&&e!==null}var di=e=>/^0[^.\s]+$/u.test(e);function ca(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ke=e=>e;var s1=(e,t)=>o=>t(e(o)),lo=(...e)=>e.reduce(s1);var zt=(e,t,o)=>{let r=t-e;return r===0?1:(o-e)/r};var qo=class{constructor(){this.subscriptions=[]}add(t){return ua(this.subscriptions,t),()=>io(this.subscriptions,t)}notify(t,o,r){let a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,o,r);else for(let n=0;n<a;n++){let s=this.subscriptions[n];s&&s(t,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var et=e=>e*1e3,rt=e=>e/1e3;function fi(e,t){return t?e*(1e3/t):0}var Ex=(e,t,o)=>{let r=t-e;return((o-e)%r+r)%r+e};var Ax=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,i1=1e-7,l1=12;function u1(e,t,o,r,a){let n,s,i=0;do s=t+(o-t)/2,n=Ax(s,r,a)-e,n>0?o=s:t=s;while(Math.abs(n)>i1&&++i<l1);return s}function wr(e,t,o,r){if(e===t&&o===r)return Ke;let a=n=>u1(n,0,1,e,o);return n=>n===0||n===1?n:Ax(a(n),t,r)}var su=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var iu=e=>t=>1-e(1-t);var lu=wr(.33,1.53,.69,.99),mn=iu(lu),pi=su(mn);var mi=e=>(e*=2)<1?.5*mn(e):.5*(2-Math.pow(2,-10*(e-1)));var gi=e=>1-Math.sin(Math.acos(e)),hi=iu(gi),vi=su(gi);var Sf=wr(.42,0,1,1),Rf=wr(0,0,.58,1),xi=wr(.42,0,.58,1);var yi=e=>Array.isArray(e)&&typeof e[0]!="number";function bi(e,t){return yi(e)?e[Ex(0,e.length,t)]:e}var Ci=e=>Array.isArray(e)&&typeof e[0]=="number";var Dx={linear:Ke,easeIn:Sf,easeInOut:xi,easeOut:Rf,circIn:gi,circInOut:vi,circOut:hi,backIn:mn,backInOut:pi,backOut:lu,anticipate:mi},c1=e=>typeof e=="string",uu=e=>{if(Ci(e)){dt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,o,r,a]=e;return wr(t,o,r,a)}else if(c1(e))return dt(Dx[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Dx[e];return e};var wi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Tt={value:null,addProjectionMetrics:null};function Nx(e,t){let o=new Set,r=new Set,a=!1,n=!1,s=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1},l=0;function u(f){s.has(f)&&(c.schedule(f),e()),l++,f(i)}let c={schedule:(f,p=!1,m=!1)=>{let g=m&&a?o:r;return p&&s.add(f),g.has(f)||g.add(f),f},cancel:f=>{r.delete(f),s.delete(f)},process:f=>{if(i=f,a){n=!0;return}a=!0,[o,r]=[r,o],o.forEach(u),t&&Tt.value&&Tt.value.frameloop[t].push(l),l=0,o.clear(),a=!1,n&&(n=!1,c.process(f))}};return c}var d1=40;function cu(e,t){let o=!1,r=!0,a={delta:0,timestamp:0,isProcessing:!1},n=()=>o=!0,s=wi.reduce((b,R)=>(b[R]=Nx(n,t?R:void 0),b),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:p,render:m,postRender:h}=s,g=()=>{let b=mt.useManualTiming?a.timestamp:performance.now();o=!1,mt.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(b-a.timestamp,d1),1)),a.timestamp=b,a.isProcessing=!0,i.process(a),l.process(a),u.process(a),c.process(a),f.process(a),p.process(a),m.process(a),h.process(a),a.isProcessing=!1,o&&t&&(r=!1,e(g))},v=()=>{o=!0,r=!0,a.isProcessing||e(g)};return{schedule:wi.reduce((b,R)=>{let w=s[R];return b[R]=(I,S=!1,T=!1)=>(o||v(),w.schedule(I,S,T)),b},{}),cancel:b=>{for(let R=0;R<wi.length;R++)s[wi[R]].cancel(b)},state:a,steps:s}}var{schedule:we,cancel:gt,state:Ye,steps:Si}=cu(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ke,!0);var du;function f1(){du=void 0}var Ze={now:()=>(du===void 0&&Ze.set(Ye.isProcessing||mt.useManualTiming?Ye.timestamp:performance.now()),du),set:e=>{du=e,queueMicrotask(f1)}};var uo={layout:0,mainThread:0,waapi:0};var Ox=e=>t=>typeof t=="string"&&t.startsWith(e),da=Ox("--"),p1=Ox("var(--"),fa=e=>p1(e)?m1.test(e.split("/*")[0].trim()):!1,m1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Ao={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$o={...Ao,transform:e=>it(0,1,e)},Ri={...Ao,default:1};var Sr=e=>Math.round(e*1e5)/1e5;var gn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fx(e){return e==null}var _x=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var hn=(e,t)=>o=>!!(typeof o=="string"&&_x.test(o)&&o.startsWith(e)||t&&!Fx(o)&&Object.prototype.hasOwnProperty.call(o,t)),fu=(e,t,o)=>r=>{if(typeof r!="string")return r;let[a,n,s,i]=r.match(gn);return{[e]:parseFloat(a),[t]:parseFloat(n),[o]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var g1=e=>it(0,255,e),If={...Ao,transform:e=>Math.round(g1(e))},Do={test:hn("rgb","red"),parse:fu("red","green","blue"),transform:({red:e,green:t,blue:o,alpha:r=1})=>"rgba("+If.transform(e)+", "+If.transform(t)+", "+If.transform(o)+", "+Sr($o.transform(r))+")"};function h1(e){let t="",o="",r="",a="";return e.length>5?(t=e.substring(1,3),o=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),o=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,o+=o,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}var Ii={test:hn("#"),parse:h1,transform:Do.transform};var Pi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),co=Pi("deg"),ht=Pi("%"),de=Pi("px"),Pf=Pi("vh"),Lf=Pi("vw"),pu=(()=>({...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)}))();var Rr={test:hn("hsl","hue"),parse:fu("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:o,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(Sr(t))+", "+ht.transform(Sr(o))+", "+Sr($o.transform(r))+")"};var je={test:e=>Do.test(e)||Ii.test(e)||Rr.test(e),parse:e=>Do.test(e)?Do.parse(e):Rr.test(e)?Rr.parse(e):Ii.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Do.transform(e):Rr.transform(e),getAnimatableNone:e=>{let t=je.parse(e);return t.alpha=0,je.transform(t)}};var Vx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function v1(e){return isNaN(e)&&typeof e=="string"&&(e.match(gn)?.length||0)+(e.match(Vx)?.length||0)>0}var Hx="number",Ux="color",x1="var",y1="var(",Bx="${}",b1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ir(e){let t=e.toString(),o=[],r={color:[],number:[],var:[]},a=[],n=0,i=t.replace(b1,l=>(je.test(l)?(r.color.push(n),a.push(Ux),o.push(je.parse(l))):l.startsWith(y1)?(r.var.push(n),a.push(x1),o.push(l)):(r.number.push(n),a.push(Hx),o.push(parseFloat(l))),++n,Bx)).split(Bx);return{values:o,split:i,indexes:r,types:a}}function Gx(e){return Ir(e).values}function zx(e){let{split:t,types:o}=Ir(e),r=t.length;return a=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],a[s]!==void 0){let i=o[s];i===Hx?n+=Sr(a[s]):i===Ux?n+=je.transform(a[s]):n+=a[s]}return n}}var C1=e=>typeof e=="number"?0:je.test(e)?je.getAnimatableNone(e):e;function w1(e){let t=Gx(e);return zx(e)(t.map(C1))}var vt={test:v1,parse:Gx,createTransformer:zx,getAnimatableNone:w1};function Tf(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Wx({hue:e,saturation:t,lightness:o,alpha:r}){e/=360,t/=100,o/=100;let a=0,n=0,s=0;if(!t)a=n=s=o;else{let i=o<.5?o*(1+t):o+t-o*t,l=2*o-i;a=Tf(l,i,e+1/3),n=Tf(l,i,e),s=Tf(l,i,e-1/3)}return{red:Math.round(a*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:r}}function vn(e,t){return o=>o>0?t:e}var Re=(e,t,o)=>e+(t-e)*o;var Mf=(e,t,o)=>{let r=e*e,a=o*(t*t-r)+r;return a<0?0:Math.sqrt(a)},S1=[Ii,Do,Rr],R1=e=>S1.find(t=>t.test(e));function qx(e){let t=R1(e);if(Wo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let o=t.parse(e);return t===Rr&&(o=Wx(o)),o}var kf=(e,t)=>{let o=qx(e),r=qx(t);if(!o||!r)return vn(e,t);let a={...o};return n=>(a.red=Mf(o.red,r.red,n),a.green=Mf(o.green,r.green,n),a.blue=Mf(o.blue,r.blue,n),a.alpha=Re(o.alpha,r.alpha,n),Do.transform(a))};var mu=new Set(["none","hidden"]);function $x(e,t){return mu.has(e)?o=>o<=0?e:t:o=>o>=1?t:e}function I1(e,t){return o=>Re(e,t,o)}function gu(e){return typeof e=="number"?I1:typeof e=="string"?fa(e)?vn:je.test(e)?kf:T1:Array.isArray(e)?jx:typeof e=="object"?je.test(e)?kf:P1:vn}function jx(e,t){let o=[...e],r=o.length,a=e.map((n,s)=>gu(n)(n,t[s]));return n=>{for(let s=0;s<r;s++)o[s]=a[s](n);return o}}function P1(e,t){let o={...e,...t},r={};for(let a in o)e[a]!==void 0&&t[a]!==void 0&&(r[a]=gu(e[a])(e[a],t[a]));return a=>{for(let n in r)o[n]=r[n](a);return o}}function L1(e,t){let o=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let n=t.types[a],s=e.indexes[n][r[n]],i=e.values[s]??0;o[a]=i,r[n]++}return o}var T1=(e,t)=>{let o=vt.createTransformer(t),r=Ir(e),a=Ir(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?mu.has(e)&&!a.values.length||mu.has(t)&&!r.values.length?$x(e,t):lo(jx(L1(r,a),a.values),o):(Wo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),vn(e,t))};function hu(e,t,o){return typeof e=="number"&&typeof t=="number"&&typeof o=="number"?Re(e,t,o):gu(e)(e,t)}var Kx=e=>{let t=({timestamp:o})=>e(o);return{start:(o=!0)=>we.update(t,o),stop:()=>gt(t),now:()=>Ye.isProcessing?Ye.timestamp:Ze.now()}};var vu=(e,t,o=10)=>{let r="",a=Math.max(Math.round(t/o),2);for(let n=0;n<a;n++)r+=Math.round(e(n/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function xn(e){let t=0,o=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=o,r=e.next(t);return t>=2e4?1/0:t}function Li(e,t=100,o){let r=o({...e,keyframes:[0,t]}),a=Math.min(xn(r),2e4);return{type:"keyframes",ease:n=>r.next(a*n).value/t,duration:rt(a)}}var M1=5;function xu(e,t,o){let r=Math.max(t-M1,0);return fi(o-e(r),t-r)}var qe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var Af=.001;function Xx({duration:e=qe.duration,bounce:t=qe.bounce,velocity:o=qe.velocity,mass:r=qe.mass}){let a,n;Wo(e<=et(qe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=it(qe.minDamping,qe.maxDamping,s),e=it(qe.minDuration,qe.maxDuration,rt(e)),s<1?(a=u=>{let c=u*s,f=c*e,p=c-o,m=yu(u,s),h=Math.exp(-f);return Af-p/m*h},n=u=>{let f=u*s*e,p=f*o+o,m=Math.pow(s,2)*Math.pow(u,2)*e,h=Math.exp(-f),g=yu(Math.pow(u,2),s);return(-a(u)+Af>0?-1:1)*((p-m)*h)/g}):(a=u=>{let c=Math.exp(-u*e),f=(u-o)*e+1;return-Af+c*f},n=u=>{let c=Math.exp(-u*e),f=(o-u)*(e*e);return c*f});let i=5/e,l=E1(a,n,i);if(e=et(e),isNaN(l))return{stiffness:qe.stiffness,damping:qe.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var k1=12;function E1(e,t,o){let r=o;for(let a=1;a<k1;a++)r=r-e(r)/t(r);return r}function yu(e,t){return e*Math.sqrt(1-t*t)}var A1=["duration","bounce"],D1=["stiffness","damping","mass"];function Yx(e,t){return t.some(o=>e[o]!==void 0)}function N1(e){let t={velocity:qe.velocity,stiffness:qe.stiffness,damping:qe.damping,mass:qe.mass,isResolvedFromDuration:!1,...e};if(!Yx(e,D1)&&Yx(e,A1))if(e.visualDuration){let o=e.visualDuration,r=2*Math.PI/(o*1.2),a=r*r,n=2*it(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:qe.mass,stiffness:a,damping:n}}else{let o=Xx(e);t={...t,...o,mass:qe.mass},t.isResolvedFromDuration=!0}return t}function jo(e=qe.visualDuration,t=qe.bounce){let o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:a}=o,n=o.keyframes[0],s=o.keyframes[o.keyframes.length-1],i={done:!1,value:n},{stiffness:l,damping:u,mass:c,duration:f,velocity:p,isResolvedFromDuration:m}=N1({...o,velocity:-rt(o.velocity||0)}),h=p||0,g=u/(2*Math.sqrt(l*c)),v=s-n,x=rt(Math.sqrt(l/c)),y=Math.abs(v)<5;r||(r=y?qe.restSpeed.granular:qe.restSpeed.default),a||(a=y?qe.restDelta.granular:qe.restDelta.default);let b;if(g<1){let w=yu(x,g);b=I=>{let S=Math.exp(-g*x*I);return s-S*((h+g*x*v)/w*Math.sin(w*I)+v*Math.cos(w*I))}}else if(g===1)b=w=>s-Math.exp(-x*w)*(v+(h+x*v)*w);else{let w=x*Math.sqrt(g*g-1);b=I=>{let S=Math.exp(-g*x*I),T=Math.min(w*I,300);return s-S*((h+g*x*v)*Math.sinh(T)+w*v*Math.cosh(T))/w}}let R={calculatedDuration:m&&f||null,next:w=>{let I=b(w);if(m)i.done=w>=f;else{let S=w===0?h:0;g<1&&(S=w===0?et(h):xu(b,w,I));let T=Math.abs(S)<=r,M=Math.abs(s-I)<=a;i.done=T&&M}return i.value=i.done?s:I,i},toString:()=>{let w=Math.min(xn(R),2e4),I=vu(S=>R.next(w*S).value,w,30);return w+"ms "+I},toTransition:()=>{}};return R}jo.applyToOptions=e=>{let t=Li(e,100,jo);return e.ease=t.ease,e.duration=et(t.duration),e.type="keyframes",e};function Ti({keyframes:e,velocity:t=0,power:o=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:n=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:c}){let f=e[0],p={done:!1,value:f},m=T=>i!==void 0&&T<i||l!==void 0&&T>l,h=T=>i===void 0?l:l===void 0||Math.abs(i-T)<Math.abs(l-T)?i:l,g=o*t,v=f+g,x=s===void 0?v:s(v);x!==v&&(g=x-f);let y=T=>-g*Math.exp(-T/r),b=T=>x+y(T),R=T=>{let M=y(T),A=b(T);p.done=Math.abs(M)<=u,p.value=p.done?x:A},w,I,S=T=>{m(p.value)&&(w=T,I=jo({keyframes:[p.value,h(p.value)],velocity:xu(b,T,p.value),damping:a,stiffness:n,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:T=>{let M=!1;return!I&&w===void 0&&(M=!0,R(T),S(T)),w!==void 0&&T>=w?I.next(T-w):(!M&&R(T),p)}}}function O1(e,t,o){let r=[],a=o||mt.mix||hu,n=e.length-1;for(let s=0;s<n;s++){let i=a(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Ke:t;i=lo(l,i)}r.push(i)}return r}function bu(e,t,{clamp:o=!0,ease:r,mixer:a}={}){let n=e.length;if(dt(n===t.length,"Both input and output ranges must be the same length","range-length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=O1(t,r,a),l=i.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);let p=zt(e[f],e[f+1],c);return i[f](p)};return o?c=>u(it(e[0],e[n-1],c)):u}function Mi(e,t){let o=e[e.length-1];for(let r=1;r<=t;r++){let a=zt(0,t,r);e.push(Re(o,1,a))}}function ki(e){let t=[0];return Mi(t,e.length-1),t}function Zx(e,t){return e.map(o=>o*t)}function F1(e,t){return e.map(()=>t||xi).splice(0,e.length-1)}function pa({duration:e=300,keyframes:t,times:o,ease:r="easeInOut"}){let a=yi(r)?r.map(uu):uu(r),n={done:!1,value:t[0]},s=Zx(o&&o.length===t.length?o:ki(t),e),i=bu(s,t,{ease:Array.isArray(a)?a:F1(t,a)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var _1=e=>e!==null;function yn(e,{repeat:t,repeatType:o="loop"},r,a=1){let n=e.filter(_1),i=a<0||t&&o!=="loop"&&t%2===1?0:n.length-1;return!i||r===void 0?n[i]:r}var V1={decay:Ti,inertia:Ti,tween:pa,keyframes:pa,spring:jo};function Cu(e){typeof e.type=="string"&&(e.type=V1[e.type])}var Pr=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,o){return this.finished.then(t,o)}};var B1=e=>e/100,Ko=class extends Pr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:o}=this.options;o&&o.updatedAt!==Ze.now()&&this.tick(Ze.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},uo.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;Cu(t);let{type:o=pa,repeat:r=0,repeatDelay:a=0,repeatType:n,velocity:s=0}=t,{keyframes:i}=t,l=o||pa;l!==pa&&typeof i[0]!="number"&&(this.mixKeyframes=lo(B1,hu(i[0],i[1])),i=[0,100]);let u=l({...t,keyframes:i});n==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=xn(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=u}updateTime(t){let o=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(t,o=!1){let{generator:r,totalDuration:a,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);let{delay:u=0,keyframes:c,repeat:f,repeatType:p,repeatDelay:m,type:h,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),o?this.currentTime=t:this.updateTime(t);let x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?x<0:x>a;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let b=this.currentTime,R=r;if(f){let T=Math.min(this.currentTime,a)/i,M=Math.floor(T),A=T%1;!A&&T>=1&&(A=1),A===1&&M--,M=Math.min(M,f+1),!!(M%2)&&(p==="reverse"?(A=1-A,m&&(A-=m/i)):p==="mirror"&&(R=s)),b=it(0,1,A)*i}let w=y?{done:!1,value:c[0]}:R.next(b);n&&(w.value=n(w.value));let{done:I}=w;!y&&l!==null&&(I=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return S&&h!==Ti&&(w.value=yn(c,this.options,v,this.speed)),g&&g(w.value),S&&this.finish(),w}then(t,o){return this.finished.then(t,o)}get duration(){return rt(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+rt(t)}get time(){return rt(this.currentTime)}set time(t){t=et(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ze.now());let o=this.playbackSpeed!==t;this.playbackSpeed=t,o&&(this.time=rt(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=Kx,startTime:o}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();let r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=o??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ze.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,uo.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};function Qx(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ma=e=>e*180/Math.PI,Df=e=>{let t=ma(Math.atan2(e[1],e[0]));return Nf(t)},H1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Df,rotateZ:Df,skewX:e=>ma(Math.atan(e[1])),skewY:e=>ma(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Nf=e=>(e=e%360,e<0&&(e+=360),e),Jx=Df,ey=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ty=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),U1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ey,scaleY:ty,scale:e=>(ey(e)+ty(e))/2,rotateX:e=>Nf(ma(Math.atan2(e[6],e[5]))),rotateY:e=>Nf(ma(Math.atan2(-e[2],e[0]))),rotateZ:Jx,rotate:Jx,skewX:e=>ma(Math.atan(e[4])),skewY:e=>ma(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ei(e){return e.includes("scale")?1:0}function Ai(e,t){if(!e||e==="none")return Ei(t);let o=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,a;if(o)r=U1,a=o;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=H1,a=i}if(!a)return Ei(t);let n=r[t],s=a[1].split(",").map(G1);return typeof n=="function"?n(s):s[n]}var Of=(e,t)=>{let{transform:o="none"}=getComputedStyle(e);return Ai(o,t)};function G1(e){return parseFloat(e.trim())}var fo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=(()=>new Set(fo))();var Ff=e=>e===Ao||e===de,z1=new Set(["x","y","z"]),W1=fo.filter(e=>!z1.has(e));function oy(e){let t=[];return W1.forEach(o=>{let r=e.getValue(o);r!==void 0&&(t.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),t}var Lr={width:({x:e},{paddingLeft:t="0",paddingRight:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),height:({y:e},{paddingTop:t="0",paddingBottom:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ai(t,"x"),y:(e,{transform:t})=>Ai(t,"y")};Lr.translateX=Lr.x;Lr.translateY=Lr.y;var ga=new Set,_f=!1,Vf=!1,Bf=!1;function ry(){if(Vf){let e=Array.from(ga).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),o=new Map;t.forEach(r=>{let a=oy(r);a.length&&(o.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let a=o.get(r);a&&a.forEach(([n,s])=>{r.getValue(n)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Vf=!1,_f=!1,ga.forEach(e=>e.complete(Bf)),ga.clear()}function ay(){ga.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Vf=!0)})}function Hf(){Bf=!0,ay(),ry(),Bf=!1}var Xo=class{constructor(t,o,r,a,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=o,this.name=r,this.motionValue=a,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(ga.add(this),_f||(_f=!0,we.read(ay),we.resolveKeyframes(ry))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:o,element:r,motionValue:a}=this;if(t[0]===null){let n=a?.get(),s=t[t.length-1];if(n!==void 0)t[0]=n;else if(r&&o){let i=r.readValue(o,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),a&&n===void 0&&a.set(t[0])}Qx(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ga.delete(this)}cancel(){this.state==="scheduled"&&(ga.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var ny=e=>e.startsWith("--");function sy(e,t,o){ny(t)?e.style.setProperty(t,o):e.style[t]=o}var iy=ca(()=>window.ScrollTimeline!==void 0);var ly={};function uy(e,t){let o=ca(e);return()=>ly[t]??o()}var wu=uy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var ha=([e,t,o,r])=>`cubic-bezier(${e}, ${t}, ${o}, ${r})`;var Uf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ha([0,.65,.55,1]),circOut:ha([.55,0,1,.45]),backIn:ha([.31,.01,.66,-.59]),backOut:ha([.33,1.53,.69,.99])};function Gf(e,t){if(e)return typeof e=="function"?wu()?vu(e,t):"ease-out":Ci(e)?ha(e):Array.isArray(e)?e.map(o=>Gf(o,t)||Uf.easeOut):Uf[e]}function cy(e,t,o,{delay:r=0,duration:a=300,repeat:n=0,repeatType:s="loop",ease:i="easeOut",times:l}={},u=void 0){let c={[t]:o};l&&(c.offset=l);let f=Gf(i,a);Array.isArray(f)&&(c.easing=f),Tt.value&&uo.waapi++;let p={delay:r,duration:a,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"};u&&(p.pseudoElement=u);let m=e.animate(c,p);return Tt.value&&m.finished.finally(()=>{uo.waapi--}),m}function va(e){return typeof e=="function"&&"applyToOptions"in e}function dy({type:e,...t}){return va(e)&&wu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Su=class extends Pr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:o,name:r,keyframes:a,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,dt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=dy(t);this.animation=cy(o,r,a,u,n),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let c=yn(a,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(c):sy(o,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return rt(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+rt(t)}get time(){return rt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=et(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&iy()?(this.animation.timeline=t,Ke):o(this)}};var fy={anticipate:mi,backInOut:pi,circInOut:vi};function q1(e){return e in fy}function py(e){typeof e.ease=="string"&&q1(e.ease)&&(e.ease=fy[e.ease])}var my=10,Ru=class extends Su{constructor(t){py(t),Cu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:o,onUpdate:r,onComplete:a,element:n,...s}=this.options;if(!o)return;if(t!==void 0){o.set(t);return}let i=new Ko({...s,autoplay:!1}),l=et(this.finishedTime??this.time);o.setWithVelocity(i.sample(l-my).value,i.sample(l).value,my),i.stop()}};var zf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vt.test(e)||e==="0")&&!e.startsWith("url("));function $1(e){let t=e[0];if(e.length===1)return!0;for(let o=0;o<e.length;o++)if(e[o]!==t)return!0}function gy(e,t,o,r){let a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],s=zf(a,t),i=zf(n,t);return Wo(s===i,`You are trying to animate ${t} from "${a}" to "${n}". "${s?n:a}" is not an animatable value.`,"value-not-animatable"),!s||!i?!1:$1(e)||(o==="spring"||va(o))&&r}function bn(e){e.duration=0,e.type="keyframes"}var j1=new Set(["opacity","clipPath","filter","transform"]),K1=ca(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function hy(e){let{motionValue:t,name:o,repeatDelay:r,repeatType:a,damping:n,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return K1()&&o&&j1.has(o)&&(o!=="transform"||!u)&&!l&&!r&&a!=="mirror"&&n!==0&&s!=="inertia"}var X1=40,Di=class extends Pr{constructor({autoplay:t=!0,delay:o=0,type:r="keyframes",repeat:a=0,repeatDelay:n=0,repeatType:s="loop",keyframes:i,name:l,motionValue:u,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ze.now();let p={autoplay:t,delay:o,type:r,repeat:a,repeatDelay:n,repeatType:s,name:l,motionValue:u,element:c,...f},m=c?.KeyframeResolver||Xo;this.keyframeResolver=new m(i,(h,g,v)=>this.onKeyframesResolved(h,g,p,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,o,r,a){this.keyframeResolver=void 0;let{name:n,type:s,velocity:i,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ze.now(),gy(t,n,s,i)||((mt.instantAnimations||!l)&&c?.(yn(t,r,o)),t[0]=t[t.length-1],bn(r),r.repeat=0);let p={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>X1?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:t},m=!u&&hy(p)?new Ru({...p,element:p.motionValue.owner.current}):new Ko(p);m.finished.then(()=>this.notifyFinished()).catch(Ke),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,o){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Hf()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var Iu=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,o){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=o}attachTimeline(t){let o=this.animations.map(r=>r.attachTimeline(t));return()=>{o.forEach((r,a)=>{r&&r(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return vy(this.animations,"duration")}get iterationDuration(){return vy(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(o=>o[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function vy(e,t){let o=0;for(let r=0;r<e.length;r++){let a=e[r][t];a!==null&&a>o&&(o=a)}return o}var Ni=class extends Iu{then(t,o){return this.finished.finally(t).then(()=>{})}};var Y1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z1(e){let t=Y1.exec(e);if(!t)return[,];let[,o,r,a]=t;return[`--${o??r}`,a]}var Q1=4;function Wf(e,t,o=1){dt(o<=Q1,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,a]=Z1(e);if(!r)return;let n=window.getComputedStyle(t).getPropertyValue(r);if(n){let s=n.trim();return ui(s)?parseFloat(s):s}return fa(a)?Wf(a,t,o+1):a}function xa(e,t){return e?.[t]??e?.default??e}var Oi=new Set(["width","height","top","left","right","bottom",...fo]);var xy={test:e=>e==="auto",parse:e=>e};var Pu=e=>t=>t.test(e);var qf=[Ao,de,ht,co,Lf,Pf,xy],$f=e=>qf.find(Pu(e));function yy(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||di(e):!0}var J1=new Set(["brightness","contrast","saturate","opacity"]);function eN(e){let[t,o]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=o.match(gn)||[];if(!r)return e;let a=o.replace(r,""),n=J1.has(t)?1:0;return r!==o&&(n*=100),t+"("+n+a+")"}var tN=/\b([a-z-]*)\(.*?\)/gu,Fi={...vt,getAnimatableNone:e=>{let t=e.match(tN);return t?t.map(eN).join(" "):e}};var jf={...Ao,transform:Math.round};var by={rotate:co,rotateX:co,rotateY:co,rotateZ:co,scale:Ri,scaleX:Ri,scaleY:Ri,scaleZ:Ri,skew:co,skewX:co,skewY:co,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:$o,originX:pu,originY:pu,originZ:de};var ya={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,backgroundPositionX:de,backgroundPositionY:de,...by,zIndex:jf,fillOpacity:$o,strokeOpacity:$o,numOctaves:jf};var Cy={...ya,color:je,backgroundColor:je,outlineColor:je,fill:je,stroke:je,borderColor:je,borderTopColor:je,borderRightColor:je,borderBottomColor:je,borderLeftColor:je,filter:Fi,WebkitFilter:Fi},_i=e=>Cy[e];function Vi(e,t){let o=_i(e);return o!==Fi&&(o=vt),o.getAnimatableNone?o.getAnimatableNone(t):void 0}var oN=new Set(["auto","none","0"]);function wy(e,t,o){let r=0,a;for(;r<e.length&&!a;){let n=e[r];typeof n=="string"&&!oN.has(n)&&Ir(n).values.length&&(a=e[r]),r++}if(a&&o)for(let n of t)e[n]=Vi(o,a)}var Bi=class extends Xo{constructor(t,o,r,a,n){super(t,o,r,a,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),fa(u))){let c=Wf(u,o.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Oi.has(r)||t.length!==2)return;let[a,n]=t,s=$f(a),i=$f(n);if(s!==i)if(Ff(s)&&Ff(i))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Lr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:o}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||yy(t[a]))&&r.push(a);r.length&&wy(t,r,o)}measureInitialState(){let{element:t,unresolvedKeyframes:o,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Lr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),o[0]=this.measuredOrigin;let a=o[o.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){let{element:t,name:o,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let a=t.getValue(o);a&&a.jump(this.measuredOrigin,!1);let n=r.length-1,s=r[n];r[n]=Lr[o](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,l])=>{t.getValue(i).set(l)}),this.resolveNoneKeyframes()}};function Hi(e,t,o){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);let a=o?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}var Ui=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Gi(e){return ci(e)&&"offsetHeight"in e}var Sy=30,rN=e=>!isNaN(parseFloat(e)),ba={current:void 0},Lu=class{constructor(t,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{let a=Ze.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=o.owner}setCurrent(t){this.current=t,this.updatedAt=Ze.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=rN(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,o){this.events[t]||(this.events[t]=new qo);let r=this.events[t].add(o);return t==="change"?()=>{r(),we.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,o){this.passiveEffect=t,this.stopPassiveEffect=o}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,o=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ba.current&&ba.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Ze.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Sy)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,Sy);return fi(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(t){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=t(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Mt(e,t){return new Lu(e,t)}var{schedule:Ca,cancel:aN}=cu(queueMicrotask,!1);var Wt={x:!1,y:!1};function Tu(){return Wt.x||Wt.y}function Kf(e){return e==="x"||e==="y"?Wt[e]?null:(Wt[e]=!0,()=>{Wt[e]=!1}):Wt.x||Wt.y?null:(Wt.x=Wt.y=!0,()=>{Wt.x=Wt.y=!1})}function Mu(e,t){let o=Hi(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[o,a,()=>r.abort()]}function Ry(e){return!(e.pointerType==="touch"||Tu())}function Xf(e,t,o={}){let[r,a,n]=Mu(e,o),s=i=>{if(!Ry(i))return;let{target:l}=i,u=t(l,i);if(typeof u!="function"||!l)return;let c=f=>{Ry(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,a)};return r.forEach(i=>{i.addEventListener("pointerenter",s,a)}),n}var Yf=(e,t)=>t?e===t?!0:Yf(e,t.parentElement):!1;var wa=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var nN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Iy(e){return nN.has(e.tagName)||e.tabIndex!==-1}var Cn=new WeakSet;function Py(e){return t=>{t.key==="Enter"&&e(t)}}function Zf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var Ly=(e,t)=>{let o=e.currentTarget;if(!o)return;let r=Py(()=>{if(Cn.has(o))return;Zf(o,"down");let a=Py(()=>{Zf(o,"up")}),n=()=>Zf(o,"cancel");o.addEventListener("keyup",a,t),o.addEventListener("blur",n,t)});o.addEventListener("keydown",r,t),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),t)};function Ty(e){return wa(e)&&!Tu()}function Qf(e,t,o={}){let[r,a,n]=Mu(e,o),s=i=>{let l=i.currentTarget;if(!Ty(i))return;Cn.add(l);let u=t(l,i),c=(m,h)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),Cn.has(l)&&Cn.delete(l),Ty(m)&&typeof u=="function"&&u(m,{success:h})},f=m=>{c(m,l===window||l===document||o.useGlobalTarget||Yf(l,m.target))},p=m=>{c(m,!1)};window.addEventListener("pointerup",f,a),window.addEventListener("pointercancel",p,a)};return r.forEach(i=>{(o.useGlobalTarget?window:i).addEventListener("pointerdown",s,a),Gi(i)&&(i.addEventListener("focus",u=>Ly(u,a)),!Iy(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),n}function Sa(e){return ci(e)&&"ownerSVGElement"in e}function zi(e){return Sa(e)&&e.tagName==="svg"}function Jf(...e){let t=!Array.isArray(e[0]),o=t?0:-1,r=e[0+o],a=e[1+o],n=e[2+o],s=e[3+o],i=bu(a,n,s);return t?i(r):i}var De=e=>!!(e&&e.getVelocity);var sN=[...qf,je,vt],ep=e=>sN.find(Pu(e));O();O();O();var Tr=le({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});O();function My(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function iN(...e){return t=>{let o=!1,r=e.map(a=>{let n=My(a,t);return!o&&typeof n=="function"&&(o=!0),n});if(o)return()=>{for(let a=0;a<r.length;a++){let n=r[a];typeof n=="function"?n():My(e[a],null)}}}}function ky(...e){return B(iN(...e),e)}var tp=class extends Is{getSnapshotBeforeUpdate(t){let o=this.props.childRef.current;if(o&&t.isPresent&&!this.props.isPresent){let r=o.offsetParent,a=Gi(r)&&r.offsetWidth||0,n=this.props.sizeRef.current;n.height=o.offsetHeight||0,n.width=o.offsetWidth||0,n.top=o.offsetTop,n.left=o.offsetLeft,n.right=a-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}};function Ey({children:e,isPresent:t,anchorX:o,root:r}){let a=Ge(),n=E(null),s=E({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=te(Tr),l=ky(n,e?.ref);return Ps(()=>{let{width:u,height:c,top:f,left:p,right:m}=s.current;if(t||!n.current||!u||!c)return;let h=o==="left"?`left: ${p}`:`right: ${m}`;n.current.dataset.motionPopId=a;let g=document.createElement("style");i&&(g.nonce=i);let v=r??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(`
6
6
  [data-motion-pop-id="${a}"] {
7
7
  position: absolute !important;
8
8
  width: ${u}px !important;