@raclettejs/core 0.1.33 → 0.1.34

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.
package/CHANGELOG.md CHANGED
@@ -1,15 +1,5 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.33
4
-
5
- ### Patch Changes
6
-
7
- - Exporter Functionality
8
- - 9bc0e96: devOps: canary release
9
- - 9bc0e96: fix: fixed wrong import in workbench plugin
10
- - 9bc0e96: devOps: test release nr2
11
- - 9bc0e96: devOps: canary release pre exporter
12
-
13
3
  All notable changes to this project will be documented in this file.
14
4
 
15
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
@@ -17,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
7
 
18
8
  ## [Unreleased]
19
9
 
10
+ ## [0.1.34] - 2026-05-13 <a href="https://gitlab.com/raclettejs/core-dev/-/compare/v0.1.32...v0.1.34" target="_blank" rel="noopener"><b>Overview of all changes</b></a>
11
+
12
+
20
13
  ### Added
21
14
 
22
15
  - frontend: core exporter/importer functionallity
package/dist/cli.js CHANGED
@@ -27,7 +27,7 @@ Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[t]?this._life
27
27
  Expecting one of '${n.join("', '")}'`);let o=`${t}Help`;return this.on(o,i=>{let s;typeof r=="function"?s=r({error:i.error,command:i.command}):s=r,s&&i.write(`${s}
