class e{}class t{}const s=new class extends e{DDD(e){const t=e.getDate();switch(t){case 1:case 21:case 31:return`${t}st`;case 2:case 22:return`${t}nd`;case 3:case 23:return`${t}rd`;default:return`${t}th`}}},n=new class extends t{DDD(e,t){const s=((e,t,s)=>{const n=e.exec(t)?.[0]||"";return{value:+n,length:n.length,token:s}})(/^\d\d?(?=st|nd|rd|th)/,t.ignoreCase?e.toLowerCase():e,"D");return s.length>0&&(s.length+=2),s}};export{s as formatter,n as parser};
