@visulima/packem 2.0.0-alpha.84 → 2.0.0-alpha.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/builder/typedoc/index.d.ts +1 -1
  3. package/dist/builder/typedoc/index.js +3 -3
  4. package/dist/cli/index.js +36 -36
  5. package/dist/config/index.d.ts +1 -1
  6. package/dist/config/index.js +1 -1
  7. package/dist/config/preset/preact.d.ts +1 -1
  8. package/dist/config/preset/preact.js +2 -2
  9. package/dist/config/preset/react.d.ts +1 -1
  10. package/dist/config/preset/react.js +1 -1
  11. package/dist/config/preset/solid.d.ts +1 -1
  12. package/dist/config/preset/solid.js +1 -1
  13. package/dist/config/preset/svelte.d.ts +1 -1
  14. package/dist/config/preset/svelte.js +1 -1
  15. package/dist/config/preset/vue.d.ts +1 -1
  16. package/dist/config/preset/vue.js +1 -1
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.js +36 -36
  19. package/dist/packem_shared/create-or-update-key-storage-CRDW-Kwa.js +28 -0
  20. package/dist/packem_shared/default-nqaAQAPN.js +1 -0
  21. package/dist/packem_shared/index-1y8wS5GH.js +244 -0
  22. package/dist/packem_shared/oxcTransformPlugin-Dwvbw2jE-BSBF_-9X.js +177 -0
  23. package/dist/packem_shared/{types.d-DOt53hsx.d.ts → types.d-ICL9GlqC.d.ts} +8 -1
  24. package/dist/packem_shared/utils-Bsoe7qJG.js +1 -0
  25. package/dist/rollup/plugins/oxc/oxc-transformer.js +1 -1
  26. package/package.json +9 -5
  27. package/dist/packem_shared/create-or-update-key-storage-Cp_qI2Lt.js +0 -28
  28. package/dist/packem_shared/default-Dbrx9zI9.js +0 -1
  29. package/dist/packem_shared/index-C1JIQmoZ.js +0 -244
  30. package/dist/packem_shared/oxcTransformPlugin-Dwvbw2jE-CIiF8y3S.js +0 -185
  31. package/dist/packem_shared/utils-nmTpa3um.js +0 -1
