/*!
 * Custom elements for Nanopore-Digital Web applications
 */
const t=(t,r)=>{const n=t._original||t;return{_original:t,emit:e(n.emit.bind(n),r)}},e=(t,e=0)=>{let r;return(...n)=>{clearTimeout(r),r=setTimeout(t,e,...n)}},r=(t,e)=>{let r=0;return(...n)=>{const a=(new Date).getTime();if(a-r>e)return r=a,t(...n)}};export{t as a,e as d,r as t}