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