yummacss 3.22.1 → 3.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +3 -3
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import{ConfigSchema as e,configName as t,extractor as n,generator as r}from"@yummacss/nitro";import{existsSync as i,mkdirSync as a,watch as o,writeFileSync as s}from"node:fs";import{dirname as c,join as l}from"node:path";import{pathToFileURL as u}from"node:url";import*as d from"fs";import f from"fs";import p,{basename as m,dirname as h,normalize as g,posix as _,relative as v,resolve as y,sep as b}from"path";import{fileURLToPath as x}from"url";import{createRequire as S}from"module";var C=Object.create,w=Object.defineProperty,T=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,D=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),A=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=E(t),a=0,o=i.length,s;a<o;a++)s=i[a],!O.call(e,s)&&s!==n&&w(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=T(t,s))||r.enumerable});return e},ee=(e,t,n)=>(n=e==null?{}:C(D(e)),A(t||!e||!e.__esModule?w(n,`default`,{value:e,enumerable:!0}):n,e)),j=`3.22.1`;let M={};function N(){return M}function P(e){M=e}function F(e){let t=JSON.stringify(e);return M.configHash!==t}async function I(e){return{css:r(await n(e.source),e),dependencies:e.source}}const L={build:{start:`Build the styles...`,success:(e,t)=>`Built the styles in ${e} ms. (${t})`,fail:`Something went wrong—check the files and try again.`},init:{fail:`Something went wrong—try again or check the documentation.`,invalid:`Your configuration is invalid. Check the syntax and try again.`,notFound:`Your configuration was not found. Initialize a new one with the 'init' command.`,success:`Created the configuration.`},watch:{start:`Watch for file changes...`,fail:`Something went wrong—try again or check the documentation.`},common:{unknownError:`Something went wrong—try again or contact support.`}},R=`[Yumma CSS]`;function z(){process.stdout.isTTY&&process.stdout.write(`\x1B[2K\x1B[0G`)}const B={fail:e=>console.error(`${R} Error: ${e}`),info:e=>console.info(`${R} Info: ${e}`),progress:e=>(console.log(`${R}: ${e}`),{succeed:t=>{z(),console.log(`${R} Done: ${t||e}`)},fail:t=>{z(),console.error(`${R} Error: ${t||e}`)},warn:t=>{z(),console.warn(`${R} Warn: ${t||e}`)},info:t=>{z(),console.info(`${R} Info: ${t||e}`)},stop:()=>{z()}}),success:e=>console.log(`${R} Done: ${e}`),warn:e=>console.warn(`${R} Warn: ${e}`)};async function V(){let n=u(l(process.cwd(),t)).href;try{let{default:t}=await import(n);return e.parse(t)}catch{i(t)||(B.progress(L.init.notFound).fail(L.init.notFound),process.exit(1)),B.progress(L.init.invalid).fail(L.init.invalid),process.exit(1)}}async function H(e,t=!1){let n=B.progress(L.build.start),r=Date.now();try{let i=e||await V(),o=N(),l=F(i),u;if(t||l||!o.css){let e=await I(i);u=e.css,P({configHash:JSON.stringify(i),css:e.css,dependencies:e.dependencies})}else u=o.css;a(c(i.output),{recursive:!0}),s(i.output,u),n.succeed(L.build.success(Date.now()-r,i.output))}catch(e){n.fail(`${L.build.fail} ${e instanceof Error?e.message:String(e)}`),process.exit(1)}}function U(){return{filename:t,content:`import { defineConfig } from "yummacss";
2
+ import{ConfigSchema as e,configName as t,extractor as n,generator as r}from"@yummacss/nitro";import{existsSync as i,mkdirSync as a,watch as o,writeFileSync as s}from"node:fs";import{dirname as c,join as l}from"node:path";import{pathToFileURL as u}from"node:url";import{feedback as d}from"@/utils/feedback";import{cli as f}from"@/utils/status";import*as p from"fs";import m from"fs";import h,{basename as g,dirname as _,normalize as v,posix as y,relative as b,resolve as x,sep as S}from"path";import{fileURLToPath as C}from"url";import{createRequire as w}from"module";var T=Object.create,E=Object.defineProperty,D=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,k=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),M=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=O(t),a=0,o=i.length,s;a<o;a++)s=i[a],!A.call(e,s)&&s!==n&&E(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=D(t,s))||r.enumerable});return e},N=(e,t,n)=>(n=e==null?{}:T(k(e)),M(t||!e||!e.__esModule?E(n,`default`,{value:e,enumerable:!0}):n,e)),P=`3.22.2`;let F={};function I(){return F}function L(e){F=e}function R(e){let t=JSON.stringify(e);return F.configHash!==t}async function z(e){return{css:r(await n(e.source),e),dependencies:e.source}}async function B(){let n=u(l(process.cwd(),t)).href;try{let{default:t}=await import(n);return e.parse(t)}catch{i(t)||(f.progress(d.init.notFound).fail(d.init.notFound),process.exit(1)),f.progress(d.init.invalid).fail(d.init.invalid),process.exit(1)}}const V={brand:`◪`,done:`✓`,error:`✕`,progress:`-`};function H(){process.stdout.isTTY&&process.stdout.write(`\x1B[2K\x1B[0G`)}function U(e,t,n=`stdout`){let r=` ${e} ${t}`;n===`stderr`?process.stderr.write(`${r}\n`):process.stdout.write(`${r}\n`)}function W(e){return U(V.progress,e),{succeed:e=>{H(),U(V.done,e)},fail:e=>{H(),U(V.error,e,`stderr`)},stop:()=>{H()}}}const G={header(e){process.stdout.write(`\n ${V.brand} Yumma CSS ${e}\n\n`)},fail(e){U(V.error,e,`stderr`)},build:{start(){return W(`Extracting classes...`)},success(e,t){return`Done in ${e} ms. (${t})`},fail(e){return`Something went wrong. ${e instanceof Error?e.message:`Check your files & try again.`}`}},watch:{start(){return W(`Extracting classes...`)},success(e){return`Watching for changes. (${e})`},fail(){return`Something went wrong. Check your files & try again.`}},init:{start(){return W(`Initializing...`)},success(e){return`Created ${e}.`},fail(){return`Something went wrong. Check the docs & try again.`},notFound(){return`No config found. Run 'yummacss init' to create one.`},invalid(){return`Invalid config. Check the syntax & try again.`}}};async function K(e,t=!1){let n=G.build.start(),r=Date.now();try{let i=e||await B(),o=I(),l=R(i),u;if(t||l||!o.css){let e=await z(i);u=e.css,L({configHash:JSON.stringify(i),css:e.css,dependencies:e.dependencies})}else u=o.css;if(!i.output)throw Error(`No output path specified in config.`);a(c(i.output),{recursive:!0}),s(i.output,u),n.succeed(G.build.success(Date.now()-r,i.output))}catch(e){n.fail(G.build.fail(e)),process.exit(1)}}function q(){return{filename:t,content:`import { defineConfig } from "yummacss";
3
3
 
4
4
  export default defineConfig({
5
5
  source: [""],
6
6
  output: "",
7
7
  });
8
- `}}function W(){let e=B.progress(`Initialize the configuration...`);try{let{filename:t,content:n}=U();s(t,n),e.succeed(L.init.success)}catch{e.fail(L.init.fail),process.exit(1)}}function G(e){"@babel/helpers - typeof";return G=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},G(e)}function K(e,t){if(G(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(G(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function q(e){var t=K(e,`string`);return G(t)==`symbol`?t:t+``}function J(e,t,n){return(t=q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y=S(import.meta.url);function X(e){let t=g(e);return t.length>1&&t[t.length-1]===b&&(t=t.substring(0,t.length-1)),t}const Z=/[\\/]/g;function te(e,t){return e.replace(Z,t)}const ne=/^[a-z]:[\\/]$/i;function re(e){return e===`/`||ne.test(e)}function ie(e,t){let{resolvePaths:n,normalizePath:r,pathSeparator:i}=t,a=process.platform===`win32`&&e.includes(`/`)||e.startsWith(`.`);return n&&(e=y(e)),(r||a)&&(e=X(e)),e===`.`?``:te(e[e.length-1]===i?e:e+i,i)}function ae(e,t){return t+e}function oe(e,t){return function(n,r){return r.startsWith(e)?r.slice(e.length)+n:te(v(e,r),t.pathSeparator)+t.pathSeparator+n}}function se(e){return e}function ce(e,t,n){return t+e+n}function le(e,t){let{relativePaths:n,includeBasePath:r}=t;return n&&e?oe(e,t):r?ae:se}function ue(e){return function(t,n){n.push(t.substring(e.length)||`.`)}}function de(e){return function(t,n,r){let i=t.substring(e.length)||`.`;r.every(e=>e(i,!0))&&n.push(i)}}const fe=(e,t)=>{t.push(e||`.`)},pe=(e,t,n)=>{let r=e||`.`;n.every(e=>e(r,!0))&&t.push(r)},me=()=>{};function he(e,t){let{includeDirs:n,filters:r,relativePaths:i}=t;return n?i?r&&r.length?de(e):ue(e):r&&r.length?pe:fe:me}const ge=(e,t,n,r)=>{r.every(t=>t(e,!1))&&n.files++},_e=(e,t,n,r)=>{r.every(t=>t(e,!1))&&t.push(e)},ve=(e,t,n,r)=>{n.files++},ye=(e,t)=>{t.push(e)},be=()=>{};function xe(e){let{excludeFiles:t,filters:n,onlyCounts:r}=e;return t?be:n&&n.length?r?ge:_e:r?ve:ye}const Se=e=>e,Ce=()=>[``].slice(0,0);function we(e){return e.group?Ce:Se}const Te=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},Ee=()=>{};function De(e){return e.group?Te:Ee}const Oe=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue(),i.realpath(e,(o,s)=>{if(o)return r.dequeue(a?null:o,t);i.stat(s,(i,o)=>{if(i)return r.dequeue(a?null:i,t);if(o.isDirectory()&&je(e,s,t))return r.dequeue(null,t);n(o,s),r.dequeue(null,t)})})},ke=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue();try{let r=i.realpathSync(e),a=i.statSync(r);if(a.isDirectory()&&je(e,r,t))return;n(a,r)}catch(e){if(!a)throw e}};function Ae(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?ke:Oe}function je(e,t,n){if(n.options.useRealPaths)return Me(t,n);let r=h(e),i=1;for(;r!==n.root&&i<2;){let e=n.symlinks.get(r);e&&(e===t||e.startsWith(t)||t.startsWith(e))?i++:r=h(r)}return n.symlinks.set(e,t),i>1}function Me(e,t){return t.visited.includes(e+t.options.pathSeparator)}const Ne=e=>e.counts,Pe=e=>e.groups,Fe=e=>e.paths,Ie=e=>e.paths.slice(0,e.options.maxFiles),Le=(e,t,n)=>(Ve(t,n,e.counts,e.options.suppressErrors),null),Re=(e,t,n)=>(Ve(t,n,e.paths,e.options.suppressErrors),null),ze=(e,t,n)=>(Ve(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),Be=(e,t,n)=>(Ve(t,n,e.groups,e.options.suppressErrors),null);function Ve(e,t,n,r){t(e&&!r?e:null,n)}function He(e,t){let{onlyCounts:n,group:r,maxFiles:i}=e;return n?t?Ne:Le:r?t?Pe:Be:i?t?Ie:ze:t?Fe:Re}const Ue={withFileTypes:!0},We=(e,t,n,r,i)=>{if(e.queue.enqueue(),r<0)return e.queue.dequeue(null,e);let{fs:a}=e;e.visited.push(t),e.counts.directories++,a.readdir(t||`.`,Ue,(t,a=[])=>{i(a,n,r),e.queue.dequeue(e.options.suppressErrors?null:t,e)})},Ge=(e,t,n,r,i)=>{let{fs:a}=e;if(r<0)return;e.visited.push(t),e.counts.directories++;let o=[];try{o=a.readdirSync(t||`.`,Ue)}catch(t){if(!e.options.suppressErrors)throw t}i(o,n,r)};function Ke(e){return e?Ge:We}var qe=class{constructor(e){J(this,`count`,0),this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},Je=class{constructor(){J(this,`_files`,0),J(this,`_directories`,0)}set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},Ye=class{constructor(){J(this,`aborted`,!1)}abort(){this.aborted=!0}},Xe=class{constructor(e,t,n){J(this,`root`,void 0),J(this,`isSynchronous`,void 0),J(this,`state`,void 0),J(this,`joinPath`,void 0),J(this,`pushDirectory`,void 0),J(this,`pushFile`,void 0),J(this,`getArray`,void 0),J(this,`groupFiles`,void 0),J(this,`resolveSymlink`,void 0),J(this,`walkDirectory`,void 0),J(this,`callbackInvoker`,void 0),J(this,`walk`,(e,t,n)=>{let{paths:r,options:{filters:i,resolveSymlinks:a,excludeSymlinks:o,exclude:s,maxFiles:c,signal:l,useRealPaths:u,pathSeparator:d},controller:f}=this.state;if(f.aborted||l&&l.aborted||c&&r.length>c)return;let p=this.getArray(this.state.paths);for(let c=0;c<e.length;++c){let l=e[c];if(l.isFile()||l.isSymbolicLink()&&!a&&!o){let e=this.joinPath(l.name,t);this.pushFile(e,p,this.state.counts,i)}else if(l.isDirectory()){let e=ce(l.name,t,this.state.options.pathSeparator);if(s&&s(l.name,e))continue;this.pushDirectory(e,r,i),this.walkDirectory(this.state,e,e,n-1,this.walk)}else if(this.resolveSymlink&&l.isSymbolicLink()){let e=ae(l.name,t);this.resolveSymlink(e,this.state,(t,r)=>{if(t.isDirectory()){if(r=ie(r,this.state.options),s&&s(l.name,u?r:e+d))return;this.walkDirectory(this.state,r,u?r:e+d,n-1,this.walk)}else{r=u?r:e;let t=m(r),n=ie(h(r),this.state.options);r=this.joinPath(t,n),this.pushFile(r,p,this.state.counts,i)}})}}this.groupFiles(this.state.groups,t,p)}),this.isSynchronous=!n,this.callbackInvoker=He(t,this.isSynchronous),this.root=ie(e,t),this.state={root:re(this.root)?this.root:this.root.slice(0,-1),paths:[``].slice(0,0),groups:[],counts:new Je,options:t,queue:new qe((e,t)=>this.callbackInvoker(t,e,n)),symlinks:new Map,visited:[``].slice(0,0),controller:new Ye,fs:t.fs||d},this.joinPath=le(this.root,t),this.pushDirectory=he(this.root,t),this.pushFile=xe(t),this.getArray=we(t),this.groupFiles=De(t),this.resolveSymlink=Ae(t,this.isSynchronous),this.walkDirectory=Ke(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}};function Ze(e,t){return new Promise((n,r)=>{Qe(e,t,(e,t)=>{if(e)return r(e);n(t)})})}function Qe(e,t,n){new Xe(e,t,n).start()}function $e(e,t){return new Xe(e,t).start()}var et=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return Ze(this.root,this.options)}withCallback(e){Qe(this.root,this.options,e)}sync(){return $e(this.root,this.options)}};let tt=null;try{Y.resolve(`picomatch`),tt=Y(`picomatch`)}catch{}var nt=class{constructor(e){J(this,`globCache`,{}),J(this,`options`,{maxDepth:1/0,suppressErrors:!0,pathSeparator:b,filters:[]}),J(this,`globFunction`,void 0),this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new et(e||`.`,this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new et(e||`.`,this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||tt;if(!n)throw Error(`Please specify a glob function to use glob matching.`);var r=this.globCache[e.join(`\0`)];return r||(r=n(e,...t),this.globCache[e.join(`\0`)]=r),this.options.filters.push(e=>r(e)),this}},rt=k(((e,t)=>{let n=`[^\\\\/]`,r=`[^/]`,i=`(?:\\/|$)`,a=`(?:^|\\/)`,o=`\\.{1,2}${i}`,s={DOT_LITERAL:`\\.`,PLUS_LITERAL:`\\+`,QMARK_LITERAL:`\\?`,SLASH_LITERAL:`\\/`,ONE_CHAR:`(?=.)`,QMARK:r,END_ANCHOR:i,DOTS_SLASH:o,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!${a}${o})`,NO_DOT_SLASH:`(?!\\.{0,1}${i})`,NO_DOTS_SLASH:`(?!${o})`,QMARK_NO_DOT:`[^.\\/]`,STAR:`${r}*?`,START_ANCHOR:a,SEP:`/`},c={...s,SLASH_LITERAL:`[\\\\/]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`\\.{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!\\.{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!\\.{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:`[^.\\\\/]`,START_ANCHOR:`(?:^|[\\\\/])`,END_ANCHOR:`(?:[\\\\/]|$)`,SEP:`\\`};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:{alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?c:s}}})),it=k((e=>{let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=rt();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,`\\$1`),e.toPosixSlashes=e=>e.replace(t,`/`),e.isWindows=()=>{if(typeof navigator<`u`&&navigator.platform){let e=navigator.platform.toLowerCase();return e===`win32`||e===`windows`}return typeof process<`u`&&process.platform?process.platform===`win32`:!1},e.removeBackslashes=e=>e.replace(n,e=>e===`\\`?``:e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:`/`),r=n[n.length-1];return r===``?n[n.length-2]:r}})),at=k(((e,t)=>{let n=it(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=rt(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,ee=!1,j=!1,M=!1,N=!1,P=!1,F=!1,I=!1,L=!1,R=!1,z=0,B,V,H={value:``,depth:0,isGlob:!1},U=()=>D>=x,W=()=>E.charCodeAt(D+1),G=()=>(B=V,E.charCodeAt(++D));for(;D<x;){V=G();let e;if(V===a){F=H.backslashes=!0,V=G(),V===u&&(P=!0);continue}if(P===!0||V===u){for(z++;U()!==!0&&(V=G());){if(V===a){F=H.backslashes=!0,G();continue}if(V===u){z++;continue}if(P!==!0&&V===s&&(V=G())===s){if(A=H.isBrace=!0,j=H.isGlob=!0,R=!0,S===!0)continue;break}if(P!==!0&&V===o){if(A=H.isBrace=!0,j=H.isGlob=!0,R=!0,S===!0)continue;break}if(V===h&&(z--,z===0)){P=!1,A=H.isBrace=!0,R=!0;break}}if(S===!0)continue;break}if(V===l){if(C.push(D),w.push(H),H={value:``,depth:0,isGlob:!1},R===!0)continue;if(B===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(V===p||V===i||V===r||V===m||V===c)&&W()===d){if(j=H.isGlob=!0,M=H.isExtglob=!0,R=!0,V===c&&D===O&&(L=!0),S===!0){for(;U()!==!0&&(V=G());){if(V===a){F=H.backslashes=!0,V=G();continue}if(V===g){j=H.isGlob=!0,R=!0;break}}continue}break}if(V===r){if(B===r&&(N=H.isGlobstar=!0),j=H.isGlob=!0,R=!0,S===!0)continue;break}if(V===m){if(j=H.isGlob=!0,R=!0,S===!0)continue;break}if(V===f){for(;U()!==!0&&(e=G());){if(e===a){F=H.backslashes=!0,G();continue}if(e===_){ee=H.isBracket=!0,j=H.isGlob=!0,R=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&V===c&&D===O){I=H.negated=!0,O++;continue}if(b.noparen!==!0&&V===d){if(j=H.isGlob=!0,S===!0){for(;U()!==!0&&(V=G());){if(V===d){F=H.backslashes=!0,V=G();continue}if(V===g){R=!0;break}}continue}break}if(j===!0){if(R=!0,S===!0)continue;break}}b.noext===!0&&(M=!1,j=!1);let K=E,q=``,J=``;O>0&&(q=E.slice(0,O),E=E.slice(O),k-=O),K&&j===!0&&k>0?(K=E.slice(0,k),J=E.slice(k)):j===!0?(K=``,J=E):K=E,K&&K!==``&&K!==`/`&&K!==E&&v(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),b.unescape===!0&&(J&&(J=n.removeBackslashes(J)),K&&F===!0&&(K=n.removeBackslashes(K)));let Y={prefix:q,input:e,start:O,base:K,glob:J,isBrace:A,isBracket:ee,isGlob:j,isExtglob:M,isGlobstar:N,negated:I,negatedExtglob:L};if(b.tokens===!0&&(Y.maxDepth=0,v(V)||w.push(H),Y.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t?t+1:O,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=q):w[n].value=a,y(w[n]),Y.maxDepth+=w[n].depth),(n!==0||a!==``)&&T.push(a),t=i}if(t&&t+1<e.length){let n=e.slice(t+1);T.push(n),b.tokens&&(w[w.length-1].value=n,y(w[w.length-1]),Y.maxDepth+=w[w.length-1].depth)}Y.slashes=C,Y.parts=T}return Y}})),ot=k(((e,t)=>{let n=rt(),r=it(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch{return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let f={...t},p=typeof f.maxLength==`number`?Math.min(i,f.maxLength):i,m=e.length;if(m>p)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${p}`);let h={type:`bos`,value:``,output:f.prepend||``},g=[h],_=f.capture?``:`?:`,v=n.globChars(f.windows),y=n.extglobChars(v),{DOT_LITERAL:b,PLUS_LITERAL:x,SLASH_LITERAL:S,ONE_CHAR:C,DOTS_SLASH:w,NO_DOT:T,NO_DOT_SLASH:E,NO_DOTS_SLASH:D,QMARK:O,QMARK_NO_DOT:k,STAR:A,START_ANCHOR:ee}=v,j=e=>`(${_}(?:(?!${ee}${e.dot?w:b}).)*?)`,M=f.dot?``:T,N=f.dot?O:k,P=f.bash===!0?j(f):A;f.capture&&(P=`(${P})`),typeof f.noext==`boolean`&&(f.noextglob=f.noext);let F={input:e,index:-1,start:0,dot:f.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};e=r.removePrefix(e,F),m=e.length;let I=[],L=[],R=[],z=h,B,V=()=>F.index===m-1,H=F.peek=(t=1)=>e[F.index+t],U=F.advance=()=>e[++F.index]||``,W=()=>e.slice(F.index+1),G=(e=``,t=0)=>{F.consumed+=e,F.index+=t},K=e=>{F.output+=e.output==null?e.value:e.output,G(e.value)},q=()=>{let e=1;for(;H()===`!`&&(H(2)!==`(`||H(3)===`?`);)U(),F.start++,e++;return e%2==0?!1:(F.negated=!0,F.start++,!0)},J=e=>{F[e]++,R.push(e)},Y=e=>{F[e]--,R.pop()},X=e=>{if(z.type===`globstar`){let t=F.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||I.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(F.output=F.output.slice(0,-z.output.length),z.type=`star`,z.value=`*`,z.output=P,F.output+=z.output)}if(I.length&&e.type!==`paren`&&(I[I.length-1].inner+=e.value),(e.value||e.output)&&K(e),z&&z.type===`text`&&e.type===`text`){z.output=(z.output||z.value)+e.value,z.value+=e.value;return}e.prev=z,g.push(e),z=e},Z=(e,t)=>{let n={...y[t],conditions:1,inner:``};n.prev=z,n.parens=F.parens,n.output=F.output;let r=(f.capture?`(`:``)+n.open;J(`parens`),X({type:e,value:t,output:F.output?``:C}),X({type:`paren`,extglob:!0,value:U(),output:r}),I.push(n)},te=e=>{let n=e.close+(f.capture?`)`:``),r;if(e.type===`negate`){let i=P;e.inner&&e.inner.length>1&&e.inner.includes(`/`)&&(i=j(f)),(i!==P||V()||/^\)+$/.test(W()))&&(n=e.close=`)$))${i}`),e.inner.includes(`*`)&&(r=W())&&/^\.[^\\/.]+$/.test(r)&&(n=e.close=`)${d(r,{...t,fastpaths:!1}).output})${i})`),e.prev.type===`bos`&&(F.negatedExtglob=!0)}X({type:`paren`,extglob:!0,value:B,output:n}),Y(`parens`)};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?O.repeat(a.length):``):o===0?N+(a?O.repeat(a.length):``):O.repeat(r.length):i===`.`?b.repeat(r.length):i===`*`?t?t+i+(a?P:``):P:t?e:`\\${e}`);return n===!0&&(i=f.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&f.contains===!0?(F.output=e,F):(F.output=r.wrapOutput(i,F,t),F)}for(;!V();){if(B=U(),B===`\0`)continue;if(B===`\\`){let e=H();if(e===`/`&&f.bash!==!0||e===`.`||e===`;`)continue;if(!e){B+=`\\`,X({type:`text`,value:B});continue}let t=/^\\+/.exec(W()),n=0;if(t&&t[0].length>2&&(n=t[0].length,F.index+=n,n%2!=0&&(B+=`\\`)),f.unescape===!0?B=U():B+=U(),F.brackets===0){X({type:`text`,value:B});continue}}if(F.brackets>0&&(B!==`]`||z.value===`[`||z.value===`[^`)){if(f.posix!==!1&&B===`:`){let e=z.value.slice(1);if(e.includes(`[`)&&(z.posix=!0,e.includes(`:`))){let e=z.value.lastIndexOf(`[`),t=z.value.slice(0,e),n=a[z.value.slice(e+2)];if(n){z.value=t+n,F.backtrack=!0,U(),!h.output&&g.indexOf(z)===1&&(h.output=C);continue}}}(B===`[`&&H()!==`:`||B===`-`&&H()===`]`)&&(B=`\\${B}`),B===`]`&&(z.value===`[`||z.value===`[^`)&&(B=`\\${B}`),f.posix===!0&&B===`!`&&z.value===`[`&&(B=`^`),z.value+=B,K({value:B});continue}if(F.quotes===1&&B!==`"`){B=r.escapeRegex(B),z.value+=B,K({value:B});continue}if(B===`"`){F.quotes=F.quotes===1?0:1,f.keepQuotes===!0&&X({type:`text`,value:B});continue}if(B===`(`){J(`parens`),X({type:`paren`,value:B});continue}if(B===`)`){if(F.parens===0&&f.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=I[I.length-1];if(e&&F.parens===e.parens+1){te(I.pop());continue}X({type:`paren`,value:B,output:F.parens?`)`:`\\)`}),Y(`parens`);continue}if(B===`[`){if(f.nobracket===!0||!W().includes(`]`)){if(f.nobracket!==!0&&f.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));B=`\\${B}`}else J(`brackets`);X({type:`bracket`,value:B});continue}if(B===`]`){if(f.nobracket===!0||z&&z.type===`bracket`&&z.value.length===1){X({type:`text`,value:B,output:`\\${B}`});continue}if(F.brackets===0){if(f.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));X({type:`text`,value:B,output:`\\${B}`});continue}Y(`brackets`);let e=z.value.slice(1);if(z.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(B=`/${B}`),z.value+=B,K({value:B}),f.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(z.value);if(F.output=F.output.slice(0,-z.value.length),f.literalBrackets===!0){F.output+=t,z.value=t;continue}z.value=`(${_}${t}|${z.value})`,F.output+=z.value;continue}if(B===`{`&&f.nobrace!==!0){J(`braces`);let e={type:`brace`,value:B,output:`(`,outputIndex:F.output.length,tokensIndex:F.tokens.length};L.push(e),X(e);continue}if(B===`}`){let e=L[L.length-1];if(f.nobrace===!0||!e){X({type:`text`,value:B,output:B});continue}let t=`)`;if(e.dots===!0){let e=g.slice(),n=[];for(let t=e.length-1;t>=0&&(g.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,f),F.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=F.output.slice(0,e.outputIndex),r=F.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,B=t=`\\}`,F.output=n;for(let e of r)F.output+=e.output||e.value}X({type:`brace`,value:B,output:t}),Y(`braces`),L.pop();continue}if(B===`|`){I.length>0&&I[I.length-1].conditions++,X({type:`text`,value:B});continue}if(B===`,`){let e=B,t=L[L.length-1];t&&R[R.length-1]===`braces`&&(t.comma=!0,e=`|`),X({type:`comma`,value:B,output:e});continue}if(B===`/`){if(z.type===`dot`&&F.index===F.start+1){F.start=F.index+1,F.consumed=``,F.output=``,g.pop(),z=h;continue}X({type:`slash`,value:B,output:S});continue}if(B===`.`){if(F.braces>0&&z.type===`dot`){z.value===`.`&&(z.output=b);let e=L[L.length-1];z.type=`dots`,z.output+=B,z.value+=B,e.dots=!0;continue}if(F.braces+F.parens===0&&z.type!==`bos`&&z.type!==`slash`){X({type:`text`,value:B,output:b});continue}X({type:`dot`,value:B,output:b});continue}if(B===`?`){if(!(z&&z.value===`(`)&&f.noextglob!==!0&&H()===`(`&&H(2)!==`?`){Z(`qmark`,B);continue}if(z&&z.type===`paren`){let e=H(),t=B;(z.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(W()))&&(t=`\\${B}`),X({type:`text`,value:B,output:t});continue}if(f.dot!==!0&&(z.type===`slash`||z.type===`bos`)){X({type:`qmark`,value:B,output:k});continue}X({type:`qmark`,value:B,output:O});continue}if(B===`!`){if(f.noextglob!==!0&&H()===`(`&&(H(2)!==`?`||!/[!=<:]/.test(H(3)))){Z(`negate`,B);continue}if(f.nonegate!==!0&&F.index===0){q();continue}}if(B===`+`){if(f.noextglob!==!0&&H()===`(`&&H(2)!==`?`){Z(`plus`,B);continue}if(z&&z.value===`(`||f.regex===!1){X({type:`plus`,value:B,output:x});continue}if(z&&(z.type===`bracket`||z.type===`paren`||z.type===`brace`)||F.parens>0){X({type:`plus`,value:B});continue}X({type:`plus`,value:x});continue}if(B===`@`){if(f.noextglob!==!0&&H()===`(`&&H(2)!==`?`){X({type:`at`,extglob:!0,value:B,output:``});continue}X({type:`text`,value:B});continue}if(B!==`*`){(B===`$`||B===`^`)&&(B=`\\${B}`);let e=o.exec(W());e&&(B+=e[0],F.index+=e[0].length),X({type:`text`,value:B});continue}if(z&&(z.type===`globstar`||z.star===!0)){z.type=`star`,z.star=!0,z.value+=B,z.output=P,F.backtrack=!0,F.globstar=!0,G(B);continue}let t=W();if(f.noextglob!==!0&&/^\([^?]/.test(t)){Z(`star`,B);continue}if(z.type===`star`){if(f.noglobstar===!0){G(B);continue}let n=z.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(f.bash===!0&&(!i||t[0]&&t[0]!==`/`)){X({type:`star`,value:B,output:``});continue}let o=F.braces>0&&(n.type===`comma`||n.type===`brace`),s=I.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){X({type:`star`,value:B,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[F.index+4];if(n&&n!==`/`)break;t=t.slice(3),G(`/**`,3)}if(n.type===`bos`&&V()){z.type=`globstar`,z.value+=B,z.output=j(f),F.output=z.output,F.globstar=!0,G(B);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&V()){F.output=F.output.slice(0,-(n.output+z.output).length),n.output=`(?:${n.output}`,z.type=`globstar`,z.output=j(f)+(f.strictSlashes?`)`:`|$)`),z.value+=B,F.globstar=!0,F.output+=n.output+z.output,G(B);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;F.output=F.output.slice(0,-(n.output+z.output).length),n.output=`(?:${n.output}`,z.type=`globstar`,z.output=`${j(f)}${S}|${S}${e})`,z.value+=B,F.output+=n.output+z.output,F.globstar=!0,G(B+U()),X({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){z.type=`globstar`,z.value+=B,z.output=`(?:^|${S}|${j(f)}${S})`,F.output=z.output,F.globstar=!0,G(B+U()),X({type:`slash`,value:`/`,output:``});continue}F.output=F.output.slice(0,-z.output.length),z.type=`globstar`,z.output=j(f),z.value+=B,F.output+=z.output,F.globstar=!0,G(B);continue}let n={type:`star`,value:B,output:P};if(f.bash===!0){n.output=`.*?`,(z.type===`bos`||z.type===`slash`)&&(n.output=M+n.output),X(n);continue}if(z&&(z.type===`bracket`||z.type===`paren`)&&f.regex===!0){n.output=B,X(n);continue}(F.index===F.start||z.type===`slash`||z.type===`dot`)&&(z.type===`dot`?(F.output+=E,z.output+=E):f.dot===!0?(F.output+=D,z.output+=D):(F.output+=M,z.output+=M),H()!==`*`&&(F.output+=C,z.output+=C)),X(n)}for(;F.brackets>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));F.output=r.escapeLast(F.output,`[`),Y(`brackets`)}for(;F.parens>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));F.output=r.escapeLast(F.output,`(`),Y(`parens`)}for(;F.braces>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));F.output=r.escapeLast(F.output,`{`),Y(`braces`)}if(f.strictSlashes!==!0&&(z.type===`star`||z.type===`bracket`)&&X({type:`maybe_slash`,value:``,output:`${S}?`}),F.backtrack===!0){F.output=``;for(let e of F.tokens)F.output+=e.output==null?e.value:e.output,e.suffix&&(F.output+=e.suffix)}return F};d.fastpaths=(e,t)=>{let a={...t},o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let{DOT_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:m,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:_}=n.globChars(a.windows),v=a.dot?m:p,y=a.dot?h:p,b=a.capture?``:`?:`,x={negated:!1,prefix:``},S=a.bash===!0?`.*?`:g;a.capture&&(S=`(${S})`);let C=e=>e.noglobstar===!0?S:`(${b}(?:(?!${_}${e.dot?f:l}).)*?)`,w=e=>{switch(e){case`*`:return`${v}${d}${S}`;case`.*`:return`${l}${d}${S}`;case`*.*`:return`${v}${S}${l}${d}${S}`;case`*/*`:return`${v}${S}${u}${d}${y}${S}`;case`**`:return v+C(a);case`**/*`:return`(?:${v}${C(a)}${u})?${y}${d}${S}`;case`**/*.*`:return`(?:${v}${C(a)}${u})?${y}${S}${l}${d}${S}`;case`**/.*`:return`(?:${v}${C(a)}${u})?${l}${d}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=w(t[1]);return n?n+l+t[2]:void 0}}},T=w(r.removePrefix(e,x));return T&&a.strictSlashes!==!0&&(T+=`${u}?`),T},t.exports=d})),st=k(((e,t)=>{let n=at(),r=ot(),i=it(),a=rt(),o=e=>e&&typeof e==`object`&&!Array.isArray(e),s=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>s(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=o(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=i.windows,c=r?s.compileRe(e,t):s.makeRe(e,t,!1,!0),l=c.state;delete c.state;let u=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=s(i.ignore,e,n)}let d=(n,r=!1)=>{let{isMatch:o,match:d,output:f}=s.test(n,c,t,{glob:e,posix:a}),p={glob:e,state:l,regex:c,posix:a,input:n,output:f,match:d,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):u(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),r?p:!0)};return n&&(d.state=l),d};s.test=(e,t,n,{glob:r,posix:a}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let o=n||{},c=o.format||(a?i.toPosixSlashes:null),l=e===r,u=l&&c?c(e):e;return l===!1&&(u=c?c(e):e,l=u===r),(l===!1||o.capture===!0)&&(l=o.matchBase===!0||o.basename===!0?s.matchBase(e,t,n,a):t.exec(u)),{isMatch:!!l,match:l,output:u}},s.matchBase=(e,t,n)=>(t instanceof RegExp?t:s.makeRe(t,n)).test(i.basename(e)),s.isMatch=(e,t,n)=>s(t,n)(e),s.parse=(e,t)=>Array.isArray(e)?e.map(e=>s.parse(e,t)):r(e,{...t,fastpaths:!1}),s.scan=(e,t)=>n(e,t),s.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,c=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(c=`^(?!${c}).*$`);let l=s.toRegex(c,t);return r===!0&&(l.state=e),l},s.makeRe=(e,t={},n=!1,i=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let a={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(a.output=r.fastpaths(e,t)),a.output||(a=r(e,t)),s.compileRe(a,t,n,i)},s.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},s.constants=a,t.exports=s})),Q=ee(k(((e,t)=>{let n=st(),r=it();function i(e,t,i=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:r.isWindows()}),n(e,t,i)}Object.assign(i,n),t.exports=i}))(),1);const ct=Array.isArray,lt=process.platform===`win32`,ut=/^(\/?\.\.)+$/;function dt(e,t={}){let n=e.length,r=Array(n),i=Array(n),a=!t.noglobstar;for(let a=0;a<n;a++){let n=_t(e[a]);r[a]=n;let o=n.length,s=Array(o);for(let e=0;e<o;e++)s[e]=(0,Q.default)(n[e],t);i[a]=s}return t=>{let n=t.split(`/`);if(n[0]===`..`&&ut.test(t))return!0;for(let t=0;t<e.length;t++){let e=r[t],o=i[t],s=n.length,c=Math.min(s,e.length),l=0;for(;l<c;){let t=e[l];if(t.includes(`/`))return!0;if(!o[l](n[l]))break;if(a&&t===`**`)return!0;l++}if(l===s)return!0}return!1}}const ft=/^[A-Z]:\/$/i,pt=lt?e=>ft.test(e):e=>e===`/`;function mt(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let t=pt(e)?e.length:e.length+1;return(e,n)=>e.slice(t,n?-1:void 0)||`.`}let r=t.slice(e.length+1);return r?(e,t)=>{if(e===`.`)return r;let n=`${r}/${e}`;return t?n.slice(0,-1):n}:(e,t)=>t&&e!==`.`?e.slice(0,-1):e}return n?t=>_.relative(e,t)||`.`:n=>_.relative(e,`${t}/${n}`)||`.`}function ht(e,t){if(t.startsWith(`${e}/`)){let n=t.slice(e.length+1);return e=>`${n}/${e}`}return n=>{let r=_.relative(e,`${t}/${n}`);return n.endsWith(`/`)&&r!==``?`${r}/`:r||`.`}}const gt={parts:!0};function _t(e){let t=Q.default.scan(e,gt);return t.parts?.length?t.parts:[e]}const vt=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,yt=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,bt=lt?e=>e.replace(yt,`\\$&`):e=>e.replace(vt,`\\$&`);function xt(e,t){if(t?.caseSensitiveMatch===!1)return!0;let n=Q.default.scan(e);return n.isGlob||n.negated}function $(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString(`es`)}]`,...e)}const St=/^(\/?\.\.)+/,Ct=/\\(?=[()[\]{}!*+?@|])/g,wt=/\\/g;function Tt(e,t,n,r,i){let a=e;e.endsWith(`/`)&&(a=e.slice(0,-1)),!a.endsWith(`*`)&&t&&(a+=`/**`);let o=bt(n);a=p.isAbsolute(a.replace(Ct,``))?_.relative(o,a):_.normalize(a);let s=St.exec(a),c=_t(a);if(s?.[0]){let e=(s[0].length+1)/3,t=0,i=o.split(`/`);for(;t<e&&c[t+e]===i[i.length+t-e];)a=a.slice(0,(e-t-1)*3)+a.slice((e-t)*3+c[t+e].length+1)||`.`,t++;let l=_.join(n,s[0].slice(t*3));!l.startsWith(`.`)&&r.root.length>l.length&&(r.root=l,r.depthOffset=-e+t)}if(!i&&r.depthOffset>=0){r.commonPath??(r.commonPath=c);let e=[],t=Math.min(r.commonPath.length,c.length);for(let n=0;n<t;n++){let t=c[n];if(t===`**`&&!c[n+1]){e.pop();break}if(t!==r.commonPath[n]||xt(t)||n===c.length-1)break;e.push(t)}r.depthOffset=e.length,r.commonPath=e,r.root=e.length>0?_.join(n,...e):n}return a}function Et({patterns:e=[`**/*`],ignore:t=[],expandDirectories:n=!0},r,i){typeof e==`string`&&(e=[e]),typeof t==`string`&&(t=[t]);let a=[],o=[];for(let e of t)e&&(e[0]!==`!`||e[1]===`(`)&&o.push(Tt(e,n,r,i,!0));for(let t of e)t&&(t[0]!==`!`||t[1]===`(`?a.push(Tt(t,n,r,i,!1)):(t[1]!==`!`||t[2]===`(`)&&o.push(Tt(t.slice(1),n,r,i,!0)));return{match:a,ignore:o}}function Dt(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n];e[n]=t(r)}return e}function Ot(e){return e?e instanceof URL?x(e).replace(wt,`/`):p.resolve(e).replace(wt,`/`):process.cwd().replace(wt,`/`)}function kt(e,t={}){let n=process.env.TINYGLOBBY_DEBUG?{...t,debug:!0}:t,r=Ot(n.cwd);if(n.debug&&$(`globbing with:`,{patterns:e,options:n,cwd:r}),Array.isArray(e)&&e.length===0)return[{sync:()=>[],withPromise:async()=>[]},!1];let i={root:r,commonPath:null,depthOffset:0},a=Et({...n,patterns:e},r,i);n.debug&&$(`internal processing patterns:`,a);let o={dot:n.dot,nobrace:n.braceExpansion===!1,nocase:n.caseSensitiveMatch===!1,noextglob:n.extglob===!1,noglobstar:n.globstar===!1,posix:!0},s=(0,Q.default)(a.match,{...o,ignore:a.ignore}),c=(0,Q.default)(a.ignore,o),l=dt(a.match,o),u=mt(r,i.root,n.absolute),d=n.absolute?u:mt(r,i.root,!0),p={filters:[n.debug?(e,t)=>{let n=u(e,t),r=s(n);return r&&$(`matched ${n}`),r}:(e,t)=>s(u(e,t))],exclude:n.debug?(e,t)=>{let n=d(t,!0),r=n!==`.`&&!l(n)||c(n);return $(r?`skipped ${t}`:`crawling ${t}`),r}:(e,t)=>{let n=d(t,!0);return n!==`.`&&!l(n)||c(n)},fs:n.fs?{readdir:n.fs.readdir||f.readdir,readdirSync:n.fs.readdirSync||f.readdirSync,realpath:n.fs.realpath||f.realpath,realpathSync:n.fs.realpathSync||f.realpathSync,stat:n.fs.stat||f.stat,statSync:n.fs.statSync||f.statSync}:void 0,pathSeparator:`/`,relativePaths:!0,resolveSymlinks:!0,signal:n.signal};n.deep!==void 0&&(p.maxDepth=Math.round(n.deep-i.depthOffset)),n.absolute&&(p.relativePaths=!1,p.resolvePaths=!0,p.includeBasePath=!0),n.followSymbolicLinks===!1&&(p.resolveSymlinks=!1,p.excludeSymlinks=!0),n.onlyDirectories?(p.excludeFiles=!0,p.includeDirs=!0):n.onlyFiles===!1&&(p.includeDirs=!0),i.root=i.root.replace(wt,``);let m=i.root;n.debug&&$(`internal properties:`,i);let h=r!==m&&!n.absolute&&ht(r,i.root);return[new nt(p).crawl(m),h]}async function At(e,t){if(e&&t?.patterns)throw Error(`Cannot pass patterns as both an argument and an option`);let n=ct(e)||typeof e==`string`,r=n?t:e,[i,a]=kt(n?e:e.patterns,r);return a?Dt(await i.withPromise(),a):i.withPromise()}let jt,Mt=null;const Nt=new Set;function Pt(e,t){Nt.add(e),Mt&&clearTimeout(Mt),Mt=setTimeout(async()=>{Nt.size>0&&(await H(jt,!0),Nt.clear()),Mt=null},500)}async function Ft(){try{jt=await V(),await H(jt,!0),B.info(L.watch.start);let e=await At(jt.source);for(let t of e)o(t,e=>{Pt(t,e)})}catch{B.fail(L.watch.fail),process.exit(1)}}switch(process.argv.slice(2)[0]){case`init`:case`i`:W();break;case`build`:case`b`:H().catch(()=>process.exit(1));break;case`watch`:case`w`:Ft().catch(()=>process.exit(1));break;default:console.log(`
9
- Yumma CSS v${j}
8
+ `}}function J(){let e=G.init.start();try{let{filename:t,content:n}=q();s(t,n),e.succeed(G.init.success(t))}catch{e.fail(G.init.fail()),process.exit(1)}}function Y(e){"@babel/helpers - typeof";return Y=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Y(e)}function X(e,t){if(Y(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Y(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Z(e){var t=X(e,`string`);return Y(t)==`symbol`?t:t+``}function Q(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee=w(import.meta.url);function te(e){let t=v(e);return t.length>1&&t[t.length-1]===S&&(t=t.substring(0,t.length-1)),t}const ne=/[\\/]/g;function re(e,t){return e.replace(ne,t)}const ie=/^[a-z]:[\\/]$/i;function ae(e){return e===`/`||ie.test(e)}function oe(e,t){let{resolvePaths:n,normalizePath:r,pathSeparator:i}=t,a=process.platform===`win32`&&e.includes(`/`)||e.startsWith(`.`);return n&&(e=x(e)),(r||a)&&(e=te(e)),e===`.`?``:re(e[e.length-1]===i?e:e+i,i)}function se(e,t){return t+e}function ce(e,t){return function(n,r){return r.startsWith(e)?r.slice(e.length)+n:re(b(e,r),t.pathSeparator)+t.pathSeparator+n}}function le(e){return e}function ue(e,t,n){return t+e+n}function de(e,t){let{relativePaths:n,includeBasePath:r}=t;return n&&e?ce(e,t):r?se:le}function fe(e){return function(t,n){n.push(t.substring(e.length)||`.`)}}function pe(e){return function(t,n,r){let i=t.substring(e.length)||`.`;r.every(e=>e(i,!0))&&n.push(i)}}const me=(e,t)=>{t.push(e||`.`)},he=(e,t,n)=>{let r=e||`.`;n.every(e=>e(r,!0))&&t.push(r)},ge=()=>{};function _e(e,t){let{includeDirs:n,filters:r,relativePaths:i}=t;return n?i?r&&r.length?pe(e):fe(e):r&&r.length?he:me:ge}const ve=(e,t,n,r)=>{r.every(t=>t(e,!1))&&n.files++},ye=(e,t,n,r)=>{r.every(t=>t(e,!1))&&t.push(e)},be=(e,t,n,r)=>{n.files++},xe=(e,t)=>{t.push(e)},Se=()=>{};function Ce(e){let{excludeFiles:t,filters:n,onlyCounts:r}=e;return t?Se:n&&n.length?r?ve:ye:r?be:xe}const we=e=>e,Te=()=>[``].slice(0,0);function Ee(e){return e.group?Te:we}const De=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},Oe=()=>{};function ke(e){return e.group?De:Oe}const Ae=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue(),i.realpath(e,(o,s)=>{if(o)return r.dequeue(a?null:o,t);i.stat(s,(i,o)=>{if(i)return r.dequeue(a?null:i,t);if(o.isDirectory()&&Ne(e,s,t))return r.dequeue(null,t);n(o,s),r.dequeue(null,t)})})},je=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue();try{let r=i.realpathSync(e),a=i.statSync(r);if(a.isDirectory()&&Ne(e,r,t))return;n(a,r)}catch(e){if(!a)throw e}};function Me(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?je:Ae}function Ne(e,t,n){if(n.options.useRealPaths)return Pe(t,n);let r=_(e),i=1;for(;r!==n.root&&i<2;){let e=n.symlinks.get(r);e&&(e===t||e.startsWith(t)||t.startsWith(e))?i++:r=_(r)}return n.symlinks.set(e,t),i>1}function Pe(e,t){return t.visited.includes(e+t.options.pathSeparator)}const Fe=e=>e.counts,Ie=e=>e.groups,Le=e=>e.paths,Re=e=>e.paths.slice(0,e.options.maxFiles),ze=(e,t,n)=>(Ue(t,n,e.counts,e.options.suppressErrors),null),Be=(e,t,n)=>(Ue(t,n,e.paths,e.options.suppressErrors),null),Ve=(e,t,n)=>(Ue(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),He=(e,t,n)=>(Ue(t,n,e.groups,e.options.suppressErrors),null);function Ue(e,t,n,r){t(e&&!r?e:null,n)}function We(e,t){let{onlyCounts:n,group:r,maxFiles:i}=e;return n?t?Fe:ze:r?t?Ie:He:i?t?Re:Ve:t?Le:Be}const Ge={withFileTypes:!0},Ke=(e,t,n,r,i)=>{if(e.queue.enqueue(),r<0)return e.queue.dequeue(null,e);let{fs:a}=e;e.visited.push(t),e.counts.directories++,a.readdir(t||`.`,Ge,(t,a=[])=>{i(a,n,r),e.queue.dequeue(e.options.suppressErrors?null:t,e)})},qe=(e,t,n,r,i)=>{let{fs:a}=e;if(r<0)return;e.visited.push(t),e.counts.directories++;let o=[];try{o=a.readdirSync(t||`.`,Ge)}catch(t){if(!e.options.suppressErrors)throw t}i(o,n,r)};function Je(e){return e?qe:Ke}var Ye=class{constructor(e){Q(this,`count`,0),this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},Xe=class{constructor(){Q(this,`_files`,0),Q(this,`_directories`,0)}set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},Ze=class{constructor(){Q(this,`aborted`,!1)}abort(){this.aborted=!0}},Qe=class{constructor(e,t,n){Q(this,`root`,void 0),Q(this,`isSynchronous`,void 0),Q(this,`state`,void 0),Q(this,`joinPath`,void 0),Q(this,`pushDirectory`,void 0),Q(this,`pushFile`,void 0),Q(this,`getArray`,void 0),Q(this,`groupFiles`,void 0),Q(this,`resolveSymlink`,void 0),Q(this,`walkDirectory`,void 0),Q(this,`callbackInvoker`,void 0),Q(this,`walk`,(e,t,n)=>{let{paths:r,options:{filters:i,resolveSymlinks:a,excludeSymlinks:o,exclude:s,maxFiles:c,signal:l,useRealPaths:u,pathSeparator:d},controller:f}=this.state;if(f.aborted||l&&l.aborted||c&&r.length>c)return;let p=this.getArray(this.state.paths);for(let c=0;c<e.length;++c){let l=e[c];if(l.isFile()||l.isSymbolicLink()&&!a&&!o){let e=this.joinPath(l.name,t);this.pushFile(e,p,this.state.counts,i)}else if(l.isDirectory()){let e=ue(l.name,t,this.state.options.pathSeparator);if(s&&s(l.name,e))continue;this.pushDirectory(e,r,i),this.walkDirectory(this.state,e,e,n-1,this.walk)}else if(this.resolveSymlink&&l.isSymbolicLink()){let e=se(l.name,t);this.resolveSymlink(e,this.state,(t,r)=>{if(t.isDirectory()){if(r=oe(r,this.state.options),s&&s(l.name,u?r:e+d))return;this.walkDirectory(this.state,r,u?r:e+d,n-1,this.walk)}else{r=u?r:e;let t=g(r),n=oe(_(r),this.state.options);r=this.joinPath(t,n),this.pushFile(r,p,this.state.counts,i)}})}}this.groupFiles(this.state.groups,t,p)}),this.isSynchronous=!n,this.callbackInvoker=We(t,this.isSynchronous),this.root=oe(e,t),this.state={root:ae(this.root)?this.root:this.root.slice(0,-1),paths:[``].slice(0,0),groups:[],counts:new Xe,options:t,queue:new Ye((e,t)=>this.callbackInvoker(t,e,n)),symlinks:new Map,visited:[``].slice(0,0),controller:new Ze,fs:t.fs||p},this.joinPath=de(this.root,t),this.pushDirectory=_e(this.root,t),this.pushFile=Ce(t),this.getArray=Ee(t),this.groupFiles=ke(t),this.resolveSymlink=Me(t,this.isSynchronous),this.walkDirectory=Je(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}};function $e(e,t){return new Promise((n,r)=>{et(e,t,(e,t)=>{if(e)return r(e);n(t)})})}function et(e,t,n){new Qe(e,t,n).start()}function tt(e,t){return new Qe(e,t).start()}var nt=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return $e(this.root,this.options)}withCallback(e){et(this.root,this.options,e)}sync(){return tt(this.root,this.options)}};let rt=null;try{ee.resolve(`picomatch`),rt=ee(`picomatch`)}catch{}var it=class{constructor(e){Q(this,`globCache`,{}),Q(this,`options`,{maxDepth:1/0,suppressErrors:!0,pathSeparator:S,filters:[]}),Q(this,`globFunction`,void 0),this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new nt(e||`.`,this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new nt(e||`.`,this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||rt;if(!n)throw Error(`Please specify a glob function to use glob matching.`);var r=this.globCache[e.join(`\0`)];return r||(r=n(e,...t),this.globCache[e.join(`\0`)]=r),this.options.filters.push(e=>r(e)),this}},at=j(((e,t)=>{let n=`[^\\\\/]`,r=`[^/]`,i=`(?:\\/|$)`,a=`(?:^|\\/)`,o=`\\.{1,2}${i}`,s={DOT_LITERAL:`\\.`,PLUS_LITERAL:`\\+`,QMARK_LITERAL:`\\?`,SLASH_LITERAL:`\\/`,ONE_CHAR:`(?=.)`,QMARK:r,END_ANCHOR:i,DOTS_SLASH:o,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!${a}${o})`,NO_DOT_SLASH:`(?!\\.{0,1}${i})`,NO_DOTS_SLASH:`(?!${o})`,QMARK_NO_DOT:`[^.\\/]`,STAR:`${r}*?`,START_ANCHOR:a,SEP:`/`},c={...s,SLASH_LITERAL:`[\\\\/]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`\\.{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!\\.{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!\\.{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:`[^.\\\\/]`,START_ANCHOR:`(?:^|[\\\\/])`,END_ANCHOR:`(?:[\\\\/]|$)`,SEP:`\\`};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:{alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?c:s}}})),ot=j((e=>{let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=at();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,`\\$1`),e.toPosixSlashes=e=>e.replace(t,`/`),e.isWindows=()=>{if(typeof navigator<`u`&&navigator.platform){let e=navigator.platform.toLowerCase();return e===`win32`||e===`windows`}return typeof process<`u`&&process.platform?process.platform===`win32`:!1},e.removeBackslashes=e=>e.replace(n,e=>e===`\\`?``:e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:`/`),r=n[n.length-1];return r===``?n[n.length-2]:r}})),st=j(((e,t)=>{let n=ot(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=at(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,j=!1,M=!1,N=!1,P=!1,F=!1,I=!1,L=!1,R=!1,z=!1,B=0,V,H,U={value:``,depth:0,isGlob:!1},W=()=>D>=x,G=()=>E.charCodeAt(D+1),K=()=>(V=H,E.charCodeAt(++D));for(;D<x;){H=K();let e;if(H===a){I=U.backslashes=!0,H=K(),H===u&&(F=!0);continue}if(F===!0||H===u){for(B++;W()!==!0&&(H=K());){if(H===a){I=U.backslashes=!0,K();continue}if(H===u){B++;continue}if(F!==!0&&H===s&&(H=K())===s){if(A=U.isBrace=!0,M=U.isGlob=!0,z=!0,S===!0)continue;break}if(F!==!0&&H===o){if(A=U.isBrace=!0,M=U.isGlob=!0,z=!0,S===!0)continue;break}if(H===h&&(B--,B===0)){F=!1,A=U.isBrace=!0,z=!0;break}}if(S===!0)continue;break}if(H===l){if(C.push(D),w.push(U),U={value:``,depth:0,isGlob:!1},z===!0)continue;if(V===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(H===p||H===i||H===r||H===m||H===c)&&G()===d){if(M=U.isGlob=!0,N=U.isExtglob=!0,z=!0,H===c&&D===O&&(R=!0),S===!0){for(;W()!==!0&&(H=K());){if(H===a){I=U.backslashes=!0,H=K();continue}if(H===g){M=U.isGlob=!0,z=!0;break}}continue}break}if(H===r){if(V===r&&(P=U.isGlobstar=!0),M=U.isGlob=!0,z=!0,S===!0)continue;break}if(H===m){if(M=U.isGlob=!0,z=!0,S===!0)continue;break}if(H===f){for(;W()!==!0&&(e=K());){if(e===a){I=U.backslashes=!0,K();continue}if(e===_){j=U.isBracket=!0,M=U.isGlob=!0,z=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&H===c&&D===O){L=U.negated=!0,O++;continue}if(b.noparen!==!0&&H===d){if(M=U.isGlob=!0,S===!0){for(;W()!==!0&&(H=K());){if(H===d){I=U.backslashes=!0,H=K();continue}if(H===g){z=!0;break}}continue}break}if(M===!0){if(z=!0,S===!0)continue;break}}b.noext===!0&&(N=!1,M=!1);let q=E,J=``,Y=``;O>0&&(J=E.slice(0,O),E=E.slice(O),k-=O),q&&M===!0&&k>0?(q=E.slice(0,k),Y=E.slice(k)):M===!0?(q=``,Y=E):q=E,q&&q!==``&&q!==`/`&&q!==E&&v(q.charCodeAt(q.length-1))&&(q=q.slice(0,-1)),b.unescape===!0&&(Y&&(Y=n.removeBackslashes(Y)),q&&I===!0&&(q=n.removeBackslashes(q)));let X={prefix:J,input:e,start:O,base:q,glob:Y,isBrace:A,isBracket:j,isGlob:M,isExtglob:N,isGlobstar:P,negated:L,negatedExtglob:R};if(b.tokens===!0&&(X.maxDepth=0,v(H)||w.push(U),X.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t?t+1:O,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=J):w[n].value=a,y(w[n]),X.maxDepth+=w[n].depth),(n!==0||a!==``)&&T.push(a),t=i}if(t&&t+1<e.length){let n=e.slice(t+1);T.push(n),b.tokens&&(w[w.length-1].value=n,y(w[w.length-1]),X.maxDepth+=w[w.length-1].depth)}X.slashes=C,X.parts=T}return X}})),ct=j(((e,t)=>{let n=at(),r=ot(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch{return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let f={...t},p=typeof f.maxLength==`number`?Math.min(i,f.maxLength):i,m=e.length;if(m>p)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${p}`);let h={type:`bos`,value:``,output:f.prepend||``},g=[h],_=f.capture?``:`?:`,v=n.globChars(f.windows),y=n.extglobChars(v),{DOT_LITERAL:b,PLUS_LITERAL:x,SLASH_LITERAL:S,ONE_CHAR:C,DOTS_SLASH:w,NO_DOT:T,NO_DOT_SLASH:E,NO_DOTS_SLASH:D,QMARK:O,QMARK_NO_DOT:k,STAR:A,START_ANCHOR:j}=v,M=e=>`(${_}(?:(?!${j}${e.dot?w:b}).)*?)`,N=f.dot?``:T,P=f.dot?O:k,F=f.bash===!0?M(f):A;f.capture&&(F=`(${F})`),typeof f.noext==`boolean`&&(f.noextglob=f.noext);let I={input:e,index:-1,start:0,dot:f.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};e=r.removePrefix(e,I),m=e.length;let L=[],R=[],z=[],B=h,V,H=()=>I.index===m-1,U=I.peek=(t=1)=>e[I.index+t],W=I.advance=()=>e[++I.index]||``,G=()=>e.slice(I.index+1),K=(e=``,t=0)=>{I.consumed+=e,I.index+=t},q=e=>{I.output+=e.output==null?e.value:e.output,K(e.value)},J=()=>{let e=1;for(;U()===`!`&&(U(2)!==`(`||U(3)===`?`);)W(),I.start++,e++;return e%2==0?!1:(I.negated=!0,I.start++,!0)},Y=e=>{I[e]++,z.push(e)},X=e=>{I[e]--,z.pop()},Z=e=>{if(B.type===`globstar`){let t=I.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||L.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(I.output=I.output.slice(0,-B.output.length),B.type=`star`,B.value=`*`,B.output=F,I.output+=B.output)}if(L.length&&e.type!==`paren`&&(L[L.length-1].inner+=e.value),(e.value||e.output)&&q(e),B&&B.type===`text`&&e.type===`text`){B.output=(B.output||B.value)+e.value,B.value+=e.value;return}e.prev=B,g.push(e),B=e},Q=(e,t)=>{let n={...y[t],conditions:1,inner:``};n.prev=B,n.parens=I.parens,n.output=I.output;let r=(f.capture?`(`:``)+n.open;Y(`parens`),Z({type:e,value:t,output:I.output?``:C}),Z({type:`paren`,extglob:!0,value:W(),output:r}),L.push(n)},ee=e=>{let n=e.close+(f.capture?`)`:``),r;if(e.type===`negate`){let i=F;e.inner&&e.inner.length>1&&e.inner.includes(`/`)&&(i=M(f)),(i!==F||H()||/^\)+$/.test(G()))&&(n=e.close=`)$))${i}`),e.inner.includes(`*`)&&(r=G())&&/^\.[^\\/.]+$/.test(r)&&(n=e.close=`)${d(r,{...t,fastpaths:!1}).output})${i})`),e.prev.type===`bos`&&(I.negatedExtglob=!0)}Z({type:`paren`,extglob:!0,value:V,output:n}),X(`parens`)};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?O.repeat(a.length):``):o===0?P+(a?O.repeat(a.length):``):O.repeat(r.length):i===`.`?b.repeat(r.length):i===`*`?t?t+i+(a?F:``):F:t?e:`\\${e}`);return n===!0&&(i=f.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&f.contains===!0?(I.output=e,I):(I.output=r.wrapOutput(i,I,t),I)}for(;!H();){if(V=W(),V===`\0`)continue;if(V===`\\`){let e=U();if(e===`/`&&f.bash!==!0||e===`.`||e===`;`)continue;if(!e){V+=`\\`,Z({type:`text`,value:V});continue}let t=/^\\+/.exec(G()),n=0;if(t&&t[0].length>2&&(n=t[0].length,I.index+=n,n%2!=0&&(V+=`\\`)),f.unescape===!0?V=W():V+=W(),I.brackets===0){Z({type:`text`,value:V});continue}}if(I.brackets>0&&(V!==`]`||B.value===`[`||B.value===`[^`)){if(f.posix!==!1&&V===`:`){let e=B.value.slice(1);if(e.includes(`[`)&&(B.posix=!0,e.includes(`:`))){let e=B.value.lastIndexOf(`[`),t=B.value.slice(0,e),n=a[B.value.slice(e+2)];if(n){B.value=t+n,I.backtrack=!0,W(),!h.output&&g.indexOf(B)===1&&(h.output=C);continue}}}(V===`[`&&U()!==`:`||V===`-`&&U()===`]`)&&(V=`\\${V}`),V===`]`&&(B.value===`[`||B.value===`[^`)&&(V=`\\${V}`),f.posix===!0&&V===`!`&&B.value===`[`&&(V=`^`),B.value+=V,q({value:V});continue}if(I.quotes===1&&V!==`"`){V=r.escapeRegex(V),B.value+=V,q({value:V});continue}if(V===`"`){I.quotes=I.quotes===1?0:1,f.keepQuotes===!0&&Z({type:`text`,value:V});continue}if(V===`(`){Y(`parens`),Z({type:`paren`,value:V});continue}if(V===`)`){if(I.parens===0&&f.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=L[L.length-1];if(e&&I.parens===e.parens+1){ee(L.pop());continue}Z({type:`paren`,value:V,output:I.parens?`)`:`\\)`}),X(`parens`);continue}if(V===`[`){if(f.nobracket===!0||!G().includes(`]`)){if(f.nobracket!==!0&&f.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));V=`\\${V}`}else Y(`brackets`);Z({type:`bracket`,value:V});continue}if(V===`]`){if(f.nobracket===!0||B&&B.type===`bracket`&&B.value.length===1){Z({type:`text`,value:V,output:`\\${V}`});continue}if(I.brackets===0){if(f.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));Z({type:`text`,value:V,output:`\\${V}`});continue}X(`brackets`);let e=B.value.slice(1);if(B.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(V=`/${V}`),B.value+=V,q({value:V}),f.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(B.value);if(I.output=I.output.slice(0,-B.value.length),f.literalBrackets===!0){I.output+=t,B.value=t;continue}B.value=`(${_}${t}|${B.value})`,I.output+=B.value;continue}if(V===`{`&&f.nobrace!==!0){Y(`braces`);let e={type:`brace`,value:V,output:`(`,outputIndex:I.output.length,tokensIndex:I.tokens.length};R.push(e),Z(e);continue}if(V===`}`){let e=R[R.length-1];if(f.nobrace===!0||!e){Z({type:`text`,value:V,output:V});continue}let t=`)`;if(e.dots===!0){let e=g.slice(),n=[];for(let t=e.length-1;t>=0&&(g.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,f),I.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=I.output.slice(0,e.outputIndex),r=I.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,V=t=`\\}`,I.output=n;for(let e of r)I.output+=e.output||e.value}Z({type:`brace`,value:V,output:t}),X(`braces`),R.pop();continue}if(V===`|`){L.length>0&&L[L.length-1].conditions++,Z({type:`text`,value:V});continue}if(V===`,`){let e=V,t=R[R.length-1];t&&z[z.length-1]===`braces`&&(t.comma=!0,e=`|`),Z({type:`comma`,value:V,output:e});continue}if(V===`/`){if(B.type===`dot`&&I.index===I.start+1){I.start=I.index+1,I.consumed=``,I.output=``,g.pop(),B=h;continue}Z({type:`slash`,value:V,output:S});continue}if(V===`.`){if(I.braces>0&&B.type===`dot`){B.value===`.`&&(B.output=b);let e=R[R.length-1];B.type=`dots`,B.output+=V,B.value+=V,e.dots=!0;continue}if(I.braces+I.parens===0&&B.type!==`bos`&&B.type!==`slash`){Z({type:`text`,value:V,output:b});continue}Z({type:`dot`,value:V,output:b});continue}if(V===`?`){if(!(B&&B.value===`(`)&&f.noextglob!==!0&&U()===`(`&&U(2)!==`?`){Q(`qmark`,V);continue}if(B&&B.type===`paren`){let e=U(),t=V;(B.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(G()))&&(t=`\\${V}`),Z({type:`text`,value:V,output:t});continue}if(f.dot!==!0&&(B.type===`slash`||B.type===`bos`)){Z({type:`qmark`,value:V,output:k});continue}Z({type:`qmark`,value:V,output:O});continue}if(V===`!`){if(f.noextglob!==!0&&U()===`(`&&(U(2)!==`?`||!/[!=<:]/.test(U(3)))){Q(`negate`,V);continue}if(f.nonegate!==!0&&I.index===0){J();continue}}if(V===`+`){if(f.noextglob!==!0&&U()===`(`&&U(2)!==`?`){Q(`plus`,V);continue}if(B&&B.value===`(`||f.regex===!1){Z({type:`plus`,value:V,output:x});continue}if(B&&(B.type===`bracket`||B.type===`paren`||B.type===`brace`)||I.parens>0){Z({type:`plus`,value:V});continue}Z({type:`plus`,value:x});continue}if(V===`@`){if(f.noextglob!==!0&&U()===`(`&&U(2)!==`?`){Z({type:`at`,extglob:!0,value:V,output:``});continue}Z({type:`text`,value:V});continue}if(V!==`*`){(V===`$`||V===`^`)&&(V=`\\${V}`);let e=o.exec(G());e&&(V+=e[0],I.index+=e[0].length),Z({type:`text`,value:V});continue}if(B&&(B.type===`globstar`||B.star===!0)){B.type=`star`,B.star=!0,B.value+=V,B.output=F,I.backtrack=!0,I.globstar=!0,K(V);continue}let t=G();if(f.noextglob!==!0&&/^\([^?]/.test(t)){Q(`star`,V);continue}if(B.type===`star`){if(f.noglobstar===!0){K(V);continue}let n=B.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(f.bash===!0&&(!i||t[0]&&t[0]!==`/`)){Z({type:`star`,value:V,output:``});continue}let o=I.braces>0&&(n.type===`comma`||n.type===`brace`),s=L.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){Z({type:`star`,value:V,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[I.index+4];if(n&&n!==`/`)break;t=t.slice(3),K(`/**`,3)}if(n.type===`bos`&&H()){B.type=`globstar`,B.value+=V,B.output=M(f),I.output=B.output,I.globstar=!0,K(V);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&H()){I.output=I.output.slice(0,-(n.output+B.output).length),n.output=`(?:${n.output}`,B.type=`globstar`,B.output=M(f)+(f.strictSlashes?`)`:`|$)`),B.value+=V,I.globstar=!0,I.output+=n.output+B.output,K(V);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;I.output=I.output.slice(0,-(n.output+B.output).length),n.output=`(?:${n.output}`,B.type=`globstar`,B.output=`${M(f)}${S}|${S}${e})`,B.value+=V,I.output+=n.output+B.output,I.globstar=!0,K(V+W()),Z({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){B.type=`globstar`,B.value+=V,B.output=`(?:^|${S}|${M(f)}${S})`,I.output=B.output,I.globstar=!0,K(V+W()),Z({type:`slash`,value:`/`,output:``});continue}I.output=I.output.slice(0,-B.output.length),B.type=`globstar`,B.output=M(f),B.value+=V,I.output+=B.output,I.globstar=!0,K(V);continue}let n={type:`star`,value:V,output:F};if(f.bash===!0){n.output=`.*?`,(B.type===`bos`||B.type===`slash`)&&(n.output=N+n.output),Z(n);continue}if(B&&(B.type===`bracket`||B.type===`paren`)&&f.regex===!0){n.output=V,Z(n);continue}(I.index===I.start||B.type===`slash`||B.type===`dot`)&&(B.type===`dot`?(I.output+=E,B.output+=E):f.dot===!0?(I.output+=D,B.output+=D):(I.output+=N,B.output+=N),U()!==`*`&&(I.output+=C,B.output+=C)),Z(n)}for(;I.brackets>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));I.output=r.escapeLast(I.output,`[`),X(`brackets`)}for(;I.parens>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));I.output=r.escapeLast(I.output,`(`),X(`parens`)}for(;I.braces>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));I.output=r.escapeLast(I.output,`{`),X(`braces`)}if(f.strictSlashes!==!0&&(B.type===`star`||B.type===`bracket`)&&Z({type:`maybe_slash`,value:``,output:`${S}?`}),I.backtrack===!0){I.output=``;for(let e of I.tokens)I.output+=e.output==null?e.value:e.output,e.suffix&&(I.output+=e.suffix)}return I};d.fastpaths=(e,t)=>{let a={...t},o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let{DOT_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:m,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:_}=n.globChars(a.windows),v=a.dot?m:p,y=a.dot?h:p,b=a.capture?``:`?:`,x={negated:!1,prefix:``},S=a.bash===!0?`.*?`:g;a.capture&&(S=`(${S})`);let C=e=>e.noglobstar===!0?S:`(${b}(?:(?!${_}${e.dot?f:l}).)*?)`,w=e=>{switch(e){case`*`:return`${v}${d}${S}`;case`.*`:return`${l}${d}${S}`;case`*.*`:return`${v}${S}${l}${d}${S}`;case`*/*`:return`${v}${S}${u}${d}${y}${S}`;case`**`:return v+C(a);case`**/*`:return`(?:${v}${C(a)}${u})?${y}${d}${S}`;case`**/*.*`:return`(?:${v}${C(a)}${u})?${y}${S}${l}${d}${S}`;case`**/.*`:return`(?:${v}${C(a)}${u})?${l}${d}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=w(t[1]);return n?n+l+t[2]:void 0}}},T=w(r.removePrefix(e,x));return T&&a.strictSlashes!==!0&&(T+=`${u}?`),T},t.exports=d})),lt=j(((e,t)=>{let n=st(),r=ct(),i=ot(),a=at(),o=e=>e&&typeof e==`object`&&!Array.isArray(e),s=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>s(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=o(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=i.windows,c=r?s.compileRe(e,t):s.makeRe(e,t,!1,!0),l=c.state;delete c.state;let u=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=s(i.ignore,e,n)}let d=(n,r=!1)=>{let{isMatch:o,match:d,output:f}=s.test(n,c,t,{glob:e,posix:a}),p={glob:e,state:l,regex:c,posix:a,input:n,output:f,match:d,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):u(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),r?p:!0)};return n&&(d.state=l),d};s.test=(e,t,n,{glob:r,posix:a}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let o=n||{},c=o.format||(a?i.toPosixSlashes:null),l=e===r,u=l&&c?c(e):e;return l===!1&&(u=c?c(e):e,l=u===r),(l===!1||o.capture===!0)&&(l=o.matchBase===!0||o.basename===!0?s.matchBase(e,t,n,a):t.exec(u)),{isMatch:!!l,match:l,output:u}},s.matchBase=(e,t,n)=>(t instanceof RegExp?t:s.makeRe(t,n)).test(i.basename(e)),s.isMatch=(e,t,n)=>s(t,n)(e),s.parse=(e,t)=>Array.isArray(e)?e.map(e=>s.parse(e,t)):r(e,{...t,fastpaths:!1}),s.scan=(e,t)=>n(e,t),s.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,c=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(c=`^(?!${c}).*$`);let l=s.toRegex(c,t);return r===!0&&(l.state=e),l},s.makeRe=(e,t={},n=!1,i=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let a={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(a.output=r.fastpaths(e,t)),a.output||(a=r(e,t)),s.compileRe(a,t,n,i)},s.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},s.constants=a,t.exports=s})),ut=N(j(((e,t)=>{let n=lt(),r=ot();function i(e,t,i=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:r.isWindows()}),n(e,t,i)}Object.assign(i,n),t.exports=i}))(),1);const dt=Array.isArray,ft=process.platform===`win32`,pt=/^(\/?\.\.)+$/;function mt(e,t={}){let n=e.length,r=Array(n),i=Array(n),a=!t.noglobstar;for(let a=0;a<n;a++){let n=bt(e[a]);r[a]=n;let o=n.length,s=Array(o);for(let e=0;e<o;e++)s[e]=(0,ut.default)(n[e],t);i[a]=s}return t=>{let n=t.split(`/`);if(n[0]===`..`&&pt.test(t))return!0;for(let t=0;t<e.length;t++){let e=r[t],o=i[t],s=n.length,c=Math.min(s,e.length),l=0;for(;l<c;){let t=e[l];if(t.includes(`/`))return!0;if(!o[l](n[l]))break;if(a&&t===`**`)return!0;l++}if(l===s)return!0}return!1}}const ht=/^[A-Z]:\/$/i,gt=ft?e=>ht.test(e):e=>e===`/`;function _t(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let t=gt(e)?e.length:e.length+1;return(e,n)=>e.slice(t,n?-1:void 0)||`.`}let r=t.slice(e.length+1);return r?(e,t)=>{if(e===`.`)return r;let n=`${r}/${e}`;return t?n.slice(0,-1):n}:(e,t)=>t&&e!==`.`?e.slice(0,-1):e}return n?t=>y.relative(e,t)||`.`:n=>y.relative(e,`${t}/${n}`)||`.`}function vt(e,t){if(t.startsWith(`${e}/`)){let n=t.slice(e.length+1);return e=>`${n}/${e}`}return n=>{let r=y.relative(e,`${t}/${n}`);return n.endsWith(`/`)&&r!==``?`${r}/`:r||`.`}}const yt={parts:!0};function bt(e){let t=ut.default.scan(e,yt);return t.parts?.length?t.parts:[e]}const xt=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,St=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,Ct=ft?e=>e.replace(St,`\\$&`):e=>e.replace(xt,`\\$&`);function wt(e,t){if(t?.caseSensitiveMatch===!1)return!0;let n=ut.default.scan(e);return n.isGlob||n.negated}function Tt(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString(`es`)}]`,...e)}const Et=/^(\/?\.\.)+/,Dt=/\\(?=[()[\]{}!*+?@|])/g,Ot=/\\/g;function kt(e,t,n,r,i){let a=e;e.endsWith(`/`)&&(a=e.slice(0,-1)),!a.endsWith(`*`)&&t&&(a+=`/**`);let o=Ct(n);a=h.isAbsolute(a.replace(Dt,``))?y.relative(o,a):y.normalize(a);let s=Et.exec(a),c=bt(a);if(s?.[0]){let e=(s[0].length+1)/3,t=0,i=o.split(`/`);for(;t<e&&c[t+e]===i[i.length+t-e];)a=a.slice(0,(e-t-1)*3)+a.slice((e-t)*3+c[t+e].length+1)||`.`,t++;let l=y.join(n,s[0].slice(t*3));!l.startsWith(`.`)&&r.root.length>l.length&&(r.root=l,r.depthOffset=-e+t)}if(!i&&r.depthOffset>=0){r.commonPath??(r.commonPath=c);let e=[],t=Math.min(r.commonPath.length,c.length);for(let n=0;n<t;n++){let t=c[n];if(t===`**`&&!c[n+1]){e.pop();break}if(t!==r.commonPath[n]||wt(t)||n===c.length-1)break;e.push(t)}r.depthOffset=e.length,r.commonPath=e,r.root=e.length>0?y.join(n,...e):n}return a}function At({patterns:e=[`**/*`],ignore:t=[],expandDirectories:n=!0},r,i){typeof e==`string`&&(e=[e]),typeof t==`string`&&(t=[t]);let a=[],o=[];for(let e of t)e&&(e[0]!==`!`||e[1]===`(`)&&o.push(kt(e,n,r,i,!0));for(let t of e)t&&(t[0]!==`!`||t[1]===`(`?a.push(kt(t,n,r,i,!1)):(t[1]!==`!`||t[2]===`(`)&&o.push(kt(t.slice(1),n,r,i,!0)));return{match:a,ignore:o}}function jt(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n];e[n]=t(r)}return e}function Mt(e){return e?e instanceof URL?C(e).replace(Ot,`/`):h.resolve(e).replace(Ot,`/`):process.cwd().replace(Ot,`/`)}function Nt(e,t={}){let n=process.env.TINYGLOBBY_DEBUG?{...t,debug:!0}:t,r=Mt(n.cwd);if(n.debug&&Tt(`globbing with:`,{patterns:e,options:n,cwd:r}),Array.isArray(e)&&e.length===0)return[{sync:()=>[],withPromise:async()=>[]},!1];let i={root:r,commonPath:null,depthOffset:0},a=At({...n,patterns:e},r,i);n.debug&&Tt(`internal processing patterns:`,a);let o={dot:n.dot,nobrace:n.braceExpansion===!1,nocase:n.caseSensitiveMatch===!1,noextglob:n.extglob===!1,noglobstar:n.globstar===!1,posix:!0},s=(0,ut.default)(a.match,{...o,ignore:a.ignore}),c=(0,ut.default)(a.ignore,o),l=mt(a.match,o),u=_t(r,i.root,n.absolute),d=n.absolute?u:_t(r,i.root,!0),f={filters:[n.debug?(e,t)=>{let n=u(e,t),r=s(n);return r&&Tt(`matched ${n}`),r}:(e,t)=>s(u(e,t))],exclude:n.debug?(e,t)=>{let n=d(t,!0),r=n!==`.`&&!l(n)||c(n);return Tt(r?`skipped ${t}`:`crawling ${t}`),r}:(e,t)=>{let n=d(t,!0);return n!==`.`&&!l(n)||c(n)},fs:n.fs?{readdir:n.fs.readdir||m.readdir,readdirSync:n.fs.readdirSync||m.readdirSync,realpath:n.fs.realpath||m.realpath,realpathSync:n.fs.realpathSync||m.realpathSync,stat:n.fs.stat||m.stat,statSync:n.fs.statSync||m.statSync}:void 0,pathSeparator:`/`,relativePaths:!0,resolveSymlinks:!0,signal:n.signal};n.deep!==void 0&&(f.maxDepth=Math.round(n.deep-i.depthOffset)),n.absolute&&(f.relativePaths=!1,f.resolvePaths=!0,f.includeBasePath=!0),n.followSymbolicLinks===!1&&(f.resolveSymlinks=!1,f.excludeSymlinks=!0),n.onlyDirectories?(f.excludeFiles=!0,f.includeDirs=!0):n.onlyFiles===!1&&(f.includeDirs=!0),i.root=i.root.replace(Ot,``);let p=i.root;n.debug&&Tt(`internal properties:`,i);let h=r!==p&&!n.absolute&&vt(r,i.root);return[new it(f).crawl(p),h]}async function Pt(e,t){if(e&&t?.patterns)throw Error(`Cannot pass patterns as both an argument and an option`);let n=dt(e)||typeof e==`string`,r=n?t:e,[i,a]=Nt(n?e:e.patterns,r);return a?jt(await i.withPromise(),a):i.withPromise()}let $,Ft=null;const It=new Set;function Lt(e,t){It.add(e),Ft&&clearTimeout(Ft),Ft=setTimeout(async()=>{It.size>0&&(await K($,!0),It.clear()),Ft=null},500)}async function Rt(){try{$=await B();let e=G.watch.start();try{let t=I(),n=R($),r;if(n||!t.css){let e=await z($);r=e.css,L({configHash:JSON.stringify($),css:e.css,dependencies:e.dependencies})}else r=t.css;if(!$.output)throw Error(`No output path specified in config.`);a(c($.output),{recursive:!0}),s($.output,r),e.succeed(G.watch.success($.output))}catch{e.fail(G.watch.fail()),process.exit(1)}if(!$.source)throw Error(`No source patterns specified in config.`);let t=await Pt($.source);for(let e of t)o(e,t=>{Lt(e,t)})}catch{G.fail(G.watch.fail()),process.exit(1)}}switch(process.argv.slice(2)[0]){case`init`:case`i`:J();break;case`build`:case`b`:G.header(P),K().catch(()=>process.exit(1));break;case`watch`:case`w`:G.header(P),Rt().catch(()=>process.exit(1));break;default:console.log(`
9
+ Yumma CSS ${P}
10
10
 
11
11
  Commands:
12
12
  init, i Initialize the configuration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yummacss",
3
- "version": "3.22.1",
3
+ "version": "3.22.2",
4
4
  "description": "An atomic CSS framework with abbreviated class names.",
5
5
  "keywords": [
6
6
  "css-framework",
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@yummacss/nitro": "3.22.1"
32
+ "@yummacss/nitro": "3.22.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "tinyglobby": "^0.2.15"