import v from "../../../../../../_virtual/___vite-browser-external.js";
import { __require as m } from "../../../../path-parse@1.0.7/node_modules/path-parse/index.js";
var a, s;
function M() {
  if (s)
    return a;
  s = 1;
  var d = v, o = d.parse || m(), t = function(r, e) {
    var n = "/";
    /^([A-Za-z]:)/.test(r) ? n = "" : /^\\\\/.test(r) && (n = "\\\\");
    for (var u = [r], i = o(r); i.dir !== u[u.length - 1]; )
      u.push(i.dir), i = o(i.dir);
    return u.reduce(function(f, h) {
      return f.concat(e.map(function(l) {
        return d.resolve(n, h, l);
      }));
    }, []);
  };
  return a = function(r, e, n) {
    var u = e && e.moduleDirectory ? [].concat(e.moduleDirectory) : ["node_modules"];
    if (e && typeof e.paths == "function")
      return e.paths(
        n,
        r,
        function() {
          return t(r, u);
        },
        e
      );
    var i = t(r, u);
    return e && e.paths ? i.concat(e.paths) : i;
  }, a;
}
export {
  M as __require
};
//# sourceMappingURL=node-modules-paths.js.map
