const defaultAnimationRegistry=new Map,customAnimationRegistry=new WeakMap;function ensureAnimation(t){return null!=t?t:{keyframes:[],options:{duration:0}}}export function setDefaultAnimation(t,n){defaultAnimationRegistry.set(t,ensureAnimation(n))}export function setAnimation(t,n,i){customAnimationRegistry.set(t,{...customAnimationRegistry.get(t),[n]:ensureAnimation(i)})}export function getAnimation(t,n,i={}){var e;const o=customAnimationRegistry.get(t),r=null!==(e=null==o?void 0:o[n])&&void 0!==e?e:defaultAnimationRegistry.get(n);return r?"rtl"===i.dir&&r.rtlKeyframes?{...r,keyframes:r.rtlKeyframes}:r:{keyframes:[],options:{duration:0}}}