@@ -0,0 +1,28 @@
1
+ import{createRequire as F}from"node:module";import{H as ie,B as D,E as Oe,P as se,w as Nt,Z as zt,V as po,R as go,v as ho}from"./utils-Bsoe7qJG.js";const Wt=0,Te=1,rt=2,ke=3,Di=/^-{1,2}(no-color|no-colors|color=false|color=never)$/,Fi=/^-{1,2}(color=256)$/,Ii=/^-{1,2}(color=16m|color=full|color=truecolor)$/,Hi=/^-{1,2}(color|colors|color=true|color=always)$/,Gi=/-mono|dumb/i,Ui=/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/,Wi=/-256(color)?$/i,qi=/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i,Ki=e=>{const t=globalThis,r=t.Deno!=null,n=t.process??t.Deno??{},i=n.argv??n.args??[],s=w=>{const R=i.indexOf("--"),J=i.findIndex(L=>w.test(L));return J!==-1&&(R===-1||J<R)};let o={};try{o=r?n.env.toObject():n.env??{}}catch{}const a="FORCE_COLOR",u=a in o,f=o[a]??void 0,c=Object.prototype.toString.call(f).slice(8,-1)==="String",p=typeof f=="number";let d;if(f==="true"?d=Te:f==="false"?d=Wt:c&&f.length===0?d=Te:c&&f.length>0?d=Math.min(Number.parseInt(f,10),3):p&&(d=Math.min(f,3)),f!=="true"&&f!=="false"&&d!==void 0&&d<4)return d;if("NO_COLOR"in o||u&&d===0||s(Di))return Wt;if(s(Fi))return rt;if(s(Ii))return ke;if(s(Hi))return Te;const b=d??Wt;if("TF_BUILD"in o&&"AGENT_NAME"in o)return Te;if(o.TERM&&Gi.test(o.TERM))return b;if((r?t.Deno.build.os:n.platform)==="win32")try{const w=(r?t.Deno.osRelease():n.os.release()).split(".");return Number(w[0])>=10&&Number(w[2])>=10586?Number(w[2])>=14931?ke:rt:Te}catch{}if("CI"in o)return["GITEA_ACTIONS","CIRCLECI","GITHUB_WORKFLOW","GITHUB_ACTIONS"].some(w=>w in o)?ke:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(w=>w in o)||o.CI_NAME==="codeship"?Te:b;if(o.TERMINAL_EMULATOR?.includes("JediTerm"))return ke;if("TEAMCITY_VERSION"in o)return Ui.test(o.TEAMCITY_VERSION)?Te:Wt;if(o.COLORTERM==="truecolor"||o.TERM==="xterm-kitty"||o.TERM==="xterm-ghostty"||o.TERM==="wezterm")return ke;if("TERM_PROGRAM"in o){const w=Number.parseInt((o.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(o.TERM_PROGRAM==="iTerm.app")return w>=3?ke:rt;if(o.TERM_PROGRAM==="Apple_Terminal")return rt}if(Wi.test(o.TERM))return rt;let S;return r?S=t.Deno.stdout.isTerminal():"PM2_HOME"in o&&"pm_id"in o?S=!0:S=n[`std${e}`]&&"isTTY"in n[`std${e}`],S&&qi.test(o.TERM)||"COLORTERM"in o?Te:b},Xi=()=>Ki("out");var zi=Object.defineProperty,Fe=(e,t)=>zi(e,"name",{value:t,configurable:!0}),Qi=Object.defineProperty,Vi=Fe((e,t)=>Qi(e,"name",{value:t,configurable:!0}),"e$1");function Gr({onlyFirst:e=!1}={}){const t="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(t,e?void 0:"g")}Fe(Gr,"t$1");Vi(Gr,"ansiRegex");var Yi=Object.defineProperty,Ji=Fe((e,t)=>Yi(e,"name",{value:t,configurable:!0}),"n$1");const Be=Ji((e,t,r)=>t>e?t:Math.min(e,r),"clamp");var Zi=Object.defineProperty,es=Fe((e,t)=>Zi(e,"name",{value:t,configurable:!0}),"a$1");const ts=/([a-f\d]{3,6})/i,rs=es(e=>{let[,t]=ts.exec(e)??[];const r=t?t.length:0;if(r===3){const i=t.charAt(0),s=t.charAt(1),o=t.charAt(2);t=i+i+s+s+o+o}else if(r!==6)return[0,0,0];const n=Number.parseInt(t,16);return[n>>16&255,n>>8&255,n&255]},"convertHexToRgb");var ns=Object.defineProperty,Ur=Fe((e,t)=>ns(e,"name",{value:t,configurable:!0}),"e");const yo=Ur((e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/51)+6*Math.round(t/51)+Math.round(r/51),"rgbToAnsi256"),Cr=Ur(e=>{let t,r,n;if(e<8)return 30+e;if(e<16)return 90+(e-8);if(e>=232)t=r=n=((e-232)*10+8)/255;else{e-=16;const o=e%36;t=Math.floor(e/36)/5,r=Math.floor(o/6)/5,n=o%6/5}const i=Math.max(t,r,n)*2;if(i===0)return 30;const s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return i===2?s+60:s},"ansi256To16"),kn=Ur((e,t,r)=>Cr(yo(e,t,r)),"rgbToAnsi16");var os=Object.defineProperty,fe=Fe((e,t)=>os(e,"name",{value:t,configurable:!0}),"b");const Q=39,V=49,jn=10,Nr=Xi(),$o={close:"",open:""},x=Nr>0?(e,t)=>({close:`\x1B[${String(t)}m`,open:`\x1B[${String(e)}m`}):()=>$o,Cn=fe(e=>(t,r,n)=>e(yo(Number(t),Number(r),Number(n))),"createRgbFunction"),Nn=fe(e=>t=>{const[r,n,i]=rs(t);return e(r,n,i)},"createHexFunction");let Mr=fe(e=>x(`38;5;${String(e)}`,Q),"createAnsi256"),Br=fe(e=>x(`48;5;${String(e)}`,V),"createBgAnsi256"),Qt=fe((e,t,r)=>x(`38;2;${String(e)};${String(t)};${String(r)}`,Q),"createRgb"),Vt=fe((e,t,r)=>x(`48;2;${String(e)};${String(t)};${String(r)}`,V),"createBgRgb");Nr===1?(Mr=fe(e=>x(Cr(Number(e)),Q),"createAnsi256"),Br=fe(e=>x(Cr(Number(e))+jn,V),"createBgAnsi256"),Qt=fe((e,t,r)=>x(kn(Number(e),Number(t),Number(r)),Q),"createRgb"),Vt=fe((e,t,r)=>x(kn(Number(e),Number(t),Number(r))+jn,V),"createBgRgb")):Nr===2&&(Qt=Cn(Mr),Vt=Cn(Br));const Mn={bold:x(1,22),dim:x(2,22),hidden:x(8,28),inverse:x(7,27),italic:x(3,23),overline:x(53,55),reset:x(0,0),strike:x(9,29),strikethrough:x(9,29),underline:x(4,24),visible:$o},Bn={bgBlack:x(40,V),bgBlackBright:x(100,V),bgBlue:x(44,V),bgBlueBright:x(104,V),bgCyan:x(46,V),bgCyanBright:x(106,V),bgGray:x(100,V),bgGreen:x(42,V),bgGreenBright:x(102,V),bgGrey:x(100,V),bgMagenta:x(45,V),bgMagentaBright:x(105,V),bgRed:x(41,V),bgRedBright:x(101,V),bgWhite:x(47,V),bgWhiteBright:x(107,V),bgYellow:x(43,V),bgYellowBright:x(103,V),black:x(30,Q),blackBright:x(90,Q),blue:x(34,Q),blueBright:x(94,Q),cyan:x(36,Q),cyanBright:x(96,Q),gray:x(90,Q),green:x(32,Q),greenBright:x(92,Q),grey:x(90,Q),magenta:x(35,Q),magentaBright:x(95,Q),red:x(31,Q),redBright:x(91,Q),white:x(37,Q),whiteBright:x(97,Q),yellow:x(33,Q),yellowBright:x(93,Q)},Ln={bg:fe(e=>Br(Be(e,0,255)),"bg"),bgHex:Nn(Vt),bgRgb:fe((e,t,r)=>Vt(Be(e,0,255),Be(t,0,255),Be(r,0,255)),"bgRgb"),fg:fe(e=>Mr(Be(e,0,255)),"fg"),hex:Nn(Qt),rgb:fe((e,t,r)=>Qt(Be(e,0,255),Be(t,0,255),Be(r,0,255)),"rgb")};var is=Object.defineProperty,ss=Fe((e,t)=>is(e,"name",{value:t,configurable:!0}),"s");const as=ss((e,t,r)=>{if(t==="")return e;let n=e.indexOf(t);if(n<0)return e;const i=t.length;let s=0,o="";for(;~n;)o+=e.slice(s,n)+r,s=n+i,n=e.indexOf(t,s);return o+e.slice(s)},"stringReplaceAll");var us=Object.defineProperty,jt=Fe((e,t)=>us(e,"name",{value:t,configurable:!0}),"a");const De={};let Lr=null;const cs=jt((e,t,r)=>{if(!e)return"";let n;if(e.raw===void 0?n=String(e):n=String.raw(e,...t),n.includes("\x1B"))for(let i=r;i;i=i.props)n=as(n,i.close,i.open);return n.includes(`
2
+ `)&&(n=n.replace(/(\r*\n)/g,`${r.closeStack}$1${r.openStack}`)),r.openStack+n+r.closeStack},"wrapText"),Dr=jt(({props:e},{close:t,open:r})=>{const n=(e?.openStack??"")+r,i=t+(e?.closeStack??""),s=jt((o,...a)=>cs(o,a,s.props),"style");return Object.setPrototypeOf(s,Lr),s.props={close:t,closeStack:i,open:r,openStack:n,props:e},s.open=n,s.close=i,s},"createStyle"),ls=jt(function(){const e=jt(t=>String(t),"self");e.strip=t=>t.replaceAll(Gr(),"");for(const t in Bn)De[t]={get(){const r=Dr(this,Bn[t]);return Object.defineProperty(this,t,{value:r}),r}};for(const t in Mn)De[t]={get(){const r=Dr(this,Mn[t]);return Object.defineProperty(this,t,{value:r}),r}};return Lr=Object.defineProperties({},De),Object.setPrototypeOf(e,Lr),e},"Colorize");for(const e in Ln)De[e]={get(){return(...t)=>Dr(this,Ln[e](...t))}};De.ansi256=De.fg;De.bgAnsi256=De.bg;const xe=new ls,Gg=xe.blue,Ug=xe.bold,Wg=xe.cyan,qg=xe.dim,Kg=xe.gray,Xg=xe.green,zg=xe.grey,Qg=xe.magenta,Vg=xe.red,Yg=xe.yellow,Ve=0,or=4,bo=Symbol("findUpStop"),Jg=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;var fs=Object.defineProperty,ps=(e,t)=>fs(e,"name",{value:t,configurable:!0}),gs=Object.defineProperty,hs=ps((e,t)=>gs(e,"name",{value:t,configurable:!0}),"n");const q=hs(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var ds=Object.defineProperty,ys=(e,t)=>ds(e,"name",{value:t,configurable:!0}),$s=Object.defineProperty,bs=ys((e,t)=>$s(e,"name",{value:t,configurable:!0}),"i");const Ae=bs(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var ms=Object.defineProperty,mo=(e,t)=>ms(e,"name",{value:t,configurable:!0});const vs=F(import.meta.url),nt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ws=mo(e=>{if(typeof nt<"u"&&nt.versions&&nt.versions.node){const[t,r]=nt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return nt.getBuiltinModule(e)}return vs(e)},"__cjs_getBuiltinModule"),{lstat:Dn,mkdir:Ss}=ws("node:fs/promises");var Es=Object.defineProperty,Os=mo((e,t)=>Es(e,"name",{value:t,configurable:!0}),"o");const Wr=Os(async e=>{q(e);try{const t=await Dn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Ae(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{await Ss(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=await Dn(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Ae(r))}'`,{cause:t})}},"ensureDir");var _s=Object.defineProperty,vo=(e,t)=>_s(e,"name",{value:t,configurable:!0});const As=F(import.meta.url),ot=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,xs=vo(e=>{if(typeof ot<"u"&&ot.versions&&ot.versions.node){const[t,r]=ot.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ot.getBuiltinModule(e)}return As(e)},"__cjs_getBuiltinModule"),{lstatSync:Fn,mkdirSync:Ps}=xs("node:fs");var Rs=Object.defineProperty,Ts=vo((e,t)=>Rs(e,"name",{value:t,configurable:!0}),"o");const qr=Ts(e=>{q(e);try{const t=Fn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Ae(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Ps(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=Fn(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Ae(r))}'`,{cause:t})}},"ensureDirSync");var ks=Object.defineProperty,wo=(e,t)=>ks(e,"name",{value:t,configurable:!0});const js=F(import.meta.url),it=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Cs=wo(e=>{if(typeof it<"u"&&it.versions&&it.versions.node){const[t,r]=it.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return it.getBuiltinModule(e)}return js(e)},"__cjs_getBuiltinModule"),{lstat:Ns,writeFile:Ms}=Cs("node:fs/promises");var Bs=Object.defineProperty,Ls=wo((e,t)=>Bs(e,"name",{value:t,configurable:!0}),"o");Ls(async e=>{q(e);try{const t=await Ns(e);if(!t.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(Ae(t))}'`)}catch(t){if(t.code==="ENOENT"){await Wr(ie(D(e))),await Ms(e,new Uint8Array);return}throw t}},"ensureFile");var Ds=Object.defineProperty,So=(e,t)=>Ds(e,"name",{value:t,configurable:!0});const Fs=F(import.meta.url),st=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Is=So(e=>{if(typeof st<"u"&&st.versions&&st.versions.node){const[t,r]=st.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return st.getBuiltinModule(e)}return Fs(e)},"__cjs_getBuiltinModule"),{lstatSync:Hs,writeFileSync:Gs}=Is("node:fs");var Us=Object.defineProperty,Ws=So((e,t)=>Us(e,"name",{value:t,configurable:!0}),"o");Ws(e=>{q(e);try{const t=Hs(e);if(!t.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(Ae(t))}'`)}catch(t){if(t.code==="ENOENT"){qr(ie(D(e))),Gs(e,new Uint8Array);return}throw t}},"ensureFileSync");var qs=Object.defineProperty,Ks=(e,t)=>qs(e,"name",{value:t,configurable:!0}),Xs=Object.defineProperty,zs=Ks((e,t)=>Xs(e,"name",{value:t,configurable:!0}),"d");const Ye=zs((e,t)=>!!t.ino&&!!t.dev&&t.ino===e.ino&&t.dev===e.dev,"isStatsIdentical");var Qs=Object.defineProperty,Eo=(e,t)=>Qs(e,"name",{value:t,configurable:!0});const Vs=F(import.meta.url),at=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ys=Eo(e=>{if(typeof at<"u"&&at.versions&&at.versions.node){const[t,r]=at.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return at.getBuiltinModule(e)}return Vs(e)},"__cjs_getBuiltinModule"),{lstat:In,link:Js}=Ys("node:fs/promises");var Zs=Object.defineProperty,ea=Eo((e,t)=>Zs(e,"name",{value:t,configurable:!0}),"i");ea(async(e,t)=>{q(e),q(t),e=Oe(D(e)),t=Oe(D(t));let r;try{r=await In(t)}catch{}let n;try{n=await In(e)}catch(i){const s=i;throw s.message=s.message.replace("lstat","ensureLink"),s}r&&Ye(n,r)||(await Wr(ie(t)),await Js(e,t))},"ensureLink");var ta=Object.defineProperty,Oo=(e,t)=>ta(e,"name",{value:t,configurable:!0});const ra=F(import.meta.url),ut=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,na=Oo(e=>{if(typeof ut<"u"&&ut.versions&&ut.versions.node){const[t,r]=ut.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ut.getBuiltinModule(e)}return ra(e)},"__cjs_getBuiltinModule"),{lstatSync:Hn,linkSync:oa}=na("node:fs");var ia=Object.defineProperty,sa=Oo((e,t)=>ia(e,"name",{value:t,configurable:!0}),"m");sa((e,t)=>{q(e),q(t),e=Oe(D(e)),t=Oe(D(t));let r;try{r=Hn(t)}catch{}let n;try{n=Hn(e)}catch(i){const s=i;throw s.message=s.message.replace("lstat","ensureLink"),s}r&&Ye(n,r)||(qr(ie(t)),oa(e,t))},"ensureLinkSync");var aa=Object.defineProperty,ua=(e,t)=>aa(e,"name",{value:t,configurable:!0}),ca=Object.defineProperty,la=ua((e,t)=>ca(e,"name",{value:t,configurable:!0}),"i");const _o=la((e,t)=>typeof e!="string"?e:e.startsWith("./")?se(e):typeof t=="string"?se(ie(t),e):new URL(e,t),"resolveSymlinkTarget");var fa=Object.defineProperty,Ao=(e,t)=>fa(e,"name",{value:t,configurable:!0}),pa=Object.defineProperty,ga=Ao((e,t)=>pa(e,"name",{value:t,configurable:!0}),"t");let Yt=class extends Error{static{Ao(this,"n")}static{ga(this,"AlreadyExistsError")}constructor(t){super(`EEXIST: ${t}`)}get code(){return"EEXIST"}set code(t){throw new Error("Cannot overwrite code EEXIST")}get name(){return"AlreadyExistsError"}set name(t){throw new Error("Cannot overwrite name of AlreadyExistsError")}};var ha=Object.defineProperty,xo=(e,t)=>ha(e,"name",{value:t,configurable:!0});const da=F(import.meta.url),ct=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ya=xo(e=>{if(typeof ct<"u"&&ct.versions&&ct.versions.node){const[t,r]=ct.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ct.getBuiltinModule(e)}return da(e)},"__cjs_getBuiltinModule"),{lstat:Sr,stat:qt,symlink:$a,readlink:ba}=ya("node:fs/promises");var ma=Object.defineProperty,va=xo((e,t)=>ma(e,"name",{value:t,configurable:!0}),"m");const wa=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);va(async(e,t,r)=>{q(e),q(t);const n=_o(e,t);t=Oe(D(t));try{if((await Sr(t)).isSymbolicLink()&&Ye(await qt(n),await qt(t))){const[a,u]=await Promise.all([qt(n),qt(t)]);if(Ye(a,u))return}}catch{}const i=await Sr(n),s=Ae(i);await Wr(ie(t));let o=r??"file";r||(wa?o="junction":o=s==="dir"?"dir":"file");try{await $a(Oe(D(n)),t,o)}catch(a){if(a.code!=="EEXIST")throw a;const u=await Sr(t);if(!u.isSymbolicLink())throw new Yt(`A ${String(Ae(u))} already exists at the path: ${t}`);const f=await ba(t),c=Oe(se(f));if(c!==n)throw new Yt(`A symlink targeting to an undesired path already exists: ${t} -> ${c}`)}},"ensureSymlink");var Sa=Object.defineProperty,Po=(e,t)=>Sa(e,"name",{value:t,configurable:!0});const Ea=F(import.meta.url),lt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Oa=Po(e=>{if(typeof lt<"u"&&lt.versions&&lt.versions.node){const[t,r]=lt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return lt.getBuiltinModule(e)}return Ea(e)},"__cjs_getBuiltinModule"),{lstatSync:Er,statSync:Kt,symlinkSync:_a,readlinkSync:Aa}=Oa("node:fs");var xa=Object.defineProperty,Pa=Po((e,t)=>xa(e,"name",{value:t,configurable:!0}),"p");const Ra=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);Pa((e,t,r)=>{q(e),q(t);const n=_o(e,t);t=Oe(D(t));try{if(Er(t).isSymbolicLink()&&Ye(Kt(n),Kt(t))){const a=Kt(n),u=Kt(t);if(Ye(a,u))return}}catch{}const i=Er(n),s=Ae(i);qr(ie(t));let o=r??"file";r||(Ra?o="junction":o=s==="dir"?"dir":"file");try{_a(Oe(D(n)),t,o)}catch(a){if(a.code!=="EEXIST")throw a;const u=Er(t);if(!u.isSymbolicLink())throw new Yt(`A ${String(Ae(u))} already exists at the path: ${t}`);const f=Aa(t),c=Oe(se(f));if(c!==n)throw new Yt(`A symlink targeting to an undesired path already exists: ${t} -> ${c}`)}},"ensureSymlinkSync");var Ta=Object.defineProperty,ka=(e,t)=>Ta(e,"name",{value:t,configurable:!0});F(import.meta.url);var ja=Object.defineProperty,Ro=ka((e,t)=>ja(e,"name",{value:t,configurable:!0}),"r");const To=/\r?\n/g,Ca=`
3
+ `,Gn=`\r
4
+ `;Ro(e=>{const t=e.match(To);if(!t||t.length===0)return null;const r=t.filter(i=>i===Gn).length,n=t.length-r;return r>n?Gn:Ca},"detect");Ro((e,t)=>e.replaceAll(To,t),"format");var Na=Object.defineProperty,ko=(e,t)=>Na(e,"name",{value:t,configurable:!0}),Ma=Object.defineProperty,Ba=ko((e,t)=>Ma(e,"name",{value:t,configurable:!0}),"t");let Jt=class extends Error{static{ko(this,"i")}static{Ba(this,"WalkError")}root;constructor(t,r){super(`${t instanceof Error?t.message:String(t)} for path "${r}"`),this.cause=t,this.root=r}get name(){return"WalkError"}set name(t){throw new Error("Cannot overwrite name of WalkError")}};var La=Object.defineProperty,jo=(e,t)=>La(e,"name",{value:t,configurable:!0}),Da=Object.defineProperty,Fa=jo((e,t)=>Da(e,"name",{value:t,configurable:!0}),"g");const Zt=Fa(e=>{const t=e.replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`).replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!(.*?)\]/g,"[^$1]");return new RegExp(`^${t}$`)},"globToRegExp");var Ia=Object.defineProperty,Ha=jo((e,t)=>Ia(e,"name",{value:t,configurable:!0}),"n");const Le=Ha((e,t,r,n)=>Array.isArray(t)&&t.length>0&&!t.some(i=>e.endsWith(i))||r&&!r.some(i=>i.test(e))?!1:!n?.some(i=>i.test(e)),"walkInclude");var Ga=Object.defineProperty,Kr=(e,t)=>Ga(e,"name",{value:t,configurable:!0});const Ua=F(import.meta.url),ft=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Wa=Kr(e=>{if(typeof ft<"u"&&ft.versions&&ft.versions.node){const[t,r]=ft.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ft.getBuiltinModule(e)}return Ua(e)},"__cjs_getBuiltinModule"),{readdir:qa,realpath:Ka,stat:Xa}=Wa("node:fs/promises");var za=Object.defineProperty,de=Kr((e,t)=>za(e,"name",{value:t,configurable:!0}),"r");const Qa=de(async e=>{const t=zt(e),r=po(t),n=await Xa(t);return{isDirectory:de(()=>n.isDirectory(),"isDirectory"),isFile:de(()=>n.isFile(),"isFile"),isSymbolicLink:de(()=>n.isSymbolicLink(),"isSymbolicLink"),name:r,path:t}},"_createWalkEntry");async function*ir(e,{extensions:t,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:i=!0,includeSymlinks:s=!0,match:o,maxDepth:a=Number.POSITIVE_INFINITY,skip:u}={}){if(q(e),a<0)return;const f=o?o.map(p=>typeof p=="string"?Zt(p):p):void 0,c=u?u.map(p=>typeof p=="string"?Zt(p):p):void 0;if(e=se(D(e)),n&&Le(e,t,f,c)&&(yield await Qa(e)),!(a<1||!Le(e,void 0,void 0,c)))try{const p=await qa(e,{withFileTypes:!0});for(const d of p){let b=Nt(e,d.name);if(d.isSymbolicLink())if(r)b=await Ka(b);else if(s&&Le(b,t,f,c)){yield{isDirectory:de(()=>d.isDirectory(),"isDirectory"),isFile:de(()=>d.isFile(),"isFile"),isSymbolicLink:de(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:b};continue}else continue;d.isDirectory()?yield*ir(b,{extensions:t,followSymlinks:r,includeDirs:n,includeFiles:i,includeSymlinks:s,match:f,maxDepth:a-1,skip:c}):d.isFile()&&i&&Le(b,t,f,c)&&(yield{isDirectory:de(()=>d.isDirectory(),"isDirectory"),isFile:de(()=>d.isFile(),"isFile"),isSymbolicLink:de(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:b})}}catch(p){throw p instanceof Jt?p:new Jt(p,e)}}Kr(ir,"g");de(ir,"walk");var Va=Object.defineProperty,Ya=(e,t)=>Va(e,"name",{value:t,configurable:!0}),Ja=Object.defineProperty,Za=Ya((e,t)=>Ja(e,"name",{value:t,configurable:!0}),"e");Za(async(e,t={})=>{Array.isArray(t.extensions)||(t.extensions=["js","mjs","cjs","ts"]);const r=[];for await(const n of ir(e,t))r.push(n.path);return r},"collect");var eu=Object.defineProperty,Xr=(e,t)=>eu(e,"name",{value:t,configurable:!0});const tu=F(import.meta.url),pt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ru=Xr(e=>{if(typeof pt<"u"&&pt.versions&&pt.versions.node){const[t,r]=pt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return pt.getBuiltinModule(e)}return tu(e)},"__cjs_getBuiltinModule"),{readdirSync:nu,realpathSync:ou,statSync:iu}=ru("node:fs");var su=Object.defineProperty,ye=Xr((e,t)=>su(e,"name",{value:t,configurable:!0}),"t");const au=ye(e=>{const t=zt(e),r=iu(t);return{isDirectory:ye(()=>r.isDirectory(),"isDirectory"),isFile:ye(()=>r.isFile(),"isFile"),isSymbolicLink:ye(()=>r.isSymbolicLink(),"isSymbolicLink"),name:po(t),path:t}},"_createWalkEntry");function*sr(e,{extensions:t,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:i=!0,includeSymlinks:s=!0,match:o,maxDepth:a=Number.POSITIVE_INFINITY,skip:u}={}){if(q(e),a<0)return;const f=o?o.map(p=>typeof p=="string"?Zt(p):p):void 0,c=u?u.map(p=>typeof p=="string"?Zt(p):p):void 0;if(e=se(D(e)),n&&Le(e,t,f,c)&&(yield au(e)),!(a<1||!Le(e,void 0,void 0,c)))try{const p=nu(e,{withFileTypes:!0});for(const d of p){let b=Nt(e,d.name);if(d.isSymbolicLink())if(r)b=ou(b);else if(s&&Le(b,t,f,c)){yield{isDirectory:ye(()=>d.isDirectory(),"isDirectory"),isFile:ye(()=>d.isFile(),"isFile"),isSymbolicLink:ye(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:zt(b)};continue}else continue;d.isDirectory()?yield*sr(b,{extensions:t,followSymlinks:r,includeDirs:n,includeFiles:i,includeSymlinks:s,match:f,maxDepth:a-1,skip:c}):d.isFile()&&i&&Le(b,t,f,c)&&(yield{isDirectory:ye(()=>d.isDirectory(),"isDirectory"),isFile:ye(()=>d.isFile(),"isFile"),isSymbolicLink:ye(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:zt(b)})}}catch(p){throw p instanceof Jt?p:new Jt(p,e)}}Xr(sr,"b");ye(sr,"walkSync");var uu=Object.defineProperty,cu=(e,t)=>uu(e,"name",{value:t,configurable:!0}),lu=Object.defineProperty,fu=cu((e,t)=>lu(e,"name",{value:t,configurable:!0}),"n");const th=fu((e,t={})=>{Array.isArray(t.extensions)||(t.extensions=["js","mjs","cjs","ts"]);const r=[];for(const n of sr(e,t))r.push(n.path);return r},"collectSync");var pu=Object.defineProperty,Co=(e,t)=>pu(e,"name",{value:t,configurable:!0});const gu=F(import.meta.url),gt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,No=Co(e=>{if(typeof gt<"u"&&gt.versions&&gt.versions.node){const[t,r]=gt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return gt.getBuiltinModule(e)}return gu(e)},"__cjs_getBuiltinModule"),{stat:hu,lstat:du}=No("node:fs/promises"),{fileURLToPath:yu}=No("node:url");var $u=Object.defineProperty,Un=Co((e,t)=>$u(e,"name",{value:t,configurable:!0}),"n");const rh=Un(async(e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=t.cwd?D(t.cwd):process.cwd();let n=se(r);const{root:i}=go(n),s=D(t.stopAt??i),o=se(n,s),a=t.type??"file",u=Un(async function(c){return typeof e=="function"?[await e(c)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const f=t.allowSymlinks?hu:du;for(;n&&n!==o&&n!==i;){const c=await u(n);for(let p of c){if(p===bo)return;if(p===void 0)continue;Buffer.isBuffer(p)?p=p.toString():p instanceof URL&&(p=yu(p));const d=ho(p)?p:se(n,p);try{const b=await f(d);if(a==="file"&&b.isFile()||a==="directory"&&b.isDirectory())return d}catch{}}n=ie(n)}},"findUp");var bu=Object.defineProperty,Mo=(e,t)=>bu(e,"name",{value:t,configurable:!0});const mu=F(import.meta.url),ht=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Bo=Mo(e=>{if(typeof ht<"u"&&ht.versions&&ht.versions.node){const[t,r]=ht.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ht.getBuiltinModule(e)}return mu(e)},"__cjs_getBuiltinModule"),{statSync:vu,lstatSync:wu}=Bo("node:fs"),{fileURLToPath:Su}=Bo("node:url");var Eu=Object.defineProperty,Wn=Mo((e,t)=>Eu(e,"name",{value:t,configurable:!0}),"o");const nh=Wn((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=t.cwd?D(t.cwd):process.cwd();let n=se(r);const{root:i}=go(n),s=D(t.stopAt??i),o=se(n,s),a=t.type??"file",u=Wn(function(c){return typeof e=="function"?[e(c)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const f=t.allowSymlinks?vu:wu;for(;n&&n!==o&&n!==i;){for(let c of u(n)){if(c===bo)return;if(c===void 0)continue;Buffer.isBuffer(c)?c=c.toString():c instanceof URL&&(c=Su(c));const p=ho(c)?c:se(n,c);try{const d=f(p);if(a==="file"&&d.isFile()||a==="directory"&&d.isDirectory())return p}catch{}}n=ie(n)}},"findUpSync");var Ou=Object.defineProperty,Ze=(e,t)=>Ou(e,"name",{value:t,configurable:!0}),_u=Object.defineProperty,Je=Ze((e,t)=>_u(e,"name",{value:t,configurable:!0}),"t");function Mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Ze(Mt,"getDefaultExportFromCjs");Je(Mt,"getDefaultExportFromCjs");function Lo(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Ze(Lo,"getDefaultExportFromNamespaceIfPresent");Je(Lo,"getDefaultExportFromNamespaceIfPresent");function Do(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}Ze(Do,"getDefaultExportFromNamespaceIfNotNamed");Je(Do,"getDefaultExportFromNamespaceIfNotNamed");function Fo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=Je(Ze(function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a"),"a");r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:Je(function(){return e[n]},"get")})}),r}Ze(Fo,"getAugmentedNamespace");Je(Fo,"getAugmentedNamespace");var Au=Object.defineProperty,$e=(e,t)=>Au(e,"name",{value:t,configurable:!0}),qn={},Or,Kn;function Bt(){if(Kn)return Or;Kn=1;const e="[^\\\\/]",t=Symbol("unignore"),r="\\.",n="\\+",i="\\?",s="\\/",o="(?=.)",a="[^/]",u=`(?:${s}|$)`,f=`(?:^|${s})`,c=`${r}{1,2}${u}`,p=`(?!${r})`,d=`(?!${f}${c})`,b=`(?!${r}{0,1}${u})`,S=`(?!${c})`,w=`[^.${s}]`,R=`${a}*?`,J="/",L={DOT_LITERAL:r,PLUS_LITERAL:n,QMARK_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:o,QMARK:a,END_ANCHOR:u,DOTS_SLASH:c,NO_DOT:p,NO_DOTS:d,NO_DOT_SLASH:b,NO_DOTS_SLASH:S,QMARK_NO_DOT:w,STAR:R,START_ANCHOR:f,SEP:J},U={...L,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${r}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[\\\\/])${r}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},$={__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"};return Or={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$,UNIGNORE:t,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(E){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${E.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(E){return E===!0?U:L}},Or}$e(Bt,"requireConstants");var Xn;function Lt(){return Xn||(Xn=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:i}=Bt();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>n.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(i,"\\$1"),e.toPosixSlashes=s=>s.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const s=navigator.platform.toLowerCase();return s==="win32"||s==="windows"}return process.platform?process.platform==="win32":!1},e.removeBackslashes=s=>s.replace(r,o=>o==="\\"?"":o),e.escapeLast=(s,o,a)=>{const u=s.lastIndexOf(o,a);return u===-1?s:s[u-1]==="\\"?e.escapeLast(s,o,u-1):`${s.slice(0,u)}\\${s.slice(u)}`},e.removePrefix=(s,o={})=>{let a=s;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},e.wrapOutput=(s,o={},a={})=>{const u=a.contains?"":"^",f=a.contains?"":"$";let c=`${u}(?:${s})${f}`;return o.negated===!0&&(c=`(?:^(?!${c}).*$)`),c},e.basename=(s,{windows:o}={})=>{const a=s.split(o?/[\\/]/:"/"),u=a[a.length-1];return u===""?a[a.length-2]:u}})(qn)),qn}$e(Lt,"requireUtils");var _r,zn;function Io(){if(zn)return _r;zn=1;var e=Object.defineProperty,t=$e(($,E)=>e($,"name",{value:E,configurable:!0}),"k");const r=Lt(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:o,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:b,CHAR_QUESTION_MARK:S,CHAR_RIGHT_CURLY_BRACE:w,CHAR_RIGHT_PARENTHESES:R,CHAR_RIGHT_SQUARE_BRACKET:J}=Bt(),L=t($=>$===f||$===s,"isPathSeparator"),U=t($=>{$.isPrefix!==!0&&($.depth=$.isGlobstar?1/0:1)},"depth");return _r=t(($,E)=>{const l=E||{},P=$.length-1,k=l.parts===!0||l.scanToEnd===!0,A=[],O=[],j=[];let te=$,ce=-1,Z=0,be=0,ae=!1,me=!1,K=!1,Pe=!1,Ge=!1,ve=!1,G=!1,we=!1,Ue=!1,ue=!1,oe=0,pe,C,B={value:"",depth:0,isGlob:!1};const y=t(()=>ce>=P,"eos"),le=t(()=>te.charCodeAt(ce+1),"peek"),ee=t(()=>(pe=C,te.charCodeAt(++ce)),"advance");for(;ce<P;){C=ee();let I;if(C===s){G=B.backslashes=!0,C=ee(),C===c&&(ve=!0);continue}if(ve===!0||C===c){for(oe++;y()!==!0&&(C=ee());){if(C===s){G=B.backslashes=!0,ee();continue}if(C===c){oe++;continue}if(ve!==!0&&C===a&&(C=ee())===a){if(ae=B.isBrace=!0,K=B.isGlob=!0,ue=!0,k===!0)continue;break}if(ve!==!0&&C===o){if(ae=B.isBrace=!0,K=B.isGlob=!0,ue=!0,k===!0)continue;break}if(C===w&&(oe--,oe===0)){ve=!1,ae=B.isBrace=!0,ue=!0;break}}if(k===!0)continue;break}if(C===f){if(A.push(ce),O.push(B),B={value:"",depth:0,isGlob:!1},ue===!0)continue;if(pe===a&&ce===Z+1){Z+=2;continue}be=ce+1;continue}if(l.noext!==!0&&(C===b||C===i||C===n||C===S||C===u)&&le()===p){if(K=B.isGlob=!0,Pe=B.isExtglob=!0,ue=!0,C===u&&ce===Z&&(Ue=!0),k===!0){for(;y()!==!0&&(C=ee());){if(C===s){G=B.backslashes=!0,C=ee();continue}if(C===R){K=B.isGlob=!0,ue=!0;break}}continue}break}if(C===n){if(pe===n&&(Ge=B.isGlobstar=!0),K=B.isGlob=!0,ue=!0,k===!0)continue;break}if(C===S){if(K=B.isGlob=!0,ue=!0,k===!0)continue;break}if(C===d){for(;y()!==!0&&(I=ee());){if(I===s){G=B.backslashes=!0,ee();continue}if(I===J){me=B.isBracket=!0,K=B.isGlob=!0,ue=!0;break}}if(k===!0)continue;break}if(l.nonegate!==!0&&C===u&&ce===Z){we=B.negated=!0,Z++;continue}if(l.noparen!==!0&&C===p){if(K=B.isGlob=!0,k===!0){for(;y()!==!0&&(C=ee());){if(C===p){G=B.backslashes=!0,C=ee();continue}if(C===R){ue=!0;break}}continue}break}if(K===!0){if(ue=!0,k===!0)continue;break}}l.noext===!0&&(Pe=!1,K=!1);let Y=te,g="",h="";Z>0&&(g=te.slice(0,Z),te=te.slice(Z),be-=Z),Y&&K===!0&&be>0?(Y=te.slice(0,be),h=te.slice(be)):K===!0?(Y="",h=te):Y=te,Y&&Y!==""&&Y!=="/"&&Y!==te&&L(Y.charCodeAt(Y.length-1))&&(Y=Y.slice(0,-1)),l.unescape===!0&&(h&&(h=r.removeBackslashes(h)),Y&&G===!0&&(Y=r.removeBackslashes(Y)));const he={prefix:g,input:$,start:Z,base:Y,glob:h,isBrace:ae,isBracket:me,isGlob:K,isExtglob:Pe,isGlobstar:Ge,negated:we,negatedExtglob:Ue};if(l.tokens===!0&&(he.maxDepth=0,L(C)||O.push(B),he.tokens=O),l.parts===!0||l.tokens===!0){let I;for(let X=0;X<A.length;X++){const Re=I?I+1:Z,ge=A[X],Ne=$.slice(Re,ge);l.tokens&&(X===0&&Z!==0?(O[X].isPrefix=!0,O[X].value=g):O[X].value=Ne,U(O[X]),he.maxDepth+=O[X].depth),(X!==0||Ne!=="")&&j.push(Ne),I=ge}if(I&&I+1<$.length){const X=$.slice(I+1);j.push(X),l.tokens&&(O[O.length-1].value=X,U(O[O.length-1]),he.maxDepth+=O[O.length-1].depth)}he.slashes=A,he.parts=j}return he},"scan"),_r}$e(Io,"requireScan");var Ar,Qn;function Ho(){if(Qn)return Ar;Qn=1;var e=Object.defineProperty,t=$e(($,E)=>e($,"name",{value:E,configurable:!0}),"y");const r=Bt(),n=Lt(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:u}=r,f=t(($,E)=>typeof E.expandRange=="function"?E.expandRange(...$,E):($.sort(),`[${$.join("-")}]`),"expandRange"),c=t(($,E)=>`Missing ${$}: "${E}" - use "\\\\${E}" to match literal characters`,"syntaxError"),p=t($=>{const E=[];let l=0,P=0,k=0,A="",O=!1;for(const j of $){if(O===!0){A+=j,O=!1;continue}if(j==="\\"){A+=j,O=!0;continue}if(j==='"'){k=k===1?0:1,A+=j;continue}if(k===0){if(j==="[")l++;else if(j==="]"&&l>0)l--;else if(l===0){if(j==="(")P++;else if(j===")"&&P>0)P--;else if(j==="|"&&P===0){E.push(A),A="";continue}}}A+=j}return E.push(A),E},"splitTopLevel"),d=t($=>{let E=!1;for(const l of $){if(E===!0){E=!1;continue}if(l==="\\"){E=!0;continue}if(/[?*+@!()[\]{}]/.test(l))return!1}return!0},"isPlainBranch"),b=t($=>{let E=$.trim(),l=!0;for(;l===!0;)l=!1,/^@\([^\\()[\]{}|]+\)$/.test(E)&&(E=E.slice(2,-1),l=!0);if(d(E))return E.replace(/\\(.)/g,"$1")},"normalizeSimpleBranch"),S=t($=>{const E=$.map(b).filter(Boolean);for(let l=0;l<E.length;l++)for(let P=l+1;P<E.length;P++){const k=E[l],A=E[P],O=k[0];if(!(!O||k!==O.repeat(k.length)||A!==O.repeat(A.length))&&(k===A||k.startsWith(A)||A.startsWith(k)))return!0}return!1},"hasRepeatedCharPrefixOverlap"),w=t(($,E=!0)=>{if($[0]!=="+"&&$[0]!=="*"||$[1]!=="(")return;let l=0,P=0,k=0,A=!1;for(let O=1;O<$.length;O++){const j=$[O];if(A===!0){A=!1;continue}if(j==="\\"){A=!0;continue}if(j==='"'){k=k===1?0:1;continue}if(k!==1){if(j==="["){l++;continue}if(j==="]"&&l>0){l--;continue}if(!(l>0)){if(j==="("){P++;continue}if(j===")"&&(P--,P===0))return E===!0&&O!==$.length-1?void 0:{type:$[0],body:$.slice(2,O),end:O}}}}},"parseRepeatedExtglob"),R=t($=>{let E=0;const l=[];for(;E<$.length;){const P=w($.slice(E),!1);if(!P||P.type!=="*")return;const k=p(P.body).map(O=>O.trim());if(k.length!==1)return;const A=b(k[0]);if(!A||A.length!==1)return;l.push(A),E+=P.end+1}return l.length<1?void 0:`${l.length===1?n.escapeRegex(l[0]):`[${l.map(P=>n.escapeRegex(P)).join("")}]`}*`},"getStarExtglobSequenceOutput"),J=t($=>{let E=0,l=$.trim(),P=w(l);for(;P;)E++,l=P.body.trim(),P=w(l);return E},"repeatedExtglobRecursion"),L=t(($,E)=>{if(E.maxExtglobRecursion===!1)return{risky:!1};const l=typeof E.maxExtglobRecursion=="number"?E.maxExtglobRecursion:r.DEFAULT_MAX_EXTGLOB_RECURSION,P=p($).map(k=>k.trim());if(P.length>1&&(P.some(k=>k==="")||P.some(k=>/^[*?]+$/.test(k))||S(P)))return{risky:!0};for(const k of P){const A=R(k);if(A)return{risky:!0,safeOutput:A};if(J(k)>l)return{risky:!0}}return{risky:!1}},"analyzeRepeatedExtglob"),U=t(($,E)=>{if(typeof $!="string")throw new TypeError("Expected a string");$=u[$]||$;const l={...E},P=typeof l.maxLength=="number"?Math.min(i,l.maxLength):i;let k=$.length;if(k>P)throw new SyntaxError(`Input length: ${k}, exceeds maximum allowed length: ${P}`);const A={type:"bos",value:"",output:l.prepend||""},O=[A],j=l.capture?"":"?:",te=r.globChars(l.windows),ce=r.extglobChars(te),{DOT_LITERAL:Z,PLUS_LITERAL:be,SLASH_LITERAL:ae,ONE_CHAR:me,DOTS_SLASH:K,NO_DOT:Pe,NO_DOT_SLASH:Ge,NO_DOTS_SLASH:ve,QMARK:G,QMARK_NO_DOT:we,STAR:Ue,START_ANCHOR:ue}=te,oe=t(v=>`(${j}(?:(?!${ue}${v.dot?K:Z}).)*?)`,"globstar"),pe=l.dot?"":Pe,C=l.dot?G:we;let B=l.bash===!0?oe(l):Ue;l.capture&&(B=`(${B})`),typeof l.noext=="boolean"&&(l.noextglob=l.noext);const y={input:$,index:-1,start:0,dot:l.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:O};$=n.removePrefix($,y),k=$.length;const le=[],ee=[],Y=[];let g=A,h;const he=t(()=>y.index===k-1,"eos"),I=y.peek=(v=1)=>$[y.index+v],X=y.advance=()=>$[++y.index]||"",Re=t(()=>$.slice(y.index+1),"remaining"),ge=t((v="",W=0)=>{y.consumed+=v,y.index+=W},"consume"),Ne=t(v=>{y.output+=v.output!=null?v.output:v.value,ge(v.value)},"append"),Bi=t(()=>{let v=1;for(;I()==="!"&&(I(2)!=="("||I(3)==="?");)X(),y.start++,v++;return v%2===0?!1:(y.negated=!0,y.start++,!0)},"negate"),Gt=t(v=>{y[v]++,Y.push(v)},"increment"),Me=t(v=>{y[v]--,Y.pop()},"decrement"),N=t(v=>{if(g.type==="globstar"){const W=y.braces>0&&(v.type==="comma"||v.type==="brace"),m=v.extglob===!0||le.length&&(v.type==="pipe"||v.type==="paren");v.type!=="slash"&&v.type!=="paren"&&!W&&!m&&(y.output=y.output.slice(0,-g.output.length),g.type="star",g.value="*",g.output=B,y.output+=g.output)}if(le.length&&v.type!=="paren"&&(le[le.length-1].inner+=v.value),(v.value||v.output)&&Ne(v),g&&g.type==="text"&&v.type==="text"){g.output=(g.output||g.value)+v.value,g.value+=v.value;return}v.prev=g,O.push(v),g=v},"push"),Ut=t((v,W)=>{const m={...ce[W],conditions:1,inner:""};m.prev=g,m.parens=y.parens,m.output=y.output,m.startIndex=y.index,m.tokensIndex=O.length;const M=(l.capture?"(":"")+m.open;Gt("parens"),N({type:v,value:W,output:y.output?"":me}),N({type:"paren",extglob:!0,value:X(),output:M}),le.push(m)},"extglobOpen"),Li=t(v=>{const W=$.slice(v.startIndex,y.index+1),m=$.slice(v.startIndex+2,y.index),M=L(m,l);if((v.type==="plus"||v.type==="star")&&M.risky){const H=M.safeOutput?(v.output?"":me)+(l.capture?`(${M.safeOutput})`:M.safeOutput):void 0,Se=O[v.tokensIndex];Se.type="text",Se.value=W,Se.output=H||n.escapeRegex(W);for(let Ee=v.tokensIndex+1;Ee<O.length;Ee++)O[Ee].value="",O[Ee].output="",delete O[Ee].suffix;y.output=v.output+Se.output,y.backtrack=!0,N({type:"paren",extglob:!0,value:h,output:""}),Me("parens");return}let z=v.close+(l.capture?")":""),re;if(v.type==="negate"){let H=B;if(v.inner&&v.inner.length>1&&v.inner.includes("/")&&(H=oe(l)),(H!==B||he()||/^\)+$/.test(Re()))&&(z=v.close=`)$))${H}`),v.inner.includes("*")&&(re=Re())&&/^\.[^\\/.]+$/.test(re)){const Se=U(re,{...E,fastpaths:!1}).output;z=v.close=`)${Se})${H})`}v.prev.type==="bos"&&(y.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:h,output:z}),Me("parens")},"extglobClose");if(l.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test($)){let v=!1,W=$.replace(a,(m,M,z,re,H,Se)=>re==="\\"?(v=!0,m):re==="?"?M?M+re+(H?G.repeat(H.length):""):Se===0?C+(H?G.repeat(H.length):""):G.repeat(z.length):re==="."?Z.repeat(z.length):re==="*"?M?M+re+(H?B:""):B:M?m:`\\${m}`);return v===!0&&(l.unescape===!0?W=W.replace(/\\/g,""):W=W.replace(/\\+/g,m=>m.length%2===0?"\\\\":m?"\\":"")),W===$&&l.contains===!0?(y.output=$,y):(y.output=n.wrapOutput(W,y,E),y)}for(;!he();){if(h=X(),h==="\0")continue;if(h==="\\"){const m=I();if(m==="/"&&l.bash!==!0||m==="."||m===";")continue;if(!m){h+="\\",N({type:"text",value:h});continue}const M=/^\\+/.exec(Re());let z=0;if(M&&M[0].length>2&&(z=M[0].length,y.index+=z,z%2!==0&&(h+="\\")),l.unescape===!0?h=X():h+=X(),y.brackets===0){N({type:"text",value:h});continue}}if(y.brackets>0&&(h!=="]"||g.value==="["||g.value==="[^")){if(l.posix!==!1&&h===":"){const m=g.value.slice(1);if(m.includes("[")&&(g.posix=!0,m.includes(":"))){const M=g.value.lastIndexOf("["),z=g.value.slice(0,M),re=g.value.slice(M+2),H=s[re];if(H){g.value=z+H,y.backtrack=!0,X(),!A.output&&O.indexOf(g)===1&&(A.output=me);continue}}}(h==="["&&I()!==":"||h==="-"&&I()==="]")&&(h=`\\${h}`),h==="]"&&(g.value==="["||g.value==="[^")&&(h=`\\${h}`),l.posix===!0&&h==="!"&&g.value==="["&&(h="^"),g.value+=h,Ne({value:h});continue}if(y.quotes===1&&h!=='"'){h=n.escapeRegex(h),g.value+=h,Ne({value:h});continue}if(h==='"'){y.quotes=y.quotes===1?0:1,l.keepQuotes===!0&&N({type:"text",value:h});continue}if(h==="("){Gt("parens"),N({type:"paren",value:h});continue}if(h===")"){if(y.parens===0&&l.strictBrackets===!0)throw new SyntaxError(c("opening","("));const m=le[le.length-1];if(m&&y.parens===m.parens+1){Li(le.pop());continue}N({type:"paren",value:h,output:y.parens?")":"\\)"}),Me("parens");continue}if(h==="["){if(l.nobracket===!0||!Re().includes("]")){if(l.nobracket!==!0&&l.strictBrackets===!0)throw new SyntaxError(c("closing","]"));h=`\\${h}`}else Gt("brackets");N({type:"bracket",value:h});continue}if(h==="]"){if(l.nobracket===!0||g&&g.type==="bracket"&&g.value.length===1){N({type:"text",value:h,output:`\\${h}`});continue}if(y.brackets===0){if(l.strictBrackets===!0)throw new SyntaxError(c("opening","["));N({type:"text",value:h,output:`\\${h}`});continue}Me("brackets");const m=g.value.slice(1);if(g.posix!==!0&&m[0]==="^"&&!m.includes("/")&&(h=`/${h}`),g.value+=h,Ne({value:h}),l.literalBrackets===!1||n.hasRegexChars(m))continue;const M=n.escapeRegex(g.value);if(y.output=y.output.slice(0,-g.value.length),l.literalBrackets===!0){y.output+=M,g.value=M;continue}g.value=`(${j}${M}|${g.value})`,y.output+=g.value;continue}if(h==="{"&&l.nobrace!==!0){Gt("braces");const m={type:"brace",value:h,output:"(",outputIndex:y.output.length,tokensIndex:y.tokens.length};ee.push(m),N(m);continue}if(h==="}"){const m=ee[ee.length-1];if(l.nobrace===!0||!m){N({type:"text",value:h,output:h});continue}let M=")";if(m.dots===!0){const z=O.slice(),re=[];for(let H=z.length-1;H>=0&&(O.pop(),z[H].type!=="brace");H--)z[H].type!=="dots"&&re.unshift(z[H].value);M=f(re,l),y.backtrack=!0}if(m.comma!==!0&&m.dots!==!0){const z=y.output.slice(0,m.outputIndex),re=y.tokens.slice(m.tokensIndex);m.value=m.output="\\{",h=M="\\}",y.output=z;for(const H of re)y.output+=H.output||H.value}N({type:"brace",value:h,output:M}),Me("braces"),ee.pop();continue}if(h==="|"){le.length>0&&le[le.length-1].conditions++,N({type:"text",value:h});continue}if(h===","){let m=h;const M=ee[ee.length-1];M&&Y[Y.length-1]==="braces"&&(M.comma=!0,m="|"),N({type:"comma",value:h,output:m});continue}if(h==="/"){if(g.type==="dot"&&y.index===y.start+1){y.start=y.index+1,y.consumed="",y.output="",O.pop(),g=A;continue}N({type:"slash",value:h,output:ae});continue}if(h==="."){if(y.braces>0&&g.type==="dot"){g.value==="."&&(g.output=Z);const m=ee[ee.length-1];g.type="dots",g.output+=h,g.value+=h,m.dots=!0;continue}if(y.braces+y.parens===0&&g.type!=="bos"&&g.type!=="slash"){N({type:"text",value:h,output:Z});continue}N({type:"dot",value:h,output:Z});continue}if(h==="?"){if(!(g&&g.value==="(")&&l.noextglob!==!0&&I()==="("&&I(2)!=="?"){Ut("qmark",h);continue}if(g&&g.type==="paren"){const m=I();let M=h;(g.value==="("&&!/[!=<:]/.test(m)||m==="<"&&!/<([!=]|\w+>)/.test(Re()))&&(M=`\\${h}`),N({type:"text",value:h,output:M});continue}if(l.dot!==!0&&(g.type==="slash"||g.type==="bos")){N({type:"qmark",value:h,output:we});continue}N({type:"qmark",value:h,output:G});continue}if(h==="!"){if(l.noextglob!==!0&&I()==="("&&(I(2)!=="?"||!/[!=<:]/.test(I(3)))){Ut("negate",h);continue}if(l.nonegate!==!0&&y.index===0){Bi();continue}}if(h==="+"){if(l.noextglob!==!0&&I()==="("&&I(2)!=="?"){Ut("plus",h);continue}if(g&&g.value==="("||l.regex===!1){N({type:"plus",value:h,output:be});continue}if(g&&(g.type==="bracket"||g.type==="paren"||g.type==="brace")||y.parens>0){N({type:"plus",value:h});continue}N({type:"plus",value:be});continue}if(h==="@"){if(l.noextglob!==!0&&I()==="("&&I(2)!=="?"){N({type:"at",extglob:!0,value:h,output:""});continue}N({type:"text",value:h});continue}if(h!=="*"){(h==="$"||h==="^")&&(h=`\\${h}`);const m=o.exec(Re());m&&(h+=m[0],y.index+=m[0].length),N({type:"text",value:h});continue}if(g&&(g.type==="globstar"||g.star===!0)){g.type="star",g.star=!0,g.value+=h,g.output=B,y.backtrack=!0,y.globstar=!0,ge(h);continue}let v=Re();if(l.noextglob!==!0&&/^\([^?]/.test(v)){Ut("star",h);continue}if(g.type==="star"){if(l.noglobstar===!0){ge(h);continue}const m=g.prev,M=m.prev,z=m.type==="slash"||m.type==="bos",re=M&&(M.type==="star"||M.type==="globstar");if(l.bash===!0&&(!z||v[0]&&v[0]!=="/")){N({type:"star",value:h,output:""});continue}const H=y.braces>0&&(m.type==="comma"||m.type==="brace"),Se=le.length&&(m.type==="pipe"||m.type==="paren");if(!z&&m.type!=="paren"&&!H&&!Se){N({type:"star",value:h,output:""});continue}for(;v.slice(0,3)==="/**";){const Ee=$[y.index+4];if(Ee&&Ee!=="/")break;v=v.slice(3),ge("/**",3)}if(m.type==="bos"&&he()){g.type="globstar",g.value+=h,g.output=oe(l),y.output=g.output,y.globstar=!0,ge(h);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&!re&&he()){y.output=y.output.slice(0,-(m.output+g.output).length),m.output=`(?:${m.output}`,g.type="globstar",g.output=oe(l)+(l.strictSlashes?")":"|$)"),g.value+=h,y.globstar=!0,y.output+=m.output+g.output,ge(h);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&v[0]==="/"){const Ee=v[1]!==void 0?"|$":"";y.output=y.output.slice(0,-(m.output+g.output).length),m.output=`(?:${m.output}`,g.type="globstar",g.output=`${oe(l)}${ae}|${ae}${Ee})`,g.value+=h,y.output+=m.output+g.output,y.globstar=!0,ge(h+X()),N({type:"slash",value:"/",output:""});continue}if(m.type==="bos"&&v[0]==="/"){g.type="globstar",g.value+=h,g.output=`(?:^|${ae}|${oe(l)}${ae})`,y.output=g.output,y.globstar=!0,ge(h+X()),N({type:"slash",value:"/",output:""});continue}if(H&&v[0]==="/"){g.type="globstar",g.value+=h,g.output=`(?:^|${ae}|${oe(l)}${ae})`,y.output+=g.output,y.globstar=!0,ge(h+X()),N({type:"slash",value:"/",output:""});continue}y.output=y.output.slice(0,-g.output.length),g.type="globstar",g.output=oe(l),g.value+=h,y.output+=g.output,y.globstar=!0,ge(h);continue}const W={type:"star",value:h,output:B};if(l.bash===!0){W.output=".*?",(g.type==="bos"||g.type==="slash")&&(W.output=pe+W.output),N(W);continue}if(g&&(g.type==="bracket"||g.type==="paren")&&l.regex===!0){W.output=h,N(W);continue}(y.index===y.start||g.type==="slash"||g.type==="dot")&&(g.type==="dot"?(y.output+=Ge,g.output+=Ge):l.dot===!0?(y.output+=ve,g.output+=ve):(y.output+=pe,g.output+=pe),I()!=="*"&&(y.output+=me,g.output+=me)),N(W)}for(;y.brackets>0;){if(l.strictBrackets===!0)throw new SyntaxError(c("closing","]"));y.output=n.escapeLast(y.output,"["),Me("brackets")}for(;y.parens>0;){if(l.strictBrackets===!0)throw new SyntaxError(c("closing",")"));y.output=n.escapeLast(y.output,"("),Me("parens")}for(;y.braces>0;){if(l.strictBrackets===!0)throw new SyntaxError(c("closing","}"));y.output=n.escapeLast(y.output,"{"),Me("braces")}if(l.strictSlashes!==!0&&(g.type==="star"||g.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${ae}?`}),y.backtrack===!0){y.output="";for(const v of y.tokens)y.output+=v.output!=null?v.output:v.value,v.suffix&&(y.output+=v.suffix)}return y},"parse");return U.fastpaths=($,E)=>{const l={...E},P=typeof l.maxLength=="number"?Math.min(i,l.maxLength):i,k=$.length;if(k>P)throw new SyntaxError(`Input length: ${k}, exceeds maximum allowed length: ${P}`);$=u[$]||$;const{DOT_LITERAL:A,SLASH_LITERAL:O,ONE_CHAR:j,DOTS_SLASH:te,NO_DOT:ce,NO_DOTS:Z,NO_DOTS_SLASH:be,STAR:ae,START_ANCHOR:me}=r.globChars(l.windows),K=l.dot?Z:ce,Pe=l.dot?be:ce,Ge=l.capture?"":"?:",ve={negated:!1,prefix:""};let G=l.bash===!0?".*?":ae;l.capture&&(G=`(${G})`);const we=t(pe=>pe.noglobstar===!0?G:`(${Ge}(?:(?!${me}${pe.dot?te:A}).)*?)`,"globstar"),Ue=t(pe=>{switch(pe){case"*":return`${K}${j}${G}`;case".*":return`${A}${j}${G}`;case"*.*":return`${K}${G}${A}${j}${G}`;case"*/*":return`${K}${G}${O}${j}${Pe}${G}`;case"**":return K+we(l);case"**/*":return`(?:${K}${we(l)}${O})?${Pe}${j}${G}`;case"**/*.*":return`(?:${K}${we(l)}${O})?${Pe}${G}${A}${j}${G}`;case"**/.*":return`(?:${K}${we(l)}${O})?${A}${j}${G}`;default:{const C=/^(.*?)\.(\w+)$/.exec(pe);if(!C)return;const B=Ue(C[1]);return B?B+A+C[2]:void 0}}},"create"),ue=n.removePrefix($,ve);let oe=Ue(ue);return oe&&l.strictSlashes!==!0&&(oe+=`${O}?`),oe},Ar=U,Ar}$e(Ho,"requireParse");var xr,Vn;function Go(){if(Vn)return xr;Vn=1;var e=Object.defineProperty,t=$e((u,f)=>e(u,"name",{value:f,configurable:!0}),"h");const r=Io(),n=Ho(),i=Lt(),s=Bt(),o=t(u=>u&&typeof u=="object"&&!Array.isArray(u),"isObject"),a=t((u,f,c=!1)=>{if(Array.isArray(u)){const L=u.map(U=>a(U,f,c));return t(U=>{for(const $ of L){const E=$(U);if(E)return E}return!1},"arrayMatcher")}const p=o(u)&&u.tokens&&u.input;if(u===""||typeof u!="string"&&!p)throw new TypeError("Expected pattern to be a non-empty string");const d=f||{},b=d.windows,S=p?a.compileRe(u,f):a.makeRe(u,f,!1,!0),w=S.state;delete S.state;let R=t(()=>!1,"isIgnored");if(d.ignore){const L={...f,ignore:null,onMatch:null,onResult:null};R=a(d.ignore,L,c)}const J=t((L,U=!1)=>{const{isMatch:$,match:E,output:l}=a.test(L,S,f,{glob:u,posix:b}),P={glob:u,state:w,regex:S,posix:b,input:L,output:l,match:E,isMatch:$};if(typeof d.onResult=="function"&&d.onResult(P),$===!1)return P.isMatch=!1,U?P:!1;e:if(R(L)){if(typeof d.onIgnore=="function"&&d.onIgnore(P)===s.UNIGNORE){P.isMatch=!0;break e}return P.isMatch=!1,U?P:!1}return typeof d.onMatch=="function"&&d.onMatch(P),U?P:!0},"matcher");return c&&(J.state=w),J},"picomatch");return a.test=(u,f,c,{glob:p,posix:d}={})=>{if(typeof u!="string")throw new TypeError("Expected input to be a string");if(u==="")return{isMatch:!1,output:""};const b=c||{},S=b.format||(d?i.toPosixSlashes:null);let w=u===p,R=w&&S?S(u):u;return w===!1&&(R=S?S(u):u,w=R===p),(w===!1||b.capture===!0)&&(b.matchBase===!0||b.basename===!0?w=a.matchBase(u,f,c,d):w=f.exec(R)),{isMatch:!!w,match:w,output:R}},a.matchBase=(u,f,c)=>(f instanceof RegExp?f:a.makeRe(f,c)).test(i.basename(u)),a.isMatch=(u,f,c)=>a(f,c)(u),a.parse=(u,f)=>Array.isArray(u)?u.map(c=>a.parse(c,f)):n(u,{...f,fastpaths:!1}),a.scan=(u,f)=>r(u,f),a.compileRe=(u,f,c=!1,p=!1)=>{if(c===!0)return u.output;const d=f||{},b=d.contains?"":"^",S=d.contains?"":"$";let w=`${b}(?:${u.output})${S}`;u&&u.negated===!0&&(w=`^(?!${w}).*$`);const R=a.toRegex(w,f);return p===!0&&(R.state=u),R},a.makeRe=(u,f={},c=!1,p=!1)=>{if(!u||typeof u!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return f.fastpaths!==!1&&(u[0]==="."||u[0]==="*")&&(d.output=n.fastpaths(u,f)),d.output||(d=n(u,f)),a.compileRe(d,f,c,p)},a.toRegex=(u,f)=>{try{const c=f||{};return new RegExp(u,c.flags||(c.nocase?"i":""))}catch(c){if(f&&f.debug===!0)throw c;return/$^/}},a.constants=s,xr=a,xr}$e(Go,"requirePicomatch$1");var Pr,Yn;function Uo(){if(Yn)return Pr;Yn=1;var e=Object.defineProperty,t=$e((s,o)=>e(s,"name",{value:o,configurable:!0}),"c");const r=Go(),n=Lt();function i(s,o,a=!1){return o&&(o.windows===null||o.windows===void 0)&&(o={...o,windows:n.isWindows()}),r(s,o,a)}return $e(i,"picomatch"),t(i,"picomatch"),Object.assign(i,r),Pr=i,Pr}$e(Uo,"requirePicomatch");var xu=Uo();const je=Mt(xu);var Pu=Object.defineProperty,T=(e,t)=>Pu(e,"name",{value:t,configurable:!0});const Ru=F(import.meta.url),dt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Dt=T(e=>{if(typeof dt<"u"&&dt.versions&&dt.versions.node){const[t,r]=dt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return dt.getBuiltinModule(e)}return Ru(e)},"__cjs_getBuiltinModule"),Jn=Dt("fs"),Tu={...Jn,default:Jn},{statSync:ku,stat:ju,realpathSync:Cu,realpath:Nu,readdirSync:Mu,readdir:Bu}=Dt("fs"),{sep:Wo,basename:Lu,dirname:Fr,resolve:qo,normalize:Du,relative:Fu,posix:qe,isAbsolute:Iu}=Dt("path"),{fileURLToPath:Hu}=Dt("url"),{createRequire:Gu}=Dt("module");var Uu=Object.defineProperty,_=T((e,t)=>Uu(e,"name",{value:t,configurable:!0}),"r"),Zn=Gu(import.meta.url);function zr(e){let t=Du(e);return t.length>1&&t[t.length-1]===Wo&&(t=t.substring(0,t.length-1)),t}T(zr,"M$1");_(zr,"cleanPath");const Wu=/[\\/]/g;function ar(e,t){return e.replace(Wu,t)}T(ar,"D$1");_(ar,"convertSlashes");const qu=/^[a-z]:[\\/]$/i;function Qr(e){return e==="/"||qu.test(e)}T(Qr,"T$1");_(Qr,"isRootDirectory");function Tt(e,t){const{resolvePaths:r,normalizePath:n,pathSeparator:i}=t,s=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(r&&(e=qo(e)),(n||s)&&(e=zr(e)),e===".")return"";const o=e[e.length-1]!==i;return ar(o?e+i:e,i)}T(Tt,"w");_(Tt,"normalizePath");function ur(e,t){return t+e}T(ur,"P");_(ur,"joinPathWithBasePath");function Vr(e,t){return function(r,n){return n.startsWith(e)?n.slice(e.length)+r:ar(Fu(e,n),t.pathSeparator)+t.pathSeparator+r}}T(Vr,"X");_(Vr,"joinPathWithRelativePath");function Yr(e){return e}T(Yr,"H");_(Yr,"joinPath");function Jr(e,t,r){return t+e+r}T(Jr,"U$1");_(Jr,"joinDirectoryPath");function Zr(e,t){const{relativePaths:r,includeBasePath:n}=t;return r&&e?Vr(e,t):n?ur:Yr}T(Zr,"J");_(Zr,"build$7");function en(e){return function(t,r){r.push(t.substring(e.length)||".")}}T(en,"K$1");_(en,"pushDirectoryWithRelativePath");function tn(e){return function(t,r,n){const i=t.substring(e.length)||".";n.every(s=>s(i,!0))&&r.push(i)}}T(tn,"V");_(tn,"pushDirectoryFilterWithRelativePath");const Ku=_((e,t)=>{t.push(e||".")},"pushDirectory"),Xu=_((e,t,r)=>{const n=e||".";r.every(i=>i(n,!0))&&t.push(n)},"pushDirectoryFilter"),zu=_(()=>{},"empty$2");function rn(e,t){const{includeDirs:r,filters:n,relativePaths:i}=t;return r?i?n&&n.length?tn(e):en(e):n&&n.length?Xu:Ku:zu}T(rn,"st$1");_(rn,"build$6");const Qu=_((e,t,r,n)=>{n.every(i=>i(e,!1))&&r.files++},"pushFileFilterAndCount"),Vu=_((e,t,r,n)=>{n.every(i=>i(e,!1))&&t.push(e)},"pushFileFilter"),Yu=_((e,t,r,n)=>{r.files++},"pushFileCount"),Ju=_((e,t)=>{t.push(e)},"pushFile"),Zu=_(()=>{},"empty$1");function nn(e){const{excludeFiles:t,filters:r,onlyCounts:n}=e;return t?Zu:r&&r.length?n?Qu:Vu:n?Yu:Ju}T(nn,"ut$1");_(nn,"build$5");const ec=_(e=>e,"getArray"),tc=_(()=>[""].slice(0,0),"getArrayGroup");function on(e){return e.group?tc:ec}T(on,"ct$1");_(on,"build$4");const rc=_((e,t,r)=>{e.push({directory:t,files:r,dir:t})},"groupFiles"),nc=_(()=>{},"empty");function sn(e){return e.group?rc:nc}T(sn,"ft$1");_(sn,"build$3");const oc=_(function(e,t,r){const{queue:n,fs:i,options:{suppressErrors:s}}=t;n.enqueue(),i.realpath(e,(o,a)=>{if(o)return n.dequeue(s?null:o,t);i.stat(a,(u,f)=>{if(u)return n.dequeue(s?null:u,t);if(f.isDirectory()&&cr(e,a,t))return n.dequeue(null,t);r(f,a),n.dequeue(null,t)})})},"resolveSymlinksAsync"),ic=_(function(e,t,r){const{queue:n,fs:i,options:{suppressErrors:s}}=t;n.enqueue();try{const o=i.realpathSync(e),a=i.statSync(o);if(a.isDirectory()&&cr(e,o,t))return;r(a,o)}catch(o){if(!s)throw o}},"resolveSymlinks");function an(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?ic:oc}T(an,"gt$1");_(an,"build$2");function cr(e,t,r){if(r.options.useRealPaths)return un(t,r);let n=Fr(e),i=1;for(;n!==r.root&&i<2;){const s=r.symlinks.get(n);s&&(s===t||s.startsWith(t)||t.startsWith(s))?i++:n=Fr(n)}return r.symlinks.set(e,t),i>1}T(cr,"E$1");_(cr,"isRecursive");function un(e,t){return t.visited.includes(e+t.options.pathSeparator)}T(un,"dt$1");_(un,"isRecursiveUsingRealPaths");const sc=_(e=>e.counts,"onlyCountsSync"),ac=_(e=>e.groups,"groupsSync"),uc=_(e=>e.paths,"defaultSync"),cc=_(e=>e.paths.slice(0,e.options.maxFiles),"limitFilesSync"),lc=_((e,t,r)=>(et(t,r,e.counts,e.options.suppressErrors),null),"onlyCountsAsync"),fc=_((e,t,r)=>(et(t,r,e.paths,e.options.suppressErrors),null),"defaultAsync"),pc=_((e,t,r)=>(et(t,r,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),"limitFilesAsync"),gc=_((e,t,r)=>(et(t,r,e.groups,e.options.suppressErrors),null),"groupsAsync");function et(e,t,r,n){t(e&&!n?e:null,r)}T(et,"y");_(et,"report");function cn(e,t){const{onlyCounts:r,group:n,maxFiles:i}=e;return r?t?sc:lc:n?t?ac:gc:i?t?cc:pc:t?uc:fc}T(cn,"Et");_(cn,"build$1");const Ko={withFileTypes:!0},hc=_((e,t,r,n,i)=>{if(e.queue.enqueue(),n<0)return e.queue.dequeue(null,e);const{fs:s}=e;e.visited.push(t),e.counts.directories++,s.readdir(t||".",Ko,(o,a=[])=>{i(a,r,n),e.queue.dequeue(e.options.suppressErrors?null:o,e)})},"walkAsync"),dc=_((e,t,r,n,i)=>{const{fs:s}=e;if(n<0)return;e.visited.push(t),e.counts.directories++;let o=[];try{o=s.readdirSync(t||".",Ko)}catch(a){if(!e.options.suppressErrors)throw a}i(o,r,n)},"walkSync");function ln(e){return e?dc:hc}T(ln,"xt$1");_(ln,"build");var yc=class{static{T(this,"_t")}static{_(this,"Queue")}count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},$c=class{static{T(this,"At")}static{_(this,"Counter")}_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},bc=class{static{T(this,"Wt")}static{_(this,"Aborter")}aborted=!1;abort(){this.aborted=!0}},Xo=class{static{T(this,"q")}static{_(this,"Walker")}root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,r){this.isSynchronous=!r,this.callbackInvoker=cn(t,this.isSynchronous),this.root=Tt(e,t),this.state={root:Qr(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new $c,options:t,queue:new yc((n,i)=>this.callbackInvoker(i,n,r)),symlinks:new Map,visited:[""].slice(0,0),controller:new bc,fs:t.fs||Tu},this.joinPath=Zr(this.root,t),this.pushDirectory=rn(this.root,t),this.pushFile=nn(t),this.getArray=on(t),this.groupFiles=sn(t),this.resolveSymlink=an(t,this.isSynchronous),this.walkDirectory=ln(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=_((e,t,r)=>{const{paths:n,options:{filters:i,resolveSymlinks:s,excludeSymlinks:o,exclude:a,maxFiles:u,signal:f,useRealPaths:c,pathSeparator:p},controller:d}=this.state;if(d.aborted||f&&f.aborted||u&&n.length>u)return;const b=this.getArray(this.state.paths);for(let S=0;S<e.length;++S){const w=e[S];if(w.isFile()||w.isSymbolicLink()&&!s&&!o){const R=this.joinPath(w.name,t);this.pushFile(R,b,this.state.counts,i)}else if(w.isDirectory()){let R=Jr(w.name,t,this.state.options.pathSeparator);if(a&&a(w.name,R))continue;this.pushDirectory(R,n,i),this.walkDirectory(this.state,R,R,r-1,this.walk)}else if(this.resolveSymlink&&w.isSymbolicLink()){let R=ur(w.name,t);this.resolveSymlink(R,this.state,(J,L)=>{if(J.isDirectory()){if(L=Tt(L,this.state.options),a&&a(w.name,c?L:R+p))return;this.walkDirectory(this.state,L,c?L:R+p,r-1,this.walk)}else{L=c?L:R;const U=Lu(L),$=Tt(Fr(L),this.state.options);L=this.joinPath(U,$),this.pushFile(L,b,this.state.counts,i)}})}}this.groupFiles(this.state.groups,t,b)},"walk")};function fn(e,t){return new Promise((r,n)=>{lr(e,t,(i,s)=>{if(i)return n(i);r(s)})})}T(fn,"Ct");_(fn,"promise");function lr(e,t,r){new Xo(e,t,r).start()}T(lr,"x");_(lr,"callback");function pn(e,t){return new Xo(e,t).start()}T(pn,"jt");_(pn,"sync");var eo=class{static{T(this,"F")}static{_(this,"APIBuilder")}constructor(e,t){this.root=e,this.options=t}withPromise(){return fn(this.root,this.options)}withCallback(e){lr(this.root,this.options,e)}sync(){return pn(this.root,this.options)}};let zo=null;try{Zn.resolve("picomatch"),zo=Zn("picomatch")}catch{}var mc=class{static{T(this,"$t")}static{_(this,"Builder")}globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:Wo,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new eo(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new eo(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){const r=this.globFunction||zo;if(!r)throw new Error("Please specify a glob function to use glob matching.");var n=this.globCache[e.join("\0")];return n||(n=r(e,...t),this.globCache[e.join("\0")]=n),this.options.filters.push(i=>n(i)),this}},vc=Object.defineProperty,ne=T((e,t)=>vc(e,"name",{value:t,configurable:!0}),"a");const wc=Array.isArray,Qo=/\\/g,Vo=process.platform==="win32",Sc=/^(\/?\.\.)+$/;function er(e,t={}){const r=e.length,n=Array(r),i=Array(r);let s,o;for(s=0;s<r;s++){const a=fr(e[s]);n[s]=a;const u=a.length,f=Array(u);for(o=0;o<u;o++)f[o]=je(a[o],t);i[s]=f}return a=>{const u=a.split("/");if(u[0]===".."&&Sc.test(a))return!0;for(s=0;s<r;s++){const f=n[s],c=i[s],p=u.length,d=Math.min(p,f.length);for(o=0;o<d;){const b=f[o];if(b.includes("/"))return!0;if(!c[o](u[o]))break;if(!t.noglobstar&&b==="**")return!0;o++}if(o===p)return!0}return!1}}T(er,"D");ne(er,"getPartialMatcher");const Ec=/^[A-Z]:\/$/i,Oc=Vo?e=>Ec.test(e):e=>e==="/";function tr(e,t,r){if(e===t||t.startsWith(`${e}/`)){if(r){const i=e.length+ +!Oc(e);return(s,o)=>s.slice(i,o?-1:void 0)||"."}const n=t.slice(e.length+1);return n?(i,s)=>{if(i===".")return n;const o=`${n}/${i}`;return s?o.slice(0,-1):o}:(i,s)=>s&&i!=="."?i.slice(0,-1):i}return r?n=>qe.relative(e,n)||".":n=>qe.relative(e,`${t}/${n}`)||"."}T(tr,"M");ne(tr,"buildFormat");function gn(e,t){if(t.startsWith(`${e}/`)){const r=t.slice(e.length+1);return n=>`${r}/${n}`}return r=>{const n=qe.relative(e,`${t}/${r}`);return r[r.length-1]==="/"&&n!==""?`${n}/`:n||"."}}T(gn,"at");ne(gn,"buildRelative");const _c={parts:!0};function fr(e){var t;const r=je.scan(e,_c);return!((t=r.parts)===null||t===void 0)&&t.length?r.parts:[e]}T(fr,"N");ne(fr,"splitPattern");const Ac=/\\(?![()[\]{}!+@])/g;function Yo(e){return Zo(e)}T(Yo,"ut");ne(Yo,"convertPosixPathToPattern");function Jo(e){return ei(e).replace(Ac,"/")}T(Jo,"ft");ne(Jo,"convertWin32PathToPattern");const xc=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Pc=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,Zo=ne(e=>e.replace(xc,"\\$&"),"escapePosixPath"),ei=ne(e=>e.replace(Pc,"\\$&"),"escapeWin32Path"),Rc=Vo?ei:Zo;function hn(e,t){if(t?.caseSensitiveMatch===!1)return!0;const r=je.scan(e);return r.isGlob||r.negated}T(hn,"k");ne(hn,"isDynamicPattern");function Ke(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...e)}T(Ke,"E");ne(Ke,"log");function pr(e){return typeof e=="string"?[e]:e??[]}T(pr,"W");ne(pr,"ensureStringArray");const Tc=/^(\/?\.\.)+/,kc=/\\(?=[()[\]{}!*+?@|])/g;function kt(e,t,r,n){var i;const s=t.cwd;let o=e;e[e.length-1]==="/"&&(o=e.slice(0,-1));const a=o.lastIndexOf("/"),u=(a===-1?o:o.slice(a+1)).startsWith("!(");o[o.length-1]!=="*"&&!u&&t.expandDirectories&&(o+="/**");const f=Rc(s);o=Iu(o.replace(kc,""))?qe.relative(f,o):qe.normalize(o);const c=(i=Tc.exec(o))===null||i===void 0?void 0:i[0],p=fr(o);if(c){const b=(c.length+1)/3;let S=0;const w=f.split("/");for(;S<b&&p[S+b]===w[w.length+S-b];)o=o.slice(0,(b-S-1)*3)+o.slice((b-S)*3+p[S+b].length+1)||".",S++;const R=qe.join(s,c.slice(S*3));R[0]!=="."&&r.root.length>R.length&&(r.root=R,r.depthOffset=-b+S)}if(!n&&r.depthOffset>=0){var d;(d=r.commonPath)!==null&&d!==void 0||(r.commonPath=p);const b=[],S=Math.min(r.commonPath.length,p.length);for(let w=0;w<S;w++){const R=p[w];if(R==="**"&&!p[w+1]){b.pop();break}if(w===p.length-1||R!==r.commonPath[w]||hn(R))break;b.push(R)}r.depthOffset=b.length,r.commonPath=b,r.root=b.length>0?qe.join(s,...b):s}return o}T(kt,"$");ne(kt,"normalizePattern");function dn(e,t,r){const n=[],i=[],s=[];for(const o of e.ignore)o&&(o[0]!=="!"||o[1]==="("?i.push(kt(o,e,r,!0)):s.push(o.slice(1)));for(const o of t)o&&(o[0]!=="!"||o[1]==="("?n.push(kt(o,e,r,!1)):(o[1]!=="!"||o[2]==="(")&&i.push(kt(o.slice(1),e,r,!0)));return{match:n,ignore:i,unignore:s}}T(dn,"St");ne(dn,"processPatterns");function yn(e,t){const r=e.cwd,n={root:r,depthOffset:0},i=dn(e,t,n);e.debug&&Ke("internal processing patterns:",i);const{absolute:s,caseSensitiveMatch:o,debug:a,dot:u,followSymbolicLinks:f,onlyDirectories:c}=e,p=n.root.replace(Qo,""),d={dot:u,nobrace:e.braceExpansion===!1,nocase:!o,noextglob:e.extglob===!1,noglobstar:e.globstar===!1,posix:!0},b=i.unignore.length>0,S=b?je(i.unignore,d):void 0,w=b?er(i.unignore,d):void 0,R=je(i.match,{...d,ignore:i.ignore,onIgnore:S?A=>S(A.output)&&je.constants.UNIGNORE:void 0}),J=je(i.ignore,d),L=er(i.match,d),U=tr(r,p,s),$=s?U:tr(r,p,!0),E=i.match.length>0&&i.match.every(A=>A==="**"||A==="**/*"),l=i.ignore.length>0||b||!E?(A,O)=>{const j=$(O,!0);return j==="."||w&&w(j)?!1:!L(j)||J(j)}:void 0;let P;e.deep!==void 0&&(P=Math.round(e.deep-n.depthOffset));const k=new mc({filters:[a?(A,O)=>{const j=U(A,O),te=R(j);return te&&Ke(`matched ${j}`),te}:(A,O)=>{const j=U(A,O);return R(j)}],exclude:a&&l?(A,O)=>{const j=l(A,O);return Ke(`${j?"skipped":"crawling"} ${O}`),j}:l,fs:e.fs,pathSeparator:"/",relativePaths:!s,resolvePaths:s,includeBasePath:s,resolveSymlinks:f,excludeSymlinks:!f,excludeFiles:c,includeDirs:c||!e.onlyFiles,maxDepth:P,signal:e.signal}).crawl(p);return e.debug&&Ke("internal properties:",{...n,root:p}),[k,r!==p&&!s&&gn(r,p)]}T(yn,"vt");ne(yn,"buildCrawler");function gr(e,t){if(t)for(let r=e.length-1;r>=0;r--)e[r]=t(e[r]);return e}T(gr,"U");ne(gr,"formatPaths");const jc={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function $n(e){const t={...jc,...e};return t.cwd=(t.cwd instanceof URL?Hu(t.cwd):qo(t.cwd)).replace(Qo,"/"),t.ignore=pr(t.ignore),t.fs&&(t.fs={readdir:t.fs.readdir||Bu,readdirSync:t.fs.readdirSync||Mu,realpath:t.fs.realpath||Nu,realpathSync:t.fs.realpathSync||Cu,stat:t.fs.stat||ju,statSync:t.fs.statSync||ku}),t.debug&&Ke("globbing with options:",t),t}T($n,"pt");ne($n,"getOptions");function hr(e,t={}){var r;if(e&&t?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const n=wc(e)||typeof e=="string",i=pr((r=n?e:e.patterns)!==null&&r!==void 0?r:"**/*"),s=$n(n?t:e);return i.length>0?yn(s,i):[]}T(hr,"G");ne(hr,"getCrawler");async function bn(e,t){const[r,n]=hr(e,t);return r?gr(await r.withPromise(),n):[]}T(bn,"bt");ne(bn,"glob");function mn(e,t){const[r,n]=hr(e,t);return r?gr(r.sync(),n):[]}T(mn,"xt");ne(mn,"globSync");var Cc=Object.defineProperty,Nc=(e,t)=>Cc(e,"name",{value:t,configurable:!0}),Mc=Object.defineProperty,Bc=Nc((e,t)=>Mc(e,"name",{value:t,configurable:!0}),"r");Bc(async(e,t)=>await bn(e,t),"glob");var Lc=Object.defineProperty,Dc=(e,t)=>Lc(e,"name",{value:t,configurable:!0}),Fc=Object.defineProperty,Ic=Dc((e,t)=>Fc(e,"name",{value:t,configurable:!0}),"n");const oh=Ic((e,t)=>mn(e,t),"globSync");var Hc=Object.defineProperty,dr=(e,t)=>Hc(e,"name",{value:t,configurable:!0}),Rr,to;function ti(){if(to)return Rr;to=1;var e=Object.defineProperty,t=dr((r,n)=>e(r,"name",{value:n,configurable:!0}),"l");/*!
5
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
6
+ *
7
+ * Copyright (c) 2014-2016, Jon Schlinkert.
8
+ * Licensed under the MIT License.
9
+ */return Rr=t(function(r){if(typeof r!="string"||r==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(n[2])return!0;r=r.slice(n.index+n[0].length)}return!1},"isExtglob"),Rr}dr(ti,"requireIsExtglob");var Tr,ro;function vn(){if(ro)return Tr;ro=1;var e=Object.defineProperty,t=dr((o,a)=>e(o,"name",{value:a,configurable:!0}),"x");/*!
10
+ * is-glob <https://github.com/jonschlinkert/is-glob>
11
+ *
12
+ * Copyright (c) 2014-2017, Jon Schlinkert.
13
+ * Released under the MIT License.
14
+ */var r=ti(),n={"{":"}","(":")","[":"]"},i=t(function(o){if(o[0]==="!")return!0;for(var a=0,u=-2,f=-2,c=-2,p=-2,d=-2;a<o.length;){if(o[a]==="*"||o[a+1]==="?"&&/[\].+)]/.test(o[a])||f!==-1&&o[a]==="["&&o[a+1]!=="]"&&(f<a&&(f=o.indexOf("]",a)),f>a&&(d===-1||d>f||(d=o.indexOf("\\",a),d===-1||d>f)))||c!==-1&&o[a]==="{"&&o[a+1]!=="}"&&(c=o.indexOf("}",a),c>a&&(d=o.indexOf("\\",a),d===-1||d>c))||p!==-1&&o[a]==="("&&o[a+1]==="?"&&/[:!=]/.test(o[a+2])&&o[a+3]!==")"&&(p=o.indexOf(")",a),p>a&&(d=o.indexOf("\\",a),d===-1||d>p))||u!==-1&&o[a]==="("&&o[a+1]!=="|"&&(u<a&&(u=o.indexOf("|",a)),u!==-1&&o[u+1]!==")"&&(p=o.indexOf(")",u),p>u&&(d=o.indexOf("\\",u),d===-1||d>p))))return!0;if(o[a]==="\\"){var b=o[a+1];a+=2;var S=n[b];if(S){var w=o.indexOf(S,a);w!==-1&&(a=w+1)}if(o[a]==="!")return!0}else a++}return!1},"strictCheck"),s=t(function(o){if(o[0]==="!")return!0;for(var a=0;a<o.length;){if(/[*?{}()[\]]/.test(o[a]))return!0;if(o[a]==="\\"){var u=o[a+1];a+=2;var f=n[u];if(f){var c=o.indexOf(f,a);c!==-1&&(a=c+1)}if(o[a]==="!")return!0}else a++}return!1},"relaxedCheck");return Tr=t(function(o,a){if(typeof o!="string"||o==="")return!1;if(r(o))return!0;var u=i;return a&&a.strict===!1&&(u=s),u(o)},"isGlob"),Tr}dr(vn,"requireIsGlob");var Gc=Object.defineProperty,Qe=(e,t)=>Gc(e,"name",{value:t,configurable:!0});const Uc=F(import.meta.url),yt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ri=Qe(e=>{if(typeof yt<"u"&&yt.versions&&yt.versions.node){const[t,r]=yt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return yt.getBuiltinModule(e)}return Uc(e)},"__cjs_getBuiltinModule"),Wc=ri("path"),qc=ri("os");var kr,no;function ni(){if(no)return kr;no=1;var e=Object.defineProperty,t=Qe((c,p)=>e(c,"name",{value:p,configurable:!0}),"n"),r=vn(),n=Wc.posix.dirname,i=qc.platform()==="win32",s="/",o=/\\/g,a=/\\([!*?|[\](){}])/g;kr=t(function(c,p){var d=Object.assign({flipBackslashes:!0},p);d.flipBackslashes&&i&&c.indexOf(s)<0&&(c=c.replace(o,s)),u(c)&&(c+=s),c+="a";do c=n(c);while(f(c));return c.replace(a,"$1")},"globParent");function u(c){var p=c.slice(-1),d;switch(p){case"}":d="{";break;case"]":d="[";break;default:return!1}var b=c.indexOf(d);return b<0?!1:c.slice(b+1,-1).includes(s)}Qe(u,"isEnclosure"),t(u,"isEnclosure");function f(c){return/\([^()]+$/.test(c)||c[0]==="{"||c[0]==="["||/[^\\][{[]/.test(c)?!0:r(c)}return Qe(f,"isGlobby"),t(f,"isGlobby"),kr}Qe(ni,"requireGlobParent");var Kc=ni();const Xc=Mt(Kc);var zc=Object.defineProperty,Qc=Qe((e,t)=>zc(e,"name",{value:t,configurable:!0}),"e");Qc((e,t)=>Xc(e,t),"globParent");var Vc=Object.defineProperty,wn=(e,t)=>Vc(e,"name",{value:t,configurable:!0});const Yc=F(import.meta.url),$t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Jc=wn(e=>{if(typeof $t<"u"&&$t.versions&&$t.versions.node){const[t,r]=$t.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return $t.getBuiltinModule(e)}return Yc(e)},"__cjs_getBuiltinModule"),{access:Zc}=Jc("node:fs/promises");var el=Object.defineProperty,tl=wn((e,t)=>el(e,"name",{value:t,configurable:!0}),"o");async function Ce(e,t=Ve){q(e),e=D(e);try{return await Zc(e,t),!0}catch{return!1}}wn(Ce,"m");tl(Ce,"isAccessible");var rl=Object.defineProperty,Sn=(e,t)=>rl(e,"name",{value:t,configurable:!0});const nl=F(import.meta.url),bt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ol=Sn(e=>{if(typeof bt<"u"&&bt.versions&&bt.versions.node){const[t,r]=bt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return bt.getBuiltinModule(e)}return nl(e)},"__cjs_getBuiltinModule"),{accessSync:il}=ol("node:fs");var sl=Object.defineProperty,al=Sn((e,t)=>sl(e,"name",{value:t,configurable:!0}),"o");function _e(e,t=Ve){q(e),e=D(e);try{return il(e,t),!0}catch{return!1}}Sn(_e,"m");al(_e,"isAccessibleSync");var ul=Object.defineProperty,cl=(e,t)=>ul(e,"name",{value:t,configurable:!0}),ll=vn();const fl=Mt(ll);var pl=Object.defineProperty,gl=cl((e,t)=>pl(e,"name",{value:t,configurable:!0}),"s");const ih=gl((e,t)=>fl(e,t),"isGlob");var hl=Object.defineProperty,dl=(e,t)=>hl(e,"name",{value:t,configurable:!0}),yl=Object.defineProperty,oi=dl((e,t)=>yl(e,"name",{value:t,configurable:!0}),"i");oi((e,t,r)=>{const n=je(t,r);return Array.isArray(e)?e.some(i=>n(i)):n(e)},"match");oi((e,t)=>{const r=je(e,t);return n=>r(n)},"matcher");var $l=Object.defineProperty,tt=(e,t)=>$l(e,"name",{value:t,configurable:!0});const bl=F(import.meta.url),ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ii=tt(e=>{if(typeof ze<"u"&&ze.versions&&ze.versions.node){const[t,r]=ze.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ze.getBuiltinModule(e)}return bl(e)},"__cjs_getBuiltinModule"),{cwd:yr}=ze,{mkdir:ml,rename:vl,copyFile:wl,unlink:Sl}=ii("node:fs/promises"),{mkdirSync:El,renameSync:Ol,copyFileSync:_l,unlinkSync:Al}=ii("node:fs");var xl=Object.defineProperty,si=tt((e,t)=>xl(e,"name",{value:t,configurable:!0}),"o");let Pl=class extends Error{static{tt(this,"a")}static{si(this,"SameDirectoryError")}constructor(t,r){super(`Source directory "${ie(t)}" does not match destination directory "${ie(r)}"`),this.name="SameDirectoryError"}};const ai=si((e,t)=>{if(!e||!t)throw new Error("Source and destination paths must not be empty");if(ie(e)!==ie(t))throw new Pl(e,t)},"validateSameDirectory");var Rl=Object.defineProperty,Tl=tt((e,t)=>Rl(e,"name",{value:t,configurable:!0}),"m$1");const ui=Tl(async(e,t,{cwd:r,directoryMode:n,overwrite:i,validateDirectory:s})=>{if(r&&(e=se(r,e),t=se(r,t)),s&&ai(e,t),!i&&await Ce(t))throw new Error(`The destination file exists: ${t}`);await ml(ie(t),{mode:n,recursive:!0});try{await vl(e,t)}catch(o){if(o.code==="EXDEV")await wl(e,t),await Sl(e);else throw o}},"internalMoveFile");var kl=Object.defineProperty,jl=tt((e,t)=>kl(e,"name",{value:t,configurable:!0}),"m");const ci=jl((e,t,{cwd:r,directoryMode:n,overwrite:i,validateDirectory:s})=>{if(r&&(e=se(r,e),t=se(r,t)),s&&ai(e,t),!i&&_e(t))throw new Error(`The destination file exists: ${t}`);El(ie(t),{mode:n,recursive:!0});try{Ol(e,t)}catch(o){if(o.code==="EXDEV")_l(e,t),Al(e);else throw o}},"internalMoveFileSync");var Cl=Object.defineProperty,$r=tt((e,t)=>Cl(e,"name",{value:t,configurable:!0}),"i");$r(async(e,t,r={})=>{const n={overwrite:!0,validateDirectory:!1,...r,cwd:r.cwd?D(r.cwd):yr()};await ui(e,t,n)},"move");$r((e,t,r)=>{const n={overwrite:!0,validateDirectory:!1,...r};n.cwd=n.cwd?D(n.cwd):yr(),ci(e,t,n)},"moveSync");$r(async(e,t,r)=>{const n={overwrite:!0,...r,validateDirectory:!0};n.cwd=n.cwd?D(n.cwd):yr(),await ui(e,t,n)},"rename");$r((e,t,r)=>{const n={overwrite:!0,...r,validateDirectory:!0};n.cwd=n.cwd?D(n.cwd):yr(),ci(e,t,n)},"renameSync");var Nl=Object.defineProperty,li=(e,t)=>Nl(e,"name",{value:t,configurable:!0}),Ml=Object.defineProperty,Bl=li((e,t)=>Ml(e,"name",{value:t,configurable:!0}),"o");let Ir=class extends Error{static{li(this,"n")}static{Bl(this,"PermissionError")}constructor(t){super(`EPERM: Operation not permitted, ${t}`)}get code(){return"EPERM"}set code(t){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(t){throw new Error("Cannot overwrite name of PermissionError")}};var Ll=Object.defineProperty,fi=(e,t)=>Ll(e,"name",{value:t,configurable:!0});const Dl=F(import.meta.url),mt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,pi=fi(e=>{if(typeof mt<"u"&&mt.versions&&mt.versions.node){const[t,r]=mt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return mt.getBuiltinModule(e)}return Dl(e)},"__cjs_getBuiltinModule"),{readFile:Fl}=pi("node:fs/promises"),{unzip:Il,brotliDecompress:Hl}=pi("node:zlib");var Gl=Object.defineProperty,gi=fi((e,t)=>Gl(e,"name",{value:t,configurable:!0}),"n");const Ul={brotli:Hl,gzip:Il,none:gi((e,t)=>{t(null,e)},"none")},Wl=gi(async(e,t)=>{if(q(e),e=D(e),!await Ce(e))throw new Ir(`unable to read the non-accessible file: ${e}`);if(!await Ce(e,or))throw new Error(`Unable to read the non-readable file: ${e}`);const{buffer:r,compression:n,encoding:i,flag:s}=t??{};return await Fl(e,s?{encoding:i,flag:s}:{encoding:i}).then(async o=>await new Promise((a,u)=>{Ul[n??"none"](o,(f,c)=>{f?u(f):a(r?c:c.toString())})})).catch(o=>{throw o})},"readFile");var ql=Object.defineProperty,hi=(e,t)=>ql(e,"name",{value:t,configurable:!0});const Kl=F(import.meta.url),vt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,di=hi(e=>{if(typeof vt<"u"&&vt.versions&&vt.versions.node){const[t,r]=vt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return vt.getBuiltinModule(e)}return Kl(e)},"__cjs_getBuiltinModule"),{readFileSync:Xl}=di("node:fs"),{unzipSync:zl,brotliDecompressSync:Ql}=di("node:zlib");var Vl=Object.defineProperty,yi=hi((e,t)=>Vl(e,"name",{value:t,configurable:!0}),"r");const Yl={brotli:Ql,gzip:zl,none:yi(e=>e,"none")},Jl=yi((e,t)=>{if(q(e),e=D(e),!_e(e))throw new Ir(`unable to read the non-accessible file: ${e}`);if(!_e(e,or))throw new Ir(`invalid access to read file at: ${e}`);const{buffer:r,compression:n,encoding:i,flag:s}=t??{},o=Xl(e,s?{encoding:i,flag:s}:{encoding:i}),a=Yl[n??"none"],u=a(o);return r?u:u.toString()},"readFileSync");var Zl=Object.defineProperty,$i=(e,t)=>Zl(e,"name",{value:t,configurable:!0}),ef=Object.defineProperty,tf=$i((e,t)=>ef(e,"name",{value:t,configurable:!0}),"A"),rf=Object.defineProperty,En=tf((e,t)=>rf(e,"name",{value:t,configurable:!0}),"$"),nf=Object.defineProperty,of=En((e,t)=>nf(e,"name",{value:t,configurable:!0}),"r$1");const sf=of(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
15
+ `),"normalizeLF"),af=globalThis.process??Object.create(null),oo={versions:{}},io=new Proxy(af,{get(e,t){if(t in e)return e[t];if(t in oo)return oo[t]}});var uf=Object.defineProperty,cf=En((e,t)=>uf(e,"name",{value:t,configurable:!0}),"b");const lf=cf((e,t,r,n)=>{const i={column:0,line:-1,...e.start},s={...i,...e.end},o=i.line,a=i.column,u=s.line,f=s.column;let c=Math.max(o-(r+1),0),p=Math.min(t.length,u+n);o===-1&&(c=0),u===-1&&(p=t.length);const d=u-o,b={};if(d)for(let S=0;S<=d;S++){const w=S+o;if(!a)b[w]=!0;else if(S===0){const R=t[w-1]?.length;b[w]=[a,(R??0)-a+1]}else if(S===d)b[w]=[0,f];else{const R=t[w-S]?.length;b[w]=[0,R]}}else a===f?b[o]=a?[a,0]:!0:b[o]=[a,(f??0)-(a??0)];return{end:p,markerLines:b,start:c}},"getMarkerLines");var ff=Object.defineProperty,Xt=En((e,t)=>ff(e,"name",{value:t,configurable:!0}),"t");const pf=io.platform==="win32"&&!io.env?.WT_SESSION?">":"❯",gf=Xt((e,t,r)=>{const n={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...r,color:{gutter:Xt(S=>S,"gutter"),marker:Xt(S=>S,"marker"),message:Xt(S=>S,"message"),...r?.color}},i=typeof t.start.column=="number";let s=sf(e).split(`
16
+ `);typeof n.tabWidth=="number"&&(s=s.map(S=>S.replaceAll(" "," ".repeat(n.tabWidth))));const{end:o,markerLines:a,start:u}=lf(t,s,n.linesAbove,n.linesBelow),f=String(o).length,{gutter:c,marker:p,message:d}=n.color;let b=s.slice(u,o).map((S,w)=>{const R=u+1+w,J=a[R],L=` ${String(R)}`.slice(-f),U=!a[R+1],$=` ${L}${n.showGutter?" |":""}`;if(J){let E="";if(Array.isArray(J)){const l=S.replaceAll(/[^\t]/g," ").slice(0,Math.max(J[0]-1,0)),P=J[1]||1;E=[`
17
+ `,n.prefix+c($.replaceAll(/\d/g," "))," ",l,p("^").repeat(P)].join(""),U&&n.message&&(E+=` ${d(n.message)}`)}return[n.prefix+p(pf),c($),S.length>0?` ${S}`:"",E].join("")}return`${n.prefix} ${c($)}${S.length>0?` ${S}`:""}`}).join(`
18
+ `);return n.message&&!i&&(b=`${n.prefix+" ".repeat(f+1)+n.message}
19
+ ${b}`),b},"codeFrame");var hf=Object.defineProperty,df=$i((e,t)=>hf(e,"name",{value:t,configurable:!0}),"s"),yf=Object.defineProperty,$f=df((e,t)=>yf(e,"name",{value:t,configurable:!0}),"o"),bf=Object.defineProperty,On=$f((e,t)=>bf(e,"name",{value:t,configurable:!0}),"l");const so=On((e,t)=>{let r=0,n=t.length-2;for(;r<n;){const i=r+(n-r>>1);if(e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return r},"binarySearch"),mf=/\n|\r(?!\n)/,vf=On(e=>e.split(mf).reduce((t,r)=>(t.push(t.at(-1)+r.length+1),t),[0]),"getLineStartIndexes"),wf=On((e,t,r)=>{const n=r?.skipChecks??!1;if(!n&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!n&&(typeof t!="number"||typeof e=="string"&&t>=e.length||Array.isArray(e)&&t+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const s=vf(e),o=so(t,s);return{column:t-s[o]+1,line:o+1}}const i=so(t,e);return{column:t-e[i]+1,line:i+1}},"indexToLineColumn");var Sf=Object.defineProperty,bi=(e,t)=>Sf(e,"name",{value:t,configurable:!0}),Ef=Object.defineProperty,Of=bi((e,t)=>Ef(e,"name",{value:t,configurable:!0}),"i");let _f=class extends Error{static{bi(this,"t")}static{Of(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(t){super(),this.#e=t}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
20
+
21
+ ${this.codeFrame}
22
+ `:""}`}set message(t){this.#e=t}};var Af=Object.defineProperty,mi=(e,t)=>Af(e,"name",{value:t,configurable:!0}),xf=Object.defineProperty,Ft=mi((e,t)=>xf(e,"name",{value:t,configurable:!0}),"a");const Pf=Ft(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Rf=Ft((e,t,r)=>gf(e,{start:t},{tabWidth:!1,...r}),"generateCodeFrame"),Tf=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,kf=Ft((e,t)=>{const r=Tf.exec(t);if(!r)return;const[,n,i,s]=r;if(i&&s)return{column:Number(s),line:Number(i)};let o=Number(n);return o===e.length&&(o=e.length-1),wf(e,o)},"getErrorLocation"),jf=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,Cf=Ft(e=>e.replace(jf,(t,r,n)=>`"${n}"(${Pf(n)})`),"addCodePointToUnexpectedToken");function br(e,t,r,n){typeof t=="string"&&(typeof r=="object"&&(n=r),r=t,t=void 0);let i;try{return JSON.parse(e,t)}catch(a){i=a.message}let s;e?(s=kf(e,i),i=Cf(i)):i+=" while parsing empty string";const o=new _f(i);throw o.fileName=r,s&&(o.codeFrame=Rf(e,s,n)),o}mi(br,"E");Ft(br,"parseJson");var Nf=Object.defineProperty,vi=(e,t)=>Nf(e,"name",{value:t,configurable:!0}),Mf=Object.defineProperty,Bf=vi((e,t)=>Mf(e,"name",{value:t,configurable:!0}),"i");async function wi(e,t,r){typeof t=="object"&&(r=t,t=void 0);const n=await Wl(e,{buffer:!0,encoding:void 0});let i=new TextDecoder().decode(n);const{beforeParse:s,color:o}=r??{};return typeof s=="function"&&(i=s(i)),br(i,t,D(e),{color:o})}vi(wi,"c");Bf(wi,"readJson");var Lf=Object.defineProperty,Si=(e,t)=>Lf(e,"name",{value:t,configurable:!0}),Df=Object.defineProperty,Ff=Si((e,t)=>Df(e,"name",{value:t,configurable:!0}),"r");function _n(e,t,r){typeof t=="object"&&(r=t,t=void 0);const n=Jl(e,{buffer:!0,encoding:void 0});let i=new TextDecoder().decode(n);const{beforeParse:s,color:o}=r??{};return typeof s=="function"&&(i=s(i)),br(i,t,D(e),{color:o})}Si(_n,"J");Ff(_n,"readJsonSync");var If=Object.defineProperty,Hf=(e,t)=>If(e,"name",{value:t,configurable:!0}),Gf=Object.defineProperty,Uf=Hf((e,t)=>Gf(e,"name",{value:t,configurable:!0}),"t");const mr=Uf(e=>{const t={force:!0,recursive:!0};return e?.maxRetries!==void 0&&(t.maxRetries=e.maxRetries),e?.retryDelay!==void 0&&(t.retryDelay=e.retryDelay),t},"buildRmOptions");var Wf=Object.defineProperty,Ei=(e,t)=>Wf(e,"name",{value:t,configurable:!0});const qf=F(import.meta.url),wt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Oi=Ei(e=>{if(typeof wt<"u"&&wt.versions&&wt.versions.node){const[t,r]=wt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return wt.getBuiltinModule(e)}return qf(e)},"__cjs_getBuiltinModule"),{existsSync:Kf}=Oi("node:fs"),{mkdir:Xf,readdir:zf,rm:Qf}=Oi("node:fs/promises");var Vf=Object.defineProperty,Yf=Ei((e,t)=>Vf(e,"name",{value:t,configurable:!0}),"o");const ch=Yf(async(e,t)=>{if(q(e),!Kf(e)){await Xf(e,{recursive:!0});return}const r=await zf(e),n=mr(t);for(const i of r)await Qf(Nt(D(e),i),n)},"emptyDir");var Jf=Object.defineProperty,_i=(e,t)=>Jf(e,"name",{value:t,configurable:!0});const Zf=F(import.meta.url),St=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ep=_i(e=>{if(typeof St<"u"&&St.versions&&St.versions.node){const[t,r]=St.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return St.getBuiltinModule(e)}return Zf(e)},"__cjs_getBuiltinModule"),{existsSync:tp,mkdirSync:rp,readdirSync:np,rmSync:op}=ep("node:fs");var ip=Object.defineProperty,sp=_i((e,t)=>ip(e,"name",{value:t,configurable:!0}),"o");sp((e,t)=>{if(q(e),!tp(e)){rp(e,{recursive:!0});return}const r=mr(t);for(const n of np(e))op(Nt(D(e),n),r)},"emptyDirSync");var ap=Object.defineProperty,Ai=(e,t)=>ap(e,"name",{value:t,configurable:!0});const up=F(import.meta.url),Et=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,cp=Ai(e=>{if(typeof Et<"u"&&Et.versions&&Et.versions.node){const[t,r]=Et.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Et.getBuiltinModule(e)}return up(e)},"__cjs_getBuiltinModule"),{unlink:lp,rm:fp}=cp("node:fs/promises");var pp=Object.defineProperty,gp=Ai((e,t)=>pp(e,"name",{value:t,configurable:!0}),"i");gp(async(e,t={})=>{q(e);try{await lp(e)}catch{}try{await fp(e,mr(t))}catch{}},"remove");var hp=Object.defineProperty,xi=(e,t)=>hp(e,"name",{value:t,configurable:!0});const dp=F(import.meta.url),Ot=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yp=xi(e=>{if(typeof Ot<"u"&&Ot.versions&&Ot.versions.node){const[t,r]=Ot.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Ot.getBuiltinModule(e)}return dp(e)},"__cjs_getBuiltinModule"),{unlinkSync:$p,rmSync:bp}=yp("node:fs");var mp=Object.defineProperty,vp=xi((e,t)=>mp(e,"name",{value:t,configurable:!0}),"o");vp((e,t={})=>{q(e);try{$p(e)}catch{}try{bp(e,mr(t))}catch{}},"removeSync");var wp=Object.defineProperty,Sp=(e,t)=>wp(e,"name",{value:t,configurable:!0});F(import.meta.url);const Ep=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,{platform:Op}=Ep;var _p=Object.defineProperty,Ie=Sp((e,t)=>_p(e,"name",{value:t,configurable:!0}),"l");const We="unnamed",Ap=128,ao={'"':"ˮ","*":"⁎","/":"⁄",":":"꞉","<":"‹",">":"›","?":"ʔ","\\":"∖","|":"ǀ"},xp=/[\u0000-\u001F\u0080-\u009F]/g,Pp=/^(?:\.+[/\\]+)+|^\.+$/g,Hr=/^(?:con|prn|aux|nul|com\d|lpt\d)$/i,Rp=/[<>:"/\\|?*]/g,Tp=/\//g,Ct=new Set([" "," ","."]),It=Ie((e,t)=>t>0&&t<e.length-1,"hasExtension"),kp=Ie((e,t)=>{const r=e.lastIndexOf(".");if(!It(e,r))return e.slice(0,t);const n=e.slice(0,r),i=e.slice(r),s=t-i.length;return s>0?`${n.slice(0,s)}${i}`:e.slice(0,t)},"truncateWithExtension"),uo=Ie(e=>{let t=0,r=e.length;for(;t<r;){const n=e[t];if(n===void 0||!Ct.has(n))break;t+=1}for(;r>t;){const n=e[r-1];if(n===void 0||!Ct.has(n))break;r-=1}return e.slice(t,r)},"trimSpacesAndPeriods"),jp=Ie(e=>{const t=e.lastIndexOf(".");if(It(e,t)){const n=e.slice(0,t),i=e.slice(t);let s=n;for(;s.length>0;){const o=s.at(-1);if(o===void 0||!Ct.has(o))break;s=s.slice(0,-1)}return s.length===0?i.slice(1):`${s}${i}`}let r=e;for(;r.length>0;){const n=r.at(-1);if(n===void 0||!Ct.has(n))break;r=r.slice(0,-1)}return r},"cleanWindowsName"),Cp=Ie(e=>{const t=e.lastIndexOf(".");if(It(e,t))return!1;if(Hr.test(e))return!0;let r=e;for(;r.length>0;){const n=r.at(-1);if(n===void 0||!Ct.has(n))break;r=r.slice(0,-1)}return!!(r.length>0&&Hr.test(r))},"isWindowsReservedName"),Np=Ie(e=>{const t=e.lastIndexOf(".");if(It(e,t)){const i=e.slice(0,t),s=e.slice(t),o=uo(i);return o.length===0?void 0:`${o}${s}`}const r=e.trim();if(r.length>0&&r[0]==="."&&r.length<=5&&r.indexOf(".",1)===-1)return;const n=uo(e);if(n.length!==0)return n},"cleanFat32Name"),Mp=Ie(e=>{const t=e?.filesystem??"auto";return t==="auto"?Op==="win32"?"win32":"unix":t==="darwin"?"unix":t},"getFileSystemType");Ie((e,t)=>{if(typeof e!="string"||e.length===0)return We;const r=Mp(t);let n=e;if(n=n.replace(xp,""),n.length===0||(n=n.replace(Pp,""),n.length===0))return We;if(r==="win32"||r==="fat32"){const s=n.lastIndexOf(".");if(!It(n,s)&&Hr.test(n))return We}if(n=r==="win32"||r==="fat32"?n.replaceAll(Rp,s=>ao[s]??""):n.replaceAll(Tp,ao["/"]),n=n.trim(),(r==="win32"||r==="fat32")&&(Cp(n)||r==="win32"&&(n=jp(n),n.length===0)))return We;if(r==="fat32"){const s=Np(n);if(s===void 0)return We;n=s}if(n.length===0)return We;const i=t?.maxLength??Ap;return n.length>i&&(n=kp(n,i),n.length===0)?We:n},"sanitize");var Bp=Object.defineProperty,Lp=(e,t)=>Bp(e,"name",{value:t,configurable:!0}),Dp=Object.defineProperty,Fp=Lp((e,t)=>Dp(e,"name",{value:t,configurable:!0}),"e");const Pi=Fp(e=>{if(typeof e!="string"&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");var Ip=Object.defineProperty,Hp=(e,t)=>Ip(e,"name",{value:t,configurable:!0}),Gp=Object.defineProperty,Up=Hp((e,t)=>Gp(e,"name",{value:t,configurable:!0}),"f");const Wp=new TextEncoder,Ri=Up(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return Wp.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e)){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},"toUint8Array");var qp=Object.defineProperty,Ti=(e,t)=>qp(e,"name",{value:t,configurable:!0});const Kp=F(import.meta.url),_t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Xp=Ti(e=>{if(typeof _t<"u"&&_t.versions&&_t.versions.node){const[t,r]=_t.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return _t.getBuiltinModule(e)}return Kp(e)},"__cjs_getBuiltinModule"),{mkdir:zp,writeFile:Qp,stat:Vp,rename:co,chown:Yp,chmod:Jp,unlink:Zp}=Xp("node:fs/promises");var eg=Object.defineProperty,tg=Ti((e,t)=>eg(e,"name",{value:t,configurable:!0}),"d");const rg=tg(async(e,t,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},q(e),Pi(t),e=D(e);const n=`${e}.tmp`;try{const i=await Ce(e,Ve);if(!i&&r.recursive){const o=ie(e);await Ce(o,Ve)||await zp(o,{recursive:!0})}let s;if(await Qp(n,Ri(t),{encoding:r.encoding,flag:r.flag}),i&&!r.overwrite&&(s=await Vp(e),r.chown??={gid:s.gid,uid:s.uid},await co(e,`${e}.bak`)),r.chown)try{await Yp(n,r.chown.uid,r.chown.gid)}catch{}await Jp(n,s&&!r.mode?s.mode:r.mode??438),await co(n,e)}catch(i){throw new Error(`Failed to write file at: ${e} - ${i.message}`,{cause:i})}finally{await Ce(n)&&await Zp(`${e}.tmp`)}},"writeFile");var ng=Object.defineProperty,ki=(e,t)=>ng(e,"name",{value:t,configurable:!0});const og=F(import.meta.url),At=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ig=ki(e=>{if(typeof At<"u"&&At.versions&&At.versions.node){const[t,r]=At.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return At.getBuiltinModule(e)}return og(e)},"__cjs_getBuiltinModule"),{mkdirSync:sg,writeFileSync:ag,statSync:ug,renameSync:lo,chownSync:cg,chmodSync:lg,unlinkSync:fg}=ig("node:fs");var pg=Object.defineProperty,gg=ki((e,t)=>pg(e,"name",{value:t,configurable:!0}),"f");const hg=gg((e,t,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},q(e),Pi(t),e=D(e);const n=`${e}.tmp`;try{const i=_e(e,Ve);if(!i&&r.recursive){const o=ie(e);_e(o,Ve)||sg(o,{recursive:!0})}let s;if(ag(n,Ri(t),{encoding:r.encoding,flag:r.flag}),i&&!r.overwrite&&(s=ug(e),r.chown??={gid:s.gid,uid:s.uid},lo(e,`${e}.bak`)),r.chown)try{cg(n,r.chown.uid,r.chown.gid)}catch{}lg(n,s&&!r.mode?s.mode:r.mode??438),lo(n,e)}catch(i){throw new Error(`Failed to write file at: ${e} - ${i.message}`,{cause:i})}finally{_e(n)&&fg(`${e}.tmp`)}},"writeFileSync");var dg=Object.defineProperty,He=(e,t)=>dg(e,"name",{value:t,configurable:!0}),yg=Object.defineProperty,Xe=He((e,t)=>yg(e,"name",{value:t,configurable:!0}),"i");const $g=/^(?:( )+|\t+)/,Ht="space";function rr(e,t,r){return e&&t===Ht&&r===1}He(rr,"I");Xe(rr,"shouldIgnoreSingleSpace");function nr(e,t){const r=new Map;let n=0,i,s;for(const o of e.split(/\n/g)){if(!o)continue;const a=o.match($g);if(a===null)n=0,i="";else{const u=a[0].length,f=a[1]?Ht:"tab";if(rr(t,f,u))continue;f!==i&&(n=0),i=f;let c=1,p=0;const d=u-n;if(n=u,d===0)c=0,p=1;else{const S=Math.abs(d);if(rr(t,f,S))continue;s=An(f,S)}const b=r.get(s);r.set(s,b===void 0?[1,0]:[b[0]+c,b[1]+p])}}return r}He(nr,"h");Xe(nr,"makeIndentsMap");function An(e,t){return(e===Ht?"s":"t")+String(t)}He(An,"m");Xe(An,"encodeIndentsKey");function xn(e){const t=e[0]==="s"?Ht:"tab",r=Number(e.slice(1));return{type:t,amount:r}}He(xn,"_");Xe(xn,"decodeIndentsKey");function Pn(e){let t,r=0,n=0;for(const[i,[s,o]]of e)(s>r||s===r&&o>n)&&(r=s,n=o,t=i);return t}He(Pn,"k");Xe(Pn,"getMostUsedKey");function Rn(e,t){return(e===Ht?" ":" ").repeat(t)}He(Rn,"D");Xe(Rn,"makeIndentString");function vr(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=nr(e,!0);t.size===0&&(t=nr(e,!1));const r=Pn(t);let n,i=0,s="";return r!==void 0&&({type:n,amount:i}=xn(r),s=Rn(n,i)),{amount:i,type:n,indent:s}}He(vr,"C");Xe(vr,"detectIndent");var bg=Object.defineProperty,ji=(e,t)=>bg(e,"name",{value:t,configurable:!0});const mg=F(import.meta.url),xt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vg=ji(e=>{if(typeof xt<"u"&&xt.versions&&xt.versions.node){const[t,r]=xt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return xt.getBuiltinModule(e)}return mg(e)},"__cjs_getBuiltinModule"),{readFile:wg}=vg("node:fs/promises");var Sg=Object.defineProperty,Eg=ji((e,t)=>Sg(e,"name",{value:t,configurable:!0}),"r");const lh=Eg(async(e,t,r={})=>{const{detectIndent:n,indent:i,replacer:s,stringify:o=JSON.stringify,...a}={indent:" ",...r};let u=i,f=`
23
+ `;if(await Ce(e,or))try{const p=await wg(e,"utf8");if(n){const{indent:d}=vr(p);u=d}f=p.endsWith(`
24
+ `)?`
25
+ `:""}catch(p){if(p.code!=="ENOENT")throw p}const c=o(t,s,u);await rg(e,`${c}${f}`,a)},"writeJson");var Og=Object.defineProperty,Ci=(e,t)=>Og(e,"name",{value:t,configurable:!0});const _g=F(import.meta.url),Pt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ag=Ci(e=>{if(typeof Pt<"u"&&Pt.versions&&Pt.versions.node){const[t,r]=Pt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Pt.getBuiltinModule(e)}return _g(e)},"__cjs_getBuiltinModule"),{readFileSync:xg}=Ag("node:fs");var Pg=Object.defineProperty,Rg=Ci((e,t)=>Pg(e,"name",{value:t,configurable:!0}),"r");const Tg=Rg((e,t,r={})=>{const{detectIndent:n,indent:i,replacer:s,stringify:o=JSON.stringify,...a}={indent:" ",...r};let u=i,f=`
26
+ `;if(_e(e,or))try{const p=xg(e,"utf8");if(n){const{indent:d}=vr(p);u=d}f=p.endsWith(`
27
+ `)?`
28
+ `:""}catch(p){if(p.code!=="ENOENT")throw p}const c=o(t,s,u);hg(e,`${c}${f}`,a)},"writeJsonSync");var kg=Object.defineProperty,Ni=(e,t)=>kg(e,"name",{value:t,configurable:!0});const jg=F(import.meta.url),Rt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Tn=Ni(e=>{if(typeof Rt<"u"&&Rt.versions&&Rt.versions.node){const[t,r]=Rt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Rt.getBuiltinModule(e)}return jg(e)},"__cjs_getBuiltinModule"),Cg=Tn("fs"),Ng=Tn("os"),Mg=Tn("path");var Bg=Object.defineProperty,Lg=Ni((e,t)=>Bg(e,"name",{value:t,configurable:!0}),"a"),Dg=Object.defineProperty,wr=Lg((e,t)=>Dg(e,"name",{value:t,configurable:!0}),"s");const Mi=wr(e=>{let t="";for(let r=0;r<e.length;r+=1){const n=e[r],i=n.toUpperCase();t+=n===i?n.toLowerCase():i}return t},"invertCase"),jr=new Map,fo=wr((e,t)=>{const r=Mg.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(r,""),!t.existsSync(Mi(r))}finally{try{t.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),Fg=wr((e,t,r)=>{try{return fo(e,r)}catch(n){if(t===void 0)return fo(Ng.tmpdir(),r);throw n}},"checkDirectoryCaseWithFallback");wr((e,t=Cg,r=!0)=>{const n=e??process.cwd();if(r&&jr.has(n))return jr.get(n);let i;const s=Mi(n);return s!==n&&t.existsSync(n)?i=!t.existsSync(s):i=Fg(n,e,t),r&&jr.set(n,i),i},"isFsCaseSensitive");const fh=(e,t,r,n)=>{try{let i={};const s=Nt(t,"keystore.json");n&&_e(s)&&(i=_n(s)),Object.hasOwn(i,e)||(i[e]=new Date().toISOString()),Tg(s,i,{overwrite:!0})}catch(i){r.debug({context:[i],message:i instanceof Error?i.message:String(i),prefix:"cache-key-store"})}};export{qg as E,nh as F,Gg as H,Xg as I,lh as J,zg as K,rh as N,Jl as P,Tg as S,hg as T,ch as _,Wl as a,rg as b,_n as c,Ce as d,Kg as e,fh as f,xe as g,Qg as h,th as i,Ug as j,Yg as k,oh as l,ih as m,Vg as n,Jg as o,ir as p,Wg as q,qr as r,_e as s,wi as t,br as u};
@@ -0,0 +1 @@
1
+ import{j as s,t as a}from"./oxcTransformPlugin-Dwvbw2jE-BSBF_-9X.js";export{s as oxcResolvePlugin,a as oxcTransformPlugin};