"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("./easings.js"),l=require("./getScroll.js"),i=require("./raf.js");function p(r,a={}){const{getContainer:u=()=>window,callback:s,duration:t=450}=a,e=u(),f=l.default(e),d=Date.now(),c=()=>{const o=Date.now()-d,n=m.easeInOutCubic(o>t?t:o,f,r,t);l.isWindow(e)?e.scrollTo(window.scrollX,n):e instanceof Document?e.documentElement.scrollTop=n:e.scrollTop=n,o<t?i.default(c):typeof s=="function"&&s()};i.default(c)}exports.default=p;
