import*as f from"path";import{resolve as i}from"path";import{fileURLToPath as a}from"url";import{combineUrls as m}from"@redocly/theme/core/utils";import{pathMatchesGlobPattern as n}from"./index.js";function g(t,r,...e){return m(t&&t!==r?"/"+t:"",...e)}function p(t){const r=a(t);return f.dirname(r)}function h(t,r){return i(p(t),r)}function P(t,r=[]){let e=!1;for(const o of r)o.startsWith("!")?n(t,o.slice(1))&&(e=!1):n(t,o)&&(e=!0);return e}function x(t){return typeof t=="string"&&!!t.match(/\.(svg|png|jpg|jpeg|gif|ico|webp)$/)}export{h as fromCurrentDir,g as generatePagePathname,x as isIconPath,P as isPathIgnored};