28
28
  `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(o=>r.is(o))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function oc(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,n="127.0.0.1",o="9229",i;return(i=t.match(/^(--inspect(-brk)?)$/))!==null?r=i[1]:(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=i[1],/^\d+$/.test(i[3])?o=i[3]:n=i[3]):(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=i[1],n=i[3],o=i[4]),r&&o!=="0"?`${r}=${n}:${parseInt(o)+1}`:t})}function Do(){if(B.env.NO_COLOR||B.env.FORCE_COLOR==="0"||B.env.FORCE_COLOR==="false")return!1;if(B.env.FORCE_COLOR||B.env.CLICOLOR_FORCE!==void 0)return!0}No.Command=$o;No.useColor=Do});var lc=k($e=>{var{Argument:sc}=Kr(),{Command:Lo}=ic(),{CommanderError:mm,InvalidArgumentError:ac}=yr(),{Help:gm}=Co(),{Option:cc}=To();$e.program=new Lo;$e.createCommand=e=>new Lo(e);$e.createOption=(e,t)=>new cc(e,t);$e.createArgument=(e,t)=>new sc(e,t);$e.Command=Lo;$e.Option=cc;$e.Argument=sc;$e.Help=gm;$e.CommanderError=mm;$e.InvalidArgumentError=ac;$e.InvalidOptionArgumentError=ac});var yl=k((VA,My)=>{My.exports={name:"dotenv",version:"17.3.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var kl=k((UA,it)=>{var Xo=M("fs"),nn=M("path"),By=M("os"),Hy=M("crypto"),Gy=yl(),Jo=Gy.version,vl=["\u{1F510} encrypt with Dotenvx: https://dotenvx.com","\u{1F510} prevent committing .env to code: https://dotenvx.com/precommit","\u{1F510} prevent building .env in docker: https://dotenvx.com/prebuild","\u{1F916} agentic secret storage: https://dotenvx.com/as2","\u26A1\uFE0F secrets for agents: https://dotenvx.com/as2","\u{1F6E1}\uFE0F auth for agents: https://vestauth.com","\u{1F6E0}\uFE0F run anywhere with `dotenvx run -- yourcommand`","\u2699\uFE0F specify custom .env file path with { path: '/custom/path/.env' }","\u2699\uFE0F enable debug logging with { debug: true }","\u2699\uFE0F override existing env vars with { override: true }","\u2699\uFE0F suppress all logs with { quiet: true }","\u2699\uFE0F write to custom object with { processEnv: myObject }","\u2699\uFE0F load multiple .env files with { path: ['.env.local', '.env'] }"];function Vy(){return vl[Math.floor(Math.random()*vl.length)]}function Jt(e){return typeof e=="string"?!["false","0","no","off",""].includes(e.toLowerCase()):!!e}function Uy(){return process.stdout.isTTY}function Wy(e){return Uy()?`\x1B[2m${e}\x1B[0m`:e}var qy=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Yy(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
29
29
  `);let n;for(;(n=qy.exec(r))!=null;){let o=n[1],i=n[2]||"";i=i.trim();let s=i[0];i=i.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),s==='"'&&(i=i.replace(/\\n/g,`
30
- `),i=i.replace(/\\r/g,"\r")),t[o]=i}return t}function Ky(e){e=e||{};let t=xl(e);e.path=t;let r=ue.configDotenv(e);if(!r.parsed){let s=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw s.code="MISSING_DATA",s}let n=El(e).split(","),o=n.length,i;for(let s=0;s<o;s++)try{let a=n[s].trim(),c=Xy(r,a);i=ue.decrypt(c.ciphertext,c.key);break}catch(a){if(s+1>=o)throw a}return ue.parse(i)}function zy(e){console.error(`[dotenv@${Jo}][WARN] ${e}`)}function wr(e){console.log(`[dotenv@${Jo}][DEBUG] ${e}`)}function _l(e){console.log(`[dotenv@${Jo}] ${e}`)}function El(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function Xy(e,t){let r;try{r=new URL(t)}catch(a){if(a.code==="ERR_INVALID_URL"){let c=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw c.code="INVALID_DOTENV_KEY",c}throw a}let n=r.password;if(!n){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let o=r.searchParams.get("environment");if(!o){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let i=`DOTENV_VAULT_${o.toUpperCase()}`,s=e.parsed[i];if(!s){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${i} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:s,key:n}}function xl(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)Xo.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=nn.resolve(process.cwd(),".env.vault");return Xo.existsSync(t)?t:null}function bl(e){return e[0]==="~"?nn.join(By.homedir(),e.slice(1)):e}function Jy(e){let t=Jt(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),r=Jt(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!r)&&_l("Loading env from encrypted .env.vault");let n=ue._parseVault(e),o=process.env;return e&&e.processEnv!=null&&(o=e.processEnv),ue.populate(o,n,e),{parsed:n}}function Qy(e){let t=nn.resolve(process.cwd(),".env"),r="utf8",n=process.env;e&&e.processEnv!=null&&(n=e.processEnv);let o=Jt(n.DOTENV_CONFIG_DEBUG||e&&e.debug),i=Jt(n.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?r=e.encoding:o&&wr("No encoding is specified. UTF-8 is used by default");let s=[t];if(e&&e.path)if(!Array.isArray(e.path))s=[bl(e.path)];else{s=[];for(let l of e.path)s.push(bl(l))}let a,c={};for(let l of s)try{let p=ue.parse(Xo.readFileSync(l,{encoding:r}));ue.populate(c,p,e)}catch(p){o&&wr(`Failed to load ${l} ${p.message}`),a=p}let u=ue.populate(n,c,e);if(o=Jt(n.DOTENV_CONFIG_DEBUG||o),i=Jt(n.DOTENV_CONFIG_QUIET||i),o||!i){let l=Object.keys(u).length,p=[];for(let d of s)try{let y=nn.relative(process.cwd(),d);p.push(y)}catch(y){o&&wr(`Failed to load ${d} ${y.message}`),a=y}_l(`injecting env (${l}) from ${p.join(",")} ${Wy(`-- tip: ${Vy()}`)}`)}return a?{parsed:c,error:a}:{parsed:c}}function Zy(e){if(El(e).length===0)return ue.configDotenv(e);let t=xl(e);return t?ue._configVault(e):(zy(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),ue.configDotenv(e))}function ev(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),o=n.subarray(0,12),i=n.subarray(-16);n=n.subarray(12,-16);try{let s=Hy.createDecipheriv("aes-256-gcm",r,o);return s.setAuthTag(i),`${s.update(n)}${s.final()}`}catch(s){let a=s instanceof RangeError,c=s.message==="Invalid key length",u=s.message==="Unsupported state or unable to authenticate data";if(a||c){let l=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw l.code="INVALID_DOTENV_KEY",l}else if(u){let l=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw l.code="DECRYPTION_FAILED",l}else throw s}}function tv(e,t,r={}){let n=!!(r&&r.debug),o=!!(r&&r.override),i={};if(typeof t!="object"){let s=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw s.code="OBJECT_REQUIRED",s}for(let s of Object.keys(t))Object.prototype.hasOwnProperty.call(e,s)?(o===!0&&(e[s]=t[s],i[s]=t[s]),n&&wr(o===!0?`"${s}" is already defined and WAS overwritten`:`"${s}" is already defined and was NOT overwritten`)):(e[s]=t[s],i[s]=t[s]);return i}var ue={configDotenv:Qy,_configVault:Jy,_parseVault:Ky,config:Zy,decrypt:ev,parse:Yy,populate:tv};it.exports.configDotenv=ue.configDotenv;it.exports._configVault=ue._configVault;it.exports._parseVault=ue._parseVault;it.exports.config=ue.config;it.exports.decrypt=ue.decrypt;it.exports.parse=ue.parse;it.exports.populate=ue.populate;it.exports=ue});var wl=k((YA,rv)=>{rv.exports={name:"@raclettejs/core",version:"0.1.32",description:"racletteJS core package",repository:"https://gitlab.com/raclettejs/core",author:"Pacifico Digital Explorations GmbH <info@raclettejs.com>",license:"AGPL-3.0-only",type:"module",scripts:{build:"node build.mjs || true",dev:"node watch.mjs",watch:"node watch.mjs","format:check":"prettier --check .","format:fix":"prettier --write .",lint:"eslint","lint:grouped":"FILTER_RULE=$RULE eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --format ./dev/eslint/groupByRuleFormatter.cjs","lint:fix":"eslint --fix",prepare:"husky",prepublishOnly:"yarn run build && yarn run sync","publish:patch":"yarn version --patch && yarn publish",sync:"node ./scripts/sync-exports.js"},bin:{"check-dependencies.sh":"./bin/check-dependencies.sh",raclette:"./bin/cli.js"},main:"index.js",types:"./types/index.ts",files:["services","bin","dist","types","scripts","index.js","README.md","yarn.lock","src/types.ts","LICENSE.md","CONTRIBUTING.md","raclette.default.config.yaml","templates"],exports:{".":{types:"./types/index.ts",import:"./dist/index.js"},"./backend":{types:"./services/backend/src/index.ts",import:"./services/backend/src/index.ts"},"./frontend":{types:"./services/frontend/src/core/index.ts",import:"./services/frontend/src/core/index.ts"},"./orchestrator":{types:"./services/frontend/src/orchestrator/index.ts",import:"./services/frontend/src/orchestrator/index.ts"}},config:{},dependencies:{"@inquirer/prompts":"8.3.2","@types/mustache":"4.2.6",chalk:"5.6.2",chokidar:"5.0.0","cli-highlight":"2.1.11",commander:"14.0.3",dotenv:"17.3.1",esbuild:"0.27.4","fs-extra":"11.3.4",globby:"16.1.1","js-yaml":"4.1.1",mustache:"4.2.0",ramda:"0.32.0","tsc-alias":"1.8.16"},devDependencies:{"@emnapi/core":"1.9.2","@emnapi/runtime":"1.9.2","@eslint/js":"9.35.0","@raclettejs/types":"workspace:^","@types/fs-extra":"11.0.4","@types/js-yaml":"4.0.9","@types/node":"25.5.0","@types/ramda":"0.31.1",eslint:"9.35.0","eslint-config-prettier":"9.1.2","eslint-flat-config-utils":"3.0.2","eslint-plugin-import":"2.32.0","eslint-plugin-prefer-arrow-functions":"3.9.1","eslint-plugin-prettier":"5.5.5","eslint-plugin-vue":"9.33.0",globals:"17.4.0",husky:"9.1.7",prettier:"3.8.1",typescript:"5.9.3","typescript-eslint":"8.57.1","vue-eslint-parser":"9.4.3"}}});import{on as nv,once as Cl}from"node:events";import{PassThrough as ov,getDefaultHighWaterMark as iv}from"node:stream";import{finished as Rl}from"node:stream/promises";function ti(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(let o of e)ei(o);let t=e.some(({readableObjectMode:o})=>o),r=sv(e,t),n=new Zo({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(let o of e)n.add(o);return n}var sv,Zo,av,cv,lv,ei,uv,pv,dv,fv,hv,Tl,Ol,ri,Pl,mv,on,Al,Sl,$l=vt(()=>{sv=(e,t)=>{if(e.length===0)return iv(t);let r=e.filter(({readableObjectMode:n})=>n===t).map(({readableHighWaterMark:n})=>n);return Math.max(...r)},Zo=class extends ov{#e=new Set([]);#o=new Set([]);#i=new Set([]);#r;#n=Symbol("unpipe");#t=new WeakMap;add(t){if(ei(t),this.#e.has(t))return;this.#e.add(t),this.#r??=av(this,this.#e,this.#n);let r=uv({passThroughStream:this,stream:t,streams:this.#e,ended:this.#o,aborted:this.#i,onFinished:this.#r,unpipeEvent:this.#n});this.#t.set(t,r),t.pipe(this,{end:!1})}async remove(t){if(ei(t),!this.#e.has(t))return!1;let r=this.#t.get(t);return r===void 0?!1:(this.#t.delete(t),t.unpipe(this),await r,!0)}},av=async(e,t,r)=>{on(e,Al);let n=new AbortController;try{await Promise.race([cv(e,n),lv(e,t,r,n)])}finally{n.abort(),on(e,-Al)}},cv=async(e,{signal:t})=>{try{await Rl(e,{signal:t,cleanup:!0})}catch(r){throw Tl(e,r),r}},lv=async(e,t,r,{signal:n})=>{for await(let[o]of nv(e,"unpipe",{signal:n}))t.has(o)&&o.emit(r)},ei=e=>{if(typeof e?.pipe!="function")throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},uv=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,onFinished:i,unpipeEvent:s})=>{on(e,Sl);let a=new AbortController;try{await Promise.race([pv(i,t,a),dv({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:a}),fv({stream:t,streams:r,ended:n,aborted:o,unpipeEvent:s,controller:a})])}finally{a.abort(),on(e,-Sl)}r.size>0&&r.size===n.size+o.size&&(n.size===0&&o.size>0?ri(e):hv(e))},pv=async(e,t,{signal:r})=>{try{await e,r.aborted||ri(t)}catch(n){r.aborted||Tl(t,n)}},dv=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:{signal:i}})=>{try{await Rl(t,{signal:i,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(s){if(i.aborted||!r.has(t))return;Ol(s)?o.add(t):Pl(e,s)}},fv=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:o,controller:{signal:i}})=>{if(await Cl(e,o,{signal:i}),!e.readable)return Cl(i,"abort",{signal:i});t.delete(e),r.delete(e),n.delete(e)},hv=e=>{e.writable&&e.end()},Tl=(e,t)=>{Ol(t)?ri(e):Pl(e,t)},Ol=e=>e?.code==="ERR_STREAM_PREMATURE_CLOSE",ri=e=>{(e.readable||e.writable)&&e.destroy()},Pl=(e,t)=>{e.destroyed||(e.once("error",mv),e.destroy(t))},mv=()=>{},on=(e,t)=>{let r=e.getMaxListeners();r!==0&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},Al=2,Sl=1});var Dl=k(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.splitWhen=Qt.flatten=void 0;function gv(e){return e.reduce((t,r)=>[].concat(t,r),[])}Qt.flatten=gv;function yv(e,t){let r=[[]],n=0;for(let o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r}Qt.splitWhen=yv});var Nl=k(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.isEnoentCodeError=void 0;function vv(e){return e.code==="ENOENT"}sn.isEnoentCodeError=vv});var Ll=k(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.createDirentFromStats=void 0;var ni=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function bv(e,t){return new ni(e,t)}an.createDirentFromStats=bv});var Ml=k(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.convertPosixPathToPattern=se.convertWindowsPathToPattern=se.convertPathToPattern=se.escapePosixPath=se.escapeWindowsPath=se.escape=se.removeLeadingDotSegment=se.makeAbsolute=se.unixify=void 0;var _v=M("os"),Ev=M("path"),Il=_v.platform()==="win32",xv=2,kv=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,wv=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Cv=/^\\\\([.?])/,Av=/\\(?![!()+@[\]{}])/g;function Sv(e){return e.replace(/\\/g,"/")}se.unixify=Sv;function Rv(e,t){return Ev.resolve(e,t)}se.makeAbsolute=Rv;function Tv(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(xv)}return e}se.removeLeadingDotSegment=Tv;se.escape=Il?oi:ii;function oi(e){return e.replace(wv,"\\$2")}se.escapeWindowsPath=oi;function ii(e){return e.replace(kv,"\\$2")}se.escapePosixPath=ii;se.convertPathToPattern=Il?Fl:jl;function Fl(e){return oi(e).replace(Cv,"//$1").replace(Av,"/")}se.convertWindowsPathToPattern=Fl;function jl(e){return ii(e)}se.convertPosixPathToPattern=jl});var Hl=k((rS,Bl)=>{Bl.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Ul=k((nS,Vl)=>{var Ov=Hl(),Gl={"{":"}","(":")","[":"]"},Pv=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,o=-2,i=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(s===-1||s>n||(s=e.indexOf("\\",t),s===-1||s>n)))||o!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(o=e.indexOf("}",t),o>t&&(s=e.indexOf("\\",t),s===-1||s>o))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(s=e.indexOf("\\",t),s===-1||s>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(s=e.indexOf("\\",r),s===-1||s>i))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var c=Gl[a];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},$v=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Gl[r];if(n){var o=e.indexOf(n,t);o!==-1&&(t=o+1)}if(e[t]==="!")return!0}else t++}return!1};Vl.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Ov(t))return!0;var n=Pv;return r&&r.strict===!1&&(n=$v),n(t)}});var ql=k((oS,Wl)=>{"use strict";var Dv=Ul(),Nv=M("path").posix.dirname,Lv=M("os").platform()==="win32",si="/",Iv=/\\/g,Fv=/[\{\[].*[\}\]]$/,jv=/(^|[^\\])([\{\[]|\([^\)]+$)/,Mv=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Wl.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Lv&&t.indexOf(si)<0&&(t=t.replace(Iv,si)),Fv.test(t)&&(t+=si),t+="a";do t=Nv(t);while(Dv(t)||jv.test(t));return t.replace(Mv,"$1")}});var cn=k(De=>{"use strict";De.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;De.find=(e,t)=>e.nodes.find(r=>r.type===t);De.exceedsLimit=(e,t,r=1,n)=>n===!1||!De.isInteger(e)||!De.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;De.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};De.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;De.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;De.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;De.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);De.flatten=(...e)=>{let t=[],r=n=>{for(let o=0;o<n.length;o++){let i=n[o];if(Array.isArray(i)){r(i);continue}i!==void 0&&t.push(i)}return t};return r(e),t}});var ln=k((sS,Kl)=>{"use strict";var Yl=cn();Kl.exports=(e,t={})=>{let r=(n,o={})=>{let i=t.escapeInvalid&&Yl.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||s)&&Yl.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(e)}});var Xl=k((aS,zl)=>{"use strict";zl.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var iu=k((cS,ou)=>{"use strict";var Jl=Xl(),Lt=(e,t,r)=>{if(Jl(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Jl(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let o=String(n.relaxZeros),i=String(n.shorthand),s=String(n.capture),a=String(n.wrap),c=e+":"+t+"="+o+i+s+a;if(Lt.cache.hasOwnProperty(c))return Lt.cache[c].result;let u=Math.min(e,t),l=Math.max(e,t);if(Math.abs(u-l)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let p=nu(e)||nu(t),d={min:e,max:t,a:u,b:l},y=[],g=[];if(p&&(d.isPadded=p,d.maxLen=String(d.max).length),u<0){let m=l<0?Math.abs(l):1;g=Ql(m,Math.abs(u),d,n),u=d.a=0}return l>=0&&(y=Ql(u,l,d,n)),d.negatives=g,d.positives=y,d.result=Bv(g,y,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&y.length+g.length>1&&(d.result=`(?:${d.result})`),Lt.cache[c]=d,d.result};function Bv(e,t,r){let n=ai(e,t,"-",!1,r)||[],o=ai(t,e,"",!1,r)||[],i=ai(e,t,"-?",!0,r)||[];return n.concat(i).concat(o).join("|")}function Hv(e,t){let r=1,n=1,o=eu(e,r),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),r+=1,o=eu(e,r);for(o=tu(t+1,n)-1;e<o&&o<=t;)i.add(o),n+=1,o=tu(t+1,n)-1;return i=[...i],i.sort(Uv),i}function Gv(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Vv(e,t),o=n.length,i="",s=0;for(let a=0;a<o;a++){let[c,u]=n[a];c===u?i+=c:c!=="0"||u!=="9"?i+=Wv(c,u,r):s++}return s&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function Ql(e,t,r,n){let o=Hv(e,t),i=[],s=e,a;for(let c=0;c<o.length;c++){let u=o[c],l=Gv(String(s),String(u),n),p="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+ru(a.count),s=u+1;continue}r.isPadded&&(p=qv(u,r,n)),l.string=p+l.pattern+ru(l.count),i.push(l),s=u+1,a=l}return i}function ai(e,t,r,n,o){let i=[];for(let s of e){let{string:a}=s;!n&&!Zl(t,"string",a)&&i.push(r+a),n&&Zl(t,"string",a)&&i.push(r+a)}return i}function Vv(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Uv(e,t){return e>t?1:t>e?-1:0}function Zl(e,t,r){return e.some(n=>n[t]===r)}function eu(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function tu(e,t){return e-e%Math.pow(10,t)}function ru(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Wv(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function nu(e){return/^-?(0+)\d/.test(e)}function qv(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),o=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${n}}`:`0{${n}}`}}Lt.cache={};Lt.clearCache=()=>Lt.cache={};ou.exports=Lt});var ui=k((lS,du)=>{"use strict";var Yv=M("util"),au=iu(),su=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Kv=e=>t=>e===!0?Number(t):String(t),ci=e=>typeof e=="number"||typeof e=="string"&&e!=="",Cr=e=>Number.isInteger(+e),li=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},zv=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Xv=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},pn=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Jv=(e,t,r)=>{e.negatives.sort((a,c)=>a<c?-1:a>c?1:0),e.positives.sort((a,c)=>a<c?-1:a>c?1:0);let n=t.capture?"":"?:",o="",i="",s;return e.positives.length&&(o=e.positives.map(a=>pn(String(a),r)).join("|")),e.negatives.length&&(i=`-(${n}${e.negatives.map(a=>pn(String(a),r)).join("|")})`),o&&i?s=`${o}|${i}`:s=o||i,t.wrap?`(${n}${s})`:s},cu=(e,t,r,n)=>{if(r)return au(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`},lu=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return au(e,t,r)},uu=(...e)=>new RangeError("Invalid range arguments: "+Yv.inspect(...e)),pu=(e,t,r)=>{if(r.strictRanges===!0)throw uu([e,t]);return[]},Qv=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Zv=(e,t,r=1,n={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(n.strictRanges===!0)throw uu([e,t]);return[]}o===0&&(o=0),i===0&&(i=0);let s=o>i,a=String(e),c=String(t),u=String(r);r=Math.max(Math.abs(r),1);let l=li(a)||li(c)||li(u),p=l?Math.max(a.length,c.length,u.length):0,d=l===!1&&zv(e,t,n)===!1,y=n.transform||Kv(d);if(n.toRegex&&r===1)return cu(pn(e,p),pn(t,p),!0,n);let g={negatives:[],positives:[]},m=S=>g[S<0?"negatives":"positives"].push(Math.abs(S)),E=[],x=0;for(;s?o>=i:o<=i;)n.toRegex===!0&&r>1?m(o):E.push(Xv(y(o,x),p,d)),o=s?o-r:o+r,x++;return n.toRegex===!0?r>1?Jv(g,n,p):lu(E,null,{wrap:!1,...n}):E},eb=(e,t,r=1,n={})=>{if(!Cr(e)&&e.length>1||!Cr(t)&&t.length>1)return pu(e,t,n);let o=n.transform||(d=>String.fromCharCode(d)),i=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=i>s,c=Math.min(i,s),u=Math.max(i,s);if(n.toRegex&&r===1)return cu(c,u,!1,n);let l=[],p=0;for(;a?i>=s:i<=s;)l.push(o(i,p)),i=a?i-r:i+r,p++;return n.toRegex===!0?lu(l,null,{wrap:!1,options:n}):l},un=(e,t,r,n={})=>{if(t==null&&ci(e))return[e];if(!ci(e)||!ci(t))return pu(e,t,n);if(typeof r=="function")return un(e,t,1,{transform:r});if(su(r))return un(e,t,0,r);let o={...n};return o.capture===!0&&(o.wrap=!0),r=r||o.step||1,Cr(r)?Cr(e)&&Cr(t)?Zv(e,t,r,o):eb(e,t,Math.max(Math.abs(r),1),o):r!=null&&!su(r)?Qv(r,o):un(e,t,1,r)};du.exports=un});var mu=k((uS,hu)=>{"use strict";var tb=ui(),fu=cn(),rb=(e,t={})=>{let r=(n,o={})=>{let i=fu.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||s===!0,c=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=fu.reduce(n.nodes),p=tb(...l,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(p.length!==0)return l.length>1&&p.length>1?`(${p})`:p}if(n.nodes)for(let l of n.nodes)u+=r(l,n);return u};return r(e)};hu.exports=rb});var vu=k((pS,yu)=>{"use strict";var nb=ui(),gu=ln(),Zt=cn(),It=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Zt.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let i of o)n.push(It(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?It(o,i,r):o+i);return Zt.flatten(n)},ob=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(o,i={})=>{o.queue=[];let s=i,a=i.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(o.invalid||o.dollar){a.push(It(a.pop(),gu(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(It(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let p=Zt.reduce(o.nodes);if(Zt.exceedsLimit(...p,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=nb(...p,t);d.length===0&&(d=gu(o,t)),a.push(It(a.pop(),d)),o.nodes=[];return}let c=Zt.encloseBrace(o),u=o.queue,l=o;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,u=l.queue;for(let p=0;p<o.nodes.length;p++){let d=o.nodes[p];if(d.type==="comma"&&o.type==="brace"){p===1&&u.push(""),u.push("");continue}if(d.type==="close"){a.push(It(a.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(It(u.pop(),d.value));continue}d.nodes&&n(d,o)}return u};return Zt.flatten(n(e))};yu.exports=ob});var _u=k((dS,bu)=>{"use strict";bu.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
30
+ `),i=i.replace(/\\r/g,"\r")),t[o]=i}return t}function Ky(e){e=e||{};let t=xl(e);e.path=t;let r=ue.configDotenv(e);if(!r.parsed){let s=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw s.code="MISSING_DATA",s}let n=El(e).split(","),o=n.length,i;for(let s=0;s<o;s++)try{let a=n[s].trim(),c=Xy(r,a);i=ue.decrypt(c.ciphertext,c.key);break}catch(a){if(s+1>=o)throw a}return ue.parse(i)}function zy(e){console.error(`[dotenv@${Jo}][WARN] ${e}`)}function wr(e){console.log(`[dotenv@${Jo}][DEBUG] ${e}`)}function _l(e){console.log(`[dotenv@${Jo}] ${e}`)}function El(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function Xy(e,t){let r;try{r=new URL(t)}catch(a){if(a.code==="ERR_INVALID_URL"){let c=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw c.code="INVALID_DOTENV_KEY",c}throw a}let n=r.password;if(!n){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let o=r.searchParams.get("environment");if(!o){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let i=`DOTENV_VAULT_${o.toUpperCase()}`,s=e.parsed[i];if(!s){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${i} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:s,key:n}}function xl(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)Xo.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=nn.resolve(process.cwd(),".env.vault");return Xo.existsSync(t)?t:null}function bl(e){return e[0]==="~"?nn.join(By.homedir(),e.slice(1)):e}function Jy(e){let t=Jt(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),r=Jt(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!r)&&_l("Loading env from encrypted .env.vault");let n=ue._parseVault(e),o=process.env;return e&&e.processEnv!=null&&(o=e.processEnv),ue.populate(o,n,e),{parsed:n}}function Qy(e){let t=nn.resolve(process.cwd(),".env"),r="utf8",n=process.env;e&&e.processEnv!=null&&(n=e.processEnv);let o=Jt(n.DOTENV_CONFIG_DEBUG||e&&e.debug),i=Jt(n.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?r=e.encoding:o&&wr("No encoding is specified. UTF-8 is used by default");let s=[t];if(e&&e.path)if(!Array.isArray(e.path))s=[bl(e.path)];else{s=[];for(let l of e.path)s.push(bl(l))}let a,c={};for(let l of s)try{let p=ue.parse(Xo.readFileSync(l,{encoding:r}));ue.populate(c,p,e)}catch(p){o&&wr(`Failed to load ${l} ${p.message}`),a=p}let u=ue.populate(n,c,e);if(o=Jt(n.DOTENV_CONFIG_DEBUG||o),i=Jt(n.DOTENV_CONFIG_QUIET||i),o||!i){let l=Object.keys(u).length,p=[];for(let d of s)try{let y=nn.relative(process.cwd(),d);p.push(y)}catch(y){o&&wr(`Failed to load ${d} ${y.message}`),a=y}_l(`injecting env (${l}) from ${p.join(",")} ${Wy(`-- tip: ${Vy()}`)}`)}return a?{parsed:c,error:a}:{parsed:c}}function Zy(e){if(El(e).length===0)return ue.configDotenv(e);let t=xl(e);return t?ue._configVault(e):(zy(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),ue.configDotenv(e))}function ev(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),o=n.subarray(0,12),i=n.subarray(-16);n=n.subarray(12,-16);try{let s=Hy.createDecipheriv("aes-256-gcm",r,o);return s.setAuthTag(i),`${s.update(n)}${s.final()}`}catch(s){let a=s instanceof RangeError,c=s.message==="Invalid key length",u=s.message==="Unsupported state or unable to authenticate data";if(a||c){let l=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw l.code="INVALID_DOTENV_KEY",l}else if(u){let l=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw l.code="DECRYPTION_FAILED",l}else throw s}}function tv(e,t,r={}){let n=!!(r&&r.debug),o=!!(r&&r.override),i={};if(typeof t!="object"){let s=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw s.code="OBJECT_REQUIRED",s}for(let s of Object.keys(t))Object.prototype.hasOwnProperty.call(e,s)?(o===!0&&(e[s]=t[s],i[s]=t[s]),n&&wr(o===!0?`"${s}" is already defined and WAS overwritten`:`"${s}" is already defined and was NOT overwritten`)):(e[s]=t[s],i[s]=t[s]);return i}var ue={configDotenv:Qy,_configVault:Jy,_parseVault:Ky,config:Zy,decrypt:ev,parse:Yy,populate:tv};it.exports.configDotenv=ue.configDotenv;it.exports._configVault=ue._configVault;it.exports._parseVault=ue._parseVault;it.exports.config=ue.config;it.exports.decrypt=ue.decrypt;it.exports.parse=ue.parse;it.exports.populate=ue.populate;it.exports=ue});var wl=k((YA,rv)=>{rv.exports={name:"@raclettejs/core",version:"0.1.34",description:"racletteJS core package",repository:"https://gitlab.com/raclettejs/core",author:"Pacifico Digital Explorations GmbH <info@raclettejs.com>",license:"AGPL-3.0-only",type:"module",scripts:{":install":"yarn install",":install:services":"yarn --cwd ./services/backend install && yarn --cwd ./services/frontend install",build:"node build.mjs || true",dev:"node watch.mjs",watch:"node watch.mjs","format:check":"prettier --check .","format:fix":"prettier --write .",lint:"eslint","lint:grouped":"FILTER_RULE=$RULE eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --format ./dev/eslint/groupByRuleFormatter.cjs","lint:fix":"eslint --fix",prepare:"husky",prepublishOnly:"yarn run build && yarn run sync","publish:patch":"yarn version --patch && yarn publish",sync:"node ./scripts/sync-exports.js"},bin:{"check-dependencies.sh":"./bin/check-dependencies.sh",raclette:"./bin/cli.js"},main:"index.js",types:"./types/index.ts",files:["services","bin","dist","types","scripts","index.js","README.md","yarn.lock","src/types.ts","LICENSE.md","CONTRIBUTING.md","raclette.default.config.yaml","templates"],exports:{".":{types:"./types/index.ts",import:"./dist/index.js"},"./backend":{types:"./services/backend/src/index.ts",import:"./services/backend/src/index.ts"},"./frontend":{types:"./services/frontend/src/core/index.ts",import:"./services/frontend/src/core/index.ts"},"./orchestrator":{types:"./services/frontend/src/orchestrator/index.ts",import:"./services/frontend/src/orchestrator/index.ts"}},config:{},dependencies:{"@inquirer/prompts":"8.3.2","@types/mustache":"4.2.6",chalk:"5.6.2",chokidar:"5.0.0","cli-highlight":"2.1.11",commander:"14.0.3",dotenv:"17.3.1",esbuild:"0.27.4","fs-extra":"11.3.4",globby:"16.1.1","js-yaml":"4.1.1",mustache:"4.2.0",ramda:"0.32.0","tsc-alias":"1.8.16"},devDependencies:{"@emnapi/core":"1.9.2","@emnapi/runtime":"1.9.2","@eslint/js":"9.35.0","@raclettejs/types":"workspace:^","@types/fs-extra":"11.0.4","@types/js-yaml":"4.0.9","@types/node":"25.5.0","@types/ramda":"0.31.1",eslint:"9.35.0","eslint-config-prettier":"9.1.2","eslint-flat-config-utils":"3.0.2","eslint-plugin-import":"2.32.0","eslint-plugin-prefer-arrow-functions":"3.9.1","eslint-plugin-prettier":"5.5.5","eslint-plugin-vue":"9.33.0",globals:"17.4.0",husky:"9.1.7",prettier:"3.8.1",typescript:"5.9.3","typescript-eslint":"8.59.2","vue-eslint-parser":"10.3.0"}}});import{on as nv,once as Cl}from"node:events";import{PassThrough as ov,getDefaultHighWaterMark as iv}from"node:stream";import{finished as Rl}from"node:stream/promises";function ti(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(let o of e)ei(o);let t=e.some(({readableObjectMode:o})=>o),r=sv(e,t),n=new Zo({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(let o of e)n.add(o);return n}var sv,Zo,av,cv,lv,ei,uv,pv,dv,fv,hv,Tl,Ol,ri,Pl,mv,on,Al,Sl,$l=vt(()=>{sv=(e,t)=>{if(e.length===0)return iv(t);let r=e.filter(({readableObjectMode:n})=>n===t).map(({readableHighWaterMark:n})=>n);return Math.max(...r)},Zo=class extends ov{#e=new Set([]);#o=new Set([]);#i=new Set([]);#r;#n=Symbol("unpipe");#t=new WeakMap;add(t){if(ei(t),this.#e.has(t))return;this.#e.add(t),this.#r??=av(this,this.#e,this.#n);let r=uv({passThroughStream:this,stream:t,streams:this.#e,ended:this.#o,aborted:this.#i,onFinished:this.#r,unpipeEvent:this.#n});this.#t.set(t,r),t.pipe(this,{end:!1})}async remove(t){if(ei(t),!this.#e.has(t))return!1;let r=this.#t.get(t);return r===void 0?!1:(this.#t.delete(t),t.unpipe(this),await r,!0)}},av=async(e,t,r)=>{on(e,Al);let n=new AbortController;try{await Promise.race([cv(e,n),lv(e,t,r,n)])}finally{n.abort(),on(e,-Al)}},cv=async(e,{signal:t})=>{try{await Rl(e,{signal:t,cleanup:!0})}catch(r){throw Tl(e,r),r}},lv=async(e,t,r,{signal:n})=>{for await(let[o]of nv(e,"unpipe",{signal:n}))t.has(o)&&o.emit(r)},ei=e=>{if(typeof e?.pipe!="function")throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},uv=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,onFinished:i,unpipeEvent:s})=>{on(e,Sl);let a=new AbortController;try{await Promise.race([pv(i,t,a),dv({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:a}),fv({stream:t,streams:r,ended:n,aborted:o,unpipeEvent:s,controller:a})])}finally{a.abort(),on(e,-Sl)}r.size>0&&r.size===n.size+o.size&&(n.size===0&&o.size>0?ri(e):hv(e))},pv=async(e,t,{signal:r})=>{try{await e,r.aborted||ri(t)}catch(n){r.aborted||Tl(t,n)}},dv=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:{signal:i}})=>{try{await Rl(t,{signal:i,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(s){if(i.aborted||!r.has(t))return;Ol(s)?o.add(t):Pl(e,s)}},fv=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:o,controller:{signal:i}})=>{if(await Cl(e,o,{signal:i}),!e.readable)return Cl(i,"abort",{signal:i});t.delete(e),r.delete(e),n.delete(e)},hv=e=>{e.writable&&e.end()},Tl=(e,t)=>{Ol(t)?ri(e):Pl(e,t)},Ol=e=>e?.code==="ERR_STREAM_PREMATURE_CLOSE",ri=e=>{(e.readable||e.writable)&&e.destroy()},Pl=(e,t)=>{e.destroyed||(e.once("error",mv),e.destroy(t))},mv=()=>{},on=(e,t)=>{let r=e.getMaxListeners();r!==0&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},Al=2,Sl=1});var Dl=k(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.splitWhen=Qt.flatten=void 0;function gv(e){return e.reduce((t,r)=>[].concat(t,r),[])}Qt.flatten=gv;function yv(e,t){let r=[[]],n=0;for(let o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r}Qt.splitWhen=yv});var Nl=k(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.isEnoentCodeError=void 0;function vv(e){return e.code==="ENOENT"}sn.isEnoentCodeError=vv});var Ll=k(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.createDirentFromStats=void 0;var ni=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function bv(e,t){return new ni(e,t)}an.createDirentFromStats=bv});var Ml=k(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.convertPosixPathToPattern=se.convertWindowsPathToPattern=se.convertPathToPattern=se.escapePosixPath=se.escapeWindowsPath=se.escape=se.removeLeadingDotSegment=se.makeAbsolute=se.unixify=void 0;var _v=M("os"),Ev=M("path"),Il=_v.platform()==="win32",xv=2,kv=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,wv=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Cv=/^\\\\([.?])/,Av=/\\(?![!()+@[\]{}])/g;function Sv(e){return e.replace(/\\/g,"/")}se.unixify=Sv;function Rv(e,t){return Ev.resolve(e,t)}se.makeAbsolute=Rv;function Tv(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(xv)}return e}se.removeLeadingDotSegment=Tv;se.escape=Il?oi:ii;function oi(e){return e.replace(wv,"\\$2")}se.escapeWindowsPath=oi;function ii(e){return e.replace(kv,"\\$2")}se.escapePosixPath=ii;se.convertPathToPattern=Il?Fl:jl;function Fl(e){return oi(e).replace(Cv,"//$1").replace(Av,"/")}se.convertWindowsPathToPattern=Fl;function jl(e){return ii(e)}se.convertPosixPathToPattern=jl});var Hl=k((rS,Bl)=>{Bl.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Ul=k((nS,Vl)=>{var Ov=Hl(),Gl={"{":"}","(":")","[":"]"},Pv=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,o=-2,i=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(s===-1||s>n||(s=e.indexOf("\\",t),s===-1||s>n)))||o!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(o=e.indexOf("}",t),o>t&&(s=e.indexOf("\\",t),s===-1||s>o))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(s=e.indexOf("\\",t),s===-1||s>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(s=e.indexOf("\\",r),s===-1||s>i))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var c=Gl[a];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},$v=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Gl[r];if(n){var o=e.indexOf(n,t);o!==-1&&(t=o+1)}if(e[t]==="!")return!0}else t++}return!1};Vl.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Ov(t))return!0;var n=Pv;return r&&r.strict===!1&&(n=$v),n(t)}});var ql=k((oS,Wl)=>{"use strict";var Dv=Ul(),Nv=M("path").posix.dirname,Lv=M("os").platform()==="win32",si="/",Iv=/\\/g,Fv=/[\{\[].*[\}\]]$/,jv=/(^|[^\\])([\{\[]|\([^\)]+$)/,Mv=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Wl.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Lv&&t.indexOf(si)<0&&(t=t.replace(Iv,si)),Fv.test(t)&&(t+=si),t+="a";do t=Nv(t);while(Dv(t)||jv.test(t));return t.replace(Mv,"$1")}});var cn=k(De=>{"use strict";De.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;De.find=(e,t)=>e.nodes.find(r=>r.type===t);De.exceedsLimit=(e,t,r=1,n)=>n===!1||!De.isInteger(e)||!De.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;De.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};De.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;De.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;De.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;De.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);De.flatten=(...e)=>{let t=[],r=n=>{for(let o=0;o<n.length;o++){let i=n[o];if(Array.isArray(i)){r(i);continue}i!==void 0&&t.push(i)}return t};return r(e),t}});var ln=k((sS,Kl)=>{"use strict";var Yl=cn();Kl.exports=(e,t={})=>{let r=(n,o={})=>{let i=t.escapeInvalid&&Yl.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||s)&&Yl.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(e)}});var Xl=k((aS,zl)=>{"use strict";zl.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var iu=k((cS,ou)=>{"use strict";var Jl=Xl(),Lt=(e,t,r)=>{if(Jl(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Jl(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let o=String(n.relaxZeros),i=String(n.shorthand),s=String(n.capture),a=String(n.wrap),c=e+":"+t+"="+o+i+s+a;if(Lt.cache.hasOwnProperty(c))return Lt.cache[c].result;let u=Math.min(e,t),l=Math.max(e,t);if(Math.abs(u-l)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let p=nu(e)||nu(t),d={min:e,max:t,a:u,b:l},y=[],g=[];if(p&&(d.isPadded=p,d.maxLen=String(d.max).length),u<0){let m=l<0?Math.abs(l):1;g=Ql(m,Math.abs(u),d,n),u=d.a=0}return l>=0&&(y=Ql(u,l,d,n)),d.negatives=g,d.positives=y,d.result=Bv(g,y,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&y.length+g.length>1&&(d.result=`(?:${d.result})`),Lt.cache[c]=d,d.result};function Bv(e,t,r){let n=ai(e,t,"-",!1,r)||[],o=ai(t,e,"",!1,r)||[],i=ai(e,t,"-?",!0,r)||[];return n.concat(i).concat(o).join("|")}function Hv(e,t){let r=1,n=1,o=eu(e,r),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),r+=1,o=eu(e,r);for(o=tu(t+1,n)-1;e<o&&o<=t;)i.add(o),n+=1,o=tu(t+1,n)-1;return i=[...i],i.sort(Uv),i}function Gv(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Vv(e,t),o=n.length,i="",s=0;for(let a=0;a<o;a++){let[c,u]=n[a];c===u?i+=c:c!=="0"||u!=="9"?i+=Wv(c,u,r):s++}return s&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function Ql(e,t,r,n){let o=Hv(e,t),i=[],s=e,a;for(let c=0;c<o.length;c++){let u=o[c],l=Gv(String(s),String(u),n),p="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+ru(a.count),s=u+1;continue}r.isPadded&&(p=qv(u,r,n)),l.string=p+l.pattern+ru(l.count),i.push(l),s=u+1,a=l}return i}function ai(e,t,r,n,o){let i=[];for(let s of e){let{string:a}=s;!n&&!Zl(t,"string",a)&&i.push(r+a),n&&Zl(t,"string",a)&&i.push(r+a)}return i}function Vv(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Uv(e,t){return e>t?1:t>e?-1:0}function Zl(e,t,r){return e.some(n=>n[t]===r)}function eu(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function tu(e,t){return e-e%Math.pow(10,t)}function ru(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Wv(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function nu(e){return/^-?(0+)\d/.test(e)}function qv(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),o=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${n}}`:`0{${n}}`}}Lt.cache={};Lt.clearCache=()=>Lt.cache={};ou.exports=Lt});var ui=k((lS,du)=>{"use strict";var Yv=M("util"),au=iu(),su=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Kv=e=>t=>e===!0?Number(t):String(t),ci=e=>typeof e=="number"||typeof e=="string"&&e!=="",Cr=e=>Number.isInteger(+e),li=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},zv=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Xv=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},pn=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Jv=(e,t,r)=>{e.negatives.sort((a,c)=>a<c?-1:a>c?1:0),e.positives.sort((a,c)=>a<c?-1:a>c?1:0);let n=t.capture?"":"?:",o="",i="",s;return e.positives.length&&(o=e.positives.map(a=>pn(String(a),r)).join("|")),e.negatives.length&&(i=`-(${n}${e.negatives.map(a=>pn(String(a),r)).join("|")})`),o&&i?s=`${o}|${i}`:s=o||i,t.wrap?`(${n}${s})`:s},cu=(e,t,r,n)=>{if(r)return au(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`},lu=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return au(e,t,r)},uu=(...e)=>new RangeError("Invalid range arguments: "+Yv.inspect(...e)),pu=(e,t,r)=>{if(r.strictRanges===!0)throw uu([e,t]);return[]},Qv=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Zv=(e,t,r=1,n={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(n.strictRanges===!0)throw uu([e,t]);return[]}o===0&&(o=0),i===0&&(i=0);let s=o>i,a=String(e),c=String(t),u=String(r);r=Math.max(Math.abs(r),1);let l=li(a)||li(c)||li(u),p=l?Math.max(a.length,c.length,u.length):0,d=l===!1&&zv(e,t,n)===!1,y=n.transform||Kv(d);if(n.toRegex&&r===1)return cu(pn(e,p),pn(t,p),!0,n);let g={negatives:[],positives:[]},m=S=>g[S<0?"negatives":"positives"].push(Math.abs(S)),E=[],x=0;for(;s?o>=i:o<=i;)n.toRegex===!0&&r>1?m(o):E.push(Xv(y(o,x),p,d)),o=s?o-r:o+r,x++;return n.toRegex===!0?r>1?Jv(g,n,p):lu(E,null,{wrap:!1,...n}):E},eb=(e,t,r=1,n={})=>{if(!Cr(e)&&e.length>1||!Cr(t)&&t.length>1)return pu(e,t,n);let o=n.transform||(d=>String.fromCharCode(d)),i=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=i>s,c=Math.min(i,s),u=Math.max(i,s);if(n.toRegex&&r===1)return cu(c,u,!1,n);let l=[],p=0;for(;a?i>=s:i<=s;)l.push(o(i,p)),i=a?i-r:i+r,p++;return n.toRegex===!0?lu(l,null,{wrap:!1,options:n}):l},un=(e,t,r,n={})=>{if(t==null&&ci(e))return[e];if(!ci(e)||!ci(t))return pu(e,t,n);if(typeof r=="function")return un(e,t,1,{transform:r});if(su(r))return un(e,t,0,r);let o={...n};return o.capture===!0&&(o.wrap=!0),r=r||o.step||1,Cr(r)?Cr(e)&&Cr(t)?Zv(e,t,r,o):eb(e,t,Math.max(Math.abs(r),1),o):r!=null&&!su(r)?Qv(r,o):un(e,t,1,r)};du.exports=un});var mu=k((uS,hu)=>{"use strict";var tb=ui(),fu=cn(),rb=(e,t={})=>{let r=(n,o={})=>{let i=fu.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||s===!0,c=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=fu.reduce(n.nodes),p=tb(...l,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(p.length!==0)return l.length>1&&p.length>1?`(${p})`:p}if(n.nodes)for(let l of n.nodes)u+=r(l,n);return u};return r(e)};hu.exports=rb});var vu=k((pS,yu)=>{"use strict";var nb=ui(),gu=ln(),Zt=cn(),It=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Zt.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let i of o)n.push(It(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?It(o,i,r):o+i);return Zt.flatten(n)},ob=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(o,i={})=>{o.queue=[];let s=i,a=i.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(o.invalid||o.dollar){a.push(It(a.pop(),gu(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(It(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let p=Zt.reduce(o.nodes);if(Zt.exceedsLimit(...p,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=nb(...p,t);d.length===0&&(d=gu(o,t)),a.push(It(a.pop(),d)),o.nodes=[];return}let c=Zt.encloseBrace(o),u=o.queue,l=o;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,u=l.queue;for(let p=0;p<o.nodes.length;p++){let d=o.nodes[p];if(d.type==="comma"&&o.type==="brace"){p===1&&u.push(""),u.push("");continue}if(d.type==="close"){a.push(It(a.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(It(u.pop(),d.value));continue}d.nodes&&n(d,o)}return u};return Zt.flatten(n(e))};yu.exports=ob});var _u=k((dS,bu)=>{"use strict";bu.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
31
31
  `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Cu=k((fS,wu)=>{"use strict";var ib=ln(),{MAX_LENGTH:Eu,CHAR_BACKSLASH:pi,CHAR_BACKTICK:sb,CHAR_COMMA:ab,CHAR_DOT:cb,CHAR_LEFT_PARENTHESES:lb,CHAR_RIGHT_PARENTHESES:ub,CHAR_LEFT_CURLY_BRACE:pb,CHAR_RIGHT_CURLY_BRACE:db,CHAR_LEFT_SQUARE_BRACKET:xu,CHAR_RIGHT_SQUARE_BRACKET:ku,CHAR_DOUBLE_QUOTE:fb,CHAR_SINGLE_QUOTE:hb,CHAR_NO_BREAK_SPACE:mb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:gb}=_u(),yb=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Eu,r.maxLength):Eu;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let o={type:"root",input:e,nodes:[]},i=[o],s=o,a=o,c=0,u=e.length,l=0,p=0,d,y=()=>e[l++],g=m=>{if(m.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&m.type==="text"){a.value+=m.value;return}return s.nodes.push(m),m.parent=s,m.prev=a,a=m,m};for(g({type:"bos"});l<u;)if(s=i[i.length-1],d=y(),!(d===gb||d===mb)){if(d===pi){g({type:"text",value:(t.keepEscaping?d:"")+y()});continue}if(d===ku){g({type:"text",value:"\\"+d});continue}if(d===xu){c++;let m;for(;l<u&&(m=y());){if(d+=m,m===xu){c++;continue}if(m===pi){d+=y();continue}if(m===ku&&(c--,c===0))break}g({type:"text",value:d});continue}if(d===lb){s=g({type:"paren",nodes:[]}),i.push(s),g({type:"text",value:d});continue}if(d===ub){if(s.type!=="paren"){g({type:"text",value:d});continue}s=i.pop(),g({type:"text",value:d}),s=i[i.length-1];continue}if(d===fb||d===hb||d===sb){let m=d,E;for(t.keepQuotes!==!0&&(d="");l<u&&(E=y());){if(E===pi){d+=E+y();continue}if(E===m){t.keepQuotes===!0&&(d+=E);break}d+=E}g({type:"text",value:d});continue}if(d===pb){p++;let E={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};s=g(E),i.push(s),g({type:"open",value:d});continue}if(d===db){if(s.type!=="brace"){g({type:"text",value:d});continue}let m="close";s=i.pop(),s.close=!0,g({type:m,value:d}),p--,s=i[i.length-1];continue}if(d===ab&&p>0){if(s.ranges>0){s.ranges=0;let m=s.nodes.shift();s.nodes=[m,{type:"text",value:ib(s)}]}g({type:"comma",value:d}),s.commas++;continue}if(d===cb&&p>0&&s.commas===0){let m=s.nodes;if(p===0||m.length===0){g({type:"text",value:d});continue}if(a.type==="dot"){if(s.range=[],a.value+=d,a.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if(a.type==="range"){m.pop();let E=m[m.length-1];E.value+=a.value+d,a=E,s.ranges--;continue}g({type:"dot",value:d});continue}g({type:"text",value:d})}do if(s=i.pop(),s.type!=="root"){s.nodes.forEach(x=>{x.nodes||(x.type==="open"&&(x.isOpen=!0),x.type==="close"&&(x.isClose=!0),x.nodes||(x.type="text"),x.invalid=!0)});let m=i[i.length-1],E=m.nodes.indexOf(s);m.nodes.splice(E,1,...s.nodes)}while(i.length>0);return g({type:"eos"}),o};wu.exports=yb});var Ru=k((hS,Su)=>{"use strict";var Au=ln(),vb=mu(),bb=vu(),_b=Cu(),Re=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let o=Re.create(n,t);Array.isArray(o)?r.push(...o):r.push(o)}else r=[].concat(Re.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Re.parse=(e,t={})=>_b(e,t);Re.stringify=(e,t={})=>Au(typeof e=="string"?Re.parse(e,t):e,t);Re.compile=(e,t={})=>(typeof e=="string"&&(e=Re.parse(e,t)),vb(e,t));Re.expand=(e,t={})=>{typeof e=="string"&&(e=Re.parse(e,t));let r=bb(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Re.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Re.compile(e,t):Re.expand(e,t);Su.exports=Re});var Ar=k((mS,Du)=>{"use strict";var Eb=M("path"),Je="\\\\/",Tu=`[^${Je}]`,xb=0,st="\\.",kb="\\+",wb="\\?",dn="\\/",Cb="(?=.)",Ou="[^/]",di=`(?:${dn}|$)`,Pu=`(?:^|${dn})`,fi=`${st}{1,2}${di}`,Ab=`(?!${st})`,Sb=`(?!${Pu}${fi})`,Rb=`(?!${st}{0,1}${di})`,Tb=`(?!${fi})`,Ob=`[^.${dn}]`,Pb=`${Ou}*?`,$u={DOT_LITERAL:st,PLUS_LITERAL:kb,QMARK_LITERAL:wb,SLASH_LITERAL:dn,ONE_CHAR:Cb,QMARK:Ou,END_ANCHOR:di,DOTS_SLASH:fi,NO_DOT:Ab,NO_DOTS:Sb,NO_DOT_SLASH:Rb,NO_DOTS_SLASH:Tb,QMARK_NO_DOT:Ob,STAR:Pb,START_ANCHOR:Pu},$b={...$u,SLASH_LITERAL:`[${Je}]`,QMARK:Tu,STAR:`${Tu}*?`,DOTS_SLASH:`${st}{1,2}(?:[${Je}]|$)`,NO_DOT:`(?!${st})`,NO_DOTS:`(?!(?:^|[${Je}])${st}{1,2}(?:[${Je}]|$))`,NO_DOT_SLASH:`(?!${st}{0,1}(?:[${Je}]|$))`,NO_DOTS_SLASH:`(?!${st}{1,2}(?:[${Je}]|$))`,QMARK_NO_DOT:`[^.${Je}]`,START_ANCHOR:`(?:^|[${Je}])`,END_ANCHOR:`(?:[${Je}]|$)`},Db={__proto__:null,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"};Du.exports={DEFAULT_MAX_EXTGLOB_RECURSION:xb,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Db,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,SEP:Eb.sep,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?$b:$u}}});var Sr=k(we=>{"use strict";var Nb=M("path"),Lb=process.platform==="win32",{REGEX_BACKSLASH:Ib,REGEX_REMOVE_BACKSLASH:Fb,REGEX_SPECIAL_CHARS:jb,REGEX_SPECIAL_CHARS_GLOBAL:Mb}=Ar();we.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);we.hasRegexChars=e=>jb.test(e);we.isRegexChar=e=>e.length===1&&we.hasRegexChars(e);we.escapeRegex=e=>e.replace(Mb,"\\$1");we.toPosixSlashes=e=>e.replace(Ib,"/");we.removeBackslashes=e=>e.replace(Fb,t=>t==="\\"?"":t);we.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};we.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Lb===!0||Nb.sep==="\\";we.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?we.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};we.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};we.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Hu=k((yS,Bu)=>{"use strict";var Nu=Sr(),{CHAR_ASTERISK:hi,CHAR_AT:Bb,CHAR_BACKWARD_SLASH:Rr,CHAR_COMMA:Hb,CHAR_DOT:mi,CHAR_EXCLAMATION_MARK:gi,CHAR_FORWARD_SLASH:Mu,CHAR_LEFT_CURLY_BRACE:yi,CHAR_LEFT_PARENTHESES:vi,CHAR_LEFT_SQUARE_BRACKET:Gb,CHAR_PLUS:Vb,CHAR_QUESTION_MARK:Lu,CHAR_RIGHT_CURLY_BRACE:Ub,CHAR_RIGHT_PARENTHESES:Iu,CHAR_RIGHT_SQUARE_BRACKET:Wb}=Ar(),Fu=e=>e===Mu||e===Rr,ju=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},qb=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],c=e,u=-1,l=0,p=0,d=!1,y=!1,g=!1,m=!1,E=!1,x=!1,S=!1,$=!1,oe=!1,q=!1,O=0,L,w,F={value:"",depth:0,isGlob:!1},ae=()=>u>=n,_=()=>c.charCodeAt(u+1),Q=()=>(L=w,c.charCodeAt(++u));for(;u<n;){w=Q();let ve;if(w===Rr){S=F.backslashes=!0,w=Q(),w===yi&&(x=!0);continue}if(x===!0||w===yi){for(O++;ae()!==!0&&(w=Q());){if(w===Rr){S=F.backslashes=!0,Q();continue}if(w===yi){O++;continue}if(x!==!0&&w===mi&&(w=Q())===mi){if(d=F.isBrace=!0,g=F.isGlob=!0,q=!0,o===!0)continue;break}if(x!==!0&&w===Hb){if(d=F.isBrace=!0,g=F.isGlob=!0,q=!0,o===!0)continue;break}if(w===Ub&&(O--,O===0)){x=!1,d=F.isBrace=!0,q=!0;break}}if(o===!0)continue;break}if(w===Mu){if(i.push(u),s.push(F),F={value:"",depth:0,isGlob:!1},q===!0)continue;if(L===mi&&u===l+1){l+=2;continue}p=u+1;continue}if(r.noext!==!0&&(w===Vb||w===Bb||w===hi||w===Lu||w===gi)===!0&&_()===vi){if(g=F.isGlob=!0,m=F.isExtglob=!0,q=!0,w===gi&&u===l&&(oe=!0),o===!0){for(;ae()!==!0&&(w=Q());){if(w===Rr){S=F.backslashes=!0,w=Q();continue}if(w===Iu){g=F.isGlob=!0,q=!0;break}}continue}break}if(w===hi){if(L===hi&&(E=F.isGlobstar=!0),g=F.isGlob=!0,q=!0,o===!0)continue;break}if(w===Lu){if(g=F.isGlob=!0,q=!0,o===!0)continue;break}if(w===Gb){for(;ae()!==!0&&(ve=Q());){if(ve===Rr){S=F.backslashes=!0,Q();continue}if(ve===Wb){y=F.isBracket=!0,g=F.isGlob=!0,q=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&w===gi&&u===l){$=F.negated=!0,l++;continue}if(r.noparen!==!0&&w===vi){if(g=F.isGlob=!0,o===!0){for(;ae()!==!0&&(w=Q());){if(w===vi){S=F.backslashes=!0,w=Q();continue}if(w===Iu){q=!0;break}}continue}break}if(g===!0){if(q=!0,o===!0)continue;break}}r.noext===!0&&(m=!1,g=!1);let z=c,gt="",v="";l>0&&(gt=c.slice(0,l),c=c.slice(l),p-=l),z&&g===!0&&p>0?(z=c.slice(0,p),v=c.slice(p)):g===!0?(z="",v=c):z=c,z&&z!==""&&z!=="/"&&z!==c&&Fu(z.charCodeAt(z.length-1))&&(z=z.slice(0,-1)),r.unescape===!0&&(v&&(v=Nu.removeBackslashes(v)),z&&S===!0&&(z=Nu.removeBackslashes(z)));let b={prefix:gt,input:e,start:l,base:z,glob:v,isBrace:d,isBracket:y,isGlob:g,isExtglob:m,isGlobstar:E,negated:$,negatedExtglob:oe};if(r.tokens===!0&&(b.maxDepth=0,Fu(w)||s.push(F),b.tokens=s),r.parts===!0||r.tokens===!0){let ve;for(let j=0;j<i.length;j++){let Ve=ve?ve+1:l,Ue=i[j],Se=e.slice(Ve,Ue);r.tokens&&(j===0&&l!==0?(s[j].isPrefix=!0,s[j].value=gt):s[j].value=Se,ju(s[j]),b.maxDepth+=s[j].depth),(j!==0||Se!=="")&&a.push(Se),ve=Ue}if(ve&&ve+1<e.length){let j=e.slice(ve+1);a.push(j),r.tokens&&(s[s.length-1].value=j,ju(s[s.length-1]),b.maxDepth+=s[s.length-1].depth)}b.slashes=i,b.parts=a}return b};Bu.exports=qb});var qu=k((vS,Wu)=>{"use strict";var Tr=Ar(),me=Sr(),{MAX_LENGTH:fn,POSIX_REGEX_SOURCE:Yb,REGEX_NON_SPECIAL_CHARS:Kb,REGEX_SPECIAL_CHARS_BACKREF:zb,REPLACEMENTS:Gu}=Tr,Xb=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(o=>me.escapeRegex(o)).join("..")}return r},er=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Vu=e=>{let t=[],r=0,n=0,o=0,i="",s=!1;for(let a of e){if(s===!0){i+=a,s=!1;continue}if(a==="\\"){i+=a,s=!0;continue}if(a==='"'){o=o===1?0:1,i+=a;continue}if(o===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){t.push(i),i="";continue}}}i+=a}return t.push(i),t},Jb=e=>{let t=!1;for(let r of e){if(t===!0){t=!1;continue}if(r==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},Uu=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(Jb(t))return t.replace(/\\(.)/g,"$1")},Qb=e=>{let t=e.map(Uu).filter(Boolean);for(let r=0;r<t.length;r++)for(let n=r+1;n<t.length;n++){let o=t[r],i=t[n],s=o[0];if(!(!s||o!==s.repeat(o.length)||i!==s.repeat(i.length))&&(o===i||o.startsWith(i)||i.startsWith(o)))return!0}return!1},bi=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let r=0,n=0,o=0,i=!1;for(let s=1;s<e.length;s++){let a=e[s];if(i===!0){i=!1;continue}if(a==="\\"){i=!0;continue}if(a==='"'){o=o===1?0:1;continue}if(o!==1){if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(!(r>0)){if(a==="("){n++;continue}if(a===")"&&(n--,n===0))return t===!0&&s!==e.length-1?void 0:{type:e[0],body:e.slice(2,s),end:s}}}}},Zb=e=>{let t=0,r=[];for(;t<e.length;){let o=bi(e.slice(t),!1);if(!o||o.type!=="*")return;let i=Vu(o.body).map(a=>a.trim());if(i.length!==1)return;let s=Uu(i[0]);if(!s||s.length!==1)return;r.push(s),t+=o.end+1}return r.length<1?void 0:`${r.length===1?me.escapeRegex(r[0]):`[${r.map(o=>me.escapeRegex(o)).join("")}]`}*`},e_=e=>{let t=0,r=e.trim(),n=bi(r);for(;n;)t++,r=n.body.trim(),n=bi(r);return t},t_=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:Tr.DEFAULT_MAX_EXTGLOB_RECURSION,n=Vu(e).map(o=>o.trim());if(n.length>1&&(n.some(o=>o==="")||n.some(o=>/^[*?]+$/.test(o))||Qb(n)))return{risky:!0};for(let o of n){let i=Zb(o);if(i)return{risky:!0,safeOutput:i};if(e_(o)>r)return{risky:!0}}return{risky:!1}},_i=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Gu[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(fn,r.maxLength):fn,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},s=[i],a=r.capture?"":"?:",c=me.isWindows(t),u=Tr.globChars(c),l=Tr.extglobChars(u),{DOT_LITERAL:p,PLUS_LITERAL:d,SLASH_LITERAL:y,ONE_CHAR:g,DOTS_SLASH:m,NO_DOT:E,NO_DOT_SLASH:x,NO_DOTS_SLASH:S,QMARK:$,QMARK_NO_DOT:oe,STAR:q,START_ANCHOR:O}=u,L=A=>`(${a}(?:(?!${O}${A.dot?m:p}).)*?)`,w=r.dot?"":E,F=r.dot?$:oe,ae=r.bash===!0?L(r):q;r.capture&&(ae=`(${ae})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=me.removePrefix(e,_),o=e.length;let Q=[],z=[],gt=[],v=i,b,ve=()=>_.index===o-1,j=_.peek=(A=1)=>e[_.index+A],Ve=_.advance=()=>e[++_.index]||"",Ue=()=>e.slice(_.index+1),Se=(A="",Z=0)=>{_.consumed+=A,_.index+=Z},Hr=A=>{_.output+=A.output!=null?A.output:A.value,Se(A.value)},$h=()=>{let A=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)Ve(),_.start++,A++;return A%2===0?!1:(_.negated=!0,_.start++,!0)},Gr=A=>{_[A]++,gt.push(A)},yt=A=>{_[A]--,gt.pop()},N=A=>{if(v.type==="globstar"){let Z=_.braces>0&&(A.type==="comma"||A.type==="brace"),C=A.extglob===!0||Q.length&&(A.type==="pipe"||A.type==="paren");A.type!=="slash"&&A.type!=="paren"&&!Z&&!C&&(_.output=_.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=ae,_.output+=v.output)}if(Q.length&&A.type!=="paren"&&(Q[Q.length-1].inner+=A.value),(A.value||A.output)&&Hr(A),v&&v.type==="text"&&A.type==="text"){v.value+=A.value,v.output=(v.output||"")+A.value;return}A.prev=v,s.push(A),v=A},Vr=(A,Z)=>{let C={...l[Z],conditions:1,inner:""};C.prev=v,C.parens=_.parens,C.output=_.output,C.startIndex=_.index,C.tokensIndex=s.length;let D=(r.capture?"(":"")+C.open;Gr("parens"),N({type:A,value:Z,output:_.output?"":g}),N({type:"paren",extglob:!0,value:Ve(),output:D}),Q.push(C)},Dh=A=>{let Z=e.slice(A.startIndex,_.index+1),C=e.slice(A.startIndex+2,_.index),D=t_(C,r);if((A.type==="plus"||A.type==="star")&&D.risky){let Y=D.safeOutput?(A.output?"":g)+(r.capture?`(${D.safeOutput})`:D.safeOutput):void 0,We=s[A.tokensIndex];We.type="text",We.value=Z,We.output=Y||me.escapeRegex(Z);for(let qe=A.tokensIndex+1;qe<s.length;qe++)s[qe].value="",s[qe].output="",delete s[qe].suffix;_.output=A.output+We.output,_.backtrack=!0,N({type:"paren",extglob:!0,value:b,output:""}),yt("parens");return}let X=A.close+(r.capture?")":""),ce;if(A.type==="negate"){let Y=ae;if(A.inner&&A.inner.length>1&&A.inner.includes("/")&&(Y=L(r)),(Y!==ae||ve()||/^\)+$/.test(Ue()))&&(X=A.close=`)$))${Y}`),A.inner.includes("*")&&(ce=Ue())&&/^\.[^\\/.]+$/.test(ce)){let We=_i(ce,{...t,fastpaths:!1}).output;X=A.close=`)${We})${Y})`}A.prev.type==="bos"&&(_.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:b,output:X}),yt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let A=!1,Z=e.replace(zb,(C,D,X,ce,Y,We)=>ce==="\\"?(A=!0,C):ce==="?"?D?D+ce+(Y?$.repeat(Y.length):""):We===0?F+(Y?$.repeat(Y.length):""):$.repeat(X.length):ce==="."?p.repeat(X.length):ce==="*"?D?D+ce+(Y?ae:""):ae:D?C:`\\${C}`);return A===!0&&(r.unescape===!0?Z=Z.replace(/\\/g,""):Z=Z.replace(/\\+/g,C=>C.length%2===0?"\\\\":C?"\\":"")),Z===e&&r.contains===!0?(_.output=e,_):(_.output=me.wrapOutput(Z,_,t),_)}for(;!ve();){if(b=Ve(),b==="\0")continue;if(b==="\\"){let C=j();if(C==="/"&&r.bash!==!0||C==="."||C===";")continue;if(!C){b+="\\",N({type:"text",value:b});continue}let D=/^\\+/.exec(Ue()),X=0;if(D&&D[0].length>2&&(X=D[0].length,_.index+=X,X%2!==0&&(b+="\\")),r.unescape===!0?b=Ve():b+=Ve(),_.brackets===0){N({type:"text",value:b});continue}}if(_.brackets>0&&(b!=="]"||v.value==="["||v.value==="[^")){if(r.posix!==!1&&b===":"){let C=v.value.slice(1);if(C.includes("[")&&(v.posix=!0,C.includes(":"))){let D=v.value.lastIndexOf("["),X=v.value.slice(0,D),ce=v.value.slice(D+2),Y=Yb[ce];if(Y){v.value=X+Y,_.backtrack=!0,Ve(),!i.output&&s.indexOf(v)===1&&(i.output=g);continue}}}(b==="["&&j()!==":"||b==="-"&&j()==="]")&&(b=`\\${b}`),b==="]"&&(v.value==="["||v.value==="[^")&&(b=`\\${b}`),r.posix===!0&&b==="!"&&v.value==="["&&(b="^"),v.value+=b,Hr({value:b});continue}if(_.quotes===1&&b!=='"'){b=me.escapeRegex(b),v.value+=b,Hr({value:b});continue}if(b==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&N({type:"text",value:b});continue}if(b==="("){Gr("parens"),N({type:"paren",value:b});continue}if(b===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(er("opening","("));let C=Q[Q.length-1];if(C&&_.parens===C.parens+1){Dh(Q.pop());continue}N({type:"paren",value:b,output:_.parens?")":"\\)"}),yt("parens");continue}if(b==="["){if(r.nobracket===!0||!Ue().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(er("closing","]"));b=`\\${b}`}else Gr("brackets");N({type:"bracket",value:b});continue}if(b==="]"){if(r.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){N({type:"text",value:b,output:`\\${b}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(er("opening","["));N({type:"text",value:b,output:`\\${b}`});continue}yt("brackets");let C=v.value.slice(1);if(v.posix!==!0&&C[0]==="^"&&!C.includes("/")&&(b=`/${b}`),v.value+=b,Hr({value:b}),r.literalBrackets===!1||me.hasRegexChars(C))continue;let D=me.escapeRegex(v.value);if(_.output=_.output.slice(0,-v.value.length),r.literalBrackets===!0){_.output+=D,v.value=D;continue}v.value=`(${a}${D}|${v.value})`,_.output+=v.value;continue}if(b==="{"&&r.nobrace!==!0){Gr("braces");let C={type:"brace",value:b,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};z.push(C),N(C);continue}if(b==="}"){let C=z[z.length-1];if(r.nobrace===!0||!C){N({type:"text",value:b,output:b});continue}let D=")";if(C.dots===!0){let X=s.slice(),ce=[];for(let Y=X.length-1;Y>=0&&(s.pop(),X[Y].type!=="brace");Y--)X[Y].type!=="dots"&&ce.unshift(X[Y].value);D=Xb(ce,r),_.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){let X=_.output.slice(0,C.outputIndex),ce=_.tokens.slice(C.tokensIndex);C.value=C.output="\\{",b=D="\\}",_.output=X;for(let Y of ce)_.output+=Y.output||Y.value}N({type:"brace",value:b,output:D}),yt("braces"),z.pop();continue}if(b==="|"){Q.length>0&&Q[Q.length-1].conditions++,N({type:"text",value:b});continue}if(b===","){let C=b,D=z[z.length-1];D&&gt[gt.length-1]==="braces"&&(D.comma=!0,C="|"),N({type:"comma",value:b,output:C});continue}if(b==="/"){if(v.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",s.pop(),v=i;continue}N({type:"slash",value:b,output:y});continue}if(b==="."){if(_.braces>0&&v.type==="dot"){v.value==="."&&(v.output=p);let C=z[z.length-1];v.type="dots",v.output+=b,v.value+=b,C.dots=!0;continue}if(_.braces+_.parens===0&&v.type!=="bos"&&v.type!=="slash"){N({type:"text",value:b,output:p});continue}N({type:"dot",value:b,output:p});continue}if(b==="?"){if(!(v&&v.value==="(")&&r.noextglob!==!0&&j()==="("&&j(2)!=="?"){Vr("qmark",b);continue}if(v&&v.type==="paren"){let D=j(),X=b;if(D==="<"&&!me.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(v.value==="("&&!/[!=<:]/.test(D)||D==="<"&&!/<([!=]|\w+>)/.test(Ue()))&&(X=`\\${b}`),N({type:"text",value:b,output:X});continue}if(r.dot!==!0&&(v.type==="slash"||v.type==="bos")){N({type:"qmark",value:b,output:oe});continue}N({type:"qmark",value:b,output:$});continue}if(b==="!"){if(r.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){Vr("negate",b);continue}if(r.nonegate!==!0&&_.index===0){$h();continue}}if(b==="+"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){Vr("plus",b);continue}if(v&&v.value==="("||r.regex===!1){N({type:"plus",value:b,output:d});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||_.parens>0){N({type:"plus",value:b});continue}N({type:"plus",value:d});continue}if(b==="@"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){N({type:"at",extglob:!0,value:b,output:""});continue}N({type:"text",value:b});continue}if(b!=="*"){(b==="$"||b==="^")&&(b=`\\${b}`);let C=Kb.exec(Ue());C&&(b+=C[0],_.index+=C[0].length),N({type:"text",value:b});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=b,v.output=ae,_.backtrack=!0,_.globstar=!0,Se(b);continue}let A=Ue();if(r.noextglob!==!0&&/^\([^?]/.test(A)){Vr("star",b);continue}if(v.type==="star"){if(r.noglobstar===!0){Se(b);continue}let C=v.prev,D=C.prev,X=C.type==="slash"||C.type==="bos",ce=D&&(D.type==="star"||D.type==="globstar");if(r.bash===!0&&(!X||A[0]&&A[0]!=="/")){N({type:"star",value:b,output:""});continue}let Y=_.braces>0&&(C.type==="comma"||C.type==="brace"),We=Q.length&&(C.type==="pipe"||C.type==="paren");if(!X&&C.type!=="paren"&&!Y&&!We){N({type:"star",value:b,output:""});continue}for(;A.slice(0,3)==="/**";){let qe=e[_.index+4];if(qe&&qe!=="/")break;A=A.slice(3),Se("/**",3)}if(C.type==="bos"&&ve()){v.type="globstar",v.value+=b,v.output=L(r),_.output=v.output,_.globstar=!0,Se(b);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!ce&&ve()){_.output=_.output.slice(0,-(C.output+v.output).length),C.output=`(?:${C.output}`,v.type="globstar",v.output=L(r)+(r.strictSlashes?")":"|$)"),v.value+=b,_.globstar=!0,_.output+=C.output+v.output,Se(b);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&A[0]==="/"){let qe=A[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(C.output+v.output).length),C.output=`(?:${C.output}`,v.type="globstar",v.output=`${L(r)}${y}|${y}${qe})`,v.value+=b,_.output+=C.output+v.output,_.globstar=!0,Se(b+Ve()),N({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&A[0]==="/"){v.type="globstar",v.value+=b,v.output=`(?:^|${y}|${L(r)}${y})`,_.output=v.output,_.globstar=!0,Se(b+Ve()),N({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-v.output.length),v.type="globstar",v.output=L(r),v.value+=b,_.output+=v.output,_.globstar=!0,Se(b);continue}let Z={type:"star",value:b,output:ae};if(r.bash===!0){Z.output=".*?",(v.type==="bos"||v.type==="slash")&&(Z.output=w+Z.output),N(Z);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&r.regex===!0){Z.output=b,N(Z);continue}(_.index===_.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(_.output+=x,v.output+=x):r.dot===!0?(_.output+=S,v.output+=S):(_.output+=w,v.output+=w),j()!=="*"&&(_.output+=g,v.output+=g)),N(Z)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(er("closing","]"));_.output=me.escapeLast(_.output,"["),yt("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(er("closing",")"));_.output=me.escapeLast(_.output,"("),yt("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(er("closing","}"));_.output=me.escapeLast(_.output,"{"),yt("braces")}if(r.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${y}?`}),_.backtrack===!0){_.output="";for(let A of _.tokens)_.output+=A.output!=null?A.output:A.value,A.suffix&&(_.output+=A.suffix)}return _};_i.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(fn,r.maxLength):fn,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Gu[e]||e;let i=me.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:l,NO_DOTS:p,NO_DOTS_SLASH:d,STAR:y,START_ANCHOR:g}=Tr.globChars(i),m=r.dot?p:l,E=r.dot?d:l,x=r.capture?"":"?:",S={negated:!1,prefix:""},$=r.bash===!0?".*?":y;r.capture&&($=`(${$})`);let oe=w=>w.noglobstar===!0?$:`(${x}(?:(?!${g}${w.dot?u:s}).)*?)`,q=w=>{switch(w){case"*":return`${m}${c}${$}`;case".*":return`${s}${c}${$}`;case"*.*":return`${m}${$}${s}${c}${$}`;case"*/*":return`${m}${$}${a}${c}${E}${$}`;case"**":return m+oe(r);case"**/*":return`(?:${m}${oe(r)}${a})?${E}${c}${$}`;case"**/*.*":return`(?:${m}${oe(r)}${a})?${E}${$}${s}${c}${$}`;case"**/.*":return`(?:${m}${oe(r)}${a})?${s}${c}${$}`;default:{let F=/^(.*?)\.(\w+)$/.exec(w);if(!F)return;let ae=q(F[1]);return ae?ae+s+F[2]:void 0}}},O=me.removePrefix(e,S),L=q(O);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};Wu.exports=_i});var Ku=k((bS,Yu)=>{"use strict";var r_=M("path"),n_=Hu(),Ei=qu(),xi=Sr(),o_=Ar(),i_=e=>e&&typeof e=="object"&&!Array.isArray(e),re=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(d=>re(d,t,r));return d=>{for(let y of l){let g=y(d);if(g)return g}return!1}}let n=i_(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},i=xi.isWindows(t),s=n?re.compileRe(e,t):re.makeRe(e,t,!1,!0),a=s.state;delete s.state;let c=()=>!1;if(o.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};c=re(o.ignore,l,r)}let u=(l,p=!1)=>{let{isMatch:d,match:y,output:g}=re.test(l,s,t,{glob:e,posix:i}),m={glob:e,state:a,regex:s,posix:i,input:l,output:g,match:y,isMatch:d};return typeof o.onResult=="function"&&o.onResult(m),d===!1?(m.isMatch=!1,p?m:!1):c(l)?(typeof o.onIgnore=="function"&&o.onIgnore(m),m.isMatch=!1,p?m:!1):(typeof o.onMatch=="function"&&o.onMatch(m),p?m:!0)};return r&&(u.state=a),u};re.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},s=i.format||(o?xi.toPosixSlashes:null),a=e===n,c=a&&s?s(e):e;return a===!1&&(c=s?s(e):e,a=c===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=re.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};re.matchBase=(e,t,r,n=xi.isWindows(r))=>(t instanceof RegExp?t:re.makeRe(t,r)).test(r_.basename(e));re.isMatch=(e,t,r)=>re(t,r)(e);re.parse=(e,t)=>Array.isArray(e)?e.map(r=>re.parse(r,t)):Ei(e,{...t,fastpaths:!1});re.scan=(e,t)=>n_(e,t);re.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},i=o.contains?"":"^",s=o.contains?"":"$",a=`${i}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=re.toRegex(a,t);return n===!0&&(c.state=e),c};re.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=Ei.fastpaths(e,t)),o.output||(o=Ei(e,t)),re.compileRe(o,t,r,n)};re.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};re.constants=o_;Yu.exports=re});var Xu=k((_S,zu)=>{"use strict";zu.exports=Ku()});var rp=k((ES,tp)=>{"use strict";var Qu=M("util"),Zu=Ru(),Qe=Xu(),ki=Sr(),Ju=e=>e===""||e==="./",ep=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},J=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,i=new Set,s=0,a=l=>{i.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let p=Qe(String(t[l]),{...r,onResult:a},!0),d=p.state.negated||p.state.negatedExtglob;d&&s++;for(let y of e){let g=p(y,!0);(d?!g.isMatch:g.isMatch)&&(d?n.add(g.output):(n.delete(g.output),o.add(g.output)))}}let u=(s===t.length?[...i]:[...o]).filter(l=>!n.has(l));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return u};J.match=J;J.matcher=(e,t)=>Qe(e,t);J.isMatch=(e,t,r)=>Qe(t,r)(e);J.any=J.isMatch;J.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],i=a=>{r.onResult&&r.onResult(a),o.push(a.output)},s=new Set(J(e,t,{...r,onResult:i}));for(let a of o)s.has(a)||n.add(a);return[...n]};J.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Qu.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>J.contains(e,n,r));if(typeof t=="string"){if(Ju(e)||Ju(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return J.isMatch(e,t,{...r,contains:!0})};J.matchKeys=(e,t,r)=>{if(!ki.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=J(Object.keys(e),t,r),o={};for(let i of n)o[i]=e[i];return o};J.some=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=Qe(String(o),r);if(n.some(s=>i(s)))return!0}return!1};J.every=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=Qe(String(o),r);if(!n.every(s=>i(s)))return!1}return!0};J.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Qu.inspect(e)}"`);return[].concat(t).every(n=>Qe(n,r)(e))};J.capture=(e,t,r)=>{let n=ki.isWindows(r),i=Qe.makeRe(String(e),{...r,capture:!0}).exec(n?ki.toPosixSlashes(t):t);if(i)return i.slice(1).map(s=>s===void 0?"":s)};J.makeRe=(...e)=>Qe.makeRe(...e);J.scan=(...e)=>Qe.scan(...e);J.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let o of Zu(String(n),t))r.push(Qe.parse(o,t));return r};J.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!ep(e)?[e]:Zu(e,t)};J.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return J.braces(e,{...t,expand:!0})};J.hasBraces=ep;tp.exports=J});var dp=k(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.isAbsolute=T.partitionAbsoluteAndRelative=T.removeDuplicateSlashes=T.matchAny=T.convertPatternsToRe=T.makeRe=T.getPatternParts=T.expandBraceExpansion=T.expandPatternsWithBraceExpansion=T.isAffectDepthOfReadingPattern=T.endsWithSlashGlobStar=T.hasGlobStar=T.getBaseDirectory=T.isPatternRelatedToParentDirectory=T.getPatternsOutsideCurrentDirectory=T.getPatternsInsideCurrentDirectory=T.getPositivePatterns=T.getNegativePatterns=T.isPositivePattern=T.isNegativePattern=T.convertToNegativePattern=T.convertToPositivePattern=T.isDynamicPattern=T.isStaticPattern=void 0;var np=M("path"),s_=ql(),wi=rp(),op="**",a_="\\",c_=/[*?]|^!/,l_=/\[[^[]*]/,u_=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,p_=/[!*+?@]\([^(]*\)/,d_=/,|\.\./,f_=/(?!^)\/{2,}/g;function ip(e,t={}){return!sp(e,t)}T.isStaticPattern=ip;function sp(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(a_)||c_.test(e)||l_.test(e)||u_.test(e)||t.extglob!==!1&&p_.test(e)||t.braceExpansion!==!1&&h_(e))}T.isDynamicPattern=sp;function h_(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return d_.test(n)}function m_(e){return hn(e)?e.slice(1):e}T.convertToPositivePattern=m_;function g_(e){return"!"+e}T.convertToNegativePattern=g_;function hn(e){return e.startsWith("!")&&e[1]!=="("}T.isNegativePattern=hn;function ap(e){return!hn(e)}T.isPositivePattern=ap;function y_(e){return e.filter(hn)}T.getNegativePatterns=y_;function v_(e){return e.filter(ap)}T.getPositivePatterns=v_;function b_(e){return e.filter(t=>!Ci(t))}T.getPatternsInsideCurrentDirectory=b_;function __(e){return e.filter(Ci)}T.getPatternsOutsideCurrentDirectory=__;function Ci(e){return e.startsWith("..")||e.startsWith("./..")}T.isPatternRelatedToParentDirectory=Ci;function E_(e){return s_(e,{flipBackslashes:!1})}T.getBaseDirectory=E_;function x_(e){return e.includes(op)}T.hasGlobStar=x_;function cp(e){return e.endsWith("/"+op)}T.endsWithSlashGlobStar=cp;function k_(e){let t=np.basename(e);return cp(e)||ip(t)}T.isAffectDepthOfReadingPattern=k_;function w_(e){return e.reduce((t,r)=>t.concat(lp(r)),[])}T.expandPatternsWithBraceExpansion=w_;function lp(e){let t=wi.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}T.expandBraceExpansion=lp;function C_(e,t){let{parts:r}=wi.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}T.getPatternParts=C_;function up(e,t){return wi.makeRe(e,t)}T.makeRe=up;function A_(e,t){return e.map(r=>up(r,t))}T.convertPatternsToRe=A_;function S_(e,t){return t.some(r=>r.test(e))}T.matchAny=S_;function R_(e){return e.replace(f_,"/")}T.removeDuplicateSlashes=R_;function T_(e){let t=[],r=[];for(let n of e)pp(n)?t.push(n):r.push(n);return[t,r]}T.partitionAbsoluteAndRelative=T_;function pp(e){return np.isAbsolute(e)}T.isAbsolute=pp});var gp=k((kS,mp)=>{"use strict";var O_=M("stream"),fp=O_.PassThrough,P_=Array.prototype.slice;mp.exports=$_;function $_(){let e=[],t=P_.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let o=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let s=fp(n);function a(){for(let l=0,p=arguments.length;l<p;l++)e.push(hp(arguments[l],n));return c(),this}function c(){if(r)return;r=!0;let l=e.shift();if(!l){process.nextTick(u);return}Array.isArray(l)||(l=[l]);let p=l.length+1;function d(){--p>0||(r=!1,c())}function y(g){function m(){g.removeListener("merge2UnpipeEnd",m),g.removeListener("end",m),i&&g.removeListener("error",E),d()}function E(x){s.emit("error",x)}if(g._readableState.endEmitted)return d();g.on("merge2UnpipeEnd",m),g.on("end",m),i&&g.on("error",E),g.pipe(s,{end:!1}),g.resume()}for(let g=0;g<l.length;g++)y(l[g]);d()}function u(){r=!1,s.emit("queueDrain"),o&&s.end()}return s.setMaxListeners(0),s.add=a,s.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),s}function hp(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=hp(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(fp(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var vp=k(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.merge=void 0;var D_=gp();function N_(e){let t=D_(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>yp(e)),t.once("end",()=>yp(e)),t}mn.merge=N_;function yp(e){e.forEach(t=>t.emit("close"))}});var bp=k(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.isEmpty=tr.isString=void 0;function L_(e){return typeof e=="string"}tr.isString=L_;function I_(e){return e===""}tr.isEmpty=I_});var at=k(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.string=ge.stream=ge.pattern=ge.path=ge.fs=ge.errno=ge.array=void 0;var F_=Dl();ge.array=F_;var j_=Nl();ge.errno=j_;var M_=Ll();ge.fs=M_;var B_=Ml();ge.path=B_;var H_=dp();ge.pattern=H_;var G_=vp();ge.stream=G_;var V_=bp();ge.string=V_});var kp=k(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.convertPatternGroupToTask=ye.convertPatternGroupsToTasks=ye.groupPatternsByBaseDirectory=ye.getNegativePatternsAsPositive=ye.getPositivePatterns=ye.convertPatternsToTasks=ye.generate=void 0;var Be=at();function U_(e,t){let r=_p(e,t),n=_p(t.ignore,t),o=Ep(r),i=xp(r,n),s=o.filter(l=>Be.pattern.isStaticPattern(l,t)),a=o.filter(l=>Be.pattern.isDynamicPattern(l,t)),c=Ai(s,i,!1),u=Ai(a,i,!0);return c.concat(u)}ye.generate=U_;function _p(e,t){let r=e;return t.braceExpansion&&(r=Be.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Be.pattern.removeDuplicateSlashes(n))}function Ai(e,t,r){let n=[],o=Be.pattern.getPatternsOutsideCurrentDirectory(e),i=Be.pattern.getPatternsInsideCurrentDirectory(e),s=Si(o),a=Si(i);return n.push(...Ri(s,t,r)),"."in a?n.push(Ti(".",i,t,r)):n.push(...Ri(a,t,r)),n}ye.convertPatternsToTasks=Ai;function Ep(e){return Be.pattern.getPositivePatterns(e)}ye.getPositivePatterns=Ep;function xp(e,t){return Be.pattern.getNegativePatterns(e).concat(t).map(Be.pattern.convertToPositivePattern)}ye.getNegativePatternsAsPositive=xp;function Si(e){let t={};return e.reduce((r,n)=>{let o=Be.pattern.getBaseDirectory(n);return o in r?r[o].push(n):r[o]=[n],r},t)}ye.groupPatternsByBaseDirectory=Si;function Ri(e,t,r){return Object.keys(e).map(n=>Ti(n,e[n],t,r))}ye.convertPatternGroupsToTasks=Ri;function Ti(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Be.pattern.convertToNegativePattern))}}ye.convertPatternGroupToTask=Ti});var Cp=k(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.read=void 0;function W_(e,t,r){t.fs.lstat(e,(n,o)=>{if(n!==null){wp(r,n);return}if(!o.isSymbolicLink()||!t.followSymbolicLink){Oi(r,o);return}t.fs.stat(e,(i,s)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){wp(r,i);return}Oi(r,o);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),Oi(r,s)})})}gn.read=W_;function wp(e,t){e(t)}function Oi(e,t){e(null,t)}});var Ap=k(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.read=void 0;function q_(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}yn.read=q_});var Sp=k(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.createFileSystemAdapter=xt.FILE_SYSTEM_ADAPTER=void 0;var vn=M("fs");xt.FILE_SYSTEM_ADAPTER={lstat:vn.lstat,stat:vn.stat,lstatSync:vn.lstatSync,statSync:vn.statSync};function Y_(e){return e===void 0?xt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xt.FILE_SYSTEM_ADAPTER),e)}xt.createFileSystemAdapter=Y_});var Rp=k($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});var K_=Sp(),Pi=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=K_.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};$i.default=Pi});var Ft=k(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.statSync=kt.stat=kt.Settings=void 0;var Tp=Cp(),z_=Ap(),Di=Rp();kt.Settings=Di.default;function X_(e,t,r){if(typeof t=="function"){Tp.read(e,Ni(),t);return}Tp.read(e,Ni(t),r)}kt.stat=X_;function J_(e,t){let r=Ni(t);return z_.read(e,r)}kt.statSync=J_;function Ni(e={}){return e instanceof Di.default?e:new Di.default(e)}});var $p=k((DS,Pp)=>{var Op;Pp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Op||(Op=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Np=k((NS,Dp)=>{Dp.exports=Z_;var Q_=$p();function Z_(e,t){let r,n,o,i=!0;Array.isArray(e)?(r=[],n=e.length):(o=Object.keys(e),r={},n=o.length);function s(c){function u(){t&&t(c,r),t=null}i?Q_(u):u()}function a(c,u,l){r[c]=l,(--n===0||u)&&s(u)}n?o?o.forEach(function(c){e[c](function(u,l){a(c,u,l)})}):e.forEach(function(c,u){c(function(l,p){a(u,l,p)})}):s(null),i=!1}});var Li=k(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var bn=process.versions.node.split(".");if(bn[0]===void 0||bn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Lp=Number.parseInt(bn[0],10),eE=Number.parseInt(bn[1],10),Ip=10,tE=10,rE=Lp>Ip,nE=Lp===Ip&&eE>=tE;_n.IS_SUPPORT_READDIR_WITH_FILE_TYPES=rE||nE});var Fp=k(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.createDirentFromStats=void 0;var Ii=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function oE(e,t){return new Ii(e,t)}En.createDirentFromStats=oE});var Fi=k(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.fs=void 0;var iE=Fp();xn.fs=iE});var ji=k(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.joinPathSegments=void 0;function sE(e,t,r){return e.endsWith(r)?e+t:e+r+t}kn.joinPathSegments=sE});var Vp=k(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.readdir=wt.readdirWithFileTypes=wt.read=void 0;var aE=Ft(),jp=Np(),cE=Li(),Mp=Fi(),Bp=ji();function lE(e,t,r){if(!t.stats&&cE.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Hp(e,t,r);return}Gp(e,t,r)}wt.read=lE;function Hp(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,o)=>{if(n!==null){wn(r,n);return}let i=o.map(a=>({dirent:a,name:a.name,path:Bp.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Mi(r,i);return}let s=i.map(a=>uE(a,t));jp(s,(a,c)=>{if(a!==null){wn(r,a);return}Mi(r,c)})})}wt.readdirWithFileTypes=Hp;function uE(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,o)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=Mp.fs.createDirentFromStats(e.name,o),r(null,e)})}}function Gp(e,t,r){t.fs.readdir(e,(n,o)=>{if(n!==null){wn(r,n);return}let i=o.map(s=>{let a=Bp.joinPathSegments(e,s,t.pathSegmentSeparator);return c=>{aE.stat(a,t.fsStatSettings,(u,l)=>{if(u!==null){c(u);return}let p={name:s,path:a,dirent:Mp.fs.createDirentFromStats(s,l)};t.stats&&(p.stats=l),c(null,p)})}});jp(i,(s,a)=>{if(s!==null){wn(r,s);return}Mi(r,a)})})}wt.readdir=Gp;function wn(e,t){e(t)}function Mi(e,t){e(null,t)}});var Kp=k(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.readdir=Ct.readdirWithFileTypes=Ct.read=void 0;var pE=Ft(),dE=Li(),Up=Fi(),Wp=ji();function fE(e,t){return!t.stats&&dE.IS_SUPPORT_READDIR_WITH_FILE_TYPES?qp(e,t):Yp(e,t)}Ct.read=fE;function qp(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let o={dirent:n,name:n.name,path:Wp.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(o.path);o.dirent=Up.fs.createDirentFromStats(o.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return o})}Ct.readdirWithFileTypes=qp;function Yp(e,t){return t.fs.readdirSync(e).map(n=>{let o=Wp.joinPathSegments(e,n,t.pathSegmentSeparator),i=pE.statSync(o,t.fsStatSettings),s={name:n,path:o,dirent:Up.fs.createDirentFromStats(n,i)};return t.stats&&(s.stats=i),s})}Ct.readdir=Yp});var zp=k(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.createFileSystemAdapter=At.FILE_SYSTEM_ADAPTER=void 0;var rr=M("fs");At.FILE_SYSTEM_ADAPTER={lstat:rr.lstat,stat:rr.stat,lstatSync:rr.lstatSync,statSync:rr.statSync,readdir:rr.readdir,readdirSync:rr.readdirSync};function hE(e){return e===void 0?At.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},At.FILE_SYSTEM_ADAPTER),e)}At.createFileSystemAdapter=hE});var Xp=k(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});var mE=M("path"),gE=Ft(),yE=zp(),Bi=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=yE.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,mE.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new gE.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Hi.default=Bi});var Cn=k(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.Settings=St.scandirSync=St.scandir=void 0;var Jp=Vp(),vE=Kp(),Gi=Xp();St.Settings=Gi.default;function bE(e,t,r){if(typeof t=="function"){Jp.read(e,Vi(),t);return}Jp.read(e,Vi(t),r)}St.scandir=bE;function _E(e,t){let r=Vi(t);return vE.read(e,r)}St.scandirSync=_E;function Vi(e={}){return e instanceof Gi.default?e:new Gi.default(e)}});var Zp=k((US,Qp)=>{"use strict";function EE(e){var t=new e,r=t;function n(){var i=t;return i.next?t=i.next:(t=new e,r=t),i.next=null,i}function o(i){r.next=i,r=i}return{get:n,release:o}}Qp.exports=EE});var td=k((WS,Ui)=>{"use strict";var xE=Zp();function ed(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=xE(kE),o=null,i=null,s=0,a=null,c={push:m,drain:Ce,saturated:Ce,pause:l,paused:!1,get concurrency(){return r},set concurrency(O){if(!(O>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=O,!c.paused)for(;o&&s<r;)s++,x()},running:u,resume:y,idle:g,length:p,getQueue:d,unshift:E,empty:Ce,kill:S,killAndDrain:$,error:q,abort:oe};return c;function u(){return s}function l(){c.paused=!0}function p(){for(var O=o,L=0;O;)O=O.next,L++;return L}function d(){for(var O=o,L=[];O;)L.push(O.value),O=O.next;return L}function y(){if(c.paused){if(c.paused=!1,o===null){s++,x();return}for(;o&&s<r;)s++,x()}}function g(){return s===0&&c.length()===0}function m(O,L){var w=n.get();w.context=e,w.release=x,w.value=O,w.callback=L||Ce,w.errorHandler=a,s>=r||c.paused?i?(i.next=w,i=w):(o=w,i=w,c.saturated()):(s++,t.call(e,w.value,w.worked))}function E(O,L){var w=n.get();w.context=e,w.release=x,w.value=O,w.callback=L||Ce,w.errorHandler=a,s>=r||c.paused?o?(w.next=o,o=w):(o=w,i=w,c.saturated()):(s++,t.call(e,w.value,w.worked))}function x(O){O&&n.release(O);var L=o;L&&s<=r?c.paused?s--:(i===o&&(i=null),o=L.next,L.next=null,t.call(e,L.value,L.worked),i===null&&c.empty()):--s===0&&c.drain()}function S(){o=null,i=null,c.drain=Ce}function $(){o=null,i=null,c.drain(),c.drain=Ce}function oe(){var O=o;for(o=null,i=null;O;){var L=O.next,w=O.callback,F=O.errorHandler,ae=O.value,_=O.context;O.value=null,O.callback=Ce,O.errorHandler=null,F&&F(new Error("abort"),ae),w.call(_,new Error("abort")),O.release(O),O=L}c.drain=Ce}function q(O){a=O}}function Ce(){}function kE(){this.value=null,this.callback=Ce,this.next=null,this.release=Ce,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var o=e.callback,i=e.errorHandler,s=e.value;e.value=null,e.callback=Ce,e.errorHandler&&i(r,s),o.call(e.context,r,n),e.release(e)}}function wE(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,p){t.call(this,l).then(function(d){p(null,d)},p)}var o=ed(e,n,r),i=o.push,s=o.unshift;return o.push=a,o.unshift=c,o.drained=u,o;function a(l){var p=new Promise(function(d,y){i(l,function(g,m){if(g){y(g);return}d(m)})});return p.catch(Ce),p}function c(l){var p=new Promise(function(d,y){s(l,function(g,m){if(g){y(g);return}d(m)})});return p.catch(Ce),p}function u(){var l=new Promise(function(p){process.nextTick(function(){if(o.idle())p();else{var d=o.drain;o.drain=function(){typeof d=="function"&&d(),p(),o.drain=d}}})});return l}}Ui.exports=ed;Ui.exports.promise=wE});var An=k(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.joinPathSegments=Ze.replacePathSegmentSeparator=Ze.isAppliedFilter=Ze.isFatalError=void 0;function CE(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ze.isFatalError=CE;function AE(e,t){return e===null||e(t)}Ze.isAppliedFilter=AE;function SE(e,t){return e.split(/[/\\]/).join(t)}Ze.replacePathSegmentSeparator=SE;function RE(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ze.joinPathSegments=RE});var Yi=k(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var TE=An(),Wi=class{constructor(t,r){this._root=t,this._settings=r,this._root=TE.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};qi.default=Wi});var Xi=k(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});var OE=M("events"),PE=Cn(),$E=td(),Sn=An(),DE=Yi(),Ki=class extends DE.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=PE.scandir,this._emitter=new OE.EventEmitter,this._queue=$E(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,o=>{o!==null&&this._handleError(o)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,o)=>{if(n!==null){r(n,void 0);return}for(let i of o)this._handleEntry(i,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Sn.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Sn.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Sn.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Sn.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};zi.default=Ki});var rd=k(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var NE=Xi(),Ji=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new NE.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{LE(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{IE(t,this._storage)}),this._reader.read()}};Qi.default=Ji;function LE(e,t){e(t)}function IE(e,t){e(null,t)}});var nd=k(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});var FE=M("stream"),jE=Xi(),Zi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new jE.default(this._root,this._settings),this._stream=new FE.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};es.default=Zi});var od=k(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});var ME=Cn(),Rn=An(),BE=Yi(),ts=class extends BE.default{constructor(){super(...arguments),this._scandir=ME.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let o of n)this._handleEntry(o,r)}catch(n){this._handleError(n)}}_handleError(t){if(Rn.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Rn.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Rn.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Rn.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};rs.default=ts});var id=k(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var HE=od(),ns=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new HE.default(this._root,this._settings)}read(){return this._reader.read()}};os.default=ns});var sd=k(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var GE=M("path"),VE=Cn(),is=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,GE.sep),this.fsScandirSettings=new VE.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};ss.default=is});var On=k(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.Settings=et.walkStream=et.walkSync=et.walk=void 0;var ad=rd(),UE=nd(),WE=id(),as=sd();et.Settings=as.default;function qE(e,t,r){if(typeof t=="function"){new ad.default(e,Tn()).read(t);return}new ad.default(e,Tn(t)).read(r)}et.walk=qE;function YE(e,t){let r=Tn(t);return new WE.default(e,r).read()}et.walkSync=YE;function KE(e,t){let r=Tn(t);return new UE.default(e,r).read()}et.walkStream=KE;function Tn(e={}){return e instanceof as.default?e:new as.default(e)}});var Pn=k(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var zE=M("path"),XE=Ft(),cd=at(),cs=class{constructor(t){this._settings=t,this._fsStatSettings=new XE.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return zE.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:cd.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!cd.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};ls.default=cs});var ds=k(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var JE=M("stream"),QE=Ft(),ZE=On(),ex=Pn(),us=class extends ex.default{constructor(){super(...arguments),this._walkStream=ZE.walkStream,this._stat=QE.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),o=new JE.PassThrough({objectMode:!0});o._write=(i,s,a)=>this._getEntry(n[i],t[i],r).then(c=>{c!==null&&r.entryFilter(c)&&o.push(c),i===n.length-1&&o.end(),a()}).catch(a);for(let i=0;i<n.length;i++)o.write(i);return o}_getEntry(t,r,n){return this._getStat(t).then(o=>this._makeEntry(o,r)).catch(o=>{if(n.errorFilter(o))return null;throw o})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(o,i)=>o===null?r(i):n(o))})}};ps.default=us});var ld=k(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});var tx=On(),rx=Pn(),nx=ds(),fs=class extends rx.default{constructor(){super(...arguments),this._walkAsync=tx.walk,this._readerStream=new nx.default(this._settings)}dynamic(t,r){return new Promise((n,o)=>{this._walkAsync(t,r,(i,s)=>{i===null?n(s):o(i)})})}async static(t,r){let n=[],o=this._readerStream.static(t,r);return new Promise((i,s)=>{o.once("error",s),o.on("data",a=>n.push(a)),o.once("end",()=>i(n))})}};hs.default=fs});var ud=k(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});var Or=at(),ms=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return Or.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Or.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Or.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Or.array.splitWhen(t,r=>r.dynamic&&Or.pattern.hasGlobStar(r.pattern))}};gs.default=ms});var pd=k(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var ox=ud(),ys=class extends ox.default{match(t){let r=t.split("/"),n=r.length,o=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of o){let s=i.sections[0];if(!i.complete&&n>s.length||r.every((c,u)=>{let l=i.segments[u];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};vs.default=ys});var dd=k(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var $n=at(),ix=pd(),bs=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let o=this._getMatcher(r),i=this._getNegativePatternsRe(n);return s=>this._filter(t,s,o,i)}_getMatcher(t){return new ix.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter($n.pattern.isAffectDepthOfReadingPattern);return $n.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,o){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=$n.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,o)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let o=t.split("/").length;return n-o}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!$n.pattern.matchAny(t,r)}};_s.default=bs});var fd=k(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});var Rt=at(),Es=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let[n,o]=Rt.pattern.partitionAbsoluteAndRelative(r),i={positive:{all:Rt.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:Rt.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Rt.pattern.convertPatternsToRe(o,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return s=>this._filter(s,i)}_filter(t,r){let n=Rt.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let o=this._isMatchToPatternsSet(n,r,t.dirent.isDirectory());return this._settings.unique&&o&&this._createIndexRecord(n),o}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isMatchToPatternsSet(t,r,n){return!(!this._isMatchToPatterns(t,r.positive.all,n)||this._isMatchToPatterns(t,r.negative.relative,n)||this._isMatchToAbsoluteNegative(t,r.negative.absolute,n))}_isMatchToAbsoluteNegative(t,r,n){if(r.length===0)return!1;let o=Rt.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(o,r,n)}_isMatchToPatterns(t,r,n){if(r.length===0)return!1;let o=Rt.pattern.matchAny(t,r);return!o&&n?Rt.pattern.matchAny(t+"/",r):o}};xs.default=Es});var hd=k(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});var sx=at(),ks=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return sx.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};ws.default=ks});var gd=k(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var md=at(),Cs=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=md.path.makeAbsolute(this._settings.cwd,r),r=md.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};As.default=Cs});var Dn=k(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var ax=M("path"),cx=dd(),lx=fd(),ux=hd(),px=gd(),Ss=class{constructor(t){this._settings=t,this.errorFilter=new ux.default(this._settings),this.entryFilter=new lx.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new cx.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new px.default(this._settings)}_getRootDirectory(t){return ax.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Rs.default=Ss});var yd=k(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var dx=ld(),fx=Dn(),Ts=class extends fx.default{constructor(){super(...arguments),this._reader=new dx.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(i=>n.transform(i))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Os.default=Ts});var vd=k($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var hx=M("stream"),mx=ds(),gx=Dn(),Ps=class extends gx.default{constructor(){super(...arguments),this._reader=new mx.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),o=this.api(r,t,n),i=new hx.Readable({objectMode:!0,read:()=>{}});return o.once("error",s=>i.emit("error",s)).on("data",s=>i.emit("data",n.transform(s))).once("end",()=>i.emit("end")),i.once("close",()=>o.destroy()),i}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};$s.default=Ps});var bd=k(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var yx=Ft(),vx=On(),bx=Pn(),Ds=class extends bx.default{constructor(){super(...arguments),this._walkSync=vx.walkSync,this._statSync=yx.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let o of t){let i=this._getFullEntryPath(o),s=this._getEntry(i,o,r);s===null||!r.entryFilter(s)||n.push(s)}return n}_getEntry(t,r,n){try{let o=this._getStat(t);return this._makeEntry(o,r)}catch(o){if(n.errorFilter(o))return null;throw o}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Ns.default=Ds});var _d=k(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});var _x=bd(),Ex=Dn(),Ls=class extends Ex.default{constructor(){super(...arguments),this._reader=new _x.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Is.default=Ls});var Ed=k(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var nr=M("fs"),xx=M("os"),kx=Math.max(xx.cpus().length,1);or.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:nr.lstat,lstatSync:nr.lstatSync,stat:nr.stat,statSync:nr.statSync,readdir:nr.readdir,readdirSync:nr.readdirSync};var Fs=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,kx),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},or.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};or.default=Fs});var Nn=k((gR,kd)=>{"use strict";var xd=kp(),wx=yd(),Cx=vd(),Ax=_d(),js=Ed(),Ne=at();async function Ms(e,t){He(e);let r=Bs(e,wx.default,t),n=await Promise.all(r);return Ne.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(u,l){He(u);let p=Bs(u,Ax.default,l);return Ne.array.flatten(p)}e.sync=t;function r(u,l){He(u);let p=Bs(u,Cx.default,l);return Ne.stream.merge(p)}e.stream=r;function n(u,l){He(u);let p=[].concat(u),d=new js.default(l);return xd.generate(p,d)}e.generateTasks=n;function o(u,l){He(u);let p=new js.default(l);return Ne.pattern.isDynamicPattern(u,p)}e.isDynamicPattern=o;function i(u){return He(u),Ne.path.escape(u)}e.escapePath=i;function s(u){return He(u),Ne.path.convertPathToPattern(u)}e.convertPathToPattern=s;let a;(function(u){function l(d){return He(d),Ne.path.escapePosixPath(d)}u.escapePath=l;function p(d){return He(d),Ne.path.convertPosixPathToPattern(d)}u.convertPathToPattern=p})(a=e.posix||(e.posix={}));let c;(function(u){function l(d){return He(d),Ne.path.escapeWindowsPath(d)}u.escapePath=l;function p(d){return He(d),Ne.path.convertWindowsPathToPattern(d)}u.convertPathToPattern=p})(c=e.win32||(e.win32={}))})(Ms||(Ms={}));function Bs(e,t,r){let n=[].concat(e),o=new js.default(r),i=xd.generate(n,o),s=new t(o);return i.map(s.read,s)}function He(e){if(![].concat(e).every(n=>Ne.string.isString(n)&&!Ne.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}kd.exports=Ms});var wd=vt(()=>{});import{promisify as Sx}from"node:util";import{execFile as Rx,execFileSync as _R}from"node:child_process";import{fileURLToPath as Tx}from"node:url";function Pr(e){return e instanceof URL?Tx(e):e}var xR,kR,Hs=vt(()=>{wd();xR=Sx(Rx);kR=10*1024*1024});var Dd=k((AR,Fn)=>{function Sd(e){return Array.isArray(e)?e:[e]}var Ox=void 0,Vs="",Cd=" ",Gs="\\",Px=/^\s+$/,$x=/(?:[^\\]|^)\\$/,Dx=/^\\!/,Nx=/^\\#/,Lx=/\r?\n/g,Ix=/^\.{0,2}\/|^\.{1,2}$/,Fx=/\/$/,ir="/",Rd="node-ignore";typeof Symbol<"u"&&(Rd=Symbol.for("node-ignore"));var Td=Rd,sr=(e,t,r)=>(Object.defineProperty(e,t,{value:r}),r),jx=/([0-z])-([0-z])/g,Od=()=>!1,Mx=e=>e.replace(jx,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:Vs),Bx=e=>{let{length:t}=e;return e.slice(0,t-t%2)},Hx=[[/^\uFEFF/,()=>Vs],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,r)=>t+(r.indexOf("\\")===0?Cd:Vs)],[/(\\+?)\s/g,(e,t)=>{let{length:r}=t;return t.slice(0,r-r%2)+Cd}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Gs],[/\\\\/g,()=>Gs],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,o)=>t===Gs?`\\[${r}${Bx(n)}${o}`:o==="]"&&n.length%2===0?`[${Mx(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`]],Gx=/(^|\\\/)?\\\*$/,$r="regex",Ln="checkRegex",Ad="_",Vx={[$r](e,t){return`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`},[Ln](e,t){return`${t?`${t}[^/]*`:"[^/]*"}(?=$|\\/$)`}},Ux=e=>Hx.reduce((t,[r,n])=>t.replace(r,n.bind(e)),e),In=e=>typeof e=="string",Wx=e=>e&&In(e)&&!Px.test(e)&&!$x.test(e)&&e.indexOf("#")!==0,qx=e=>e.split(Lx).filter(Boolean),Us=class{constructor(t,r,n,o,i,s){this.pattern=t,this.mark=r,this.negative=i,sr(this,"body",n),sr(this,"ignoreCase",o),sr(this,"regexPrefix",s)}get regex(){let t=Ad+$r;return this[t]?this[t]:this._make($r,t)}get checkRegex(){let t=Ad+Ln;return this[t]?this[t]:this._make(Ln,t)}_make(t,r){let n=this.regexPrefix.replace(Gx,Vx[t]),o=this.ignoreCase?new RegExp(n,"i"):new RegExp(n);return sr(this,r,o)}},Yx=({pattern:e,mark:t},r)=>{let n=!1,o=e;o.indexOf("!")===0&&(n=!0,o=o.substr(1)),o=o.replace(Dx,"!").replace(Nx,"#");let i=Ux(o);return new Us(e,t,o,r,n,i)},Ws=class{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){if(t&&t[Td]){this._rules=this._rules.concat(t._rules._rules),this._added=!0;return}if(In(t)&&(t={pattern:t}),Wx(t.pattern)){let r=Yx(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,Sd(In(t)?qx(t):t).forEach(this._add,this),this._added}test(t,r,n){let o=!1,i=!1,s;this._rules.forEach(c=>{let{negative:u}=c;i===u&&o!==i||u&&!o&&!i&&!r||!c[n].test(t)||(o=!u,i=u,s=u?Ox:c)});let a={ignored:o,unignored:i};return s&&(a.rule=s),a}},Kx=(e,t)=>{throw new t(e)},ct=(e,t,r)=>In(e)?e?ct.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),Pd=e=>Ix.test(e);ct.isNotRelative=Pd;ct.convert=e=>e;var qs=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){sr(this,Td,!0),this._rules=new Ws(r),this._strictPathCheck=!n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,r,n,o){let i=t&&ct.convert(t);return ct(i,t,this._strictPathCheck?Kx:Od),this._t(i,r,n,o)}checkIgnore(t){if(!Fx.test(t))return this.test(t);let r=t.split(ir).filter(Boolean);if(r.pop(),r.length){let n=this._t(r.join(ir)+ir,this._testCache,!0,r);if(n.ignored)return n}return this._rules.test(t,!1,Ln)}_t(t,r,n,o){if(t in r)return r[t];if(o||(o=t.split(ir).filter(Boolean)),o.pop(),!o.length)return r[t]=this._rules.test(t,n,$r);let i=this._t(o.join(ir)+ir,r,n,o);return r[t]=i.ignored?i:this._rules.test(t,n,$r)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return Sd(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},Ys=e=>new qs(e),zx=e=>ct(e&&ct.convert(e),e,Od),$d=()=>{let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");ct.convert=e;let t=/^[a-z]:\//i;ct.isNotRelative=r=>t.test(r)||Pd(r)};typeof process<"u"&&process.platform==="win32"&&$d();Fn.exports=Ys;Ys.default=Ys;Fn.exports.isPathValid=zx;sr(Fn.exports,Symbol.for("setupWindows"),$d)});import Ks from"node:path";function Dr(e,t){let r=Ks.relative(t,e);return!!(r&&r!==".."&&!r.startsWith(`..${Ks.sep}`)&&r!==Ks.resolve(e))}var zs=vt(()=>{});function jn(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}var Nd=vt(()=>{});import Ld from"node:fs";import Te from"node:path";import{promisify as Xx}from"node:util";var Xs,Ge,Jx,Qx,Js,Id,Ae,Mn,Qs,Zx,Bn,ek,tk,Fd,Zs,rk,nk,ea,ok,jd,ik,Md,ta,ra=vt(()=>{Xs=Vt(Nn(),1);zs();Ge=e=>e[0]==="!",Jx=e=>{if(!e.startsWith("/"))return e;let t=e.slice(1),r=t.indexOf("/"),n=r>0?t.slice(0,r):t;return r>0&&!Xs.default.isDynamicPattern(n)?e:t},Qx=(e,t)=>t===e,Js=e=>{if(!Te.isAbsolute(e))return;let t=[];for(let r of e.split("/"))if(r){if(Xs.default.isDynamicPattern(r))break;t.push(r)}return t.length===0?void 0:`/${t.join("/")}`},Id=(e,t=[],r=!1)=>{if(!e.startsWith("/"))return e;let n=Jx(e);if(n!==e)return n;if(r)return e.slice(1);let o=Js(e);return o!==void 0&&t.some(s=>Qx(s,o))?e:e.slice(1)},Ae=(e,t)=>{let r=e?.[t];return typeof r=="function"?r.bind(e):void 0},Mn=(e,t)=>{let r=e?.[t];if(typeof r=="function")return Xx(r.bind(e))},Qs=e=>{if(!e.endsWith("/"))return e;let t=e.replace(/\/+$/u,"");if(!t)return"/**";if(t==="**")return"**/**";let r=t.startsWith("/"),o=(r?t.slice(1):t).includes("/");return`${!r&&!o&&!t.startsWith("**/")?"**/":""}${t}/**`},Zx=e=>{let r=(Ge(e)?e.slice(1):e).match(/^(\.\.\/)+/);return r?r[0]:""},Bn=(e,t)=>{if(e.length===0||t.length===0)return t;let r=e.map(i=>Zx(i)),n=r[0];return!n||!r.every(i=>i===n)?t:t.map(i=>i.startsWith("**/")&&!i.startsWith("../")?n+i:i)},ek=e=>Ae(e?.promises,"stat")??Ae(Ld.promises,"stat"),tk=e=>Ae(e||Ld,"statSync"),Fd=e=>!!(e?.isDirectory?.()||e?.isFile?.()),Zs=(e,t)=>{let r=[],n=e;for(r.push(n);n!==t;){let o=Te.dirname(n);if(o===n)break;n=o,r.push(n)}return r},rk=async(e,t)=>{for(let r of e){let n=Te.join(r,".git");try{let o=await t(n);if(Fd(o))return r}catch{}}},nk=(e,t)=>{let r=tk(t);if(!r)return;let n=Te.resolve(e),{root:o}=Te.parse(n),i=Zs(n,o);for(let s of i){let a=Te.join(s,".git");try{let c=r(a);if(Fd(c))return s}catch{}}},ea=(e,t)=>{if(typeof e!="string")throw new TypeError("cwd must be a string");return nk(e,t)},ok=async(e,t)=>{let r=ek(t);if(!r)return ea(e,t);let n=Te.resolve(e),{root:o}=Te.parse(n),i=Zs(n,o);return rk(i,r)},jd=async(e,t)=>{if(typeof e!="string")throw new TypeError("cwd must be a string");return ok(e,t)},ik=(e,t)=>{let r=Te.resolve(e),n=Te.resolve(t);return n===r||Dr(n,r)},Md=(e,t)=>{if(e&&typeof e!="string")throw new TypeError("gitRoot must be a string or undefined");if(typeof t!="string")throw new TypeError("cwd must be a string");return e?ik(e,t)?[...Zs(Te.resolve(t),Te.resolve(e))].reverse().map(n=>Te.join(n,".gitignore")):[]:[]},ta=(e,t,r)=>{if(t)return[];let n=[],o=!1;for(let i of e){if(Ge(i)){o=!0;break}n.push(r(i))}return o?[]:n}});import sk from"node:process";import ak from"node:fs";import ck from"node:fs/promises";import Oe from"node:path";var na,Bd,lk,uk,Hn,pk,dk,Hd,Gd,fk,hk,mk,gk,Vd,yk,Ud,Gn,vk,bk,_k,Ek,Wd,qd,Yd,oa,ia,xk,Kd,zd,Xd,Jd,sa=vt(()=>{na=Vt(Nn(),1),Bd=Vt(Dd(),1);zs();Nd();Hs();ra();lk=["**/node_modules","**/flow-typed","**/coverage","**/.git"],uk={absolute:!0,dot:!0},Hn="**/.gitignore",pk=e=>Ae(e?.promises,"readFile")??Ae(ck,"readFile")??Mn(e,"readFile"),dk=e=>Ae(e,"readFileSync")??Ae(ak,"readFileSync"),Hd=(e,t)=>e&&(e.code==="ENOENT"||e.code==="ENOTDIR")?!0:!!t,Gd=(e,t)=>t instanceof Error?(t.message=`Failed to read ignore file at ${e}: ${t.message}`,t):new Error(`Failed to read ignore file at ${e}: ${String(t)}`),fk=(e,t,r)=>{try{let n=t(e,"utf8");return{filePath:e,content:n}}catch(n){if(Hd(n,r))return;throw Gd(e,n)}},hk=async(e,t,r)=>(await Promise.all(e.map(async o=>{try{let i=await t(o,"utf8");return{filePath:o,content:i}}catch(i){if(Hd(i,r))return;throw Gd(o,i)}}))).filter(Boolean),mk=(e,t,r)=>e.map(n=>fk(n,t,r)).filter(Boolean),gk=e=>{let t=new Set;return e.filter(r=>t.has(r)?!1:(t.add(r),!0))},Vd=(e,t,r)=>e(t,{...r,...uk}),yk=(e,t)=>e?Md(e,t.cwd):[],Ud=(e,t,r)=>gk([...yk(e,t),...r]),Gn=(e,t,r)=>{let n=r||t.cwd,o=xk(e,n);return{patterns:o,predicate:Ek(o,t.cwd,n),usingGitRoot:!!(r&&r!==t.cwd)}},vk=(e,t)=>{if(!t)return e;let r=Ge(e),n=r?e.slice(1):e,o=n.indexOf("/"),i=o!==-1&&o!==n.length-1,s;return i?n.startsWith("/")?s=Oe.posix.join(t,n.slice(1)):s=Oe.posix.join(t,n):s=Oe.posix.join(t,"**",n),r?"!"+s:s},bk=(e,t)=>{let r=jn(Oe.relative(t,Oe.dirname(e.filePath)));return e.content.split(/\r?\n/).filter(n=>n&&!n.startsWith("#")).map(n=>vk(n,r))},_k=(e,t)=>{if(Oe.isAbsolute(e)){let r=Oe.relative(t,e);return r&&!Dr(e,t)?void 0:r}if(e.startsWith("./"))return e.slice(2);if(!e.startsWith("../"))return e},Ek=(e,t,r)=>{let n=(0,Bd.default)().add(e),o=Oe.normalize(Oe.resolve(t)),i=Oe.normalize(Oe.resolve(r));return s=>{if(s=Pr(s),Oe.normalize(Oe.resolve(s))===o)return!1;let c=_k(s,i);return c===void 0?!1:c?n.ignores(jn(c)):!1}},Wd=(e={})=>{let t=e.ignore?Array.isArray(e.ignore)?e.ignore:[e.ignore]:[],r=Pr(e.cwd)??sk.cwd(),n=typeof e.deep=="number"?Math.max(0,e.deep)+1:Number.POSITIVE_INFINITY;return{cwd:r,suppressErrors:e.suppressErrors??!1,deep:n,ignore:[...t,...lk],followSymbolicLinks:e.followSymbolicLinks??!0,concurrency:e.concurrency,throwErrorOnBrokenSymbolicLink:e.throwErrorOnBrokenSymbolicLink??!1,fs:e.fs}},qd=async(e,t,r)=>{let n=Wd(t),o=await Vd(na.default,e,n),i=r?await jd(n.cwd,n.fs):void 0,s=Ud(i,n,o),a=pk(n.fs);return{files:await hk(s,a,n.suppressErrors),normalizedOptions:n,gitRoot:i}},Yd=(e,t,r)=>{let n=Wd(t),o=Vd(na.default.sync,e,n),i=r?ea(n.cwd,n.fs):void 0,s=Ud(i,n,o),a=dk(n.fs);return{files:mk(s,a,n.suppressErrors),normalizedOptions:n,gitRoot:i}},oa=async(e,t)=>{let{files:r,normalizedOptions:n,gitRoot:o}=await qd(e,t,!1);return Gn(r,n,o).predicate},ia=(e,t)=>{let{files:r,normalizedOptions:n,gitRoot:o}=Yd(e,t,!1);return Gn(r,n,o).predicate},xk=(e,t)=>e.flatMap(r=>bk(r,t)),Kd=async(e,t,r=!1)=>{let{files:n,normalizedOptions:o,gitRoot:i}=await qd(e,t,r);return Gn(n,o,i)},zd=(e,t,r=!1)=>{let{files:n,normalizedOptions:o,gitRoot:i}=Yd(e,t,r);return Gn(n,o,i)},Xd=e=>oa(Hn,e),Jd=e=>ia(Hn,e)});var df={};Mh(df,{convertPathToPattern:()=>Ik,generateGlobTasks:()=>Nk,generateGlobTasksSync:()=>Lk,globby:()=>pa,globbyStream:()=>$k,globbySync:()=>Pk,isDynamicPattern:()=>Dk,isGitIgnored:()=>Xd,isGitIgnoredSync:()=>Jd,isIgnoredByIgnoreFiles:()=>oa,isIgnoredByIgnoreFilesSync:()=>ia});import aa from"node:process";import ca from"node:fs";import lt from"node:path";import{Readable as kk}from"node:stream";var ar,wk,Ck,Ak,Sk,Rk,ef,tf,Vn,Qd,Zd,la,Tk,rf,nf,Wn,of,Ok,sf,Un,af,cf,lf,uf,pf,ua,pa,Pk,$k,Dk,Nk,Lk,Ik,da=vt(()=>{$l();ar=Vt(Nn(),1);Hs();sa();ra();sa();wk=e=>{if(e.some(t=>typeof t!="string"))throw new TypeError("Patterns must be a string or an array of strings")},Ck=e=>Ae(e?.promises,"stat")??Ae(ca.promises,"stat")??Mn(e,"stat"),Ak=e=>Ae(e,"statSync")??Ae(ca,"statSync"),Sk=async(e,t)=>{try{return(await Ck(t)(e)).isDirectory()}catch{return!1}},Rk=(e,t)=>{try{return Ak(t)(e).isDirectory()}catch{return!1}},ef=(e,t)=>{let r=Ge(e)?e.slice(1):e;return lt.isAbsolute(r)?r:lt.join(t,r)},tf=e=>{let t=e?.match(/\*\*\/([^/]+)$/);if(!t)return!1;let r=t[1],n=/[*?[\]{}]/.test(r),o=lt.extname(r)&&!r.startsWith(".");return!n&&!o},Vn=({directoryPath:e,files:t,extensions:r})=>{let n=r?.length>0?`.${r.length>1?`{${r.join(",")}}`:r[0]}`:"";return t?t.map(o=>lt.posix.join(e,`**/${lt.extname(o)?o:`${o}${n}`}`)):[lt.posix.join(e,`**${n?`/*${n}`:""}`)]},Qd=async(e,{cwd:t=aa.cwd(),files:r,extensions:n,fs:o}={})=>(await Promise.all(e.map(async s=>{let a=Ge(s)?s.slice(1):s;if(tf(a))return Vn({directoryPath:s,files:r,extensions:n});let c=ef(s,t);return await Sk(c,o)?Vn({directoryPath:s,files:r,extensions:n}):s}))).flat(),Zd=(e,{cwd:t=aa.cwd(),files:r,extensions:n,fs:o}={})=>e.flatMap(i=>{let s=Ge(i)?i.slice(1):i;if(tf(s))return Vn({directoryPath:i,files:r,extensions:n});let a=ef(i,t);return Rk(a,o)?Vn({directoryPath:i,files:r,extensions:n}):i}),la=e=>(e=[...new Set([e].flat())],wk(e),e),Tk=(e,t=ca)=>{if(!e||!t.statSync)return;let r;try{r=t.statSync(e)}catch{return}if(!r.isDirectory())throw new Error(`The \`cwd\` option must be a path to a directory, got: ${e}`)},rf=(e={})=>{let t=e.ignore?Array.isArray(e.ignore)?e.ignore:[e.ignore]:[];return e={...e,ignore:t,expandDirectories:e.expandDirectories??!0,cwd:Pr(e.cwd)},Tk(e.cwd,e.fs),e},nf=e=>async(t,r)=>e(la(t),rf(r)),Wn=e=>(t,r)=>e(la(t),rf(r)),of=e=>{let{ignoreFiles:t,gitignore:r}=e,n=t?la(t):[];return r&&n.push(Hn),n},Ok=async e=>{let t=of(e);if(t.length===0)return{options:e,filter:Un(!1,e.cwd)};let r=e.gitignore===!0,{patterns:n,predicate:o,usingGitRoot:i}=await Kd(t,e,r),s=ta(n,i,Qs);return{options:{...e,ignore:[...e.ignore,...s]},filter:Un(o,e.cwd)}},sf=e=>{let t=of(e);if(t.length===0)return{options:e,filter:Un(!1,e.cwd)};let r=e.gitignore===!0,{patterns:n,predicate:o,usingGitRoot:i}=zd(t,e,r),s=ta(n,i,Qs);return{options:{...e,ignore:[...e.ignore,...s]},filter:Un(o,e.cwd)}},Un=(e,t)=>{let r=new Set,n=t||aa.cwd(),o=new Map;return i=>{let s=lt.normalize(i.path??i);if(r.has(s))return!1;if(e){let a=o.get(s);if(a===void 0&&(a=lt.isAbsolute(s)?s:lt.resolve(n,s),o.set(s,a),o.size>1e4&&o.clear()),e(a))return!1}return r.add(s),!0}},af=(e,t)=>e.flat().filter(r=>t(r)),cf=(e,t)=>{if(e.length>0&&e.every(s=>Ge(s))){if(t.expandNegationOnlyPatterns===!1)return[];e=["**/*",...e]}let r=[],n=!1,o=[];for(let s of e){if(Ge(s)){o.push(`!${Id(s.slice(1),r,n)}`);continue}o.push(s);let a=Js(s);if(a===void 0){n=!0;continue}r.push(a)}e=o;let i=[];for(;e.length>0;){let s=e.findIndex(c=>Ge(c));if(s===-1){i.push({patterns:e,options:t});break}let a=e[s].slice(1);for(let c of i)c.options.ignore.push(a);s!==0&&i.push({patterns:e.slice(0,s),options:{...t,ignore:[...t.ignore,a]}}),e=e.slice(s+1)}return i},lf=e=>e.map(t=>({patterns:t.patterns,options:{...t.options,ignore:Bn(t.patterns,t.options.ignore)}})),uf=(e,t)=>({...t?{cwd:t}:{},...Array.isArray(e)?{files:e}:e}),pf=async(e,t)=>{let r=cf(e,t),{cwd:n,expandDirectories:o,fs:i}=t;if(!o)return lf(r);let s={...uf(o,n),fs:i};return Promise.all(r.map(async a=>{let{patterns:c,options:u}=a;return[c,u.ignore]=await Promise.all([Qd(c,s),Qd(u.ignore,{cwd:n,fs:i})]),u.ignore=Bn(c,u.ignore),{patterns:c,options:u}}))},ua=(e,t)=>{let r=cf(e,t),{cwd:n,expandDirectories:o,fs:i}=t;if(!o)return lf(r);let s={...uf(o,n),fs:i};return r.map(a=>{let{patterns:c,options:u}=a;return c=Zd(c,s),u.ignore=Zd(u.ignore,{cwd:n,fs:i}),u.ignore=Bn(c,u.ignore),{patterns:c,options:u}})},pa=nf(async(e,t)=>{let{options:r,filter:n}=await Ok(t),o=await pf(e,r),i=await Promise.all(o.map(s=>(0,ar.default)(s.patterns,s.options)));return af(i,n)}),Pk=Wn((e,t)=>{let{options:r,filter:n}=sf(t),i=ua(e,r).map(s=>ar.default.sync(s.patterns,s.options));return af(i,n)}),$k=Wn((e,t)=>{let{options:r,filter:n}=sf(t),i=ua(e,r).map(a=>ar.default.stream(a.patterns,a.options));return i.length===0?kk.from([]):ti(i).filter(a=>n(a))}),Dk=Wn((e,t)=>e.some(r=>ar.default.isDynamicPattern(r,t))),Nk=nf(pf),Lk=Wn(ua),{convertPathToPattern:Ik}=ar.default});var Ye=["frontend","backend"],ho=["workbench.frontend","workbench.backend"],Ur=[...Ye,...ho];var Ha=(e=0)=>t=>`\x1B[${t+e}m`,Ga=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Va=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,ee={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},HC=Object.keys(ee.modifier),Hh=Object.keys(ee.color),Gh=Object.keys(ee.bgColor),GC=[...Hh,...Gh];function Vh(){let e=new Map;for(let[t,r]of Object.entries(ee)){for(let[n,o]of Object.entries(r))ee[n]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},r[n]=ee[n],e.set(o[0],o[1]);Object.defineProperty(ee,t,{value:r,enumerable:!1})}return Object.defineProperty(ee,"codes",{value:e,enumerable:!1}),ee.color.close="\x1B[39m",ee.bgColor.close="\x1B[49m",ee.color.ansi=Ha(),ee.color.ansi256=Ga(),ee.color.ansi16m=Va(),ee.bgColor.ansi=Ha(10),ee.bgColor.ansi256=Ga(10),ee.bgColor.ansi16m=Va(10),Object.defineProperties(ee,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(i=>i+i).join(""));let o=Number.parseInt(n,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>ee.rgbToAnsi256(...ee.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,o;if(t>=232)r=((t-232)*10+8)/255,n=r,o=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,o=a%6/5}let i=Math.max(r,n,o)*2;if(i===0)return 30;let s=30+(Math.round(o)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>ee.ansi256ToAnsi(ee.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>ee.ansi256ToAnsi(ee.hexToAnsi256(t)),enumerable:!1}}),ee}var Uh=Vh(),Me=Uh;import mo from"node:process";import Wh from"node:os";import Ua from"node:tty";function Pe(e,t=globalThis.Deno?globalThis.Deno.args:mo.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}var{env:te}=mo,Wr;Pe("no-color")||Pe("no-colors")||Pe("color=false")||Pe("color=never")?Wr=0:(Pe("color")||Pe("colors")||Pe("color=true")||Pe("color=always"))&&(Wr=1);function qh(){if("FORCE_COLOR"in te)return te.FORCE_COLOR==="true"?1:te.FORCE_COLOR==="false"?0:te.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(te.FORCE_COLOR,10),3)}function Yh(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Kh(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=qh();n!==void 0&&(Wr=n);let o=r?Wr:n;if(o===0)return 0;if(r){if(Pe("color=16m")||Pe("color=full")||Pe("color=truecolor"))return 3;if(Pe("color=256"))return 2}if("TF_BUILD"in te&&"AGENT_NAME"in te)return 1;if(e&&!t&&o===void 0)return 0;let i=o||0;if(te.TERM==="dumb")return i;if(mo.platform==="win32"){let s=Wh.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in te)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in te)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in te)||te.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in te)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(te.TEAMCITY_VERSION)?1:0;if(te.COLORTERM==="truecolor"||te.TERM==="xterm-kitty"||te.TERM==="xterm-ghostty"||te.TERM==="wezterm")return 3;if("TERM_PROGRAM"in te){let s=Number.parseInt((te.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(te.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(te.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(te.TERM)||"COLORTERM"in te?1:i}function Wa(e,t={}){let r=Kh(e,{streamIsTTY:e&&e.isTTY,...t});return Yh(r)}var zh={stdout:Wa({isTTY:Ua.isatty(1)}),stderr:Wa({isTTY:Ua.isatty(2)})},qa=zh;function Ya(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let o=t.length,i=0,s="";do s+=e.slice(i,n)+t+r,i=n+o,n=e.indexOf(t,i);while(n!==-1);return s+=e.slice(i),s}function Ka(e,t,r,n){let o=0,i="";do{let s=e[n-1]==="\r";i+=e.slice(o,s?n-1:n)+t+(s?`\r
32
32
  `:`
33
33
  `)+r,o=n+1,n=e.indexOf(`
@@ -852,7 +852,7 @@ server {
852
852
  proxy_set_header Authorization $http_authorization;
853
853
  }
854
854
  }
855
- `;await H.writeFile(W.join(e,"Dockerfile.workbench-frontend"),u),await H.writeFile(W.join(e,"Dockerfile.workbench-backend"),l),await H.writeFile(W.join(e,"nginx.workbench.conf"),p)}},iC=async(e,t,r,n)=>{let o=e.services.frontend?.port||8081,i=e.services.workbench?.frontendPort||8083,s=e.env.production||{},a={services:{frontend:{build:{context:".",dockerfile:"Dockerfile.frontend"},ports:[`\${PORT:-${o}}:${o}`],depends_on:["backend"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","RACLETTE_DEBUG_MODE=${RACLETTE_DEBUG_MODE:-false}","RACLETTE_SERVER_BASE_URL=${RACLETTE_SERVER_BASE_URL:-/api}","RACLETTE_SOCKET_URL=${RACLETTE_SOCKET_URL:-}",...Object.entries(s).map(([u,l])=>`${u}=${l}`)],healthcheck:hr(o)},backend:{build:{context:".",dockerfile:"Dockerfile.backend"},depends_on:["database","cache"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","DISABLE_PLUGIN_LOGS=${RACLETTE_DISABLE_PLUGIN_LOGS:-false}","SERVER_TOKEN_SECRET=${SERVER_TOKEN_SECRET:-thisshouldbesetforproduction}","RACLETTE_FRONTEND_URLS=${RACLETTE_FRONTEND_URLS-http://localhost:8081",`MONGO_HOST=\${RACLETTE_MONGODB_HOST:-mongodb://database:27017/\${MONGO_DATABASE:-${e.services.mongodb?.databaseName||e.name}}}`,`CACHE_URL=\${RACLETTE_CACHE_URL:-valkey://cache:6379${e.services.cache?.db?`/${e.services.cache?.db}`:""}}`,...Object.entries(s).map(([u,l])=>`${u}=${l}`)],healthcheck:tt.backend},database:{image:"mongo:8.2",restart:"unless-stopped",volumes:["mongodb_data:/data/db","mongodb_config:/data/config"],networks:["app-network"],environment:["MONGO_INITDB_DATABASE=${MONGO_DATABASE:-"+(e.services.mongodb?.databaseName||e.name)+"}"],healthcheck:{...tt.mongodb}},cache:{image:"valkey/valkey:9.0-alpine",restart:"unless-stopped",volumes:["cache_data:/data"],networks:["app-network"],healthcheck:{...tt.cache}}},volumes:{mongodb_data:{},mongodb_config:{},cache_data:{}},networks:{"app-network":{driver:"bridge"}}},c=e.backend?.cache;if(c?.persistence){let u=c.RDB_OPTIONS||"3600 1 300 100 60 10000";switch(c.persistence){case"none":a.services.cache.command='valkey-server --save ""';break;case"aof":a.services.cache.command="valkey-server --appendonly yes";break;case"rdb":a.services.cache.command="valkey-server --save "+u;break;case"rdb+aof":a.services.cache.command="valkey-server --appendonly yes --save "+u;break}}if(n){let u=e.env.production||{};a.services["workbench-frontend"]={build:{context:".",dockerfile:"Dockerfile.workbench-frontend"},ports:[`\${WORKBENCH_PORT:-${i}}:${i}`],depends_on:["workbench-backend"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","RACLETTE_DEBUG_MODE=${RACLETTE_DEBUG_MODE:-false}","RACLETTE_SERVER_BASE_URL=${RACLETTE_SERVER_BASE_URL:-/api}","RACLETTE_SOCKET_URL=${RACLETTE_SOCKET_URL:-}",...Object.entries(u).map(([l,p])=>`${l}=${p}`)],healthcheck:hr(i)},a.services["workbench-backend"]={build:{context:".",dockerfile:"Dockerfile.workbench-backend"},depends_on:["database","cache"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","DISABLE_PLUGIN_LOGS=${RACLETTE_DISABLE_PLUGIN_LOGS:-false}","SERVER_TOKEN_SECRET=${SERVER_TOKEN_SECRET}","RACLETTE_FRONTEND_URLS=${RACLETTE_FRONTEND_URLS-http://localhost:8083}}",`MONGO_HOST=\${RACLETTE_MONGODB_HOST:-mongodb://database:27017/\${MONGO_DATABASE:-${e.services.mongodb?.databaseName||e.name}}}`,`CACHE_URL=\${RACLETTE_CACHE_URL:-valkey://cache:6379${e.services.cache?.db?`/${e.services.cache?.db}`:""}}`,...Object.entries(u).map(([l,p])=>`${l}=${p}`)],healthcheck:tt.backend}}await H.writeFile(r,ke.dump(a))},sC=async(e,t,r)=>{let n=Ia(e,r);await H.writeFile(W.join(t,".env.example"),n)},Ia=(e,t)=>{let r=e.services.frontend?.port||8081,n=e.services.workbench?.frontendPort||8083;return`# Production Environment Variables
855
+ `;await H.writeFile(W.join(e,"Dockerfile.workbench-frontend"),u),await H.writeFile(W.join(e,"Dockerfile.workbench-backend"),l),await H.writeFile(W.join(e,"nginx.workbench.conf"),p)}},iC=async(e,t,r,n)=>{let o=e.services.frontend?.port||8081,i=e.services.workbench?.frontendPort||8083,s=e.env.production||{},a={services:{frontend:{build:{context:".",dockerfile:"Dockerfile.frontend"},ports:[`\${PORT:-${o}}:${o}`],depends_on:["backend"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","RACLETTE_DEBUG_MODE=${RACLETTE_DEBUG_MODE:-false}","RACLETTE_SERVER_BASE_URL=${RACLETTE_SERVER_BASE_URL:-/api}","RACLETTE_SOCKET_URL=${RACLETTE_SOCKET_URL:-}",...Object.entries(s).map(([u,l])=>`${u}=${l}`)],healthcheck:hr(o)},backend:{build:{context:".",dockerfile:"Dockerfile.backend"},depends_on:["database","cache"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","DISABLE_PLUGIN_LOGS=${RACLETTE_DISABLE_PLUGIN_LOGS:-false}","SERVER_TOKEN_SECRET=${SERVER_TOKEN_SECRET:-thisshouldbesetforproduction}",`RACLETTE_FRONTEND_URLS=\${RACLETTE_FRONTEND_URLS:-http://localhost:${o}}`,`MONGO_HOST=\${RACLETTE_MONGODB_HOST:-mongodb://database:27017/\${MONGO_DATABASE:-${e.services.mongodb?.databaseName||e.name}}}`,`CACHE_URL=\${RACLETTE_CACHE_URL:-valkey://cache:6379${e.services.cache?.db?`/${e.services.cache?.db}`:""}}`,...Object.entries(s).map(([u,l])=>`${u}=${l}`)],healthcheck:tt.backend},database:{image:"mongo:8.2",restart:"unless-stopped",volumes:["mongodb_data:/data/db","mongodb_config:/data/config"],networks:["app-network"],environment:["MONGO_INITDB_DATABASE=${MONGO_DATABASE:-"+(e.services.mongodb?.databaseName||e.name)+"}"],healthcheck:{...tt.mongodb}},cache:{image:"valkey/valkey:9.0-alpine",restart:"unless-stopped",volumes:["cache_data:/data"],networks:["app-network"],healthcheck:{...tt.cache}}},volumes:{mongodb_data:{},mongodb_config:{},cache_data:{}},networks:{"app-network":{driver:"bridge"}}},c=e.backend?.cache;if(c?.persistence){let u=c.RDB_OPTIONS||"3600 1 300 100 60 10000";switch(c.persistence){case"none":a.services.cache.command='valkey-server --save ""';break;case"aof":a.services.cache.command="valkey-server --appendonly yes";break;case"rdb":a.services.cache.command="valkey-server --save "+u;break;case"rdb+aof":a.services.cache.command="valkey-server --appendonly yes --save "+u;break}}if(n){let u=e.env.production||{};a.services["workbench-frontend"]={build:{context:".",dockerfile:"Dockerfile.workbench-frontend"},ports:[`\${WORKBENCH_PORT:-${i}}:${i}`],depends_on:["workbench-backend"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","RACLETTE_DEBUG_MODE=${RACLETTE_DEBUG_MODE:-false}","RACLETTE_SERVER_BASE_URL=${RACLETTE_SERVER_BASE_URL:-/api}","RACLETTE_SOCKET_URL=${RACLETTE_SOCKET_URL:-}",...Object.entries(u).map(([l,p])=>`${l}=${p}`)],healthcheck:hr(i)},a.services["workbench-backend"]={build:{context:".",dockerfile:"Dockerfile.workbench-backend"},depends_on:["database","cache"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","DISABLE_PLUGIN_LOGS=${RACLETTE_DISABLE_PLUGIN_LOGS:-false}","SERVER_TOKEN_SECRET=${SERVER_TOKEN_SECRET}",`RACLETTE_FRONTEND_URLS=\${RACLETTE_FRONTEND_URLS:-http://localhost:${i}}`,`MONGO_HOST=\${RACLETTE_MONGODB_HOST:-mongodb://database:27017/\${MONGO_DATABASE:-${e.services.mongodb?.databaseName||e.name}}}`,`CACHE_URL=\${RACLETTE_CACHE_URL:-valkey://cache:6379${e.services.cache?.db?`/${e.services.cache?.db}`:""}}`,...Object.entries(u).map(([l,p])=>`${l}=${p}`)],healthcheck:tt.backend}}await H.writeFile(r,ke.dump(a))},sC=async(e,t,r)=>{let n=Ia(e,r);await H.writeFile(W.join(t,".env.example"),n)},Ia=(e,t)=>{let r=e.services.frontend?.port||8081,n=e.services.workbench?.frontendPort||8083;return`# Production Environment Variables
856
856
  # Copy this file to .env and fill in your values
857
857
 
858
858
  # Required - Generate a secure random string for this
@@ -1359,7 +1359,7 @@ docker compose down -v
1359
1359
  - **502 errors:** Check backend logs with \`docker compose logs backend\`
1360
1360
  - **Database connection:** Verify MongoDB is healthy with \`docker compose ps\`
1361
1361
  - **Image pull errors:** Check registry access and IMAGE_TAG value
1362
- `},Ah=(e,t,r,n)=>{let o=["frontend","backend"],i=e.services.workbench?.enabled||!1;return i&&o.push("workbench-frontend","workbench-backend"),{names:o.map(a=>{let c=`${t}/${a}`;return`${n?`${n}${c}`:c}:${r}`}),hasWorkbench:i}},OC=async(e,t,r,n)=>{console.log(h.blue("\u{1F4C1} Generating deployment files..."));let o=ft.join(r,"deploy-guide");await ht.ensureDir(o);let i=ft.join(o,"docker-compose.yml");await Sh(e,t,i,"latest",n);let s=ft.join(o,"docker-compose.override.yml.example");await $C(e,s);let a=ft.join(o,".env.example");await DC(e,a,t.hasWorkbench);let c=ft.join(o,"README.md");await NC(e,t,c,n);let u=ft.join(o,"DEPLOY.md");return await LC(e,t,u,n),console.log(h.green("\u2705 Deployment files generated")),console.log(h.gray(` \u{1F4C1} Files created in: ${o}`)),{outputPath:o,mode:"files",deployGuideFile:u,additionalFiles:[i,s,a,c]}},PC=async(e,t,r,n)=>{console.log(h.blue("\u{1F4CB} Generating embedded deployment guide..."));let o=ft.join(r,"DEPLOY.md");return await IC(e,t,o,n),console.log(h.green("\u2705 Deployment guide generated")),console.log(h.gray(` \u{1F4C4} Guide: ${o}`)),{outputPath:r,mode:"embedded",deployGuideFile:o}},Sh=async(e,t,r,n,o)=>{let i=e.services.frontend?.port||8081,s=e.services.workbench?.frontendPort||8083,a=u=>{let d=u.split(":")[0].replace(o,"");return o?`${o}${d}:\${IMAGE_TAG:-${n}}`:`\${DOCKER_REGISTRY:-}${d}:\${IMAGE_TAG:-${n}}`},c={name:e.name,services:{frontend:{image:a(t.names[0]),ports:[`\${FRONTEND_PORT:-${i}}:${i}`],depends_on:["backend"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","RACLETTE_DEBUG_MODE=${RACLETTE_DEBUG_MODE:-false}","RACLETTE_SERVER_BASE_URL=${RACLETTE_SERVER_BASE_URL:-/api}","RACLETTE_SOCKET_URL=${RACLETTE_SOCKET_URL:-}"],healthcheck:hr(i)},backend:{image:a(t.names[1]),depends_on:["database","cache"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","SERVER_TOKEN_SECRET=${SERVER_TOKEN_SECRET}","RACLETTE_FRONTEND_URLS=${RACLETTE_FRONTEND_URLS-http://localhost:8081",`MONGO_HOST=\${RACLETTE_MONGODB_HOST:-mongodb://database:27017/\${MONGO_DATABASE:-${e.name}}}`,"CACHE_URL=${RACLETTE_CACHE_URL:-valkey://cache:6379}"],healthcheck:tt.backend},database:{image:"mongo:8.2",restart:"unless-stopped",volumes:["mongodb_data:/data/db"],networks:["app-network"],environment:[`MONGO_INITDB_DATABASE=\${MONGO_DATABASE:-${e.name}}`],healthcheck:tt.mongodb},cache:{image:"valkey/valkey:9.0-alpine",restart:"unless-stopped",volumes:["cache_data:/data"],networks:["app-network"],healthcheck:tt.cache}},volumes:{mongodb_data:{},cache_data:{}},networks:{"app-network":{driver:"bridge"}}};t.hasWorkbench&&t.names.length>=4&&(c.services["workbench-frontend"]={image:a(t.names[2]),ports:[`\${WORKBENCH_FRONTEND_PORT:-${s}}:${s}`],depends_on:["workbench-backend"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","RACLETTE_DEBUG_MODE=${RACLETTE_DEBUG_MODE:-false}","RACLETTE_SERVER_BASE_URL=${RACLETTE_SERVER_BASE_URL:-/api}","RACLETTE_SOCKET_URL=${RACLETTE_SOCKET_URL:-}"],healthcheck:hr(s)},c.services["workbench-backend"]={image:a(t.names[3]),depends_on:["database","cache"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","PORT=3000","SERVER_TOKEN_SECRET=${SERVER_TOKEN_SECRET}","RACLETTE_FRONTEND_URLS=${RACLETTE_FRONTEND_URLS-http://localhost:8083",`MONGO_HOST=\${RACLETTE_MONGODB_HOST:-mongodb://database:27017/\${MONGO_DATABASE:-${e.name}}}`,"CACHE_URL=${RACLETTE_CACHE_URL:-valkey://cache:6379}"],healthcheck:tt.backend}),await ht.writeFile(r,ke.dump(c))},$C=async(e,t)=>{let r=Ba(),n=r.filter(s=>s.service==="frontend"),o=r.filter(s=>s.service==="backend"),i=`# docker-compose.override.yml
1362
+ `},Ah=(e,t,r,n)=>{let o=["frontend","backend"],i=e.services.workbench?.enabled||!1;return i&&o.push("workbench-frontend","workbench-backend"),{names:o.map(a=>{let c=`${t}/${a}`;return`${n?`${n}${c}`:c}:${r}`}),hasWorkbench:i}},OC=async(e,t,r,n)=>{console.log(h.blue("\u{1F4C1} Generating deployment files..."));let o=ft.join(r,"deploy-guide");await ht.ensureDir(o);let i=ft.join(o,"docker-compose.yml");await Sh(e,t,i,"latest",n);let s=ft.join(o,"docker-compose.override.yml.example");await $C(e,s);let a=ft.join(o,".env.example");await DC(e,a,t.hasWorkbench);let c=ft.join(o,"README.md");await NC(e,t,c,n);let u=ft.join(o,"DEPLOY.md");return await LC(e,t,u,n),console.log(h.green("\u2705 Deployment files generated")),console.log(h.gray(` \u{1F4C1} Files created in: ${o}`)),{outputPath:o,mode:"files",deployGuideFile:u,additionalFiles:[i,s,a,c]}},PC=async(e,t,r,n)=>{console.log(h.blue("\u{1F4CB} Generating embedded deployment guide..."));let o=ft.join(r,"DEPLOY.md");return await IC(e,t,o,n),console.log(h.green("\u2705 Deployment guide generated")),console.log(h.gray(` \u{1F4C4} Guide: ${o}`)),{outputPath:r,mode:"embedded",deployGuideFile:o}},Sh=async(e,t,r,n,o)=>{let i=e.services.frontend?.port||8081,s=e.services.workbench?.frontendPort||8083,a=u=>{let d=u.split(":")[0].replace(o,"");return o?`${o}${d}:\${IMAGE_TAG:-${n}}`:`\${DOCKER_REGISTRY:-}${d}:\${IMAGE_TAG:-${n}}`},c={name:e.name,services:{frontend:{image:a(t.names[0]),ports:[`\${FRONTEND_PORT:-${i}}:${i}`],depends_on:["backend"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","RACLETTE_DEBUG_MODE=${RACLETTE_DEBUG_MODE:-false}","RACLETTE_SERVER_BASE_URL=${RACLETTE_SERVER_BASE_URL:-/api}","RACLETTE_SOCKET_URL=${RACLETTE_SOCKET_URL:-}"],healthcheck:hr(i)},backend:{image:a(t.names[1]),depends_on:["database","cache"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","SERVER_TOKEN_SECRET=${SERVER_TOKEN_SECRET}",`RACLETTE_FRONTEND_URLS=\${RACLETTE_FRONTEND_URLS:-http://localhost:${i}}`,`MONGO_HOST=\${RACLETTE_MONGODB_HOST:-mongodb://database:27017/\${MONGO_DATABASE:-${e.name}}}`,"CACHE_URL=${RACLETTE_CACHE_URL:-valkey://cache:6379}"],healthcheck:tt.backend},database:{image:"mongo:8.2",restart:"unless-stopped",volumes:["mongodb_data:/data/db"],networks:["app-network"],environment:[`MONGO_INITDB_DATABASE=\${MONGO_DATABASE:-${e.name}}`],healthcheck:tt.mongodb},cache:{image:"valkey/valkey:9.0-alpine",restart:"unless-stopped",volumes:["cache_data:/data"],networks:["app-network"],healthcheck:tt.cache}},volumes:{mongodb_data:{},cache_data:{}},networks:{"app-network":{driver:"bridge"}}};t.hasWorkbench&&t.names.length>=4&&(c.services["workbench-frontend"]={image:a(t.names[2]),ports:[`\${WORKBENCH_FRONTEND_PORT:-${s}}:${s}`],depends_on:["workbench-backend"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","RACLETTE_DEBUG_MODE=${RACLETTE_DEBUG_MODE:-false}","RACLETTE_SERVER_BASE_URL=${RACLETTE_SERVER_BASE_URL:-/api}","RACLETTE_SOCKET_URL=${RACLETTE_SOCKET_URL:-}"],healthcheck:hr(s)},c.services["workbench-backend"]={image:a(t.names[3]),depends_on:["database","cache"],restart:"unless-stopped",networks:["app-network"],environment:["NODE_ENV=production","PORT=3000","SERVER_TOKEN_SECRET=${SERVER_TOKEN_SECRET}",`RACLETTE_FRONTEND_URLS=\${RACLETTE_FRONTEND_URLS:-http://localhost:${s}}`,`MONGO_HOST=\${RACLETTE_MONGODB_HOST:-mongodb://database:27017/\${MONGO_DATABASE:-${e.name}}}`,"CACHE_URL=${RACLETTE_CACHE_URL:-valkey://cache:6379}"],healthcheck:tt.backend}),await ht.writeFile(r,ke.dump(c))},$C=async(e,t)=>{let r=Ba(),n=r.filter(s=>s.service==="frontend"),o=r.filter(s=>s.service==="backend"),i=`# docker-compose.override.yml
1363
1363
  # Copy this file to docker-compose.override.yml and customize as needed
1364
1364
  # This file allows you to extend the main docker-compose.yml without modifying it
1365
1365