import{r as e}from"./index-BOOC9B8a.js";var o=e.createContext(void 0);function c(r){const t=e.useContext(o);return r||t||"ltr"}function i(r,[t,n]){return Math.min(n,Math.max(t,r))}function s(r){const t=e.useRef({value:r,previous:r});return e.useMemo(()=>(t.current.value!==r&&(t.current.previous=t.current.value,t.current.value=r),t.current.previous),[r])}export{s as a,i as c,c as u};
