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 s={[e.XSmall]:600,[e.Small]:768,[e.Medium]:992,[e.Large]:1200};class t{constructor(t,r){this.el=t,ResizeObserver&&new ResizeObserver((()=>{const t=function(t){const r=Object.keys(s);for(let e=0;e<r.length;e++){const n=r[e];if(t<s[n])return Number(n)}return e.XLarge}(this.el.clientWidth);this.size!==t&&(this.size=t,r(t))})).observe(this.el)}}export{t as R,e as a}