"use strict";var p=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var W=Object.prototype.hasOwnProperty;var Z=(n,t)=>{for(var e in t)p(n,e,{get:t[e],enumerable:!0})},D=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of w(t))!W.call(n,a)&&a!==e&&p(n,a,{get:()=>t[a],enumerable:!(r=Y(t,a))||r.enumerable});return n};var R=n=>D(p({},"__esModule",{value:!0}),n);var j={};Z(j,{blur:()=>m,deck:()=>y,fade:()=>v,flip:()=>F,matrix:()=>I,perspective:()=>z,rotate:()=>k,scale:()=>$,shade:()=>f,shuffle:()=>g,stairs:()=>b,translate:()=>A});module.exports=R(j);var v=({child:n,translate:t})=>({opacity:n.exp,transform:t}),f=({child:n,translate:t})=>{let e=n.i===n.active,r=Math.abs(n.track)<=n.size,a=e?0:1,s=`${n.track/.5}px, 0`;return n.index===4&&console.log(n.index,r),{transform:e?`${t} translate(${s})`:`${t}`,zIndex:`${a}`}},m=({child:n,translate:t})=>{let r=n.i===n.active?n.active:n.i>n.active?n.active-n.i:n.i-n.active;return{opacity:String(n.exp),filter:`blur(${1-n.exp}ex`,transform:t,zIndex:String(r)}},$=({child:n,translate:t})=>({transform:`${t} scale(${n.exp})`}),k=({child:n,options:t,translate:e})=>{let a=n.index===t.index?0:-1;return{transform:`${e} rotate(${n.turn}turn)`,zIndex:String(a)}},z=({child:n,translate:t})=>({transform:`${t} perspective(${-n.turn}px)`}),g=({node:n,child:t,options:e,translate:r})=>{let a=Math.sign(t.track),s=Math.abs(t.track)t.active?t.active-t.i:-(t.i-t.active+n.children.length);return{transform:s?`${r} translate(${i})`:`${r}`,zIndex:String(x)}},A=({translate:n})=>({transform:n}),I=({node:n,child:t,options:e})=>{let r=t.index===e.index,a=t.exp,s=-t.turn,c=-t.turn,o=t.exp,i=-e.position,x=-t.turn,u=r?n.children.length-t.index:t.index{n.style.perspective=`${n.offsetWidth}px`;let a=e.snap==="deck",c=t.i===t.active?t.active:t.i>t.active?t.active-t.i:t.i-n.children.length+1,o=a?`scale(${t.exp})`:`translateZ(${-Math.abs(t.track)}px)`;return{transform:r+o,zIndex:String(c)}},F=({node:n,child:t,options:e,translate:r})=>{n.style.perspective=`${n.offsetWidth}px`;let a=e.snap==="deck",s=t.turn/(a?-2:-4),c=e.vertical?`rotateX(${s}turn)`:`rotateY(${-s}turn)`,o=Math.abs(s)<.25;return{transform:r+c,zIndex:String(o?0:-1),opacity:String(o||!a?1:0)}},y=({node:n,child:t,options:e,translate:r})=>{n.style.perspective=`${n.offsetWidth}px`;let a=t.index===e.index,s=t.size/10,c=Math.abs(t.track*2)>=t.size/2,o=a?c?t.size+t.track:-t.track*2:-t.track/s,i=e.vertical?0:o,x=e.vertical?o:0,u=-Math.abs(t.track)/(s/2),M=a?-t.track/s:-t.track/(s*2),S=a?(t.size-Math.abs(t.track/2))/t.size:1,X=a?t.active:t.i>t.active?t.active-t.i:1-n.children.length-t.i;return{transform:r+`translate3d(${i}px, ${x}px, ${u}px) rotateZ(${M}deg) scale(${S})`,zIndex:String(X)}};