// @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 function e(e){return/^:[a-zA-Z0-9_-]+:$/.test(e)}function t(e,t){let n=e.slice(1,-1);return t.find(([e,t])=>e===`emoji`&&t===n)?.[2]}function n(e){let t=new Map;for(let n of e)n[0]===`emoji`&&n[1]&&n[2]&&t.set(n[1],n[2]);return t}function r(n){let r=n.content.trim(),i=r===`+`||r===``?`👍`:r===`-`?`👎`:r;if(e(i)){let e=t(i,n.tags);return e?{content:i,url:e,name:i.slice(1,-1)}:void 0}return{content:i}}export{r as i,t as n,e as r,n as t}; // @license-end