var e;!function(e){e[e.XSmall=0]="XSmall",e[e.Small=1]="Small",e[e.Medium=2]="Medium",e[e.Large=3]="Large",e[e.XLarge=4]="XLarge"}(e||(e={}));const t={[e.XSmall]:500,[e.Small]:768,[e.Medium]:992,[e.Large]:1200};function s(s){const n=Object.keys(t);for(let e=0;e<n.length;e++){const r=n[e];if(s<t[r])return Number(r)}return e.XLarge}class n{constructor(e,t,n){this.el=e,"undefined"!=typeof ResizeObserver&&new ResizeObserver((()=>{const e=this.el.clientWidth;null==n||n(e);const r=s(e);this.size!==r&&(this.size=r,t(r))})).observe(this.el)}}n.getSize=e=>s(e);export{n as R,e as a}