import{F as o}from"./p-2b31742f.js";import{s as i}from"./p-e1ee6da1.js";async function n(n,e,l){let t=((i===null||i===void 0?void 0:i.services)||[]).filter((o=>e&&typeof e==="function"?e(o):true));if(n===null||n===void 0?void 0:n.length){const i=new o(t,{keys:["name","description"]});t=i.search(n,{limit:l}).map((o=>o===null||o===void 0?void 0:o.item))}return t}function e(o){return o.replace(/\s{2,}/g," ").trim().toLowerCase()}function l(){return[...new Set(((i===null||i===void 0?void 0:i.services)||[]).map((o=>e(o===null||o===void 0?void 0:o.tab))))].sort(((o,i)=>o>i?1:-1)).filter((o=>o===null||o===void 0?void 0:o.length)).map((o=>({label:o,value:o})))}export{e as c,l as g,n as s};
//# sourceMappingURL=p-7694724a.js.map