import{c as e,l as t}from"./BA99CCI5.js";import"./xihTtKlq.js";import{t as n}from"./3rupxGJ5.js";var r=new Set([`$$slots`,`$$events`,`$$legacy`]);function i(i,a){let o=e(a,r),s=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]];n(i,t({name:`x`},()=>o,{get iconNode(){return s}}))}var a=e=>e;function o(e){let t=e-1;return t*t*t+1}function s(e){let t=typeof e==`string`&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||`px`]:[e,`px`]}function c(e,{delay:t=0,duration:n=400,easing:r=a}={}){let i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>`opacity: ${e*i}`}}function l(e,{delay:t=0,duration:n=400,easing:r=o,x:i=0,y:a=0,opacity:c=0}={}){let l=getComputedStyle(e),u=+l.opacity,d=l.transform===`none`?``:l.transform,f=u*(1-c),[p,m]=s(i),[h,g]=s(a);return{delay:t,duration:n,easing:r,css:(e,t)=>`
			transform: ${d} translate(${(1-e)*p}${m}, ${(1-e)*h}${g});
			opacity: ${u-f*t}`}}function u(e,{delay:t=0,duration:n=400,easing:r=o,axis:i=`y`}={}){let a=getComputedStyle(e),s=+a.opacity,c=i===`y`?`height`:`width`,l=parseFloat(a[c]),u=i===`y`?[`top`,`bottom`]:[`left`,`right`],d=u.map(e=>`${e[0].toUpperCase()}${e.slice(1)}`),f=parseFloat(a[`padding${d[0]}`]),p=parseFloat(a[`padding${d[1]}`]),m=parseFloat(a[`margin${d[0]}`]),h=parseFloat(a[`margin${d[1]}`]),g=parseFloat(a[`border${d[0]}Width`]),_=parseFloat(a[`border${d[1]}Width`]);return{delay:t,duration:n,easing:r,css:e=>`overflow: hidden;opacity: ${Math.min(e*20,1)*s};${c}: ${e*l}px;padding-${u[0]}: ${e*f}px;padding-${u[1]}: ${e*p}px;margin-${u[0]}: ${e*m}px;margin-${u[1]}: ${e*h}px;border-${u[0]}-width: ${e*g}px;border-${u[1]}-width: ${e*_}px;min-${c}: 0`}}function d(e,{delay:t=0,duration:n=400,easing:r=o,start:i=0,opacity:a=0}={}){let s=getComputedStyle(e),c=+s.opacity,l=s.transform===`none`?``:s.transform,u=1-i,d=c*(1-a);return{delay:t,duration:n,easing:r,css:(e,t)=>`
			transform: ${l} scale(${1-u*t});
			opacity: ${c-d*t}
		`}}export{i as a,u as i,l as n,d as r,c as t};