import{__require as r}from"./lib/stringify.mjs";import{__require as e}from"./lib/compile.mjs";import{__require as t}from"./lib/expand.mjs";import{__require as o}from"./lib/parse.mjs";var i,n;function p(){if(n)return i;n=1;const p=r(),a=e(),s=t(),m=o(),f=(r,e={})=>{let t=[];if(Array.isArray(r))for(const o of r){const r=f.create(o,e);Array.isArray(r)?t.push(...r):t.push(r)}else t=[].concat(f.create(r,e));return e&&!0===e.expand&&!0===e.nodupes&&(t=[...new Set(t)]),t};return f.parse=(r,e={})=>m(r,e),f.stringify=(r,e={})=>p("string"==typeof r?f.parse(r,e):r,e),f.compile=(r,e={})=>("string"==typeof r&&(r=f.parse(r,e)),a(r,e)),f.expand=(r,e={})=>{"string"==typeof r&&(r=f.parse(r,e));let t=s(r,e);return!0===e.noempty&&(t=t.filter(Boolean)),!0===e.nodupes&&(t=[...new Set(t)]),t},f.create=(r,e={})=>""===r||r.length<3?[r]:!0!==e.expand?f.compile(r,e):f.expand(r,e),i=f}export{p as __require};import a from"node:url";import s from"node:path";import m from"node:module";const f=a.fileURLToPath(import.meta.url);s.dirname(f),m.createRequire(import.meta.url);