import{__exports as e}from"../../../../../_virtual/utils2.mjs";import s from"../../../../../_virtual/_node_path.mjs";import{__require as r}from"./constants.mjs";var t;function o(){return t||(t=1,function(e){const t=s,o="win32"===process.platform,{REGEX_BACKSLASH:a,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:p}=r();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>n.test(e),e.isRegexChar=s=>1===s.length&&e.hasRegexChars(s),e.escapeRegex=e=>e.replace(p,"\\$1"),e.toPosixSlashes=e=>e.replace(a,"/"),e.removeBackslashes=e=>e.replace(i,e=>"\\"===e?"":e),e.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},e.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===o||"\\"===t.sep,e.escapeLast=(s,r,t)=>{const o=s.lastIndexOf(r,t);return-1===o?s:"\\"===s[o-1]?e.escapeLast(s,r,o-1):`${s.slice(0,o)}\\${s.slice(o)}`},e.removePrefix=(e,s={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),s.prefix="./"),r},e.wrapOutput=(e,s={},r={})=>{let t=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===s.negated&&(t=`(?:^(?!${t}).*$)`),t}}(e)),e}export{o as __require};