import{q as h,r as b}from"./scheduler.RgLb8lSQ.js";import{s as v}from"./entry.Dk-gLehZ.js";function f(t){const e=t-1;return e*e*e+1}function C(t){return--t*t*t*t*t+1}function S(t,{delay:e=0,duration:p=400,easing:c=h}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:p,easing:c,css:r=>`opacity: ${r*n}`}}function q(t,{delay:e=0,duration:p=400,easing:c=f,x:n=0,y:r=0,opacity:$=0}={}){const i=getComputedStyle(t),d=+i.opacity,a=i.transform==="none"?"":i.transform,o=d*(1-$),[l,g]=b(n),[y,_]=b(r);return{delay:e,duration:p,easing:c,css:(u,m)=>`
			transform: ${a} translate(${(1-u)*l}${g}, ${(1-u)*y}${_});
			opacity: ${d-o*m}`}}function U(t,{delay:e=0,duration:p=400,easing:c=f,axis:n="y"}={}){const r=getComputedStyle(t),$=+r.opacity,i=n==="y"?"height":"width",d=parseFloat(r[i]),a=n==="y"?["top","bottom"]:["left","right"],o=a.map(s=>`${s[0].toUpperCase()}${s.slice(1)}`),l=parseFloat(r[`padding${o[0]}`]),g=parseFloat(r[`padding${o[1]}`]),y=parseFloat(r[`margin${o[0]}`]),_=parseFloat(r[`margin${o[1]}`]),u=parseFloat(r[`border${o[0]}Width`]),m=parseFloat(r[`border${o[1]}Width`]);return{delay:e,duration:p,easing:c,css:s=>`overflow: hidden;opacity: ${Math.min(s*20,1)*$};${i}: ${s*d}px;padding-${a[0]}: ${s*l}px;padding-${a[1]}: ${s*g}px;margin-${a[0]}: ${s*y}px;margin-${a[1]}: ${s*_}px;border-${a[0]}-width: ${s*u}px;border-${a[1]}-width: ${s*m}px;`}}const x=()=>{const t=v;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},O={subscribe(t){return x().page.subscribe(t)}};export{S as a,f as c,q as f,O as p,C as q,U as s};
