// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0-or-later // @source: https://gitlab.com/soapbox-pub/ditto/-/tree/f0a3877c var e=new Set([30023,30024]);function t(e){let t=t=>e.tags.find(e=>e[0]===t)?.[1]||``,n=t=>e.tags.filter(e=>e[0]===t).map(e=>e[1]),r=t(`published_at`),i=r?parseInt(r)*1e3:e.created_at*1e3;return{title:t(`title`),summary:t(`summary`),content:e.content,image:t(`image`),tags:n(`t`),slug:t(`d`),publishedAt:i}}var n=225;function r(e){let t=e.replace(/```[\s\S]*?```/g,` `).replace(/`[^`]*`/g,` `).replace(/!?\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/[#*_>~`-]/g,` `).split(/\s+/).filter(Boolean).length;return t===0?0:Math.max(1,Math.round(t/n))}function i(e){let t=r(e);if(t!==0)return`${t} min read`}export{i as n,t as r,e as t}; // @license-end