/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{easingFunctions as t}from"../2d/unitBezier.js";const u=t=>t,i=t=>t*t,o=t=>1-i(1-t),n=t=>t<.5?i(2*t)/2:(o(2*(t-.5))+1)/2,c=t=>t*t*t,a=t=>1-c(1-t),s=t=>t<.5?c(2*t)/2:(a(2*(t-.5))+1)/2,q=t=>t*t*t*t,e=t=>1-q(1-t),r=t=>t<.5?q(2*t)/2:(e(2*(t-.5))+1)/2,d=t=>t*t*t*t*t,b=t=>1-d(1-t),p=t=>t<.5?d(2*t)/2:(b(2*(t-.5))+1)/2,x=t=>1-Math.cos(t*Math.PI/2),h=t=>1-x(1-t),M=t=>t<.5?x(2*t)/2:(h(2*(t-.5))+1)/2,f=t=>2**(10*(t-1)),I=t=>1-f(1-t),m=t=>t<.5?f(2*t)/2:(I(2*(t-.5))+1)/2,O=t=>-(Math.sqrt(1-t*t)-1),j=t=>1-O(1-t),l=t=>t<.5?O(2*t)/2:(j(2*(t-.5))+1)/2;function z(t){const u=2*(t-Math.sqrt((t-1)*t)),i=u/2/t;return o=>o<i?t*o*o:u*o-u+1}function B(t,u){return(i,o)=>i<u?u*t(i/u,o):1-t((1-i)/(1-u),o)*(1-u)}const P=B(z(1),1),g=B(z(1),0),k=B(z(1),.5),v=B(z(2),1),w=B(z(2),0),y=B(z(2),.5),A=B(z(3),1),C=B(z(3),0),D=B(z(3),.5),E=B(z(4),1),F=B(z(4),0),G=B(z(4),.5),H={linear:u,"in-quad":i,"out-quad":o,"in-out-quad":n,"in-coast-quad":P,"out-coast-quad":g,"in-out-coast-quad":k,"in-cubic":c,"out-cubic":a,"in-out-cubic":s,"in-coast-cubic":v,"out-coast-cubic":w,"in-out-coast-cubic":y,"in-quart":q,"out-quart":e,"in-out-quart":r,"in-coast-quart":A,"out-coast-quart":C,"in-out-coast-quart":D,"in-quint":d,"out-quint":b,"in-out-quint":p,"in-coast-quint":E,"out-coast-quint":F,"in-out-coast-quint":G,"in-sine":x,"out-sine":h,"in-out-sine":M,"in-expo":f,"out-expo":I,"in-out-expo":m,"in-circ":O,"out-circ":j,"in-out-circ":l,"quad-in":i,"quad-out":o,"quad-in-out":n,"quad-in-coast":P,"quad-out-coast":g,"quad-in-out-coast":k,"cubic-in":c,"cubic-out":a,"cubic-in-out":s,"cubic-in-coast":v,"cubic-out-coast":w,"cubic-in-out-coast":y,"quart-in":q,"quart-out":e,"quart-in-out":r,"quart-in-coast":A,"quart-out-coast":C,"quart-in-out-coast":D,"quint-in":d,"quint-out":b,"quint-in-out":p,"quint-in-coast":E,"quint-out-coast":F,"quint-in-out-coast":G,"sine-in":x,"sine-out":h,"sine-in-out":M,"expo-in":f,"expo-out":I,"expo-in-out":m,"circ-in":O,"circ-out":j,"circ-in-out":l,ease:u=>t.ease(u),"ease-in":u=>t.easeIn(u),"ease-out":u=>t.easeOut(u),"ease-in-out":u=>t.easeInOut(u)};export{H as EasingFunctions,O as inCirc,v as inCoastCubic,P as inCoastQuad,A as inCoastQuart,E as inCoastQuint,c as inCubic,f as inExpo,l as inOutCirc,y as inOutCoastCubic,k as inOutCoastQuad,D as inOutCoastQuart,G as inOutCoastQuint,s as inOutCubic,m as inOutExpo,n as inOutQuad,r as inOutQuart,p as inOutQuint,M as inOutSine,i as inQuad,q as inQuart,d as inQuint,x as inSine,u as linear,j as outCirc,w as outCoastCubic,g as outCoastQuad,C as outCoastQuart,F as outCoastQuint,a as outCubic,I as outExpo,o as outQuad,e as outQuart,b as outQuint,h as outSine};
