@lzzjokerzzl/react-ui-components 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +24 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11775 -11793
- package/dist/index.js.map +1 -1
- package/dist/react-ui-components.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,68 +1,48 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("react/jsx-runtime"),j=require("react"),ti=require("react-router"),Qa=require("react-dom");function ef(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const er=ef(j),eo=j.createContext({});function _t(s){const e=j.useRef(null);return e.current===null&&(e.current=s()),e.current}const to=typeof window<"u",Us=to?j.useLayoutEffect:j.useEffect,tr=j.createContext(null);function so(s,e){s.indexOf(e)===-1&&s.push(e)}function sr(s,e){const t=s.indexOf(e);t>-1&&s.splice(t,1)}const gt=(s,e,t)=>t>e?e:t<s?s:t;function xa(s,e){return e?`${s}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:s}let gs=()=>{},qe=()=>{};process.env.NODE_ENV!=="production"&&(gs=(s,e,t)=>{!s&&typeof console<"u"&&console.warn(xa(e,t))},qe=(s,e,t)=>{if(!s)throw new Error(xa(e,t))});const wt={},Zl=s=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s);function Jl(s){return typeof s=="object"&&s!==null}const Ql=s=>/^0[^.\s]+$/u.test(s);function no(s){let e;return()=>(e===void 0&&(e=s()),e)}const tt=s=>s,tf=(s,e)=>t=>e(s(t)),Hs=(...s)=>s.reduce(tf),zt=(s,e,t)=>{const n=e-s;return n===0?1:(t-s)/n};class ro{constructor(){this.subscriptions=[]}add(e){return so(this.subscriptions,e),()=>sr(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let a=0;a<r;a++){const o=this.subscriptions[a];o&&o(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ct=s=>s*1e3,lt=s=>s/1e3;function ao(s,e){return e?s*(1e3/e):0}const si=new Set;function nr(s,e,t){s||si.has(e)||(console.warn(xa(e,t)),si.add(e))}const sf=(s,e,t)=>{const n=e-s;return((t-s)%n+n)%n+s},ec=(s,e,t)=>(((1-3*t+3*e)*s+(3*t-6*e))*s+3*e)*s,nf=1e-7,rf=12;function af(s,e,t,n,r){let a,o,i=0;do o=e+(t-e)/2,a=ec(o,n,r)-s,a>0?t=o:e=o;while(Math.abs(a)>nf&&++i<rf);return o}function Ks(s,e,t,n){if(s===e&&t===n)return tt;const r=a=>af(a,0,1,s,t);return a=>a===0||a===1?a:ec(r(a),e,n)}const tc=s=>e=>e<=.5?s(2*e)/2:(2-s(2*(1-e)))/2,sc=s=>e=>1-s(1-e),nc=Ks(.33,1.53,.69,.99),oo=sc(nc),rc=tc(oo),ac=s=>(s*=2)<1?.5*oo(s):.5*(2-Math.pow(2,-10*(s-1))),io=s=>1-Math.sin(Math.acos(s)),oc=sc(io),ic=tc(io),of=Ks(.42,0,1,1),lf=Ks(0,0,.58,1),lc=Ks(.42,0,.58,1),cc=s=>Array.isArray(s)&&typeof s[0]!="number";function dc(s,e){return cc(s)?s[sf(0,s.length,e)]:s}const uc=s=>Array.isArray(s)&&typeof s[0]=="number",ni={linear:tt,easeIn:of,easeInOut:lc,easeOut:lf,circIn:io,circInOut:ic,circOut:oc,backIn:oo,backInOut:rc,backOut:nc,anticipate:ac},cf=s=>typeof s=="string",ri=s=>{if(uc(s)){qe(s.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,t,n,r]=s;return Ks(e,t,n,r)}else if(cf(s))return qe(ni[s]!==void 0,`Invalid easing type '${s}'`,"invalid-easing-type"),ni[s];return s},Nn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function df(s,e){let t=new Set,n=new Set,r=!1,a=!1;const o=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(c.schedule(d),s()),d(i)}const c={schedule:(d,u=!1,f=!1)=>{const g=f&&r?t:n;return u&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(i=d,r){a=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,a&&(a=!1,c.process(d))}};return c}const uf=40;function fc(s,e){let t=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},a=()=>t=!0,o=Nn.reduce((p,b)=>(p[b]=df(a),p),{}),{setup:i,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:f,render:m,postRender:g}=o,x=()=>{const p=wt.useManualTiming?r.timestamp:performance.now();t=!1,wt.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(p-r.timestamp,uf),1)),r.timestamp=p,r.isProcessing=!0,i.process(r),l.process(r),c.process(r),d.process(r),u.process(r),f.process(r),m.process(r),g.process(r),r.isProcessing=!1,t&&e&&(n=!1,s(x))},y=()=>{t=!0,n=!0,r.isProcessing||s(x)};return{schedule:Nn.reduce((p,b)=>{const S=o[b];return p[b]=(C,v=!1,T=!1)=>(t||y(),S.schedule(C,v,T)),p},{}),cancel:p=>{for(let b=0;b<Nn.length;b++)o[Nn[b]].cancel(p)},state:r,steps:o}}const{schedule:Me,cancel:ft,state:Ke,steps:Qr}=fc(typeof requestAnimationFrame<"u"?requestAnimationFrame:tt,!0);let zn;function ff(){zn=void 0}const et={now:()=>(zn===void 0&&et.set(Ke.isProcessing||wt.useManualTiming?Ke.timestamp:performance.now()),zn),set:s=>{zn=s,queueMicrotask(ff)}},mc=s=>e=>typeof e=="string"&&e.startsWith(s),lo=mc("--"),mf=mc("var(--"),co=s=>mf(s)?hf.test(s.split("/*")[0].trim()):!1,hf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bs={test:s=>typeof s=="number",parse:parseFloat,transform:s=>s},Ls={...bs,transform:s=>gt(0,1,s)},Pn={...bs,default:1},Ms=s=>Math.round(s*1e5)/1e5,uo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pf(s){return s==null}const gf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fo=(s,e)=>t=>!!(typeof t=="string"&&gf.test(t)&&t.startsWith(s)||e&&!pf(t)&&Object.prototype.hasOwnProperty.call(t,e)),hc=(s,e,t)=>n=>{if(typeof n!="string")return n;const[r,a,o,i]=n.match(uo);return{[s]:parseFloat(r),[e]:parseFloat(a),[t]:parseFloat(o),alpha:i!==void 0?parseFloat(i):1}},bf=s=>gt(0,255,s),ea={...bs,transform:s=>Math.round(bf(s))},Bt={test:fo("rgb","red"),parse:hc("red","green","blue"),transform:({red:s,green:e,blue:t,alpha:n=1})=>"rgba("+ea.transform(s)+", "+ea.transform(e)+", "+ea.transform(t)+", "+Ms(Ls.transform(n))+")"};function yf(s){let e="",t="",n="",r="";return s.length>5?(e=s.substring(1,3),t=s.substring(3,5),n=s.substring(5,7),r=s.substring(7,9)):(e=s.substring(1,2),t=s.substring(2,3),n=s.substring(3,4),r=s.substring(4,5),e+=e,t+=t,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}}const wa={test:fo("#"),parse:yf,transform:Bt.transform},Xs=s=>({test:e=>typeof e=="string"&&e.endsWith(s)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${s}`}),jt=Xs("deg"),pt=Xs("%"),Se=Xs("px"),vf=Xs("vh"),xf=Xs("vw"),ai={...pt,parse:s=>pt.parse(s)/100,transform:s=>pt.transform(s*100)},os={test:fo("hsl","hue"),parse:hc("hue","saturation","lightness"),transform:({hue:s,saturation:e,lightness:t,alpha:n=1})=>"hsla("+Math.round(s)+", "+pt.transform(Ms(e))+", "+pt.transform(Ms(t))+", "+Ms(Ls.transform(n))+")"},Ge={test:s=>Bt.test(s)||wa.test(s)||os.test(s),parse:s=>Bt.test(s)?Bt.parse(s):os.test(s)?os.parse(s):wa.parse(s),transform:s=>typeof s=="string"?s:s.hasOwnProperty("red")?Bt.transform(s):os.transform(s),getAnimatableNone:s=>{const e=Ge.parse(s);return e.alpha=0,Ge.transform(e)}},wf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Cf(s){return isNaN(s)&&typeof s=="string"&&(s.match(uo)?.length||0)+(s.match(wf)?.length||0)>0}const pc="number",gc="color",kf="var",Sf="var(",oi="${}",Tf=/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 $s(s){const e=s.toString(),t=[],n={color:[],number:[],var:[]},r=[];let a=0;const i=e.replace(Tf,l=>(Ge.test(l)?(n.color.push(a),r.push(gc),t.push(Ge.parse(l))):l.startsWith(Sf)?(n.var.push(a),r.push(kf),t.push(l)):(n.number.push(a),r.push(pc),t.push(parseFloat(l))),++a,oi)).split(oi);return{values:t,split:i,indexes:n,types:r}}function bc(s){return $s(s).values}function yc(s){const{split:e,types:t}=$s(s),n=e.length;return r=>{let a="";for(let o=0;o<n;o++)if(a+=e[o],r[o]!==void 0){const i=t[o];i===pc?a+=Ms(r[o]):i===gc?a+=Ge.transform(r[o]):a+=r[o]}return a}}const Af=s=>typeof s=="number"?0:Ge.test(s)?Ge.getAnimatableNone(s):s;function jf(s){const e=bc(s);return yc(s)(e.map(Af))}const Pt={test:Cf,parse:bc,createTransformer:yc,getAnimatableNone:jf};function ta(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+(e-s)*6*t:t<1/2?e:t<2/3?s+(e-s)*(2/3-t)*6:s}function Nf({hue:s,saturation:e,lightness:t,alpha:n}){s/=360,e/=100,t/=100;let r=0,a=0,o=0;if(!e)r=a=o=t;else{const i=t<.5?t*(1+e):t+e-t*e,l=2*t-i;r=ta(l,i,s+1/3),a=ta(l,i,s),o=ta(l,i,s-1/3)}return{red:Math.round(r*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}function Kn(s,e){return t=>t>0?e:s}const Le=(s,e,t)=>s+(e-s)*t,sa=(s,e,t)=>{const n=s*s,r=t*(e*e-n)+n;return r<0?0:Math.sqrt(r)},Pf=[wa,Bt,os],Vf=s=>Pf.find(e=>e.test(s));function ii(s){const e=Vf(s);if(gs(!!e,`'${s}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let t=e.parse(s);return e===os&&(t=Nf(t)),t}const li=(s,e)=>{const t=ii(s),n=ii(e);if(!t||!n)return Kn(s,e);const r={...t};return a=>(r.red=sa(t.red,n.red,a),r.green=sa(t.green,n.green,a),r.blue=sa(t.blue,n.blue,a),r.alpha=Le(t.alpha,n.alpha,a),Bt.transform(r))},Ca=new Set(["none","hidden"]);function Mf(s,e){return Ca.has(s)?t=>t<=0?s:e:t=>t>=1?e:s}function If(s,e){return t=>Le(s,e,t)}function mo(s){return typeof s=="number"?If:typeof s=="string"?co(s)?Kn:Ge.test(s)?li:Df:Array.isArray(s)?vc:typeof s=="object"?Ge.test(s)?li:Ef:Kn}function vc(s,e){const t=[...s],n=t.length,r=s.map((a,o)=>mo(a)(a,e[o]));return a=>{for(let o=0;o<n;o++)t[o]=r[o](a);return t}}function Ef(s,e){const t={...s,...e},n={};for(const r in t)s[r]!==void 0&&e[r]!==void 0&&(n[r]=mo(s[r])(s[r],e[r]));return r=>{for(const a in n)t[a]=n[a](r);return t}}function Rf(s,e){const t=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const a=e.types[r],o=s.indexes[a][n[a]],i=s.values[o]??0;t[r]=i,n[a]++}return t}const Df=(s,e)=>{const t=Pt.createTransformer(e),n=$s(s),r=$s(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?Ca.has(s)&&!r.values.length||Ca.has(e)&&!n.values.length?Mf(s,e):Hs(vc(Rf(n,r),r.values),t):(gs(!0,`Complex values '${s}' and '${e}' 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"),Kn(s,e))};function xc(s,e,t){return typeof s=="number"&&typeof e=="number"&&typeof t=="number"?Le(s,e,t):mo(s)(s,e)}const Bf=s=>{const e=({timestamp:t})=>s(t);return{start:(t=!0)=>Me.update(e,t),stop:()=>ft(e),now:()=>Ke.isProcessing?Ke.timestamp:et.now()}},wc=(s,e,t=10)=>{let n="";const r=Math.max(Math.round(e/t),2);for(let a=0;a<r;a++)n+=Math.round(s(a/(r-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Xn=2e4;function ho(s){let e=0;const t=50;let n=s.next(e);for(;!n.done&&e<Xn;)e+=t,n=s.next(e);return e>=Xn?1/0:e}function Cc(s,e=100,t){const n=t({...s,keyframes:[0,e]}),r=Math.min(ho(n),Xn);return{type:"keyframes",ease:a=>n.next(r*a).value/e,duration:lt(r)}}const Lf=5;function kc(s,e,t){const n=Math.max(e-Lf,0);return ao(t-s(n),e-n)}const _e={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},na=.001;function $f({duration:s=_e.duration,bounce:e=_e.bounce,velocity:t=_e.velocity,mass:n=_e.mass}){let r,a;gs(s<=ct(_e.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=gt(_e.minDamping,_e.maxDamping,o),s=gt(_e.minDuration,_e.maxDuration,lt(s)),o<1?(r=c=>{const d=c*o,u=d*s,f=d-t,m=ka(c,o),g=Math.exp(-u);return na-f/m*g},a=c=>{const u=c*o*s,f=u*t+t,m=Math.pow(o,2)*Math.pow(c,2)*s,g=Math.exp(-u),x=ka(Math.pow(c,2),o);return(-r(c)+na>0?-1:1)*((f-m)*g)/x}):(r=c=>{const d=Math.exp(-c*s),u=(c-t)*s+1;return-na+d*u},a=c=>{const d=Math.exp(-c*s),u=(t-c)*(s*s);return d*u});const i=5/s,l=zf(r,a,i);if(s=ct(s),isNaN(l))return{stiffness:_e.stiffness,damping:_e.damping,duration:s};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:s}}}const Of=12;function zf(s,e,t){let n=t;for(let r=1;r<Of;r++)n=n-s(n)/e(n);return n}function ka(s,e){return s*Math.sqrt(1-e*e)}const _f=["duration","bounce"],Ff=["stiffness","damping","mass"];function ci(s,e){return e.some(t=>s[t]!==void 0)}function Wf(s){let e={velocity:_e.velocity,stiffness:_e.stiffness,damping:_e.damping,mass:_e.mass,isResolvedFromDuration:!1,...s};if(!ci(s,Ff)&&ci(s,_f))if(s.visualDuration){const t=s.visualDuration,n=2*Math.PI/(t*1.2),r=n*n,a=2*gt(.05,1,1-(s.bounce||0))*Math.sqrt(r);e={...e,mass:_e.mass,stiffness:r,damping:a}}else{const t=$f(s);e={...e,...t,mass:_e.mass},e.isResolvedFromDuration=!0}return e}function Os(s=_e.visualDuration,e=_e.bounce){const t=typeof s!="object"?{visualDuration:s,keyframes:[0,1],bounce:e}:s;let{restSpeed:n,restDelta:r}=t;const a=t.keyframes[0],o=t.keyframes[t.keyframes.length-1],i={done:!1,value:a},{stiffness:l,damping:c,mass:d,duration:u,velocity:f,isResolvedFromDuration:m}=Wf({...t,velocity:-lt(t.velocity||0)}),g=f||0,x=c/(2*Math.sqrt(l*d)),y=o-a,w=lt(Math.sqrt(l/d)),h=Math.abs(y)<5;n||(n=h?_e.restSpeed.granular:_e.restSpeed.default),r||(r=h?_e.restDelta.granular:_e.restDelta.default);let p;if(x<1){const S=ka(w,x);p=C=>{const v=Math.exp(-x*w*C);return o-v*((g+x*w*y)/S*Math.sin(S*C)+y*Math.cos(S*C))}}else if(x===1)p=S=>o-Math.exp(-w*S)*(y+(g+w*y)*S);else{const S=w*Math.sqrt(x*x-1);p=C=>{const v=Math.exp(-x*w*C),T=Math.min(S*C,300);return o-v*((g+x*w*y)*Math.sinh(T)+S*y*Math.cosh(T))/S}}const b={calculatedDuration:m&&u||null,next:S=>{const C=p(S);if(m)i.done=S>=u;else{let v=S===0?g:0;x<1&&(v=S===0?ct(g):kc(p,S,C));const T=Math.abs(v)<=n,A=Math.abs(o-C)<=r;i.done=T&&A}return i.value=i.done?o:C,i},toString:()=>{const S=Math.min(ho(b),Xn),C=wc(v=>b.next(S*v).value,S,30);return S+"ms "+C},toTransition:()=>{}};return b}Os.applyToOptions=s=>{const e=Cc(s,100,Os);return s.ease=e.ease,s.duration=ct(e.duration),s.type="keyframes",s};function Sa({keyframes:s,velocity:e=0,power:t=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:a=500,modifyTarget:o,min:i,max:l,restDelta:c=.5,restSpeed:d}){const u=s[0],f={done:!1,value:u},m=T=>i!==void 0&&T<i||l!==void 0&&T>l,g=T=>i===void 0?l:l===void 0||Math.abs(i-T)<Math.abs(l-T)?i:l;let x=t*e;const y=u+x,w=o===void 0?y:o(y);w!==y&&(x=w-u);const h=T=>-x*Math.exp(-T/n),p=T=>w+h(T),b=T=>{const A=h(T),E=p(T);f.done=Math.abs(A)<=c,f.value=f.done?w:E};let S,C;const v=T=>{m(f.value)&&(S=T,C=Os({keyframes:[f.value,g(f.value)],velocity:kc(p,T,f.value),damping:r,stiffness:a,restDelta:c,restSpeed:d}))};return v(0),{calculatedDuration:null,next:T=>{let A=!1;return!C&&S===void 0&&(A=!0,b(T),v(T)),S!==void 0&&T>=S?C.next(T-S):(!A&&b(T),f)}}}function Gf(s,e,t){const n=[],r=t||wt.mix||xc,a=s.length-1;for(let o=0;o<a;o++){let i=r(s[o],s[o+1]);if(e){const l=Array.isArray(e)?e[o]||tt:e;i=Hs(l,i)}n.push(i)}return n}function po(s,e,{clamp:t=!0,ease:n,mixer:r}={}){const a=s.length;if(qe(a===e.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];const o=s[0]===s[1];s[0]>s[a-1]&&(s=[...s].reverse(),e=[...e].reverse());const i=Gf(e,n,r),l=i.length,c=d=>{if(o&&d<s[0])return e[0];let u=0;if(l>1)for(;u<s.length-2&&!(d<s[u+1]);u++);const f=zt(s[u],s[u+1],d);return i[u](f)};return t?d=>c(gt(s[0],s[a-1],d)):c}function Sc(s,e){const t=s[s.length-1];for(let n=1;n<=e;n++){const r=zt(0,e,n);s.push(Le(t,1,r))}}function go(s){const e=[0];return Sc(e,s.length-1),e}function Uf(s,e){return s.map(t=>t*e)}function Hf(s,e){return s.map(()=>e||lc).splice(0,s.length-1)}function is({duration:s=300,keyframes:e,times:t,ease:n="easeInOut"}){const r=cc(n)?n.map(ri):ri(n),a={done:!1,value:e[0]},o=Uf(t&&t.length===e.length?t:go(e),s),i=po(o,e,{ease:Array.isArray(r)?r:Hf(e,r)});return{calculatedDuration:s,next:l=>(a.value=i(l),a.done=l>=s,a)}}const Kf=s=>s!==null;function bo(s,{repeat:e,repeatType:t="loop"},n,r=1){const a=s.filter(Kf),i=r<0||e&&t!=="loop"&&e%2===1?0:a.length-1;return!i||n===void 0?a[i]:n}const Xf={decay:Sa,inertia:Sa,tween:is,keyframes:is,spring:Os};function Tc(s){typeof s.type=="string"&&(s.type=Xf[s.type])}class yo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const Yf=s=>s/100;class rr extends yo{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==et.now()&&this.tick(et.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Tc(e);const{type:t=is,repeat:n=0,repeatDelay:r=0,repeatType:a,velocity:o=0}=e;let{keyframes:i}=e;const l=t||is;process.env.NODE_ENV!=="production"&&l!==is&&qe(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`,"spring-two-frames"),l!==is&&typeof i[0]!="number"&&(this.mixKeyframes=Hs(Yf,xc(i[0],i[1])),i=[0,100]);const c=l({...e,keyframes:i});a==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...i].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=ho(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:d,repeat:u,repeatType:f,repeatDelay:m,type:g,onUpdate:x,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const w=this.currentTime-c*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?w<0:w>r;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let p=this.currentTime,b=n;if(u){const T=Math.min(this.currentTime,r)/i;let A=Math.floor(T),E=T%1;!E&&T>=1&&(E=1),E===1&&A--,A=Math.min(A,u+1),!!(A%2)&&(f==="reverse"?(E=1-E,m&&(E-=m/i)):f==="mirror"&&(b=o)),p=gt(0,1,E)*i}const S=h?{done:!1,value:d[0]}:b.next(p);a&&(S.value=a(S.value));let{done:C}=S;!h&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const v=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return v&&g!==Sa&&(S.value=bo(d,this.options,y,this.speed)),x&&x(S.value),v&&this.finish(),S}then(e,t){return this.finished.then(e,t)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+lt(e)}get time(){return lt(this.currentTime)}set time(e){e=ct(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(et.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=lt(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Bf,startTime:t}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),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(et.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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function qf(s){for(let e=1;e<s.length;e++)s[e]??(s[e]=s[e-1])}const Lt=s=>s*180/Math.PI,Ta=s=>{const e=Lt(Math.atan2(s[1],s[0]));return Aa(e)},Zf={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:s=>(Math.abs(s[0])+Math.abs(s[3]))/2,rotate:Ta,rotateZ:Ta,skewX:s=>Lt(Math.atan(s[1])),skewY:s=>Lt(Math.atan(s[2])),skew:s=>(Math.abs(s[1])+Math.abs(s[2]))/2},Aa=s=>(s=s%360,s<0&&(s+=360),s),di=Ta,ui=s=>Math.sqrt(s[0]*s[0]+s[1]*s[1]),fi=s=>Math.sqrt(s[4]*s[4]+s[5]*s[5]),Jf={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ui,scaleY:fi,scale:s=>(ui(s)+fi(s))/2,rotateX:s=>Aa(Lt(Math.atan2(s[6],s[5]))),rotateY:s=>Aa(Lt(Math.atan2(-s[2],s[0]))),rotateZ:di,rotate:di,skewX:s=>Lt(Math.atan(s[4])),skewY:s=>Lt(Math.atan(s[1])),skew:s=>(Math.abs(s[1])+Math.abs(s[4]))/2};function ja(s){return s.includes("scale")?1:0}function Na(s,e){if(!s||s==="none")return ja(e);const t=s.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,r;if(t)n=Jf,r=t;else{const i=s.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Zf,r=i}if(!r)return ja(e);const a=n[e],o=r[1].split(",").map(e0);return typeof a=="function"?a(o):o[a]}const Qf=(s,e)=>{const{transform:t="none"}=getComputedStyle(s);return Na(t,e)};function e0(s){return parseFloat(s.trim())}const ys=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vs=new Set(ys),mi=s=>s===bs||s===Se,t0=new Set(["x","y","z"]),s0=ys.filter(s=>!t0.has(s));function n0(s){const e=[];return s0.forEach(t=>{const n=s.getValue(t);n!==void 0&&(e.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),e}const $t={width:({x:s},{paddingLeft:e="0",paddingRight:t="0"})=>s.max-s.min-parseFloat(e)-parseFloat(t),height:({y:s},{paddingTop:e="0",paddingBottom:t="0"})=>s.max-s.min-parseFloat(e)-parseFloat(t),top:(s,{top:e})=>parseFloat(e),left:(s,{left:e})=>parseFloat(e),bottom:({y:s},{top:e})=>parseFloat(e)+(s.max-s.min),right:({x:s},{left:e})=>parseFloat(e)+(s.max-s.min),x:(s,{transform:e})=>Na(e,"x"),y:(s,{transform:e})=>Na(e,"y")};$t.translateX=$t.x;$t.translateY=$t.y;const Ot=new Set;let Pa=!1,Va=!1,Ma=!1;function Ac(){if(Va){const s=Array.from(Ot).filter(n=>n.needsMeasurement),e=new Set(s.map(n=>n.element)),t=new Map;e.forEach(n=>{const r=n0(n);r.length&&(t.set(n,r),n.render())}),s.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const r=t.get(n);r&&r.forEach(([a,o])=>{n.getValue(a)?.set(o)})}),s.forEach(n=>n.measureEndState()),s.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Va=!1,Pa=!1,Ot.forEach(s=>s.complete(Ma)),Ot.clear()}function jc(){Ot.forEach(s=>{s.readKeyframes(),s.needsMeasurement&&(Va=!0)})}function r0(){Ma=!0,jc(),Ac(),Ma=!1}class vo{constructor(e,t,n,r,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ot.add(this),Pa||(Pa=!0,Me.read(jc),Me.resolveKeyframes(Ac))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){const a=r?.get(),o=e[e.length-1];if(a!==void 0)e[0]=a;else if(n&&t){const i=n.readValue(t,o);i!=null&&(e[0]=i)}e[0]===void 0&&(e[0]=o),r&&a===void 0&&r.set(e[0])}qf(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ot.delete(this)}cancel(){this.state==="scheduled"&&(Ot.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const a0=s=>s.startsWith("--");function o0(s,e,t){a0(e)?s.style.setProperty(e,t):s.style[e]=t}const Nc=no(()=>window.ScrollTimeline!==void 0),i0={};function l0(s,e){const t=no(s);return()=>i0[e]??t()}const Pc=l0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ps=([s,e,t,n])=>`cubic-bezier(${s}, ${e}, ${t}, ${n})`,hi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ps([0,.65,.55,1]),circOut:Ps([.55,0,1,.45]),backIn:Ps([.31,.01,.66,-.59]),backOut:Ps([.33,1.53,.69,.99])};function Vc(s,e){if(s)return typeof s=="function"?Pc()?wc(s,e):"ease-out":uc(s)?Ps(s):Array.isArray(s)?s.map(t=>Vc(t,e)||hi.easeOut):hi[s]}function c0(s,e,t,{delay:n=0,duration:r=300,repeat:a=0,repeatType:o="loop",ease:i="easeOut",times:l}={},c=void 0){const d={[e]:t};l&&(d.offset=l);const u=Vc(i,r);Array.isArray(u)&&(d.easing=u);const f={delay:n,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),s.animate(d,f)}function xo(s){return typeof s=="function"&&"applyToOptions"in s}function d0({type:s,...e}){return xo(s)&&Pc()?s.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class u0 extends yo{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:i,onComplete:l}=e;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=e,qe(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=d0(e);this.animation=c0(t,n,r,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=bo(r,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(d):o0(t,n,d),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;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return lt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+lt(e)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=ct(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Nc()?(this.animation.timeline=e,tt):t(this)}}const Mc={anticipate:ac,backInOut:rc,circInOut:ic};function f0(s){return s in Mc}function m0(s){typeof s.ease=="string"&&f0(s.ease)&&(s.ease=Mc[s.ease])}const pi=10;class h0 extends u0{constructor(e){m0(e),Tc(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:a,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}const i=new rr({...o,autoplay:!1}),l=ct(this.finishedTime??this.time);t.setWithVelocity(i.sample(l-pi).value,i.sample(l).value,pi),i.stop()}}const gi=(s,e)=>e==="zIndex"?!1:!!(typeof s=="number"||Array.isArray(s)||typeof s=="string"&&(Pt.test(s)||s==="0")&&!s.startsWith("url("));function p0(s){const e=s[0];if(s.length===1)return!0;for(let t=0;t<s.length;t++)if(s[t]!==e)return!0}function g0(s,e,t,n){const r=s[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const a=s[s.length-1],o=gi(r,e),i=gi(a,e);return gs(o===i,`You are trying to animate ${e} from "${r}" to "${a}". "${o?a:r}" is not an animatable value.`,"value-not-animatable"),!o||!i?!1:p0(s)||(t==="spring"||xo(t))&&n}function Ia(s){s.duration=0,s.type="keyframes"}const b0=new Set(["opacity","clipPath","filter","transform"]),y0=no(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function v0(s){const{motionValue:e,name:t,repeatDelay:n,repeatType:r,damping:a,type:o}=s;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return y0()&&t&&b0.has(t)&&(t!=="transform"||!c)&&!l&&!n&&r!=="mirror"&&a!==0&&o!=="inertia"}const x0=40;class w0 extends yo{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:o="loop",keyframes:i,name:l,motionValue:c,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=et.now();const f={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:a,repeatType:o,name:l,motionValue:c,element:d,...u},m=d?.KeyframeResolver||vo;this.keyframeResolver=new m(i,(g,x,y)=>this.onKeyframesResolved(g,x,f,!y),l,c,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:a,type:o,velocity:i,delay:l,isHandoff:c,onUpdate:d}=n;this.resolvedAt=et.now(),g0(e,a,o,i)||((wt.instantAnimations||!l)&&d?.(bo(e,n,t)),e[0]=e[e.length-1],Ia(n),n.repeat=0);const f={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>x0?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},m=!c&&v0(f)?new h0({...f,element:f.motionValue.owner.current}):new rr(f);m.finished.then(()=>this.notifyFinished()).catch(tt),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(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),r0()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class C0{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){const t=this.animations.map(n=>n.attachTimeline(e));return()=>{t.forEach((n,r)=>{n&&n(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return bi(this.animations,"duration")}get iterationDuration(){return bi(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function bi(s,e){let t=0;for(let n=0;n<s.length;n++){const r=s[n][e];r!==null&&r>t&&(t=r)}return t}class k0 extends C0{then(e,t){return this.finished.finally(e).then(()=>{})}}const S0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function T0(s){const e=S0.exec(s);if(!e)return[,];const[,t,n,r]=e;return[`--${t??n}`,r]}const A0=4;function Ic(s,e,t=1){qe(t<=A0,`Max CSS variable fallback depth detected in property "${s}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,r]=T0(s);if(!n)return;const a=window.getComputedStyle(e).getPropertyValue(n);if(a){const o=a.trim();return Zl(o)?parseFloat(o):o}return co(r)?Ic(r,e,t+1):r}function wo(s,e){return s?.[e]??s?.default??s}const Ec=new Set(["width","height","top","left","right","bottom",...ys]),j0={test:s=>s==="auto",parse:s=>s},Rc=s=>e=>e.test(s),Dc=[bs,Se,pt,jt,xf,vf,j0],yi=s=>Dc.find(Rc(s));function N0(s){return typeof s=="number"?s===0:s!==null?s==="none"||s==="0"||Ql(s):!0}const P0=new Set(["brightness","contrast","saturate","opacity"]);function V0(s){const[e,t]=s.slice(0,-1).split("(");if(e==="drop-shadow")return s;const[n]=t.match(uo)||[];if(!n)return s;const r=t.replace(n,"");let a=P0.has(e)?1:0;return n!==t&&(a*=100),e+"("+a+r+")"}const M0=/\b([a-z-]*)\(.*?\)/gu,Ea={...Pt,getAnimatableNone:s=>{const e=s.match(M0);return e?e.map(V0).join(" "):s}},vi={...bs,transform:Math.round},I0={rotate:jt,rotateX:jt,rotateY:jt,rotateZ:jt,scale:Pn,scaleX:Pn,scaleY:Pn,scaleZ:Pn,skew:jt,skewX:jt,skewY:jt,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:Ls,originX:ai,originY:ai,originZ:Se},Co={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se,...I0,zIndex:vi,fillOpacity:Ls,strokeOpacity:Ls,numOctaves:vi},E0={...Co,color:Ge,backgroundColor:Ge,outlineColor:Ge,fill:Ge,stroke:Ge,borderColor:Ge,borderTopColor:Ge,borderRightColor:Ge,borderBottomColor:Ge,borderLeftColor:Ge,filter:Ea,WebkitFilter:Ea},Bc=s=>E0[s];function Lc(s,e){let t=Bc(s);return t!==Ea&&(t=Pt),t.getAnimatableNone?t.getAnimatableNone(e):void 0}const R0=new Set(["auto","none","0"]);function D0(s,e,t){let n=0,r;for(;n<s.length&&!r;){const a=s[n];typeof a=="string"&&!R0.has(a)&&$s(a).values.length&&(r=s[n]),n++}if(r&&t)for(const a of e)s[a]=Lc(t,r)}class B0 extends vo{constructor(e,t,n,r,a){super(e,t,n,r,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),co(c))){const d=Ic(c,t.current);d!==void 0&&(e[l]=d),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ec.has(n)||e.length!==2)return;const[r,a]=e,o=yi(r),i=yi(a);if(o!==i)if(mi(o)&&mi(i))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else $t[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let r=0;r<e.length;r++)(e[r]===null||N0(e[r]))&&n.push(r);n.length&&D0(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$t[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const a=n.length-1,o=n[a];n[a]=$t[t](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,l])=>{e.getValue(i).set(l)}),this.resolveNoneKeyframes()}}function ar(s,e,t){if(s instanceof EventTarget)return[s];if(typeof s=="string"){let n=document;const r=t?.[s]??n.querySelectorAll(s);return r?Array.from(r):[]}return Array.from(s)}const $c=(s,e)=>e&&typeof s=="number"?e.transform(s):s;function ko(s){return Jl(s)&&"offsetHeight"in s}const xi=30,L0=s=>!isNaN(parseFloat(s)),Is={current:void 0};class $0{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const r=et.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=et.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=L0(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&nr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ro);const n=this.events[e].add(t);return e==="change"?()=>{n(),Me.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Is.current&&Is.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>xi)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,xi);return ao(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 ut(s,e){return new $0(s,e)}const{schedule:So}=fc(queueMicrotask,!1),dt={x:!1,y:!1};function Oc(){return dt.x||dt.y}function O0(s){return s==="x"||s==="y"?dt[s]?null:(dt[s]=!0,()=>{dt[s]=!1}):dt.x||dt.y?null:(dt.x=dt.y=!0,()=>{dt.x=dt.y=!1})}function zc(s,e){const t=ar(s),n=new AbortController,r={passive:!0,...e,signal:n.signal};return[t,r,()=>n.abort()]}function wi(s){return!(s.pointerType==="touch"||Oc())}function z0(s,e,t={}){const[n,r,a]=zc(s,t),o=i=>{if(!wi(i))return;const{target:l}=i,c=e(l,i);if(typeof c!="function"||!l)return;const d=u=>{wi(u)&&(c(u),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,r)};return n.forEach(i=>{i.addEventListener("pointerenter",o,r)}),a}const _c=(s,e)=>e?s===e?!0:_c(s,e.parentElement):!1,To=s=>s.pointerType==="mouse"?typeof s.button!="number"||s.button<=0:s.isPrimary!==!1,_0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function F0(s){return _0.has(s.tagName)||s.tabIndex!==-1}const _n=new WeakSet;function Ci(s){return e=>{e.key==="Enter"&&s(e)}}function ra(s,e){s.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const W0=(s,e)=>{const t=s.currentTarget;if(!t)return;const n=Ci(()=>{if(_n.has(t))return;ra(t,"down");const r=Ci(()=>{ra(t,"up")}),a=()=>ra(t,"cancel");t.addEventListener("keyup",r,e),t.addEventListener("blur",a,e)});t.addEventListener("keydown",n,e),t.addEventListener("blur",()=>t.removeEventListener("keydown",n),e)};function ki(s){return To(s)&&!Oc()}function G0(s,e,t={}){const[n,r,a]=zc(s,t),o=i=>{const l=i.currentTarget;if(!ki(i))return;_n.add(l);const c=e(l,i),d=(m,g)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",f),_n.has(l)&&_n.delete(l),ki(m)&&typeof c=="function"&&c(m,{success:g})},u=m=>{d(m,l===window||l===document||t.useGlobalTarget||_c(l,m.target))},f=m=>{d(m,!1)};window.addEventListener("pointerup",u,r),window.addEventListener("pointercancel",f,r)};return n.forEach(i=>{(t.useGlobalTarget?window:i).addEventListener("pointerdown",o,r),ko(i)&&(i.addEventListener("focus",c=>W0(c,r)),!F0(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),a}function or(s){return Jl(s)&&"ownerSVGElement"in s}const Fn=new WeakMap;let Wn;const Fc=(s,e,t)=>(n,r)=>r&&r[0]?r[0][s+"Size"]:or(n)&&"getBBox"in n?n.getBBox()[e]:n[t],U0=Fc("inline","width","offsetWidth"),H0=Fc("block","height","offsetHeight");function K0({target:s,borderBoxSize:e}){Fn.get(s)?.forEach(t=>{t(s,{get width(){return U0(s,e)},get height(){return H0(s,e)}})})}function X0(s){s.forEach(K0)}function Y0(){typeof ResizeObserver>"u"||(Wn=new ResizeObserver(X0))}function q0(s,e){Wn||Y0();const t=ar(s);return t.forEach(n=>{let r=Fn.get(n);r||(r=new Set,Fn.set(n,r)),r.add(e),Wn?.observe(n)}),()=>{t.forEach(n=>{const r=Fn.get(n);r?.delete(e),r?.size||Wn?.unobserve(n)})}}const Gn=new Set;let ls;function Z0(){ls=()=>{const s={get width(){return window.innerWidth},get height(){return window.innerHeight}};Gn.forEach(e=>e(s))},window.addEventListener("resize",ls)}function J0(s){return Gn.add(s),ls||Z0(),()=>{Gn.delete(s),!Gn.size&&typeof ls=="function"&&(window.removeEventListener("resize",ls),ls=void 0)}}function Q0(s,e){return typeof s=="function"?J0(s):q0(s,e)}function Wc(s,e){let t;const n=()=>{const{currentTime:r}=e,o=(r===null?0:r.value)/100;t!==o&&s(o),t=o};return Me.preUpdate(n,!0),()=>ft(n)}function Gc(s){return or(s)&&s.tagName==="svg"}function em(...s){const e=!Array.isArray(s[0]),t=e?0:-1,n=s[0+t],r=s[1+t],a=s[2+t],o=s[3+t],i=po(r,a,o);return e?i(n):i}const Ue=s=>!!(s&&s.getVelocity);function tm(s,e,t){const n=s.get();let r=null,a=n,o;const i=typeof n=="string"?n.replace(/[\d.-]/g,""):void 0,l=()=>{r&&(r.stop(),r=null)},c=()=>{l(),r=new rr({keyframes:[Ti(s.get()),Ti(a)],velocity:s.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:o})};if(s.attach((d,u)=>{a=d,o=f=>u(Si(f,i)),Me.postRender(c)},l),Ue(e)){const d=e.on("change",f=>s.set(Si(f,i))),u=s.on("destroy",d);return()=>{d(),u()}}return l}function Si(s,e){return e?s+e:s}function Ti(s){return typeof s=="number"?s:parseFloat(s)}const sm=[...Dc,Ge,Pt],nm=s=>sm.find(Rc(s)),Ys=j.createContext({transformPagePoint:s=>s,isStatic:!1,reducedMotion:"never"});function Ai(s,e){if(typeof s=="function")return s(e);s!=null&&(s.current=e)}function rm(...s){return e=>{let t=!1;const n=s.map(r=>{const a=Ai(r,e);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let r=0;r<n.length;r++){const a=n[r];typeof a=="function"?a():Ai(s[r],null)}}}}function am(...s){return er.useCallback(rm(...s),s)}class om extends er.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const n=t.offsetParent,r=ko(n)&&n.offsetWidth||0,a=this.props.sizeRef.current;a.height=t.offsetHeight||0,a.width=t.offsetWidth||0,a.top=t.offsetTop,a.left=t.offsetLeft,a.right=r-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function im({children:s,isPresent:e,anchorX:t,root:n}){const r=j.useId(),a=j.useRef(null),o=j.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=j.useContext(Ys),l=am(a,s?.ref);return j.useInsertionEffect(()=>{const{width:c,height:d,top:u,left:f,right:m}=o.current;if(e||!a.current||!c||!d)return;const g=t==="left"?`left: ${f}`:`right: ${m}`;a.current.dataset.motionPopId=r;const x=document.createElement("style");i&&(x.nonce=i);const y=n??document.head;return y.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),h=require("react"),ta=require("react-router"),Jn=require("react-dom");function fd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Lr=fd(h),Qn=h.createContext({});function ht(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const es=typeof window<"u",nr=es?h.useLayoutEffect:h.useEffect,Or=h.createContext(null);function ts(e,t){e.indexOf(t)===-1&&e.push(t)}function zr(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Fe=(e,t,r)=>r>t?t:r<e?e:r;function xn(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Mt=()=>{},be=()=>{};process.env.NODE_ENV!=="production"&&(Mt=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(xn(t,r))},be=(e,t,r)=>{if(!e)throw new Error(xn(t,r))});const Ke={},Yo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function qo(e){return typeof e=="object"&&e!==null}const Zo=e=>/^0[^.\s]+$/u.test(e);function rs(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,pd=(e,t)=>r=>t(e(r)),sr=(...e)=>e.reduce(pd),pt=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class ns{constructor(){this.subscriptions=[]}add(t){return ts(this.subscriptions,t),()=>zr(this.subscriptions,t)}notify(t,r,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,r,n);else for(let a=0;a<s;a++){const o=this.subscriptions[a];o&&o(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ie=e=>e*1e3,Ee=e=>e/1e3;function ss(e,t){return t?e*(1e3/t):0}const ra=new Set;function $r(e,t,r){e||ra.has(t)||(console.warn(xn(t,r)),ra.add(t))}const hd=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},Jo=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,md=1e-7,gd=12;function bd(e,t,r,n,s){let a,o,i=0;do o=t+(r-t)/2,a=Jo(o,n,s)-e,a>0?r=o:t=o;while(Math.abs(a)>md&&++i<gd);return o}function ar(e,t,r,n){if(e===t&&r===n)return Ce;const s=a=>bd(a,0,1,e,r);return a=>a===0||a===1?a:Jo(s(a),t,n)}const Qo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ei=e=>t=>1-e(1-t),ti=ar(.33,1.53,.69,.99),as=ei(ti),ri=Qo(as),ni=e=>(e*=2)<1?.5*as(e):.5*(2-Math.pow(2,-10*(e-1))),os=e=>1-Math.sin(Math.acos(e)),si=ei(os),ai=Qo(os),yd=ar(.42,0,1,1),xd=ar(0,0,.58,1),oi=ar(.42,0,.58,1),ii=e=>Array.isArray(e)&&typeof e[0]!="number";function li(e,t){return ii(e)?e[hd(0,e.length,t)]:e}const ci=e=>Array.isArray(e)&&typeof e[0]=="number",na={linear:Ce,easeIn:yd,easeInOut:oi,easeOut:xd,circIn:os,circInOut:ai,circOut:si,backIn:as,backInOut:ri,backOut:ti,anticipate:ni},vd=e=>typeof e=="string",sa=e=>{if(ci(e)){be(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,s]=e;return ar(t,r,n,s)}else if(vd(e))return be(na[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),na[e];return e},fr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function wd(e,t){let r=new Set,n=new Set,s=!1,a=!1;const o=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(c.schedule(d),e()),d(i)}const c={schedule:(d,u=!1,p=!1)=>{const g=p&&s?r:n;return u&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(i=d,s){a=!0;return}s=!0,[r,n]=[n,r],r.forEach(l),r.clear(),s=!1,a&&(a=!1,c.process(d))}};return c}const Cd=40;function di(e,t){let r=!1,n=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=fr.reduce((v,C)=>(v[C]=wd(a),v),{}),{setup:i,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:p,render:m,postRender:g}=o,w=()=>{const v=Ke.useManualTiming?s.timestamp:performance.now();r=!1,Ke.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(v-s.timestamp,Cd),1)),s.timestamp=v,s.isProcessing=!0,i.process(s),l.process(s),c.process(s),d.process(s),u.process(s),p.process(s),m.process(s),g.process(s),s.isProcessing=!1,r&&t&&(n=!1,e(w))},x=()=>{r=!0,n=!0,s.isProcessing||e(w)};return{schedule:fr.reduce((v,C)=>{const S=o[C];return v[C]=(j,A=!1,k=!1)=>(r||x(),S.schedule(j,A,k)),v},{}),cancel:v=>{for(let C=0;C<fr.length;C++)o[fr[C]].cancel(v)},state:s,steps:o}}const{schedule:re,cancel:Be,state:me,steps:Qr}=di(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let kr;function kd(){kr=void 0}const we={now:()=>(kr===void 0&&we.set(me.isProcessing||Ke.useManualTiming?me.timestamp:performance.now()),kr),set:e=>{kr=e,queueMicrotask(kd)}},ui=e=>t=>typeof t=="string"&&t.startsWith(e),is=ui("--"),Sd=ui("var(--"),ls=e=>Sd(e)?jd.test(e.split("/*")[0].trim()):!1,jd=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Yt={...Vt,transform:e=>Fe(0,1,e)},pr={...Vt,default:1},_t=e=>Math.round(e*1e5)/1e5,cs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Td(e){return e==null}const Ad=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ds=(e,t)=>r=>!!(typeof r=="string"&&Ad.test(r)&&r.startsWith(e)||t&&!Td(r)&&Object.prototype.hasOwnProperty.call(r,t)),fi=(e,t,r)=>n=>{if(typeof n!="string")return n;const[s,a,o,i]=n.match(cs);return{[e]:parseFloat(s),[t]:parseFloat(a),[r]:parseFloat(o),alpha:i!==void 0?parseFloat(i):1}},Md=e=>Fe(0,255,e),en={...Vt,transform:e=>Math.round(Md(e))},ct={test:ds("rgb","red"),parse:fi("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+en.transform(e)+", "+en.transform(t)+", "+en.transform(r)+", "+_t(Yt.transform(n))+")"};function Vd(e){let t="",r="",n="",s="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),s=e.substring(4,5),t+=t,r+=r,n+=n,s+=s),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const vn={test:ds("#"),parse:Vd,transform:ct.transform},or=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qe=or("deg"),$e=or("%"),X=or("px"),Pd=or("vh"),Ed=or("vw"),aa={...$e,parse:e=>$e.parse(e)/100,transform:e=>$e.transform(e*100)},yt={test:ds("hsl","hue"),parse:fi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+$e.transform(_t(t))+", "+$e.transform(_t(r))+", "+_t(Yt.transform(n))+")"},ue={test:e=>ct.test(e)||vn.test(e)||yt.test(e),parse:e=>ct.test(e)?ct.parse(e):yt.test(e)?yt.parse(e):vn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ct.transform(e):yt.transform(e),getAnimatableNone:e=>{const t=ue.parse(e);return t.alpha=0,ue.transform(t)}},Id=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Nd(e){return isNaN(e)&&typeof e=="string"&&(e.match(cs)?.length||0)+(e.match(Id)?.length||0)>0}const pi="number",hi="color",Rd="var",Dd="var(",oa="${}",Bd=/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 qt(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},s=[];let a=0;const i=t.replace(Bd,l=>(ue.test(l)?(n.color.push(a),s.push(hi),r.push(ue.parse(l))):l.startsWith(Dd)?(n.var.push(a),s.push(Rd),r.push(l)):(n.number.push(a),s.push(pi),r.push(parseFloat(l))),++a,oa)).split(oa);return{values:r,split:i,indexes:n,types:s}}function mi(e){return qt(e).values}function gi(e){const{split:t,types:r}=qt(e),n=t.length;return s=>{let a="";for(let o=0;o<n;o++)if(a+=t[o],s[o]!==void 0){const i=r[o];i===pi?a+=_t(s[o]):i===hi?a+=ue.transform(s[o]):a+=s[o]}return a}}const Ld=e=>typeof e=="number"?0:ue.test(e)?ue.getAnimatableNone(e):e;function Od(e){const t=mi(e);return gi(e)(t.map(Ld))}const tt={test:Nd,parse:mi,createTransformer:gi,getAnimatableNone:Od};function tn(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function zd({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let s=0,a=0,o=0;if(!t)s=a=o=r;else{const i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;s=tn(l,i,e+1/3),a=tn(l,i,e),o=tn(l,i,e-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}function Pr(e,t){return r=>r>0?t:e}const oe=(e,t,r)=>e+(t-e)*r,rn=(e,t,r)=>{const n=e*e,s=r*(t*t-n)+n;return s<0?0:Math.sqrt(s)},$d=[vn,ct,yt],Fd=e=>$d.find(t=>t.test(e));function ia(e){const t=Fd(e);if(Mt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===yt&&(r=zd(r)),r}const la=(e,t)=>{const r=ia(e),n=ia(t);if(!r||!n)return Pr(e,t);const s={...r};return a=>(s.red=rn(r.red,n.red,a),s.green=rn(r.green,n.green,a),s.blue=rn(r.blue,n.blue,a),s.alpha=oe(r.alpha,n.alpha,a),ct.transform(s))},wn=new Set(["none","hidden"]);function Wd(e,t){return wn.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function _d(e,t){return r=>oe(e,t,r)}function us(e){return typeof e=="number"?_d:typeof e=="string"?ls(e)?Pr:ue.test(e)?la:Kd:Array.isArray(e)?bi:typeof e=="object"?ue.test(e)?la:Gd:Pr}function bi(e,t){const r=[...e],n=r.length,s=e.map((a,o)=>us(a)(a,t[o]));return a=>{for(let o=0;o<n;o++)r[o]=s[o](a);return r}}function Gd(e,t){const r={...e,...t},n={};for(const s in r)e[s]!==void 0&&t[s]!==void 0&&(n[s]=us(e[s])(e[s],t[s]));return s=>{for(const a in n)r[a]=n[a](s);return r}}function Ud(e,t){const r=[],n={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],o=e.indexes[a][n[a]],i=e.values[o]??0;r[s]=i,n[a]++}return r}const Kd=(e,t)=>{const r=tt.createTransformer(t),n=qt(e),s=qt(t);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?wn.has(e)&&!s.values.length||wn.has(t)&&!n.values.length?Wd(e,t):sr(bi(Ud(n,s),s.values),r):(Mt(!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"),Pr(e,t))};function yi(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?oe(e,t,r):us(e)(e,t)}const Hd=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>re.update(t,r),stop:()=>Be(t),now:()=>me.isProcessing?me.timestamp:we.now()}},xi=(e,t,r=10)=>{let n="";const s=Math.max(Math.round(t/r),2);for(let a=0;a<s;a++)n+=Math.round(e(a/(s-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Er=2e4;function fs(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Er;)t+=r,n=e.next(t);return t>=Er?1/0:t}function vi(e,t=100,r){const n=r({...e,keyframes:[0,t]}),s=Math.min(fs(n),Er);return{type:"keyframes",ease:a=>n.next(s*a).value/t,duration:Ee(s)}}const Xd=5;function wi(e,t,r){const n=Math.max(t-Xd,0);return ss(r-e(n),t-n)}const le={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},nn=.001;function Yd({duration:e=le.duration,bounce:t=le.bounce,velocity:r=le.velocity,mass:n=le.mass}){let s,a;Mt(e<=Ie(le.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=Fe(le.minDamping,le.maxDamping,o),e=Fe(le.minDuration,le.maxDuration,Ee(e)),o<1?(s=c=>{const d=c*o,u=d*e,p=d-r,m=Cn(c,o),g=Math.exp(-u);return nn-p/m*g},a=c=>{const u=c*o*e,p=u*r+r,m=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-u),w=Cn(Math.pow(c,2),o);return(-s(c)+nn>0?-1:1)*((p-m)*g)/w}):(s=c=>{const d=Math.exp(-c*e),u=(c-r)*e+1;return-nn+d*u},a=c=>{const d=Math.exp(-c*e),u=(r-c)*(e*e);return d*u});const i=5/e,l=Zd(s,a,i);if(e=Ie(e),isNaN(l))return{stiffness:le.stiffness,damping:le.damping,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:e}}}const qd=12;function Zd(e,t,r){let n=r;for(let s=1;s<qd;s++)n=n-e(n)/t(n);return n}function Cn(e,t){return e*Math.sqrt(1-t*t)}const Jd=["duration","bounce"],Qd=["stiffness","damping","mass"];function ca(e,t){return t.some(r=>e[r]!==void 0)}function eu(e){let t={velocity:le.velocity,stiffness:le.stiffness,damping:le.damping,mass:le.mass,isResolvedFromDuration:!1,...e};if(!ca(e,Qd)&&ca(e,Jd))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),s=n*n,a=2*Fe(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:le.mass,stiffness:s,damping:a}}else{const r=Yd(e);t={...t,...r,mass:le.mass},t.isResolvedFromDuration=!0}return t}function Zt(e=le.visualDuration,t=le.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:s}=r;const a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],i={done:!1,value:a},{stiffness:l,damping:c,mass:d,duration:u,velocity:p,isResolvedFromDuration:m}=eu({...r,velocity:-Ee(r.velocity||0)}),g=p||0,w=c/(2*Math.sqrt(l*d)),x=o-a,b=Ee(Math.sqrt(l/d)),y=Math.abs(x)<5;n||(n=y?le.restSpeed.granular:le.restSpeed.default),s||(s=y?le.restDelta.granular:le.restDelta.default);let v;if(w<1){const S=Cn(b,w);v=j=>{const A=Math.exp(-w*b*j);return o-A*((g+w*b*x)/S*Math.sin(S*j)+x*Math.cos(S*j))}}else if(w===1)v=S=>o-Math.exp(-b*S)*(x+(g+b*x)*S);else{const S=b*Math.sqrt(w*w-1);v=j=>{const A=Math.exp(-w*b*j),k=Math.min(S*j,300);return o-A*((g+w*b*x)*Math.sinh(k)+S*x*Math.cosh(k))/S}}const C={calculatedDuration:m&&u||null,next:S=>{const j=v(S);if(m)i.done=S>=u;else{let A=S===0?g:0;w<1&&(A=S===0?Ie(g):wi(v,S,j));const k=Math.abs(A)<=n,V=Math.abs(o-j)<=s;i.done=k&&V}return i.value=i.done?o:j,i},toString:()=>{const S=Math.min(fs(C),Er),j=xi(A=>C.next(S*A).value,S,30);return S+"ms "+j},toTransition:()=>{}};return C}Zt.applyToOptions=e=>{const t=vi(e,100,Zt);return e.ease=t.ease,e.duration=Ie(t.duration),e.type="keyframes",e};function kn({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:o,min:i,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],p={done:!1,value:u},m=k=>i!==void 0&&k<i||l!==void 0&&k>l,g=k=>i===void 0?l:l===void 0||Math.abs(i-k)<Math.abs(l-k)?i:l;let w=r*t;const x=u+w,b=o===void 0?x:o(x);b!==x&&(w=b-u);const y=k=>-w*Math.exp(-k/n),v=k=>b+y(k),C=k=>{const V=y(k),M=v(k);p.done=Math.abs(V)<=c,p.value=p.done?b:M};let S,j;const A=k=>{m(p.value)&&(S=k,j=Zt({keyframes:[p.value,g(p.value)],velocity:wi(v,k,p.value),damping:s,stiffness:a,restDelta:c,restSpeed:d}))};return A(0),{calculatedDuration:null,next:k=>{let V=!1;return!j&&S===void 0&&(V=!0,C(k),A(k)),S!==void 0&&k>=S?j.next(k-S):(!V&&C(k),p)}}}function tu(e,t,r){const n=[],s=r||Ke.mix||yi,a=e.length-1;for(let o=0;o<a;o++){let i=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ce:t;i=sr(l,i)}n.push(i)}return n}function ps(e,t,{clamp:r=!0,ease:n,mixer:s}={}){const a=e.length;if(be(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=tu(t,n,s),l=i.length,c=d=>{if(o&&d<e[0])return t[0];let u=0;if(l>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const p=pt(e[u],e[u+1],d);return i[u](p)};return r?d=>c(Fe(e[0],e[a-1],d)):c}function Ci(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const s=pt(0,t,n);e.push(oe(r,1,s))}}function hs(e){const t=[0];return Ci(t,e.length-1),t}function ru(e,t){return e.map(r=>r*t)}function nu(e,t){return e.map(()=>t||oi).splice(0,e.length-1)}function xt({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const s=ii(n)?n.map(sa):sa(n),a={done:!1,value:t[0]},o=ru(r&&r.length===t.length?r:hs(t),e),i=ps(o,t,{ease:Array.isArray(s)?s:nu(t,s)});return{calculatedDuration:e,next:l=>(a.value=i(l),a.done=l>=e,a)}}const su=e=>e!==null;function ms(e,{repeat:t,repeatType:r="loop"},n,s=1){const a=e.filter(su),i=s<0||t&&r!=="loop"&&t%2===1?0:a.length-1;return!i||n===void 0?a[i]:n}const au={decay:kn,inertia:kn,tween:xt,keyframes:xt,spring:Zt};function ki(e){typeof e.type=="string"&&(e.type=au[e.type])}class gs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const ou=e=>e/100;class Fr extends gs{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==we.now()&&this.tick(we.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ki(t);const{type:r=xt,repeat:n=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=t;let{keyframes:i}=t;const l=r||xt;process.env.NODE_ENV!=="production"&&l!==xt&&be(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`,"spring-two-frames"),l!==xt&&typeof i[0]!="number"&&(this.mixKeyframes=sr(ou,yi(i[0],i[1])),i=[0,100]);const c=l({...t,keyframes:i});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=fs(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(n+1)-s,this.generator=c}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:s,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:d,repeat:u,repeatType:p,repeatDelay:m,type:g,onUpdate:w,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const b=this.currentTime-c*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?b<0:b>s;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,C=n;if(u){const k=Math.min(this.currentTime,s)/i;let V=Math.floor(k),M=k%1;!M&&k>=1&&(M=1),M===1&&V--,V=Math.min(V,u+1),!!(V%2)&&(p==="reverse"?(M=1-M,m&&(M-=m/i)):p==="mirror"&&(C=o)),v=Fe(0,1,M)*i}const S=y?{done:!1,value:d[0]}:C.next(v);a&&(S.value=a(S.value));let{done:j}=S;!y&&l!==null&&(j=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return A&&g!==kn&&(S.value=ms(d,this.options,x,this.speed)),w&&w(S.value),A&&this.finish(),S}then(t,r){return this.finished.then(t,r)}get duration(){return Ee(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(this.currentTime)}set time(t){t=Ie(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(we.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Ee(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Hd,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),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(we.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}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 iu(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const dt=e=>e*180/Math.PI,Sn=e=>{const t=dt(Math.atan2(e[1],e[0]));return jn(t)},lu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Sn,rotateZ:Sn,skewX:e=>dt(Math.atan(e[1])),skewY:e=>dt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},jn=e=>(e=e%360,e<0&&(e+=360),e),da=Sn,ua=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fa=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),cu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ua,scaleY:fa,scale:e=>(ua(e)+fa(e))/2,rotateX:e=>jn(dt(Math.atan2(e[6],e[5]))),rotateY:e=>jn(dt(Math.atan2(-e[2],e[0]))),rotateZ:da,rotate:da,skewX:e=>dt(Math.atan(e[4])),skewY:e=>dt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Tn(e){return e.includes("scale")?1:0}function An(e,t){if(!e||e==="none")return Tn(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,s;if(r)n=cu,s=r;else{const i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=lu,s=i}if(!s)return Tn(t);const a=n[t],o=s[1].split(",").map(uu);return typeof a=="function"?a(o):o[a]}const du=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return An(r,t)};function uu(e){return parseFloat(e.trim())}const Pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Et=new Set(Pt),pa=e=>e===Vt||e===X,fu=new Set(["x","y","z"]),pu=Pt.filter(e=>!fu.has(e));function hu(e){const t=[];return pu.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const ut={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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})=>An(t,"x"),y:(e,{transform:t})=>An(t,"y")};ut.translateX=ut.x;ut.translateY=ut.y;const ft=new Set;let Mn=!1,Vn=!1,Pn=!1;function Si(){if(Vn){const e=Array.from(ft).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const s=hu(n);s.length&&(r.set(n,s),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const s=r.get(n);s&&s.forEach(([a,o])=>{n.getValue(a)?.set(o)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Vn=!1,Mn=!1,ft.forEach(e=>e.complete(Pn)),ft.clear()}function ji(){ft.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Vn=!0)})}function mu(){Pn=!0,ji(),Si(),Pn=!1}class bs{constructor(t,r,n,s,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=s,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ft.add(this),Mn||(Mn=!0,re.read(ji),re.resolveKeyframes(Si))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:s}=this;if(t[0]===null){const a=s?.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&r){const i=n.readValue(r,o);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=o),s&&a===void 0&&s.set(t[0])}iu(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ft.delete(this)}cancel(){this.state==="scheduled"&&(ft.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const gu=e=>e.startsWith("--");function bu(e,t,r){gu(t)?e.style.setProperty(t,r):e.style[t]=r}const Ti=rs(()=>window.ScrollTimeline!==void 0),yu={};function xu(e,t){const r=rs(e);return()=>yu[t]??r()}const Ai=xu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ft=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ha={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ft([0,.65,.55,1]),circOut:Ft([.55,0,1,.45]),backIn:Ft([.31,.01,.66,-.59]),backOut:Ft([.33,1.53,.69,.99])};function Mi(e,t){if(e)return typeof e=="function"?Ai()?xi(e,t):"ease-out":ci(e)?Ft(e):Array.isArray(e)?e.map(r=>Mi(r,t)||ha.easeOut):ha[e]}function vu(e,t,r,{delay:n=0,duration:s=300,repeat:a=0,repeatType:o="loop",ease:i="easeOut",times:l}={},c=void 0){const d={[t]:r};l&&(d.offset=l);const u=Mi(i,s);Array.isArray(u)&&(d.easing=u);const p={delay:n,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return c&&(p.pseudoElement=c),e.animate(d,p)}function ys(e){return typeof e=="function"&&"applyToOptions"in e}function wu({type:e,...t}){return ys(e)&&Ai()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Cu extends gs{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:n,keyframes:s,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,be(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=wu(t);this.animation=vu(r,n,s,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=ms(s,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(d):bu(r,n,d),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;const{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(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ee(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ie(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:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Ti()?(this.animation.timeline=t,Ce):r(this)}}const Vi={anticipate:ni,backInOut:ri,circInOut:ai};function ku(e){return e in Vi}function Su(e){typeof e.ease=="string"&&ku(e.ease)&&(e.ease=Vi[e.ease])}const ma=10;class ju extends Cu{constructor(t){Su(t),ki(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:s,element:a,...o}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const i=new Fr({...o,autoplay:!1}),l=Ie(this.finishedTime??this.time);r.setWithVelocity(i.sample(l-ma).value,i.sample(l).value,ma),i.stop()}}const ga=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(tt.test(e)||e==="0")&&!e.startsWith("url("));function Tu(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function Au(e,t,r,n){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=ga(s,t),i=ga(a,t);return Mt(o===i,`You are trying to animate ${t} from "${s}" to "${a}". "${o?a:s}" is not an animatable value.`,"value-not-animatable"),!o||!i?!1:Tu(e)||(r==="spring"||ys(r))&&n}function En(e){e.duration=0,e.type="keyframes"}const Mu=new Set(["opacity","clipPath","filter","transform"]),Vu=rs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Pu(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:s,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return Vu()&&r&&Mu.has(r)&&(r!=="transform"||!c)&&!l&&!n&&s!=="mirror"&&a!==0&&o!=="inertia"}const Eu=40;class Iu extends gs{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:o="loop",keyframes:i,name:l,motionValue:c,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=we.now();const p={autoplay:t,delay:r,type:n,repeat:s,repeatDelay:a,repeatType:o,name:l,motionValue:c,element:d,...u},m=d?.KeyframeResolver||bs;this.keyframeResolver=new m(i,(g,w,x)=>this.onKeyframesResolved(g,w,p,!x),l,c,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,s){this.keyframeResolver=void 0;const{name:a,type:o,velocity:i,delay:l,isHandoff:c,onUpdate:d}=n;this.resolvedAt=we.now(),Au(t,a,o,i)||((Ke.instantAnimations||!l)&&d?.(ms(t,n,r)),t[0]=t[t.length-1],En(n),n.repeat=0);const p={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Eu?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},m=!c&&Pu(p)?new ju({...p,element:p.motionValue.owner.current}):new Fr(p);m.finished.then(()=>this.notifyFinished()).catch(Ce),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,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),mu()),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()}}class Nu{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,r){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=r}attachTimeline(t){const r=this.animations.map(n=>n.attachTimeline(t));return()=>{r.forEach((n,s)=>{n&&n(),this.animations[s].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 ba(this.animations,"duration")}get iterationDuration(){return ba(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(r=>r[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function ba(e,t){let r=0;for(let n=0;n<e.length;n++){const s=e[n][t];s!==null&&s>r&&(r=s)}return r}class Ru extends Nu{then(t,r){return this.finished.finally(t).then(()=>{})}}const Du=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Bu(e){const t=Du.exec(e);if(!t)return[,];const[,r,n,s]=t;return[`--${r??n}`,s]}const Lu=4;function Pi(e,t,r=1){be(r<=Lu,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,s]=Bu(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const o=a.trim();return Yo(o)?parseFloat(o):o}return ls(s)?Pi(s,t,r+1):s}function xs(e,t){return e?.[t]??e?.default??e}const Ei=new Set(["width","height","top","left","right","bottom",...Pt]),Ou={test:e=>e==="auto",parse:e=>e},Ii=e=>t=>t.test(e),Ni=[Vt,X,$e,Qe,Ed,Pd,Ou],ya=e=>Ni.find(Ii(e));function zu(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Zo(e):!0}const $u=new Set(["brightness","contrast","saturate","opacity"]);function Fu(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(cs)||[];if(!n)return e;const s=r.replace(n,"");let a=$u.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+s+")"}const Wu=/\b([a-z-]*)\(.*?\)/gu,In={...tt,getAnimatableNone:e=>{const t=e.match(Wu);return t?t.map(Fu).join(" "):e}},xa={...Vt,transform:Math.round},_u={rotate:Qe,rotateX:Qe,rotateY:Qe,rotateZ:Qe,scale:pr,scaleX:pr,scaleY:pr,scaleZ:pr,skew:Qe,skewX:Qe,skewY:Qe,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:Yt,originX:aa,originY:aa,originZ:X},vs={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,backgroundPositionX:X,backgroundPositionY:X,..._u,zIndex:xa,fillOpacity:Yt,strokeOpacity:Yt,numOctaves:xa},Gu={...vs,color:ue,backgroundColor:ue,outlineColor:ue,fill:ue,stroke:ue,borderColor:ue,borderTopColor:ue,borderRightColor:ue,borderBottomColor:ue,borderLeftColor:ue,filter:In,WebkitFilter:In},Ri=e=>Gu[e];function Di(e,t){let r=Ri(e);return r!==In&&(r=tt),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Uu=new Set(["auto","none","0"]);function Ku(e,t,r){let n=0,s;for(;n<e.length&&!s;){const a=e[n];typeof a=="string"&&!Uu.has(a)&&qt(a).values.length&&(s=e[n]),n++}if(s&&r)for(const a of t)e[a]=Di(r,s)}class Hu extends bs{constructor(t,r,n,s,a){super(t,r,n,s,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),ls(c))){const d=Pi(c,r.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ei.has(n)||t.length!==2)return;const[s,a]=t,o=ya(s),i=ya(a);if(o!==i)if(pa(o)&&pa(i))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else ut[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let s=0;s<t.length;s++)(t[s]===null||zu(t[s]))&&n.push(s);n.length&&Ku(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ut[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const s=r[r.length-1];s!==void 0&&t.getValue(n,s).jump(s,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const s=t.getValue(r);s&&s.jump(this.measuredOrigin,!1);const a=n.length-1,o=n[a];n[a]=ut[r](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,l])=>{t.getValue(i).set(l)}),this.resolveNoneKeyframes()}}function Wr(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const s=r?.[e]??n.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const Bi=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ws(e){return qo(e)&&"offsetHeight"in e}const va=30,Xu=e=>!isNaN(parseFloat(e)),Gt={current:void 0};class Yu{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const s=we.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=we.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Xu(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$r(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new ns);const n=this.events[t].add(r);return t==="change"?()=>{n(),re.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&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 Gt.current&&Gt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=we.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>va)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,va);return ss(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 De(e,t){return new Yu(e,t)}const{schedule:Cs}=di(queueMicrotask,!1),Re={x:!1,y:!1};function Li(){return Re.x||Re.y}function qu(e){return e==="x"||e==="y"?Re[e]?null:(Re[e]=!0,()=>{Re[e]=!1}):Re.x||Re.y?null:(Re.x=Re.y=!0,()=>{Re.x=Re.y=!1})}function Oi(e,t){const r=Wr(e),n=new AbortController,s={passive:!0,...t,signal:n.signal};return[r,s,()=>n.abort()]}function wa(e){return!(e.pointerType==="touch"||Li())}function Zu(e,t,r={}){const[n,s,a]=Oi(e,r),o=i=>{if(!wa(i))return;const{target:l}=i,c=t(l,i);if(typeof c!="function"||!l)return;const d=u=>{wa(u)&&(c(u),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,s)};return n.forEach(i=>{i.addEventListener("pointerenter",o,s)}),a}const zi=(e,t)=>t?e===t?!0:zi(e,t.parentElement):!1,ks=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ju=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Qu(e){return Ju.has(e.tagName)||e.tabIndex!==-1}const Sr=new WeakSet;function Ca(e){return t=>{t.key==="Enter"&&e(t)}}function sn(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ef=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=Ca(()=>{if(Sr.has(r))return;sn(r,"down");const s=Ca(()=>{sn(r,"up")}),a=()=>sn(r,"cancel");r.addEventListener("keyup",s,t),r.addEventListener("blur",a,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function ka(e){return ks(e)&&!Li()}function tf(e,t,r={}){const[n,s,a]=Oi(e,r),o=i=>{const l=i.currentTarget;if(!ka(i))return;Sr.add(l);const c=t(l,i),d=(m,g)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",p),Sr.has(l)&&Sr.delete(l),ka(m)&&typeof c=="function"&&c(m,{success:g})},u=m=>{d(m,l===window||l===document||r.useGlobalTarget||zi(l,m.target))},p=m=>{d(m,!1)};window.addEventListener("pointerup",u,s),window.addEventListener("pointercancel",p,s)};return n.forEach(i=>{(r.useGlobalTarget?window:i).addEventListener("pointerdown",o,s),ws(i)&&(i.addEventListener("focus",c=>ef(c,s)),!Qu(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),a}function _r(e){return qo(e)&&"ownerSVGElement"in e}const jr=new WeakMap;let Tr;const $i=(e,t,r)=>(n,s)=>s&&s[0]?s[0][e+"Size"]:_r(n)&&"getBBox"in n?n.getBBox()[t]:n[r],rf=$i("inline","width","offsetWidth"),nf=$i("block","height","offsetHeight");function sf({target:e,borderBoxSize:t}){jr.get(e)?.forEach(r=>{r(e,{get width(){return rf(e,t)},get height(){return nf(e,t)}})})}function af(e){e.forEach(sf)}function of(){typeof ResizeObserver>"u"||(Tr=new ResizeObserver(af))}function lf(e,t){Tr||of();const r=Wr(e);return r.forEach(n=>{let s=jr.get(n);s||(s=new Set,jr.set(n,s)),s.add(t),Tr?.observe(n)}),()=>{r.forEach(n=>{const s=jr.get(n);s?.delete(t),s?.size||Tr?.unobserve(n)})}}const Ar=new Set;let vt;function cf(){vt=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ar.forEach(t=>t(e))},window.addEventListener("resize",vt)}function df(e){return Ar.add(e),vt||cf(),()=>{Ar.delete(e),!Ar.size&&typeof vt=="function"&&(window.removeEventListener("resize",vt),vt=void 0)}}function uf(e,t){return typeof e=="function"?df(e):lf(e,t)}function Fi(e,t){let r;const n=()=>{const{currentTime:s}=t,o=(s===null?0:s.value)/100;r!==o&&e(o),r=o};return re.preUpdate(n,!0),()=>Be(n)}function Wi(e){return _r(e)&&e.tagName==="svg"}function ff(...e){const t=!Array.isArray(e[0]),r=t?0:-1,n=e[0+r],s=e[1+r],a=e[2+r],o=e[3+r],i=ps(s,a,o);return t?i(n):i}const fe=e=>!!(e&&e.getVelocity);function pf(e,t,r){const n=e.get();let s=null,a=n,o;const i=typeof n=="string"?n.replace(/[\d.-]/g,""):void 0,l=()=>{s&&(s.stop(),s=null)},c=()=>{l(),s=new Fr({keyframes:[ja(e.get()),ja(a)],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...r,onUpdate:o})};if(e.attach((d,u)=>{a=d,o=p=>u(Sa(p,i)),re.postRender(c)},l),fe(t)){const d=t.on("change",p=>e.set(Sa(p,i))),u=e.on("destroy",d);return()=>{d(),u()}}return l}function Sa(e,t){return t?e+t:e}function ja(e){return typeof e=="number"?e:parseFloat(e)}const hf=[...Ni,ue,tt],mf=e=>hf.find(Ii(e)),ir=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Ta(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gf(...e){return t=>{let r=!1;const n=e.map(s=>{const a=Ta(s,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let s=0;s<n.length;s++){const a=n[s];typeof a=="function"?a():Ta(e[s],null)}}}}function bf(...e){return Lr.useCallback(gf(...e),e)}class yf extends Lr.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,s=ws(n)&&n.offsetWidth||0,a=this.props.sizeRef.current;a.height=r.offsetHeight||0,a.width=r.offsetWidth||0,a.top=r.offsetTop,a.left=r.offsetLeft,a.right=s-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function xf({children:e,isPresent:t,anchorX:r,root:n}){const s=h.useId(),a=h.useRef(null),o=h.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=h.useContext(ir),l=bf(a,e?.ref);return h.useInsertionEffect(()=>{const{width:c,height:d,top:u,left:p,right:m}=o.current;if(t||!a.current||!c||!d)return;const g=r==="left"?`left: ${p}`:`right: ${m}`;a.current.dataset.motionPopId=s;const w=document.createElement("style");i&&(w.nonce=i);const x=n??document.head;return x.appendChild(w),w.sheet&&w.sheet.insertRule(`
|
|
2
|
+
[data-motion-pop-id="${s}"] {
|
|
3
3
|
position: absolute !important;
|
|
4
4
|
width: ${c}px !important;
|
|
5
5
|
height: ${d}px !important;
|
|
6
6
|
${g}px !important;
|
|
7
7
|
top: ${u}px !important;
|
|
8
8
|
}
|
|
9
|
-
`),()=>{y.contains(x)&&y.removeChild(x)}},[e]),k.jsx(om,{isPresent:e,childRef:a,sizeRef:o,children:er.cloneElement(s,{ref:l})})}const lm=({children:s,initial:e,isPresent:t,onExitComplete:n,custom:r,presenceAffectsLayout:a,mode:o,anchorX:i,root:l})=>{const c=_t(cm),d=j.useId();let u=!0,f=j.useMemo(()=>(u=!1,{id:d,initial:e,isPresent:t,custom:r,onExitComplete:m=>{c.set(m,!0);for(const g of c.values())if(!g)return;n&&n()},register:m=>(c.set(m,!1),()=>c.delete(m))}),[t,c,n]);return a&&u&&(f={...f}),j.useMemo(()=>{c.forEach((m,g)=>c.set(g,!1))},[t]),er.useEffect(()=>{!t&&!c.size&&n&&n()},[t]),o==="popLayout"&&(s=k.jsx(im,{isPresent:t,anchorX:i,root:l,children:s})),k.jsx(tr.Provider,{value:f,children:s})};function cm(){return new Map}function Uc(s=!0){const e=j.useContext(tr);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,a=j.useId();j.useEffect(()=>{if(s)return r(a)},[s]);const o=j.useCallback(()=>s&&n&&n(a),[a,n,s]);return!t&&n?[!1,o]:[!0]}const Vn=s=>s.key||"";function ji(s){const e=[];return j.Children.forEach(s,t=>{j.isValidElement(t)&&e.push(t)}),e}const bt=({children:s,custom:e,initial:t=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:a="sync",propagate:o=!1,anchorX:i="left",root:l})=>{const[c,d]=Uc(o),u=j.useMemo(()=>ji(s),[s]),f=o&&!c?[]:u.map(Vn),m=j.useRef(!0),g=j.useRef(u),x=_t(()=>new Map),[y,w]=j.useState(u),[h,p]=j.useState(u);Us(()=>{m.current=!1,g.current=u;for(let C=0;C<h.length;C++){const v=Vn(h[C]);f.includes(v)?x.delete(v):x.get(v)!==!0&&x.set(v,!1)}},[h,f.length,f.join("-")]);const b=[];if(u!==y){let C=[...u];for(let v=0;v<h.length;v++){const T=h[v],A=Vn(T);f.includes(A)||(C.splice(v,0,T),b.push(T))}return a==="wait"&&b.length&&(C=b),p(ji(C)),w(u),null}process.env.NODE_ENV!=="production"&&a==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:S}=j.useContext(eo);return k.jsx(k.Fragment,{children:h.map(C=>{const v=Vn(C),T=o&&!c?!1:u===h||f.includes(v),A=()=>{if(x.has(v))x.set(v,!0);else return;let E=!0;x.forEach(R=>{R||(E=!1)}),E&&(S?.(),p(g.current),o&&d?.(),n&&n())};return k.jsx(lm,{isPresent:T,initial:!m.current||t?void 0:!1,custom:e,presenceAffectsLayout:r,mode:a,root:l,onExitComplete:T?void 0:A,anchorX:i,children:C},v)})})},Hc=j.createContext({strict:!1}),Ni={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hs={};for(const s in Ni)hs[s]={isEnabled:e=>Ni[s].some(t=>!!e[t])};function dm(s){for(const e in s)hs[e]={...hs[e],...s[e]}}const um=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Yn(s){return s.startsWith("while")||s.startsWith("drag")&&s!=="draggable"||s.startsWith("layout")||s.startsWith("onTap")||s.startsWith("onPan")||s.startsWith("onLayout")||um.has(s)}let Kc=s=>!Yn(s);function fm(s){typeof s=="function"&&(Kc=e=>e.startsWith("on")?!Yn(e):s(e))}try{fm(require("@emotion/is-prop-valid").default)}catch{}function mm(s,e,t){const n={};for(const r in s)r==="values"&&typeof s.values=="object"||(Kc(r)||t===!0&&Yn(r)||!e&&!Yn(r)||s.draggable&&r.startsWith("onDrag"))&&(n[r]=s[r]);return n}const ir=j.createContext({});function lr(s){return s!==null&&typeof s=="object"&&typeof s.start=="function"}function zs(s){return typeof s=="string"||Array.isArray(s)}const Ao=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jo=["initial",...Ao];function cr(s){return lr(s.animate)||jo.some(e=>zs(s[e]))}function Xc(s){return!!(cr(s)||s.variants)}function hm(s,e){if(cr(s)){const{initial:t,animate:n}=s;return{initial:t===!1||zs(t)?t:void 0,animate:zs(n)?n:void 0}}return s.inherit!==!1?e:{}}function pm(s){const{initial:e,animate:t}=hm(s,j.useContext(ir));return j.useMemo(()=>({initial:e,animate:t}),[Pi(e),Pi(t)])}function Pi(s){return Array.isArray(s)?s.join(" "):s}const _s={};function gm(s){for(const e in s)_s[e]=s[e],lo(e)&&(_s[e].isCSSVariable=!0)}function Yc(s,{layout:e,layoutId:t}){return vs.has(s)||s.startsWith("origin")||(e||t!==void 0)&&(!!_s[s]||s==="opacity")}const bm={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ym=ys.length;function vm(s,e,t){let n="",r=!0;for(let a=0;a<ym;a++){const o=ys[a],i=s[o];if(i===void 0)continue;let l=!0;if(typeof i=="number"?l=i===(o.startsWith("scale")?1:0):l=parseFloat(i)===0,!l||t){const c=$c(i,Co[o]);if(!l){r=!1;const d=bm[o]||o;n+=`${d}(${c}) `}t&&(e[o]=c)}}return n=n.trim(),t?n=t(e,r?"":n):r&&(n="none"),n}function No(s,e,t){const{style:n,vars:r,transformOrigin:a}=s;let o=!1,i=!1;for(const l in e){const c=e[l];if(vs.has(l)){o=!0;continue}else if(lo(l)){r[l]=c;continue}else{const d=$c(c,Co[l]);l.startsWith("origin")?(i=!0,a[l]=d):n[l]=d}}if(e.transform||(o||t?n.transform=vm(e,s.transform,t):n.transform&&(n.transform="none")),i){const{originX:l="50%",originY:c="50%",originZ:d=0}=a;n.transformOrigin=`${l} ${c} ${d}`}}const Po=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qc(s,e,t){for(const n in e)!Ue(e[n])&&!Yc(n,t)&&(s[n]=e[n])}function xm({transformTemplate:s},e){return j.useMemo(()=>{const t=Po();return No(t,e,s),Object.assign({},t.vars,t.style)},[e])}function wm(s,e){const t=s.style||{},n={};return qc(n,t,s),Object.assign(n,xm(s,e)),n}function Cm(s,e){const t={},n=wm(s,e);return s.drag&&s.dragListener!==!1&&(t.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=s.drag===!0?"none":`pan-${s.drag==="x"?"y":"x"}`),s.tabIndex===void 0&&(s.onTap||s.onTapStart||s.whileTap)&&(t.tabIndex=0),t.style=n,t}const km={offset:"stroke-dashoffset",array:"stroke-dasharray"},Sm={offset:"strokeDashoffset",array:"strokeDasharray"};function Tm(s,e,t=1,n=0,r=!0){s.pathLength=1;const a=r?km:Sm;s[a.offset]=Se.transform(-n);const o=Se.transform(e),i=Se.transform(t);s[a.array]=`${o} ${i}`}function Zc(s,{attrX:e,attrY:t,attrScale:n,pathLength:r,pathSpacing:a=1,pathOffset:o=0,...i},l,c,d){if(No(s,i,c),l){s.style.viewBox&&(s.attrs.viewBox=s.style.viewBox);return}s.attrs=s.style,s.style={};const{attrs:u,style:f}=s;u.transform&&(f.transform=u.transform,delete u.transform),(f.transform||u.transformOrigin)&&(f.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),f.transform&&(f.transformBox=d?.transformBox??"fill-box",delete u.transformBox),e!==void 0&&(u.x=e),t!==void 0&&(u.y=t),n!==void 0&&(u.scale=n),r!==void 0&&Tm(u,r,a,o,!1)}const Jc=()=>({...Po(),attrs:{}}),Qc=s=>typeof s=="string"&&s.toLowerCase()==="svg";function Am(s,e,t,n){const r=j.useMemo(()=>{const a=Jc();return Zc(a,e,Qc(n),s.transformTemplate,s.style),{...a.attrs,style:{...a.style}}},[e]);if(s.style){const a={};qc(a,s.style,s),r.style={...a,...r.style}}return r}const jm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Vo(s){return typeof s!="string"||s.includes("-")?!1:!!(jm.indexOf(s)>-1||/[A-Z]/u.test(s))}function Nm(s,e,t,{latestValues:n},r,a=!1){const i=(Vo(s)?Am:Cm)(e,n,r,s),l=mm(e,typeof s=="string",a),c=s!==j.Fragment?{...l,...i,ref:t}:{},{children:d}=e,u=j.useMemo(()=>Ue(d)?d.get():d,[d]);return j.createElement(s,{...c,children:u})}function Vi(s){const e=[{},{}];return s?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function Mo(s,e,t,n){if(typeof e=="function"){const[r,a]=Vi(n);e=e(t!==void 0?t:s.custom,r,a)}if(typeof e=="string"&&(e=s.variants&&s.variants[e]),typeof e=="function"){const[r,a]=Vi(n);e=e(t!==void 0?t:s.custom,r,a)}return e}function Un(s){return Ue(s)?s.get():s}function Pm({scrapeMotionValuesFromProps:s,createRenderState:e},t,n,r){return{latestValues:Vm(t,n,r,s),renderState:e()}}function Vm(s,e,t,n){const r={},a=n(s,{});for(const f in a)r[f]=Un(a[f]);let{initial:o,animate:i}=s;const l=cr(s),c=Xc(s);e&&c&&!l&&s.inherit!==!1&&(o===void 0&&(o=e.initial),i===void 0&&(i=e.animate));let d=t?t.initial===!1:!1;d=d||o===!1;const u=d?i:o;if(u&&typeof u!="boolean"&&!lr(u)){const f=Array.isArray(u)?u:[u];for(let m=0;m<f.length;m++){const g=Mo(s,f[m]);if(g){const{transitionEnd:x,transition:y,...w}=g;for(const h in w){let p=w[h];if(Array.isArray(p)){const b=d?p.length-1:0;p=p[b]}p!==null&&(r[h]=p)}for(const h in x)r[h]=x[h]}}}return r}const ed=s=>(e,t)=>{const n=j.useContext(ir),r=j.useContext(tr),a=()=>Pm(s,e,n,r);return t?a():_t(a)};function Io(s,e,t){const{style:n}=s,r={};for(const a in n)(Ue(n[a])||e.style&&Ue(e.style[a])||Yc(a,s)||t?.getValue(a)?.liveStyle!==void 0)&&(r[a]=n[a]);return r}const Mm=ed({scrapeMotionValuesFromProps:Io,createRenderState:Po});function td(s,e,t){const n=Io(s,e,t);for(const r in s)if(Ue(s[r])||Ue(e[r])){const a=ys.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[a]=s[r]}return n}const Im=ed({scrapeMotionValuesFromProps:td,createRenderState:Jc}),Em=Symbol.for("motionComponentSymbol");function cs(s){return s&&typeof s=="object"&&Object.prototype.hasOwnProperty.call(s,"current")}function Rm(s,e,t){return j.useCallback(n=>{n&&s.onMount&&s.onMount(n),e&&(n?e.mount(n):e.unmount()),t&&(typeof t=="function"?t(n):cs(t)&&(t.current=n))},[e])}const Eo=s=>s.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Dm="framerAppearId",sd="data-"+Eo(Dm),nd=j.createContext({});function Bm(s,e,t,n,r){const{visualElement:a}=j.useContext(ir),o=j.useContext(Hc),i=j.useContext(tr),l=j.useContext(Ys).reducedMotion,c=j.useRef(null);n=n||o.renderer,!c.current&&n&&(c.current=n(s,{visualState:e,parent:a,props:t,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:l}));const d=c.current,u=j.useContext(nd);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&Lm(c.current,t,r,u);const f=j.useRef(!1);j.useInsertionEffect(()=>{d&&f.current&&d.update(t,i)});const m=t[sd],g=j.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Us(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),g.current&&d.animationState&&d.animationState.animateChanges())}),j.useEffect(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1),d.enteringChildren=void 0)}),d}function Lm(s,e,t,n){const{layoutId:r,layout:a,drag:o,dragConstraints:i,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=e;s.projection=new t(s.latestValues,e["data-framer-portal-id"]?void 0:rd(s.parent)),s.projection.setOptions({layoutId:r,layout:a,alwaysMeasureLayout:!!o||i&&cs(i),visualElement:s,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:c})}function rd(s){if(s)return s.options.allowProjection!==!1?s.projection:rd(s.parent)}function aa(s,{forwardMotionProps:e=!1}={},t,n){t&&dm(t);const r=Vo(s)?Im:Mm;function a(i,l){let c;const d={...j.useContext(Ys),...i,layoutId:$m(i)},{isStatic:u}=d,f=pm(i),m=r(i,u);if(!u&&to){Om(d,t);const g=zm(d);c=g.MeasureLayout,f.visualElement=Bm(s,m,d,n,g.ProjectionNode)}return k.jsxs(ir.Provider,{value:f,children:[c&&f.visualElement?k.jsx(c,{visualElement:f.visualElement,...d}):null,Nm(s,i,Rm(m,f.visualElement,l),m,u,e)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${s.displayName??s.name??""})`}`;const o=j.forwardRef(a);return o[Em]=s,o}function $m({layoutId:s}){const e=j.useContext(eo).id;return e&&s!==void 0?e+"-"+s:s}function Om(s,e){const t=j.useContext(Hc).strict;if(process.env.NODE_ENV!=="production"&&e&&t){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";s.ignoreStrict?gs(!1,n,"lazy-strict-mode"):qe(!1,n,"lazy-strict-mode")}}function zm(s){const{drag:e,layout:t}=hs;if(!e&&!t)return{};const n={...e,...t};return{MeasureLayout:e?.isEnabled(s)||t?.isEnabled(s)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function _m(s,e){if(typeof Proxy>"u")return aa;const t=new Map,n=(a,o)=>aa(a,o,s,e),r=(a,o)=>(process.env.NODE_ENV!=="production"&&nr(!1,"motion() is deprecated. Use motion.create() instead."),n(a,o));return new Proxy(r,{get:(a,o)=>o==="create"?n:(t.has(o)||t.set(o,aa(o,void 0,s,e)),t.get(o))})}function ad({top:s,left:e,right:t,bottom:n}){return{x:{min:e,max:t},y:{min:s,max:n}}}function Fm({x:s,y:e}){return{top:e.min,right:s.max,bottom:e.max,left:s.min}}function Wm(s,e){if(!e)return s;const t=e({x:s.left,y:s.top}),n=e({x:s.right,y:s.bottom});return{top:t.y,left:t.x,bottom:n.y,right:n.x}}function oa(s){return s===void 0||s===1}function Ra({scale:s,scaleX:e,scaleY:t}){return!oa(s)||!oa(e)||!oa(t)}function Dt(s){return Ra(s)||od(s)||s.z||s.rotate||s.rotateX||s.rotateY||s.skewX||s.skewY}function od(s){return Mi(s.x)||Mi(s.y)}function Mi(s){return s&&s!=="0%"}function qn(s,e,t){const n=s-t,r=e*n;return t+r}function Ii(s,e,t,n,r){return r!==void 0&&(s=qn(s,r,n)),qn(s,t,n)+e}function Da(s,e=0,t=1,n,r){s.min=Ii(s.min,e,t,n,r),s.max=Ii(s.max,e,t,n,r)}function id(s,{x:e,y:t}){Da(s.x,e.translate,e.scale,e.originPoint),Da(s.y,t.translate,t.scale,t.originPoint)}const Ei=.999999999999,Ri=1.0000000000001;function Gm(s,e,t,n=!1){const r=t.length;if(!r)return;e.x=e.y=1;let a,o;for(let i=0;i<r;i++){a=t[i],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&us(s,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,id(s,o)),n&&Dt(a.latestValues)&&us(s,a.latestValues))}e.x<Ri&&e.x>Ei&&(e.x=1),e.y<Ri&&e.y>Ei&&(e.y=1)}function ds(s,e){s.min=s.min+e,s.max=s.max+e}function Di(s,e,t,n,r=.5){const a=Le(s.min,s.max,r);Da(s,e,t,a,n)}function us(s,e){Di(s.x,e.x,e.scaleX,e.scale,e.originX),Di(s.y,e.y,e.scaleY,e.scale,e.originY)}function ld(s,e){return ad(Wm(s.getBoundingClientRect(),e))}function Um(s,e,t){const n=ld(s,t),{scroll:r}=e;return r&&(ds(n.x,r.offset.x),ds(n.y,r.offset.y)),n}const Bi=()=>({translate:0,scale:1,origin:0,originPoint:0}),fs=()=>({x:Bi(),y:Bi()}),Li=()=>({min:0,max:0}),Fe=()=>({x:Li(),y:Li()}),Ba={current:null},cd={current:!1};function Hm(){if(cd.current=!0,!!to)if(window.matchMedia){const s=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ba.current=s.matches;s.addEventListener("change",e),e()}else Ba.current=!1}const Fs=new WeakMap;function Km(s,e,t){for(const n in e){const r=e[n],a=t[n];if(Ue(r))s.addValue(n,r);else if(Ue(a))s.addValue(n,ut(r,{owner:s}));else if(a!==r)if(s.hasValue(n)){const o=s.getValue(n);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=s.getStaticValue(n);s.addValue(n,ut(o!==void 0?o:r,{owner:s}))}}for(const n in t)e[n]===void 0&&s.removeValue(n);return e}const $i=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class dd{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:a,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=et.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Me.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.blockInitialAnimation=!!a,this.isControllingVariants=cr(t),this.isVariantNode=Xc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const f in u){const m=u[f];l[f]!==void 0&&Ue(m)&&m.set(l[f])}}mount(e){this.current=e,Fs.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),cd.current||Hm(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ba.current,process.env.NODE_ENV!=="production"&&nr(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ft(this.notifyUpdate),ft(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=vs.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Me.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),a&&a(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in hs){const t=hs[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const a=this.features[e];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fe()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<$i.length;n++){const r=$i[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const a="on"+r,o=e[a];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=Km(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=ut(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(Zl(n)||Ql(n))?n=parseFloat(n):!nm(n)&&Pt.test(t)&&(n=Lc(e,t)),this.setBaseTarget(e,Ue(n)?n.get():n)),Ue(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if(typeof t=="string"||typeof t=="object"){const a=Mo(this.props,t,this.presenceContext?.custom);a&&(n=a[e])}if(t&&n!==void 0)return n;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Ue(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ro),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){So.render(this.render)}}class ud extends dd{constructor(){super(...arguments),this.KeyframeResolver=B0}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ue(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function fd(s,{style:e,vars:t},n,r){const a=s.style;let o;for(o in e)a[o]=e[o];r?.applyProjectionStyles(a,n);for(o in t)a.setProperty(o,t[o])}function Xm(s){return window.getComputedStyle(s)}class md extends ud{constructor(){super(...arguments),this.type="html",this.renderInstance=fd}readValueFromInstance(e,t){if(vs.has(t))return this.projection?.isProjecting?ja(t):Qf(e,t);{const n=Xm(e),r=(lo(t)?n.getPropertyValue(t):n[t])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ld(e,t)}build(e,t,n){No(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Io(e,t,n)}}const hd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ym(s,e,t,n){fd(s,e,void 0,n);for(const r in e.attrs)s.setAttribute(hd.has(r)?r:Eo(r),e.attrs[r])}class pd extends ud{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fe}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(vs.has(t)){const n=Bc(t);return n&&n.default||0}return t=hd.has(t)?t:Eo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return td(e,t,n)}build(e,t,n){Zc(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ym(e,t,n,r)}mount(e){this.isSVGTag=Qc(e.tagName),super.mount(e)}}const qm=(s,e)=>Vo(s)?new pd(e):new md(e,{allowProjection:s!==j.Fragment});function ms(s,e,t){const n=s.getProps();return Mo(n,e,t!==void 0?t:n.custom,s)}const La=s=>Array.isArray(s);function Zm(s,e,t){s.hasValue(e)?s.getValue(e).set(t):s.addValue(e,ut(t))}function Jm(s){return La(s)?s[s.length-1]||0:s}function Ro(s,e){const t=ms(s,e);let{transitionEnd:n={},transition:r={},...a}=t||{};a={...a,...n};for(const o in a){const i=Jm(a[o]);Zm(s,o,i)}}function Qm(s){return!!(Ue(s)&&s.add)}function $a(s,e){const t=s.getValue("willChange");if(Qm(t))return t.add(e);if(!t&&wt.WillChange){const n=new wt.WillChange("auto");s.addValue("willChange",n),n.add(e)}}function gd(s){return s.props[sd]}const eh=s=>s!==null;function th(s,{repeat:e,repeatType:t="loop"},n){const r=s.filter(eh),a=e&&t!=="loop"&&e%2===1?0:r.length-1;return r[a]}const sh={type:"spring",stiffness:500,damping:25,restSpeed:10},nh=s=>({type:"spring",stiffness:550,damping:s===0?2*Math.sqrt(550):30,restSpeed:10}),rh={type:"keyframes",duration:.8},ah={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},oh=(s,{keyframes:e})=>e.length>2?rh:vs.has(s)?s.startsWith("scale")?nh(e[1]):sh:ah;function ih({when:s,delay:e,delayChildren:t,staggerChildren:n,staggerDirection:r,repeat:a,repeatType:o,repeatDelay:i,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const Do=(s,e,t,n={},r,a)=>o=>{const i=wo(n,s)||{},l=i.delay||n.delay||0;let{elapsed:c=0}=n;c=c-ct(l);const d={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:e.getVelocity(),...i,delay:-c,onUpdate:f=>{e.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{o(),i.onComplete&&i.onComplete()},name:s,motionValue:e,element:a?void 0:r};ih(i)||Object.assign(d,oh(s,d)),d.duration&&(d.duration=ct(d.duration)),d.repeatDelay&&(d.repeatDelay=ct(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Ia(d),d.delay===0&&(u=!0)),(wt.instantAnimations||wt.skipAnimations)&&(u=!0,Ia(d),d.delay=0),d.allowFlatten=!i.type&&!i.ease,u&&!a&&e.get()!==void 0){const f=th(d.keyframes,i);if(f!==void 0){Me.update(()=>{d.onUpdate(f),d.onComplete()});return}}return i.isSync?new rr(d):new w0(d)};function lh({protectedKeys:s,needsAnimating:e},t){const n=s.hasOwnProperty(t)&&e[t]!==!0;return e[t]=!1,n}function Bo(s,e,{delay:t=0,transitionOverride:n,type:r}={}){let{transition:a=s.getDefaultTransition(),transitionEnd:o,...i}=e;n&&(a=n);const l=[],c=r&&s.animationState&&s.animationState.getState()[r];for(const d in i){const u=s.getValue(d,s.latestValues[d]??null),f=i[d];if(f===void 0||c&&lh(c,d))continue;const m={delay:t,...wo(a||{},d)},g=u.get();if(g!==void 0&&!u.isAnimating&&!Array.isArray(f)&&f===g&&!m.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=gd(s);if(w){const h=window.MotionHandoffAnimation(w,d,Me);h!==null&&(m.startTime=h,x=!0)}}$a(s,d),u.start(Do(d,u,f,s.shouldReduceMotion&&Ec.has(d)?{type:!1}:m,s,x));const y=u.animation;y&&l.push(y)}return o&&Promise.all(l).then(()=>{Me.update(()=>{o&&Ro(s,o)})}),l}function bd(s,e,t,n=0,r=1){const a=Array.from(s).sort((c,d)=>c.sortNodePosition(d)).indexOf(e),o=s.size,i=(o-1)*n;return typeof t=="function"?t(a,o):r===1?a*n:i-a*n}function Oa(s,e,t={}){const n=ms(s,e,t.type==="exit"?s.presenceContext?.custom:void 0);let{transition:r=s.getDefaultTransition()||{}}=n||{};t.transitionOverride&&(r=t.transitionOverride);const a=n?()=>Promise.all(Bo(s,n,t)):()=>Promise.resolve(),o=s.variantChildren&&s.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=r;return ch(s,e,l,c,d,u,t)}:()=>Promise.resolve(),{when:i}=r;if(i){const[l,c]=i==="beforeChildren"?[a,o]:[o,a];return l().then(()=>c())}else return Promise.all([a(),o(t.delay)])}function ch(s,e,t=0,n=0,r=0,a=1,o){const i=[];for(const l of s.variantChildren)l.notify("AnimationStart",e),i.push(Oa(l,e,{...o,delay:t+(typeof n=="function"?0:n)+bd(s.variantChildren,l,n,r,a)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(i)}function yd(s,e,t={}){s.notify("AnimationStart",e);let n;if(Array.isArray(e)){const r=e.map(a=>Oa(s,a,t));n=Promise.all(r)}else if(typeof e=="string")n=Oa(s,e,t);else{const r=typeof e=="function"?ms(s,e,t.custom):e;n=Promise.all(Bo(s,r,t))}return n.then(()=>{s.notify("AnimationComplete",e)})}function vd(s,e){if(!Array.isArray(e))return!1;const t=e.length;if(t!==s.length)return!1;for(let n=0;n<t;n++)if(e[n]!==s[n])return!1;return!0}const dh=jo.length;function xd(s){if(!s)return;if(!s.isControllingVariants){const t=s.parent?xd(s.parent)||{}:{};return s.props.initial!==void 0&&(t.initial=s.props.initial),t}const e={};for(let t=0;t<dh;t++){const n=jo[t],r=s.props[n];(zs(r)||r===!1)&&(e[n]=r)}return e}const uh=[...Ao].reverse(),fh=Ao.length;function mh(s){return e=>Promise.all(e.map(({animation:t,options:n})=>yd(s,t,n)))}function hh(s){let e=mh(s),t=Oi(),n=!0;const r=l=>(c,d)=>{const u=ms(s,d,l==="exit"?s.presenceContext?.custom:void 0);if(u){const{transition:f,transitionEnd:m,...g}=u;c={...c,...g,...m}}return c};function a(l){e=l(s)}function o(l){const{props:c}=s,d=xd(s.parent)||{},u=[],f=new Set;let m={},g=1/0;for(let y=0;y<fh;y++){const w=uh[y],h=t[w],p=c[w]!==void 0?c[w]:d[w],b=zs(p),S=w===l?h.isActive:null;S===!1&&(g=y);let C=p===d[w]&&p!==c[w]&&b;if(C&&n&&s.manuallyAnimateOnMount&&(C=!1),h.protectedKeys={...m},!h.isActive&&S===null||!p&&!h.prevProp||lr(p)||typeof p=="boolean")continue;const v=ph(h.prevProp,p);let T=v||w===l&&h.isActive&&!C&&b||y>g&&b,A=!1;const E=Array.isArray(p)?p:[p];let R=E.reduce(r(w),{});S===!1&&(R={});const{prevResolvedValues:L={}}=h,D={...L,...R},V=M=>{T=!0,f.has(M)&&(A=!0,f.delete(M)),h.needsAnimating[M]=!0;const N=s.getValue(M);N&&(N.liveStyle=!1)};for(const M in D){const N=R[M],B=L[M];if(m.hasOwnProperty(M))continue;let $=!1;La(N)&&La(B)?$=!vd(N,B):$=N!==B,$?N!=null?V(M):f.add(M):N!==void 0&&f.has(M)?V(M):h.protectedKeys[M]=!0}h.prevProp=p,h.prevResolvedValues=R,h.isActive&&(m={...m,...R}),n&&s.blockInitialAnimation&&(T=!1);const P=C&&v;T&&(!P||A)&&u.push(...E.map(M=>{const N={type:w};if(typeof M=="string"&&n&&!P&&s.manuallyAnimateOnMount&&s.parent){const{parent:B}=s,$=ms(B,M);if(B.enteringChildren&&$){const{delayChildren:_}=$.transition||{};N.delay=bd(B.enteringChildren,s,_)}}return{animation:M,options:N}}))}if(f.size){const y={};if(typeof c.initial!="boolean"){const w=ms(s,Array.isArray(c.initial)?c.initial[0]:c.initial);w&&w.transition&&(y.transition=w.transition)}f.forEach(w=>{const h=s.getBaseTarget(w),p=s.getValue(w);p&&(p.liveStyle=!0),y[w]=h??null}),u.push({animation:y})}let x=!!u.length;return n&&(c.initial===!1||c.initial===c.animate)&&!s.manuallyAnimateOnMount&&(x=!1),n=!1,x?e(u):Promise.resolve()}function i(l,c){if(t[l].isActive===c)return Promise.resolve();s.variantChildren?.forEach(u=>u.animationState?.setActive(l,c)),t[l].isActive=c;const d=o(l);for(const u in t)t[u].protectedKeys={};return d}return{animateChanges:o,setActive:i,setAnimateFunction:a,getState:()=>t,reset:()=>{t=Oi()}}}function ph(s,e){return typeof e=="string"?e!==s:Array.isArray(e)?!vd(e,s):!1}function Et(s=!1){return{isActive:s,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Oi(){return{animate:Et(!0),whileInView:Et(),whileHover:Et(),whileTap:Et(),whileDrag:Et(),whileFocus:Et(),exit:Et()}}class Vt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class gh extends Vt{constructor(e){super(e),e.animationState||(e.animationState=hh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();lr(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let bh=0;class yh extends Vt{constructor(){super(...arguments),this.id=bh++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const vh={animation:{Feature:gh},exit:{Feature:yh}};function Ws(s,e,t,n={passive:!0}){return s.addEventListener(e,t,n),()=>s.removeEventListener(e,t)}function qs(s){return{point:{x:s.pageX,y:s.pageY}}}const xh=s=>e=>To(e)&&s(e,qs(e));function Es(s,e,t,n){return Ws(s,e,xh(t),n)}const wd=1e-4,wh=1-wd,Ch=1+wd,Cd=.01,kh=0-Cd,Sh=0+Cd;function Je(s){return s.max-s.min}function Th(s,e,t){return Math.abs(s-e)<=t}function zi(s,e,t,n=.5){s.origin=n,s.originPoint=Le(e.min,e.max,s.origin),s.scale=Je(t)/Je(e),s.translate=Le(t.min,t.max,s.origin)-s.originPoint,(s.scale>=wh&&s.scale<=Ch||isNaN(s.scale))&&(s.scale=1),(s.translate>=kh&&s.translate<=Sh||isNaN(s.translate))&&(s.translate=0)}function Rs(s,e,t,n){zi(s.x,e.x,t.x,n?n.originX:void 0),zi(s.y,e.y,t.y,n?n.originY:void 0)}function _i(s,e,t){s.min=t.min+e.min,s.max=s.min+Je(e)}function Ah(s,e,t){_i(s.x,e.x,t.x),_i(s.y,e.y,t.y)}function Fi(s,e,t){s.min=e.min-t.min,s.max=s.min+Je(e)}function Ds(s,e,t){Fi(s.x,e.x,t.x),Fi(s.y,e.y,t.y)}function it(s){return[s("x"),s("y")]}const kd=({current:s})=>s?s.ownerDocument.defaultView:null,Wi=(s,e)=>Math.abs(s-e);function jh(s,e){const t=Wi(s.x,e.x),n=Wi(s.y,e.y);return Math.sqrt(t**2+n**2)}class Sd{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=la(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=jh(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:x}=f,{timestamp:y}=Ke;this.history.push({...x,timestamp:y});const{onStart:w,onMove:h}=this.handlers;m||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=ia(m,this.transformPagePoint),Me.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=la(f.type==="pointercancel"?this.lastMoveEventInfo:ia(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,w),x&&x(f,w)},!To(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const i=qs(e),l=ia(i,this.transformPagePoint),{point:c}=l,{timestamp:d}=Ke;this.history=[{...c,timestamp:d}];const{onSessionStart:u}=t;u&&u(e,la(l,this.history)),this.removeListeners=Hs(Es(this.contextWindow,"pointermove",this.handlePointerMove),Es(this.contextWindow,"pointerup",this.handlePointerUp),Es(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ft(this.updatePoint)}}function ia(s,e){return e?{point:e(s.point)}:s}function Gi(s,e){return{x:s.x-e.x,y:s.y-e.y}}function la({point:s},e){return{point:s,delta:Gi(s,Td(e)),offset:Gi(s,Nh(e)),velocity:Ph(e,.1)}}function Nh(s){return s[0]}function Td(s){return s[s.length-1]}function Ph(s,e){if(s.length<2)return{x:0,y:0};let t=s.length-1,n=null;const r=Td(s);for(;t>=0&&(n=s[t],!(r.timestamp-n.timestamp>ct(e)));)t--;if(!n)return{x:0,y:0};const a=lt(r.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const o={x:(r.x-n.x)/a,y:(r.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Vh(s,{min:e,max:t},n){return e!==void 0&&s<e?s=n?Le(e,s,n.min):Math.max(s,e):t!==void 0&&s>t&&(s=n?Le(t,s,n.max):Math.min(s,t)),s}function Ui(s,e,t){return{min:e!==void 0?s.min+e:void 0,max:t!==void 0?s.max+t-(s.max-s.min):void 0}}function Mh(s,{top:e,left:t,bottom:n,right:r}){return{x:Ui(s.x,t,r),y:Ui(s.y,e,n)}}function Hi(s,e){let t=e.min-s.min,n=e.max-s.max;return e.max-e.min<s.max-s.min&&([t,n]=[n,t]),{min:t,max:n}}function Ih(s,e){return{x:Hi(s.x,e.x),y:Hi(s.y,e.y)}}function Eh(s,e){let t=.5;const n=Je(s),r=Je(e);return r>n?t=zt(e.min,e.max-n,s.min):n>r&&(t=zt(s.min,s.max-r,e.min)),gt(0,1,t)}function Rh(s,e){const t={};return e.min!==void 0&&(t.min=e.min-s.min),e.max!==void 0&&(t.max=e.max-s.min),t}const za=.35;function Dh(s=za){return s===!1?s=0:s===!0&&(s=za),{x:Ki(s,"left","right"),y:Ki(s,"top","bottom")}}function Ki(s,e,t){return{min:Xi(s,e),max:Xi(s,t)}}function Xi(s,e){return typeof s=="number"?s:s[e]||0}const Bh=new WeakMap;class Lh{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(qs(u).point)},o=(u,f)=>{const{drag:m,dragPropagation:g,onDragStart:x}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=O0(m),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),it(w=>{let h=this.getAxisMotionValue(w).get()||0;if(pt.test(h)){const{projection:p}=this.visualElement;if(p&&p.layout){const b=p.layout.layoutBox[w];b&&(h=Je(b)*(parseFloat(h)/100))}}this.originPoint[w]=h}),x&&Me.postRender(()=>x(u,f)),$a(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},i=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:x,onDrag:y}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:w}=f;if(g&&this.currentDirection===null){this.currentDirection=$h(w),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,w),this.updateAxis("y",f.point,w),this.visualElement.render(),y&&y(u,f)},l=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f,this.stop(u,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>it(u=>this.getAnimationState(u)==="paused"&&this.getAxisMotionValue(u).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Sd(e,{onSessionStart:a,onStart:o,onMove:i,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:n,contextWindow:kd(this.visualElement)})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!r||!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Me.postRender(()=>i(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Mn(e,r,this.currentDirection))return;const a=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=Vh(o,this.constraints[e],this.elastic[e])),a.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&cs(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=Mh(n.layoutBox,e):this.constraints=!1,this.elastic=Dh(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&it(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Rh(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!cs(e))return!1;const n=e.current;qe(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const a=Um(n,r.root,this.visualElement.getTransformPagePoint());let o=Ih(r.layout.layoutBox,a);if(t){const i=t(Fm(o));this.hasMutatedConstraints=!!i,i&&(o=ad(i))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},c=it(d=>{if(!Mn(d,t,this.currentDirection))return;let u=l&&l[d]||{};o&&(u={min:0,max:0});const f=r?200:1e6,m=r?40:1e7,g={type:"inertia",velocity:n?e[d]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...u};return this.startAxisValueAnimation(d,g)});return Promise.all(c).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return $a(this.visualElement,e),n.start(Do(e,n,0,t,this.visualElement,!1))}stopAnimation(){it(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){it(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){it(t=>{const{drag:n}=this.getProps();if(!Mn(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,a=this.getAxisMotionValue(t);if(r&&r.layout){const{min:o,max:i}=r.layout.layoutBox[t];a.set(e[t]-Le(o,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!cs(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};it(o=>{const i=this.getAxisMotionValue(o);if(i&&this.constraints!==!1){const l=i.get();r[o]=Eh({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),it(o=>{if(!Mn(o,e,null))return;const i=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];i.set(Le(l,c,r[o]))})}addListeners(){if(!this.visualElement.current)return;Bh.set(this.visualElement,this);const e=this.visualElement.current,t=Es(e,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();cs(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,a=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Me.read(n);const o=Ws(window,"resize",()=>this.scalePositionWithinConstraints()),i=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(it(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:o=za,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:a,dragElastic:o,dragMomentum:i}}}function Mn(s,e,t){return(e===!0||e===s)&&(t===null||t===s)}function $h(s,e=10){let t=null;return Math.abs(s.y)>e?t="y":Math.abs(s.x)>e&&(t="x"),t}class Oh extends Vt{constructor(e){super(e),this.removeGroupControls=tt,this.removeListeners=tt,this.controls=new Lh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Yi=s=>(e,t)=>{s&&Me.postRender(()=>s(e,t))};class zh extends Vt{constructor(){super(...arguments),this.removePointerDownListener=tt}onPointerDown(e){this.session=new Sd(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kd(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Yi(e),onStart:Yi(t),onMove:n,onEnd:(a,o)=>{delete this.session,r&&Me.postRender(()=>r(a,o))}}}mount(){this.removePointerDownListener=Es(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Hn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function qi(s,e){return e.max===e.min?0:s/(e.max-e.min)*100}const As={correct:(s,e)=>{if(!e.target)return s;if(typeof s=="string")if(Se.test(s))s=parseFloat(s);else return s;const t=qi(s,e.target.x),n=qi(s,e.target.y);return`${t}% ${n}%`}},_h={correct:(s,{treeScale:e,projectionDelta:t})=>{const n=s,r=Pt.parse(s);if(r.length>5)return n;const a=Pt.createTransformer(s),o=typeof r[0]!="number"?1:0,i=t.x.scale*e.x,l=t.y.scale*e.y;r[0+o]/=i,r[1+o]/=l;const c=Le(i,l,.5);return typeof r[2+o]=="number"&&(r[2+o]/=c),typeof r[3+o]=="number"&&(r[3+o]/=c),a(r)}};let ca=!1;class Fh extends j.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:a}=e;gm(Wh),a&&(t.group&&t.group.add(a),n&&n.register&&r&&n.register(a),ca&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Hn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:a}=this.props,{projection:o}=n;return o&&(o.isPresent=a,ca=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||Me.postRender(()=>{const i=o.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),So.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;ca=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ad(s){const[e,t]=Uc(),n=j.useContext(eo);return k.jsx(Fh,{...s,layoutGroup:n,switchLayoutGroup:j.useContext(nd),isPresent:e,safeToRemove:t})}const Wh={borderRadius:{...As,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:As,borderTopRightRadius:As,borderBottomLeftRadius:As,borderBottomRightRadius:As,boxShadow:_h};function jd(s,e,t){const n=Ue(s)?s:ut(s);return n.start(Do("",n,e,t)),n.animation}const Gh=(s,e)=>s.depth-e.depth;class Uh{constructor(){this.children=[],this.isDirty=!1}add(e){so(this.children,e),this.isDirty=!0}remove(e){sr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Gh),this.isDirty=!1,this.children.forEach(e)}}function Hh(s,e){const t=et.now(),n=({timestamp:r})=>{const a=r-t;a>=e&&(ft(n),s(a-e))};return Me.setup(n,!0),()=>ft(n)}const Nd=["TopLeft","TopRight","BottomLeft","BottomRight"],Kh=Nd.length,Zi=s=>typeof s=="string"?parseFloat(s):s,Ji=s=>typeof s=="number"||Se.test(s);function Xh(s,e,t,n,r,a){r?(s.opacity=Le(0,t.opacity??1,Yh(n)),s.opacityExit=Le(e.opacity??1,0,qh(n))):a&&(s.opacity=Le(e.opacity??1,t.opacity??1,n));for(let o=0;o<Kh;o++){const i=`border${Nd[o]}Radius`;let l=Qi(e,i),c=Qi(t,i);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Ji(l)===Ji(c)?(s[i]=Math.max(Le(Zi(l),Zi(c),n),0),(pt.test(c)||pt.test(l))&&(s[i]+="%")):s[i]=c}(e.rotate||t.rotate)&&(s.rotate=Le(e.rotate||0,t.rotate||0,n))}function Qi(s,e){return s[e]!==void 0?s[e]:s.borderRadius}const Yh=Pd(0,.5,oc),qh=Pd(.5,.95,tt);function Pd(s,e,t){return n=>n<s?0:n>e?1:t(zt(s,e,n))}function el(s,e){s.min=e.min,s.max=e.max}function at(s,e){el(s.x,e.x),el(s.y,e.y)}function tl(s,e){s.translate=e.translate,s.scale=e.scale,s.originPoint=e.originPoint,s.origin=e.origin}function sl(s,e,t,n,r){return s-=e,s=qn(s,1/t,n),r!==void 0&&(s=qn(s,1/r,n)),s}function Zh(s,e=0,t=1,n=.5,r,a=s,o=s){if(pt.test(e)&&(e=parseFloat(e),e=Le(o.min,o.max,e/100)-o.min),typeof e!="number")return;let i=Le(a.min,a.max,n);s===a&&(i-=e),s.min=sl(s.min,e,t,i,r),s.max=sl(s.max,e,t,i,r)}function nl(s,e,[t,n,r],a,o){Zh(s,e[t],e[n],e[r],e.scale,a,o)}const Jh=["x","scaleX","originX"],Qh=["y","scaleY","originY"];function rl(s,e,t,n){nl(s.x,e,Jh,t?t.x:void 0,n?n.x:void 0),nl(s.y,e,Qh,t?t.y:void 0,n?n.y:void 0)}function al(s){return s.translate===0&&s.scale===1}function Vd(s){return al(s.x)&&al(s.y)}function ol(s,e){return s.min===e.min&&s.max===e.max}function ep(s,e){return ol(s.x,e.x)&&ol(s.y,e.y)}function il(s,e){return Math.round(s.min)===Math.round(e.min)&&Math.round(s.max)===Math.round(e.max)}function Md(s,e){return il(s.x,e.x)&&il(s.y,e.y)}function ll(s){return Je(s.x)/Je(s.y)}function cl(s,e){return s.translate===e.translate&&s.scale===e.scale&&s.originPoint===e.originPoint}class tp{constructor(){this.members=[]}add(e){so(this.members,e),e.scheduleRender()}remove(e){if(sr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){const t=this.members.findIndex(r=>e===r);if(t===0)return!1;let n;for(let r=t;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sp(s,e,t){let n="";const r=s.x.translate/e.x,a=s.y.translate/e.y,o=t?.z||0;if((r||a||o)&&(n=`translate3d(${r}px, ${a}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),t){const{transformPerspective:c,rotate:d,rotateX:u,rotateY:f,skewX:m,skewY:g}=t;c&&(n=`perspective(${c}px) ${n}`),d&&(n+=`rotate(${d}deg) `),u&&(n+=`rotateX(${u}deg) `),f&&(n+=`rotateY(${f}deg) `),m&&(n+=`skewX(${m}deg) `),g&&(n+=`skewY(${g}deg) `)}const i=s.x.scale*e.x,l=s.y.scale*e.y;return(i!==1||l!==1)&&(n+=`scale(${i}, ${l})`),n||"none"}const da=["","X","Y","Z"],np=1e3;let rp=0;function ua(s,e,t,n){const{latestValues:r}=e;r[s]&&(t[s]=r[s],e.setStaticValue(s,0),n&&(n[s]=0))}function Id(s){if(s.hasCheckedOptimisedAppear=!0,s.root===s)return;const{visualElement:e}=s.options;if(!e)return;const t=gd(e);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:r,layoutId:a}=s.options;window.MotionCancelOptimisedAnimation(t,"transform",Me,!(r||a))}const{parent:n}=s;n&&!n.hasCheckedOptimisedAppear&&Id(n)}function Ed({attachResizeListener:s,defaultParent:e,measureScroll:t,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(o={},i=e?.()){this.id=rp++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ip),this.nodes.forEach(up),this.nodes.forEach(fp),this.nodes.forEach(lp)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Uh)}addEventListener(o,i){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ro),this.eventHandlers.get(o).add(i)}notifyListeners(o,...i){const l=this.eventHandlers.get(o);l&&l.notify(...i)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=or(o)&&!Gc(o),this.instance=o;const{layoutId:i,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||i)&&(this.isLayoutDirty=!0),s){let d,u=0;const f=()=>this.root.updateBlockedByResize=!1;Me.read(()=>{u=window.innerWidth}),s(o,()=>{const m=window.innerWidth;m!==u&&(u=m,this.root.updateBlockedByResize=!0,d&&d(),d=Hh(f,250),Hn.hasAnimatedSinceResize&&(Hn.hasAnimatedSinceResize=!1,this.nodes.forEach(fl)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&c&&(i||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||bp,{onLayoutAnimationStart:x,onLayoutAnimationComplete:y}=c.getProps(),w=!this.targetLayout||!Md(this.targetLayout,m),h=!u&&f;if(this.options.layoutRoot||this.resumeFrom||h||u&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const p={...wo(g,"layout"),onPlay:x,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(p.delay=0,p.type=!1),this.startAnimation(p),this.setAnimationOrigin(d,h)}else u||fl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mp),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Id(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(dl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ul);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(dp),this.nodes.forEach(ap),this.nodes.forEach(op)):this.nodes.forEach(ul),this.clearAllSnapshots();const i=et.now();Ke.delta=gt(0,1e3/60,i-Ke.timestamp),Ke.timestamp=i,Ke.isProcessing=!0,Qr.update.process(Ke),Qr.preRender.process(Ke),Qr.render.process(Ke),Ke.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,So.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cp),this.sharedNodes.forEach(hp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Me.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Je(this.snapshot.measuredBox.x)&&!Je(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Fe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(i=!1),i&&this.instance){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!Vd(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&this.instance&&(i||Dt(this.latestValues)||d)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const i=this.measurePageBox();let l=this.removeElementScroll(i);return o&&(l=this.removeTransform(l)),yp(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return Fe();const i=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(vp))){const{scroll:c}=this.root;c&&(ds(i.x,c.offset.x),ds(i.y,c.offset.y))}return i}removeElementScroll(o){const i=Fe();if(at(i,o),this.scroll?.wasRoot)return i;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:u}=c;c!==this.root&&d&&u.layoutScroll&&(d.wasRoot&&at(i,o),ds(i.x,d.offset.x),ds(i.y,d.offset.y))}return i}applyTransform(o,i=!1){const l=Fe();at(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&us(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Dt(d.latestValues)&&us(l,d.latestValues)}return Dt(this.latestValues)&&us(l,this.latestValues),l}removeTransform(o){const i=Fe();at(i,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Dt(c.latestValues))continue;Ra(c.latestValues)&&c.updateSnapshot();const d=Fe(),u=c.measurePageBox();at(d,u),rl(i,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Dt(this.latestValues)&&rl(i,this.latestValues),i}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ke.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==i;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:u}=this.options;if(!(!this.layout||!(d||u))){if(this.resolvedRelativeTargetAt=Ke.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fe(),this.relativeTargetOrigin=Fe(),Ds(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),at(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Fe(),this.targetWithTransforms=Fe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ah(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):at(this.target,this.layout.layoutBox),id(this.target,this.targetDelta)):at(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fe(),this.relativeTargetOrigin=Fe(),Ds(this.relativeTargetOrigin,this.target,f.target),at(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ra(this.parent.latestValues)||od(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const o=this.getLead(),i=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ke.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;at(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,f=this.treeScale.y;Gm(this.layoutCorrected,this.treeScale,this.path,i),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Fe());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tl(this.prevProjectionDelta.x,this.projectionDelta.x),tl(this.prevProjectionDelta.y,this.projectionDelta.y)),Rs(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==f||!cl(this.projectionDelta.x,this.prevProjectionDelta.x)||!cl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fs(),this.projectionDelta=fs(),this.projectionDeltaWithTransform=fs()}setAnimationOrigin(o,i=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=fs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const f=Fe(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,x=m!==g,y=this.getStack(),w=!y||y.members.length<=1,h=!!(x&&!w&&this.options.crossfade===!0&&!this.path.some(gp));this.animationProgress=0;let p;this.mixTargetDelta=b=>{const S=b/1e3;ml(u.x,o.x,S),ml(u.y,o.y,S),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ds(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pp(this.relativeTarget,this.relativeTargetOrigin,f,S),p&&ep(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||(p=Fe()),at(p,this.relativeTarget)),x&&(this.animationValues=d,Xh(d,c,this.latestValues,S,h,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Me.update(()=>{Hn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ut(0)),this.currentAnimation=jd(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:i=>{this.mixTargetDelta(i),o.onUpdate&&o.onUpdate(i)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(np),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:i,target:l,layout:c,latestValues:d}=o;if(!(!i||!l||!c)){if(this!==o&&this.layout&&c&&Rd(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Fe();const u=Je(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const f=Je(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}at(i,l),us(i,d),Rs(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(o,i){this.sharedNodes.has(o)||this.sharedNodes.set(o,new tp),this.sharedNodes.get(o).add(i);const c=i.options.initialPromotionConfig;i.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(i):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:i,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let i=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;const c={};l.z&&ua("z",o,c,this.animationValues);for(let d=0;d<da.length;d++)ua(`rotate${da[d]}`,o,c,this.animationValues),ua(`skew${da[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}applyProjectionStyles(o,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Un(i?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Un(i?.pointerEvents)||""),this.hasProjected&&!Dt(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let u=sp(this.projectionDeltaWithTransform,this.treeScale,d);l&&(u=l(d,u)),o.transform=u;const{x:f,y:m}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,c.animationValues?o.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in _s){if(d[g]===void 0)continue;const{correct:x,applyTo:y,isCSSVariable:w}=_s[g],h=u==="none"?d[g]:x(d[g],c);if(y){const p=y.length;for(let b=0;b<p;b++)o[y[b]]=h}else w?this.options.visualElement.renderState.vars[g]=h:o[g]=h}this.options.layoutId&&(o.pointerEvents=c===this?Un(i?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(dl),this.root.sharedNodes.clear()}}}function ap(s){s.updateLayout()}function op(s){const e=s.resumeFrom?.snapshot||s.snapshot;if(s.isLead()&&s.layout&&e&&s.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=s.layout,{animationType:r}=s.options,a=e.source!==s.layout.source;r==="size"?it(d=>{const u=a?e.measuredBox[d]:e.layoutBox[d],f=Je(u);u.min=t[d].min,u.max=u.min+f}):Rd(r,e.layoutBox,t)&&it(d=>{const u=a?e.measuredBox[d]:e.layoutBox[d],f=Je(t[d]);u.max=u.min+f,s.relativeTarget&&!s.currentAnimation&&(s.isProjectionDirty=!0,s.relativeTarget[d].max=s.relativeTarget[d].min+f)});const o=fs();Rs(o,t,e.layoutBox);const i=fs();a?Rs(i,s.applyTransform(n,!0),e.measuredBox):Rs(i,t,e.layoutBox);const l=!Vd(o);let c=!1;if(!s.resumeFrom){const d=s.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:u,layout:f}=d;if(u&&f){const m=Fe();Ds(m,e.layoutBox,u.layoutBox);const g=Fe();Ds(g,t,f.layoutBox),Md(m,g)||(c=!0),d.options.layoutRoot&&(s.relativeTarget=g,s.relativeTargetOrigin=m,s.relativeParent=d)}}}s.notifyListeners("didUpdate",{layout:t,snapshot:e,delta:i,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(s.isLead()){const{onExitComplete:t}=s.options;t&&t()}s.options.transition=void 0}function ip(s){s.parent&&(s.isProjecting()||(s.isProjectionDirty=s.parent.isProjectionDirty),s.isSharedProjectionDirty||(s.isSharedProjectionDirty=!!(s.isProjectionDirty||s.parent.isProjectionDirty||s.parent.isSharedProjectionDirty)),s.isTransformDirty||(s.isTransformDirty=s.parent.isTransformDirty))}function lp(s){s.isProjectionDirty=s.isSharedProjectionDirty=s.isTransformDirty=!1}function cp(s){s.clearSnapshot()}function dl(s){s.clearMeasurements()}function ul(s){s.isLayoutDirty=!1}function dp(s){const{visualElement:e}=s.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),s.resetTransform()}function fl(s){s.finishAnimation(),s.targetDelta=s.relativeTarget=s.target=void 0,s.isProjectionDirty=!0}function up(s){s.resolveTargetDelta()}function fp(s){s.calcProjection()}function mp(s){s.resetSkewAndRotation()}function hp(s){s.removeLeadSnapshot()}function ml(s,e,t){s.translate=Le(e.translate,0,t),s.scale=Le(e.scale,1,t),s.origin=e.origin,s.originPoint=e.originPoint}function hl(s,e,t,n){s.min=Le(e.min,t.min,n),s.max=Le(e.max,t.max,n)}function pp(s,e,t,n){hl(s.x,e.x,t.x,n),hl(s.y,e.y,t.y,n)}function gp(s){return s.animationValues&&s.animationValues.opacityExit!==void 0}const bp={duration:.45,ease:[.4,0,.1,1]},pl=s=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(s),gl=pl("applewebkit/")&&!pl("chrome/")?Math.round:tt;function bl(s){s.min=gl(s.min),s.max=gl(s.max)}function yp(s){bl(s.x),bl(s.y)}function Rd(s,e,t){return s==="position"||s==="preserve-aspect"&&!Th(ll(e),ll(t),.2)}function vp(s){return s!==s.root&&s.scroll?.wasRoot}const xp=Ed({attachResizeListener:(s,e)=>Ws(s,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fa={current:void 0},Dd=Ed({measureScroll:s=>({x:s.scrollLeft,y:s.scrollTop}),defaultParent:()=>{if(!fa.current){const s=new xp({});s.mount(window),s.setOptions({layoutScroll:!0}),fa.current=s}return fa.current},resetTransform:(s,e)=>{s.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:s=>window.getComputedStyle(s).position==="fixed"}),wp={pan:{Feature:zh},drag:{Feature:Oh,ProjectionNode:Dd,MeasureLayout:Ad}};function yl(s,e,t){const{props:n}=s;s.animationState&&n.whileHover&&s.animationState.setActive("whileHover",t==="Start");const r="onHover"+t,a=n[r];a&&Me.postRender(()=>a(e,qs(e)))}class Cp extends Vt{mount(){const{current:e}=this.node;e&&(this.unmount=z0(e,(t,n)=>(yl(this.node,n,"Start"),r=>yl(this.node,r,"End"))))}unmount(){}}class kp extends Vt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Hs(Ws(this.node.current,"focus",()=>this.onFocus()),Ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vl(s,e,t){const{props:n}=s;if(s.current instanceof HTMLButtonElement&&s.current.disabled)return;s.animationState&&n.whileTap&&s.animationState.setActive("whileTap",t==="Start");const r="onTap"+(t==="End"?"":t),a=n[r];a&&Me.postRender(()=>a(e,qs(e)))}class Sp extends Vt{mount(){const{current:e}=this.node;e&&(this.unmount=G0(e,(t,n)=>(vl(this.node,n,"Start"),(r,{success:a})=>vl(this.node,r,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _a=new WeakMap,ma=new WeakMap,Tp=s=>{const e=_a.get(s.target);e&&e(s)},Ap=s=>{s.forEach(Tp)};function jp({root:s,...e}){const t=s||document;ma.has(t)||ma.set(t,{});const n=ma.get(t),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(Ap,{root:s,...e})),n[r]}function Np(s,e,t){const n=jp(e);return _a.set(s,t),n.observe(s),()=>{_a.delete(s),n.unobserve(s)}}const Pp={some:0,all:1};class Vp extends Vt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:a}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:typeof r=="number"?r:Pp[r]},i=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),f=c?d:u;f&&f(l)};return Np(this.node.current,o,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(Mp(e,t))&&this.startObserver()}unmount(){}}function Mp({viewport:s={}},{viewport:e={}}={}){return t=>s[t]!==e[t]}const Ip={inView:{Feature:Vp},tap:{Feature:Sp},focus:{Feature:kp},hover:{Feature:Cp}},Ep={layout:{ProjectionNode:Dd,MeasureLayout:Ad}},Rp={...vh,...Ip,...wp,...Ep},pe=_m(Rp,qm),Dp=50,xl=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Bp=()=>({time:0,x:xl(),y:xl()}),Lp={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function wl(s,e,t,n){const r=t[e],{length:a,position:o}=Lp[e],i=r.current,l=t.time;r.current=s[`scroll${o}`],r.scrollLength=s[`scroll${a}`]-s[`client${a}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=zt(0,r.scrollLength,r.current);const c=n-l;r.velocity=c>Dp?0:ao(r.current-i,c)}function $p(s,e,t){wl(s,"x",e,t),wl(s,"y",e,t),e.time=t}function Op(s,e){const t={x:0,y:0};let n=s;for(;n&&n!==e;)if(ko(n))t.x+=n.offsetLeft,t.y+=n.offsetTop,n=n.offsetParent;else if(n.tagName==="svg"){const r=n.getBoundingClientRect();n=n.parentElement;const a=n.getBoundingClientRect();t.x+=r.left-a.left,t.y+=r.top-a.top}else if(n instanceof SVGGraphicsElement){const{x:r,y:a}=n.getBBox();t.x+=r,t.y+=a;let o=null,i=n.parentNode;for(;!o;)i.tagName==="svg"&&(o=i),i=n.parentNode;n=o}else break;return t}const Fa={start:0,center:.5,end:1};function Cl(s,e,t=0){let n=0;if(s in Fa&&(s=Fa[s]),typeof s=="string"){const r=parseFloat(s);s.endsWith("px")?n=r:s.endsWith("%")?s=r/100:s.endsWith("vw")?n=r/100*document.documentElement.clientWidth:s.endsWith("vh")?n=r/100*document.documentElement.clientHeight:s=r}return typeof s=="number"&&(n=e*s),t+n}const zp=[0,0];function _p(s,e,t,n){let r=Array.isArray(s)?s:zp,a=0,o=0;return typeof s=="number"?r=[s,s]:typeof s=="string"&&(s=s.trim(),s.includes(" ")?r=s.split(" "):r=[s,Fa[s]?s:"0"]),a=Cl(r[0],t,n),o=Cl(r[1],e),a-o}const Fp={All:[[0,0],[1,1]]},Wp={x:0,y:0};function Gp(s){return"getBBox"in s&&s.tagName!=="svg"?s.getBBox():{width:s.clientWidth,height:s.clientHeight}}function Up(s,e,t){const{offset:n=Fp.All}=t,{target:r=s,axis:a="y"}=t,o=a==="y"?"height":"width",i=r!==s?Op(r,s):Wp,l=r===s?{width:s.scrollWidth,height:s.scrollHeight}:Gp(r),c={width:s.clientWidth,height:s.clientHeight};e[a].offset.length=0;let d=!e[a].interpolate;const u=n.length;for(let f=0;f<u;f++){const m=_p(n[f],c[o],l[o],i[a]);!d&&m!==e[a].interpolatorOffsets[f]&&(d=!0),e[a].offset[f]=m}d&&(e[a].interpolate=po(e[a].offset,go(n),{clamp:!1}),e[a].interpolatorOffsets=[...e[a].offset]),e[a].progress=gt(0,1,e[a].interpolate(e[a].current))}function Hp(s,e=s,t){if(t.x.targetOffset=0,t.y.targetOffset=0,e!==s){let n=e;for(;n&&n!==s;)t.x.targetOffset+=n.offsetLeft,t.y.targetOffset+=n.offsetTop,n=n.offsetParent}t.x.targetLength=e===s?e.scrollWidth:e.clientWidth,t.y.targetLength=e===s?e.scrollHeight:e.clientHeight,t.x.containerLength=s.clientWidth,t.y.containerLength=s.clientHeight,process.env.NODE_ENV!=="production"&&s&&e&&e!==s&&nr(getComputedStyle(s).position!=="static","Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.")}function Kp(s,e,t,n={}){return{measure:r=>{Hp(s,n.target,t),$p(s,t,r),(n.offset||n.target)&&Up(s,t,n)},notify:()=>e(t)}}const js=new WeakMap,kl=new WeakMap,ha=new WeakMap,Sl=s=>s===document.scrollingElement?window:s;function Bd(s,{container:e=document.scrollingElement,...t}={}){if(!e)return tt;let n=ha.get(e);n||(n=new Set,ha.set(e,n));const r=Bp(),a=Kp(e,s,r,t);if(n.add(a),!js.has(e)){const i=()=>{for(const u of n)u.measure(Ke.timestamp);Me.preUpdate(l)},l=()=>{for(const u of n)u.notify()},c=()=>Me.read(i);js.set(e,c);const d=Sl(e);window.addEventListener("resize",c,{passive:!0}),e!==document.documentElement&&kl.set(e,Q0(e,c)),d.addEventListener("scroll",c,{passive:!0}),c()}const o=js.get(e);return Me.read(o,!1,!0),()=>{ft(o);const i=ha.get(e);if(!i||(i.delete(a),i.size))return;const l=js.get(e);js.delete(e),l&&(Sl(e).removeEventListener("scroll",l),kl.get(e)?.(),window.removeEventListener("resize",l))}}const Tl=new Map;function Xp(s){const e={value:0},t=Bd(n=>{e.value=n[s.axis].progress*100},s);return{currentTime:e,cancel:t}}function Ld({source:s,container:e,...t}){const{axis:n}=t;s&&(e=s);const r=Tl.get(e)??new Map;Tl.set(e,r);const a=t.target??"self",o=r.get(a)??{},i=n+(t.offset??[]).join(",");return o[i]||(o[i]=!t.target&&Nc()?new ScrollTimeline({source:e,axis:n}):Xp({container:e,...t})),o[i]}function Yp(s,e){const t=Ld(e);return s.attachTimeline({timeline:e.target?void 0:t,observe:n=>(n.pause(),Wc(r=>{n.time=n.iterationDuration*r},t))})}function qp(s){return s.length===2}function Zp(s,e){return qp(s)?Bd(t=>{s(t[e.axis].progress,t)},e):Wc(s,Ld(e))}function Jp(s,{axis:e="y",container:t=document.scrollingElement,...n}={}){if(!t)return tt;const r={axis:e,container:t,...n};return typeof s=="function"?Zp(s,r):Yp(s,r)}const Qp=()=>({scrollX:ut(0),scrollY:ut(0),scrollXProgress:ut(0),scrollYProgress:ut(0)}),In=s=>s?!s.current:!1;function $d({container:s,target:e,...t}={}){const n=_t(Qp),r=j.useRef(null),a=j.useRef(!1),o=j.useCallback(()=>(r.current=Jp((i,{x:l,y:c})=>{n.scrollX.set(l.current),n.scrollXProgress.set(l.progress),n.scrollY.set(c.current),n.scrollYProgress.set(c.progress)},{...t,container:s?.current||void 0,target:e?.current||void 0}),()=>{r.current?.()}),[s,e,JSON.stringify(t.offset)]);return Us(()=>{if(a.current=!1,In(s)||In(e)){a.current=!0;return}else return o()},[o]),j.useEffect(()=>{if(a.current)return qe(!In(s),"Container ref is defined but not hydrated","use-scroll-ref"),qe(!In(e),"Target ref is defined but not hydrated","use-scroll-ref"),o()},[o]),n}function Lo(s){const e=_t(()=>ut(s)),{isStatic:t}=j.useContext(Ys);if(t){const[,n]=j.useState(s);j.useEffect(()=>e.on("change",n),[])}return e}function Od(s,e){const t=Lo(e()),n=()=>t.set(e());return n(),Us(()=>{const r=()=>Me.preRender(n,!1,!0),a=s.map(o=>o.on("change",r));return()=>{a.forEach(o=>o()),ft(n)}}),t}function eg(s){Is.current=[],s();const e=Od(Is.current,s);return Is.current=void 0,e}function ps(s,e,t,n){if(typeof s=="function")return eg(s);const r=typeof e=="function"?e:em(e,t,n);return Array.isArray(s)?Al(s,r):Al([s],([a])=>r(a))}function Al(s,e){const t=_t(()=>[]);return Od(s,()=>{t.length=0;const n=s.length;for(let r=0;r<n;r++)t[r]=s[r].get();return e(t)})}function Zn(s,e={}){const{isStatic:t}=j.useContext(Ys),n=()=>Ue(s)?s.get():s;if(t)return ps(n);const r=Lo(n());return j.useInsertionEffect(()=>tm(r,s,e),[r,JSON.stringify(e)]),r}function tg(s){s.values.forEach(e=>e.stop())}function Wa(s,e){[...e].reverse().forEach(n=>{const r=s.getVariant(n);r&&Ro(s,r),s.variantChildren&&s.variantChildren.forEach(a=>{Wa(a,e)})})}function sg(s,e){if(Array.isArray(e))return Wa(s,e);if(typeof e=="string")return Wa(s,[e]);Ro(s,e)}function ng(){let s=!1;const e=new Set,t={subscribe(n){return e.add(n),()=>void e.delete(n)},start(n,r){qe(s,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const a=[];return e.forEach(o=>{a.push(yd(o,n,{transitionOverride:r}))}),Promise.all(a)},set(n){return qe(s,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(r=>{sg(r,n)})},stop(){e.forEach(n=>{tg(n)})},mount(){return s=!0,()=>{s=!1,t.stop()}}};return t}function $o(s){return typeof s=="object"&&!Array.isArray(s)}function zd(s,e,t,n){return typeof s=="string"&&$o(e)?ar(s,t,n):s instanceof NodeList?Array.from(s):Array.isArray(s)?s:[s]}function rg(s,e,t){return s*(e+1)}function jl(s,e,t,n){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,s+parseFloat(e)):e==="<"?t:e.startsWith("<")?Math.max(0,t+parseFloat(e.slice(1))):n.get(e)??s}function ag(s,e,t){for(let n=0;n<s.length;n++){const r=s[n];r.at>e&&r.at<t&&(sr(s,r),n--)}}function og(s,e,t,n,r,a){ag(s,r,a);for(let o=0;o<e.length;o++)s.push({value:e[o],at:Le(r,a,n[o]),easing:dc(t,o)})}function ig(s,e){for(let t=0;t<s.length;t++)s[t]=s[t]/(e+1)}function lg(s,e){return s.at===e.at?s.value===null?1:e.value===null?-1:0:s.at-e.at}const cg="easeInOut",dg=20;function ug(s,{defaultTransition:e={},...t}={},n,r){const a=e.duration||.3,o=new Map,i=new Map,l={},c=new Map;let d=0,u=0,f=0;for(let m=0;m<s.length;m++){const g=s[m];if(typeof g=="string"){c.set(g,u);continue}else if(!Array.isArray(g)){c.set(g.name,jl(u,g.at,d,c));continue}let[x,y,w={}]=g;w.at!==void 0&&(u=jl(u,w.at,d,c));let h=0;const p=(b,S,C,v=0,T=0)=>{const A=fg(b),{delay:E=0,times:R=go(A),type:L="keyframes",repeat:D,repeatType:V,repeatDelay:P=0,...I}=S;let{ease:M=e.ease||"easeOut",duration:N}=S;const B=typeof E=="function"?E(v,T):E,$=A.length,_=xo(L)?L:r?.[L||"keyframes"];if($<=2&&_){let W=100;if($===2&&pg(A)){const G=A[1]-A[0];W=Math.abs(G)}const H={...I};N!==void 0&&(H.duration=ct(N));const K=Cc(H,W,_);M=K.ease,N=K.duration}N??(N=a);const O=u+B;R.length===1&&R[0]===0&&(R[1]=1);const z=R.length-A.length;if(z>0&&Sc(R,z),A.length===1&&A.unshift(null),D){qe(D<dg,"Repeat count too high, must be less than 20","repeat-count-high"),N=rg(N,D);const W=[...A],H=[...R];M=Array.isArray(M)?[...M]:[M];const K=[...M];for(let G=0;G<D;G++){A.push(...W);for(let X=0;X<W.length;X++)R.push(H[X]+(G+1)),M.push(X===0?"linear":dc(K,X-1))}ig(R,D)}const F=O+N;og(C,A,M,R,O,F),h=Math.max(B+N,h),f=Math.max(F,f)};if(Ue(x)){const b=Nl(x,i);p(y,w,Pl("default",b))}else{const b=zd(x,y,n,l),S=b.length;for(let C=0;C<S;C++){y=y,w=w;const v=b[C],T=Nl(v,i);for(const A in y)p(y[A],mg(w,A),Pl(A,T),C,S)}}d=u,u+=h}return i.forEach((m,g)=>{for(const x in m){const y=m[x];y.sort(lg);const w=[],h=[],p=[];for(let S=0;S<y.length;S++){const{at:C,value:v,easing:T}=y[S];w.push(v),h.push(zt(0,f,C)),p.push(T||"easeOut")}h[0]!==0&&(h.unshift(0),w.unshift(w[0]),p.unshift(cg)),h[h.length-1]!==1&&(h.push(1),w.push(null)),o.has(g)||o.set(g,{keyframes:{},transition:{}});const b=o.get(g);b.keyframes[x]=w,b.transition[x]={...e,duration:f,ease:p,times:h,...t}}}),o}function Nl(s,e){return!e.has(s)&&e.set(s,{}),e.get(s)}function Pl(s,e){return e[s]||(e[s]=[]),e[s]}function fg(s){return Array.isArray(s)?s:[s]}function mg(s,e){return s&&s[e]?{...s,...s[e]}:{...s}}const hg=s=>typeof s=="number",pg=s=>s.every(hg);function gg(s,e){return s in e}class bg extends dd{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(gg(t,e)){const n=e[t];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Fe()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function yg(s){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},t=or(s)&&!Gc(s)?new pd(e):new md(e);t.mount(s),Fs.set(s,t)}function vg(s){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},t=new bg(e);t.mount(s),Fs.set(s,t)}function xg(s,e){return Ue(s)||typeof s=="number"||typeof s=="string"&&!$o(e)}function _d(s,e,t,n){const r=[];if(xg(s,e))r.push(jd(s,$o(e)&&e.default||e,t&&(t.default||t)));else{const a=zd(s,e,n),o=a.length;qe(!!o,"No valid elements provided.","no-valid-elements");for(let i=0;i<o;i++){const l=a[i];qe(l!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const c=l instanceof Element?yg:vg;Fs.has(l)||c(l);const d=Fs.get(l),u={...t};"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(i,o)),r.push(...Bo(d,{...e,transition:u},{}))}}return r}function wg(s,e,t){const n=[];return ug(s,e,t,{spring:Os}).forEach(({keyframes:a,transition:o},i)=>{n.push(..._d(i,a,o))}),n}function Cg(s){return Array.isArray(s)&&s.some(Array.isArray)}function kg(s){function e(t,n,r){let a=[],o;if(Cg(t))a=wg(t,n,s);else{const{onComplete:l,...c}=r||{};typeof l=="function"&&(o=l),a=_d(t,n,c,s)}const i=new k0(a);return o&&i.finished.then(o),i}return e}const Sg=kg();function Tg(){const s=_t(ng);return Us(s.mount,[]),s}const Ct=Tg,Ag={some:0,all:1};function jg(s,e,{root:t,margin:n,amount:r="some"}={}){const a=ar(s),o=new WeakMap,i=c=>{c.forEach(d=>{const u=o.get(d.target);if(d.isIntersecting!==!!u)if(d.isIntersecting){const f=e(d.target,d);typeof f=="function"?o.set(d.target,f):l.unobserve(d.target)}else typeof u=="function"&&(u(d),o.delete(d.target))})},l=new IntersectionObserver(i,{root:t,rootMargin:n,threshold:typeof r=="number"?r:Ag[r]});return a.forEach(c=>l.observe(c)),()=>l.disconnect()}function st(s,{root:e,margin:t,amount:n,once:r=!1,initial:a=!1}={}){const[o,i]=j.useState(a);return j.useEffect(()=>{if(!s.current||r&&o)return;const l=()=>(i(!0),r?void 0:()=>i(!1)),c={root:e&&e.current||void 0,margin:t,amount:n};return jg(s.current,l,c)},[e,s,t,r,n]),o}var En={exports:{}},pa={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-compiler-runtime.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Vl;function Ng(){if(Vl)return pa;Vl=1;var s=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return pa.c=function(e){return s.H.useMemoCache(e)},pa}var ga={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-compiler-runtime.development.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Ml;function Pg(){return Ml||(Ml=1,process.env.NODE_ENV!=="production"&&(function(){var s=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;ga.c=function(e){var t=s.H;return t===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
26
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
27
|
-
2. You might be breaking the Rules of Hooks
|
|
28
|
-
3. You might have more than one copy of React in the same app
|
|
29
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),t.useMemoCache(e)}})()),ga}var Il;function Vg(){return Il||(Il=1,process.env.NODE_ENV==="production"?En.exports=Ng():En.exports=Pg()),En.exports}var ae=Vg();const Fd=s=>{const e=ae.c(51);let t;e[0]!==s?(t=s===void 0?{}:s,e[0]=s,e[1]=t):t=e[1];const n=t,{selectionMode:r,defaultExpandedKeys:a,expandedKeys:o,onExpandedChange:i,onSelectionChange:l,isDisabled:c}=n,d=r===void 0?"single":r;let u;e[2]!==a?(u=a===void 0?[]:a,e[2]=a,e[3]=u):u=e[3];const f=u,m=c===void 0?!1:c,[g,x]=j.useState(f),y=o!==void 0,w=y?o:g;let h;e[4]!==y||e[5]!==m||e[6]!==i?(h=$=>{m||(y||x($),i?.($))},e[4]=y,e[5]=m,e[6]=i,e[7]=h):h=e[7];const p=h;let b;e[8]!==w?(b=$=>w.includes($),e[8]=w,e[9]=b):b=e[9];const S=b;let C;e[10]!==w||e[11]!==m||e[12]!==S||e[13]!==l||e[14]!==d||e[15]!==p?(C=$=>{if(m)return;let _;if(d==="single")_=S($)?[]:[$],l&&l(S($)?"":$);else if(d==="multiple")_=S($)?w.filter(O=>O!==$):[...w,$];else return;p(_)},e[10]=w,e[11]=m,e[12]=S,e[13]=l,e[14]=d,e[15]=p,e[16]=C):C=e[16];const v=C;let T;e[17]!==w||e[18]!==m||e[19]!==S||e[20]!==l||e[21]!==d||e[22]!==p?(T=$=>{if(m||S($))return;let _;if(d==="single")_=[$],l?.($);else if(d==="multiple")_=[...w,$];else return;p(_)},e[17]=w,e[18]=m,e[19]=S,e[20]=l,e[21]=d,e[22]=p,e[23]=T):T=e[23];const A=T;let E;e[24]!==w||e[25]!==m||e[26]!==S||e[27]!==l||e[28]!==d||e[29]!==p?(E=$=>{if(m||!S($))return;const _=w.filter(O=>O!==$);p(_),d==="single"&&l&&l("")},e[24]=w,e[25]=m,e[26]=S,e[27]=l,e[28]=d,e[29]=p,e[30]=E):E=e[30];const R=E;let L;e[31]!==m||e[32]!==d||e[33]!==p?(L=$=>{const _=$===void 0?[]:$;m||d!=="multiple"||p(_)},e[31]=m,e[32]=d,e[33]=p,e[34]=L):L=e[34];const D=L;let V;e[35]!==m||e[36]!==l||e[37]!==d||e[38]!==p?(V=()=>{m||(p([]),d==="single"&&l&&l(""))},e[35]=m,e[36]=l,e[37]=d,e[38]=p,e[39]=V):V=e[39];const P=V;let I;e[40]!==p?(I=$=>{p($)},e[40]=p,e[41]=I):I=e[41];const M=I;let N,B;return e[42]!==R||e[43]!==P||e[44]!==A||e[45]!==D||e[46]!==w||e[47]!==S||e[48]!==M||e[49]!==v?(B={expandedKeys:w,isExpanded:S,toggle:v,expand:A,collapse:R,expandAll:D,collapseAll:P,setExpandedKeys:M},e[42]=R,e[43]=P,e[44]=A,e[45]=D,e[46]=w,e[47]=S,e[48]=M,e[49]=v,e[50]=B):B=e[50],N=B,N},Oo={xs:{base:"text-xs",header:"px-2 py-1.5 min-h-8",content:"px-2 pb-2",indicator:"text-xs w-3 h-3",gap:"gap-1"},sm:{base:"text-sm",header:"px-3 py-2 min-h-10",content:"px-3 pb-3",indicator:"text-sm w-4 h-4",gap:"gap-1.5"},md:{base:"text-base",header:"px-4 py-3 min-h-12",content:"px-4 pb-4",indicator:"text-base w-5 h-5",gap:"gap-2"},lg:{base:"text-lg",header:"px-5 py-4 min-h-14",content:"px-5 pb-5",indicator:"text-lg w-6 h-6",gap:"gap-2.5"},xl:{base:"text-xl",header:"px-6 py-5 min-h-16",content:"px-6 pb-6",indicator:"text-xl w-7 h-7",gap:"gap-3"}},Wd={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-2xl"},Mg=(s="default",e="flat",t=!1)=>{const n="transition-colors duration-200";return t?`${n} opacity-50 cursor-not-allowed`:`${n} ${{default:{flat:"bg-gray-100 text-gray-900 hover:bg-gray-200",bordered:"bg-transparent border-2 border-gray-200 text-gray-900 hover:border-gray-300 hover:bg-gray-50",shadow:"bg-white text-gray-900 shadow-md hover:shadow-lg",splitted:"bg-gray-50 text-gray-900 hover:bg-gray-100 shadow-sm"},primary:{flat:"bg-blue-100 text-blue-900 hover:bg-blue-200",bordered:"bg-transparent border-2 border-blue-200 text-blue-900 hover:border-blue-300 hover:bg-blue-50",shadow:"bg-white text-blue-900 shadow-md shadow-blue-100 hover:shadow-lg hover:shadow-blue-200",splitted:"bg-blue-50 text-blue-900 hover:bg-blue-100 shadow-sm shadow-blue-100"},secondary:{flat:"bg-purple-100 text-purple-900 hover:bg-purple-200",bordered:"bg-transparent border-2 border-purple-200 text-purple-900 hover:border-purple-300 hover:bg-purple-50",shadow:"bg-white text-purple-900 shadow-md shadow-purple-100 hover:shadow-lg hover:shadow-purple-200",splitted:"bg-purple-50 text-purple-900 hover:bg-purple-100 shadow-sm shadow-purple-100"},success:{flat:"bg-green-100 text-green-900 hover:bg-green-200",bordered:"bg-transparent border-2 border-green-200 text-green-900 hover:border-green-300 hover:bg-green-50",shadow:"bg-white text-green-900 shadow-md shadow-green-100 hover:shadow-lg hover:shadow-green-200",splitted:"bg-green-50 text-green-900 hover:bg-green-100 shadow-sm shadow-green-100"},warning:{flat:"bg-amber-100 text-amber-900 hover:bg-amber-200",bordered:"bg-transparent border-2 border-amber-200 text-amber-900 hover:border-amber-300 hover:bg-amber-50",shadow:"bg-white text-amber-900 shadow-md shadow-amber-100 hover:shadow-lg hover:shadow-amber-200",splitted:"bg-amber-50 text-amber-900 hover:bg-amber-100 shadow-sm shadow-amber-100"},danger:{flat:"bg-red-100 text-red-900 hover:bg-red-200",bordered:"bg-transparent border-2 border-red-200 text-red-900 hover:border-red-300 hover:bg-red-50",shadow:"bg-white text-red-900 shadow-md shadow-red-100 hover:shadow-lg hover:shadow-red-200",splitted:"bg-red-50 text-red-900 hover:bg-red-100 shadow-sm shadow-red-100"}}[s][e]}`},Ig=(s="default",e="flat",t=!1,n=!1)=>{const r="flex items-center justify-between w-full text-left font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2";if(n)return`${r} opacity-50 cursor-not-allowed focus:ring-gray-300`;const a={default:"focus:ring-gray-500",primary:"focus:ring-blue-500",secondary:"focus:ring-purple-500",success:"focus:ring-green-500",warning:"focus:ring-amber-500",danger:"focus:ring-red-500"},o=t?"font-semibold":"",i=e==="bordered"?"hover:bg-opacity-10":"";return`${r} ${a[s]} ${o} ${i} cursor-pointer`},Eg=(s="default",e="flat")=>`overflow-hidden transition-all duration-300 ease-in-out ${{default:{flat:"text-gray-700",bordered:"text-gray-700",shadow:"text-gray-700",splitted:"text-gray-700"},primary:{flat:"text-blue-800",bordered:"text-blue-800",shadow:"text-blue-800",splitted:"text-blue-800"},secondary:{flat:"text-purple-800",bordered:"text-purple-800",shadow:"text-purple-800",splitted:"text-purple-800"},success:{flat:"text-green-800",bordered:"text-green-800",shadow:"text-green-800",splitted:"text-green-800"},warning:{flat:"text-amber-800",bordered:"text-amber-800",shadow:"text-amber-800",splitted:"text-amber-800"},danger:{flat:"text-red-800",bordered:"text-red-800",shadow:"text-red-800",splitted:"text-red-800"}}[s][e]}`,Rg=(s="default",e=!1,t=!1)=>{const n="flex-shrink-0 transition-transform duration-200 ease-in-out";if(t)return`${n} opacity-50 text-gray-400`;const r={default:"text-gray-600",primary:"text-blue-600",secondary:"text-purple-600",success:"text-green-600",warning:"text-amber-600",danger:"text-red-600"},a=e?"rotate-180":"rotate-0";return`${n} ${r[s]} ${a}`},Dg=(s="default",e="flat")=>e==="splitted"?"":`border-t ${{default:"border-gray-200",primary:"border-blue-200",secondary:"border-purple-200",success:"border-green-200",warning:"border-amber-200",danger:"border-red-200"}[s]}`,Bg=(s="flat")=>`accordion-item ${{flat:"border-0",bordered:"border border-gray-200 first:border-t last:border-b",shadow:"shadow-sm",splitted:"mb-2 last:mb-0 shadow-sm border border-gray-100"}[s]}`,Lg=(s="flat",e="md",t=!1,n="")=>{const r="accordion w-full",a=Wd[e],o="space-y-0",i={flat:"space-y-0",bordered:`space-y-0 ${a} overflow-hidden`,shadow:"space-y-2",splitted:"space-y-2"};return`${r} ${i[s]} ${o} ${n}`.trim()},ot={size:"md",color:"default",variant:"flat",radius:"md",selectionMode:"single",indicatorPlacement:"end",itemPlacement:"outside",showDivider:!0,disableAnimation:!1,disableIndicatorAnimation:!1,keepContentMounted:!1,isCompact:!1},Gd={spring:{preset:"spring",spring:{stiffness:280,damping:25,duration:.4},staggerDelay:.1,enableStagger:!0},tween:{preset:"tween",spring:{stiffness:180,damping:22,duration:.5},staggerDelay:.08,enableStagger:!0},smooth:{preset:"smooth",spring:{stiffness:240,damping:28,duration:.45},staggerDelay:.12,enableStagger:!0},bouncy:{preset:"bouncy",spring:{stiffness:400,damping:18,duration:.6},staggerDelay:.15,enableStagger:!0},slow:{preset:"slow",spring:{stiffness:150,damping:30,duration:.7},staggerDelay:.2,enableStagger:!0}},$g=Gd.spring,dr=(s,e)=>{const t=e?Gd[e]:$g;return s?{...t,...s,spring:{...t.spring,...s.spring}}:t},Og=s=>{const{spring:e}=s,t={type:"spring",stiffness:e?.stiffness||280,damping:e?.damping||25};return{collapsed:{rotate:0,scale:1,transition:t},expanded:{rotate:180,scale:1.05,transition:t}}},El=(s,e=0)=>s.enableStagger?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:e*(s.staggerDelay||.1),duration:s.spring?.duration?s.spring.duration*.5:.3,ease:"easeOut"}}:{},Ud=s=>{const e={type:"spring",stiffness:280,damping:25},t={spring:{scale:1.002,transition:e},tween:{scale:1.001,transition:e},smooth:{scale:1.002,transition:e},bouncy:{scale:1.005,transition:e},slow:{scale:1.001,transition:e}};return t[s]||t.spring},Hd=s=>{const e={type:"spring",stiffness:280,damping:25},t={spring:{scale:.998,transition:e},tween:{scale:.999,transition:e},smooth:{scale:.998,transition:e},bouncy:{scale:.995,transition:e},slow:{scale:.999,transition:e}};return t[s]||t.spring},Rl=s=>{const e=ae.c(16),{className:t,isExpanded:n,disableAnimation:r,animationConfig:a}=s,o=t===void 0?"":t,i=n===void 0?!1:n,l=r===void 0?!1:r;let c;e:{if(!a){let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={},e[0]=p):p=e[0],c=p;break e}let h;e[1]!==a?(h=Og(a),e[1]=a,e[2]=h):h=e[2],c=h}const d=c;if(l){const h=`${o} ${i?"rotate-180":""} transition-transform duration-200`;let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}),e[3]=p):p=e[3];let b;return e[4]!==h?(b=k.jsx("svg",{className:h,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:p}),e[4]=h,e[5]=b):b=e[5],b}const u=i?"expanded":"collapsed";let f,m;e[6]===Symbol.for("react.memo_cache_sentinel")?(f={pathLength:1,opacity:1},m={pathLength:.8,opacity:.8},e[6]=f,e[7]=m):(f=e[6],m=e[7]);const g=a?.spring?.stiffness||280,x=a?.spring?.damping||25;let y;e[8]!==g||e[9]!==x?(y=k.jsx(pe.path,{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7",animate:f,initial:m,transition:{type:"spring",stiffness:g,damping:x}}),e[8]=g,e[9]=x,e[10]=y):y=e[10];let w;return e[11]!==d||e[12]!==o||e[13]!==y||e[14]!==u?(w=k.jsx(pe.svg,{className:o,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,animate:u,variants:d,children:y}),e[11]=d,e[12]=o,e[13]=y,e[14]=u,e[15]=w):w=e[15],w},Ga=({isExpanded:s,isDisabled:e=!1,className:t="",children:n,"data-testid":r})=>{const{color:a,size:o,disableIndicatorAnimation:i,animationConfig:l}=ur(),c=j.useMemo(()=>dr(l,"spring"),[l]),d=j.useMemo(()=>Ud(c.preset||"spring"),[c.preset]),u=j.useMemo(()=>Hd(c.preset||"spring"),[c.preset]),f=Oo[o],g=`${Rg(a,s,e)} ${f.indicator} ${t}`.trim();return i?k.jsx("span",{className:g,"data-testid":r,"aria-hidden":"true",children:n||k.jsx(Rl,{className:"w-full h-full"})}):k.jsx(pe.span,{className:g,"data-testid":r,"aria-hidden":"true",whileHover:d,whileTap:u,children:n||k.jsx(Rl,{className:"w-full h-full",isExpanded:s,disableAnimation:i,animationConfig:c})})},zo=({children:s,isExpanded:e,isDisabled:t=!1,onClick:n,className:r="",ariaLabel:a,"data-testid":o})=>{const{color:i,variant:l,size:c,indicatorPlacement:d,animationConfig:u}=ur(),f=j.useMemo(()=>dr(u,"spring"),[u]),m=j.useMemo(()=>Ud(f.preset||"spring"),[f.preset]),g=j.useMemo(()=>Hd(f.preset||"spring"),[f.preset]),x=Oo[c],w=`${Ig(i,l,e,t)} ${x.header} ${r}`.trim(),h=()=>{!t&&n&&n()},p=b=>{!t&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),n?.())};return k.jsxs(pe.button,{type:"button",className:w,onClick:h,onKeyDown:p,disabled:t,"aria-expanded":e,"aria-label":a,"data-testid":o,role:"tab",tabIndex:t?-1:0,whileHover:t?void 0:m,whileTap:t?void 0:g,children:[d==="start"&&k.jsx(Ga,{isExpanded:e,isDisabled:t}),k.jsx(pe.span,{className:"flex-1 text-left",animate:{opacity:t?.5:1},transition:{type:"spring",stiffness:280,damping:25},children:s}),d==="end"&&k.jsx(Ga,{isExpanded:e,isDisabled:t})]})};zo.displayName="AccordionHeader";Ga.displayName="AccordionIndicator";const Dl=s=>{const e=ae.c(19),{isExpanded:t,disableAnimation:n,children:r,className:a,style:o,animationConfig:i}=s,l=n===void 0?!1:n,c=a===void 0?"":a,d=j.useRef(null);let u,f;e[0]!==i?(f=dr(i,"spring"),e[0]=i,e[1]=f):f=e[1],u=f;const m=u;if(l){let E;return e[2]!==r||e[3]!==c||e[4]!==o?(E=k.jsx("div",{className:c,style:o,children:r}),e[2]=r,e[3]=c,e[4]=o,e[5]=E):E=e[5],E}let g;const{spring:x}=m,y=x?.stiffness||280,w=x?.damping||25;let h;e[6]!==y||e[7]!==w?(h={type:"spring",stiffness:y,damping:w},e[6]=y,e[7]=w,e[8]=h):h=e[8];const p=h;let b;e[9]!==p?(b={closed:{opacity:0,transformOrigin:"top",transition:p},open:{opacity:1,transformOrigin:"top",transition:p}},e[9]=p,e[10]=b):b=e[10],g=b;const S=g;let C;e[11]!==o?(C={overflow:"hidden",...o},e[11]=o,e[12]=C):C=e[12];const v=C,T=t?"open":"closed";let A;return e[13]!==r||e[14]!==c||e[15]!==v||e[16]!==T||e[17]!==S?(A=k.jsx(pe.div,{ref:d,className:c,style:v,initial:"closed",animate:T,variants:S,children:r}),e[13]=r,e[14]=c,e[15]=v,e[16]=T,e[17]=S,e[18]=A):A=e[18],A},_o=s=>{const e=ae.c(29),{children:t,isExpanded:n,className:r,style:a,"data-testid":o}=s,i=r===void 0?"":r,{color:l,variant:c,size:d,disableAnimation:u,keepContentMounted:f,animationConfig:m}=ur(),g=Oo[d],y=`${Eg(l,c)} ${g.content} ${i}`;let w;e[0]!==y?(w=y.trim(),e[0]=y,e[1]=w):w=e[1];const h=w;if(u){let C;return e[2]!==t||e[3]!==o||e[4]!==h||e[5]!==n||e[6]!==a?(C=n?k.jsx("div",{className:h,style:a,"data-testid":o,role:"tabpanel",children:t}):null,e[2]=t,e[3]=o,e[4]=h,e[5]=n,e[6]=a,e[7]=C):C=e[7],C}if(!f){let C;e[8]!==m||e[9]!==t||e[10]!==o||e[11]!==u||e[12]!==h||e[13]!==n||e[14]!==a?(C=n&&k.jsx(Dl,{isExpanded:n,disableAnimation:u,className:h,style:a,animationConfig:m,children:k.jsx("div",{"data-testid":o,role:"tabpanel","aria-hidden":!n,children:t})},"accordion-content"),e[8]=m,e[9]=t,e[10]=o,e[11]=u,e[12]=h,e[13]=n,e[14]=a,e[15]=C):C=e[15];let v;return e[16]!==C?(v=k.jsx(bt,{initial:!1,children:C}),e[16]=C,e[17]=v):v=e[17],v}const p=!n;let b;e[18]!==t||e[19]!==o||e[20]!==p?(b=k.jsx("div",{"data-testid":o,role:"tabpanel","aria-hidden":p,children:t}),e[18]=t,e[19]=o,e[20]=p,e[21]=b):b=e[21];let S;return e[22]!==m||e[23]!==u||e[24]!==h||e[25]!==n||e[26]!==a||e[27]!==b?(S=k.jsx(Dl,{isExpanded:n,disableAnimation:u,className:h,style:a,animationConfig:m,children:b}),e[22]=m,e[23]=u,e[24]=h,e[25]=n,e[26]=a,e[27]=b,e[28]=S):S=e[28],S};_o.displayName="AccordionContent";const Fo=s=>{const e=ae.c(52),{itemKey:t,title:n,children:r,isExpanded:a,isDisabled:o,showDivider:i,header:l,onToggle:c,className:d,style:u,ariaLabel:f,"data-testid":m}=s,g=o===void 0?!1:o,x=d===void 0?"":d,y=ur(),{expandedKeys:w,toggle:h,variant:p,color:b,radius:S,isDisabled:C,showDivider:v}=y;let T;e[0]!==a||e[1]!==w||e[2]!==t?(T=a!==void 0?a:w.includes(t),e[0]=a,e[1]=w,e[2]=t,e[3]=T):T=e[3];const A=T,E=C||g,R=i!==void 0?i:v;let L;e[4]!==E||e[5]!==t||e[6]!==c||e[7]!==h?(L=()=>{E||(c?c(t):h(t))},e[4]=E,e[5]=t,e[6]=c,e[7]=h,e[8]=L):L=e[8];const D=L;let V;e[9]!==p?(V=Bg(p),e[9]=p,e[10]=V):V=e[10];const P=V;let I;e[11]!==b||e[12]!==E||e[13]!==p?(I=Mg(b,p,E),e[11]=b,e[12]=E,e[13]=p,e[14]=I):I=e[14];const M=I,N=Wd[S];let B;e[15]!==b||e[16]!==p?(B=Dg(b,p),e[15]=b,e[16]=p,e[17]=B):B=e[17];const $=B;let _,O;if(e[18]!==x||e[19]!==M||e[20]!==P||e[21]!==N||e[22]!==p){const Y=[P,M,N,x];p==="splitted"&&Y.push("border rounded-lg overflow-hidden"),O=Y.filter(Boolean),e[18]=x,e[19]=M,e[20]=P,e[21]=N,e[22]=p,e[23]=O}else O=e[23];const z=O.join(" ");let F;e[24]!==z?(F=z.trim(),e[24]=z,e[25]=F):F=e[25],_=F;const W=_,H=f||`Toggle ${n}`,K=m?`${m}-header`:void 0,G=l||n;let X;e[26]!==D||e[27]!==E||e[28]!==A||e[29]!==H||e[30]!==K||e[31]!==G?(X=k.jsx(zo,{isExpanded:A,isDisabled:E,onClick:D,ariaLabel:H,"data-testid":K,children:G}),e[26]=D,e[27]=E,e[28]=A,e[29]=H,e[30]=K,e[31]=G,e[32]=X):X=e[32];const U=m?`${m}-content`:void 0;let Z;e[33]!==r||e[34]!==A||e[35]!==U?(Z=k.jsx(_o,{isExpanded:A,"data-testid":U,children:r}),e[33]=r,e[34]=A,e[35]=U,e[36]=Z):Z=e[36];let q;e[37]!==m||e[38]!==W||e[39]!==E||e[40]!==A||e[41]!==u||e[42]!==X||e[43]!==Z?(q=k.jsxs("div",{className:W,style:u,"data-testid":m,"data-expanded":A,"data-disabled":E,children:[X,Z]}),e[37]=m,e[38]=W,e[39]=E,e[40]=A,e[41]=u,e[42]=X,e[43]=Z,e[44]=q):q=e[44];let Q;e[45]!==$||e[46]!==R||e[47]!==p?(Q=R&&p!=="splitted"&&k.jsx("div",{className:$}),e[45]=$,e[46]=R,e[47]=p,e[48]=Q):Q=e[48];let J;return e[49]!==q||e[50]!==Q?(J=k.jsxs(k.Fragment,{children:[q,Q]}),e[49]=q,e[50]=Q,e[51]=J):J=e[51],J};Fo.displayName="AccordionItem";const Kd=j.createContext(null),ur=()=>{const s=j.useContext(Kd);if(!s)throw new Error("useAccordionContext must be used within an Accordion component");return s},Xd=({items:s,children:e,selectionMode:t=ot.selectionMode,defaultExpandedKeys:n,expandedKeys:r,onExpandedChange:a,onSelectionChange:o,size:i=ot.size,color:l=ot.color,variant:c=ot.variant,radius:d=ot.radius,isDisabled:u=!1,showDivider:f=ot.showDivider,disableAnimation:m=ot.disableAnimation,disableIndicatorAnimation:g=ot.disableIndicatorAnimation,keepContentMounted:x=ot.keepContentMounted,animationConfig:y,indicatorPlacement:w=ot.indicatorPlacement,itemPlacement:h=ot.itemPlacement,isCompact:p=ot.isCompact,className:b="",style:S,"aria-label":C="Accordion","data-testid":v,...T})=>{const A=Fd({selectionMode:t,defaultExpandedKeys:n,expandedKeys:r,onExpandedChange:a,onSelectionChange:o,isDisabled:u}),E=j.useMemo(()=>({expandedKeys:A.expandedKeys,toggle:A.toggle,selectionMode:t,size:i,color:l,variant:c,radius:d,isDisabled:u,showDivider:f,disableAnimation:m,disableIndicatorAnimation:g,keepContentMounted:x,indicatorPlacement:w,itemPlacement:h,isCompact:p,animationConfig:y}),[A.expandedKeys,A.toggle,t,i,l,c,d,u,f,m,g,x,w,h,p,y]),R=Lg(c,d,p,b),L=j.useMemo(()=>dr(y,"spring"),[y]),D=()=>s&&s.length>0?s.map((V,P)=>{const I=El(L,P);return k.jsx(pe.div,{...m?{}:I,children:k.jsx(Fo,{itemKey:V.key,title:V.title,isDisabled:V.isDisabled,className:V.className,style:V.style,ariaLabel:V.ariaLabel,children:V.content})},V.key)}):e&&!m?j.Children.toArray(e).map((P,I)=>{const M=El(L,I);return k.jsx(pe.div,{...M,children:P},I)}):e;return k.jsx(Kd.Provider,{value:E,children:k.jsx(pe.div,{className:R,style:S,"aria-label":C,"data-testid":v,role:"tablist",initial:{opacity:0},animate:{opacity:1},transition:{type:"spring",stiffness:280,damping:25},...T,children:D()})})};Xd.displayName="Accordion";const zg={linear:[0,0,1,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],backIn:[.6,-.28,.735,.045],backOut:[.175,.885,.32,1.275],backInOut:[.68,-.55,.265,1.55],bounceIn:[.6,-.28,.735,.045],bounceOut:[.175,.885,.32,1.275],bounceInOut:[.68,-.55,.265,1.55],elasticIn:[.5,-.25,.75,1.25],elasticOut:[.25,.46,.45,.94],elasticInOut:[.5,-.25,.75,1.25]},Ft=(s,e=.5)=>({duration:e,ease:zg[s]}),_g=(s,e=50)=>({up:{x:0,y:-e},down:{x:0,y:e},left:{x:-e,y:0},right:{x:e,y:0},upLeft:{x:-e,y:-e},upRight:{x:e,y:-e},downLeft:{x:-e,y:e},downRight:{x:e,y:e}})[s],Fg=s=>{switch(s){case"horizontal":return{rotateY:180};case"vertical":return{rotateX:180};case"both":return{rotateX:180,rotateY:180};default:return{}}},Wg={hidden:s=>({opacity:s.startOpacity,filter:s.blur?`blur(${s.blurAmount}px)`:"blur(0px)"}),visible:s=>({opacity:s.endOpacity,filter:"blur(0px)"})},Gg={hidden:s=>{const{x:e,y:t}=_g(s.direction,s.distance);return{x:s.overshoot?e*1.2:e,y:s.overshoot?t*1.2:t,opacity:0}},visible:{x:0,y:0,opacity:1}},Ug={hidden:s=>({scale:s.startScale,opacity:0}),visible:s=>({scale:s.endScale,opacity:1,transition:{type:s.bounce?"spring":"tween",stiffness:s.bounce?300:100,damping:s.bounce?20:10}})},Hg={hidden:s=>({scale:s.startScale,opacity:0,y:-20}),visible:s=>({scale:1,opacity:1,y:0,transition:{type:"spring",...{low:{stiffness:200,damping:15},medium:{stiffness:300,damping:12},high:{stiffness:400,damping:8}}[s.intensity],bounce:.4}})},Kg={hidden:s=>({...Fg(s.direction),opacity:s.backfaceVisible?1:0,transformPerspective:s.perspective,backfaceVisibility:s.backfaceVisible?"visible":"hidden"}),visible:{rotateX:0,rotateY:0,opacity:1}},Xg={hidden:{opacity:0},visible:s=>({opacity:1,transition:{staggerChildren:s.staggerDelay,staggerDirection:s.staggerDirection==="reverse"?-1:1,delayChildren:.1}})},Yg={hidden:{opacity:0,y:20,scale:.8},visible:{opacity:1,y:0,scale:1,transition:{type:"spring",stiffness:300,damping:20}}},qg=s=>{const e={initial:s[0]||{}};return s.forEach((t,n)=>{e[`morph${n}`]={...t,transition:{type:"spring",stiffness:200,damping:20}}}),e},Zg={hidden:{opacity:0},visible:{opacity:1}},kt=()=>typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches,St=s=>{s.style.willChange="transform, opacity",s.style.backfaceVisibility="hidden",s.style.perspective="1000px"},Tt=s=>{s.style.willChange="auto",s.style.backfaceVisibility="visible",s.style.perspective="none"},$e=(s,e)=>{const t=performance.now();return{animationDuration:e,frameRate:Math.round(1e3/(t-s)),renderTime:t-s}},Ve=(s,e,t)=>{try{switch(e){case"start":s.onStart?.(t);break;case"update":s.onUpdate?.(t);break;case"complete":s.onComplete?.(t);break;case"error":s.onError?.(t);break}}catch(n){console.warn("Error handling animation event:",n)}},Mt=s=>({}),Bl=s=>s.startsWith(">")?`:scope ${s}`:s,Jg=s=>{const e=ae.c(80);let t,n,r,a,o,i,l,c,d,u,f,m,g,x,y,w,h;e[0]!==s?({children:t,trigger:o,delay:c,duration:d,easing:u,disabled:f,startOpacity:m,endOpacity:g,blur:x,blurAmount:y,variants:h,transition:w,className:i,style:l,onAnimationStart:r,onAnimationComplete:n,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=m,e[13]=g,e[14]=x,e[15]=y,e[16]=w,e[17]=h):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11],m=e[12],g=e[13],x=e[14],y=e[15],w=e[16],h=e[17]);const p=o===void 0?"inView":o,b=c===void 0?0:c,S=d===void 0?.6:d,C=u===void 0?"easeOut":u,v=f===void 0?!1:f,T=m===void 0?0:m,A=g===void 0?1:g,E=x===void 0?!1:x,R=y===void 0?5:y,L=i===void 0?"":i;let D;e[18]!==l?(D=l===void 0?{}:l,e[18]=l,e[19]=D):D=e[19];const V=D,P=j.useRef(null),I=Ct();let M;e[20]===Symbol.for("react.memo_cache_sentinel")?(M={once:!0,margin:"0px 0px -10% 0px"},e[20]=M):M=e[20];const N=st(P,M),B=kt(),$=j.useRef(0),_=h||Wg;let O;e[21]!==E||e[22]!==R||e[23]!==A||e[24]!==T?(O={startOpacity:T,endOpacity:A,blur:E,blurAmount:R},e[21]=E,e[22]=R,e[23]=A,e[24]=T,e[25]=O):O=e[25];const z=O;let F,W;e[26]!==I||e[27]!==v||e[28]!==S||e[29]!==N||e[30]!==n||e[31]!==r||e[32]!==B||e[33]!==p?(F=()=>{if(v||B){I.set("visible");return}(async()=>{try{$.current=performance.now(),P.current&&St(P.current);e:switch(p){case"immediate":{Ve({onStart:r},"start",$e($.current,S)),await I.start("visible");break e}case"inView":{N&&(Ve({onStart:r},"start",$e($.current,S)),await I.start("visible"));break e}case"manual":break e;default:await I.start("visible")}P.current&&Tt(P.current),Ve({onComplete:n},"complete",$e($.current,S))}catch(ie){const de=ie;console.warn("Error in FadeContainer animation:",de),Ve({onError:console.error},"error",de)}})()},W=[N,p,I,v,B,S,r,n],e[26]=I,e[27]=v,e[28]=S,e[29]=N,e[30]=n,e[31]=r,e[32]=B,e[33]=p,e[34]=F,e[35]=W):(F=e[34],W=e[35]),j.useEffect(F,W);let H;e[36]!==b||e[37]!==S||e[38]!==C||e[39]!==w?(H=w||{...Ft(C,S),delay:b},e[36]=b,e[37]=S,e[38]=C,e[39]=w,e[40]=H):H=e[40];const K=H;let G;e[41]===Symbol.for("react.memo_cache_sentinel")?(G=Mt(),e[41]=G):G=e[41];const X=G;let U;e[42]!==V?(U={...X,...V},e[42]=V,e[43]=U):U=e[43];const Z=U;let q;e[44]!==I||e[45]!==v||e[46]!==B||e[47]!==p?(q=()=>{p==="hover"&&!v&&!B&&I.start("visible")},e[44]=I,e[45]=v,e[46]=B,e[47]=p,e[48]=q):q=e[48];const Q=q;let J;e[49]!==I||e[50]!==v||e[51]!==B||e[52]!==p?(J=()=>{p==="hover"&&!v&&!B&&I.start("hidden")},e[49]=I,e[50]=v,e[51]=B,e[52]=p,e[53]=J):J=e[53];const Y=J;let ne;e[54]!==I||e[55]!==v||e[56]!==B||e[57]!==p?(ne=()=>{p==="focus"&&!v&&!B&&I.start("visible")},e[54]=I,e[55]=v,e[56]=B,e[57]=p,e[58]=ne):ne=e[58];const se=ne;let ee;e[59]!==I||e[60]!==v||e[61]!==B||e[62]!==p?(ee=()=>{p==="focus"&&!v&&!B&&I.start("hidden")},e[59]=I,e[60]=v,e[61]=B,e[62]=p,e[63]=ee):ee=e[63];const re=ee;let le;if(e[64]!==a){const{onDrag:te,onDragEnd:ie,onDragStart:de,...me}=a;le=me,e[64]=a,e[65]=le}else le=e[65];const ce=v||B?"visible":"hidden";let oe;return e[66]!==_||e[67]!==t||e[68]!==L||e[69]!==Z||e[70]!==I||e[71]!==z||e[72]!==le||e[73]!==re||e[74]!==se||e[75]!==Q||e[76]!==Y||e[77]!==ce||e[78]!==K?(oe=k.jsx(pe.div,{ref:P,custom:z,variants:_,initial:ce,animate:I,transition:K,onMouseEnter:Q,onMouseLeave:Y,onFocus:se,onBlur:re,className:L,style:Z,...le,children:t}),e[66]=_,e[67]=t,e[68]=L,e[69]=Z,e[70]=I,e[71]=z,e[72]=le,e[73]=re,e[74]=se,e[75]=Q,e[76]=Y,e[77]=ce,e[78]=K,e[79]=oe):oe=e[79],oe},Qg=s=>{const e=ae.c(79);let t,n,r,a,o,i,l,c,d,u,f,m,g,x,y,w;e[0]!==s?({children:t,trigger:o,delay:l,duration:c,easing:d,disabled:u,direction:f,distance:m,overshoot:g,variants:w,transition:y,className:x,style:i,onAnimationStart:r,onAnimationComplete:n,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=m,e[13]=g,e[14]=x,e[15]=y,e[16]=w):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11],m=e[12],g=e[13],x=e[14],y=e[15],w=e[16]);const h=o===void 0?"inView":o,p=l===void 0?0:l,b=c===void 0?.6:c,S=d===void 0?"easeOut":d,C=u===void 0?!1:u,v=f===void 0?"up":f,T=m===void 0?50:m,A=g===void 0?!1:g,E=x===void 0?"":x;let R;e[17]!==i?(R=i===void 0?{}:i,e[17]=i,e[18]=R):R=e[18];const L=R,D=j.useRef(null),V=Ct();let P;e[19]===Symbol.for("react.memo_cache_sentinel")?(P={once:!0,margin:"0px 0px -10% 0px"},e[19]=P):P=e[19];const I=st(D,P),M=kt(),N=j.useRef(0),B=w||Gg;let $;e[20]!==v||e[21]!==T||e[22]!==A?($={direction:v,distance:T,overshoot:A},e[20]=v,e[21]=T,e[22]=A,e[23]=$):$=e[23];const _=$;let O,z;e[24]!==V||e[25]!==C||e[26]!==b||e[27]!==I||e[28]!==n||e[29]!==r||e[30]!==M||e[31]!==h?(O=()=>{if(C||M){V.set("visible");return}(async()=>{try{N.current=performance.now(),D.current&&St(D.current);e:switch(h){case"immediate":{Ve({onStart:r},"start",$e(N.current,b)),await V.start("visible");break e}case"inView":{I&&(Ve({onStart:r},"start",$e(N.current,b)),await V.start("visible"));break e}case"manual":break e;default:await V.start("visible")}D.current&&Tt(D.current),Ve({onComplete:n},"complete",$e(N.current,b))}catch(oe){const te=oe;console.warn("Error in SlideContainer animation:",te),Ve({onError:console.error},"error",te)}})()},z=[I,h,V,C,M,b,r,n],e[24]=V,e[25]=C,e[26]=b,e[27]=I,e[28]=n,e[29]=r,e[30]=M,e[31]=h,e[32]=O,e[33]=z):(O=e[32],z=e[33]),j.useEffect(O,z);let F;e[34]!==p||e[35]!==b||e[36]!==S||e[37]!==A||e[38]!==y?(F=y||{...Ft(S,b),delay:p,...A&&{type:"spring",stiffness:200,damping:20}},e[34]=p,e[35]=b,e[36]=S,e[37]=A,e[38]=y,e[39]=F):F=e[39];const W=F;let H;e[40]===Symbol.for("react.memo_cache_sentinel")?(H=Mt(),e[40]=H):H=e[40];const K=H;let G;e[41]!==L?(G={...K,...L},e[41]=L,e[42]=G):G=e[42];const X=G;let U;e[43]!==V||e[44]!==C||e[45]!==M||e[46]!==h?(U=()=>{h==="hover"&&!C&&!M&&V.start("visible")},e[43]=V,e[44]=C,e[45]=M,e[46]=h,e[47]=U):U=e[47];const Z=U;let q;e[48]!==V||e[49]!==C||e[50]!==M||e[51]!==h?(q=()=>{h==="hover"&&!C&&!M&&V.start("hidden")},e[48]=V,e[49]=C,e[50]=M,e[51]=h,e[52]=q):q=e[52];const Q=q;let J;e[53]!==V||e[54]!==C||e[55]!==M||e[56]!==h?(J=()=>{h==="focus"&&!C&&!M&&V.start("visible")},e[53]=V,e[54]=C,e[55]=M,e[56]=h,e[57]=J):J=e[57];const Y=J;let ne;e[58]!==V||e[59]!==C||e[60]!==M||e[61]!==h?(ne=()=>{h==="focus"&&!C&&!M&&V.start("hidden")},e[58]=V,e[59]=C,e[60]=M,e[61]=h,e[62]=ne):ne=e[62];const se=ne;let ee;if(e[63]!==a){const{onDrag:ce,onDragEnd:oe,onDragStart:te,...ie}=a;ee=ie,e[63]=a,e[64]=ee}else ee=e[64];const re=C||M?"visible":"hidden";let le;return e[65]!==B||e[66]!==t||e[67]!==E||e[68]!==X||e[69]!==V||e[70]!==_||e[71]!==ee||e[72]!==se||e[73]!==Y||e[74]!==Z||e[75]!==Q||e[76]!==re||e[77]!==W?(le=k.jsx(pe.div,{ref:D,custom:_,variants:B,initial:re,animate:V,transition:W,onMouseEnter:Z,onMouseLeave:Q,onFocus:Y,onBlur:se,className:E,style:X,...ee,children:t}),e[65]=B,e[66]=t,e[67]=E,e[68]=X,e[69]=V,e[70]=_,e[71]=ee,e[72]=se,e[73]=Y,e[74]=Z,e[75]=Q,e[76]=re,e[77]=W,e[78]=le):le=e[78],le},e1=s=>{const e=ae.c(81);let t,n,r,a,o,i,l,c,d,u,f,m,g,x,y,w,h;e[0]!==s?({children:t,trigger:o,delay:c,duration:d,easing:u,disabled:f,startScale:m,endScale:g,scaleOrigin:x,bounce:y,variants:h,transition:w,className:i,style:l,onAnimationStart:r,onAnimationComplete:n,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=m,e[13]=g,e[14]=x,e[15]=y,e[16]=w,e[17]=h):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11],m=e[12],g=e[13],x=e[14],y=e[15],w=e[16],h=e[17]);const p=o===void 0?"inView":o,b=c===void 0?0:c,S=d===void 0?.6:d,C=u===void 0?"easeOut":u,v=f===void 0?!1:f,T=m===void 0?.8:m,A=g===void 0?1:g,E=x===void 0?"center":x,R=y===void 0?!1:y,L=i===void 0?"":i;let D;e[18]!==l?(D=l===void 0?{}:l,e[18]=l,e[19]=D):D=e[19];const V=D,P=j.useRef(null),I=Ct();let M;e[20]===Symbol.for("react.memo_cache_sentinel")?(M={once:!0,margin:"0px 0px -10% 0px"},e[20]=M):M=e[20];const N=st(P,M),B=kt(),$=j.useRef(0),_=h||Ug;let O;e[21]!==R||e[22]!==A||e[23]!==T?(O={startScale:T,endScale:A,bounce:R},e[21]=R,e[22]=A,e[23]=T,e[24]=O):O=e[24];const z=O;let F,W;e[25]!==I||e[26]!==v||e[27]!==S||e[28]!==N||e[29]!==n||e[30]!==r||e[31]!==B||e[32]!==p?(F=()=>{if(v||B){I.set("visible");return}(async()=>{try{$.current=performance.now(),P.current&&St(P.current);e:switch(p){case"immediate":{Ve({onStart:r},"start",$e($.current,S)),await I.start("visible");break e}case"inView":{N&&(Ve({onStart:r},"start",$e($.current,S)),await I.start("visible"));break e}case"manual":break e;default:await I.start("visible")}P.current&&Tt(P.current),Ve({onComplete:n},"complete",$e($.current,S))}catch(ie){const de=ie;console.warn("Error in ScaleContainer animation:",de),Ve({onError:console.error},"error",de)}})()},W=[N,p,I,v,B,S,r,n],e[25]=I,e[26]=v,e[27]=S,e[28]=N,e[29]=n,e[30]=r,e[31]=B,e[32]=p,e[33]=F,e[34]=W):(F=e[33],W=e[34]),j.useEffect(F,W);let H;e[35]!==R||e[36]!==b||e[37]!==S||e[38]!==C||e[39]!==w?(H=w||{...Ft(C,S),delay:b,...R&&{type:"spring",stiffness:300,damping:20,bounce:.3}},e[35]=R,e[36]=b,e[37]=S,e[38]=C,e[39]=w,e[40]=H):H=e[40];const K=H;let G;e[41]===Symbol.for("react.memo_cache_sentinel")?(G=Mt(),e[41]=G):G=e[41];const X=G;let U;e[42]!==E||e[43]!==V?(U={transformOrigin:E,...X,...V},e[42]=E,e[43]=V,e[44]=U):U=e[44];const Z=U;let q;e[45]!==I||e[46]!==v||e[47]!==B||e[48]!==p?(q=()=>{p==="hover"&&!v&&!B&&I.start("visible")},e[45]=I,e[46]=v,e[47]=B,e[48]=p,e[49]=q):q=e[49];const Q=q;let J;e[50]!==I||e[51]!==v||e[52]!==B||e[53]!==p?(J=()=>{p==="hover"&&!v&&!B&&I.start("hidden")},e[50]=I,e[51]=v,e[52]=B,e[53]=p,e[54]=J):J=e[54];const Y=J;let ne;e[55]!==I||e[56]!==v||e[57]!==B||e[58]!==p?(ne=()=>{p==="focus"&&!v&&!B&&I.start("visible")},e[55]=I,e[56]=v,e[57]=B,e[58]=p,e[59]=ne):ne=e[59];const se=ne;let ee;e[60]!==I||e[61]!==v||e[62]!==B||e[63]!==p?(ee=()=>{p==="focus"&&!v&&!B&&I.start("hidden")},e[60]=I,e[61]=v,e[62]=B,e[63]=p,e[64]=ee):ee=e[64];const re=ee;let le;if(e[65]!==a){const{onDrag:te,onDragEnd:ie,onDragStart:de,...me}=a;le=me,e[65]=a,e[66]=le}else le=e[66];const ce=v||B?"visible":"hidden";let oe;return e[67]!==_||e[68]!==t||e[69]!==L||e[70]!==Z||e[71]!==I||e[72]!==z||e[73]!==le||e[74]!==re||e[75]!==se||e[76]!==Q||e[77]!==Y||e[78]!==ce||e[79]!==K?(oe=k.jsx(pe.div,{ref:P,custom:z,variants:_,initial:ce,animate:I,transition:K,onMouseEnter:Q,onMouseLeave:Y,onFocus:se,onBlur:re,className:L,style:Z,...le,children:t}),e[67]=_,e[68]=t,e[69]=L,e[70]=Z,e[71]=I,e[72]=z,e[73]=le,e[74]=re,e[75]=se,e[76]=Q,e[77]=Y,e[78]=ce,e[79]=K,e[80]=oe):oe=e[80],oe},t1=s=>{const e=ae.c(79);let t,n,r,a,o,i,l,c,d,u,f,m,g,x,y,w;e[0]!==s?({children:t,trigger:o,delay:l,duration:c,easing:d,disabled:u,intensity:f,bounceCount:m,startScale:g,variants:w,transition:y,className:x,style:i,onAnimationStart:r,onAnimationComplete:n,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=m,e[13]=g,e[14]=x,e[15]=y,e[16]=w):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11],m=e[12],g=e[13],x=e[14],y=e[15],w=e[16]);const h=o===void 0?"inView":o,p=l===void 0?0:l,b=c===void 0?.8:c,S=u===void 0?!1:u,C=f===void 0?"medium":f,v=m===void 0?1:m,T=g===void 0?.3:g,A=x===void 0?"":x;let E;e[17]!==i?(E=i===void 0?{}:i,e[17]=i,e[18]=E):E=e[18];const R=E,L=j.useRef(null),D=Ct();let V;e[19]===Symbol.for("react.memo_cache_sentinel")?(V={once:!0,margin:"0px 0px -10% 0px"},e[19]=V):V=e[19];const P=st(L,V),I=kt(),M=j.useRef(0),N=w||Hg;let B;e[20]!==v||e[21]!==C||e[22]!==T?(B={intensity:C,bounceCount:v,startScale:T},e[20]=v,e[21]=C,e[22]=T,e[23]=B):B=e[23];const $=B;let _,O;e[24]!==D||e[25]!==S||e[26]!==b||e[27]!==P||e[28]!==n||e[29]!==r||e[30]!==I||e[31]!==h?(_=()=>{if(S||I){D.set("visible");return}(async()=>{try{M.current=performance.now(),L.current&&St(L.current);e:switch(h){case"immediate":{Ve({onStart:r},"start",$e(M.current,b)),await D.start("visible");break e}case"inView":{P&&(Ve({onStart:r},"start",$e(M.current,b)),await D.start("visible"));break e}case"manual":break e;default:await D.start("visible")}L.current&&Tt(L.current),Ve({onComplete:n},"complete",$e(M.current,b))}catch(te){const ie=te;console.warn("Error in BounceContainer animation:",ie),Ve({onError:console.error},"error",ie)}})()},O=[P,h,D,S,I,b,r,n],e[24]=D,e[25]=S,e[26]=b,e[27]=P,e[28]=n,e[29]=r,e[30]=I,e[31]=h,e[32]=_,e[33]=O):(_=e[32],O=e[33]),j.useEffect(_,O);let z;e[34]===Symbol.for("react.memo_cache_sentinel")?(z={low:{stiffness:200,damping:15,bounce:.2},medium:{stiffness:300,damping:12,bounce:.4},high:{stiffness:400,damping:8,bounce:.6}},e[34]=z):z=e[34];const F=z;let W;e[35]!==p||e[36]!==b||e[37]!==C||e[38]!==y?(W=y||{type:"spring",...F[C],delay:p,duration:b},e[35]=p,e[36]=b,e[37]=C,e[38]=y,e[39]=W):W=e[39];const H=W;let K;e[40]===Symbol.for("react.memo_cache_sentinel")?(K=Mt(),e[40]=K):K=e[40];const G=K;let X;e[41]!==R?(X={...G,...R},e[41]=R,e[42]=X):X=e[42];const U=X;let Z;e[43]!==D||e[44]!==S||e[45]!==I||e[46]!==h?(Z=()=>{h==="hover"&&!S&&!I&&D.start("visible")},e[43]=D,e[44]=S,e[45]=I,e[46]=h,e[47]=Z):Z=e[47];const q=Z;let Q;e[48]!==D||e[49]!==S||e[50]!==I||e[51]!==h?(Q=()=>{h==="hover"&&!S&&!I&&D.start("hidden")},e[48]=D,e[49]=S,e[50]=I,e[51]=h,e[52]=Q):Q=e[52];const J=Q;let Y;e[53]!==D||e[54]!==S||e[55]!==I||e[56]!==h?(Y=()=>{h==="focus"&&!S&&!I&&D.start("visible")},e[53]=D,e[54]=S,e[55]=I,e[56]=h,e[57]=Y):Y=e[57];const ne=Y;let se;e[58]!==D||e[59]!==S||e[60]!==I||e[61]!==h?(se=()=>{h==="focus"&&!S&&!I&&D.start("hidden")},e[58]=D,e[59]=S,e[60]=I,e[61]=h,e[62]=se):se=e[62];const ee=se;let re;if(e[63]!==a){const{onDrag:oe,onDragEnd:te,onDragStart:ie,...de}=a;re=de,e[63]=a,e[64]=re}else re=e[64];const le=S||I?"visible":"hidden";let ce;return e[65]!==N||e[66]!==t||e[67]!==A||e[68]!==U||e[69]!==D||e[70]!==$||e[71]!==re||e[72]!==ee||e[73]!==ne||e[74]!==q||e[75]!==J||e[76]!==le||e[77]!==H?(ce=k.jsx(pe.div,{ref:L,custom:$,variants:N,initial:le,animate:D,transition:H,onMouseEnter:q,onMouseLeave:J,onFocus:ne,onBlur:ee,className:A,style:U,...re,children:t}),e[65]=N,e[66]=t,e[67]=A,e[68]=U,e[69]=D,e[70]=$,e[71]=re,e[72]=ee,e[73]=ne,e[74]=q,e[75]=J,e[76]=le,e[77]=H,e[78]=ce):ce=e[78],ce},s1=s=>{const e=ae.c(79);let t,n,r,a,o,i,l,c,d,u,f,m,g,x,y,w;e[0]!==s?({children:t,trigger:o,delay:l,duration:c,easing:d,disabled:u,direction:f,perspective:m,backfaceVisible:g,variants:w,transition:y,className:x,style:i,onAnimationStart:r,onAnimationComplete:n,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=m,e[13]=g,e[14]=x,e[15]=y,e[16]=w):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11],m=e[12],g=e[13],x=e[14],y=e[15],w=e[16]);const h=o===void 0?"inView":o,p=l===void 0?0:l,b=c===void 0?.8:c,S=d===void 0?"easeOut":d,C=u===void 0?!1:u,v=f===void 0?"horizontal":f,T=m===void 0?1e3:m,A=g===void 0?!1:g,E=x===void 0?"":x;let R;e[17]!==i?(R=i===void 0?{}:i,e[17]=i,e[18]=R):R=e[18];const L=R,D=j.useRef(null),V=Ct();let P;e[19]===Symbol.for("react.memo_cache_sentinel")?(P={once:!0,margin:"0px 0px -10% 0px"},e[19]=P):P=e[19];const I=st(D,P),M=kt(),N=j.useRef(0),B=w||Kg;let $;e[20]!==A||e[21]!==v||e[22]!==T?($={direction:v,perspective:T,backfaceVisible:A},e[20]=A,e[21]=v,e[22]=T,e[23]=$):$=e[23];const _=$;let O,z;e[24]!==V||e[25]!==C||e[26]!==b||e[27]!==I||e[28]!==n||e[29]!==r||e[30]!==M||e[31]!==h?(O=()=>{if(C||M){V.set("visible");return}(async()=>{try{N.current=performance.now(),D.current&&St(D.current);e:switch(h){case"immediate":{Ve({onStart:r},"start",$e(N.current,b)),await V.start("visible");break e}case"inView":{I&&(Ve({onStart:r},"start",$e(N.current,b)),await V.start("visible"));break e}case"manual":break e;default:await V.start("visible")}D.current&&Tt(D.current),Ve({onComplete:n},"complete",$e(N.current,b))}catch(te){const ie=te;console.warn("Error in FlipContainer animation:",ie),Ve({onError:console.error},"error",ie)}})()},z=[I,h,V,C,M,b,r,n],e[24]=V,e[25]=C,e[26]=b,e[27]=I,e[28]=n,e[29]=r,e[30]=M,e[31]=h,e[32]=O,e[33]=z):(O=e[32],z=e[33]),j.useEffect(O,z);let F;e[34]!==p||e[35]!==b||e[36]!==S||e[37]!==y?(F=y||{...Ft(S,b),delay:p},e[34]=p,e[35]=b,e[36]=S,e[37]=y,e[38]=F):F=e[38];const W=F;let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=Mt(),e[39]=H):H=e[39];const K=H,G=`${T}px`;let X;e[40]!==L||e[41]!==G?(X={perspective:G,transformStyle:"preserve-3d",...K,...L},e[40]=L,e[41]=G,e[42]=X):X=e[42];const U=X;let Z;e[43]!==V||e[44]!==C||e[45]!==M||e[46]!==h?(Z=()=>{h==="hover"&&!C&&!M&&V.start("visible")},e[43]=V,e[44]=C,e[45]=M,e[46]=h,e[47]=Z):Z=e[47];const q=Z;let Q;e[48]!==V||e[49]!==C||e[50]!==M||e[51]!==h?(Q=()=>{h==="hover"&&!C&&!M&&V.start("hidden")},e[48]=V,e[49]=C,e[50]=M,e[51]=h,e[52]=Q):Q=e[52];const J=Q;let Y;e[53]!==V||e[54]!==C||e[55]!==M||e[56]!==h?(Y=()=>{h==="focus"&&!C&&!M&&V.start("visible")},e[53]=V,e[54]=C,e[55]=M,e[56]=h,e[57]=Y):Y=e[57];const ne=Y;let se;e[58]!==V||e[59]!==C||e[60]!==M||e[61]!==h?(se=()=>{h==="focus"&&!C&&!M&&V.start("hidden")},e[58]=V,e[59]=C,e[60]=M,e[61]=h,e[62]=se):se=e[62];const ee=se;let re;if(e[63]!==a){const{onDrag:oe,onDragEnd:te,onDragStart:ie,...de}=a;re=de,e[63]=a,e[64]=re}else re=e[64];const le=C||M?"visible":"hidden";let ce;return e[65]!==B||e[66]!==t||e[67]!==E||e[68]!==U||e[69]!==V||e[70]!==_||e[71]!==re||e[72]!==ee||e[73]!==ne||e[74]!==q||e[75]!==J||e[76]!==le||e[77]!==W?(ce=k.jsx(pe.div,{ref:D,custom:_,variants:B,initial:le,animate:V,transition:W,onMouseEnter:q,onMouseLeave:J,onFocus:ne,onBlur:ee,className:E,style:U,...re,children:t}),e[65]=B,e[66]=t,e[67]=E,e[68]=U,e[69]=V,e[70]=_,e[71]=re,e[72]=ee,e[73]=ne,e[74]=q,e[75]=J,e[76]=le,e[77]=W,e[78]=ce):ce=e[78],ce},n1=s=>{const e=ae.c(82);let t,n,r,a,o,i,l,c,d,u,f,m,g,x,y,w;e[0]!==s?({children:t,trigger:o,delay:l,duration:c,easing:d,disabled:u,staggerDelay:f,staggerDirection:m,childSelector:g,variants:w,transition:y,className:x,style:i,onAnimationStart:r,onAnimationComplete:n,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=m,e[13]=g,e[14]=x,e[15]=y,e[16]=w):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11],m=e[12],g=e[13],x=e[14],y=e[15],w=e[16]);const h=o===void 0?"inView":o,p=l===void 0?0:l,b=c===void 0?.6:c,S=d===void 0?"easeOut":d,C=u===void 0?!1:u,v=f===void 0?.1:f,T=m===void 0?"normal":m,A=g===void 0?"> *":g,E=x===void 0?"":x;let R;e[17]!==i?(R=i===void 0?{}:i,e[17]=i,e[18]=R):R=e[18];const L=R,D=j.useRef(null),V=Ct();let P;e[19]===Symbol.for("react.memo_cache_sentinel")?(P={once:!0,margin:"0px 0px -10% 0px"},e[19]=P):P=e[19];const I=st(D,P),M=kt(),N=j.useRef(0),B=w||Xg;let $;e[20]!==v||e[21]!==T?($={staggerDelay:v,staggerDirection:T},e[20]=v,e[21]=T,e[22]=$):$=e[22];const _=$;let O,z;e[23]!==A||e[24]!==V||e[25]!==C||e[26]!==b||e[27]!==I||e[28]!==n||e[29]!==r||e[30]!==M||e[31]!==h?(O=()=>{if(C||M){V.set("visible");return}(async()=>{try{N.current=performance.now(),D.current&&(St(D.current),D.current.querySelectorAll(Bl(A)).forEach(r1));e:switch(h){case"immediate":{Ve({onStart:r},"start",$e(N.current,b)),await V.start("visible");break e}case"inView":{I&&(Ve({onStart:r},"start",$e(N.current,b)),await V.start("visible"));break e}case"manual":break e;default:await V.start("visible")}D.current&&(Tt(D.current),D.current.querySelectorAll(Bl(A)).forEach(a1)),Ve({onComplete:n},"complete",$e(N.current,b))}catch(de){const me=de;console.warn("Error in StaggerContainer animation:",me),Ve({onError:console.error},"error",me)}})()},z=[I,h,V,C,M,b,r,n,A],e[23]=A,e[24]=V,e[25]=C,e[26]=b,e[27]=I,e[28]=n,e[29]=r,e[30]=M,e[31]=h,e[32]=O,e[33]=z):(O=e[32],z=e[33]),j.useEffect(O,z);let F;e[34]!==p||e[35]!==b||e[36]!==S||e[37]!==y?(F=y||{...Ft(S,b),delay:p},e[34]=p,e[35]=b,e[36]=S,e[37]=y,e[38]=F):F=e[38];const W=F;let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=Mt(),e[39]=H):H=e[39];const K=H;let G;e[40]!==L?(G={...K,...L},e[40]=L,e[41]=G):G=e[41];const X=G;let U;e[42]!==V||e[43]!==C||e[44]!==M||e[45]!==h?(U=()=>{h==="hover"&&!C&&!M&&V.start("visible")},e[42]=V,e[43]=C,e[44]=M,e[45]=h,e[46]=U):U=e[46];const Z=U;let q;e[47]!==V||e[48]!==C||e[49]!==M||e[50]!==h?(q=()=>{h==="hover"&&!C&&!M&&V.start("hidden")},e[47]=V,e[48]=C,e[49]=M,e[50]=h,e[51]=q):q=e[51];const Q=q;let J;e[52]!==V||e[53]!==C||e[54]!==M||e[55]!==h?(J=()=>{h==="focus"&&!C&&!M&&V.start("visible")},e[52]=V,e[53]=C,e[54]=M,e[55]=h,e[56]=J):J=e[56];const Y=J;let ne;e[57]!==V||e[58]!==C||e[59]!==M||e[60]!==h?(ne=()=>{h==="focus"&&!C&&!M&&V.start("hidden")},e[57]=V,e[58]=C,e[59]=M,e[60]=h,e[61]=ne):ne=e[61];const se=ne;let ee;e[62]!==t?(ee=()=>j.Children.map(t,o1),e[62]=t,e[63]=ee):ee=e[63];const re=ee;let le;if(e[64]!==a){const{onDrag:ie,onDragEnd:de,onDragStart:me,...ye}=a;le=ye,e[64]=a,e[65]=le}else le=e[65];const ce=C||M?"visible":"hidden";let oe;e[66]!==re?(oe=re(),e[66]=re,e[67]=oe):oe=e[67];let te;return e[68]!==E||e[69]!==X||e[70]!==B||e[71]!==V||e[72]!==_||e[73]!==le||e[74]!==se||e[75]!==Y||e[76]!==Z||e[77]!==Q||e[78]!==ce||e[79]!==oe||e[80]!==W?(te=k.jsx(pe.div,{ref:D,custom:_,variants:B,initial:ce,animate:V,transition:W,onMouseEnter:Z,onMouseLeave:Q,onFocus:Y,onBlur:se,className:E,style:X,...le,children:oe}),e[68]=E,e[69]=X,e[70]=B,e[71]=V,e[72]=_,e[73]=le,e[74]=se,e[75]=Y,e[76]=Z,e[77]=Q,e[78]=ce,e[79]=oe,e[80]=W,e[81]=te):te=e[81],te};function r1(s){s instanceof HTMLElement&&St(s)}function a1(s){s instanceof HTMLElement&&Tt(s)}function o1(s,e){return j.isValidElement(s)?k.jsx(pe.div,{variants:Yg,style:{display:"contents"},children:s},e):s}const i1=s=>{const e=ae.c(86);let t,n,r,a,o,i,l,c,d,u,f,m,g,x,y,w;e[0]!==s?({children:t,trigger:o,delay:l,duration:c,easing:d,disabled:u,morphStates:f,morphInterval:m,autoMorph:g,variants:w,transition:y,className:x,style:i,onAnimationStart:r,onAnimationComplete:n,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=m,e[13]=g,e[14]=x,e[15]=y,e[16]=w):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11],m=e[12],g=e[13],x=e[14],y=e[15],w=e[16]);const h=o===void 0?"inView":o,p=l===void 0?0:l,b=c===void 0?1:c,S=d===void 0?"easeInOut":d,C=u===void 0?!1:u;let v;e[17]!==f?(v=f===void 0?[{width:"200px",height:"200px",borderRadius:"0px",backgroundColor:"#3b82f6"},{width:"300px",height:"150px",borderRadius:"20px",backgroundColor:"#ef4444"},{width:"250px",height:"250px",borderRadius:"50%",backgroundColor:"#10b981"}]:f,e[17]=f,e[18]=v):v=e[18];const T=v,A=m===void 0?3e3:m,E=g===void 0?!0:g,R=x===void 0?"":x;let L;e[19]!==i?(L=i===void 0?{}:i,e[19]=i,e[20]=L):L=e[20];const D=L,V=j.useRef(null),P=Ct();let I;e[21]===Symbol.for("react.memo_cache_sentinel")?(I={once:!0,margin:"0px 0px -10% 0px"},e[21]=I):I=e[21];const M=st(V,I),N=kt(),[B,$]=j.useState(0),_=j.useRef(0),O=j.useRef(void 0);let z;e[22]!==T||e[23]!==w?(z=w||qg(T),e[22]=T,e[23]=w,e[24]=z):z=e[24];const F=z;let W;e[25]!==P||e[26]!==C||e[27]!==b||e[28]!==M||e[29]!==n||e[30]!==r||e[31]!==N||e[32]!==h?(W=[M,h,P,C,N,b,r,n],e[25]=P,e[26]=C,e[27]=b,e[28]=M,e[29]=n,e[30]=r,e[31]=N,e[32]=h,e[33]=W):W=e[33],j.useEffect(()=>{if(C||N){P.set("initial");return}return(async()=>{try{_.current=performance.now(),V.current&&St(V.current);e:switch(h){case"immediate":{Ve({onStart:r},"start",$e(_.current,b)),await P.start("initial"),H();break e}case"inView":{M&&(Ve({onStart:r},"start",$e(_.current,b)),await P.start("initial"),H());break e}case"manual":{await P.start("initial");break e}default:await P.start("initial"),H()}Ve({onComplete:n},"complete",$e(_.current,b))}catch(we){const xe=we;console.warn("Error in MorphingContainer animation:",xe),Ve({onError:console.error},"error",xe)}})(),()=>{O.current&&clearInterval(O.current)}},W);const H=()=>{!E||T.length<=1||(O.current=window.setInterval(()=>{$(ve=>{const we=(ve+1)%T.length;return P.start(`morph${we}`),we})},A))};let K;e[34]!==P||e[35]!==T?(K=ve=>{ve>=0&&ve<T.length&&($(ve),P.start(`morph${ve}`))},e[34]=P,e[35]=T,e[36]=K):K=e[36];const G=K;let X;e[37]!==p||e[38]!==b||e[39]!==S||e[40]!==y?(X=y||{...Ft(S,b),delay:p},e[37]=p,e[38]=b,e[39]=S,e[40]=y,e[41]=X):X=e[41];const U=X;let Z;e[42]===Symbol.for("react.memo_cache_sentinel")?(Z=Mt(),e[42]=Z):Z=e[42];const q=Z;let Q;e[43]!==D?(Q={display:"flex",alignItems:"center",justifyContent:"center",...q,...D},e[43]=D,e[44]=Q):Q=e[44];const J=Q;let Y;e[45]!==B||e[46]!==C||e[47]!==T||e[48]!==G||e[49]!==N||e[50]!==h?(Y=()=>{if(h==="hover"&&!C&&!N){const ve=(B+1)%T.length;G(ve)}},e[45]=B,e[46]=C,e[47]=T,e[48]=G,e[49]=N,e[50]=h,e[51]=Y):Y=e[51];const ne=Y;let se;e[52]!==C||e[53]!==G||e[54]!==N||e[55]!==h?(se=()=>{h==="hover"&&!C&&!N&&G(0)},e[52]=C,e[53]=G,e[54]=N,e[55]=h,e[56]=se):se=e[56];const ee=se;let re;e[57]!==B||e[58]!==C||e[59]!==T||e[60]!==G||e[61]!==N||e[62]!==h?(re=()=>{if(h==="focus"&&!C&&!N){const ve=(B+1)%T.length;G(ve)}},e[57]=B,e[58]=C,e[59]=T,e[60]=G,e[61]=N,e[62]=h,e[63]=re):re=e[63];const le=re;let ce;e[64]!==C||e[65]!==G||e[66]!==N||e[67]!==h?(ce=()=>{h==="focus"&&!C&&!N&&G(0)},e[64]=C,e[65]=G,e[66]=N,e[67]=h,e[68]=ce):ce=e[68];const oe=ce;let te,ie;e[69]===Symbol.for("react.memo_cache_sentinel")?(te=()=>()=>{V.current&&Tt(V.current),O.current&&clearInterval(O.current)},ie=[],e[69]=te,e[70]=ie):(te=e[69],ie=e[70]),j.useEffect(te,ie);let de;if(e[71]!==a){const{onDrag:ve,onDragEnd:we,onDragStart:xe,...ue}=a;de=ue,e[71]=a,e[72]=de}else de=e[72];const me="initial";let ye;return e[73]!==F||e[74]!==t||e[75]!==R||e[76]!==J||e[77]!==P||e[78]!==de||e[79]!==oe||e[80]!==le||e[81]!==ne||e[82]!==ee||e[83]!==me||e[84]!==U?(ye=k.jsx(pe.div,{ref:V,variants:F,initial:me,animate:P,transition:U,onMouseEnter:ne,onMouseLeave:ee,onFocus:le,onBlur:oe,className:R,style:J,...de,children:t}),e[73]=F,e[74]=t,e[75]=R,e[76]=J,e[77]=P,e[78]=de,e[79]=oe,e[80]=le,e[81]=ne,e[82]=ee,e[83]=me,e[84]=U,e[85]=ye):ye=e[85],ye},l1=s=>{const e=ae.c(17),[t,n]=j.useState(0),r=Ct();let a;e[0]!==r||e[1]!==t||e[2]!==s?(a=()=>{const f=(t+1)%s.length;n(f),r.start(`morph${f}`)},e[0]=r,e[1]=t,e[2]=s,e[3]=a):a=e[3];const o=a;let i;e[4]!==r||e[5]!==t||e[6]!==s?(i=()=>{const f=t===0?s.length-1:t-1;n(f),r.start(`morph${f}`)},e[4]=r,e[5]=t,e[6]=s,e[7]=i):i=e[7];const l=i;let c;e[8]!==r||e[9]!==s?(c=f=>{f>=0&&f<s.length&&(n(f),r.start(`morph${f}`))},e[8]=r,e[9]=s,e[10]=c):c=e[10];const d=c;let u;return e[11]!==r||e[12]!==t||e[13]!==d||e[14]!==o||e[15]!==l?(u={currentIndex:t,controls:r,morphToNext:o,morphToPrevious:l,morphToIndex:d},e[11]=r,e[12]=t,e[13]=d,e[14]=o,e[15]=l,e[16]=u):u=e[16],u},c1=s=>{const e=ae.c(98);let t,n,r,a,o,i,l,c,d,u,f,m,g,x,y,w,h;e[0]!==s?({children:t,trigger:o,delay:c,duration:d,easing:u,disabled:f,speed:m,direction:g,offset:x,enableOnMobile:y,variants:h,transition:w,className:i,style:l,onAnimationStart:r,onAnimationComplete:n,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=m,e[13]=g,e[14]=x,e[15]=y,e[16]=w,e[17]=h):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11],m=e[12],g=e[13],x=e[14],y=e[15],w=e[16],h=e[17]);const p=o===void 0?"inView":o,b=c===void 0?0:c,S=d===void 0?1:d,C=u===void 0?"easeInOut":u,v=f===void 0?!1:f,T=m===void 0?.5:m,A=g===void 0?"vertical":g,E=y===void 0?!1:y,R=i===void 0?"":i;let L;e[18]!==l?(L=l===void 0?{}:l,e[18]=l,e[19]=L):L=e[19];const D=L,V=j.useRef(null),P=Ct();let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I={once:!0,margin:"0px 0px -10% 0px"},e[20]=I):I=e[20];const M=st(V,I),N=kt(),[B,$]=j.useState(!1),_=j.useRef(0),{scrollY:O}=$d(),z=h||Zg;let F,W;e[21]===Symbol.for("react.memo_cache_sentinel")?(F=()=>{const We=()=>{$(window.innerWidth<=768)};return We(),window.addEventListener("resize",We),()=>{window.removeEventListener("resize",We)}},W=[],e[21]=F,e[22]=W):(F=e[21],W=e[22]),j.useEffect(F,W);let H;e[23]===Symbol.for("react.memo_cache_sentinel")?(H=[0,1e3],e[23]=H):H=e[23];const K=-T*100;let G;e[24]!==K?(G=[0,K],e[24]=K,e[25]=G):G=e[25];const X=ps(O,H,G);let U;e[26]===Symbol.for("react.memo_cache_sentinel")?(U=[0,1e3],e[26]=U):U=e[26];const Z=-T*100;let q;e[27]!==Z?(q=[0,Z],e[27]=Z,e[28]=q):q=e[28];const Q=ps(O,U,q);let J;e[29]===Symbol.for("react.memo_cache_sentinel")?(J={stiffness:100,damping:30,mass:1},e[29]=J):J=e[29];const Y=Zn(X,J);let ne;e[30]===Symbol.for("react.memo_cache_sentinel")?(ne={stiffness:100,damping:30,mass:1},e[30]=ne):ne=e[30];const se=Zn(Q,ne),ee=!v&&!N&&(E||!B);let re,le;e[31]!==P||e[32]!==v||e[33]!==S||e[34]!==E||e[35]!==M||e[36]!==B||e[37]!==n||e[38]!==r||e[39]!==N||e[40]!==p?(re=()=>{if(v||N||B&&!E){P.set("visible");return}(async()=>{try{_.current=performance.now(),V.current&&St(V.current);e:switch(p){case"immediate":{Ve({onStart:r},"start",$e(_.current,S)),await P.start("visible");break e}case"inView":{M&&(Ve({onStart:r},"start",$e(_.current,S)),await P.start("visible"));break e}case"manual":{await P.start("hidden");break e}default:await P.start("visible")}Ve({onComplete:n},"complete",$e(_.current,S))}catch(Xe){const Ze=Xe;console.warn("Error in ParallaxContainer animation:",Ze),Ve({onError:console.error},"error",Ze)}})()},le=[M,p,P,v,N,B,E,S,r,n],e[31]=P,e[32]=v,e[33]=S,e[34]=E,e[35]=M,e[36]=B,e[37]=n,e[38]=r,e[39]=N,e[40]=p,e[41]=re,e[42]=le):(re=e[41],le=e[42]),j.useEffect(re,le);let ce;e[43]!==b||e[44]!==S||e[45]!==C||e[46]!==w?(ce=w||{...Ft(C,S),delay:b},e[43]=b,e[44]=S,e[45]=C,e[46]=w,e[47]=ce):ce=e[47];const oe=ce;let te;e[48]===Symbol.for("react.memo_cache_sentinel")?(te=Mt(),e[48]=te):te=e[48];const ie=te;let de;e[49]!==D?(de={...ie,...D},e[49]=D,e[50]=de):de=e[50];const me=de;let ye;e[51]!==A||e[52]!==ee||e[53]!==se||e[54]!==Y?(ye=()=>{if(!ee)return{};switch(A){case"horizontal":return{x:se};case"both":return{x:se,y:Y};case"vertical":default:return{y:Y}}},e[51]=A,e[52]=ee,e[53]=se,e[54]=Y,e[55]=ye):ye=e[55];const ve=ye;let we;e[56]!==P||e[57]!==v||e[58]!==N||e[59]!==p?(we=()=>{p==="hover"&&!v&&!N&&P.start("visible")},e[56]=P,e[57]=v,e[58]=N,e[59]=p,e[60]=we):we=e[60];const xe=we;let ue;e[61]!==P||e[62]!==v||e[63]!==N||e[64]!==p?(ue=()=>{p==="hover"&&!v&&!N&&P.start("hidden")},e[61]=P,e[62]=v,e[63]=N,e[64]=p,e[65]=ue):ue=e[65];const he=ue;let fe;e[66]!==P||e[67]!==v||e[68]!==N||e[69]!==p?(fe=()=>{p==="focus"&&!v&&!N&&P.start("visible")},e[66]=P,e[67]=v,e[68]=N,e[69]=p,e[70]=fe):fe=e[70];const Ce=fe;let Te;e[71]!==P||e[72]!==v||e[73]!==N||e[74]!==p?(Te=()=>{p==="focus"&&!v&&!N&&P.start("hidden")},e[71]=P,e[72]=v,e[73]=N,e[74]=p,e[75]=Te):Te=e[75];const Ne=Te;let Ae,Oe;e[76]===Symbol.for("react.memo_cache_sentinel")?(Ae=()=>()=>{V.current&&Tt(V.current)},Oe=[],e[76]=Ae,e[77]=Oe):(Ae=e[76],Oe=e[77]),j.useEffect(Ae,Oe);let Ie;if(e[78]!==a){const{onDrag:We,onDragEnd:Xe,onDragStart:Ze,...Re}=a;Ie=Re,e[78]=a,e[79]=Ie}else Ie=e[79];const De=v||N?"visible":"hidden";let Be;e[80]!==ve?(Be=ve(),e[80]=ve,e[81]=Be):Be=e[81];let Ee;e[82]!==me||e[83]!==Be?(Ee={...me,...Be},e[82]=me,e[83]=Be,e[84]=Ee):Ee=e[84];let ze;return e[85]!==z||e[86]!==t||e[87]!==R||e[88]!==P||e[89]!==Ie||e[90]!==Ne||e[91]!==Ce||e[92]!==xe||e[93]!==he||e[94]!==De||e[95]!==Ee||e[96]!==oe?(ze=k.jsx(pe.div,{ref:V,variants:z,initial:De,animate:P,transition:oe,style:Ee,onMouseEnter:xe,onMouseLeave:he,onFocus:Ce,onBlur:Ne,className:R,...Ie,children:t}),e[85]=z,e[86]=t,e[87]=R,e[88]=P,e[89]=Ie,e[90]=Ne,e[91]=Ce,e[92]=xe,e[93]=he,e[94]=De,e[95]=Ee,e[96]=oe,e[97]=ze):ze=e[97],ze},d1=s=>{const e=ae.c(26),{scrollY:t}=$d(),[n,r]=j.useState(!1),a=kt();let o;e[0]!==s?(o=s||{},e[0]=s,e[1]=o):o=e[1];const{speed:i,direction:l,enableOnMobile:c}=o,d=i===void 0?.5:i,u=l===void 0?"vertical":l,f=c===void 0?!1:c;let m,g;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{const I=()=>{r(window.innerWidth<=768)};return I(),window.addEventListener("resize",I),()=>{window.removeEventListener("resize",I)}},g=[],e[2]=m,e[3]=g):(m=e[2],g=e[3]),j.useEffect(m,g);const x=!a&&(f||!n);let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=[0,1e3],e[4]=y):y=e[4];const w=-d*100;let h;e[5]!==w?(h=[0,w],e[5]=w,e[6]=h):h=e[6];const p=ps(t,y,h);let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b=[0,1e3],e[7]=b):b=e[7];const S=-d*100;let C;e[8]!==S?(C=[0,S],e[8]=S,e[9]=C):C=e[9];const v=ps(t,b,C);let T;e[10]===Symbol.for("react.memo_cache_sentinel")?(T={stiffness:100,damping:30,mass:1},e[10]=T):T=e[10];const A=Zn(p,T);let E;e[11]===Symbol.for("react.memo_cache_sentinel")?(E={stiffness:100,damping:30,mass:1},e[11]=E):E=e[11];const R=Zn(v,E);let L;e[12]!==u||e[13]!==x||e[14]!==R||e[15]!==A?(L=()=>{if(!x)return{};switch(u){case"horizontal":return{x:R};case"both":return{x:R,y:A};case"vertical":default:return{y:A}}},e[12]=u,e[13]=x,e[14]=R,e[15]=A,e[16]=L):L=e[16];const D=L;let V;e[17]!==D?(V=D(),e[17]=D,e[18]=V):V=e[18];let P;return e[19]!==x||e[20]!==n||e[21]!==t||e[22]!==R||e[23]!==A||e[24]!==V?(P={isActive:x,isMobile:n,scrollY:t,transformValue:V,smoothY:A,smoothX:R},e[19]=x,e[20]=n,e[21]=t,e[22]=R,e[23]=A,e[24]=V,e[25]=P):P=e[25],P},xs={smooth:{type:"tween",duration:.3,ease:"easeOut"},bounce:{type:"spring",damping:10,stiffness:400,mass:1}},u1={initial:(s=0)=>({opacity:s}),animate:(s=1)=>({opacity:s}),exit:{opacity:0}},f1={initial:({direction:s="up",distance:e=50})=>{switch(s){case"up":return{y:e,opacity:0};case"down":return{y:-e,opacity:0};case"left":return{x:e,opacity:0};case"right":return{x:-e,opacity:0};default:return{y:e,opacity:0}}},animate:{x:0,y:0,opacity:1},exit:({direction:s="up",distance:e=50})=>{switch(s){case"up":return{y:-e,opacity:0};case"down":return{y:e,opacity:0};case"left":return{x:-e,opacity:0};case"right":return{x:e,opacity:0};default:return{y:-e,opacity:0}}}},m1={initial:(s=0)=>({scale:s,opacity:0}),animate:(s=1)=>({scale:s,opacity:1}),exit:{scale:0,opacity:0},hover:{scale:1.05},tap:{scale:.95}},h1={initial:({direction:s="clockwise",degrees:e=180})=>({rotate:s==="clockwise"?-e:e,opacity:0}),animate:{rotate:0,opacity:1},exit:({direction:s="clockwise",degrees:e=180})=>({rotate:s==="clockwise"?e:-e,opacity:0})},p1={initial:{y:0,opacity:0},animate:({amplitude:s=20,frequency:e=2})=>({y:[0,-s,0,-s*.5,0],opacity:1,transition:{duration:.6,times:[0,.2,.4,.6,1],repeat:e-1}}),exit:{y:0,opacity:0}},g1=s=>{const e=ae.c(25),{children:t,className:n,delay:r,duration:a,disabled:o,trigger:i,once:l,threshold:c,from:d,to:u,style:f}=s,m=n===void 0?"":n,g=r===void 0?0:r,x=a===void 0?.3:a,y=o===void 0?!1:o,w=i===void 0?"inView":i,h=l===void 0?!0:l,p=c===void 0?.1:c,b=d===void 0?0:d,S=u===void 0?1:u,C=j.useRef(null);let v;e[0]!==h||e[1]!==p?(v={once:h,amount:p},e[0]=h,e[1]=p,e[2]=v):v=e[2];const T=st(C,v);if(y){let N;return e[3]!==t||e[4]!==m||e[5]!==f?(N=k.jsx("div",{className:m,style:f,children:t}),e[3]=t,e[4]=m,e[5]=f,e[6]=N):N=e[6],N}let A;e[7]!==T||e[8]!==w?(A=()=>{switch(w){case"inView":return T?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},e[7]=T,e[8]=w,e[9]=A):A=e[9];const E=A;let R;e[10]!==g||e[11]!==x?(R={...xs.smooth,duration:x,delay:g},e[10]=g,e[11]=x,e[12]=R):R=e[12];const L=R,D=E();let V;e[13]!==b||e[14]!==S?(V={from:b,to:S},e[13]=b,e[14]=S,e[15]=V):V=e[15];const P=w==="hover"?"animate":void 0,I=w==="tap"?"animate":void 0;let M;return e[16]!==t||e[17]!==m||e[18]!==f||e[19]!==D||e[20]!==V||e[21]!==P||e[22]!==I||e[23]!==L?(M=k.jsx(pe.div,{ref:C,className:m,style:f,variants:u1,initial:"initial",animate:D,exit:"exit",custom:V,transition:L,whileHover:P,whileTap:I,children:t}),e[16]=t,e[17]=m,e[18]=f,e[19]=D,e[20]=V,e[21]=P,e[22]=I,e[23]=L,e[24]=M):M=e[24],M},b1=s=>{const e=ae.c(25),{children:t,className:n,delay:r,duration:a,disabled:o,trigger:i,once:l,threshold:c,direction:d,distance:u,style:f}=s,m=n===void 0?"":n,g=r===void 0?0:r,x=a===void 0?.3:a,y=o===void 0?!1:o,w=i===void 0?"inView":i,h=l===void 0?!0:l,p=c===void 0?.1:c,b=d===void 0?"up":d,S=u===void 0?50:u,C=j.useRef(null);let v;e[0]!==h||e[1]!==p?(v={once:h,amount:p},e[0]=h,e[1]=p,e[2]=v):v=e[2];const T=st(C,v);if(y){let B;return e[3]!==t||e[4]!==m||e[5]!==f?(B=k.jsx("div",{className:m,style:f,children:t}),e[3]=t,e[4]=m,e[5]=f,e[6]=B):B=e[6],B}let A;e[7]!==T||e[8]!==w?(A=()=>{switch(w){case"inView":return T?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},e[7]=T,e[8]=w,e[9]=A):A=e[9];const E=A;let R;e[10]!==g||e[11]!==x?(R={...xs.smooth,duration:x,delay:g},e[10]=g,e[11]=x,e[12]=R):R=e[12];const L=R;let D;e[13]!==b||e[14]!==S?(D={direction:b,distance:S},e[13]=b,e[14]=S,e[15]=D):D=e[15];const V=D,P=E(),I=w==="hover"?"animate":void 0,M=w==="tap"?"animate":void 0;let N;return e[16]!==t||e[17]!==m||e[18]!==V||e[19]!==f||e[20]!==P||e[21]!==I||e[22]!==M||e[23]!==L?(N=k.jsx(pe.div,{ref:C,className:m,style:f,variants:f1,initial:"initial",animate:P,exit:"exit",custom:V,transition:L,whileHover:I,whileTap:M,children:t}),e[16]=t,e[17]=m,e[18]=V,e[19]=f,e[20]=P,e[21]=I,e[22]=M,e[23]=L,e[24]=N):N=e[24],N},y1=s=>{const e=ae.c(28),{children:t,className:n,delay:r,duration:a,disabled:o,trigger:i,once:l,threshold:c,from:d,to:u,transformOrigin:f,style:m}=s,g=n===void 0?"":n,x=r===void 0?0:r,y=a===void 0?.3:a,w=o===void 0?!1:o,h=i===void 0?"inView":i,p=l===void 0?!0:l,b=c===void 0?.1:c,S=d===void 0?0:d,C=u===void 0?1:u,v=f===void 0?"center":f,T=j.useRef(null);let A;e[0]!==p||e[1]!==b?(A={once:p,amount:b},e[0]=p,e[1]=b,e[2]=A):A=e[2];const E=st(T,A);if(w){let z;return e[3]!==t||e[4]!==g||e[5]!==m?(z=k.jsx("div",{className:g,style:m,children:t}),e[3]=t,e[4]=g,e[5]=m,e[6]=z):z=e[6],z}let R;e[7]!==E||e[8]!==h?(R=()=>{switch(h){case"inView":return E?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},e[7]=E,e[8]=h,e[9]=R):R=e[9];const L=R;let D;e[10]!==x||e[11]!==y?(D={...xs.bounce,duration:y,delay:x},e[10]=x,e[11]=y,e[12]=D):D=e[12];const V=D;let P;e[13]!==S||e[14]!==C?(P={from:S,to:C},e[13]=S,e[14]=C,e[15]=P):P=e[15];const I=P;let M;e[16]!==m||e[17]!==v?(M={...m,transformOrigin:v},e[16]=m,e[17]=v,e[18]=M):M=e[18];const N=M,B=L(),$=h==="hover"?"hover":void 0,_=h==="tap"?"tap":void 0;let O;return e[19]!==t||e[20]!==g||e[21]!==I||e[22]!==N||e[23]!==B||e[24]!==$||e[25]!==_||e[26]!==V?(O=k.jsx(pe.div,{ref:T,className:g,style:N,variants:m1,initial:"initial",animate:B,exit:"exit",custom:I,transition:V,whileHover:$,whileTap:_,children:t}),e[19]=t,e[20]=g,e[21]=I,e[22]=N,e[23]=B,e[24]=$,e[25]=_,e[26]=V,e[27]=O):O=e[27],O},v1=s=>{const e=ae.c(28),{children:t,className:n,delay:r,duration:a,disabled:o,trigger:i,once:l,threshold:c,direction:d,degrees:u,transformOrigin:f,style:m}=s,g=n===void 0?"":n,x=r===void 0?0:r,y=a===void 0?.5:a,w=o===void 0?!1:o,h=i===void 0?"inView":i,p=l===void 0?!0:l,b=c===void 0?.1:c,S=d===void 0?"clockwise":d,C=u===void 0?180:u,v=f===void 0?"center":f,T=j.useRef(null);let A;e[0]!==p||e[1]!==b?(A={once:p,amount:b},e[0]=p,e[1]=b,e[2]=A):A=e[2];const E=st(T,A);if(w){let z;return e[3]!==t||e[4]!==g||e[5]!==m?(z=k.jsx("div",{className:g,style:m,children:t}),e[3]=t,e[4]=g,e[5]=m,e[6]=z):z=e[6],z}let R;e[7]!==E||e[8]!==h?(R=()=>{switch(h){case"inView":return E?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},e[7]=E,e[8]=h,e[9]=R):R=e[9];const L=R;let D;e[10]!==x||e[11]!==y?(D={...xs.smooth,duration:y,delay:x},e[10]=x,e[11]=y,e[12]=D):D=e[12];const V=D;let P;e[13]!==C||e[14]!==S?(P={direction:S,degrees:C},e[13]=C,e[14]=S,e[15]=P):P=e[15];const I=P;let M;e[16]!==m||e[17]!==v?(M={...m,transformOrigin:v},e[16]=m,e[17]=v,e[18]=M):M=e[18];const N=M,B=L(),$=h==="hover"?"animate":void 0,_=h==="tap"?"animate":void 0;let O;return e[19]!==t||e[20]!==g||e[21]!==I||e[22]!==N||e[23]!==B||e[24]!==$||e[25]!==_||e[26]!==V?(O=k.jsx(pe.div,{ref:T,className:g,style:N,variants:h1,initial:"initial",animate:B,exit:"exit",custom:I,transition:V,whileHover:$,whileTap:_,children:t}),e[19]=t,e[20]=g,e[21]=I,e[22]=N,e[23]=B,e[24]=$,e[25]=_,e[26]=V,e[27]=O):O=e[27],O},x1=s=>{const e=ae.c(26),{children:t,className:n,delay:r,duration:a,disabled:o,trigger:i,once:l,threshold:c,amplitude:d,frequency:u,damping:f,style:m}=s,g=n===void 0?"":n,x=r===void 0?0:r,y=a===void 0?.6:a,w=o===void 0?!1:o,h=i===void 0?"inView":i,p=l===void 0?!0:l,b=c===void 0?.1:c,S=d===void 0?20:d,C=u===void 0?1:u,v=f===void 0?.8:f,T=j.useRef(null);let A;e[0]!==p||e[1]!==b?(A={once:p,amount:b},e[0]=p,e[1]=b,e[2]=A):A=e[2];const E=st(T,A);if(w){let _;return e[3]!==t||e[4]!==g||e[5]!==m?(_=k.jsx("div",{className:g,style:m,children:t}),e[3]=t,e[4]=g,e[5]=m,e[6]=_):_=e[6],_}let R;e[7]!==E||e[8]!==h?(R=()=>{switch(h){case"inView":return E?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},e[7]=E,e[8]=h,e[9]=R):R=e[9];const L=R;let D;e[10]!==v||e[11]!==x||e[12]!==y?(D={...xs.bounce,duration:y,delay:x,damping:v},e[10]=v,e[11]=x,e[12]=y,e[13]=D):D=e[13];const V=D;let P;e[14]!==S||e[15]!==C?(P={amplitude:S,frequency:C},e[14]=S,e[15]=C,e[16]=P):P=e[16];const I=P,M=L(),N=h==="hover"?"animate":void 0,B=h==="tap"?"animate":void 0;let $;return e[17]!==t||e[18]!==g||e[19]!==I||e[20]!==m||e[21]!==M||e[22]!==N||e[23]!==B||e[24]!==V?($=k.jsx(pe.div,{ref:T,className:g,style:m,variants:p1,initial:"initial",animate:M,exit:"exit",custom:I,transition:V,whileHover:N,whileTap:B,children:t}),e[17]=t,e[18]=g,e[19]=I,e[20]=m,e[21]=M,e[22]=N,e[23]=B,e[24]=V,e[25]=$):$=e[25],$},w1=s=>{const e=ae.c(24),{children:t,className:n,staggerDelay:r,animationType:a,direction:o,duration:i,threshold:l}=s,c=n===void 0?"":n,d=r===void 0?.1:r,u=a===void 0?"fadeIn":a,f=o===void 0?"up":o,m=i===void 0?.3:i,g=l===void 0?.1:l,x=j.useRef(null);let y;e[0]!==g?(y={once:!0,amount:g},e[0]=g,e[1]=y):y=e[1];const w=st(x,y);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];let p;e[3]!==d?(p={initial:h,animate:{transition:{staggerChildren:d}}},e[3]=d,e[4]=p):p=e[4];const b=p;let S;e[5]!==u||e[6]!==f?(S=()=>{switch(u){case"slideIn":return{initial:(()=>{switch(f){case"up":return{y:50,opacity:0};case"down":return{y:-50,opacity:0};case"left":return{x:50,opacity:0};case"right":return{x:-50,opacity:0};default:return{y:50,opacity:0}}})(),animate:{x:0,y:0,opacity:1}};case"scaleIn":return{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1}};case"fadeIn":default:return{initial:{opacity:0},animate:{opacity:1}}}},e[5]=u,e[6]=f,e[7]=S):S=e[7];const C=S;let v;e[8]!==C?(v=C(),e[8]=C,e[9]=v):v=e[9];const T=v;let A;e[10]!==m?(A={...xs.smooth,duration:m},e[10]=m,e[11]=A):A=e[11];const E=A,R=w?"animate":"initial";let L;if(e[12]!==t||e[13]!==T||e[14]!==E){let V;e[16]!==T||e[17]!==E?(V=(P,I)=>k.jsx(pe.div,{variants:T,transition:E,children:P},I),e[16]=T,e[17]=E,e[18]=V):V=e[18],L=t.map(V),e[12]=t,e[13]=T,e[14]=E,e[15]=L}else L=e[15];let D;return e[19]!==c||e[20]!==b||e[21]!==R||e[22]!==L?(D=k.jsx(pe.div,{ref:x,className:c,variants:b,initial:"initial",animate:R,children:L}),e[19]=c,e[20]=b,e[21]=R,e[22]=L,e[23]=D):D=e[23],D};var C1=/\s+/g,Ua=s=>typeof s!="string"||!s?s:s.replace(C1," ").trim(),Jn=(...s)=>{let e=[],t=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let a=0,o=n.length;a<o;a++)t(n[a]);return}let r=typeof n;if(r==="string"||r==="number"||r==="bigint"){if(r==="number"&&n!==n)return;e.push(String(n))}else if(r==="object"){let a=Object.keys(n);for(let o=0,i=a.length;o<i;o++){let l=a[o];n[l]&&e.push(l)}}};for(let n=0,r=s.length;n<r;n++){let a=s[n];a!=null&&t(a)}return e.length>0?Ua(e.join(" ")):void 0},Ll=s=>s===!1?"false":s===!0?"true":s===0?"0":s,Qe=s=>{if(!s||typeof s!="object")return!0;for(let e in s)return!1;return!0},k1=(s,e)=>{if(s===e)return!0;if(!s||!e)return!1;let t=Object.keys(s),n=Object.keys(e);if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++){let a=t[r];if(!n.includes(a)||s[a]!==e[a])return!1}return!0},$l=(s,e)=>{for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];t in s?s[t]=Jn(s[t],n):s[t]=n}return s},Yd=(s,e)=>{for(let t=0;t<s.length;t++){let n=s[t];Array.isArray(n)?Yd(n,e):n&&e.push(n)}},qd=(...s)=>{let e=[];Yd(s,e);let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},Ha=(s,e)=>{let t={};for(let n in s){let r=s[n];if(n in e){let a=e[n];Array.isArray(r)||Array.isArray(a)?t[n]=qd(a,r):typeof r=="object"&&typeof a=="object"&&r&&a?t[n]=Ha(r,a):t[n]=a+" "+r}else t[n]=r}for(let n in e)n in s||(t[n]=e[n]);return t},S1={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function T1(){let s=null,e={},t=!1;return{get cachedTwMerge(){return s},set cachedTwMerge(n){s=n},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(n){e=n},get didTwMergeConfigChange(){return t},set didTwMergeConfigChange(n){t=n},reset(){s=null,e={},t=!1}}}var xt=T1(),A1=s=>{let e=(t,n)=>{let{extend:r=null,slots:a={},variants:o={},compoundVariants:i=[],compoundSlots:l=[],defaultVariants:c={}}=t,d={...S1,...n},u=r?.base?Jn(r.base,t?.base):t?.base,f=r?.variants&&!Qe(r.variants)?Ha(o,r.variants):o,m=r?.defaultVariants&&!Qe(r.defaultVariants)?{...r.defaultVariants,...c}:c;!Qe(d.twMergeConfig)&&!k1(d.twMergeConfig,xt.cachedTwMergeConfig)&&(xt.didTwMergeConfigChange=!0,xt.cachedTwMergeConfig=d.twMergeConfig);let g=Qe(r?.slots),x=Qe(a)?{}:{base:Jn(t?.base,g&&r?.base),...a},y=g?x:$l({...r?.slots},Qe(x)?{base:t?.base}:x),w=Qe(r?.compoundVariants)?i:qd(r?.compoundVariants,i),h=b=>{if(Qe(f)&&Qe(a)&&g)return s(u,b?.class,b?.className)(d);if(w&&!Array.isArray(w))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof w}`);if(l&&!Array.isArray(l))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof l}`);let S=(V,P,I=[],M)=>{let N=I;if(typeof P=="string"){let B=Ua(P).split(" ");for(let $=0;$<B.length;$++)N.push(`${V}:${B[$]}`)}else if(Array.isArray(P))for(let B=0;B<P.length;B++)N.push(`${V}:${P[B]}`);else if(typeof P=="object"&&typeof M=="string"&&M in P){let B=P[M];if(B&&typeof B=="string"){let $=Ua(B).split(" "),_=[];for(let O=0;O<$.length;O++)_.push(`${V}:${$[O]}`);N[M]=N[M]?N[M].concat(_):_}else if(Array.isArray(B)&&B.length>0){let $=[];for(let _=0;_<B.length;_++)$.push(`${V}:${B[_]}`);N[M]=$}}return N},C=(V,P=f,I=null,M=null)=>{let N=P[V];if(!N||Qe(N))return null;let B=M?.[V]??b?.[V];if(B===null)return null;let $=Ll(B),_=Array.isArray(d.responsiveVariants)&&d.responsiveVariants.length>0||d.responsiveVariants===!0,O=m?.[V],z=[];if(typeof $=="object"&&_)for(let[H,K]of Object.entries($)){let G=N[K];if(H==="initial"){O=K;continue}Array.isArray(d.responsiveVariants)&&!d.responsiveVariants.includes(H)||(z=S(H,G,z,I))}let F=$!=null&&typeof $!="object"?$:Ll(O),W=N[F||"false"];return typeof z=="object"&&typeof I=="string"&&z[I]?$l(z,W):z.length>0?(z.push(W),I==="base"?z.join(" "):z):W},v=()=>{if(!f)return null;let V=Object.keys(f),P=[];for(let I=0;I<V.length;I++){let M=C(V[I],f);M&&P.push(M)}return P},T=(V,P)=>{if(!f||typeof f!="object")return null;let I=[];for(let M in f){let N=C(M,f,V,P),B=V==="base"&&typeof N=="string"?N:N&&N[V];B&&I.push(B)}return I},A={};for(let V in b){let P=b[V];P!==void 0&&(A[V]=P)}let E=(V,P)=>{let I=typeof b?.[V]=="object"?{[V]:b[V]?.initial}:{};return{...m,...A,...I,...P}},R=(V=[],P)=>{let I=[],M=V.length;for(let N=0;N<M;N++){let{class:B,className:$,..._}=V[N],O=!0,z=E(null,P);for(let F in _){let W=_[F],H=z[F];if(Array.isArray(W)){if(!W.includes(H)){O=!1;break}}else{if((W==null||W===!1)&&(H==null||H===!1))continue;if(H!==W){O=!1;break}}}O&&(B&&I.push(B),$&&I.push($))}return I},L=V=>{let P=R(w,V);if(!Array.isArray(P))return P;let I={},M=s;for(let N=0;N<P.length;N++){let B=P[N];if(typeof B=="string")I.base=M(I.base,B)(d);else if(typeof B=="object")for(let $ in B)I[$]=M(I[$],B[$])(d)}return I},D=V=>{if(l.length<1)return null;let P={},I=E(null,V);for(let M=0;M<l.length;M++){let{slots:N=[],class:B,className:$,..._}=l[M];if(!Qe(_)){let O=!0;for(let z in _){let F=I[z],W=_[z];if(F===void 0||(Array.isArray(W)?!W.includes(F):W!==F)){O=!1;break}}if(!O)continue}for(let O=0;O<N.length;O++){let z=N[O];P[z]||(P[z]=[]),P[z].push([B,$])}}return P};if(!Qe(a)||!g){let V={};if(typeof y=="object"&&!Qe(y)){let P=s;for(let I in y)V[I]=M=>{let N=L(M),B=D(M);return P(y[I],T(I,M),N?N[I]:void 0,B?B[I]:void 0,M?.class,M?.className)(d)}}return V}return s(u,v(),R(w),b?.class,b?.className)(d)},p=()=>{if(!(!f||typeof f!="object"))return Object.keys(f)};return h.variantKeys=p(),h.extend=r,h.base=u,h.slots=y,h.variants=f,h.defaultVariants=m,h.compoundSlots=l,h.compoundVariants=w,h};return{tv:e,createTV:t=>(n,r)=>e(n,r?Ha(t,r):t)}};const Wo="-",j1=s=>{const e=P1(s),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=s;return{getClassGroupId:o=>{const i=o.split(Wo);return i[0]===""&&i.length!==1&&i.shift(),Zd(i,e)||N1(o)},getConflictingClassGroupIds:(o,i)=>{const l=t[o]||[];return i&&n[o]?[...l,...n[o]]:l}}},Zd=(s,e)=>{if(s.length===0)return e.classGroupId;const t=s[0],n=e.nextPart.get(t),r=n?Zd(s.slice(1),n):void 0;if(r)return r;if(e.validators.length===0)return;const a=s.join(Wo);return e.validators.find(({validator:o})=>o(a))?.classGroupId},Ol=/^\[(.+)\]$/,N1=s=>{if(Ol.test(s)){const e=Ol.exec(s)[1],t=e?.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},P1=s=>{const{theme:e,classGroups:t}=s,n={nextPart:new Map,validators:[]};for(const r in t)Ka(t[r],n,r,e);return n},Ka=(s,e,t,n)=>{s.forEach(r=>{if(typeof r=="string"){const a=r===""?e:zl(e,r);a.classGroupId=t;return}if(typeof r=="function"){if(V1(r)){Ka(r(n),e,t,n);return}e.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([a,o])=>{Ka(o,zl(e,a),t,n)})})},zl=(s,e)=>{let t=s;return e.split(Wo).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},V1=s=>s.isThemeGetter,M1=s=>{if(s<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,n=new Map;const r=(a,o)=>{t.set(a,o),e++,e>s&&(e=0,n=t,t=new Map)};return{get(a){let o=t.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return r(a,o),o},set(a,o){t.has(a)?t.set(a,o):r(a,o)}}},Xa="!",Ya=":",I1=Ya.length,E1=s=>{const{prefix:e,experimentalParseClassName:t}=s;let n=r=>{const a=[];let o=0,i=0,l=0,c;for(let g=0;g<r.length;g++){let x=r[g];if(o===0&&i===0){if(x===Ya){a.push(r.slice(l,g)),l=g+I1;continue}if(x==="/"){c=g;continue}}x==="["?o++:x==="]"?o--:x==="("?i++:x===")"&&i--}const d=a.length===0?r:r.substring(l),u=R1(d),f=u!==d,m=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:m}};if(e){const r=e+Ya,a=n;n=o=>o.startsWith(r)?a(o.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(t){const r=n;n=a=>t({className:a,parseClassName:r})}return n},R1=s=>s.endsWith(Xa)?s.substring(0,s.length-1):s.startsWith(Xa)?s.substring(1):s,D1=s=>{const e=Object.fromEntries(s.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const r=[];let a=[];return n.forEach(o=>{o[0]==="["||e[o]?(r.push(...a.sort(),o),a=[]):a.push(o)}),r.push(...a.sort()),r}},B1=s=>({cache:M1(s.cacheSize),parseClassName:E1(s),sortModifiers:D1(s),...j1(s)}),L1=/\s+/,$1=(s,e)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:a}=e,o=[],i=s.trim().split(L1);let l="";for(let c=i.length-1;c>=0;c-=1){const d=i[c],{isExternal:u,modifiers:f,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:x}=t(d);if(u){l=d+(l.length>0?" "+l:l);continue}let y=!!x,w=n(y?g.substring(0,x):g);if(!w){if(!y){l=d+(l.length>0?" "+l:l);continue}if(w=n(g),!w){l=d+(l.length>0?" "+l:l);continue}y=!1}const h=a(f).join(":"),p=m?h+Xa:h,b=p+w;if(o.includes(b))continue;o.push(b);const S=r(w,y);for(let C=0;C<S.length;++C){const v=S[C];o.push(p+v)}l=d+(l.length>0?" "+l:l)}return l};function O1(){let s=0,e,t,n="";for(;s<arguments.length;)(e=arguments[s++])&&(t=Jd(e))&&(n&&(n+=" "),n+=t);return n}const Jd=s=>{if(typeof s=="string")return s;let e,t="";for(let n=0;n<s.length;n++)s[n]&&(e=Jd(s[n]))&&(t&&(t+=" "),t+=e);return t};function qa(s,...e){let t,n,r,a=o;function o(l){const c=e.reduce((d,u)=>u(d),s());return t=B1(c),n=t.cache.get,r=t.cache.set,a=i,i(l)}function i(l){const c=n(l);if(c)return c;const d=$1(l,t);return r(l,d),d}return function(){return a(O1.apply(null,arguments))}}const He=s=>{const e=t=>t[s]||[];return e.isThemeGetter=!0,e},Qd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,z1=/^\d+\/\d+$/,_1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F1=/\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$/,W1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,G1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,U1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rs=s=>z1.test(s),Pe=s=>!!s&&!Number.isNaN(Number(s)),At=s=>!!s&&Number.isInteger(Number(s)),ba=s=>s.endsWith("%")&&Pe(s.slice(0,-1)),vt=s=>_1.test(s),H1=()=>!0,K1=s=>F1.test(s)&&!W1.test(s),tu=()=>!1,X1=s=>G1.test(s),Y1=s=>U1.test(s),q1=s=>!ge(s)&&!be(s),Z1=s=>ws(s,ru,tu),ge=s=>Qd.test(s),Rt=s=>ws(s,au,K1),ya=s=>ws(s,sb,Pe),_l=s=>ws(s,su,tu),J1=s=>ws(s,nu,Y1),Rn=s=>ws(s,ou,X1),be=s=>eu.test(s),Ns=s=>Cs(s,au),Q1=s=>Cs(s,nb),Fl=s=>Cs(s,su),eb=s=>Cs(s,ru),tb=s=>Cs(s,nu),Dn=s=>Cs(s,ou,!0),ws=(s,e,t)=>{const n=Qd.exec(s);return n?n[1]?e(n[1]):t(n[2]):!1},Cs=(s,e,t=!1)=>{const n=eu.exec(s);return n?n[1]?e(n[1]):t:!1},su=s=>s==="position"||s==="percentage",nu=s=>s==="image"||s==="url",ru=s=>s==="length"||s==="size"||s==="bg-size",au=s=>s==="length",sb=s=>s==="number",nb=s=>s==="family-name",ou=s=>s==="shadow",Za=()=>{const s=He("color"),e=He("font"),t=He("text"),n=He("font-weight"),r=He("tracking"),a=He("leading"),o=He("breakpoint"),i=He("container"),l=He("spacing"),c=He("radius"),d=He("shadow"),u=He("inset-shadow"),f=He("text-shadow"),m=He("drop-shadow"),g=He("blur"),x=He("perspective"),y=He("aspect"),w=He("ease"),h=He("animate"),p=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...b(),be,ge],C=()=>["auto","hidden","clip","visible","scroll"],v=()=>["auto","contain","none"],T=()=>[be,ge,l],A=()=>[rs,"full","auto",...T()],E=()=>[At,"none","subgrid",be,ge],R=()=>["auto",{span:["full",At,be,ge]},At,be,ge],L=()=>[At,"auto",be,ge],D=()=>["auto","min","max","fr",be,ge],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...T()],M=()=>[rs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],N=()=>[s,be,ge],B=()=>[...b(),Fl,_l,{position:[be,ge]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_=()=>["auto","cover","contain",eb,Z1,{size:[be,ge]}],O=()=>[ba,Ns,Rt],z=()=>["","none","full",c,be,ge],F=()=>["",Pe,Ns,Rt],W=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[Pe,ba,Fl,_l],G=()=>["","none",g,be,ge],X=()=>["none",Pe,be,ge],U=()=>["none",Pe,be,ge],Z=()=>[Pe,be,ge],q=()=>[rs,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vt],breakpoint:[vt],color:[H1],container:[vt],"drop-shadow":[vt],ease:["in","out","in-out"],font:[q1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vt],shadow:[vt],spacing:["px",Pe],text:[vt],"text-shadow":[vt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rs,ge,be,y]}],container:["container"],columns:[{columns:[Pe,ge,be,i]}],"break-after":[{"break-after":p()}],"break-before":[{"break-before":p()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:v()}],"overscroll-x":[{"overscroll-x":v()}],"overscroll-y":[{"overscroll-y":v()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[At,"auto",be,ge]}],basis:[{basis:[rs,"full","auto",i,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,rs,"auto","initial","none",ge]}],grow:[{grow:["",Pe,be,ge]}],shrink:[{shrink:["",Pe,be,ge]}],order:[{order:[At,"first","last","none",be,ge]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[i,"screen",...M()]}],"min-w":[{"min-w":[i,"screen","none",...M()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[o]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",t,Ns,Rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,be,ya]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ba,ge]}],"font-family":[{font:[Q1,ge,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,be,ge]}],"line-clamp":[{"line-clamp":[Pe,"none",be,ya]}],leading:[{leading:[a,...T()]}],"list-image":[{"list-image":["none",be,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",be,Rt]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[Pe,"auto",be,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},At,be,ge],radial:["",be,ge],conic:[At,be,ge]},tb,J1]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,be,ge]}],"outline-w":[{outline:["",Pe,Ns,Rt]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",d,Dn,Rn]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",u,Dn,Rn]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[Pe,Rt]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,Dn,Rn]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[Pe,be,ge]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[be,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ge]}],filter:[{filter:["","none",be,ge]}],blur:[{blur:G()}],brightness:[{brightness:[Pe,be,ge]}],contrast:[{contrast:[Pe,be,ge]}],"drop-shadow":[{"drop-shadow":["","none",m,Dn,Rn]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",Pe,be,ge]}],"hue-rotate":[{"hue-rotate":[Pe,be,ge]}],invert:[{invert:["",Pe,be,ge]}],saturate:[{saturate:[Pe,be,ge]}],sepia:[{sepia:["",Pe,be,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ge]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,be,ge]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,be,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,be,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,be,ge]}],"backdrop-invert":[{"backdrop-invert":["",Pe,be,ge]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,be,ge]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,be,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,be,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",be,ge]}],ease:[{ease:["linear","initial",w,be,ge]}],delay:[{delay:[Pe,be,ge]}],animate:[{animate:["none",h,be,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,be,ge]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[be,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be,ge]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",be,ge]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[Pe,Ns,Rt,ya]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rb=(s,{cacheSize:e,prefix:t,experimentalParseClassName:n,extend:r={},override:a={}})=>(Vs(s,"cacheSize",e),Vs(s,"prefix",t),Vs(s,"experimentalParseClassName",n),Bn(s.theme,a.theme),Bn(s.classGroups,a.classGroups),Bn(s.conflictingClassGroups,a.conflictingClassGroups),Bn(s.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Vs(s,"orderSensitiveModifiers",a.orderSensitiveModifiers),Ln(s.theme,r.theme),Ln(s.classGroups,r.classGroups),Ln(s.conflictingClassGroups,r.conflictingClassGroups),Ln(s.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),iu(s,r,"orderSensitiveModifiers"),s),Vs=(s,e,t)=>{t!==void 0&&(s[e]=t)},Bn=(s,e)=>{if(e)for(const t in e)Vs(s,t,e[t])},Ln=(s,e)=>{if(e)for(const t in e)iu(s,e,t)},iu=(s,e,t)=>{const n=e[t];n!==void 0&&(s[t]=s[t]?s[t].concat(n):n)},ab=(s,...e)=>typeof s=="function"?qa(Za,s,...e):qa(()=>rb(Za(),s),...e),je=qa(Za);var ob=s=>Qe(s)?je:ab({...s,extend:{theme:s.theme,classGroups:s.classGroups,conflictingClassGroupModifiers:s.conflictingClassGroupModifiers,conflictingClassGroups:s.conflictingClassGroups,...s.extend}}),ib=(...s)=>e=>{let t=Jn(s);return!t||!e.twMerge?t:((!xt.cachedTwMerge||xt.didTwMergeConfigChange)&&(xt.didTwMergeConfigChange=!1,xt.cachedTwMerge=ob(xt.cachedTwMergeConfig)),xt.cachedTwMerge(t)||void 0)},{tv:ke}=A1(ib);const lb=ke({base:["relative inline-flex items-center justify-center overflow-hidden font-medium","text-center align-middle","box-border select-none","focus:outline-none focus:ring-2 focus:ring-offset-2","transition-all duration-200 ease-in-out"],variants:{size:{sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-14 h-14 text-base"},color:{default:["bg-default-100 text-default-foreground","focus:ring-default-500"],primary:["bg-primary-100 text-primary-foreground","focus:ring-primary-500"],secondary:["bg-secondary-100 text-secondary-foreground","focus:ring-secondary-500"],success:["bg-success-100 text-success-foreground","focus:ring-success-500"],warning:["bg-warning-100 text-warning-foreground","focus:ring-warning-500"],danger:["bg-danger-100 text-danger-foreground","focus:ring-danger-500"]},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},isBordered:{true:"ring-2 ring-offset-2 ring-white dark:ring-offset-background",false:""},isDisabled:{true:"opacity-30 cursor-not-allowed pointer-events-none",false:"cursor-pointer"},isFocusable:{true:"cursor-pointer",false:""}},compoundVariants:[{color:"default",isBordered:!0,class:"ring-default-300 dark:ring-default-600"},{color:"primary",isBordered:!0,class:"ring-primary-300 dark:ring-primary-600"},{color:"secondary",isBordered:!0,class:"ring-secondary-300 dark:ring-secondary-600"},{color:"success",isBordered:!0,class:"ring-success-300 dark:ring-success-600"},{color:"warning",isBordered:!0,class:"ring-warning-300 dark:ring-warning-600"},{color:"danger",isBordered:!0,class:"ring-danger-300 dark:ring-danger-600"},{isDisabled:!0,isFocusable:!0,class:"cursor-not-allowed"}],defaultVariants:{size:"md",color:"default",radius:"full",isBordered:!1,isDisabled:!1,isFocusable:!1}}),cb=ke({base:["w-full h-full object-cover","transition-opacity duration-200 ease-in-out"]}),db=ke({base:["w-full h-full flex items-center justify-center","bg-inherit text-inherit"]}),ub=ke({base:["font-medium uppercase select-none","text-inherit leading-none"]}),fb=ke({base:["w-1/2 h-1/2 text-inherit","flex items-center justify-center"]}),mb=ke({base:["flex items-center"],variants:{isGrid:{true:"flex-wrap gap-2",false:"flex-row"}},defaultVariants:{isGrid:!1}}),hb=ke({base:["inline-flex items-center justify-center font-medium","bg-default-100 text-default-foreground","border border-background","select-none transition-all duration-200"],variants:{size:{sm:"w-8 h-8 text-xs ml-[-8px]",md:"w-10 h-10 text-sm ml-[-10px]",lg:"w-14 h-14 text-base ml-[-14px]"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},isGrid:{true:"ml-0",false:""}},defaultVariants:{size:"md",radius:"full",isGrid:!1}}),pb=s=>lb(s),gb=s=>mb(s),bb=s=>hb(s),yb=s=>{if(!s)return"";const e=s.trim().split(/\s+/);return e.length===1?e[0].substring(0,2).toUpperCase():e.slice(0,2).map(t=>t.charAt(0)).join("").toUpperCase()},vb=s=>{if(!s)return"";let e=0;for(let n=0;n<s.length;n++){const r=s.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return`hsl(${Math.abs(e)%360}, 70%, 80%)`},ht={size:"md",color:"default",radius:"full",isBordered:!1,isDisabled:!1,isFocusable:!1,showFallback:!1},Nt={max:5,isGrid:!1,isDisabled:!1,isBordered:!1},lu=s=>{const e=ae.c(57);let t,n,r,a,o,i,l,c,d,u,f;e[0]!==s?({src:a,name:r,showFallback:o,getInitials:i,ImgComponent:l,imgProps:c,isFocusable:d,isDisabled:u,className:f,"data-testid":n,...t}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11]);const m=o===void 0?ht.showFallback:o,g=i===void 0?yb:i;let x;e[12]!==c?(x=c===void 0?{}:c,e[12]=c,e[13]=x):x=e[13];const y=x,w=d===void 0?ht.isFocusable:d,h=u===void 0?ht.isDisabled:u,p=f===void 0?"":f,[b,S]=j.useState(!1),[C,v]=j.useState(!1);let T,A;e[14]!==a?(T=()=>{if(!a){S(!1),v(!1);return}S(!1),v(!1);const ee=new Image;return ee.onload=()=>{S(!0),v(!1)},ee.onerror=()=>{S(!1),v(!0)},ee.src=a,()=>{ee.onload=null,ee.onerror=null}},A=[a],e[14]=a,e[15]=T,e[16]=A):(T=e[15],A=e[16]),j.useEffect(T,A);let E;e:{if(!r){E="";break e}let ee;e[17]!==g||e[18]!==r?(ee=g(r),e[17]=g,e[18]=r,e[19]=ee):ee=e[19],E=ee}const R=E;let L;e:{if(m&&(!a||C)){L=!0;break e}if(r&&!a){L=!0;break e}if(a&&C){L=!0;break e}L=!1}const D=L;let V;e:{if(!r||a){V=void 0;break e}let ee;e[20]!==r?(ee=vb(r),e[20]=r,e[21]=ee):ee=e[21],V=ee}const P=V;let I;const M=r||"Avatar";let N,B;e[22]!==y?(N=ee=>{S(!0),v(!1),y.onLoad?.(ee)},B=[y],e[22]=y,e[23]=N,e[24]=B):(N=e[23],B=e[24]);const $=j.useCallback(N,B);let _,O;e[25]!==y?(_=ee=>{S(!1),v(!0),y.onError?.(ee)},O=[y],e[25]=y,e[26]=_,e[27]=O):(_=e[26],O=e[27]);const z=j.useCallback(_,O);let F;e[28]!==y||e[29]!==a||e[30]!==M||e[31]!==$||e[32]!==z?(F={...y,src:a,alt:M,onLoad:$,onError:z},e[28]=y,e[29]=a,e[30]=M,e[31]=$,e[32]=z,e[33]=F):F=e[33],I=F;const W=I;let H;const K=w&&!h?0:void 0,G=w?"button":"img",X=r||"Avatar";let U;e[34]!==r||e[35]!==P||e[36]!==D||e[37]!==a?(U=P&&D&&r&&!a?{backgroundColor:P}:{},e[34]=r,e[35]=P,e[36]=D,e[37]=a,e[38]=U):U=e[38];let Z;e[39]!==t.style||e[40]!==U?(Z={...t.style,...U},e[39]=t.style,e[40]=U,e[41]=Z):Z=e[41];let q;e[42]!==t||e[43]!==p||e[44]!==n||e[45]!==K||e[46]!==G||e[47]!==X||e[48]!==Z?(q={...t,className:p,"data-testid":n,"data-hover":void 0,"data-focus":void 0,"data-focus-visible":void 0,tabIndex:K,role:G,"aria-label":X,style:Z},e[42]=t,e[43]=p,e[44]=n,e[45]=K,e[46]=G,e[47]=X,e[48]=Z,e[49]=q):q=e[49],H=q;const Q=H;let J,Y;e[50]===Symbol.for("react.memo_cache_sentinel")?(Y={"aria-hidden":!0,style:{backgroundColor:"inherit"}},e[50]=Y):Y=e[50],J=Y;const ne=J;let se;return e[51]!==Q||e[52]!==W||e[53]!==R||e[54]!==b||e[55]!==D?(se={isImgLoaded:b,shouldShowFallback:D,initials:R,imgProps:W,baseProps:Q,fallbackProps:ne},e[51]=Q,e[52]=W,e[53]=R,e[54]=b,e[55]=D,e[56]=se):se=e[56],se},Go=s=>{const e=ae.c(11);let t,n,r;e[0]!==s?({size:n,className:r,...t}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r):(t=e[1],n=e[2],r=e[3]);const a=n===void 0?24:n,o=r===void 0?"":r;let i;e[4]!==o?(i=fb({className:o}),e[4]=o,e[5]=i):i=e[5];const l=i;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=k.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",fill:"currentColor"}),e[6]=c):c=e[6];let d;return e[7]!==l||e[8]!==t||e[9]!==a?(d=k.jsx("svg",{className:l,width:a,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:c}),e[7]=l,e[8]=t,e[9]=a,e[10]=d):d=e[10],d};Go.displayName="AvatarIcon";const cu=j.forwardRef((s,e)=>{const t=ae.c(86);let n,r,a,o,i,l,c,d,u,f,m,g,x,y,w,h,p;t[0]!==s?({src:l,name:o,icon:a,fallback:n,color:c,size:f,radius:m,isBordered:g,isDisabled:x,isFocusable:y,showFallback:w,ImgComponent:h,imgProps:p,getInitials:r,classNames:d,as:u,...i}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=i,t[6]=l,t[7]=c,t[8]=d,t[9]=u,t[10]=f,t[11]=m,t[12]=g,t[13]=x,t[14]=y,t[15]=w,t[16]=h,t[17]=p):(n=t[1],r=t[2],a=t[3],o=t[4],i=t[5],l=t[6],c=t[7],d=t[8],u=t[9],f=t[10],m=t[11],g=t[12],x=t[13],y=t[14],w=t[15],h=t[16],p=t[17]);const b=c===void 0?ht.color:c,S=f===void 0?ht.size:f,C=m===void 0?ht.radius:m,v=g===void 0?ht.isBordered:g,T=x===void 0?ht.isDisabled:x,A=y===void 0?ht.isFocusable:y,E=w===void 0?ht.showFallback:w,R=h===void 0?"img":h;let L;t[18]!==p?(L=p===void 0?{}:p,t[18]=p,t[19]=L):L=t[19];const D=L;let V;t[20]!==d?(V=d===void 0?{}:d,t[20]=d,t[21]=V):V=t[21];const P=V,I=u===void 0?"div":u;let M;t[22]!==R||t[23]!==r||t[24]!==D||t[25]!==T||t[26]!==A||t[27]!==o||t[28]!==i||t[29]!==E||t[30]!==l?(M={src:l,name:o,showFallback:E,getInitials:r,ImgComponent:R,imgProps:D,isFocusable:A,isDisabled:T,...i},t[22]=R,t[23]=r,t[24]=D,t[25]=T,t[26]=A,t[27]=o,t[28]=i,t[29]=E,t[30]=l,t[31]=M):M=t[31];const{isImgLoaded:N,shouldShowFallback:B,initials:$,imgProps:_,baseProps:O,fallbackProps:z}=lu(M);let F,W;if(t[32]!==P.base||t[33]!==b||t[34]!==v||t[35]!==T||t[36]!==A||t[37]!==C||t[38]!==S){const Ne=pb({color:b,size:S,radius:C,isBordered:v,isDisabled:T,isFocusable:A});W=je(Ne,P.base),t[32]=P.base,t[33]=b,t[34]=v,t[35]=T,t[36]=A,t[37]=C,t[38]=S,t[39]=W}else W=t[39];F=W;const H=F;let K,G;if(t[40]!==P.img){const Ne=cb();G=je(Ne,P.img),t[40]=P.img,t[41]=G}else G=t[41];K=G;const X=K;let U,Z;if(t[42]!==P.fallback){const Ne=db();Z=je(Ne,P.fallback),t[42]=P.fallback,t[43]=Z}else Z=t[43];U=Z;const q=U;let Q,J;if(t[44]!==P.name){const Ne=ub();J=je(Ne,P.name),t[44]=P.name,t[45]=J}else J=t[45];Q=J;const Y=Q;let ne,se;t[46]!==P.icon?(se=je("w-1/2 h-1/2",P.icon),t[46]=P.icon,t[47]=se):se=t[47],ne=se;const ee=ne;let re;t[48]!==R||t[49]!==_||t[50]!==X||t[51]!==N||t[52]!==l?(re=()=>!l||!N?null:j.createElement(R,{..._,className:X}),t[48]=R,t[49]=_,t[50]=X,t[51]=N,t[52]=l,t[53]=re):re=t[53];const le=re;let ce;t[54]!==n||t[55]!==q||t[56]!==z||t[57]!==a||t[58]!==ee||t[59]!==$||t[60]!==o||t[61]!==Y||t[62]!==B?(ce=()=>B?k.jsxs("div",{...z,className:q,children:[n,!n&&o&&k.jsx("span",{className:Y,"aria-label":`${o} initials`,children:$}),!n&&!o&&a&&k.jsx("span",{className:ee,"aria-hidden":"true",children:a}),!n&&!o&&!a&&k.jsx(Go,{className:ee})]}):null,t[54]=n,t[55]=q,t[56]=z,t[57]=a,t[58]=ee,t[59]=$,t[60]=o,t[61]=Y,t[62]=B,t[63]=ce):ce=t[63];const oe=ce;let te;t[64]===Symbol.for("react.memo_cache_sentinel")?(te={opacity:0,scale:1.1},t[64]=te):te=t[64];let ie;t[65]===Symbol.for("react.memo_cache_sentinel")?(ie=[.4,0,.2,1],t[65]=ie):ie=t[65];let de;t[66]===Symbol.for("react.memo_cache_sentinel")?(de={hidden:te,visible:{opacity:1,scale:1,transition:{duration:.2,ease:ie}}},t[66]=de):de=t[66];const me=de;let ye;t[67]===Symbol.for("react.memo_cache_sentinel")?(ye={opacity:0,scale:.9},t[67]=ye):ye=t[67];let ve;t[68]===Symbol.for("react.memo_cache_sentinel")?(ve=[.4,0,.2,1],t[68]=ve):ve=t[68];let we;t[69]===Symbol.for("react.memo_cache_sentinel")?(we={hidden:ye,visible:{opacity:1,scale:1,transition:{duration:.2,ease:ve}}},t[69]=we):we=t[69];const xe=we;let ue;t[70]!==N||t[71]!==le||t[72]!==l?(ue=l&&k.jsx(pe.div,{className:"absolute inset-0",variants:me,initial:"hidden",animate:N?"visible":"hidden",children:le()}),t[70]=N,t[71]=le,t[72]=l,t[73]=ue):ue=t[73];const he=B?"visible":"hidden";let fe;t[74]!==oe?(fe=oe(),t[74]=oe,t[75]=fe):fe=t[75];let Ce;t[76]!==he||t[77]!==fe?(Ce=k.jsx(pe.div,{className:"absolute inset-0",variants:xe,initial:"hidden",animate:he,children:fe}),t[76]=he,t[77]=fe,t[78]=Ce):Ce=t[78];let Te;return t[79]!==I||t[80]!==H||t[81]!==O||t[82]!==e||t[83]!==ue||t[84]!==Ce?(Te=k.jsxs(I,{ref:e,...O,className:H,children:[ue,Ce]}),t[79]=I,t[80]=H,t[81]=O,t[82]=e,t[83]=ue,t[84]=Ce,t[85]=Te):Te=t[85],Te});cu.displayName="Avatar";const du=s=>{const e=ae.c(37);let t,n,r,a,o,i,l,c,d,u,f,m,g;e[0]!==s?({max:c,total:g,size:l,color:r,radius:o,isGrid:d,isDisabled:u,isBordered:f,renderCount:i,children:n,className:m,"data-testid":a,...t}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=m,e[13]=g):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11],m=e[12],g=e[13]);const x=c===void 0?Nt.max:c,y=d===void 0?Nt.isGrid:d,w=u===void 0?Nt.isDisabled:u,h=f===void 0?Nt.isBordered:f,p=m===void 0?"":m;let b;b=j.Children.count(n);const S=b;let C;e:{if(typeof g=="number"){C=Math.max(0,g-x);break e}C=Math.max(0,S-x)}const v=C;let T;e:{if(typeof g=="number"){T=g>x;break e}T=S>x}const A=T;let E,R;e[14]!==r||e[15]!==h||e[16]!==w||e[17]!==y||e[18]!==x||e[19]!==o||e[20]!==i||e[21]!==l||e[22]!==g?(R={size:l,color:r,radius:o,isDisabled:w,isBordered:h,max:x,total:g,isGrid:y,renderCount:i},e[14]=r,e[15]=h,e[16]=w,e[17]=y,e[18]=x,e[19]=o,e[20]=i,e[21]=l,e[22]=g,e[23]=R):R=e[23],E=R;const L=E;let D;const V=`Avatar group${g?` of ${g} users`:""}`;let P;e[24]!==t||e[25]!==p||e[26]!==a||e[27]!==V?(P={...t,className:p,"data-testid":a,role:"group","aria-label":V},e[24]=t,e[25]=p,e[26]=a,e[27]=V,e[28]=P):P=e[28],D=P;const I=D;let M;const N=`${v} more users`;let B;e[29]!==N?(B={"aria-label":N,role:"img"},e[29]=N,e[30]=B):B=e[30],M=B;const $=M;let _;return e[31]!==L||e[32]!==$||e[33]!==I||e[34]!==v||e[35]!==A?(_={context:L,remainingCount:v,shouldShowCount:A,baseProps:I,countProps:$},e[31]=L,e[32]=$,e[33]=I,e[34]=v,e[35]=A,e[36]=_):_=e[36],_},xb=j.createContext(null),wb=s=>{const e=ae.c(3),{value:t,children:n}=s;let r;return e[0]!==n||e[1]!==t?(r=k.jsx(xb.Provider,{value:t,children:n}),e[0]=n,e[1]=t,e[2]=r):r=e[2],r},uu=j.forwardRef((s,e)=>{const t=ae.c(57);let n,r,a,o,i,l,c,d,u,f,m,g;t[0]!==s?({max:c,total:g,size:l,color:r,radius:o,isGrid:d,isDisabled:u,isBordered:f,renderCount:i,classNames:m,children:n,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=i,t[6]=l,t[7]=c,t[8]=d,t[9]=u,t[10]=f,t[11]=m,t[12]=g):(n=t[1],r=t[2],a=t[3],o=t[4],i=t[5],l=t[6],c=t[7],d=t[8],u=t[9],f=t[10],m=t[11],g=t[12]);const x=c===void 0?Nt.max:c,y=d===void 0?Nt.isGrid:d,w=u===void 0?Nt.isDisabled:u,h=f===void 0?Nt.isBordered:f;let p;t[13]!==m?(p=m===void 0?{}:m,t[13]=m,t[14]=p):p=t[14];const b=p;let S;t[15]!==n||t[16]!==r||t[17]!==h||t[18]!==w||t[19]!==y||t[20]!==x||t[21]!==a||t[22]!==o||t[23]!==i||t[24]!==l||t[25]!==g?(S={max:x,total:g,size:l,color:r,radius:o,isGrid:y,isDisabled:w,isBordered:h,renderCount:i,children:n,...a},t[15]=n,t[16]=r,t[17]=h,t[18]=w,t[19]=y,t[20]=x,t[21]=a,t[22]=o,t[23]=i,t[24]=l,t[25]=g,t[26]=S):S=t[26];const{context:C,remainingCount:v,shouldShowCount:T,baseProps:A,countProps:E}=du(S);let R,L;if(t[27]!==b.base||t[28]!==y){const F=gb({isGrid:y});L=je(F,b.base),t[27]=b.base,t[28]=y,t[29]=L}else L=t[29];R=L;const D=R;let V,P;if(t[30]!==b.count||t[31]!==y||t[32]!==o||t[33]!==l){const F=bb({size:l,radius:o,isGrid:y});P=je(F,b.count),t[30]=b.count,t[31]=y,t[32]=o,t[33]=l,t[34]=P}else P=t[34];V=P;const I=V;let M;e:{if(!n){M=null;break e}let F;if(t[35]!==n||t[36]!==y||t[37]!==x){const H=j.Children.toArray(n).slice(0,x);F=H.map((K,G)=>y?k.jsx(pe.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:G*.05,duration:.2,ease:[.4,0,.2,1]},children:K},G):k.jsx(pe.div,{className:G>0?"-ml-2":"",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:G*.05,duration:.2,ease:[.4,0,.2,1]},style:{zIndex:H.length-G},children:K},G)),t[35]=n,t[36]=y,t[37]=x,t[38]=F}else F=t[38];M=F}const N=M;let B;t[39]!==I||t[40]!==E||t[41]!==x||t[42]!==v||t[43]!==i||t[44]!==T?(B=()=>{if(!T)return null;if(i){const F=i(v);return k.jsx(pe.div,{className:I,"aria-label":E["aria-label"],role:E.role,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:x*.05,duration:.2,ease:[.4,0,.2,1]},children:F})}return k.jsxs(pe.div,{className:I,"aria-label":E["aria-label"],role:E.role,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:x*.05,duration:.2,ease:[.4,0,.2,1]},children:["+",v]})},t[39]=I,t[40]=E,t[41]=x,t[42]=v,t[43]=i,t[44]=T,t[45]=B):B=t[45];const $=B;let _;t[46]!==$?(_=$(),t[46]=$,t[47]=_):_=t[47];let O;t[48]!==D||t[49]!==A||t[50]!==N||t[51]!==e||t[52]!==_?(O=k.jsxs("div",{ref:e,...A,className:D,children:[N,_]}),t[48]=D,t[49]=A,t[50]=N,t[51]=e,t[52]=_,t[53]=O):O=t[53];let z;return t[54]!==C||t[55]!==O?(z=k.jsx(wb,{value:C,children:O}),t[54]=C,t[55]=O,t[56]=z):z=t[56],z});uu.displayName="AvatarGroup";const Cb=ke({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","absolute","items-center","justify-center","whitespace-nowrap","origin-center","text-tiny","font-medium","subpixel-antialiased","scale-100","select-none","transition-transform","!duration-200","!ease-soft-spring"]},variants:{variant:{solid:{badge:"text-white"},flat:{badge:""},faded:{badge:""},shadow:{badge:"text-white shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"min-w-4 h-4 text-tiny px-1"},md:{badge:"min-w-5 h-5 text-tiny px-1"},lg:{badge:"min-w-6 h-6 text-small px-1.5"}},shape:{circle:{badge:"rounded-full"},rectangle:{badge:"rounded-md"}},placement:{"top-right":{badge:"top-0 right-0 translate-x-1/2 -translate-y-1/2"},"top-left":{badge:"top-0 left-0 -translate-x-1/2 -translate-y-1/2"},"bottom-right":{badge:"bottom-0 right-0 translate-x-1/2 translate-y-1/2"},"bottom-left":{badge:"bottom-0 left-0 -translate-x-1/2 translate-y-1/2"}},isInvisible:{true:{badge:"scale-0"},false:{badge:"scale-100"}},showOutline:{true:{badge:"ring-2 ring-background"},false:{}},disableAnimation:{true:{badge:"transition-none"},false:{}},isOneChar:{true:{},false:{}}},compoundVariants:[{variant:"solid",color:"default",class:{badge:"bg-default text-default-foreground"}},{variant:"solid",color:"primary",class:{badge:"bg-primary text-primary-foreground"}},{variant:"solid",color:"secondary",class:{badge:"bg-secondary text-secondary-foreground"}},{variant:"solid",color:"success",class:{badge:"bg-success text-success-foreground"}},{variant:"solid",color:"warning",class:{badge:"bg-warning text-warning-foreground"}},{variant:"solid",color:"danger",class:{badge:"bg-danger text-danger-foreground"}},{variant:"flat",color:"default",class:{badge:"bg-default/20 text-default-600"}},{variant:"flat",color:"primary",class:{badge:"bg-primary/20 text-primary-600"}},{variant:"flat",color:"secondary",class:{badge:"bg-secondary/20 text-secondary-600"}},{variant:"flat",color:"success",class:{badge:"bg-success/20 text-success-600 dark:text-success-500"}},{variant:"flat",color:"warning",class:{badge:"bg-warning/20 text-warning-600 dark:text-warning-500"}},{variant:"flat",color:"danger",class:{badge:"bg-danger/20 text-danger-500"}},{variant:"faded",color:"default",class:{badge:"border-small border-default bg-default-50 text-default-foreground"}},{variant:"faded",color:"primary",class:{badge:"border-small border-primary bg-primary-50 text-primary-600"}},{variant:"faded",color:"secondary",class:{badge:"border-small border-secondary bg-secondary-50 text-secondary-600"}},{variant:"faded",color:"success",class:{badge:"border-small border-success bg-success-50 text-success-600 dark:text-success-500"}},{variant:"faded",color:"warning",class:{badge:"border-small border-warning bg-warning-50 text-warning-600 dark:text-warning-500"}},{variant:"faded",color:"danger",class:{badge:"border-small border-danger bg-danger-50 text-danger-500"}},{variant:"shadow",color:"default",class:{badge:"shadow-lg shadow-default/50 bg-default text-default-foreground"}},{variant:"shadow",color:"primary",class:{badge:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{badge:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground"}},{variant:"shadow",color:"success",class:{badge:"shadow-lg shadow-success/40 bg-success text-success-foreground"}},{variant:"shadow",color:"warning",class:{badge:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground"}},{variant:"shadow",color:"danger",class:{badge:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 px-0"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 px-0"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 px-0"}}],defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",isInvisible:!1,showOutline:!1,disableAnimation:!1,isOneChar:!1}}),fu=j.forwardRef(({children:s,content:e,variant:t="solid",color:n="default",size:r="md",shape:a="rectangle",placement:o="top-right",isOneChar:i=!1,showOutline:l=!1,isInvisible:c=!1,disableAnimation:d=!1,classNames:u,className:f,...m},g)=>{const x=j.useMemo(()=>i?!0:typeof e=="string"||typeof e=="number"?String(e).length===1:!1,[e,i]),y=j.useMemo(()=>Cb({variant:t,color:n,size:r,shape:a,placement:o,isOneChar:x,showOutline:l,isInvisible:c,disableAnimation:d}),[t,n,r,a,o,x,l,c,d]);return!e&&s?k.jsx(k.Fragment,{children:s}):e&&!s?k.jsx("span",{ref:g,className:je(y.badge(),u?.badge,f),...m,children:e}):k.jsxs("div",{ref:g,className:je(y.base(),u?.base,f),...m,children:[s,e&&k.jsx("span",{className:je(y.badge(),u?.badge),"aria-label":typeof e=="string"?e:"Badge",children:e})]})});fu.displayName="Badge";const mu=ke({slots:{base:["flex","items-center","justify-start","max-w-fit","relative","overflow-hidden"],list:["flex","flex-wrap","items-center","list-none","p-0","m-0"],item:["flex","items-center","text-inherit","whitespace-nowrap","box-border","outline-none","tap-highlight-transparent"],link:["flex","items-center","gap-1","outline-none","cursor-pointer","transition-colors","tap-highlight-transparent","rounded-small","relative","inline-flex","shrink-0","text-inherit","no-underline","hover:opacity-80","active:opacity-disabled","focus-visible:z-10","focus-visible:outline-2","focus-visible:outline-focus","focus-visible:outline-offset-2"],separator:["flex","items-center","justify-center","pointer-events-none","shrink-0","text-inherit","select-none"],ellipsis:["flex","items-center","justify-center","cursor-pointer","text-inherit","rounded-small","transition-colors","hover:opacity-80","active:opacity-disabled","outline-none","focus-visible:z-10","focus-visible:outline-2","focus-visible:outline-focus","focus-visible:outline-offset-2"]},variants:{size:{sm:{base:"text-xs",item:"h-6",link:"px-1 h-6 text-xs min-h-6",separator:"px-1 text-xs",ellipsis:"w-6 h-6 text-xs"},md:{base:"text-sm",item:"h-8",link:"px-2 h-8 text-sm min-h-8",separator:"px-1.5 text-sm",ellipsis:"w-8 h-8 text-sm"},lg:{base:"text-base",item:"h-10",link:"px-3 h-10 text-base min-h-10",separator:"px-2 text-base",ellipsis:"w-10 h-10 text-base"}},color:{default:{item:"text-foreground",link:"text-foreground data-[current=true]:text-foreground data-[current=true]:font-medium",separator:"text-foreground-400"},primary:{item:"text-primary",link:"text-primary data-[current=true]:text-primary data-[current=true]:font-medium",separator:"text-primary-300"},secondary:{item:"text-secondary",link:"text-secondary data-[current=true]:text-secondary data-[current=true]:font-medium",separator:"text-secondary-300"},success:{item:"text-success",link:"text-success data-[current=true]:text-success data-[current=true]:font-medium",separator:"text-success-300"},warning:{item:"text-warning",link:"text-warning data-[current=true]:text-warning data-[current=true]:font-medium",separator:"text-warning-300"},danger:{item:"text-danger",link:"text-danger data-[current=true]:text-danger data-[current=true]:font-medium",separator:"text-danger-300"}},variant:{solid:{link:["data-[current=true]:bg-foreground","data-[current=true]:text-background"]},bordered:{link:["border-2","border-transparent","data-[current=true]:border-foreground"]},light:{link:["data-[current=true]:bg-foreground/10"]},flat:{link:["data-[current=true]:bg-foreground/20"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",link:"cursor-default pointer-events-none"}},hideSeparator:{true:{separator:"hidden"}}},compoundVariants:[{color:"primary",variant:"solid",class:{link:["data-[current=true]:bg-primary","data-[current=true]:text-primary-foreground"]}},{color:"primary",variant:"bordered",class:{link:"data-[current=true]:border-primary"}},{color:"primary",variant:"light",class:{link:"data-[current=true]:bg-primary/10"}},{color:"primary",variant:"flat",class:{link:"data-[current=true]:bg-primary/20"}},{color:"secondary",variant:"solid",class:{link:["data-[current=true]:bg-secondary","data-[current=true]:text-secondary-foreground"]}},{color:"secondary",variant:"bordered",class:{link:"data-[current=true]:border-secondary"}},{color:"secondary",variant:"light",class:{link:"data-[current=true]:bg-secondary/10"}},{color:"secondary",variant:"flat",class:{link:"data-[current=true]:bg-secondary/20"}},{color:"success",variant:"solid",class:{link:["data-[current=true]:bg-success","data-[current=true]:text-success-foreground"]}},{color:"success",variant:"bordered",class:{link:"data-[current=true]:border-success"}},{color:"success",variant:"light",class:{link:"data-[current=true]:bg-success/10"}},{color:"success",variant:"flat",class:{link:"data-[current=true]:bg-success/20"}},{color:"warning",variant:"solid",class:{link:["data-[current=true]:bg-warning","data-[current=true]:text-warning-foreground"]}},{color:"warning",variant:"bordered",class:{link:"data-[current=true]:border-warning"}},{color:"warning",variant:"light",class:{link:"data-[current=true]:bg-warning/10"}},{color:"warning",variant:"flat",class:{link:"data-[current=true]:bg-warning/20"}},{color:"danger",variant:"solid",class:{link:["data-[current=true]:bg-danger","data-[current=true]:text-danger-foreground"]}},{color:"danger",variant:"bordered",class:{link:"data-[current=true]:border-danger"}},{color:"danger",variant:"light",class:{link:"data-[current=true]:bg-danger/10"}},{color:"danger",variant:"flat",class:{link:"data-[current=true]:bg-danger/20"}}],defaultVariants:{size:"md",color:"default",variant:"flat",isDisabled:!1,hideSeparator:!1}}),kb=ke({base:["flex","items-center","justify-center","pointer-events-none","shrink-0","select-none"],variants:{type:{slash:"",chevron:"",arrow:"",dot:"",custom:""},size:{sm:"w-3 h-3 text-xs",md:"w-4 h-4 text-sm",lg:"w-5 h-5 text-base"},color:{default:"text-foreground-400",primary:"text-primary-300",secondary:"text-secondary-300",success:"text-success-300",warning:"text-warning-300",danger:"text-danger-300"}},defaultVariants:{type:"slash",size:"md",color:"default"}});ke({slots:{item:"",separator:""},variants:{animation:{none:{},fade:{item:"animate-in fade-in duration-300",separator:"animate-in fade-in duration-300"},slide:{item:"animate-in slide-in-from-left-2 duration-300",separator:"animate-in slide-in-from-left-1 duration-300"},scale:{item:"animate-in zoom-in-95 duration-300",separator:"animate-in zoom-in-95 duration-300"}},stagger:{true:{},false:{}}},compoundVariants:[{animation:"fade",stagger:!0,class:{item:"animate-in fade-in duration-300 fill-mode-both",separator:"animate-in fade-in duration-300 fill-mode-both"}},{animation:"slide",stagger:!0,class:{item:"animate-in slide-in-from-left-2 duration-300 fill-mode-both",separator:"animate-in slide-in-from-left-1 duration-300 fill-mode-both"}},{animation:"scale",stagger:!0,class:{item:"animate-in zoom-in-95 duration-300 fill-mode-both",separator:"animate-in zoom-in-95 duration-300 fill-mode-both"}}],defaultVariants:{animation:"none",stagger:!1}});const Wl=s=>{const e={slash:"/",chevron:"›",arrow:"→",dot:"•",custom:""};return e[s]||e.slash},hu=j.createContext(void 0),pu=()=>{const s=j.useContext(hu);if(!s)throw new Error("useBreadcrumbContext must be used within a Breadcrumb component");return s},Sb=s=>{const{children:e,size:t="md",color:n="default",variant:r="flat",separator:a="slash",separatorClassName:o,itemsClassName:i,hideSeparator:l=!1,maxItems:c,showRoot:d=!0,isDisabled:u=!1,itemsBeforeCollapse:f=1,itemsAfterCollapse:m=1,renderEllipsis:g,className:x,listProps:y,...w}=s,h=j.Children.toArray(e),p=j.useMemo(()=>{if(!c||h.length<=c)return h;const C=h.length,v=Math.max(2,c-1);if(C<=v)return h;const T=h.slice(0,f),A=h.slice(C-m),E=C-f-m,R=g?g(E):k.jsx("span",{"aria-label":`${E} more items`,children:"..."},"ellipsis");return[...T,R,...A]},[h,c,f,m,g]),b=j.useMemo(()=>mu({size:t,color:n,variant:r,isDisabled:u,hideSeparator:l}),[t,n,r,u,l]),S=j.useMemo(()=>({size:t,color:n,variant:r,separator:a,separatorClassName:o,isDisabled:u}),[t,n,r,a,o,u]);return{processedChildren:p,slots:b,contextValue:S,itemsClassName:i,className:x,listProps:y,otherProps:w}},gu=j.forwardRef((s,e)=>{const t=ae.c(28),{processedChildren:n,slots:r,contextValue:a,itemsClassName:o,className:i,listProps:l,otherProps:c}=Sb(s);let d;t[0]!==i||t[1]!==r?(d=r.base({className:i}),t[0]=i,t[1]=r,t[2]=d):d=t[2];let u;t[3]!==o||t[4]!==r?(u=r.list({className:o}),t[3]=o,t[4]=r,t[5]=u):u=t[5];let f;if(t[6]!==a||t[7]!==n||t[8]!==s.hideSeparator||t[9]!==r){let y;t[11]!==a||t[12]!==n.length||t[13]!==s.hideSeparator||t[14]!==r?(y=(w,h)=>{const p=h===n.length-1;return k.jsxs(j.Fragment,{children:[k.jsx("li",{className:r.item(),children:j.isValidElement(w)?j.cloneElement(w,{isCurrent:w.props?.isCurrent??p}):w}),!p&&!s.hideSeparator&&k.jsx("li",{className:r.separator({className:a.separatorClassName}),children:j.isValidElement(a.separator)?a.separator:k.jsxs("span",{"aria-hidden":"true",role:"separator",className:"flex items-center justify-center",children:[a.separator==="slash"&&k.jsx("span",{className:"text-inherit",children:"/"}),a.separator==="chevron"&&k.jsx("svg",{className:`${a.size==="sm"?"w-3 h-3":a.size==="lg"?"w-5 h-5":"w-4 h-4"} text-inherit`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:k.jsx("polyline",{points:"9,18 15,12 9,6",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),a.separator==="arrow"&&k.jsxs("svg",{className:`${a.size==="sm"?"w-3 h-3":a.size==="lg"?"w-5 h-5":"w-4 h-4"} text-inherit`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[k.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),k.jsx("polyline",{points:"12,5 19,12 12,19",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.separator==="dot"&&k.jsx("svg",{className:`${a.size==="sm"?"w-3 h-3":a.size==="lg"?"w-5 h-5":"w-4 h-4"} text-inherit`,fill:"currentColor",viewBox:"0 0 24 24",children:k.jsx("circle",{cx:"12",cy:"12",r:"3"})})]})})]},h)},t[11]=a,t[12]=n.length,t[13]=s.hideSeparator,t[14]=r,t[15]=y):y=t[15],f=n.map(y),t[6]=a,t[7]=n,t[8]=s.hideSeparator,t[9]=r,t[10]=f}else f=t[10];let m;t[16]!==l||t[17]!==u||t[18]!==f?(m=k.jsx("ol",{className:u,...l,children:f}),t[16]=l,t[17]=u,t[18]=f,t[19]=m):m=t[19];let g;t[20]!==c||t[21]!==e||t[22]!==d||t[23]!==m?(g=k.jsx("nav",{ref:e,className:d,"aria-label":"Breadcrumb",...c,children:m}),t[20]=c,t[21]=e,t[22]=d,t[23]=m,t[24]=g):g=t[24];let x;return t[25]!==a||t[26]!==g?(x=k.jsx(hu.Provider,{value:a,children:g}),t[25]=a,t[26]=g,t[27]=x):x=t[27],x});gu.displayName="Breadcrumb";const fr=s=>{const e=ae.c(15),{to:t,children:n,className:r,activeClassName:a,exact:o,replace:i,onClick:l}=s,c=r===void 0?"":r,d=a===void 0?"":a,u=o===void 0?!1:o,f=i===void 0?!1:i,m=ti.useLocation();let g;e[0]!==u||e[1]!==m.pathname||e[2]!==t?(g=u?m.pathname===t:m.pathname.startsWith(t),e[0]=u,e[1]=m.pathname,e[2]=t,e[3]=g):g=e[3];const y=g&&d;let w;e[4]!==c||e[5]!==y?(w=[c,y].filter(Boolean),e[4]=c,e[5]=y,e[6]=w):w=e[6];const h=w.join(" ");let p;e[7]!==l?(p=C=>{l?.(C)},e[7]=l,e[8]=p):p=e[8];const b=p;let S;return e[9]!==n||e[10]!==b||e[11]!==h||e[12]!==f||e[13]!==t?(S=k.jsx(ti.Link,{to:t,className:h,replace:f,onClick:b,children:n}),e[9]=n,e[10]=b,e[11]=h,e[12]=f,e[13]=t,e[14]=S):S=e[14],S},Tb=s=>{const e=ae.c(40),t=pu();let n,r,a,o,i,l,c,d,u,f,m,g,x,y,w;e[0]!==s?({children:n,href:i,to:y,isDisabled:l,isCurrent:x,startContent:g,endContent:o,className:r,itemClassName:c,linkClassName:d,size:m,color:a,variant:w,onPress:u,...f}=s,e[0]=s,e[1]=n,e[2]=r,e[3]=a,e[4]=o,e[5]=i,e[6]=l,e[7]=c,e[8]=d,e[9]=u,e[10]=f,e[11]=m,e[12]=g,e[13]=x,e[14]=y,e[15]=w):(n=e[1],r=e[2],a=e[3],o=e[4],i=e[5],l=e[6],c=e[7],d=e[8],u=e[9],f=e[10],m=e[11],g=e[12],x=e[13],y=e[14],w=e[15]);const h=x===void 0?!1:x,p=y||i,b=m||t.size||"md",S=a||t.color||"default",C=w||t.variant||"flat",v=l||t.isDisabled||!1;let T,A;e[16]!==S||e[17]!==v||e[18]!==b||e[19]!==C?(A=mu({size:b,color:S,variant:C,isDisabled:v}),e[16]=S,e[17]=v,e[18]=b,e[19]=C,e[20]=A):A=e[20],T=A;const E=T;let R;e[21]!==h||e[22]!==v||e[23]!==u?(R=P=>{if(v||h){P.preventDefault();return}u&&u(P)},e[21]=h,e[22]=v,e[23]=u,e[24]=R):R=e[24];const L=R,D=!!(p&&!v&&!h);let V;return e[25]!==n||e[26]!==r||e[27]!==o||e[28]!==L||e[29]!==i||e[30]!==h||e[31]!==v||e[32]!==c||e[33]!==d||e[34]!==f||e[35]!==D||e[36]!==E||e[37]!==g||e[38]!==y?(V={children:n,href:i,to:y,isDisabled:v,isCurrent:h,startContent:g,endContent:o,className:r,itemClassName:c,linkClassName:d,slots:E,handlePress:L,shouldRenderAsLink:D,otherProps:f},e[25]=n,e[26]=r,e[27]=o,e[28]=L,e[29]=i,e[30]=h,e[31]=v,e[32]=c,e[33]=d,e[34]=f,e[35]=D,e[36]=E,e[37]=g,e[38]=y,e[39]=V):V=e[39],V},bu=j.forwardRef((s,e)=>{const t=ae.c(33),{children:n,href:r,to:a,isDisabled:o,isCurrent:i,startContent:l,endContent:c,linkClassName:d,slots:u,handlePress:f,shouldRenderAsLink:m,otherProps:g}=Tb(s);let x;t[0]!==n?(x=k.jsx("span",{children:n}),t[0]=n,t[1]=x):x=t[1];let y;t[2]!==c||t[3]!==l||t[4]!==x?(y=k.jsxs(k.Fragment,{children:[l,x,c]}),t[2]=c,t[3]=l,t[4]=x,t[5]=y):y=t[5];const w=y;let h;t[6]!==d||t[7]!==u?(h=u.link({className:d}),t[6]=d,t[7]=u,t[8]=h):h=t[8];const p=i?"page":void 0,b=o?-1:0;let S;t[9]!==f||t[10]!==i||t[11]!==o||t[12]!==g||t[13]!==e||t[14]!==h||t[15]!==p||t[16]!==b?(S={ref:e,className:h,"data-current":i,"data-disabled":o,"aria-current":p,"aria-disabled":o,tabIndex:b,onClick:f,...g},t[9]=f,t[10]=i,t[11]=o,t[12]=g,t[13]=e,t[14]=h,t[15]=p,t[16]=b,t[17]=S):S=t[17];const C=S;if(m){if(a){let T;t[18]!==d||t[19]!==u?(T=u.link({className:d}),t[18]=d,t[19]=u,t[20]=T):T=t[20];let A;return t[21]!==f||t[22]!==w||t[23]!==T||t[24]!==a?(A=k.jsx(k.Fragment,{children:k.jsx(fr,{to:a,className:T,onClick:f,children:w})}),t[21]=f,t[22]=w,t[23]=T,t[24]=a,t[25]=A):A=t[25],A}else if(r){let T;return t[26]!==r||t[27]!==w||t[28]!==C?(T=k.jsx(k.Fragment,{children:k.jsx("a",{href:r,...C,children:w})}),t[26]=r,t[27]=w,t[28]=C,t[29]=T):T=t[29],T}}let v;return t[30]!==w||t[31]!==C?(v=k.jsx(k.Fragment,{children:k.jsx("span",{...C,role:"link",children:w})}),t[30]=w,t[31]=C,t[32]=v):v=t[32],v});bu.displayName="BreadcrumbItem";const Ab={slash:()=>k.jsx("span",{children:"/"}),chevron:()=>k.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-full h-full",children:k.jsx("polyline",{points:"9,18 15,12 9,6"})}),arrow:()=>k.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-full h-full",children:[k.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),k.jsx("polyline",{points:"12,5 19,12 12,19"})]}),dot:()=>k.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-full h-full",children:k.jsx("circle",{cx:"12",cy:"12",r:"3"})})},jb=s=>{const e=ae.c(15),t=pu(),{type:n,customIcon:r,className:a,size:o,color:i}=s,l=n||(typeof t.separator=="string"?t.separator:"slash"),c=o||t.size||"md",d=i||t.color||"default";let u,f;e[0]!==d||e[1]!==c||e[2]!==l?(f=kb({type:l,size:c,color:d}),e[0]=d,e[1]=c,e[2]=l,e[3]=f):f=e[3],u=f;const m=u;let g;e:{if(j.isValidElement(t.separator)){g=t.separator;break e}if(r){g=r;break e}if(l==="custom"){let p;e[4]!==l?(p=Wl(l),e[4]=l,e[5]=p):p=e[5];let b;e[6]!==p?(b=k.jsx("span",{children:p}),e[6]=p,e[7]=b):b=e[7],g=b;break e}const w=Ab[l];let h;e[8]!==w||e[9]!==l?(h=w?k.jsx(w,{}):k.jsx("span",{children:Wl(l)}),e[8]=w,e[9]=l,e[10]=h):h=e[10],g=h}const x=g;let y;return e[11]!==a||e[12]!==m||e[13]!==x?(y={separatorClasses:m,separatorContent:x,className:a},e[11]=a,e[12]=m,e[13]=x,e[14]=y):y=e[14],y},yu=j.forwardRef((s,e)=>{const t=ae.c(4),{separatorClasses:n,separatorContent:r,className:a}=jb(s),o=`${n} ${a||""}`;let i;return t[0]!==e||t[1]!==r||t[2]!==o?(i=k.jsx("span",{ref:e,className:o,"aria-hidden":"true",role:"separator",children:r}),t[0]=e,t[1]=r,t[2]=o,t[3]=i):i=t[3],i});yu.displayName="BreadcrumbSeparator";const Nb={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg",xl:"px-8 py-4 text-xl"},Pb={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},Vb=(s,e)=>{const t=e==="faded"||e==="light"?"ghost":e==="bordered"||e==="outlined"?"outline":e;return{default:{solid:"bg-gray-600 hover:bg-gray-700 active:bg-gray-800 text-white border-gray-600 hover:border-gray-700 dark:bg-gray-500 dark:hover:bg-gray-600 dark:active:bg-gray-700 dark:border-gray-500 dark:hover:border-gray-600",outline:"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-600 border-2 border-gray-600 hover:border-gray-700 dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 dark:border-gray-400 dark:hover:border-gray-300",ghost:"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-600 border-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300",link:"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-600 border-transparent underline hover:no-underline dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300",gradient:"bg-gradient-to-r from-gray-500 to-gray-600 hover:from-gray-600 hover:to-gray-700 text-white border-transparent dark:from-gray-600 dark:to-gray-700 dark:hover:from-gray-700 dark:hover:to-gray-800"},primary:{solid:"bg-blue-600 hover:bg-blue-700 active:bg-blue-800 text-white border-blue-600 hover:border-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600 dark:active:bg-blue-700 dark:border-blue-500 dark:hover:border-blue-600",outline:"bg-transparent hover:bg-blue-50 active:bg-blue-100 text-blue-600 border-2 border-blue-600 hover:border-blue-700 dark:hover:bg-blue-900/30 dark:active:bg-blue-900/50 dark:text-blue-400 dark:border-blue-400 dark:hover:border-blue-300",ghost:"bg-transparent hover:bg-blue-100 active:bg-blue-200 text-blue-600 border-transparent dark:hover:bg-blue-900/30 dark:active:bg-blue-900/50 dark:text-blue-400",link:"bg-transparent hover:bg-blue-50 active:bg-blue-100 text-blue-600 border-transparent underline hover:no-underline dark:hover:bg-blue-900/30 dark:active:bg-blue-900/50 dark:text-blue-400",gradient:"bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white border-transparent dark:from-blue-600 dark:to-blue-700 dark:hover:from-blue-700 dark:hover:to-blue-800"},secondary:{solid:"bg-purple-600 hover:bg-purple-700 active:bg-purple-800 text-white border-purple-600 hover:border-purple-700 dark:bg-purple-500 dark:hover:bg-purple-600 dark:active:bg-purple-700 dark:border-purple-500 dark:hover:border-purple-600",outline:"bg-transparent hover:bg-purple-50 active:bg-purple-100 text-purple-600 border-2 border-purple-600 hover:border-purple-700 dark:hover:bg-purple-900/30 dark:active:bg-purple-900/50 dark:text-purple-400 dark:border-purple-400 dark:hover:border-purple-300",ghost:"bg-transparent hover:bg-purple-100 active:bg-purple-200 text-purple-600 border-transparent dark:hover:bg-purple-900/30 dark:active:bg-purple-900/50 dark:text-purple-400",link:"bg-transparent hover:bg-purple-50 active:bg-purple-100 text-purple-600 border-transparent underline hover:no-underline dark:hover:bg-purple-900/30 dark:active:bg-purple-900/50 dark:text-purple-400",gradient:"bg-gradient-to-r from-purple-500 to-purple-600 hover:from-purple-600 hover:to-purple-700 text-white border-transparent dark:from-purple-600 dark:to-purple-700 dark:hover:from-purple-700 dark:hover:to-purple-800"},success:{solid:"bg-green-600 hover:bg-green-700 active:bg-green-800 text-white border-green-600 hover:border-green-700 dark:bg-green-500 dark:hover:bg-green-600 dark:active:bg-green-700 dark:border-green-500 dark:hover:border-green-600",outline:"bg-transparent hover:bg-green-50 active:bg-green-100 text-green-600 border-2 border-green-600 hover:border-green-700 dark:hover:bg-green-900/30 dark:active:bg-green-900/50 dark:text-green-400 dark:border-green-400 dark:hover:border-green-300",ghost:"bg-transparent hover:bg-green-100 active:bg-green-200 text-green-600 border-transparent dark:hover:bg-green-900/30 dark:active:bg-green-900/50 dark:text-green-400",link:"bg-transparent hover:bg-green-50 active:bg-green-100 text-green-600 border-transparent underline hover:no-underline dark:hover:bg-green-900/30 dark:active:bg-green-900/50 dark:text-green-400",gradient:"bg-gradient-to-r from-green-500 to-green-600 hover:from-green-600 hover:to-green-700 text-white border-transparent dark:from-green-600 dark:to-green-700 dark:hover:from-green-700 dark:hover:to-green-800"},warning:{solid:"bg-yellow-500 hover:bg-yellow-600 active:bg-yellow-700 text-white border-yellow-500 hover:border-yellow-600 dark:bg-yellow-600 dark:hover:bg-yellow-700 dark:active:bg-yellow-800 dark:border-yellow-600 dark:hover:border-yellow-700",outline:"bg-transparent hover:bg-yellow-50 active:bg-yellow-100 text-yellow-600 border-2 border-yellow-500 hover:border-yellow-600 dark:hover:bg-yellow-900/30 dark:active:bg-yellow-900/50 dark:text-yellow-400 dark:border-yellow-400 dark:hover:border-yellow-300",ghost:"bg-transparent hover:bg-yellow-100 active:bg-yellow-200 text-yellow-600 border-transparent dark:hover:bg-yellow-900/30 dark:active:bg-yellow-900/50 dark:text-yellow-400",link:"bg-transparent hover:bg-yellow-50 active:bg-yellow-100 text-yellow-600 border-transparent underline hover:no-underline dark:hover:bg-yellow-900/30 dark:active:bg-yellow-900/50 dark:text-yellow-400",gradient:"bg-gradient-to-r from-yellow-400 to-yellow-500 hover:from-yellow-500 hover:to-yellow-600 text-white border-transparent dark:from-yellow-500 dark:to-yellow-600 dark:hover:from-yellow-600 dark:hover:to-yellow-700"},danger:{solid:"bg-red-600 hover:bg-red-700 active:bg-red-800 text-white border-red-600 hover:border-red-700 dark:bg-red-500 dark:hover:bg-red-600 dark:active:bg-red-700 dark:border-red-500 dark:hover:border-red-600",outline:"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border-2 border-red-600 hover:border-red-700 dark:hover:bg-red-900/30 dark:active:bg-red-900/50 dark:text-red-400 dark:border-red-400 dark:hover:border-red-300",ghost:"bg-transparent hover:bg-red-100 active:bg-red-200 text-red-600 border-transparent dark:hover:bg-red-900/30 dark:active:bg-red-900/50 dark:text-red-400",link:"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border-transparent underline hover:no-underline dark:hover:bg-red-900/30 dark:active:bg-red-900/50 dark:text-red-400",gradient:"bg-gradient-to-r from-red-500 to-red-600 hover:from-red-600 hover:to-red-700 text-white border-transparent dark:from-red-600 dark:to-red-700 dark:hover:from-red-700 dark:hover:to-red-800"}}[s][t]},Mb=(s=!1)=>s?"cursor-wait opacity-70 pointer-events-none":"",Ib=(s=!1)=>s?"opacity-50 cursor-not-allowed pointer-events-none":"",Eb=(s=!1)=>s?"w-full":"",Rb=s=>({default:"focus:ring-gray-500 dark:focus:ring-gray-400",primary:"focus:ring-blue-500 dark:focus:ring-blue-400",secondary:"focus:ring-purple-500 dark:focus:ring-purple-400",success:"focus:ring-green-500 dark:focus:ring-green-400",warning:"focus:ring-yellow-500 dark:focus:ring-yellow-400",danger:"focus:ring-red-500 dark:focus:ring-red-400"})[s],Db=(s=!1,e=!1,t=!1,n="primary")=>{if(s||e)return"";const a=`cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 ${Rb(n)}`,o="transition-colors duration-200 ease-in-out";return t?`${a} ${o}`:`${a} ${o}`},Bb=(s=!1)=>s?"flex [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none [&>*:not(:first-child)]:-ml-px":"flex gap-2",Lb={none:{},scale:{scale:1.05,transition:{duration:.2,ease:"easeOut"}},lift:{y:-2,scale:1.02,transition:{duration:.2,ease:"easeOut"}},bounce:{scale:[1,1.1,1.05],transition:{duration:.4,ease:"easeOut",times:[0,.6,1]}},pulse:{scale:[1,1.03,1],transition:{duration:1.5,ease:"easeInOut",repeat:1/0}},shake:{x:[-2,2,-2,2,0],transition:{duration:.4,ease:"easeInOut"}},rotate:{rotate:[0,-2,2,0],transition:{duration:.3,ease:"easeInOut"}},glow:{boxShadow:["0 0 0 0px rgba(59, 130, 246, 0)","0 0 0 4px rgba(59, 130, 246, 0.1)","0 0 20px 8px rgba(59, 130, 246, 0.15)"],transition:{duration:.3,ease:"easeOut"}}},$b={none:{},scale:{scale:.95,transition:{duration:.1,ease:"easeInOut"}},bounce:{scale:[1,.9,1.1,1],transition:{duration:.4,ease:"easeOut",times:[0,.3,.7,1]}},ripple:{scale:[1,1.05],transition:{duration:.6,ease:"easeOut"}},press:{scale:.9,y:1,transition:{duration:.1,ease:"easeInOut"}},punch:{scale:[1,1.2,1],rotate:[0,-5,5,0],transition:{duration:.4,ease:"easeOut",times:[0,.4,1]}},wiggle:{rotate:[0,-10,10,-5,5,0],transition:{duration:.5,ease:"easeInOut"}}},Ob=s=>{const e={default:"107, 114, 128",primary:"59, 130, 246",secondary:"147, 51, 234",success:"34, 197, 94",warning:"234, 179, 8",danger:"239, 68, 68"};return e[s]||e.primary},zb=s=>{const e=Ob(s);return{boxShadow:[`0 0 0 0px rgba(${e}, 0)`,`0 0 0 4px rgba(${e}, 0.1)`,`0 0 20px 8px rgba(${e}, 0.15)`],transition:{duration:.3,ease:"easeOut"}}},_b={initial:{scale:1},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20}},vu=s=>{const e=ae.c(62),{children:t,className:n,ariaLabel:r,color:a,disabled:o,isLoading:i,onClick:l,type:c,size:d,variant:u,radius:f,startIcon:m,endIcon:g,fullWidth:x,disableAnimation:y,hoverAnimation:w,clickAnimation:h,"data-testid":p}=s,b=n===void 0?"":n,S=a===void 0?"primary":a,C=o===void 0?!1:o,v=i===void 0?!1:i,T=c===void 0?"button":c,A=d===void 0?"md":d,E=u===void 0?"solid":u,R=f===void 0?"md":f,L=x===void 0?!1:x,D=y===void 0?!1:y,V=w===void 0?"scale":w,P=h===void 0?"scale":h,[I,M]=j.useState(!1),N=Nb[A],B=Pb[R];let $;e[0]!==S||e[1]!==E?($=Vb(S,E),e[0]=S,e[1]=E,e[2]=$):$=e[2];const _=$;let O;e[3]!==v?(O=Mb(v),e[3]=v,e[4]=O):O=e[4];const z=O;let F;e[5]!==C?(F=Ib(C),e[5]=C,e[6]=F):F=e[6];const W=F;let H;e[7]!==L?(H=Eb(L),e[7]=L,e[8]=H):H=e[8];const K=H;let G;e[9]!==S||e[10]!==D||e[11]!==C||e[12]!==v?(G=Db(C,v,D,S),e[9]=S,e[10]=D,e[11]=C,e[12]=v,e[13]=G):G=e[13];const X=G;let U;e[14]!==b||e[15]!==W||e[16]!==K||e[17]!==X||e[18]!==z||e[19]!==B||e[20]!==N||e[21]!==_?(U=["inline-flex items-center justify-center font-medium border",N,B,_,z,W,K,X,b].filter(Boolean),e[14]=b,e[15]=W,e[16]=K,e[17]=X,e[18]=z,e[19]=B,e[20]=N,e[21]=_,e[22]=U):U=e[22];const Z=U.join(" ");let q;e[23]!==S||e[24]!==D||e[25]!==V?(q=D?{}:V==="glow"?zb(S):Lb[V],e[23]=S,e[24]=D,e[25]=V,e[26]=q):q=e[26];const Q=q;let J;e[27]!==P||e[28]!==D?(J=D?{}:$b[P],e[27]=P,e[28]=D,e[29]=J):J=e[29];const Y=J;let ne;e[30]!==C||e[31]!==v||e[32]!==l?(ne=()=>{C||v||(M(!0),setTimeout(()=>M(!1),300),l?.())},e[30]=C,e[31]=v,e[32]=l,e[33]=ne):ne=e[33];const se=ne,ee=C||v;let re;e[34]!==C||e[35]!==Q||e[36]!==v?(re=C||v?{}:Q,e[34]=C,e[35]=Q,e[36]=v,e[37]=re):re=e[37];let le;e[38]!==Y||e[39]!==I?(le=I?Y:{},e[38]=Y,e[39]=I,e[40]=le):le=e[40];let ce;e[41]!==m?(ce=m&&k.jsx(Ja,{position:"start",children:m}),e[41]=m,e[42]=ce):ce=e[42];let oe;e[43]!==t?(oe=k.jsx(xu,{children:t}),e[43]=t,e[44]=oe):oe=e[44];let te;e[45]!==g?(te=g&&k.jsx(Ja,{position:"end",children:g}),e[45]=g,e[46]=te):te=e[46];let ie;e[47]!==v?(ie=v&&k.jsx(pe.div,{className:"ml-2",initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{duration:.2},children:k.jsx(pe.div,{className:"rounded-full h-4 w-4 border-b-2 border-current",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}})}),e[47]=v,e[48]=ie):ie=e[48];let de;return e[49]!==r||e[50]!==Z||e[51]!==p||e[52]!==se||e[53]!==ee||e[54]!==re||e[55]!==le||e[56]!==ce||e[57]!==oe||e[58]!==te||e[59]!==ie||e[60]!==T?(de=k.jsxs(pe.button,{"aria-label":r,disabled:ee,className:Z,onClick:se,type:T,"data-testid":p,..._b,whileHover:re,animate:le,children:[ce,oe,te,ie]}),e[49]=r,e[50]=Z,e[51]=p,e[52]=se,e[53]=ee,e[54]=re,e[55]=le,e[56]=ce,e[57]=oe,e[58]=te,e[59]=ie,e[60]=T,e[61]=de):de=e[61],de},Fb=s=>{const e=ae.c(24),{children:t,className:n,size:r,color:a,variant:o,radius:i,isAttached:l,disabled:c,disableAnimation:d,"data-testid":u}=s,f=n===void 0?"":n,m=r===void 0?"md":r,g=a===void 0?"primary":a,x=o===void 0?"solid":o,y=i===void 0?"md":i,w=l===void 0?!1:l,h=c===void 0?!1:c,p=d===void 0?!1:d;let b;e[0]!==w?(b=Bb(w),e[0]=w,e[1]=b):b=e[1];const S=b;let C;e[2]!==f||e[3]!==S?(C=[S,f].filter(Boolean),e[2]=f,e[3]=S,e[4]=C):C=e[4];const v=C.join(" ");let T;if(e[5]!==t||e[6]!==g||e[7]!==p||e[8]!==h||e[9]!==y||e[10]!==m||e[11]!==x){let R;e[13]!==g||e[14]!==p||e[15]!==h||e[16]!==y||e[17]!==m||e[18]!==x?(R=L=>j.isValidElement(L)&&L.type===vu?j.cloneElement(L,{size:L.props.size||m,color:L.props.color||g,variant:L.props.variant||x,radius:L.props.radius||y,disabled:L.props.disabled||h,disableAnimation:L.props.disableAnimation??p}):L,e[13]=g,e[14]=p,e[15]=h,e[16]=y,e[17]=m,e[18]=x,e[19]=R):R=e[19],T=j.Children.map(t,R),e[5]=t,e[6]=g,e[7]=p,e[8]=h,e[9]=y,e[10]=m,e[11]=x,e[12]=T}else T=e[12];const A=T;let E;return e[20]!==v||e[21]!==u||e[22]!==A?(E=k.jsx("div",{className:v,"data-testid":u,children:A}),e[20]=v,e[21]=u,e[22]=A,e[23]=E):E=e[23],E},xu=s=>{const e=ae.c(4),{children:t,className:n,"data-testid":r}=s,o=`${n===void 0?"":n}`;let i;return e[0]!==t||e[1]!==r||e[2]!==o?(i=k.jsx("span",{className:o,"data-testid":r,children:t}),e[0]=t,e[1]=r,e[2]=o,e[3]=i):i=e[3],i},Ja=s=>{const e=ae.c(4),{children:t,className:n,position:r,"data-testid":a}=s,c=`inline-flex items-center ${(r===void 0?"start":r)==="start"?"mr-2":"ml-2"} ${n===void 0?"":n}`;let d;return e[0]!==t||e[1]!==a||e[2]!==c?(d=k.jsx("span",{className:c,"data-testid":a,children:t}),e[0]=t,e[1]=a,e[2]=c,e[3]=d):d=e[3],d},Wb=s=>{const e=ae.c(4),{children:t,className:n,"data-testid":r}=s,o=`${n===void 0?"":n}`;let i;return e[0]!==t||e[1]!==r||e[2]!==o?(i=k.jsx("span",{className:o,"data-testid":r,children:t}),e[0]=t,e[1]=r,e[2]=o,e[3]=i):i=e[3],i},Gb={sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"},Ub={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},Hb=(s,e)=>({default:{elevated:"bg-white shadow-lg hover:shadow-xl border-gray-200 dark:bg-gray-800 dark:border-gray-600 dark:shadow-gray-900/20 dark:hover:shadow-gray-900/30",bordered:"bg-white border-2 border-gray-200 hover:border-gray-300 dark:bg-gray-800 dark:border-gray-600 dark:hover:border-gray-500",shadow:"bg-white shadow-md hover:shadow-lg dark:bg-gray-800 dark:shadow-gray-900/20 dark:hover:shadow-gray-900/30",flat:"bg-gray-50 hover:bg-gray-100 dark:bg-gray-900 dark:hover:bg-gray-800"},primary:{elevated:"bg-blue-50 shadow-lg hover:shadow-xl border-blue-200 dark:bg-blue-900/20 dark:border-blue-700 dark:shadow-blue-900/30 dark:hover:shadow-blue-900/40",bordered:"bg-blue-50 border-2 border-blue-200 hover:border-blue-300 dark:bg-blue-900/20 dark:border-blue-700 dark:hover:border-blue-600",shadow:"bg-blue-50 shadow-md shadow-blue-100 hover:shadow-lg hover:shadow-blue-200 dark:bg-blue-900/20 dark:shadow-blue-900/30 dark:hover:shadow-blue-900/40",flat:"bg-blue-100 hover:bg-blue-200 dark:bg-blue-900/30 dark:hover:bg-blue-900/40"},secondary:{elevated:"bg-purple-50 shadow-lg hover:shadow-xl border-purple-200 dark:bg-purple-900/20 dark:border-purple-700 dark:shadow-purple-900/30 dark:hover:shadow-purple-900/40",bordered:"bg-purple-50 border-2 border-purple-200 hover:border-purple-300 dark:bg-purple-900/20 dark:border-purple-700 dark:hover:border-purple-600",shadow:"bg-purple-50 shadow-md shadow-purple-100 hover:shadow-lg hover:shadow-purple-200 dark:bg-purple-900/20 dark:shadow-purple-900/30 dark:hover:shadow-purple-900/40",flat:"bg-purple-100 hover:bg-purple-200 dark:bg-purple-900/30 dark:hover:bg-purple-900/40"},success:{elevated:"bg-green-50 shadow-lg hover:shadow-xl border-green-200 dark:bg-green-900/20 dark:border-green-700 dark:shadow-green-900/30 dark:hover:shadow-green-900/40",bordered:"bg-green-50 border-2 border-green-200 hover:border-green-300 dark:bg-green-900/20 dark:border-green-700 dark:hover:border-green-600",shadow:"bg-green-50 shadow-md shadow-green-100 hover:shadow-lg hover:shadow-green-200 dark:bg-green-900/20 dark:shadow-green-900/30 dark:hover:shadow-green-900/40",flat:"bg-green-100 hover:bg-green-200 dark:bg-green-900/30 dark:hover:bg-green-900/40"},warning:{elevated:"bg-yellow-50 shadow-lg hover:shadow-xl border-yellow-200 dark:bg-yellow-900/20 dark:border-yellow-700 dark:shadow-yellow-900/30 dark:hover:shadow-yellow-900/40",bordered:"bg-yellow-50 border-2 border-yellow-200 hover:border-yellow-300 dark:bg-yellow-900/20 dark:border-yellow-700 dark:hover:border-yellow-600",shadow:"bg-yellow-50 shadow-md shadow-yellow-100 hover:shadow-lg hover:shadow-yellow-200 dark:bg-yellow-900/20 dark:shadow-yellow-900/30 dark:hover:shadow-yellow-900/40",flat:"bg-yellow-100 hover:bg-yellow-200 dark:bg-yellow-900/30 dark:hover:bg-yellow-900/40"},danger:{elevated:"bg-red-50 shadow-lg hover:shadow-xl border-red-200 dark:bg-red-900/20 dark:border-red-700 dark:shadow-red-900/30 dark:hover:shadow-red-900/40",bordered:"bg-red-50 border-2 border-red-200 hover:border-red-300 dark:bg-red-900/20 dark:border-red-700 dark:hover:border-red-600",shadow:"bg-red-50 shadow-md shadow-red-100 hover:shadow-lg hover:shadow-red-200 dark:bg-red-900/20 dark:shadow-red-900/30 dark:hover:shadow-red-900/40",flat:"bg-red-100 hover:bg-red-200 dark:bg-red-900/30 dark:hover:bg-red-900/40"}})[s][e],Kb=(s=!1,e=!1,t=!1)=>{let n="";return t?"opacity-50 cursor-not-allowed":(s&&(n+="cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:focus:ring-blue-400 dark:focus:ring-offset-gray-800 "),(e||s)&&(n+="transition-all duration-200 ease-in-out "),n.trim())},Xb=s=>{const e=ae.c(20),{children:t,className:n,size:r,variant:a,color:o,radius:i,isClickable:l,isDisabled:c,isHoverable:d,onClick:u,"data-testid":f}=s,m=n===void 0?"":n,g=r===void 0?"md":r,x=a===void 0?"elevated":a,y=o===void 0?"default":o,w=i===void 0?"lg":i,h=l===void 0?!1:l,p=c===void 0?!1:c,b=d===void 0?!1:d,S=Gb[g],C=Ub[w];let v;e[0]!==y||e[1]!==x?(v=Hb(y,x),e[0]=y,e[1]=x,e[2]=v):v=e[2];const T=v;let A;e[3]!==h||e[4]!==p||e[5]!==b?(A=Kb(h,b,p),e[3]=h,e[4]=p,e[5]=b,e[6]=A):A=e[6];const E=A;let R;e[7]!==m||e[8]!==E||e[9]!==C||e[10]!==S||e[11]!==T?(R=["relative overflow-hidden",S,C,T,E,m].filter(Boolean),e[7]=m,e[8]=E,e[9]=C,e[10]=S,e[11]=T,e[12]=R):R=e[12];const L=R.join(" "),D=h?"button":"div",V=h&&!p?u:void 0,P=h&&p;let I;return e[13]!==D||e[14]!==t||e[15]!==L||e[16]!==f||e[17]!==V||e[18]!==P?(I=k.jsx(D,{className:L,onClick:V,disabled:P,"data-testid":f,children:t}),e[13]=D,e[14]=t,e[15]=L,e[16]=f,e[17]=V,e[18]=P,e[19]=I):I=e[19],I},Uo={sm:{wrapper:"w-4 h-4",icon:"w-3 h-3 text-xs",label:"text-sm"},md:{wrapper:"w-5 h-5",icon:"w-4 h-4 text-sm",label:"text-base"},lg:{wrapper:"w-6 h-6",icon:"w-5 h-5 text-base",label:"text-lg"}},Yb={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},qb=(s="primary",e=!1,t=!1,n=!1)=>{if(t)return e?"bg-gray-300 border-gray-300 text-gray-500":"bg-gray-100 border-gray-300";if(n)return e?"bg-red-500 border-red-500 text-white":"bg-white border-red-500 hover:border-red-600";const r={default:{selected:"bg-gray-600 border-gray-600 text-white hover:bg-gray-700 hover:border-gray-700",unselected:"bg-white border-gray-300 hover:border-gray-400"},primary:{selected:"bg-blue-600 border-blue-600 text-white hover:bg-blue-700 hover:border-blue-700",unselected:"bg-white border-gray-300 hover:border-blue-400"},secondary:{selected:"bg-purple-600 border-purple-600 text-white hover:bg-purple-700 hover:border-purple-700",unselected:"bg-white border-gray-300 hover:border-purple-400"},success:{selected:"bg-green-600 border-green-600 text-white hover:bg-green-700 hover:border-green-700",unselected:"bg-white border-gray-300 hover:border-green-400"},warning:{selected:"bg-yellow-500 border-yellow-500 text-white hover:bg-yellow-600 hover:border-yellow-600",unselected:"bg-white border-gray-300 hover:border-yellow-400"},danger:{selected:"bg-red-600 border-red-600 text-white hover:bg-red-700 hover:border-red-700",unselected:"bg-white border-gray-300 hover:border-red-400"}};return e?r[s].selected:r[s].unselected},Zb=(s="md",e="md",t="primary",n=!1,r=!1,a=!1,o=!1)=>{const i=Uo[s].wrapper,l=Yb[e],c=qb(t,n,r,a);return["relative inline-flex items-center justify-center border-2 shrink-0",i,l,c,r?"cursor-not-allowed":"cursor-pointer focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-blue-500",!o&&!r?"transition-all duration-200 ease-in-out transform hover:scale-105 active:scale-95":"transition-colors duration-200 ease-in-out"].filter(Boolean).join(" ")},Jb=(s="md",e=!1,t=!1,n=!1)=>["absolute flex items-center justify-center",Uo[s].icon,e||t?"opacity-100 scale-100":"opacity-0 scale-75",n?"":"transition-all duration-200 ease-in-out"].filter(Boolean).join(" "),Qb=(s="md",e=!1,t=!1,n=!1)=>["ml-2 select-none",Uo[s].label,e?"text-gray-400 cursor-not-allowed":"text-gray-700",t&&n?"line-through":""].filter(Boolean).join(" "),ey=(s=!1)=>["inline-flex items-center",s?"opacity-60":""].filter(Boolean).join(" "),ty=()=>"absolute inset-0 w-full h-full opacity-0 cursor-pointer z-10",sy=s=>{const e=ae.c(77),{children:t,icon:n,value:r,name:a,size:o,color:i,radius:l,lineThrough:c,isSelected:d,defaultSelected:u,isRequired:f,isReadOnly:m,isDisabled:g,isIndeterminate:x,isInvalid:y,validationState:w,disableAnimation:h,className:p,classNames:b,onChange:S,onValueChange:C,"data-testid":v}=s,T=o===void 0?"md":o,A=i===void 0?"primary":i,E=l===void 0?"md":l,R=c===void 0?!1:c,L=u===void 0?!1:u,D=f===void 0?!1:f,V=m===void 0?!1:m,P=g===void 0?!1:g,I=x===void 0?!1:x,M=y===void 0?!1:y,N=h===void 0?!1:h,B=p===void 0?"":p,[$,_]=j.useState(L),O=j.useRef(null),z=d!==void 0,F=z?d:$,W=M||w==="invalid";let H;e[0]!==z||e[1]!==P||e[2]!==V||e[3]!==S||e[4]!==C?(H=Xe=>{if(P||V)return;const Ze=Xe.target.checked;z||_(Ze),S?.(Xe),C?.(Ze)},e[0]=z,e[1]=P,e[2]=V,e[3]=S,e[4]=C,e[5]=H):H=e[5];const K=H;let G;e[6]!==P?(G=ey(P),e[6]=P,e[7]=G):G=e[7];const X=G,U=b?.base;let Z;e[8]!==X||e[9]!==B||e[10]!==U?(Z=[X,U,B].filter(Boolean),e[8]=X,e[9]=B,e[10]=U,e[11]=Z):Z=e[11];const q=Z.join(" "),Q=F||I;let J;e[12]!==A||e[13]!==W||e[14]!==N||e[15]!==P||e[16]!==E||e[17]!==T||e[18]!==Q?(J=Zb(T,E,A,Q,P,W,N),e[12]=A,e[13]=W,e[14]=N,e[15]=P,e[16]=E,e[17]=T,e[18]=Q,e[19]=J):J=e[19];const Y=J,ne=b?.wrapper;let se;e[20]!==ne||e[21]!==Y?(se=[Y,ne].filter(Boolean),e[20]=ne,e[21]=Y,e[22]=se):se=e[22];const ee=se.join(" ");let re;e[23]!==N||e[24]!==I||e[25]!==F||e[26]!==T?(re=Jb(T,F,I,N),e[23]=N,e[24]=I,e[25]=F,e[26]=T,e[27]=re):re=e[27];const le=re,ce=b?.icon;let oe;e[28]!==le||e[29]!==ce?(oe=[le,ce].filter(Boolean),e[28]=le,e[29]=ce,e[30]=oe):oe=e[30];const te=oe.join(" ");let ie;e[31]!==P||e[32]!==F||e[33]!==R||e[34]!==T?(ie=Qb(T,P,R,F),e[31]=P,e[32]=F,e[33]=R,e[34]=T,e[35]=ie):ie=e[35];const de=ie,me=b?.label;let ye;e[36]!==de||e[37]!==me?(ye=[de,me].filter(Boolean),e[36]=de,e[37]=me,e[38]=ye):ye=e[38];const ve=ye.join(" ");let we;e[39]===Symbol.for("react.memo_cache_sentinel")?(we=ty(),e[39]=we):we=e[39];const xe=we,ue=b?.hiddenInput;let he;e[40]!==ue?(he=[xe,ue].filter(Boolean),e[40]=ue,e[41]=he):he=e[41];const fe=he.join(" ");let Ce;e[42]!==n||e[43]!==te||e[44]!==v||e[45]!==N||e[46]!==I||e[47]!==F?(Ce=()=>n?k.jsx(n,{isSelected:F,isIndeterminate:I,disableAnimation:N,className:te,"data-testid":`${v}-custom-icon`}):k.jsx(ry,{isSelected:F,isIndeterminate:I,disableAnimation:N,className:te,"data-testid":`${v}-icon`}),e[42]=n,e[43]=te,e[44]=v,e[45]=N,e[46]=I,e[47]=F,e[48]=Ce):Ce=e[48];const Te=Ce,Ne=`${v}-wrapper`,Ae=F||I,Oe=I?"mixed":F,Ie=`${v}-input`;let De;e[49]!==fe||e[50]!==W||e[51]!==K||e[52]!==P||e[53]!==V||e[54]!==D||e[55]!==a||e[56]!==Ae||e[57]!==Oe||e[58]!==Ie||e[59]!==r?(De=k.jsx("input",{ref:O,type:"checkbox",value:r,name:a,checked:Ae,onChange:K,disabled:P,readOnly:V,required:D,"aria-invalid":W,"aria-checked":Oe,className:fe,"data-testid":Ie}),e[49]=fe,e[50]=W,e[51]=K,e[52]=P,e[53]=V,e[54]=D,e[55]=a,e[56]=Ae,e[57]=Oe,e[58]=Ie,e[59]=r,e[60]=De):De=e[60];let Be;e[61]!==Te?(Be=Te(),e[61]=Te,e[62]=Be):Be=e[62];let Ee;e[63]!==ee||e[64]!==Ne||e[65]!==De||e[66]!==Be?(Ee=k.jsxs(ny,{className:ee,"data-testid":Ne,children:[De,Be]}),e[63]=ee,e[64]=Ne,e[65]=De,e[66]=Be,e[67]=Ee):Ee=e[67];let ze;e[68]!==t||e[69]!==ve||e[70]!==v?(ze=t&&k.jsx("span",{className:ve,"data-testid":`${v}-label`,children:t}),e[68]=t,e[69]=ve,e[70]=v,e[71]=ze):ze=e[71];let We;return e[72]!==q||e[73]!==v||e[74]!==Ee||e[75]!==ze?(We=k.jsxs("label",{className:q,"data-testid":v,children:[Ee,ze]}),e[72]=q,e[73]=v,e[74]=Ee,e[75]=ze,e[76]=We):We=e[76],We},ny=s=>{const e=ae.c(4),{children:t,className:n,"data-testid":r}=s,a=n===void 0?"":n;let o;return e[0]!==t||e[1]!==a||e[2]!==r?(o=k.jsx("div",{className:a,"data-testid":r,children:t}),e[0]=t,e[1]=a,e[2]=r,e[3]=o):o=e[3],o},ry=s=>{const e=ae.c(8),{isSelected:t,isIndeterminate:n,className:r,"data-testid":a}=s,o=t===void 0?!1:t,i=n===void 0?!1:n,l=r===void 0?"":r;if(i){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=k.jsx("rect",{x:"6",y:"11",width:"12",height:"2",rx:"1"}),e[0]=c):c=e[0];let d;return e[1]!==l||e[2]!==a?(d=k.jsx("svg",{className:l,viewBox:"0 0 24 24",fill:"currentColor","data-testid":a,children:c}),e[1]=l,e[2]=a,e[3]=d):d=e[3],d}if(o){let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=k.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"}),e[4]=c):c=e[4];let d;return e[5]!==l||e[6]!==a?(d=k.jsx("svg",{className:l,viewBox:"0 0 24 24",fill:"currentColor","data-testid":a,children:c}),e[5]=l,e[6]=a,e[7]=d):d=e[7],d}return null},ay=ke({slots:{base:["max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap","px-1","h-7","text-small","rounded-full","subpixel-antialiased","transition-colors","cursor-default","tap-highlight-transparent"],content:["flex-1","text-inherit","font-normal","px-2"],dot:["w-2","h-2","ml-1","rounded-full"],avatar:["flex","shrink-0","w-5","h-5","ml-1"],closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","cursor-pointer","active:opacity-disabled","hover:opacity-100","rounded-full","flex","items-center","justify-center","box-border","w-5","h-5","mr-1"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-small"},shadow:{base:"shadow-lg"},dot:{base:"border-medium border-default bg-transparent"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"w-4 h-4",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"w-5 h-5",avatar:"w-5 h-5"},lg:{base:"px-1 h-8 text-medium",content:"px-2",closeButton:"w-6 h-6",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"},false:{}},isCloseButtonVisible:{true:{},false:{}}},compoundVariants:[{variant:"solid",color:"default",class:{base:"bg-default text-default-foreground"}},{variant:"solid",color:"primary",class:{base:"bg-primary text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:"bg-secondary text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:"bg-success text-success-foreground"}},{variant:"solid",color:"warning",class:{base:"bg-warning text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:"bg-danger text-danger-foreground"}},{variant:"bordered",color:"default",class:{base:"border-default text-foreground"}},{variant:"bordered",color:"primary",class:{base:"border-primary text-primary"}},{variant:"bordered",color:"secondary",class:{base:"border-secondary text-secondary"}},{variant:"bordered",color:"success",class:{base:"border-success text-success"}},{variant:"bordered",color:"warning",class:{base:"border-warning text-warning"}},{variant:"bordered",color:"danger",class:{base:"border-danger text-danger"}},{variant:"light",color:"default",class:{base:"text-default-600"}},{variant:"light",color:"primary",class:{base:"text-primary"}},{variant:"light",color:"secondary",class:{base:"text-secondary"}},{variant:"light",color:"success",class:{base:"text-success"}},{variant:"light",color:"warning",class:{base:"text-warning"}},{variant:"light",color:"danger",class:{base:"text-danger"}},{variant:"flat",color:"default",class:{base:"bg-default/20 text-default-600"}},{variant:"flat",color:"primary",class:{base:"bg-primary/20 text-primary-600"}},{variant:"flat",color:"secondary",class:{base:"bg-secondary/20 text-secondary-600"}},{variant:"flat",color:"success",class:{base:"bg-success/20 text-success-600 dark:text-success-500"}},{variant:"flat",color:"warning",class:{base:"bg-warning/20 text-warning-600 dark:text-warning-500"}},{variant:"flat",color:"danger",class:{base:"bg-danger/20 text-danger-500"}},{variant:"faded",color:"default",class:{base:"border-default bg-default-50 text-default-foreground"}},{variant:"faded",color:"primary",class:{base:"border-primary bg-primary-50 text-primary-600"}},{variant:"faded",color:"secondary",class:{base:"border-secondary bg-secondary-50 text-secondary-600"}},{variant:"faded",color:"success",class:{base:"border-success bg-success-50 text-success-600 dark:text-success-500"}},{variant:"faded",color:"warning",class:{base:"border-warning bg-warning-50 text-warning-600 dark:text-warning-500"}},{variant:"faded",color:"danger",class:{base:"border-danger bg-danger-50 text-danger-500"}},{variant:"shadow",color:"default",class:{base:"shadow-lg shadow-default/50 bg-default text-default-foreground"}},{variant:"shadow",color:"primary",class:{base:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{base:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground"}},{variant:"shadow",color:"success",class:{base:"shadow-lg shadow-success/40 bg-success text-success-foreground"}},{variant:"shadow",color:"warning",class:{base:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground"}},{variant:"shadow",color:"danger",class:{base:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"}},{variant:"dot",color:"default",class:{base:"text-default-foreground",dot:"bg-default-400"}},{variant:"dot",color:"primary",class:{base:"text-foreground",dot:"bg-primary"}},{variant:"dot",color:"secondary",class:{base:"text-foreground",dot:"bg-secondary"}},{variant:"dot",color:"success",class:{base:"text-foreground",dot:"bg-success"}},{variant:"dot",color:"warning",class:{base:"text-foreground",dot:"bg-warning"}},{variant:"dot",color:"danger",class:{base:"text-foreground",dot:"bg-danger"}}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1,isCloseButtonVisible:!1}}),oy=s=>{const e=ae.c(3),{className:t}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=k.jsx("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:n}),e[1]=t,e[2]=r):r=e[2],r},wu=j.forwardRef(({children:s,variant:e="solid",color:t="default",size:n="md",radius:r="full",avatar:a,startContent:o,endContent:i,isDisabled:l=!1,classNames:c,className:d,onClose:u,...f},m)=>{const g=!!u,x=j.useMemo(()=>ay({variant:e,color:t,size:n,radius:r,isDisabled:l,isCloseButtonVisible:g}),[e,t,n,r,l,g]),y=()=>e!=="dot"?null:k.jsx("span",{className:je(x.dot(),c?.dot),"aria-hidden":"true"}),w=()=>a?k.jsx("span",{className:je(x.avatar(),c?.avatar),children:a}):null,h=()=>o||null,p=()=>u?k.jsx("button",{type:"button",className:je(x.closeButton(),c?.closeButton),onClick:u,"aria-label":"Close",disabled:l,children:i||k.jsx(oy,{className:"w-3 h-3"})}):i||null;return k.jsxs("div",{ref:m,className:je(x.base(),c?.base,d),...f,children:[y(),w(),h(),k.jsx("span",{className:je(x.content(),c?.content),children:s}),p()]})});wu.displayName="Chip";const Ho={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},iy={none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"},ly=(s=!1)=>["relative inline-block overflow-hidden",s?"cursor-pointer transition-transform duration-300 ease-in-out hover:scale-105":""].filter(Boolean).join(" "),cy=()=>"relative overflow-hidden",dy=(s="lg",e="none",t=!1)=>{const n=Ho[s],r=iy[e];return["max-w-full h-auto object-cover",n,r,t?"opacity-0 transition-opacity duration-500 ease-in-out":"opacity-100 transition-opacity duration-500 ease-in-out"].filter(Boolean).join(" ")},uy=(s="lg")=>["absolute inset-0 w-full h-full object-cover blur-lg scale-110 opacity-30",Ho[s]].filter(Boolean).join(" "),fy=(s="lg")=>["animate-pulse bg-gray-200 dark:bg-gray-700",Ho[s]].filter(Boolean).join(" "),my=s=>{const e=ae.c(75),{src:t,srcSet:n,sizes:r,alt:a,width:o,height:i,radius:l,shadow:c,loading:d,fallbackSrc:u,isBlurred:f,isZoomed:m,removeWrapper:g,disableSkeleton:x,className:y,classNames:w,onLoad:h,onError:p,"data-testid":b}=s,S=l===void 0?"lg":l,C=c===void 0?"none":c,v=d===void 0?"lazy":d,T=f===void 0?!1:f,A=m===void 0?!1:m,E=g===void 0?!1:g,R=x===void 0?!1:x,L=y===void 0?"":y,[D,V]=j.useState(!R),[P,I]=j.useState(!1),[M,N]=j.useState(t),B=j.useRef(null);let $;e[0]!==h?($=xe=>{V(!1),I(!1),h?.(xe)},e[0]=h,e[1]=$):$=e[1];const _=$;let O;e[2]!==M||e[3]!==R||e[4]!==u||e[5]!==p?(O=()=>{I(!0),V(!1),u&&M!==u&&(N(u),V(!R)),p?.()},e[2]=M,e[3]=R,e[4]=u,e[5]=p,e[6]=O):O=e[6];const z=O;let F,W;e[7]!==M||e[8]!==R||e[9]!==P||e[10]!==t?(F=()=>{t!==M&&!P&&(N(t),V(!R),I(!1))},W=[t,M,P,R],e[7]=M,e[8]=R,e[9]=P,e[10]=t,e[11]=F,e[12]=W):(F=e[11],W=e[12]),j.useEffect(F,W);let H,K;e[13]!==R?(H=()=>{R&&V(!1)},K=[R],e[13]=R,e[14]=H,e[15]=K):(H=e[14],K=e[15]),j.useEffect(H,K);let G;e[16]!==D||e[17]!==S||e[18]!==C?(G=dy(S,C,D),e[16]=D,e[17]=S,e[18]=C,e[19]=G):G=e[19];const X=G,U=w?.img;let Z;e[20]!==L||e[21]!==X||e[22]!==U?(Z=[X,U,L].filter(Boolean),e[20]=L,e[21]=X,e[22]=U,e[23]=Z):Z=e[23];const q=Z.join(" ");let Q;e[24]!==w?.wrapper||e[25]!==b||e[26]!==R||e[27]!==i||e[28]!==D||e[29]!==S||e[30]!==o?(Q=D&&!R&&k.jsx("div",{className:`${fy(S)} ${w?.wrapper||""}`,style:{width:o,height:i},"data-testid":`${b}-skeleton`}),e[24]=w?.wrapper,e[25]=b,e[26]=R,e[27]=i,e[28]=D,e[29]=S,e[30]=o,e[31]=Q):Q=e[31];const J=Q;let Y;e[32]!==a||e[33]!==q||e[34]!==M||e[35]!==b||e[36]!==z||e[37]!==_||e[38]!==i||e[39]!==v||e[40]!==r||e[41]!==n||e[42]!==o?(Y=k.jsx("img",{ref:B,src:M,srcSet:n,sizes:r,alt:a,width:o,height:i,loading:v,className:q,onLoad:_,onError:z,"data-testid":b}),e[32]=a,e[33]=q,e[34]=M,e[35]=b,e[36]=z,e[37]=_,e[38]=i,e[39]=v,e[40]=r,e[41]=n,e[42]=o,e[43]=Y):Y=e[43];const ne=Y;let se;e[44]!==a||e[45]!==w?.blurredImg||e[46]!==M||e[47]!==b||e[48]!==P||e[49]!==T||e[50]!==D||e[51]!==S?(se=T&&!D&&!P&&k.jsx(gy,{src:M,alt:`${a} (blurred background)`,className:`${uy(S)} ${w?.blurredImg||""}`,"data-testid":`${b}-blurred`}),e[44]=a,e[45]=w?.blurredImg,e[46]=M,e[47]=b,e[48]=P,e[49]=T,e[50]=D,e[51]=S,e[52]=se):se=e[52];const ee=se;if(E){const xe=!D&≠let ue;return e[53]!==J||e[54]!==xe?(ue=k.jsxs(k.Fragment,{children:[J,xe]}),e[53]=J,e[54]=xe,e[55]=ue):ue=e[55],ue}const re=A?py:hy;let le;e[56]!==A?(le=ly(A),e[56]=A,e[57]=le):le=e[57];const ce=w?.wrapper;let oe;e[58]!==le||e[59]!==ce?(oe=[le,ce].filter(Boolean),e[58]=le,e[59]=ce,e[60]=oe):oe=e[60];const te=oe.join(" ");let ie;e[61]!==w?.zoomedWrapper||e[62]!==A?(ie=A?[cy(),w?.zoomedWrapper].filter(Boolean).join(" "):"",e[61]=w?.zoomedWrapper,e[62]=A,e[63]=ie):ie=e[63];const me=A?ie:te,ye=`${b}-wrapper`;let ve;e[64]!==ee||e[65]!==ne||e[66]!==D?(ve=!D&&k.jsxs(k.Fragment,{children:[ee,ne]}),e[64]=ee,e[65]=ne,e[66]=D,e[67]=ve):ve=e[67];let we;return e[68]!==re||e[69]!==A||e[70]!==J||e[71]!==me||e[72]!==ye||e[73]!==ve?(we=k.jsxs(re,{className:me,isZoomed:A,"data-testid":ye,children:[J,ve]}),e[68]=re,e[69]=A,e[70]=J,e[71]=me,e[72]=ye,e[73]=ve,e[74]=we):we=e[74],we},hy=s=>{const e=ae.c(4),{children:t,className:n,"data-testid":r}=s,a=n===void 0?"":n;let o;return e[0]!==t||e[1]!==a||e[2]!==r?(o=k.jsx("div",{className:a,"data-testid":r,children:t}),e[0]=t,e[1]=a,e[2]=r,e[3]=o):o=e[3],o},py=s=>{const e=ae.c(4),{children:t,className:n,"data-testid":r}=s,a=n===void 0?"":n;let o;return e[0]!==t||e[1]!==a||e[2]!==r?(o=k.jsx("div",{className:a,"data-testid":r,children:t}),e[0]=t,e[1]=a,e[2]=r,e[3]=o):o=e[3],o},gy=s=>{const e=ae.c(5),{src:t,alt:n,className:r,"data-testid":a}=s,o=r===void 0?"":r;let i;return e[0]!==n||e[1]!==o||e[2]!==a||e[3]!==t?(i=k.jsx("img",{src:t,alt:n,className:o,"aria-hidden":"true","data-testid":a}),e[0]=n,e[1]=o,e[2]=a,e[3]=t,e[4]=i):i=e[4],i},by=(s=!0,e=!1,t="inside")=>{const n=["group","flex","flex-col"];return s&&n.push("w-full"),e&&n.push("opacity-disabled","pointer-events-none"),(t==="outside"||t==="outside-left")&&n.push("gap-2"),n.join(" ")},yy=(s="inside")=>{const e=["flex"];return s==="outside-left"?e.push("flex-row","items-center","gap-4"):e.push("flex-col","gap-2"),e.join(" ")},vy=(s="md",e="default",t="inside",n=!1,r=!1)=>{const a=["select-none","font-medium","transition-colors","duration-200"],o={sm:"text-xs",md:"text-sm",lg:"text-base"};if(a.push(o[s]),r)a.push("text-danger");else{const i={default:"text-foreground-600",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"};a.push(i[e])}if(t==="inside"){a.push("absolute","origin-top-left","left-3","pointer-events-none","transform-gpu","transition-all","duration-200","ease-out","group-data-[filled=true]:scale-85","group-data-[filled=true]:-translate-y-1.5","group-data-[focus=true]:scale-85","group-data-[focus=true]:-translate-y-1.5");const i={sm:"top-1.5",md:"top-2.5",lg:"top-3.5"};a.push(i[s])}else t==="outside-left"&&a.push("flex-shrink-0","w-32");return n&&a.push("after:content-['*']","after:text-danger","after:ml-0.5"),a.join(" ")},xy=(s="flat",e="default",t="md",n="md",r=!1,a=!1,o=!1)=>{const i=["relative","inline-flex","items-center","w-full","transition-all","duration-200","ease-in-out","group-data-[focus=true]:z-10"],l={sm:"h-8 min-h-8 px-2.5",md:"h-10 min-h-10 px-3",lg:"h-12 min-h-12 px-4"};i.push(l[t]);const c={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"};if(i.push(c[n]),a)switch(s){case"flat":i.push("bg-danger-50","hover:bg-danger-100");break;case"bordered":i.push("border-2","border-danger","hover:border-danger-hover");break;case"faded":i.push("bg-danger-50","border-2","border-danger-200","hover:border-danger");break;case"underlined":i.push("border-b-2","border-danger","hover:border-danger-hover");break}else switch(s){case"flat":const d={default:"bg-default-100 hover:bg-default-200",primary:"bg-primary-50 hover:bg-primary-100",secondary:"bg-secondary-50 hover:bg-secondary-100",success:"bg-success-50 hover:bg-success-100",warning:"bg-warning-50 hover:bg-warning-100",danger:"bg-danger-50 hover:bg-danger-100"};i.push(d[e]);break;case"bordered":if(i.push("border-2"),r){const f={default:"border-default-400",primary:"border-primary",secondary:"border-secondary",success:"border-success",warning:"border-warning",danger:"border-danger"};i.push(f[e])}else i.push("border-default-200","hover:border-default-400");break;case"faded":const u={default:"bg-default-100 border-2 border-default-200 hover:border-default-400",primary:"bg-primary-50 border-2 border-primary-200 hover:border-primary",secondary:"bg-secondary-50 border-2 border-secondary-200 hover:border-secondary",success:"bg-success-50 border-2 border-success-200 hover:border-success",warning:"bg-warning-50 border-2 border-warning-200 hover:border-warning",danger:"bg-danger-50 border-2 border-danger-200 hover:border-danger"};i.push(u[e]);break;case"underlined":if(i.push("border-b-2","rounded-none"),r){const f={default:"border-default-400",primary:"border-primary",secondary:"border-secondary",success:"border-success",warning:"border-warning",danger:"border-danger"};i.push(f[e])}else i.push("border-default-300","hover:border-default-400");break}return o&&i.push("opacity-50","cursor-not-allowed"),i.join(" ")},wy=()=>["inline-flex","items-center","w-full","gap-1.5","h-full"].join(" "),Cy=(s="md",e="inside")=>{const t=["w-full","font-normal","bg-transparent","outline-none","placeholder:text-foreground-500","focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5"],n={sm:"text-sm",md:"text-sm",lg:"text-base"};return t.push(n[s]),e==="inside"&&t.push("group-data-[has-label=true]:pt-4"),t.join(" ")},ky=(s="md")=>{const e=["p-1","rounded-full","text-foreground-400","hover:text-foreground-600","hover:bg-default-100","active:bg-default-200","transition-all","duration-150","cursor-pointer","flex-shrink-0"],t={sm:"w-4 h-4 text-xs",md:"w-5 h-5 text-sm",lg:"w-6 h-6 text-base"};return e.push(t[s]),e.join(" ")},Sy=()=>["flex","flex-col","gap-1.5","px-1"].join(" "),Ty=(s="md")=>{const e=["text-foreground-400"],t={sm:"text-xs",md:"text-sm",lg:"text-sm"};return e.push(t[s]),e.join(" ")},Ay=(s="md")=>{const e=["text-danger"],t={sm:"text-xs",md:"text-sm",lg:"text-sm"};return e.push(t[s]),e.join(" ")},jy=(s="md")=>{const e=["flex-shrink-0","text-foreground-400"],t={sm:"text-sm",md:"text-base",lg:"text-lg"};return e.push(t[s]),e.join(" ")},Ny=(s,e)=>{const t=[];if(e.isRequired&&(!s||s.trim().length===0)&&t.push("This field is required"),!s||s.trim().length===0)return{isValid:t.length===0,errors:t};if(e.minLength&&s.length<e.minLength&&t.push(`Minimum length is ${e.minLength} characters`),e.maxLength&&s.length>e.maxLength&&t.push(`Maximum length is ${e.maxLength} characters`),e.pattern&&(new RegExp(e.pattern).test(s)||t.push("Invalid format")),e.type==="email"&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)||t.push("Please enter a valid email address")),e.type==="url")try{new URL(s)}catch{t.push("Please enter a valid URL")}if(e.customValidate){const n=e.customValidate(s);n!==!0&&n!==null&&n!==void 0&&(Array.isArray(n)?t.push(...n):typeof n=="string"&&t.push(n))}return{isValid:t.length===0,errors:t}},Cu=j.forwardRef((s,e)=>{const t=ae.c(253);let n,r,a,o,i,l,c,d,u,f,m,g,x,y,w,h,p,b,S,C,v,T,A,E,R,L,D,V,P,I,M,N,B,$,_,O,z,F,W,H,K;t[0]!==s?({label:g,placeholder:A,description:u,errorMessage:m,startContent:R,endContent:f,value:K,defaultValue:d,variant:L,color:N,size:B,radius:$,labelPlacement:_,fullWidth:O,type:z,minLength:y,maxLength:x,pattern:T,isRequired:F,isDisabled:W,isReadOnly:D,isInvalid:V,isClearable:P,disableAnimation:I,classNames:l,className:i,validate:H,validationBehavior:M,baseRef:o,onChange:h,onValueChange:v,onClear:p,onFocus:b,onBlur:w,onKeyDown:S,onKeyUp:C,"data-testid":c,"aria-label":r,"aria-labelledby":a,"aria-describedby":n,...E}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=i,t[6]=l,t[7]=c,t[8]=d,t[9]=u,t[10]=f,t[11]=m,t[12]=g,t[13]=x,t[14]=y,t[15]=w,t[16]=h,t[17]=p,t[18]=b,t[19]=S,t[20]=C,t[21]=v,t[22]=T,t[23]=A,t[24]=E,t[25]=R,t[26]=L,t[27]=D,t[28]=V,t[29]=P,t[30]=I,t[31]=M,t[32]=N,t[33]=B,t[34]=$,t[35]=_,t[36]=O,t[37]=z,t[38]=F,t[39]=W,t[40]=H,t[41]=K):(n=t[1],r=t[2],a=t[3],o=t[4],i=t[5],l=t[6],c=t[7],d=t[8],u=t[9],f=t[10],m=t[11],g=t[12],x=t[13],y=t[14],w=t[15],h=t[16],p=t[17],b=t[18],S=t[19],C=t[20],v=t[21],T=t[22],A=t[23],E=t[24],R=t[25],L=t[26],D=t[27],V=t[28],P=t[29],I=t[30],M=t[31],N=t[32],B=t[33],$=t[34],_=t[35],O=t[36],z=t[37],F=t[38],W=t[39],H=t[40],K=t[41]);const G=L===void 0?"flat":L,X=N===void 0?"default":N,U=B===void 0?"md":B,Z=$===void 0?"md":$,q=_===void 0?"inside":_,Q=O===void 0?!0:O,J=z===void 0?"text":z,Y=F===void 0?!1:F,ne=W===void 0?!1:W,se=D===void 0?!1:D,ee=V===void 0?!1:V,re=P===void 0?!1:P,[le,ce]=j.useState(d||""),[oe,te]=j.useState(!1),[ie,de]=j.useState(!1);let me;t[42]===Symbol.for("react.memo_cache_sentinel")?(me=[],t[42]=me):me=t[42];const[ye,ve]=j.useState(me),we=j.useRef(null),xe=K!==void 0,ue=xe?K:le,he=ue&&ue.length>0,fe=he||oe,Ce=J==="password",Te=Ce&&ie?"text":J,Ne=H!==void 0,Ae=(ee||ye.length>0)&&!ne,Oe=`input-label-${Math.random().toString(36).substring(2,11)}`,Ie=u?`input-description-${Math.random().toString(36).substring(2,11)}`:void 0,De=Ae?`input-error-${Math.random().toString(36).substring(2,11)}`:void 0;let Be,Ee;t[43]!==Ne||t[44]!==ue||t[45]!==Y||t[46]!==x||t[47]!==y||t[48]!==T||t[49]!==J||t[50]!==H?(Be=()=>{if(Ne||Y||y||x||T){const mt=Ny(ue,{isRequired:Y,minLength:y,maxLength:x,pattern:T,type:J,customValidate:H});ve(mt.errors)}},Ee=[ue,Y,y,x,T,J,H,Ne],t[43]=Ne,t[44]=ue,t[45]=Y,t[46]=x,t[47]=y,t[48]=T,t[49]=J,t[50]=H,t[51]=Be,t[52]=Ee):(Be=t[51],Ee=t[52]),j.useEffect(Be,Ee);let ze;t[53]!==xe||t[54]!==h||t[55]!==v?(ze=mt=>{const ei=mt.target.value;xe||ce(ei),h?.(mt),v?.(ei)},t[53]=xe,t[54]=h,t[55]=v,t[56]=ze):ze=t[56];const We=ze;let Xe;t[57]!==b?(Xe=mt=>{te(!0),b?.(mt)},t[57]=b,t[58]=Xe):Xe=t[58];const Ze=Xe;let Re;t[59]!==w?(Re=mt=>{te(!1),w?.(mt)},t[59]=w,t[60]=Re):Re=t[60];const Ye=Re;let rt;t[61]!==xe||t[62]!==p||t[63]!==v?(rt=()=>{xe||ce(""),p?.(),v?.(""),we.current?.focus()},t[61]=xe,t[62]=p,t[63]=v,t[64]=rt):rt=t[64];const Ts=rt;let Qs;t[65]!==ie?(Qs=()=>{de(!ie)},t[65]=ie,t[66]=Qs):Qs=t[66];const hr=Qs;let en;t[67]!==Q||t[68]!==ne||t[69]!==q?(en=by(Q,ne,q),t[67]=Q,t[68]=ne,t[69]=q,t[70]=en):en=t[70];const pr=en,gr=l?.base;let tn;t[71]!==pr||t[72]!==i||t[73]!==gr?(tn=[pr,gr,i].filter(Boolean),t[71]=pr,t[72]=i,t[73]=gr,t[74]=tn):tn=t[74];const br=tn.join(" ");let sn;t[75]!==q?(sn=yy(q),t[75]=q,t[76]=sn):sn=t[76];const yr=sn,vr=l?.mainWrapper;let nn;t[77]!==yr||t[78]!==vr?(nn=[yr,vr].filter(Boolean),t[77]=yr,t[78]=vr,t[79]=nn):nn=t[79];const xr=nn.join(" ");let rn;t[80]!==X||t[81]!==Y||t[82]!==q||t[83]!==Ae||t[84]!==U?(rn=vy(U,X,q,Y,Ae),t[80]=X,t[81]=Y,t[82]=q,t[83]=Ae,t[84]=U,t[85]=rn):rn=t[85];const wr=rn,Cr=l?.label;let an;t[86]!==wr||t[87]!==Cr?(an=[wr,Cr].filter(Boolean),t[86]=wr,t[87]=Cr,t[88]=an):an=t[88];const kr=an.join(" ");let on;t[89]!==X||t[90]!==ne||t[91]!==oe||t[92]!==Z||t[93]!==Ae||t[94]!==U||t[95]!==G?(on=xy(G,X,U,Z,oe,Ae,ne),t[89]=X,t[90]=ne,t[91]=oe,t[92]=Z,t[93]=Ae,t[94]=U,t[95]=G,t[96]=on):on=t[96];const Sr=on,Tr=l?.inputWrapper;let ln;t[97]!==Sr||t[98]!==Tr?(ln=[Sr,Tr].filter(Boolean),t[97]=Sr,t[98]=Tr,t[99]=ln):ln=t[99];const Ar=ln.join(" ");let cn;t[100]===Symbol.for("react.memo_cache_sentinel")?(cn=wy(),t[100]=cn):cn=t[100];const Ju=cn,jr=l?.innerWrapper;let dn;t[101]!==jr?(dn=[Ju,jr].filter(Boolean),t[101]=jr,t[102]=dn):dn=t[102];const Nr=dn.join(" ");let un;t[103]!==q||t[104]!==U?(un=Cy(U,q),t[103]=q,t[104]=U,t[105]=un):un=t[105];const Pr=un,Vr=l?.input;let fn;t[106]!==Pr||t[107]!==Vr?(fn=[Pr,Vr].filter(Boolean),t[106]=Pr,t[107]=Vr,t[108]=fn):fn=t[108];const Mr=fn.join(" ");let mn;t[109]!==U?(mn=ky(U),t[109]=U,t[110]=mn):mn=t[110];const Ir=mn,Er=l?.clearButton;let hn;t[111]!==Ir||t[112]!==Er?(hn=[Ir,Er].filter(Boolean),t[111]=Ir,t[112]=Er,t[113]=hn):hn=t[113];const Wt=hn.join(" ");let pn;t[114]===Symbol.for("react.memo_cache_sentinel")?(pn=Sy(),t[114]=pn):pn=t[114];const Qu=pn,Rr=l?.helperWrapper;let gn;t[115]!==Rr?(gn=[Qu,Rr].filter(Boolean),t[115]=Rr,t[116]=gn):gn=t[116];const Dr=gn.join(" ");let bn;t[117]!==U?(bn=Ty(U),t[117]=U,t[118]=bn):bn=t[118];const Br=bn,Lr=l?.description;let yn;t[119]!==Br||t[120]!==Lr?(yn=[Br,Lr].filter(Boolean),t[119]=Br,t[120]=Lr,t[121]=yn):yn=t[121];const $r=yn.join(" ");let vn;t[122]!==U?(vn=Ay(U),t[122]=U,t[123]=vn):vn=t[123];const Or=vn,zr=l?.errorMessage;let xn;t[124]!==Or||t[125]!==zr?(xn=[Or,zr].filter(Boolean),t[124]=Or,t[125]=zr,t[126]=xn):xn=t[126];const _r=xn.join(" ");let wn;t[127]!==U?(wn=jy(U),t[127]=U,t[128]=wn):wn=t[128];const Gt=wn;let Cn;t[129]!==m||t[130]!==he||t[131]!==ue||t[132]!==Y||t[133]!==x||t[134]!==y||t[135]!==T||t[136]!==Ae||t[137]!==ye?(Cn=()=>{if(!Ae)return null;if(typeof m=="function"){const mt={isInvalid:Ae,validationErrors:ye,validationDetails:{valid:ye.length===0,valueMissing:Y&&!he,tooShort:y?ue.length<y:void 0,tooLong:x?ue.length>x:void 0,patternMismatch:T?!new RegExp(T).test(ue):void 0}};return m(mt)}return m||(ye.length>0?ye[0]:null)},t[129]=m,t[130]=he,t[131]=ue,t[132]=Y,t[133]=x,t[134]=y,t[135]=T,t[136]=Ae,t[137]=ye,t[138]=Cn):Cn=t[138];const Fr=Cn;let kn;t[139]!==Wt||t[140]!==c||t[141]!==Ts||t[142]!==he||t[143]!==re||t[144]!==ne||t[145]!==se?(kn=()=>!re||!he||ne||se?null:k.jsx("button",{type:"button",className:Wt,onClick:Ts,tabIndex:-1,"data-testid":c?`${c}-clear-button`:void 0,children:k.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[k.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),k.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),t[139]=Wt,t[140]=c,t[141]=Ts,t[142]=he,t[143]=re,t[144]=ne,t[145]=se,t[146]=kn):kn=t[146];const Wr=kn;let Sn;t[147]!==Wt||t[148]!==c||t[149]!==hr||t[150]!==Ce||t[151]!==ie?(Sn=()=>Ce?k.jsx("button",{type:"button",className:Wt,onClick:hr,tabIndex:-1,"data-testid":c?`${c}-password-toggle`:void 0,children:ie?k.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[k.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94L17.94 17.94z"}),k.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),k.jsx("path",{d:"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19l-6.84-6.84z"})]}):k.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[k.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),k.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}):null,t[147]=Wt,t[148]=c,t[149]=hr,t[150]=Ce,t[151]=ie,t[152]=Sn):Sn=t[152];const Gr=Sn;let Tn;t[153]!==kr||t[154]!==c||t[155]!==ue||t[156]!==oe||t[157]!==Y||t[158]!==g||t[159]!==q?(Tn=()=>g?q==="inside"?k.jsxs("label",{id:Oe,className:`
|
|
9
|
+
`),()=>{x.contains(w)&&x.removeChild(w)}},[t]),f.jsx(yf,{isPresent:t,childRef:a,sizeRef:o,children:Lr.cloneElement(e,{ref:l})})}const vf=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:s,presenceAffectsLayout:a,mode:o,anchorX:i,root:l})=>{const c=ht(wf),d=h.useId();let u=!0,p=h.useMemo(()=>(u=!1,{id:d,initial:t,isPresent:r,custom:s,onExitComplete:m=>{c.set(m,!0);for(const g of c.values())if(!g)return;n&&n()},register:m=>(c.set(m,!1),()=>c.delete(m))}),[r,c,n]);return a&&u&&(p={...p}),h.useMemo(()=>{c.forEach((m,g)=>c.set(g,!1))},[r]),Lr.useEffect(()=>{!r&&!c.size&&n&&n()},[r]),o==="popLayout"&&(e=f.jsx(xf,{isPresent:r,anchorX:i,root:l,children:e})),f.jsx(Or.Provider,{value:p,children:e})};function wf(){return new Map}function _i(e=!0){const t=h.useContext(Or);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:s}=t,a=h.useId();h.useEffect(()=>{if(e)return s(a)},[e]);const o=h.useCallback(()=>e&&n&&n(a),[a,n,e]);return!r&&n?[!1,o]:[!0]}const hr=e=>e.key||"";function Aa(e){const t=[];return h.Children.forEach(e,r=>{h.isValidElement(r)&&t.push(r)}),t}const We=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:s=!0,mode:a="sync",propagate:o=!1,anchorX:i="left",root:l})=>{const[c,d]=_i(o),u=h.useMemo(()=>Aa(e),[e]),p=o&&!c?[]:u.map(hr),m=h.useRef(!0),g=h.useRef(u),w=ht(()=>new Map),[x,b]=h.useState(u),[y,v]=h.useState(u);nr(()=>{m.current=!1,g.current=u;for(let j=0;j<y.length;j++){const A=hr(y[j]);p.includes(A)?w.delete(A):w.get(A)!==!0&&w.set(A,!1)}},[y,p.length,p.join("-")]);const C=[];if(u!==x){let j=[...u];for(let A=0;A<y.length;A++){const k=y[A],V=hr(k);p.includes(V)||(j.splice(A,0,k),C.push(k))}return a==="wait"&&C.length&&(j=C),v(Aa(j)),b(u),null}process.env.NODE_ENV!=="production"&&a==="wait"&&y.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:S}=h.useContext(Qn);return f.jsx(f.Fragment,{children:y.map(j=>{const A=hr(j),k=o&&!c?!1:u===y||p.includes(A),V=()=>{if(w.has(A))w.set(A,!0);else return;let M=!0;w.forEach(D=>{D||(M=!1)}),M&&(S?.(),v(g.current),o&&d?.(),n&&n())};return f.jsx(vf,{isPresent:k,initial:!m.current||r?void 0:!1,custom:t,presenceAffectsLayout:s,mode:a,root:l,onExitComplete:k?void 0:V,anchorX:i,children:j},A)})})},Gi=h.createContext({strict:!1}),Ma={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Tt={};for(const e in Ma)Tt[e]={isEnabled:t=>Ma[e].some(r=>!!t[r])};function Cf(e){for(const t in e)Tt[t]={...Tt[t],...e[t]}}const kf=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ir(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kf.has(e)}let Ui=e=>!Ir(e);function Sf(e){typeof e=="function"&&(Ui=t=>t.startsWith("on")?!Ir(t):e(t))}try{Sf(require("@emotion/is-prop-valid").default)}catch{}function jf(e,t,r){const n={};for(const s in e)s==="values"&&typeof e.values=="object"||(Ui(s)||r===!0&&Ir(s)||!t&&!Ir(s)||e.draggable&&s.startsWith("onDrag"))&&(n[s]=e[s]);return n}const Gr=h.createContext({});function Ur(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Jt(e){return typeof e=="string"||Array.isArray(e)}const Ss=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],js=["initial",...Ss];function Kr(e){return Ur(e.animate)||js.some(t=>Jt(e[t]))}function Ki(e){return!!(Kr(e)||e.variants)}function Tf(e,t){if(Kr(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Jt(r)?r:void 0,animate:Jt(n)?n:void 0}}return e.inherit!==!1?t:{}}function Af(e){const{initial:t,animate:r}=Tf(e,h.useContext(Gr));return h.useMemo(()=>({initial:t,animate:r}),[Va(t),Va(r)])}function Va(e){return Array.isArray(e)?e.join(" "):e}const Qt={};function Mf(e){for(const t in e)Qt[t]=e[t],is(t)&&(Qt[t].isCSSVariable=!0)}function Hi(e,{layout:t,layoutId:r}){return Et.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Qt[e]||e==="opacity")}const Vf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Pf=Pt.length;function Ef(e,t,r){let n="",s=!0;for(let a=0;a<Pf;a++){const o=Pt[a],i=e[o];if(i===void 0)continue;let l=!0;if(typeof i=="number"?l=i===(o.startsWith("scale")?1:0):l=parseFloat(i)===0,!l||r){const c=Bi(i,vs[o]);if(!l){s=!1;const d=Vf[o]||o;n+=`${d}(${c}) `}r&&(t[o]=c)}}return n=n.trim(),r?n=r(t,s?"":n):s&&(n="none"),n}function Ts(e,t,r){const{style:n,vars:s,transformOrigin:a}=e;let o=!1,i=!1;for(const l in t){const c=t[l];if(Et.has(l)){o=!0;continue}else if(is(l)){s[l]=c;continue}else{const d=Bi(c,vs[l]);l.startsWith("origin")?(i=!0,a[l]=d):n[l]=d}}if(t.transform||(o||r?n.transform=Ef(t,e.transform,r):n.transform&&(n.transform="none")),i){const{originX:l="50%",originY:c="50%",originZ:d=0}=a;n.transformOrigin=`${l} ${c} ${d}`}}const As=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xi(e,t,r){for(const n in t)!fe(t[n])&&!Hi(n,r)&&(e[n]=t[n])}function If({transformTemplate:e},t){return h.useMemo(()=>{const r=As();return Ts(r,t,e),Object.assign({},r.vars,r.style)},[t])}function Nf(e,t){const r=e.style||{},n={};return Xi(n,r,e),Object.assign(n,If(e,t)),n}function Rf(e,t){const r={},n=Nf(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const Df={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bf={offset:"strokeDashoffset",array:"strokeDasharray"};function Lf(e,t,r=1,n=0,s=!0){e.pathLength=1;const a=s?Df:Bf;e[a.offset]=X.transform(-n);const o=X.transform(t),i=X.transform(r);e[a.array]=`${o} ${i}`}function Yi(e,{attrX:t,attrY:r,attrScale:n,pathLength:s,pathSpacing:a=1,pathOffset:o=0,...i},l,c,d){if(Ts(e,i,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:p}=e;u.transform&&(p.transform=u.transform,delete u.transform),(p.transform||u.transformOrigin)&&(p.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),p.transform&&(p.transformBox=d?.transformBox??"fill-box",delete u.transformBox),t!==void 0&&(u.x=t),r!==void 0&&(u.y=r),n!==void 0&&(u.scale=n),s!==void 0&&Lf(u,s,a,o,!1)}const qi=()=>({...As(),attrs:{}}),Zi=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Of(e,t,r,n){const s=h.useMemo(()=>{const a=qi();return Yi(a,t,Zi(n),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Xi(a,e.style,e),s.style={...a,...s.style}}return s}const zf=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ms(e){return typeof e!="string"||e.includes("-")?!1:!!(zf.indexOf(e)>-1||/[A-Z]/u.test(e))}function $f(e,t,r,{latestValues:n},s,a=!1){const i=(Ms(e)?Of:Rf)(t,n,s,e),l=jf(t,typeof e=="string",a),c=e!==h.Fragment?{...l,...i,ref:r}:{},{children:d}=t,u=h.useMemo(()=>fe(d)?d.get():d,[d]);return h.createElement(e,{...c,children:u})}function Pa(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Vs(e,t,r,n){if(typeof t=="function"){const[s,a]=Pa(n);t=t(r!==void 0?r:e.custom,s,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,a]=Pa(n);t=t(r!==void 0?r:e.custom,s,a)}return t}function Mr(e){return fe(e)?e.get():e}function Ff({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,s){return{latestValues:Wf(r,n,s,e),renderState:t()}}function Wf(e,t,r,n){const s={},a=n(e,{});for(const p in a)s[p]=Mr(a[p]);let{initial:o,animate:i}=e;const l=Kr(e),c=Ki(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),i===void 0&&(i=t.animate));let d=r?r.initial===!1:!1;d=d||o===!1;const u=d?i:o;if(u&&typeof u!="boolean"&&!Ur(u)){const p=Array.isArray(u)?u:[u];for(let m=0;m<p.length;m++){const g=Vs(e,p[m]);if(g){const{transitionEnd:w,transition:x,...b}=g;for(const y in b){let v=b[y];if(Array.isArray(v)){const C=d?v.length-1:0;v=v[C]}v!==null&&(s[y]=v)}for(const y in w)s[y]=w[y]}}}return s}const Ji=e=>(t,r)=>{const n=h.useContext(Gr),s=h.useContext(Or),a=()=>Ff(e,t,n,s);return r?a():ht(a)};function Ps(e,t,r){const{style:n}=e,s={};for(const a in n)(fe(n[a])||t.style&&fe(t.style[a])||Hi(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(s[a]=n[a]);return s}const _f=Ji({scrapeMotionValuesFromProps:Ps,createRenderState:As});function Qi(e,t,r){const n=Ps(e,t,r);for(const s in e)if(fe(e[s])||fe(t[s])){const a=Pt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[a]=e[s]}return n}const Gf=Ji({scrapeMotionValuesFromProps:Qi,createRenderState:qi}),Uf=Symbol.for("motionComponentSymbol");function wt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Kf(e,t,r){return h.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):wt(r)&&(r.current=n))},[t])}const Es=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Hf="framerAppearId",el="data-"+Es(Hf),tl=h.createContext({});function Xf(e,t,r,n,s){const{visualElement:a}=h.useContext(Gr),o=h.useContext(Gi),i=h.useContext(Or),l=h.useContext(ir).reducedMotion,c=h.useRef(null);n=n||o.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:a,props:r,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:l}));const d=c.current,u=h.useContext(tl);d&&!d.projection&&s&&(d.type==="html"||d.type==="svg")&&Yf(c.current,r,s,u);const p=h.useRef(!1);h.useInsertionEffect(()=>{d&&p.current&&d.update(r,i)});const m=r[el],g=h.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return nr(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),g.current&&d.animationState&&d.animationState.animateChanges())}),h.useEffect(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1),d.enteringChildren=void 0)}),d}function Yf(e,t,r,n){const{layoutId:s,layout:a,drag:o,dragConstraints:i,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:rl(e.parent)),e.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!o||i&&wt(i),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:c})}function rl(e){if(e)return e.options.allowProjection!==!1?e.projection:rl(e.parent)}function an(e,{forwardMotionProps:t=!1}={},r,n){r&&Cf(r);const s=Ms(e)?Gf:_f;function a(i,l){let c;const d={...h.useContext(ir),...i,layoutId:qf(i)},{isStatic:u}=d,p=Af(i),m=s(i,u);if(!u&&es){Zf(d,r);const g=Jf(d);c=g.MeasureLayout,p.visualElement=Xf(e,m,d,n,g.ProjectionNode)}return f.jsxs(Gr.Provider,{value:p,children:[c&&p.visualElement?f.jsx(c,{visualElement:p.visualElement,...d}):null,$f(e,i,Kf(m,p.visualElement,l),m,u,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=h.forwardRef(a);return o[Uf]=e,o}function qf({layoutId:e}){const t=h.useContext(Qn).id;return t&&e!==void 0?t+"-"+e:e}function Zf(e,t){const r=h.useContext(Gi).strict;if(process.env.NODE_ENV!=="production"&&t&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Mt(!1,n,"lazy-strict-mode"):be(!1,n,"lazy-strict-mode")}}function Jf(e){const{drag:t,layout:r}=Tt;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function Qf(e,t){if(typeof Proxy>"u")return an;const r=new Map,n=(a,o)=>an(a,o,e,t),s=(a,o)=>(process.env.NODE_ENV!=="production"&&$r(!1,"motion() is deprecated. Use motion.create() instead."),n(a,o));return new Proxy(s,{get:(a,o)=>o==="create"?n:(r.has(o)||r.set(o,an(o,void 0,e,t)),r.get(o))})}function nl({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function ep({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function tp(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function on(e){return e===void 0||e===1}function Nn({scale:e,scaleX:t,scaleY:r}){return!on(e)||!on(t)||!on(r)}function lt(e){return Nn(e)||sl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sl(e){return Ea(e.x)||Ea(e.y)}function Ea(e){return e&&e!=="0%"}function Nr(e,t,r){const n=e-r,s=t*n;return r+s}function Ia(e,t,r,n,s){return s!==void 0&&(e=Nr(e,s,n)),Nr(e,r,n)+t}function Rn(e,t=0,r=1,n,s){e.min=Ia(e.min,t,r,n,s),e.max=Ia(e.max,t,r,n,s)}function al(e,{x:t,y:r}){Rn(e.x,t.translate,t.scale,t.originPoint),Rn(e.y,r.translate,r.scale,r.originPoint)}const Na=.999999999999,Ra=1.0000000000001;function rp(e,t,r,n=!1){const s=r.length;if(!s)return;t.x=t.y=1;let a,o;for(let i=0;i<s;i++){a=r[i],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&kt(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,al(e,o)),n&<(a.latestValues)&&kt(e,a.latestValues))}t.x<Ra&&t.x>Na&&(t.x=1),t.y<Ra&&t.y>Na&&(t.y=1)}function Ct(e,t){e.min=e.min+t,e.max=e.max+t}function Da(e,t,r,n,s=.5){const a=oe(e.min,e.max,s);Rn(e,t,r,a,n)}function kt(e,t){Da(e.x,t.x,t.scaleX,t.scale,t.originX),Da(e.y,t.y,t.scaleY,t.scale,t.originY)}function ol(e,t){return nl(tp(e.getBoundingClientRect(),t))}function np(e,t,r){const n=ol(e,r),{scroll:s}=t;return s&&(Ct(n.x,s.offset.x),Ct(n.y,s.offset.y)),n}const Ba=()=>({translate:0,scale:1,origin:0,originPoint:0}),St=()=>({x:Ba(),y:Ba()}),La=()=>({min:0,max:0}),ce=()=>({x:La(),y:La()}),Dn={current:null},il={current:!1};function sp(){if(il.current=!0,!!es)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dn.current=e.matches;e.addEventListener("change",t),t()}else Dn.current=!1}const er=new WeakMap;function ap(e,t,r){for(const n in t){const s=t[n],a=r[n];if(fe(s))e.addValue(n,s);else if(fe(a))e.addValue(n,De(s,{owner:e}));else if(a!==s)if(e.hasValue(n)){const o=e.getValue(n);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(n);e.addValue(n,De(o!==void 0?o:s,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const Oa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ll{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:s,blockInitialAnimation:a,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=bs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=we.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,re.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=i,this.blockInitialAnimation=!!a,this.isControllingVariants=Kr(r),this.isVariantNode=Ki(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in u){const m=u[p];l[p]!==void 0&&fe(m)&&m.set(l[p])}}mount(t){this.current=t,er.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),il.current||sp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dn.current,process.env.NODE_ENV!=="production"&&$r(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Be(this.notifyUpdate),Be(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=Et.has(t);n&&this.onBindTransform&&this.onBindTransform();const s=r.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&re.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{s(),a&&a(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Tt){const r=Tt[t];if(!r)continue;const{isEnabled:n,Feature:s}=r;if(!this.features[t]&&s&&n(this.props)&&(this.features[t]=new s(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ce()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Oa.length;n++){const s=Oa[n];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,o=t[a];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=ap(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=De(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(Yo(n)||Zo(n))?n=parseFloat(n):!mf(n)&&tt.test(r)&&(n=Di(t,r)),this.setBaseTarget(t,fe(n)?n.get():n)),fe(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const a=Vs(this.props,r,this.presenceContext?.custom);a&&(n=a[t])}if(r&&n!==void 0)return n;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!fe(s)?s:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new ns),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Cs.render(this.render)}}class cl extends ll{constructor(){super(...arguments),this.KeyframeResolver=Hu}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;fe(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function dl(e,{style:t,vars:r},n,s){const a=e.style;let o;for(o in t)a[o]=t[o];s?.applyProjectionStyles(a,n);for(o in r)a.setProperty(o,r[o])}function op(e){return window.getComputedStyle(e)}class ul extends cl{constructor(){super(...arguments),this.type="html",this.renderInstance=dl}readValueFromInstance(t,r){if(Et.has(r))return this.projection?.isProjecting?Tn(r):du(t,r);{const n=op(t),s=(is(r)?n.getPropertyValue(r):n[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:r}){return ol(t,r)}build(t,r,n){Ts(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Ps(t,r,n)}}const fl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ip(e,t,r,n){dl(e,t,void 0,n);for(const s in t.attrs)e.setAttribute(fl.has(s)?s:Es(s),t.attrs[s])}class pl extends cl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ce}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Et.has(r)){const n=Ri(r);return n&&n.default||0}return r=fl.has(r)?r:Es(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return Qi(t,r,n)}build(t,r,n){Yi(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,s){ip(t,r,n,s)}mount(t){this.isSVGTag=Zi(t.tagName),super.mount(t)}}const lp=(e,t)=>Ms(e)?new pl(t):new ul(t,{allowProjection:e!==h.Fragment});function jt(e,t,r){const n=e.getProps();return Vs(n,t,r!==void 0?r:n.custom,e)}const Bn=e=>Array.isArray(e);function cp(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,De(r))}function dp(e){return Bn(e)?e[e.length-1]||0:e}function Is(e,t){const r=jt(e,t);let{transitionEnd:n={},transition:s={},...a}=r||{};a={...a,...n};for(const o in a){const i=dp(a[o]);cp(e,o,i)}}function up(e){return!!(fe(e)&&e.add)}function Ln(e,t){const r=e.getValue("willChange");if(up(r))return r.add(t);if(!r&&Ke.WillChange){const n=new Ke.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function hl(e){return e.props[el]}const fp=e=>e!==null;function pp(e,{repeat:t,repeatType:r="loop"},n){const s=e.filter(fp),a=t&&r!=="loop"&&t%2===1?0:s.length-1;return s[a]}const hp={type:"spring",stiffness:500,damping:25,restSpeed:10},mp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gp={type:"keyframes",duration:.8},bp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yp=(e,{keyframes:t})=>t.length>2?gp:Et.has(e)?e.startsWith("scale")?mp(t[1]):hp:bp;function xp({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:s,repeat:a,repeatType:o,repeatDelay:i,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const Ns=(e,t,r,n={},s,a)=>o=>{const i=xs(n,e)||{},l=i.delay||n.delay||0;let{elapsed:c=0}=n;c=c-Ie(l);const d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-c,onUpdate:p=>{t.set(p),i.onUpdate&&i.onUpdate(p)},onComplete:()=>{o(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:a?void 0:s};xp(i)||Object.assign(d,yp(e,d)),d.duration&&(d.duration=Ie(d.duration)),d.repeatDelay&&(d.repeatDelay=Ie(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(En(d),d.delay===0&&(u=!0)),(Ke.instantAnimations||Ke.skipAnimations)&&(u=!0,En(d),d.delay=0),d.allowFlatten=!i.type&&!i.ease,u&&!a&&t.get()!==void 0){const p=pp(d.keyframes,i);if(p!==void 0){re.update(()=>{d.onUpdate(p),d.onComplete()});return}}return i.isSync?new Fr(d):new Iu(d)};function vp({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Rs(e,t,{delay:r=0,transitionOverride:n,type:s}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...i}=t;n&&(a=n);const l=[],c=s&&e.animationState&&e.animationState.getState()[s];for(const d in i){const u=e.getValue(d,e.latestValues[d]??null),p=i[d];if(p===void 0||c&&vp(c,d))continue;const m={delay:r,...xs(a||{},d)},g=u.get();if(g!==void 0&&!u.isAnimating&&!Array.isArray(p)&&p===g&&!m.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const b=hl(e);if(b){const y=window.MotionHandoffAnimation(b,d,re);y!==null&&(m.startTime=y,w=!0)}}Ln(e,d),u.start(Ns(d,u,p,e.shouldReduceMotion&&Ei.has(d)?{type:!1}:m,e,w));const x=u.animation;x&&l.push(x)}return o&&Promise.all(l).then(()=>{re.update(()=>{o&&Is(e,o)})}),l}function ml(e,t,r,n=0,s=1){const a=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),o=e.size,i=(o-1)*n;return typeof r=="function"?r(a,o):s===1?a*n:i-a*n}function On(e,t,r={}){const n=jt(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);const a=n?()=>Promise.all(Rs(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=s;return wp(e,t,l,c,d,u,r)}:()=>Promise.resolve(),{when:i}=s;if(i){const[l,c]=i==="beforeChildren"?[a,o]:[o,a];return l().then(()=>c())}else return Promise.all([a(),o(r.delay)])}function wp(e,t,r=0,n=0,s=0,a=1,o){const i=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),i.push(On(l,t,{...o,delay:r+(typeof n=="function"?0:n)+ml(e.variantChildren,l,n,s,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(i)}function gl(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const s=t.map(a=>On(e,a,r));n=Promise.all(s)}else if(typeof t=="string")n=On(e,t,r);else{const s=typeof t=="function"?jt(e,t,r.custom):t;n=Promise.all(Rs(e,s,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function bl(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const Cp=js.length;function yl(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?yl(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<Cp;r++){const n=js[r],s=e.props[n];(Jt(s)||s===!1)&&(t[n]=s)}return t}const kp=[...Ss].reverse(),Sp=Ss.length;function jp(e){return t=>Promise.all(t.map(({animation:r,options:n})=>gl(e,r,n)))}function Tp(e){let t=jp(e),r=za(),n=!0;const s=l=>(c,d)=>{const u=jt(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(u){const{transition:p,transitionEnd:m,...g}=u;c={...c,...g,...m}}return c};function a(l){t=l(e)}function o(l){const{props:c}=e,d=yl(e.parent)||{},u=[],p=new Set;let m={},g=1/0;for(let x=0;x<Sp;x++){const b=kp[x],y=r[b],v=c[b]!==void 0?c[b]:d[b],C=Jt(v),S=b===l?y.isActive:null;S===!1&&(g=x);let j=v===d[b]&&v!==c[b]&&C;if(j&&n&&e.manuallyAnimateOnMount&&(j=!1),y.protectedKeys={...m},!y.isActive&&S===null||!v&&!y.prevProp||Ur(v)||typeof v=="boolean")continue;const A=Ap(y.prevProp,v);let k=A||b===l&&y.isActive&&!j&&C||x>g&&C,V=!1;const M=Array.isArray(v)?v:[v];let D=M.reduce(s(b),{});S===!1&&(D={});const{prevResolvedValues:z={}}=y,L={...z,...D},I=P=>{k=!0,p.has(P)&&(V=!0,p.delete(P)),y.needsAnimating[P]=!0;const T=e.getValue(P);T&&(T.liveStyle=!1)};for(const P in L){const T=D[P],N=z[P];if(m.hasOwnProperty(P))continue;let E=!1;Bn(T)&&Bn(N)?E=!bl(T,N):E=T!==N,E?T!=null?I(P):p.add(P):T!==void 0&&p.has(P)?I(P):y.protectedKeys[P]=!0}y.prevProp=v,y.prevResolvedValues=D,y.isActive&&(m={...m,...D}),n&&e.blockInitialAnimation&&(k=!1);const R=j&&A;k&&(!R||V)&&u.push(...M.map(P=>{const T={type:b};if(typeof P=="string"&&n&&!R&&e.manuallyAnimateOnMount&&e.parent){const{parent:N}=e,E=jt(N,P);if(N.enteringChildren&&E){const{delayChildren:F}=E.transition||{};T.delay=ml(N.enteringChildren,e,F)}}return{animation:P,options:T}}))}if(p.size){const x={};if(typeof c.initial!="boolean"){const b=jt(e,Array.isArray(c.initial)?c.initial[0]:c.initial);b&&b.transition&&(x.transition=b.transition)}p.forEach(b=>{const y=e.getBaseTarget(b),v=e.getValue(b);v&&(v.liveStyle=!0),x[b]=y??null}),u.push({animation:x})}let w=!!u.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(w=!1),n=!1,w?t(u):Promise.resolve()}function i(l,c){if(r[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(u=>u.animationState?.setActive(l,c)),r[l].isActive=c;const d=o(l);for(const u in r)r[u].protectedKeys={};return d}return{animateChanges:o,setActive:i,setAnimateFunction:a,getState:()=>r,reset:()=>{r=za()}}}function Ap(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bl(t,e):!1}function ot(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function za(){return{animate:ot(!0),whileInView:ot(),whileHover:ot(),whileTap:ot(),whileDrag:ot(),whileFocus:ot(),exit:ot()}}class rt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Mp extends rt{constructor(t){super(t),t.animationState||(t.animationState=Tp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ur(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Vp=0;class Pp extends rt{constructor(){super(...arguments),this.id=Vp++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const s=this.node.animationState.setActive("exit",!t);r&&!t&&s.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Ep={animation:{Feature:Mp},exit:{Feature:Pp}};function tr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function lr(e){return{point:{x:e.pageX,y:e.pageY}}}const Ip=e=>t=>ks(t)&&e(t,lr(t));function Ut(e,t,r,n){return tr(e,t,Ip(r),n)}const xl=1e-4,Np=1-xl,Rp=1+xl,vl=.01,Dp=0-vl,Bp=0+vl;function xe(e){return e.max-e.min}function Lp(e,t,r){return Math.abs(e-t)<=r}function $a(e,t,r,n=.5){e.origin=n,e.originPoint=oe(t.min,t.max,e.origin),e.scale=xe(r)/xe(t),e.translate=oe(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Np&&e.scale<=Rp||isNaN(e.scale))&&(e.scale=1),(e.translate>=Dp&&e.translate<=Bp||isNaN(e.translate))&&(e.translate=0)}function Kt(e,t,r,n){$a(e.x,t.x,r.x,n?n.originX:void 0),$a(e.y,t.y,r.y,n?n.originY:void 0)}function Fa(e,t,r){e.min=r.min+t.min,e.max=e.min+xe(t)}function Op(e,t,r){Fa(e.x,t.x,r.x),Fa(e.y,t.y,r.y)}function Wa(e,t,r){e.min=t.min-r.min,e.max=e.min+xe(t)}function Ht(e,t,r){Wa(e.x,t.x,r.x),Wa(e.y,t.y,r.y)}function Pe(e){return[e("x"),e("y")]}const wl=({current:e})=>e?e.ownerDocument.defaultView:null,_a=(e,t)=>Math.abs(e-t);function zp(e,t){const r=_a(e.x,t.x),n=_a(e.y,t.y);return Math.sqrt(r**2+n**2)}class Cl{constructor(t,r,{transformPagePoint:n,contextWindow:s=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=cn(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=zp(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:w}=p,{timestamp:x}=me;this.history.push({...w,timestamp:x});const{onStart:b,onMove:y}=this.handlers;m||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=ln(m,this.transformPagePoint),re.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:g,onSessionEnd:w,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=cn(p.type==="pointercancel"?this.lastMoveEventInfo:ln(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,b),w&&w(p,b)},!ks(t))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=s||window;const i=lr(t),l=ln(i,this.transformPagePoint),{point:c}=l,{timestamp:d}=me;this.history=[{...c,timestamp:d}];const{onSessionStart:u}=r;u&&u(t,cn(l,this.history)),this.removeListeners=sr(Ut(this.contextWindow,"pointermove",this.handlePointerMove),Ut(this.contextWindow,"pointerup",this.handlePointerUp),Ut(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Be(this.updatePoint)}}function ln(e,t){return t?{point:t(e.point)}:e}function Ga(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cn({point:e},t){return{point:e,delta:Ga(e,kl(t)),offset:Ga(e,$p(t)),velocity:Fp(t,.1)}}function $p(e){return e[0]}function kl(e){return e[e.length-1]}function Fp(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const s=kl(e);for(;r>=0&&(n=e[r],!(s.timestamp-n.timestamp>Ie(t)));)r--;if(!n)return{x:0,y:0};const a=Ee(s.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const o={x:(s.x-n.x)/a,y:(s.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Wp(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?oe(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?oe(r,e,n.max):Math.min(e,r)),e}function Ua(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function _p(e,{top:t,left:r,bottom:n,right:s}){return{x:Ua(e.x,r,s),y:Ua(e.y,t,n)}}function Ka(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function Gp(e,t){return{x:Ka(e.x,t.x),y:Ka(e.y,t.y)}}function Up(e,t){let r=.5;const n=xe(e),s=xe(t);return s>n?r=pt(t.min,t.max-n,e.min):n>s&&(r=pt(e.min,e.max-s,t.min)),Fe(0,1,r)}function Kp(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const zn=.35;function Hp(e=zn){return e===!1?e=0:e===!0&&(e=zn),{x:Ha(e,"left","right"),y:Ha(e,"top","bottom")}}function Ha(e,t,r){return{min:Xa(e,t),max:Xa(e,r)}}function Xa(e,t){return typeof e=="number"?e:e[t]||0}const Xp=new WeakMap;class Yp{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ce(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const a=u=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(lr(u).point)},o=(u,p)=>{const{drag:m,dragPropagation:g,onDragStart:w}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qu(m),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pe(b=>{let y=this.getAxisMotionValue(b).get()||0;if($e.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const C=v.layout.layoutBox[b];C&&(y=xe(C)*(parseFloat(y)/100))}}this.originPoint[b]=y}),w&&re.postRender(()=>w(u,p)),Ln(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},i=(u,p)=>{this.latestPointerEvent=u,this.latestPanInfo=p;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:w,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:b}=p;if(g&&this.currentDirection===null){this.currentDirection=qp(b),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",p.point,b),this.updateAxis("y",p.point,b),this.visualElement.render(),x&&x(u,p)},l=(u,p)=>{this.latestPointerEvent=u,this.latestPanInfo=p,this.stop(u,p),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Pe(u=>this.getAnimationState(u)==="paused"&&this.getAxisMotionValue(u).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Cl(t,{onSessionStart:a,onStart:o,onMove:i,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:n,contextWindow:wl(this.visualElement)})}stop(t,r){const n=t||this.latestPointerEvent,s=r||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!s||!n)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&re.postRender(()=>i(n,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:s}=this.getProps();if(!n||!mr(t,s,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=Wp(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&wt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=_p(n.layoutBox,t):this.constraints=!1,this.elastic=Hp(r),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Pe(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Kp(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!wt(t))return!1;const n=t.current;be(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const a=np(n,s.root,this.visualElement.getTransformPagePoint());let o=Gp(s.layout.layoutBox,a);if(r){const i=r(ep(o));this.hasMutatedConstraints=!!i,i&&(o=nl(i))}return o}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:s,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},c=Pe(d=>{if(!mr(d,r,this.currentDirection))return;let u=l&&l[d]||{};o&&(u={min:0,max:0});const p=s?200:1e6,m=s?40:1e7,g={type:"inertia",velocity:n?t[d]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...u};return this.startAxisValueAnimation(d,g)});return Promise.all(c).then(i)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return Ln(this.visualElement,t),n.start(Ns(t,n,0,r,this.visualElement,!1))}stopAnimation(){Pe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pe(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),s=n[r];return s||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Pe(r=>{const{drag:n}=this.getProps();if(!mr(r,n,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(r);if(s&&s.layout){const{min:o,max:i}=s.layout.layoutBox[r];a.set(t[r]-oe(o,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!wt(r)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Pe(o=>{const i=this.getAxisMotionValue(o);if(i&&this.constraints!==!1){const l=i.get();s[o]=Up({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Pe(o=>{if(!mr(o,t,null))return;const i=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];i.set(oe(l,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;Xp.set(this.visualElement,this);const t=this.visualElement.current,r=Ut(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();wt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,a=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),re.read(n);const o=tr(window,"resize",()=>this.scalePositionWithinConstraints()),i=s.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Pe(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())}));return()=>{o(),r(),a(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:o=zn,dragMomentum:i=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:s,dragConstraints:a,dragElastic:o,dragMomentum:i}}}function mr(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function qp(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class Zp extends rt{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new Yp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ya=e=>(t,r)=>{e&&re.postRender(()=>e(t,r))};class Jp extends rt{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new Cl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ya(t),onStart:Ya(r),onMove:n,onEnd:(a,o)=>{delete this.session,s&&re.postRender(()=>s(a,o))}}}mount(){this.removePointerDownListener=Ut(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Vr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function qa(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ot={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(X.test(e))e=parseFloat(e);else return e;const r=qa(e,t.target.x),n=qa(e,t.target.y);return`${r}% ${n}%`}},Qp={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,s=tt.parse(e);if(s.length>5)return n;const a=tt.createTransformer(e),o=typeof s[0]!="number"?1:0,i=r.x.scale*t.x,l=r.y.scale*t.y;s[0+o]/=i,s[1+o]/=l;const c=oe(i,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),a(s)}};let dn=!1;class eh extends h.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:s}=this.props,{projection:a}=t;Mf(th),a&&(r.group&&r.group.add(a),n&&n.register&&s&&n.register(a),dn&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Vr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:s,isPresent:a}=this.props,{projection:o}=n;return o&&(o.isPresent=a,dn=!0,s||t.layoutDependency!==r||r===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||re.postRender(()=>{const i=o.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Cs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:s}=t;dn=!0,s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Sl(e){const[t,r]=_i(),n=h.useContext(Qn);return f.jsx(eh,{...e,layoutGroup:n,switchLayoutGroup:h.useContext(tl),isPresent:t,safeToRemove:r})}const th={borderRadius:{...Ot,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomLeftRadius:Ot,borderBottomRightRadius:Ot,boxShadow:Qp};function jl(e,t,r){const n=fe(e)?e:De(e);return n.start(Ns("",n,t,r)),n.animation}const rh=(e,t)=>e.depth-t.depth;class nh{constructor(){this.children=[],this.isDirty=!1}add(t){ts(this.children,t),this.isDirty=!0}remove(t){zr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rh),this.isDirty=!1,this.children.forEach(t)}}function sh(e,t){const r=we.now(),n=({timestamp:s})=>{const a=s-r;a>=t&&(Be(n),e(a-t))};return re.setup(n,!0),()=>Be(n)}const Tl=["TopLeft","TopRight","BottomLeft","BottomRight"],ah=Tl.length,Za=e=>typeof e=="string"?parseFloat(e):e,Ja=e=>typeof e=="number"||X.test(e);function oh(e,t,r,n,s,a){s?(e.opacity=oe(0,r.opacity??1,ih(n)),e.opacityExit=oe(t.opacity??1,0,lh(n))):a&&(e.opacity=oe(t.opacity??1,r.opacity??1,n));for(let o=0;o<ah;o++){const i=`border${Tl[o]}Radius`;let l=Qa(t,i),c=Qa(r,i);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Ja(l)===Ja(c)?(e[i]=Math.max(oe(Za(l),Za(c),n),0),($e.test(c)||$e.test(l))&&(e[i]+="%")):e[i]=c}(t.rotate||r.rotate)&&(e.rotate=oe(t.rotate||0,r.rotate||0,n))}function Qa(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ih=Al(0,.5,si),lh=Al(.5,.95,Ce);function Al(e,t,r){return n=>n<e?0:n>t?1:r(pt(e,t,n))}function eo(e,t){e.min=t.min,e.max=t.max}function Me(e,t){eo(e.x,t.x),eo(e.y,t.y)}function to(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ro(e,t,r,n,s){return e-=t,e=Nr(e,1/r,n),s!==void 0&&(e=Nr(e,1/s,n)),e}function ch(e,t=0,r=1,n=.5,s,a=e,o=e){if($e.test(t)&&(t=parseFloat(t),t=oe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let i=oe(a.min,a.max,n);e===a&&(i-=t),e.min=ro(e.min,t,r,i,s),e.max=ro(e.max,t,r,i,s)}function no(e,t,[r,n,s],a,o){ch(e,t[r],t[n],t[s],t.scale,a,o)}const dh=["x","scaleX","originX"],uh=["y","scaleY","originY"];function so(e,t,r,n){no(e.x,t,dh,r?r.x:void 0,n?n.x:void 0),no(e.y,t,uh,r?r.y:void 0,n?n.y:void 0)}function ao(e){return e.translate===0&&e.scale===1}function Ml(e){return ao(e.x)&&ao(e.y)}function oo(e,t){return e.min===t.min&&e.max===t.max}function fh(e,t){return oo(e.x,t.x)&&oo(e.y,t.y)}function io(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Vl(e,t){return io(e.x,t.x)&&io(e.y,t.y)}function lo(e){return xe(e.x)/xe(e.y)}function co(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ph{constructor(){this.members=[]}add(t){ts(this.members,t),t.scheduleRender()}remove(t){if(zr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(s=>t===s);if(r===0)return!1;let n;for(let s=r;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hh(e,t,r){let n="";const s=e.x.translate/t.x,a=e.y.translate/t.y,o=r?.z||0;if((s||a||o)&&(n=`translate3d(${s}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:c,rotate:d,rotateX:u,rotateY:p,skewX:m,skewY:g}=r;c&&(n=`perspective(${c}px) ${n}`),d&&(n+=`rotate(${d}deg) `),u&&(n+=`rotateX(${u}deg) `),p&&(n+=`rotateY(${p}deg) `),m&&(n+=`skewX(${m}deg) `),g&&(n+=`skewY(${g}deg) `)}const i=e.x.scale*t.x,l=e.y.scale*t.y;return(i!==1||l!==1)&&(n+=`scale(${i}, ${l})`),n||"none"}const un=["","X","Y","Z"],mh=1e3;let gh=0;function fn(e,t,r,n){const{latestValues:s}=t;s[e]&&(r[e]=s[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Pl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=hl(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:s,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",re,!(s||a))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Pl(n)}function El({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(o={},i=t?.()){this.id=gh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(xh),this.nodes.forEach(kh),this.nodes.forEach(Sh),this.nodes.forEach(vh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new nh)}addEventListener(o,i){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ns),this.eventHandlers.get(o).add(i)}notifyListeners(o,...i){const l=this.eventHandlers.get(o);l&&l.notify(...i)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=_r(o)&&!Wi(o),this.instance=o;const{layoutId:i,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||i)&&(this.isLayoutDirty=!0),e){let d,u=0;const p=()=>this.root.updateBlockedByResize=!1;re.read(()=>{u=window.innerWidth}),e(o,()=>{const m=window.innerWidth;m!==u&&(u=m,this.root.updateBlockedByResize=!0,d&&d(),d=sh(p,250),Vr.hasAnimatedSinceResize&&(Vr.hasAnimatedSinceResize=!1,this.nodes.forEach(po)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&c&&(i||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||Vh,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=c.getProps(),b=!this.targetLayout||!Vl(this.targetLayout,m),y=!u&&p;if(this.options.layoutRoot||this.resumeFrom||y||u&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...xs(g,"layout"),onPlay:w,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(d,y)}else u||po(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Be(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(jh),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(uo);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fo);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ch),this.nodes.forEach(bh),this.nodes.forEach(yh)):this.nodes.forEach(fo),this.clearAllSnapshots();const i=we.now();me.delta=Fe(0,1e3/60,i-me.timestamp),me.timestamp=i,me.isProcessing=!0,Qr.update.process(me),Qr.preRender.process(me),Qr.render.process(me),me.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wh),this.sharedNodes.forEach(Th)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,re.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){re.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xe(this.snapshot.measuredBox.x)&&!xe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ce(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(i=!1),i&&this.instance){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!Ml(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&this.instance&&(i||lt(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const i=this.measurePageBox();let l=this.removeElementScroll(i);return o&&(l=this.removeTransform(l)),Ph(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return ce();const i=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Eh))){const{scroll:c}=this.root;c&&(Ct(i.x,c.offset.x),Ct(i.y,c.offset.y))}return i}removeElementScroll(o){const i=ce();if(Me(i,o),this.scroll?.wasRoot)return i;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:u}=c;c!==this.root&&d&&u.layoutScroll&&(d.wasRoot&&Me(i,o),Ct(i.x,d.offset.x),Ct(i.y,d.offset.y))}return i}applyTransform(o,i=!1){const l=ce();Me(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&kt(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),lt(d.latestValues)&&kt(l,d.latestValues)}return lt(this.latestValues)&&kt(l,this.latestValues),l}removeTransform(o){const i=ce();Me(i,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!lt(c.latestValues))continue;Nn(c.latestValues)&&c.updateSnapshot();const d=ce(),u=c.measurePageBox();Me(d,u),so(i,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return lt(this.latestValues)&&so(i,this.latestValues),i}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==me.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==i;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:u}=this.options;if(!(!this.layout||!(d||u))){if(this.resolvedRelativeTargetAt=me.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ce(),this.relativeTargetOrigin=ce(),Ht(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Me(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ce(),this.targetWithTransforms=ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Op(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Me(this.target,this.layout.layoutBox),al(this.target,this.targetDelta)):Me(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ce(),this.relativeTargetOrigin=ce(),Ht(this.relativeTargetOrigin,this.target,p.target),Me(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Nn(this.parent.latestValues)||sl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const o=this.getLead(),i=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===me.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Me(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,p=this.treeScale.y;rp(this.layoutCorrected,this.treeScale,this.path,i),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=ce());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(to(this.prevProjectionDelta.x,this.projectionDelta.x),to(this.prevProjectionDelta.y,this.projectionDelta.y)),Kt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==p||!co(this.projectionDelta.x,this.prevProjectionDelta.x)||!co(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=St(),this.projectionDelta=St(),this.projectionDeltaWithTransform=St()}setAnimationOrigin(o,i=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=St();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const p=ce(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,w=m!==g,x=this.getStack(),b=!x||x.members.length<=1,y=!!(w&&!b&&this.options.crossfade===!0&&!this.path.some(Mh));this.animationProgress=0;let v;this.mixTargetDelta=C=>{const S=C/1e3;ho(u.x,o.x,S),ho(u.y,o.y,S),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ht(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ah(this.relativeTarget,this.relativeTargetOrigin,p,S),v&&fh(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ce()),Me(v,this.relativeTarget)),w&&(this.animationValues=d,oh(d,c,this.latestValues,S,y,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Be(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=re.update(()=>{Vr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=De(0)),this.currentAnimation=jl(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:i=>{this.mixTargetDelta(i),o.onUpdate&&o.onUpdate(i)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:i,target:l,layout:c,latestValues:d}=o;if(!(!i||!l||!c)){if(this!==o&&this.layout&&c&&Il(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ce();const u=xe(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const p=xe(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}Me(i,l),kt(i,d),Kt(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(o,i){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ph),this.sharedNodes.get(o).add(i);const c=i.options.initialPromotionConfig;i.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(i):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:i,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let i=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;const c={};l.z&&fn("z",o,c,this.animationValues);for(let d=0;d<un.length;d++)fn(`rotate${un[d]}`,o,c,this.animationValues),fn(`skew${un[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}applyProjectionStyles(o,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Mr(i?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Mr(i?.pointerEvents)||""),this.hasProjected&&!lt(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let u=hh(this.projectionDeltaWithTransform,this.treeScale,d);l&&(u=l(d,u)),o.transform=u;const{x:p,y:m}=this.projectionDelta;o.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,c.animationValues?o.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in Qt){if(d[g]===void 0)continue;const{correct:w,applyTo:x,isCSSVariable:b}=Qt[g],y=u==="none"?d[g]:w(d[g],c);if(x){const v=x.length;for(let C=0;C<v;C++)o[x[C]]=y}else b?this.options.visualElement.renderState.vars[g]=y:o[g]=y}this.options.layoutId&&(o.pointerEvents=c===this?Mr(i?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(uo),this.root.sharedNodes.clear()}}}function bh(e){e.updateLayout()}function yh(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=e.layout,{animationType:s}=e.options,a=t.source!==e.layout.source;s==="size"?Pe(d=>{const u=a?t.measuredBox[d]:t.layoutBox[d],p=xe(u);u.min=r[d].min,u.max=u.min+p}):Il(s,t.layoutBox,r)&&Pe(d=>{const u=a?t.measuredBox[d]:t.layoutBox[d],p=xe(r[d]);u.max=u.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const o=St();Kt(o,r,t.layoutBox);const i=St();a?Kt(i,e.applyTransform(n,!0),t.measuredBox):Kt(i,r,t.layoutBox);const l=!Ml(o);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:u,layout:p}=d;if(u&&p){const m=ce();Ht(m,t.layoutBox,u.layoutBox);const g=ce();Ht(g,r,p.layoutBox),Vl(m,g)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:i,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function xh(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function vh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function wh(e){e.clearSnapshot()}function uo(e){e.clearMeasurements()}function fo(e){e.isLayoutDirty=!1}function Ch(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function po(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function kh(e){e.resolveTargetDelta()}function Sh(e){e.calcProjection()}function jh(e){e.resetSkewAndRotation()}function Th(e){e.removeLeadSnapshot()}function ho(e,t,r){e.translate=oe(t.translate,0,r),e.scale=oe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function mo(e,t,r,n){e.min=oe(t.min,r.min,n),e.max=oe(t.max,r.max,n)}function Ah(e,t,r,n){mo(e.x,t.x,r.x,n),mo(e.y,t.y,r.y,n)}function Mh(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Vh={duration:.45,ease:[.4,0,.1,1]},go=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bo=go("applewebkit/")&&!go("chrome/")?Math.round:Ce;function yo(e){e.min=bo(e.min),e.max=bo(e.max)}function Ph(e){yo(e.x),yo(e.y)}function Il(e,t,r){return e==="position"||e==="preserve-aspect"&&!Lp(lo(t),lo(r),.2)}function Eh(e){return e!==e.root&&e.scroll?.wasRoot}const Ih=El({attachResizeListener:(e,t)=>tr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pn={current:void 0},Nl=El({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pn.current){const e=new Ih({});e.mount(window),e.setOptions({layoutScroll:!0}),pn.current=e}return pn.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Nh={pan:{Feature:Jp},drag:{Feature:Zp,ProjectionNode:Nl,MeasureLayout:Sl}};function xo(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const s="onHover"+r,a=n[s];a&&re.postRender(()=>a(t,lr(t)))}class Rh extends rt{mount(){const{current:t}=this.node;t&&(this.unmount=Zu(t,(r,n)=>(xo(this.node,n,"Start"),s=>xo(this.node,s,"End"))))}unmount(){}}class Dh extends rt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=sr(tr(this.node.current,"focus",()=>this.onFocus()),tr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vo(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const s="onTap"+(r==="End"?"":r),a=n[s];a&&re.postRender(()=>a(t,lr(t)))}class Bh extends rt{mount(){const{current:t}=this.node;t&&(this.unmount=tf(t,(r,n)=>(vo(this.node,n,"Start"),(s,{success:a})=>vo(this.node,s,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const $n=new WeakMap,hn=new WeakMap,Lh=e=>{const t=$n.get(e.target);t&&t(e)},Oh=e=>{e.forEach(Lh)};function zh({root:e,...t}){const r=e||document;hn.has(r)||hn.set(r,{});const n=hn.get(r),s=JSON.stringify(t);return n[s]||(n[s]=new IntersectionObserver(Oh,{root:e,...t})),n[s]}function $h(e,t,r){const n=zh(t);return $n.set(e,r),n.observe(e),()=>{$n.delete(e),n.unobserve(e)}}const Fh={some:0,all:1};class Wh extends rt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:a}=t,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof s=="number"?s:Fh[s]},i=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),p=c?d:u;p&&p(l)};return $h(this.node.current,o,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(_h(t,r))&&this.startObserver()}unmount(){}}function _h({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Gh={inView:{Feature:Wh},tap:{Feature:Bh},focus:{Feature:Dh},hover:{Feature:Rh}},Uh={layout:{ProjectionNode:Nl,MeasureLayout:Sl}},Kh={...Ep,...Gh,...Nh,...Uh},_=Qf(Kh,lp),Hh=50,wo=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Xh=()=>({time:0,x:wo(),y:wo()}),Yh={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Co(e,t,r,n){const s=r[t],{length:a,position:o}=Yh[t],i=s.current,l=r.time;s.current=e[`scroll${o}`],s.scrollLength=e[`scroll${a}`]-e[`client${a}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=pt(0,s.scrollLength,s.current);const c=n-l;s.velocity=c>Hh?0:ss(s.current-i,c)}function qh(e,t,r){Co(e,"x",t,r),Co(e,"y",t,r),t.time=r}function Zh(e,t){const r={x:0,y:0};let n=e;for(;n&&n!==t;)if(ws(n))r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n.tagName==="svg"){const s=n.getBoundingClientRect();n=n.parentElement;const a=n.getBoundingClientRect();r.x+=s.left-a.left,r.y+=s.top-a.top}else if(n instanceof SVGGraphicsElement){const{x:s,y:a}=n.getBBox();r.x+=s,r.y+=a;let o=null,i=n.parentNode;for(;!o;)i.tagName==="svg"&&(o=i),i=n.parentNode;n=o}else break;return r}const Fn={start:0,center:.5,end:1};function ko(e,t,r=0){let n=0;if(e in Fn&&(e=Fn[e]),typeof e=="string"){const s=parseFloat(e);e.endsWith("px")?n=s:e.endsWith("%")?e=s/100:e.endsWith("vw")?n=s/100*document.documentElement.clientWidth:e.endsWith("vh")?n=s/100*document.documentElement.clientHeight:e=s}return typeof e=="number"&&(n=t*e),r+n}const Jh=[0,0];function Qh(e,t,r,n){let s=Array.isArray(e)?e:Jh,a=0,o=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,Fn[e]?e:"0"]),a=ko(s[0],r,n),o=ko(s[1],t),a-o}const e0={All:[[0,0],[1,1]]},t0={x:0,y:0};function r0(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function n0(e,t,r){const{offset:n=e0.All}=r,{target:s=e,axis:a="y"}=r,o=a==="y"?"height":"width",i=s!==e?Zh(s,e):t0,l=s===e?{width:e.scrollWidth,height:e.scrollHeight}:r0(s),c={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let d=!t[a].interpolate;const u=n.length;for(let p=0;p<u;p++){const m=Qh(n[p],c[o],l[o],i[a]);!d&&m!==t[a].interpolatorOffsets[p]&&(d=!0),t[a].offset[p]=m}d&&(t[a].interpolate=ps(t[a].offset,hs(n),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=Fe(0,1,t[a].interpolate(t[a].current))}function s0(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight,process.env.NODE_ENV!=="production"&&e&&t&&t!==e&&$r(getComputedStyle(e).position!=="static","Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.")}function a0(e,t,r,n={}){return{measure:s=>{s0(e,n.target,r),qh(e,r,s),(n.offset||n.target)&&n0(e,r,n)},notify:()=>t(r)}}const zt=new WeakMap,So=new WeakMap,mn=new WeakMap,jo=e=>e===document.scrollingElement?window:e;function Rl(e,{container:t=document.scrollingElement,...r}={}){if(!t)return Ce;let n=mn.get(t);n||(n=new Set,mn.set(t,n));const s=Xh(),a=a0(t,e,s,r);if(n.add(a),!zt.has(t)){const i=()=>{for(const u of n)u.measure(me.timestamp);re.preUpdate(l)},l=()=>{for(const u of n)u.notify()},c=()=>re.read(i);zt.set(t,c);const d=jo(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&So.set(t,uf(t,c)),d.addEventListener("scroll",c,{passive:!0}),c()}const o=zt.get(t);return re.read(o,!1,!0),()=>{Be(o);const i=mn.get(t);if(!i||(i.delete(a),i.size))return;const l=zt.get(t);zt.delete(t),l&&(jo(t).removeEventListener("scroll",l),So.get(t)?.(),window.removeEventListener("resize",l))}}const To=new Map;function o0(e){const t={value:0},r=Rl(n=>{t.value=n[e.axis].progress*100},e);return{currentTime:t,cancel:r}}function Dl({source:e,container:t,...r}){const{axis:n}=r;e&&(t=e);const s=To.get(t)??new Map;To.set(t,s);const a=r.target??"self",o=s.get(a)??{},i=n+(r.offset??[]).join(",");return o[i]||(o[i]=!r.target&&Ti()?new ScrollTimeline({source:t,axis:n}):o0({container:t,...r})),o[i]}function i0(e,t){const r=Dl(t);return e.attachTimeline({timeline:t.target?void 0:r,observe:n=>(n.pause(),Fi(s=>{n.time=n.iterationDuration*s},r))})}function l0(e){return e.length===2}function c0(e,t){return l0(e)?Rl(r=>{e(r[t.axis].progress,r)},t):Fi(e,Dl(t))}function d0(e,{axis:t="y",container:r=document.scrollingElement,...n}={}){if(!r)return Ce;const s={axis:t,container:r,...n};return typeof e=="function"?c0(e,s):i0(e,s)}const u0=()=>({scrollX:De(0),scrollY:De(0),scrollXProgress:De(0),scrollYProgress:De(0)}),gr=e=>e?!e.current:!1;function Bl({container:e,target:t,...r}={}){const n=ht(u0),s=h.useRef(null),a=h.useRef(!1),o=h.useCallback(()=>(s.current=d0((i,{x:l,y:c})=>{n.scrollX.set(l.current),n.scrollXProgress.set(l.progress),n.scrollY.set(c.current),n.scrollYProgress.set(c.progress)},{...r,container:e?.current||void 0,target:t?.current||void 0}),()=>{s.current?.()}),[e,t,JSON.stringify(r.offset)]);return nr(()=>{if(a.current=!1,gr(e)||gr(t)){a.current=!0;return}else return o()},[o]),h.useEffect(()=>{if(a.current)return be(!gr(e),"Container ref is defined but not hydrated","use-scroll-ref"),be(!gr(t),"Target ref is defined but not hydrated","use-scroll-ref"),o()},[o]),n}function Ds(e){const t=ht(()=>De(e)),{isStatic:r}=h.useContext(ir);if(r){const[,n]=h.useState(e);h.useEffect(()=>t.on("change",n),[])}return t}function Ll(e,t){const r=Ds(t()),n=()=>r.set(t());return n(),nr(()=>{const s=()=>re.preRender(n,!1,!0),a=e.map(o=>o.on("change",s));return()=>{a.forEach(o=>o()),Be(n)}}),r}function f0(e){Gt.current=[],e();const t=Ll(Gt.current,e);return Gt.current=void 0,t}function At(e,t,r,n){if(typeof e=="function")return f0(e);const s=typeof t=="function"?t:ff(t,r,n);return Array.isArray(e)?Ao(e,s):Ao([e],([a])=>s(a))}function Ao(e,t){const r=ht(()=>[]);return Ll(e,()=>{r.length=0;const n=e.length;for(let s=0;s<n;s++)r[s]=e[s].get();return t(r)})}function Rr(e,t={}){const{isStatic:r}=h.useContext(ir),n=()=>fe(e)?e.get():e;if(r)return At(n);const s=Ds(n());return h.useInsertionEffect(()=>pf(s,e,t),[s,JSON.stringify(t)]),s}function p0(e){e.values.forEach(t=>t.stop())}function Wn(e,t){[...t].reverse().forEach(n=>{const s=e.getVariant(n);s&&Is(e,s),e.variantChildren&&e.variantChildren.forEach(a=>{Wn(a,t)})})}function h0(e,t){if(Array.isArray(t))return Wn(e,t);if(typeof t=="string")return Wn(e,[t]);Is(e,t)}function m0(){let e=!1;const t=new Set,r={subscribe(n){return t.add(n),()=>void t.delete(n)},start(n,s){be(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const a=[];return t.forEach(o=>{a.push(gl(o,n,{transitionOverride:s}))}),Promise.all(a)},set(n){return be(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(s=>{h0(s,n)})},stop(){t.forEach(n=>{p0(n)})},mount(){return e=!0,()=>{e=!1,r.stop()}}};return r}function Bs(e){return typeof e=="object"&&!Array.isArray(e)}function Ol(e,t,r,n){return typeof e=="string"&&Bs(t)?Wr(e,r,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function g0(e,t,r){return e*(t+1)}function Mo(e,t,r,n){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?r:t.startsWith("<")?Math.max(0,r+parseFloat(t.slice(1))):n.get(t)??e}function b0(e,t,r){for(let n=0;n<e.length;n++){const s=e[n];s.at>t&&s.at<r&&(zr(e,s),n--)}}function y0(e,t,r,n,s,a){b0(e,s,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:oe(s,a,n[o]),easing:li(r,o)})}function x0(e,t){for(let r=0;r<e.length;r++)e[r]=e[r]/(t+1)}function v0(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const w0="easeInOut",C0=20;function k0(e,{defaultTransition:t={},...r}={},n,s){const a=t.duration||.3,o=new Map,i=new Map,l={},c=new Map;let d=0,u=0,p=0;for(let m=0;m<e.length;m++){const g=e[m];if(typeof g=="string"){c.set(g,u);continue}else if(!Array.isArray(g)){c.set(g.name,Mo(u,g.at,d,c));continue}let[w,x,b={}]=g;b.at!==void 0&&(u=Mo(u,b.at,d,c));let y=0;const v=(C,S,j,A=0,k=0)=>{const V=S0(C),{delay:M=0,times:D=hs(V),type:z="keyframes",repeat:L,repeatType:I,repeatDelay:R=0,...B}=S;let{ease:P=t.ease||"easeOut",duration:T}=S;const N=typeof M=="function"?M(A,k):M,E=V.length,F=ys(z)?z:s?.[z||"keyframes"];if(E<=2&&F){let W=100;if(E===2&&A0(V)){const Z=V[1]-V[0];W=Math.abs(Z)}const J={...B};T!==void 0&&(J.duration=Ie(T));const Y=vi(J,W,F);P=Y.ease,T=Y.duration}T??(T=a);const $=u+N;D.length===1&&D[0]===0&&(D[1]=1);const O=D.length-V.length;if(O>0&&Ci(D,O),V.length===1&&V.unshift(null),L){be(L<C0,"Repeat count too high, must be less than 20","repeat-count-high"),T=g0(T,L);const W=[...V],J=[...D];P=Array.isArray(P)?[...P]:[P];const Y=[...P];for(let Z=0;Z<L;Z++){V.push(...W);for(let ne=0;ne<W.length;ne++)D.push(J[ne]+(Z+1)),P.push(ne===0?"linear":li(Y,ne-1))}x0(D,L)}const K=$+T;y0(j,V,P,D,$,K),y=Math.max(N+T,y),p=Math.max(K,p)};if(fe(w)){const C=Vo(w,i);v(x,b,Po("default",C))}else{const C=Ol(w,x,n,l),S=C.length;for(let j=0;j<S;j++){x=x,b=b;const A=C[j],k=Vo(A,i);for(const V in x)v(x[V],j0(b,V),Po(V,k),j,S)}}d=u,u+=y}return i.forEach((m,g)=>{for(const w in m){const x=m[w];x.sort(v0);const b=[],y=[],v=[];for(let S=0;S<x.length;S++){const{at:j,value:A,easing:k}=x[S];b.push(A),y.push(pt(0,p,j)),v.push(k||"easeOut")}y[0]!==0&&(y.unshift(0),b.unshift(b[0]),v.unshift(w0)),y[y.length-1]!==1&&(y.push(1),b.push(null)),o.has(g)||o.set(g,{keyframes:{},transition:{}});const C=o.get(g);C.keyframes[w]=b,C.transition[w]={...t,duration:p,ease:v,times:y,...r}}}),o}function Vo(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Po(e,t){return t[e]||(t[e]=[]),t[e]}function S0(e){return Array.isArray(e)?e:[e]}function j0(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const T0=e=>typeof e=="number",A0=e=>e.every(T0);function M0(e,t){return e in t}class V0 extends ll{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,r){if(M0(r,t)){const n=t[r];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,r){delete r.output[t]}measureInstanceViewportBox(){return ce()}build(t,r){Object.assign(t.output,r)}renderInstance(t,{output:r}){Object.assign(t,r)}sortInstanceNodePosition(){return 0}}function P0(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=_r(e)&&!Wi(e)?new pl(t):new ul(t);r.mount(e),er.set(e,r)}function E0(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},r=new V0(t);r.mount(e),er.set(e,r)}function I0(e,t){return fe(e)||typeof e=="number"||typeof e=="string"&&!Bs(t)}function zl(e,t,r,n){const s=[];if(I0(e,t))s.push(jl(e,Bs(t)&&t.default||t,r&&(r.default||r)));else{const a=Ol(e,t,n),o=a.length;be(!!o,"No valid elements provided.","no-valid-elements");for(let i=0;i<o;i++){const l=a[i];be(l!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const c=l instanceof Element?P0:E0;er.has(l)||c(l);const d=er.get(l),u={...r};"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(i,o)),s.push(...Rs(d,{...t,transition:u},{}))}}return s}function N0(e,t,r){const n=[];return k0(e,t,r,{spring:Zt}).forEach(({keyframes:a,transition:o},i)=>{n.push(...zl(i,a,o))}),n}function R0(e){return Array.isArray(e)&&e.some(Array.isArray)}function D0(e){function t(r,n,s){let a=[],o;if(R0(r))a=N0(r,n,e);else{const{onComplete:l,...c}=s||{};typeof l=="function"&&(o=l),a=zl(r,n,c,e)}const i=new Ru(a);return o&&i.finished.then(o),i}return t}const B0=D0();function L0(){const e=ht(m0);return nr(e.mount,[]),e}const Ye=L0,O0={some:0,all:1};function z0(e,t,{root:r,margin:n,amount:s="some"}={}){const a=Wr(e),o=new WeakMap,i=c=>{c.forEach(d=>{const u=o.get(d.target);if(d.isIntersecting!==!!u)if(d.isIntersecting){const p=t(d.target,d);typeof p=="function"?o.set(d.target,p):l.unobserve(d.target)}else typeof u=="function"&&(u(d),o.delete(d.target))})},l=new IntersectionObserver(i,{root:r,rootMargin:n,threshold:typeof s=="number"?s:O0[s]});return a.forEach(c=>l.observe(c)),()=>l.disconnect()}function ke(e,{root:t,margin:r,amount:n,once:s=!1,initial:a=!1}={}){const[o,i]=h.useState(a);return h.useEffect(()=>{if(!e.current||s&&o)return;const l=()=>(i(!0),s?void 0:()=>i(!1)),c={root:t&&t.current||void 0,margin:r,amount:n};return z0(e.current,l,c)},[t,e,r,s,n]),o}const $l=(e={})=>{const{selectionMode:t="single",defaultExpandedKeys:r=[],expandedKeys:n,onExpandedChange:s,onSelectionChange:a,isDisabled:o=!1}=e,[i,l]=h.useState(r),c=n!==void 0,d=c?n:i,u=h.useCallback(v=>{o||(c||l(v),s?.(v))},[c,o,s]),p=h.useCallback(v=>d.includes(v),[d]),m=h.useCallback(v=>{if(o)return;let C;if(t==="single")C=p(v)?[]:[v],a&&a(p(v)?"":v);else if(t==="multiple")C=p(v)?d.filter(S=>S!==v):[...d,v];else return;u(C)},[o,t,p,d,u,a]),g=h.useCallback(v=>{if(o||p(v))return;let C;if(t==="single")C=[v],a?.(v);else if(t==="multiple")C=[...d,v];else return;u(C)},[o,t,p,d,u,a]),w=h.useCallback(v=>{if(o||!p(v))return;const C=d.filter(S=>S!==v);u(C),t==="single"&&a&&a("")},[o,p,d,u,t,a]),x=h.useCallback((v=[])=>{o||t!=="multiple"||u(v)},[o,t,u]),b=h.useCallback(()=>{o||(u([]),t==="single"&&a&&a(""))},[o,u,t,a]),y=h.useCallback(v=>{u(v)},[u]);return h.useMemo(()=>({expandedKeys:d,isExpanded:p,toggle:m,expand:g,collapse:w,expandAll:x,collapseAll:b,setExpandedKeys:y}),[d,p,m,g,w,x,b,y])},Ls={xs:{base:"text-xs",header:"px-2 py-1.5 min-h-8",content:"px-2 pb-2",indicator:"text-xs w-3 h-3",gap:"gap-1"},sm:{base:"text-sm",header:"px-3 py-2 min-h-10",content:"px-3 pb-3",indicator:"text-sm w-4 h-4",gap:"gap-1.5"},md:{base:"text-base",header:"px-4 py-3 min-h-12",content:"px-4 pb-4",indicator:"text-base w-5 h-5",gap:"gap-2"},lg:{base:"text-lg",header:"px-5 py-4 min-h-14",content:"px-5 pb-5",indicator:"text-lg w-6 h-6",gap:"gap-2.5"},xl:{base:"text-xl",header:"px-6 py-5 min-h-16",content:"px-6 pb-6",indicator:"text-xl w-7 h-7",gap:"gap-3"}},Fl={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-2xl"},$0=(e="default",t="flat",r=!1)=>{const n="transition-colors duration-200";return r?`${n} opacity-50 cursor-not-allowed`:`${n} ${{default:{flat:"bg-gray-100 text-gray-900 hover:bg-gray-200",bordered:"bg-transparent border-2 border-gray-200 text-gray-900 hover:border-gray-300 hover:bg-gray-50",shadow:"bg-white text-gray-900 shadow-md hover:shadow-lg",splitted:"bg-gray-50 text-gray-900 hover:bg-gray-100 shadow-sm"},primary:{flat:"bg-blue-100 text-blue-900 hover:bg-blue-200",bordered:"bg-transparent border-2 border-blue-200 text-blue-900 hover:border-blue-300 hover:bg-blue-50",shadow:"bg-white text-blue-900 shadow-md shadow-blue-100 hover:shadow-lg hover:shadow-blue-200",splitted:"bg-blue-50 text-blue-900 hover:bg-blue-100 shadow-sm shadow-blue-100"},secondary:{flat:"bg-purple-100 text-purple-900 hover:bg-purple-200",bordered:"bg-transparent border-2 border-purple-200 text-purple-900 hover:border-purple-300 hover:bg-purple-50",shadow:"bg-white text-purple-900 shadow-md shadow-purple-100 hover:shadow-lg hover:shadow-purple-200",splitted:"bg-purple-50 text-purple-900 hover:bg-purple-100 shadow-sm shadow-purple-100"},success:{flat:"bg-green-100 text-green-900 hover:bg-green-200",bordered:"bg-transparent border-2 border-green-200 text-green-900 hover:border-green-300 hover:bg-green-50",shadow:"bg-white text-green-900 shadow-md shadow-green-100 hover:shadow-lg hover:shadow-green-200",splitted:"bg-green-50 text-green-900 hover:bg-green-100 shadow-sm shadow-green-100"},warning:{flat:"bg-amber-100 text-amber-900 hover:bg-amber-200",bordered:"bg-transparent border-2 border-amber-200 text-amber-900 hover:border-amber-300 hover:bg-amber-50",shadow:"bg-white text-amber-900 shadow-md shadow-amber-100 hover:shadow-lg hover:shadow-amber-200",splitted:"bg-amber-50 text-amber-900 hover:bg-amber-100 shadow-sm shadow-amber-100"},danger:{flat:"bg-red-100 text-red-900 hover:bg-red-200",bordered:"bg-transparent border-2 border-red-200 text-red-900 hover:border-red-300 hover:bg-red-50",shadow:"bg-white text-red-900 shadow-md shadow-red-100 hover:shadow-lg hover:shadow-red-200",splitted:"bg-red-50 text-red-900 hover:bg-red-100 shadow-sm shadow-red-100"}}[e][t]}`},F0=(e="default",t="flat",r=!1,n=!1)=>{const s="flex items-center justify-between w-full text-left font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2";if(n)return`${s} opacity-50 cursor-not-allowed focus:ring-gray-300`;const a={default:"focus:ring-gray-500",primary:"focus:ring-blue-500",secondary:"focus:ring-purple-500",success:"focus:ring-green-500",warning:"focus:ring-amber-500",danger:"focus:ring-red-500"},o=r?"font-semibold":"",i=t==="bordered"?"hover:bg-opacity-10":"";return`${s} ${a[e]} ${o} ${i} cursor-pointer`},W0=(e="default",t="flat")=>`overflow-hidden transition-all duration-300 ease-in-out ${{default:{flat:"text-gray-700",bordered:"text-gray-700",shadow:"text-gray-700",splitted:"text-gray-700"},primary:{flat:"text-blue-800",bordered:"text-blue-800",shadow:"text-blue-800",splitted:"text-blue-800"},secondary:{flat:"text-purple-800",bordered:"text-purple-800",shadow:"text-purple-800",splitted:"text-purple-800"},success:{flat:"text-green-800",bordered:"text-green-800",shadow:"text-green-800",splitted:"text-green-800"},warning:{flat:"text-amber-800",bordered:"text-amber-800",shadow:"text-amber-800",splitted:"text-amber-800"},danger:{flat:"text-red-800",bordered:"text-red-800",shadow:"text-red-800",splitted:"text-red-800"}}[e][t]}`,_0=(e="default",t=!1,r=!1)=>{const n="flex-shrink-0 transition-transform duration-200 ease-in-out";if(r)return`${n} opacity-50 text-gray-400`;const s={default:"text-gray-600",primary:"text-blue-600",secondary:"text-purple-600",success:"text-green-600",warning:"text-amber-600",danger:"text-red-600"},a=t?"rotate-180":"rotate-0";return`${n} ${s[e]} ${a}`},G0=(e="default",t="flat")=>t==="splitted"?"":`border-t ${{default:"border-gray-200",primary:"border-blue-200",secondary:"border-purple-200",success:"border-green-200",warning:"border-amber-200",danger:"border-red-200"}[e]}`,U0=(e="flat")=>`accordion-item ${{flat:"border-0",bordered:"border border-gray-200 first:border-t last:border-b",shadow:"shadow-sm",splitted:"mb-2 last:mb-0 shadow-sm border border-gray-100"}[e]}`,K0=(e="flat",t="md",r=!1,n="")=>{const s="accordion w-full",a=Fl[t],o="space-y-0",i={flat:"space-y-0",bordered:`space-y-0 ${a} overflow-hidden`,shadow:"space-y-2",splitted:"space-y-2"};return`${s} ${i[e]} ${o} ${n}`.trim()},Ve={size:"md",color:"default",variant:"flat",radius:"md",selectionMode:"single",indicatorPlacement:"end",itemPlacement:"outside",showDivider:!0,disableAnimation:!1,disableIndicatorAnimation:!1,keepContentMounted:!1,isCompact:!1},Wl={spring:{preset:"spring",spring:{stiffness:280,damping:25,duration:.4},staggerDelay:.1,enableStagger:!0},tween:{preset:"tween",spring:{stiffness:180,damping:22,duration:.5},staggerDelay:.08,enableStagger:!0},smooth:{preset:"smooth",spring:{stiffness:240,damping:28,duration:.45},staggerDelay:.12,enableStagger:!0},bouncy:{preset:"bouncy",spring:{stiffness:400,damping:18,duration:.6},staggerDelay:.15,enableStagger:!0},slow:{preset:"slow",spring:{stiffness:150,damping:30,duration:.7},staggerDelay:.2,enableStagger:!0}},H0=Wl.spring,Hr=(e,t)=>{const r=t?Wl[t]:H0;return e?{...r,...e,spring:{...r.spring,...e.spring}}:r},X0=e=>{const{spring:t}=e,r={type:"spring",stiffness:t?.stiffness||280,damping:t?.damping||25};return{collapsed:{rotate:0,scale:1,transition:r},expanded:{rotate:180,scale:1.05,transition:r}}},Eo=(e,t=0)=>e.enableStagger?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*(e.staggerDelay||.1),duration:e.spring?.duration?e.spring.duration*.5:.3,ease:"easeOut"}}:{},_l=e=>{const t={type:"spring",stiffness:280,damping:25},r={spring:{scale:1.002,transition:t},tween:{scale:1.001,transition:t},smooth:{scale:1.002,transition:t},bouncy:{scale:1.005,transition:t},slow:{scale:1.001,transition:t}};return r[e]||r.spring},Gl=e=>{const t={type:"spring",stiffness:280,damping:25},r={spring:{scale:.998,transition:t},tween:{scale:.999,transition:t},smooth:{scale:.998,transition:t},bouncy:{scale:.995,transition:t},slow:{scale:.999,transition:t}};return r[e]||r.spring},Io=({className:e="",isExpanded:t=!1,disableAnimation:r=!1,animationConfig:n})=>{const s=h.useMemo(()=>n?X0(n):{},[n]);return r?f.jsx("svg",{className:`${e} ${t?"rotate-180":""} transition-transform duration-200`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})}):f.jsx(_.svg,{className:e,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,animate:t?"expanded":"collapsed",variants:s,children:f.jsx(_.path,{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7",animate:{pathLength:1,opacity:1},initial:{pathLength:.8,opacity:.8},transition:{type:"spring",stiffness:n?.spring?.stiffness||280,damping:n?.spring?.damping||25}})})},_n=({isExpanded:e,isDisabled:t=!1,className:r="",children:n,"data-testid":s})=>{const{color:a,size:o,disableIndicatorAnimation:i,animationConfig:l}=Xr(),c=h.useMemo(()=>Hr(l,"spring"),[l]),d=h.useMemo(()=>_l(c.preset||"spring"),[c.preset]),u=h.useMemo(()=>Gl(c.preset||"spring"),[c.preset]),p=Ls[o],g=`${_0(a,e,t)} ${p.indicator} ${r}`.trim();return i?f.jsx("span",{className:g,"data-testid":s,"aria-hidden":"true",children:n||f.jsx(Io,{className:"w-full h-full"})}):f.jsx(_.span,{className:g,"data-testid":s,"aria-hidden":"true",whileHover:d,whileTap:u,children:n||f.jsx(Io,{className:"w-full h-full",isExpanded:e,disableAnimation:i,animationConfig:c})})},Os=({children:e,isExpanded:t,isDisabled:r=!1,onClick:n,className:s="",ariaLabel:a,"data-testid":o})=>{const{color:i,variant:l,size:c,indicatorPlacement:d,animationConfig:u}=Xr(),p=h.useMemo(()=>Hr(u,"spring"),[u]),m=h.useMemo(()=>_l(p.preset||"spring"),[p.preset]),g=h.useMemo(()=>Gl(p.preset||"spring"),[p.preset]),w=Ls[c],b=`${F0(i,l,t,r)} ${w.header} ${s}`.trim(),y=()=>{!r&&n&&n()},v=C=>{!r&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),n?.())};return f.jsxs(_.button,{type:"button",className:b,onClick:y,onKeyDown:v,disabled:r,"aria-expanded":t,"aria-label":a,"data-testid":o,role:"tab",tabIndex:r?-1:0,whileHover:r?void 0:m,whileTap:r?void 0:g,children:[d==="start"&&f.jsx(_n,{isExpanded:t,isDisabled:r}),f.jsx(_.span,{className:"flex-1 text-left",animate:{opacity:r?.5:1},transition:{type:"spring",stiffness:280,damping:25},children:e}),d==="end"&&f.jsx(_n,{isExpanded:t,isDisabled:r})]})};Os.displayName="AccordionHeader";_n.displayName="AccordionIndicator";const No=({isExpanded:e,disableAnimation:t=!1,children:r,className:n="",style:s,animationConfig:a})=>{const o=h.useRef(null),i=h.useMemo(()=>Hr(a,"spring"),[a]);if(t)return f.jsx("div",{className:n,style:s,children:r});const l=h.useMemo(()=>{const{spring:d}=i,u={type:"spring",stiffness:d?.stiffness||280,damping:d?.damping||25};return{closed:{opacity:0,transformOrigin:"top",transition:u},open:{opacity:1,transformOrigin:"top",transition:u}}},[i]),c={overflow:"hidden",...s};return f.jsx(_.div,{ref:o,className:n,style:c,initial:"closed",animate:e?"open":"closed",variants:l,children:r})},zs=({children:e,isExpanded:t,className:r="",style:n,"data-testid":s})=>{const{color:a,variant:o,size:i,disableAnimation:l,keepContentMounted:c,animationConfig:d}=Xr(),u=Ls[i],m=`${W0(a,o)} ${u.content} ${r}`.trim();return l?t?f.jsx("div",{className:m,style:n,"data-testid":s,role:"tabpanel",children:e}):null:c?f.jsx(No,{isExpanded:t,disableAnimation:l,className:m,style:n,animationConfig:d,children:f.jsx("div",{"data-testid":s,role:"tabpanel","aria-hidden":!t,children:e})}):f.jsx(We,{initial:!1,children:t&&f.jsx(No,{isExpanded:t,disableAnimation:l,className:m,style:n,animationConfig:d,children:f.jsx("div",{"data-testid":s,role:"tabpanel","aria-hidden":!t,children:e})},"accordion-content")})};zs.displayName="AccordionContent";const $s=({itemKey:e,title:t,children:r,isExpanded:n,isDisabled:s=!1,showDivider:a,header:o,onToggle:i,className:l="",style:c,ariaLabel:d,"data-testid":u})=>{const p=Xr(),{expandedKeys:m,toggle:g,variant:w,color:x,radius:b,isDisabled:y,showDivider:v}=p,C=n!==void 0?n:m.includes(e),S=y||s,j=a!==void 0?a:v,A=()=>{S||(i?i(e):g(e))},k=U0(w),V=$0(x,w,S),M=Fl[b],D=G0(x,w),z=h.useMemo(()=>{const L=[k,V,M,l];return w==="splitted"&&L.push("border rounded-lg overflow-hidden"),L.filter(Boolean).join(" ").trim()},[k,V,M,l,w]);return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:z,style:c,"data-testid":u,"data-expanded":C,"data-disabled":S,children:[f.jsx(Os,{isExpanded:C,isDisabled:S,onClick:A,ariaLabel:d||`Toggle ${t}`,"data-testid":u?`${u}-header`:void 0,children:o||t}),f.jsx(zs,{isExpanded:C,"data-testid":u?`${u}-content`:void 0,children:r})]}),j&&w!=="splitted"&&f.jsx("div",{className:D})]})};$s.displayName="AccordionItem";const Ul=h.createContext(null),Xr=()=>{const e=h.useContext(Ul);if(!e)throw new Error("useAccordionContext must be used within an Accordion component");return e},Kl=({items:e,children:t,selectionMode:r=Ve.selectionMode,defaultExpandedKeys:n,expandedKeys:s,onExpandedChange:a,onSelectionChange:o,size:i=Ve.size,color:l=Ve.color,variant:c=Ve.variant,radius:d=Ve.radius,isDisabled:u=!1,showDivider:p=Ve.showDivider,disableAnimation:m=Ve.disableAnimation,disableIndicatorAnimation:g=Ve.disableIndicatorAnimation,keepContentMounted:w=Ve.keepContentMounted,animationConfig:x,indicatorPlacement:b=Ve.indicatorPlacement,itemPlacement:y=Ve.itemPlacement,isCompact:v=Ve.isCompact,className:C="",style:S,"aria-label":j="Accordion","data-testid":A,...k})=>{const V=$l({selectionMode:r,defaultExpandedKeys:n,expandedKeys:s,onExpandedChange:a,onSelectionChange:o,isDisabled:u}),M=h.useMemo(()=>({expandedKeys:V.expandedKeys,toggle:V.toggle,selectionMode:r,size:i,color:l,variant:c,radius:d,isDisabled:u,showDivider:p,disableAnimation:m,disableIndicatorAnimation:g,keepContentMounted:w,indicatorPlacement:b,itemPlacement:y,isCompact:v,animationConfig:x}),[V.expandedKeys,V.toggle,r,i,l,c,d,u,p,m,g,w,b,y,v,x]),D=K0(c,d,v,C),z=h.useMemo(()=>Hr(x,"spring"),[x]),L=()=>e&&e.length>0?e.map((I,R)=>{const B=Eo(z,R);return f.jsx(_.div,{...m?{}:B,children:f.jsx($s,{itemKey:I.key,title:I.title,isDisabled:I.isDisabled,className:I.className,style:I.style,ariaLabel:I.ariaLabel,children:I.content})},I.key)}):t&&!m?h.Children.toArray(t).map((R,B)=>{const P=Eo(z,B);return f.jsx(_.div,{...P,children:R},B)}):t;return f.jsx(Ul.Provider,{value:M,children:f.jsx(_.div,{className:D,style:S,"aria-label":j,"data-testid":A,role:"tablist",initial:{opacity:0},animate:{opacity:1},transition:{type:"spring",stiffness:280,damping:25},...k,children:L()})})};Kl.displayName="Accordion";const Y0={linear:[0,0,1,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],backIn:[.6,-.28,.735,.045],backOut:[.175,.885,.32,1.275],backInOut:[.68,-.55,.265,1.55],bounceIn:[.6,-.28,.735,.045],bounceOut:[.175,.885,.32,1.275],bounceInOut:[.68,-.55,.265,1.55],elasticIn:[.5,-.25,.75,1.25],elasticOut:[.25,.46,.45,.94],elasticInOut:[.5,-.25,.75,1.25]},mt=(e,t=.5)=>({duration:t,ease:Y0[e]}),q0=(e,t=50)=>({up:{x:0,y:-t},down:{x:0,y:t},left:{x:-t,y:0},right:{x:t,y:0},upLeft:{x:-t,y:-t},upRight:{x:t,y:-t},downLeft:{x:-t,y:t},downRight:{x:t,y:t}})[e],Z0=e=>{switch(e){case"horizontal":return{rotateY:180};case"vertical":return{rotateX:180};case"both":return{rotateX:180,rotateY:180};default:return{}}},J0={hidden:e=>({opacity:e.startOpacity,filter:e.blur?`blur(${e.blurAmount}px)`:"blur(0px)"}),visible:e=>({opacity:e.endOpacity,filter:"blur(0px)"})},Q0={hidden:e=>{const{x:t,y:r}=q0(e.direction,e.distance);return{x:e.overshoot?t*1.2:t,y:e.overshoot?r*1.2:r,opacity:0}},visible:{x:0,y:0,opacity:1}},em={hidden:e=>({scale:e.startScale,opacity:0}),visible:e=>({scale:e.endScale,opacity:1,transition:{type:e.bounce?"spring":"tween",stiffness:e.bounce?300:100,damping:e.bounce?20:10}})},tm={hidden:e=>({scale:e.startScale,opacity:0,y:-20}),visible:e=>({scale:1,opacity:1,y:0,transition:{type:"spring",...{low:{stiffness:200,damping:15},medium:{stiffness:300,damping:12},high:{stiffness:400,damping:8}}[e.intensity],bounce:.4}})},rm={hidden:e=>({...Z0(e.direction),opacity:e.backfaceVisible?1:0,transformPerspective:e.perspective,backfaceVisibility:e.backfaceVisible?"visible":"hidden"}),visible:{rotateX:0,rotateY:0,opacity:1}},nm={hidden:{opacity:0},visible:e=>({opacity:1,transition:{staggerChildren:e.staggerDelay,staggerDirection:e.staggerDirection==="reverse"?-1:1,delayChildren:.1}})},sm={hidden:{opacity:0,y:20,scale:.8},visible:{opacity:1,y:0,scale:1,transition:{type:"spring",stiffness:300,damping:20}}},am=e=>{const t={initial:e[0]||{}};return e.forEach((r,n)=>{t[`morph${n}`]={...r,transition:{type:"spring",stiffness:200,damping:20}}}),t},om={hidden:{opacity:0},visible:{opacity:1}},qe=()=>typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches,He=e=>{e.style.willChange="transform, opacity",e.style.backfaceVisibility="hidden",e.style.perspective="1000px"},Xe=e=>{e.style.willChange="auto",e.style.backfaceVisibility="visible",e.style.perspective="none"},ie=(e,t)=>{const r=performance.now();return{animationDuration:t,frameRate:Math.round(1e3/(r-e)),renderTime:r-e}},te=(e,t,r)=>{try{switch(t){case"start":e.onStart?.(r);break;case"update":e.onUpdate?.(r);break;case"complete":e.onComplete?.(r);break;case"error":e.onError?.(r);break}}catch(n){console.warn("Error handling animation event:",n)}},nt=e=>({}),Ro=e=>e.startsWith(">")?`:scope ${e}`:e,im=({children:e,trigger:t="inView",delay:r=0,duration:n=.6,easing:s="easeOut",disabled:a=!1,startOpacity:o=0,endOpacity:i=1,blur:l=!1,blurAmount:c=5,variants:d,transition:u,className:p="",style:m={},onAnimationStart:g,onAnimationComplete:w,...x})=>{const b=h.useRef(null),y=Ye(),v=ke(b,{once:!0,margin:"0px 0px -10% 0px"}),C=qe(),S=h.useRef(0),j=d||J0,A={startOpacity:o,endOpacity:i,blur:l,blurAmount:c};h.useEffect(()=>{if(a||C){y.set("visible");return}(async()=>{try{switch(S.current=performance.now(),b.current&&He(b.current),t){case"immediate":te({onStart:g},"start",ie(S.current,n)),await y.start("visible");break;case"inView":v&&(te({onStart:g},"start",ie(S.current,n)),await y.start("visible"));break;case"manual":break;default:await y.start("visible")}b.current&&Xe(b.current),te({onComplete:w},"complete",ie(S.current,n))}catch(E){console.warn("Error in FadeContainer animation:",E),te({onError:console.error},"error",E)}})()},[v,t,y,a,C,n,g,w]);const k=u||{...mt(s,n),delay:r},M={...nt(),...m},D=()=>{t==="hover"&&!a&&!C&&y.start("visible")},z=()=>{t==="hover"&&!a&&!C&&y.start("hidden")},L=()=>{t==="focus"&&!a&&!C&&y.start("visible")},I=()=>{t==="focus"&&!a&&!C&&y.start("hidden")},{onDrag:R,onDragEnd:B,onDragStart:P,...T}=x;return f.jsx(_.div,{ref:b,custom:A,variants:j,initial:a||C?"visible":"hidden",animate:y,transition:k,onMouseEnter:D,onMouseLeave:z,onFocus:L,onBlur:I,className:p,style:M,...T,children:e})},lm=({children:e,trigger:t="inView",delay:r=0,duration:n=.6,easing:s="easeOut",disabled:a=!1,direction:o="up",distance:i=50,overshoot:l=!1,variants:c,transition:d,className:u="",style:p={},onAnimationStart:m,onAnimationComplete:g,...w})=>{const x=h.useRef(null),b=Ye(),y=ke(x,{once:!0,margin:"0px 0px -10% 0px"}),v=qe(),C=h.useRef(0),S=c||Q0,j={direction:o,distance:i,overshoot:l};h.useEffect(()=>{if(a||v){b.set("visible");return}(async()=>{try{switch(C.current=performance.now(),x.current&&He(x.current),t){case"immediate":te({onStart:m},"start",ie(C.current,n)),await b.start("visible");break;case"inView":y&&(te({onStart:m},"start",ie(C.current,n)),await b.start("visible"));break;case"manual":break;default:await b.start("visible")}x.current&&Xe(x.current),te({onComplete:g},"complete",ie(C.current,n))}catch(N){console.warn("Error in SlideContainer animation:",N),te({onError:console.error},"error",N)}})()},[y,t,b,a,v,n,m,g]);const A=d||{...mt(s,n),delay:r,...l&&{type:"spring",stiffness:200,damping:20}},V={...nt(),...p},M=()=>{t==="hover"&&!a&&!v&&b.start("visible")},D=()=>{t==="hover"&&!a&&!v&&b.start("hidden")},z=()=>{t==="focus"&&!a&&!v&&b.start("visible")},L=()=>{t==="focus"&&!a&&!v&&b.start("hidden")},{onDrag:I,onDragEnd:R,onDragStart:B,...P}=w;return f.jsx(_.div,{ref:x,custom:j,variants:S,initial:a||v?"visible":"hidden",animate:b,transition:A,onMouseEnter:M,onMouseLeave:D,onFocus:z,onBlur:L,className:u,style:V,...P,children:e})},cm=({children:e,trigger:t="inView",delay:r=0,duration:n=.6,easing:s="easeOut",disabled:a=!1,startScale:o=.8,endScale:i=1,scaleOrigin:l="center",bounce:c=!1,variants:d,transition:u,className:p="",style:m={},onAnimationStart:g,onAnimationComplete:w,...x})=>{const b=h.useRef(null),y=Ye(),v=ke(b,{once:!0,margin:"0px 0px -10% 0px"}),C=qe(),S=h.useRef(0),j=d||em,A={startScale:o,endScale:i,bounce:c};h.useEffect(()=>{if(a||C){y.set("visible");return}(async()=>{try{switch(S.current=performance.now(),b.current&&He(b.current),t){case"immediate":te({onStart:g},"start",ie(S.current,n)),await y.start("visible");break;case"inView":v&&(te({onStart:g},"start",ie(S.current,n)),await y.start("visible"));break;case"manual":break;default:await y.start("visible")}b.current&&Xe(b.current),te({onComplete:w},"complete",ie(S.current,n))}catch(E){console.warn("Error in ScaleContainer animation:",E),te({onError:console.error},"error",E)}})()},[v,t,y,a,C,n,g,w]);const k=u||{...mt(s,n),delay:r,...c&&{type:"spring",stiffness:300,damping:20,bounce:.3}},V=nt(),M={transformOrigin:l,...V,...m},D=()=>{t==="hover"&&!a&&!C&&y.start("visible")},z=()=>{t==="hover"&&!a&&!C&&y.start("hidden")},L=()=>{t==="focus"&&!a&&!C&&y.start("visible")},I=()=>{t==="focus"&&!a&&!C&&y.start("hidden")},{onDrag:R,onDragEnd:B,onDragStart:P,...T}=x;return f.jsx(_.div,{ref:b,custom:A,variants:j,initial:a||C?"visible":"hidden",animate:y,transition:k,onMouseEnter:D,onMouseLeave:z,onFocus:L,onBlur:I,className:p,style:M,...T,children:e})},dm=({children:e,trigger:t="inView",delay:r=0,duration:n=.8,easing:s="easeOut",disabled:a=!1,intensity:o="medium",bounceCount:i=1,startScale:l=.3,variants:c,transition:d,className:u="",style:p={},onAnimationStart:m,onAnimationComplete:g,...w})=>{const x=h.useRef(null),b=Ye(),y=ke(x,{once:!0,margin:"0px 0px -10% 0px"}),v=qe(),C=h.useRef(0),S=c||tm,j={intensity:o,bounceCount:i,startScale:l};h.useEffect(()=>{if(a||v){b.set("visible");return}(async()=>{try{switch(C.current=performance.now(),x.current&&He(x.current),t){case"immediate":te({onStart:m},"start",ie(C.current,n)),await b.start("visible");break;case"inView":y&&(te({onStart:m},"start",ie(C.current,n)),await b.start("visible"));break;case"manual":break;default:await b.start("visible")}x.current&&Xe(x.current),te({onComplete:g},"complete",ie(C.current,n))}catch(E){console.warn("Error in BounceContainer animation:",E),te({onError:console.error},"error",E)}})()},[y,t,b,a,v,n,m,g]);const k=d||{type:"spring",...{low:{stiffness:200,damping:15,bounce:.2},medium:{stiffness:300,damping:12,bounce:.4},high:{stiffness:400,damping:8,bounce:.6}}[o],delay:r,duration:n},M={...nt(),...p},D=()=>{t==="hover"&&!a&&!v&&b.start("visible")},z=()=>{t==="hover"&&!a&&!v&&b.start("hidden")},L=()=>{t==="focus"&&!a&&!v&&b.start("visible")},I=()=>{t==="focus"&&!a&&!v&&b.start("hidden")},{onDrag:R,onDragEnd:B,onDragStart:P,...T}=w;return f.jsx(_.div,{ref:x,custom:j,variants:S,initial:a||v?"visible":"hidden",animate:b,transition:k,onMouseEnter:D,onMouseLeave:z,onFocus:L,onBlur:I,className:u,style:M,...T,children:e})},um=({children:e,trigger:t="inView",delay:r=0,duration:n=.8,easing:s="easeOut",disabled:a=!1,direction:o="horizontal",perspective:i=1e3,backfaceVisible:l=!1,variants:c,transition:d,className:u="",style:p={},onAnimationStart:m,onAnimationComplete:g,...w})=>{const x=h.useRef(null),b=Ye(),y=ke(x,{once:!0,margin:"0px 0px -10% 0px"}),v=qe(),C=h.useRef(0),S=c||rm,j={direction:o,perspective:i,backfaceVisible:l};h.useEffect(()=>{if(a||v){b.set("visible");return}(async()=>{try{switch(C.current=performance.now(),x.current&&He(x.current),t){case"immediate":te({onStart:m},"start",ie(C.current,n)),await b.start("visible");break;case"inView":y&&(te({onStart:m},"start",ie(C.current,n)),await b.start("visible"));break;case"manual":break;default:await b.start("visible")}x.current&&Xe(x.current),te({onComplete:g},"complete",ie(C.current,n))}catch(N){console.warn("Error in FlipContainer animation:",N),te({onError:console.error},"error",N)}})()},[y,t,b,a,v,n,m,g]);const A=d||{...mt(s,n),delay:r},k=nt(),V={perspective:`${i}px`,transformStyle:"preserve-3d",...k,...p},M=()=>{t==="hover"&&!a&&!v&&b.start("visible")},D=()=>{t==="hover"&&!a&&!v&&b.start("hidden")},z=()=>{t==="focus"&&!a&&!v&&b.start("visible")},L=()=>{t==="focus"&&!a&&!v&&b.start("hidden")},{onDrag:I,onDragEnd:R,onDragStart:B,...P}=w;return f.jsx(_.div,{ref:x,custom:j,variants:S,initial:a||v?"visible":"hidden",animate:b,transition:A,onMouseEnter:M,onMouseLeave:D,onFocus:z,onBlur:L,className:u,style:V,...P,children:e})},fm=({children:e,trigger:t="inView",delay:r=0,duration:n=.6,easing:s="easeOut",disabled:a=!1,staggerDelay:o=.1,staggerDirection:i="normal",childSelector:l="> *",variants:c,transition:d,className:u="",style:p={},onAnimationStart:m,onAnimationComplete:g,...w})=>{const x=h.useRef(null),b=Ye(),y=ke(x,{once:!0,margin:"0px 0px -10% 0px"}),v=qe(),C=h.useRef(0),S=c||nm,j={staggerDelay:o,staggerDirection:i};h.useEffect(()=>{if(a||v){b.set("visible");return}(async()=>{try{switch(C.current=performance.now(),x.current&&(He(x.current),x.current.querySelectorAll(Ro(l)).forEach(F=>{F instanceof HTMLElement&&He(F)})),t){case"immediate":te({onStart:m},"start",ie(C.current,n)),await b.start("visible");break;case"inView":y&&(te({onStart:m},"start",ie(C.current,n)),await b.start("visible"));break;case"manual":break;default:await b.start("visible")}x.current&&(Xe(x.current),x.current.querySelectorAll(Ro(l)).forEach(F=>{F instanceof HTMLElement&&Xe(F)})),te({onComplete:g},"complete",ie(C.current,n))}catch(E){console.warn("Error in StaggerContainer animation:",E),te({onError:console.error},"error",E)}})()},[y,t,b,a,v,n,m,g,l]);const A=d||{...mt(s,n),delay:r},V={...nt(),...p},M=()=>{t==="hover"&&!a&&!v&&b.start("visible")},D=()=>{t==="hover"&&!a&&!v&&b.start("hidden")},z=()=>{t==="focus"&&!a&&!v&&b.start("visible")},L=()=>{t==="focus"&&!a&&!v&&b.start("hidden")},I=()=>h.Children.map(e,(N,E)=>h.isValidElement(N)?f.jsx(_.div,{variants:sm,style:{display:"contents"},children:N},E):N),{onDrag:R,onDragEnd:B,onDragStart:P,...T}=w;return f.jsx(_.div,{ref:x,custom:j,variants:S,initial:a||v?"visible":"hidden",animate:b,transition:A,onMouseEnter:M,onMouseLeave:D,onFocus:z,onBlur:L,className:u,style:V,...T,children:I()})},pm=({children:e,trigger:t="inView",delay:r=0,duration:n=1,easing:s="easeInOut",disabled:a=!1,morphStates:o=[{width:"200px",height:"200px",borderRadius:"0px",backgroundColor:"#3b82f6"},{width:"300px",height:"150px",borderRadius:"20px",backgroundColor:"#ef4444"},{width:"250px",height:"250px",borderRadius:"50%",backgroundColor:"#10b981"}],morphInterval:i=3e3,autoMorph:l=!0,variants:c,transition:d,className:u="",style:p={},onAnimationStart:m,onAnimationComplete:g,...w})=>{const x=h.useRef(null),b=Ye(),y=ke(x,{once:!0,margin:"0px 0px -10% 0px"}),v=qe(),[C,S]=h.useState(0),j=h.useRef(0),A=h.useRef(void 0),k=c||am(o);h.useEffect(()=>{if(a||v){b.set("initial");return}return(async()=>{try{switch(j.current=performance.now(),x.current&&He(x.current),t){case"immediate":te({onStart:m},"start",ie(j.current,n)),await b.start("initial"),V();break;case"inView":y&&(te({onStart:m},"start",ie(j.current,n)),await b.start("initial"),V());break;case"manual":await b.start("initial");break;default:await b.start("initial"),V()}te({onComplete:g},"complete",ie(j.current,n))}catch(O){console.warn("Error in MorphingContainer animation:",O),te({onError:console.error},"error",O)}})(),()=>{A.current&&clearInterval(A.current)}},[y,t,b,a,v,n,m,g]);const V=()=>{!l||o.length<=1||(A.current=window.setInterval(()=>{S($=>{const O=($+1)%o.length;return b.start(`morph${O}`),O})},i))},M=$=>{$>=0&&$<o.length&&(S($),b.start(`morph${$}`))},D=d||{...mt(s,n),delay:r},L={display:"flex",alignItems:"center",justifyContent:"center",...nt(),...p},I=()=>{if(t==="hover"&&!a&&!v){const $=(C+1)%o.length;M($)}},R=()=>{t==="hover"&&!a&&!v&&M(0)},B=()=>{if(t==="focus"&&!a&&!v){const $=(C+1)%o.length;M($)}},P=()=>{t==="focus"&&!a&&!v&&M(0)};h.useEffect(()=>()=>{x.current&&Xe(x.current),A.current&&clearInterval(A.current)},[]);const{onDrag:T,onDragEnd:N,onDragStart:E,...F}=w;return f.jsx(_.div,{ref:x,variants:k,initial:"initial",animate:b,transition:D,onMouseEnter:I,onMouseLeave:R,onFocus:B,onBlur:P,className:u,style:L,...F,children:e})},hm=e=>{const[t,r]=h.useState(0),n=Ye();return{currentIndex:t,controls:n,morphToNext:()=>{const i=(t+1)%e.length;r(i),n.start(`morph${i}`)},morphToPrevious:()=>{const i=t===0?e.length-1:t-1;r(i),n.start(`morph${i}`)},morphToIndex:i=>{i>=0&&i<e.length&&(r(i),n.start(`morph${i}`))}}},mm=({children:e,trigger:t="inView",delay:r=0,duration:n=1,easing:s="easeInOut",disabled:a=!1,speed:o=.5,direction:i="vertical",offset:l=0,enableOnMobile:c=!1,variants:d,transition:u,className:p="",style:m={},onAnimationStart:g,onAnimationComplete:w,...x})=>{const b=h.useRef(null),y=Ye(),v=ke(b,{once:!0,margin:"0px 0px -10% 0px"}),C=qe(),[S,j]=h.useState(!1),A=h.useRef(0),{scrollY:k}=Bl(),V=d||om;h.useEffect(()=>{const Y=()=>{j(window.innerWidth<=768)};return Y(),window.addEventListener("resize",Y),()=>{window.removeEventListener("resize",Y)}},[]);const M=At(k,[0,1e3],[0,-o*100]),D=At(k,[0,1e3],[0,-o*100]),z=Rr(M,{stiffness:100,damping:30,mass:1}),L=Rr(D,{stiffness:100,damping:30,mass:1}),I=!a&&!C&&(c||!S);h.useEffect(()=>{if(a||C||S&&!c){y.set("visible");return}(async()=>{try{switch(A.current=performance.now(),b.current&&He(b.current),t){case"immediate":te({onStart:g},"start",ie(A.current,n)),await y.start("visible");break;case"inView":v&&(te({onStart:g},"start",ie(A.current,n)),await y.start("visible"));break;case"manual":await y.start("hidden");break;default:await y.start("visible")}te({onComplete:w},"complete",ie(A.current,n))}catch(Z){console.warn("Error in ParallaxContainer animation:",Z),te({onError:console.error},"error",Z)}})()},[v,t,y,a,C,S,c,n,g,w]);const R=u||{...mt(s,n),delay:r},P={...nt(),...m},T=()=>{if(!I)return{};switch(i){case"horizontal":return{x:L};case"both":return{x:L,y:z};case"vertical":default:return{y:z}}},N=()=>{t==="hover"&&!a&&!C&&y.start("visible")},E=()=>{t==="hover"&&!a&&!C&&y.start("hidden")},F=()=>{t==="focus"&&!a&&!C&&y.start("visible")},$=()=>{t==="focus"&&!a&&!C&&y.start("hidden")};h.useEffect(()=>()=>{b.current&&Xe(b.current)},[]);const{onDrag:O,onDragEnd:K,onDragStart:W,...J}=x;return f.jsx(_.div,{ref:b,variants:V,initial:a||C?"visible":"hidden",animate:y,transition:R,style:{...P,...T()},onMouseEnter:N,onMouseLeave:E,onFocus:F,onBlur:$,className:p,...J,children:e})},gm=e=>{const{scrollY:t}=Bl(),[r,n]=h.useState(!1),s=qe(),{speed:a=.5,direction:o="vertical",enableOnMobile:i=!1}=e||{};h.useEffect(()=>{const g=()=>{n(window.innerWidth<=768)};return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[]);const l=!s&&(i||!r),c=At(t,[0,1e3],[0,-a*100]),d=At(t,[0,1e3],[0,-a*100]),u=Rr(c,{stiffness:100,damping:30,mass:1}),p=Rr(d,{stiffness:100,damping:30,mass:1});return{isActive:l,isMobile:r,scrollY:t,transformValue:(()=>{if(!l)return{};switch(o){case"horizontal":return{x:p};case"both":return{x:p,y:u};case"vertical":default:return{y:u}}})(),smoothY:u,smoothX:p}},It={smooth:{type:"tween",duration:.3,ease:"easeOut"},bounce:{type:"spring",damping:10,stiffness:400,mass:1}},bm={initial:(e=0)=>({opacity:e}),animate:(e=1)=>({opacity:e}),exit:{opacity:0}},ym={initial:({direction:e="up",distance:t=50})=>{switch(e){case"up":return{y:t,opacity:0};case"down":return{y:-t,opacity:0};case"left":return{x:t,opacity:0};case"right":return{x:-t,opacity:0};default:return{y:t,opacity:0}}},animate:{x:0,y:0,opacity:1},exit:({direction:e="up",distance:t=50})=>{switch(e){case"up":return{y:-t,opacity:0};case"down":return{y:t,opacity:0};case"left":return{x:-t,opacity:0};case"right":return{x:t,opacity:0};default:return{y:-t,opacity:0}}}},xm={initial:(e=0)=>({scale:e,opacity:0}),animate:(e=1)=>({scale:e,opacity:1}),exit:{scale:0,opacity:0},hover:{scale:1.05},tap:{scale:.95}},vm={initial:({direction:e="clockwise",degrees:t=180})=>({rotate:e==="clockwise"?-t:t,opacity:0}),animate:{rotate:0,opacity:1},exit:({direction:e="clockwise",degrees:t=180})=>({rotate:e==="clockwise"?t:-t,opacity:0})},wm={initial:{y:0,opacity:0},animate:({amplitude:e=20,frequency:t=2})=>({y:[0,-e,0,-e*.5,0],opacity:1,transition:{duration:.6,times:[0,.2,.4,.6,1],repeat:t-1}}),exit:{y:0,opacity:0}},Cm=({children:e,className:t="",delay:r=0,duration:n=.3,disabled:s=!1,trigger:a="inView",once:o=!0,threshold:i=.1,from:l=0,to:c=1,style:d})=>{const u=h.useRef(null),p=ke(u,{once:o,amount:i});if(s)return f.jsx("div",{className:t,style:d,children:e});const m=()=>{switch(a){case"inView":return p?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},g={...It.smooth,duration:n,delay:r};return f.jsx(_.div,{ref:u,className:t,style:d,variants:bm,initial:"initial",animate:m(),exit:"exit",custom:{from:l,to:c},transition:g,whileHover:a==="hover"?"animate":void 0,whileTap:a==="tap"?"animate":void 0,children:e})},km=({children:e,className:t="",delay:r=0,duration:n=.3,disabled:s=!1,trigger:a="inView",once:o=!0,threshold:i=.1,direction:l="up",distance:c=50,style:d})=>{const u=h.useRef(null),p=ke(u,{once:o,amount:i});if(s)return f.jsx("div",{className:t,style:d,children:e});const m=()=>{switch(a){case"inView":return p?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},g={...It.smooth,duration:n,delay:r},w={direction:l,distance:c};return f.jsx(_.div,{ref:u,className:t,style:d,variants:ym,initial:"initial",animate:m(),exit:"exit",custom:w,transition:g,whileHover:a==="hover"?"animate":void 0,whileTap:a==="tap"?"animate":void 0,children:e})},Sm=({children:e,className:t="",delay:r=0,duration:n=.3,disabled:s=!1,trigger:a="inView",once:o=!0,threshold:i=.1,from:l=0,to:c=1,transformOrigin:d="center",style:u})=>{const p=h.useRef(null),m=ke(p,{once:o,amount:i});if(s)return f.jsx("div",{className:t,style:u,children:e});const g=()=>{switch(a){case"inView":return m?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},w={...It.bounce,duration:n,delay:r},x={from:l,to:c},b={...u,transformOrigin:d};return f.jsx(_.div,{ref:p,className:t,style:b,variants:xm,initial:"initial",animate:g(),exit:"exit",custom:x,transition:w,whileHover:a==="hover"?"hover":void 0,whileTap:a==="tap"?"tap":void 0,children:e})},jm=({children:e,className:t="",delay:r=0,duration:n=.5,disabled:s=!1,trigger:a="inView",once:o=!0,threshold:i=.1,direction:l="clockwise",degrees:c=180,transformOrigin:d="center",style:u})=>{const p=h.useRef(null),m=ke(p,{once:o,amount:i});if(s)return f.jsx("div",{className:t,style:u,children:e});const g=()=>{switch(a){case"inView":return m?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},w={...It.smooth,duration:n,delay:r},x={direction:l,degrees:c},b={...u,transformOrigin:d};return f.jsx(_.div,{ref:p,className:t,style:b,variants:vm,initial:"initial",animate:g(),exit:"exit",custom:x,transition:w,whileHover:a==="hover"?"animate":void 0,whileTap:a==="tap"?"animate":void 0,children:e})},Tm=({children:e,className:t="",delay:r=0,duration:n=.6,disabled:s=!1,trigger:a="inView",once:o=!0,threshold:i=.1,amplitude:l=20,frequency:c=1,damping:d=.8,style:u})=>{const p=h.useRef(null),m=ke(p,{once:o,amount:i});if(s)return f.jsx("div",{className:t,style:u,children:e});const g=()=>{switch(a){case"inView":return m?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},w={...It.bounce,duration:n,delay:r,damping:d},x={amplitude:l,frequency:c};return f.jsx(_.div,{ref:p,className:t,style:u,variants:wm,initial:"initial",animate:g(),exit:"exit",custom:x,transition:w,whileHover:a==="hover"?"animate":void 0,whileTap:a==="tap"?"animate":void 0,children:e})},Am=({children:e,className:t="",staggerDelay:r=.1,animationType:n="fadeIn",direction:s="up",duration:a=.3,threshold:o=.1})=>{const i=h.useRef(null),l=ke(i,{once:!0,amount:o}),c={initial:{},animate:{transition:{staggerChildren:r}}},u=(()=>{switch(n){case"slideIn":return{initial:(()=>{switch(s){case"up":return{y:50,opacity:0};case"down":return{y:-50,opacity:0};case"left":return{x:50,opacity:0};case"right":return{x:-50,opacity:0};default:return{y:50,opacity:0}}})(),animate:{x:0,y:0,opacity:1}};case"scaleIn":return{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1}};case"fadeIn":default:return{initial:{opacity:0},animate:{opacity:1}}}})(),p={...It.smooth,duration:a};return f.jsx(_.div,{ref:i,className:t,variants:c,initial:"initial",animate:l?"animate":"initial",children:e.map((m,g)=>f.jsx(_.div,{variants:u,transition:p,children:m},g))})};var Mm=/\s+/g,Gn=e=>typeof e!="string"||!e?e:e.replace(Mm," ").trim(),Dr=(...e)=>{let t=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let a=0,o=n.length;a<o;a++)r(n[a]);return}let s=typeof n;if(s==="string"||s==="number"||s==="bigint"){if(s==="number"&&n!==n)return;t.push(String(n))}else if(s==="object"){let a=Object.keys(n);for(let o=0,i=a.length;o<i;o++){let l=a[o];n[l]&&t.push(l)}}};for(let n=0,s=e.length;n<s;n++){let a=e[n];a!=null&&r(a)}return t.length>0?Gn(t.join(" ")):void 0},Do=e=>e===!1?"false":e===!0?"true":e===0?"0":e,ve=e=>{if(!e||typeof e!="object")return!0;for(let t in e)return!1;return!0},Vm=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let s=0;s<r.length;s++){let a=r[s];if(!n.includes(a)||e[a]!==t[a])return!1}return!0},Bo=(e,t)=>{for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];r in e?e[r]=Dr(e[r],n):e[r]=n}return e},Hl=(e,t)=>{for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?Hl(n,t):n&&t.push(n)}},Xl=(...e)=>{let t=[];Hl(e,t);let r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},Un=(e,t)=>{let r={};for(let n in e){let s=e[n];if(n in t){let a=t[n];Array.isArray(s)||Array.isArray(a)?r[n]=Xl(a,s):typeof s=="object"&&typeof a=="object"&&s&&a?r[n]=Un(s,a):r[n]=a+" "+s}else r[n]=s}for(let n in t)n in e||(r[n]=t[n]);return r},Pm={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function Em(){let e=null,t={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(n){e=n},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(n){t=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){e=null,t={},r=!1}}}var Ue=Em(),Im=e=>{let t=(r,n)=>{let{extend:s=null,slots:a={},variants:o={},compoundVariants:i=[],compoundSlots:l=[],defaultVariants:c={}}=r,d={...Pm,...n},u=s?.base?Dr(s.base,r?.base):r?.base,p=s?.variants&&!ve(s.variants)?Un(o,s.variants):o,m=s?.defaultVariants&&!ve(s.defaultVariants)?{...s.defaultVariants,...c}:c;!ve(d.twMergeConfig)&&!Vm(d.twMergeConfig,Ue.cachedTwMergeConfig)&&(Ue.didTwMergeConfigChange=!0,Ue.cachedTwMergeConfig=d.twMergeConfig);let g=ve(s?.slots),w=ve(a)?{}:{base:Dr(r?.base,g&&s?.base),...a},x=g?w:Bo({...s?.slots},ve(w)?{base:r?.base}:w),b=ve(s?.compoundVariants)?i:Xl(s?.compoundVariants,i),y=C=>{if(ve(p)&&ve(a)&&g)return e(u,C?.class,C?.className)(d);if(b&&!Array.isArray(b))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof b}`);if(l&&!Array.isArray(l))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof l}`);let S=(I,R,B=[],P)=>{let T=B;if(typeof R=="string"){let N=Gn(R).split(" ");for(let E=0;E<N.length;E++)T.push(`${I}:${N[E]}`)}else if(Array.isArray(R))for(let N=0;N<R.length;N++)T.push(`${I}:${R[N]}`);else if(typeof R=="object"&&typeof P=="string"&&P in R){let N=R[P];if(N&&typeof N=="string"){let E=Gn(N).split(" "),F=[];for(let $=0;$<E.length;$++)F.push(`${I}:${E[$]}`);T[P]=T[P]?T[P].concat(F):F}else if(Array.isArray(N)&&N.length>0){let E=[];for(let F=0;F<N.length;F++)E.push(`${I}:${N[F]}`);T[P]=E}}return T},j=(I,R=p,B=null,P=null)=>{let T=R[I];if(!T||ve(T))return null;let N=P?.[I]??C?.[I];if(N===null)return null;let E=Do(N),F=Array.isArray(d.responsiveVariants)&&d.responsiveVariants.length>0||d.responsiveVariants===!0,$=m?.[I],O=[];if(typeof E=="object"&&F)for(let[J,Y]of Object.entries(E)){let Z=T[Y];if(J==="initial"){$=Y;continue}Array.isArray(d.responsiveVariants)&&!d.responsiveVariants.includes(J)||(O=S(J,Z,O,B))}let K=E!=null&&typeof E!="object"?E:Do($),W=T[K||"false"];return typeof O=="object"&&typeof B=="string"&&O[B]?Bo(O,W):O.length>0?(O.push(W),B==="base"?O.join(" "):O):W},A=()=>{if(!p)return null;let I=Object.keys(p),R=[];for(let B=0;B<I.length;B++){let P=j(I[B],p);P&&R.push(P)}return R},k=(I,R)=>{if(!p||typeof p!="object")return null;let B=[];for(let P in p){let T=j(P,p,I,R),N=I==="base"&&typeof T=="string"?T:T&&T[I];N&&B.push(N)}return B},V={};for(let I in C){let R=C[I];R!==void 0&&(V[I]=R)}let M=(I,R)=>{let B=typeof C?.[I]=="object"?{[I]:C[I]?.initial}:{};return{...m,...V,...B,...R}},D=(I=[],R)=>{let B=[],P=I.length;for(let T=0;T<P;T++){let{class:N,className:E,...F}=I[T],$=!0,O=M(null,R);for(let K in F){let W=F[K],J=O[K];if(Array.isArray(W)){if(!W.includes(J)){$=!1;break}}else{if((W==null||W===!1)&&(J==null||J===!1))continue;if(J!==W){$=!1;break}}}$&&(N&&B.push(N),E&&B.push(E))}return B},z=I=>{let R=D(b,I);if(!Array.isArray(R))return R;let B={},P=e;for(let T=0;T<R.length;T++){let N=R[T];if(typeof N=="string")B.base=P(B.base,N)(d);else if(typeof N=="object")for(let E in N)B[E]=P(B[E],N[E])(d)}return B},L=I=>{if(l.length<1)return null;let R={},B=M(null,I);for(let P=0;P<l.length;P++){let{slots:T=[],class:N,className:E,...F}=l[P];if(!ve(F)){let $=!0;for(let O in F){let K=B[O],W=F[O];if(K===void 0||(Array.isArray(W)?!W.includes(K):W!==K)){$=!1;break}}if(!$)continue}for(let $=0;$<T.length;$++){let O=T[$];R[O]||(R[O]=[]),R[O].push([N,E])}}return R};if(!ve(a)||!g){let I={};if(typeof x=="object"&&!ve(x)){let R=e;for(let B in x)I[B]=P=>{let T=z(P),N=L(P);return R(x[B],k(B,P),T?T[B]:void 0,N?N[B]:void 0,P?.class,P?.className)(d)}}return I}return e(u,A(),D(b),C?.class,C?.className)(d)},v=()=>{if(!(!p||typeof p!="object"))return Object.keys(p)};return y.variantKeys=v(),y.extend=s,y.base=u,y.slots=x,y.variants=p,y.defaultVariants=m,y.compoundSlots=l,y.compoundVariants=b,y};return{tv:t,createTV:r=>(n,s)=>t(n,s?Un(r,s):r)}};const Fs="-",Nm=e=>{const t=Dm(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const i=o.split(Fs);return i[0]===""&&i.length!==1&&i.shift(),Yl(i,t)||Rm(o)},getConflictingClassGroupIds:(o,i)=>{const l=r[o]||[];return i&&n[o]?[...l,...n[o]]:l}}},Yl=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?Yl(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(Fs);return t.validators.find(({validator:o})=>o(a))?.classGroupId},Lo=/^\[(.+)\]$/,Rm=e=>{if(Lo.test(e)){const t=Lo.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Dm=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const s in r)Kn(r[s],n,s,t);return n},Kn=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?t:Oo(t,s);a.classGroupId=r;return}if(typeof s=="function"){if(Bm(s)){Kn(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,o])=>{Kn(o,Oo(t,a),r,n)})})},Oo=(e,t)=>{let r=e;return t.split(Fs).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Bm=e=>e.isThemeGetter,Lm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return s(a,o),o},set(a,o){r.has(a)?r.set(a,o):s(a,o)}}},Hn="!",Xn=":",Om=Xn.length,zm=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=s=>{const a=[];let o=0,i=0,l=0,c;for(let g=0;g<s.length;g++){let w=s[g];if(o===0&&i===0){if(w===Xn){a.push(s.slice(l,g)),l=g+Om;continue}if(w==="/"){c=g;continue}}w==="["?o++:w==="]"?o--:w==="("?i++:w===")"&&i--}const d=a.length===0?s:s.substring(l),u=$m(d),p=u!==d,m=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:m}};if(t){const s=t+Xn,a=n;n=o=>o.startsWith(s)?a(o.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const s=n;n=a=>r({className:a,parseClassName:s})}return n},$m=e=>e.endsWith(Hn)?e.substring(0,e.length-1):e.startsWith(Hn)?e.substring(1):e,Fm=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const s=[];let a=[];return n.forEach(o=>{o[0]==="["||t[o]?(s.push(...a.sort(),o),a=[]):a.push(o)}),s.push(...a.sort()),s}},Wm=e=>({cache:Lm(e.cacheSize),parseClassName:zm(e),sortModifiers:Fm(e),...Nm(e)}),_m=/\s+/,Gm=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:a}=t,o=[],i=e.trim().split(_m);let l="";for(let c=i.length-1;c>=0;c-=1){const d=i[c],{isExternal:u,modifiers:p,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:w}=r(d);if(u){l=d+(l.length>0?" "+l:l);continue}let x=!!w,b=n(x?g.substring(0,w):g);if(!b){if(!x){l=d+(l.length>0?" "+l:l);continue}if(b=n(g),!b){l=d+(l.length>0?" "+l:l);continue}x=!1}const y=a(p).join(":"),v=m?y+Hn:y,C=v+b;if(o.includes(C))continue;o.push(C);const S=s(b,x);for(let j=0;j<S.length;++j){const A=S[j];o.push(v+A)}l=d+(l.length>0?" "+l:l)}return l};function Um(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ql(t))&&(n&&(n+=" "),n+=r);return n}const ql=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ql(e[n]))&&(r&&(r+=" "),r+=t);return r};function Yn(e,...t){let r,n,s,a=o;function o(l){const c=t.reduce((d,u)=>u(d),e());return r=Wm(c),n=r.cache.get,s=r.cache.set,a=i,i(l)}function i(l){const c=n(l);if(c)return c;const d=Gm(l,r);return s(l,d),d}return function(){return a(Um.apply(null,arguments))}}const pe=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Zl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Km=/^\d+\/\d+$/,Hm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xm=/\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$/,Ym=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=e=>Km.test(e),ee=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>!!e&&Number.isInteger(Number(e)),gn=e=>e.endsWith("%")&&ee(e.slice(0,-1)),Ge=e=>Hm.test(e),Jm=()=>!0,Qm=e=>Xm.test(e)&&!Ym.test(e),Ql=()=>!1,eg=e=>qm.test(e),tg=e=>Zm.test(e),rg=e=>!G(e)&&!U(e),ng=e=>Nt(e,rc,Ql),G=e=>Zl.test(e),it=e=>Nt(e,nc,Qm),bn=e=>Nt(e,lg,ee),zo=e=>Nt(e,ec,Ql),sg=e=>Nt(e,tc,tg),br=e=>Nt(e,sc,eg),U=e=>Jl.test(e),$t=e=>Rt(e,nc),ag=e=>Rt(e,cg),$o=e=>Rt(e,ec),og=e=>Rt(e,rc),ig=e=>Rt(e,tc),yr=e=>Rt(e,sc,!0),Nt=(e,t,r)=>{const n=Zl.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Rt=(e,t,r=!1)=>{const n=Jl.exec(e);return n?n[1]?t(n[1]):r:!1},ec=e=>e==="position"||e==="percentage",tc=e=>e==="image"||e==="url",rc=e=>e==="length"||e==="size"||e==="bg-size",nc=e=>e==="length",lg=e=>e==="number",cg=e=>e==="family-name",sc=e=>e==="shadow",qn=()=>{const e=pe("color"),t=pe("font"),r=pe("text"),n=pe("font-weight"),s=pe("tracking"),a=pe("leading"),o=pe("breakpoint"),i=pe("container"),l=pe("spacing"),c=pe("radius"),d=pe("shadow"),u=pe("inset-shadow"),p=pe("text-shadow"),m=pe("drop-shadow"),g=pe("blur"),w=pe("perspective"),x=pe("aspect"),b=pe("ease"),y=pe("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),U,G],j=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],k=()=>[U,G,l],V=()=>[gt,"full","auto",...k()],M=()=>[Je,"none","subgrid",U,G],D=()=>["auto",{span:["full",Je,U,G]},Je,U,G],z=()=>[Je,"auto",U,G],L=()=>["auto","min","max","fr",U,G],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...k()],P=()=>[gt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],T=()=>[e,U,G],N=()=>[...C(),$o,zo,{position:[U,G]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",og,ng,{size:[U,G]}],$=()=>[gn,$t,it],O=()=>["","none","full",c,U,G],K=()=>["",ee,$t,it],W=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[ee,gn,$o,zo],Z=()=>["","none",g,U,G],ne=()=>["none",ee,U,G],ae=()=>["none",ee,U,G],Te=()=>[ee,U,G],he=()=>[gt,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ge],breakpoint:[Ge],color:[Jm],container:[Ge],"drop-shadow":[Ge],ease:["in","out","in-out"],font:[rg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ge],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ge],shadow:[Ge],spacing:["px",ee],text:[Ge],"text-shadow":[Ge],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gt,G,U,x]}],container:["container"],columns:[{columns:[ee,G,U,i]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",U,G]}],basis:[{basis:[gt,"full","auto",i,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,gt,"auto","initial","none",G]}],grow:[{grow:["",ee,U,G]}],shrink:[{shrink:["",ee,U,G]}],order:[{order:[Je,"first","last","none",U,G]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[i,"screen",...P()]}],"min-w":[{"min-w":[i,"screen","none",...P()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[o]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",r,$t,it]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,U,bn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gn,G]}],"font-family":[{font:[ag,G,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,U,G]}],"line-clamp":[{"line-clamp":[ee,"none",U,bn]}],leading:[{leading:[a,...k()]}],"list-image":[{"list-image":["none",U,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",U,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",U,it]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ee,"auto",U,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",U,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,U,G],radial:["",U,G],conic:[Je,U,G]},ig,sg]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,U,G]}],"outline-w":[{outline:["",ee,$t,it]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",d,yr,br]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",u,yr,br]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ee,it]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,yr,br]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ee,U,G]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[U,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",U,G]}],filter:[{filter:["","none",U,G]}],blur:[{blur:Z()}],brightness:[{brightness:[ee,U,G]}],contrast:[{contrast:[ee,U,G]}],"drop-shadow":[{"drop-shadow":["","none",m,yr,br]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ee,U,G]}],"hue-rotate":[{"hue-rotate":[ee,U,G]}],invert:[{invert:["",ee,U,G]}],saturate:[{saturate:[ee,U,G]}],sepia:[{sepia:["",ee,U,G]}],"backdrop-filter":[{"backdrop-filter":["","none",U,G]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[ee,U,G]}],"backdrop-contrast":[{"backdrop-contrast":[ee,U,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,U,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,U,G]}],"backdrop-invert":[{"backdrop-invert":["",ee,U,G]}],"backdrop-opacity":[{"backdrop-opacity":[ee,U,G]}],"backdrop-saturate":[{"backdrop-saturate":[ee,U,G]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,U,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",U,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",U,G]}],ease:[{ease:["linear","initial",b,U,G]}],delay:[{delay:[ee,U,G]}],animate:[{animate:["none",y,U,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,U,G]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[U,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",U,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",U,G]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ee,$t,it,bn]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},dg=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:s={},override:a={}})=>(Wt(e,"cacheSize",t),Wt(e,"prefix",r),Wt(e,"experimentalParseClassName",n),xr(e.theme,a.theme),xr(e.classGroups,a.classGroups),xr(e.conflictingClassGroups,a.conflictingClassGroups),xr(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Wt(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),vr(e.theme,s.theme),vr(e.classGroups,s.classGroups),vr(e.conflictingClassGroups,s.conflictingClassGroups),vr(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),ac(e,s,"orderSensitiveModifiers"),e),Wt=(e,t,r)=>{r!==void 0&&(e[t]=r)},xr=(e,t)=>{if(t)for(const r in t)Wt(e,r,t[r])},vr=(e,t)=>{if(t)for(const r in t)ac(e,t,r)},ac=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},ug=(e,...t)=>typeof e=="function"?Yn(qn,e,...t):Yn(()=>dg(qn(),e),...t),q=Yn(qn);var fg=e=>ve(e)?q:ug({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),pg=(...e)=>t=>{let r=Dr(e);return!r||!t.twMerge?r:((!Ue.cachedTwMerge||Ue.didTwMergeConfigChange)&&(Ue.didTwMergeConfigChange=!1,Ue.cachedTwMerge=fg(Ue.cachedTwMergeConfig)),Ue.cachedTwMerge(r)||void 0)},{tv:H}=Im(pg);const hg=H({base:["relative inline-flex items-center justify-center overflow-hidden font-medium","text-center align-middle","box-border select-none","focus:outline-none focus:ring-2 focus:ring-offset-2","transition-all duration-200 ease-in-out"],variants:{size:{sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-14 h-14 text-base"},color:{default:["bg-default-100 text-default-foreground","focus:ring-default-500"],primary:["bg-primary-100 text-primary-foreground","focus:ring-primary-500"],secondary:["bg-secondary-100 text-secondary-foreground","focus:ring-secondary-500"],success:["bg-success-100 text-success-foreground","focus:ring-success-500"],warning:["bg-warning-100 text-warning-foreground","focus:ring-warning-500"],danger:["bg-danger-100 text-danger-foreground","focus:ring-danger-500"]},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},isBordered:{true:"ring-2 ring-offset-2 ring-white dark:ring-offset-background",false:""},isDisabled:{true:"opacity-30 cursor-not-allowed pointer-events-none",false:"cursor-pointer"},isFocusable:{true:"cursor-pointer",false:""}},compoundVariants:[{color:"default",isBordered:!0,class:"ring-default-300 dark:ring-default-600"},{color:"primary",isBordered:!0,class:"ring-primary-300 dark:ring-primary-600"},{color:"secondary",isBordered:!0,class:"ring-secondary-300 dark:ring-secondary-600"},{color:"success",isBordered:!0,class:"ring-success-300 dark:ring-success-600"},{color:"warning",isBordered:!0,class:"ring-warning-300 dark:ring-warning-600"},{color:"danger",isBordered:!0,class:"ring-danger-300 dark:ring-danger-600"},{isDisabled:!0,isFocusable:!0,class:"cursor-not-allowed"}],defaultVariants:{size:"md",color:"default",radius:"full",isBordered:!1,isDisabled:!1,isFocusable:!1}}),mg=H({base:["w-full h-full object-cover","transition-opacity duration-200 ease-in-out"]}),gg=H({base:["w-full h-full flex items-center justify-center","bg-inherit text-inherit"]}),bg=H({base:["font-medium uppercase select-none","text-inherit leading-none"]}),yg=H({base:["w-1/2 h-1/2 text-inherit","flex items-center justify-center"]}),xg=H({base:["flex items-center"],variants:{isGrid:{true:"flex-wrap gap-2",false:"flex-row"}},defaultVariants:{isGrid:!1}}),vg=H({base:["inline-flex items-center justify-center font-medium","bg-default-100 text-default-foreground","border border-background","select-none transition-all duration-200"],variants:{size:{sm:"w-8 h-8 text-xs ml-[-8px]",md:"w-10 h-10 text-sm ml-[-10px]",lg:"w-14 h-14 text-base ml-[-14px]"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},isGrid:{true:"ml-0",false:""}},defaultVariants:{size:"md",radius:"full",isGrid:!1}}),wg=e=>hg(e),Cg=e=>xg(e),kg=e=>vg(e),Sg=e=>{if(!e)return"";const t=e.trim().split(/\s+/);return t.length===1?t[0].substring(0,2).toUpperCase():t.slice(0,2).map(r=>r.charAt(0)).join("").toUpperCase()},jg=e=>{if(!e)return"";let t=0;for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);t=(t<<5)-t+s,t=t&t}return`hsl(${Math.abs(t)%360}, 70%, 80%)`},ze={size:"md",color:"default",radius:"full",isBordered:!1,isDisabled:!1,isFocusable:!1,showFallback:!1},et={max:5,isGrid:!1,isDisabled:!1,isBordered:!1},oc=e=>{const{src:t,name:r,showFallback:n=ze.showFallback,getInitials:s=Sg,ImgComponent:a="img",imgProps:o={},isFocusable:i=ze.isFocusable,isDisabled:l=ze.isDisabled,className:c="","data-testid":d,...u}=e,[p,m]=h.useState(!1),[g,w]=h.useState(!1);h.useEffect(()=>{if(!t){m(!1),w(!1);return}m(!1),w(!1);const j=new Image;return j.onload=()=>{m(!0),w(!1)},j.onerror=()=>{m(!1),w(!0)},j.src=t,()=>{j.onload=null,j.onerror=null}},[t]);const x=h.useMemo(()=>r?s(r):"",[r,s]),b=h.useMemo(()=>!!(n&&(!t||g)||r&&!t||t&&g),[n,t,g,r]),y=h.useMemo(()=>{if(!(!r||t))return jg(r)},[r,t]),v=h.useMemo(()=>({...o,src:t,alt:r||"Avatar",onLoad:h.useCallback(j=>{m(!0),w(!1),o.onLoad?.(j)},[o]),onError:h.useCallback(j=>{m(!1),w(!0),o.onError?.(j)},[o])}),[o,t,r]),C=h.useMemo(()=>({...u,className:c,"data-testid":d,"data-hover":void 0,"data-focus":void 0,"data-focus-visible":void 0,tabIndex:i&&!l?0:void 0,role:i?"button":"img","aria-label":r||"Avatar",style:{...u.style,...y&&b&&r&&!t?{backgroundColor:y}:{}}}),[u,c,d,i,l,r,y,b,t]),S=h.useMemo(()=>({"aria-hidden":!0,style:{backgroundColor:"inherit"}}),[]);return{isImgLoaded:p,shouldShowFallback:b,initials:x,imgProps:v,baseProps:C,fallbackProps:S}},Ws=({size:e=24,className:t="",...r})=>{const n=yg({className:t});return f.jsx("svg",{className:n,width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:f.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",fill:"currentColor"})})};Ws.displayName="AvatarIcon";const ic=h.forwardRef(({src:e,name:t,icon:r,fallback:n,color:s=ze.color,size:a=ze.size,radius:o=ze.radius,isBordered:i=ze.isBordered,isDisabled:l=ze.isDisabled,isFocusable:c=ze.isFocusable,showFallback:d=ze.showFallback,ImgComponent:u="img",imgProps:p={},getInitials:m,classNames:g={},as:w="div",...x},b)=>{const{isImgLoaded:y,shouldShowFallback:v,initials:C,imgProps:S,baseProps:j,fallbackProps:A}=oc({src:e,name:t,showFallback:d,getInitials:m,ImgComponent:u,imgProps:p,isFocusable:c,isDisabled:l,...x}),k=h.useMemo(()=>{const P=wg({color:s,size:a,radius:o,isBordered:i,isDisabled:l,isFocusable:c});return q(P,g.base)},[s,a,o,i,l,c,g.base]),V=h.useMemo(()=>{const P=mg();return q(P,g.img)},[g.img]),M=h.useMemo(()=>{const P=gg();return q(P,g.fallback)},[g.fallback]),D=h.useMemo(()=>{const P=bg();return q(P,g.name)},[g.name]),z=h.useMemo(()=>q("w-1/2 h-1/2",g.icon),[g.icon]),L=()=>!e||!y?null:h.createElement(u,{...S,className:V}),I=()=>v?f.jsxs("div",{...A,className:M,children:[n,!n&&t&&f.jsx("span",{className:D,"aria-label":`${t} initials`,children:C}),!n&&!t&&r&&f.jsx("span",{className:z,"aria-hidden":"true",children:r}),!n&&!t&&!r&&f.jsx(Ws,{className:z})]}):null,R={hidden:{opacity:0,scale:1.1},visible:{opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}}},B={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}}};return f.jsxs(w,{ref:b,...j,className:k,children:[e&&f.jsx(_.div,{className:"absolute inset-0",variants:R,initial:"hidden",animate:y?"visible":"hidden",children:L()}),f.jsx(_.div,{className:"absolute inset-0",variants:B,initial:"hidden",animate:v?"visible":"hidden",children:I()})]})});ic.displayName="Avatar";const lc=e=>{const{max:t=et.max,total:r,size:n,color:s,radius:a,isGrid:o=et.isGrid,isDisabled:i=et.isDisabled,isBordered:l=et.isBordered,renderCount:c,children:d,className:u="","data-testid":p,...m}=e,g=h.useMemo(()=>h.Children.count(d),[d]),w=h.useMemo(()=>typeof r=="number"?Math.max(0,r-t):Math.max(0,g-t),[r,t,g]),x=h.useMemo(()=>typeof r=="number"?r>t:g>t,[r,t,g]),b=h.useMemo(()=>({size:n,color:s,radius:a,isDisabled:i,isBordered:l,max:t,total:r,isGrid:o,renderCount:c}),[n,s,a,i,l,t,r,o,c]),y=h.useMemo(()=>({...m,className:u,"data-testid":p,role:"group","aria-label":`Avatar group${r?` of ${r} users`:""}`}),[m,u,p,r]),v=h.useMemo(()=>({"aria-label":`${w} more users`,role:"img"}),[w]);return{context:b,remainingCount:w,shouldShowCount:x,baseProps:y,countProps:v}},Tg=h.createContext(null),Ag=({value:e,children:t})=>f.jsx(Tg.Provider,{value:e,children:t}),cc=h.forwardRef(({max:e=et.max,total:t,size:r,color:n,radius:s,isGrid:a=et.isGrid,isDisabled:o=et.isDisabled,isBordered:i=et.isBordered,renderCount:l,classNames:c={},children:d,...u},p)=>{const{context:m,remainingCount:g,shouldShowCount:w,baseProps:x,countProps:b}=lc({max:e,total:t,size:r,color:n,radius:s,isGrid:a,isDisabled:o,isBordered:i,renderCount:l,children:d,...u}),y=h.useMemo(()=>{const j=Cg({isGrid:a});return q(j,c.base)},[a,c.base]),v=h.useMemo(()=>{const j=kg({size:r,radius:s,isGrid:a});return q(j,c.count)},[r,s,a,c.count]),C=h.useMemo(()=>{if(!d)return null;const A=h.Children.toArray(d).slice(0,e);return A.map((k,V)=>a?f.jsx(_.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:V*.05,duration:.2,ease:[.4,0,.2,1]},children:k},V):f.jsx(_.div,{className:V>0?"-ml-2":"",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:V*.05,duration:.2,ease:[.4,0,.2,1]},style:{zIndex:A.length-V},children:k},V))},[d,e,a]),S=()=>{if(!w)return null;if(l){const j=l(g);return f.jsx(_.div,{className:v,"aria-label":b["aria-label"],role:b.role,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:e*.05,duration:.2,ease:[.4,0,.2,1]},children:j})}return f.jsxs(_.div,{className:v,"aria-label":b["aria-label"],role:b.role,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:e*.05,duration:.2,ease:[.4,0,.2,1]},children:["+",g]})};return f.jsx(Ag,{value:m,children:f.jsxs("div",{ref:p,...x,className:y,children:[C,S()]})})});cc.displayName="AvatarGroup";const Mg=H({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","absolute","items-center","justify-center","whitespace-nowrap","origin-center","text-tiny","font-medium","subpixel-antialiased","scale-100","select-none","transition-transform","!duration-200","!ease-soft-spring"]},variants:{variant:{solid:{badge:"text-white"},flat:{badge:""},faded:{badge:""},shadow:{badge:"text-white shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"min-w-4 h-4 text-tiny px-1"},md:{badge:"min-w-5 h-5 text-tiny px-1"},lg:{badge:"min-w-6 h-6 text-small px-1.5"}},shape:{circle:{badge:"rounded-full"},rectangle:{badge:"rounded-md"}},placement:{"top-right":{badge:"top-0 right-0 translate-x-1/2 -translate-y-1/2"},"top-left":{badge:"top-0 left-0 -translate-x-1/2 -translate-y-1/2"},"bottom-right":{badge:"bottom-0 right-0 translate-x-1/2 translate-y-1/2"},"bottom-left":{badge:"bottom-0 left-0 -translate-x-1/2 translate-y-1/2"}},isInvisible:{true:{badge:"scale-0"},false:{badge:"scale-100"}},showOutline:{true:{badge:"ring-2 ring-background"},false:{}},disableAnimation:{true:{badge:"transition-none"},false:{}},isOneChar:{true:{},false:{}}},compoundVariants:[{variant:"solid",color:"default",class:{badge:"bg-default text-default-foreground"}},{variant:"solid",color:"primary",class:{badge:"bg-primary text-primary-foreground"}},{variant:"solid",color:"secondary",class:{badge:"bg-secondary text-secondary-foreground"}},{variant:"solid",color:"success",class:{badge:"bg-success text-success-foreground"}},{variant:"solid",color:"warning",class:{badge:"bg-warning text-warning-foreground"}},{variant:"solid",color:"danger",class:{badge:"bg-danger text-danger-foreground"}},{variant:"flat",color:"default",class:{badge:"bg-default/20 text-default-600"}},{variant:"flat",color:"primary",class:{badge:"bg-primary/20 text-primary-600"}},{variant:"flat",color:"secondary",class:{badge:"bg-secondary/20 text-secondary-600"}},{variant:"flat",color:"success",class:{badge:"bg-success/20 text-success-600 dark:text-success-500"}},{variant:"flat",color:"warning",class:{badge:"bg-warning/20 text-warning-600 dark:text-warning-500"}},{variant:"flat",color:"danger",class:{badge:"bg-danger/20 text-danger-500"}},{variant:"faded",color:"default",class:{badge:"border-small border-default bg-default-50 text-default-foreground"}},{variant:"faded",color:"primary",class:{badge:"border-small border-primary bg-primary-50 text-primary-600"}},{variant:"faded",color:"secondary",class:{badge:"border-small border-secondary bg-secondary-50 text-secondary-600"}},{variant:"faded",color:"success",class:{badge:"border-small border-success bg-success-50 text-success-600 dark:text-success-500"}},{variant:"faded",color:"warning",class:{badge:"border-small border-warning bg-warning-50 text-warning-600 dark:text-warning-500"}},{variant:"faded",color:"danger",class:{badge:"border-small border-danger bg-danger-50 text-danger-500"}},{variant:"shadow",color:"default",class:{badge:"shadow-lg shadow-default/50 bg-default text-default-foreground"}},{variant:"shadow",color:"primary",class:{badge:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{badge:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground"}},{variant:"shadow",color:"success",class:{badge:"shadow-lg shadow-success/40 bg-success text-success-foreground"}},{variant:"shadow",color:"warning",class:{badge:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground"}},{variant:"shadow",color:"danger",class:{badge:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 px-0"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 px-0"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 px-0"}}],defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",isInvisible:!1,showOutline:!1,disableAnimation:!1,isOneChar:!1}}),dc=h.forwardRef(({children:e,content:t,variant:r="solid",color:n="default",size:s="md",shape:a="rectangle",placement:o="top-right",isOneChar:i=!1,showOutline:l=!1,isInvisible:c=!1,disableAnimation:d=!1,classNames:u,className:p,...m},g)=>{const w=h.useMemo(()=>i?!0:typeof t=="string"||typeof t=="number"?String(t).length===1:!1,[t,i]),x=h.useMemo(()=>Mg({variant:r,color:n,size:s,shape:a,placement:o,isOneChar:w,showOutline:l,isInvisible:c,disableAnimation:d}),[r,n,s,a,o,w,l,c,d]);return!t&&e?f.jsx(f.Fragment,{children:e}):t&&!e?f.jsx("span",{ref:g,className:q(x.badge(),u?.badge,p),...m,children:t}):f.jsxs("div",{ref:g,className:q(x.base(),u?.base,p),...m,children:[e,t&&f.jsx("span",{className:q(x.badge(),u?.badge),"aria-label":typeof t=="string"?t:"Badge",children:t})]})});dc.displayName="Badge";const uc=H({slots:{base:["flex","items-center","justify-start","max-w-fit","relative","overflow-hidden"],list:["flex","flex-wrap","items-center","list-none","p-0","m-0"],item:["flex","items-center","text-inherit","whitespace-nowrap","box-border","outline-none","tap-highlight-transparent"],link:["flex","items-center","gap-1","outline-none","cursor-pointer","transition-colors","tap-highlight-transparent","rounded-small","relative","inline-flex","shrink-0","text-inherit","no-underline","hover:opacity-80","active:opacity-disabled","focus-visible:z-10","focus-visible:outline-2","focus-visible:outline-focus","focus-visible:outline-offset-2"],separator:["flex","items-center","justify-center","pointer-events-none","shrink-0","text-inherit","select-none"],ellipsis:["flex","items-center","justify-center","cursor-pointer","text-inherit","rounded-small","transition-colors","hover:opacity-80","active:opacity-disabled","outline-none","focus-visible:z-10","focus-visible:outline-2","focus-visible:outline-focus","focus-visible:outline-offset-2"]},variants:{size:{sm:{base:"text-xs",item:"h-6",link:"px-1 h-6 text-xs min-h-6",separator:"px-1 text-xs",ellipsis:"w-6 h-6 text-xs"},md:{base:"text-sm",item:"h-8",link:"px-2 h-8 text-sm min-h-8",separator:"px-1.5 text-sm",ellipsis:"w-8 h-8 text-sm"},lg:{base:"text-base",item:"h-10",link:"px-3 h-10 text-base min-h-10",separator:"px-2 text-base",ellipsis:"w-10 h-10 text-base"}},color:{default:{item:"text-foreground",link:"text-foreground data-[current=true]:text-foreground data-[current=true]:font-medium",separator:"text-foreground-400"},primary:{item:"text-primary",link:"text-primary data-[current=true]:text-primary data-[current=true]:font-medium",separator:"text-primary-300"},secondary:{item:"text-secondary",link:"text-secondary data-[current=true]:text-secondary data-[current=true]:font-medium",separator:"text-secondary-300"},success:{item:"text-success",link:"text-success data-[current=true]:text-success data-[current=true]:font-medium",separator:"text-success-300"},warning:{item:"text-warning",link:"text-warning data-[current=true]:text-warning data-[current=true]:font-medium",separator:"text-warning-300"},danger:{item:"text-danger",link:"text-danger data-[current=true]:text-danger data-[current=true]:font-medium",separator:"text-danger-300"}},variant:{solid:{link:["data-[current=true]:bg-foreground","data-[current=true]:text-background"]},bordered:{link:["border-2","border-transparent","data-[current=true]:border-foreground"]},light:{link:["data-[current=true]:bg-foreground/10"]},flat:{link:["data-[current=true]:bg-foreground/20"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",link:"cursor-default pointer-events-none"}},hideSeparator:{true:{separator:"hidden"}}},compoundVariants:[{color:"primary",variant:"solid",class:{link:["data-[current=true]:bg-primary","data-[current=true]:text-primary-foreground"]}},{color:"primary",variant:"bordered",class:{link:"data-[current=true]:border-primary"}},{color:"primary",variant:"light",class:{link:"data-[current=true]:bg-primary/10"}},{color:"primary",variant:"flat",class:{link:"data-[current=true]:bg-primary/20"}},{color:"secondary",variant:"solid",class:{link:["data-[current=true]:bg-secondary","data-[current=true]:text-secondary-foreground"]}},{color:"secondary",variant:"bordered",class:{link:"data-[current=true]:border-secondary"}},{color:"secondary",variant:"light",class:{link:"data-[current=true]:bg-secondary/10"}},{color:"secondary",variant:"flat",class:{link:"data-[current=true]:bg-secondary/20"}},{color:"success",variant:"solid",class:{link:["data-[current=true]:bg-success","data-[current=true]:text-success-foreground"]}},{color:"success",variant:"bordered",class:{link:"data-[current=true]:border-success"}},{color:"success",variant:"light",class:{link:"data-[current=true]:bg-success/10"}},{color:"success",variant:"flat",class:{link:"data-[current=true]:bg-success/20"}},{color:"warning",variant:"solid",class:{link:["data-[current=true]:bg-warning","data-[current=true]:text-warning-foreground"]}},{color:"warning",variant:"bordered",class:{link:"data-[current=true]:border-warning"}},{color:"warning",variant:"light",class:{link:"data-[current=true]:bg-warning/10"}},{color:"warning",variant:"flat",class:{link:"data-[current=true]:bg-warning/20"}},{color:"danger",variant:"solid",class:{link:["data-[current=true]:bg-danger","data-[current=true]:text-danger-foreground"]}},{color:"danger",variant:"bordered",class:{link:"data-[current=true]:border-danger"}},{color:"danger",variant:"light",class:{link:"data-[current=true]:bg-danger/10"}},{color:"danger",variant:"flat",class:{link:"data-[current=true]:bg-danger/20"}}],defaultVariants:{size:"md",color:"default",variant:"flat",isDisabled:!1,hideSeparator:!1}}),Vg=H({base:["flex","items-center","justify-center","pointer-events-none","shrink-0","select-none"],variants:{type:{slash:"",chevron:"",arrow:"",dot:"",custom:""},size:{sm:"w-3 h-3 text-xs",md:"w-4 h-4 text-sm",lg:"w-5 h-5 text-base"},color:{default:"text-foreground-400",primary:"text-primary-300",secondary:"text-secondary-300",success:"text-success-300",warning:"text-warning-300",danger:"text-danger-300"}},defaultVariants:{type:"slash",size:"md",color:"default"}});H({slots:{item:"",separator:""},variants:{animation:{none:{},fade:{item:"animate-in fade-in duration-300",separator:"animate-in fade-in duration-300"},slide:{item:"animate-in slide-in-from-left-2 duration-300",separator:"animate-in slide-in-from-left-1 duration-300"},scale:{item:"animate-in zoom-in-95 duration-300",separator:"animate-in zoom-in-95 duration-300"}},stagger:{true:{},false:{}}},compoundVariants:[{animation:"fade",stagger:!0,class:{item:"animate-in fade-in duration-300 fill-mode-both",separator:"animate-in fade-in duration-300 fill-mode-both"}},{animation:"slide",stagger:!0,class:{item:"animate-in slide-in-from-left-2 duration-300 fill-mode-both",separator:"animate-in slide-in-from-left-1 duration-300 fill-mode-both"}},{animation:"scale",stagger:!0,class:{item:"animate-in zoom-in-95 duration-300 fill-mode-both",separator:"animate-in zoom-in-95 duration-300 fill-mode-both"}}],defaultVariants:{animation:"none",stagger:!1}});const Fo=e=>{const t={slash:"/",chevron:"›",arrow:"→",dot:"•",custom:""};return t[e]||t.slash},fc=h.createContext(void 0),pc=()=>{const e=h.useContext(fc);if(!e)throw new Error("useBreadcrumbContext must be used within a Breadcrumb component");return e},Pg=e=>{const{children:t,size:r="md",color:n="default",variant:s="flat",separator:a="slash",separatorClassName:o,itemsClassName:i,hideSeparator:l=!1,maxItems:c,showRoot:d=!0,isDisabled:u=!1,itemsBeforeCollapse:p=1,itemsAfterCollapse:m=1,renderEllipsis:g,className:w,listProps:x,...b}=e,y=h.Children.toArray(t),v=h.useMemo(()=>{if(!c||y.length<=c)return y;const j=y.length,A=Math.max(2,c-1);if(j<=A)return y;const k=y.slice(0,p),V=y.slice(j-m),M=j-p-m,D=g?g(M):f.jsx("span",{"aria-label":`${M} more items`,children:"..."},"ellipsis");return[...k,D,...V]},[y,c,p,m,g]),C=h.useMemo(()=>uc({size:r,color:n,variant:s,isDisabled:u,hideSeparator:l}),[r,n,s,u,l]),S=h.useMemo(()=>({size:r,color:n,variant:s,separator:a,separatorClassName:o,isDisabled:u}),[r,n,s,a,o,u]);return{processedChildren:v,slots:C,contextValue:S,itemsClassName:i,className:w,listProps:x,otherProps:b}},hc=h.forwardRef((e,t)=>{const{processedChildren:r,slots:n,contextValue:s,itemsClassName:a,className:o,listProps:i,otherProps:l}=Pg(e);return f.jsx(fc.Provider,{value:s,children:f.jsx("nav",{ref:t,className:n.base({className:o}),"aria-label":"Breadcrumb",...l,children:f.jsx("ol",{className:n.list({className:a}),...i,children:r.map((c,d)=>{const u=d===r.length-1;return f.jsxs(h.Fragment,{children:[f.jsx("li",{className:n.item(),children:h.isValidElement(c)?h.cloneElement(c,{isCurrent:c.props?.isCurrent??u}):c}),!u&&!e.hideSeparator&&f.jsx("li",{className:n.separator({className:s.separatorClassName}),children:h.isValidElement(s.separator)?s.separator:f.jsxs("span",{"aria-hidden":"true",role:"separator",className:"flex items-center justify-center",children:[s.separator==="slash"&&f.jsx("span",{className:"text-inherit",children:"/"}),s.separator==="chevron"&&f.jsx("svg",{className:`${s.size==="sm"?"w-3 h-3":s.size==="lg"?"w-5 h-5":"w-4 h-4"} text-inherit`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("polyline",{points:"9,18 15,12 9,6",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),s.separator==="arrow"&&f.jsxs("svg",{className:`${s.size==="sm"?"w-3 h-3":s.size==="lg"?"w-5 h-5":"w-4 h-4"} text-inherit`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[f.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("polyline",{points:"12,5 19,12 12,19",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),s.separator==="dot"&&f.jsx("svg",{className:`${s.size==="sm"?"w-3 h-3":s.size==="lg"?"w-5 h-5":"w-4 h-4"} text-inherit`,fill:"currentColor",viewBox:"0 0 24 24",children:f.jsx("circle",{cx:"12",cy:"12",r:"3"})})]})})]},d)})})})})});hc.displayName="Breadcrumb";const Yr=({to:e,children:t,className:r="",activeClassName:n="",exact:s=!1,replace:a=!1,onClick:o})=>{const i=ta.useLocation(),l=s?i.pathname===e:i.pathname.startsWith(e),c=[r,l&&n].filter(Boolean).join(" "),d=u=>{o?.(u)};return f.jsx(ta.Link,{to:e,className:c,replace:a,onClick:d,children:t})},Eg=e=>{const t=pc(),{children:r,href:n,to:s,isDisabled:a,isCurrent:o=!1,startContent:i,endContent:l,className:c,itemClassName:d,linkClassName:u,size:p,color:m,variant:g,onPress:w,...x}=e,b=s||n,y=p||t.size||"md",v=m||t.color||"default",C=g||t.variant||"flat",S=a||t.isDisabled||!1,j=h.useMemo(()=>uc({size:y,color:v,variant:C,isDisabled:S}),[y,v,C,S]),A=h.useCallback(V=>{if(S||o){V.preventDefault();return}w&&w(V)},[S,o,w]);return{children:r,href:n,to:s,isDisabled:S,isCurrent:o,startContent:i,endContent:l,className:c,itemClassName:d,linkClassName:u,slots:j,handlePress:A,shouldRenderAsLink:!!(b&&!S&&!o),otherProps:x}},mc=h.forwardRef((e,t)=>{const{children:r,href:n,to:s,isDisabled:a,isCurrent:o,startContent:i,endContent:l,linkClassName:c,slots:d,handlePress:u,shouldRenderAsLink:p,otherProps:m}=Eg(e),g=f.jsxs(f.Fragment,{children:[i,f.jsx("span",{children:r}),l]}),w={ref:t,className:d.link({className:c}),"data-current":o,"data-disabled":a,"aria-current":o?"page":void 0,"aria-disabled":a,tabIndex:a?-1:0,onClick:u,...m};if(p){if(s)return f.jsx(f.Fragment,{children:f.jsx(Yr,{to:s,className:d.link({className:c}),onClick:u,children:g})});if(n)return f.jsx(f.Fragment,{children:f.jsx("a",{href:n,...w,children:g})})}return f.jsx(f.Fragment,{children:f.jsx("span",{...w,role:"link",children:g})})});mc.displayName="BreadcrumbItem";const Ig={slash:()=>f.jsx("span",{children:"/"}),chevron:()=>f.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-full h-full",children:f.jsx("polyline",{points:"9,18 15,12 9,6"})}),arrow:()=>f.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-full h-full",children:[f.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),f.jsx("polyline",{points:"12,5 19,12 12,19"})]}),dot:()=>f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-full h-full",children:f.jsx("circle",{cx:"12",cy:"12",r:"3"})})},Ng=e=>{const t=pc(),{type:r,customIcon:n,className:s,size:a,color:o}=e,i=r||(typeof t.separator=="string"?t.separator:"slash"),l=a||t.size||"md",c=o||t.color||"default",d=h.useMemo(()=>Vg({type:i,size:l,color:c}),[i,l,c]),u=h.useMemo(()=>{if(h.isValidElement(t.separator))return t.separator;if(n)return n;if(i==="custom")return f.jsx("span",{children:Fo(i)});const p=Ig[i];return p?f.jsx(p,{}):f.jsx("span",{children:Fo(i)})},[t.separator,n,i]);return{separatorClasses:d,separatorContent:u,className:s}},gc=h.forwardRef((e,t)=>{const{separatorClasses:r,separatorContent:n,className:s}=Ng(e);return f.jsx("span",{ref:t,className:`${r} ${s||""}`,"aria-hidden":"true",role:"separator",children:n})});gc.displayName="BreadcrumbSeparator";const Rg={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg",xl:"px-8 py-4 text-xl"},Dg={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},Bg=(e,t)=>{const r=t==="faded"||t==="light"?"ghost":t==="bordered"||t==="outlined"?"outline":t;return{default:{solid:"bg-gray-600 hover:bg-gray-700 active:bg-gray-800 text-white border-gray-600 hover:border-gray-700 dark:bg-gray-700 dark:hover:bg-gray-600 dark:active:bg-gray-500 dark:border-gray-700 dark:hover:border-gray-600",outline:"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-600 border-2 border-gray-600 hover:border-gray-700 dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 dark:border-gray-400 dark:hover:border-gray-300",ghost:"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-600 border-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300",link:"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-600 border-transparent underline hover:no-underline dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300",gradient:"bg-gradient-to-r from-gray-500 to-gray-600 hover:from-gray-600 hover:to-gray-700 text-white border-transparent dark:from-gray-600 dark:to-gray-700 dark:hover:from-gray-500 dark:hover:to-gray-600"},primary:{solid:"bg-blue-600 hover:bg-blue-700 active:bg-blue-800 text-white border-blue-600 hover:border-blue-700 dark:bg-blue-600 dark:hover:bg-blue-500 dark:active:bg-blue-400",outline:"bg-transparent hover:bg-blue-50 active:bg-blue-100 text-blue-600 border-2 border-blue-600 hover:border-blue-700 dark:hover:bg-blue-900 dark:active:bg-blue-800 dark:text-blue-400 dark:border-blue-500 dark:hover:border-blue-400",ghost:"bg-transparent hover:bg-blue-100 active:bg-blue-200 text-blue-600 border-transparent dark:hover:bg-blue-900 dark:active:bg-blue-800 dark:text-blue-400",link:"bg-transparent hover:bg-blue-50 active:bg-blue-100 text-blue-600 border-transparent underline hover:no-underline dark:hover:bg-blue-900 dark:active:bg-blue-800 dark:text-blue-400",gradient:"bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white border-transparent dark:from-blue-600 dark:to-blue-700 dark:hover:from-blue-500 dark:hover:to-blue-600"},secondary:{solid:"bg-purple-600 hover:bg-purple-700 active:bg-purple-800 text-white border-purple-600 hover:border-purple-700 dark:bg-purple-600 dark:hover:bg-purple-500 dark:active:bg-purple-400",outline:"bg-transparent hover:bg-purple-50 active:bg-purple-100 text-purple-600 border-2 border-purple-600 hover:border-purple-700 dark:hover:bg-purple-900 dark:active:bg-purple-800 dark:text-purple-400 dark:border-purple-500 dark:hover:border-purple-400",ghost:"bg-transparent hover:bg-purple-100 active:bg-purple-200 text-purple-600 border-transparent dark:hover:bg-purple-900 dark:active:bg-purple-800 dark:text-purple-400",link:"bg-transparent hover:bg-purple-50 active:bg-purple-100 text-purple-600 border-transparent underline hover:no-underline dark:hover:bg-purple-900 dark:active:bg-purple-800 dark:text-purple-400",gradient:"bg-gradient-to-r from-purple-500 to-purple-600 hover:from-purple-600 hover:to-purple-700 text-white border-transparent dark:from-purple-600 dark:to-purple-700 dark:hover:from-purple-500 dark:hover:to-purple-600"},success:{solid:"bg-green-600 hover:bg-green-700 active:bg-green-800 text-white border-green-600 hover:border-green-700 dark:bg-green-600 dark:hover:bg-green-500 dark:active:bg-green-400",outline:"bg-transparent hover:bg-green-50 active:bg-green-100 text-green-600 border-2 border-green-600 hover:border-green-700 dark:hover:bg-green-900 dark:active:bg-green-800 dark:text-green-400 dark:border-green-500 dark:hover:border-green-400",ghost:"bg-transparent hover:bg-green-100 active:bg-green-200 text-green-600 border-transparent dark:hover:bg-green-900 dark:active:bg-green-800 dark:text-green-400",link:"bg-transparent hover:bg-green-50 active:bg-green-100 text-green-600 border-transparent underline hover:no-underline dark:hover:bg-green-900 dark:active:bg-green-800 dark:text-green-400",gradient:"bg-gradient-to-r from-green-500 to-green-600 hover:from-green-600 hover:to-green-700 text-white border-transparent dark:from-green-600 dark:to-green-700 dark:hover:from-green-500 dark:hover:to-green-600"},warning:{solid:"bg-yellow-500 hover:bg-yellow-600 active:bg-yellow-700 text-white border-yellow-500 hover:border-yellow-600 dark:bg-yellow-600 dark:hover:bg-yellow-500 dark:active:bg-yellow-400",outline:"bg-transparent hover:bg-yellow-50 active:bg-yellow-100 text-yellow-600 border-2 border-yellow-500 hover:border-yellow-600 dark:hover:bg-yellow-900 dark:active:bg-yellow-800 dark:text-yellow-400 dark:border-yellow-500 dark:hover:border-yellow-400",ghost:"bg-transparent hover:bg-yellow-100 active:bg-yellow-200 text-yellow-600 border-transparent dark:hover:bg-yellow-900 dark:active:bg-yellow-800 dark:text-yellow-400",link:"bg-transparent hover:bg-yellow-50 active:bg-yellow-100 text-yellow-600 border-transparent underline hover:no-underline dark:hover:bg-yellow-900 dark:active:bg-yellow-800 dark:text-yellow-400",gradient:"bg-gradient-to-r from-yellow-400 to-yellow-500 hover:from-yellow-500 hover:to-yellow-600 text-white border-transparent dark:from-yellow-500 dark:to-yellow-600 dark:hover:from-yellow-400 dark:hover:to-yellow-500"},danger:{solid:"bg-red-600 hover:bg-red-700 active:bg-red-800 text-white border-red-600 hover:border-red-700 dark:bg-red-600 dark:hover:bg-red-500 dark:active:bg-red-400",outline:"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border-2 border-red-600 hover:border-red-700 dark:hover:bg-red-900 dark:active:bg-red-800 dark:text-red-400 dark:border-red-500 dark:hover:border-red-400",ghost:"bg-transparent hover:bg-red-100 active:bg-red-200 text-red-600 border-transparent dark:hover:bg-red-900 dark:active:bg-red-800 dark:text-red-400",link:"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border-transparent underline hover:no-underline dark:hover:bg-red-900 dark:active:bg-red-800 dark:text-red-400",gradient:"bg-gradient-to-r from-red-500 to-red-600 hover:from-red-600 hover:to-red-700 text-white border-transparent dark:from-red-600 dark:to-red-700 dark:hover:from-red-500 dark:hover:to-red-600"}}[e][r]},Lg=(e=!1)=>e?"cursor-wait opacity-70 pointer-events-none":"",Og=(e=!1)=>e?"opacity-50 cursor-not-allowed pointer-events-none":"",zg=(e=!1)=>e?"w-full":"",$g=e=>({default:"focus:ring-gray-500 dark:focus:ring-gray-400",primary:"focus:ring-blue-500 dark:focus:ring-blue-400",secondary:"focus:ring-purple-500 dark:focus:ring-purple-400",success:"focus:ring-green-500 dark:focus:ring-green-400",warning:"focus:ring-yellow-500 dark:focus:ring-yellow-400",danger:"focus:ring-red-500 dark:focus:ring-red-400"})[e],Fg=(e=!1,t=!1,r=!1,n="primary")=>{if(e||t)return"";const a=`cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 ${$g(n)}`,o="transition-colors duration-200 ease-in-out";return r?`${a} ${o}`:`${a} ${o}`},Wg=(e=!1)=>e?"flex [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none [&>*:not(:first-child)]:-ml-px":"flex gap-2",_g={none:{},scale:{scale:1.05,transition:{duration:.2,ease:"easeOut"}},lift:{y:-2,scale:1.02,transition:{duration:.2,ease:"easeOut"}},bounce:{scale:[1,1.1,1.05],transition:{duration:.4,ease:"easeOut",times:[0,.6,1]}},pulse:{scale:[1,1.03,1],transition:{duration:1.5,ease:"easeInOut",repeat:1/0}},shake:{x:[-2,2,-2,2,0],transition:{duration:.4,ease:"easeInOut"}},rotate:{rotate:[0,-2,2,0],transition:{duration:.3,ease:"easeInOut"}},glow:{boxShadow:["0 0 0 0px rgba(59, 130, 246, 0)","0 0 0 4px rgba(59, 130, 246, 0.1)","0 0 20px 8px rgba(59, 130, 246, 0.15)"],transition:{duration:.3,ease:"easeOut"}}},Gg={none:{},scale:{scale:.95,transition:{duration:.1,ease:"easeInOut"}},bounce:{scale:[1,.9,1.1,1],transition:{duration:.4,ease:"easeOut",times:[0,.3,.7,1]}},ripple:{scale:[1,1.05],transition:{duration:.6,ease:"easeOut"}},press:{scale:.9,y:1,transition:{duration:.1,ease:"easeInOut"}},punch:{scale:[1,1.2,1],rotate:[0,-5,5,0],transition:{duration:.4,ease:"easeOut",times:[0,.4,1]}},wiggle:{rotate:[0,-10,10,-5,5,0],transition:{duration:.5,ease:"easeInOut"}}},Ug=e=>{const t={default:"107, 114, 128",primary:"59, 130, 246",secondary:"147, 51, 234",success:"34, 197, 94",warning:"234, 179, 8",danger:"239, 68, 68"};return t[e]||t.primary},Kg=e=>{const t=Ug(e);return{boxShadow:[`0 0 0 0px rgba(${t}, 0)`,`0 0 0 4px rgba(${t}, 0.1)`,`0 0 20px 8px rgba(${t}, 0.15)`],transition:{duration:.3,ease:"easeOut"}}},Hg={initial:{scale:1},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20}},bc=({children:e,className:t="",ariaLabel:r,color:n="primary",disabled:s=!1,isLoading:a=!1,onClick:o,type:i="button",size:l="md",variant:c="solid",radius:d="md",startIcon:u,endIcon:p,fullWidth:m=!1,disableAnimation:g=!1,hoverAnimation:w="scale",clickAnimation:x="scale","data-testid":b})=>{const[y,v]=h.useState(!1),C="inline-flex items-center justify-center font-medium border",S=Rg[l],j=Dg[d],A=Bg(n,c),k=Lg(a),V=Og(s),M=zg(m),D=Fg(s,a,g,n),z=[C,S,j,A,k,V,M,D,t].filter(Boolean).join(" "),L=g?{}:w==="glow"?Kg(n):_g[w],I=g?{}:Gg[x],R=()=>{s||a||(v(!0),setTimeout(()=>v(!1),300),o?.())};return f.jsxs(_.button,{"aria-label":r,disabled:s||a,className:z,onClick:R,type:i,"data-testid":b,...Hg,whileHover:s||a?{}:L,animate:y?I:{},children:[u&&f.jsx(Zn,{position:"start",children:u}),f.jsx(yc,{children:e}),p&&f.jsx(Zn,{position:"end",children:p}),a&&f.jsx(_.div,{className:"ml-2",initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{duration:.2},children:f.jsx(_.div,{className:"rounded-full h-4 w-4 border-b-2 border-current",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}})})]})},Xg=({children:e,className:t="",size:r="md",color:n="primary",variant:s="solid",radius:a="md",isAttached:o=!1,disabled:i=!1,disableAnimation:l=!1,"data-testid":c})=>{const u=[Wg(o),t].filter(Boolean).join(" "),p=h.Children.map(e,m=>h.isValidElement(m)&&m.type===bc?h.cloneElement(m,{size:m.props.size||r,color:m.props.color||n,variant:m.props.variant||s,radius:m.props.radius||a,disabled:m.props.disabled||i,disableAnimation:m.props.disableAnimation??l}):m);return f.jsx("div",{className:u,"data-testid":c,children:p})},yc=({children:e,className:t="","data-testid":r})=>f.jsx("span",{className:`${t}`,"data-testid":r,children:e}),Zn=({children:e,className:t="",position:r="start","data-testid":n})=>{const s=r==="start"?"mr-2":"ml-2";return f.jsx("span",{className:`inline-flex items-center ${s} ${t}`,"data-testid":n,children:e})},Yg=({children:e,className:t="","data-testid":r})=>f.jsx("span",{className:`${t}`,"data-testid":r,children:e}),qg={sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"},Zg={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},Jg=(e,t)=>({default:{elevated:"bg-white shadow-lg hover:shadow-xl border-gray-200 dark:bg-gray-800 dark:border-gray-600 dark:shadow-gray-900/20 dark:hover:shadow-gray-900/30",bordered:"bg-white border-2 border-gray-200 hover:border-gray-300 dark:bg-gray-800 dark:border-gray-600 dark:hover:border-gray-500",shadow:"bg-white shadow-md hover:shadow-lg dark:bg-gray-800 dark:shadow-gray-900/20 dark:hover:shadow-gray-900/30",flat:"bg-gray-50 hover:bg-gray-100 dark:bg-gray-900 dark:hover:bg-gray-800"},primary:{elevated:"bg-blue-50 shadow-lg hover:shadow-xl border-blue-200 dark:bg-blue-900/20 dark:border-blue-700 dark:shadow-blue-900/30 dark:hover:shadow-blue-900/40",bordered:"bg-blue-50 border-2 border-blue-200 hover:border-blue-300 dark:bg-blue-900/20 dark:border-blue-700 dark:hover:border-blue-600",shadow:"bg-blue-50 shadow-md shadow-blue-100 hover:shadow-lg hover:shadow-blue-200 dark:bg-blue-900/20 dark:shadow-blue-900/30 dark:hover:shadow-blue-900/40",flat:"bg-blue-100 hover:bg-blue-200 dark:bg-blue-900/30 dark:hover:bg-blue-900/40"},secondary:{elevated:"bg-purple-50 shadow-lg hover:shadow-xl border-purple-200 dark:bg-purple-900/20 dark:border-purple-700 dark:shadow-purple-900/30 dark:hover:shadow-purple-900/40",bordered:"bg-purple-50 border-2 border-purple-200 hover:border-purple-300 dark:bg-purple-900/20 dark:border-purple-700 dark:hover:border-purple-600",shadow:"bg-purple-50 shadow-md shadow-purple-100 hover:shadow-lg hover:shadow-purple-200 dark:bg-purple-900/20 dark:shadow-purple-900/30 dark:hover:shadow-purple-900/40",flat:"bg-purple-100 hover:bg-purple-200 dark:bg-purple-900/30 dark:hover:bg-purple-900/40"},success:{elevated:"bg-green-50 shadow-lg hover:shadow-xl border-green-200 dark:bg-green-900/20 dark:border-green-700 dark:shadow-green-900/30 dark:hover:shadow-green-900/40",bordered:"bg-green-50 border-2 border-green-200 hover:border-green-300 dark:bg-green-900/20 dark:border-green-700 dark:hover:border-green-600",shadow:"bg-green-50 shadow-md shadow-green-100 hover:shadow-lg hover:shadow-green-200 dark:bg-green-900/20 dark:shadow-green-900/30 dark:hover:shadow-green-900/40",flat:"bg-green-100 hover:bg-green-200 dark:bg-green-900/30 dark:hover:bg-green-900/40"},warning:{elevated:"bg-yellow-50 shadow-lg hover:shadow-xl border-yellow-200 dark:bg-yellow-900/20 dark:border-yellow-700 dark:shadow-yellow-900/30 dark:hover:shadow-yellow-900/40",bordered:"bg-yellow-50 border-2 border-yellow-200 hover:border-yellow-300 dark:bg-yellow-900/20 dark:border-yellow-700 dark:hover:border-yellow-600",shadow:"bg-yellow-50 shadow-md shadow-yellow-100 hover:shadow-lg hover:shadow-yellow-200 dark:bg-yellow-900/20 dark:shadow-yellow-900/30 dark:hover:shadow-yellow-900/40",flat:"bg-yellow-100 hover:bg-yellow-200 dark:bg-yellow-900/30 dark:hover:bg-yellow-900/40"},danger:{elevated:"bg-red-50 shadow-lg hover:shadow-xl border-red-200 dark:bg-red-900/20 dark:border-red-700 dark:shadow-red-900/30 dark:hover:shadow-red-900/40",bordered:"bg-red-50 border-2 border-red-200 hover:border-red-300 dark:bg-red-900/20 dark:border-red-700 dark:hover:border-red-600",shadow:"bg-red-50 shadow-md shadow-red-100 hover:shadow-lg hover:shadow-red-200 dark:bg-red-900/20 dark:shadow-red-900/30 dark:hover:shadow-red-900/40",flat:"bg-red-100 hover:bg-red-200 dark:bg-red-900/30 dark:hover:bg-red-900/40"}})[e][t],Qg=(e=!1,t=!1,r=!1)=>{let n="";return r?"opacity-50 cursor-not-allowed":(e&&(n+="cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:focus:ring-blue-400 dark:focus:ring-offset-gray-800 "),(t||e)&&(n+="transition-all duration-200 ease-in-out "),n.trim())},eb=({children:e,className:t="",size:r="md",variant:n="elevated",color:s="default",radius:a="lg",isClickable:o=!1,isDisabled:i=!1,isHoverable:l=!1,onClick:c,"data-testid":d})=>{const u="relative overflow-hidden",p=qg[r],m=Zg[a],g=Jg(s,n),w=Qg(o,l,i),x=[u,p,m,g,w,t].filter(Boolean).join(" "),b=o?"button":"div";return f.jsx(b,{className:x,onClick:o&&!i?c:void 0,disabled:o&&i,"data-testid":d,children:e})},_s={sm:{wrapper:"w-4 h-4",icon:"w-3 h-3 text-xs",label:"text-sm"},md:{wrapper:"w-5 h-5",icon:"w-4 h-4 text-sm",label:"text-base"},lg:{wrapper:"w-6 h-6",icon:"w-5 h-5 text-base",label:"text-lg"}},tb={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},rb=(e="primary",t=!1,r=!1,n=!1)=>{if(r)return t?"bg-gray-300 border-gray-300 text-gray-500":"bg-gray-100 border-gray-300";if(n)return t?"bg-red-500 border-red-500 text-white":"bg-white border-red-500 hover:border-red-600";const s={default:{selected:"bg-gray-600 border-gray-600 text-white hover:bg-gray-700 hover:border-gray-700",unselected:"bg-white border-gray-300 hover:border-gray-400"},primary:{selected:"bg-blue-600 border-blue-600 text-white hover:bg-blue-700 hover:border-blue-700",unselected:"bg-white border-gray-300 hover:border-blue-400"},secondary:{selected:"bg-purple-600 border-purple-600 text-white hover:bg-purple-700 hover:border-purple-700",unselected:"bg-white border-gray-300 hover:border-purple-400"},success:{selected:"bg-green-600 border-green-600 text-white hover:bg-green-700 hover:border-green-700",unselected:"bg-white border-gray-300 hover:border-green-400"},warning:{selected:"bg-yellow-500 border-yellow-500 text-white hover:bg-yellow-600 hover:border-yellow-600",unselected:"bg-white border-gray-300 hover:border-yellow-400"},danger:{selected:"bg-red-600 border-red-600 text-white hover:bg-red-700 hover:border-red-700",unselected:"bg-white border-gray-300 hover:border-red-400"}};return t?s[e].selected:s[e].unselected},nb=(e="md",t="md",r="primary",n=!1,s=!1,a=!1,o=!1)=>{const i=_s[e].wrapper,l=tb[t],c=rb(r,n,s,a);return["relative inline-flex items-center justify-center border-2 shrink-0",i,l,c,s?"cursor-not-allowed":"cursor-pointer focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-blue-500",!o&&!s?"transition-all duration-200 ease-in-out transform hover:scale-105 active:scale-95":"transition-colors duration-200 ease-in-out"].filter(Boolean).join(" ")},sb=(e="md",t=!1,r=!1,n=!1)=>["absolute flex items-center justify-center",_s[e].icon,t||r?"opacity-100 scale-100":"opacity-0 scale-75",n?"":"transition-all duration-200 ease-in-out"].filter(Boolean).join(" "),ab=(e="md",t=!1,r=!1,n=!1)=>["ml-2 select-none",_s[e].label,t?"text-gray-400 cursor-not-allowed":"text-gray-700",r&&n?"line-through":""].filter(Boolean).join(" "),ob=(e=!1)=>["inline-flex items-center",e?"opacity-60":""].filter(Boolean).join(" "),ib=()=>"absolute inset-0 w-full h-full opacity-0 cursor-pointer z-10",lb=({children:e,icon:t,value:r,name:n,size:s="md",color:a="primary",radius:o="md",lineThrough:i=!1,isSelected:l,defaultSelected:c=!1,isRequired:d=!1,isReadOnly:u=!1,isDisabled:p=!1,isIndeterminate:m=!1,isInvalid:g=!1,validationState:w,disableAnimation:x=!1,className:b="",classNames:y,onChange:v,onValueChange:C,"data-testid":S})=>{const[j,A]=h.useState(c),k=h.useRef(null),V=l!==void 0,M=V?l:j,D=g||w==="invalid",z=K=>{if(p||u)return;const W=K.target.checked;V||A(W),v?.(K),C?.(W)},I=[ob(p),y?.base,b].filter(Boolean).join(" "),B=[nb(s,o,a,M||m,p,D,x),y?.wrapper].filter(Boolean).join(" "),T=[sb(s,M,m,x),y?.icon].filter(Boolean).join(" "),E=[ab(s,p,i,M),y?.label].filter(Boolean).join(" "),$=[ib(),y?.hiddenInput].filter(Boolean).join(" "),O=()=>t?f.jsx(t,{isSelected:M,isIndeterminate:m,disableAnimation:x,className:T,"data-testid":`${S}-custom-icon`}):f.jsx(db,{isSelected:M,isIndeterminate:m,disableAnimation:x,className:T,"data-testid":`${S}-icon`});return f.jsxs("label",{className:I,"data-testid":S,children:[f.jsxs(cb,{className:B,"data-testid":`${S}-wrapper`,children:[f.jsx("input",{ref:k,type:"checkbox",value:r,name:n,checked:M||m,onChange:z,disabled:p,readOnly:u,required:d,"aria-invalid":D,"aria-checked":m?"mixed":M,className:$,"data-testid":`${S}-input`}),O()]}),e&&f.jsx("span",{className:E,"data-testid":`${S}-label`,children:e})]})},cb=({children:e,className:t="","data-testid":r})=>f.jsx("div",{className:t,"data-testid":r,children:e}),db=({isSelected:e=!1,isIndeterminate:t=!1,className:r="","data-testid":n})=>t?f.jsx("svg",{className:r,viewBox:"0 0 24 24",fill:"currentColor","data-testid":n,children:f.jsx("rect",{x:"6",y:"11",width:"12",height:"2",rx:"1"})}):e?f.jsx("svg",{className:r,viewBox:"0 0 24 24",fill:"currentColor","data-testid":n,children:f.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"})}):null,ub=H({slots:{base:["max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap","px-1","h-7","text-small","rounded-full","subpixel-antialiased","transition-colors","cursor-default","tap-highlight-transparent"],content:["flex-1","text-inherit","font-normal","px-2"],dot:["w-2","h-2","ml-1","rounded-full"],avatar:["flex","shrink-0","w-5","h-5","ml-1"],closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","cursor-pointer","active:opacity-disabled","hover:opacity-100","rounded-full","flex","items-center","justify-center","box-border","w-5","h-5","mr-1"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-small"},shadow:{base:"shadow-lg"},dot:{base:"border-medium border-default bg-transparent"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"w-4 h-4",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"w-5 h-5",avatar:"w-5 h-5"},lg:{base:"px-1 h-8 text-medium",content:"px-2",closeButton:"w-6 h-6",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"},false:{}},isCloseButtonVisible:{true:{},false:{}}},compoundVariants:[{variant:"solid",color:"default",class:{base:"bg-default text-default-foreground"}},{variant:"solid",color:"primary",class:{base:"bg-primary text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:"bg-secondary text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:"bg-success text-success-foreground"}},{variant:"solid",color:"warning",class:{base:"bg-warning text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:"bg-danger text-danger-foreground"}},{variant:"bordered",color:"default",class:{base:"border-default text-foreground"}},{variant:"bordered",color:"primary",class:{base:"border-primary text-primary"}},{variant:"bordered",color:"secondary",class:{base:"border-secondary text-secondary"}},{variant:"bordered",color:"success",class:{base:"border-success text-success"}},{variant:"bordered",color:"warning",class:{base:"border-warning text-warning"}},{variant:"bordered",color:"danger",class:{base:"border-danger text-danger"}},{variant:"light",color:"default",class:{base:"text-default-600"}},{variant:"light",color:"primary",class:{base:"text-primary"}},{variant:"light",color:"secondary",class:{base:"text-secondary"}},{variant:"light",color:"success",class:{base:"text-success"}},{variant:"light",color:"warning",class:{base:"text-warning"}},{variant:"light",color:"danger",class:{base:"text-danger"}},{variant:"flat",color:"default",class:{base:"bg-default/20 text-default-600"}},{variant:"flat",color:"primary",class:{base:"bg-primary/20 text-primary-600"}},{variant:"flat",color:"secondary",class:{base:"bg-secondary/20 text-secondary-600"}},{variant:"flat",color:"success",class:{base:"bg-success/20 text-success-600 dark:text-success-500"}},{variant:"flat",color:"warning",class:{base:"bg-warning/20 text-warning-600 dark:text-warning-500"}},{variant:"flat",color:"danger",class:{base:"bg-danger/20 text-danger-500"}},{variant:"faded",color:"default",class:{base:"border-default bg-default-50 text-default-foreground"}},{variant:"faded",color:"primary",class:{base:"border-primary bg-primary-50 text-primary-600"}},{variant:"faded",color:"secondary",class:{base:"border-secondary bg-secondary-50 text-secondary-600"}},{variant:"faded",color:"success",class:{base:"border-success bg-success-50 text-success-600 dark:text-success-500"}},{variant:"faded",color:"warning",class:{base:"border-warning bg-warning-50 text-warning-600 dark:text-warning-500"}},{variant:"faded",color:"danger",class:{base:"border-danger bg-danger-50 text-danger-500"}},{variant:"shadow",color:"default",class:{base:"shadow-lg shadow-default/50 bg-default text-default-foreground"}},{variant:"shadow",color:"primary",class:{base:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{base:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground"}},{variant:"shadow",color:"success",class:{base:"shadow-lg shadow-success/40 bg-success text-success-foreground"}},{variant:"shadow",color:"warning",class:{base:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground"}},{variant:"shadow",color:"danger",class:{base:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"}},{variant:"dot",color:"default",class:{base:"text-default-foreground",dot:"bg-default-400"}},{variant:"dot",color:"primary",class:{base:"text-foreground",dot:"bg-primary"}},{variant:"dot",color:"secondary",class:{base:"text-foreground",dot:"bg-secondary"}},{variant:"dot",color:"success",class:{base:"text-foreground",dot:"bg-success"}},{variant:"dot",color:"warning",class:{base:"text-foreground",dot:"bg-warning"}},{variant:"dot",color:"danger",class:{base:"text-foreground",dot:"bg-danger"}}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1,isCloseButtonVisible:!1}}),fb=({className:e})=>f.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),xc=h.forwardRef(({children:e,variant:t="solid",color:r="default",size:n="md",radius:s="full",avatar:a,startContent:o,endContent:i,isDisabled:l=!1,classNames:c,className:d,onClose:u,...p},m)=>{const g=!!u,w=h.useMemo(()=>ub({variant:t,color:r,size:n,radius:s,isDisabled:l,isCloseButtonVisible:g}),[t,r,n,s,l,g]),x=()=>t!=="dot"?null:f.jsx("span",{className:q(w.dot(),c?.dot),"aria-hidden":"true"}),b=()=>a?f.jsx("span",{className:q(w.avatar(),c?.avatar),children:a}):null,y=()=>o||null,v=()=>u?f.jsx("button",{type:"button",className:q(w.closeButton(),c?.closeButton),onClick:u,"aria-label":"Close",disabled:l,children:i||f.jsx(fb,{className:"w-3 h-3"})}):i||null;return f.jsxs("div",{ref:m,className:q(w.base(),c?.base,d),...p,children:[x(),b(),y(),f.jsx("span",{className:q(w.content(),c?.content),children:e}),v()]})});xc.displayName="Chip";const Gs={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},pb={none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"},hb=(e=!1)=>["relative inline-block",e?"overflow-hidden cursor-pointer transition-transform duration-300 ease-in-out hover:scale-105":""].filter(Boolean).join(" "),mb=(e="lg",t="none",r=!1)=>{const n=Gs[e],s=pb[t];return["relative z-10 max-w-full h-auto object-cover",n,s,r?"opacity-0 transition-opacity duration-500 ease-in-out":"opacity-100 transition-opacity duration-500 ease-in-out"].filter(Boolean).join(" ")},gb=(e="lg")=>["absolute inset-0 w-full h-full object-cover blur-2xl scale-125 opacity-70 z-0",Gs[e]].filter(Boolean).join(" "),bb=(e="lg")=>["animate-pulse bg-gray-200 dark:bg-gray-700",Gs[e]].filter(Boolean).join(" "),yb=({src:e,srcSet:t,sizes:r,alt:n,width:s,height:a,radius:o="lg",shadow:i="none",loading:l="lazy",fallbackSrc:c,isBlurred:d=!1,isZoomed:u=!1,removeWrapper:p=!1,disableSkeleton:m=!1,className:g="",classNames:w,onLoad:x,onError:b,"data-testid":y})=>{const[v,C]=h.useState(!m),[S,j]=h.useState(!1),[A,k]=h.useState(e),V=h.useRef(null),M=E=>{C(!1),j(!1),x?.(E)},D=()=>{j(!0),C(!1),c&&A!==c&&(k(c),C(!m)),b?.()};h.useEffect(()=>{e!==A&&!S&&(k(e),C(!m),j(!1))},[e,A,S,m]),h.useEffect(()=>{m&&C(!1)},[m]);const L=[mb(o,i,v),w?.img,g].filter(Boolean).join(" "),I=v&&!m&&f.jsx("div",{className:`${bb(o)} ${w?.wrapper||""}`,style:{width:s,height:a},"data-testid":`${y}-skeleton`}),R=f.jsx("img",{ref:V,src:A,srcSet:t,sizes:r,alt:n,width:s,height:a,loading:l,className:L,onLoad:M,onError:D,"data-testid":y}),B=d&&!v&&!S&&f.jsx(wb,{src:A,alt:`${n} (blurred background)`,className:`${gb(o)} ${w?.blurredImg||""}`,"data-testid":`${y}-blurred`});if(p)return f.jsxs(f.Fragment,{children:[I,!v&&R]});const P=u?vb:xb,T=[hb(u),d?"p-2":""].filter(Boolean).join(" "),N=u?[T,w?.wrapper].filter(Boolean).join(" "):"";return f.jsxs(P,{className:u?N:`${T} ${w?.wrapper||""}`.trim(),isZoomed:u,"data-testid":`${y}-wrapper`,children:[I,!v&&f.jsxs(f.Fragment,{children:[B,R]})]})},xb=({children:e,className:t="","data-testid":r})=>f.jsx("div",{className:t,"data-testid":r,children:e}),vb=({children:e,className:t="","data-testid":r})=>f.jsx("div",{className:t,"data-testid":r,children:e}),wb=({src:e,alt:t,className:r="","data-testid":n})=>f.jsx("img",{src:e,alt:t,className:r,"aria-hidden":"true","data-testid":n}),Cb=(e=!0,t=!1,r="inside")=>{const n=["group","flex","flex-col"];return e&&n.push("w-full"),t&&n.push("opacity-disabled","pointer-events-none"),(r==="outside"||r==="outside-left")&&n.push("gap-2"),n.join(" ")},kb=(e="inside")=>{const t=["flex"];return e==="outside-left"?t.push("flex-row","items-center","gap-4"):t.push("flex-col","gap-2"),t.join(" ")},Sb=(e="md",t="default",r="inside",n=!1,s=!1)=>{const a=["select-none","font-medium","transition-colors","duration-200"],o={sm:"text-xs",md:"text-sm",lg:"text-base"};if(a.push(o[e]),s)a.push("text-danger");else{const i={default:"text-foreground-600",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"};a.push(i[t])}if(r==="inside"){a.push("absolute","origin-top-left","left-3","pointer-events-none","transform-gpu","transition-all","duration-200","ease-out","group-data-[filled=true]:scale-85","group-data-[filled=true]:-translate-y-1.5","group-data-[focus=true]:scale-85","group-data-[focus=true]:-translate-y-1.5");const i={sm:"top-1.5",md:"top-2.5",lg:"top-3.5"};a.push(i[e])}else r==="outside-left"&&a.push("flex-shrink-0","w-32");return n&&a.push("after:content-['*']","after:text-danger","after:ml-0.5"),a.join(" ")},jb=(e="flat",t="default",r="md",n="md",s=!1,a=!1,o=!1)=>{const i=["relative","inline-flex","items-center","w-full","transition-all","duration-200","ease-in-out","group-data-[focus=true]:z-10"],l={sm:"h-13 min-h-8 px-2.5",md:"h-15 min-h-10 px-3",lg:"h-18 min-h-12 px-4"};i.push(l[r]);const c={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"};if(i.push(c[n]),a)switch(e){case"flat":i.push("bg-danger-50","hover:bg-danger-100");break;case"bordered":i.push("border-2","border-danger","hover:border-danger-hover");break;case"faded":i.push("bg-danger-50","border-2","border-danger-200","hover:border-danger");break;case"underlined":i.push("border-b-2","border-danger","hover:border-danger-hover");break}else switch(e){case"flat":const d={default:"bg-default-100 hover:bg-default-200",primary:"bg-primary-50 hover:bg-primary-100",secondary:"bg-secondary-50 hover:bg-secondary-100",success:"bg-success-50 hover:bg-success-100",warning:"bg-warning-50 hover:bg-warning-100",danger:"bg-danger-50 hover:bg-danger-100"};i.push(d[t]);break;case"bordered":if(i.push("border-2"),s){const p={default:"border-default-400",primary:"border-primary",secondary:"border-secondary",success:"border-success",warning:"border-warning",danger:"border-danger"};i.push(p[t])}else i.push("border-default-200","hover:border-default-400");break;case"faded":const u={default:"bg-default-100 border-2 border-default-200 hover:border-default-400",primary:"bg-primary-50 border-2 border-primary-200 hover:border-primary",secondary:"bg-secondary-50 border-2 border-secondary-200 hover:border-secondary",success:"bg-success-50 border-2 border-success-200 hover:border-success",warning:"bg-warning-50 border-2 border-warning-200 hover:border-warning",danger:"bg-danger-50 border-2 border-danger-200 hover:border-danger"};i.push(u[t]);break;case"underlined":if(i.push("border-b-2","rounded-none"),s){const p={default:"border-default-400",primary:"border-primary",secondary:"border-secondary",success:"border-success",warning:"border-warning",danger:"border-danger"};i.push(p[t])}else i.push("border-default-300","hover:border-default-400");break}return o&&i.push("opacity-50","cursor-not-allowed"),i.join(" ")},Tb=()=>["inline-flex","items-center","w-full","gap-1.5","h-full"].join(" "),Ab=(e="md",t="inside")=>{const r=["w-full","font-normal","text-foreground","bg-transparent","outline-none","placeholder:text-foreground-500","focus-visible:outline-none","data-[has-start-content=true]:ps-1","data-[has-end-content=true]:pe-1"],n={sm:"text-sm",md:"text-sm",lg:"text-base"};return r.push(n[e]),t==="inside"&&r.push("group-data-[has-label=true]:pt-1"),r.join(" ")},Mb=(e="md")=>{const t=["p-1","rounded-full","text-foreground-400","hover:text-foreground-600","hover:bg-default-100","active:bg-default-200","transition-all","duration-150","cursor-pointer","flex-shrink-0"],r={sm:"w-4 h-4 text-xs",md:"w-5 h-5 text-sm",lg:"w-6 h-6 text-base"};return t.push(r[e]),t.join(" ")},Vb=()=>["flex","flex-col","gap-1.5","px-1"].join(" "),Pb=(e="md")=>{const t=["text-foreground-400"],r={sm:"text-xs",md:"text-sm",lg:"text-sm"};return t.push(r[e]),t.join(" ")},Eb=(e="md")=>{const t=["text-danger"],r={sm:"text-xs",md:"text-sm",lg:"text-sm"};return t.push(r[e]),t.join(" ")},Ib=(e="md")=>{const t=["flex-shrink-0","text-foreground-400"],r={sm:"text-sm",md:"text-base",lg:"text-lg"};return t.push(r[e]),t.join(" ")},Nb=(e,t)=>{const r=[];if(t.isRequired&&(!e||e.trim().length===0)&&r.push("This field is required"),!e||e.trim().length===0)return{isValid:r.length===0,errors:r};if(t.minLength&&e.length<t.minLength&&r.push(`Minimum length is ${t.minLength} characters`),t.maxLength&&e.length>t.maxLength&&r.push(`Maximum length is ${t.maxLength} characters`),t.pattern&&(new RegExp(t.pattern).test(e)||r.push("Invalid format")),t.type==="email"&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)||r.push("Please enter a valid email address")),t.type==="url")try{new URL(e)}catch{r.push("Please enter a valid URL")}if(t.customValidate){const n=t.customValidate(e);n!==!0&&n!==null&&n!==void 0&&(Array.isArray(n)?r.push(...n):typeof n=="string"&&r.push(n))}return{isValid:r.length===0,errors:r}},vc=h.forwardRef(({label:e,placeholder:t,description:r,errorMessage:n,startContent:s,endContent:a,value:o,defaultValue:i,variant:l="flat",color:c="default",size:d="md",radius:u="md",labelPlacement:p="inside",fullWidth:m=!0,type:g="text",minLength:w,maxLength:x,pattern:b,isRequired:y=!1,isDisabled:v=!1,isReadOnly:C=!1,isInvalid:S=!1,isClearable:j=!1,disableAnimation:A=!1,classNames:k,className:V,validate:M,validationBehavior:D="native",baseRef:z,onChange:L,onValueChange:I,onClear:R,onFocus:B,onBlur:P,onKeyDown:T,onKeyUp:N,"data-testid":E,"aria-label":F,"aria-labelledby":$,"aria-describedby":O,...K},W)=>{const[J,Y]=h.useState(i||""),[Z,ne]=h.useState(!1),[ae,Te]=h.useState(!1),[he,at]=h.useState([]),Le=h.useRef(null),se=o!==void 0,Se=se?o:J,ye=Se&&Se.length>0,Ze=ye||Z,Oe=g==="password",Zr=Oe&&ae?"text":g,ur=M!==void 0,Ae=(S||he.length>0)&&!v,Q=`input-label-${Math.random().toString(36).substring(2,11)}`,de=r?`input-description-${Math.random().toString(36).substring(2,11)}`:void 0,ge=Ae?`input-error-${Math.random().toString(36).substring(2,11)}`:void 0;h.useEffect(()=>{if(ur||y||w||x||b){const Ne=Nb(Se,{isRequired:y,minLength:w,maxLength:x,pattern:b,type:g,customValidate:M});at(Ne.errors)}},[Se,y,w,x,b,g,M,ur]);const _e=Ne=>{const ea=Ne.target.value;se||Y(ea),L?.(Ne),I?.(ea)},Lt=Ne=>{ne(!0),B?.(Ne)},qc=Ne=>{ne(!1),P?.(Ne)},Zc=()=>{se||Y(""),R?.(),I?.(""),Le.current?.focus()},Jc=()=>{Te(!ae)},Qc=[Cb(m,v,p),k?.base,V].filter(Boolean).join(" "),ed=[kb(p),k?.mainWrapper].filter(Boolean).join(" "),td=[Sb(d,c,p,y,Ae),k?.label].filter(Boolean).join(" "),rd=[jb(l,c,d,u,Z,Ae,v),k?.inputWrapper].filter(Boolean).join(" "),nd=[Tb(),k?.innerWrapper].filter(Boolean).join(" "),sd=[Ab(d,p),k?.input].filter(Boolean).join(" "),Js=[Mb(d),k?.clearButton].filter(Boolean).join(" "),ad=[Vb(),k?.helperWrapper].filter(Boolean).join(" "),od=[Pb(d),k?.description].filter(Boolean).join(" "),id=[Eb(d),k?.errorMessage].filter(Boolean).join(" "),Qs=Ib(d),ld=()=>{if(!Ae)return null;if(typeof n=="function"){const Ne={isInvalid:Ae,validationErrors:he,validationDetails:{valid:he.length===0,valueMissing:y&&!ye,tooShort:w?Se.length<w:void 0,tooLong:x?Se.length>x:void 0,patternMismatch:b?!new RegExp(b).test(Se):void 0}};return n(Ne)}return n||(he.length>0?he[0]:null)},cd=()=>!j||!ye||v||C?null:f.jsx("button",{type:"button",className:Js,onClick:Zc,tabIndex:-1,"data-testid":E?`${E}-clear-button`:void 0,children:f.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[f.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),dd=()=>Oe?f.jsx("button",{type:"button",className:Js,onClick:Jc,tabIndex:-1,"data-testid":E?`${E}-password-toggle`:void 0,children:ae?f.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[f.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94L17.94 17.94z"}),f.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),f.jsx("path",{d:"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19l-6.84-6.84z"})]}):f.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[f.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),f.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}):null,Jr=()=>e?p==="inside"?f.jsxs("label",{id:Q,className:`
|
|
30
10
|
absolute left-3 transition-all duration-200 pointer-events-none z-10
|
|
31
11
|
text-small text-gray-500
|
|
32
12
|
top-1/2 -translate-y-1/2 origin-left
|
|
33
|
-
${
|
|
34
|
-
`.replace(/\s+/g," ").trim(),htmlFor:c,"data-testid":c?`${c}-label`:void 0,style:{zIndex:10},children:[g,Y&&k.jsx("span",{className:"text-danger ml-1",children:"*"})]}):k.jsxs("label",{id:Oe,className:kr,htmlFor:c,"data-testid":c?`${c}-label`:void 0,children:[g,Y&&k.jsx("span",{className:"text-danger ml-1",children:"*"})]}):null,t[153]=kr,t[154]=c,t[155]=ue,t[156]=oe,t[157]=Y,t[158]=g,t[159]=q,t[160]=Tn):Tn=t[160];const yt=Tn,Ur=q==="inside"?oe||ue?A:"":A,Hr=g?Oe:a;let Ut;t[161]!==n||t[162]!==Ie||t[163]!==De?(Ut=[Ie,De,n].filter(Boolean).join(" ")||void 0,t[161]=n,t[162]=Ie,t[163]=De,t[164]=Ut):Ut=t[164];const Kr=c?`${c}-input`:void 0,Xr=!!R,Yr=!!(f||re||Ce);let An;t[165]!==Te||t[166]!==r||t[167]!==Mr||t[168]!==c||t[169]!==Ye||t[170]!==Ze||t[171]!==We||t[172]!==ue||t[173]!==ne||t[174]!==se||t[175]!==Y||t[176]!==x||t[177]!==y||t[178]!==S||t[179]!==C||t[180]!==T||t[181]!==E||t[182]!==Ae||t[183]!==Ur||t[184]!==Hr||t[185]!==Ut||t[186]!==Kr||t[187]!==Xr||t[188]!==Yr?(An=k.jsx("input",{...E,ref:e||we,id:c,type:Te,value:ue,placeholder:Ur,disabled:ne,readOnly:se,required:Y,minLength:y,maxLength:x,pattern:T,className:Mr,onChange:We,onFocus:Ze,onBlur:Ye,onKeyDown:S,onKeyUp:C,"aria-label":r,"aria-labelledby":Hr,"aria-describedby":Ut,"aria-invalid":Ae,"data-testid":Kr,"data-has-start-content":Xr,"data-has-end-content":Yr}),t[165]=Te,t[166]=r,t[167]=Mr,t[168]=c,t[169]=Ye,t[170]=Ze,t[171]=We,t[172]=ue,t[173]=ne,t[174]=se,t[175]=Y,t[176]=x,t[177]=y,t[178]=S,t[179]=C,t[180]=T,t[181]=E,t[182]=Ae,t[183]=Ur,t[184]=Hr,t[185]=Ut,t[186]=Kr,t[187]=Xr,t[188]=Yr,t[189]=An):An=t[189];const qr=An,Zr=!!g,Jr=!!(u||Ae);let Ht;t[190]!==q||t[191]!==yt?(Ht=q==="outside-left"&&yt(),t[190]=q,t[191]=yt,t[192]=Ht):Ht=t[192];let Kt;t[193]!==q||t[194]!==yt?(Kt=q==="outside"&&yt(),t[193]=q,t[194]=yt,t[195]=Kt):Kt=t[195];let Xt;t[196]!==q||t[197]!==yt?(Xt=q==="inside"&&yt(),t[196]=q,t[197]=yt,t[198]=Xt):Xt=t[198];let Yt;t[199]!==Gt||t[200]!==c||t[201]!==R?(Yt=R&&k.jsx("div",{className:Gt,"data-testid":c?`${c}-start-content`:void 0,children:R}),t[199]=Gt,t[200]=c,t[201]=R,t[202]=Yt):Yt=t[202];let qt;t[203]!==Gt||t[204]!==c||t[205]!==f?(qt=f&&k.jsx("div",{className:Gt,"data-testid":c?`${c}-end-content`:void 0,children:f}),t[203]=Gt,t[204]=c,t[205]=f,t[206]=qt):qt=t[206];let Zt;t[207]!==Gr?(Zt=Gr(),t[207]=Gr,t[208]=Zt):Zt=t[208];let Jt;t[209]!==Wr?(Jt=Wr(),t[209]=Wr,t[210]=Jt):Jt=t[210];let Qt;t[211]!==Nr||t[212]!==qr||t[213]!==Yt||t[214]!==qt||t[215]!==Zt||t[216]!==Jt?(Qt=k.jsxs("div",{className:Nr,children:[Yt,qr,qt,Zt,Jt]}),t[211]=Nr,t[212]=qr,t[213]=Yt,t[214]=qt,t[215]=Zt,t[216]=Jt,t[217]=Qt):Qt=t[217];let es;t[218]!==Ar||t[219]!==Xt||t[220]!==Qt?(es=k.jsxs("div",{className:Ar,children:[Xt,Qt]}),t[218]=Ar,t[219]=Xt,t[220]=Qt,t[221]=es):es=t[221];let ts;t[222]!==Kt||t[223]!==es?(ts=k.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[Kt,es]}),t[222]=Kt,t[223]=es,t[224]=ts):ts=t[224];let ss;t[225]!==xr||t[226]!==Ht||t[227]!==ts?(ss=k.jsxs("div",{className:xr,children:[Ht,ts]}),t[225]=xr,t[226]=Ht,t[227]=ts,t[228]=ss):ss=t[228];let ns;t[229]!==$r||t[230]!==_r||t[231]!==Dr||t[232]!==c||t[233]!==u||t[234]!==Ie||t[235]!==De||t[236]!==Fr||t[237]!==Ae?(ns=(u||Ae)&&k.jsxs("div",{className:Dr,children:[u&&k.jsx("div",{id:Ie,className:$r,"data-testid":c?`${c}-description`:void 0,children:u}),Ae&&k.jsx("div",{id:De,className:_r,"data-testid":c?`${c}-error-message`:void 0,children:Fr()})]}),t[229]=$r,t[230]=_r,t[231]=Dr,t[232]=c,t[233]=u,t[234]=Ie,t[235]=De,t[236]=Fr,t[237]=Ae,t[238]=ns):ns=t[238];let jn;return t[239]!==o||t[240]!==br||t[241]!==c||t[242]!==ne||t[243]!==fe||t[244]!==oe||t[245]!==se||t[246]!==Y||t[247]!==Ae||t[248]!==Zr||t[249]!==Jr||t[250]!==ss||t[251]!==ns?(jn=k.jsxs("div",{ref:o,className:br,"data-testid":c,"data-invalid":Ae,"data-required":Y,"data-readonly":se,"data-disabled":ne,"data-focus":oe,"data-focus-within":oe,"data-focus-visible":oe,"data-filled":fe,"data-has-label":Zr,"data-has-helper":Jr,children:[ss,ns]}),t[239]=o,t[240]=br,t[241]=c,t[242]=ne,t[243]=fe,t[244]=oe,t[245]=se,t[246]=Y,t[247]=Ae,t[248]=Zr,t[249]=Jr,t[250]=ss,t[251]=ns,t[252]=jn):jn=t[252],jn});Cu.displayName="Input";const Gs=ke({slots:{wrapper:["fixed","inset-0","z-50","flex","items-center","justify-center","p-4","sm:p-0","overflow-hidden"],base:["relative","flex","flex-col","w-full","box-border","outline-none","mx-1","my-1","sm:mx-6","sm:my-16","bg-white","dark:bg-gray-800","text-gray-900","dark:text-gray-100","shadow-large","rounded-large","max-h-[calc(100vh_-_2rem)]","sm:max-h-[calc(100vh_-_8rem)]","data-[open=true]:animate-in","data-[open=false]:animate-out","data-[open=false]:fade-out-0","data-[open=true]:fade-in-0","data-[open=false]:zoom-out-95","data-[open=true]:zoom-in-95","data-[open=false]:slide-out-to-left-1/2","data-[open=false]:slide-out-to-top-[48%]","data-[open=true]:slide-in-from-left-1/2","data-[open=true]:slide-in-from-top-[48%]","data-[open=false]:duration-200","data-[open=true]:duration-200"],backdrop:["fixed","inset-0","z-50","bg-black/50","dark:bg-black/70","data-[enter]:animate-in","data-[exit]:animate-out","data-[enter]:fade-in-0","data-[exit]:fade-out-0","data-[enter]:duration-200","data-[exit]:duration-150"],header:["flex","py-4","px-6","relative","flex-col","gap-1","text-large","font-semibold","border-b","border-gray-200","dark:border-gray-700"],body:["relative","flex-1","px-6","py-2","flex","flex-col","gap-3","min-h-0"],footer:["flex","flex-row","gap-2","px-6","py-4","justify-end","border-t","border-gray-200","dark:border-gray-700"],closeButton:["absolute","appearance-none","outline-none","select-none","top-1","right-1","rtl:right-auto","rtl:left-1","p-2","text-gray-500","dark:text-gray-400","rounded-full","hover:bg-gray-100","dark:hover:bg-gray-700","active:bg-gray-200","dark:active:bg-gray-600","tap-highlight-transparent","transition-opacity","data-[pressed=true]:scale-95","transition-transform","z-10"]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"max-w-full max-h-full my-0 mx-0 sm:my-0 sm:mx-0 rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"bg-transparent"},opaque:{backdrop:"bg-black/50 dark:bg-black/70"},blur:{backdrop:"bg-black/30 dark:bg-black/50 backdrop-blur-sm backdrop-saturate-150"}},scrollBehavior:{normal:{base:"overflow-hidden",body:"overflow-y-auto max-h-[60vh]"},inside:{base:"max-h-[calc(100vh_-_8rem)] overflow-hidden flex flex-col",body:"overflow-y-auto flex-1 min-h-0"},outside:{wrapper:"items-start sm:items-center overflow-y-auto py-8",base:"my-0 max-h-fit overflow-visible",body:"overflow-visible"}},placement:{auto:{wrapper:"items-end sm:items-center",base:"sm:my-16 my-2"},top:{wrapper:"items-start",base:"mt-2 mb-auto"},"top-center":{wrapper:"items-start sm:items-center",base:"mt-2 sm:mt-16 mb-auto"},center:{wrapper:"items-center",base:"my-auto"},bottom:{wrapper:"items-end",base:"mb-2 mt-auto"},"bottom-center":{wrapper:"items-end sm:items-center",base:"mb-2 sm:mb-16 mt-auto"}},disableAnimation:{true:{base:["data-[open=true]:animate-none","data-[open=false]:animate-none"],backdrop:["data-[enter]:animate-none","data-[exit]:animate-none"]}},isDraggable:{true:{header:"cursor-move select-none active:cursor-grabbing",base:"cursor-default"}}},defaultVariants:{size:"md",radius:"lg",shadow:"lg",backdrop:"opaque",scrollBehavior:"normal",placement:"auto",disableAnimation:!1,isDraggable:!1}}),ku=j.createContext(null),Ko=()=>{const s=j.useContext(ku);if(!s)throw new Error("Modal components must be used within a Modal");return s},Py=()=>{const s=ae.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=k.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"1em",children:k.jsx("path",{d:"m18 6-12 12M6 6l12 12"})}),s[0]=e):e=s[0],e},Vy=s=>{const e=ae.c(3);let t,n;e[0]!==s?(t=()=>{if(!s)return;const r=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=r}},n=[s],e[0]=s,e[1]=t,e[2]=n):(t=e[1],n=e[2]),j.useEffect(t,n)},My=(s,e)=>{const t=ae.c(4),n=j.useRef(null);let r,a;t[0]!==s||t[1]!==e?(r=()=>{s?(n.current=document.activeElement,setTimeout(()=>{if(e.current){const o=e.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');o.length>0?o[0].focus():e.current.focus()}},100)):n.current&&n.current.focus()},a=[s,e],t[0]=s,t[1]=e,t[2]=r,t[3]=a):(r=t[2],a=t[3]),j.useEffect(r,a)},Iy=(s,e,t)=>{const n=ae.c(9),[r,a]=j.useState(!1),o=j.useRef(null);let i,l;n[0]!==t?(i=()=>{t||a(!1)},l=[t],n[0]=t,n[1]=i,n[2]=l):(i=n[1],l=n[2]),j.useEffect(i,l);let c;n[3]!==e||n[4]!==s?(c=s?{drag:!0,dragMomentum:!1,dragElastic:.1,dragConstraints:e?!1:o,onDragStart:()=>a(!0),onDragEnd:()=>a(!1),whileDrag:{scale:1.02,transition:{duration:.1}}}:{},n[3]=e,n[4]=s,n[5]=c):c=n[5];const d=c;let u;return n[6]!==d||n[7]!==r?(u={dragProps:d,isDragging:r,constraintsRef:o},n[6]=d,n[7]=r,n[8]=u):u=n[8],u},Su=j.forwardRef((s,e)=>{const t=ae.c(99);let n,r,a,o,i,l,c,d,u,f,m,g,x,y,w,h,p,b,S,C,v,T,A,E;t[0]!==s?({children:n,size:f,radius:p,shadow:b,backdrop:S,scrollBehavior:C,placement:v,isOpen:i,defaultOpen:T,isDismissable:A,isKeyboardDismissDisabled:E,shouldBlockScroll:m,hideCloseButton:g,closeButton:o,motionProps:l,portalContainer:x,disableAnimation:y,isDraggable:w,allowOverflow:h,classNames:a,className:r,onOpenChange:d,onClose:c,...u}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=i,t[6]=l,t[7]=c,t[8]=d,t[9]=u,t[10]=f,t[11]=m,t[12]=g,t[13]=x,t[14]=y,t[15]=w,t[16]=h,t[17]=p,t[18]=b,t[19]=S,t[20]=C,t[21]=v,t[22]=T,t[23]=A,t[24]=E):(n=t[1],r=t[2],a=t[3],o=t[4],i=t[5],l=t[6],c=t[7],d=t[8],u=t[9],f=t[10],m=t[11],g=t[12],x=t[13],y=t[14],w=t[15],h=t[16],p=t[17],b=t[18],S=t[19],C=t[20],v=t[21],T=t[22],A=t[23],E=t[24]);const R=f===void 0?"md":f,L=p===void 0?"lg":p,D=b===void 0?"lg":b,V=S===void 0?"opaque":S,P=C===void 0?"normal":C,I=v===void 0?"auto":v,M=T===void 0?!1:T,N=A===void 0?!0:A,B=E===void 0?!1:E,$=m===void 0?!0:m,_=g===void 0?!1:g,O=x===void 0?document.body:x,z=y===void 0?!1:y,F=w===void 0?!1:w,W=h===void 0?!1:h,[H,K]=j.useState(M),G=j.useRef(null),X=i!==void 0?i:H;let U;t[25]!==i||t[26]!==c||t[27]!==d?(U=me=>{i===void 0&&K(me),d?.(me),me||c?.()},t[25]=i,t[26]=c,t[27]=d,t[28]=U):U=t[28];const Z=U;let q;t[29]!==Z?(q=()=>{Z(!1)},t[29]=Z,t[30]=q):q=t[30];const Q=q;let J;t[31]!==Q||t[32]!==B||t[33]!==X?(J=()=>{if(!X||B)return;const me=ye=>{ye.key==="Escape"&&Q()};return document.addEventListener("keydown",me),()=>document.removeEventListener("keydown",me)},t[31]=Q,t[32]=B,t[33]=X,t[34]=J):J=t[34];let Y;t[35]!==B||t[36]!==X?(Y=[X,B],t[35]=B,t[36]=X,t[37]=Y):Y=t[37],j.useEffect(J,Y);let ne;t[38]!==Q||t[39]!==N?(ne=me=>{N&&me.target===me.currentTarget&&Q()},t[38]=Q,t[39]=N,t[40]=ne):ne=t[40];const se=ne;Vy(X&&$),My(X,G);const{dragProps:ee,isDragging:re,constraintsRef:le}=Iy(F,W,X);let ce,oe;if(t[41]!==W||t[42]!==V||t[43]!==n||t[44]!==r||t[45]!==a||t[46]!==o||t[47]!==le||t[48]!==z||t[49]!==ee||t[50]!==se||t[51]!==Q||t[52]!==Z||t[53]!==_||t[54]!==N||t[55]!==F||t[56]!==re||t[57]!==B||t[58]!==X||t[59]!==l||t[60]!==I||t[61]!==u||t[62]!==L||t[63]!==e||t[64]!==P||t[65]!==D||t[66]!==$||t[67]!==R){const{wrapper:me,base:ye,backdrop:ve}=Gs({size:R,radius:L,shadow:D,backdrop:V,scrollBehavior:P,placement:I,disableAnimation:z,isDraggable:F});let we;t[70]!==W||t[71]!==V||t[72]!==a||t[73]!==z||t[74]!==Q||t[75]!==Z||t[76]!==_||t[77]!==N||t[78]!==F||t[79]!==B||t[80]!==X||t[81]!==I||t[82]!==L||t[83]!==P||t[84]!==D||t[85]!==$||t[86]!==R?(we={isOpen:X,size:R,radius:L,shadow:D,backdrop:V,scrollBehavior:P,placement:I,isDismissable:N,isKeyboardDismissDisabled:B,shouldBlockScroll:$,hideCloseButton:_,disableAnimation:z,isDraggable:F,allowOverflow:W,classNames:a,onClose:Q,onOpenChange:Z},t[70]=W,t[71]=V,t[72]=a,t[73]=z,t[74]=Q,t[75]=Z,t[76]=_,t[77]=N,t[78]=F,t[79]=B,t[80]=X,t[81]=I,t[82]=L,t[83]=P,t[84]=D,t[85]=$,t[86]=R,t[87]=we):we=t[87];const xe=we;let ue,he,fe;t[88]===Symbol.for("react.memo_cache_sentinel")?(ue={opacity:0,scale:.9,y:20},he={opacity:1,scale:1,y:0},fe={opacity:0,scale:.9,y:20},t[88]=ue,t[89]=he,t[90]=fe):(ue=t[88],he=t[89],fe=t[90]);const Ce=z?0:.3;let Te;t[91]!==Ce?(Te={initial:ue,animate:he,exit:fe,transition:{duration:Ce,ease:"easeOut"}},t[91]=Ce,t[92]=Te):Te=t[92];const Ne=Te;ce=bt,oe=X&&k.jsx(ku.Provider,{value:xe,children:k.jsx(pe.div,{ref:le,className:ve({className:a?.backdrop}),onClick:se,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:z?0:.2,ease:"easeOut"},children:k.jsx("div",{className:me({className:a?.wrapper}),onClick:Ly,children:k.jsxs(pe.div,{ref:e||G,className:ye({className:a?.base||r}),"data-open":X,"data-dismissable":N,role:"dialog","aria-modal":"true",tabIndex:-1,...l||Ne,...ee,style:{cursor:re?"grabbing":F?"grab":"default"},...u,children:[!_&&k.jsx("button",{type:"button",className:Gs().closeButton({className:a?.closeButton}),onClick:Q,"aria-label":"Close modal",children:o||k.jsx(Py,{})}),n]})})})}),t[41]=W,t[42]=V,t[43]=n,t[44]=r,t[45]=a,t[46]=o,t[47]=le,t[48]=z,t[49]=ee,t[50]=se,t[51]=Q,t[52]=Z,t[53]=_,t[54]=N,t[55]=F,t[56]=re,t[57]=B,t[58]=X,t[59]=l,t[60]=I,t[61]=u,t[62]=L,t[63]=e,t[64]=P,t[65]=D,t[66]=$,t[67]=R,t[68]=ce,t[69]=oe}else ce=t[68],oe=t[69];let te;t[93]!==ce||t[94]!==oe?(te=k.jsx(ce,{children:oe}),t[93]=ce,t[94]=oe,t[95]=te):te=t[95];const ie=te;let de;return t[96]!==ie||t[97]!==O?(de=Qa.createPortal(ie,O),t[96]=ie,t[97]=O,t[98]=de):de=t[98],de});Su.displayName="Modal";const Ey=j.forwardRef((s,e)=>{const t=ae.c(9);let n,r,a;t[0]!==s?({children:n,className:r,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a):(n=t[1],r=t[2],a=t[3]);let o;return t[4]!==n||t[5]!==r||t[6]!==a||t[7]!==e?(o=k.jsx("div",{ref:e,className:r,...a,children:n}),t[4]=n,t[5]=r,t[6]=a,t[7]=e,t[8]=o):o=t[8],o});Ey.displayName="ModalContent";const Ry=j.forwardRef((s,e)=>{const t=ae.c(18);let n,r,a;t[0]!==s?({children:n,className:r,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a):(n=t[1],r=t[2],a=t[3]);const{classNames:o,isDraggable:i}=Ko();let l,c;if(t[4]!==r||t[5]!==o?.header||t[6]!==e){const{header:g}=Gs();l=e,c=g({className:o?.header||r}),t[4]=r,t[5]=o?.header,t[6]=e,t[7]=l,t[8]=c}else l=t[7],c=t[8];const d=i?"":void 0,u=i?"move":"default";let f;t[9]!==u?(f={cursor:u},t[9]=u,t[10]=f):f=t[10];let m;return t[11]!==n||t[12]!==a||t[13]!==l||t[14]!==c||t[15]!==d||t[16]!==f?(m=k.jsx("div",{ref:l,className:c,"data-framer-drag-handle":d,style:f,...a,children:n}),t[11]=n,t[12]=a,t[13]=l,t[14]=c,t[15]=d,t[16]=f,t[17]=m):m=t[17],m});Ry.displayName="ModalHeader";const Dy=j.forwardRef((s,e)=>{const t=ae.c(14);let n,r,a;t[0]!==s?({children:n,className:r,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a):(n=t[1],r=t[2],a=t[3]);const{classNames:o}=Ko();let i,l;if(t[4]!==r||t[5]!==o?.body||t[6]!==e){const{body:d}=Gs();i=e,l=d({className:o?.body||r}),t[4]=r,t[5]=o?.body,t[6]=e,t[7]=i,t[8]=l}else i=t[7],l=t[8];let c;return t[9]!==n||t[10]!==a||t[11]!==i||t[12]!==l?(c=k.jsx("div",{ref:i,className:l,...a,children:n}),t[9]=n,t[10]=a,t[11]=i,t[12]=l,t[13]=c):c=t[13],c});Dy.displayName="ModalBody";const By=j.forwardRef((s,e)=>{const t=ae.c(14);let n,r,a;t[0]!==s?({children:n,className:r,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a):(n=t[1],r=t[2],a=t[3]);const{classNames:o}=Ko();let i,l;if(t[4]!==r||t[5]!==o?.footer||t[6]!==e){const{footer:d}=Gs();i=e,l=d({className:o?.footer||r}),t[4]=r,t[5]=o?.footer,t[6]=e,t[7]=i,t[8]=l}else i=t[7],l=t[8];let c;return t[9]!==n||t[10]!==a||t[11]!==i||t[12]!==l?(c=k.jsx("div",{ref:i,className:l,...a,children:n}),t[9]=n,t[10]=a,t[11]=i,t[12]=l,t[13]=c):c=t[13],c});By.displayName="ModalFooter";function Ly(s){return s.stopPropagation()}function $y(s){const e=ae.c(15);let t;e[0]!==s?(t=s===void 0?{}:s,e[0]=s,e[1]=t):t=e[1];const n=t,{isOpen:r,defaultOpen:a,onOpenChange:o,onClose:i}=n,l=a===void 0?!1:a,[c,d]=j.useState(l),u=r!==void 0?r:c;let f;e[2]!==r||e[3]!==i||e[4]!==o?(f=p=>{r===void 0&&d(p),o?.(p),p||i?.()},e[2]=r,e[3]=i,e[4]=o,e[5]=f):f=e[5];const m=f;let g;e[6]!==m?(g=()=>{m(!0)},e[6]=m,e[7]=g):g=e[7];const x=g;let y;e[8]!==m?(y=()=>{m(!1)},e[8]=m,e[9]=y):y=e[9];const w=y;let h;return e[10]!==w||e[11]!==m||e[12]!==u||e[13]!==x?(h={isOpen:u,onOpen:x,onClose:w,onOpenChange:m},e[10]=w,e[11]=m,e[12]=u,e[13]=x,e[14]=h):h=e[14],h}const It=ke({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-between","transition-background","duration-300","ease-in-out","data-[menu-open=true]:bg-content1/60","data-[hidden=true]:transform","data-[hidden=true]:-translate-y-full","data-[hidden=true]:transition-transform"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-16"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-medium","data-[active=true]:text-primary"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent","data-[pressed=true]:bg-default-100","data-[hover=true]:bg-default-100","data-[open=true]:bg-default-100"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity",'before:content-[""]',"before:block","before:h-px","before:w-4","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0",'after:content-[""]',"after:block","after:h-px","after:w-4","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:before:translate-y-px","group-data-[open=true]:before:rotate-45","group-data-[open=true]:after:-translate-y-px","group-data-[open=true]:after:-rotate-45"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-header","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto","bg-content1/60","backdrop-blur-xl","backdrop-saturate-150"],menuItem:["text-large","color-foreground","data-[active=true]:font-semibold","data-[active=true]:text-primary"]},variants:{position:{static:{base:"relative"},sticky:{base:"sticky top-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},isBordered:{true:{base:"border-b border-divider"}},isBlurred:{true:{base:["backdrop-blur-lg","data-[menu-open=false]:bg-background/70","backdrop-saturate-150"]},false:{base:"bg-background",menu:"bg-background"}},disableAnimation:{true:{menu:"!transition-none"}}},defaultVariants:{position:"sticky",maxWidth:"lg",isBordered:!1,isBlurred:!0,disableAnimation:!1}}),Tu=j.createContext(null),ks=()=>{const s=j.useContext(Tu);if(!s)throw new Error("Navbar components must be used within a Navbar");return s},Oy=s=>{const e=ae.c(4),{isOpen:t}=s;let n;if(e[0]===Symbol.for("react.memo_cache_sentinel")){const{toggleIcon:o}=It({disableAnimation:!1});n=o(),e[0]=n}else n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=k.jsx("span",{className:"sr-only",children:"Toggle menu"}),e[1]=r):r=e[1];let a;return e[2]!==t?(a=k.jsx("span",{className:n,"data-open":t,children:r}),e[2]=t,e[3]=a):a=e[3],a},Au=j.forwardRef((s,e)=>{const t=ae.c(100);let n,r,a,o,i,l,c,d,u,f,m,g,x,y,w,h,p;t[0]!==s?({children:n,height:u,position:f,maxWidth:m,parentRef:c,isBordered:g,isBlurred:x,isMenuOpen:o,isMenuDefaultOpen:y,shouldHideOnScroll:w,disableScrollHandler:h,disableAnimation:p,classNames:a,className:r,onMenuOpenChange:i,onScrollPositionChange:l,...d}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=i,t[6]=l,t[7]=c,t[8]=d,t[9]=u,t[10]=f,t[11]=m,t[12]=g,t[13]=x,t[14]=y,t[15]=w,t[16]=h,t[17]=p):(n=t[1],r=t[2],a=t[3],o=t[4],i=t[5],l=t[6],c=t[7],d=t[8],u=t[9],f=t[10],m=t[11],g=t[12],x=t[13],y=t[14],w=t[15],h=t[16],p=t[17]);const b=u===void 0?"4rem":u,S=f===void 0?"sticky":f,C=m===void 0?"lg":m,v=g===void 0?!1:g,T=x===void 0?!0:x,A=y===void 0?!1:y,E=w===void 0?!1:w,R=h===void 0?!1:h,L=p===void 0?!1:p,[D,V]=j.useState(A),[P,I]=j.useState(!1),[M,N]=j.useState(0),B=j.useRef(null),$=o??D;let _;t[18]!==o||t[19]!==i?(_=ce=>{o===void 0&&V(ce),i?.(ce)},t[18]=o,t[19]=i,t[20]=_):_=t[20];const O=_;let z;t[21]!==R||t[22]!==M||t[23]!==l||t[24]!==c?.current||t[25]!==E?(z=()=>{if(!E||R)return;const ce=()=>{const te=window.scrollY,ie=te>M?"down":"up";ie==="down"&&te>100?I(!0):ie==="up"&&I(!1),N(te),l?.(te)},oe=c?.current||window;return oe.addEventListener("scroll",ce,{passive:!0}),()=>{oe.removeEventListener("scroll",ce)}},t[21]=R,t[22]=M,t[23]=l,t[24]=c?.current,t[25]=E,t[26]=z):z=t[26];let F;t[27]!==R||t[28]!==M||t[29]!==l||t[30]!==c||t[31]!==E?(F=[E,R,M,c,l],t[27]=R,t[28]=M,t[29]=l,t[30]=c,t[31]=E,t[32]=F):F=t[32],j.useEffect(z,F);let W,H,K,G,X,U,Z,q,Q,J,Y,ne,se;if(t[33]!==r||t[34]!==a||t[35]!==L||t[36]!==O||t[37]!==b||t[38]!==T||t[39]!==v||t[40]!==P||t[41]!==$||t[42]!==C||t[43]!==l||t[44]!==S||t[45]!==d||t[46]!==e||t[47]!==E){const{base:ce,wrapper:oe}=It({position:S,maxWidth:C,isBordered:v,isBlurred:T,disableAnimation:L});let te;t[61]!==a||t[62]!==L||t[63]!==O||t[64]!==b||t[65]!==T||t[66]!==v||t[67]!==$||t[68]!==C||t[69]!==l||t[70]!==S||t[71]!==E?(te={isMenuOpen:$,position:S,maxWidth:C,height:b,isBordered:v,isBlurred:T,shouldHideOnScroll:E,disableAnimation:L,classNames:a,onMenuOpenChange:O,onScrollPositionChange:l},t[61]=a,t[62]=L,t[63]=O,t[64]=b,t[65]=T,t[66]=v,t[67]=$,t[68]=C,t[69]=l,t[70]=S,t[71]=E,t[72]=te):te=t[72];const ie=te;H=Tu.Provider,se=ie,W=pe.nav,G=e||B,X=ce({className:a?.base||r}),t[73]!==b?(U={height:b},t[73]=b,t[74]=U):U=t[74],Z=$,q=P,t[75]!==E?(Q=E?{y:0}:!1,t[75]=E,t[76]=Q):Q=t[76],t[77]!==P||t[78]!==E?(J=E?{y:P?-100:0}:!1,t[77]=P,t[78]=E,t[79]=J):J=t[79],t[80]===Symbol.for("react.memo_cache_sentinel")?(Y={duration:.3,ease:"easeInOut"},t[80]=Y):Y=t[80],ne=d,K=oe({className:a?.wrapper}),t[33]=r,t[34]=a,t[35]=L,t[36]=O,t[37]=b,t[38]=T,t[39]=v,t[40]=P,t[41]=$,t[42]=C,t[43]=l,t[44]=S,t[45]=d,t[46]=e,t[47]=E,t[48]=W,t[49]=H,t[50]=K,t[51]=G,t[52]=X,t[53]=U,t[54]=Z,t[55]=q,t[56]=Q,t[57]=J,t[58]=Y,t[59]=ne,t[60]=se}else W=t[48],H=t[49],K=t[50],G=t[51],X=t[52],U=t[53],Z=t[54],q=t[55],Q=t[56],J=t[57],Y=t[58],ne=t[59],se=t[60];let ee;t[81]!==n||t[82]!==K?(ee=k.jsx("header",{className:K,children:n}),t[81]=n,t[82]=K,t[83]=ee):ee=t[83];let re;t[84]!==W||t[85]!==G||t[86]!==X||t[87]!==U||t[88]!==Z||t[89]!==q||t[90]!==Q||t[91]!==J||t[92]!==Y||t[93]!==ne||t[94]!==ee?(re=k.jsx(W,{ref:G,className:X,style:U,"data-menu-open":Z,"data-hidden":q,initial:Q,animate:J,transition:Y,...ne,children:ee}),t[84]=W,t[85]=G,t[86]=X,t[87]=U,t[88]=Z,t[89]=q,t[90]=Q,t[91]=J,t[92]=Y,t[93]=ne,t[94]=ee,t[95]=re):re=t[95];let le;return t[96]!==H||t[97]!==se||t[98]!==re?(le=k.jsx(H,{value:se,children:re}),t[96]=H,t[97]=se,t[98]=re,t[99]=le):le=t[99],le});Au.displayName="Navbar";const zy=j.forwardRef((s,e)=>{const t=ae.c(9);let n,r,a;t[0]!==s?({children:n,className:r,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a):(n=t[1],r=t[2],a=t[3]);const{brand:o}=It(),i=ks(),l=o({className:i?.classNames?.brand||r});let c;return t[4]!==n||t[5]!==a||t[6]!==e||t[7]!==l?(c=k.jsx("div",{ref:e,className:l,...a,children:n}),t[4]=n,t[5]=a,t[6]=e,t[7]=l,t[8]=c):c=t[8],c});zy.displayName="NavbarBrand";const _y=j.forwardRef((s,e)=>{const t=ae.c(11);let n,r,a,o;t[0]!==s?({children:n,justify:o,className:r,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o):(n=t[1],r=t[2],a=t[3],o=t[4]);const i=o===void 0?"start":o,{content:l}=It(),{classNames:c}=ks(),d=l({className:c?.content||r});let u;return t[5]!==n||t[6]!==i||t[7]!==a||t[8]!==e||t[9]!==d?(u=k.jsx("ul",{ref:e,className:d,"data-justify":i,...a,children:n}),t[5]=n,t[6]=i,t[7]=a,t[8]=e,t[9]=d,t[10]=u):u=t[10],u});_y.displayName="NavbarContent";const Fy=j.forwardRef((s,e)=>{const t=ae.c(11);let n,r,a,o;t[0]!==s?({children:n,isActive:o,className:r,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o):(n=t[1],r=t[2],a=t[3],o=t[4]);const i=o===void 0?!1:o,{item:l}=It(),{classNames:c}=ks(),d=l({className:c?.item||r});let u;return t[5]!==n||t[6]!==i||t[7]!==a||t[8]!==e||t[9]!==d?(u=k.jsx("li",{ref:e,className:d,"data-active":i,...a,children:n}),t[5]=n,t[6]=i,t[7]=a,t[8]=e,t[9]=d,t[10]=u):u=t[10],u});Fy.displayName="NavbarItem";const Wy=j.forwardRef((s,e)=>{const t=ae.c(22);let n,r,a,o,i,l;if(t[0]!==s){const{icon:b,isSelected:S,defaultSelected:C,srOnlyText:v,className:T,onChange:A,...E}=s;r=b,i=C,l=v,n=T,a=A,o=E,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=i,t[6]=l}else n=t[1],r=t[2],a=t[3],o=t[4],i=t[5],l=t[6];const c=l===void 0?"open/close navigation menu":l,{toggle:d}=It(),{isMenuOpen:u,onMenuOpenChange:f,classNames:m}=ks();let g;t[7]!==u||t[8]!==a||t[9]!==f?(g=()=>{const b=!u;f(b),a?.(b)},t[7]=u,t[8]=a,t[9]=f,t[10]=g):g=t[10];const x=g,y="button",w=d({className:m?.toggle||n});let h;t[11]!==r||t[12]!==u?(h=typeof r=="function"?r(u):r||k.jsx(Oy,{isOpen:u}),t[11]=r,t[12]=u,t[13]=h):h=t[13];let p;return t[14]!==x||t[15]!==u||t[16]!==o||t[17]!==e||t[18]!==c||t[19]!==w||t[20]!==h?(p=k.jsx("button",{ref:e,type:y,className:w,"data-open":u,"data-pressed":!1,"aria-label":c,onClick:x,...o,children:h}),t[14]=x,t[15]=u,t[16]=o,t[17]=e,t[18]=c,t[19]=w,t[20]=h,t[21]=p):p=t[21],p});Wy.displayName="NavbarMenuToggle";const Gy=j.forwardRef((s,e)=>{const t=ae.c(10);let n,r,a;if(t[0]!==s){const{children:h,portalContainer:p,className:b,...S}=s;n=h,r=b,a=S,t[0]=s,t[1]=n,t[2]=r,t[3]=a}else n=t[1],r=t[2],a=t[3];const{menu:o}=It(),{isMenuOpen:i,disableAnimation:l,classNames:c}=ks();let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d={closed:{opacity:0,y:-20},open:{opacity:1,y:0}},t[4]=d):d=t[4];const u=d,f=l?0:.3;let m;t[5]!==f?(m={duration:f,ease:"easeOut"},t[5]=f,t[6]=m):m=t[6];const g=m,x=bt,y=i&&k.jsx(pe.div,{ref:e,className:o({className:c?.menu||r}),variants:u,initial:"closed",animate:"open",exit:"closed",transition:g,...a,children:k.jsx("ul",{className:"flex flex-col gap-2 py-4",children:n})});let w;return t[7]!==x||t[8]!==y?(w=k.jsx(x,{children:y}),t[7]=x,t[8]=y,t[9]=w):w=t[9],w});Gy.displayName="NavbarMenu";const Uy=j.forwardRef((s,e)=>{const t=ae.c(11);let n,r,a,o;t[0]!==s?({children:n,isActive:o,className:r,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o):(n=t[1],r=t[2],a=t[3],o=t[4]);const i=o===void 0?!1:o,{menuItem:l}=It(),{classNames:c}=ks(),d=l({className:c?.menuItem||r});let u;return t[5]!==n||t[6]!==i||t[7]!==a||t[8]!==e||t[9]!==d?(u=k.jsx("li",{ref:e,className:d,"data-active":i,...a,children:n}),t[5]=n,t[6]=i,t[7]=a,t[8]=e,t[9]=d,t[10]=u):u=t[10],u});Uy.displayName="NavbarMenuItem";const Hy=ke({slots:{base:["flex","flex-col","gap-2","w-full"],track:["relative","bg-gray-200","overflow-hidden"],indicator:["h-full","transition-all","duration-500","ease-out","origin-left"],labelWrapper:["flex","justify-between","items-center"],label:["text-sm","font-medium","text-gray-700"],value:["text-sm","font-medium","text-gray-500"]},variants:{color:{default:{indicator:"bg-gray-400"},primary:{indicator:"bg-blue-600"},secondary:{indicator:"bg-gray-600"},success:{indicator:"bg-green-600"},warning:{indicator:"bg-yellow-500"},danger:{indicator:"bg-red-600"}},size:{sm:{track:"h-1",label:"text-xs",value:"text-xs"},md:{track:"h-2",label:"text-sm",value:"text-sm"},lg:{track:"h-3",label:"text-base",value:"text-base"}},radius:{none:{track:"rounded-none"},sm:{track:"rounded-sm"},md:{track:"rounded-md"},lg:{track:"rounded-lg"},full:{track:"rounded-full"}},isStriped:{true:{indicator:["bg-gradient-to-r","from-transparent","to-transparent","bg-[length:1rem_1rem]","bg-repeat-x","animate-pulse"]}},isIndeterminate:{true:{indicator:["animate-pulse"]}},isDisabled:{true:{base:"opacity-60 cursor-not-allowed",track:"bg-gray-100",indicator:"bg-gray-300",label:"text-gray-400",value:"text-gray-400"}}},compoundVariants:[{isStriped:!0,color:"primary",class:{indicator:["bg-gradient-to-r","from-blue-600","via-blue-500","to-blue-600","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isStriped:!0,color:"success",class:{indicator:["bg-gradient-to-r","from-green-600","via-green-500","to-green-600","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isStriped:!0,color:"warning",class:{indicator:["bg-gradient-to-r","from-yellow-500","via-yellow-400","to-yellow-500","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isStriped:!0,color:"danger",class:{indicator:["bg-gradient-to-r","from-red-600","via-red-500","to-red-600","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isIndeterminate:!0,class:{indicator:["w-1/3","animate-[progress-indeterminate_2s_ease-in-out_infinite]"]}}],defaultVariants:{color:"primary",size:"md",radius:"full",isStriped:!1,isIndeterminate:!1,isDisabled:!1}}),ju=(s=0,e=0,t=100)=>(Math.max(e,Math.min(t,s))-e)/(t-e)*100,Ky=(s=0,e=100,t=0)=>{const n=ju(s,t,e);return`${Math.round(n)}%`},Nu=j.forwardRef((s,e)=>{const t=ae.c(80);let n,r,a,o,i,l,c,d,u,f,m,g,x,y;t[0]!==s?({value:i,maxValue:c,minValue:d,color:u,size:f,radius:m,showValueLabel:g,label:a,isStriped:x,isIndeterminate:y,isDisabled:l,className:n,classNames:r,...o}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=i,t[6]=l,t[7]=c,t[8]=d,t[9]=u,t[10]=f,t[11]=m,t[12]=g,t[13]=x,t[14]=y):(n=t[1],r=t[2],a=t[3],o=t[4],i=t[5],l=t[6],c=t[7],d=t[8],u=t[9],f=t[10],m=t[11],g=t[12],x=t[13],y=t[14]);const w=i===void 0?0:i,h=c===void 0?100:c,p=d===void 0?0:d,b=u===void 0?"primary":u,S=f===void 0?"md":f,C=m===void 0?"full":m,v=g===void 0?!1:g,T=x===void 0?!1:x,A=y===void 0?!1:y,E=l===void 0?!1:l,R=ju(w,p,h);let L;t[15]!==h||t[16]!==p||t[17]!==w?(L=Ky(w,h,p),t[15]=h,t[16]=p,t[17]=w,t[18]=L):L=t[18];const D=L;let V,P,I,M,N,B,$,_,O,z,F,W;if(t[19]!==n||t[20]!==r?.base||t[21]!==r?.indicator||t[22]!==r?.label||t[23]!==r?.track||t[24]!==r?.value||t[25]!==b||t[26]!==E||t[27]!==A||t[28]!==T||t[29]!==a||t[30]!==h||t[31]!==p||t[32]!==o||t[33]!==C||t[34]!==e||t[35]!==v||t[36]!==S||t[37]!==w||t[38]!==D){const Y=Hy({color:b,size:S,radius:C,isStriped:T,isIndeterminate:A,isDisabled:E});M=e,N=je(Y.base(),r?.base,n),B="progressbar",$=p,_=h,O=A?void 0:w,z=A?"Cargando...":D,F=o,W=(a||v)&&k.jsxs("div",{className:je(Y.labelWrapper(),r?.label),children:[a&&k.jsx("span",{className:je(Y.label(),r?.label),children:a}),v&&!A&&k.jsx("span",{className:je(Y.value(),r?.value),children:D})]}),I=je(Y.track(),r?.track),V=pe.div,P=je(Y.indicator(),r?.indicator),t[19]=n,t[20]=r?.base,t[21]=r?.indicator,t[22]=r?.label,t[23]=r?.track,t[24]=r?.value,t[25]=b,t[26]=E,t[27]=A,t[28]=T,t[29]=a,t[30]=h,t[31]=p,t[32]=o,t[33]=C,t[34]=e,t[35]=v,t[36]=S,t[37]=w,t[38]=D,t[39]=V,t[40]=P,t[41]=I,t[42]=M,t[43]=N,t[44]=B,t[45]=$,t[46]=_,t[47]=O,t[48]=z,t[49]=F,t[50]=W}else V=t[39],P=t[40],I=t[41],M=t[42],N=t[43],B=t[44],$=t[45],_=t[46],O=t[47],z=t[48],F=t[49],W=t[50];let H;t[51]===Symbol.for("react.memo_cache_sentinel")?(H={scaleX:0,originX:0},t[51]=H):H=t[51];const K=A?1:R/100;let G;t[52]!==A?(G=A?["-100%","300%"]:0,t[52]=A,t[53]=G):G=t[53];let X;t[54]!==K||t[55]!==G?(X={scaleX:K,x:G},t[54]=K,t[55]=G,t[56]=X):X=t[56];let U,Z;t[57]!==A?(U=A?{duration:2,repeat:1/0,ease:"easeInOut"}:{duration:.5,ease:"easeOut"},Z=A?{width:"33%",transformOrigin:"left center"}:{transformOrigin:"left center"},t[57]=A,t[58]=U,t[59]=Z):(U=t[58],Z=t[59]);let q;t[60]!==V||t[61]!==P||t[62]!==X||t[63]!==U||t[64]!==Z?(q=k.jsx(V,{className:P,initial:H,animate:X,transition:U,style:Z}),t[60]=V,t[61]=P,t[62]=X,t[63]=U,t[64]=Z,t[65]=q):q=t[65];let Q;t[66]!==I||t[67]!==q?(Q=k.jsx("div",{className:I,children:q}),t[66]=I,t[67]=q,t[68]=Q):Q=t[68];let J;return t[69]!==M||t[70]!==N||t[71]!==B||t[72]!==$||t[73]!==_||t[74]!==O||t[75]!==z||t[76]!==F||t[77]!==W||t[78]!==Q?(J=k.jsxs("div",{ref:M,className:N,role:B,"aria-valuemin":$,"aria-valuemax":_,"aria-valuenow":O,"aria-valuetext":z,...F,children:[W,Q]}),t[69]=M,t[70]=N,t[71]=B,t[72]=$,t[73]=_,t[74]=O,t[75]=z,t[76]=F,t[77]=W,t[78]=Q,t[79]=J):J=t[79],J});Nu.displayName="Progress";const Xy={slow:2,normal:1,fast:.6};ke({base:["inline-block","animate-spin","transition-all","duration-200","ease-in-out"],variants:{size:{xs:"w-3 h-3",sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"},color:{primary:"text-blue-600",secondary:"text-gray-600",success:"text-green-600",warning:"text-yellow-600",error:"text-red-600",neutral:"text-gray-400"},visible:{true:"opacity-100 scale-100",false:"opacity-0 scale-95 pointer-events-none"}},defaultVariants:{size:"md",color:"primary",visible:!0}});const Yy=ke({base:["flex","items-center","justify-center","transition-all","duration-200","ease-in-out"],variants:{overlay:{true:["fixed","inset-0","z-50","bg-white/80","backdrop-blur-sm"],false:""},position:{center:"flex-col",top:"flex-col",bottom:"flex-col",left:"flex-row",right:"flex-row-reverse"},fullScreen:{true:"w-screen h-screen",false:"w-full h-full"}},defaultVariants:{overlay:!1,position:"center",fullScreen:!1}}),qy=ke({base:["text-sm","font-medium","transition-opacity","duration-200"],variants:{position:{center:"mt-2 text-center",top:"mb-2 text-center",bottom:"mt-2 text-center",left:"ml-2",right:"mr-2"},color:{primary:"text-blue-600",secondary:"text-gray-600",success:"text-green-600",warning:"text-yellow-600",error:"text-red-600",neutral:"text-gray-500"}},defaultVariants:{position:"center",color:"neutral"}});ke({base:["relative","inline-block"],variants:{size:{xs:"w-3 h-3",sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"}},defaultVariants:{size:"md"}});const Zy=ke({base:["rounded-full","transition-all"],variants:{size:{xs:"w-2 h-2",sm:"w-3 h-3",md:"w-4 h-4",lg:"w-6 h-6",xl:"w-8 h-8"},color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{size:"md",color:"primary"}}),Jy=ke({base:["flex","items-center","justify-center"],variants:{size:{xs:"gap-1",sm:"gap-1",md:"gap-2",lg:"gap-2",xl:"gap-3"}},defaultVariants:{size:"md"}}),Qy=ke({base:["rounded-full"],variants:{size:{xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-3 h-3",xl:"w-4 h-4"},color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{size:"md",color:"primary"}}),e2=ke({base:["flex","items-end","justify-center"],variants:{size:{xs:"gap-0.5 h-3",sm:"gap-0.5 h-4",md:"gap-1 h-6",lg:"gap-1 h-8",xl:"gap-1.5 h-12"}},defaultVariants:{size:"md"}}),t2=ke({base:["rounded-full"],variants:{size:{xs:"w-0.5",sm:"w-0.5",md:"w-1",lg:"w-1",xl:"w-1.5"},color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{size:"md",color:"primary"}});ke({base:["grid","gap-1"],variants:{size:{xs:"w-6 h-6",sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16",xl:"w-24 h-24"},gridSize:{"2x2":"grid-cols-2 grid-rows-2","3x3":"grid-cols-3 grid-rows-3","4x4":"grid-cols-4 grid-rows-4"}},defaultVariants:{size:"md",gridSize:"3x3"}});ke({base:["rounded-sm"],variants:{color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{color:"primary"}});const s2=ke({base:["relative","rounded-full","border-solid","border-transparent"],variants:{size:{xs:"w-3 h-3 border-[1px]",sm:"w-4 h-4 border-[1px]",md:"w-6 h-6 border-2",lg:"w-8 h-8 border-2",xl:"w-12 h-12 border-[3px]"},color:{primary:"border-t-blue-600 border-r-blue-600/30",secondary:"border-t-gray-600 border-r-gray-600/30",success:"border-t-green-600 border-r-green-600/30",warning:"border-t-yellow-600 border-r-yellow-600/30",error:"border-t-red-600 border-r-red-600/30",neutral:"border-t-gray-400 border-r-gray-400/30"}},defaultVariants:{size:"md",color:"primary"}});ke({base:["flex","items-center","justify-center"],variants:{direction:{horizontal:"flex-row",vertical:"flex-col",circular:"relative"},size:{xs:"gap-1",sm:"gap-1",md:"gap-2",lg:"gap-2",xl:"gap-3"}},defaultVariants:{direction:"horizontal",size:"md"}});ke({base:["flex","items-end","justify-center"],variants:{orientation:{vertical:"flex-row items-end",horizontal:"flex-col items-center"},size:{xs:"gap-0.5",sm:"gap-0.5",md:"gap-1",lg:"gap-1",xl:"gap-1.5"}},defaultVariants:{orientation:"vertical",size:"md"}});const n2=s=>Xy[s],$n={rotate:{animate:{rotate:360}},pulse:{animate:{scale:[1,1.2,1],opacity:[.7,1,.7]}},bounce:{animate:{y:[0,-10,0]}},wave:{animate:{scaleY:[.4,1,.4]}}},Pu=s=>{const e=ae.c(68);let t,n,r,a,o,i,l,c,d,u,f,m,g,x,y;e[0]!==s?({type:i,size:c,color:d,speed:u,visible:f,label:r,overlay:m,overlayOpacity:g,overlayColor:x,animationConfig:t,className:n,"aria-label":y,"data-testid":l,style:o,...a}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i,e[7]=l,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=m,e[13]=g,e[14]=x,e[15]=y):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6],l=e[7],c=e[8],d=e[9],u=e[10],f=e[11],m=e[12],g=e[13],x=e[14],y=e[15]);const w=i===void 0?"rotating":i,h=c===void 0?"md":c,p=d===void 0?"primary":d,b=u===void 0?"normal":u,S=f===void 0?!0:f,C=m===void 0?!1:m,v=g===void 0?.8:g,T=l===void 0?"spinner":l;let A;e[16]!==b?(A=n2(b),e[16]=b,e[17]=A):A=e[17];const E=A;let R;e[18]!==t||e[19]!==p||e[20]!==E||e[21]!==h?(R=()=>k.jsx(pe.div,{className:s2({size:h,color:p}),animate:$n.rotate.animate,transition:{duration:E,repeat:1/0,...t}}),e[18]=t,e[19]=p,e[20]=E,e[21]=h,e[22]=R):R=e[22];const L=R;let D;e[23]!==t||e[24]!==p||e[25]!==E||e[26]!==h?(D=()=>k.jsx(pe.div,{className:Zy({size:h,color:p}),animate:$n.pulse.animate,transition:{duration:E,repeat:1/0,...t}}),e[23]=t,e[24]=p,e[25]=E,e[26]=h,e[27]=D):D=e[27];const V=D;let P;e[28]!==t||e[29]!==p||e[30]!==E||e[31]!==h?(P=()=>k.jsx("div",{className:Jy({size:h}),children:[0,1,2].map(J=>k.jsx(pe.div,{className:Qy({size:h,color:p}),animate:$n.bounce.animate,transition:{duration:E,repeat:1/0,delay:J*.1,...t}},J))}),e[28]=t,e[29]=p,e[30]=E,e[31]=h,e[32]=P):P=e[32];const I=P;let M;e[33]!==t||e[34]!==p||e[35]!==E||e[36]!==h?(M=()=>k.jsx("div",{className:e2({size:h}),children:[0,1,2,3,4].map(J=>k.jsx(pe.div,{className:t2({size:h,color:p}),animate:$n.wave.animate,transition:{duration:E,repeat:1/0,delay:J*.1,...t}},J))}),e[33]=t,e[34]=p,e[35]=E,e[36]=h,e[37]=M):M=e[37];const N=M;let B;e[38]!==I||e[39]!==V||e[40]!==L||e[41]!==N||e[42]!==w?(B=()=>{switch(w){case"rotating":case"ring":return k.jsx(L,{});case"pulse":return k.jsx(V,{});case"bounce":case"dots":return k.jsx(I,{});case"wave":case"bars":return k.jsx(N,{});default:return k.jsx(L,{})}},e[38]=I,e[39]=V,e[40]=L,e[41]=N,e[42]=w,e[43]=B):B=e[43];const $=B;let _;e[44]!==C?(_=Yy({overlay:C,position:"center",fullScreen:C}),e[44]=C,e[45]=_):_=e[45];const O=_,z=n?`${O} ${n}`:O;let F;e[46]!==C||e[47]!==v?(F=C&&v!==void 0&&{backgroundColor:`rgba(255, 255, 255, ${v})`},e[46]=C,e[47]=v,e[48]=F):F=e[48];let W;e[49]!==o||e[50]!==F?(W={...o,...F},e[49]=o,e[50]=F,e[51]=W):W=e[51];const H=W;if(!S)return null;let K,G,X,U;e[52]===Symbol.for("react.memo_cache_sentinel")?(K={opacity:0},G={opacity:1},X={opacity:0},U={duration:.2},e[52]=K,e[53]=G,e[54]=X,e[55]=U):(K=e[52],G=e[53],X=e[54],U=e[55]);let Z;e[56]!==$?(Z=$(),e[56]=$,e[57]=Z):Z=e[57];let q;e[58]!==p||e[59]!==r?(q=r&&k.jsx(pe.div,{className:qy({position:"center",color:p==="neutral"?"neutral":p}),initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1,duration:.2},children:r}),e[58]=p,e[59]=r,e[60]=q):q=e[60];let Q;return e[61]!==H||e[62]!==T||e[63]!==z||e[64]!==a||e[65]!==Z||e[66]!==q?(Q=k.jsxs(pe.div,{className:z,style:H,initial:K,animate:G,exit:X,transition:U,role:"status","aria-live":"polite","data-testid":T,...a,children:[Z,q]}),e[61]=H,e[62]=T,e[63]=z,e[64]=a,e[65]=Z,e[66]=q,e[67]=Q):Q=e[67],Q};Pu.displayName="Spinner";const Zs={sm:{wrapper:"w-10 h-6",thumb:"w-5 h-5",label:"text-sm",startContent:"text-xs",endContent:"text-xs",thumbIcon:"w-3 h-3"},md:{wrapper:"w-12 h-7",thumb:"w-6 h-6",label:"text-base",startContent:"text-sm",endContent:"text-sm",thumbIcon:"w-4 h-4"},lg:{wrapper:"w-14 h-8",thumb:"w-7 h-7",label:"text-lg",startContent:"text-base",endContent:"text-base",thumbIcon:"w-5 h-5"}},r2=(s="primary",e=!1,t=!1)=>t?e?"bg-gray-300 border-gray-300":"bg-gray-200 border-gray-200":e?{default:"bg-gray-600 border-gray-600 hover:bg-gray-700",primary:"bg-blue-600 border-blue-600 hover:bg-blue-700",secondary:"bg-purple-600 border-purple-600 hover:bg-purple-700",success:"bg-green-600 border-green-600 hover:bg-green-700",warning:"bg-amber-500 border-amber-500 hover:bg-amber-600",danger:"bg-red-600 border-red-600 hover:bg-red-700"}[s]:"bg-gray-200 border-gray-200 hover:bg-gray-300",a2=(s=!1)=>`inline-flex items-center gap-2 cursor-pointer select-none ${s?"cursor-not-allowed opacity-60":""}`.trim(),o2=(s="md",e="primary",t=!1,n=!1,r=!1)=>{const a=Zs[s].wrapper,o=r2(e,t,n);return`relative inline-flex shrink-0 border-2 rounded-full cursor-pointer ${a} ${o} ${r?"":"transition-colors duration-200 ease-in-out"} focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-blue-500`.trim()},i2=(s="md",e=!1)=>`font-medium ${Zs[s].label} ${e?"text-gray-400":"text-gray-900"}`.trim(),Gl=(s="md",e=!1)=>`flex items-center justify-center ${Zs[s].startContent} ${e?"text-gray-400":"text-gray-600"}`.trim(),l2=(s="md")=>`flex items-center justify-center text-gray-400 ${Zs[s].thumbIcon}`.trim(),c2=()=>"sr-only",d2=s=>{const e=ae.c(89),{children:t,value:n,name:r,size:a,color:o,thumbIcon:i,startContent:l,endContent:c,isSelected:d,defaultSelected:u,isReadOnly:f,isDisabled:m,disableAnimation:g,className:x,classNames:y,onChange:w,onValueChange:h,"data-testid":p}=s,b=a===void 0?"md":a,S=o===void 0?"primary":o,C=u===void 0?!1:u,v=f===void 0?!1:f,T=m===void 0?!1:m,A=g===void 0?!1:g,E=x===void 0?"":x,[R,L]=j.useState(C),D=j.useRef(null),V=d!==void 0,P=V?d:R;let I;e[0]!==V||e[1]!==T||e[2]!==v||e[3]!==w||e[4]!==h?(I=Be=>{if(T||v)return;const Ee=Be.target.checked;V||L(Ee),w?.(Be),h?.(Ee)},e[0]=V,e[1]=T,e[2]=v,e[3]=w,e[4]=h,e[5]=I):I=e[5];const M=I;let N;e[6]!==T||e[7]!==v?(N=()=>{T||v||D.current?.click()},e[6]=T,e[7]=v,e[8]=N):N=e[8];const B=N;let $;e[9]!==T?($=a2(T),e[9]=T,e[10]=$):$=e[10];const _=$,O=y?.base;let z;e[11]!==_||e[12]!==E||e[13]!==O?(z=[_,O,E].filter(Boolean),e[11]=_,e[12]=E,e[13]=O,e[14]=z):z=e[14];const F=z.join(" ");let W;e[15]!==S||e[16]!==A||e[17]!==T||e[18]!==P||e[19]!==b?(W=o2(b,S,P,T,A),e[15]=S,e[16]=A,e[17]=T,e[18]=P,e[19]=b,e[20]=W):W=e[20];const H=W,K=y?.wrapper;let G;e[21]!==K||e[22]!==H?(G=[H,K].filter(Boolean),e[21]=K,e[22]=H,e[23]=G):G=e[23];const X=G.join(" ");let U;e[24]!==T||e[25]!==b?(U=i2(b,T),e[24]=T,e[25]=b,e[26]=U):U=e[26];const Z=U,q=y?.label;let Q;e[27]!==Z||e[28]!==q?(Q=[Z,q].filter(Boolean),e[27]=Z,e[28]=q,e[29]=Q):Q=e[29];const J=Q.join(" ");let Y;e[30]!==T||e[31]!==b?(Y=Gl(b,T),e[30]=T,e[31]=b,e[32]=Y):Y=e[32];const ne=Y,se=y?.startContent;let ee;e[33]!==ne||e[34]!==se?(ee=[ne,se].filter(Boolean),e[33]=ne,e[34]=se,e[35]=ee):ee=e[35];const re=ee.join(" ");let le;e[36]!==T||e[37]!==b?(le=Gl(b,T),e[36]=T,e[37]=b,e[38]=le):le=e[38];const ce=le,oe=y?.endContent;let te;e[39]!==ce||e[40]!==oe?(te=[ce,oe].filter(Boolean),e[39]=ce,e[40]=oe,e[41]=te):te=e[41];const ie=te.join(" ");let de;e[42]===Symbol.for("react.memo_cache_sentinel")?(de=c2(),e[42]=de):de=e[42];const me=de,ye=y?.hiddenInput;let ve;e[43]!==ye?(ve=[me,ye].filter(Boolean),e[43]=ye,e[44]=ve):ve=e[44];const we=ve.join(" ");let xe;e[45]!==re||e[46]!==p||e[47]!==A||e[48]!==l?(xe=l&&k.jsx(pe.div,{className:re,"data-testid":`${p}-start-content`,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:A?0:.2},children:l}),e[45]=re,e[46]=p,e[47]=A,e[48]=l,e[49]=xe):xe=e[49];const ue=`${p}-wrapper`,he=`${p}-input`;let fe;e[50]!==we||e[51]!==M||e[52]!==B||e[53]!==T||e[54]!==v||e[55]!==P||e[56]!==r||e[57]!==he||e[58]!==n?(fe=k.jsx("input",{ref:D,type:"checkbox",value:n,name:r,checked:P,onChange:M,disabled:T,readOnly:v,"aria-checked":P,className:we,"data-testid":he,onClick:B}),e[50]=we,e[51]=M,e[52]=B,e[53]=T,e[54]=v,e[55]=P,e[56]=r,e[57]=he,e[58]=n,e[59]=fe):fe=e[59];const Ce=y?.thumb,Te=`${p}-thumb`;let Ne;e[60]!==i||e[61]!==A||e[62]!==B||e[63]!==P||e[64]!==b||e[65]!==Ce||e[66]!==Te?(Ne=k.jsx(f2,{isSelected:P,size:b,thumbIcon:i,disableAnimation:A,className:Ce,"data-testid":Te,onClick:B}),e[60]=i,e[61]=A,e[62]=B,e[63]=P,e[64]=b,e[65]=Ce,e[66]=Te,e[67]=Ne):Ne=e[67];let Ae;e[68]!==X||e[69]!==ue||e[70]!==fe||e[71]!==Ne?(Ae=k.jsxs(u2,{className:X,"data-testid":ue,children:[fe,Ne]}),e[68]=X,e[69]=ue,e[70]=fe,e[71]=Ne,e[72]=Ae):Ae=e[72];let Oe;e[73]!==ie||e[74]!==p||e[75]!==A||e[76]!==c?(Oe=c&&k.jsx(pe.div,{className:ie,"data-testid":`${p}-end-content`,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:A?0:.2},children:c}),e[73]=ie,e[74]=p,e[75]=A,e[76]=c,e[77]=Oe):Oe=e[77];let Ie;e[78]!==t||e[79]!==J||e[80]!==p?(Ie=t&&k.jsx("span",{className:J,"data-testid":`${p}-label`,children:t}),e[78]=t,e[79]=J,e[80]=p,e[81]=Ie):Ie=e[81];let De;return e[82]!==F||e[83]!==p||e[84]!==xe||e[85]!==Ae||e[86]!==Oe||e[87]!==Ie?(De=k.jsxs("label",{className:F,"data-testid":p,children:[xe,Ae,Oe,Ie]}),e[82]=F,e[83]=p,e[84]=xe,e[85]=Ae,e[86]=Oe,e[87]=Ie,e[88]=De):De=e[88],De},u2=s=>{const e=ae.c(8),{children:t,className:n,onClick:r,"data-testid":a}=s,o=n===void 0?"":n;let i,l,c;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={scale:1.02},l={scale:.98},c={duration:.1},e[0]=i,e[1]=l,e[2]=c):(i=e[0],l=e[1],c=e[2]);let d;return e[3]!==t||e[4]!==o||e[5]!==a||e[6]!==r?(d=k.jsx(pe.div,{className:o,onClick:r,"data-testid":a,whileHover:i,whileTap:l,transition:c,children:t}),e[3]=t,e[4]=o,e[5]=a,e[6]=r,e[7]=d):d=e[7],d},f2=s=>{const e=ae.c(27),{isSelected:t,size:n,thumbIcon:r,disableAnimation:a,className:o,"data-testid":i}=s,l=t===void 0?!1:t,c=n===void 0?"md":n,d=a===void 0?!1:a,u=o===void 0?"":o,f=Zs[c];let m;e[0]!==c?(m=l2(c),e[0]=c,e[1]=m):m=e[1];const g=m;let x;e[2]!==c?(x=()=>{const P={sm:40,md:48,lg:56},I={sm:20,md:24,lg:28};return P[c]-I[c]-7},e[2]=c,e[3]=x):x=e[3];const w=x(),h=`absolute top-0.2 left-0.5 inline-block rounded-full bg-white shadow-lg transform ring-0 flex items-center justify-center ${f.thumb}`;let p;e[4]!==u||e[5]!==h?(p=[h,u].filter(Boolean),e[4]=u,e[5]=h,e[6]=p):p=e[6];const b=p.join(" "),S=l?w:0;let C;e[7]!==S?(C={x:S},e[7]=S,e[8]=C):C=e[8];const v=d?0:void 0;let T;e[9]!==v?(T={type:"spring",stiffness:500,damping:30,duration:v},e[9]=v,e[10]=T):T=e[10];let A,E,R;e[11]===Symbol.for("react.memo_cache_sentinel")?(A={scale:1.1},E={scale:.95},R={cursor:"pointer"},e[11]=A,e[12]=E,e[13]=R):(A=e[11],E=e[12],R=e[13]);let L;e[14]!==r||e[15]!==d||e[16]!==l||e[17]!==g?(L=r&&k.jsx(pe.div,{initial:{opacity:0,rotate:-180,scale:.5},animate:{opacity:1,rotate:0,scale:1},exit:{opacity:0,rotate:180,scale:.5},transition:{duration:d?0:.3},children:k.jsx(r,{isSelected:l,className:g})},l?"selected":"unselected"),e[14]=r,e[15]=d,e[16]=l,e[17]=g,e[18]=L):L=e[18];let D;e[19]!==L?(D=k.jsx(bt,{mode:"wait",children:L}),e[19]=L,e[20]=D):D=e[20];let V;return e[21]!==b||e[22]!==i||e[23]!==T||e[24]!==D||e[25]!==C?(V=k.jsx(pe.span,{className:b,"data-testid":i,animate:C,transition:T,whileHover:A,whileTap:E,style:R,children:D}),e[21]=b,e[22]=i,e[23]=T,e[24]=D,e[25]=C,e[26]=V):V=e[26],V},m2=(s,e)=>{if(s==="custom"&&e){const n=e.border||"transparent";let r="";return e.gradient?r=`bg-gradient-to-r ${e.gradient}`:r=`bg-[${e.background||"transparent"}]`,`border-[${n}] ${r}`}const t={default:"border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-900",primary:"border-blue-200 bg-blue-50 dark:border-blue-800 dark:bg-blue-950",secondary:"border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800",success:"border-green-200 bg-green-50 dark:border-green-800 dark:bg-green-950",warning:"border-yellow-200 bg-yellow-50 dark:border-yellow-800 dark:bg-yellow-950",danger:"border-red-200 bg-red-50 dark:border-red-800 dark:bg-red-950",custom:"border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-900"};return t[s]||t.default},h2=s=>{const e={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"};return e[s]||e.md},p2=s=>{const e={none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"};return e[s]||e.sm},g2=(s,e,t,n,r,a)=>{if(r)return"";const o="flex flex-col relative overflow-hidden",i=m2(s,e),l=h2(t),c=p2(n);return[o,i,l,c,a?"w-full":""].filter(Boolean).join(" ")},b2=(s,e)=>["min-w-full table-auto",s?"table-compact":"",e?"table-striped":""].filter(Boolean).join(" "),y2=(s,e,t,n,r,a)=>{const o=a?.border?`border-b border-[${a.border}] transition-colors`:"border-b border-gray-200 dark:border-gray-700 transition-colors";let i="";s&&(i=a?.selected?`bg-[${a.selected}]`:"bg-blue-50 dark:bg-blue-900/20");const l=!e&&!s?a?.hover?`hover:bg-[${a.hover}]`:"hover:bg-gray-50 dark:hover:bg-gray-800/50":"";return[o,i,l,e?"opacity-50 cursor-not-allowed":"cursor-pointer"].filter(Boolean).join(" ")},Vu=j.createContext(null),v2=()=>{const s=j.useContext(Vu);if(!s)throw new Error("Table components must be used within a Table component");return s},x2=({children:s,className:e="",color:t="default",customColor:n,layout:r="auto",radius:a="md",shadow:o="sm",maxTableHeight:i,rowHeight:l,isVirtualized:c=!1,hideHeader:d=!1,isStriped:u=!1,isCompact:f=!1,isHeaderSticky:m=!1,fullWidth:g=!0,removeWrapper:x=!1,topContent:y,bottomContent:w,topContentPlacement:h="outside",bottomContentPlacement:p="outside",showSelectionCheckboxes:b=!1,sortDescriptor:S,selectedKeys:C=new Set,defaultSelectedKeys:v=new Set,disabledKeys:T=new Set,disallowEmptySelection:A=!1,selectionMode:E="none",selectionBehavior:R="toggle",disabledBehavior:L="selection",allowDuplicateSelectionEvents:D=!1,disableAnimation:V=!1,isKeyboardNavigationDisabled:P=!1,loading:I=!1,emptyContent:M,centerHeaderText:N=!1,centerCellText:B=!1,columns:$,items:_,onRowAction:O,onCellAction:z,onSelectionChange:F,onSortChange:W,"data-testid":H,...K})=>{const G=j.useMemo(()=>({color:t,customColor:n,selectionMode:E,selectionBehavior:R,selectedKeys:C,disabledKeys:T,sortDescriptor:S,isStriped:u,isCompact:f,disableAnimation:V,showSelectionCheckboxes:b,centerHeaderText:N,centerCellText:B,onRowAction:O,onCellAction:z,onSelectionChange:F,onSortChange:W,columns:$,items:_}),[t,n,E,R,C,T,S,u,f,V,b,N,B,O,z,F,W,$,_]),X=j.useMemo(()=>g2(t,n,a,o,x,g),[t,n,a,o,x,g]),U=j.useMemo(()=>b2(f,u),[f,u]),Z=h==="outside"&&y,q=h==="inside"&&y,Q=p==="outside"&&w,J=p==="inside"&&w,Y={...i&&{maxHeight:i,overflowY:"auto"},...c&&l&&{height:i||400}};return k.jsx(Vu.Provider,{value:G,children:k.jsxs("div",{className:"table-wrapper","data-testid":H,children:[Z&&k.jsx("div",{className:"table-top-content mb-4",children:y}),k.jsxs("div",{className:`${X} ${e}`.trim(),...K,children:[q&&k.jsx("div",{className:"table-top-content-inside p-4 border-b border-gray-200 dark:border-gray-700",children:y}),k.jsx("div",{className:"table-container overflow-auto",style:Y,children:I?k.jsx("div",{className:"flex items-center justify-center py-12",children:k.jsxs("div",{className:"flex items-center space-x-3",children:[k.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-gray-600 dark:border-gray-300"}),k.jsx("span",{className:"text-gray-600 dark:text-gray-300",children:"Loading..."})]})}):_&&_.length===0?k.jsx("div",{className:"flex items-center justify-center py-12",children:k.jsx("div",{className:"text-center",children:M||k.jsxs("div",{className:"text-gray-500 dark:text-gray-400",children:[k.jsx("div",{className:"text-4xl mb-2",children:"📄"}),k.jsx("div",{className:"text-lg font-medium mb-1",children:"No data available"}),k.jsx("div",{className:"text-sm",children:"There are no items to display"})]})})}):k.jsx("table",{className:`${U} ${r==="fixed"?"table-fixed":""}`,role:"table","aria-label":"Data table",children:s})}),J&&k.jsx("div",{className:"table-bottom-content-inside p-4 border-t border-gray-200 dark:border-gray-700",children:w})]}),Q&&k.jsx("div",{className:"table-bottom-content mt-4",children:w})]})})},w2=s=>{const e=ae.c(29);let t,n,r,a,o,i;e[0]!==s?({children:t,className:a,textValue:i,item:n,"data-testid":o,...r}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=a,e[5]=o,e[6]=i):(t=e[1],n=e[2],r=e[3],a=e[4],o=e[5],i=e[6]);const l=a===void 0?"":a,{isStriped:c,selectedKeys:d,disabledKeys:u,onRowAction:f,customColor:m}=v2(),g=n?.key||n?.id||i;let x,y,w;e[7]!==m||e[8]!==u||e[9]!==c||e[10]!==g||e[11]!==d?(y=g?d==="all"||d.has(g):!1,x=g?u.has(g):!1,w=y2(y,x,c,!1,!0,m),e[7]=m,e[8]=u,e[9]=c,e[10]=g,e[11]=d,e[12]=x,e[13]=y,e[14]=w):(x=e[12],y=e[13],w=e[14]);const h=w;let p;e[15]!==x||e[16]!==f||e[17]!==g?(p=()=>{!x&&g&&f&&f(g)},e[15]=x,e[16]=f,e[17]=g,e[18]=p):p=e[18];const b=p,S=`${h} ${l}`;let C;e[19]!==S?(C=S.trim(),e[19]=S,e[20]=C):C=e[20];let v;return e[21]!==t||e[22]!==b||e[23]!==x||e[24]!==y||e[25]!==r||e[26]!==C||e[27]!==o?(v=k.jsx("tr",{className:C,onClick:b,role:"row","aria-selected":y,"aria-disabled":x,"data-testid":o,...r,children:t}),e[21]=t,e[22]=b,e[23]=x,e[24]=y,e[25]=r,e[26]=C,e[27]=o,e[28]=v):v=e[28],v},C2={sm:"p-3 text-sm",md:"p-4 text-base",lg:"p-5 text-lg"},k2={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},S2=(s,e)=>{const t={solid:{success:"bg-green-500 text-white border-green-500 dark:bg-green-600 dark:border-green-600",error:"bg-red-500 text-white border-red-500 dark:bg-red-600 dark:border-red-600",warning:"bg-yellow-500 text-white border-yellow-500 dark:bg-yellow-600 dark:border-yellow-600",info:"bg-blue-500 text-white border-blue-500 dark:bg-blue-600 dark:border-blue-600",default:"bg-gray-500 text-white border-gray-500 dark:bg-gray-600 dark:border-gray-600"},bordered:{success:"bg-transparent text-green-600 border-green-500 border-2 dark:bg-gray-800 dark:text-green-400 dark:border-green-500",error:"bg-transparent text-red-600 border-red-500 border-2 dark:bg-gray-800 dark:text-red-400 dark:border-red-500",warning:"bg-transparent text-yellow-600 border-yellow-500 border-2 dark:bg-gray-800 dark:text-yellow-400 dark:border-yellow-500",info:"bg-transparent text-blue-600 border-blue-500 border-2 dark:bg-gray-800 dark:text-blue-400 dark:border-blue-500",default:"bg-transparent text-gray-600 border-gray-500 border-2 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-500"},flat:{success:"bg-green-100 text-green-800 border-green-100 dark:bg-green-900/30 dark:text-green-300 dark:border-green-800",error:"bg-red-100 text-red-800 border-red-100 dark:bg-red-900/30 dark:text-red-300 dark:border-red-800",warning:"bg-yellow-100 text-yellow-800 border-yellow-100 dark:bg-yellow-900/30 dark:text-yellow-300 dark:border-yellow-800",info:"bg-blue-100 text-blue-800 border-blue-100 dark:bg-blue-900/30 dark:text-blue-300 dark:border-blue-800",default:"bg-gray-100 text-gray-800 border-gray-100 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-700"},faded:{success:"bg-green-50 text-green-700 border-green-200 dark:bg-green-900/20 dark:text-green-300 dark:border-green-700",error:"bg-red-50 text-red-700 border-red-200 dark:bg-red-900/20 dark:text-red-300 dark:border-red-700",warning:"bg-yellow-50 text-yellow-700 border-yellow-200 dark:bg-yellow-900/20 dark:text-yellow-300 dark:border-yellow-700",info:"bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-900/20 dark:text-blue-300 dark:border-blue-700",default:"bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-900 dark:text-gray-300 dark:border-gray-600"},shadow:{success:"bg-white text-green-600 border-green-200 shadow-lg shadow-green-500/25 dark:bg-gray-800 dark:text-green-400 dark:border-green-700 dark:shadow-green-500/10",error:"bg-white text-red-600 border-red-200 shadow-lg shadow-red-500/25 dark:bg-gray-800 dark:text-red-400 dark:border-red-700 dark:shadow-red-500/10",warning:"bg-white text-yellow-600 border-yellow-200 shadow-lg shadow-yellow-500/25 dark:bg-gray-800 dark:text-yellow-400 dark:border-yellow-700 dark:shadow-yellow-500/10",info:"bg-white text-blue-600 border-blue-200 shadow-lg shadow-blue-500/25 dark:bg-gray-800 dark:text-blue-400 dark:border-blue-700 dark:shadow-blue-500/10",default:"bg-white text-gray-600 border-gray-200 shadow-lg shadow-gray-500/25 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 dark:shadow-gray-900/25"}};return t[e][s]||t.solid.default},T2=s=>{const e={top:"top-4 left-1/2 transform -translate-x-1/2","top-left":"top-4 left-4","top-right":"top-4 right-4",bottom:"bottom-4 left-1/2 transform -translate-x-1/2","bottom-left":"bottom-4 left-4","bottom-right":"bottom-4 right-4"};return e[s]||e["top-right"]},A2=s=>{const e={top:{enter:"animate-[toast-slide-in-top_0.3s_ease-out]",exit:"animate-[toast-slide-out-top_0.2s_ease-in]"},"top-left":{enter:"animate-[toast-slide-in-left_0.3s_ease-out]",exit:"animate-[toast-slide-out-left_0.2s_ease-in]"},"top-right":{enter:"animate-[toast-slide-in-right_0.3s_ease-out]",exit:"animate-[toast-slide-out-right_0.2s_ease-in]"},bottom:{enter:"animate-[toast-slide-in-bottom_0.3s_ease-out]",exit:"animate-[toast-slide-out-bottom_0.2s_ease-in]"},"bottom-left":{enter:"animate-[toast-slide-in-left_0.3s_ease-out]",exit:"animate-[toast-slide-out-left_0.2s_ease-in]"},"bottom-right":{enter:"animate-[toast-slide-in-right_0.3s_ease-out]",exit:"animate-[toast-slide-out-right_0.2s_ease-in]"}};return e[s]||e["top-right"]},j2=s=>{const e={success:"text-green-500 dark:text-green-400",error:"text-red-500 dark:text-red-400",warning:"text-yellow-500 dark:text-yellow-400",info:"text-blue-500 dark:text-blue-400",default:"text-gray-500 dark:text-gray-400"};return e[s]||e.default},N2=s=>{const e={success:'<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>',error:'<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd"></path></svg>',warning:'<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"></path></svg>',info:'<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path></svg>',default:'<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path></svg>'};return e[s]||e.default},P2=()=>`toast-${Date.now()}-${Math.random().toString(36).substring(2,11)}`,V2=s=>{const e=ae.c(9),{type:t,customIcon:n}=s;if(n){let u;return e[0]!==n?(u=k.jsx("div",{className:"flex-shrink-0",children:n}),e[0]=n,e[1]=u):u=e[1],u}const r=j2(t),a=t;let o;e[2]!==a?(o=N2(a),e[2]=a,e[3]=o):o=e[3];const i=o,l=`flex-shrink-0 ${r}`;let c;e[4]!==i?(c={__html:i},e[4]=i,e[5]=c):c=e[5];let d;return e[6]!==l||e[7]!==c?(d=k.jsx("div",{className:l,dangerouslySetInnerHTML:c}),e[6]=l,e[7]=c,e[8]=d):d=e[8],d},Mu=s=>{const e=ae.c(38),{id:t,type:n,title:r,description:a,closable:o,action:i,icon:l,size:c,variant:d,radius:u,position:f,className:m,onRemove:g,onClose:x,"data-testid":y}=s,w=n===void 0?"default":n,h=o===void 0?!0:o,p=c===void 0?"md":c,b=d===void 0?"solid":d,S=u===void 0?"md":u,C=f===void 0?"top-right":f,v=m===void 0?"":m,[T,A]=j.useState(!1),E=C2[p],R=k2[S];let L;e[0]!==w||e[1]!==b?(L=S2(w,b),e[0]=w,e[1]=b,e[2]=L):L=e[2];const D=L;let V;e[3]!==C?(V=A2(C),e[3]=C,e[4]=V):V=e[4];const P=V,I=T?P.exit:P.enter;let M;e[5]!==v||e[6]!==R||e[7]!==E||e[8]!==I||e[9]!==D?(M=["flex items-start gap-3 border w-full max-w-sm pointer-events-auto",E,R,D,I,v].filter(Boolean),e[5]=v,e[6]=R,e[7]=E,e[8]=I,e[9]=D,e[10]=M):M=e[10];const N=M.join(" ");let B;e[11]!==t||e[12]!==x||e[13]!==g?(B=()=>{x&&x(t),A(!0),setTimeout(()=>{g(t)},200)},e[11]=t,e[12]=x,e[13]=g,e[14]=B):B=e[14];const $=B;let _;e[15]===Symbol.for("react.memo_cache_sentinel")?(_=[],e[15]=_):_=e[15],j.useEffect(I2,_);let O;e[16]!==l||e[17]!==w?(O=l!==!1&&k.jsx(V2,{type:w,customIcon:l}),e[16]=l,e[17]=w,e[18]=O):O=e[18];let z;e[19]!==r?(z=r&&k.jsx("div",{className:"font-semibold text-sm mb-1 break-words",children:r}),e[19]=r,e[20]=z):z=e[20];let F;e[21]!==a?(F=a&&k.jsx("div",{className:"text-sm opacity-90 break-words",children:a}),e[21]=a,e[22]=F):F=e[22];let W;e[23]!==i?(W=i&&k.jsx("div",{className:"mt-2",children:i}),e[23]=i,e[24]=W):W=e[24];let H;e[25]!==z||e[26]!==F||e[27]!==W?(H=k.jsxs("div",{className:"flex-1 min-w-0",children:[z,F,W]}),e[25]=z,e[26]=F,e[27]=W,e[28]=H):H=e[28];let K;e[29]!==h||e[30]!==$?(K=h&&k.jsx("button",{onClick:$,className:"flex-shrink-0 p-1 rounded-sm opacity-70 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-current focus:ring-offset-1 dark:focus:ring-offset-gray-800","aria-label":"Close notification",type:"button",children:k.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e[29]=h,e[30]=$,e[31]=K):K=e[31];let G;return e[32]!==N||e[33]!==y||e[34]!==O||e[35]!==H||e[36]!==K?(G=k.jsxs("div",{className:N,"data-testid":y,children:[O,H,K]}),e[32]=N,e[33]=y,e[34]=O,e[35]=H,e[36]=K,e[37]=G):G=e[37],G};function M2(){}function I2(){return M2}const Iu=j.createContext(void 0);function E2(s,e){switch(e.type){case"ADD_TOAST":return[...s,e.payload];case"REMOVE_TOAST":return s.filter(t=>t.id!==e.payload);case"REMOVE_ALL_TOASTS":return[];case"UPDATE_TOAST":return s.map(t=>t.id===e.payload.id?{...t,...e.payload.updates}:t);default:return s}}const R2=s=>{const e=ae.c(17),{children:t,position:n,maxToasts:r,defaultDuration:a}=s,o=n===void 0?"top-right":n,i=r===void 0?5:r,l=a===void 0?5e3:a;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[d,u]=j.useReducer(E2,c);let f;e[1]!==l||e[2]!==o?(f=A=>{const E=P2(),R={type:"default",duration:l,closable:!0,position:o,size:"md",variant:"solid",radius:"md",...A,id:E};return u({type:"ADD_TOAST",payload:R}),R.duration&&R.duration>0&&setTimeout(()=>{u({type:"REMOVE_TOAST",payload:E})},R.duration),E},e[1]=l,e[2]=o,e[3]=f):f=e[3];const m=f;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=A=>{u({type:"REMOVE_TOAST",payload:A})},e[4]=g):g=e[4];const x=g;let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{u({type:"REMOVE_ALL_TOASTS"})},e[5]=y):y=e[5];const w=y;let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=(A,E)=>{u({type:"UPDATE_TOAST",payload:{id:A,updates:E}})},e[6]=h):h=e[6];const p=h;let b,S;e[7]!==i||e[8]!==d?(S=()=>{d.length>i&&d.slice(0,d.length-i).forEach(E=>{u({type:"REMOVE_TOAST",payload:E.id})})},b=[d,i],e[7]=i,e[8]=d,e[9]=b,e[10]=S):(b=e[9],S=e[10]),j.useEffect(S,b);let C;e[11]!==m||e[12]!==d?(C={toasts:d,addToast:m,removeToast:x,removeAllToasts:w,updateToast:p},e[11]=m,e[12]=d,e[13]=C):C=e[13];const v=C;let T;return e[14]!==t||e[15]!==v?(T=k.jsx(Iu.Provider,{value:v,children:t}),e[14]=t,e[15]=v,e[16]=T):T=e[16],T},Eu=()=>{const s=j.useContext(Iu);if(s===void 0)throw new Error("useToastContext must be used within a ToastProvider");return s},D2=s=>{const e=ae.c(25),{position:t,className:n,maxToasts:r,"data-testid":a}=s,o=t===void 0?"top-right":t,i=n===void 0?"":n,l=r===void 0?5:r,{toasts:c,removeToast:d}=Eu();let u,f,m,g;if(e[0]!==i||e[1]!==a||e[2]!==l||e[3]!==o||e[4]!==d||e[5]!==c){g=Symbol.for("react.early_return_sentinel");e:{let h;e[10]!==o?(h=A=>(A.position||o)===o,e[10]=o,e[11]=h):h=e[11];const p=c.filter(h).slice(-l);if(p.length===0){g=null;break e}let b;e[12]!==o?(b=T2(o),e[12]=o,e[13]=b):b=e[13];const S=b;let C;e[14]!==i||e[15]!==S?(C=["fixed z-50 flex flex-col gap-2 pointer-events-none",S,i].filter(Boolean),e[14]=i,e[15]=S,e[16]=C):C=e[16],u=C.join(" "),f=a;let T;e[17]!==d?(T=A=>k.jsx(Mu,{...A,onRemove:d,"data-testid":`toast-${A.id}`},A.id),e[17]=d,e[18]=T):T=e[18],m=p.map(T)}e[0]=i,e[1]=a,e[2]=l,e[3]=o,e[4]=d,e[5]=c,e[6]=u,e[7]=f,e[8]=m,e[9]=g}else u=e[6],f=e[7],m=e[8],g=e[9];if(g!==Symbol.for("react.early_return_sentinel"))return g;let x;e[19]!==u||e[20]!==f||e[21]!==m?(x=k.jsx("div",{className:u,"data-testid":f,children:m}),e[19]=u,e[20]=f,e[21]=m,e[22]=x):x=e[22];const y=x;let w;return e[23]!==y?(w=Qa.createPortal(y,document.body),e[23]=y,e[24]=w):w=e[24],w},B2=()=>{const s=ae.c(25),{addToast:e,removeToast:t,removeAllToasts:n,updateToast:r}=Eu();let a;s[0]!==e?(a=(C,v)=>e({type:"default",description:C,...v===void 0?{}:v}),s[0]=e,s[1]=a):a=s[1];const o=a;let i;s[2]!==e?(i=(C,v)=>e({type:"success",description:C,...v===void 0?{}:v}),s[2]=e,s[3]=i):i=s[3];const l=i;let c;s[4]!==e?(c=(C,v)=>{const T=v===void 0?{}:v;return e({type:"error",description:C,duration:T.duration??0,...T})},s[4]=e,s[5]=c):c=s[5];const d=c;let u;s[6]!==e?(u=(C,v)=>e({type:"warning",description:C,...v===void 0?{}:v}),s[6]=e,s[7]=u):u=s[7];const f=u;let m;s[8]!==e?(m=(C,v)=>e({type:"info",description:C,...v===void 0?{}:v}),s[8]=e,s[9]=m):m=s[9];const g=m;let x;s[10]!==t?(x=C=>{t(C)},s[10]=t,s[11]=x):x=s[11];const y=x;let w;s[12]!==n?(w=()=>{n()},s[12]=n,s[13]=w):w=s[13];const h=w;let p;s[14]!==r?(p=(C,v)=>{r(C,v)},s[14]=r,s[15]=p):p=s[15];const b=p;let S;return s[16]!==y||s[17]!==h||s[18]!==d||s[19]!==g||s[20]!==l||s[21]!==o||s[22]!==b||s[23]!==f?(S={toast:o,success:l,error:d,warning:f,info:g,dismiss:y,dismissAll:h,update:b},s[16]=y,s[17]=h,s[18]=d,s[19]=g,s[20]=l,s[21]=o,s[22]=b,s[23]=f,s[24]=S):S=s[24],S},L2=50,$2={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"}},scale:{initial:{opacity:0,scale:.85,transformOrigin:"center"},animate:{opacity:1,scale:1,transformOrigin:"center"},exit:{opacity:0,scale:.85,transformOrigin:"center"},transition:{type:"spring",stiffness:400,damping:25,duration:.15}},shift:{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{type:"spring",stiffness:500,damping:30}},bounce:{initial:{opacity:0,scale:.3,y:-20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:-10},transition:{type:"spring",stiffness:400,damping:12,bounce:.6}},rotate:{initial:{opacity:0,scale:.8,rotate:-10},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:10},transition:{type:"spring",stiffness:300,damping:20}},slide:{initial:{opacity:0,x:-20,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:20,scale:.95},transition:{type:"spring",stiffness:400,damping:25}},zoom:{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.3},transition:{type:"spring",stiffness:600,damping:20}},flip:{initial:{opacity:0,rotateX:-90,scale:.9},animate:{opacity:1,rotateX:0,scale:1},exit:{opacity:0,rotateX:90,scale:.9},transition:{type:"spring",stiffness:300,damping:25}},elastic:{initial:{opacity:0,scale:.6,y:-30},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:-15},transition:{type:"spring",stiffness:200,damping:8,bounce:.8}},none:{initial:{opacity:1},animate:{opacity:1},exit:{opacity:1},transition:{duration:0}}},O2=ke({base:["relative","px-2","py-1","rounded-md","text-sm","font-medium","shadow-lg","border","pointer-events-auto","max-w-xs","break-words","z-50"],variants:{size:{xs:"px-1.5 py-0.5 text-xs max-w-36",sm:"px-2 py-1 text-sm max-w-48",md:"px-3 py-1.5 text-sm max-w-xs",lg:"px-4 py-2 text-base max-w-sm"},variant:{dark:["bg-gray-900","text-white","border-gray-700","shadow-lg"],light:["bg-white","text-gray-900","border-gray-200","shadow-lg"],primary:["bg-blue-600","text-white","border-blue-500","shadow-lg"],success:["bg-green-600","text-white","border-green-500","shadow-lg"],warning:["bg-yellow-500","text-yellow-900","border-yellow-400","shadow-lg"],error:["bg-red-600","text-white","border-red-500","shadow-lg"]}},defaultVariants:{size:"md",variant:"dark"}}),z2=ke({base:["absolute","border-solid","border-transparent"],variants:{placement:{top:"bottom-full left-1/2 -translate-x-1/2 border-b-6","top-start":"bottom-full left-2 border-b-6","top-end":"bottom-full right-2 border-b-6",bottom:"top-full left-1/2 -translate-x-1/2 border-t-6","bottom-start":"top-full left-2 border-t-6","bottom-end":"top-full right-2 border-t-6",left:"right-full top-1/2 -translate-y-1/2 border-r-6","left-start":"right-full top-2 border-r-6","left-end":"right-full bottom-2 border-r-6",right:"left-full top-1/2 -translate-y-1/2 border-l-6","right-start":"left-full top-2 border-l-6","right-end":"left-full bottom-2 border-l-6"},variant:{dark:"",light:"",primary:"",success:"",warning:"",error:""},size:{xs:"border-[4px]",sm:"border-[5px]",md:"border-[6px]",lg:"border-[7px]"}},compoundVariants:[{placement:["top","top-start","top-end"],variant:"dark",className:"border-b-gray-900"},{placement:["top","top-start","top-end"],variant:"light",className:"border-b-white"},{placement:["top","top-start","top-end"],variant:"primary",className:"border-b-blue-600"},{placement:["top","top-start","top-end"],variant:"success",className:"border-b-green-600"},{placement:["top","top-start","top-end"],variant:"warning",className:"border-b-yellow-500"},{placement:["top","top-start","top-end"],variant:"error",className:"border-b-red-600"},{placement:["bottom","bottom-start","bottom-end"],variant:"dark",className:"border-t-gray-900"},{placement:["bottom","bottom-start","bottom-end"],variant:"light",className:"border-t-white"},{placement:["bottom","bottom-start","bottom-end"],variant:"primary",className:"border-t-blue-600"},{placement:["bottom","bottom-start","bottom-end"],variant:"success",className:"border-t-green-600"},{placement:["bottom","bottom-start","bottom-end"],variant:"warning",className:"border-t-yellow-500"},{placement:["bottom","bottom-start","bottom-end"],variant:"error",className:"border-t-red-600"},{placement:["left","left-start","left-end"],variant:"dark",className:"border-r-gray-900"},{placement:["left","left-start","left-end"],variant:"light",className:"border-r-white"},{placement:["left","left-start","left-end"],variant:"primary",className:"border-r-blue-600"},{placement:["left","left-start","left-end"],variant:"success",className:"border-r-green-600"},{placement:["left","left-start","left-end"],variant:"warning",className:"border-r-yellow-500"},{placement:["left","left-start","left-end"],variant:"error",className:"border-r-red-600"},{placement:["right","right-start","right-end"],variant:"dark",className:"border-l-gray-900"},{placement:["right","right-start","right-end"],variant:"light",className:"border-l-white"},{placement:["right","right-start","right-end"],variant:"primary",className:"border-l-blue-600"},{placement:["right","right-start","right-end"],variant:"success",className:"border-l-green-600"},{placement:["right","right-start","right-end"],variant:"warning",className:"border-l-yellow-500"},{placement:["right","right-start","right-end"],variant:"error",className:"border-l-red-600"}],defaultVariants:{placement:"top",variant:"dark",size:"md"}}),_2=ke({base:["fixed","pointer-events-none","z-50"],variants:{visible:{true:"pointer-events-auto",false:"pointer-events-none"}},defaultVariants:{visible:!1}}),Ul=ke({base:["inline-block","cursor-help"],variants:{active:{true:"relative",false:""},disabled:{true:"cursor-not-allowed opacity-50",false:""}},defaultVariants:{active:!1,disabled:!1}}),F2=(s,e,t)=>{let n={...$2[s]};if((s==="shift"||s==="slide"||s==="bounce")&&e){const r=G2(e),a=U2[s];a&&a[r]&&(n={...a[r]})}return n},W2=s=>Hl[s]||Hl.fade,G2=s=>s.startsWith("top")?"top":s.startsWith("bottom")?"bottom":s.startsWith("left")?"left":s.startsWith("right")?"right":"top",U2={shift:{top:{initial:{opacity:0,y:8,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:8,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"top-start":{initial:{opacity:0,y:8,x:-4,scale:.98},animate:{opacity:1,y:0,x:0,scale:1},exit:{opacity:0,y:8,x:-4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"top-end":{initial:{opacity:0,y:8,x:4,scale:.98},animate:{opacity:1,y:0,x:0,scale:1},exit:{opacity:0,y:8,x:4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},bottom:{initial:{opacity:0,y:-8,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-8,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"bottom-start":{initial:{opacity:0,y:-8,x:-4,scale:.98},animate:{opacity:1,y:0,x:0,scale:1},exit:{opacity:0,y:-8,x:-4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"bottom-end":{initial:{opacity:0,y:-8,x:4,scale:.98},animate:{opacity:1,y:0,x:0,scale:1},exit:{opacity:0,y:-8,x:4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},left:{initial:{opacity:0,x:8,scale:.98},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:8,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"left-start":{initial:{opacity:0,x:8,y:-4,scale:.98},animate:{opacity:1,x:0,y:0,scale:1},exit:{opacity:0,x:8,y:-4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"left-end":{initial:{opacity:0,x:8,y:4,scale:.98},animate:{opacity:1,x:0,y:0,scale:1},exit:{opacity:0,x:8,y:4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},right:{initial:{opacity:0,x:-8,scale:.98},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-8,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"right-start":{initial:{opacity:0,x:-8,y:-4,scale:.98},animate:{opacity:1,x:0,y:0,scale:1},exit:{opacity:0,x:-8,y:-4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"right-end":{initial:{opacity:0,x:-8,y:4,scale:.98},animate:{opacity:1,x:0,y:0,scale:1},exit:{opacity:0,x:-8,y:4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}}},slide:{top:{initial:{opacity:0,y:20,x:-10},animate:{opacity:1,y:0,x:0},exit:{opacity:0,y:20,x:10},transition:{type:"spring",stiffness:300,damping:20}},bottom:{initial:{opacity:0,y:-20,x:-10},animate:{opacity:1,y:0,x:0},exit:{opacity:0,y:-20,x:10},transition:{type:"spring",stiffness:300,damping:20}},left:{initial:{opacity:0,x:20,y:-10},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:20,y:10},transition:{type:"spring",stiffness:300,damping:20}},right:{initial:{opacity:0,x:-20,y:-10},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:-20,y:10},transition:{type:"spring",stiffness:300,damping:20}}},bounce:{top:{initial:{opacity:0,y:30,scale:.6},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:15,scale:.8},transition:{type:"spring",stiffness:400,damping:12,bounce:.7}},bottom:{initial:{opacity:0,y:-30,scale:.6},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-15,scale:.8},transition:{type:"spring",stiffness:400,damping:12,bounce:.7}},left:{initial:{opacity:0,x:30,scale:.6},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:15,scale:.8},transition:{type:"spring",stiffness:400,damping:12,bounce:.7}},right:{initial:{opacity:0,x:-30,scale:.6},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-15,scale:.8},transition:{type:"spring",stiffness:400,damping:12,bounce:.7}}}},Hl={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,delay:.05}},scale:{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:{type:"spring",stiffness:600,damping:25,delay:.05}},shift:{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{type:"spring",stiffness:500,damping:30,delay:.05}},bounce:{initial:{opacity:0,scale:.3},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6},transition:{type:"spring",stiffness:400,damping:15,bounce:.5,delay:.1}},rotate:{initial:{opacity:0,scale:.5,rotate:-45},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.5,rotate:45},transition:{type:"spring",stiffness:300,damping:20,delay:.05}},slide:{initial:{opacity:0,scale:.7},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.7},transition:{type:"spring",stiffness:400,damping:25,delay:.05}},zoom:{initial:{opacity:0,scale:.2},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.2},transition:{type:"spring",stiffness:700,damping:20,delay:.05}},flip:{initial:{opacity:0,rotateX:-90,scale:.8},animate:{opacity:1,rotateX:0,scale:1},exit:{opacity:0,rotateX:90,scale:.8},transition:{type:"spring",stiffness:300,damping:25,delay:.05}},elastic:{initial:{opacity:0,scale:.4},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.7},transition:{type:"spring",stiffness:200,damping:8,bounce:.8,delay:.1}},none:{initial:{opacity:1},animate:{opacity:1},exit:{opacity:1},transition:{duration:0}}},H2={enter:.15},Ru=700,Du=300,Bu=!1,Lu=j.createContext({delayDuration:Ru,skipDelayDuration:Du,disableHoverableContent:Bu,isPointerInTransit:!1,setIsPointerInTransit:()=>{}}),K2=()=>j.useContext(Lu),X2=s=>{const e=ae.c(8),{children:t,delayDuration:n,skipDelayDuration:r,disableHoverableContent:a}=s,o=n===void 0?Ru:n,i=r===void 0?Du:r,l=a===void 0?Bu:a,[c,d]=j.useState(!1);let u;e[0]!==o||e[1]!==l||e[2]!==c||e[3]!==i?(u={delayDuration:o,skipDelayDuration:i,disableHoverableContent:l,isPointerInTransit:c,setIsPointerInTransit:d},e[0]=o,e[1]=l,e[2]=c,e[3]=i,e[4]=u):u=e[4];const f=u;let m;return e[5]!==t||e[6]!==f?(m=k.jsx(Lu.Provider,{value:f,children:t}),e[5]=t,e[6]=f,e[7]=m):m=e[7],m},Kl=(s,e,t,n={mainAxis:8,crossAxis:0})=>{const r=s.getBoundingClientRect(),a=e.getBoundingClientRect(),o={width:window.innerWidth,height:window.innerHeight};let i=0,l=0;switch(t.split("-")[0]){case"top":i=r.left+r.width/2-a.width/2,l=r.top-a.height-n.mainAxis;break;case"bottom":i=r.left+r.width/2-a.width/2,l=r.bottom+n.mainAxis;break;case"left":i=r.left-a.width-n.mainAxis,l=r.top+r.height/2-a.height/2;break;case"right":i=r.right+n.mainAxis,l=r.top+r.height/2-a.height/2;break}t.includes("-start")?t.startsWith("top")||t.startsWith("bottom")?i=r.left+n.crossAxis:l=r.top+n.crossAxis:t.includes("-end")&&(t.startsWith("top")||t.startsWith("bottom")?i=r.right-a.width-n.crossAxis:l=r.bottom-a.height-n.crossAxis);let c=t;return i<8?i=8:i+a.width>o.width-8&&(i=o.width-a.width-8),l<8?t.startsWith("top")&&r.bottom+a.height+n.mainAxis<o.height?(c=t.replace("top","bottom"),l=r.bottom+n.mainAxis):l=8:l+a.height>o.height-8&&(t.startsWith("bottom")&&r.top-a.height-n.mainAxis>0?(c=t.replace("bottom","top"),l=r.top-a.height-n.mainAxis):l=o.height-a.height-8),{x:i,y:l,placement:c}},Y2=s=>{const{placement:e="top",trigger:t="hover",disabled:n=!1,open:r,defaultOpen:a=!1,onOpenChange:o,delay:i,offset:l={mainAxis:8,crossAxis:0}}=s,c=K2(),d={show:i?.show??(t==="hover"?c?.delayDuration??700:0),hide:i?.hide??(t==="hover"?150:0)},u={mainAxis:l?.mainAxis??8,crossAxis:l?.crossAxis??0},[f,m]=j.useState(a),[g,x]=j.useState(null),[y,w]=j.useState(null),[h,p]=j.useState({x:0,y:0,placement:e}),b=j.useRef(void 0),S=j.useRef(void 0),C=j.useId(),v=r!==void 0,T=v?r:f;j.useEffect(()=>{if(g&&y&&T){const D=Kl(g,y,e,u);p(D)}},[g,y,T,e,u]),j.useEffect(()=>{if(!T||!g||!y)return;const D=()=>{const V=Kl(g,y,e,u);p(V)};return window.addEventListener("resize",D),window.addEventListener("scroll",D,!0),()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",D,!0)}},[T,g,y,e,l]);const A=j.useCallback(()=>{if(n)return;S.current&&(window.clearTimeout(S.current),S.current=void 0);const D=d.show;D>0?b.current=window.setTimeout(()=>{v?o?.(!0):m(!0)},D):v?o?.(!0):m(!0)},[n,d.show,v,o]),E=j.useCallback(()=>{b.current&&(window.clearTimeout(b.current),b.current=void 0);const D=d.hide;D>0?S.current=window.setTimeout(()=>{v?o?.(!1):m(!1)},D):v?o?.(!1):m(!1)},[d.hide,v,o]),R=j.useCallback(()=>{T?E():A()},[T,A,E]);j.useEffect(()=>()=>{b.current&&window.clearTimeout(b.current),S.current&&window.clearTimeout(S.current)},[]);const L=j.useCallback(()=>{const D={"aria-describedby":T?C:void 0};if(n)return D;switch(t){case"hover":return{...D,onMouseEnter:A,onMouseLeave:E};case"click":return{...D,onClick:R};case"focus":return{...D,onFocus:A,onBlur:E};case"manual":return D;default:return D}},[n,t,C,T,A,E,R]);return{isOpen:T,referenceElement:g,setReferenceElement:x,tooltipElement:y,setTooltipElement:w,position:h,id:C,getTriggerProps:L,openTooltip:A,closeTooltip:E,toggleTooltip:R}},q2=s=>{const e=ae.c(13),{variant:t,size:n,placement:r,animation:a,className:o}=s,i=t===void 0?"dark":t,l=n===void 0?"md":n,c=a===void 0?"fade":a;let d;e[0]!==c?(d=W2(c),e[0]=c,e[1]=d):d=e[1];const u=d;let f;e[2]!==o||e[3]!==r||e[4]!==l||e[5]!==i?(f=z2({placement:r,variant:i,size:l,className:o}),e[2]=o,e[3]=r,e[4]=l,e[5]=i,e[6]=f):f=e[6];let m;return e[7]!==u.animate||e[8]!==u.exit||e[9]!==u.initial||e[10]!==u.transition||e[11]!==f?(m=k.jsx(pe.div,{className:f,initial:u.initial,animate:u.animate,exit:u.exit,transition:u.transition}),e[7]=u.animate,e[8]=u.exit,e[9]=u.initial,e[10]=u.transition,e[11]=f,e[12]=m):m=e[12],m},Z2=s=>{const e=ae.c(22),{content:t,variant:n,size:r,animation:a,arrow:o,className:i,style:l,id:c,isOpen:d,position:u,onRef:f}=s,m=n===void 0?"dark":n,g=r===void 0?"md":r,x=a===void 0?"fade":a;let y;e[0]!==o?(y=o===void 0?{enabled:!0}:o,e[0]=o,e[1]=y):y=e[1];const w=y;let h;e[2]!==x||e[3]!==u.placement?(h=()=>F2(x,u.placement),e[2]=x,e[3]=u.placement,e[4]=h):h=e[4];const p=h;let b;e[5]!==x||e[6]!==w?.enabled||e[7]!==i||e[8]!==t||e[9]!==p||e[10]!==c||e[11]!==d||e[12]!==f||e[13]!==u.placement||e[14]!==u.x||e[15]!==u.y||e[16]!==g||e[17]!==l||e[18]!==m?(b=d&&k.jsxs(pe.div,{ref:f,id:c,role:"tooltip",className:O2({size:g,variant:m,className:i}),style:{position:"fixed",left:u.x,top:u.y,...l},initial:p().initial,animate:p().animate,exit:p().exit,transition:{duration:H2.enter,ease:"easeOut"},children:[t,w?.enabled&&k.jsx(q2,{variant:m,size:g,placement:u.placement,animation:x})]}),e[5]=x,e[6]=w?.enabled,e[7]=i,e[8]=t,e[9]=p,e[10]=c,e[11]=d,e[12]=f,e[13]=u.placement,e[14]=u.x,e[15]=u.y,e[16]=g,e[17]=l,e[18]=m,e[19]=b):b=e[19];let S;return e[20]!==b?(S=k.jsx(bt,{children:b}),e[20]=b,e[21]=S):S=e[21],S},J2=s=>{const e=ae.c(32),{children:t,content:n,disabled:r,portal:a,portalContainer:o,asChild:i,className:l,style:c,variant:d,size:u,animation:f,arrow:m,zIndex:g,"aria-label":x}=s,y=r===void 0?!1:r,w=a===void 0?!0:a,h=i===void 0?!1:i,p=d===void 0?"dark":d,b=u===void 0?"md":u,S=f===void 0?"fade":f;let C;e[0]!==m?(C=m===void 0?{enabled:!0}:m,e[0]=m,e[1]=C):C=e[1];const v=C,T=g===void 0?L2:g,{isOpen:A,setReferenceElement:E,setTooltipElement:R,position:L,id:D,getTriggerProps:V}=Y2(s);let P;e[2]!==x||e[3]!==h||e[4]!==t||e[5]!==l||e[6]!==y||e[7]!==V||e[8]!==A||e[9]!==E||e[10]!==c?(P=()=>{const O=V();if(h&&j.isValidElement(t)){const z=t.props,F={...z,...O,ref:W=>{E(W),typeof z.ref=="function"?z.ref(W):z.ref?.current!==void 0&&(z.ref.current=W)},className:Ul({active:A,disabled:y,className:z.className})};return j.createElement(t.type,F)}return k.jsx("span",{ref:E,className:Ul({active:A,disabled:y,className:l}),style:c,"aria-label":x,...O,children:t})},e[2]=x,e[3]=h,e[4]=t,e[5]=l,e[6]=y,e[7]=V,e[8]=A,e[9]=E,e[10]=c,e[11]=P):P=e[11];const I=P;let M;e[12]!==S||e[13]!==v||e[14]!==n||e[15]!==D||e[16]!==A||e[17]!==w||e[18]!==o||e[19]!==L||e[20]!==R||e[21]!==b||e[22]!==p||e[23]!==T?(M=()=>{const O=k.jsx("div",{className:_2({visible:A}),style:{zIndex:T},children:k.jsx(Z2,{content:n,variant:p,size:b,animation:S,arrow:v,id:D,isOpen:A,position:L,onRef:R})});if(w){const z=o||document.body;return Qa.createPortal(O,z)}return O},e[12]=S,e[13]=v,e[14]=n,e[15]=D,e[16]=A,e[17]=w,e[18]=o,e[19]=L,e[20]=R,e[21]=b,e[22]=p,e[23]=T,e[24]=M):M=e[24];const N=M;let B;e[25]!==I?(B=I(),e[25]=I,e[26]=B):B=e[26];let $;e[27]!==N?($=N(),e[27]=N,e[28]=$):$=e[28];let _;return e[29]!==B||e[30]!==$?(_=k.jsxs(k.Fragment,{children:[B,$]}),e[29]=B,e[30]=$,e[31]=_):_=e[31],_},Q2=(s=!1)=>{const e=["flex items-center gap-3","max-w-fit"];return s&&e.push("cursor-pointer","rounded-lg","px-2 py-1","transition-all duration-200 ease-in-out","hover:bg-gray-100 dark:hover:bg-gray-800","focus:outline-none","focus:ring-2 focus:ring-blue-500 focus:ring-offset-2","data-[focus-visible]:ring-2 data-[focus-visible]:ring-blue-500"),e.join(" ")},ev=()=>["flex flex-col","justify-center","min-w-0"].join(" "),tv=()=>["text-sm font-medium","text-gray-900 dark:text-white","truncate"].join(" "),sv=()=>["text-xs","text-gray-500 dark:text-gray-400","truncate"].join(" "),nv=(s="md")=>({sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-12 h-12 text-base"})[s],rv=(s="default")=>({default:"bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-gray-200",primary:"bg-blue-500 text-white",secondary:"bg-purple-500 text-white",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-white",danger:"bg-red-500 text-white"})[s],av=(s="md",e="default",t=!1,n=!1)=>{const r=["inline-flex items-center justify-center","overflow-hidden","select-none","flex-shrink-0",nv(s),rv(e)];return t?r.push("rounded-md"):r.push("rounded-full"),n&&r.push("opacity-50 cursor-not-allowed"),r.join(" ")},ov=s=>s.split(" ").map(e=>e.charAt(0)).join("").toUpperCase().slice(0,2),iv=()=>["w-full h-full","object-cover","rounded-inherit"].join(" "),$u=j.forwardRef((s,e)=>{const t=ae.c(33);let n,r,a,o,i,l,c,d,u,f;t[0]!==s?({src:o,alt:n,name:i,size:l,className:c,isSquared:d,color:u,isDisabled:f,fallback:r,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=i,t[6]=l,t[7]=c,t[8]=d,t[9]=u,t[10]=f):(n=t[1],r=t[2],a=t[3],o=t[4],i=t[5],l=t[6],c=t[7],d=t[8],u=t[9],f=t[10]);const m=i===void 0?"":i,g=l===void 0?"md":l,x=c===void 0?"":c,y=d===void 0?!1:d,w=u===void 0?"default":u,h=f===void 0?!1:f,[p,b]=j.useState(!1);let S;t[11]!==w||t[12]!==h||t[13]!==y||t[14]!==g?(S=av(g,w,y,h),t[11]=w,t[12]=h,t[13]=y,t[14]=g,t[15]=S):S=t[15];const C=S;let v;t[16]!==C||t[17]!==x?(v=[C,x].filter(Boolean),t[16]=C,t[17]=x,t[18]=v):v=t[18];const T=v.join(" ");let A;t[19]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{b(!0)},t[19]=A):A=t[19];const E=A;let R;t[20]!==n||t[21]!==r||t[22]!==p||t[23]!==m||t[24]!==o?(R=()=>r||(o&&!p?k.jsx("img",{src:o,alt:n||m,className:iv(),onError:E}):m?k.jsx("span",{children:ov(m)}):k.jsx("svg",{className:"w-full h-full p-1",fill:"currentColor",viewBox:"0 0 20 20",children:k.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})),t[20]=n,t[21]=r,t[22]=p,t[23]=m,t[24]=o,t[25]=R):R=t[25];const L=R;let D;t[26]!==L?(D=L(),t[26]=L,t[27]=D):D=t[27];let V;return t[28]!==T||t[29]!==a||t[30]!==e||t[31]!==D?(V=k.jsx("div",{ref:e,className:T,...a,children:D}),t[28]=T,t[29]=a,t[30]=e,t[31]=D,t[32]=V):V=t[32],V});$u.displayName="Avatar";const Ou=j.forwardRef((s,e)=>{const t=ae.c(55);let n,r,a,o,i,l,c,d,u;t[0]!==s?({name:o,description:a,isFocusable:c,avatarProps:d,className:u,classNames:n,onClick:i,"data-testid":r,...l}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=i,t[6]=l,t[7]=c,t[8]=d,t[9]=u):(n=t[1],r=t[2],a=t[3],o=t[4],i=t[5],l=t[6],c=t[7],d=t[8],u=t[9]);const f=c===void 0?!1:c;let m;t[10]!==d?(m=d===void 0?{}:d,t[10]=d,t[11]=m):m=t[11];const g=m,x=u===void 0?"":u;let y;t[12]!==f?(y=Q2(f),t[12]=f,t[13]=y):y=t[13];const w=y,h=n?.base;let p;t[14]!==w||t[15]!==x||t[16]!==h?(p=[w,h,x].filter(Boolean),t[14]=w,t[15]=x,t[16]=h,t[17]=p):p=t[17];const b=p.join(" ");let S;t[18]===Symbol.for("react.memo_cache_sentinel")?(S=ev(),t[18]=S):S=t[18];const C=S,v=n?.wrapper;let T;t[19]!==v?(T=[C,v].filter(Boolean),t[19]=v,t[20]=T):T=t[20];const A=T.join(" ");let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=tv(),t[21]=E):E=t[21];const R=E,L=n?.name;let D;t[22]!==L?(D=[R,L].filter(Boolean),t[22]=L,t[23]=D):D=t[23];const V=D.join(" ");let P;t[24]===Symbol.for("react.memo_cache_sentinel")?(P=sv(),t[24]=P):P=t[24];const I=P,M=n?.description;let N;t[25]!==M?(N=[I,M].filter(Boolean),t[25]=M,t[26]=N):N=t[26];const B=N.join(" ");let $;t[27]!==f||t[28]!==i?($=()=>{f&&i&&i()},t[27]=f,t[28]=i,t[29]=$):$=t[29];const _=$;let O;t[30]!==f||t[31]!==i?(O=Z=>{f&&(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),i?.())},t[30]=f,t[31]=i,t[32]=O):O=t[32];const z=O,F=f?0:void 0,W=f?"button":void 0,H=g.name||o,K=r?`${r}-avatar`:void 0;let G;t[33]!==g||t[34]!==H||t[35]!==K?(G=k.jsx($u,{...g,name:H,"data-testid":K}),t[33]=g,t[34]=H,t[35]=K,t[36]=G):G=t[36];let X;t[37]!==B||t[38]!==V||t[39]!==A||t[40]!==r||t[41]!==a||t[42]!==o?(X=(o||a)&&k.jsxs("div",{className:A,children:[o&&k.jsx("span",{className:V,"data-testid":r?`${r}-name`:void 0,children:o}),a&&k.jsx("span",{className:B,"data-testid":r?`${r}-description`:void 0,children:a})]}),t[37]=B,t[38]=V,t[39]=A,t[40]=r,t[41]=a,t[42]=o,t[43]=X):X=t[43];let U;return t[44]!==b||t[45]!==r||t[46]!==_||t[47]!==z||t[48]!==l||t[49]!==e||t[50]!==F||t[51]!==W||t[52]!==G||t[53]!==X?(U=k.jsxs("div",{ref:e,className:b,onClick:_,onKeyDown:z,tabIndex:F,role:W,"data-testid":r,...l,children:[G,X]}),t[44]=b,t[45]=r,t[46]=_,t[47]=z,t[48]=l,t[49]=e,t[50]=F,t[51]=W,t[52]=G,t[53]=X,t[54]=U):U=t[54],U});Ou.displayName="User";const lv=j.createContext(void 0),zu=()=>{const s=j.useContext(lv);if(!s)throw new Error("useSidebar must be used within a SidebarProvider");return s},cv=s=>{const e=ae.c(44),{children:t,className:n,width:r,position:a,variant:o,backdrop:i,closeOnBackdropClick:l,closeOnEscape:c}=s,d=n===void 0?"":n,u=r===void 0?280:r,f=a===void 0?"left":a,m=o===void 0?"temporary":o,g=i===void 0?!0:i,x=l===void 0?!0:l,y=c===void 0?!0:c,{isOpen:w,isMobile:h,close:p}=zu();let b,S;e[0]!==p||e[1]!==y||e[2]!==w?(b=()=>{if(!y||!w)return;const U=Z=>{Z.key==="Escape"&&p()};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},S=[y,w,p],e[0]=p,e[1]=y,e[2]=w,e[3]=b,e[4]=S):(b=e[3],S=e[4]),j.useEffect(b,S);let C;e[5]!==p||e[6]!==x?(C=()=>{x&&p()},e[5]=p,e[6]=x,e[7]=C):C=e[7];const v=C;let T;e[8]===Symbol.for("react.memo_cache_sentinel")?(T={x:0,transition:{type:"spring",stiffness:300,damping:30}},e[8]=T):T=e[8];const A=f==="left"?-u:u;let E;e[9]===Symbol.for("react.memo_cache_sentinel")?(E={type:"spring",stiffness:300,damping:30},e[9]=E):E=e[9];let R;e[10]!==A?(R={open:T,closed:{x:A,transition:E}},e[10]=A,e[11]=R):R=e[11];const L=R;let D;e[12]===Symbol.for("react.memo_cache_sentinel")?(D={opacity:1,transition:{duration:.2}},e[12]=D):D=e[12];let V;e[13]===Symbol.for("react.memo_cache_sentinel")?(V={open:D,closed:{opacity:0,transition:{duration:.2}}},e[13]=V):V=e[13];const P=V;let I;e[14]!==h||e[15]!==w||e[16]!==m?(I=()=>m==="permanent"||m==="persistent"&&!h?!0:w,e[14]=h,e[15]=w,e[16]=m,e[17]=I):I=e[17];const M=I;let N;e[18]!==g||e[19]!==h||e[20]!==w||e[21]!==m?(N=()=>g&&w&&(h||m==="temporary"),e[18]=g,e[19]=h,e[20]=w,e[21]=m,e[22]=N):N=e[22];const B=N,$=f==="left"?"left-0 border-r":"right-0 border-l",_=m==="permanent"&&"lg:relative lg:translate-x-0",O=m==="persistent"&&!h&&"md:relative md:translate-x-0";let z;e[23]!==d||e[24]!==$||e[25]!==_||e[26]!==O?(z=["fixed top-0 z-40 h-full","bg-white dark:bg-gray-800","border-gray-200 dark:border-gray-700","shadow-lg dark:shadow-2xl",$,_,O,d].filter(Boolean),e[23]=d,e[24]=$,e[25]=_,e[26]=O,e[27]=z):z=e[27];const F=z.join(" ");let W;e[28]!==v||e[29]!==B?(W=B()&&k.jsx(pe.div,{initial:"closed",animate:"open",exit:"closed",variants:P,className:"fixed inset-0 z-30 bg-black/50 backdrop-blur-sm",onClick:v,role:"button",tabIndex:-1,"aria-label":"Close sidebar"}),e[28]=v,e[29]=B,e[30]=W):W=e[30];let H;e[31]!==W?(H=k.jsx(bt,{children:W}),e[31]=W,e[32]=H):H=e[32];let K;e[33]!==t||e[34]!==M||e[35]!==F||e[36]!==L||e[37]!==u?(K=M()&&k.jsx(pe.aside,{initial:"closed",animate:"open",exit:"closed",variants:L,className:F,style:{width:typeof u=="number"?`${u}px`:u},role:"complementary","aria-label":"Sidebar navigation",children:k.jsx("div",{className:"flex flex-col h-full",children:t})}),e[33]=t,e[34]=M,e[35]=F,e[36]=L,e[37]=u,e[38]=K):K=e[38];let G;e[39]!==K?(G=k.jsx(bt,{mode:"wait",children:K}),e[39]=K,e[40]=G):G=e[40];let X;return e[41]!==H||e[42]!==G?(X=k.jsxs(k.Fragment,{children:[H,G]}),e[41]=H,e[42]=G,e[43]=X):X=e[43],X},dv=s=>{const e=ae.c(11),{children:t,className:n,showCloseButton:r,onClose:a}=s,o=n===void 0?"":n,i=r===void 0?!1:r;let l;e[0]!==o?(l=["flex items-center justify-between","px-4 py-3","border-b border-gray-200 dark:border-gray-700","bg-gray-50 dark:bg-gray-900",o].filter(Boolean),e[0]=o,e[1]=l):l=e[1];const c=l.join(" ");let d;e[2]!==t?(d=k.jsx("div",{className:"flex-1",children:t}),e[2]=t,e[3]=d):d=e[3];let u;e[4]!==a||e[5]!==i?(u=i&&k.jsx("button",{onClick:a,className:"ml-2 p-1 rounded-md hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors","aria-label":"Close sidebar",children:k.jsx("svg",{className:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e[4]=a,e[5]=i,e[6]=u):u=e[6];let f;return e[7]!==c||e[8]!==d||e[9]!==u?(f=k.jsxs("div",{className:c,children:[d,u]}),e[7]=c,e[8]=d,e[9]=u,e[10]=f):f=e[10],f},uv=s=>{const e=ae.c(5),{children:t,className:n}=s,r=n===void 0?"":n;let a;e[0]!==r?(a=["flex-1 overflow-y-auto","px-4 py-2","scrollbar-thin scrollbar-thumb-gray-300 dark:scrollbar-thumb-gray-600","scrollbar-track-gray-100 dark:scrollbar-track-gray-800",r].filter(Boolean),e[0]=r,e[1]=a):a=e[1];const o=a.join(" ");let i;return e[2]!==t||e[3]!==o?(i=k.jsx("div",{className:o,children:t}),e[2]=t,e[3]=o,e[4]=i):i=e[4],i},fv=s=>{const e=ae.c(5),{children:t,className:n}=s,r=n===void 0?"":n;let a;e[0]!==r?(a=["flex items-center","px-4 py-3","border-t border-gray-200 dark:border-gray-700","bg-gray-50 dark:bg-gray-900",r].filter(Boolean),e[0]=r,e[1]=a):a=e[1];const o=a.join(" ");let i;return e[2]!==t||e[3]!==o?(i=k.jsx("div",{className:o,children:t}),e[2]=t,e[3]=o,e[4]=i):i=e[4],i},mv=s=>{const e=ae.c(33),{children:t,icon:n,isActive:r,href:a,to:o,onClick:i,className:l,disabled:c}=s,d=r===void 0?!1:r,u=l===void 0?"":l,f=c===void 0?!1:c,m=o||a;let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=["flex items-center gap-3","px-3 py-2 mx-2 my-1","rounded-lg","text-sm font-medium","transition-colors duration-200","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1","dark:focus:ring-offset-gray-800"],e[0]=g):g=e[0];const x=g;let y;e[1]!==f||e[2]!==d?(y=f?["text-gray-400 dark:text-gray-600","cursor-not-allowed"]:d?["bg-blue-100 dark:bg-blue-900/30","text-blue-900 dark:text-blue-100","border-l-4 border-blue-500","pl-2 ml-2"]:["text-gray-700 dark:text-gray-300","hover:bg-gray-100 dark:hover:bg-gray-700","hover:text-gray-900 dark:hover:text-white"],e[1]=f,e[2]=d,e[3]=y):y=e[3];const w=y;let h;e[4]!==u||e[5]!==w?(h=[...x,...w,u].filter(Boolean),e[4]=u,e[5]=w,e[6]=h):h=e[6];const p=h.join(" ");let b;e[7]!==f||e[8]!==n?(b=n&&k.jsx("span",{className:`flex-shrink-0 ${f?"opacity-50":""}`,children:n}),e[7]=f,e[8]=n,e[9]=b):b=e[9];let S;e[10]!==t?(S=k.jsx("span",{className:"flex-1 truncate",children:t}),e[10]=t,e[11]=S):S=e[11];let C;e[12]!==b||e[13]!==S?(C=k.jsxs(k.Fragment,{children:[b,S]}),e[12]=b,e[13]=S,e[14]=C):C=e[14];const v=C,T=f?void 0:i,A=m?"link":"button";let E;e[15]!==f||e[16]!==p||e[17]!==T||e[18]!==A?(E={className:p,onClick:T,"aria-disabled":f,role:A},e[15]=f,e[16]=p,e[17]=T,e[18]=A,e[19]=E):E=e[19];const R=E;if(m&&!f){if(o){let D;return e[20]!==v||e[21]!==p||e[22]!==i||e[23]!==o?(D=k.jsx(fr,{to:o,className:p,onClick:i,children:v}),e[20]=v,e[21]=p,e[22]=i,e[23]=o,e[24]=D):D=e[24],D}else if(a){let D;return e[25]!==R||e[26]!==v||e[27]!==a?(D=k.jsx("a",{href:a,...R,children:v}),e[25]=R,e[26]=v,e[27]=a,e[28]=D):D=e[28],D}}let L;return e[29]!==R||e[30]!==v||e[31]!==f?(L=k.jsx("button",{type:"button",...R,disabled:f,children:v}),e[29]=R,e[30]=v,e[31]=f,e[32]=L):L=e[32],L},hv=s=>{const e=ae.c(11),{children:t,className:n,"aria-label":r}=s,a=n===void 0?"":n,o=r===void 0?"Toggle sidebar":r,{isOpen:i,toggle:l}=zu();let c;e[0]!==a?(c=["inline-flex items-center justify-center","w-10 h-10","rounded-md","text-gray-500 dark:text-gray-400","hover:bg-gray-100 dark:hover:bg-gray-700","hover:text-gray-900 dark:hover:text-white","focus:outline-none focus:ring-2 focus:ring-blue-500","transition-colors duration-200",a].filter(Boolean),e[0]=a,e[1]=c):c=e[1];const d=c.join(" ");let u;e[2]!==t||e[3]!==i?(u=t||k.jsx(pe.div,{animate:{rotate:i?180:0},transition:{duration:.2},children:k.jsx(pv,{})}),e[2]=t,e[3]=i,e[4]=u):u=e[4];let f;return e[5]!==o||e[6]!==i||e[7]!==u||e[8]!==l||e[9]!==d?(f=k.jsx("button",{onClick:l,className:d,"aria-label":o,"aria-expanded":i,children:u}),e[5]=o,e[6]=i,e[7]=u,e[8]=l,e[9]=d,e[10]=f):f=e[10],f},pv=()=>{const s=ae.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=k.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})}),s[0]=e):e=s[0],e},gv=j.createContext(null),_u=()=>{const s=j.useContext(gv);if(!s)throw new Error("useLibraryRouter must be used within a LibraryRouterProvider");return s},bv=s=>{const e=ae.c(10),{routes:t,className:n,renderItem:r}=s,a=n===void 0?"":n,{currentPath:o}=_u(),i=yv;let l;if(e[0]!==o||e[1]!==r||e[2]!==t){let d;e[4]!==o||e[5]!==r?(d=u=>k.jsxs("div",{className:"pb-2",children:[k.jsx("h3",{className:"px-3 py-2 text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:u.label}),k.jsx("div",{className:"space-y-1",children:u.routes.map(f=>{const m=f.exact?o===f.path:o.startsWith(f.path);return r?r(f,m):i(f,m)})})]},u.label),e[4]=o,e[5]=r,e[6]=d):d=e[6],l=t.map(d),e[0]=o,e[1]=r,e[2]=t,e[3]=l}else l=e[3];let c;return e[7]!==a||e[8]!==l?(c=k.jsx("nav",{className:a,children:l}),e[7]=a,e[8]=l,e[9]=c):c=e[9],c};function yv(s,e){return k.jsxs(fr,{to:s.path,className:`flex items-center gap-3 px-3 py-2 mx-2 my-1 rounded-lg text-sm font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1 dark:focus:ring-offset-gray-800 ${e?"bg-blue-100 dark:bg-blue-900/30 text-blue-900 dark:text-blue-100 border-l-4 border-blue-500 pl-2 ml-2":"text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 hover:text-gray-900 dark:hover:text-white"}`,children:[s.icon&&k.jsx("span",{className:"flex-shrink-0",children:s.icon}),k.jsx("span",{className:"flex-1 truncate",children:s.label})]},s.path)}const vv=()=>{const s=ae.c(18),{navigate:e,goBack:t,goForward:n,currentPath:r,routes:a}=_u();let o;s[0]!==e?(o=(x,y)=>{y?window.history.replaceState(null,"",x):e(x)},s[0]=e,s[1]=o):o=s[1];const i=o;let l;s[2]!==r?(l=(x,y)=>(y===void 0?!1:y)?r===x:r.startsWith(x),s[2]=r,s[3]=l):l=s[3];const c=l;let d;s[4]!==r||s[5]!==a?(d=()=>a.find(x=>x.exact?r===x.path:r.startsWith(x.path)),s[4]=r,s[5]=a,s[6]=d):d=s[6];const u=d;let f;s[7]!==a?(f=x=>a.find(y=>y.path===x),s[7]=a,s[8]=f):f=s[8];const m=f;let g;return s[9]!==r||s[10]!==u||s[11]!==m||s[12]!==t||s[13]!==n||s[14]!==c||s[15]!==i||s[16]!==a?(g={navigateTo:i,goBack:t,goForward:n,isActive:c,currentPath:r,getCurrentRoute:u,getRouteByPath:m,routes:a},s[9]=r,s[10]=u,s[11]=m,s[12]=t,s[13]=n,s[14]=c,s[15]=i,s[16]=a,s[17]=g):g=s[17],g},xv=(s,e)=>s.toLowerCase().includes(e.toLowerCase());function wv(s){return s?Array.from(s):[]}function va(s){if(typeof s=="object"&&s!==null){const e=s;return e.textValue||e.label||e.value||e.title||String(e.key||"")}return String(s)}function as(s,e){if(typeof s=="object"&&s!==null){const t=s;return t.key??t.id??e}return e}function Fu(s){const{items:e,defaultItems:t,inputValue:n,defaultInputValue:r="",selectedKey:a,defaultSelectedKey:o,menuTrigger:i="input",allowsCustomValue:l=!1,allowsEmptyCollection:c=!0,shouldCloseOnBlur:d=!0,defaultFilter:u=xv,filterOptions:f,isDisabled:m=!1,isReadOnly:g=!1,autoFocus:x=!1,onInputChange:y,onSelectionChange:w,onOpenChange:h,onFocus:p,onBlur:b,onFocusChange:S,onKeyDown:C,onKeyUp:v,onClose:T,onClear:A,...E}=s,R=j.useRef(null),L=j.useRef(null),[D,V]=j.useState(r),[P,I]=j.useState(o||null),[M,N]=j.useState(!1),[B]=j.useState(!1),[$,_]=j.useState(null),O=n??D,z=a??P,F=j.useMemo(()=>wv(e??t),[e,t]),W=j.useMemo(()=>!O.trim()&&i!=="focus"?c?F:[]:O.trim()?F.filter(te=>{const ie=va(te);return u(ie,O)}):F,[F,O,u,c,i]),H=j.useCallback(te=>{if(n===void 0&&V(te),y?.(te),i==="input"&&te.trim()&&!M&&(N(!0),h?.(!0,"input")),z!==null&&!l){const ie=F.find((de,me)=>as(de,me)===z);ie&&va(ie)!==te&&(a===void 0&&I(null),w?.(null))}},[n,y,i,M,h,z,l,F,a,w]),K=j.useCallback(te=>{a===void 0&&I(te),w?.(te);const ie=F.find((de,me)=>as(de,me)===te);if(ie){const de=va(ie);H(de)}N(!1),h?.(!1),T?.()},[a,w,F,H,h,T]),G=j.useCallback((te,ie)=>{N(te),h?.(te,ie),te||(_(null),T?.())},[h,T]),X=j.useCallback(te=>{if(C?.(te),!(m||g))switch(te.key){case"ArrowDown":if(te.preventDefault(),!M)N(!0),h?.(!0,"manual");else{const ie=$!==null?W.findIndex((me,ye)=>as(me,ye)===$):-1,de=ie<W.length-1?ie+1:0;W[de]&&_(as(W[de],de))}break;case"ArrowUp":if(te.preventDefault(),!M)N(!0),h?.(!0,"manual");else{const ie=$!==null?W.findIndex((me,ye)=>as(me,ye)===$):W.length,de=ie>0?ie-1:W.length-1;W[de]&&_(as(W[de],de))}break;case"Enter":te.preventDefault(),M&&$!==null&&K($);break;case"Escape":te.preventDefault(),M&&(N(!1),h?.(!1),T?.());break;case"Tab":M&&(N(!1),h?.(!1),T?.());break}},[C,m,g,M,h,$,W,K,T]),U=j.useCallback(te=>{p?.(te),S?.(!0),i==="focus"&&!M&&(N(!0),h?.(!0,"focus"))},[p,S,i,M,h]),Z=j.useCallback(te=>{b?.(te),S?.(!1),d&&M&&setTimeout(()=>{N(!1),h?.(!1),T?.()},150)},[b,S,d,M,h,T]),q=j.useCallback(()=>{H(""),a===void 0&&I(null),w?.(null),A?.(),R.current&&R.current.focus()},[H,a,w,A]),Q=j.useCallback(te=>{K(te)},[K]),J=j.useCallback(()=>{M||G(!0,"manual")},[M,G]),Y=j.useCallback(()=>{M&&G(!1)},[M,G]);j.useEffect(()=>{x&&R.current&&R.current.focus()},[x]),j.useEffect(()=>{const te=ie=>{M&&L.current&&!L.current.contains(ie.target)&&(N(!1),h?.(!1),T?.())};if(M)return document.addEventListener("mousedown",te),()=>{document.removeEventListener("mousedown",te)}},[M,h,T]);const{size:ne,...se}=E,ee=j.useMemo(()=>({...se,ref:R,value:O,onChange:te=>H(te.target.value),onFocus:U,onBlur:Z,onKeyDown:X,onKeyUp:v,disabled:m,readOnly:g,"aria-expanded":M,"aria-haspopup":"listbox","aria-autocomplete":"list",role:"combobox"}),[se,O,H,U,Z,X,v,m,g,M]),re=j.useMemo(()=>({role:"listbox","aria-label":"Suggestions"}),[]),le=j.useMemo(()=>({isOpen:M,onOpenChange:G}),[M,G]),ce=j.useMemo(()=>({type:"button",onClick:q,"aria-label":"Clear",tabIndex:-1}),[q]),oe=j.useMemo(()=>({type:"button",onClick:()=>{M?Y():J()},"aria-label":M?"Close menu":"Open menu","aria-expanded":M,tabIndex:-1}),[M,Y,J]);return{inputValue:O,selectedKey:z,isOpen:M,isLoading:B,filteredItems:W,focusedKey:$,inputProps:ee,listboxProps:re,popoverProps:le,clearButtonProps:ce,selectorButtonProps:oe,containerRef:L,clearValue:q,selectItem:Q,close:Y,open:J,setInputValue:H,setSelectedKey:te=>{te===null?(a===void 0&&I(null),w?.(null)):K(te)},setIsOpen:G}}const Cv=ke({base:["group relative w-full","inline-flex flex-col","text-foreground-500"],variants:{variant:{flat:"",bordered:"",faded:"",underlined:""},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},size:{sm:"",md:"",lg:""},labelPlacement:{inside:"",outside:"flex-col","outside-left":"flex-row items-center"},fullWidth:{true:"w-full",false:"w-auto"},isDisabled:{true:"opacity-disabled cursor-not-allowed",false:""},disableAnimation:{true:"",false:"transition-colors duration-200 ease-in-out"}},defaultVariants:{variant:"flat",color:"default",size:"md",labelPlacement:"inside",fullWidth:!0,isDisabled:!1,disableAnimation:!1}}),kv=ke({base:["relative flex w-full","min-h-unit-10 items-center gap-2","px-3 py-2","transition-colors duration-200","group-data-[focus=true]:outline-2","group-data-[focus=true]:outline-focus","group-data-[focus=true]:outline-offset-2"],variants:{variant:{flat:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"],bordered:["border-2 border-default-200","data-[hover=true]:border-default-300","group-data-[focus=true]:border-default-foreground","bg-transparent"],faded:["bg-default-100 border-2 border-transparent","data-[hover=true]:border-default-200","group-data-[focus=true]:border-default-300","group-data-[focus=true]:bg-default-50"],underlined:["rounded-none border-b-2 border-default-300","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground","bg-transparent px-1 pb-0","after:content-[''] after:w-0 after:origin-center","after:absolute after:left-1/2 after:-translate-x-1/2","after:bottom-0 after:h-[2px]","after:transition-[width] after:duration-300","group-data-[focus=true]:after:w-full"]},color:{default:"",primary:{flat:"group-data-[focus=true]:bg-primary-50",bordered:"group-data-[focus=true]:border-primary",faded:"group-data-[focus=true]:border-primary group-data-[focus=true]:bg-primary-50",underlined:["group-data-[focus=true]:border-primary","after:bg-primary"]},secondary:{flat:"group-data-[focus=true]:bg-secondary-50",bordered:"group-data-[focus=true]:border-secondary",faded:"group-data-[focus=true]:border-secondary group-data-[focus=true]:bg-secondary-50",underlined:["group-data-[focus=true]:border-secondary","after:bg-secondary"]},success:{flat:"group-data-[focus=true]:bg-success-50",bordered:"group-data-[focus=true]:border-success",faded:"group-data-[focus=true]:border-success group-data-[focus=true]:bg-success-50",underlined:["group-data-[focus=true]:border-success","after:bg-success"]},warning:{flat:"group-data-[focus=true]:bg-warning-50",bordered:"group-data-[focus=true]:border-warning",faded:"group-data-[focus=true]:border-warning group-data-[focus=true]:bg-warning-50",underlined:["group-data-[focus=true]:border-warning","after:bg-warning"]},danger:{flat:"group-data-[focus=true]:bg-danger-50",bordered:"group-data-[focus=true]:border-danger",faded:"group-data-[focus=true]:border-danger group-data-[focus=true]:bg-danger-50",underlined:["group-data-[focus=true]:border-danger","after:bg-danger"]}},size:{sm:"min-h-unit-8 px-2 py-1",md:"min-h-unit-10 px-3 py-2",lg:"min-h-unit-12 px-4 py-3"},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},labelPlacement:{inside:"",outside:"","outside-left":""},isInvalid:{true:{flat:"bg-danger-50 text-danger",bordered:"border-danger data-[hover=true]:border-danger",faded:"border-danger bg-danger-50",underlined:"border-danger after:bg-danger"},false:""},isDisabled:{true:"opacity-disabled pointer-events-none",false:""}},compoundVariants:[{variant:"underlined",size:"sm",class:"px-1 pb-0"},{variant:"underlined",size:"md",class:"px-1 pb-0"},{variant:"underlined",size:"lg",class:"px-1 pb-0"}],defaultVariants:{variant:"flat",color:"default",size:"md",radius:"md",labelPlacement:"inside",isInvalid:!1,isDisabled:!1}});ke({base:["w-full font-normal bg-transparent outline-none","placeholder:text-foreground-500","text-small text-foreground"],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},isDisabled:{true:"pointer-events-none",false:""}},defaultVariants:{size:"md",isDisabled:!1}});ke({base:["block text-foreground-600","cursor-pointer","transition-colors duration-200","will-change-auto","origin-top-left"],variants:{size:{sm:"text-small",md:"text-small",lg:"text-medium"},labelPlacement:{inside:["absolute left-3 rtl:left-auto rtl:right-3","pointer-events-none z-10","transition-[transform,color,left,opacity] duration-200 ease-out","group-data-[filled=true]:scale-85","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]","group-data-[filled=true]:pointer-events-auto"],outside:["relative text-foreground pb-1.5","will-change-auto !duration-200 !ease-out transition-colors motion-reduce:transition-none"],"outside-left":["relative text-foreground pr-2 rtl:pr-0 rtl:pl-2","will-change-auto !duration-200 !ease-out transition-colors motion-reduce:transition-none"]},color:{default:"",primary:"group-data-[focus=true]:text-primary",secondary:"group-data-[focus=true]:text-secondary",success:"group-data-[focus=true]:text-success",warning:"group-data-[focus=true]:text-warning",danger:"group-data-[focus=true]:text-danger"},isRequired:{true:"after:content-['*'] after:text-danger after:ml-0.5",false:""},isInvalid:{true:"!text-danger",false:""},isDisabled:{true:"opacity-disabled pointer-events-none",false:""}},compoundVariants:[{labelPlacement:"inside",size:"sm",class:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]","left-2 rtl:left-auto rtl:right-2"]},{labelPlacement:"inside",size:"lg",class:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]","left-4 rtl:left-auto rtl:right-4"]}],defaultVariants:{size:"md",labelPlacement:"inside",color:"default",isRequired:!1,isInvalid:!1,isDisabled:!1}});ke({base:"text-small text-foreground-400 px-1",variants:{color:{default:"text-foreground-400",primary:"text-primary-600",secondary:"text-secondary-600",success:"text-success-600",warning:"text-warning-600",danger:"text-danger-500"},isInvalid:{true:"text-danger-500",false:""}},defaultVariants:{color:"default",isInvalid:!1}});const Sv=ke({base:["w-full p-1 min-w-[200px]","bg-content1 border border-divider","rounded-medium shadow-large"],variants:{disableAnimation:{true:"",false:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-200"}},defaultVariants:{disableAnimation:!1}});ke({base:"max-h-64 overflow-auto",variants:{maxHeight:{sm:"max-h-32",md:"max-h-64",lg:"max-h-96",none:"max-h-none"}},defaultVariants:{maxHeight:"md"}});ke({base:"flex items-center gap-1.5"});ke({base:["flex items-center justify-center","w-4 h-4 min-w-4 min-h-4","text-default-400 hover:text-default-600","cursor-pointer transition-colors","opacity-0 data-[visible=true]:opacity-100","transition-opacity duration-150"],variants:{size:{sm:"w-3 h-3 min-w-3 min-h-3",md:"w-4 h-4 min-w-4 min-h-4",lg:"w-5 h-5 min-w-5 min-h-5"}},defaultVariants:{size:"md"}});ke({base:["flex items-center justify-center","w-4 h-4 min-w-4 min-h-4","text-default-400 hover:text-default-600","cursor-pointer transition-all duration-150","data-[open=true]:rotate-180"],variants:{size:{sm:"w-3 h-3 min-w-3 min-h-3",md:"w-4 h-4 min-w-4 min-h-4",lg:"w-5 h-5 min-w-5 min-h-5"},disableRotation:{true:"data-[open=true]:rotate-0",false:""}},defaultVariants:{size:"md",disableRotation:!1}});ke({base:["flex group relative justify-between items-center","cursor-pointer tap-highlight-transparent","px-2 py-1.5 w-full h-full box-border rounded-small","subpixel-antialiased outline-none","data-[pressed=true]:opacity-70","transition-opacity motion-reduce:transition-none"],variants:{color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},variant:{solid:"",bordered:"border-2 border-transparent bg-transparent",light:"bg-transparent",flat:"",faded:"border-2 border-transparent",shadow:""},isDisabled:{true:"opacity-disabled cursor-not-allowed",false:""},isSelected:{true:"",false:""},showDivider:{true:"mb-1.5 border-b border-divider pb-1.5",false:""}},compoundVariants:[{color:"default",variant:"solid",class:["bg-default text-default-foreground","data-[hover=true]:bg-default-100","data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"]},{color:"default",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-default-100","data-[selected=true]:bg-default-100 data-[selected=true]:text-default-foreground"]},{color:"primary",variant:"solid",class:["bg-primary text-primary-foreground","data-[hover=true]:bg-primary-500","data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"]},{color:"primary",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-primary-100","data-[selected=true]:bg-primary-100 data-[selected=true]:text-primary"]},{color:"secondary",variant:"solid",class:["bg-secondary text-secondary-foreground","data-[hover=true]:bg-secondary-500","data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"]},{color:"secondary",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-secondary-100","data-[selected=true]:bg-secondary-100 data-[selected=true]:text-secondary"]},{color:"success",variant:"solid",class:["bg-success text-success-foreground","data-[hover=true]:bg-success-500","data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"]},{color:"success",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-success-100","data-[selected=true]:bg-success-100 data-[selected=true]:text-success"]},{color:"warning",variant:"solid",class:["bg-warning text-warning-foreground","data-[hover=true]:bg-warning-500","data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"]},{color:"warning",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-warning-100","data-[selected=true]:bg-warning-100 data-[selected=true]:text-warning"]},{color:"danger",variant:"solid",class:["bg-danger text-danger-foreground","data-[hover=true]:bg-danger-500","data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"]},{color:"danger",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-danger-100","data-[selected=true]:bg-danger-100 data-[selected=true]:text-danger"]}],defaultVariants:{color:"default",variant:"flat",isDisabled:!1,isSelected:!1,showDivider:!1}});const Tv=ke({slots:{base:["flex group relative justify-between items-center","cursor-pointer tap-highlight-transparent","px-2 py-1.5 w-full h-full box-border rounded-small","subpixel-antialiased outline-none","data-[pressed=true]:opacity-70","transition-opacity motion-reduce:transition-none"],wrapper:["w-full flex items-center gap-2"],title:["flex-1 text-small font-normal truncate","text-foreground group-data-[selected=true]:text-inherit"],description:["w-full text-tiny text-foreground-400 truncate","group-data-[selected=true]:text-inherit group-data-[selected=true]:opacity-70"],startContent:["flex items-center justify-center","text-foreground-400 group-data-[selected=true]:text-inherit"],endContent:["flex items-center justify-center","text-foreground-400 group-data-[selected=true]:text-inherit"]},variants:{color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},variant:{solid:{},bordered:{base:"border-2 border-transparent bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-2 border-transparent"},shadow:{}},size:{sm:{base:"px-1 py-1 text-tiny gap-1",title:"text-tiny",description:"text-tiny"},md:{base:"px-2 py-1.5 text-small gap-2",title:"text-small",description:"text-tiny"},lg:{base:"px-3 py-2 text-medium gap-3",title:"text-medium",description:"text-small"}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"},false:{}},isSelected:{true:{},false:{}},isFocused:{true:{base:"data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-offset-2 data-[focus-visible=true]:outline-focus"},false:{}},showDivider:{true:{base:"mb-1.5 border-b border-divider pb-1.5"},false:{}}},compoundVariants:[{color:"default",variant:"solid",class:{base:["bg-default text-default-foreground","data-[hover=true]:bg-default-100","data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"]}},{color:"default",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-default-100","data-[selected=true]:bg-default-100 data-[selected=true]:text-default-foreground"]}},{color:"primary",variant:"solid",class:{base:["bg-primary text-primary-foreground","data-[hover=true]:bg-primary-500","data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"]}},{color:"primary",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-primary-100","data-[selected=true]:bg-primary-100 data-[selected=true]:text-primary"]}},{color:"secondary",variant:"solid",class:{base:["bg-secondary text-secondary-foreground","data-[hover=true]:bg-secondary-500","data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"]}},{color:"secondary",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-secondary-100","data-[selected=true]:bg-secondary-100 data-[selected=true]:text-secondary"]}},{color:"success",variant:"solid",class:{base:["bg-success text-success-foreground","data-[hover=true]:bg-success-500","data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"]}},{color:"success",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-success-100","data-[selected=true]:bg-success-100 data-[selected=true]:text-success"]}},{color:"warning",variant:"solid",class:{base:["bg-warning text-warning-foreground","data-[hover=true]:bg-warning-500","data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"]}},{color:"warning",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-warning-100","data-[selected=true]:bg-warning-100 data-[selected=true]:text-warning"]}},{color:"danger",variant:"solid",class:{base:["bg-danger text-danger-foreground","data-[hover=true]:bg-danger-500","data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"]}},{color:"danger",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-danger-100","data-[selected=true]:bg-danger-100 data-[selected=true]:text-danger"]}}],defaultVariants:{color:"default",variant:"flat",size:"md",isDisabled:!1,isSelected:!1,isFocused:!1,showDivider:!1}});ke({base:"relative mb-2",variants:{showDivider:{true:"pb-1 mb-2 border-b border-divider",false:""}},defaultVariants:{showDivider:!1}});const Av=ke({slots:{base:["relative mb-2"],heading:["text-small font-medium text-default-500","px-2 py-1 select-none"],group:["w-full"],divider:["w-full h-px bg-divider my-2"]},variants:{showDivider:{true:{base:"pb-1 mb-2"},false:{}}},defaultVariants:{showDivider:!1}});ke({base:["text-small font-medium text-default-500","px-2 py-1"]});ke({base:"space-y-0.5"});const Qn=j.forwardRef(({children:s,className:e,classNames:t,textValue:n,startContent:r,endContent:a,description:o,isSelected:i=!1,isFocused:l=!1,isDisabled:c=!1,showDivider:d=!1,variant:u="flat",color:f="default",size:m="md",itemKey:g,onSelectionChange:x,onPress:y,onPressStart:w,onPressEnd:h,onClick:p,onMouseDown:b,onKeyDown:S,...C},v)=>{const[T,A]=j.useState(!1),E=j.useCallback(()=>{c||(y?.(),g!==void 0&&x&&x(g))},[c,y,g,x]),R=j.useCallback(B=>{c||(B.preventDefault(),B.stopPropagation(),p?.(B),E())},[c,p,E]),L=j.useCallback(B=>{c||(B.preventDefault(),b?.(B),w?.())},[c,b,w]),D=j.useCallback(()=>{c||h?.()},[c,h]),V=j.useCallback(B=>{c||(S?.(B),(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),B.stopPropagation(),E()))},[c,S,E]),P=j.useMemo(()=>Tv({variant:u,color:f,size:m,isSelected:i,isFocused:l,isDisabled:c,showDivider:d}),[u,f,m,i,l,c,d]),I=o!=null&&o!=="",M=r!=null,N=a!=null;return k.jsx("li",{ref:v,className:je(P.base(),t?.base,e),role:"option","aria-selected":i,"aria-disabled":c,tabIndex:l?0:-1,"data-key":g,"data-selected":i,"data-focused":l,"data-disabled":c,"data-hover":T,onClick:R,onMouseDown:L,onMouseUp:D,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),onKeyDown:V,...C,children:k.jsxs("div",{className:je(P.wrapper(),t?.wrapper),children:[M&&k.jsx("div",{className:je(P.startContent(),t?.startContent),children:r}),k.jsxs("div",{className:"flex-1 flex flex-col justify-center min-w-0",children:[k.jsx("div",{className:je(P.title(),t?.title),children:s||n}),I&&k.jsx("div",{className:je(P.description(),t?.description),children:o})]}),N&&k.jsx("div",{className:je(P.endContent(),t?.endContent),children:a})]})})});Qn.displayName="AutocompleteItem";const jv=s=>{const e=ae.c(3),{className:t}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=k.jsx("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:n}),e[1]=t,e[2]=r):r=e[2],r},Nv=s=>{const e=ae.c(3),{className:t}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=k.jsx("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:n}),e[1]=t,e[2]=r):r=e[2],r};function Pv(s,e){if(typeof s=="object"&&s!==null){const t=s;return t.key??t.id??e}return e}function Vv(s){if(typeof s=="object"&&s!==null){const e=s;return e.textValue||e.label||e.value||e.title||String(e.key||"")}return String(s)}const Wu=j.forwardRef(({label:s,placeholder:e="Search...",description:t,errorMessage:n,startContent:r,endContent:a,variant:o="flat",color:i="default",size:l="md",labelPlacement:c="inside",isDisabled:d=!1,isReadOnly:u=!1,isRequired:f=!1,isInvalid:m=!1,isClearable:g=!0,fullWidth:x=!0,disableAnimation:y=!1,disableSelectorIconRotation:w=!1,selectorIcon:h,clearIcon:p,className:b,classNames:S,popoverProps:C,listboxProps:v,inputProps:T,selectorButtonProps:A,clearButtonProps:E,children:R,...L},D)=>{const[V,P]=j.useState(!1),{inputValue:I,selectedKey:M,isOpen:N,filteredItems:B,focusedKey:$,inputProps:_,listboxProps:O,clearButtonProps:z,selectorButtonProps:F,containerRef:W,selectItem:H}=Fu(L),K=j.useMemo(()=>Cv({variant:o,color:i,size:l,labelPlacement:c,isDisabled:d,fullWidth:x}),[o,i,l,c,d,x]),G=j.useMemo(()=>kv({variant:o,color:i,size:l,isDisabled:d,isInvalid:m}),[o,i,l,d,m]),X=j.useMemo(()=>Sv({disableAnimation:y}),[y]),U=j.useCallback(Y=>{H(Y)},[H]),Z=j.useCallback(()=>R||B.map((Y,ne)=>{const se=Pv(Y,ne),ee=Vv(Y);if(typeof Y=="object"&&Y!==null){const re=Y;return k.jsx(Qn,{itemKey:se,textValue:ee,isSelected:M===se,isFocused:$===se,variant:o==="underlined"?"flat":o,color:i,size:l,startContent:re.startContent,endContent:re.endContent,description:re.description,onSelectionChange:U,children:re.label||ee},se)}return k.jsx(Qn,{itemKey:se,textValue:ee,isSelected:M===se,isFocused:$===se,variant:o==="underlined"?"flat":o,color:i,size:l,onSelectionChange:U,children:ee},se)}),[R,B,M,$,o,i,l,U]),q=j.useMemo(()=>k.jsx(jv,{className:je("w-4 h-4 text-default-400 transition-transform",!w&&N&&"rotate-180")}),[w,N]),Q=j.useMemo(()=>k.jsx(Nv,{className:"w-4 h-4 text-default-400"}),[]),J=g&&I&&!d&&!u;return k.jsxs("div",{ref:Y=>{typeof D=="function"?D(Y):D&&(D.current=Y),W&&(W.current=Y)},className:je("relative",K,S?.base,b),children:[s&&c==="outside"&&k.jsxs("label",{className:"text-small font-medium text-foreground pb-1 block",children:[s,f&&k.jsx("span",{className:"text-danger ml-1",children:"*"})]}),k.jsxs("div",{className:je(G,S?.inputWrapper),style:{zIndex:1},children:[r&&k.jsx("div",{className:"flex items-center",children:r}),k.jsx("input",{..._,...T,className:je("w-full bg-transparent outline-none placeholder:text-foreground-500",_.className,T?.className),placeholder:N||V||I?e:"",disabled:d,readOnly:u,required:f,onFocus:Y=>{P(!0),_.onFocus?.(Y)},onBlur:Y=>{P(!1),_.onBlur?.(Y)}}),s&&c==="inside"&&k.jsxs("label",{className:je("absolute left-3 transition-all duration-200 pointer-events-none z-10","text-small text-foreground-500","top-1/2 -translate-y-1/2 origin-left",(I||N||V)&&["text-tiny scale-85 -translate-y-[1.875rem] px-1 bg-content1","text-foreground-600"]),style:{zIndex:10},children:[s,f&&k.jsx("span",{className:"text-danger ml-1",children:"*"})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[a,J&&k.jsx("button",{...z,...E,className:je("p-1 rounded-small opacity-70 hover:opacity-100 transition-opacity",z.className,E?.className),children:p||Q}),k.jsx("button",{...F,...A,className:je("p-1 rounded-small opacity-70 hover:opacity-100 transition-opacity",F.className,A?.className),disabled:d,children:h||q})]})]}),t&&k.jsx("div",{className:"text-tiny text-foreground-400 mt-1",children:t}),m&&n&&k.jsx("div",{className:"text-tiny text-danger mt-1",children:typeof n=="function"?n({isInvalid:!0,validationErrors:[],validationDetails:{}}):n}),k.jsx(bt,{children:N&&k.jsx(pe.div,{initial:y?void 0:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:y?void 0:{opacity:0,y:-8},transition:{duration:y?0:.15,ease:"easeOut"},className:je("absolute top-full left-0 right-0 mt-1 z-[9999]",X,S?.popoverContent,C?.className),style:{zIndex:9999},children:k.jsx("div",{className:je("max-h-64 overflow-y-auto overflow-x-hidden bg-content1 rounded-medium",S?.listboxWrapper),children:k.jsxs("ul",{...O,...v,className:je("w-full p-1 bg-content1 rounded-medium",O.className,v?.className),children:[Z(),B.length===0&&!R&&k.jsx("li",{className:"px-2 py-4 text-small text-foreground-400 text-center",children:v?.emptyContent||"No results found"})]})})})})]})});Wu.displayName="Autocomplete";const Gu=j.forwardRef(({title:s,children:e,className:t,classNames:n,showDivider:r=!1,...a},o)=>{const i=j.useMemo(()=>Av({showDivider:r}),[r]),l=s!=null&&s!=="";return k.jsxs("div",{ref:o,className:je(i.base(),n?.base,t),role:"group",...a,children:[l&&k.jsx("div",{className:je(i.heading(),n?.heading),role:"presentation",children:s}),k.jsx("div",{className:je(i.group(),n?.group),role:"group",children:e}),r&&k.jsx("div",{className:je(i.divider(),n?.divider),role:"separator"})]})});Gu.displayName="AutocompleteSection";const Mv=(s,e,t=1,n=!0)=>{const r=[],a=(l,c,d=!1,u=!1)=>({type:l,value:c,isActive:d,isDisabled:u,key:`${l}-${c}`});r.push(a("page",1,s===1));const o=Math.max(2,s-t),i=Math.min(e-1,s+t);n&&o>2&&r.push(a("dots","...",!1,!0));for(let l=o;l<=i;l++)l!==1&&l!==e&&r.push(a("page",l,s===l));return n&&i<e-1&&r.push(a("dots","...",!1,!0)),e>1&&r.push(a("page",e,s===e)),r};function Uu(s){const e=ae.c(37),{total:t,page:n,defaultPage:r,initialPage:a,siblings:o,showDots:i,loop:l,onChange:c}=s,d=r===void 0?1:r,u=o===void 0?1:o,f=i===void 0?!0:i,m=l===void 0?!1:l,g=n!==void 0,x=a??d,[y,w]=j.useState(x),p=Math.max(1,Math.min(t,g?n:y));let b;e:{if(t<=0){let $;e[0]===Symbol.for("react.memo_cache_sentinel")?($=[],e[0]=$):$=e[0],b=$;break e}let B;e[1]!==p||e[2]!==f||e[3]!==u||e[4]!==t?(B=Mv(p,t,u,f),e[1]=p,e[2]=f,e[3]=u,e[4]=t,e[5]=B):B=e[5],b=B}const S=b;let C;e[6]!==g||e[7]!==p||e[8]!==c||e[9]!==t?(C=B=>{const $=Math.max(1,Math.min(t,B));$!==p&&(g||w($),c?.($))},e[6]=g,e[7]=p,e[8]=c,e[9]=t,e[10]=C):C=e[10];const v=C;let T;e[11]!==m||e[12]!==p||e[13]!==v||e[14]!==t?(T=()=>{p<t?v(p+1):m&&v(1)},e[11]=m,e[12]=p,e[13]=v,e[14]=t,e[15]=T):T=e[15];const A=T;let E;e[16]!==m||e[17]!==p||e[18]!==v||e[19]!==t?(E=()=>{p>1?v(p-1):m&&v(t)},e[16]=m,e[17]=p,e[18]=v,e[19]=t,e[20]=E):E=e[20];const R=E;let L;e[21]!==v?(L=()=>{v(1)},e[21]=v,e[22]=L):L=e[22];const D=L;let V;e[23]!==v||e[24]!==t?(V=()=>{v(t)},e[23]=v,e[24]=t,e[25]=V):V=e[25];const P=V,I=p===1,M=p===t;let N;return e[26]!==D||e[27]!==I||e[28]!==M||e[29]!==P||e[30]!==A||e[31]!==p||e[32]!==R||e[33]!==S||e[34]!==v||e[35]!==t?(N={activePage:p,range:S,setPage:v,next:A,previous:R,first:D,last:P,isFirst:I,isLast:M,totalPages:t},e[26]=D,e[27]=I,e[28]=M,e[29]=P,e[30]=A,e[31]=p,e[32]=R,e[33]=S,e[34]=v,e[35]=t,e[36]=N):N=e[36],N}const Iv={xs:"min-w-6 h-6 text-xs px-1",sm:"min-w-8 h-8 text-sm px-2",md:"min-w-10 h-10 text-base px-3",lg:"min-w-12 h-12 text-lg px-4",xl:"min-w-14 h-14 text-xl px-5"},Xl={xs:"gap-1",sm:"gap-1.5",md:"gap-2",lg:"gap-2.5",xl:"gap-3"},Ev={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},Hu=(s,e,t=!1,n=!1)=>{const r={default:{flat:{base:"bg-default-100 text-default-600 hover:bg-default-200",active:"bg-default-300 text-default-800 font-medium",disabled:"bg-default-50 text-default-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-default-200 text-default-600 hover:border-default-300 hover:bg-default-50",active:"bg-default-100 border-default-400 text-default-800 font-medium",disabled:"bg-transparent border-default-100 text-default-300 cursor-not-allowed"},light:{base:"bg-transparent text-default-600 hover:bg-default-100",active:"bg-default-200 text-default-800 font-medium",disabled:"bg-transparent text-default-300 cursor-not-allowed"},faded:{base:"bg-default-100/50 text-default-600 hover:bg-default-200/70",active:"bg-default-300/80 text-default-800 font-medium",disabled:"bg-default-50/30 text-default-300 cursor-not-allowed"}},primary:{flat:{base:"bg-primary-100 text-primary-600 hover:bg-primary-200",active:"bg-primary-500 text-white font-medium",disabled:"bg-primary-50 text-primary-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-primary-200 text-primary-600 hover:border-primary-300 hover:bg-primary-50",active:"bg-primary-500 border-primary-500 text-white font-medium",disabled:"bg-transparent border-primary-100 text-primary-300 cursor-not-allowed"},light:{base:"bg-transparent text-primary-600 hover:bg-primary-100",active:"bg-primary-200 text-primary-800 font-medium",disabled:"bg-transparent text-primary-300 cursor-not-allowed"},faded:{base:"bg-primary-100/50 text-primary-600 hover:bg-primary-200/70",active:"bg-primary-500/90 text-white font-medium",disabled:"bg-primary-50/30 text-primary-300 cursor-not-allowed"}},secondary:{flat:{base:"bg-purple-100 text-purple-600 hover:bg-purple-200",active:"bg-purple-500 text-white font-medium",disabled:"bg-purple-50 text-purple-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-purple-200 text-purple-600 hover:border-purple-300 hover:bg-purple-50",active:"bg-purple-500 border-purple-500 text-white font-medium",disabled:"bg-transparent border-purple-100 text-purple-300 cursor-not-allowed"},light:{base:"bg-transparent text-purple-600 hover:bg-purple-100",active:"bg-purple-200 text-purple-800 font-medium",disabled:"bg-transparent text-purple-300 cursor-not-allowed"},faded:{base:"bg-purple-100/50 text-purple-600 hover:bg-purple-200/70",active:"bg-purple-500/90 text-white font-medium",disabled:"bg-purple-50/30 text-purple-300 cursor-not-allowed"}},success:{flat:{base:"bg-green-100 text-green-600 hover:bg-green-200",active:"bg-green-500 text-white font-medium",disabled:"bg-green-50 text-green-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-green-200 text-green-600 hover:border-green-300 hover:bg-green-50",active:"bg-green-500 border-green-500 text-white font-medium",disabled:"bg-transparent border-green-100 text-green-300 cursor-not-allowed"},light:{base:"bg-transparent text-green-600 hover:bg-green-100",active:"bg-green-200 text-green-800 font-medium",disabled:"bg-transparent text-green-300 cursor-not-allowed"},faded:{base:"bg-green-100/50 text-green-600 hover:bg-green-200/70",active:"bg-green-500/90 text-white font-medium",disabled:"bg-green-50/30 text-green-300 cursor-not-allowed"}},warning:{flat:{base:"bg-yellow-100 text-yellow-700 hover:bg-yellow-200",active:"bg-yellow-500 text-white font-medium",disabled:"bg-yellow-50 text-yellow-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-yellow-200 text-yellow-700 hover:border-yellow-300 hover:bg-yellow-50",active:"bg-yellow-500 border-yellow-500 text-white font-medium",disabled:"bg-transparent border-yellow-100 text-yellow-300 cursor-not-allowed"},light:{base:"bg-transparent text-yellow-700 hover:bg-yellow-100",active:"bg-yellow-200 text-yellow-800 font-medium",disabled:"bg-transparent text-yellow-400 cursor-not-allowed"},faded:{base:"bg-yellow-100/50 text-yellow-700 hover:bg-yellow-200/70",active:"bg-yellow-500/90 text-white font-medium",disabled:"bg-yellow-50/30 text-yellow-300 cursor-not-allowed"}},danger:{flat:{base:"bg-red-100 text-red-600 hover:bg-red-200",active:"bg-red-500 text-white font-medium",disabled:"bg-red-50 text-red-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-red-200 text-red-600 hover:border-red-300 hover:bg-red-50",active:"bg-red-500 border-red-500 text-white font-medium",disabled:"bg-transparent border-red-100 text-red-300 cursor-not-allowed"},light:{base:"bg-transparent text-red-600 hover:bg-red-100",active:"bg-red-200 text-red-800 font-medium",disabled:"bg-transparent text-red-300 cursor-not-allowed"},faded:{base:"bg-red-100/50 text-red-600 hover:bg-red-200/70",active:"bg-red-500/90 text-white font-medium",disabled:"bg-red-50/30 text-red-300 cursor-not-allowed"}}};return n?r[s][e].disabled:t?r[s][e].active:r[s][e].base},Rv=(s,e,t=!1)=>{const n=Hu(s,e,!1,t);return t?n:`${n} transition-all duration-200 ease-in-out hover:scale-105 active:scale-95`},Dv=s=>`${{xs:"w-6 h-6 text-xs",sm:"w-8 h-8 text-sm",md:"w-10 h-10 text-base",lg:"w-12 h-12 text-lg",xl:"w-14 h-14 text-xl"}[s]} flex items-center justify-center text-default-400 cursor-default select-none`,Ku=(s=!1,e=!1)=>s||e?"transition-colors duration-200 ease-in-out":"transition-all duration-200 ease-in-out transform hover:scale-105 active:scale-95",Xu=(s,e)=>{const t=Iv[s],n=Ev[e];return`${t} ${n} flex items-center justify-center font-medium select-none outline-none focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2`},Bv=(s,e=!1,t=!1)=>`flex items-center justify-center ${t?Xl.xs:Xl[s]} ${e?"shadow-sm":""}`.trim(),nt={size:"md",color:"primary",variant:"flat",radius:"md",siblings:1,showControls:!0,showFirstLast:!1,showPages:!0,showDots:!0,loop:!1,compact:!1,showShadow:!1,disableAnimation:!1},Xo=j.forwardRef((s,e)=>{const t=ae.c(16),{value:n,type:r,isActive:a,isDisabled:o,onClick:i,children:l,className:c,size:d,color:u,variant:f,radius:m,"aria-label":g,"data-testid":x}=s,y=r===void 0?"page":r,w=a===void 0?!1:a,h=o===void 0?!1:o,p=c===void 0?"":c,b=mr(),S=d??b.size,C=u??b.color,v=f??b.variant,T=m??b.radius,A=b.isDisabled,E=b.disableAnimation,R=A||h,L=Xu(S,T),D=Hu(C,v,w,R),V=Ku(E,R);let P;t[0]!==R||t[1]!==i||t[2]!==y||t[3]!==n?(P=()=>{R||y==="dots"||i?.(n)},t[0]=R,t[1]=i,t[2]=y,t[3]=n,t[4]=P):P=t[4];const I=P,M=y==="page"?w?`Current page, page ${n}`:`Go to page ${n}`:g,N=`${L} ${D} ${V} ${p}`;let B;t[5]!==N?(B=N.trim(),t[5]=N,t[6]=B):B=t[6];const $=B,_=w?"page":void 0,O=l??n;let z;return t[7]!==$||t[8]!==M||t[9]!==R||t[10]!==I||t[11]!==e||t[12]!==_||t[13]!==O||t[14]!==x?(z=k.jsx("button",{ref:e,type:"button",disabled:R,onClick:I,className:$,"aria-label":M,"aria-current":_,"data-testid":x,children:O}),t[7]=$,t[8]=M,t[9]=R,t[10]=I,t[11]=e,t[12]=_,t[13]=O,t[14]=x,t[15]=z):z=t[15],z});Xo.displayName="PaginationItem";const Js=j.forwardRef((s,e)=>{const t=ae.c(13),{direction:n,isDisabled:r,onClick:a,children:o,className:i,size:l,color:c,variant:d,radius:u,"aria-label":f,"data-testid":m}=s,g=r===void 0?!1:r,x=i===void 0?"":i,y=mr(),w=l??y.size,h=c??y.color,p=d??y.variant,b=u??y.radius,S=y.isDisabled,C=y.disableAnimation,v=S||g,T=Xu(w,b),A=Rv(h,p,v),E=Ku(C,v);let R;t[0]!==v||t[1]!==a?(R=()=>{v||a?.()},t[0]=v,t[1]=a,t[2]=R):R=t[2];const L=R,D=n==="prev"?"Go to previous page":"Go to next page",V=`${T} ${A} ${E} ${x}`;let P;t[3]!==V?(P=V.trim(),t[3]=V,t[4]=P):P=t[4];const I=P,M=f??D;let N;return t[5]!==o||t[6]!==I||t[7]!==v||t[8]!==L||t[9]!==e||t[10]!==M||t[11]!==m?(N=k.jsx("button",{ref:e,type:"button",disabled:v,onClick:L,className:I,"aria-label":M,"data-testid":m,children:o}),t[5]=o,t[6]=I,t[7]=v,t[8]=L,t[9]=e,t[10]=M,t[11]=m,t[12]=N):N=t[12],N});Js.displayName="BasePaginationCursor";const Yo=j.forwardRef((s,e)=>{const t=ae.c(3);let n;return t[0]!==s||t[1]!==e?(n=k.jsx(Js,{ref:e,direction:"prev","aria-label":"Go to previous page",...s}),t[0]=s,t[1]=e,t[2]=n):n=t[2],n});Yo.displayName="PaginationPrevious";const qo=j.forwardRef((s,e)=>{const t=ae.c(3);let n;return t[0]!==s||t[1]!==e?(n=k.jsx(Js,{ref:e,direction:"next","aria-label":"Go to next page",...s}),t[0]=s,t[1]=e,t[2]=n):n=t[2],n});qo.displayName="PaginationNext";const Zo=j.forwardRef((s,e)=>{const t=ae.c(3);let n;return t[0]!==s||t[1]!==e?(n=k.jsx(Js,{ref:e,direction:"prev","aria-label":"Go to first page",...s}),t[0]=s,t[1]=e,t[2]=n):n=t[2],n});Zo.displayName="PaginationFirst";const Jo=j.forwardRef((s,e)=>{const t=ae.c(3);let n;return t[0]!==s||t[1]!==e?(n=k.jsx(Js,{ref:e,direction:"next","aria-label":"Go to last page",...s}),t[0]=s,t[1]=e,t[2]=n):n=t[2],n});Jo.displayName="PaginationLast";const Qo=j.forwardRef((s,e)=>{const t=ae.c(7),{className:n,size:r,children:a,"data-testid":o}=s,i=n===void 0?"":n,l=mr(),c=r??l.size,u=`${Dv(c)} ${i}`;let f;t[0]!==u?(f=u.trim(),t[0]=u,t[1]=f):f=t[1];const m=f,g=a??"…";let x;return t[2]!==m||t[3]!==e||t[4]!==g||t[5]!==o?(x=k.jsx("span",{ref:e,className:m,"aria-hidden":"true",role:"presentation","data-testid":o,children:g}),t[2]=m,t[3]=e,t[4]=g,t[5]=o,t[6]=x):x=t[6],x});Qo.displayName="PaginationEllipsis";const On={prev:()=>k.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:k.jsx("polyline",{points:"15,18 9,12 15,6"})}),next:()=>k.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:k.jsx("polyline",{points:"9,18 15,12 9,6"})}),first:()=>k.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:[k.jsx("polyline",{points:"11,17 6,12 11,7"}),k.jsx("polyline",{points:"18,17 13,12 18,7"})]}),last:()=>k.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:[k.jsx("polyline",{points:"13,17 18,12 13,7"}),k.jsx("polyline",{points:"6,17 11,12 6,7"})]})},Yu=j.createContext(null),mr=()=>{const s=j.useContext(Yu);if(!s)throw new Error("usePaginationContext must be used within a Pagination component");return s},qu=s=>{const e=ae.c(33),{total:t,page:n,defaultPage:r,initialPage:a,onChange:o,onPageChange:i,size:l,color:c,variant:d,radius:u,isDisabled:f,disableAnimation:m,controls:g,display:x,className:y,style:w,"aria-label":h,"data-testid":p}=s,b=r===void 0?1:r,S=l===void 0?nt.size:l,C=c===void 0?nt.color:c,v=d===void 0?nt.variant:d,T=u===void 0?nt.radius:u,A=f===void 0?!1:f,E=m===void 0?nt.disableAnimation:m;let R;e[0]!==g?(R=g===void 0?{}:g,e[0]=g,e[1]=R):R=e[1];const L=R;let D;e[2]!==x?(D=x===void 0?{}:x,e[2]=x,e[3]=D):D=e[3];const V=D,P=y===void 0?"":y,I=h===void 0?"Pagination Navigation":h;let M,N,B,$;e[4]===Symbol.for("react.memo_cache_sentinel")?(M=k.jsx(On.prev,{}),N=k.jsx(On.next,{}),B=k.jsx(On.first,{}),$=k.jsx(On.last,{}),e[4]=M,e[5]=N,e[6]=B,e[7]=$):(M=e[4],N=e[5],B=e[6],$=e[7]);const _={showControls:nt.showControls,showFirstLast:nt.showFirstLast,placement:"both",labels:{prev:M,next:N,first:B,last:$},...L},O={showPages:nt.showPages,siblings:nt.siblings,showDots:nt.showDots,loop:nt.loop,compact:nt.compact,showShadow:nt.showShadow,...V};let z;e[8]!==o||e[9]!==i?(z=ee=>{o?.(ee),i?.(ee)},e[8]=o,e[9]=i,e[10]=z):z=e[10];const F=Uu({total:t,page:n,defaultPage:b,initialPage:a,siblings:O.siblings,showDots:O.showDots,loop:O.loop,onChange:z}),W={activePage:F.activePage,totalPages:F.totalPages,setPage:F.setPage,size:S,color:C,variant:v,radius:T,isDisabled:A,disableAnimation:E,controls:_,display:O},H=Bv(S,O.showShadow,O.compact),K=ee=>!_.showFirstLast||_.placement!=="both"&&_.placement!==ee?null:ee==="start"?k.jsx(Zo,{isDisabled:A||F.isFirst,onClick:F.first,children:_.labels.first}):k.jsx(Jo,{isDisabled:A||F.isLast,onClick:F.last,children:_.labels.last}),G=ee=>!_.showControls||_.placement!=="both"&&_.placement!==ee?null:ee==="start"?k.jsx(Yo,{isDisabled:A||F.isFirst,onClick:F.previous,children:_.labels.prev}):k.jsx(qo,{isDisabled:A||F.isLast,onClick:F.next,children:_.labels.next}),X=()=>O.showPages?F.range.map(ee=>ee.type==="dots"?k.jsx(Qo,{},ee.key):k.jsx(Xo,{type:"page",value:ee.value,isActive:ee.isActive,isDisabled:A||ee.isDisabled,onClick:()=>!A&&!ee.isDisabled&&F.setPage(ee.value),children:ee.value},ee.key)):null,U=`${H} ${P}`;let Z;e[11]!==U?(Z=U.trim(),e[11]=U,e[12]=Z):Z=e[12];let q;e[13]!==K?(q=K("start"),e[13]=K,e[14]=q):q=e[14];let Q;e[15]!==G?(Q=G("start"),e[15]=G,e[16]=Q):Q=e[16];let J;e[17]!==X?(J=X(),e[17]=X,e[18]=J):J=e[18];let Y;e[19]!==G?(Y=G("end"),e[19]=G,e[20]=Y):Y=e[20];let ne;e[21]!==K?(ne=K("end"),e[21]=K,e[22]=ne):ne=e[22];let se;return e[23]!==I||e[24]!==w||e[25]!==Z||e[26]!==q||e[27]!==Q||e[28]!==J||e[29]!==Y||e[30]!==ne||e[31]!==p?(se=k.jsxs("nav",{role:"navigation","aria-label":I,className:Z,style:w,"data-testid":p,children:[q,Q,J,Y,ne]}),e[23]=I,e[24]=w,e[25]=Z,e[26]=q,e[27]=Q,e[28]=J,e[29]=Y,e[30]=ne,e[31]=p,e[32]=se):se=e[32],k.jsx(Yu.Provider,{value:W,children:se})};qu.displayName="Pagination";const Bs=s=>({linear:"linear",easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],backIn:[.6,-.05,.01,.99],backOut:[.12,0,.39,0],backInOut:[.37,0,.63,1],bounceIn:[.6,-.28,.735,.045],bounceOut:[.175,.885,.32,1.275],bounceInOut:[.68,-.55,.265,1.55]})[s],Lv=(s,e,t=.05,n=.6)=>{const r=s.split(" "),a=[],o=[],i=s.split(`
|
|
35
|
-
`);let l=0;return
|
|
13
|
+
${Se||Z?["text-tiny scale-85 -translate-y-[1.875rem] px-1","text-gray-600"].join(" "):""}
|
|
14
|
+
`.replace(/\s+/g," ").trim(),htmlFor:E,"data-testid":E?`${E}-label`:void 0,style:{zIndex:10},children:[e,y&&f.jsx("span",{className:"text-danger ml-1",children:"*"})]}):f.jsxs("label",{id:Q,className:td,htmlFor:E,"data-testid":E?`${E}-label`:void 0,children:[e,y&&f.jsx("span",{className:"text-danger ml-1",children:"*"})]}):null,ud=f.jsx("input",{...K,ref:W||Le,id:E,type:Zr,value:Se,placeholder:p==="inside"?Z||Se?t:"":t,disabled:v,readOnly:C,required:y,minLength:w,maxLength:x,pattern:b,className:sd,onChange:_e,onFocus:Lt,onBlur:qc,onKeyDown:T,onKeyUp:N,"aria-label":F,"aria-labelledby":e?Q:$,"aria-describedby":[de,ge,O].filter(Boolean).join(" ")||void 0,"aria-invalid":Ae,"data-testid":E?`${E}-input`:void 0,"data-has-start-content":!!s,"data-has-end-content":!!(a||j||Oe)});return f.jsxs("div",{ref:z,className:Qc,"data-testid":E,"data-invalid":Ae,"data-required":y,"data-readonly":C,"data-disabled":v,"data-focus":Z,"data-focus-within":Z,"data-focus-visible":Z,"data-filled":Ze,"data-has-label":!!e,"data-has-helper":!!(r||Ae),children:[f.jsxs("div",{className:ed,children:[p==="outside-left"&&Jr(),f.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[p==="outside"&&Jr(),f.jsxs("div",{className:rd,children:[p==="inside"&&Jr(),f.jsxs("div",{className:nd,children:[s&&Z&&f.jsx("div",{className:Qs,"data-testid":E?`${E}-start-content`:void 0,children:s}),ud,a&&f.jsx("div",{className:Qs,"data-testid":E?`${E}-end-content`:void 0,children:a}),dd(),cd()]})]})]})]}),(r||Ae)&&f.jsxs("div",{className:ad,children:[r&&f.jsx("div",{id:de,className:od,"data-testid":E?`${E}-description`:void 0,children:r}),Ae&&f.jsx("div",{id:ge,className:id,"data-testid":E?`${E}-error-message`:void 0,children:ld()})]})]})});vc.displayName="Input";const rr=H({slots:{wrapper:["fixed","inset-0","z-50","flex","items-center","justify-center","p-4","sm:p-0","overflow-hidden"],base:["relative","flex","flex-col","w-full","box-border","outline-none","mx-1","my-1","sm:mx-6","sm:my-16","bg-white","dark:bg-gray-800","text-gray-900","dark:text-gray-100","shadow-large","rounded-large","max-h-[calc(100vh_-_2rem)]","sm:max-h-[calc(100vh_-_8rem)]","data-[open=true]:animate-in","data-[open=false]:animate-out","data-[open=false]:fade-out-0","data-[open=true]:fade-in-0","data-[open=false]:zoom-out-95","data-[open=true]:zoom-in-95","data-[open=false]:slide-out-to-left-1/2","data-[open=false]:slide-out-to-top-[48%]","data-[open=true]:slide-in-from-left-1/2","data-[open=true]:slide-in-from-top-[48%]","data-[open=false]:duration-200","data-[open=true]:duration-200"],backdrop:["fixed","inset-0","z-50","bg-black/50","dark:bg-black/70","data-[enter]:animate-in","data-[exit]:animate-out","data-[enter]:fade-in-0","data-[exit]:fade-out-0","data-[enter]:duration-200","data-[exit]:duration-150"],header:["flex","py-4","px-6","relative","flex-col","gap-1","text-large","font-semibold","border-b","border-gray-200","dark:border-gray-700"],body:["relative","flex-1","px-6","py-2","flex","flex-col","gap-3","min-h-0"],footer:["flex","flex-row","gap-2","px-6","py-4","justify-end","border-t","border-gray-200","dark:border-gray-700"],closeButton:["absolute","appearance-none","outline-none","select-none","top-1","right-1","rtl:right-auto","rtl:left-1","p-2","text-gray-500","dark:text-gray-400","rounded-full","hover:bg-gray-100","dark:hover:bg-gray-700","active:bg-gray-200","dark:active:bg-gray-600","tap-highlight-transparent","transition-opacity","data-[pressed=true]:scale-95","transition-transform","z-10"]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"max-w-full max-h-full my-0 mx-0 sm:my-0 sm:mx-0 rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"bg-transparent"},opaque:{backdrop:"bg-black/50 dark:bg-black/70"},blur:{backdrop:"bg-black/30 dark:bg-black/50 backdrop-blur-sm backdrop-saturate-150"}},scrollBehavior:{normal:{base:"overflow-hidden",body:"overflow-y-auto max-h-[60vh]"},inside:{base:"max-h-[calc(100vh_-_8rem)] overflow-hidden flex flex-col",body:"overflow-y-auto flex-1 min-h-0"},outside:{wrapper:"items-start sm:items-center overflow-y-auto py-8",base:"my-0 max-h-fit overflow-visible",body:"overflow-visible"}},placement:{auto:{wrapper:"items-end sm:items-center",base:"sm:my-16 my-2"},top:{wrapper:"items-start",base:"mt-2 mb-auto"},"top-center":{wrapper:"items-start sm:items-center",base:"mt-2 sm:mt-16 mb-auto"},center:{wrapper:"items-center",base:"my-auto"},bottom:{wrapper:"items-end",base:"mb-2 mt-auto"},"bottom-center":{wrapper:"items-end sm:items-center",base:"mb-2 sm:mb-16 mt-auto"}},disableAnimation:{true:{base:["data-[open=true]:animate-none","data-[open=false]:animate-none"],backdrop:["data-[enter]:animate-none","data-[exit]:animate-none"]}},isDraggable:{true:{header:"cursor-move select-none active:cursor-grabbing",base:"cursor-default"}}},defaultVariants:{size:"md",radius:"lg",shadow:"lg",backdrop:"opaque",scrollBehavior:"normal",placement:"auto",disableAnimation:!1,isDraggable:!1}}),wc=h.createContext(null),Us=()=>{const e=h.useContext(wc);if(!e)throw new Error("Modal components must be used within a Modal");return e},Rb=()=>f.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"1em",children:f.jsx("path",{d:"m18 6-12 12M6 6l12 12"})}),Db=e=>{h.useEffect(()=>{if(!e)return;const t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e])},Bb=(e,t)=>{const r=h.useRef(null);h.useEffect(()=>{e?(r.current=document.activeElement,setTimeout(()=>{if(t.current){const n=t.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');n.length>0?n[0].focus():t.current.focus()}},100)):r.current&&r.current.focus()},[e,t])},Lb=(e,t,r)=>{const[n,s]=h.useState(!1),a=h.useRef(null);return h.useEffect(()=>{r||s(!1)},[r]),{dragProps:e?{drag:!0,dragMomentum:!1,dragElastic:.1,dragConstraints:t?!1:a,onDragStart:()=>s(!0),onDragEnd:()=>s(!1),whileDrag:{scale:1.02,transition:{duration:.1}}}:{},isDragging:n,constraintsRef:a}},Cc=h.forwardRef(({children:e,size:t="md",radius:r="lg",shadow:n="lg",backdrop:s="opaque",scrollBehavior:a="normal",placement:o="auto",isOpen:i,defaultOpen:l=!1,isDismissable:c=!0,isKeyboardDismissDisabled:d=!1,shouldBlockScroll:u=!0,hideCloseButton:p=!1,closeButton:m,motionProps:g,portalContainer:w=document.body,disableAnimation:x=!1,isDraggable:b=!1,allowOverflow:y=!1,classNames:v,className:C,onOpenChange:S,onClose:j,...A},k)=>{const[V,M]=h.useState(l),D=h.useRef(null),z=i!==void 0?i:V,L=W=>{i===void 0&&M(W),S?.(W),W||j?.()},I=()=>{L(!1)};h.useEffect(()=>{if(!z||d)return;const W=J=>{J.key==="Escape"&&I()};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[z,d]);const R=W=>{c&&W.target===W.currentTarget&&I()};Db(z&&u),Bb(z,D);const{dragProps:B,isDragging:P,constraintsRef:T}=Lb(b,y,z),{wrapper:N,base:E,backdrop:F}=rr({size:t,radius:r,shadow:n,backdrop:s,scrollBehavior:a,placement:o,disableAnimation:x,isDraggable:b}),$={isOpen:z,size:t,radius:r,shadow:n,backdrop:s,scrollBehavior:a,placement:o,isDismissable:c,isKeyboardDismissDisabled:d,shouldBlockScroll:u,hideCloseButton:p,disableAnimation:x,isDraggable:b,allowOverflow:y,classNames:v,onClose:I,onOpenChange:L},O={initial:{opacity:0,scale:.9,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:20},transition:{duration:x?0:.3,ease:"easeOut"}},K=f.jsx(We,{children:z&&f.jsx(wc.Provider,{value:$,children:f.jsx(_.div,{ref:T,className:F({className:v?.backdrop}),onClick:R,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:x?0:.2,ease:"easeOut"},children:f.jsx("div",{className:N({className:v?.wrapper}),onClick:W=>W.stopPropagation(),children:f.jsxs(_.div,{ref:k||D,className:E({className:v?.base||C}),"data-open":z,"data-dismissable":c,role:"dialog","aria-modal":"true",tabIndex:-1,...g||O,...B,style:{cursor:P?"grabbing":b?"grab":"default"},...A,children:[!p&&f.jsx("button",{type:"button",className:rr().closeButton({className:v?.closeButton}),onClick:I,"aria-label":"Close modal",children:m||f.jsx(Rb,{})}),e]})})})})});return Jn.createPortal(K,w)});Cc.displayName="Modal";const Ob=h.forwardRef(({children:e,className:t,...r},n)=>f.jsx("div",{ref:n,className:t,...r,children:e}));Ob.displayName="ModalContent";const zb=h.forwardRef(({children:e,className:t,...r},n)=>{const{classNames:s,isDraggable:a}=Us(),{header:o}=rr();return f.jsx("div",{ref:n,className:o({className:s?.header||t}),"data-framer-drag-handle":a?"":void 0,style:{cursor:a?"move":"default"},...r,children:e})});zb.displayName="ModalHeader";const $b=h.forwardRef(({children:e,className:t,...r},n)=>{const{classNames:s}=Us(),{body:a}=rr();return f.jsx("div",{ref:n,className:a({className:s?.body||t}),...r,children:e})});$b.displayName="ModalBody";const Fb=h.forwardRef(({children:e,className:t,...r},n)=>{const{classNames:s}=Us(),{footer:a}=rr();return f.jsx("div",{ref:n,className:a({className:s?.footer||t}),...r,children:e})});Fb.displayName="ModalFooter";function Wb(e={}){const{isOpen:t,defaultOpen:r=!1,onOpenChange:n,onClose:s}=e,[a,o]=h.useState(r),i=t!==void 0?t:a,l=h.useCallback(u=>{t===void 0&&o(u),n?.(u),u||s?.()},[t,n,s]),c=h.useCallback(()=>{l(!0)},[l]),d=h.useCallback(()=>{l(!1)},[l]);return{isOpen:i,onOpen:c,onClose:d,onOpenChange:l}}const st=H({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-between","transition-background","duration-300","ease-in-out","data-[menu-open=true]:bg-content1/60","data-[hidden=true]:transform","data-[hidden=true]:-translate-y-full","data-[hidden=true]:transition-transform"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-16"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-medium","data-[active=true]:text-primary"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent","data-[pressed=true]:bg-default-100","data-[hover=true]:bg-default-100","data-[open=true]:bg-default-100"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity",'before:content-[""]',"before:block","before:h-px","before:w-4","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0",'after:content-[""]',"after:block","after:h-px","after:w-4","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:before:translate-y-px","group-data-[open=true]:before:rotate-45","group-data-[open=true]:after:-translate-y-px","group-data-[open=true]:after:-rotate-45"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-header","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto","bg-content1/60","backdrop-blur-xl","backdrop-saturate-150"],menuItem:["text-large","color-foreground","data-[active=true]:font-semibold","data-[active=true]:text-primary"]},variants:{position:{static:{base:"relative"},sticky:{base:"sticky top-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},isBordered:{true:{base:"border-b border-divider"}},isBlurred:{true:{base:["backdrop-blur-lg","data-[menu-open=false]:bg-background/70","backdrop-saturate-150"]},false:{base:"bg-background",menu:"bg-background"}},disableAnimation:{true:{menu:"!transition-none"}}},defaultVariants:{position:"sticky",maxWidth:"lg",isBordered:!1,isBlurred:!0,disableAnimation:!1}}),kc=h.createContext(null),Dt=()=>{const e=h.useContext(kc);if(!e)throw new Error("Navbar components must be used within a Navbar");return e},_b=({isOpen:e})=>{const{toggleIcon:t}=st({disableAnimation:!1});return f.jsx("span",{className:t(),"data-open":e,children:f.jsx("span",{className:"sr-only",children:"Toggle menu"})})},Sc=h.forwardRef(({children:e,height:t="4rem",position:r="sticky",maxWidth:n="lg",parentRef:s,isBordered:a=!1,isBlurred:o=!0,isMenuOpen:i,isMenuDefaultOpen:l=!1,shouldHideOnScroll:c=!1,disableScrollHandler:d=!1,disableAnimation:u=!1,classNames:p,className:m,onMenuOpenChange:g,onScrollPositionChange:w,...x},b)=>{const[y,v]=h.useState(l),[C,S]=h.useState(!1),[j,A]=h.useState(0),k=h.useRef(null),V=i??y,M=I=>{i===void 0&&v(I),g?.(I)};h.useEffect(()=>{if(!c||d)return;const I=()=>{const B=window.scrollY,P=B>j?"down":"up";P==="down"&&B>100?S(!0):P==="up"&&S(!1),A(B),w?.(B)},R=s?.current||window;return R.addEventListener("scroll",I,{passive:!0}),()=>{R.removeEventListener("scroll",I)}},[c,d,j,s,w]);const{base:D,wrapper:z}=st({position:r,maxWidth:n,isBordered:a,isBlurred:o,disableAnimation:u}),L={isMenuOpen:V,position:r,maxWidth:n,height:t,isBordered:a,isBlurred:o,shouldHideOnScroll:c,disableAnimation:u,classNames:p,onMenuOpenChange:M,onScrollPositionChange:w};return f.jsx(kc.Provider,{value:L,children:f.jsx(_.nav,{ref:b||k,className:D({className:p?.base||m}),style:{height:t},"data-menu-open":V,"data-hidden":C,initial:c?{y:0}:!1,animate:c?{y:C?-100:0}:!1,transition:{duration:.3,ease:"easeInOut"},...x,children:f.jsx("header",{className:z({className:p?.wrapper}),children:e})})})});Sc.displayName="Navbar";const Gb=h.forwardRef(({children:e,className:t,...r},n)=>{const{brand:s}=st(),a=Dt();return f.jsx("div",{ref:n,className:s({className:a?.classNames?.brand||t}),...r,children:e})});Gb.displayName="NavbarBrand";const Ub=h.forwardRef(({children:e,justify:t="start",className:r,...n},s)=>{const{content:a}=st(),{classNames:o}=Dt();return f.jsx("ul",{ref:s,className:a({className:o?.content||r}),"data-justify":t,...n,children:e})});Ub.displayName="NavbarContent";const Kb=h.forwardRef(({children:e,isActive:t=!1,className:r,...n},s)=>{const{item:a}=st(),{classNames:o}=Dt();return f.jsx("li",{ref:s,className:a({className:o?.item||r}),"data-active":t,...n,children:e})});Kb.displayName="NavbarItem";const Hb=h.forwardRef(({icon:e,isSelected:t,defaultSelected:r=!1,srOnlyText:n="open/close navigation menu",className:s,onChange:a,...o},i)=>{const{toggle:l}=st(),{isMenuOpen:c,onMenuOpenChange:d,classNames:u}=Dt(),p=()=>{const m=!c;d(m),a?.(m)};return f.jsx("button",{ref:i,type:"button",className:l({className:u?.toggle||s}),"data-open":c,"data-pressed":!1,"aria-label":n,onClick:p,...o,children:typeof e=="function"?e(c):e||f.jsx(_b,{isOpen:c})})});Hb.displayName="NavbarMenuToggle";const Xb=h.forwardRef(({children:e,portalContainer:t,className:r,...n},s)=>{const{menu:a}=st(),{isMenuOpen:o,disableAnimation:i,classNames:l}=Dt(),c={closed:{opacity:0,y:-20},open:{opacity:1,y:0}},d={duration:i?0:.3,ease:"easeOut"};return f.jsx(We,{children:o&&f.jsx(_.div,{ref:s,className:a({className:l?.menu||r}),variants:c,initial:"closed",animate:"open",exit:"closed",transition:d,...n,children:f.jsx("ul",{className:"flex flex-col gap-2 py-4",children:e})})})});Xb.displayName="NavbarMenu";const Yb=h.forwardRef(({children:e,isActive:t=!1,className:r,...n},s)=>{const{menuItem:a}=st(),{classNames:o}=Dt();return f.jsx("li",{ref:s,className:a({className:o?.menuItem||r}),"data-active":t,...n,children:e})});Yb.displayName="NavbarMenuItem";const qb=H({slots:{base:["flex","flex-col","gap-2","w-full"],track:["relative","bg-gray-200","overflow-hidden"],indicator:["h-full","transition-all","duration-500","ease-out","origin-left"],labelWrapper:["flex","justify-between","items-center"],label:["text-sm","font-medium","text-gray-700"],value:["text-sm","font-medium","text-gray-500"]},variants:{color:{default:{indicator:"bg-gray-400"},primary:{indicator:"bg-blue-600"},secondary:{indicator:"bg-gray-600"},success:{indicator:"bg-green-600"},warning:{indicator:"bg-yellow-500"},danger:{indicator:"bg-red-600"}},size:{sm:{track:"h-1",label:"text-xs",value:"text-xs"},md:{track:"h-2",label:"text-sm",value:"text-sm"},lg:{track:"h-3",label:"text-base",value:"text-base"}},radius:{none:{track:"rounded-none"},sm:{track:"rounded-sm"},md:{track:"rounded-md"},lg:{track:"rounded-lg"},full:{track:"rounded-full"}},isStriped:{true:{indicator:["bg-gradient-to-r","from-transparent","to-transparent","bg-[length:1rem_1rem]","bg-repeat-x","animate-pulse"]}},isIndeterminate:{true:{indicator:["animate-pulse"]}},isDisabled:{true:{base:"opacity-60 cursor-not-allowed",track:"bg-gray-100",indicator:"bg-gray-300",label:"text-gray-400",value:"text-gray-400"}}},compoundVariants:[{isStriped:!0,color:"primary",class:{indicator:["bg-gradient-to-r","from-blue-600","via-blue-500","to-blue-600","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isStriped:!0,color:"success",class:{indicator:["bg-gradient-to-r","from-green-600","via-green-500","to-green-600","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isStriped:!0,color:"warning",class:{indicator:["bg-gradient-to-r","from-yellow-500","via-yellow-400","to-yellow-500","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isStriped:!0,color:"danger",class:{indicator:["bg-gradient-to-r","from-red-600","via-red-500","to-red-600","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isIndeterminate:!0,class:{indicator:["w-1/3","animate-[progress-indeterminate_2s_ease-in-out_infinite]"]}}],defaultVariants:{color:"primary",size:"md",radius:"full",isStriped:!1,isIndeterminate:!1,isDisabled:!1}}),jc=(e=0,t=0,r=100)=>(Math.max(t,Math.min(r,e))-t)/(r-t)*100,Zb=(e=0,t=100,r=0)=>{const n=jc(e,r,t);return`${Math.round(n)}%`},Tc=h.forwardRef(({value:e=0,maxValue:t=100,minValue:r=0,color:n="primary",size:s="md",radius:a="full",showValueLabel:o=!1,label:i,isStriped:l=!1,isIndeterminate:c=!1,isDisabled:d=!1,className:u,classNames:p,...m},g)=>{const w=jc(e,r,t),x=Zb(e,t,r),b=qb({color:n,size:s,radius:a,isStriped:l,isIndeterminate:c,isDisabled:d});return f.jsxs("div",{ref:g,className:q(b.base(),p?.base,u),role:"progressbar","aria-valuemin":r,"aria-valuemax":t,"aria-valuenow":c?void 0:e,"aria-valuetext":c?"Cargando...":x,...m,children:[(i||o)&&f.jsxs("div",{className:q(b.labelWrapper(),p?.label),children:[i&&f.jsx("span",{className:q(b.label(),p?.label),children:i}),o&&!c&&f.jsx("span",{className:q(b.value(),p?.value),children:x})]}),f.jsx("div",{className:q(b.track(),p?.track),children:f.jsx(_.div,{className:q(b.indicator(),p?.indicator),initial:{scaleX:0,originX:0},animate:{scaleX:c?1:w/100,x:c?["-100%","300%"]:0},transition:c?{duration:2,repeat:1/0,ease:"easeInOut"}:{duration:.5,ease:"easeOut"},style:c?{width:"33%",transformOrigin:"left center"}:{transformOrigin:"left center"}})})]})});Tc.displayName="Progress";const Jb={slow:2,normal:1,fast:.6};H({base:["inline-block","animate-spin","transition-all","duration-200","ease-in-out"],variants:{size:{xs:"w-3 h-3",sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"},color:{primary:"text-blue-600",secondary:"text-gray-600",success:"text-green-600",warning:"text-yellow-600",error:"text-red-600",neutral:"text-gray-400"},visible:{true:"opacity-100 scale-100",false:"opacity-0 scale-95 pointer-events-none"}},defaultVariants:{size:"md",color:"primary",visible:!0}});const Qb=H({base:["flex","items-center","justify-center","transition-all","duration-200","ease-in-out"],variants:{overlay:{true:["fixed","inset-0","z-50","bg-white/80","backdrop-blur-sm"],false:""},position:{center:"flex-col",top:"flex-col",bottom:"flex-col",left:"flex-row",right:"flex-row-reverse"},fullScreen:{true:"w-screen h-screen",false:"w-full h-full"}},defaultVariants:{overlay:!1,position:"center",fullScreen:!1}}),ey=H({base:["text-sm","font-medium","transition-opacity","duration-200"],variants:{position:{center:"mt-2 text-center",top:"mb-2 text-center",bottom:"mt-2 text-center",left:"ml-2",right:"mr-2"},color:{primary:"text-blue-600",secondary:"text-gray-600",success:"text-green-600",warning:"text-yellow-600",error:"text-red-600",neutral:"text-gray-500"}},defaultVariants:{position:"center",color:"neutral"}});H({base:["relative","inline-block"],variants:{size:{xs:"w-3 h-3",sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"}},defaultVariants:{size:"md"}});const ty=H({base:["rounded-full","transition-all"],variants:{size:{xs:"w-2 h-2",sm:"w-3 h-3",md:"w-4 h-4",lg:"w-6 h-6",xl:"w-8 h-8"},color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{size:"md",color:"primary"}}),ry=H({base:["flex","items-center","justify-center"],variants:{size:{xs:"gap-1",sm:"gap-1",md:"gap-2",lg:"gap-2",xl:"gap-3"}},defaultVariants:{size:"md"}}),ny=H({base:["rounded-full"],variants:{size:{xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-3 h-3",xl:"w-4 h-4"},color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{size:"md",color:"primary"}}),sy=H({base:["flex","items-end","justify-center"],variants:{size:{xs:"gap-0.5 h-3",sm:"gap-0.5 h-4",md:"gap-1 h-6",lg:"gap-1 h-8",xl:"gap-1.5 h-12"}},defaultVariants:{size:"md"}}),ay=H({base:["rounded-full"],variants:{size:{xs:"w-0.5",sm:"w-0.5",md:"w-1",lg:"w-1",xl:"w-1.5"},color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{size:"md",color:"primary"}});H({base:["grid","gap-1"],variants:{size:{xs:"w-6 h-6",sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16",xl:"w-24 h-24"},gridSize:{"2x2":"grid-cols-2 grid-rows-2","3x3":"grid-cols-3 grid-rows-3","4x4":"grid-cols-4 grid-rows-4"}},defaultVariants:{size:"md",gridSize:"3x3"}});H({base:["rounded-sm"],variants:{color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{color:"primary"}});const oy=H({base:["relative","rounded-full","border-solid","border-transparent"],variants:{size:{xs:"w-3 h-3 border-[1px]",sm:"w-4 h-4 border-[1px]",md:"w-6 h-6 border-2",lg:"w-8 h-8 border-2",xl:"w-12 h-12 border-[3px]"},color:{primary:"border-t-blue-600 border-r-blue-600/30",secondary:"border-t-gray-600 border-r-gray-600/30",success:"border-t-green-600 border-r-green-600/30",warning:"border-t-yellow-600 border-r-yellow-600/30",error:"border-t-red-600 border-r-red-600/30",neutral:"border-t-gray-400 border-r-gray-400/30"}},defaultVariants:{size:"md",color:"primary"}});H({base:["flex","items-center","justify-center"],variants:{direction:{horizontal:"flex-row",vertical:"flex-col",circular:"relative"},size:{xs:"gap-1",sm:"gap-1",md:"gap-2",lg:"gap-2",xl:"gap-3"}},defaultVariants:{direction:"horizontal",size:"md"}});H({base:["flex","items-end","justify-center"],variants:{orientation:{vertical:"flex-row items-end",horizontal:"flex-col items-center"},size:{xs:"gap-0.5",sm:"gap-0.5",md:"gap-1",lg:"gap-1",xl:"gap-1.5"}},defaultVariants:{orientation:"vertical",size:"md"}});const iy=e=>Jb[e],wr={rotate:{animate:{rotate:360}},pulse:{animate:{scale:[1,1.2,1],opacity:[.7,1,.7]}},bounce:{animate:{y:[0,-10,0]}},wave:{animate:{scaleY:[.4,1,.4]}}},Ac=({type:e="rotating",size:t="md",color:r="primary",speed:n="normal",visible:s=!0,label:a,overlay:o=!1,overlayOpacity:i=.8,overlayColor:l="bg-white",animationConfig:c,className:d,"aria-label":u="Loading","data-testid":p="spinner",style:m,...g})=>{const w=iy(n),x=()=>f.jsx(_.div,{className:oy({size:t,color:r}),animate:wr.rotate.animate,transition:{duration:w,repeat:1/0,...c}}),b=()=>f.jsx(_.div,{className:ty({size:t,color:r}),animate:wr.pulse.animate,transition:{duration:w,repeat:1/0,...c}}),y=()=>f.jsx("div",{className:ry({size:t}),children:[0,1,2].map(k=>f.jsx(_.div,{className:ny({size:t,color:r}),animate:wr.bounce.animate,transition:{duration:w,repeat:1/0,delay:k*.1,...c}},k))}),v=()=>f.jsx("div",{className:sy({size:t}),children:[0,1,2,3,4].map(k=>f.jsx(_.div,{className:ay({size:t,color:r}),animate:wr.wave.animate,transition:{duration:w,repeat:1/0,delay:k*.1,...c}},k))}),C=()=>{switch(e){case"rotating":case"ring":return f.jsx(x,{});case"pulse":return f.jsx(b,{});case"bounce":case"dots":return f.jsx(y,{});case"wave":case"bars":return f.jsx(v,{});default:return f.jsx(x,{})}},S=Qb({overlay:o,position:"center",fullScreen:o}),j=d?`${S} ${d}`:S,A={...m,...o&&i!==void 0&&{backgroundColor:`rgba(255, 255, 255, ${i})`}};return s?f.jsxs(_.div,{className:j,style:A,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},role:"status","aria-live":"polite","data-testid":p,...g,children:[C(),a&&f.jsx(_.div,{className:ey({position:"center",color:r==="neutral"?"neutral":r}),initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1,duration:.2},children:a})]}):null};Ac.displayName="Spinner";const cr={sm:{wrapper:"w-10 h-6",thumb:"w-5 h-5",label:"text-sm",startContent:"text-xs",endContent:"text-xs",thumbIcon:"w-3 h-3"},md:{wrapper:"w-12 h-7",thumb:"w-6 h-6",label:"text-base",startContent:"text-sm",endContent:"text-sm",thumbIcon:"w-4 h-4"},lg:{wrapper:"w-14 h-8",thumb:"w-7 h-7",label:"text-lg",startContent:"text-base",endContent:"text-base",thumbIcon:"w-5 h-5"}},ly=(e="primary",t=!1,r=!1)=>r?t?"bg-gray-300 border-gray-300":"bg-gray-200 border-gray-200":t?{default:"bg-gray-600 border-gray-600 hover:bg-gray-700",primary:"bg-blue-600 border-blue-600 hover:bg-blue-700",secondary:"bg-purple-600 border-purple-600 hover:bg-purple-700",success:"bg-green-600 border-green-600 hover:bg-green-700",warning:"bg-amber-500 border-amber-500 hover:bg-amber-600",danger:"bg-red-600 border-red-600 hover:bg-red-700"}[e]:"bg-gray-200 border-gray-200 hover:bg-gray-300",cy=(e=!1)=>`inline-flex items-center gap-2 cursor-pointer select-none ${e?"cursor-not-allowed opacity-60":""}`.trim(),dy=(e="md",t="primary",r=!1,n=!1,s=!1)=>{const a=cr[e].wrapper,o=ly(t,r,n);return`relative inline-flex shrink-0 border-2 rounded-full cursor-pointer ${a} ${o} ${s?"":"transition-colors duration-200 ease-in-out"} focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-blue-500`.trim()},uy=(e="md",t=!1)=>`font-medium ${cr[e].label} ${t?"text-gray-400":"text-gray-900"}`.trim(),Wo=(e="md",t=!1)=>`flex items-center justify-center ${cr[e].startContent} ${t?"text-gray-400":"text-gray-600"}`.trim(),fy=(e="md")=>`flex items-center justify-center text-gray-400 ${cr[e].thumbIcon}`.trim(),py=()=>"sr-only",hy=({children:e,value:t,name:r,size:n="md",color:s="primary",thumbIcon:a,startContent:o,endContent:i,isSelected:l,defaultSelected:c=!1,isReadOnly:d=!1,isDisabled:u=!1,disableAnimation:p=!1,className:m="",classNames:g,onChange:w,onValueChange:x,"data-testid":b})=>{const[y,v]=h.useState(c),C=h.useRef(null),S=l!==void 0,j=S?l:y,A=F=>{if(u||d)return;const $=F.target.checked;S||v($),w?.(F),x?.($)},k=()=>{u||d||C.current?.click()},M=[cy(u),g?.base,m].filter(Boolean).join(" "),z=[dy(n,s,j,u,p),g?.wrapper].filter(Boolean).join(" "),I=[uy(n,u),g?.label].filter(Boolean).join(" "),B=[Wo(n,u),g?.startContent].filter(Boolean).join(" "),T=[Wo(n,u),g?.endContent].filter(Boolean).join(" "),E=[py(),g?.hiddenInput].filter(Boolean).join(" ");return f.jsxs("label",{className:M,"data-testid":b,children:[o&&f.jsx(_.div,{className:B,"data-testid":`${b}-start-content`,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:p?0:.2},children:o}),f.jsxs(my,{className:z,"data-testid":`${b}-wrapper`,children:[f.jsx("input",{ref:C,type:"checkbox",value:t,name:r,checked:j,onChange:A,disabled:u,readOnly:d,"aria-checked":j,className:E,"data-testid":`${b}-input`,onClick:k}),f.jsx(gy,{isSelected:j,size:n,thumbIcon:a,disableAnimation:p,className:g?.thumb,"data-testid":`${b}-thumb`,onClick:k})]}),i&&f.jsx(_.div,{className:T,"data-testid":`${b}-end-content`,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:p?0:.2},children:i}),e&&f.jsx("span",{className:I,"data-testid":`${b}-label`,children:e})]})},my=({children:e,className:t="",onClick:r,"data-testid":n})=>f.jsx(_.div,{className:t,onClick:r,"data-testid":n,whileHover:{scale:1.02},whileTap:{scale:.98},transition:{duration:.1},children:e}),gy=({isSelected:e=!1,size:t="md",thumbIcon:r,disableAnimation:n=!1,className:s="","data-testid":a})=>{const o=cr[t],i=fy(t),c=(()=>{const p={sm:40,md:48,lg:56},m={sm:20,md:24,lg:28};return p[t]-m[t]-7})(),u=[`absolute top-0.2 left-0.5 inline-block rounded-full bg-white shadow-lg transform ring-0 flex items-center justify-center ${o.thumb}`,s].filter(Boolean).join(" ");return f.jsx(_.span,{className:u,"data-testid":a,animate:{x:e?c:0},transition:{type:"spring",stiffness:500,damping:30,duration:n?0:void 0},whileHover:{scale:1.1},whileTap:{scale:.95},style:{cursor:"pointer"},children:f.jsx(We,{mode:"wait",children:r&&f.jsx(_.div,{initial:{opacity:0,rotate:-180,scale:.5},animate:{opacity:1,rotate:0,scale:1},exit:{opacity:0,rotate:180,scale:.5},transition:{duration:n?0:.3},children:f.jsx(r,{isSelected:e,className:i})},e?"selected":"unselected")})})},by=(e,t)=>{if(e==="custom"&&t){const n=t.border??"",s=t.gradient??t.background??"";return[n,s].filter(Boolean).join(" ")}const r={default:"border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-900",primary:"border-blue-200 bg-blue-50 dark:border-blue-800 dark:bg-blue-950",secondary:"border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800",success:"border-green-200 bg-green-50 dark:border-green-800 dark:bg-green-950",warning:"border-yellow-200 bg-yellow-50 dark:border-yellow-800 dark:bg-yellow-950",danger:"border-red-200 bg-red-50 dark:border-red-800 dark:bg-red-950",custom:"border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-900"};return r[e]||r.default},yy=e=>{const t={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"};return t[e]||t.md},xy=e=>{const t={none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"};return t[e]||t.sm},vy=(e,t,r,n,s,a)=>{if(s)return"";const o="flex flex-col relative overflow-hidden",i=by(e,t),l=yy(r),c=xy(n);return[o,i,l,c,a?"w-full":""].filter(Boolean).join(" ")},wy=(e,t)=>["min-w-full table-auto",e?"table-compact":"",t?"table-striped":""].filter(Boolean).join(" "),Cy=(e,t,r,n,s,a)=>{const o=a?.border?`border-b ${a.border} transition-colors`:"border-b border-gray-200 dark:border-gray-700 transition-colors";let i="";e&&(i=a?.selected?a.selected:"bg-blue-50 dark:bg-blue-900/20");const l=!t&&!e?a?.hover||"hover:bg-gray-50 dark:hover:bg-gray-800/50":"";return[o,i,l,t?"opacity-50 cursor-not-allowed":"cursor-pointer"].filter(Boolean).join(" ")},Mc=h.createContext(null),ky=()=>{const e=h.useContext(Mc);if(!e)throw new Error("Table components must be used within a Table component");return e},Sy=({children:e,className:t="",color:r="default",customColor:n,layout:s="auto",radius:a="md",shadow:o="sm",maxTableHeight:i,rowHeight:l,isVirtualized:c=!1,hideHeader:d=!1,isStriped:u=!1,isCompact:p=!1,isHeaderSticky:m=!1,fullWidth:g=!0,removeWrapper:w=!1,topContent:x,bottomContent:b,topContentPlacement:y="outside",bottomContentPlacement:v="outside",showSelectionCheckboxes:C=!1,sortDescriptor:S,selectedKeys:j=new Set,defaultSelectedKeys:A=new Set,disabledKeys:k=new Set,disallowEmptySelection:V=!1,selectionMode:M="none",selectionBehavior:D="toggle",disabledBehavior:z="selection",allowDuplicateSelectionEvents:L=!1,disableAnimation:I=!1,isKeyboardNavigationDisabled:R=!1,loading:B=!1,emptyContent:P,centerHeaderText:T=!1,centerCellText:N=!1,onRowAction:E,onCellAction:F,onSelectionChange:$,onSortChange:O,columns:K,items:W,"data-testid":J,...Y})=>{const Z=h.useMemo(()=>({color:r,customColor:n,selectionMode:M,selectionBehavior:D,selectedKeys:j,disabledKeys:k,sortDescriptor:S,isStriped:u,isCompact:p,disableAnimation:I,showSelectionCheckboxes:C,onRowAction:E,onCellAction:F,onSelectionChange:$,onSortChange:O,centerHeaderText:T,centerCellText:N,columns:K,items:W}),[r,n,M,D,j,k,S,u,p,I,C,E,F,$,O,T,N,K,W]),ne=h.useMemo(()=>vy(r,n,a,o,w,g),[r,n,a,o,w,g]),ae=h.useMemo(()=>wy(p,u),[p,u]),Te=y==="outside"&&x,he=y==="inside"&&x,at=v==="outside"&&b,Le=v==="inside"&&b,se={...i&&{maxHeight:i,overflowY:"auto"},...c&&l&&{height:i||400}};return f.jsx(Mc.Provider,{value:Z,children:f.jsxs("div",{className:"table-wrapper","data-testid":J,children:[Te&&f.jsx("div",{className:"table-top-content mb-4",children:x}),f.jsxs("div",{className:`${ne} ${t}`.trim(),...Y,children:[he&&f.jsx("div",{className:"table-top-content-inside p-4 border-b border-gray-200 dark:border-gray-700",children:x}),f.jsx("div",{className:"table-container overflow-auto",style:se,children:B?f.jsx("div",{className:"flex items-center justify-center py-12",children:f.jsxs("div",{className:"flex items-center space-x-3",children:[f.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-gray-600 dark:border-gray-300"}),f.jsx("span",{className:"text-gray-600 dark:text-gray-300",children:"Loading..."})]})}):W&&W.length===0?f.jsx("div",{className:"flex items-center justify-center py-12",children:f.jsx("div",{className:"text-center",children:P||f.jsxs("div",{className:"text-gray-500 dark:text-gray-400",children:[f.jsx("div",{className:"text-4xl mb-2",children:"📄"}),f.jsx("div",{className:"text-lg font-medium mb-1",children:"No data available"}),f.jsx("div",{className:"text-sm",children:"There are no items to display"})]})})}):f.jsx("table",{className:`${ae} ${s==="fixed"?"table-fixed":""}`,role:"table","aria-label":"Data table",children:e})}),Le&&f.jsx("div",{className:"table-bottom-content-inside p-4 border-t border-gray-200 dark:border-gray-700",children:b})]}),at&&f.jsx("div",{className:"table-bottom-content mt-4",children:b})]})})},jy=({children:e,className:t="",textValue:r,item:n,"data-testid":s,...a})=>{const{isStriped:o,selectedKeys:i,disabledKeys:l,onRowAction:c,customColor:d}=ky(),u=n?.key||n?.id||r,p=u?i==="all"||i.has(u):!1,m=u?l.has(u):!1,g=Cy(p,m,o,!1,!0,d),w=()=>{!m&&u&&c&&c(u)};return f.jsx("tr",{className:`${g} ${t}`.trim(),onClick:w,role:"row","aria-selected":p,"aria-disabled":m,"data-testid":s,...a,children:e})},Ty={sm:"p-3 text-sm",md:"p-4 text-base",lg:"p-5 text-lg"},Ay={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},My=(e,t)=>{const r={solid:{success:"bg-green-500 text-white border-green-500 dark:bg-green-600 dark:border-green-600",error:"bg-red-500 text-white border-red-500 dark:bg-red-600 dark:border-red-600",warning:"bg-yellow-500 text-white border-yellow-500 dark:bg-yellow-600 dark:border-yellow-600",info:"bg-blue-500 text-white border-blue-500 dark:bg-blue-600 dark:border-blue-600",default:"bg-gray-500 text-white border-gray-500 dark:bg-gray-600 dark:border-gray-600"},bordered:{success:"bg-transparent text-green-600 border-green-500 border-2 dark:bg-gray-800 dark:text-green-400 dark:border-green-500",error:"bg-transparent text-red-600 border-red-500 border-2 dark:bg-gray-800 dark:text-red-400 dark:border-red-500",warning:"bg-transparent text-yellow-600 border-yellow-500 border-2 dark:bg-gray-800 dark:text-yellow-400 dark:border-yellow-500",info:"bg-transparent text-blue-600 border-blue-500 border-2 dark:bg-gray-800 dark:text-blue-400 dark:border-blue-500",default:"bg-transparent text-gray-600 border-gray-500 border-2 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-500"},flat:{success:"bg-green-100 text-green-800 border-green-100 dark:bg-green-900/30 dark:text-green-300 dark:border-green-800",error:"bg-red-100 text-red-800 border-red-100 dark:bg-red-900/30 dark:text-red-300 dark:border-red-800",warning:"bg-yellow-100 text-yellow-800 border-yellow-100 dark:bg-yellow-900/30 dark:text-yellow-300 dark:border-yellow-800",info:"bg-blue-100 text-blue-800 border-blue-100 dark:bg-blue-900/30 dark:text-blue-300 dark:border-blue-800",default:"bg-gray-100 text-gray-800 border-gray-100 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-700"},faded:{success:"bg-green-50 text-green-700 border-green-200 dark:bg-green-900/20 dark:text-green-300 dark:border-green-700",error:"bg-red-50 text-red-700 border-red-200 dark:bg-red-900/20 dark:text-red-300 dark:border-red-700",warning:"bg-yellow-50 text-yellow-700 border-yellow-200 dark:bg-yellow-900/20 dark:text-yellow-300 dark:border-yellow-700",info:"bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-900/20 dark:text-blue-300 dark:border-blue-700",default:"bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-900 dark:text-gray-300 dark:border-gray-600"},shadow:{success:"bg-white text-green-600 border-green-200 shadow-lg shadow-green-500/25 dark:bg-gray-800 dark:text-green-400 dark:border-green-700 dark:shadow-green-500/10",error:"bg-white text-red-600 border-red-200 shadow-lg shadow-red-500/25 dark:bg-gray-800 dark:text-red-400 dark:border-red-700 dark:shadow-red-500/10",warning:"bg-white text-yellow-600 border-yellow-200 shadow-lg shadow-yellow-500/25 dark:bg-gray-800 dark:text-yellow-400 dark:border-yellow-700 dark:shadow-yellow-500/10",info:"bg-white text-blue-600 border-blue-200 shadow-lg shadow-blue-500/25 dark:bg-gray-800 dark:text-blue-400 dark:border-blue-700 dark:shadow-blue-500/10",default:"bg-white text-gray-600 border-gray-200 shadow-lg shadow-gray-500/25 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 dark:shadow-gray-900/25"}};return r[t][e]||r.solid.default},Vy=e=>{const t={top:"top-4 left-1/2 transform -translate-x-1/2","top-left":"top-4 left-4","top-right":"top-4 right-4",bottom:"bottom-4 left-1/2 transform -translate-x-1/2","bottom-left":"bottom-4 left-4","bottom-right":"bottom-4 right-4"};return t[e]||t["top-right"]},Py=e=>{const t={top:{enter:"animate-[toast-slide-in-top_0.3s_ease-out]",exit:"animate-[toast-slide-out-top_0.2s_ease-in]"},"top-left":{enter:"animate-[toast-slide-in-left_0.3s_ease-out]",exit:"animate-[toast-slide-out-left_0.2s_ease-in]"},"top-right":{enter:"animate-[toast-slide-in-right_0.3s_ease-out]",exit:"animate-[toast-slide-out-right_0.2s_ease-in]"},bottom:{enter:"animate-[toast-slide-in-bottom_0.3s_ease-out]",exit:"animate-[toast-slide-out-bottom_0.2s_ease-in]"},"bottom-left":{enter:"animate-[toast-slide-in-left_0.3s_ease-out]",exit:"animate-[toast-slide-out-left_0.2s_ease-in]"},"bottom-right":{enter:"animate-[toast-slide-in-right_0.3s_ease-out]",exit:"animate-[toast-slide-out-right_0.2s_ease-in]"}};return t[e]||t["top-right"]},Ey=e=>{const t={success:"text-green-500 dark:text-green-400",error:"text-red-500 dark:text-red-400",warning:"text-yellow-500 dark:text-yellow-400",info:"text-blue-500 dark:text-blue-400",default:"text-gray-500 dark:text-gray-400"};return t[e]||t.default},Iy=e=>{const t={success:'<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>',error:'<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd"></path></svg>',warning:'<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"></path></svg>',info:'<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path></svg>',default:'<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path></svg>'};return t[e]||t.default},Ny=()=>`toast-${Date.now()}-${Math.random().toString(36).substring(2,11)}`,Ry=({type:e,customIcon:t})=>{if(t)return f.jsx("div",{className:"flex-shrink-0",children:t});const r=Ey(e),n=Iy(e);return f.jsx("div",{className:`flex-shrink-0 ${r}`,dangerouslySetInnerHTML:{__html:n}})},Vc=({id:e,type:t="default",title:r,description:n,closable:s=!0,action:a,icon:o,size:i="md",variant:l="solid",radius:c="md",position:d="top-right",className:u="",onRemove:p,onClose:m,"data-testid":g})=>{const[w,x]=h.useState(!1),b="flex items-start gap-3 border w-full max-w-sm pointer-events-auto",y=Ty[i],v=Ay[c],C=My(t,l),S=Py(d),j=[b,y,v,C,w?S.exit:S.enter,u].filter(Boolean).join(" "),A=()=>{m&&m(e),x(!0),setTimeout(()=>{p(e)},200)};return h.useEffect(()=>()=>{},[]),f.jsxs("div",{className:j,"data-testid":g,children:[o!==!1&&f.jsx(Ry,{type:t,customIcon:o}),f.jsxs("div",{className:"flex-1 min-w-0",children:[r&&f.jsx("div",{className:"font-semibold text-sm mb-1 break-words",children:r}),n&&f.jsx("div",{className:"text-sm opacity-90 break-words",children:n}),a&&f.jsx("div",{className:"mt-2",children:a})]}),s&&f.jsx("button",{onClick:A,className:"flex-shrink-0 p-1 rounded-sm opacity-70 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-current focus:ring-offset-1 dark:focus:ring-offset-gray-800","aria-label":"Close notification",type:"button",children:f.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})},Pc=h.createContext(void 0);function Dy(e,t){switch(t.type){case"ADD_TOAST":return[...e,t.payload];case"REMOVE_TOAST":return e.filter(r=>r.id!==t.payload);case"REMOVE_ALL_TOASTS":return[];case"UPDATE_TOAST":return e.map(r=>r.id===t.payload.id?{...r,...t.payload.updates}:r);default:return e}}const By=({children:e,position:t="top-right",maxToasts:r=5,defaultDuration:n=5e3})=>{const[s,a]=h.useReducer(Dy,[]),o=h.useCallback(u=>{const p=Ny(),m={type:"default",duration:n,closable:!0,position:t,size:"md",variant:"solid",radius:"md",...u,id:p};return a({type:"ADD_TOAST",payload:m}),m.duration&&m.duration>0&&setTimeout(()=>{a({type:"REMOVE_TOAST",payload:p})},m.duration),p},[n,t]),i=h.useCallback(u=>{a({type:"REMOVE_TOAST",payload:u})},[]),l=h.useCallback(()=>{a({type:"REMOVE_ALL_TOASTS"})},[]),c=h.useCallback((u,p)=>{a({type:"UPDATE_TOAST",payload:{id:u,updates:p}})},[]);h.useEffect(()=>{s.length>r&&s.slice(0,s.length-r).forEach(p=>{a({type:"REMOVE_TOAST",payload:p.id})})},[s,r]);const d={toasts:s,addToast:o,removeToast:i,removeAllToasts:l,updateToast:c};return f.jsx(Pc.Provider,{value:d,children:e})},Ec=()=>{const e=h.useContext(Pc);if(e===void 0)throw new Error("useToastContext must be used within a ToastProvider");return e},Ly=({position:e="top-right",className:t="",maxToasts:r=5,"data-testid":n})=>{const{toasts:s,removeToast:a}=Ec(),o=s.filter(u=>(u.position||e)===e).slice(-r);if(o.length===0)return null;const c=["fixed z-50 flex flex-col gap-2 pointer-events-none",Vy(e),t].filter(Boolean).join(" "),d=f.jsx("div",{className:c,"data-testid":n,children:o.map(u=>f.jsx(Vc,{...u,onRemove:a,"data-testid":`toast-${u.id}`},u.id))});return Jn.createPortal(d,document.body)},Oy=()=>{const{addToast:e,removeToast:t,removeAllToasts:r,updateToast:n}=Ec(),s=h.useCallback((p,m={})=>e({type:"default",description:p,...m}),[e]),a=h.useCallback((p,m={})=>e({type:"success",description:p,...m}),[e]),o=h.useCallback((p,m={})=>e({type:"error",description:p,duration:m.duration??0,...m}),[e]),i=h.useCallback((p,m={})=>e({type:"warning",description:p,...m}),[e]),l=h.useCallback((p,m={})=>e({type:"info",description:p,...m}),[e]),c=h.useCallback(p=>{t(p)},[t]),d=h.useCallback(()=>{r()},[r]),u=h.useCallback((p,m)=>{n(p,m)},[n]);return{toast:s,success:a,error:o,warning:i,info:l,dismiss:c,dismissAll:d,update:u}},zy=50,$y={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"}},scale:{initial:{opacity:0,scale:.85,transformOrigin:"center"},animate:{opacity:1,scale:1,transformOrigin:"center"},exit:{opacity:0,scale:.85,transformOrigin:"center"},transition:{type:"spring",stiffness:400,damping:25,duration:.15}},shift:{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{type:"spring",stiffness:500,damping:30}},bounce:{initial:{opacity:0,scale:.3,y:-20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:-10},transition:{type:"spring",stiffness:400,damping:12,bounce:.6}},rotate:{initial:{opacity:0,scale:.8,rotate:-10},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:10},transition:{type:"spring",stiffness:300,damping:20}},slide:{initial:{opacity:0,x:-20,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:20,scale:.95},transition:{type:"spring",stiffness:400,damping:25}},zoom:{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.3},transition:{type:"spring",stiffness:600,damping:20}},flip:{initial:{opacity:0,rotateX:-90,scale:.9},animate:{opacity:1,rotateX:0,scale:1},exit:{opacity:0,rotateX:90,scale:.9},transition:{type:"spring",stiffness:300,damping:25}},elastic:{initial:{opacity:0,scale:.6,y:-30},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:-15},transition:{type:"spring",stiffness:200,damping:8,bounce:.8}},none:{initial:{opacity:1},animate:{opacity:1},exit:{opacity:1},transition:{duration:0}}},Fy=H({base:["relative","px-2","py-1","rounded-md","text-sm","font-medium","shadow-lg","border","pointer-events-auto","max-w-xs","break-words","z-50"],variants:{size:{xs:"px-1.5 py-0.5 text-xs max-w-36",sm:"px-2 py-1 text-sm max-w-48",md:"px-3 py-1.5 text-sm max-w-xs",lg:"px-4 py-2 text-base max-w-sm"},variant:{dark:["bg-gray-900","text-white","border-gray-700","shadow-lg"],light:["bg-white","text-gray-900","border-gray-200","shadow-lg"],primary:["bg-blue-600","text-white","border-blue-500","shadow-lg"],success:["bg-green-600","text-white","border-green-500","shadow-lg"],warning:["bg-yellow-500","text-yellow-900","border-yellow-400","shadow-lg"],error:["bg-red-600","text-white","border-red-500","shadow-lg"]}},defaultVariants:{size:"md",variant:"dark"}}),Wy=H({base:["absolute","border-solid","border-transparent"],variants:{placement:{top:"bottom-full left-1/2 -translate-x-1/2 border-b-6","top-start":"bottom-full left-2 border-b-6","top-end":"bottom-full right-2 border-b-6",bottom:"top-full left-1/2 -translate-x-1/2 border-t-6","bottom-start":"top-full left-2 border-t-6","bottom-end":"top-full right-2 border-t-6",left:"right-full top-1/2 -translate-y-1/2 border-r-6","left-start":"right-full top-2 border-r-6","left-end":"right-full bottom-2 border-r-6",right:"left-full top-1/2 -translate-y-1/2 border-l-6","right-start":"left-full top-2 border-l-6","right-end":"left-full bottom-2 border-l-6"},variant:{dark:"",light:"",primary:"",success:"",warning:"",error:""},size:{xs:"border-[4px]",sm:"border-[5px]",md:"border-[6px]",lg:"border-[7px]"}},compoundVariants:[{placement:["top","top-start","top-end"],variant:"dark",className:"border-b-gray-900"},{placement:["top","top-start","top-end"],variant:"light",className:"border-b-white"},{placement:["top","top-start","top-end"],variant:"primary",className:"border-b-blue-600"},{placement:["top","top-start","top-end"],variant:"success",className:"border-b-green-600"},{placement:["top","top-start","top-end"],variant:"warning",className:"border-b-yellow-500"},{placement:["top","top-start","top-end"],variant:"error",className:"border-b-red-600"},{placement:["bottom","bottom-start","bottom-end"],variant:"dark",className:"border-t-gray-900"},{placement:["bottom","bottom-start","bottom-end"],variant:"light",className:"border-t-white"},{placement:["bottom","bottom-start","bottom-end"],variant:"primary",className:"border-t-blue-600"},{placement:["bottom","bottom-start","bottom-end"],variant:"success",className:"border-t-green-600"},{placement:["bottom","bottom-start","bottom-end"],variant:"warning",className:"border-t-yellow-500"},{placement:["bottom","bottom-start","bottom-end"],variant:"error",className:"border-t-red-600"},{placement:["left","left-start","left-end"],variant:"dark",className:"border-r-gray-900"},{placement:["left","left-start","left-end"],variant:"light",className:"border-r-white"},{placement:["left","left-start","left-end"],variant:"primary",className:"border-r-blue-600"},{placement:["left","left-start","left-end"],variant:"success",className:"border-r-green-600"},{placement:["left","left-start","left-end"],variant:"warning",className:"border-r-yellow-500"},{placement:["left","left-start","left-end"],variant:"error",className:"border-r-red-600"},{placement:["right","right-start","right-end"],variant:"dark",className:"border-l-gray-900"},{placement:["right","right-start","right-end"],variant:"light",className:"border-l-white"},{placement:["right","right-start","right-end"],variant:"primary",className:"border-l-blue-600"},{placement:["right","right-start","right-end"],variant:"success",className:"border-l-green-600"},{placement:["right","right-start","right-end"],variant:"warning",className:"border-l-yellow-500"},{placement:["right","right-start","right-end"],variant:"error",className:"border-l-red-600"}],defaultVariants:{placement:"top",variant:"dark",size:"md"}}),_y=H({base:["fixed","pointer-events-none","z-50"],variants:{visible:{true:"pointer-events-auto",false:"pointer-events-none"}},defaultVariants:{visible:!1}}),_o=H({base:["inline-block","cursor-help"],variants:{active:{true:"relative",false:""},disabled:{true:"cursor-not-allowed opacity-50",false:""}},defaultVariants:{active:!1,disabled:!1}}),Gy=(e,t,r)=>{let n={...$y[e]};if((e==="shift"||e==="slide"||e==="bounce")&&t){const s=Ky(t),a=Hy[e];a&&a[s]&&(n={...a[s]})}return n},Uy=e=>Go[e]||Go.fade,Ky=e=>e.startsWith("top")?"top":e.startsWith("bottom")?"bottom":e.startsWith("left")?"left":e.startsWith("right")?"right":"top",Hy={shift:{top:{initial:{opacity:0,y:8,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:8,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"top-start":{initial:{opacity:0,y:8,x:-4,scale:.98},animate:{opacity:1,y:0,x:0,scale:1},exit:{opacity:0,y:8,x:-4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"top-end":{initial:{opacity:0,y:8,x:4,scale:.98},animate:{opacity:1,y:0,x:0,scale:1},exit:{opacity:0,y:8,x:4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},bottom:{initial:{opacity:0,y:-8,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-8,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"bottom-start":{initial:{opacity:0,y:-8,x:-4,scale:.98},animate:{opacity:1,y:0,x:0,scale:1},exit:{opacity:0,y:-8,x:-4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"bottom-end":{initial:{opacity:0,y:-8,x:4,scale:.98},animate:{opacity:1,y:0,x:0,scale:1},exit:{opacity:0,y:-8,x:4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},left:{initial:{opacity:0,x:8,scale:.98},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:8,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"left-start":{initial:{opacity:0,x:8,y:-4,scale:.98},animate:{opacity:1,x:0,y:0,scale:1},exit:{opacity:0,x:8,y:-4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"left-end":{initial:{opacity:0,x:8,y:4,scale:.98},animate:{opacity:1,x:0,y:0,scale:1},exit:{opacity:0,x:8,y:4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},right:{initial:{opacity:0,x:-8,scale:.98},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-8,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"right-start":{initial:{opacity:0,x:-8,y:-4,scale:.98},animate:{opacity:1,x:0,y:0,scale:1},exit:{opacity:0,x:-8,y:-4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}},"right-end":{initial:{opacity:0,x:-8,y:4,scale:.98},animate:{opacity:1,x:0,y:0,scale:1},exit:{opacity:0,x:-8,y:4,scale:.98},transition:{type:"spring",stiffness:400,damping:25}}},slide:{top:{initial:{opacity:0,y:20,x:-10},animate:{opacity:1,y:0,x:0},exit:{opacity:0,y:20,x:10},transition:{type:"spring",stiffness:300,damping:20}},bottom:{initial:{opacity:0,y:-20,x:-10},animate:{opacity:1,y:0,x:0},exit:{opacity:0,y:-20,x:10},transition:{type:"spring",stiffness:300,damping:20}},left:{initial:{opacity:0,x:20,y:-10},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:20,y:10},transition:{type:"spring",stiffness:300,damping:20}},right:{initial:{opacity:0,x:-20,y:-10},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:-20,y:10},transition:{type:"spring",stiffness:300,damping:20}}},bounce:{top:{initial:{opacity:0,y:30,scale:.6},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:15,scale:.8},transition:{type:"spring",stiffness:400,damping:12,bounce:.7}},bottom:{initial:{opacity:0,y:-30,scale:.6},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-15,scale:.8},transition:{type:"spring",stiffness:400,damping:12,bounce:.7}},left:{initial:{opacity:0,x:30,scale:.6},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:15,scale:.8},transition:{type:"spring",stiffness:400,damping:12,bounce:.7}},right:{initial:{opacity:0,x:-30,scale:.6},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-15,scale:.8},transition:{type:"spring",stiffness:400,damping:12,bounce:.7}}}},Go={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,delay:.05}},scale:{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:{type:"spring",stiffness:600,damping:25,delay:.05}},shift:{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{type:"spring",stiffness:500,damping:30,delay:.05}},bounce:{initial:{opacity:0,scale:.3},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6},transition:{type:"spring",stiffness:400,damping:15,bounce:.5,delay:.1}},rotate:{initial:{opacity:0,scale:.5,rotate:-45},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.5,rotate:45},transition:{type:"spring",stiffness:300,damping:20,delay:.05}},slide:{initial:{opacity:0,scale:.7},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.7},transition:{type:"spring",stiffness:400,damping:25,delay:.05}},zoom:{initial:{opacity:0,scale:.2},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.2},transition:{type:"spring",stiffness:700,damping:20,delay:.05}},flip:{initial:{opacity:0,rotateX:-90,scale:.8},animate:{opacity:1,rotateX:0,scale:1},exit:{opacity:0,rotateX:90,scale:.8},transition:{type:"spring",stiffness:300,damping:25,delay:.05}},elastic:{initial:{opacity:0,scale:.4},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.7},transition:{type:"spring",stiffness:200,damping:8,bounce:.8,delay:.1}},none:{initial:{opacity:1},animate:{opacity:1},exit:{opacity:1},transition:{duration:0}}},Xy={enter:.15},Ic=700,Nc=300,Rc=!1,Dc=h.createContext({delayDuration:Ic,skipDelayDuration:Nc,disableHoverableContent:Rc,isPointerInTransit:!1,setIsPointerInTransit:()=>{}}),Yy=()=>h.useContext(Dc),qy=({children:e,delayDuration:t=Ic,skipDelayDuration:r=Nc,disableHoverableContent:n=Rc})=>{const[s,a]=h.useState(!1),o={delayDuration:t,skipDelayDuration:r,disableHoverableContent:n,isPointerInTransit:s,setIsPointerInTransit:a};return f.jsx(Dc.Provider,{value:o,children:e})},Uo=(e,t,r,n={mainAxis:8,crossAxis:0})=>{const s=e.getBoundingClientRect(),a=t.getBoundingClientRect(),o={width:window.innerWidth,height:window.innerHeight};let i=0,l=0;switch(r.split("-")[0]){case"top":i=s.left+s.width/2-a.width/2,l=s.top-a.height-n.mainAxis;break;case"bottom":i=s.left+s.width/2-a.width/2,l=s.bottom+n.mainAxis;break;case"left":i=s.left-a.width-n.mainAxis,l=s.top+s.height/2-a.height/2;break;case"right":i=s.right+n.mainAxis,l=s.top+s.height/2-a.height/2;break}r.includes("-start")?r.startsWith("top")||r.startsWith("bottom")?i=s.left+n.crossAxis:l=s.top+n.crossAxis:r.includes("-end")&&(r.startsWith("top")||r.startsWith("bottom")?i=s.right-a.width-n.crossAxis:l=s.bottom-a.height-n.crossAxis);let c=r;return i<8?i=8:i+a.width>o.width-8&&(i=o.width-a.width-8),l<8?r.startsWith("top")&&s.bottom+a.height+n.mainAxis<o.height?(c=r.replace("top","bottom"),l=s.bottom+n.mainAxis):l=8:l+a.height>o.height-8&&(r.startsWith("bottom")&&s.top-a.height-n.mainAxis>0?(c=r.replace("bottom","top"),l=s.top-a.height-n.mainAxis):l=o.height-a.height-8),{x:i,y:l,placement:c}},Zy=e=>{const{placement:t="top",trigger:r="hover",disabled:n=!1,open:s,defaultOpen:a=!1,onOpenChange:o,delay:i,offset:l={mainAxis:8,crossAxis:0}}=e,c=Yy(),d={show:i?.show??(r==="hover"?c?.delayDuration??700:0),hide:i?.hide??(r==="hover"?150:0)},u={mainAxis:l?.mainAxis??8,crossAxis:l?.crossAxis??0},[p,m]=h.useState(a),[g,w]=h.useState(null),[x,b]=h.useState(null),[y,v]=h.useState({x:0,y:0,placement:t}),C=h.useRef(void 0),S=h.useRef(void 0),j=h.useId(),A=s!==void 0,k=A?s:p;h.useEffect(()=>{if(g&&x&&k){const L=Uo(g,x,t,u);v(L)}},[g,x,k,t,u]),h.useEffect(()=>{if(!k||!g||!x)return;const L=()=>{const I=Uo(g,x,t,u);v(I)};return window.addEventListener("resize",L),window.addEventListener("scroll",L,!0),()=>{window.removeEventListener("resize",L),window.removeEventListener("scroll",L,!0)}},[k,g,x,t,l]);const V=h.useCallback(()=>{if(n)return;S.current&&(window.clearTimeout(S.current),S.current=void 0);const L=d.show;L>0?C.current=window.setTimeout(()=>{A?o?.(!0):m(!0)},L):A?o?.(!0):m(!0)},[n,d.show,A,o]),M=h.useCallback(()=>{C.current&&(window.clearTimeout(C.current),C.current=void 0);const L=d.hide;L>0?S.current=window.setTimeout(()=>{A?o?.(!1):m(!1)},L):A?o?.(!1):m(!1)},[d.hide,A,o]),D=h.useCallback(()=>{k?M():V()},[k,V,M]);h.useEffect(()=>()=>{C.current&&window.clearTimeout(C.current),S.current&&window.clearTimeout(S.current)},[]);const z=h.useCallback(()=>{const L={"aria-describedby":k?j:void 0};if(n)return L;switch(r){case"hover":return{...L,onMouseEnter:V,onMouseLeave:M};case"click":return{...L,onClick:D};case"focus":return{...L,onFocus:V,onBlur:M};case"manual":return L;default:return L}},[n,r,j,k,V,M,D]);return{isOpen:k,referenceElement:g,setReferenceElement:w,tooltipElement:x,setTooltipElement:b,position:y,id:j,getTriggerProps:z,openTooltip:V,closeTooltip:M,toggleTooltip:D}},Jy=({variant:e="dark",size:t="md",placement:r,animation:n="fade",className:s})=>{const a=Uy(n);return f.jsx(_.div,{className:Wy({placement:r,variant:e,size:t,className:s}),initial:a.initial,animate:a.animate,exit:a.exit,transition:a.transition})},Qy=({content:e,variant:t="dark",size:r="md",animation:n="fade",arrow:s={enabled:!0},className:a,style:o,id:i,isOpen:l,position:c,onRef:d})=>{const u=()=>Gy(n,c.placement);return f.jsx(We,{children:l&&f.jsxs(_.div,{ref:d,id:i,role:"tooltip",className:Fy({size:r,variant:t,className:a}),style:{position:"fixed",left:c.x,top:c.y,...o},initial:u().initial,animate:u().animate,exit:u().exit,transition:{duration:Xy.enter,ease:"easeOut"},children:[e,s?.enabled&&f.jsx(Jy,{variant:t,size:r,placement:c.placement,animation:n})]})})},ex=e=>{const{children:t,content:r,disabled:n=!1,portal:s=!0,portalContainer:a,asChild:o=!1,className:i,style:l,variant:c="dark",size:d="md",animation:u="fade",arrow:p={enabled:!0},zIndex:m=zy,"aria-label":g}=e,{isOpen:w,setReferenceElement:x,setTooltipElement:b,position:y,id:v,getTriggerProps:C}=Zy(e),S=()=>{const A=C();if(o&&h.isValidElement(t)){const k=t.props,V={...k,...A,ref:M=>{x(M),typeof k.ref=="function"?k.ref(M):k.ref?.current!==void 0&&(k.ref.current=M)},className:_o({active:w,disabled:n,className:k.className})};return h.createElement(t.type,V)}return f.jsx("span",{ref:x,className:_o({active:w,disabled:n,className:i}),style:l,"aria-label":g,...A,children:t})},j=()=>{const A=f.jsx("div",{className:_y({visible:w}),style:{zIndex:m},children:f.jsx(Qy,{content:r,variant:c,size:d,animation:u,arrow:p,id:v,isOpen:w,position:y,onRef:b})});if(s){const k=a||document.body;return Jn.createPortal(A,k)}return A};return f.jsxs(f.Fragment,{children:[S(),j()]})},tx=(e=!1)=>{const t=["flex items-center gap-3","max-w-fit"];return e&&t.push("cursor-pointer","rounded-lg","px-2 py-1","transition-all duration-200 ease-in-out","hover:bg-gray-100 dark:hover:bg-gray-800","focus:outline-none","focus:ring-2 focus:ring-blue-500 focus:ring-offset-2","data-[focus-visible]:ring-2 data-[focus-visible]:ring-blue-500"),t.join(" ")},rx=()=>["flex flex-col","justify-center","min-w-0"].join(" "),nx=()=>["text-sm font-medium","text-gray-900 dark:text-white","truncate"].join(" "),sx=()=>["text-xs","text-gray-500 dark:text-gray-400","truncate"].join(" "),ax=(e="md")=>({sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-12 h-12 text-base"})[e],ox=(e="default")=>({default:"bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-gray-200",primary:"bg-blue-500 text-white",secondary:"bg-purple-500 text-white",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-white",danger:"bg-red-500 text-white"})[e],ix=(e="md",t="default",r=!1,n=!1)=>{const s=["inline-flex items-center justify-center","overflow-hidden","select-none","flex-shrink-0",ax(e),ox(t)];return r?s.push("rounded-md"):s.push("rounded-full"),n&&s.push("opacity-50 cursor-not-allowed"),s.join(" ")},lx=e=>e.split(" ").map(t=>t.charAt(0)).join("").toUpperCase().slice(0,2),cx=()=>["w-full h-full","object-cover","rounded-inherit"].join(" "),Bc=h.forwardRef(({src:e,alt:t,name:r="",size:n="md",className:s="",isSquared:a=!1,color:o="default",isDisabled:i=!1,fallback:l,...c},d)=>{const[u,p]=h.useState(!1),g=[ix(n,o,a,i),s].filter(Boolean).join(" "),w=()=>{p(!0)},x=()=>l||(e&&!u?f.jsx("img",{src:e,alt:t||r,className:cx(),onError:w}):r?f.jsx("span",{children:lx(r)}):f.jsx("svg",{className:"w-full h-full p-1",fill:"currentColor",viewBox:"0 0 20 20",children:f.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})}));return f.jsx("div",{ref:d,className:g,...c,children:x()})});Bc.displayName="Avatar";const Lc=h.forwardRef(({name:e,description:t,isFocusable:r=!1,avatarProps:n={},className:s="",classNames:a,onClick:o,"data-testid":i,...l},c)=>{const u=[tx(r),a?.base,s].filter(Boolean).join(" "),m=[rx(),a?.wrapper].filter(Boolean).join(" "),w=[nx(),a?.name].filter(Boolean).join(" "),b=[sx(),a?.description].filter(Boolean).join(" "),y=()=>{r&&o&&o()},v=C=>{r&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),o?.())};return f.jsxs("div",{ref:c,className:u,onClick:y,onKeyDown:v,tabIndex:r?0:void 0,role:r?"button":void 0,"data-testid":i,...l,children:[f.jsx(Bc,{...n,name:n.name||e,"data-testid":i?`${i}-avatar`:void 0}),(e||t)&&f.jsxs("div",{className:m,children:[e&&f.jsx("span",{className:w,"data-testid":i?`${i}-name`:void 0,children:e}),t&&f.jsx("span",{className:b,"data-testid":i?`${i}-description`:void 0,children:t})]})]})});Lc.displayName="User";const dx=h.createContext(void 0),Oc=()=>{const e=h.useContext(dx);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},ux=({children:e,className:t="",width:r=280,position:n="left",variant:s="temporary",backdrop:a=!0,closeOnBackdropClick:o=!0,closeOnEscape:i=!0})=>{const{isOpen:l,isMobile:c,close:d}=Oc();h.useEffect(()=>{if(!i||!l)return;const b=y=>{y.key==="Escape"&&d()};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[i,l,d]);const u=()=>{o&&d()},p={open:{x:0,transition:{type:"spring",stiffness:300,damping:30}},closed:{x:n==="left"?-r:r,transition:{type:"spring",stiffness:300,damping:30}}},m={open:{opacity:1,transition:{duration:.2}},closed:{opacity:0,transition:{duration:.2}}},g=()=>s==="permanent"||s==="persistent"&&!c?!0:l,w=()=>a&&l&&(c||s==="temporary"),x=["fixed top-0 z-40 h-full","bg-white dark:bg-gray-800","border-gray-200 dark:border-gray-700","shadow-lg dark:shadow-2xl",n==="left"?"left-0 border-r":"right-0 border-l",s==="permanent"&&"lg:relative lg:translate-x-0",s==="persistent"&&!c&&"md:relative md:translate-x-0",t].filter(Boolean).join(" ");return f.jsxs(f.Fragment,{children:[f.jsx(We,{children:w()&&f.jsx(_.div,{initial:"closed",animate:"open",exit:"closed",variants:m,className:"fixed inset-0 z-30 bg-black/50 backdrop-blur-sm",onClick:u,role:"button",tabIndex:-1,"aria-label":"Close sidebar"})}),f.jsx(We,{mode:"wait",children:g()&&f.jsx(_.aside,{initial:"closed",animate:"open",exit:"closed",variants:p,className:x,style:{width:typeof r=="number"?`${r}px`:r},role:"complementary","aria-label":"Sidebar navigation",children:f.jsx("div",{className:"flex flex-col h-full",children:e})})})]})},fx=({children:e,className:t="",showCloseButton:r=!1,onClose:n})=>{const s=["flex items-center justify-between","px-4 py-3","border-b border-gray-200 dark:border-gray-700","bg-gray-50 dark:bg-gray-900",t].filter(Boolean).join(" ");return f.jsxs("div",{className:s,children:[f.jsx("div",{className:"flex-1",children:e}),r&&f.jsx("button",{onClick:n,className:"ml-2 p-1 rounded-md hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors","aria-label":"Close sidebar",children:f.jsx("svg",{className:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})},px=({children:e,className:t=""})=>{const r=["flex-1 overflow-y-auto","px-4 py-2","scrollbar-thin scrollbar-thumb-gray-300 dark:scrollbar-thumb-gray-600","scrollbar-track-gray-100 dark:scrollbar-track-gray-800",t].filter(Boolean).join(" ");return f.jsx("div",{className:r,children:e})},hx=({children:e,className:t=""})=>{const r=["flex items-center","px-4 py-3","border-t border-gray-200 dark:border-gray-700","bg-gray-50 dark:bg-gray-900",t].filter(Boolean).join(" ");return f.jsx("div",{className:r,children:e})},mx=({children:e,icon:t,isActive:r=!1,href:n,to:s,onClick:a,className:o="",disabled:i=!1})=>{const l=s||n,c=["flex items-center gap-3","px-3 py-2 mx-2 my-1","rounded-lg","text-sm font-medium","transition-colors duration-200","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1","dark:focus:ring-offset-gray-800"],d=i?["text-gray-400 dark:text-gray-600","cursor-not-allowed"]:r?["bg-blue-100 dark:bg-blue-900/30","text-blue-900 dark:text-blue-100","border-l-4 border-blue-500","pl-2 ml-2"]:["text-gray-700 dark:text-gray-300","hover:bg-gray-100 dark:hover:bg-gray-700","hover:text-gray-900 dark:hover:text-white"],u=[...c,...d,o].filter(Boolean).join(" "),p=f.jsxs(f.Fragment,{children:[t&&f.jsx("span",{className:`flex-shrink-0 ${i?"opacity-50":""}`,children:t}),f.jsx("span",{className:"flex-1 truncate",children:e})]}),m={className:u,onClick:i?void 0:a,"aria-disabled":i,role:l?"link":"button"};if(l&&!i){if(s)return f.jsx(Yr,{to:s,className:u,onClick:a,children:p});if(n)return f.jsx("a",{href:n,...m,children:p})}return f.jsx("button",{type:"button",...m,disabled:i,children:p})},gx=({children:e,className:t="","aria-label":r="Toggle sidebar"})=>{const{isOpen:n,toggle:s}=Oc(),a=["inline-flex items-center justify-center","w-10 h-10","rounded-md","text-gray-500 dark:text-gray-400","hover:bg-gray-100 dark:hover:bg-gray-700","hover:text-gray-900 dark:hover:text-white","focus:outline-none focus:ring-2 focus:ring-blue-500","transition-colors duration-200",t].filter(Boolean).join(" ");return f.jsx("button",{onClick:s,className:a,"aria-label":r,"aria-expanded":n,children:e||f.jsx(_.div,{animate:{rotate:n?180:0},transition:{duration:.2},children:f.jsx(bx,{})})})},bx=()=>f.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})}),yx=h.createContext(null),zc=()=>{const e=h.useContext(yx);if(!e)throw new Error("useLibraryRouter must be used within a LibraryRouterProvider");return e},xx=({routes:e,className:t="",renderItem:r})=>{const{currentPath:n}=zc(),s=(a,o)=>f.jsxs(Yr,{to:a.path,className:`flex items-center gap-3 px-3 py-2 mx-2 my-1 rounded-lg text-sm font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1 dark:focus:ring-offset-gray-800 ${o?"bg-blue-100 dark:bg-blue-900/30 text-blue-900 dark:text-blue-100 border-l-4 border-blue-500 pl-2 ml-2":"text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 hover:text-gray-900 dark:hover:text-white"}`,children:[a.icon&&f.jsx("span",{className:"flex-shrink-0",children:a.icon}),f.jsx("span",{className:"flex-1 truncate",children:a.label})]},a.path);return f.jsx("nav",{className:t,children:e.map(a=>f.jsxs("div",{className:"pb-2",children:[f.jsx("h3",{className:"px-3 py-2 text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:a.label}),f.jsx("div",{className:"space-y-1",children:a.routes.map(o=>{const i=o.exact?n===o.path:n.startsWith(o.path);return r?r(o,i):s(o,i)})})]},a.label))})},vx=()=>{const{navigate:e,goBack:t,goForward:r,currentPath:n,routes:s}=zc(),a=h.useCallback((c,d)=>{d?window.history.replaceState(null,"",c):e(c)},[e]),o=h.useCallback((c,d=!1)=>d?n===c:n.startsWith(c),[n]),i=h.useCallback(()=>s.find(c=>c.exact?n===c.path:n.startsWith(c.path)),[s,n]),l=h.useCallback(c=>s.find(d=>d.path===c),[s]);return{navigateTo:a,goBack:t,goForward:r,isActive:o,currentPath:n,getCurrentRoute:i,getRouteByPath:l,routes:s}},wx=(e,t)=>e.toLowerCase().includes(t.toLowerCase());function Cx(e){return e?Array.from(e):[]}function yn(e){if(typeof e=="object"&&e!==null){const t=e;return t.textValue||t.label||t.value||t.title||String(t.key||"")}return String(e)}function bt(e,t){if(typeof e=="object"&&e!==null){const r=e;return r.key??r.id??t}return t}function $c(e){const{items:t,defaultItems:r,inputValue:n,defaultInputValue:s="",selectedKey:a,defaultSelectedKey:o,menuTrigger:i="input",allowsCustomValue:l=!1,allowsEmptyCollection:c=!0,shouldCloseOnBlur:d=!0,defaultFilter:u=wx,filterOptions:p,isDisabled:m=!1,isReadOnly:g=!1,autoFocus:w=!1,onInputChange:x,onSelectionChange:b,onOpenChange:y,onFocus:v,onBlur:C,onFocusChange:S,onKeyDown:j,onKeyUp:A,onClose:k,onClear:V,...M}=e,D=h.useRef(null),z=h.useRef(null),[L,I]=h.useState(s),[R,B]=h.useState(o||null),[P,T]=h.useState(!1),[N]=h.useState(!1),[E,F]=h.useState(null),$=n??L,O=a??R,K=h.useMemo(()=>Cx(t??r),[t,r]),W=h.useMemo(()=>!$.trim()&&i!=="focus"?c?K:[]:$.trim()?K.filter(Q=>{const de=yn(Q);return u(de,$)}):K,[K,$,u,c,i]),J=h.useCallback(Q=>{if(n===void 0&&I(Q),x?.(Q),i==="input"&&Q.trim()&&!P&&(T(!0),y?.(!0,"input")),O!==null&&!l){const de=K.find((ge,_e)=>bt(ge,_e)===O);de&&yn(de)!==Q&&(a===void 0&&B(null),b?.(null))}},[n,x,i,P,y,O,l,K,a,b]),Y=h.useCallback(Q=>{a===void 0&&B(Q),b?.(Q);const de=K.find((ge,_e)=>bt(ge,_e)===Q);if(de){const ge=yn(de);J(ge)}T(!1),y?.(!1),k?.()},[a,b,K,J,y,k]),Z=h.useCallback((Q,de)=>{T(Q),y?.(Q,de),Q||(F(null),k?.())},[y,k]),ne=h.useCallback(Q=>{if(j?.(Q),!(m||g))switch(Q.key){case"ArrowDown":if(Q.preventDefault(),!P)T(!0),y?.(!0,"manual");else{const de=E!==null?W.findIndex((_e,Lt)=>bt(_e,Lt)===E):-1,ge=de<W.length-1?de+1:0;W[ge]&&F(bt(W[ge],ge))}break;case"ArrowUp":if(Q.preventDefault(),!P)T(!0),y?.(!0,"manual");else{const de=E!==null?W.findIndex((_e,Lt)=>bt(_e,Lt)===E):W.length,ge=de>0?de-1:W.length-1;W[ge]&&F(bt(W[ge],ge))}break;case"Enter":Q.preventDefault(),P&&E!==null&&Y(E);break;case"Escape":Q.preventDefault(),P&&(T(!1),y?.(!1),k?.());break;case"Tab":P&&(T(!1),y?.(!1),k?.());break}},[j,m,g,P,y,E,W,Y,k]),ae=h.useCallback(Q=>{v?.(Q),S?.(!0),i==="focus"&&!P&&(T(!0),y?.(!0,"focus"))},[v,S,i,P,y]),Te=h.useCallback(Q=>{C?.(Q),S?.(!1),d&&P&&setTimeout(()=>{T(!1),y?.(!1),k?.()},150)},[C,S,d,P,y,k]),he=h.useCallback(()=>{J(""),a===void 0&&B(null),b?.(null),V?.(),D.current&&D.current.focus()},[J,a,b,V]),at=h.useCallback(Q=>{Y(Q)},[Y]),Le=h.useCallback(()=>{P||Z(!0,"manual")},[P,Z]),se=h.useCallback(()=>{P&&Z(!1)},[P,Z]);h.useEffect(()=>{w&&D.current&&D.current.focus()},[w]),h.useEffect(()=>{const Q=de=>{P&&z.current&&!z.current.contains(de.target)&&(T(!1),y?.(!1),k?.())};if(P)return document.addEventListener("mousedown",Q),()=>{document.removeEventListener("mousedown",Q)}},[P,y,k]);const{size:Se,...ye}=M,Ze=h.useMemo(()=>({...ye,ref:D,value:$,onChange:Q=>J(Q.target.value),onFocus:ae,onBlur:Te,onKeyDown:ne,onKeyUp:A,disabled:m,readOnly:g,"aria-expanded":P,"aria-haspopup":"listbox","aria-autocomplete":"list",role:"combobox"}),[ye,$,J,ae,Te,ne,A,m,g,P]),Oe=h.useMemo(()=>({role:"listbox","aria-label":"Suggestions"}),[]),Zr=h.useMemo(()=>({isOpen:P,onOpenChange:Z}),[P,Z]),ur=h.useMemo(()=>({type:"button",onClick:he,"aria-label":"Clear",tabIndex:-1}),[he]),Ae=h.useMemo(()=>({type:"button",onClick:()=>{P?se():Le()},"aria-label":P?"Close menu":"Open menu","aria-expanded":P,tabIndex:-1}),[P,se,Le]);return{inputValue:$,selectedKey:O,isOpen:P,isLoading:N,filteredItems:W,focusedKey:E,inputProps:Ze,listboxProps:Oe,popoverProps:Zr,clearButtonProps:ur,selectorButtonProps:Ae,containerRef:z,clearValue:he,selectItem:at,close:se,open:Le,setInputValue:J,setSelectedKey:Q=>{Q===null?(a===void 0&&B(null),b?.(null)):Y(Q)},setIsOpen:Z}}const kx=H({base:["group relative w-full","inline-flex flex-col","text-foreground-500"],variants:{variant:{flat:"",bordered:"",faded:"",underlined:""},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},size:{sm:"",md:"",lg:""},labelPlacement:{inside:"",outside:"flex-col","outside-left":"flex-row items-center"},fullWidth:{true:"w-full",false:"w-auto"},isDisabled:{true:"opacity-disabled cursor-not-allowed",false:""},disableAnimation:{true:"",false:"transition-colors duration-200 ease-in-out"}},defaultVariants:{variant:"flat",color:"default",size:"md",labelPlacement:"inside",fullWidth:!0,isDisabled:!1,disableAnimation:!1}}),Sx=H({base:["relative flex w-full","min-h-unit-10 items-center gap-2","px-3 py-2","transition-colors duration-200","group-data-[focus=true]:outline-2","group-data-[focus=true]:outline-focus","group-data-[focus=true]:outline-offset-2"],variants:{variant:{flat:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"],bordered:["border-2 border-default-200","data-[hover=true]:border-default-300","group-data-[focus=true]:border-default-foreground","bg-transparent"],faded:["bg-default-100 border-2 border-transparent","data-[hover=true]:border-default-200","group-data-[focus=true]:border-default-300","group-data-[focus=true]:bg-default-50"],underlined:["rounded-none border-b-2 border-default-300","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground","bg-transparent px-1 pb-0","after:content-[''] after:w-0 after:origin-center","after:absolute after:left-1/2 after:-translate-x-1/2","after:bottom-0 after:h-[2px]","after:transition-[width] after:duration-300","group-data-[focus=true]:after:w-full"]},color:{default:"",primary:{flat:"group-data-[focus=true]:bg-primary-50",bordered:"group-data-[focus=true]:border-primary",faded:"group-data-[focus=true]:border-primary group-data-[focus=true]:bg-primary-50",underlined:["group-data-[focus=true]:border-primary","after:bg-primary"]},secondary:{flat:"group-data-[focus=true]:bg-secondary-50",bordered:"group-data-[focus=true]:border-secondary",faded:"group-data-[focus=true]:border-secondary group-data-[focus=true]:bg-secondary-50",underlined:["group-data-[focus=true]:border-secondary","after:bg-secondary"]},success:{flat:"group-data-[focus=true]:bg-success-50",bordered:"group-data-[focus=true]:border-success",faded:"group-data-[focus=true]:border-success group-data-[focus=true]:bg-success-50",underlined:["group-data-[focus=true]:border-success","after:bg-success"]},warning:{flat:"group-data-[focus=true]:bg-warning-50",bordered:"group-data-[focus=true]:border-warning",faded:"group-data-[focus=true]:border-warning group-data-[focus=true]:bg-warning-50",underlined:["group-data-[focus=true]:border-warning","after:bg-warning"]},danger:{flat:"group-data-[focus=true]:bg-danger-50",bordered:"group-data-[focus=true]:border-danger",faded:"group-data-[focus=true]:border-danger group-data-[focus=true]:bg-danger-50",underlined:["group-data-[focus=true]:border-danger","after:bg-danger"]}},size:{sm:"min-h-unit-8 px-2 py-1",md:"min-h-unit-10 px-3 py-2",lg:"min-h-unit-12 px-4 py-3"},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},labelPlacement:{inside:"",outside:"","outside-left":""},isInvalid:{true:{flat:"bg-danger-50 text-danger",bordered:"border-danger data-[hover=true]:border-danger",faded:"border-danger bg-danger-50",underlined:"border-danger after:bg-danger"},false:""},isDisabled:{true:"opacity-disabled pointer-events-none",false:""}},compoundVariants:[{variant:"underlined",size:"sm",class:"px-1 pb-0"},{variant:"underlined",size:"md",class:"px-1 pb-0"},{variant:"underlined",size:"lg",class:"px-1 pb-0"}],defaultVariants:{variant:"flat",color:"default",size:"md",radius:"md",labelPlacement:"inside",isInvalid:!1,isDisabled:!1}});H({base:["w-full font-normal bg-transparent outline-none","placeholder:text-foreground-500","text-small text-foreground"],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},isDisabled:{true:"pointer-events-none",false:""}},defaultVariants:{size:"md",isDisabled:!1}});H({base:["block text-foreground-600","cursor-pointer","transition-colors duration-200","will-change-auto","origin-top-left"],variants:{size:{sm:"text-small",md:"text-small",lg:"text-medium"},labelPlacement:{inside:["absolute left-3 rtl:left-auto rtl:right-3","pointer-events-none z-10","transition-[transform,color,left,opacity] duration-200 ease-out","group-data-[filled=true]:scale-85","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]","group-data-[filled=true]:pointer-events-auto"],outside:["relative text-foreground pb-1.5","will-change-auto !duration-200 !ease-out transition-colors motion-reduce:transition-none"],"outside-left":["relative text-foreground pr-2 rtl:pr-0 rtl:pl-2","will-change-auto !duration-200 !ease-out transition-colors motion-reduce:transition-none"]},color:{default:"",primary:"group-data-[focus=true]:text-primary",secondary:"group-data-[focus=true]:text-secondary",success:"group-data-[focus=true]:text-success",warning:"group-data-[focus=true]:text-warning",danger:"group-data-[focus=true]:text-danger"},isRequired:{true:"after:content-['*'] after:text-danger after:ml-0.5",false:""},isInvalid:{true:"!text-danger",false:""},isDisabled:{true:"opacity-disabled pointer-events-none",false:""}},compoundVariants:[{labelPlacement:"inside",size:"sm",class:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]","left-2 rtl:left-auto rtl:right-2"]},{labelPlacement:"inside",size:"lg",class:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]","left-4 rtl:left-auto rtl:right-4"]}],defaultVariants:{size:"md",labelPlacement:"inside",color:"default",isRequired:!1,isInvalid:!1,isDisabled:!1}});H({base:"text-small text-foreground-400 px-1",variants:{color:{default:"text-foreground-400",primary:"text-primary-600",secondary:"text-secondary-600",success:"text-success-600",warning:"text-warning-600",danger:"text-danger-500"},isInvalid:{true:"text-danger-500",false:""}},defaultVariants:{color:"default",isInvalid:!1}});const jx=H({base:["w-full p-1 min-w-[200px]","bg-content1 border border-divider","rounded-medium shadow-large"],variants:{disableAnimation:{true:"",false:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-200"}},defaultVariants:{disableAnimation:!1}});H({base:"max-h-64 overflow-auto",variants:{maxHeight:{sm:"max-h-32",md:"max-h-64",lg:"max-h-96",none:"max-h-none"}},defaultVariants:{maxHeight:"md"}});H({base:"flex items-center gap-1.5"});H({base:["flex items-center justify-center","w-4 h-4 min-w-4 min-h-4","text-default-400 hover:text-default-600","cursor-pointer transition-colors","opacity-0 data-[visible=true]:opacity-100","transition-opacity duration-150"],variants:{size:{sm:"w-3 h-3 min-w-3 min-h-3",md:"w-4 h-4 min-w-4 min-h-4",lg:"w-5 h-5 min-w-5 min-h-5"}},defaultVariants:{size:"md"}});H({base:["flex items-center justify-center","w-4 h-4 min-w-4 min-h-4","text-default-400 hover:text-default-600","cursor-pointer transition-all duration-150","data-[open=true]:rotate-180"],variants:{size:{sm:"w-3 h-3 min-w-3 min-h-3",md:"w-4 h-4 min-w-4 min-h-4",lg:"w-5 h-5 min-w-5 min-h-5"},disableRotation:{true:"data-[open=true]:rotate-0",false:""}},defaultVariants:{size:"md",disableRotation:!1}});H({base:["flex group relative justify-between items-center","cursor-pointer tap-highlight-transparent","px-2 py-1.5 w-full h-full box-border rounded-small","subpixel-antialiased outline-none","data-[pressed=true]:opacity-70","transition-opacity motion-reduce:transition-none"],variants:{color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},variant:{solid:"",bordered:"border-2 border-transparent bg-transparent",light:"bg-transparent",flat:"",faded:"border-2 border-transparent",shadow:""},isDisabled:{true:"opacity-disabled cursor-not-allowed",false:""},isSelected:{true:"",false:""},showDivider:{true:"mb-1.5 border-b border-divider pb-1.5",false:""}},compoundVariants:[{color:"default",variant:"solid",class:["bg-default text-default-foreground","data-[hover=true]:bg-default-100","data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"]},{color:"default",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-default-100","data-[selected=true]:bg-default-100 data-[selected=true]:text-default-foreground"]},{color:"primary",variant:"solid",class:["bg-primary text-primary-foreground","data-[hover=true]:bg-primary-500","data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"]},{color:"primary",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-primary-100","data-[selected=true]:bg-primary-100 data-[selected=true]:text-primary"]},{color:"secondary",variant:"solid",class:["bg-secondary text-secondary-foreground","data-[hover=true]:bg-secondary-500","data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"]},{color:"secondary",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-secondary-100","data-[selected=true]:bg-secondary-100 data-[selected=true]:text-secondary"]},{color:"success",variant:"solid",class:["bg-success text-success-foreground","data-[hover=true]:bg-success-500","data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"]},{color:"success",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-success-100","data-[selected=true]:bg-success-100 data-[selected=true]:text-success"]},{color:"warning",variant:"solid",class:["bg-warning text-warning-foreground","data-[hover=true]:bg-warning-500","data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"]},{color:"warning",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-warning-100","data-[selected=true]:bg-warning-100 data-[selected=true]:text-warning"]},{color:"danger",variant:"solid",class:["bg-danger text-danger-foreground","data-[hover=true]:bg-danger-500","data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"]},{color:"danger",variant:"flat",class:["bg-transparent text-foreground","data-[hover=true]:bg-danger-100","data-[selected=true]:bg-danger-100 data-[selected=true]:text-danger"]}],defaultVariants:{color:"default",variant:"flat",isDisabled:!1,isSelected:!1,showDivider:!1}});const Tx=H({slots:{base:["flex group relative justify-between items-center","cursor-pointer tap-highlight-transparent","px-2 py-1.5 w-full h-full box-border rounded-small","subpixel-antialiased outline-none","data-[pressed=true]:opacity-70","transition-opacity motion-reduce:transition-none"],wrapper:["w-full flex items-center gap-2"],title:["flex-1 text-small font-normal truncate","text-foreground group-data-[selected=true]:text-inherit"],description:["w-full text-tiny text-foreground-400 truncate","group-data-[selected=true]:text-inherit group-data-[selected=true]:opacity-70"],startContent:["flex items-center justify-center","text-foreground-400 group-data-[selected=true]:text-inherit"],endContent:["flex items-center justify-center","text-foreground-400 group-data-[selected=true]:text-inherit"]},variants:{color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},variant:{solid:{},bordered:{base:"border-2 border-transparent bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-2 border-transparent"},shadow:{}},size:{sm:{base:"px-1 py-1 text-tiny gap-1",title:"text-tiny",description:"text-tiny"},md:{base:"px-2 py-1.5 text-small gap-2",title:"text-small",description:"text-tiny"},lg:{base:"px-3 py-2 text-medium gap-3",title:"text-medium",description:"text-small"}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"},false:{}},isSelected:{true:{},false:{}},isFocused:{true:{base:"data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-offset-2 data-[focus-visible=true]:outline-focus"},false:{}},showDivider:{true:{base:"mb-1.5 border-b border-divider pb-1.5"},false:{}}},compoundVariants:[{color:"default",variant:"solid",class:{base:["bg-default text-default-foreground","data-[hover=true]:bg-default-100","data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"]}},{color:"default",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-default-100","data-[selected=true]:bg-default-100 data-[selected=true]:text-default-foreground"]}},{color:"primary",variant:"solid",class:{base:["bg-primary text-primary-foreground","data-[hover=true]:bg-primary-500","data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"]}},{color:"primary",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-primary-100","data-[selected=true]:bg-primary-100 data-[selected=true]:text-primary"]}},{color:"secondary",variant:"solid",class:{base:["bg-secondary text-secondary-foreground","data-[hover=true]:bg-secondary-500","data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"]}},{color:"secondary",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-secondary-100","data-[selected=true]:bg-secondary-100 data-[selected=true]:text-secondary"]}},{color:"success",variant:"solid",class:{base:["bg-success text-success-foreground","data-[hover=true]:bg-success-500","data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"]}},{color:"success",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-success-100","data-[selected=true]:bg-success-100 data-[selected=true]:text-success"]}},{color:"warning",variant:"solid",class:{base:["bg-warning text-warning-foreground","data-[hover=true]:bg-warning-500","data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"]}},{color:"warning",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-warning-100","data-[selected=true]:bg-warning-100 data-[selected=true]:text-warning"]}},{color:"danger",variant:"solid",class:{base:["bg-danger text-danger-foreground","data-[hover=true]:bg-danger-500","data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"]}},{color:"danger",variant:"flat",class:{base:["bg-transparent text-foreground","data-[hover=true]:bg-danger-100","data-[selected=true]:bg-danger-100 data-[selected=true]:text-danger"]}}],defaultVariants:{color:"default",variant:"flat",size:"md",isDisabled:!1,isSelected:!1,isFocused:!1,showDivider:!1}});H({base:"relative mb-2",variants:{showDivider:{true:"pb-1 mb-2 border-b border-divider",false:""}},defaultVariants:{showDivider:!1}});const Ax=H({slots:{base:["relative mb-2"],heading:["text-small font-medium text-default-500","px-2 py-1 select-none"],group:["w-full"],divider:["w-full h-px bg-divider my-2"]},variants:{showDivider:{true:{base:"pb-1 mb-2"},false:{}}},defaultVariants:{showDivider:!1}});H({base:["text-small font-medium text-default-500","px-2 py-1"]});H({base:"space-y-0.5"});const Br=h.forwardRef(({children:e,className:t,classNames:r,textValue:n,startContent:s,endContent:a,description:o,isSelected:i=!1,isFocused:l=!1,isDisabled:c=!1,showDivider:d=!1,variant:u="flat",color:p="default",size:m="md",itemKey:g,onSelectionChange:w,onPress:x,onPressStart:b,onPressEnd:y,onClick:v,onMouseDown:C,onKeyDown:S,...j},A)=>{const[k,V]=h.useState(!1),M=h.useCallback(()=>{c||(x?.(),g!==void 0&&w&&w(g))},[c,x,g,w]),D=h.useCallback(N=>{c||(N.preventDefault(),N.stopPropagation(),v?.(N),M())},[c,v,M]),z=h.useCallback(N=>{c||(N.preventDefault(),C?.(N),b?.())},[c,C,b]),L=h.useCallback(()=>{c||y?.()},[c,y]),I=h.useCallback(N=>{c||(S?.(N),(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),N.stopPropagation(),M()))},[c,S,M]),R=h.useMemo(()=>Tx({variant:u,color:p,size:m,isSelected:i,isFocused:l,isDisabled:c,showDivider:d}),[u,p,m,i,l,c,d]),B=o!=null&&o!=="",P=s!=null,T=a!=null;return f.jsx("li",{ref:A,className:q(R.base(),r?.base,t),role:"option","aria-selected":i,"aria-disabled":c,tabIndex:l?0:-1,"data-key":g,"data-selected":i,"data-focused":l,"data-disabled":c,"data-hover":k,onClick:D,onMouseDown:z,onMouseUp:L,onMouseEnter:()=>V(!0),onMouseLeave:()=>V(!1),onKeyDown:I,...j,children:f.jsxs("div",{className:q(R.wrapper(),r?.wrapper),children:[P&&f.jsx("div",{className:q(R.startContent(),r?.startContent),children:s}),f.jsxs("div",{className:"flex-1 flex flex-col justify-center min-w-0",children:[f.jsx("div",{className:q(R.title(),r?.title),children:e||n}),B&&f.jsx("div",{className:q(R.description(),r?.description),children:o})]}),T&&f.jsx("div",{className:q(R.endContent(),r?.endContent),children:a})]})})});Br.displayName="AutocompleteItem";const Mx=({className:e})=>f.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),Vx=({className:e})=>f.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})});function Px(e,t){if(typeof e=="object"&&e!==null){const r=e;return r.key??r.id??t}return t}function Ex(e){if(typeof e=="object"&&e!==null){const t=e;return t.textValue||t.label||t.value||t.title||String(t.key||"")}return String(e)}const Fc=h.forwardRef(({label:e,placeholder:t="Search...",description:r,errorMessage:n,startContent:s,endContent:a,variant:o="flat",color:i="default",size:l="md",labelPlacement:c="inside",isDisabled:d=!1,isReadOnly:u=!1,isRequired:p=!1,isInvalid:m=!1,isClearable:g=!0,fullWidth:w=!0,disableAnimation:x=!1,disableSelectorIconRotation:b=!1,selectorIcon:y,clearIcon:v,className:C,classNames:S,popoverProps:j,listboxProps:A,inputProps:k,selectorButtonProps:V,clearButtonProps:M,children:D,...z},L)=>{const[I,R]=h.useState(!1),{inputValue:B,selectedKey:P,isOpen:T,filteredItems:N,focusedKey:E,inputProps:F,listboxProps:$,clearButtonProps:O,selectorButtonProps:K,containerRef:W,selectItem:J}=$c(z),Y=h.useMemo(()=>kx({variant:o,color:i,size:l,labelPlacement:c,isDisabled:d,fullWidth:w}),[o,i,l,c,d,w]),Z=h.useMemo(()=>Sx({variant:o,color:i,size:l,isDisabled:d,isInvalid:m}),[o,i,l,d,m]),ne=h.useMemo(()=>jx({disableAnimation:x}),[x]),ae=h.useCallback(se=>{J(se)},[J]),Te=h.useCallback(()=>D||N.map((se,Se)=>{const ye=Px(se,Se),Ze=Ex(se);if(typeof se=="object"&&se!==null){const Oe=se;return f.jsx(Br,{itemKey:ye,textValue:Ze,isSelected:P===ye,isFocused:E===ye,variant:o==="underlined"?"flat":o,color:i,size:l,startContent:Oe.startContent,endContent:Oe.endContent,description:Oe.description,onSelectionChange:ae,children:Oe.label||Ze},ye)}return f.jsx(Br,{itemKey:ye,textValue:Ze,isSelected:P===ye,isFocused:E===ye,variant:o==="underlined"?"flat":o,color:i,size:l,onSelectionChange:ae,children:Ze},ye)}),[D,N,P,E,o,i,l,ae]),he=h.useMemo(()=>f.jsx(Mx,{className:q("w-4 h-4 text-default-400 transition-transform",!b&&T&&"rotate-180")}),[b,T]),at=h.useMemo(()=>f.jsx(Vx,{className:"w-4 h-4 text-default-400"}),[]),Le=g&&B&&!d&&!u;return f.jsxs("div",{ref:se=>{typeof L=="function"?L(se):L&&(L.current=se),W&&(W.current=se)},className:q("relative",Y,S?.base,C),children:[e&&c==="outside"&&f.jsxs("label",{className:"text-small font-medium text-foreground pb-1 block",children:[e,p&&f.jsx("span",{className:"text-danger ml-1",children:"*"})]}),f.jsxs("div",{className:q(Z,S?.inputWrapper),style:{zIndex:1},children:[s&&f.jsx("div",{className:"flex items-center",children:s}),f.jsx("input",{...F,...k,className:q("w-full bg-transparent outline-none placeholder:text-foreground-500",F.className,k?.className),placeholder:T||I||B?t:"",disabled:d,readOnly:u,required:p,onFocus:se=>{R(!0),F.onFocus?.(se)},onBlur:se=>{R(!1),F.onBlur?.(se)}}),e&&c==="inside"&&f.jsxs("label",{className:q("absolute left-3 transition-all duration-200 pointer-events-none z-10","text-small text-foreground-500","top-1/2 -translate-y-1/2 origin-left",(B||T||I)&&["text-tiny scale-85 -translate-y-[1.875rem] px-1 bg-content1","text-foreground-600"]),style:{zIndex:10},children:[e,p&&f.jsx("span",{className:"text-danger ml-1",children:"*"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[a,Le&&f.jsx("button",{...O,...M,className:q("p-1 rounded-small opacity-70 hover:opacity-100 transition-opacity",O.className,M?.className),children:v||at}),f.jsx("button",{...K,...V,className:q("p-1 rounded-small opacity-70 hover:opacity-100 transition-opacity",K.className,V?.className),disabled:d,children:y||he})]})]}),r&&f.jsx("div",{className:"text-tiny text-foreground-400 mt-1",children:r}),m&&n&&f.jsx("div",{className:"text-tiny text-danger mt-1",children:typeof n=="function"?n({isInvalid:!0,validationErrors:[],validationDetails:{}}):n}),f.jsx(We,{children:T&&f.jsx(_.div,{initial:x?void 0:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:x?void 0:{opacity:0,y:-8},transition:{duration:x?0:.15,ease:"easeOut"},className:q("absolute top-full left-0 right-0 mt-1 z-[9999]",ne,S?.popoverContent,j?.className),style:{zIndex:9999},children:f.jsx("div",{className:q("max-h-64 overflow-y-auto overflow-x-hidden bg-content1 rounded-medium",S?.listboxWrapper),children:f.jsxs("ul",{...$,...A,className:q("w-full p-1 bg-content1 rounded-medium",$.className,A?.className),children:[Te(),N.length===0&&!D&&f.jsx("li",{className:"px-2 py-4 text-small text-foreground-400 text-center",children:A?.emptyContent||"No results found"})]})})})})]})});Fc.displayName="Autocomplete";const Wc=h.forwardRef(({title:e,children:t,className:r,classNames:n,showDivider:s=!1,...a},o)=>{const i=h.useMemo(()=>Ax({showDivider:s}),[s]),l=e!=null&&e!=="";return f.jsxs("div",{ref:o,className:q(i.base(),n?.base,r),role:"group",...a,children:[l&&f.jsx("div",{className:q(i.heading(),n?.heading),role:"presentation",children:e}),f.jsx("div",{className:q(i.group(),n?.group),role:"group",children:t}),s&&f.jsx("div",{className:q(i.divider(),n?.divider),role:"separator"})]})});Wc.displayName="AutocompleteSection";const Ix=(e,t,r=1,n=!0)=>{const s=[],a=(l,c,d=!1,u=!1)=>({type:l,value:c,isActive:d,isDisabled:u,key:`${l}-${c}`});s.push(a("page",1,e===1));const o=Math.max(2,e-r),i=Math.min(t-1,e+r);n&&o>2&&s.push(a("dots","...",!1,!0));for(let l=o;l<=i;l++)l!==1&&l!==t&&s.push(a("page",l,e===l));return n&&i<t-1&&s.push(a("dots","...",!1,!0)),t>1&&s.push(a("page",t,e===t)),s};function _c(e){const{total:t,page:r,defaultPage:n=1,initialPage:s,siblings:a=1,showDots:o=!0,loop:i=!1,onChange:l}=e,c=r!==void 0,d=s??n,[u,p]=h.useState(d),g=Math.max(1,Math.min(t,c?r:u)),w=h.useMemo(()=>t<=0?[]:Ix(g,t,a,o),[g,t,a,o]),x=h.useCallback(A=>{const k=Math.max(1,Math.min(t,A));k!==g&&(c||p(k),l?.(k))},[c,g,t,l]),b=h.useCallback(()=>{g<t?x(g+1):i&&x(1)},[g,t,i,x]),y=h.useCallback(()=>{g>1?x(g-1):i&&x(t)},[g,t,i,x]),v=h.useCallback(()=>{x(1)},[x]),C=h.useCallback(()=>{x(t)},[x,t]);return{activePage:g,range:w,setPage:x,next:b,previous:y,first:v,last:C,isFirst:g===1,isLast:g===t,totalPages:t}}const Nx={xs:"min-w-6 h-6 text-xs px-1",sm:"min-w-8 h-8 text-sm px-2",md:"min-w-10 h-10 text-base px-3",lg:"min-w-12 h-12 text-lg px-4",xl:"min-w-14 h-14 text-xl px-5"},Ko={xs:"gap-1",sm:"gap-1.5",md:"gap-2",lg:"gap-2.5",xl:"gap-3"},Rx={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},Gc=(e,t,r=!1,n=!1)=>{const s={default:{flat:{base:"bg-default-100 text-default-600 hover:bg-default-200",active:"bg-default-300 text-default-800 font-medium",disabled:"bg-default-50 text-default-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-default-200 text-default-600 hover:border-default-300 hover:bg-default-50",active:"bg-default-100 border-default-400 text-default-800 font-medium",disabled:"bg-transparent border-default-100 text-default-300 cursor-not-allowed"},light:{base:"bg-transparent text-default-600 hover:bg-default-100",active:"bg-default-200 text-default-800 font-medium",disabled:"bg-transparent text-default-300 cursor-not-allowed"},faded:{base:"bg-default-100/50 text-default-600 hover:bg-default-200/70",active:"bg-default-300/80 text-default-800 font-medium",disabled:"bg-default-50/30 text-default-300 cursor-not-allowed"}},primary:{flat:{base:"bg-primary-100 text-primary-600 hover:bg-primary-200",active:"bg-primary-500 text-white font-medium",disabled:"bg-primary-50 text-primary-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-primary-200 text-primary-600 hover:border-primary-300 hover:bg-primary-50",active:"bg-primary-500 border-primary-500 text-white font-medium",disabled:"bg-transparent border-primary-100 text-primary-300 cursor-not-allowed"},light:{base:"bg-transparent text-primary-600 hover:bg-primary-100",active:"bg-primary-200 text-primary-800 font-medium",disabled:"bg-transparent text-primary-300 cursor-not-allowed"},faded:{base:"bg-primary-100/50 text-primary-600 hover:bg-primary-200/70",active:"bg-primary-500/90 text-white font-medium",disabled:"bg-primary-50/30 text-primary-300 cursor-not-allowed"}},secondary:{flat:{base:"bg-purple-100 text-purple-600 hover:bg-purple-200",active:"bg-purple-500 text-white font-medium",disabled:"bg-purple-50 text-purple-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-purple-200 text-purple-600 hover:border-purple-300 hover:bg-purple-50",active:"bg-purple-500 border-purple-500 text-white font-medium",disabled:"bg-transparent border-purple-100 text-purple-300 cursor-not-allowed"},light:{base:"bg-transparent text-purple-600 hover:bg-purple-100",active:"bg-purple-200 text-purple-800 font-medium",disabled:"bg-transparent text-purple-300 cursor-not-allowed"},faded:{base:"bg-purple-100/50 text-purple-600 hover:bg-purple-200/70",active:"bg-purple-500/90 text-white font-medium",disabled:"bg-purple-50/30 text-purple-300 cursor-not-allowed"}},success:{flat:{base:"bg-green-100 text-green-600 hover:bg-green-200",active:"bg-green-500 text-white font-medium",disabled:"bg-green-50 text-green-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-green-200 text-green-600 hover:border-green-300 hover:bg-green-50",active:"bg-green-500 border-green-500 text-white font-medium",disabled:"bg-transparent border-green-100 text-green-300 cursor-not-allowed"},light:{base:"bg-transparent text-green-600 hover:bg-green-100",active:"bg-green-200 text-green-800 font-medium",disabled:"bg-transparent text-green-300 cursor-not-allowed"},faded:{base:"bg-green-100/50 text-green-600 hover:bg-green-200/70",active:"bg-green-500/90 text-white font-medium",disabled:"bg-green-50/30 text-green-300 cursor-not-allowed"}},warning:{flat:{base:"bg-yellow-100 text-yellow-700 hover:bg-yellow-200",active:"bg-yellow-500 text-white font-medium",disabled:"bg-yellow-50 text-yellow-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-yellow-200 text-yellow-700 hover:border-yellow-300 hover:bg-yellow-50",active:"bg-yellow-500 border-yellow-500 text-white font-medium",disabled:"bg-transparent border-yellow-100 text-yellow-300 cursor-not-allowed"},light:{base:"bg-transparent text-yellow-700 hover:bg-yellow-100",active:"bg-yellow-200 text-yellow-800 font-medium",disabled:"bg-transparent text-yellow-400 cursor-not-allowed"},faded:{base:"bg-yellow-100/50 text-yellow-700 hover:bg-yellow-200/70",active:"bg-yellow-500/90 text-white font-medium",disabled:"bg-yellow-50/30 text-yellow-300 cursor-not-allowed"}},danger:{flat:{base:"bg-red-100 text-red-600 hover:bg-red-200",active:"bg-red-500 text-white font-medium",disabled:"bg-red-50 text-red-300 cursor-not-allowed"},bordered:{base:"bg-transparent border-2 border-red-200 text-red-600 hover:border-red-300 hover:bg-red-50",active:"bg-red-500 border-red-500 text-white font-medium",disabled:"bg-transparent border-red-100 text-red-300 cursor-not-allowed"},light:{base:"bg-transparent text-red-600 hover:bg-red-100",active:"bg-red-200 text-red-800 font-medium",disabled:"bg-transparent text-red-300 cursor-not-allowed"},faded:{base:"bg-red-100/50 text-red-600 hover:bg-red-200/70",active:"bg-red-500/90 text-white font-medium",disabled:"bg-red-50/30 text-red-300 cursor-not-allowed"}}};return n?s[e][t].disabled:r?s[e][t].active:s[e][t].base},Dx=(e,t,r=!1)=>{const n=Gc(e,t,!1,r);return r?n:`${n} transition-all duration-200 ease-in-out hover:scale-105 active:scale-95`},Bx=e=>`${{xs:"w-6 h-6 text-xs",sm:"w-8 h-8 text-sm",md:"w-10 h-10 text-base",lg:"w-12 h-12 text-lg",xl:"w-14 h-14 text-xl"}[e]} flex items-center justify-center text-default-400 cursor-default select-none`,Uc=(e=!1,t=!1)=>e||t?"transition-colors duration-200 ease-in-out":"transition-all duration-200 ease-in-out transform hover:scale-105 active:scale-95",Kc=(e,t)=>{const r=Nx[e],n=Rx[t];return`${r} ${n} flex items-center justify-center font-medium select-none outline-none focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2`},Lx=(e,t=!1,r=!1)=>`flex items-center justify-center ${r?Ko.xs:Ko[e]} ${t?"shadow-sm":""}`.trim(),je={size:"md",color:"primary",variant:"flat",radius:"md",siblings:1,showControls:!0,showFirstLast:!1,showPages:!0,showDots:!0,loop:!1,compact:!1,showShadow:!1,disableAnimation:!1},Ks=h.forwardRef(({value:e,type:t="page",isActive:r=!1,isDisabled:n=!1,onClick:s,children:a,className:o="",size:i,color:l,variant:c,radius:d,"aria-label":u,"data-testid":p},m)=>{const g=qr(),w=i??g.size,x=l??g.color,b=c??g.variant,y=d??g.radius,v=g.isDisabled,C=g.disableAnimation,S=v||n,j=Kc(w,y),A=Gc(x,b,r,S),k=Uc(C,S),V=()=>{S||t==="dots"||s?.(e)},M=t==="page"?r?`Current page, page ${e}`:`Go to page ${e}`:u,D=`${j} ${A} ${k} ${o}`.trim();return f.jsx("button",{ref:m,type:"button",disabled:S,onClick:V,className:D,"aria-label":M,"aria-current":r?"page":void 0,"data-testid":p,children:a??e})});Ks.displayName="PaginationItem";const dr=h.forwardRef(({direction:e,isDisabled:t=!1,onClick:r,children:n,className:s="",size:a,color:o,variant:i,radius:l,"aria-label":c,"data-testid":d},u)=>{const p=qr(),m=a??p.size,g=o??p.color,w=i??p.variant,x=l??p.radius,b=p.isDisabled,y=p.disableAnimation,v=b||t,C=Kc(m,x),S=Dx(g,w,v),j=Uc(y,v),A=()=>{v||r?.()},k=e==="prev"?"Go to previous page":"Go to next page",V=`${C} ${S} ${j} ${s}`.trim();return f.jsx("button",{ref:u,type:"button",disabled:v,onClick:A,className:V,"aria-label":c??k,"data-testid":d,children:n})});dr.displayName="BasePaginationCursor";const Hs=h.forwardRef((e,t)=>f.jsx(dr,{ref:t,direction:"prev","aria-label":"Go to previous page",...e}));Hs.displayName="PaginationPrevious";const Xs=h.forwardRef((e,t)=>f.jsx(dr,{ref:t,direction:"next","aria-label":"Go to next page",...e}));Xs.displayName="PaginationNext";const Ys=h.forwardRef((e,t)=>f.jsx(dr,{ref:t,direction:"prev","aria-label":"Go to first page",...e}));Ys.displayName="PaginationFirst";const qs=h.forwardRef((e,t)=>f.jsx(dr,{ref:t,direction:"next","aria-label":"Go to last page",...e}));qs.displayName="PaginationLast";const Zs=h.forwardRef(({className:e="",size:t,children:r,"data-testid":n},s)=>{const a=qr(),o=t??a.size,l=`${Bx(o)} ${e}`.trim();return f.jsx("span",{ref:s,className:l,"aria-hidden":"true",role:"presentation","data-testid":n,children:r??"…"})});Zs.displayName="PaginationEllipsis";const Cr={prev:()=>f.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:f.jsx("polyline",{points:"15,18 9,12 15,6"})}),next:()=>f.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:f.jsx("polyline",{points:"9,18 15,12 9,6"})}),first:()=>f.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:[f.jsx("polyline",{points:"11,17 6,12 11,7"}),f.jsx("polyline",{points:"18,17 13,12 18,7"})]}),last:()=>f.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:[f.jsx("polyline",{points:"13,17 18,12 13,7"}),f.jsx("polyline",{points:"6,17 11,12 6,7"})]})},Hc=h.createContext(null),qr=()=>{const e=h.useContext(Hc);if(!e)throw new Error("usePaginationContext must be used within a Pagination component");return e},Xc=({total:e,page:t,defaultPage:r=1,initialPage:n,onChange:s,onPageChange:a,size:o=je.size,color:i=je.color,variant:l=je.variant,radius:c=je.radius,isDisabled:d=!1,disableAnimation:u=je.disableAnimation,controls:p={},display:m={},className:g="",style:w,"aria-label":x="Pagination Navigation","data-testid":b})=>{const y={showControls:je.showControls,showFirstLast:je.showFirstLast,placement:"both",labels:{prev:f.jsx(Cr.prev,{}),next:f.jsx(Cr.next,{}),first:f.jsx(Cr.first,{}),last:f.jsx(Cr.last,{})},...p},v={showPages:je.showPages,siblings:je.siblings,showDots:je.showDots,loop:je.loop,compact:je.compact,showShadow:je.showShadow,...m},C=_c({total:e,page:t,defaultPage:r,initialPage:n,siblings:v.siblings,showDots:v.showDots,loop:v.loop,onChange:M=>{s?.(M),a?.(M)}}),S={activePage:C.activePage,totalPages:C.totalPages,setPage:C.setPage,size:o,color:i,variant:l,radius:c,isDisabled:d,disableAnimation:u,controls:y,display:v},j=Lx(o,v.showShadow,v.compact),A=M=>!y.showFirstLast||y.placement!=="both"&&y.placement!==M?null:M==="start"?f.jsx(Ys,{isDisabled:d||C.isFirst,onClick:C.first,children:y.labels.first}):f.jsx(qs,{isDisabled:d||C.isLast,onClick:C.last,children:y.labels.last}),k=M=>!y.showControls||y.placement!=="both"&&y.placement!==M?null:M==="start"?f.jsx(Hs,{isDisabled:d||C.isFirst,onClick:C.previous,children:y.labels.prev}):f.jsx(Xs,{isDisabled:d||C.isLast,onClick:C.next,children:y.labels.next}),V=()=>v.showPages?C.range.map(M=>M.type==="dots"?f.jsx(Zs,{},M.key):f.jsx(Ks,{type:"page",value:M.value,isActive:M.isActive,isDisabled:d||M.isDisabled,onClick:()=>!d&&!M.isDisabled&&C.setPage(M.value),children:M.value},M.key)):null;return f.jsx(Hc.Provider,{value:S,children:f.jsxs("nav",{role:"navigation","aria-label":x,className:`${j} ${g}`.trim(),style:w,"data-testid":b,children:[A("start"),k("start"),V(),k("end"),A("end")]})})};Xc.displayName="Pagination";const Xt=e=>({linear:"linear",easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],backIn:[.6,-.05,.01,.99],backOut:[.12,0,.39,0],backInOut:[.37,0,.63,1],bounceIn:[.6,-.28,.735,.045],bounceOut:[.175,.885,.32,1.275],bounceInOut:[.68,-.55,.265,1.55]})[e],Ox=(e,t,r=.05,n=.6)=>{const s=e.split(" "),a=[],o=[],i=e.split(`
|
|
15
|
+
`);let l=0;return s.forEach((c,d)=>{const u=[];if(c.split("").forEach(m=>{const g=t==="letter"?l*r:t==="word"?d*r:0,w={char:m,index:l,delay:g,duration:n,variants:Ho("up")};u.push(w),a.push(w),l++}),d<s.length-1){const m={char:" ",index:l,delay:t==="letter"?l*r:d*r,duration:n,variants:Ho("up")};u.push(m),a.push(m),l++}const p=t==="word"?d*r:0;o.push({word:c,index:d,delay:p,duration:n,characters:u})}),{words:o,characters:a,lines:i}},Ho=e=>{const t={hidden:{opacity:0,scale:.8},visible:{opacity:1,scale:1}};switch(e){case"up":return{hidden:{...t.hidden,y:20},visible:{...t.visible,y:0}};case"down":return{hidden:{...t.hidden,y:-20},visible:{...t.visible,y:0}};case"left":return{hidden:{...t.hidden,x:20},visible:{...t.visible,x:0}};case"right":return{hidden:{...t.hidden,x:-20},visible:{...t.visible,x:0}};case"center":default:return t}},Xo=(e,t,r=0,n="es-ES",s="EUR")=>{const a={minimumFractionDigits:r,maximumFractionDigits:r};switch(t){case"currency":a.style="currency",a.currency=s;break;case"percentage":a.style="percent";break;case"number":default:a.style="decimal";break}return new Intl.NumberFormat(n,a).format(e)},zx=(e=10)=>{const a="!@#$%^&*()_+-=[]{}|;:,.<>?~`"+"0123456789"+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"+"█▓▒░▄▀▐▌";return Array.from({length:e},()=>a[Math.floor(Math.random()*a.length)]).join("")},$x=e=>{const t={low:{scale:.02,duration:.1},medium:{scale:.05,duration:.15},high:{scale:.1,duration:.2},extreme:{scale:.2,duration:.3}},{scale:r,duration:n}=t[e];return{hidden:{opacity:1,x:0,y:0,scaleX:1,scaleY:1},visible:{opacity:[1,.8,1],x:[0,-r*20,r*20,0],y:[0,r*10,-r*10,0],scaleX:[1,1+r,1-r,1],scaleY:[1,1-r,1+r,1],transition:{duration:n,repeat:1/0,repeatType:"mirror",ease:"linear"}}}},Yc=(e,t)=>{const r=e.join(", ");switch(t){case"horizontal":return`linear-gradient(90deg, ${r})`;case"vertical":return`linear-gradient(180deg, ${r})`;case"diagonal":return`linear-gradient(45deg, ${r})`;case"radial":return`radial-gradient(circle, ${r})`;default:return`linear-gradient(90deg, ${r})`}},Fx=(e,t)=>{const r=Math.max(e.length,t.length),n=[],s=10;for(let a=0;a<=s;a++){const o=a/s;let i="";for(let l=0;l<r;l++){const c=e[l]||" ",d=t[l]||" ";Math.random()<o?i+=d:i+=c}n.push(i)}return n},Bt=()=>typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches,Wx=(e,t=2,r="horizontal")=>({"--text-gradient":Yc(e,r),"--animation-duration":`${t}s`,"--background-size":r==="horizontal"?"200% 100%":"100% 200%"}),_x=({text:e,texts:t,className:r="",trigger:n="inView",speed:s=2,cursor:a="line",cursorColor:o="currentColor",showCursor:i=!0,deleteAfter:l=!1,deleteSpeed:c=3,pauseBeforeDelete:d=1,loop:u=!1,repeat:p=!1,delay:m=0,disabled:g=!1,isActive:w=!1,onComplete:x,onStart:b,"data-testid":y})=>{const[v,C]=h.useState(""),[S,j]=h.useState(0),[A,k]=h.useState(!1),[V,M]=h.useState(!1),[D,z]=h.useState(!0),[L,I]=h.useState(!1),R=h.useRef(null),B=h.useRef(null),P=h.useRef(null),T=Bt(),E=(t||[e])[S]||e,F=!g&&!T&&(n==="immediate"||n==="inView"&&L||n==="manual"&&w);h.useEffect(()=>{if(!(n!=="inView"||!R.current))return P.current=new IntersectionObserver(([W])=>{W.isIntersecting?(I(!0),!p&&P.current&&P.current.disconnect()):p&&I(!1)},{threshold:.1}),P.current.observe(R.current),()=>{P.current&&P.current.disconnect()}},[n,p]),h.useEffect(()=>()=>{B.current&&clearTimeout(B.current)},[]),h.useEffect(()=>{if(!F){(g||T)&&C(E);return}const W=()=>{b&&b(),k(!0),z(!1),B.current=setTimeout(()=>{J()},m*1e3)},J=()=>{let Z=0;const ne=E,ae=setInterval(()=>{Z<=ne.length?(C(ne.slice(0,Z)),Z++):(clearInterval(ae),k(!1),z(!0),x&&x(),(l||t&&t.length>1)&&(B.current=setTimeout(()=>{(l||t&&t.length>1&&(u||S<t.length-1))&&Y()},d*1e3)))},1e3/s);return()=>clearInterval(ae)},Y=()=>{M(!0),z(!1);const Z=setInterval(()=>{C(ne=>ne.length>0?ne.slice(0,-1):(clearInterval(Z),M(!1),z(!0),t&&t.length>1&&(u?j(ae=>(ae+1)%t.length):S<t.length-1&&j(ae=>ae+1),B.current=setTimeout(()=>{J()},300)),""))},1e3/c);return()=>clearInterval(Z)};W()},[F,E,S,s,c,m,l,u,t,b,x,d]),h.useEffect(()=>{n==="manual"&&!w&&(C(""),j(0),k(!1),M(!1))},[n,w]);const $=()=>{const W={color:o,animation:D?"blink 1s infinite":"none"};switch(a){case"block":return{...W,backgroundColor:o,color:"transparent",marginLeft:"2px",width:"0.6em",display:"inline-block"};case"underscore":return{...W,borderBottom:`2px solid ${o}`,marginLeft:"1px",paddingBottom:"2px"};case"line":default:return{...W,borderLeft:`2px solid ${o}`,marginLeft:"2px",paddingLeft:"1px"}}},O=()=>{n==="hover"&&!A&&!V&&(C(""),j(0))},K=()=>{n==="focus"&&!A&&!V&&(C(""),j(0))};return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
36
16
|
@keyframes blink {
|
|
37
17
|
0%, 50% { opacity: 1; }
|
|
38
18
|
51%, 100% { opacity: 0; }
|
|
39
19
|
}
|
|
40
|
-
`}}),k.jsxs(pe.span,{ref:P,className:`typewriter ${t}`,onMouseEnter:n==="hover"?z:void 0,onFocus:n==="focus"?F:void 0,tabIndex:n==="focus"?0:void 0,"data-testid":h,style:{display:"inline-block",minHeight:"1em",fontFamily:"monospace"},children:[p,i&&a!=="none"&&k.jsx("span",{className:"typewriter-cursor",style:O(),"aria-hidden":"true",children:a==="block"?"█":""})]})]})},Wv=s=>{const e=ae.c(36),{text:t,className:n,trigger:r,mode:a,duration:o,staggerDelay:i,direction:l,initialOpacity:c,easing:d,withBlur:u,withScale:f,withRotation:m,repeat:g,delay:x,disabled:y,isActive:w,onComplete:h,onStart:p,"data-testid":b}=s,S=n===void 0?"":n,C=r===void 0?"inView":r,v=a===void 0?"letter":a,T=o===void 0?.6:o,A=i===void 0?.05:i,E=l===void 0?"up":l,R=c===void 0?0:c,L=d===void 0?"easeOut":d,D=u===void 0?!1:u,V=f===void 0?!1:f,P=m===void 0?!1:m,I=g===void 0?!1:g,M=x===void 0?0:x,N=y===void 0?!1:y,B=w===void 0?!1:w,[$,_]=j.useState(!1),[O,z]=j.useState(!1),[F,W]=j.useState(!1),H=j.useRef(null),K=j.useRef(null),G=Ss(),X=Lv(t,v,A,T),U=!N&&!G&&(C==="immediate"||C==="inView"&&$||C==="manual"&&B);let Z,q;e[0]!==I||e[1]!==C?(Z=()=>{if(!(C!=="inView"||!H.current))return K.current=new IntersectionObserver(he=>{const[fe]=he;fe.isIntersecting?(_(!0),!I&&K.current&&K.current.disconnect()):I&&(_(!1),W(!1))},{threshold:.1}),K.current.observe(H.current),()=>{K.current&&K.current.disconnect()}},q=[C,I],e[0]=I,e[1]=C,e[2]=Z,e[3]=q):(Z=e[2],q=e[3]),j.useEffect(Z,q);let Q,J;e[4]!==F||e[5]!==p||e[6]!==U?(Q=()=>{U&&!F?(z(!0),p&&p()):U||z(!1)},J=[U,F,p],e[4]=F,e[5]=p,e[6]=U,e[7]=Q,e[8]=J):(Q=e[7],J=e[8]),j.useEffect(Q,J);let Y,ne;e[9]!==B||e[10]!==C?(Y=()=>{C==="manual"&&!B&&(W(!1),z(!1))},ne=[C,B],e[9]=B,e[10]=C,e[11]=Y,e[12]=ne):(Y=e[11],ne=e[12]),j.useEffect(Y,ne);let se;e[13]!==E||e[14]!==R||e[15]!==D||e[16]!==P||e[17]!==V?(se=()=>{let he=0,fe=0;e:switch(E){case"up":{fe=20;break e}case"down":{fe=-20;break e}case"left":{he=20;break e}case"right":he=-20}const Ce={opacity:R,x:he,y:fe},Te={opacity:1,x:0,y:0};return D&&(Ce.filter="blur(10px)",Te.filter="blur(0px)"),V&&(Ce.scale=.5,Te.scale=1),P&&(Ce.rotate=E==="left"?-45:E==="right"?45:-15,Te.rotate=0),{hidden:Ce,visible:Te}},e[13]=E,e[14]=R,e[15]=D,e[16]=P,e[17]=V,e[18]=se):se=e[18];const ee=se;let re;e[19]!==ee?(re=ee(),e[19]=ee,e[20]=re):re=e[20];const le=re;let ce;e[21]!==O||e[22]!==C?(ce=()=>{C==="hover"&&!O&&(W(!1),z(!0))},e[21]=O,e[22]=C,e[23]=ce):ce=e[23];const oe=ce;let te;e[24]!==O||e[25]!==C?(te=()=>{C==="focus"&&!O&&(W(!1),z(!0))},e[24]=O,e[25]=C,e[26]=te):te=e[26];const ie=te;let de;e[27]!==h?(de=()=>{z(!1),W(!0),h&&h()},e[27]=h,e[28]=de):de=e[28];const me=de;if(N||G){const he=`reveal-text ${S}`;let fe;return e[29]!==he||e[30]!==b||e[31]!==t?(fe=k.jsx("div",{ref:H,className:he,"data-testid":b,children:t}),e[29]=he,e[30]=b,e[31]=t,e[32]=fe):fe=e[32],fe}const ye=()=>v==="word"?k.jsx("div",{ref:H,className:`reveal-text reveal-text--words ${S}`,onMouseEnter:C==="hover"?oe:void 0,onFocus:C==="focus"?ie:void 0,tabIndex:C==="focus"?0:void 0,"data-testid":b,style:{display:"inline-block"},children:X.words.map((he,fe)=>k.jsx(pe.span,{variants:le,initial:"hidden",animate:O?"visible":"hidden",transition:{duration:T,delay:he.delay+M,ease:Bs(L)},onAnimationComplete:fe===X.words.length-1?me:void 0,style:{display:"inline-block",marginRight:fe<X.words.length-1?"0.25em":"0"},children:he.word},`word-${fe}`))}):v==="line"?k.jsx("div",{ref:H,className:`reveal-text reveal-text--lines ${S}`,onMouseEnter:C==="hover"?oe:void 0,onFocus:C==="focus"?ie:void 0,tabIndex:C==="focus"?0:void 0,"data-testid":b,children:X.lines.map((he,fe)=>k.jsx(pe.div,{variants:le,initial:"hidden",animate:O?"visible":"hidden",transition:{duration:T,delay:fe*A+M,ease:Bs(L)},onAnimationComplete:fe===X.lines.length-1?me:void 0,children:he},`line-${fe}`))}):k.jsx("div",{ref:H,className:`reveal-text reveal-text--letters ${S}`,onMouseEnter:C==="hover"?oe:void 0,onFocus:C==="focus"?ie:void 0,tabIndex:C==="focus"?0:void 0,"data-testid":b,style:{display:"inline-block"},children:X.characters.map((he,fe)=>k.jsx(pe.span,{variants:le,initial:"hidden",animate:O?"visible":"hidden",transition:{duration:T,delay:he.delay+M,ease:Bs(L)},onAnimationComplete:fe===X.characters.length-1?me:void 0,style:{display:"inline-block",whiteSpace:he.char===" "?"pre":"normal"},children:he.char},`char-${fe}`))}),ve=bt,we="wait",xe=ye();let ue;return e[33]!==ve||e[34]!==xe?(ue=k.jsx(ve,{mode:we,children:xe}),e[33]=ve,e[34]=xe,e[35]=ue):ue=e[35],ue},Gv=s=>{const e=ae.c(58),{from:t,to:n,className:r,trigger:a,duration:o,decimals:i,format:l,currency:c,locale:d,formatter:u,easing:f,prefix:m,suffix:g,repeat:x,delay:y,disabled:w,isActive:h,onStart:p,onComplete:b,"data-testid":S}=s,C=r===void 0?"":r,v=a===void 0?"inView":a,T=o===void 0?2:o,A=i===void 0?0:i,E=l===void 0?"number":l,R=c===void 0?"EUR":c,L=d===void 0?"es-ES":d,D=f===void 0?"easeOut":f,V=m===void 0?"":m,P=g===void 0?"":g,I=x===void 0?!1:x,M=y===void 0?0:y,N=w===void 0?!1:w,B=h===void 0?!1:h,[$,_]=j.useState(!1),[O,z]=j.useState(!1),[F,W]=j.useState(!1),H=j.useRef(null),K=j.useRef(null),G=j.useRef(null),X=Ss(),U=Lo(t),Z=!N&&!X&&(v==="immediate"||v==="inView"&&$||v==="manual"&&B);let q;e[0]!==R||e[1]!==A||e[2]!==E||e[3]!==u||e[4]!==L?(q=xe=>{const ue=Math.round(xe*Math.pow(10,A))/Math.pow(10,A);return u?u(ue):ql(ue,E,A,L,R)},e[0]=R,e[1]=A,e[2]=E,e[3]=u,e[4]=L,e[5]=q):q=e[5];const Q=ps(U,q);let J,Y;e[6]!==I||e[7]!==v?(J=()=>{if(!(v!=="inView"||!H.current))return K.current=new IntersectionObserver(xe=>{const[ue]=xe;ue.isIntersecting?(_(!0),!I&&K.current&&K.current.disconnect()):I&&(_(!1),W(!1))},{threshold:.1}),K.current.observe(H.current),()=>{K.current&&K.current.disconnect()}},Y=[v,I],e[6]=I,e[7]=v,e[8]=J,e[9]=Y):(J=e[8],Y=e[9]),j.useEffect(J,Y);let ne,se;e[10]!==F||e[11]!==M||e[12]!==T||e[13]!==D||e[14]!==t||e[15]!==U||e[16]!==b||e[17]!==p||e[18]!==Z||e[19]!==n?(ne=()=>(Z&&!F?(z(!0),p&&p(),G.current&&G.current.cancel(),G.current=Sg(t,n,{duration:T,delay:M,ease:Bs(D),onUpdate:xe=>{U.set(xe)},onComplete:()=>{z(!1),W(!0),b&&b()}})):!Z&&G.current&&(G.current.cancel(),U.set(t),z(!1)),()=>{G.current&&G.current.cancel()}),se=[Z,F,t,n,T,M,D,p,b,U],e[10]=F,e[11]=M,e[12]=T,e[13]=D,e[14]=t,e[15]=U,e[16]=b,e[17]=p,e[18]=Z,e[19]=n,e[20]=ne,e[21]=se):(ne=e[20],se=e[21]),j.useEffect(ne,se);let ee,re;e[22]!==t||e[23]!==B||e[24]!==U||e[25]!==v?(ee=()=>{v==="manual"&&!B&&(W(!1),z(!1),U.set(t))},re=[v,B,t,U],e[22]=t,e[23]=B,e[24]=U,e[25]=v,e[26]=ee,e[27]=re):(ee=e[26],re=e[27]),j.useEffect(ee,re);let le;e[28]!==O||e[29]!==v?(le=()=>{v==="hover"&&!O&&W(!1)},e[28]=O,e[29]=v,e[30]=le):le=e[30];const ce=le;let oe;e[31]!==O||e[32]!==v?(oe=()=>{v==="focus"&&!O&&W(!1)},e[31]=O,e[32]=v,e[33]=oe):oe=e[33];const te=oe;if(N||X){let xe;e[34]!==R||e[35]!==A||e[36]!==E||e[37]!==u||e[38]!==L||e[39]!==n?(xe=u?u(n):ql(n,E,A,L,R),e[34]=R,e[35]=A,e[36]=E,e[37]=u,e[38]=L,e[39]=n,e[40]=xe):xe=e[40];const ue=xe,he=`counter-text ${C}`;let fe;return e[41]!==ue||e[42]!==V||e[43]!==P||e[44]!==he||e[45]!==S?(fe=k.jsxs("span",{ref:H,className:he,"data-testid":S,children:[V,ue,P]}),e[41]=ue,e[42]=V,e[43]=P,e[44]=he,e[45]=S,e[46]=fe):fe=e[46],fe}const ie=`counter-text ${C}`,de=v==="hover"?ce:void 0,me=v==="focus"?te:void 0,ye=v==="focus"?0:void 0;let ve;e[47]!==Q?(ve=k.jsx(pe.span,{children:Q}),e[47]=Q,e[48]=ve):ve=e[48];let we;return e[49]!==V||e[50]!==P||e[51]!==ie||e[52]!==de||e[53]!==me||e[54]!==ye||e[55]!==ve||e[56]!==S?(we=k.jsxs(pe.span,{ref:H,className:ie,onMouseEnter:de,onFocus:me,tabIndex:ye,"data-testid":S,children:[V,ve,P]}),e[49]=V,e[50]=P,e[51]=ie,e[52]=de,e[53]=me,e[54]=ye,e[55]=ve,e[56]=S,e[57]=we):we=e[57],we},Uv=s=>{const e=ae.c(64),{text:t,className:n,trigger:r,colors:a,direction:o,duration:i,speed:l,animate:c,backgroundSize:d,stops:u,repeat:f,delay:m,disabled:g,isActive:x,onStart:y,onComplete:w,"data-testid":h}=s,p=n===void 0?"":n,b=r===void 0?"immediate":r,S=o===void 0?"horizontal":o,C=i===void 0?3:i,v=l===void 0?1:l,T=c===void 0?!0:c,A=f===void 0?!0:f,E=m===void 0?0:m,R=g===void 0?!1:g,L=x===void 0?!1:x,[D,V]=j.useState(!1),[P,I]=j.useState(!1),[M,N]=j.useState(!1),B=j.useRef(null),$=j.useRef(null),_=Ss(),O=!R&&!_&&T&&(b==="immediate"||b==="inView"&&D||b==="manual"&&L);let z;e[0]!==a||e[1]!==S||e[2]!==u?(z=()=>{if(!u||u.length!==a.length)return Zu(a,S);const Ce=a.map((Te,Ne)=>`${Te} ${u[Ne]}%`).join(", ");switch(S){case"horizontal":return`linear-gradient(90deg, ${Ce})`;case"vertical":return`linear-gradient(180deg, ${Ce})`;case"diagonal":return`linear-gradient(45deg, ${Ce})`;case"radial":return`radial-gradient(circle, ${Ce})`;default:return`linear-gradient(90deg, ${Ce})`}},e[0]=a,e[1]=S,e[2]=u,e[3]=z):z=e[3];const F=z,W=C*v;let H;e[4]!==a||e[5]!==S||e[6]!==W?(H=_v(a,W,S),e[4]=a,e[5]=S,e[6]=W,e[7]=H):H=e[7];const K=H;let G;e[8]!==F?(G=F(),e[8]=F,e[9]=G):G=e[9];const X=G,U=d||K["--background-size"]||(S==="horizontal"?"200% 100%":"100% 200%");let Z,q;e[10]!==A||e[11]!==b?(Z=()=>{if(!(b!=="inView"||!B.current))return $.current=new IntersectionObserver(Ce=>{const[Te]=Ce;Te.isIntersecting?(V(!0),!A&&$.current&&$.current.disconnect()):A&&(V(!1),N(!1))},{threshold:.1}),$.current.observe(B.current),()=>{$.current&&$.current.disconnect()}},q=[b,A],e[10]=A,e[11]=b,e[12]=Z,e[13]=q):(Z=e[12],q=e[13]),j.useEffect(Z,q);let Q,J;e[14]!==M||e[15]!==y||e[16]!==O?(Q=()=>{O&&!M?(I(!0),y&&y()):O||I(!1)},J=[O,M,y],e[14]=M,e[15]=y,e[16]=O,e[17]=Q,e[18]=J):(Q=e[17],J=e[18]),j.useEffect(Q,J);let Y,ne;e[19]!==L||e[20]!==b?(Y=()=>{b==="manual"&&!L&&(N(!1),I(!1))},ne=[b,L],e[19]=L,e[20]=b,e[21]=Y,e[22]=ne):(Y=e[21],ne=e[22]),j.useEffect(Y,ne);let se;e[23]!==P||e[24]!==b?(se=()=>{b==="hover"&&!P&&(N(!1),I(!0))},e[23]=P,e[24]=b,e[25]=se):se=e[25];const ee=se;let re;e[26]!==P||e[27]!==b?(re=()=>{b==="focus"&&!P&&(N(!1),I(!0))},e[26]=P,e[27]=b,e[28]=re):re=e[28];const le=re;let ce;e[29]!==w||e[30]!==A?(ce=()=>{A||(I(!1),N(!0),w&&w())},e[29]=w,e[30]=A,e[31]=ce):ce=e[31];const oe=ce;let te;e[32]!==E||e[33]!==S||e[34]!==C||e[35]!==A||e[36]!==O||e[37]!==v?(te=O&&{animation:`gradientMove ${C/v}s linear ${E}s ${A?"infinite":"1"} ${S==="horizontal"?"alternate":"normal"}`},e[32]=E,e[33]=S,e[34]=C,e[35]=A,e[36]=O,e[37]=v,e[38]=te):te=e[38];let ie;e[39]!==U||e[40]!==X||e[41]!==te?(ie={background:X,backgroundClip:"text",WebkitBackgroundClip:"text",color:"transparent",backgroundSize:U,...te},e[39]=U,e[40]=X,e[41]=te,e[42]=ie):ie=e[42];const de=ie;if(R||_){const Ce=`gradient-text ${p}`;let Te;e[43]!==X?(Te={background:X,backgroundClip:"text",WebkitBackgroundClip:"text",color:"transparent"},e[43]=X,e[44]=Te):Te=e[44];let Ne;return e[45]!==Ce||e[46]!==Te||e[47]!==h||e[48]!==t?(Ne=k.jsx("span",{ref:B,className:Ce,style:Te,"data-testid":h,children:t}),e[45]=Ce,e[46]=Te,e[47]=h,e[48]=t,e[49]=Ne):Ne=e[49],Ne}const me=`
|
|
20
|
+
`}}),f.jsxs(_.span,{ref:R,className:`typewriter ${r}`,onMouseEnter:n==="hover"?O:void 0,onFocus:n==="focus"?K:void 0,tabIndex:n==="focus"?0:void 0,"data-testid":y,style:{display:"inline-block",minHeight:"1em",fontFamily:"monospace"},children:[v,i&&a!=="none"&&f.jsx("span",{className:"typewriter-cursor",style:$(),"aria-hidden":"true",children:a==="block"?"█":""})]})]})},Gx=({text:e,className:t="",trigger:r="inView",mode:n="letter",duration:s=.6,staggerDelay:a=.05,direction:o="up",initialOpacity:i=0,easing:l="easeOut",withBlur:c=!1,withScale:d=!1,withRotation:u=!1,repeat:p=!1,delay:m=0,disabled:g=!1,isActive:w=!1,onComplete:x,onStart:b,"data-testid":y})=>{const[v,C]=h.useState(!1),[S,j]=h.useState(!1),[A,k]=h.useState(!1),V=h.useRef(null),M=h.useRef(null),D=Bt(),z=Ox(e,n,a,s),L=!g&&!D&&(r==="immediate"||r==="inView"&&v||r==="manual"&&w);h.useEffect(()=>{if(!(r!=="inView"||!V.current))return M.current=new IntersectionObserver(([E])=>{E.isIntersecting?(C(!0),!p&&M.current&&M.current.disconnect()):p&&(C(!1),k(!1))},{threshold:.1}),M.current.observe(V.current),()=>{M.current&&M.current.disconnect()}},[r,p]),h.useEffect(()=>{L&&!A?(j(!0),b&&b()):L||j(!1)},[L,A,b]),h.useEffect(()=>{r==="manual"&&!w&&(k(!1),j(!1))},[r,w]);const R=(()=>{let E=0,F=0;switch(o){case"up":F=20;break;case"down":F=-20;break;case"left":E=20;break;case"right":E=-20;break}const $={opacity:i,x:E,y:F},O={opacity:1,x:0,y:0};return c&&($.filter="blur(10px)",O.filter="blur(0px)"),d&&($.scale=.5,O.scale=1),u&&($.rotate=o==="left"?-45:o==="right"?45:-15,O.rotate=0),{hidden:$,visible:O}})(),B=()=>{r==="hover"&&!S&&(k(!1),j(!0))},P=()=>{r==="focus"&&!S&&(k(!1),j(!0))},T=()=>{j(!1),k(!0),x&&x()};if(g||D)return f.jsx("div",{ref:V,className:`reveal-text ${t}`,"data-testid":y,children:e});const N=()=>n==="word"?f.jsx("div",{ref:V,className:`reveal-text reveal-text--words ${t}`,onMouseEnter:r==="hover"?B:void 0,onFocus:r==="focus"?P:void 0,tabIndex:r==="focus"?0:void 0,"data-testid":y,style:{display:"inline-block"},children:z.words.map((E,F)=>f.jsx(_.span,{variants:R,initial:"hidden",animate:S?"visible":"hidden",transition:{duration:s,delay:E.delay+m,ease:Xt(l)},onAnimationComplete:F===z.words.length-1?T:void 0,style:{display:"inline-block",marginRight:F<z.words.length-1?"0.25em":"0"},children:E.word},`word-${F}`))}):n==="line"?f.jsx("div",{ref:V,className:`reveal-text reveal-text--lines ${t}`,onMouseEnter:r==="hover"?B:void 0,onFocus:r==="focus"?P:void 0,tabIndex:r==="focus"?0:void 0,"data-testid":y,children:z.lines.map((E,F)=>f.jsx(_.div,{variants:R,initial:"hidden",animate:S?"visible":"hidden",transition:{duration:s,delay:F*a+m,ease:Xt(l)},onAnimationComplete:F===z.lines.length-1?T:void 0,children:E},`line-${F}`))}):f.jsx("div",{ref:V,className:`reveal-text reveal-text--letters ${t}`,onMouseEnter:r==="hover"?B:void 0,onFocus:r==="focus"?P:void 0,tabIndex:r==="focus"?0:void 0,"data-testid":y,style:{display:"inline-block"},children:z.characters.map((E,F)=>f.jsx(_.span,{variants:R,initial:"hidden",animate:S?"visible":"hidden",transition:{duration:s,delay:E.delay+m,ease:Xt(l)},onAnimationComplete:F===z.characters.length-1?T:void 0,style:{display:"inline-block",whiteSpace:E.char===" "?"pre":"normal"},children:E.char},`char-${F}`))});return f.jsx(We,{mode:"wait",children:N()})},Ux=({from:e,to:t,className:r="",trigger:n="inView",duration:s=2,decimals:a=0,format:o="number",currency:i="EUR",locale:l="es-ES",formatter:c,easing:d="easeOut",prefix:u="",suffix:p="",repeat:m=!1,delay:g=0,disabled:w=!1,isActive:x=!1,onStart:b,onComplete:y,"data-testid":v})=>{const[C,S]=h.useState(!1),[j,A]=h.useState(!1),[k,V]=h.useState(!1),M=h.useRef(null),D=h.useRef(null),z=h.useRef(null),L=Bt(),I=Ds(e),R=!w&&!L&&(n==="immediate"||n==="inView"&&C||n==="manual"&&x),B=At(I,N=>{const E=Math.round(N*Math.pow(10,a))/Math.pow(10,a);return c?c(E):Xo(E,o,a,l,i)});h.useEffect(()=>{if(!(n!=="inView"||!M.current))return D.current=new IntersectionObserver(([N])=>{N.isIntersecting?(S(!0),!m&&D.current&&D.current.disconnect()):m&&(S(!1),V(!1))},{threshold:.1}),D.current.observe(M.current),()=>{D.current&&D.current.disconnect()}},[n,m]),h.useEffect(()=>(R&&!k?(A(!0),b&&b(),z.current&&z.current.cancel(),z.current=B0(e,t,{duration:s,delay:g,ease:Xt(d),onUpdate:N=>{I.set(N)},onComplete:()=>{A(!1),V(!0),y&&y()}})):!R&&z.current&&(z.current.cancel(),I.set(e),A(!1)),()=>{z.current&&z.current.cancel()}),[R,k,e,t,s,g,d,b,y,I]),h.useEffect(()=>{n==="manual"&&!x&&(V(!1),A(!1),I.set(e))},[n,x,e,I]);const P=()=>{n==="hover"&&!j&&V(!1)},T=()=>{n==="focus"&&!j&&V(!1)};if(w||L){const N=c?c(t):Xo(t,o,a,l,i);return f.jsxs("span",{ref:M,className:`counter-text ${r}`,"data-testid":v,children:[u,N,p]})}return f.jsxs(_.span,{ref:M,className:`counter-text ${r}`,onMouseEnter:n==="hover"?P:void 0,onFocus:n==="focus"?T:void 0,tabIndex:n==="focus"?0:void 0,"data-testid":v,children:[u,f.jsx(_.span,{children:B}),p]})},Kx=({text:e,className:t="",trigger:r="immediate",colors:n,direction:s="horizontal",duration:a=3,speed:o=1,animate:i=!0,backgroundSize:l,stops:c,repeat:d=!0,delay:u=0,disabled:p=!1,isActive:m=!1,onStart:g,onComplete:w,"data-testid":x})=>{const[b,y]=h.useState(!1),[v,C]=h.useState(!1),[S,j]=h.useState(!1),A=h.useRef(null),k=h.useRef(null),V=Bt(),M=!p&&!V&&i&&(r==="immediate"||r==="inView"&&b||r==="manual"&&m),D=()=>{if(!c||c.length!==n.length)return Yc(n,s);const N=n.map((E,F)=>`${E} ${c[F]}%`).join(", ");switch(s){case"horizontal":return`linear-gradient(90deg, ${N})`;case"vertical":return`linear-gradient(180deg, ${N})`;case"diagonal":return`linear-gradient(45deg, ${N})`;case"radial":return`radial-gradient(circle, ${N})`;default:return`linear-gradient(90deg, ${N})`}},z=Wx(n,a*o,s),L=D(),I=l||z["--background-size"];h.useEffect(()=>{if(!(r!=="inView"||!A.current))return k.current=new IntersectionObserver(([N])=>{N.isIntersecting?(y(!0),!d&&k.current&&k.current.disconnect()):d&&(y(!1),j(!1))},{threshold:.1}),k.current.observe(A.current),()=>{k.current&&k.current.disconnect()}},[r,d]),h.useEffect(()=>{M&&!S?(C(!0),g&&g()):M||C(!1)},[M,S,g]),h.useEffect(()=>{r==="manual"&&!m&&(j(!1),C(!1))},[r,m]);const R=()=>{r==="hover"&&!v&&(j(!1),C(!0))},B=()=>{r==="focus"&&!v&&(j(!1),C(!0))},P=()=>{d||(C(!1),j(!0),w&&w())},T={background:L,backgroundClip:"text",WebkitBackgroundClip:"text",color:"transparent",backgroundSize:I,...M&&{animation:`gradientMove ${a/o}s linear ${u}s ${d?"infinite":"1"} ${s==="horizontal"?"alternate":"normal"}`}};return p||V?f.jsx("span",{ref:A,className:`gradient-text ${t}`,style:{background:L,backgroundClip:"text",WebkitBackgroundClip:"text",color:"transparent"},"data-testid":x,children:e}):f.jsxs(f.Fragment,{children:[f.jsx("style",{children:`
|
|
41
21
|
@keyframes gradientMove {
|
|
42
22
|
0% {
|
|
43
|
-
background-position: ${
|
|
23
|
+
background-position: ${s==="horizontal"?"0% 50%":"50% 0%"};
|
|
44
24
|
}
|
|
45
25
|
50% {
|
|
46
|
-
background-position: ${
|
|
26
|
+
background-position: ${s==="horizontal"?"100% 50%":"50% 100%"};
|
|
47
27
|
}
|
|
48
28
|
100% {
|
|
49
|
-
background-position: ${
|
|
29
|
+
background-position: ${s==="horizontal"?"0% 50%":"50% 0%"};
|
|
50
30
|
}
|
|
51
31
|
}
|
|
52
|
-
|
|
53
|
-
${Array.from({length:
|
|
54
|
-
|
|
55
|
-
@keyframes glitchShift${e} {
|
|
32
|
+
`}),f.jsx(_.span,{ref:A,className:`gradient-text ${t}`,style:T,onMouseEnter:r==="hover"?R:void 0,onFocus:r==="focus"?B:void 0,tabIndex:r==="focus"?0:void 0,onAnimationEnd:P,"data-testid":x,children:e})]})},Hx=({texts:e,className:t="",trigger:r="immediate",displayDuration:n=2e3,morphDuration:s=800,loop:a=!0,easing:o="easeInOut",morphStyle:i="fade",repeat:l=!0,delay:c=0,disabled:d=!1,isActive:u=!1,onStart:p,onComplete:m,"data-testid":g})=>{const[w,x]=h.useState(!1),[b,y]=h.useState(!1),[v,C]=h.useState(!1),[S,j]=h.useState(0),[A,k]=h.useState(e[0]||""),V=h.useRef(null),M=h.useRef(null),D=h.useRef(null),z=h.useRef(null),L=Bt(),I=!d&&!L&&(r==="immediate"||r==="inView"&&w||r==="manual"&&u),R=h.useCallback(()=>{D.current&&(clearTimeout(D.current),D.current=null),z.current&&(clearTimeout(z.current),z.current=null)},[]),B=h.useCallback(()=>{if(e.length<=1)return;const F=e[S],$=(S+1)%e.length,O=e[$];if(i==="scramble"){const K=Fx(F,O);let W=0;const J=setInterval(()=>{W<K.length?(k(K[W]),W++):(clearInterval(J),k(O),j($),!a&&$===0?(C(!0),y(!1),m&&m()):I&&(D.current=setTimeout(()=>{B()},n)))},s/10)}else k(O),j($),!a&&$===0?(C(!0),y(!1),m&&m()):I&&(D.current=setTimeout(()=>{B()},n))},[S,e,i,s,n,a,I,m]);h.useEffect(()=>{if(!(r!=="inView"||!V.current))return M.current=new IntersectionObserver(([F])=>{F.isIntersecting?(x(!0),!l&&M.current&&M.current.disconnect()):l&&(x(!1),C(!1))},{threshold:.1}),M.current.observe(V.current),()=>{M.current&&M.current.disconnect()}},[r,l]),h.useEffect(()=>(I&&!v&&e.length>1?(y(!0),p&&p(),D.current=setTimeout(()=>{B()},c+n)):I||(R(),y(!1),k(e[0]||""),j(0)),R),[I,v,e.length,c,n,B,p,R]),h.useEffect(()=>{r==="manual"&&!u&&(R(),C(!1),y(!1),k(e[0]||""),j(0))},[r,u,e,R]);const P=()=>{r==="hover"&&!b&&C(!1)},T=()=>{r==="focus"&&!b&&C(!1)};if(h.useEffect(()=>R,[R]),d||L)return f.jsx("span",{ref:V,className:`morphing-text ${t}`,"data-testid":g,children:e[0]||""});const E=(()=>{switch(i){case"slide":return{enter:{x:50,opacity:0},center:{x:0,opacity:1},exit:{x:-50,opacity:0}};case"fade":default:return{enter:{opacity:0},center:{opacity:1},exit:{opacity:0}}}})();return i==="scramble"?f.jsx("span",{ref:V,className:`morphing-text morphing-text--scramble ${t}`,onMouseEnter:r==="hover"?P:void 0,onFocus:r==="focus"?T:void 0,tabIndex:r==="focus"?0:void 0,"data-testid":g,style:{fontVariantNumeric:"tabular-nums",minWidth:"1ch"},children:A}):f.jsx("span",{ref:V,className:`morphing-text morphing-text--${i} ${t}`,onMouseEnter:r==="hover"?P:void 0,onFocus:r==="focus"?T:void 0,tabIndex:r==="focus"?0:void 0,"data-testid":g,style:{display:"inline-block",minWidth:"1ch"},children:f.jsx(We,{mode:"wait",children:f.jsx(_.span,{variants:E,initial:"enter",animate:"center",exit:"exit",transition:{duration:s/1e3,ease:Xt(o)},style:{display:"inline-block"},children:A},`${S}-${A}`)})})},Xx=({text:e,className:t="",trigger:r="inView",intensity:n="medium",duration:s=.5,continuous:a=!1,colors:o=["#ff0000","#00ff00","#0000ff"],corruptData:i=!1,glitchChars:l,layers:c=3,repeat:d=!0,delay:u=0,disabled:p=!1,isActive:m=!1,onStart:g,onComplete:w,"data-testid":x})=>{const[b,y]=h.useState(!1),[v,C]=h.useState(!1),[S,j]=h.useState(!1),[A,k]=h.useState(e),V=h.useRef(null),M=h.useRef(null),D=h.useRef(null),z=Bt(),L=!p&&!z&&(r==="immediate"||r==="inView"&&b||r==="manual"&&m),I=l||zx(20),R=$x(n),B=($,O=.3)=>$.split("").map(K=>Math.random()<O?I[Math.floor(Math.random()*I.length)]:K).join("");h.useEffect(()=>{if(!(r!=="inView"||!V.current))return M.current=new IntersectionObserver(([$])=>{$.isIntersecting?(y(!0),!d&&M.current&&M.current.disconnect()):d&&(y(!1),j(!1))},{threshold:.1}),M.current.observe(V.current),()=>{M.current&&M.current.disconnect()}},[r,d]),h.useEffect(()=>{if(i&&L){const $=n==="extreme"?50:n==="high"?100:n==="medium"?200:300;return D.current=setInterval(()=>{k(B(e,.2)),Math.random()<.3&&setTimeout(()=>k(e),50)},$),()=>{D.current&&clearInterval(D.current)}}else k(e),D.current&&clearInterval(D.current)},[i,L,e,n,I]),h.useEffect(()=>{L&&!S?(C(!0),g&&g()):L||C(!1)},[L,S,g]),h.useEffect(()=>{r==="manual"&&!m&&(j(!1),C(!1),k(e))},[r,m,e]);const P=()=>{r==="hover"&&!v&&(j(!1),C(!0))},T=()=>{r==="focus"&&!v&&(j(!1),C(!0))},N=()=>{a||(C(!1),j(!0),w&&w())};if(p||z)return f.jsx("span",{ref:V,className:`glitch-text ${t}`,"data-testid":x,children:e});const E={position:"relative",display:"inline-block"},F=$=>{const O=o[$%o.length],K=($+1)*(n==="extreme"?3:n==="high"?2:n==="medium"?1:.5);return{position:"absolute",top:0,left:0,color:O,clipPath:`inset(${$*20}% 0 ${(c-$-1)*20}% 0)`,transform:`translateX(${$%2===0?K:-K}px)`,opacity:.8,mixBlendMode:"multiply",animation:L?`glitchShift${$} ${s}s linear ${u}s ${a?"infinite":"1"}`:void 0}};return f.jsxs(f.Fragment,{children:[f.jsx("style",{children:`
|
|
33
|
+
${Array.from({length:c},($,O)=>`
|
|
34
|
+
@keyframes glitchShift${O} {
|
|
56
35
|
0%, 100% { transform: translateX(0); }
|
|
57
|
-
10% { transform: translateX(${(
|
|
58
|
-
20% { transform: translateX(${-(
|
|
59
|
-
30% { transform: translateX(${(
|
|
60
|
-
40% { transform: translateX(${-(
|
|
61
|
-
50% { transform: translateX(${
|
|
62
|
-
60% { transform: translateX(${-(
|
|
63
|
-
70% { transform: translateX(${(
|
|
64
|
-
80% { transform: translateX(${-(
|
|
65
|
-
90% { transform: translateX(${
|
|
36
|
+
10% { transform: translateX(${(O+1)*2}px) translateY(${O}px); }
|
|
37
|
+
20% { transform: translateX(${-(O+1)*2}px) translateY(${-O}px); }
|
|
38
|
+
30% { transform: translateX(${(O+1)*3}px) translateY(${O*2}px); }
|
|
39
|
+
40% { transform: translateX(${-(O+1)*3}px) translateY(${-O*2}px); }
|
|
40
|
+
50% { transform: translateX(${O+1}px) translateY(${-O}px); }
|
|
41
|
+
60% { transform: translateX(${-(O+1)}px) translateY(${O}px); }
|
|
42
|
+
70% { transform: translateX(${(O+1)*2}px) translateY(${-O*2}px); }
|
|
43
|
+
80% { transform: translateX(${-(O+1)*2}px) translateY(${O*2}px); }
|
|
44
|
+
90% { transform: translateX(${O+1}px) translateY(${O}px); }
|
|
66
45
|
}
|
|
67
|
-
`}
|
|
46
|
+
`).join("")}
|
|
47
|
+
`}),f.jsxs(_.span,{ref:V,className:`glitch-text glitch-text--${n} ${t}`,style:E,variants:R,initial:"hidden",animate:L?"visible":"hidden",onMouseEnter:r==="hover"?P:void 0,onFocus:r==="focus"?T:void 0,tabIndex:r==="focus"?0:void 0,onAnimationComplete:N,"data-testid":x,children:[f.jsx("span",{style:{position:"relative",zIndex:c+1},children:A}),Array.from({length:c},($,O)=>f.jsx("span",{style:F(O),"aria-hidden":"true",children:A},`layer-${O}`))]})]})};exports.Accordion=Kl;exports.AccordionContent=zs;exports.AccordionHeader=Os;exports.AccordionItem=$s;exports.Autocomplete=Fc;exports.AutocompleteItem=Br;exports.AutocompleteSection=Wc;exports.Avatar=ic;exports.AvatarGroup=cc;exports.AvatarIcon=Ws;exports.Badge=dc;exports.Bounce=Tm;exports.BounceContainer=dm;exports.Breadcrumb=hc;exports.BreadcrumbItem=mc;exports.BreadcrumbSeparator=gc;exports.Button=bc;exports.ButtonContent=yc;exports.ButtonGroup=Xg;exports.ButtonIcon=Zn;exports.ButtonText=Yg;exports.Card=eb;exports.Checkbox=lb;exports.Chip=xc;exports.CounterText=Ux;exports.FadeContainer=im;exports.FadeIn=Cm;exports.FlipContainer=um;exports.GlitchText=Xx;exports.GradientText=Kx;exports.Image=yb;exports.Input=vc;exports.LibraryLink=Yr;exports.Modal=Cc;exports.MorphingContainer=pm;exports.MorphingText=Hx;exports.Navbar=Sc;exports.Navigation=xx;exports.Pagination=Xc;exports.PaginationEllipsis=Zs;exports.PaginationFirst=Ys;exports.PaginationItem=Ks;exports.PaginationLast=qs;exports.PaginationNext=Xs;exports.PaginationPrevious=Hs;exports.ParallaxContainer=mm;exports.Progress=Tc;exports.RevealText=Gx;exports.RotateIn=jm;exports.ScaleContainer=cm;exports.ScaleIn=Sm;exports.Sidebar=ux;exports.SidebarContent=px;exports.SidebarFooter=hx;exports.SidebarHeader=fx;exports.SidebarItem=mx;exports.SidebarTrigger=gx;exports.SlideContainer=lm;exports.SlideIn=km;exports.Spinner=Ac;exports.Stagger=Am;exports.StaggerContainer=fm;exports.Switch=hy;exports.Table=Sy;exports.TableRow=jy;exports.Toast=Vc;exports.ToastContainer=Ly;exports.ToastProvider=By;exports.Tooltip=ex;exports.TooltipProvider=qy;exports.TypeWriter=_x;exports.User=Lc;exports.useAccordion=$l;exports.useAutocomplete=$c;exports.useAvatar=oc;exports.useAvatarGroup=lc;exports.useLibraryNavigation=vx;exports.useModal=Wb;exports.useMorphingContainer=hm;exports.usePagination=_c;exports.usePaginationContext=qr;exports.useParallaxContainer=gm;exports.useToast=Oy;
|
|
68
48
|
//# sourceMappingURL=index.cjs.map
|