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

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.
@@ -0,0 +1,185 @@
1
+ var Jh=Object.defineProperty;var f=(t,e)=>Jh(t,"name",{value:e,configurable:!0});import{createFilter as Uc}from"@rollup/pluginutils";import Qh,{createRequire as X}from"node:module";import{installPackage as Zh}from"@antfu/install-pkg";import{V as se,P as z,A as st,L as Fe,B as Is,X as Hc,_ as Pr,b as Kc,M as qc,R as ed}from"./utils-nmTpa3um.js";import td from"node:url";import rd from"util";import{ResolverFactory as nd}from"oxc-resolver";import{EXCLUDE_REGEXP as sd}from"@visulima/packem-share/constants";const $r=0,Ys=4,Wc=Symbol("findUpStop"),id=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;var od=Object.defineProperty,ad=f((t,e)=>od(t,"name",{value:e,configurable:!0}),"t$z"),ud=Object.defineProperty,cd=ad((t,e)=>ud(t,"name",{value:e,configurable:!0}),"t"),ld=Object.defineProperty,fd=cd((t,e)=>ld(t,"name",{value:e,configurable:!0}),"n");const oe=fd(t=>{if(!t||!(t instanceof URL)&&typeof t!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var pd=Object.defineProperty,hd=f((t,e)=>pd(t,"name",{value:e,configurable:!0}),"i$R"),dd=Object.defineProperty,md=hd((t,e)=>dd(t,"name",{value:e,configurable:!0}),"r"),gd=Object.defineProperty,yd=md((t,e)=>gd(t,"name",{value:e,configurable:!0}),"i");const ft=yd(t=>{if(t.isFile())return"file";if(t.isDirectory())return"dir";if(t.isSymbolicLink())return"symlink"},"getFileInfoType");var bd=Object.defineProperty,vd=f((t,e)=>bd(t,"name",{value:e,configurable:!0}),"i$Q"),Dd=Object.defineProperty,Vc=vd((t,e)=>Dd(t,"name",{value:e,configurable:!0}),"s");const Ed=X(import.meta.url),qr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$d=Vc(t=>{if(typeof qr<"u"&&qr.versions&&qr.versions.node){const[e,r]=qr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return qr.getBuiltinModule(t)}return Ed(t)},"__cjs_getBuiltinModule"),{lstat:Bu,mkdir:Ad}=$d("node:fs/promises");var Cd=Object.defineProperty,wd=Vc((t,e)=>Cd(t,"name",{value:e,configurable:!0}),"o");const ca=wd(async t=>{oe(t);try{const e=await Bu(t);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(ft(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{await Ad(t,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const r=await Bu(t);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(ft(r))}'`,{cause:e})}},"ensureDir");var Sd=Object.defineProperty,Fd=f((t,e)=>Sd(t,"name",{value:e,configurable:!0}),"i$P"),Od=Object.defineProperty,Yc=Fd((t,e)=>Od(t,"name",{value:e,configurable:!0}),"s");const Pd=X(import.meta.url),Wr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Nd=Yc(t=>{if(typeof Wr<"u"&&Wr.versions&&Wr.versions.node){const[e,r]=Wr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Wr.getBuiltinModule(t)}return Pd(t)},"__cjs_getBuiltinModule"),{lstatSync:Iu,mkdirSync:xd}=Nd("node:fs");var Ld=Object.defineProperty,kd=Yc((t,e)=>Ld(t,"name",{value:e,configurable:!0}),"o");const la=kd(t=>{oe(t);try{const e=Iu(t);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(ft(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{xd(t,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const r=Iu(t);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(ft(r))}'`,{cause:e})}},"ensureDirSync");var Bd=Object.defineProperty,Id=f((t,e)=>Bd(t,"name",{value:e,configurable:!0}),"i$O"),Rd=Object.defineProperty,zc=Id((t,e)=>Rd(t,"name",{value:e,configurable:!0}),"t");const _d=X(import.meta.url),Vr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Td=zc(t=>{if(typeof Vr<"u"&&Vr.versions&&Vr.versions.node){const[e,r]=Vr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Vr.getBuiltinModule(t)}return _d(t)},"__cjs_getBuiltinModule"),{lstat:jd,writeFile:Md}=Td("node:fs/promises");var Gd=Object.defineProperty,Ud=zc((t,e)=>Gd(t,"name",{value:e,configurable:!0}),"o");Ud(async t=>{oe(t);try{const e=await jd(t);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(ft(e))}'`)}catch(e){if(e.code==="ENOENT"){await ca(se(z(t))),await Md(t,new Uint8Array);return}throw e}},"ensureFile");var Hd=Object.defineProperty,Kd=f((t,e)=>Hd(t,"name",{value:e,configurable:!0}),"i$N"),qd=Object.defineProperty,Xc=Kd((t,e)=>qd(t,"name",{value:e,configurable:!0}),"t");const Wd=X(import.meta.url),Yr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vd=Xc(t=>{if(typeof Yr<"u"&&Yr.versions&&Yr.versions.node){const[e,r]=Yr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Yr.getBuiltinModule(t)}return Wd(t)},"__cjs_getBuiltinModule"),{lstatSync:Yd,writeFileSync:zd}=Vd("node:fs");var Xd=Object.defineProperty,Jd=Xc((t,e)=>Xd(t,"name",{value:e,configurable:!0}),"o");Jd(t=>{oe(t);try{const e=Yd(t);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(ft(e))}'`)}catch(e){if(e.code==="ENOENT"){la(se(z(t))),zd(t,new Uint8Array);return}throw e}},"ensureFileSync");var Qd=Object.defineProperty,Zd=f((t,e)=>Qd(t,"name",{value:e,configurable:!0}),"r$h"),em=Object.defineProperty,tm=Zd((t,e)=>em(t,"name",{value:e,configurable:!0}),"t"),rm=Object.defineProperty,nm=tm((t,e)=>rm(t,"name",{value:e,configurable:!0}),"d");const Ar=nm((t,e)=>!!e.ino&&!!e.dev&&e.ino===t.ino&&e.dev===t.dev,"isStatsIdentical");var sm=Object.defineProperty,im=f((t,e)=>sm(t,"name",{value:e,configurable:!0}),"i$L"),om=Object.defineProperty,Jc=im((t,e)=>om(t,"name",{value:e,configurable:!0}),"i");const am=X(import.meta.url),zr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,um=Jc(t=>{if(typeof zr<"u"&&zr.versions&&zr.versions.node){const[e,r]=zr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return zr.getBuiltinModule(t)}return am(t)},"__cjs_getBuiltinModule"),{lstat:Ru,link:cm}=um("node:fs/promises");var lm=Object.defineProperty,fm=Jc((t,e)=>lm(t,"name",{value:e,configurable:!0}),"i");fm(async(t,e)=>{oe(t),oe(e),t=st(z(t)),e=st(z(e));let r;try{r=await Ru(e)}catch{}let n;try{n=await Ru(t)}catch(s){const i=s;throw i.message=i.message.replace("lstat","ensureLink"),i}r&&Ar(n,r)||(await ca(se(e)),await cm(t,e))},"ensureLink");var pm=Object.defineProperty,hm=f((t,e)=>pm(t,"name",{value:e,configurable:!0}),"i$K"),dm=Object.defineProperty,Qc=hm((t,e)=>dm(t,"name",{value:e,configurable:!0}),"n");const mm=X(import.meta.url),Xr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,gm=Qc(t=>{if(typeof Xr<"u"&&Xr.versions&&Xr.versions.node){const[e,r]=Xr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Xr.getBuiltinModule(t)}return mm(t)},"__cjs_getBuiltinModule"),{lstatSync:_u,linkSync:ym}=gm("node:fs");var bm=Object.defineProperty,vm=Qc((t,e)=>bm(t,"name",{value:e,configurable:!0}),"m");vm((t,e)=>{oe(t),oe(e),t=st(z(t)),e=st(z(e));let r;try{r=_u(e)}catch{}let n;try{n=_u(t)}catch(s){const i=s;throw i.message=i.message.replace("lstat","ensureLink"),i}r&&Ar(n,r)||(la(se(e)),ym(t,e))},"ensureLinkSync");var Dm=Object.defineProperty,Em=f((t,e)=>Dm(t,"name",{value:e,configurable:!0}),"a$P"),$m=Object.defineProperty,Am=Em((t,e)=>$m(t,"name",{value:e,configurable:!0}),"o"),Cm=Object.defineProperty,wm=Am((t,e)=>Cm(t,"name",{value:e,configurable:!0}),"i");const Zc=wm((t,e)=>typeof t!="string"?t:t.startsWith("./")?Fe(t):typeof e=="string"?Fe(se(e),t):new URL(t,e),"resolveSymlinkTarget");var Sm=Object.defineProperty,el=f((t,e)=>Sm(t,"name",{value:e,configurable:!0}),"t$u"),Fm=Object.defineProperty,tl=el((t,e)=>Fm(t,"name",{value:e,configurable:!0}),"t"),Om=Object.defineProperty,Pm=tl((t,e)=>Om(t,"name",{value:e,configurable:!0}),"t");let Rs=class extends Error{static{f(this,"i")}static{el(this,"E")}static{tl(this,"n")}static{Pm(this,"AlreadyExistsError")}constructor(e){super(`EEXIST: ${e}`)}get code(){return"EEXIST"}set code(e){throw new Error("Cannot overwrite code EEXIST")}get name(){return"AlreadyExistsError"}set name(e){throw new Error("Cannot overwrite name of AlreadyExistsError")}};var Nm=Object.defineProperty,xm=f((t,e)=>Nm(t,"name",{value:e,configurable:!0}),"p$z"),Lm=Object.defineProperty,rl=xm((t,e)=>Lm(t,"name",{value:e,configurable:!0}),"m");const km=X(import.meta.url),Jr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Bm=rl(t=>{if(typeof Jr<"u"&&Jr.versions&&Jr.versions.node){const[e,r]=Jr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Jr.getBuiltinModule(t)}return km(t)},"__cjs_getBuiltinModule"),{lstat:to,stat:bs,symlink:Im,readlink:Rm}=Bm("node:fs/promises");var _m=Object.defineProperty,Tm=rl((t,e)=>_m(t,"name",{value:e,configurable:!0}),"m");const jm=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);Tm(async(t,e,r)=>{oe(t),oe(e);const n=Zc(t,e);e=st(z(e));try{if((await to(e)).isSymbolicLink()&&Ar(await bs(n),await bs(e))){const[a,u]=await Promise.all([bs(n),bs(e)]);if(Ar(a,u))return}}catch{}const s=await to(n),i=ft(s);await ca(se(e));let o=r??"file";r||(jm?o="junction":o=i==="dir"?"dir":"file");try{await Im(st(z(n)),e,o)}catch(a){if(a.code!=="EEXIST")throw a;const u=await to(e);if(!u.isSymbolicLink())throw new Rs(`A ${String(ft(u))} already exists at the path: ${e}`);const c=await Rm(e),l=st(Fe(c));if(l!==n)throw new Rs(`A symlink targeting to an undesired path already exists: ${e} -> ${l}`)}},"ensureSymlink");var Mm=Object.defineProperty,Gm=f((t,e)=>Mm(t,"name",{value:e,configurable:!0}),"p$y"),Um=Object.defineProperty,nl=Gm((t,e)=>Um(t,"name",{value:e,configurable:!0}),"m");const Hm=X(import.meta.url),Qr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Km=nl(t=>{if(typeof Qr<"u"&&Qr.versions&&Qr.versions.node){const[e,r]=Qr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Qr.getBuiltinModule(t)}return Hm(t)},"__cjs_getBuiltinModule"),{lstatSync:ro,statSync:vs,symlinkSync:qm,readlinkSync:Wm}=Km("node:fs");var Vm=Object.defineProperty,Ym=nl((t,e)=>Vm(t,"name",{value:e,configurable:!0}),"p");const zm=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);Ym((t,e,r)=>{oe(t),oe(e);const n=Zc(t,e);e=st(z(e));try{if(ro(e).isSymbolicLink()&&Ar(vs(n),vs(e))){const a=vs(n),u=vs(e);if(Ar(a,u))return}}catch{}const s=ro(n),i=ft(s);la(se(e));let o=r??"file";r||(zm?o="junction":o=i==="dir"?"dir":"file");try{qm(st(z(n)),e,o)}catch(a){if(a.code!=="EEXIST")throw a;const u=ro(e);if(!u.isSymbolicLink())throw new Rs(`A ${String(ft(u))} already exists at the path: ${e}`);const c=Wm(e),l=st(Fe(c));if(l!==n)throw new Rs(`A symlink targeting to an undesired path already exists: ${e} -> ${l}`)}},"ensureSymlinkSync");var Xm=Object.defineProperty,Jm=f((t,e)=>Xm(t,"name",{value:e,configurable:!0}),"l$x"),Qm=Object.defineProperty,Zm=Jm((t,e)=>Qm(t,"name",{value:e,configurable:!0}),"c");X(import.meta.url);var eg=Object.defineProperty,sl=Zm((t,e)=>eg(t,"name",{value:e,configurable:!0}),"r");const il=/\r?\n/g,tg=`
2
+ `,Tu=`\r
3
+ `;sl(t=>{const e=t.match(il);if(!e||e.length===0)return null;const r=e.filter(s=>s===Tu).length,n=e.length-r;return r>n?Tu:tg},"detect");sl((t,e)=>t.replaceAll(il,e),"format");var rg=Object.defineProperty,ol=f((t,e)=>rg(t,"name",{value:e,configurable:!0}),"t$s"),ng=Object.defineProperty,al=ol((t,e)=>ng(t,"name",{value:e,configurable:!0}),"t"),sg=Object.defineProperty,ig=al((t,e)=>sg(t,"name",{value:e,configurable:!0}),"t");let _s=class extends Error{static{f(this,"l")}static{ol(this,"c")}static{al(this,"i")}static{ig(this,"WalkError")}root;constructor(e,r){super(`${e instanceof Error?e.message:String(e)} for path "${r}"`),this.cause=e,this.root=r}get name(){return"WalkError"}set name(e){throw new Error("Cannot overwrite name of WalkError")}};var og=Object.defineProperty,ag=f((t,e)=>og(t,"name",{value:e,configurable:!0}),"n$t"),ug=Object.defineProperty,ul=ag((t,e)=>ug(t,"name",{value:e,configurable:!0}),"t"),cg=Object.defineProperty,lg=ul((t,e)=>cg(t,"name",{value:e,configurable:!0}),"g");const Ts=lg(t=>{const e=t.replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`).replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!(.*?)\]/g,"[^$1]");return new RegExp(`^${e}$`)},"globToRegExp");var fg=Object.defineProperty,pg=ul((t,e)=>fg(t,"name",{value:e,configurable:!0}),"n");const Nt=pg((t,e,r,n)=>Array.isArray(e)&&e.length>0&&!e.some(s=>t.endsWith(s))||r&&!r.some(s=>s.test(t))?!1:!n?.some(s=>s.test(t)),"walkInclude");var hg=Object.defineProperty,cl=f((t,e)=>hg(t,"name",{value:e,configurable:!0}),"u$M"),dg=Object.defineProperty,fa=cl((t,e)=>dg(t,"name",{value:e,configurable:!0}),"y");const mg=X(import.meta.url),Zr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,gg=fa(t=>{if(typeof Zr<"u"&&Zr.versions&&Zr.versions.node){const[e,r]=Zr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Zr.getBuiltinModule(t)}return mg(t)},"__cjs_getBuiltinModule"),{readdir:yg,realpath:bg,stat:vg}=gg("node:fs/promises");var Dg=Object.defineProperty,qe=fa((t,e)=>Dg(t,"name",{value:e,configurable:!0}),"r");const Eg=qe(async t=>{const e=Is(t),r=Hc(e),n=await vg(e);return{isDirectory:qe(()=>n.isDirectory(),"isDirectory"),isFile:qe(()=>n.isFile(),"isFile"),isSymbolicLink:qe(()=>n.isSymbolicLink(),"isSymbolicLink"),name:r,path:e}},"_createWalkEntry");async function*qn(t,{extensions:e,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:s=!0,includeSymlinks:i=!0,match:o,maxDepth:a=Number.POSITIVE_INFINITY,skip:u}={}){if(oe(t),a<0)return;const c=o?o.map(p=>typeof p=="string"?Ts(p):p):void 0,l=u?u.map(p=>typeof p=="string"?Ts(p):p):void 0;if(t=Fe(z(t)),n&&Nt(t,e,c,l)&&(yield await Eg(t)),!(a<1||!Nt(t,void 0,void 0,l)))try{const p=await yg(t,{withFileTypes:!0});for(const h of p){let g=Pr(t,h.name);if(h.isSymbolicLink())if(r)g=await bg(g);else if(i&&Nt(g,e,c,l)){yield{isDirectory:qe(()=>h.isDirectory(),"isDirectory"),isFile:qe(()=>h.isFile(),"isFile"),isSymbolicLink:qe(()=>h.isSymbolicLink(),"isSymbolicLink"),name:h.name,path:g};continue}else continue;h.isDirectory()?yield*qn(g,{extensions:e,followSymlinks:r,includeDirs:n,includeFiles:s,includeSymlinks:i,match:c,maxDepth:a-1,skip:l}):h.isFile()&&s&&Nt(g,e,c,l)&&(yield{isDirectory:qe(()=>h.isDirectory(),"isDirectory"),isFile:qe(()=>h.isFile(),"isFile"),isSymbolicLink:qe(()=>h.isSymbolicLink(),"isSymbolicLink"),name:h.name,path:g})}}catch(p){throw p instanceof _s?p:new _s(p,t)}}f(qn,"f$F");cl(qn,"D");fa(qn,"g");qe(qn,"walk");var $g=Object.defineProperty,Ag=f((t,e)=>$g(t,"name",{value:e,configurable:!0}),"t$q"),Cg=Object.defineProperty,wg=Ag((t,e)=>Cg(t,"name",{value:e,configurable:!0}),"a"),Sg=Object.defineProperty,Fg=wg((t,e)=>Sg(t,"name",{value:e,configurable:!0}),"e");Fg(async(t,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const r=[];for await(const n of qn(t,e))r.push(n.path);return r},"collect");var Og=Object.defineProperty,ll=f((t,e)=>Og(t,"name",{value:e,configurable:!0}),"p$v"),Pg=Object.defineProperty,pa=ll((t,e)=>Pg(t,"name",{value:e,configurable:!0}),"m");const Ng=X(import.meta.url),en=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,xg=pa(t=>{if(typeof en<"u"&&en.versions&&en.versions.node){const[e,r]=en.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return en.getBuiltinModule(t)}return Ng(t)},"__cjs_getBuiltinModule"),{readdirSync:Lg,realpathSync:kg,statSync:Bg}=xg("node:fs");var Ig=Object.defineProperty,We=pa((t,e)=>Ig(t,"name",{value:e,configurable:!0}),"t");const Rg=We(t=>{const e=Is(t),r=Bg(e);return{isDirectory:We(()=>r.isDirectory(),"isDirectory"),isFile:We(()=>r.isFile(),"isFile"),isSymbolicLink:We(()=>r.isSymbolicLink(),"isSymbolicLink"),name:Hc(e),path:e}},"_createWalkEntry");function*Wn(t,{extensions:e,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:s=!0,includeSymlinks:i=!0,match:o,maxDepth:a=Number.POSITIVE_INFINITY,skip:u}={}){if(oe(t),a<0)return;const c=o?o.map(p=>typeof p=="string"?Ts(p):p):void 0,l=u?u.map(p=>typeof p=="string"?Ts(p):p):void 0;if(t=Fe(z(t)),n&&Nt(t,e,c,l)&&(yield Rg(t)),!(a<1||!Nt(t,void 0,void 0,l)))try{const p=Lg(t,{withFileTypes:!0});for(const h of p){let g=Pr(t,h.name);if(h.isSymbolicLink())if(r)g=kg(g);else if(i&&Nt(g,e,c,l)){yield{isDirectory:We(()=>h.isDirectory(),"isDirectory"),isFile:We(()=>h.isFile(),"isFile"),isSymbolicLink:We(()=>h.isSymbolicLink(),"isSymbolicLink"),name:h.name,path:Is(g)};continue}else continue;h.isDirectory()?yield*Wn(g,{extensions:e,followSymlinks:r,includeDirs:n,includeFiles:s,includeSymlinks:i,match:c,maxDepth:a-1,skip:l}):h.isFile()&&s&&Nt(g,e,c,l)&&(yield{isDirectory:We(()=>h.isDirectory(),"isDirectory"),isFile:We(()=>h.isFile(),"isFile"),isSymbolicLink:We(()=>h.isSymbolicLink(),"isSymbolicLink"),name:h.name,path:Is(g)})}}catch(p){throw p instanceof _s?p:new _s(p,t)}}f(Wn,"y$u");ll(Wn,"F");pa(Wn,"b");We(Wn,"walkSync");var _g=Object.defineProperty,Tg=f((t,e)=>_g(t,"name",{value:e,configurable:!0}),"t$p"),jg=Object.defineProperty,Mg=Tg((t,e)=>jg(t,"name",{value:e,configurable:!0}),"s"),Gg=Object.defineProperty,Ug=Mg((t,e)=>Gg(t,"name",{value:e,configurable:!0}),"n");Ug((t,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const r=[];for(const n of Wn(t,e))r.push(n.path);return r},"collectSync");var Hg=Object.defineProperty,Kg=f((t,e)=>Hg(t,"name",{value:e,configurable:!0}),"p$u"),qg=Object.defineProperty,fl=Kg((t,e)=>qg(t,"name",{value:e,configurable:!0}),"a");const Wg=X(import.meta.url),tn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,pl=fl(t=>{if(typeof tn<"u"&&tn.versions&&tn.versions.node){const[e,r]=tn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return tn.getBuiltinModule(t)}return Wg(t)},"__cjs_getBuiltinModule"),{stat:Vg,lstat:Yg}=pl("node:fs/promises"),{fileURLToPath:zg}=pl("node:url");var Xg=Object.defineProperty,ju=fl((t,e)=>Xg(t,"name",{value:e,configurable:!0}),"n");const hl=ju(async(t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=e.cwd?z(e.cwd):process.cwd();let n=Fe(r);const{root:s}=Kc(n),i=z(e.stopAt??s),o=Fe(n,i),a=e.type??"file",u=ju(async function(l){return typeof t=="function"?[await t(l)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");e.allowSymlinks??=!0;const c=e.allowSymlinks?Vg:Yg;for(;n&&n!==o&&n!==s;){const l=await u(n);for(let p of l){if(p===Wc)return;if(p===void 0)continue;Buffer.isBuffer(p)?p=p.toString():p instanceof URL&&(p=zg(p));const h=qc(p)?p:Fe(n,p);try{const g=await c(h);if(a==="file"&&g.isFile()||a==="directory"&&g.isDirectory())return h}catch{}}n=se(n)}},"findUp");var Jg=Object.defineProperty,Qg=f((t,e)=>Jg(t,"name",{value:e,configurable:!0}),"u$L"),Zg=Object.defineProperty,dl=Qg((t,e)=>Zg(t,"name",{value:e,configurable:!0}),"i");const e0=X(import.meta.url),rn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ml=dl(t=>{if(typeof rn<"u"&&rn.versions&&rn.versions.node){const[e,r]=rn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return rn.getBuiltinModule(t)}return e0(t)},"__cjs_getBuiltinModule"),{statSync:t0,lstatSync:r0}=ml("node:fs"),{fileURLToPath:n0}=ml("node:url");var s0=Object.defineProperty,Mu=dl((t,e)=>s0(t,"name",{value:e,configurable:!0}),"o");const gl=Mu((t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=e.cwd?z(e.cwd):process.cwd();let n=Fe(r);const{root:s}=Kc(n),i=z(e.stopAt??s),o=Fe(n,i),a=e.type??"file",u=Mu(function(l){return typeof t=="function"?[t(l)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");e.allowSymlinks??=!0;const c=e.allowSymlinks?t0:r0;for(;n&&n!==o&&n!==s;){for(let l of u(n)){if(l===Wc)return;if(l===void 0)continue;Buffer.isBuffer(l)?l=l.toString():l instanceof URL&&(l=n0(l));const p=qc(l)?l:Fe(n,l);try{const h=c(p);if(a==="file"&&h.isFile()||a==="directory"&&h.isDirectory())return p}catch{}}n=se(n)}},"findUpSync");var i0=Object.defineProperty,Nr=f((t,e)=>i0(t,"name",{value:e,configurable:!0}),"r$e"),o0=Object.defineProperty,xr=Nr((t,e)=>o0(t,"name",{value:e,configurable:!0}),"r"),a0=Object.defineProperty,Cr=xr((t,e)=>a0(t,"name",{value:e,configurable:!0}),"t");function Lr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}f(Lr,"p$t");Nr(Lr,"f");xr(Lr,"getDefaultExportFromCjs");Cr(Lr,"getDefaultExportFromCjs");function ha(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}f(ha,"f$D");Nr(ha,"l");xr(ha,"getDefaultExportFromNamespaceIfPresent");Cr(ha,"getDefaultExportFromNamespaceIfPresent");function da(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")&&Object.keys(t).length===1?t.default:t}f(da,"l$t");Nr(da,"s");xr(da,"getDefaultExportFromNamespaceIfNotNamed");Cr(da,"getDefaultExportFromNamespaceIfNotNamed");function ma(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=Cr(xr(Nr(f(function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"u"),"n"),"a"),"a");r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:Cr(function(){return t[n]},"get")})}),r}f(ma,"s$H");Nr(ma,"m");xr(ma,"getAugmentedNamespace");Cr(ma,"getAugmentedNamespace");var u0=Object.defineProperty,Rt=f((t,e)=>u0(t,"name",{value:e,configurable:!0}),"lt$1"),c0=Object.defineProperty,Ye=Rt((t,e)=>c0(t,"name",{value:e,configurable:!0}),"ut"),Gu={},no,Uu;function kr(){if(Uu)return no;Uu=1;const t="[^\\\\/]",e=Symbol("unignore"),r="\\.",n="\\+",s="\\?",i="\\/",o="(?=.)",a="[^/]",u=`(?:${i}|$)`,c=`(?:^|${i})`,l=`${r}{1,2}${u}`,p=`(?!${r})`,h=`(?!${c}${l})`,g=`(?!${r}{0,1}${u})`,b=`(?!${l})`,m=`[^.${i}]`,v=`${a}*?`,E="/",C={DOT_LITERAL:r,PLUS_LITERAL:n,QMARK_LITERAL:s,SLASH_LITERAL:i,ONE_CHAR:o,QMARK:a,END_ANCHOR:u,DOTS_SLASH:l,NO_DOT:p,NO_DOTS:h,NO_DOT_SLASH:g,NO_DOTS_SLASH:b,QMARK_NO_DOT:m,STAR:v,START_ANCHOR:c,SEP:E},y={...C,SLASH_LITERAL:"[\\\\/]",QMARK:t,STAR:`${t}*?`,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:"\\"},D={__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 no={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:D,UNIGNORE:e,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(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?y:C}},no}f(kr,"_t$1");Rt(kr,"bt");Ye(kr,"requireConstants");var Hu;function Br(){return Hu||(Hu=1,(function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:s}=kr();t.isObject=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),t.hasRegexChars=i=>n.test(i),t.isRegexChar=i=>i.length===1&&t.hasRegexChars(i),t.escapeRegex=i=>i.replace(s,"\\$1"),t.toPosixSlashes=i=>i.replace(e,"/"),t.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const i=navigator.platform.toLowerCase();return i==="win32"||i==="windows"}return process.platform?process.platform==="win32":!1},t.removeBackslashes=i=>i.replace(r,o=>o==="\\"?"":o),t.escapeLast=(i,o,a)=>{const u=i.lastIndexOf(o,a);return u===-1?i:i[u-1]==="\\"?t.escapeLast(i,o,u-1):`${i.slice(0,u)}\\${i.slice(u)}`},t.removePrefix=(i,o={})=>{let a=i;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},t.wrapOutput=(i,o={},a={})=>{const u=a.contains?"":"^",c=a.contains?"":"$";let l=`${u}(?:${i})${c}`;return o.negated===!0&&(l=`(?:^(?!${l}).*$)`),l},t.basename=(i,{windows:o}={})=>{const a=i.split(o?/[\\/]/:"/"),u=a[a.length-1];return u===""?a[a.length-2]:u}})(Gu)),Gu}f(Br,"Et$1");Rt(Br,"yt");Ye(Br,"requireUtils");var so,Ku;function ga(){if(Ku)return so;Ku=1;var t=Object.defineProperty,e=Ye((D,w)=>t(D,"name",{value:w,configurable:!0}),"k");const r=Br(),{CHAR_ASTERISK:n,CHAR_AT:s,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:o,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:g,CHAR_QUESTION_MARK:b,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:v,CHAR_RIGHT_SQUARE_BRACKET:E}=kr(),C=e(D=>D===c||D===i,"isPathSeparator"),y=e(D=>{D.isPrefix!==!0&&(D.depth=D.isGlobstar?1/0:1)},"depth");return so=e((D,w)=>{const d=w||{},$=D.length-1,A=d.parts===!0||d.scanToEnd===!0,P=[],x=[],R=[];let M=D,Ce=-1,me=0,Je=0,Pe=!1,Qe=!1,ae=!1,mt=!1,Ut=!1,Ze=!1,ee=!1,et=!1,Ht=!1,Ne=!1,we=0,Be,H,V={value:"",depth:0,isGlob:!1};const O=e(()=>Ce>=$,"eos"),Le=e(()=>M.charCodeAt(Ce+1),"peek"),ge=e(()=>(Be=H,M.charCodeAt(++Ce)),"advance");for(;Ce<$;){H=ge();let J;if(H===i){ee=V.backslashes=!0,H=ge(),H===l&&(Ze=!0);continue}if(Ze===!0||H===l){for(we++;O()!==!0&&(H=ge());){if(H===i){ee=V.backslashes=!0,ge();continue}if(H===l){we++;continue}if(Ze!==!0&&H===a&&(H=ge())===a){if(Pe=V.isBrace=!0,ae=V.isGlob=!0,Ne=!0,A===!0)continue;break}if(Ze!==!0&&H===o){if(Pe=V.isBrace=!0,ae=V.isGlob=!0,Ne=!0,A===!0)continue;break}if(H===m&&(we--,we===0)){Ze=!1,Pe=V.isBrace=!0,Ne=!0;break}}if(A===!0)continue;break}if(H===c){if(P.push(Ce),x.push(V),V={value:"",depth:0,isGlob:!1},Ne===!0)continue;if(Be===a&&Ce===me+1){me+=2;continue}Je=Ce+1;continue}if(d.noext!==!0&&(H===g||H===s||H===n||H===b||H===u)&&Le()===p){if(ae=V.isGlob=!0,mt=V.isExtglob=!0,Ne=!0,H===u&&Ce===me&&(Ht=!0),A===!0){for(;O()!==!0&&(H=ge());){if(H===i){ee=V.backslashes=!0,H=ge();continue}if(H===v){ae=V.isGlob=!0,Ne=!0;break}}continue}break}if(H===n){if(Be===n&&(Ut=V.isGlobstar=!0),ae=V.isGlob=!0,Ne=!0,A===!0)continue;break}if(H===b){if(ae=V.isGlob=!0,Ne=!0,A===!0)continue;break}if(H===h){for(;O()!==!0&&(J=ge());){if(J===i){ee=V.backslashes=!0,ge();continue}if(J===E){Qe=V.isBracket=!0,ae=V.isGlob=!0,Ne=!0;break}}if(A===!0)continue;break}if(d.nonegate!==!0&&H===u&&Ce===me){et=V.negated=!0,me++;continue}if(d.noparen!==!0&&H===p){if(ae=V.isGlob=!0,A===!0){for(;O()!==!0&&(H=ge());){if(H===p){ee=V.backslashes=!0,H=ge();continue}if(H===v){Ne=!0;break}}continue}break}if(ae===!0){if(Ne=!0,A===!0)continue;break}}d.noext===!0&&(mt=!1,ae=!1);let he=M,S="",F="";me>0&&(S=M.slice(0,me),M=M.slice(me),Je-=me),he&&ae===!0&&Je>0?(he=M.slice(0,Je),F=M.slice(Je)):ae===!0?(he="",F=M):he=M,he&&he!==""&&he!=="/"&&he!==M&&C(he.charCodeAt(he.length-1))&&(he=he.slice(0,-1)),d.unescape===!0&&(F&&(F=r.removeBackslashes(F)),he&&ee===!0&&(he=r.removeBackslashes(he)));const je={prefix:S,input:D,start:me,base:he,glob:F,isBrace:Pe,isBracket:Qe,isGlob:ae,isExtglob:mt,isGlobstar:Ut,negated:et,negatedExtglob:Ht};if(d.tokens===!0&&(je.maxDepth=0,C(H)||x.push(V),je.tokens=x),d.parts===!0||d.tokens===!0){let J;for(let ue=0;ue<P.length;ue++){const gt=J?J+1:me,Ie=P[ue],wt=D.slice(gt,Ie);d.tokens&&(ue===0&&me!==0?(x[ue].isPrefix=!0,x[ue].value=S):x[ue].value=wt,y(x[ue]),je.maxDepth+=x[ue].depth),(ue!==0||wt!=="")&&R.push(wt),J=Ie}if(J&&J+1<D.length){const ue=D.slice(J+1);R.push(ue),d.tokens&&(x[x.length-1].value=ue,y(x[x.length-1]),je.maxDepth+=x[x.length-1].depth)}je.slashes=P,je.parts=R}return je},"scan"),so}f(ga,"Nt$1");Rt(ga,"wt");Ye(ga,"requireScan");var io,qu;function ya(){if(qu)return io;qu=1;var t=Object.defineProperty,e=Ye((D,w)=>t(D,"name",{value:w,configurable:!0}),"y");const r=kr(),n=Br(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:u}=r,c=e((D,w)=>typeof w.expandRange=="function"?w.expandRange(...D,w):(D.sort(),`[${D.join("-")}]`),"expandRange"),l=e((D,w)=>`Missing ${D}: "${w}" - use "\\\\${w}" to match literal characters`,"syntaxError"),p=e(D=>{const w=[];let d=0,$=0,A=0,P="",x=!1;for(const R of D){if(x===!0){P+=R,x=!1;continue}if(R==="\\"){P+=R,x=!0;continue}if(R==='"'){A=A===1?0:1,P+=R;continue}if(A===0){if(R==="[")d++;else if(R==="]"&&d>0)d--;else if(d===0){if(R==="(")$++;else if(R===")"&&$>0)$--;else if(R==="|"&&$===0){w.push(P),P="";continue}}}P+=R}return w.push(P),w},"splitTopLevel"),h=e(D=>{let w=!1;for(const d of D){if(w===!0){w=!1;continue}if(d==="\\"){w=!0;continue}if(/[?*+@!()[\]{}]/.test(d))return!1}return!0},"isPlainBranch"),g=e(D=>{let w=D.trim(),d=!0;for(;d===!0;)d=!1,/^@\([^\\()[\]{}|]+\)$/.test(w)&&(w=w.slice(2,-1),d=!0);if(h(w))return w.replace(/\\(.)/g,"$1")},"normalizeSimpleBranch"),b=e(D=>{const w=D.map(g).filter(Boolean);for(let d=0;d<w.length;d++)for(let $=d+1;$<w.length;$++){const A=w[d],P=w[$],x=A[0];if(!(!x||A!==x.repeat(A.length)||P!==x.repeat(P.length))&&(A===P||A.startsWith(P)||P.startsWith(A)))return!0}return!1},"hasRepeatedCharPrefixOverlap"),m=e((D,w=!0)=>{if(D[0]!=="+"&&D[0]!=="*"||D[1]!=="(")return;let d=0,$=0,A=0,P=!1;for(let x=1;x<D.length;x++){const R=D[x];if(P===!0){P=!1;continue}if(R==="\\"){P=!0;continue}if(R==='"'){A=A===1?0:1;continue}if(A!==1){if(R==="["){d++;continue}if(R==="]"&&d>0){d--;continue}if(!(d>0)){if(R==="("){$++;continue}if(R===")"&&($--,$===0))return w===!0&&x!==D.length-1?void 0:{type:D[0],body:D.slice(2,x),end:x}}}}},"parseRepeatedExtglob"),v=e(D=>{let w=0;const d=[];for(;w<D.length;){const $=m(D.slice(w),!1);if(!$||$.type!=="*")return;const A=p($.body).map(x=>x.trim());if(A.length!==1)return;const P=g(A[0]);if(!P||P.length!==1)return;d.push(P),w+=$.end+1}return d.length<1?void 0:`${d.length===1?n.escapeRegex(d[0]):`[${d.map($=>n.escapeRegex($)).join("")}]`}*`},"getStarExtglobSequenceOutput"),E=e(D=>{let w=0,d=D.trim(),$=m(d);for(;$;)w++,d=$.body.trim(),$=m(d);return w},"repeatedExtglobRecursion"),C=e((D,w)=>{if(w.maxExtglobRecursion===!1)return{risky:!1};const d=typeof w.maxExtglobRecursion=="number"?w.maxExtglobRecursion:r.DEFAULT_MAX_EXTGLOB_RECURSION,$=p(D).map(A=>A.trim());if($.length>1&&($.some(A=>A==="")||$.some(A=>/^[*?]+$/.test(A))||b($)))return{risky:!0};for(const A of $){const P=v(A);if(P)return{risky:!0,safeOutput:P};if(E(A)>d)return{risky:!0}}return{risky:!1}},"analyzeRepeatedExtglob"),y=e((D,w)=>{if(typeof D!="string")throw new TypeError("Expected a string");D=u[D]||D;const d={...w},$=typeof d.maxLength=="number"?Math.min(s,d.maxLength):s;let A=D.length;if(A>$)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${$}`);const P={type:"bos",value:"",output:d.prepend||""},x=[P],R=d.capture?"":"?:",M=r.globChars(d.windows),Ce=r.extglobChars(M),{DOT_LITERAL:me,PLUS_LITERAL:Je,SLASH_LITERAL:Pe,ONE_CHAR:Qe,DOTS_SLASH:ae,NO_DOT:mt,NO_DOT_SLASH:Ut,NO_DOTS_SLASH:Ze,QMARK:ee,QMARK_NO_DOT:et,STAR:Ht,START_ANCHOR:Ne}=M,we=e(B=>`(${R}(?:(?!${Ne}${B.dot?ae:me}).)*?)`,"globstar"),Be=d.dot?"":mt,H=d.dot?ee:et;let V=d.bash===!0?we(d):Ht;d.capture&&(V=`(${V})`),typeof d.noext=="boolean"&&(d.noextglob=d.noext);const O={input:D,index:-1,start:0,dot:d.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};D=n.removePrefix(D,O),A=D.length;const Le=[],ge=[],he=[];let S=P,F;const je=e(()=>O.index===A-1,"eos"),J=O.peek=(B=1)=>D[O.index+B],ue=O.advance=()=>D[++O.index]||"",gt=e(()=>D.slice(O.index+1),"remaining"),Ie=e((B="",ie=0)=>{O.consumed+=B,O.index+=ie},"consume"),wt=e(B=>{O.output+=B.output!=null?B.output:B.value,Ie(B.value)},"append"),zh=e(()=>{let B=1;for(;J()==="!"&&(J(2)!=="("||J(3)==="?");)ue(),O.start++,B++;return B%2===0?!1:(O.negated=!0,O.start++,!0)},"negate"),gs=e(B=>{O[B]++,he.push(B)},"increment"),St=e(B=>{O[B]--,he.pop()},"decrement"),q=e(B=>{if(S.type==="globstar"){const ie=O.braces>0&&(B.type==="comma"||B.type==="brace"),k=B.extglob===!0||Le.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!ie&&!k&&(O.output=O.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=V,O.output+=S.output)}if(Le.length&&B.type!=="paren"&&(Le[Le.length-1].inner+=B.value),(B.value||B.output)&&wt(B),S&&S.type==="text"&&B.type==="text"){S.output=(S.output||S.value)+B.value,S.value+=B.value;return}B.prev=S,x.push(B),S=B},"push"),ys=e((B,ie)=>{const k={...Ce[ie],conditions:1,inner:""};k.prev=S,k.parens=O.parens,k.output=O.output,k.startIndex=O.index,k.tokensIndex=x.length;const W=(d.capture?"(":"")+k.open;gs("parens"),q({type:B,value:ie,output:O.output?"":Qe}),q({type:"paren",extglob:!0,value:ue(),output:W}),Le.push(k)},"extglobOpen"),Xh=e(B=>{const ie=D.slice(B.startIndex,O.index+1),k=D.slice(B.startIndex+2,O.index),W=C(k,d);if((B.type==="plus"||B.type==="star")&&W.risky){const Q=W.safeOutput?(B.output?"":Qe)+(d.capture?`(${W.safeOutput})`:W.safeOutput):void 0,tt=x[B.tokensIndex];tt.type="text",tt.value=ie,tt.output=Q||n.escapeRegex(ie);for(let rt=B.tokensIndex+1;rt<x.length;rt++)x[rt].value="",x[rt].output="",delete x[rt].suffix;O.output=B.output+tt.output,O.backtrack=!0,q({type:"paren",extglob:!0,value:F,output:""}),St("parens");return}let pe=B.close+(d.capture?")":""),ye;if(B.type==="negate"){let Q=V;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(Q=we(d)),(Q!==V||je()||/^\)+$/.test(gt()))&&(pe=B.close=`)$))${Q}`),B.inner.includes("*")&&(ye=gt())&&/^\.[^\\/.]+$/.test(ye)){const tt=y(ye,{...w,fastpaths:!1}).output;pe=B.close=`)${tt})${Q})`}B.prev.type==="bos"&&(O.negatedExtglob=!0)}q({type:"paren",extglob:!0,value:F,output:pe}),St("parens")},"extglobClose");if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(D)){let B=!1,ie=D.replace(a,(k,W,pe,ye,Q,tt)=>ye==="\\"?(B=!0,k):ye==="?"?W?W+ye+(Q?ee.repeat(Q.length):""):tt===0?H+(Q?ee.repeat(Q.length):""):ee.repeat(pe.length):ye==="."?me.repeat(pe.length):ye==="*"?W?W+ye+(Q?V:""):V:W?k:`\\${k}`);return B===!0&&(d.unescape===!0?ie=ie.replace(/\\/g,""):ie=ie.replace(/\\+/g,k=>k.length%2===0?"\\\\":k?"\\":"")),ie===D&&d.contains===!0?(O.output=D,O):(O.output=n.wrapOutput(ie,O,w),O)}for(;!je();){if(F=ue(),F==="\0")continue;if(F==="\\"){const k=J();if(k==="/"&&d.bash!==!0||k==="."||k===";")continue;if(!k){F+="\\",q({type:"text",value:F});continue}const W=/^\\+/.exec(gt());let pe=0;if(W&&W[0].length>2&&(pe=W[0].length,O.index+=pe,pe%2!==0&&(F+="\\")),d.unescape===!0?F=ue():F+=ue(),O.brackets===0){q({type:"text",value:F});continue}}if(O.brackets>0&&(F!=="]"||S.value==="["||S.value==="[^")){if(d.posix!==!1&&F===":"){const k=S.value.slice(1);if(k.includes("[")&&(S.posix=!0,k.includes(":"))){const W=S.value.lastIndexOf("["),pe=S.value.slice(0,W),ye=S.value.slice(W+2),Q=i[ye];if(Q){S.value=pe+Q,O.backtrack=!0,ue(),!P.output&&x.indexOf(S)===1&&(P.output=Qe);continue}}}(F==="["&&J()!==":"||F==="-"&&J()==="]")&&(F=`\\${F}`),F==="]"&&(S.value==="["||S.value==="[^")&&(F=`\\${F}`),d.posix===!0&&F==="!"&&S.value==="["&&(F="^"),S.value+=F,wt({value:F});continue}if(O.quotes===1&&F!=='"'){F=n.escapeRegex(F),S.value+=F,wt({value:F});continue}if(F==='"'){O.quotes=O.quotes===1?0:1,d.keepQuotes===!0&&q({type:"text",value:F});continue}if(F==="("){gs("parens"),q({type:"paren",value:F});continue}if(F===")"){if(O.parens===0&&d.strictBrackets===!0)throw new SyntaxError(l("opening","("));const k=Le[Le.length-1];if(k&&O.parens===k.parens+1){Xh(Le.pop());continue}q({type:"paren",value:F,output:O.parens?")":"\\)"}),St("parens");continue}if(F==="["){if(d.nobracket===!0||!gt().includes("]")){if(d.nobracket!==!0&&d.strictBrackets===!0)throw new SyntaxError(l("closing","]"));F=`\\${F}`}else gs("brackets");q({type:"bracket",value:F});continue}if(F==="]"){if(d.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){q({type:"text",value:F,output:`\\${F}`});continue}if(O.brackets===0){if(d.strictBrackets===!0)throw new SyntaxError(l("opening","["));q({type:"text",value:F,output:`\\${F}`});continue}St("brackets");const k=S.value.slice(1);if(S.posix!==!0&&k[0]==="^"&&!k.includes("/")&&(F=`/${F}`),S.value+=F,wt({value:F}),d.literalBrackets===!1||n.hasRegexChars(k))continue;const W=n.escapeRegex(S.value);if(O.output=O.output.slice(0,-S.value.length),d.literalBrackets===!0){O.output+=W,S.value=W;continue}S.value=`(${R}${W}|${S.value})`,O.output+=S.value;continue}if(F==="{"&&d.nobrace!==!0){gs("braces");const k={type:"brace",value:F,output:"(",outputIndex:O.output.length,tokensIndex:O.tokens.length};ge.push(k),q(k);continue}if(F==="}"){const k=ge[ge.length-1];if(d.nobrace===!0||!k){q({type:"text",value:F,output:F});continue}let W=")";if(k.dots===!0){const pe=x.slice(),ye=[];for(let Q=pe.length-1;Q>=0&&(x.pop(),pe[Q].type!=="brace");Q--)pe[Q].type!=="dots"&&ye.unshift(pe[Q].value);W=c(ye,d),O.backtrack=!0}if(k.comma!==!0&&k.dots!==!0){const pe=O.output.slice(0,k.outputIndex),ye=O.tokens.slice(k.tokensIndex);k.value=k.output="\\{",F=W="\\}",O.output=pe;for(const Q of ye)O.output+=Q.output||Q.value}q({type:"brace",value:F,output:W}),St("braces"),ge.pop();continue}if(F==="|"){Le.length>0&&Le[Le.length-1].conditions++,q({type:"text",value:F});continue}if(F===","){let k=F;const W=ge[ge.length-1];W&&he[he.length-1]==="braces"&&(W.comma=!0,k="|"),q({type:"comma",value:F,output:k});continue}if(F==="/"){if(S.type==="dot"&&O.index===O.start+1){O.start=O.index+1,O.consumed="",O.output="",x.pop(),S=P;continue}q({type:"slash",value:F,output:Pe});continue}if(F==="."){if(O.braces>0&&S.type==="dot"){S.value==="."&&(S.output=me);const k=ge[ge.length-1];S.type="dots",S.output+=F,S.value+=F,k.dots=!0;continue}if(O.braces+O.parens===0&&S.type!=="bos"&&S.type!=="slash"){q({type:"text",value:F,output:me});continue}q({type:"dot",value:F,output:me});continue}if(F==="?"){if(!(S&&S.value==="(")&&d.noextglob!==!0&&J()==="("&&J(2)!=="?"){ys("qmark",F);continue}if(S&&S.type==="paren"){const k=J();let W=F;(S.value==="("&&!/[!=<:]/.test(k)||k==="<"&&!/<([!=]|\w+>)/.test(gt()))&&(W=`\\${F}`),q({type:"text",value:F,output:W});continue}if(d.dot!==!0&&(S.type==="slash"||S.type==="bos")){q({type:"qmark",value:F,output:et});continue}q({type:"qmark",value:F,output:ee});continue}if(F==="!"){if(d.noextglob!==!0&&J()==="("&&(J(2)!=="?"||!/[!=<:]/.test(J(3)))){ys("negate",F);continue}if(d.nonegate!==!0&&O.index===0){zh();continue}}if(F==="+"){if(d.noextglob!==!0&&J()==="("&&J(2)!=="?"){ys("plus",F);continue}if(S&&S.value==="("||d.regex===!1){q({type:"plus",value:F,output:Je});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||O.parens>0){q({type:"plus",value:F});continue}q({type:"plus",value:Je});continue}if(F==="@"){if(d.noextglob!==!0&&J()==="("&&J(2)!=="?"){q({type:"at",extglob:!0,value:F,output:""});continue}q({type:"text",value:F});continue}if(F!=="*"){(F==="$"||F==="^")&&(F=`\\${F}`);const k=o.exec(gt());k&&(F+=k[0],O.index+=k[0].length),q({type:"text",value:F});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=F,S.output=V,O.backtrack=!0,O.globstar=!0,Ie(F);continue}let B=gt();if(d.noextglob!==!0&&/^\([^?]/.test(B)){ys("star",F);continue}if(S.type==="star"){if(d.noglobstar===!0){Ie(F);continue}const k=S.prev,W=k.prev,pe=k.type==="slash"||k.type==="bos",ye=W&&(W.type==="star"||W.type==="globstar");if(d.bash===!0&&(!pe||B[0]&&B[0]!=="/")){q({type:"star",value:F,output:""});continue}const Q=O.braces>0&&(k.type==="comma"||k.type==="brace"),tt=Le.length&&(k.type==="pipe"||k.type==="paren");if(!pe&&k.type!=="paren"&&!Q&&!tt){q({type:"star",value:F,output:""});continue}for(;B.slice(0,3)==="/**";){const rt=D[O.index+4];if(rt&&rt!=="/")break;B=B.slice(3),Ie("/**",3)}if(k.type==="bos"&&je()){S.type="globstar",S.value+=F,S.output=we(d),O.output=S.output,O.globstar=!0,Ie(F);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&!ye&&je()){O.output=O.output.slice(0,-(k.output+S.output).length),k.output=`(?:${k.output}`,S.type="globstar",S.output=we(d)+(d.strictSlashes?")":"|$)"),S.value+=F,O.globstar=!0,O.output+=k.output+S.output,Ie(F);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&B[0]==="/"){const rt=B[1]!==void 0?"|$":"";O.output=O.output.slice(0,-(k.output+S.output).length),k.output=`(?:${k.output}`,S.type="globstar",S.output=`${we(d)}${Pe}|${Pe}${rt})`,S.value+=F,O.output+=k.output+S.output,O.globstar=!0,Ie(F+ue()),q({type:"slash",value:"/",output:""});continue}if(k.type==="bos"&&B[0]==="/"){S.type="globstar",S.value+=F,S.output=`(?:^|${Pe}|${we(d)}${Pe})`,O.output=S.output,O.globstar=!0,Ie(F+ue()),q({type:"slash",value:"/",output:""});continue}if(Q&&B[0]==="/"){S.type="globstar",S.value+=F,S.output=`(?:^|${Pe}|${we(d)}${Pe})`,O.output+=S.output,O.globstar=!0,Ie(F+ue()),q({type:"slash",value:"/",output:""});continue}O.output=O.output.slice(0,-S.output.length),S.type="globstar",S.output=we(d),S.value+=F,O.output+=S.output,O.globstar=!0,Ie(F);continue}const ie={type:"star",value:F,output:V};if(d.bash===!0){ie.output=".*?",(S.type==="bos"||S.type==="slash")&&(ie.output=Be+ie.output),q(ie);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&d.regex===!0){ie.output=F,q(ie);continue}(O.index===O.start||S.type==="slash"||S.type==="dot")&&(S.type==="dot"?(O.output+=Ut,S.output+=Ut):d.dot===!0?(O.output+=Ze,S.output+=Ze):(O.output+=Be,S.output+=Be),J()!=="*"&&(O.output+=Qe,S.output+=Qe)),q(ie)}for(;O.brackets>0;){if(d.strictBrackets===!0)throw new SyntaxError(l("closing","]"));O.output=n.escapeLast(O.output,"["),St("brackets")}for(;O.parens>0;){if(d.strictBrackets===!0)throw new SyntaxError(l("closing",")"));O.output=n.escapeLast(O.output,"("),St("parens")}for(;O.braces>0;){if(d.strictBrackets===!0)throw new SyntaxError(l("closing","}"));O.output=n.escapeLast(O.output,"{"),St("braces")}if(d.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket")&&q({type:"maybe_slash",value:"",output:`${Pe}?`}),O.backtrack===!0){O.output="";for(const B of O.tokens)O.output+=B.output!=null?B.output:B.value,B.suffix&&(O.output+=B.suffix)}return O},"parse");return y.fastpaths=(D,w)=>{const d={...w},$=typeof d.maxLength=="number"?Math.min(s,d.maxLength):s,A=D.length;if(A>$)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${$}`);D=u[D]||D;const{DOT_LITERAL:P,SLASH_LITERAL:x,ONE_CHAR:R,DOTS_SLASH:M,NO_DOT:Ce,NO_DOTS:me,NO_DOTS_SLASH:Je,STAR:Pe,START_ANCHOR:Qe}=r.globChars(d.windows),ae=d.dot?me:Ce,mt=d.dot?Je:Ce,Ut=d.capture?"":"?:",Ze={negated:!1,prefix:""};let ee=d.bash===!0?".*?":Pe;d.capture&&(ee=`(${ee})`);const et=e(Be=>Be.noglobstar===!0?ee:`(${Ut}(?:(?!${Qe}${Be.dot?M:P}).)*?)`,"globstar"),Ht=e(Be=>{switch(Be){case"*":return`${ae}${R}${ee}`;case".*":return`${P}${R}${ee}`;case"*.*":return`${ae}${ee}${P}${R}${ee}`;case"*/*":return`${ae}${ee}${x}${R}${mt}${ee}`;case"**":return ae+et(d);case"**/*":return`(?:${ae}${et(d)}${x})?${mt}${R}${ee}`;case"**/*.*":return`(?:${ae}${et(d)}${x})?${mt}${ee}${P}${R}${ee}`;case"**/.*":return`(?:${ae}${et(d)}${x})?${P}${R}${ee}`;default:{const H=/^(.*?)\.(\w+)$/.exec(Be);if(!H)return;const V=Ht(H[1]);return V?V+P+H[2]:void 0}}},"create"),Ne=n.removePrefix(D,Ze);let we=Ht(Ne);return we&&d.strictSlashes!==!0&&(we+=`${x}?`),we},io=y,io}f(ya,"It$1");Rt(ya,"Bt");Ye(ya,"requireParse");var oo,Wu;function ba(){if(Wu)return oo;Wu=1;var t=Object.defineProperty,e=Ye((u,c)=>t(u,"name",{value:c,configurable:!0}),"h");const r=ga(),n=ya(),s=Br(),i=kr(),o=e(u=>u&&typeof u=="object"&&!Array.isArray(u),"isObject"),a=e((u,c,l=!1)=>{if(Array.isArray(u)){const C=u.map(y=>a(y,c,l));return e(y=>{for(const D of C){const w=D(y);if(w)return w}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 h=c||{},g=h.windows,b=p?a.compileRe(u,c):a.makeRe(u,c,!1,!0),m=b.state;delete b.state;let v=e(()=>!1,"isIgnored");if(h.ignore){const C={...c,ignore:null,onMatch:null,onResult:null};v=a(h.ignore,C,l)}const E=e((C,y=!1)=>{const{isMatch:D,match:w,output:d}=a.test(C,b,c,{glob:u,posix:g}),$={glob:u,state:m,regex:b,posix:g,input:C,output:d,match:w,isMatch:D};if(typeof h.onResult=="function"&&h.onResult($),D===!1)return $.isMatch=!1,y?$:!1;e:if(v(C)){if(typeof h.onIgnore=="function"&&h.onIgnore($)===i.UNIGNORE){$.isMatch=!0;break e}return $.isMatch=!1,y?$:!1}return typeof h.onMatch=="function"&&h.onMatch($),y?$:!0},"matcher");return l&&(E.state=m),E},"picomatch");return a.test=(u,c,l,{glob:p,posix:h}={})=>{if(typeof u!="string")throw new TypeError("Expected input to be a string");if(u==="")return{isMatch:!1,output:""};const g=l||{},b=g.format||(h?s.toPosixSlashes:null);let m=u===p,v=m&&b?b(u):u;return m===!1&&(v=b?b(u):u,m=v===p),(m===!1||g.capture===!0)&&(g.matchBase===!0||g.basename===!0?m=a.matchBase(u,c,l,h):m=c.exec(v)),{isMatch:!!m,match:m,output:v}},a.matchBase=(u,c,l)=>(c instanceof RegExp?c:a.makeRe(c,l)).test(s.basename(u)),a.isMatch=(u,c,l)=>a(c,l)(u),a.parse=(u,c)=>Array.isArray(u)?u.map(l=>a.parse(l,c)):n(u,{...c,fastpaths:!1}),a.scan=(u,c)=>r(u,c),a.compileRe=(u,c,l=!1,p=!1)=>{if(l===!0)return u.output;const h=c||{},g=h.contains?"":"^",b=h.contains?"":"$";let m=`${g}(?:${u.output})${b}`;u&&u.negated===!0&&(m=`^(?!${m}).*$`);const v=a.toRegex(m,c);return p===!0&&(v.state=u),v},a.makeRe=(u,c={},l=!1,p=!1)=>{if(!u||typeof u!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(u[0]==="."||u[0]==="*")&&(h.output=n.fastpaths(u,c)),h.output||(h=n(u,c)),a.compileRe(h,c,l,p)},a.toRegex=(u,c)=>{try{const l=c||{};return new RegExp(u,l.flags||(l.nocase?"i":""))}catch(l){if(c&&c.debug===!0)throw l;return/$^/}},a.constants=i,oo=a,oo}f(ba,"wt");Rt(ba,"Gt");Ye(ba,"requirePicomatch$1");var ao,Vu;function va(){if(Vu)return ao;Vu=1;var t=Object.defineProperty,e=Ye((i,o)=>t(i,"name",{value:o,configurable:!0}),"c");const r=ba(),n=Br();function s(i,o,a=!1){return o&&(o.windows===null||o.windows===void 0)&&(o={...o,windows:n.isWindows()}),r(i,o,a)}return f(s,"D"),Rt(s,"D"),Ye(s,"picomatch"),e(s,"picomatch"),Object.assign(s,r),ao=s,ao}f(va,"Pt$1");Rt(va,"Mt");Ye(va,"requirePicomatch");var l0=va();const Et=Lr(l0);var f0=Object.defineProperty,j=f((t,e)=>f0(t,"name",{value:e,configurable:!0}),"u$K"),p0=Object.defineProperty,T=j((t,e)=>p0(t,"name",{value:e,configurable:!0}),"l");const h0=X(import.meta.url),nn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vn=T(t=>{if(typeof nn<"u"&&nn.versions&&nn.versions.node){const[e,r]=nn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return nn.getBuiltinModule(t)}return h0(t)},"__cjs_getBuiltinModule"),Yu=Vn("fs"),d0={...Yu,default:Yu},{statSync:m0,stat:g0,realpathSync:y0,realpath:b0,readdirSync:v0,readdir:D0}=Vn("fs"),{sep:yl,basename:E0,dirname:Ko,resolve:bl,normalize:$0,relative:A0,posix:Vt,isAbsolute:C0}=Vn("path"),{fileURLToPath:w0}=Vn("url"),{createRequire:S0}=Vn("module");var F0=Object.defineProperty,_=T((t,e)=>F0(t,"name",{value:e,configurable:!0}),"r"),zu=S0(import.meta.url);function zs(t){let e=$0(t);return e.length>1&&e[e.length-1]===yl&&(e=e.substring(0,e.length-1)),e}f(zs,"H$4");j(zs,"tt");T(zs,"M$1");_(zs,"cleanPath");const O0=/[\\/]/g;function Yn(t,e){return t.replace(O0,e)}f(Yn,"M$9");j(Yn,"T");T(Yn,"D$1");_(Yn,"convertSlashes");const P0=/^[a-z]:[\\/]$/i;function Xs(t){return t==="/"||P0.test(t)}f(Xs,"J$6");j(Xs,"et");T(Xs,"T$1");_(Xs,"isRootDirectory");function gr(t,e){const{resolvePaths:r,normalizePath:n,pathSeparator:s}=e,i=process.platform==="win32"&&t.includes("/")||t.startsWith(".");if(r&&(t=bl(t)),(n||i)&&(t=zs(t)),t===".")return"";const o=t[t.length-1]!==s;return Yn(o?t+s:t,s)}f(gr,"q$d");j(gr,"q");T(gr,"w");_(gr,"normalizePath");function zn(t,e){return e+t}f(zn,"B$c");j(zn,"I");T(zn,"P");_(zn,"joinPathWithBasePath");function Js(t,e){return function(r,n){return n.startsWith(t)?n.slice(t.length)+r:Yn(A0(t,n),e.pathSeparator)+e.pathSeparator+r}}f(Js,"K$4");j(Js,"st");T(Js,"X");_(Js,"joinPathWithRelativePath");function Qs(t){return t}f(Qs,"V$4");j(Qs,"rt");T(Qs,"H");_(Qs,"joinPath");function Zs(t,e,r){return e+t+r}f(Zs,"X$4");j(Zs,"nt");T(Zs,"U$1");_(Zs,"joinDirectoryPath");function ei(t,e){const{relativePaths:r,includeBasePath:n}=e;return r&&t?Js(t,e):n?zn:Qs}f(ei,"Z$2");j(ei,"it");T(ei,"J");_(ei,"build$7");function ti(t){return function(e,r){r.push(e.substring(t.length)||".")}}f(ti,"tt");j(ti,"ot");T(ti,"K$1");_(ti,"pushDirectoryWithRelativePath");function ri(t){return function(e,r,n){const s=e.substring(t.length)||".";n.every(i=>i(s,!0))&&r.push(s)}}f(ri,"et");j(ri,"ut");T(ri,"V");_(ri,"pushDirectoryFilterWithRelativePath");const N0=_((t,e)=>{e.push(t||".")},"pushDirectory"),x0=_((t,e,r)=>{const n=t||".";r.every(s=>s(n,!0))&&e.push(n)},"pushDirectoryFilter"),L0=_(()=>{},"empty$2");function ni(t,e){const{includeDirs:r,filters:n,relativePaths:s}=e;return r?s?n&&n.length?ri(t):ti(t):n&&n.length?x0:N0:L0}f(ni,"st");j(ni,"lt");T(ni,"st$1");_(ni,"build$6");const k0=_((t,e,r,n)=>{n.every(s=>s(t,!1))&&r.files++},"pushFileFilterAndCount"),B0=_((t,e,r,n)=>{n.every(s=>s(t,!1))&&e.push(t)},"pushFileFilter"),I0=_((t,e,r,n)=>{r.files++},"pushFileCount"),R0=_((t,e)=>{e.push(t)},"pushFile"),_0=_(()=>{},"empty$1");function si(t){const{excludeFiles:e,filters:r,onlyCounts:n}=t;return e?_0:r&&r.length?n?k0:B0:n?I0:R0}f(si,"it");j(si,"at");T(si,"ut$1");_(si,"build$5");const T0=_(t=>t,"getArray"),j0=_(()=>[""].slice(0,0),"getArrayGroup");function ii(t){return t.group?j0:T0}f(ii,"nt");j(ii,"ct");T(ii,"ct$1");_(ii,"build$4");const M0=_((t,e,r)=>{t.push({directory:e,files:r,dir:e})},"groupFiles"),G0=_(()=>{},"empty");function oi(t){return t.group?M0:G0}f(oi,"rt");j(oi,"ht");T(oi,"ft$1");_(oi,"build$3");const U0=_(function(t,e,r){const{queue:n,fs:s,options:{suppressErrors:i}}=e;n.enqueue(),s.realpath(t,(o,a)=>{if(o)return n.dequeue(i?null:o,e);s.stat(a,(u,c)=>{if(u)return n.dequeue(i?null:u,e);if(c.isDirectory()&&Xn(t,a,e))return n.dequeue(null,e);r(c,a),n.dequeue(null,e)})})},"resolveSymlinksAsync"),H0=_(function(t,e,r){const{queue:n,fs:s,options:{suppressErrors:i}}=e;n.enqueue();try{const o=s.realpathSync(t),a=s.statSync(o);if(a.isDirectory()&&Xn(t,o,e))return;r(a,o)}catch(o){if(!i)throw o}},"resolveSymlinks");function ai(t,e){return!t.resolveSymlinks||t.excludeSymlinks?null:e?H0:U0}f(ai,"ot");j(ai,"pt");T(ai,"gt$1");_(ai,"build$2");function Xn(t,e,r){if(r.options.useRealPaths)return ui(e,r);let n=Ko(t),s=1;for(;n!==r.root&&s<2;){const i=r.symlinks.get(n);i&&(i===e||i.startsWith(e)||e.startsWith(i))?s++:n=Ko(n)}return r.symlinks.set(t,e),s>1}f(Xn,"_$e");j(Xn,"L");T(Xn,"E$1");_(Xn,"isRecursive");function ui(t,e){return e.visited.includes(t+e.options.pathSeparator)}f(ui,"lt");j(ui,"ft");T(ui,"dt$1");_(ui,"isRecursiveUsingRealPaths");const K0=_(t=>t.counts,"onlyCountsSync"),q0=_(t=>t.groups,"groupsSync"),W0=_(t=>t.paths,"defaultSync"),V0=_(t=>t.paths.slice(0,t.options.maxFiles),"limitFilesSync"),Y0=_((t,e,r)=>(sr(e,r,t.counts,t.options.suppressErrors),null),"onlyCountsAsync"),z0=_((t,e,r)=>(sr(e,r,t.paths,t.options.suppressErrors),null),"defaultAsync"),X0=_((t,e,r)=>(sr(e,r,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),"limitFilesAsync"),J0=_((t,e,r)=>(sr(e,r,t.groups,t.options.suppressErrors),null),"groupsAsync");function sr(t,e,r,n){e(t&&!n?t:null,r)}f(sr,"A$c");j(sr,"j");T(sr,"y");_(sr,"report");function ci(t,e){const{onlyCounts:r,group:n,maxFiles:s}=t;return r?e?K0:Y0:n?e?q0:J0:s?e?V0:X0:e?W0:z0}f(ci,"at");j(ci,"gt");T(ci,"Et");_(ci,"build$1");const vl={withFileTypes:!0},Q0=_((t,e,r,n,s)=>{if(t.queue.enqueue(),n<0)return t.queue.dequeue(null,t);const{fs:i}=t;t.visited.push(e),t.counts.directories++,i.readdir(e||".",vl,(o,a=[])=>{s(a,r,n),t.queue.dequeue(t.options.suppressErrors?null:o,t)})},"walkAsync"),Z0=_((t,e,r,n,s)=>{const{fs:i}=t;if(n<0)return;t.visited.push(e),t.counts.directories++;let o=[];try{o=i.readdirSync(e||".",vl)}catch(a){if(!t.options.suppressErrors)throw a}s(o,r,n)},"walkSync");function li(t){return t?Z0:Q0}f(li,"ut");j(li,"yt");T(li,"xt$1");_(li,"build");var ey=class{static{f(this,"De")}static{j(this,"we")}static{T(this,"_t")}static{_(this,"Queue")}count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},ty=class{static{f(this,"Ae")}static{j(this,"$e")}static{T(this,"At")}static{_(this,"Counter")}_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},ry=class{static{f(this,"Ee")}static{j(this,"Se")}static{T(this,"Wt")}static{_(this,"Aborter")}aborted=!1;abort(){this.aborted=!0}},Dl=class{static{f(this,"Dt")}static{j(this,"mt")}static{T(this,"q")}static{_(this,"Walker")}root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(t,e,r){this.isSynchronous=!r,this.callbackInvoker=ci(e,this.isSynchronous),this.root=gr(t,e),this.state={root:Xs(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new ty,options:e,queue:new ey((n,s)=>this.callbackInvoker(s,n,r)),symlinks:new Map,visited:[""].slice(0,0),controller:new ry,fs:e.fs||d0},this.joinPath=ei(this.root,e),this.pushDirectory=ni(this.root,e),this.pushFile=si(e),this.getArray=ii(e),this.groupFiles=oi(e),this.resolveSymlink=ai(e,this.isSynchronous),this.walkDirectory=li(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=_((t,e,r)=>{const{paths:n,options:{filters:s,resolveSymlinks:i,excludeSymlinks:o,exclude:a,maxFiles:u,signal:c,useRealPaths:l,pathSeparator:p},controller:h}=this.state;if(h.aborted||c&&c.aborted||u&&n.length>u)return;const g=this.getArray(this.state.paths);for(let b=0;b<t.length;++b){const m=t[b];if(m.isFile()||m.isSymbolicLink()&&!i&&!o){const v=this.joinPath(m.name,e);this.pushFile(v,g,this.state.counts,s)}else if(m.isDirectory()){let v=Zs(m.name,e,this.state.options.pathSeparator);if(a&&a(m.name,v))continue;this.pushDirectory(v,n,s),this.walkDirectory(this.state,v,v,r-1,this.walk)}else if(this.resolveSymlink&&m.isSymbolicLink()){let v=zn(m.name,e);this.resolveSymlink(v,this.state,(E,C)=>{if(E.isDirectory()){if(C=gr(C,this.state.options),a&&a(m.name,l?C:v+p))return;this.walkDirectory(this.state,C,l?C:v+p,r-1,this.walk)}else{C=l?C:v;const y=E0(C),D=gr(Ko(C),this.state.options);C=this.joinPath(y,D),this.pushFile(C,g,this.state.counts,s)}})}}this.groupFiles(this.state.groups,e,g)},"walk")};function fi(t,e){return new Promise((r,n)=>{Jn(t,e,(s,i)=>{if(s)return n(s);r(i)})})}f(fi,"ct");j(fi,"bt");T(fi,"Ct");_(fi,"promise");function Jn(t,e,r){new Dl(t,e,r).start()}f(Jn,"T$g");j(Jn,"G");T(Jn,"x");_(Jn,"callback");function pi(t,e){return new Dl(t,e).start()}f(pi,"ht");j(pi,"vt");T(pi,"jt");_(pi,"sync");var Xu=class{static{f(this,"kt")}static{j(this,"J")}static{T(this,"F")}static{_(this,"APIBuilder")}constructor(t,e){this.root=t,this.options=e}withPromise(){return fi(this.root,this.options)}withCallback(t){Jn(this.root,this.options,t)}sync(){return pi(this.root,this.options)}};let El=null;try{zu.resolve("picomatch"),El=zu("picomatch")}catch{}var ny=class{static{f(this,"We")}static{j(this,"ke")}static{T(this,"$t")}static{_(this,"Builder")}globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:yl,filters:[]};globFunction;constructor(t){this.options={...this.options,...t},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(t){return this.options.pathSeparator=t,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(t){return this.options.maxDepth=t,this}withMaxFiles(t){return this.options.maxFiles=t,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:t=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=t,this.withFullPaths()}withAbortSignal(t){return this.options.signal=t,this}normalize(){return this.options.normalizePath=!0,this}filter(t){return this.options.filters.push(t),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(t){return this.options.exclude=t,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(t){return new Xu(t||".",this.options)}withGlobFunction(t){return this.globFunction=t,this}crawlWithOptions(t,e){return this.options={...this.options,...e},new Xu(t||".",this.options)}glob(...t){return this.globFunction?this.globWithOptions(t):this.globWithOptions(t,{dot:!0})}globWithOptions(t,...e){const r=this.globFunction||El;if(!r)throw new Error("Please specify a glob function to use glob matching.");var n=this.globCache[t.join("\0")];return n||(n=r(t,...e),this.globCache[t.join("\0")]=n),this.options.filters.push(s=>n(s)),this}},sy=Object.defineProperty,be=T((t,e)=>sy(t,"name",{value:e,configurable:!0}),"a");const iy=Array.isArray,$l=/\\/g,Al=process.platform==="win32",oy=/^(\/?\.\.)+$/;function xn(t,e={}){const r=t.length,n=Array(r),s=Array(r);let i,o;for(i=0;i<r;i++){const a=Qn(t[i]);n[i]=a;const u=a.length,c=Array(u);for(o=0;o<u;o++)c[o]=Et(a[o],e);s[i]=c}return a=>{const u=a.split("/");if(u[0]===".."&&oy.test(a))return!0;for(i=0;i<r;i++){const c=n[i],l=s[i],p=u.length,h=Math.min(p,c.length);for(o=0;o<h;){const g=c[o];if(g.includes("/"))return!0;if(!l[o](u[o]))break;if(!e.noglobstar&&g==="**")return!0;o++}if(o===p)return!0}return!1}}f(xn,"R$9");j(xn,"B");T(xn,"D");be(xn,"getPartialMatcher");const ay=/^[A-Z]:\/$/i,uy=Al?t=>ay.test(t):t=>t==="/";function Ln(t,e,r){if(t===e||e.startsWith(`${t}/`)){if(r){const s=t.length+ +!uy(t);return(i,o)=>i.slice(s,o?-1:void 0)||"."}const n=e.slice(t.length+1);return n?(s,i)=>{if(s===".")return n;const o=`${n}/${s}`;return i?o.slice(0,-1):o}:(s,i)=>i&&s!=="."?s.slice(0,-1):s}return r?n=>Vt.relative(t,n)||".":n=>Vt.relative(t,`${e}/${n}`)||"."}f(Ln,"O$e");j(Ln,"M");T(Ln,"M");be(Ln,"buildFormat");function hi(t,e){if(e.startsWith(`${t}/`)){const r=e.slice(t.length+1);return n=>`${r}/${n}`}return r=>{const n=Vt.relative(t,`${e}/${r}`);return r[r.length-1]==="/"&&n!==""?`${n}/`:n||"."}}f(hi,"pt");j(hi,"St");T(hi,"at");be(hi,"buildRelative");const cy={parts:!0};function Qn(t){var e;const r=Et.scan(t,cy);return!((e=r.parts)===null||e===void 0)&&e.length?r.parts:[t]}f(Qn,"I$c");j(Qn,"z");T(Qn,"N");be(Qn,"splitPattern");const ly=/\\(?![()[\]{}!+@])/g;function Da(t){return Cl(t)}f(Da,"qt");j(Da,"Ee");T(Da,"ut");be(Da,"convertPosixPathToPattern");function Ea(t){return wl(t).replace(ly,"/")}f(Ea,"jt");j(Ea,"Re");T(Ea,"ft");be(Ea,"convertWin32PathToPattern");const fy=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,py=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,Cl=be(t=>t.replace(fy,"\\$&"),"escapePosixPath"),wl=be(t=>t.replace(py,"\\$&"),"escapeWin32Path"),hy=Al?wl:Cl;function di(t,e){if(e?.caseSensitiveMatch===!1)return!0;const r=Et.scan(t);return r.isGlob||r.negated}f(di,"ft");j(di,"Dt");T(di,"k");be(di,"isDynamicPattern");function xt(...t){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...t)}f(xt,"D$7");j(xt,"D");T(xt,"E");be(xt,"log");function Zn(t){return typeof t=="string"?[t]:t??[]}f(Zn,"L$8");j(Zn,"U");T(Zn,"W");be(Zn,"ensureStringArray");const dy=/^(\/?\.\.)+/,my=/\\(?=[()[\]{}!*+?@|])/g;function yr(t,e,r,n){var s;const i=e.cwd;let o=t;t[t.length-1]==="/"&&(o=t.slice(0,-1));const a=o.lastIndexOf("/"),u=(a===-1?o:o.slice(a+1)).startsWith("!(");o[o.length-1]!=="*"&&!u&&e.expandDirectories&&(o+="/**");const c=hy(i);o=C0(o.replace(my,""))?Vt.relative(c,o):Vt.normalize(o);const l=(s=dy.exec(o))===null||s===void 0?void 0:s[0],p=Qn(o);if(l){const g=(l.length+1)/3;let b=0;const m=c.split("/");for(;b<g&&p[b+g]===m[m.length+b-g];)o=o.slice(0,(g-b-1)*3)+o.slice((g-b)*3+p[b+g].length+1)||".",b++;const v=Vt.join(i,l.slice(b*3));v[0]!=="."&&r.root.length>v.length&&(r.root=v,r.depthOffset=-g+b)}if(!n&&r.depthOffset>=0){var h;(h=r.commonPath)!==null&&h!==void 0||(r.commonPath=p);const g=[],b=Math.min(r.commonPath.length,p.length);for(let m=0;m<b;m++){const v=p[m];if(v==="**"&&!p[m+1]){g.pop();break}if(m===p.length-1||v!==r.commonPath[m]||di(v))break;g.push(v)}r.depthOffset=g.length,r.commonPath=g,r.root=g.length>0?Vt.join(i,...g):i}return o}f(yr,"j$j");j(yr,"E");T(yr,"$");be(yr,"normalizePattern");function mi(t,e,r){const n=[],s=[],i=[];for(const o of t.ignore)o&&(o[0]!=="!"||o[1]==="("?s.push(yr(o,t,r,!0)):i.push(o.slice(1)));for(const o of e)o&&(o[0]!=="!"||o[1]==="("?n.push(yr(o,t,r,!1)):(o[1]!=="!"||o[2]==="(")&&s.push(yr(o.slice(1),t,r,!0)));return{match:n,ignore:s,unignore:i}}f(mi,"gt");j(mi,"xt");T(mi,"St");be(mi,"processPatterns");function gi(t,e){const r=t.cwd,n={root:r,depthOffset:0},s=mi(t,e,n);t.debug&&xt("internal processing patterns:",s);const{absolute:i,caseSensitiveMatch:o,debug:a,dot:u,followSymbolicLinks:c,onlyDirectories:l}=t,p=n.root.replace($l,""),h={dot:u,nobrace:t.braceExpansion===!1,nocase:!o,noextglob:t.extglob===!1,noglobstar:t.globstar===!1,posix:!0},g=s.unignore.length>0,b=g?Et(s.unignore,h):void 0,m=g?xn(s.unignore,h):void 0,v=Et(s.match,{...h,ignore:s.ignore,onIgnore:b?P=>b(P.output)&&Et.constants.UNIGNORE:void 0}),E=Et(s.ignore,h),C=xn(s.match,h),y=Ln(r,p,i),D=i?y:Ln(r,p,!0),w=s.match.length>0&&s.match.every(P=>P==="**"||P==="**/*"),d=s.ignore.length>0||g||!w?(P,x)=>{const R=D(x,!0);return R==="."||m&&m(R)?!1:!C(R)||E(R)}:void 0;let $;t.deep!==void 0&&($=Math.round(t.deep-n.depthOffset));const A=new ny({filters:[a?(P,x)=>{const R=y(P,x),M=v(R);return M&&xt(`matched ${R}`),M}:(P,x)=>{const R=y(P,x);return v(R)}],exclude:a&&d?(P,x)=>{const R=d(P,x);return xt(`${R?"skipped":"crawling"} ${x}`),R}:d,fs:t.fs,pathSeparator:"/",relativePaths:!i,resolvePaths:i,includeBasePath:i,resolveSymlinks:c,excludeSymlinks:!c,excludeFiles:l,includeDirs:l||!t.onlyFiles,maxDepth:$,signal:t.signal}).crawl(p);return t.debug&&xt("internal properties:",{...n,root:p}),[A,r!==p&&!i&&hi(r,p)]}f(gi,"dt");j(gi,"At");T(gi,"vt");be(gi,"buildCrawler");function es(t,e){if(e)for(let r=t.length-1;r>=0;r--)t[r]=e(t[r]);return t}f(es,"z$6");j(es,"N");T(es,"U");be(es,"formatPaths");const gy={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function yi(t){const e={...gy,...t};return e.cwd=(e.cwd instanceof URL?w0(e.cwd):bl(e.cwd)).replace($l,"/"),e.ignore=Zn(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||D0,readdirSync:e.fs.readdirSync||v0,realpath:e.fs.realpath||b0,realpathSync:e.fs.realpathSync||y0,stat:e.fs.stat||g0,statSync:e.fs.statSync||m0}),e.debug&&xt("globbing with options:",e),e}f(yi,"yt");j(yi,"_t");T(yi,"pt");be(yi,"getOptions");function ts(t,e={}){var r;if(t&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const n=iy(t)||typeof t=="string",s=Zn((r=n?t:t.patterns)!==null&&r!==void 0?r:"**/*"),i=yi(n?e:t);return s.length>0?gi(i,s):[]}f(ts,"G$6");j(ts,"Q");T(ts,"G");be(ts,"getCrawler");async function bi(t,e){const[r,n]=ts(t,e);return r?es(await r.withPromise(),n):[]}f(bi,"mt");j(bi,"Ie");T(bi,"bt");be(bi,"glob");function vi(t,e){const[r,n]=ts(t,e);return r?es(r.sync(),n):[]}f(vi,"vt");j(vi,"Le");T(vi,"xt");be(vi,"globSync");var yy=Object.defineProperty,by=f((t,e)=>yy(t,"name",{value:e,configurable:!0}),"r$d"),vy=Object.defineProperty,Dy=by((t,e)=>vy(t,"name",{value:e,configurable:!0}),"r"),Ey=Object.defineProperty,$y=Dy((t,e)=>Ey(t,"name",{value:e,configurable:!0}),"r");const iS=$y(async(t,e)=>await bi(t,e),"glob");var Ay=Object.defineProperty,Cy=f((t,e)=>Ay(t,"name",{value:e,configurable:!0}),"r$c"),wy=Object.defineProperty,Sy=Cy((t,e)=>wy(t,"name",{value:e,configurable:!0}),"a"),Fy=Object.defineProperty,Oy=Sy((t,e)=>Fy(t,"name",{value:e,configurable:!0}),"n");Oy((t,e)=>vi(t,e),"globSync");var Py=Object.defineProperty,$a=f((t,e)=>Py(t,"name",{value:e,configurable:!0}),"o$s"),Ny=Object.defineProperty,Di=$a((t,e)=>Ny(t,"name",{value:e,configurable:!0}),"c"),uo,Ju;function Aa(){if(Ju)return uo;Ju=1;var t=Object.defineProperty,e=Di((r,n)=>t(r,"name",{value:n,configurable:!0}),"l");/*!
4
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
5
+ *
6
+ * Copyright (c) 2014-2016, Jon Schlinkert.
7
+ * Licensed under the MIT License.
8
+ */return uo=e(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"),uo}f(Aa,"h$m");$a(Aa,"q");Di(Aa,"requireIsExtglob");var co,Qu;function Ei(){if(Qu)return co;Qu=1;var t=Object.defineProperty,e=Di((o,a)=>t(o,"name",{value:a,configurable:!0}),"x");/*!
9
+ * is-glob <https://github.com/jonschlinkert/is-glob>
10
+ *
11
+ * Copyright (c) 2014-2017, Jon Schlinkert.
12
+ * Released under the MIT License.
13
+ */var r=Aa(),n={"{":"}","(":")","[":"]"},s=e(function(o){if(o[0]==="!")return!0;for(var a=0,u=-2,c=-2,l=-2,p=-2,h=-2;a<o.length;){if(o[a]==="*"||o[a+1]==="?"&&/[\].+)]/.test(o[a])||c!==-1&&o[a]==="["&&o[a+1]!=="]"&&(c<a&&(c=o.indexOf("]",a)),c>a&&(h===-1||h>c||(h=o.indexOf("\\",a),h===-1||h>c)))||l!==-1&&o[a]==="{"&&o[a+1]!=="}"&&(l=o.indexOf("}",a),l>a&&(h=o.indexOf("\\",a),h===-1||h>l))||p!==-1&&o[a]==="("&&o[a+1]==="?"&&/[:!=]/.test(o[a+2])&&o[a+3]!==")"&&(p=o.indexOf(")",a),p>a&&(h=o.indexOf("\\",a),h===-1||h>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&&(h=o.indexOf("\\",u),h===-1||h>p))))return!0;if(o[a]==="\\"){var g=o[a+1];a+=2;var b=n[g];if(b){var m=o.indexOf(b,a);m!==-1&&(a=m+1)}if(o[a]==="!")return!0}else a++}return!1},"strictCheck"),i=e(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 c=n[u];if(c){var l=o.indexOf(c,a);l!==-1&&(a=l+1)}if(o[a]==="!")return!0}else a++}return!1},"relaxedCheck");return co=e(function(o,a){if(typeof o!="string"||o==="")return!1;if(r(o))return!0;var u=s;return a&&a.strict===!1&&(u=i),u(o)},"isGlob"),co}f(Ei,"y$s");$a(Ei,"G");Di(Ei,"requireIsGlob");var xy=Object.defineProperty,js=f((t,e)=>xy(t,"name",{value:e,configurable:!0}),"s$F"),Ly=Object.defineProperty,br=js((t,e)=>Ly(t,"name",{value:e,configurable:!0}),"t");const ky=X(import.meta.url),sn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Sl=br(t=>{if(typeof sn<"u"&&sn.versions&&sn.versions.node){const[e,r]=sn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return sn.getBuiltinModule(t)}return ky(t)},"__cjs_getBuiltinModule"),By=Sl("path"),Iy=Sl("os");var lo,Zu;function Ca(){if(Zu)return lo;Zu=1;var t=Object.defineProperty,e=br((l,p)=>t(l,"name",{value:p,configurable:!0}),"n"),r=Ei(),n=By.posix.dirname,s=Iy.platform()==="win32",i="/",o=/\\/g,a=/\\([!*?|[\](){}])/g;lo=e(function(l,p){var h=Object.assign({flipBackslashes:!0},p);h.flipBackslashes&&s&&l.indexOf(i)<0&&(l=l.replace(o,i)),u(l)&&(l+=i),l+="a";do l=n(l);while(c(l));return l.replace(a,"$1")},"globParent");function u(l){var p=l.slice(-1),h;switch(p){case"}":h="{";break;case"]":h="[";break;default:return!1}var g=l.indexOf(h);return g<0?!1:l.slice(g+1,-1).includes(i)}f(u,"c"),js(u,"c"),br(u,"isEnclosure"),e(u,"isEnclosure");function c(l){return/\([^()]+$/.test(l)||l[0]==="{"||l[0]==="["||/[^\\][{[]/.test(l)?!0:r(l)}return f(c,"f"),js(c,"f"),br(c,"isGlobby"),e(c,"isGlobby"),lo}f(Ca,"d$w");js(Ca,"$");br(Ca,"requireGlobParent");var Ry=Ca();const _y=Lr(Ry);var Ty=Object.defineProperty,jy=br((t,e)=>Ty(t,"name",{value:e,configurable:!0}),"e");const oS=jy((t,e)=>_y(t,e),"globParent");var My=Object.defineProperty,Fl=f((t,e)=>My(t,"name",{value:e,configurable:!0}),"t$l"),Gy=Object.defineProperty,wa=Fl((t,e)=>Gy(t,"name",{value:e,configurable:!0}),"s");const Uy=X(import.meta.url),on=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Hy=wa(t=>{if(typeof on<"u"&&on.versions&&on.versions.node){const[e,r]=on.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return on.getBuiltinModule(t)}return Uy(t)},"__cjs_getBuiltinModule"),{access:Ky}=Hy("node:fs/promises");var qy=Object.defineProperty,Wy=wa((t,e)=>qy(t,"name",{value:e,configurable:!0}),"o");async function it(t,e=$r){oe(t),t=z(t);try{return await Ky(t,e),!0}catch{return!1}}f(it,"i$y");Fl(it,"d");wa(it,"m");Wy(it,"isAccessible");var Vy=Object.defineProperty,Ol=f((t,e)=>Vy(t,"name",{value:e,configurable:!0}),"t$k"),Yy=Object.defineProperty,Sa=Ol((t,e)=>Yy(t,"name",{value:e,configurable:!0}),"t");const zy=X(import.meta.url),an=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Xy=Sa(t=>{if(typeof an<"u"&&an.versions&&an.versions.node){const[e,r]=an.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return an.getBuiltinModule(t)}return zy(t)},"__cjs_getBuiltinModule"),{accessSync:Jy}=Xy("node:fs");var Qy=Object.defineProperty,Zy=Sa((t,e)=>Qy(t,"name",{value:e,configurable:!0}),"o");function ot(t,e=$r){oe(t),t=z(t);try{return Jy(t,e),!0}catch{return!1}}f(ot,"i$x");Ol(ot,"d");Sa(ot,"m");Zy(ot,"isAccessibleSync");var eb=Object.defineProperty,tb=f((t,e)=>eb(t,"name",{value:e,configurable:!0}),"a$H"),rb=Object.defineProperty,nb=tb((t,e)=>rb(t,"name",{value:e,configurable:!0}),"e"),sb=Ei();const ib=Lr(sb);var ob=Object.defineProperty,ab=nb((t,e)=>ob(t,"name",{value:e,configurable:!0}),"s");ab((t,e)=>ib(t,e),"isGlob");var ub=Object.defineProperty,cb=f((t,e)=>ub(t,"name",{value:e,configurable:!0}),"c$y"),lb=Object.defineProperty,fb=cb((t,e)=>lb(t,"name",{value:e,configurable:!0}),"o"),pb=Object.defineProperty,Pl=fb((t,e)=>pb(t,"name",{value:e,configurable:!0}),"i");Pl((t,e,r)=>{const n=Et(e,r);return Array.isArray(t)?t.some(s=>n(s)):n(t)},"match");Pl((t,e)=>{const r=Et(t,e);return n=>r(n)},"matcher");var hb=Object.defineProperty,Nl=f((t,e)=>hb(t,"name",{value:e,configurable:!0}),"v$k"),db=Object.defineProperty,Ir=Nl((t,e)=>db(t,"name",{value:e,configurable:!0}),"i");const mb=X(import.meta.url),pr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,xl=Ir(t=>{if(typeof pr<"u"&&pr.versions&&pr.versions.node){const[e,r]=pr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return pr.getBuiltinModule(t)}return mb(t)},"__cjs_getBuiltinModule"),{cwd:$i}=pr,{mkdir:gb,rename:yb,copyFile:bb,unlink:vb}=xl("node:fs/promises"),{mkdirSync:Db,renameSync:Eb,copyFileSync:$b,unlinkSync:Ab}=xl("node:fs");var Cb=Object.defineProperty,Ll=Ir((t,e)=>Cb(t,"name",{value:e,configurable:!0}),"o");let wb=class extends Error{static{f(this,"V")}static{Nl(this,"O")}static{Ir(this,"a")}static{Ll(this,"SameDirectoryError")}constructor(e,r){super(`Source directory "${se(e)}" does not match destination directory "${se(r)}"`),this.name="SameDirectoryError"}};const kl=Ll((t,e)=>{if(!t||!e)throw new Error("Source and destination paths must not be empty");if(se(t)!==se(e))throw new wb(t,e)},"validateSameDirectory");var Sb=Object.defineProperty,Fb=Ir((t,e)=>Sb(t,"name",{value:e,configurable:!0}),"m$1");const Bl=Fb(async(t,e,{cwd:r,directoryMode:n,overwrite:s,validateDirectory:i})=>{if(r&&(t=Fe(r,t),e=Fe(r,e)),i&&kl(t,e),!s&&await it(e))throw new Error(`The destination file exists: ${e}`);await gb(se(e),{mode:n,recursive:!0});try{await yb(t,e)}catch(o){if(o.code==="EXDEV")await bb(t,e),await vb(t);else throw o}},"internalMoveFile");var Ob=Object.defineProperty,Pb=Ir((t,e)=>Ob(t,"name",{value:e,configurable:!0}),"m");const Il=Pb((t,e,{cwd:r,directoryMode:n,overwrite:s,validateDirectory:i})=>{if(r&&(t=Fe(r,t),e=Fe(r,e)),i&&kl(t,e),!s&&ot(e))throw new Error(`The destination file exists: ${e}`);Db(se(e),{mode:n,recursive:!0});try{Eb(t,e)}catch(o){if(o.code==="EXDEV")$b(t,e),Ab(t);else throw o}},"internalMoveFileSync");var Nb=Object.defineProperty,Ai=Ir((t,e)=>Nb(t,"name",{value:e,configurable:!0}),"i");Ai(async(t,e,r={})=>{const n={overwrite:!0,validateDirectory:!1,...r,cwd:r.cwd?z(r.cwd):$i()};await Bl(t,e,n)},"move");Ai((t,e,r)=>{const n={overwrite:!0,validateDirectory:!1,...r};n.cwd=n.cwd?z(n.cwd):$i(),Il(t,e,n)},"moveSync");Ai(async(t,e,r)=>{const n={overwrite:!0,...r,validateDirectory:!0};n.cwd=n.cwd?z(n.cwd):$i(),await Bl(t,e,n)},"rename");Ai((t,e,r)=>{const n={overwrite:!0,...r,validateDirectory:!0};n.cwd=n.cwd?z(n.cwd):$i(),Il(t,e,n)},"renameSync");var xb=Object.defineProperty,Rl=f((t,e)=>xb(t,"name",{value:e,configurable:!0}),"t$i"),Lb=Object.defineProperty,_l=Rl((t,e)=>Lb(t,"name",{value:e,configurable:!0}),"t"),kb=Object.defineProperty,Bb=_l((t,e)=>kb(t,"name",{value:e,configurable:!0}),"o");let qo=class extends Error{static{f(this,"c")}static{Rl(this,"i")}static{_l(this,"n")}static{Bb(this,"PermissionError")}constructor(e){super(`EPERM: Operation not permitted, ${e}`)}get code(){return"EPERM"}set code(e){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(e){throw new Error("Cannot overwrite name of PermissionError")}};var Ib=Object.defineProperty,Rb=f((t,e)=>Ib(t,"name",{value:e,configurable:!0}),"f$x"),_b=Object.defineProperty,Tl=Rb((t,e)=>_b(t,"name",{value:e,configurable:!0}),"i");const Tb=X(import.meta.url),un=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,jl=Tl(t=>{if(typeof un<"u"&&un.versions&&un.versions.node){const[e,r]=un.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return un.getBuiltinModule(t)}return Tb(t)},"__cjs_getBuiltinModule"),{readFile:jb}=jl("node:fs/promises"),{unzip:Mb,brotliDecompress:Gb}=jl("node:zlib");var Ub=Object.defineProperty,Ml=Tl((t,e)=>Ub(t,"name",{value:e,configurable:!0}),"n");const Hb={brotli:Gb,gzip:Mb,none:Ml((t,e)=>{e(null,t)},"none")},Fa=Ml(async(t,e)=>{if(oe(t),t=z(t),!await it(t))throw new qo(`unable to read the non-accessible file: ${t}`);if(!await it(t,Ys))throw new Error(`Unable to read the non-readable file: ${t}`);const{buffer:r,compression:n,encoding:s,flag:i}=e??{};return await jb(t,i?{encoding:s,flag:i}:{encoding:s}).then(async o=>await new Promise((a,u)=>{Hb[n??"none"](o,(c,l)=>{c?u(c):a(r?l:l.toString())})})).catch(o=>{throw o})},"readFile");var Kb=Object.defineProperty,qb=f((t,e)=>Kb(t,"name",{value:e,configurable:!0}),"a$F"),Wb=Object.defineProperty,Gl=qb((t,e)=>Wb(t,"name",{value:e,configurable:!0}),"i");const Vb=X(import.meta.url),cn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ul=Gl(t=>{if(typeof cn<"u"&&cn.versions&&cn.versions.node){const[e,r]=cn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return cn.getBuiltinModule(t)}return Vb(t)},"__cjs_getBuiltinModule"),{readFileSync:Yb}=Ul("node:fs"),{unzipSync:zb,brotliDecompressSync:Xb}=Ul("node:zlib");var Jb=Object.defineProperty,Hl=Gl((t,e)=>Jb(t,"name",{value:e,configurable:!0}),"r");const Qb={brotli:Xb,gzip:zb,none:Hl(t=>t,"none")},Oa=Hl((t,e)=>{if(oe(t),t=z(t),!ot(t))throw new qo(`unable to read the non-accessible file: ${t}`);if(!ot(t,Ys))throw new qo(`invalid access to read file at: ${t}`);const{buffer:r,compression:n,encoding:s,flag:i}=e??{},o=Yb(t,i?{encoding:s,flag:i}:{encoding:s}),a=Qb[n??"none"],u=a(o);return r?u:u.toString()},"readFileSync");var Zb=Object.defineProperty,ev=f((t,e)=>Zb(t,"name",{value:e,configurable:!0}),"x$5"),tv=Object.defineProperty,Kl=ev((t,e)=>tv(t,"name",{value:e,configurable:!0}),"$"),rv=Object.defineProperty,nv=Kl((t,e)=>rv(t,"name",{value:e,configurable:!0}),"A"),sv=Object.defineProperty,Pa=nv((t,e)=>sv(t,"name",{value:e,configurable:!0}),"$"),iv=Object.defineProperty,ov=Pa((t,e)=>iv(t,"name",{value:e,configurable:!0}),"r$1");const av=ov(t=>t.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
14
+ `),"normalizeLF"),uv=globalThis.process??Object.create(null),ec={versions:{}},tc=new Proxy(uv,{get(t,e){if(e in t)return t[e];if(e in ec)return ec[e]}});var cv=Object.defineProperty,lv=Pa((t,e)=>cv(t,"name",{value:e,configurable:!0}),"b");const fv=lv((t,e,r,n)=>{const s={column:0,line:-1,...t.start},i={...s,...t.end},o=s.line,a=s.column,u=i.line,c=i.column;let l=Math.max(o-(r+1),0),p=Math.min(e.length,u+n);o===-1&&(l=0),u===-1&&(p=e.length);const h=u-o,g={};if(h)for(let b=0;b<=h;b++){const m=b+o;if(!a)g[m]=!0;else if(b===0){const v=e[m-1]?.length;g[m]=[a,(v??0)-a+1]}else if(b===h)g[m]=[0,c];else{const v=e[m-b]?.length;g[m]=[0,v]}}else a===c?g[o]=a?[a,0]:!0:g[o]=[a,(c??0)-(a??0)];return{end:p,markerLines:g,start:l}},"getMarkerLines");var pv=Object.defineProperty,Ds=Pa((t,e)=>pv(t,"name",{value:e,configurable:!0}),"t");const hv=tc.platform==="win32"&&!tc.env?.WT_SESSION?">":"❯",dv=Ds((t,e,r)=>{const n={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...r,color:{gutter:Ds(b=>b,"gutter"),marker:Ds(b=>b,"marker"),message:Ds(b=>b,"message"),...r?.color}},s=typeof e.start.column=="number";let i=av(t).split(`
15
+ `);typeof n.tabWidth=="number"&&(i=i.map(b=>b.replaceAll(" "," ".repeat(n.tabWidth))));const{end:o,markerLines:a,start:u}=fv(e,i,n.linesAbove,n.linesBelow),c=String(o).length,{gutter:l,marker:p,message:h}=n.color;let g=i.slice(u,o).map((b,m)=>{const v=u+1+m,E=a[v],C=` ${String(v)}`.slice(-c),y=!a[v+1],D=` ${C}${n.showGutter?" |":""}`;if(E){let w="";if(Array.isArray(E)){const d=b.replaceAll(/[^\t]/g," ").slice(0,Math.max(E[0]-1,0)),$=E[1]||1;w=[`
16
+ `,n.prefix+l(D.replaceAll(/\d/g," "))," ",d,p("^").repeat($)].join(""),y&&n.message&&(w+=` ${h(n.message)}`)}return[n.prefix+p(hv),l(D),b.length>0?` ${b}`:"",w].join("")}return`${n.prefix} ${l(D)}${b.length>0?` ${b}`:""}`}).join(`
17
+ `);return n.message&&!s&&(g=`${n.prefix+" ".repeat(c+1)+n.message}
18
+ ${g}`),g},"codeFrame");var mv=Object.defineProperty,gv=Kl((t,e)=>mv(t,"name",{value:e,configurable:!0}),"s"),yv=Object.defineProperty,bv=gv((t,e)=>yv(t,"name",{value:e,configurable:!0}),"o"),vv=Object.defineProperty,Na=bv((t,e)=>vv(t,"name",{value:e,configurable:!0}),"l");const rc=Na((t,e)=>{let r=0,n=e.length-2;for(;r<n;){const s=r+(n-r>>1);if(t<e[s])n=s-1;else if(t>=e[s+1])r=s+1;else{r=s;break}}return r},"binarySearch"),Dv=/\n|\r(?!\n)/,Ev=Na(t=>t.split(Dv).reduce((e,r)=>(e.push(e.at(-1)+r.length+1),e),[0]),"getLineStartIndexes"),$v=Na((t,e,r)=>{const n=r?.skipChecks??!1;if(!n&&(!Array.isArray(t)&&typeof t!="string"||(typeof t=="string"||Array.isArray(t))&&t.length===0))return{column:0,line:0};if(!n&&(typeof e!="number"||typeof t=="string"&&e>=t.length||Array.isArray(t)&&e+1>=t.at(-1)))return{column:0,line:0};if(typeof t=="string"){const i=Ev(t),o=rc(e,i);return{column:e-i[o]+1,line:o+1}}const s=rc(e,t);return{column:e-t[s]+1,line:s+1}},"indexToLineColumn");var Av=Object.defineProperty,ql=f((t,e)=>Av(t,"name",{value:e,configurable:!0}),"t$h"),Cv=Object.defineProperty,Wl=ql((t,e)=>Cv(t,"name",{value:e,configurable:!0}),"t"),wv=Object.defineProperty,Sv=Wl((t,e)=>wv(t,"name",{value:e,configurable:!0}),"i");let Fv=class extends Error{static{f(this,"m")}static{ql(this,"m")}static{Wl(this,"t")}static{Sv(this,"JSONError")}fileName;codeFrame;name="JSONError";#n;constructor(e){super(),this.#n=e}get message(){return`${this.#n}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
19
+
20
+ ${this.codeFrame}
21
+ `:""}`}set message(e){this.#n=e}};var Ov=Object.defineProperty,Vl=f((t,e)=>Ov(t,"name",{value:e,configurable:!0}),"u$E"),Pv=Object.defineProperty,Yl=Vl((t,e)=>Pv(t,"name",{value:e,configurable:!0}),"s"),Nv=Object.defineProperty,rs=Yl((t,e)=>Nv(t,"name",{value:e,configurable:!0}),"a");const xv=rs(t=>String.raw`\u{${t.codePointAt(0).toString(16)}}`,"getCodePoint"),Lv=rs((t,e,r)=>dv(t,{start:e},{tabWidth:!1,...r}),"generateCodeFrame"),kv=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,Bv=rs((t,e)=>{const r=kv.exec(e);if(!r)return;const[,n,s,i]=r;if(s&&i)return{column:Number(i),line:Number(s)};let o=Number(n);return o===t.length&&(o=t.length-1),$v(t,o)},"getErrorLocation"),Iv=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,Rv=rs(t=>t.replace(Iv,(e,r,n)=>`"${n}"(${xv(n)})`),"addCodePointToUnexpectedToken");function ir(t,e,r,n){typeof e=="string"&&(typeof r=="object"&&(n=r),r=e,e=void 0);let s;try{return JSON.parse(t,e)}catch(a){s=a.message}let i;t?(i=Bv(t,s),s=Rv(s)):s+=" while parsing empty string";const o=new Fv(s);throw o.fileName=r,i&&(o.codeFrame=Lv(t,i,n)),o}f(ir,"d$s");Vl(ir,"w");Yl(ir,"E");rs(ir,"parseJson");var _v=Object.defineProperty,zl=f((t,e)=>_v(t,"name",{value:e,configurable:!0}),"t$g"),Tv=Object.defineProperty,Xl=zl((t,e)=>Tv(t,"name",{value:e,configurable:!0}),"t"),jv=Object.defineProperty,Mv=Xl((t,e)=>jv(t,"name",{value:e,configurable:!0}),"i");async function Ci(t,e,r){typeof e=="object"&&(r=e,e=void 0);const n=await Fa(t,{buffer:!0,encoding:void 0});let s=new TextDecoder().decode(n);const{beforeParse:i,color:o}=r??{};return typeof i=="function"&&(s=i(s)),ir(s,e,z(t),{color:o})}f(Ci,"a$D");zl(Ci,"l");Xl(Ci,"c");Mv(Ci,"readJson");var Gv=Object.defineProperty,Jl=f((t,e)=>Gv(t,"name",{value:e,configurable:!0}),"t$f"),Uv=Object.defineProperty,Ql=Jl((t,e)=>Uv(t,"name",{value:e,configurable:!0}),"t"),Hv=Object.defineProperty,Kv=Ql((t,e)=>Hv(t,"name",{value:e,configurable:!0}),"r");function wi(t,e,r){typeof e=="object"&&(r=e,e=void 0);const n=Oa(t,{buffer:!0,encoding:void 0});let s=new TextDecoder().decode(n);const{beforeParse:i,color:o}=r??{};return typeof i=="function"&&(s=i(s)),ir(s,e,z(t),{color:o})}f(wi,"n$o");Jl(wi,"s");Ql(wi,"J");Kv(wi,"readJsonSync");var qv=Object.defineProperty,Wv=f((t,e)=>qv(t,"name",{value:e,configurable:!0}),"a$C"),Vv=Object.defineProperty,Yv=Wv((t,e)=>Vv(t,"name",{value:e,configurable:!0}),"t"),zv=Object.defineProperty,Xv=Yv((t,e)=>zv(t,"name",{value:e,configurable:!0}),"t");const Si=Xv(t=>{const e={force:!0,recursive:!0};return t?.maxRetries!==void 0&&(e.maxRetries=t.maxRetries),t?.retryDelay!==void 0&&(e.retryDelay=t.retryDelay),e},"buildRmOptions");var Jv=Object.defineProperty,Qv=f((t,e)=>Jv(t,"name",{value:e,configurable:!0}),"i$r"),Zv=Object.defineProperty,Zl=Qv((t,e)=>Zv(t,"name",{value:e,configurable:!0}),"i");const eD=X(import.meta.url),ln=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ef=Zl(t=>{if(typeof ln<"u"&&ln.versions&&ln.versions.node){const[e,r]=ln.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return ln.getBuiltinModule(t)}return eD(t)},"__cjs_getBuiltinModule"),{existsSync:tD}=ef("node:fs"),{mkdir:rD,readdir:nD,rm:sD}=ef("node:fs/promises");var iD=Object.defineProperty,oD=Zl((t,e)=>iD(t,"name",{value:e,configurable:!0}),"o");oD(async(t,e)=>{if(oe(t),!tD(t)){await rD(t,{recursive:!0});return}const r=await nD(t),n=Si(e);for(const s of r)await sD(Pr(z(t),s),n)},"emptyDir");var aD=Object.defineProperty,uD=f((t,e)=>aD(t,"name",{value:e,configurable:!0}),"i$q"),cD=Object.defineProperty,tf=uD((t,e)=>cD(t,"name",{value:e,configurable:!0}),"s");const lD=X(import.meta.url),fn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,fD=tf(t=>{if(typeof fn<"u"&&fn.versions&&fn.versions.node){const[e,r]=fn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return fn.getBuiltinModule(t)}return lD(t)},"__cjs_getBuiltinModule"),{existsSync:pD,mkdirSync:hD,readdirSync:dD,rmSync:mD}=fD("node:fs");var gD=Object.defineProperty,yD=tf((t,e)=>gD(t,"name",{value:e,configurable:!0}),"o");yD((t,e)=>{if(oe(t),!pD(t)){hD(t,{recursive:!0});return}const r=Si(e);for(const n of dD(t))mD(Pr(z(t),n),r)},"emptyDirSync");var bD=Object.defineProperty,vD=f((t,e)=>bD(t,"name",{value:e,configurable:!0}),"i$p"),DD=Object.defineProperty,rf=vD((t,e)=>DD(t,"name",{value:e,configurable:!0}),"s");const ED=X(import.meta.url),pn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$D=rf(t=>{if(typeof pn<"u"&&pn.versions&&pn.versions.node){const[e,r]=pn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return pn.getBuiltinModule(t)}return ED(t)},"__cjs_getBuiltinModule"),{unlink:AD,rm:CD}=$D("node:fs/promises");var wD=Object.defineProperty,SD=rf((t,e)=>wD(t,"name",{value:e,configurable:!0}),"i");SD(async(t,e={})=>{oe(t);try{await AD(t)}catch{}try{await CD(t,Si(e))}catch{}},"remove");var FD=Object.defineProperty,OD=f((t,e)=>FD(t,"name",{value:e,configurable:!0}),"i$o"),PD=Object.defineProperty,nf=OD((t,e)=>PD(t,"name",{value:e,configurable:!0}),"s");const ND=X(import.meta.url),hn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,xD=nf(t=>{if(typeof hn<"u"&&hn.versions&&hn.versions.node){const[e,r]=hn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return hn.getBuiltinModule(t)}return ND(t)},"__cjs_getBuiltinModule"),{unlinkSync:LD,rmSync:kD}=xD("node:fs");var BD=Object.defineProperty,ID=nf((t,e)=>BD(t,"name",{value:e,configurable:!0}),"o");ID((t,e={})=>{oe(t);try{LD(t)}catch{}try{kD(t,Si(e))}catch{}},"removeSync");var RD=Object.defineProperty,_D=f((t,e)=>RD(t,"name",{value:e,configurable:!0}),"g$j"),TD=Object.defineProperty,jD=_D((t,e)=>TD(t,"name",{value:e,configurable:!0}),"g");X(import.meta.url);const MD=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,{platform:GD}=MD;var UD=Object.defineProperty,_t=jD((t,e)=>UD(t,"name",{value:e,configurable:!0}),"l");const Kt="unnamed",HD=128,nc={'"':"ˮ","*":"⁎","/":"⁄",":":"꞉","<":"‹",">":"›","?":"ʔ","\\":"∖","|":"ǀ"},KD=/[\u0000-\u001F\u0080-\u009F]/g,qD=/^(?:\.+[/\\]+)+|^\.+$/g,Wo=/^(?:con|prn|aux|nul|com\d|lpt\d)$/i,WD=/[<>:"/\\|?*]/g,VD=/\//g,kn=new Set([" "," ","."]),ns=_t((t,e)=>e>0&&e<t.length-1,"hasExtension"),YD=_t((t,e)=>{const r=t.lastIndexOf(".");if(!ns(t,r))return t.slice(0,e);const n=t.slice(0,r),s=t.slice(r),i=e-s.length;return i>0?`${n.slice(0,i)}${s}`:t.slice(0,e)},"truncateWithExtension"),sc=_t(t=>{let e=0,r=t.length;for(;e<r;){const n=t[e];if(n===void 0||!kn.has(n))break;e+=1}for(;r>e;){const n=t[r-1];if(n===void 0||!kn.has(n))break;r-=1}return t.slice(e,r)},"trimSpacesAndPeriods"),zD=_t(t=>{const e=t.lastIndexOf(".");if(ns(t,e)){const n=t.slice(0,e),s=t.slice(e);let i=n;for(;i.length>0;){const o=i.at(-1);if(o===void 0||!kn.has(o))break;i=i.slice(0,-1)}return i.length===0?s.slice(1):`${i}${s}`}let r=t;for(;r.length>0;){const n=r.at(-1);if(n===void 0||!kn.has(n))break;r=r.slice(0,-1)}return r},"cleanWindowsName"),XD=_t(t=>{const e=t.lastIndexOf(".");if(ns(t,e))return!1;if(Wo.test(t))return!0;let r=t;for(;r.length>0;){const n=r.at(-1);if(n===void 0||!kn.has(n))break;r=r.slice(0,-1)}return!!(r.length>0&&Wo.test(r))},"isWindowsReservedName"),JD=_t(t=>{const e=t.lastIndexOf(".");if(ns(t,e)){const s=t.slice(0,e),i=t.slice(e),o=sc(s);return o.length===0?void 0:`${o}${i}`}const r=t.trim();if(r.length>0&&r[0]==="."&&r.length<=5&&r.indexOf(".",1)===-1)return;const n=sc(t);if(n.length!==0)return n},"cleanFat32Name"),QD=_t(t=>{const e=t?.filesystem??"auto";return e==="auto"?GD==="win32"?"win32":"unix":e==="darwin"?"unix":e},"getFileSystemType");_t((t,e)=>{if(typeof t!="string"||t.length===0)return Kt;const r=QD(e);let n=t;if(n=n.replace(KD,""),n.length===0||(n=n.replace(qD,""),n.length===0))return Kt;if(r==="win32"||r==="fat32"){const i=n.lastIndexOf(".");if(!ns(n,i)&&Wo.test(n))return Kt}if(n=r==="win32"||r==="fat32"?n.replaceAll(WD,i=>nc[i]??""):n.replaceAll(VD,nc["/"]),n=n.trim(),(r==="win32"||r==="fat32")&&(XD(n)||r==="win32"&&(n=zD(n),n.length===0)))return Kt;if(r==="fat32"){const i=JD(n);if(i===void 0)return Kt;n=i}if(n.length===0)return Kt;const s=e?.maxLength??HD;return n.length>s&&(n=YD(n,s),n.length===0)?Kt:n},"sanitize");var ZD=Object.defineProperty,eE=f((t,e)=>ZD(t,"name",{value:e,configurable:!0}),"a$w"),tE=Object.defineProperty,rE=eE((t,e)=>tE(t,"name",{value:e,configurable:!0}),"t"),nE=Object.defineProperty,sE=rE((t,e)=>nE(t,"name",{value:e,configurable:!0}),"e");const sf=sE(t=>{if(typeof t!="string"&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");var iE=Object.defineProperty,oE=f((t,e)=>iE(t,"name",{value:e,configurable:!0}),"t$c"),aE=Object.defineProperty,uE=oE((t,e)=>aE(t,"name",{value:e,configurable:!0}),"r"),cE=Object.defineProperty,lE=uE((t,e)=>cE(t,"name",{value:e,configurable:!0}),"f");const fE=new TextEncoder,of=lE(t=>{if(t instanceof Uint8Array)return t;if(typeof t=="string")return fE.encode(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t)){const e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return new Uint8Array(e)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},"toUint8Array");var pE=Object.defineProperty,hE=f((t,e)=>pE(t,"name",{value:e,configurable:!0}),"m$k"),dE=Object.defineProperty,af=hE((t,e)=>dE(t,"name",{value:e,configurable:!0}),"s");const mE=X(import.meta.url),dn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,gE=af(t=>{if(typeof dn<"u"&&dn.versions&&dn.versions.node){const[e,r]=dn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return dn.getBuiltinModule(t)}return mE(t)},"__cjs_getBuiltinModule"),{mkdir:yE,writeFile:bE,stat:vE,rename:ic,chown:DE,chmod:EE,unlink:$E}=gE("node:fs/promises");var AE=Object.defineProperty,CE=af((t,e)=>AE(t,"name",{value:e,configurable:!0}),"d");const uf=CE(async(t,e,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},oe(t),sf(e),t=z(t);const n=`${t}.tmp`;try{const s=await it(t,$r);if(!s&&r.recursive){const o=se(t);await it(o,$r)||await yE(o,{recursive:!0})}let i;if(await bE(n,of(e),{encoding:r.encoding,flag:r.flag}),s&&!r.overwrite&&(i=await vE(t),r.chown??={gid:i.gid,uid:i.uid},await ic(t,`${t}.bak`)),r.chown)try{await DE(n,r.chown.uid,r.chown.gid)}catch{}await EE(n,i&&!r.mode?i.mode:r.mode??438),await ic(n,t)}catch(s){throw new Error(`Failed to write file at: ${t} - ${s.message}`,{cause:s})}finally{await it(n)&&await $E(`${t}.tmp`)}},"writeFile");var wE=Object.defineProperty,SE=f((t,e)=>wE(t,"name",{value:e,configurable:!0}),"m$j"),FE=Object.defineProperty,cf=SE((t,e)=>FE(t,"name",{value:e,configurable:!0}),"s");const OE=X(import.meta.url),mn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,PE=cf(t=>{if(typeof mn<"u"&&mn.versions&&mn.versions.node){const[e,r]=mn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return mn.getBuiltinModule(t)}return OE(t)},"__cjs_getBuiltinModule"),{mkdirSync:NE,writeFileSync:xE,statSync:LE,renameSync:oc,chownSync:kE,chmodSync:BE,unlinkSync:IE}=PE("node:fs");var RE=Object.defineProperty,_E=cf((t,e)=>RE(t,"name",{value:e,configurable:!0}),"f");const lf=_E((t,e,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},oe(t),sf(e),t=z(t);const n=`${t}.tmp`;try{const s=ot(t,$r);if(!s&&r.recursive){const o=se(t);ot(o,$r)||NE(o,{recursive:!0})}let i;if(xE(n,of(e),{encoding:r.encoding,flag:r.flag}),s&&!r.overwrite&&(i=LE(t),r.chown??={gid:i.gid,uid:i.uid},oc(t,`${t}.bak`)),r.chown)try{kE(n,r.chown.uid,r.chown.gid)}catch{}BE(n,i&&!r.mode?i.mode:r.mode??438),oc(n,t)}catch(s){throw new Error(`Failed to write file at: ${t} - ${s.message}`,{cause:s})}finally{ot(n)&&IE(`${t}.tmp`)}},"writeFileSync");var TE=Object.defineProperty,Tt=f((t,e)=>TE(t,"name",{value:e,configurable:!0}),"i$l"),jE=Object.defineProperty,jt=Tt((t,e)=>jE(t,"name",{value:e,configurable:!0}),"s"),ME=Object.defineProperty,or=jt((t,e)=>ME(t,"name",{value:e,configurable:!0}),"i");const GE=/^(?:( )+|\t+)/,ss="space";function Bn(t,e,r){return t&&e===ss&&r===1}f(Bn,"d$l");Tt(Bn,"g");jt(Bn,"I");or(Bn,"shouldIgnoreSingleSpace");function In(t,e){const r=new Map;let n=0,s,i;for(const o of t.split(/\n/g)){if(!o)continue;const a=o.match(GE);if(a===null)n=0,s="";else{const u=a[0].length,c=a[1]?ss:"tab";if(Bn(e,c,u))continue;c!==s&&(n=0),s=c;let l=1,p=0;const h=u-n;if(n=u,h===0)l=0,p=1;else{const b=Math.abs(h);if(Bn(e,c,b))continue;i=Fi(c,b)}const g=r.get(i);r.set(i,g===void 0?[1,0]:[g[0]+l,g[1]+p])}}return r}f(In,"p$i");Tt(In,"y");jt(In,"h");or(In,"makeIndentsMap");function Fi(t,e){return(t===ss?"s":"t")+String(e)}f(Fi,"b$q");Tt(Fi,"v");jt(Fi,"m");or(Fi,"encodeIndentsKey");function Oi(t){const e=t[0]==="s"?ss:"tab",r=Number(t.slice(1));return{type:e,amount:r}}f(Oi,"v$c");Tt(Oi,"M");jt(Oi,"_");or(Oi,"decodeIndentsKey");function Pi(t){let e,r=0,n=0;for(const[s,[i,o]]of t)(i>r||i===r&&o>n)&&(r=i,n=o,e=s);return e}f(Pi,"I$8");Tt(Pi,"S");jt(Pi,"k");or(Pi,"getMostUsedKey");function Ni(t,e){return(t===ss?" ":" ").repeat(e)}f(Ni,"h$f");Tt(Ni,"k");jt(Ni,"D");or(Ni,"makeIndentString");function is(t){if(typeof t!="string")throw new TypeError("Expected a string");let e=In(t,!0);e.size===0&&(e=In(t,!1));const r=Pi(e);let n,s=0,i="";return r!==void 0&&({type:n,amount:s}=Oi(r),i=Ni(n,s)),{amount:s,type:n,indent:i}}f(is,"M$5");Tt(is,"x");jt(is,"C");or(is,"detectIndent");var UE=Object.defineProperty,HE=f((t,e)=>UE(t,"name",{value:e,configurable:!0}),"a$u"),KE=Object.defineProperty,ff=HE((t,e)=>KE(t,"name",{value:e,configurable:!0}),"n");const qE=X(import.meta.url),gn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,WE=ff(t=>{if(typeof gn<"u"&&gn.versions&&gn.versions.node){const[e,r]=gn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return gn.getBuiltinModule(t)}return qE(t)},"__cjs_getBuiltinModule"),{readFile:VE}=WE("node:fs/promises");var YE=Object.defineProperty,zE=ff((t,e)=>YE(t,"name",{value:e,configurable:!0}),"r");const XE=zE(async(t,e,r={})=>{const{detectIndent:n,indent:s,replacer:i,stringify:o=JSON.stringify,...a}={indent:" ",...r};let u=s,c=`
22
+ `;if(await it(t,Ys))try{const p=await VE(t,"utf8");if(n){const{indent:h}=is(p);u=h}c=p.endsWith(`
23
+ `)?`
24
+ `:""}catch(p){if(p.code!=="ENOENT")throw p}const l=o(e,i,u);await uf(t,`${l}${c}`,a)},"writeJson");var JE=Object.defineProperty,QE=f((t,e)=>JE(t,"name",{value:e,configurable:!0}),"a$t"),ZE=Object.defineProperty,pf=QE((t,e)=>ZE(t,"name",{value:e,configurable:!0}),"i");const e$=X(import.meta.url),yn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,t$=pf(t=>{if(typeof yn<"u"&&yn.versions&&yn.versions.node){const[e,r]=yn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return yn.getBuiltinModule(t)}return e$(t)},"__cjs_getBuiltinModule"),{readFileSync:r$}=t$("node:fs");var n$=Object.defineProperty,s$=pf((t,e)=>n$(t,"name",{value:e,configurable:!0}),"r");const i$=s$((t,e,r={})=>{const{detectIndent:n,indent:s,replacer:i,stringify:o=JSON.stringify,...a}={indent:" ",...r};let u=s,c=`
25
+ `;if(ot(t,Ys))try{const p=r$(t,"utf8");if(n){const{indent:h}=is(p);u=h}c=p.endsWith(`
26
+ `)?`
27
+ `:""}catch(p){if(p.code!=="ENOENT")throw p}const l=o(e,i,u);lf(t,`${l}${c}`,a)},"writeJsonSync");var o$=Object.defineProperty,a$=f((t,e)=>o$(t,"name",{value:e,configurable:!0}),"u$x"),u$=Object.defineProperty,hf=a$((t,e)=>u$(t,"name",{value:e,configurable:!0}),"c");const c$=X(import.meta.url),bn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,xa=hf(t=>{if(typeof bn<"u"&&bn.versions&&bn.versions.node){const[e,r]=bn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return bn.getBuiltinModule(t)}return c$(t)},"__cjs_getBuiltinModule"),l$=xa("fs"),f$=xa("os"),p$=xa("path");var h$=Object.defineProperty,d$=hf((t,e)=>h$(t,"name",{value:e,configurable:!0}),"a"),m$=Object.defineProperty,xi=d$((t,e)=>m$(t,"name",{value:e,configurable:!0}),"s");const df=xi(t=>{let e="";for(let r=0;r<t.length;r+=1){const n=t[r],s=n.toUpperCase();e+=n===s?n.toLowerCase():s}return e},"invertCase"),fo=new Map,ac=xi((t,e)=>{const r=p$.join(t,`.is-fs-case-sensitive-test-${process.pid}`);try{return e.writeFileSync(r,""),!e.existsSync(df(r))}finally{try{e.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),g$=xi((t,e,r)=>{try{return ac(t,r)}catch(n){if(e===void 0)return ac(f$.tmpdir(),r);throw n}},"checkDirectoryCaseWithFallback");xi((t,e=l$,r=!0)=>{const n=t??process.cwd();if(r&&fo.has(n))return fo.get(n);let s;const i=df(n);return i!==n&&e.existsSync(n)?s=!e.existsSync(i):s=g$(n,t,e),r&&fo.set(n,s),s},"isFsCaseSensitive");var y$=Object.defineProperty,mf=f((t,e)=>y$(t,"name",{value:e,configurable:!0}),"t$b"),b$=Object.defineProperty,gf=mf((t,e)=>b$(t,"name",{value:e,configurable:!0}),"o"),v$=Object.defineProperty,D$=gf((t,e)=>v$(t,"name",{value:e,configurable:!0}),"o");let lS=class extends Error{static{f(this,"s")}static{mf(this,"i")}static{gf(this,"n")}static{D$(this,"DirectoryError")}constructor(e){super(`EISDIR: Illegal operation on a directory, ${e}`)}get code(){return"EISDIR"}set code(e){throw new Error("Cannot overwrite code EISDIR")}get name(){return"DirectoryError"}set name(e){throw new Error("Cannot overwrite name of DirectoryError")}};var E$=Object.defineProperty,yf=f((t,e)=>E$(t,"name",{value:e,configurable:!0}),"t$a"),$$=Object.defineProperty,bf=yf((t,e)=>$$(t,"name",{value:e,configurable:!0}),"t"),A$=Object.defineProperty,C$=bf((t,e)=>A$(t,"name",{value:e,configurable:!0}),"t");let pS=class extends Error{static{f(this,"s")}static{yf(this,"c")}static{bf(this,"n")}static{C$(this,"NotEmptyError")}constructor(e){super(`ENOTEMPTY: Directory not empty, ${e}`)}get code(){return"ENOTEMPTY"}set code(e){throw new Error("Cannot overwrite code ENOTEMPTY")}get name(){return"NotEmptyError"}set name(e){throw new Error("Cannot overwrite name of NotEmptyError")}};var w$=Object.defineProperty,vf=f((t,e)=>w$(t,"name",{value:e,configurable:!0}),"o$b"),S$=Object.defineProperty,Df=vf((t,e)=>S$(t,"name",{value:e,configurable:!0}),"o"),F$=Object.defineProperty,O$=Df((t,e)=>F$(t,"name",{value:e,configurable:!0}),"o");let Ef=class extends Error{static{f(this,"s")}static{vf(this,"u")}static{Df(this,"n")}static{O$(this,"NotFoundError")}constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}};var P$=Object.defineProperty,N$=f((t,e)=>P$(t,"name",{value:e,configurable:!0}),"a$o"),x$=Object.defineProperty,L$=N$((t,e)=>x$(t,"name",{value:e,configurable:!0}),"r"),k$=Object.defineProperty,B$=L$((t,e)=>k$(t,"name",{value:e,configurable:!0}),"n");B$((t,{whitespace:e=!0}={})=>t.replace(id,r=>r.startsWith('"')||r[1]==="*"&&!r.endsWith("*/")?r:e?r.replaceAll(/\S/g," "):""),"stripJsonComments");var I$=Object.defineProperty,Ct=f((t,e)=>I$(t,"name",{value:e,configurable:!0}),"c$g");const La=Symbol.for("yaml.alias"),Vo=Symbol.for("yaml.document"),kt=Symbol.for("yaml.map"),$f=Symbol.for("yaml.pair"),pt=Symbol.for("yaml.scalar"),Rr=Symbol.for("yaml.seq"),He=Symbol.for("yaml.node.type"),_r=Ct(t=>!!t&&typeof t=="object"&&t[He]===La,"isAlias"),Tr=Ct(t=>!!t&&typeof t=="object"&&t[He]===Vo,"isDocument"),os=Ct(t=>!!t&&typeof t=="object"&&t[He]===kt,"isMap"),fe=Ct(t=>!!t&&typeof t=="object"&&t[He]===$f,"isPair"),re=Ct(t=>!!t&&typeof t=="object"&&t[He]===pt,"isScalar"),as=Ct(t=>!!t&&typeof t=="object"&&t[He]===Rr,"isSeq");function ce(t){if(t&&typeof t=="object")switch(t[He]){case kt:case Rr:return!0}return!1}f(ce,"i$j");Ct(ce,"isCollection");function le(t){if(t&&typeof t=="object")switch(t[He]){case La:case kt:case pt:case Rr:return!0}return!1}f(le,"A$a");Ct(le,"isNode");const Af=Ct(t=>(re(t)||ce(t))&&!!t.anchor,"hasAnchor");var R$=Object.defineProperty,ar=f((t,e)=>R$(t,"name",{value:e,configurable:!0}),"r$8");const ke=Symbol("break visit"),Cf=Symbol("skip children"),at=Symbol("remove node");function ur(t,e){const r=ka(e);Tr(t)?Yt(null,t.contents,r,Object.freeze([t]))===at&&(t.contents=null):Yt(null,t,r,Object.freeze([]))}f(ur,"S$7");ar(ur,"visit");ur.BREAK=ke;ur.SKIP=Cf;ur.REMOVE=at;function Yt(t,e,r,n){const s=Ba(t,e,r,n);if(le(s)||fe(s))return Ia(t,n,s),Yt(t,s,r,n);if(typeof s!="symbol"){if(ce(e)){n=Object.freeze(n.concat(e));for(let i=0;i<e.items.length;++i){const o=Yt(i,e.items[i],r,n);if(typeof o=="number")i=o-1;else{if(o===ke)return ke;o===at&&(e.items.splice(i,1),i-=1)}}}else if(fe(e)){n=Object.freeze(n.concat(e));const i=Yt("key",e.key,r,n);if(i===ke)return ke;i===at&&(e.key=null);const o=Yt("value",e.value,r,n);if(o===ke)return ke;o===at&&(e.value=null)}}return s}f(Yt,"a$m");ar(Yt,"visit_");async function Li(t,e){const r=ka(e);Tr(t)?await zt(null,t.contents,r,Object.freeze([t]))===at&&(t.contents=null):await zt(null,t,r,Object.freeze([]))}f(Li,"y$h");ar(Li,"visitAsync");Li.BREAK=ke;Li.SKIP=Cf;Li.REMOVE=at;async function zt(t,e,r,n){const s=await Ba(t,e,r,n);if(le(s)||fe(s))return Ia(t,n,s),zt(t,s,r,n);if(typeof s!="symbol"){if(ce(e)){n=Object.freeze(n.concat(e));for(let i=0;i<e.items.length;++i){const o=await zt(i,e.items[i],r,n);if(typeof o=="number")i=o-1;else{if(o===ke)return ke;o===at&&(e.items.splice(i,1),i-=1)}}}else if(fe(e)){n=Object.freeze(n.concat(e));const i=await zt("key",e.key,r,n);if(i===ke)return ke;i===at&&(e.key=null);const o=await zt("value",e.value,r,n);if(o===ke)return ke;o===at&&(e.value=null)}}return s}f(zt,"b$m");ar(zt,"visitAsync_");function ka(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}f(ka,"z$2");ar(ka,"initVisitor");function Ba(t,e,r,n){if(typeof r=="function")return r(t,e,n);if(os(e))return r.Map?.(t,e,n);if(as(e))return r.Seq?.(t,e,n);if(fe(e))return r.Pair?.(t,e,n);if(re(e))return r.Scalar?.(t,e,n);if(_r(e))return r.Alias?.(t,e,n)}f(Ba,"A$9");ar(Ba,"callVisitor");function Ia(t,e,r){const n=e[e.length-1];if(ce(n))n.items[t]=r;else if(fe(n))t==="key"?n.key=r:n.value=r;else if(Tr(n))n.contents=r;else{const s=_r(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}f(Ia,"M$4");ar(Ia,"replaceNode");var _$=Object.defineProperty,wf=f((t,e)=>_$(t,"name",{value:e,configurable:!0}),"h$c");const T$={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},j$=wf(t=>t.replace(/[!,[\]{}]/g,e=>T$[e]),"escapeTagName");let vr=class yt{static{f(this,"n")}static{wf(this,"Directives")}constructor(e,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},yt.defaultYaml,e),this.tags=Object.assign({},yt.defaultTags,r)}clone(){const e=new yt(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new yt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:yt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},yt.defaultTags);break}return e}add(e,r){this.atNextDocument&&(this.yaml={explicit:yt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},yt.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[i,o]=n;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,o),!1}}default:return r(0,`Unknown directive ${s}`,!0),!1}}tagName(e,r){if(e==="!")return"!";if(e[0]!=="!")return r(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(r(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&r("Verbatim tags must end with a >"),o)}const[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||r(`The ${e} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(s)}catch(o){return r(String(o)),null}return n==="!"?e:(r(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[r,n]of Object.entries(this.tags))if(e.startsWith(n))return r+j$(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let s;if(e&&n.length>0&&le(e.contents)){const i={};ur(e.contents,(o,a)=>{le(a)&&a.tag&&(i[a.tag]=!0)}),s=Object.keys(i)}else s=[];for(const[i,o]of n)i==="!!"&&o==="tag:yaml.org,2002:"||(!e||s.some(a=>a.startsWith(o)))&&r.push(`%TAG ${i} ${o}`);return r.join(`
28
+ `)}};vr.defaultYaml={explicit:!1,version:"1.2"};vr.defaultTags={"!!":"tag:yaml.org,2002:"};var M$=Object.defineProperty,wr=f((t,e)=>M$(t,"name",{value:e,configurable:!0}),"c$f");function Ra(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const e=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(e)}return!0}f(Ra,"m$g");wr(Ra,"anchorIsValid");function _a(t){const e=new Set;return ur(t,{Value(r,n){n.anchor&&e.add(n.anchor)}}),e}f(_a,"h$b");wr(_a,"anchorNames");function Ta(t,e){for(let r=1;;++r){const n=`${t}${r}`;if(!e.has(n))return n}}f(Ta,"u$t");wr(Ta,"findNewAnchor");function Sf(t,e){const r=[],n=new Map;let s=null;return{onAnchor:wr(i=>{r.push(i),s??(s=_a(t));const o=Ta(e,s);return s.add(o),o},"onAnchor"),setAnchors:wr(()=>{for(const i of r){const o=n.get(i);if(typeof o=="object"&&o.anchor&&(re(o.node)||ce(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},"setAnchors"),sourceObjects:n}}f(Sf,"w$7");wr(Sf,"createNodeAnchors");var G$=Object.defineProperty,U$=f((t,e)=>G$(t,"name",{value:e,configurable:!0}),"d$j");function Xt(t,e,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let s=0,i=n.length;s<i;++s){const o=n[s],a=Xt(t,n,String(s),o);a===void 0?delete n[s]:a!==o&&(n[s]=a)}else if(n instanceof Map)for(const s of Array.from(n.keys())){const i=n.get(s),o=Xt(t,n,s,i);o===void 0?n.delete(s):o!==i&&n.set(s,o)}else if(n instanceof Set)for(const s of Array.from(n)){const i=Xt(t,n,s,s);i===void 0?n.delete(s):i!==s&&(n.delete(s),n.add(i))}else for(const[s,i]of Object.entries(n)){const o=Xt(t,n,s,i);o===void 0?delete n[s]:o!==i&&(n[s]=o)}return t.call(e,r,n)}f(Xt,"s$m");U$(Xt,"applyReviver");var H$=Object.defineProperty,K$=f((t,e)=>H$(t,"name",{value:e,configurable:!0}),"i$h");function _e(t,e,r){if(Array.isArray(t))return t.map((n,s)=>_e(n,String(s),r));if(t&&typeof t.toJSON=="function"){if(!r||!Af(t))return t.toJSON(e,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(t,n),r.onCreate=i=>{n.res=i,delete r.onCreate};const s=t.toJSON(e,r);return r.onCreate&&r.onCreate(s),s}return typeof t=="bigint"&&!r?.keep?Number(t):t}f(_e,"f$k");K$(_e,"toJS");var q$=Object.defineProperty,W$=f((t,e)=>q$(t,"name",{value:e,configurable:!0}),"i$g");let ja=class{static{f(this,"O")}static{W$(this,"NodeBase")}constructor(e){Object.defineProperty(this,He,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:i}={}){if(!Tr(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=_e(this,"",o);if(typeof s=="function")for(const{count:u,res:c}of o.anchors.values())s(c,u);return typeof i=="function"?Xt(i,{"":a},"",a):a}};var V$=Object.defineProperty,Yo=f((t,e)=>V$(t,"name",{value:e,configurable:!0}),"u$r");let Ma=class extends ja{static{f(this,"b")}static{Yo(this,"Alias")}constructor(e){super(La),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,r){if(r?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let n;r?.aliasResolveCache?n=r.aliasResolveCache:(n=[],ur(e,{Node:Yo((i,o)=>{(_r(o)||Af(o))&&n.push(o)},"Node")}),r&&(r.aliasResolveCache=n));let s;for(const i of n){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(e,r){if(!r)return{source:this.source};const{anchors:n,doc:s,maxAliasCount:i}=r,o=this.resolve(s,r);if(!o){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let a=n.get(o);if(a||(_e(o,null,r),a=n.get(o)),a?.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Fn(s,o,n)),a.count*a.aliasCount>i)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return a.res}toString(e,r,n){const s=`*${this.source}`;if(e){if(Ra(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(e.implicitKey)return`${s} `}return s}};function Fn(t,e,r){if(_r(e)){const n=e.resolve(t),s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(ce(e)){let n=0;for(const s of e.items){const i=Fn(t,s,r);i>n&&(n=i)}return n}else if(fe(e)){const n=Fn(t,e.key,r),s=Fn(t,e.value,r);return Math.max(n,s)}return 1}f(Fn,"c$e");Yo(Fn,"getAliasCount");var Y$=Object.defineProperty,Ff=f((t,e)=>Y$(t,"name",{value:e,configurable:!0}),"L$7");const Of=Ff(t=>!t||typeof t!="function"&&typeof t!="object","isScalarValue");let U=class extends ja{static{f(this,"o")}static{Ff(this,"Scalar")}constructor(e){super(pt),this.value=e}toJSON(e,r){return r?.keep?this.value:_e(this.value,e,r)}toString(){return String(this.value)}};U.BLOCK_FOLDED="BLOCK_FOLDED";U.BLOCK_LITERAL="BLOCK_LITERAL";U.PLAIN="PLAIN";U.QUOTE_DOUBLE="QUOTE_DOUBLE";U.QUOTE_SINGLE="QUOTE_SINGLE";var z$=Object.defineProperty,Pf=f((t,e)=>z$(t,"name",{value:e,configurable:!0}),"h$9");const X$="tag:yaml.org,2002:";function Nf(t,e,r){if(e){const n=r.filter(i=>i.tag===e),s=n.find(i=>!i.format)??n[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return r.find(n=>n.identify?.(t)&&!n.format)}f(Nf,"A$8");Pf(Nf,"findTagObject");function Sr(t,e,r){if(Tr(t)&&(t=t.contents),le(t))return t;if(fe(t)){const p=r.schema[kt].createNode?.(r.schema,null,r);return p.items.push(t),p}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:n,onAnchor:s,onTagObj:i,schema:o,sourceObjects:a}=r;let u;if(n&&t&&typeof t=="object"){if(u=a.get(t),u)return u.anchor??(u.anchor=s(t)),new Ma(u.anchor);u={anchor:null,node:null},a.set(t,u)}e?.startsWith("!!")&&(e=X$+e.slice(2));let c=Nf(t,e,o.tags);if(!c){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const p=new U(t);return u&&(u.node=p),p}c=t instanceof Map?o[kt]:Symbol.iterator in Object(t)?o[Rr]:o[kt]}i&&(i(c),delete r.onTagObj);const l=c?.createNode?c.createNode(r.schema,t,r):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(r.schema,t,r):new U(t);return e?l.tag=e:c.default||(l.tag=c.tag),u&&(u.node=l),l}f(Sr,"B$5");Pf(Sr,"createNode");var J$=Object.defineProperty,ki=f((t,e)=>J$(t,"name",{value:e,configurable:!0}),"i$f");function Rn(t,e,r){let n=r;for(let s=e.length-1;s>=0;--s){const i=e[s];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const o=[];o[i]=n,n=o}else n=new Map([[i,n]])}return Sr(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:ki(()=>{throw new Error("This should not happen, please report a bug.")},"onAnchor"),schema:t,sourceObjects:new Map})}f(Rn,"c$d");ki(Rn,"collectionFromPath");const En=ki(t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done,"isEmptyPath");let xf=class extends ja{static{f(this,"b")}static{ki(this,"Collection")}constructor(e,r){super(e),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(e){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(r.schema=e),r.items=r.items.map(n=>le(n)||fe(n)?n.clone(e):n),this.range&&(r.range=this.range.slice()),r}addIn(e,r){if(En(e))this.add(r);else{const[n,...s]=e,i=this.get(n,!0);if(ce(i))i.addIn(s,r);else if(i===void 0&&this.schema)this.set(n,Rn(this.schema,s,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}deleteIn(e){const[r,...n]=e;if(n.length===0)return this.delete(r);const s=this.get(r,!0);if(ce(s))return s.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(e,r){const[n,...s]=e,i=this.get(n,!0);return s.length===0?!r&&re(i)?i.value:i:ce(i)?i.getIn(s,r):void 0}hasAllNullValues(e){return this.items.every(r=>{if(!fe(r))return!1;const n=r.value;return n==null||e&&re(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[r,...n]=e;if(n.length===0)return this.has(r);const s=this.get(r,!0);return ce(s)?s.hasIn(n):!1}setIn(e,r){const[n,...s]=e;if(s.length===0)this.set(n,r);else{const i=this.get(n,!0);if(ce(i))i.setIn(s,r);else if(i===void 0&&this.schema)this.set(n,Rn(this.schema,s,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}};var Q$=Object.defineProperty,Ga=f((t,e)=>Q$(t,"name",{value:e,configurable:!0}),"r$7");const Z$=Ga(t=>t.replace(/^(?!$)(?: $)?/gm,"#"),"stringifyComment");function nt(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}f(nt,"s$l");Ga(nt,"indentComment");const Jt=Ga((t,e,r)=>t.endsWith(`
29
+ `)?nt(r,e):r.includes(`
30
+ `)?`
31
+ `+nt(r,e):(t.endsWith(" ")?"":" ")+r,"lineComment");var e1=Object.defineProperty,Lf=f((t,e)=>e1(t,"name",{value:e,configurable:!0}),"O$3");const kf="flow",zo="block",Ss="quoted";function us(t,e,r="flow",{indentAtStart:n,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}={}){if(!s||s<0)return t;s<i&&(i=0);const u=Math.max(1+i,1+s-e.length);if(t.length<=u)return t;const c=[],l={};let p=s-e.length;typeof n=="number"&&(n>s-Math.max(2,i)?c.push(0):p=s-n);let h,g,b=!1,m=-1,v=-1,E=-1;r===zo&&(m=Xo(t,m,e.length),m!==-1&&(p=m+u));for(let y;y=t[m+=1];){if(r===Ss&&y==="\\"){switch(v=m,t[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}E=m}if(y===`
32
+ `)r===zo&&(m=Xo(t,m,e.length)),p=m+e.length+u,h=void 0;else{if(y===" "&&g&&g!==" "&&g!==`
33
+ `&&g!==" "){const D=t[m+1];D&&D!==" "&&D!==`
34
+ `&&D!==" "&&(h=m)}if(m>=p)if(h)c.push(h),p=h+u,h=void 0;else if(r===Ss){for(;g===" "||g===" ";)g=y,y=t[m+=1],b=!0;const D=m>E+1?m-2:v-1;if(l[D])return t;c.push(D),l[D]=!0,p=D+u,h=void 0}else b=!0}g=y}if(b&&a&&a(),c.length===0)return t;o&&o();let C=t.slice(0,c[0]);for(let y=0;y<c.length;++y){const D=c[y],w=c[y+1]||t.length;D===0?C=`
35
+ ${e}${t.slice(0,w)}`:(r===Ss&&l[D]&&(C+=`${t[D]}\\`),C+=`
36
+ ${e}${t.slice(D+1,w)}`)}return C}f(us,"q$4");Lf(us,"foldFlowLines");function Xo(t,e,r){let n=e,s=e+1,i=t[s];for(;i===" "||i===" ";)if(e<s+r)i=t[++e];else{do i=t[++e];while(i&&i!==`
37
+ `);n=e,s=e+1,i=t[s]}return n}f(Xo,"E$6");Lf(Xo,"consumeMoreIndentedLines");var t1=Object.defineProperty,Xe=f((t,e)=>t1(t,"name",{value:e,configurable:!0}),"d$h");const Bi=Xe((t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),"getFoldOptions"),Ii=Xe(t=>/^(%|---|\.\.\.)/m.test(t),"containsDocumentMarker");function Bf(t,e,r){if(!e||e<0)return!1;const n=e-r,s=t.length;if(s<=n)return!1;for(let i=0,o=0;i<s;++i)if(t[i]===`
38
+ `){if(i-o>n)return!0;if(o=i+1,s-o<=n)return!1}return!0}f(Bf,"M$3");Xe(Bf,"lineLengthOverLimit");function Dr(t,e){const r=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=e,s=e.options.doubleQuotedMinMultiLineLength,i=e.indent||(Ii(t)?" ":"");let o="",a=0;for(let u=0,c=r[u];c;c=r[++u])if(c===" "&&r[u+1]==="\\"&&r[u+2]==="n"&&(o+=r.slice(a,u)+"\\ ",u+=1,a=u,c="\\"),c==="\\")switch(r[u+1]){case"u":{o+=r.slice(a,u);const l=r.substr(u+2,4);switch(l){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:l.substr(0,2)==="00"?o+="\\x"+l.substr(2):o+=r.substr(u,6)}u+=5,a=u+1}break;case"n":if(n||r[u+2]==='"'||r.length<s)u+=1;else{for(o+=r.slice(a,u)+`
39
+
40
+ `;r[u+2]==="\\"&&r[u+3]==="n"&&r[u+4]!=='"';)o+=`
41
+ `,u+=2;o+=i,r[u+2]===" "&&(o+="\\"),u+=1,a=u+1}break;default:u+=1}return o=a?o+r.slice(a):r,n?o:us(o,i,Ss,Bi(e,!1))}f(Dr,"k$9");Xe(Dr,"doubleQuotedString");function Ms(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
42
+ `)||/[ \t]\n|\n[ \t]/.test(t))return Dr(t,e);const r=e.indent||(Ii(t)?" ":""),n="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
43
+ ${r}`)+"'";return e.implicitKey?n:us(n,r,kf,Bi(e,!1))}f(Ms,"B$4");Xe(Ms,"singleQuotedString");function Qt(t,e){const{singleQuote:r}=e.options;let n;if(r===!1)n=Dr;else{const s=t.includes('"'),i=t.includes("'");s&&!i?n=Ms:i&&!s?n=Dr:n=r?Ms:Dr}return n(t,e)}f(Qt,"S$6");Xe(Qt,"quotedString");let Jo;try{Jo=new RegExp(`(^|(?<!
44
+ ))
45
+ +(?!
46
+ |$)`,"g")}catch{Jo=/\n+(?!\n|$)/g}function On({comment:t,type:e,value:r},n,s,i){const{blockQuote:o,commentString:a,lineWidth:u}=n.options;if(!o||/\n[\t ]+$/.test(r))return Qt(r,n);const c=n.indent||(n.forceBlockIndent||Ii(r)?" ":""),l=o==="literal"?!0:o==="folded"||e===U.BLOCK_FOLDED?!1:e===U.BLOCK_LITERAL?!0:!Bf(r,u,c.length);if(!r)return l?`|
47
+ `:`>
48
+ `;let p,h;for(h=r.length;h>0;--h){const D=r[h-1];if(D!==`
49
+ `&&D!==" "&&D!==" ")break}let g=r.substring(h);const b=g.indexOf(`
50
+ `);b===-1?p="-":r===g||b!==g.length-1?(p="+",i&&i()):p="",g&&(r=r.slice(0,-g.length),g[g.length-1]===`
51
+ `&&(g=g.slice(0,-1)),g=g.replace(Jo,`$&${c}`));let m=!1,v,E=-1;for(v=0;v<r.length;++v){const D=r[v];if(D===" ")m=!0;else if(D===`
52
+ `)E=v;else break}let C=r.substring(0,E<v?E+1:v);C&&(r=r.substring(C.length),C=C.replace(/\n+/g,`$&${c}`));let y=(m?c?"2":"1":"")+p;if(t&&(y+=" "+a(t.replace(/ ?[\r\n]+/g," ")),s&&s()),!l){const D=r.replace(/\n+/g,`
53
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let w=!1;const d=Bi(n,!0);o!=="folded"&&e!==U.BLOCK_FOLDED&&(d.onOverflow=()=>{w=!0});const $=us(`${C}${D}${g}`,c,zo,d);if(!w)return`>${y}
54
+ ${c}${$}`}return r=r.replace(/\n+/g,`$&${c}`),`|${y}
55
+ ${c}${C}${r}${g}`}f(On,"D$4");Xe(On,"blockString");function If(t,e,r,n){const{type:s,value:i}=t,{actualString:o,implicitKey:a,indent:u,indentStep:c,inFlow:l}=e;if(a&&i.includes(`
56
+ `)||l&&/[[\]{},]/.test(i))return Qt(i,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||l||!i.includes(`
57
+ `)?Qt(i,e):On(t,e,r,n);if(!a&&!l&&s!==U.PLAIN&&i.includes(`
58
+ `))return On(t,e,r,n);if(Ii(i)){if(u==="")return e.forceBlockIndent=!0,On(t,e,r,n);if(a&&u===c)return Qt(i,e)}const p=i.replace(/\n+/g,`$&
59
+ ${u}`);if(o){const h=Xe(m=>m.default&&m.tag!=="tag:yaml.org,2002:str"&&m.test?.test(p),"test"),{compat:g,tags:b}=e.doc.schema;if(b.some(h)||g?.some(h))return Qt(i,e)}return a?p:us(p,u,kf,Bi(e,!1))}f(If,"m$f");Xe(If,"plainString");function jr(t,e,r,n){const{implicitKey:s,inFlow:i}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:a}=t;a!==U.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=U.QUOTE_DOUBLE);const u=Xe(l=>{switch(l){case U.BLOCK_FOLDED:case U.BLOCK_LITERAL:return s||i?Qt(o.value,e):On(o,e,r,n);case U.QUOTE_DOUBLE:return Dr(o.value,e);case U.QUOTE_SINGLE:return Ms(o.value,e);case U.PLAIN:return If(o,e,r,n);default:return null}},"_stringify");let c=u(a);if(c===null){const{defaultKeyType:l,defaultStringType:p}=e.options,h=s&&l||p;if(c=u(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}f(jr,"R$5");Xe(jr,"stringifyString");var r1=Object.defineProperty,cs=f((t,e)=>r1(t,"name",{value:e,configurable:!0}),"s$k");function Ua(t,e){const r=Object.assign({blockQuote:!0,commentString:Z$,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}f(Ua,"w$6");cs(Ua,"createStringifyContext");function Rf(t,e){if(e.tag){const s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)??s[0]}let r,n;if(re(e)){n=e.value;let s=t.filter(i=>i.identify?.(n));if(s.length>1){const i=s.filter(o=>o.test);i.length>0&&(s=i)}r=s.find(i=>i.format===e.format)??s.find(i=>!i.format)}else n=e,r=t.find(s=>s.nodeClass&&n instanceof s.nodeClass);if(!r){const s=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${s} value`)}return r}f(Rf,"b$j");cs(Rf,"getTagObject");function _f(t,e,{anchors:r,doc:n}){if(!n.directives)return"";const s=[],i=(re(t)||ce(t))&&t.anchor;i&&Ra(i)&&(r.add(i),s.push(`&${i}`));const o=t.tag??(e.default?null:e.tag);return o&&s.push(n.directives.tagString(o)),s.join(" ")}f(_f,"A$7");cs(_f,"stringifyProps");function er(t,e,r,n){if(fe(t))return t.toString(e,r,n);if(_r(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let s;const i=le(t)?t:e.doc.createNode(t,{onTagObj:cs(u=>s=u,"onTagObj")});s??(s=Rf(e.doc.schema.tags,i));const o=_f(i,s,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const a=typeof s.stringify=="function"?s.stringify(i,e,r,n):re(i)?jr(i,e,r,n):i.toString(e,r,n);return o?re(i)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
60
+ ${e.indent}${a}`:a}f(er,"O$2");cs(er,"stringify");var n1=Object.defineProperty,s1=f((t,e)=>n1(t,"name",{value:e,configurable:!0}),"D$3");function Tf({key:t,value:e},r,n,s){const{allNullValues:i,doc:o,indent:a,indentStep:u,options:{commentString:c,indentSeq:l,simpleKeys:p}}=r;let h=le(t)&&t.comment||null;if(p){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(ce(t)||!le(t)&&typeof t=="object"){const $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let g=!p&&(!t||h&&e==null&&!r.inFlow||ce(t)||(re(t)?t.type===U.BLOCK_FOLDED||t.type===U.BLOCK_LITERAL:typeof t=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!g&&(p||!i),indent:a+u});let b=!1,m=!1,v=er(t,r,()=>b=!0,()=>m=!0);if(!g&&!r.inFlow&&v.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(r.inFlow){if(i||e==null)return b&&n&&n(),v===""?"?":g?`? ${v}`:v}else if(i&&!p||e==null&&g)return v=`? ${v}`,h&&!b?v+=Jt(v,r.indent,c(h)):m&&s&&s(),v;b&&(h=null),g?(h&&(v+=Jt(v,r.indent,c(h))),v=`? ${v}
61
+ ${a}:`):(v=`${v}:`,h&&(v+=Jt(v,r.indent,c(h))));let E,C,y;le(e)?(E=!!e.spaceBefore,C=e.commentBefore,y=e.comment):(E=!1,C=null,y=null,e&&typeof e=="object"&&(e=o.createNode(e))),r.implicitKey=!1,!g&&!h&&re(e)&&(r.indentAtStart=v.length+1),m=!1,!l&&u.length>=2&&!r.inFlow&&!g&&as(e)&&!e.flow&&!e.tag&&!e.anchor&&(r.indent=r.indent.substring(2));let D=!1;const w=er(e,r,()=>D=!0,()=>m=!0);let d=" ";if(h||E||C){if(d=E?`
62
+ `:"",C){const $=c(C);d+=`
63
+ ${nt($,r.indent)}`}w===""&&!r.inFlow?d===`
64
+ `&&y&&(d=`
65
+
66
+ `):d+=`
67
+ ${r.indent}`}else if(!g&&ce(e)){const $=w[0],A=w.indexOf(`
68
+ `),P=A!==-1,x=r.inFlow??e.flow??e.items.length===0;if(P||!x){let R=!1;if(P&&($==="&"||$==="!")){let M=w.indexOf(" ");$==="&"&&M!==-1&&M<A&&w[M+1]==="!"&&(M=w.indexOf(" ",M+1)),(M===-1||A<M)&&(R=!0)}R||(d=`
69
+ ${r.indent}`)}}else(w===""||w[0]===`
70
+ `)&&(d="");return v+=d+w,r.inFlow?D&&n&&n():y&&!D?v+=Jt(v,r.indent,c(y)):m&&s&&s(),v}f(Tf,"R$4");s1(Tf,"stringifyPair");var i1=Object.defineProperty,jf=f((t,e)=>i1(t,"name",{value:e,configurable:!0}),"u$o");function o1(t,...e){t==="debug"&&console.log(...e)}f(o1,"e$4");jf(o1,"debug");function Ha(t,e){(t==="debug"||t==="warn")&&console.warn(e)}f(Ha,"f$i");jf(Ha,"warn");var a1=Object.defineProperty,Zt=f((t,e)=>a1(t,"name",{value:e,configurable:!0}),"s$j");const Es="<<",At={identify:Zt(t=>t===Es||typeof t=="symbol"&&t.description===Es,"identify"),default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:Zt(()=>Object.assign(new U(Symbol(Es)),{addToJSMap:Ka}),"resolve"),stringify:Zt(()=>Es,"stringify")},u1=Zt((t,e)=>(At.identify(e)||re(e)&&(!e.type||e.type===U.PLAIN)&&At.identify(e.value))&&t?.doc.schema.tags.some(r=>r.tag===At.tag&&r.default),"isMergeKey");function Ka(t,e,r){const n=qa(t,r);if(as(n))for(const s of n.items)Fs(t,e,s);else if(Array.isArray(n))for(const s of n)Fs(t,e,s);else Fs(t,e,n)}f(Ka,"d$g");Zt(Ka,"addMergeToJSMap");function Fs(t,e,r){const n=qa(t,r);if(!os(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,t,Map);for(const[i,o]of s)e instanceof Map?e.has(i)||e.set(i,o):e instanceof Set?e.add(i):Object.prototype.hasOwnProperty.call(e,i)||Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}f(Fs,"l$e");Zt(Fs,"mergeValue");function qa(t,e){return t&&_r(e)?e.resolve(t.doc,t):e}f(qa,"g$d");Zt(qa,"resolveAliasValue");var c1=Object.defineProperty,Mf=f((t,e)=>c1(t,"name",{value:e,configurable:!0}),"s$i");function Wa(t,e,{key:r,value:n}){if(le(r)&&r.addToJSMap)r.addToJSMap(t,e,n);else if(u1(t,r))Ka(t,e,n);else{const s=_e(r,"",t);if(e instanceof Map)e.set(s,_e(n,s,t));else if(e instanceof Set)e.add(s);else{const i=Gf(r,s,t),o=_e(n,i,t);i in e?Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[i]=o}}return e}f(Wa,"b$i");Mf(Wa,"addPairToJSMap");function Gf(t,e,r){if(e===null)return"";if(typeof e!="object")return String(e);if(le(t)&&r?.doc){const n=Ua(r.doc,{});n.anchors=new Set;for(const i of r.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;const s=t.toString(n);if(!r.mapKeyWarned){let i=JSON.stringify(s);i.length>40&&(i=i.substring(0,36)+'..."'),Ha(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return s}return JSON.stringify(e)}f(Gf,"p$e");Mf(Gf,"stringifyKey");var l1=Object.defineProperty,Uf=f((t,e)=>l1(t,"name",{value:e,configurable:!0}),"o$7");function Ri(t,e,r){const n=Sr(t,void 0,r),s=Sr(e,void 0,r);return new Te(n,s)}f(Ri,"m$e");Uf(Ri,"createPair");let Te=class Hf{static{f(this,"i")}static{Uf(this,"Pair")}constructor(e,r=null){Object.defineProperty(this,He,{value:$f}),this.key=e,this.value=r}clone(e){let{key:r,value:n}=this;return le(r)&&(r=r.clone(e)),le(n)&&(n=n.clone(e)),new Hf(r,n)}toJSON(e,r){const n=r?.mapAsMap?new Map:{};return Wa(r,n,this)}toString(e,r,n){return e?.doc?Tf(this,e,r,n):JSON.stringify(this)}};var f1=Object.defineProperty,_i=f((t,e)=>f1(t,"name",{value:e,configurable:!0}),"$$3");function Va(t,e,r){return(e.inFlow??t.flow?qf:Kf)(t,e,r)}f(Va,"P$4");_i(Va,"stringifyCollection");function Kf({comment:t,items:e},r,{blockItemPrefix:n,flowChars:s,itemIndent:i,onChompKeep:o,onComment:a}){const{indent:u,options:{commentString:c}}=r,l=Object.assign({},r,{indent:i,type:null});let p=!1;const h=[];for(let b=0;b<e.length;++b){const m=e[b];let v=null;if(le(m))!p&&m.spaceBefore&&h.push(""),_n(r,h,m.commentBefore,p),m.comment&&(v=m.comment);else if(fe(m)){const C=le(m.key)?m.key:null;C&&(!p&&C.spaceBefore&&h.push(""),_n(r,h,C.commentBefore,p))}p=!1;let E=er(m,l,()=>v=null,()=>p=!0);v&&(E+=Jt(E,i,c(v))),p&&v&&(p=!1),h.push(n+E)}let g;if(h.length===0)g=s.start+s.end;else{g=h[0];for(let b=1;b<h.length;++b){const m=h[b];g+=m?`
71
+ ${u}${m}`:`
72
+ `}}return t?(g+=`
73
+ `+nt(c(t),u),a&&a()):p&&o&&o(),g}f(Kf,"b$h");_i(Kf,"stringifyBlockCollection");function qf({items:t},e,{flowChars:r,itemIndent:n}){const{indent:s,indentStep:i,flowCollectionPadding:o,options:{commentString:a}}=e;n+=i;const u=Object.assign({},e,{indent:n,inFlow:!0,type:null});let c=!1,l=0;const p=[];for(let b=0;b<t.length;++b){const m=t[b];let v=null;if(le(m))m.spaceBefore&&p.push(""),_n(e,p,m.commentBefore,!1),m.comment&&(v=m.comment);else if(fe(m)){const C=le(m.key)?m.key:null;C&&(C.spaceBefore&&p.push(""),_n(e,p,C.commentBefore,!1),C.comment&&(c=!0));const y=le(m.value)?m.value:null;y?(y.comment&&(v=y.comment),y.commentBefore&&(c=!0)):m.value==null&&C?.comment&&(v=C.comment)}v&&(c=!0);let E=er(m,u,()=>v=null);c||(c=p.length>l||E.includes(`
74
+ `)),b<t.length-1?E+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(c||(c=p.reduce((C,y)=>C+y.length+2,2)+(E.length+2)>e.options.lineWidth)),c&&(E+=",")),v&&(E+=Jt(E,n,a(v))),p.push(E),l=p.length}const{start:h,end:g}=r;if(p.length===0)return h+g;if(!c){const b=p.reduce((m,v)=>m+v.length+2,2);c=e.options.lineWidth>0&&b>e.options.lineWidth}if(c){let b=h;for(const m of p)b+=m?`
75
+ ${i}${s}${m}`:`
76
+ `;return`${b}
77
+ ${s}${g}`}else return`${h}${o}${p.join(" ")}${o}${g}`}f(qf,"N$6");_i(qf,"stringifyFlowCollection");function _n({indent:t,options:{commentString:e}},r,n,s){if(n&&s&&(n=n.replace(/^\n+/,"")),n){const i=nt(e(n),t);r.push(i.trimStart())}}f(_n,"C$6");_i(_n,"addCommentBefore");var p1=Object.defineProperty,Qo=f((t,e)=>p1(t,"name",{value:e,configurable:!0}),"m$d");function Lt(t,e){const r=re(e)?e.value:e;for(const n of t)if(fe(n)&&(n.key===e||n.key===r||re(n.key)&&n.key.value===r))return n}f(Lt,"f$g");Qo(Lt,"findPair");let Ue=class extends xf{static{f(this,"N")}static{Qo(this,"YAMLMap")}static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(kt,e),this.items=[]}static from(e,r,n){const{keepUndefined:s,replacer:i}=n,o=new this(e),a=Qo((u,c)=>{if(typeof i=="function")c=i.call(r,u,c);else if(Array.isArray(i)&&!i.includes(u))return;(c!==void 0||s)&&o.items.push(Ri(u,c,n))},"add");if(r instanceof Map)for(const[u,c]of r)a(u,c);else if(r&&typeof r=="object")for(const u of Object.keys(r))a(u,r[u]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,r){let n;fe(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new Te(e,e?.value):n=new Te(e.key,e.value);const s=Lt(this.items,n.key),i=this.schema?.sortMapEntries;if(s){if(!r)throw new Error(`Key ${n.key} already set`);re(s.value)&&Of(n.value)?s.value.value=n.value:s.value=n.value}else if(i){const o=this.items.findIndex(a=>i(n,a)<0);o===-1?this.items.push(n):this.items.splice(o,0,n)}else this.items.push(n)}delete(e){const r=Lt(this.items,e);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(e,r){const n=Lt(this.items,e)?.value;return(!r&&re(n)?n.value:n)??void 0}has(e){return!!Lt(this.items,e)}set(e,r){this.add(new Te(e,r),!0)}toJSON(e,r,n){const s=n?new n:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(s);for(const i of this.items)Wa(r,s,i);return s}toString(e,r,n){if(!e)return JSON.stringify(this);for(const s of this.items)if(!fe(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Va(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:r})}};var h1=Object.defineProperty,d1=f((t,e)=>h1(t,"name",{value:e,configurable:!0}),"a$j");const Mr={collection:"map",default:!0,nodeClass:Ue,tag:"tag:yaml.org,2002:map",resolve(t,e){return os(t)||e("Expected a mapping for this tag"),t},createNode:d1((t,e,r)=>Ue.from(t,e,r),"createNode")};var m1=Object.defineProperty,Wf=f((t,e)=>m1(t,"name",{value:e,configurable:!0}),"m$c");let tr=class extends xf{static{f(this,"b")}static{Wf(this,"YAMLSeq")}static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Rr,e),this.items=[]}add(e){this.items.push(e)}delete(e){const r=$n(e);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(e,r){const n=$n(e);if(typeof n!="number")return;const s=this.items[n];return!r&&re(s)?s.value:s}has(e){const r=$n(e);return typeof r=="number"&&r<this.items.length}set(e,r){const n=$n(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const s=this.items[n];re(s)&&Of(r)?s.value=r:this.items[n]=r}toJSON(e,r){const n=[];r?.onCreate&&r.onCreate(n);let s=0;for(const i of this.items)n.push(_e(i,String(s++),r));return n}toString(e,r,n){return e?Va(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:r}):JSON.stringify(this)}static from(e,r,n){const{replacer:s}=n,i=new this(e);if(r&&Symbol.iterator in Object(r)){let o=0;for(let a of r){if(typeof s=="function"){const u=r instanceof Set?a:String(o++);a=s.call(r,u,a)}i.items.push(Sr(a,void 0,n))}}return i}};function $n(t){let e=re(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}f($n,"f$f");Wf($n,"asItemIndex");var g1=Object.defineProperty,y1=f((t,e)=>g1(t,"name",{value:e,configurable:!0}),"t$7");const Gr={collection:"seq",default:!0,nodeClass:tr,tag:"tag:yaml.org,2002:seq",resolve(t,e){return as(t)||e("Expected a sequence for this tag"),t},createNode:y1((t,e,r)=>tr.from(t,e,r),"createNode")};var b1=Object.defineProperty,uc=f((t,e)=>b1(t,"name",{value:e,configurable:!0}),"i$c");const Ti={identify:uc(t=>typeof t=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:uc(t=>t,"resolve"),stringify(t,e,r,n){return e=Object.assign({actualString:!0},e),jr(t,e,r,n)}};var v1=Object.defineProperty,$s=f((t,e)=>v1(t,"name",{value:e,configurable:!0}),"l$d");const ji={identify:$s(t=>t==null,"identify"),createNode:$s(()=>new U(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:$s(()=>new U(null),"resolve"),stringify:$s(({source:t},e)=>typeof t=="string"&&ji.test.test(t)?t:e.options.nullStr,"stringify")};var D1=Object.defineProperty,cc=f((t,e)=>D1(t,"name",{value:e,configurable:!0}),"e$3");const Ya={identify:cc(t=>typeof t=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:cc(t=>new U(t[0]==="t"||t[0]==="T"),"resolve"),stringify({source:t,value:e},r){if(t&&Ya.test.test(t)){const n=t[0]==="t"||t[0]==="T";if(e===n)return t}return e?r.options.trueStr:r.options.falseStr}};var E1=Object.defineProperty,$1=f((t,e)=>E1(t,"name",{value:e,configurable:!0}),"g$c");function Ke({format:t,minFractionDigits:e,tag:r,value:n}){if(typeof n=="bigint")return String(n);const s=typeof n=="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=Object.is(n,-0)?"-0":JSON.stringify(n);if(!t&&e&&(!r||r==="tag:yaml.org,2002:float")&&/^-?\d/.test(i)&&!i.includes("e")){let o=i.indexOf(".");o<0&&(o=i.length,i+=".");let a=e-(i.length-o-1);for(;a-- >0;)i+="0"}return i}f(Ke,"y$e");$1(Ke,"stringifyNumber");var A1=Object.defineProperty,Tn=f((t,e)=>A1(t,"name",{value:e,configurable:!0}),"o$6");const Vf={identify:Tn(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:Tn(t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:Ke},Yf={identify:Tn(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:Tn(t=>parseFloat(t),"resolve"),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():Ke(t)}},zf={identify:Tn(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new U(parseFloat(t)),r=t.indexOf(".");return r!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-r-1),e},stringify:Ke};var C1=Object.defineProperty,ut=f((t,e)=>C1(t,"name",{value:e,configurable:!0}),"r$4");const Mi=ut(t=>typeof t=="bigint"||Number.isInteger(t),"intIdentify"),za=ut((t,e,r,{intAsBigInt:n})=>n?BigInt(t):parseInt(t.substring(e),r),"intResolve");function Xa(t,e,r){const{value:n}=t;return Mi(n)&&n>=0?r+n.toString(e):Ke(t)}f(Xa,"g$b");ut(Xa,"intStringify");const Xf={identify:ut(t=>Mi(t)&&t>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:ut((t,e,r)=>za(t,2,8,r),"resolve"),stringify:ut(t=>Xa(t,8,"0o"),"stringify")},Jf={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:ut((t,e,r)=>za(t,0,10,r),"resolve"),stringify:Ke},Qf={identify:ut(t=>Mi(t)&&t>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:ut((t,e,r)=>za(t,2,16,r),"resolve"),stringify:ut(t=>Xa(t,16,"0x"),"stringify")},w1=[Mr,Gr,Ti,ji,Ya,Xf,Jf,Qf,Vf,Yf,zf];var S1=Object.defineProperty,Re=f((t,e)=>S1(t,"name",{value:e,configurable:!0}),"e$2");function Zo(t){return typeof t=="bigint"||Number.isInteger(t)}f(Zo,"i$b");Re(Zo,"intIdentify");const As=Re(({value:t})=>JSON.stringify(t),"stringifyJSON"),F1=[{identify:Re(t=>typeof t=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:Re(t=>t,"resolve"),stringify:As},{identify:Re(t=>t==null,"identify"),createNode:Re(()=>new U(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:Re(()=>null,"resolve"),stringify:As},{identify:Re(t=>typeof t=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:Re(t=>t==="true","resolve"),stringify:As},{identify:Zo,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:Re((t,e,{intAsBigInt:r})=>r?BigInt(t):parseInt(t,10),"resolve"),stringify:Re(({value:t})=>Zo(t)?t.toString():JSON.stringify(t),"stringify")},{identify:Re(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:Re(t=>parseFloat(t),"resolve"),stringify:As}],O1={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},P1=[Mr,Gr].concat(F1,O1);var N1=Object.defineProperty,x1=f((t,e)=>N1(t,"name",{value:e,configurable:!0}),"b$e");const Ja={identify:x1(t=>t instanceof Uint8Array,"identify"),default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof atob=="function"){const r=atob(t.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let s=0;s<r.length;++s)n[s]=r.charCodeAt(s);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:r},n,s,i){if(!r)return"";const o=r;let a;if(typeof btoa=="function"){let u="";for(let c=0;c<o.length;++c)u+=String.fromCharCode(o[c]);a=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=U.BLOCK_LITERAL),e!==U.QUOTE_DOUBLE){const u=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),c=Math.ceil(a.length/u),l=new Array(c);for(let p=0,h=0;p<c;++p,h+=u)l[p]=a.substr(h,u);a=l.join(e===U.BLOCK_LITERAL?`
78
+ `:" ")}return jr({comment:t,type:e,value:a},n,s,i)}};var L1=Object.defineProperty,Zf=f((t,e)=>L1(t,"name",{value:e,configurable:!0}),"f$b");function Qa(t,e){if(as(t))for(let r=0;r<t.items.length;++r){let n=t.items[r];if(!fe(n)){if(os(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");const s=n.items[0]||new Te(new U(null));if(n.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${n.commentBefore}
79
+ ${s.key.commentBefore}`:n.commentBefore),n.comment){const i=s.value??s.key;i.comment=i.comment?`${n.comment}
80
+ ${i.comment}`:n.comment}n=s}t.items[r]=fe(n)?n:new Te(n)}}else e("Expected a sequence for this tag");return t}f(Qa,"y$a");Zf(Qa,"resolvePairs");function Za(t,e,r){const{replacer:n}=r,s=new tr(t);s.tag="tag:yaml.org,2002:pairs";let i=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(i++),o));let a,u;if(Array.isArray(o))if(o.length===2)a=o[0],u=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)a=c[0],u=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;s.items.push(Ri(a,u,r))}return s}f(Za,"u$j");Zf(Za,"createPairs");const eu={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Qa,createNode:Za};var k1=Object.defineProperty,ea=f((t,e)=>k1(t,"name",{value:e,configurable:!0}),"p$b");let Os=class ep extends tr{static{f(this,"a")}static{ea(this,"YAMLOMap")}constructor(){super(),this.add=Ue.prototype.add.bind(this),this.delete=Ue.prototype.delete.bind(this),this.get=Ue.prototype.get.bind(this),this.has=Ue.prototype.has.bind(this),this.set=Ue.prototype.set.bind(this),this.tag=ep.tag}toJSON(e,r){if(!r)return super.toJSON(e);const n=new Map;r?.onCreate&&r.onCreate(n);for(const s of this.items){let i,o;if(fe(s)?(i=_e(s.key,"",r),o=_e(s.value,i,r)):i=_e(s,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,o)}return n}static from(e,r,n){const s=Za(e,r,n),i=new this;return i.items=s.items,i}};Os.tag="tag:yaml.org,2002:omap";const tu={collection:"seq",identify:ea(t=>t instanceof Map,"identify"),nodeClass:Os,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const r=Qa(t,e),n=[];for(const{key:s}of r.items)re(s)&&(n.includes(s.value)?e(`Ordered maps must not include duplicate keys: ${s.value}`):n.push(s.value));return Object.assign(new Os,r)},createNode:ea((t,e,r)=>Os.from(t,e,r),"createNode")};var B1=Object.defineProperty,jn=f((t,e)=>B1(t,"name",{value:e,configurable:!0}),"e$1");function ru({value:t,source:e},r){return e&&(t?tp:rp).test.test(e)?e:t?r.options.trueStr:r.options.falseStr}f(ru,"f$a");jn(ru,"boolStringify");const tp={identify:jn(t=>t===!0,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:jn(()=>new U(!0),"resolve"),stringify:ru},rp={identify:jn(t=>t===!1,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:jn(()=>new U(!1),"resolve"),stringify:ru};var I1=Object.defineProperty,Mn=f((t,e)=>I1(t,"name",{value:e,configurable:!0}),"a$b");const R1={identify:Mn(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:Mn(t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:Ke},_1={identify:Mn(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:Mn(t=>parseFloat(t.replace(/_/g,"")),"resolve"),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():Ke(t)}},T1={identify:Mn(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new U(parseFloat(t.replace(/_/g,""))),r=t.indexOf(".");if(r!==-1){const n=t.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:Ke};var j1=Object.defineProperty,ht=f((t,e)=>j1(t,"name",{value:e,configurable:!0}),"i$9");const ls=ht(t=>typeof t=="bigint"||Number.isInteger(t),"intIdentify");function fs(t,e,r,{intAsBigInt:n}){const s=t[0];if((s==="-"||s==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),n){switch(r){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return s==="-"?BigInt(-1)*o:o}const i=parseInt(t,r);return s==="-"?-1*i:i}f(fs,"g$6");ht(fs,"intResolve");function Gi(t,e,r){const{value:n}=t;if(ls(n)){const s=n.toString(e);return n<0?"-"+r+s.substr(1):r+s}return Ke(t)}f(Gi,"s$d");ht(Gi,"intStringify");const M1={identify:ls,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:ht((t,e,r)=>fs(t,2,2,r),"resolve"),stringify:ht(t=>Gi(t,2,"0b"),"stringify")},G1={identify:ls,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:ht((t,e,r)=>fs(t,1,8,r),"resolve"),stringify:ht(t=>Gi(t,8,"0"),"stringify")},U1={identify:ls,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:ht((t,e,r)=>fs(t,0,10,r),"resolve"),stringify:Ke},H1={identify:ls,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:ht((t,e,r)=>fs(t,2,16,r),"resolve"),stringify:ht(t=>Gi(t,16,"0x"),"stringify")};var K1=Object.defineProperty,ta=f((t,e)=>K1(t,"name",{value:e,configurable:!0}),"n$7");let Ps=class np extends Ue{static{f(this,"l")}static{ta(this,"YAMLSet")}constructor(e){super(e),this.tag=np.tag}add(e){let r;fe(e)?r=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?r=new Te(e.key,null):r=new Te(e,null),Lt(this.items,r.key)||this.items.push(r)}get(e,r){const n=Lt(this.items,e);return!r&&fe(n)?re(n.key)?n.key.value:n.key:n}set(e,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const n=Lt(this.items,e);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new Te(e))}toJSON(e,r){return super.toJSON(e,r,Set)}toString(e,r,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(e,r,n){const{replacer:s}=n,i=new this(e);if(r&&Symbol.iterator in Object(r))for(let o of r)typeof s=="function"&&(o=s.call(r,o,o)),i.items.push(Ri(o,null,n));return i}};Ps.tag="tag:yaml.org,2002:set";const nu={collection:"map",identify:ta(t=>t instanceof Set,"identify"),nodeClass:Ps,default:!1,tag:"tag:yaml.org,2002:set",createNode:ta((t,e,r)=>Ps.from(t,e,r),"createNode"),resolve(t,e){if(os(t)){if(t.hasAllNullValues(!0))return Object.assign(new Ps,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};var q1=Object.defineProperty,ze=f((t,e)=>q1(t,"name",{value:e,configurable:!0}),"n$6");function Ui(t,e){const r=t[0],n=r==="-"||r==="+"?t.substring(1):t,s=ze(o=>e?BigInt(o):Number(o),"num"),i=n.replace(/_/g,"").split(":").reduce((o,a)=>o*s(60)+s(a),s(0));return r==="-"?s(-1)*i:i}f(Ui,"l$7");ze(Ui,"parseSexagesimal");function su(t){let{value:e}=t,r=ze(o=>o,"num");if(typeof e=="bigint")r=ze(o=>BigInt(o),"num");else if(isNaN(e)||!isFinite(e))return Ke(t);let n="";e<0&&(n="-",e*=r(-1));const s=r(60),i=[e%s];return e<60?i.unshift(0):(e=(e-i[0])/s,i.unshift(e%s),e>=60&&(e=(e-i[0])/s,i.unshift(e))),n+i.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}f(su,"c$8");ze(su,"stringifySexagesimal");const sp={identify:ze(t=>typeof t=="bigint"||Number.isInteger(t),"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:ze((t,e,{intAsBigInt:r})=>Ui(t,r),"resolve"),stringify:su},ip={identify:ze(t=>typeof t=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:ze(t=>Ui(t,!1),"resolve"),stringify:su},Hi={identify:ze(t=>t instanceof Date,"identify"),default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(Hi.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,i,o,a]=e.map(Number),u=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(r,n-1,s,i||0,o||0,a||0,u);const l=e[8];if(l&&l!=="Z"){let p=Ui(l,!1);Math.abs(p)<30&&(p*=60),c-=6e4*p}return new Date(c)},stringify:ze(({value:t})=>t?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??"","stringify")},lc=[Mr,Gr,Ti,ji,tp,rp,M1,G1,U1,H1,R1,_1,T1,Ja,At,tu,eu,nu,sp,ip,Hi];var W1=Object.defineProperty,V1=f((t,e)=>W1(t,"name",{value:e,configurable:!0}),"s$c");const fc=new Map([["core",w1],["failsafe",[Mr,Gr,Ti]],["json",P1],["yaml11",lc],["yaml-1.1",lc]]),pc={binary:Ja,bool:Ya,float:zf,floatExp:Yf,floatNaN:Vf,floatTime:ip,int:Jf,intHex:Qf,intOct:Xf,intTime:sp,map:Mr,merge:At,null:ji,omap:tu,pairs:eu,seq:Gr,set:nu,timestamp:Hi},Y1={"tag:yaml.org,2002:binary":Ja,"tag:yaml.org,2002:merge":At,"tag:yaml.org,2002:omap":tu,"tag:yaml.org,2002:pairs":eu,"tag:yaml.org,2002:set":nu,"tag:yaml.org,2002:timestamp":Hi};function Ns(t,e,r){const n=fc.get(e);if(n&&!t)return r&&!n.includes(At)?n.concat(At):n.slice();let s=n;if(!s)if(Array.isArray(t))s=[];else{const i=Array.from(fc.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${i} or define customTags array`)}if(Array.isArray(t))for(const i of t)s=s.concat(i);else typeof t=="function"&&(s=t(s.slice()));return r&&(s=s.concat(At)),s.reduce((i,o)=>{const a=typeof o=="string"?pc[o]:o;if(!a){const u=JSON.stringify(o),c=Object.keys(pc).map(l=>JSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag ${u}; use one of ${c}`)}return i.includes(a)||i.push(a),i},[])}f(Ns,"C$5");V1(Ns,"getTags");var z1=Object.defineProperty,op=f((t,e)=>z1(t,"name",{value:e,configurable:!0}),"o$4");const X1=op((t,e)=>t.key<e.key?-1:t.key>e.key?1:0,"sortMapEntriesByKey");let J1=class ap{static{f(this,"i")}static{op(this,"Schema")}constructor({compat:e,customTags:r,merge:n,resolveKnownTags:s,schema:i,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?Ns(e,"compat"):e?Ns(null,e):null,this.name=typeof i=="string"&&i||"core",this.knownTags=s?Y1:{},this.tags=Ns(r,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,kt,{value:Mr}),Object.defineProperty(this,pt,{value:Ti}),Object.defineProperty(this,Rr,{value:Gr}),this.sortMapEntries=typeof o=="function"?o:o===!0?X1:null}clone(){const e=Object.create(ap.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};var Q1=Object.defineProperty,Z1=f((t,e)=>Q1(t,"name",{value:e,configurable:!0}),"u$i");function up(t,e){const r=[];let n=e.directives===!0;if(e.directives!==!1&&t.directives){const u=t.directives.toString(t);u?(r.push(u),n=!0):t.directives.docStart&&(n=!0)}n&&r.push("---");const s=Ua(t,e),{commentString:i}=s.options;if(t.commentBefore){r.length!==1&&r.unshift("");const u=i(t.commentBefore);r.unshift(nt(u,""))}let o=!1,a=null;if(t.contents){if(le(t.contents)){if(t.contents.spaceBefore&&n&&r.push(""),t.contents.commentBefore){const l=i(t.contents.commentBefore);r.push(nt(l,""))}s.forceBlockIndent=!!t.comment,a=t.contents.comment}const u=a?void 0:()=>o=!0;let c=er(t.contents,s,()=>a=null,u);a&&(c+=Jt(c,"",i(a))),(c[0]==="|"||c[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${c}`:r.push(c)}else r.push(er(t.contents,s));if(t.directives?.docEnd)if(t.comment){const u=i(t.comment);u.includes(`
81
+ `)?(r.push("..."),r.push(nt(u,""))):r.push(`... ${u}`)}else r.push("...");else{let u=t.comment;u&&o&&(u=u.replace(/^\n+/,"")),u&&((!o||a)&&r[r.length-1]!==""&&r.push(""),r.push(nt(i(u),"")))}return r.join(`
82
+ `)+`
83
+ `}f(up,"C$4");Z1(up,"stringifyDocument");var eA=Object.defineProperty,ra=f((t,e)=>eA(t,"name",{value:e,configurable:!0}),"f$9");let iu=class cp{static{f(this,"b")}static{ra(this,"Document")}constructor(e,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,He,{value:Vo});let s=null;typeof r=="function"||Array.isArray(r)?s=r:n===void 0&&r&&(n=r,r=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new vr({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,s,n)}clone(){const e=Object.create(cp.prototype,{[He]:{value:Vo}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=le(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){qt(this.contents)&&this.contents.add(e)}addIn(e,r){qt(this.contents)&&this.contents.addIn(e,r)}createAlias(e,r){if(!e.anchor){const n=_a(this);e.anchor=!r||n.has(r)?Ta(r||"a",n):r}return new Ma(e.anchor)}createNode(e,r,n){let s;if(typeof r=="function")e=r.call({"":e},"",e),s=r;else if(Array.isArray(r)){const v=ra(C=>typeof C=="number"||C instanceof String||C instanceof Number,"keyToStr"),E=r.filter(v).map(String);E.length>0&&(r=r.concat(E)),s=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:a,keepUndefined:u,onTagObj:c,tag:l}=n??{},{onAnchor:p,setAnchors:h,sourceObjects:g}=Sf(this,o||"a"),b={aliasDuplicateObjects:i??!0,keepUndefined:u??!1,onAnchor:p,onTagObj:c,replacer:s,schema:this.schema,sourceObjects:g},m=Sr(e,l,b);return a&&ce(m)&&(m.flow=!0),h(),m}createPair(e,r,n={}){const s=this.createNode(e,null,n),i=this.createNode(r,null,n);return new Te(s,i)}delete(e){return qt(this.contents)?this.contents.delete(e):!1}deleteIn(e){return En(e)?this.contents==null?!1:(this.contents=null,!0):qt(this.contents)?this.contents.deleteIn(e):!1}get(e,r){return ce(this.contents)?this.contents.get(e,r):void 0}getIn(e,r){return En(e)?!r&&re(this.contents)?this.contents.value:this.contents:ce(this.contents)?this.contents.getIn(e,r):void 0}has(e){return ce(this.contents)?this.contents.has(e):!1}hasIn(e){return En(e)?this.contents!==void 0:ce(this.contents)?this.contents.hasIn(e):!1}set(e,r){this.contents==null?this.contents=Rn(this.schema,[e],r):qt(this.contents)&&this.contents.set(e,r)}setIn(e,r){En(e)?this.contents=r:this.contents==null?this.contents=Rn(this.schema,Array.from(e),r):qt(this.contents)&&this.contents.setIn(e,r)}setSchema(e,r={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new vr({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new vr({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const s=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new J1(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:r,mapAsMap:n,maxAliasCount:s,onAnchor:i,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},u=_e(this.contents,r??"",a);if(typeof i=="function")for(const{count:c,res:l}of a.anchors.values())i(l,c);return typeof o=="function"?Xt(o,{"":u},"",u):u}toJSON(e,r){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:r})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const r=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return up(this,e)}};function qt(t){if(ce(t))return!0;throw new Error("Expected a YAML collection as document contents")}f(qt,"o$3");ra(qt,"assertCollection");var tA=Object.defineProperty,Ki=f((t,e)=>tA(t,"name",{value:e,configurable:!0}),"l$5");let lp=class extends Error{static{f(this,"g")}static{Ki(this,"YAMLError")}constructor(e,r,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=r}},dr=class extends lp{static{f(this,"h")}static{Ki(this,"YAMLParseError")}constructor(e,r,n){super("YAMLParseError",e,r,n)}},rA=class extends lp{static{f(this,"m")}static{Ki(this,"YAMLWarning")}constructor(e,r,n){super("YAMLWarning",e,r,n)}};const Gs=Ki((t,e)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>e.linePos(a));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let i=s-1,o=t.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const a=Math.min(i-39,o.length-79);o="…"+o.substring(a),i-=a-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,i))){let a=t.substring(e.lineStarts[n-2],e.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`…
84
+ `),o=a+o}if(/[^ ]/.test(o)){let a=1;const u=r.linePos[1];u?.line===n&&u.col>s&&(a=Math.max(1,Math.min(u.col-s,80-i)));const c=" ".repeat(i)+"^".repeat(a);r.message+=`:
85
+
86
+ ${o}
87
+ ${c}
88
+ `}},"prettifyError");var nA=Object.defineProperty,sA=f((t,e)=>nA(t,"name",{value:e,configurable:!0}),"g$3");function rr(t,{flow:e,indicator:r,next:n,offset:s,onError:i,parentIndent:o,startOnNewline:a}){let u=!1,c=a,l=a,p="",h="",g=!1,b=!1,m=null,v=null,E=null,C=null,y=null,D=null,w=null;for(const A of t)switch(b&&(A.type!=="space"&&A.type!=="newline"&&A.type!=="comma"&&i(A.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),m&&(c&&A.type!=="comment"&&A.type!=="newline"&&i(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),A.type){case"space":!e&&(r!=="doc-start"||n?.type!=="flow-collection")&&A.source.includes(" ")&&(m=A),l=!0;break;case"comment":{l||i(A,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const P=A.source.substring(1)||" ";p?p+=h+P:p=P,h="",c=!1;break}case"newline":c?p?p+=A.source:(!D||r!=="seq-item-ind")&&(u=!0):h+=A.source,c=!0,g=!0,(v||E)&&(C=A),l=!0;break;case"anchor":v&&i(A,"MULTIPLE_ANCHORS","A node can have at most one anchor"),A.source.endsWith(":")&&i(A.offset+A.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),v=A,w??(w=A.offset),c=!1,l=!1,b=!0;break;case"tag":{E&&i(A,"MULTIPLE_TAGS","A node can have at most one tag"),E=A,w??(w=A.offset),c=!1,l=!1,b=!0;break}case r:(v||E)&&i(A,"BAD_PROP_ORDER",`Anchors and tags must be after the ${A.source} indicator`),D&&i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.source} in ${e??"collection"}`),D=A,c=r==="seq-item-ind"||r==="explicit-key-ind",l=!1;break;case"comma":if(e){y&&i(A,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),y=A,c=!1,l=!1;break}default:i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.type} token`),c=!1,l=!1}const d=t[t.length-1],$=d?d.offset+d.source.length:s;return b&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(c&&m.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&i(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:y,found:D,spaceBefore:u,comment:p,hasNewline:g,anchor:v,tag:E,newlineAfterProp:C,end:$,start:w??$}}f(rr,"C$3");sA(rr,"resolveProps");var iA=Object.defineProperty,oA=f((t,e)=>iA(t,"name",{value:e,configurable:!0}),"s$b");function Fr(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
89
+ `))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const r of e.start)if(r.type==="newline")return!0;if(e.sep){for(const r of e.sep)if(r.type==="newline")return!0}if(Fr(e.key)||Fr(e.value))return!0}return!1;default:return!0}}f(Fr,"n$5");oA(Fr,"containsNewline");var aA=Object.defineProperty,uA=f((t,e)=>aA(t,"name",{value:e,configurable:!0}),"t$6");function Us(t,e,r){if(e?.type==="flow-collection"){const n=e.end[0];n.indent===t&&(n.source==="]"||n.source==="}")&&Fr(e)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}f(Us,"c$6");uA(Us,"flowIndentCheck");var cA=Object.defineProperty,lA=f((t,e)=>cA(t,"name",{value:e,configurable:!0}),"u$g");function ou(t,e,r){const{uniqueKeys:n}=t.options;if(n===!1)return!1;const s=typeof n=="function"?n:(i,o)=>i===o||re(i)&&re(o)&&i.value===o.value;return e.some(i=>s(i.key,r))}f(ou,"a$8");lA(ou,"mapIncludes");var fA=Object.defineProperty,pA=f((t,e)=>fA(t,"name",{value:e,configurable:!0}),"w$5");const hc="All mapping items must start at the same column";function fp({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=i?.nodeClass??Ue,a=new o(r.schema);r.atRoot&&(r.atRoot=!1);let u=n.offset,c=null;for(const l of n.items){const{start:p,key:h,sep:g,value:b}=l,m=rr(p,{indicator:"explicit-key-ind",next:h??g?.[0],offset:u,onError:s,parentIndent:n.indent,startOnNewline:!0}),v=!m.found;if(v){if(h&&(h.type==="block-seq"?s(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==n.indent&&s(u,"BAD_INDENT",hc)),!m.anchor&&!m.tag&&!g){c=m.end,m.comment&&(a.comment?a.comment+=`
90
+ `+m.comment:a.comment=m.comment);continue}(m.newlineAfterProp||Fr(h))&&s(h??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else m.found?.indent!==n.indent&&s(u,"BAD_INDENT",hc);r.atKey=!0;const E=m.end,C=h?t(r,h,m,s):e(r,E,p,null,m,s);r.schema.compat&&Us(n.indent,h,s),r.atKey=!1,ou(r,a.items,C)&&s(E,"DUPLICATE_KEY","Map keys must be unique");const y=rr(g??[],{indicator:"map-value-ind",next:b,offset:C.range[2],onError:s,parentIndent:n.indent,startOnNewline:!h||h.type==="block-scalar"});if(u=y.end,y.found){v&&(b?.type==="block-map"&&!y.hasNewline&&s(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&m.start<y.found.offset-1024&&s(C.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const D=b?t(r,b,y,s):e(r,u,g,null,y,s);r.schema.compat&&Us(n.indent,b,s),u=D.range[2];const w=new Te(C,D);r.options.keepSourceTokens&&(w.srcToken=l),a.items.push(w)}else{v&&s(C.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),y.comment&&(C.comment?C.comment+=`
91
+ `+y.comment:C.comment=y.comment);const D=new Te(C);r.options.keepSourceTokens&&(D.srcToken=l),a.items.push(D)}}return c&&c<u&&s(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,u,c??u],a}f(fp,"v$9");pA(fp,"resolveBlockMap");var hA=Object.defineProperty,dA=f((t,e)=>hA(t,"name",{value:e,configurable:!0}),"u$f");function pp({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=i?.nodeClass??tr,a=new o(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let u=n.offset,c=null;for(const{start:l,value:p}of n.items){const h=rr(l,{indicator:"seq-item-ind",next:p,offset:u,onError:s,parentIndent:n.indent,startOnNewline:!0});if(!h.found)if(h.anchor||h.tag||p)p?.type==="block-seq"?s(h.end,"BAD_INDENT","All sequence items must start at the same column"):s(u,"MISSING_CHAR","Sequence item without - indicator");else{c=h.end,h.comment&&(a.comment=h.comment);continue}const g=p?t(r,p,h,s):e(r,h.end,l,null,h,s);r.schema.compat&&Us(n.indent,p,s),u=g.range[2],a.items.push(g)}return a.range=[n.offset,u,c??u],a}f(pp,"S$4");dA(pp,"resolveBlockSeq");var mA=Object.defineProperty,gA=f((t,e)=>mA(t,"name",{value:e,configurable:!0}),"f$7");function Ur(t,e,r,n){let s="";if(t){let i=!1,o="";for(const a of t){const{source:u,type:c}=a;switch(c){case"space":i=!0;break;case"comment":{r&&!i&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const l=u.substring(1)||" ";s?s+=o+l:s=l,o="";break}case"newline":s&&(o+=u),i=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=u.length}}return{comment:s,offset:e}}f(Ur,"u$e");gA(Ur,"resolveEnd");var yA=Object.defineProperty,hp=f((t,e)=>yA(t,"name",{value:e,configurable:!0}),"T$4");const po="Block collections are not allowed within flow collections",ho=hp(t=>t&&(t.type==="block-map"||t.type==="block-seq"),"isBlock");function dp({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=n.start.source==="{",a=o?"flow map":"flow sequence",u=i?.nodeClass??(o?Ue:tr),c=new u(r.schema);c.flow=!0;const l=r.atRoot;l&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let p=n.offset+n.start.source.length;for(let v=0;v<n.items.length;++v){const E=n.items[v],{start:C,key:y,sep:D,value:w}=E,d=rr(C,{flow:a,indicator:"explicit-key-ind",next:y??D?.[0],offset:p,onError:s,parentIndent:n.indent,startOnNewline:!1});if(!d.found){if(!d.anchor&&!d.tag&&!D&&!w){v===0&&d.comma?s(d.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):v<n.items.length-1&&s(d.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),d.comment&&(c.comment?c.comment+=`
92
+ `+d.comment:c.comment=d.comment),p=d.end;continue}!o&&r.options.strict&&Fr(y)&&s(y,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(v===0)d.comma&&s(d.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(d.comma||s(d.start,"MISSING_CHAR",`Missing , between ${a} items`),d.comment){let $="";e:for(const A of C)switch(A.type){case"comma":case"space":break;case"comment":$=A.source.substring(1);break e;default:break e}if($){let A=c.items[c.items.length-1];fe(A)&&(A=A.value??A.key),A.comment?A.comment+=`
93
+ `+$:A.comment=$,d.comment=d.comment.substring($.length+1)}}if(!o&&!D&&!d.found){const $=w?t(r,w,d,s):e(r,d.end,D,null,d,s);c.items.push($),p=$.range[2],ho(w)&&s($.range,"BLOCK_IN_FLOW",po)}else{r.atKey=!0;const $=d.end,A=y?t(r,y,d,s):e(r,$,C,null,d,s);ho(y)&&s(A.range,"BLOCK_IN_FLOW",po),r.atKey=!1;const P=rr(D??[],{flow:a,indicator:"map-value-ind",next:w,offset:A.range[2],onError:s,parentIndent:n.indent,startOnNewline:!1});if(P.found){if(!o&&!d.found&&r.options.strict){if(D)for(const M of D){if(M===P.found)break;if(M.type==="newline"){s(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}d.start<P.found.offset-1024&&s(P.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else w&&("source"in w&&w.source?.[0]===":"?s(w,"MISSING_CHAR",`Missing space after : in ${a}`):s(P.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const x=w?t(r,w,P,s):P.found?e(r,P.end,D,null,P,s):null;x?ho(w)&&s(x.range,"BLOCK_IN_FLOW",po):P.comment&&(A.comment?A.comment+=`
94
+ `+P.comment:A.comment=P.comment);const R=new Te(A,x);if(r.options.keepSourceTokens&&(R.srcToken=E),o){const M=c;ou(r,M.items,A)&&s($,"DUPLICATE_KEY","Map keys must be unique"),M.items.push(R)}else{const M=new Ue(r.schema);M.flow=!0,M.items.push(R);const Ce=(x??A).range;M.range=[A.range[0],Ce[1],Ce[2]],c.items.push(M)}p=x?x.range[2]:P.end}}const h=o?"}":"]",[g,...b]=n.end;let m=p;if(g?.source===h)m=g.offset+g.source.length;else{const v=a[0].toUpperCase()+a.substring(1),E=l?`${v} must end with a ${h}`:`${v} in block collection must be sufficiently indented and end with a ${h}`;s(p,l?"MISSING_CHAR":"BAD_INDENT",E),g&&g.source.length!==1&&b.unshift(g)}if(b.length>0){const v=Ur(b,m,r.options.strict,s);v.comment&&(c.comment?c.comment+=`
95
+ `+v.comment:c.comment=v.comment),c.range=[n.offset,m,v.offset]}else c.range=[n.offset,m,m];return c}f(dp,"F$2");hp(dp,"resolveFlowCollection");var bA=Object.defineProperty,mp=f((t,e)=>bA(t,"name",{value:e,configurable:!0}),"u$d");function xs(t,e,r,n,s,i){const o=r.type==="block-map"?fp(t,e,r,n,i):r.type==="block-seq"?pp(t,e,r,n,i):dp(t,e,r,n,i),a=o.constructor;return s==="!"||s===a.tagName?(o.tag=a.tagName,o):(s&&(o.tag=s),o)}f(xs,"A$6");mp(xs,"resolveCollection");function gp(t,e,r,n,s){const i=n.tag,o=i?e.directives.tagName(i.source,h=>s(i,"TAG_RESOLVE_FAILED",h)):null;if(r.type==="block-seq"){const{anchor:h,newlineAfterProp:g}=n,b=h&&i?h.offset>i.offset?h:i:h??i;b&&(!g||g.offset<b.offset)&&s(b,"MISSING_CHAR","Missing newline after block sequence props")}const a=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!i||!o||o==="!"||o===Ue.tagName&&a==="map"||o===tr.tagName&&a==="seq")return xs(t,e,r,s,o);let u=e.schema.tags.find(h=>h.tag===o&&h.collection===a);if(!u){const h=e.schema.knownTags[o];if(h?.collection===a)e.schema.tags.push(Object.assign({},h,{default:!1})),u=h;else return h?s(i,"BAD_COLLECTION_TYPE",`${h.tag} used for ${a} collection, but expects ${h.collection??"scalar"}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),xs(t,e,r,s,o)}const c=xs(t,e,r,s,o,u),l=u.resolve?.(c,h=>s(i,"TAG_RESOLVE_FAILED",h),e.options)??c,p=le(l)?l:new U(l);return p.range=c.range,p.tag=o,u?.format&&(p.format=u.format),p}f(gp,"I$6");mp(gp,"composeCollection");var vA=Object.defineProperty,au=f((t,e)=>vA(t,"name",{value:e,configurable:!0}),"B$2");function uu(t,e,r){const n=e.offset,s=yp(e,t.options.strict,r);if(!s)return{value:"",type:null,comment:"",range:[n,n,n]};const i=s.mode===">"?U.BLOCK_FOLDED:U.BLOCK_LITERAL,o=e.source?bp(e.source):[];let a=o.length;for(let m=o.length-1;m>=0;--m){const v=o[m][1];if(v===""||v==="\r")a=m;else break}if(a===0){const m=s.chomp==="+"&&o.length>0?`
96
+ `.repeat(Math.max(1,o.length-1)):"";let v=n+s.length;return e.source&&(v+=e.source.length),{value:m,type:i,comment:s.comment,range:[n,v,v]}}let u=e.indent+s.indent,c=e.offset+s.length,l=0;for(let m=0;m<a;++m){const[v,E]=o[m];if(E===""||E==="\r")s.indent===0&&v.length>u&&(u=v.length);else{v.length<u&&r(c+v.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(u=v.length),l=m,u===0&&!t.atRoot&&r(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=v.length+E.length+1}for(let m=o.length-1;m>=a;--m)o[m][0].length>u&&(a=m+1);let p="",h="",g=!1;for(let m=0;m<l;++m)p+=o[m][0].slice(u)+`
97
+ `;for(let m=l;m<a;++m){let[v,E]=o[m];c+=v.length+E.length+1;const C=E[E.length-1]==="\r";if(C&&(E=E.slice(0,-1)),E&&v.length<u){const y=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;r(c-E.length-(C?2:1),"BAD_INDENT",y),v=""}i===U.BLOCK_LITERAL?(p+=h+v.slice(u)+E,h=`
98
+ `):v.length>u||E[0]===" "?(h===" "?h=`
99
+ `:!g&&h===`
100
+ `&&(h=`
101
+
102
+ `),p+=h+v.slice(u)+E,h=`
103
+ `,g=!0):E===""?h===`
104
+ `?p+=`
105
+ `:h=`
106
+ `:(p+=h+E,h=" ",g=!1)}switch(s.chomp){case"-":break;case"+":for(let m=a;m<o.length;++m)p+=`
107
+ `+o[m][0].slice(u);p[p.length-1]!==`
108
+ `&&(p+=`
109
+ `);break;default:p+=`
110
+ `}const b=n+s.length+e.source.length;return{value:p,type:i,comment:s.comment,range:[n,b,b]}}f(uu,"E$5");au(uu,"resolveBlockScalar");function yp({offset:t,props:e},r,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=e[0],i=s[0];let o=0,a="",u=-1;for(let h=1;h<s.length;++h){const g=s[h];if(!a&&(g==="-"||g==="+"))a=g;else{const b=Number(g);!o&&b?o=b:u===-1&&(u=t+h)}}u!==-1&&n(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let c=!1,l="",p=s.length;for(let h=1;h<e.length;++h){const g=e[h];switch(g.type){case"space":c=!0;case"newline":p+=g.source.length;break;case"comment":r&&!c&&n(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=g.source.length,l=g.source.substring(1);break;case"error":n(g,"UNEXPECTED_TOKEN",g.message),p+=g.source.length;break;default:{const b=`Unexpected token in block scalar header: ${g.type}`;n(g,"UNEXPECTED_TOKEN",b);const m=g.source;m&&typeof m=="string"&&(p+=m.length)}}}return{mode:i,indent:o,chomp:a,comment:l,length:p}}f(yp,"L$4");au(yp,"parseBlockScalarHeader");function bp(t){const e=t.split(/\n( *)/),r=e[0],n=r.match(/^( *)/),s=[n?.[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let i=1;i<e.length;i+=2)s.push([e[i],e[i+1]]);return s}f(bp,"T$3");au(bp,"splitLines");var DA=Object.defineProperty,Mt=f((t,e)=>DA(t,"name",{value:e,configurable:!0}),"r$3");function cu(t,e,r){const{offset:n,type:s,source:i,end:o}=t;let a,u;const c=Mt((h,g,b)=>r(n+h,g,b),"_onError");switch(s){case"scalar":a=U.PLAIN,u=vp(i,c);break;case"single-quoted-scalar":a=U.QUOTE_SINGLE,u=Dp(i,c);break;case"double-quoted-scalar":a=U.QUOTE_DOUBLE,u=Ep(i,c);break;default:return r(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}const l=n+i.length,p=Ur(o,l,e,r);return{value:u,type:a,comment:p.comment,range:[n,l,p.offset]}}f(cu,"_$2");Mt(cu,"resolveFlowScalar");function vp(t,e){let r="";switch(t[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${t[0]}`;break}case"@":case"`":{r=`reserved character ${t[0]}`;break}}return r&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),lu(t)}f(vp,"v$8");Mt(vp,"plainValue");function Dp(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),lu(t.slice(1,-1)).replace(/''/g,"'")}f(Dp,"I$5");Mt(Dp,"singleQuotedValue");function lu(t){let e,r;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
111
+ `,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
112
+ `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(t);if(!n)return t;let s=n[1],i=" ",o=e.lastIndex;for(r.lastIndex=o;n=r.exec(t);)n[1]===""?i===`
113
+ `?s+=i:i=`
114
+ `:(s+=i+n[1],i=" "),o=r.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,n=a.exec(t),s+i+(n?.[1]??"")}f(lu,"b$b");Mt(lu,"foldLines");function Ep(t,e){let r="";for(let n=1;n<t.length-1;++n){const s=t[n];if(!(s==="\r"&&t[n+1]===`
115
+ `))if(s===`
116
+ `){const{fold:i,offset:o}=$p(t,n);r+=i,n=o}else if(s==="\\"){let i=t[++n];const o=EA[i];if(o)r+=o;else if(i===`
117
+ `)for(i=t[n+1];i===" "||i===" ";)i=t[++n+1];else if(i==="\r"&&t[n+1]===`
118
+ `)for(i=t[++n+1];i===" "||i===" ";)i=t[++n+1];else if(i==="x"||i==="u"||i==="U"){const a=i==="x"?2:i==="u"?4:8;r+=Ap(t,n+1,a,e),n+=a}else{const a=t.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),r+=a}}else if(s===" "||s===" "){const i=n;let o=t[n+1];for(;o===" "||o===" ";)o=t[++n+1];o!==`
119
+ `&&!(o==="\r"&&t[n+2]===`
120
+ `)&&(r+=n>i?t.slice(i,n+1):s)}else r+=s}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),r}f(Ep,"S$2");Mt(Ep,"doubleQuotedValue");function $p(t,e){let r="",n=t[e+1];for(;(n===" "||n===" "||n===`
121
+ `||n==="\r")&&!(n==="\r"&&t[e+2]!==`
122
+ `);)n===`
123
+ `&&(r+=`
124
+ `),e+=1,n=t[e+1];return r||(r=" "),{fold:r,offset:e}}f($p,"k$6");Mt($p,"foldNewline");const EA={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
125
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Ap(t,e,r,n){const s=t.substr(e,r),i=s.length===r&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;try{return String.fromCodePoint(i)}catch{const o=t.substr(e-2,r+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}}f(Ap,"A$5");Mt(Ap,"parseCharCode");var $A=Object.defineProperty,fu=f((t,e)=>$A(t,"name",{value:e,configurable:!0}),"m$7");function pu(t,e,r,n){const{value:s,type:i,comment:o,range:a}=e.type==="block-scalar"?uu(t,e,n):cu(e,t.options.strict,n),u=r?t.directives.tagName(r.source,p=>n(r,"TAG_RESOLVE_FAILED",p)):null;let c;t.options.stringKeys&&t.atKey?c=t.schema[pt]:u?c=Cp(t.schema,s,u,r,n):e.type==="scalar"?c=wp(t,s,e,n):c=t.schema[pt];let l;try{const p=c.resolve(s,h=>n(r??e,"TAG_RESOLVE_FAILED",h),t.options);l=re(p)?p:new U(p)}catch(p){const h=p instanceof Error?p.message:String(p);n(r??e,"TAG_RESOLVE_FAILED",h),l=new U(s)}return l.range=a,l.source=s,i&&(l.type=i),u&&(l.tag=u),c.format&&(l.format=c.format),o&&(l.comment=o),l}f(pu,"E$4");fu(pu,"composeScalar");function Cp(t,e,r,n,s){if(r==="!")return t[pt];const i=[];for(const a of t.tags)if(!a.collection&&a.tag===r)if(a.default&&a.test)i.push(a);else return a;for(const a of i)if(a.test?.test(e))return a;const o=t.knownTags[r];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(s(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),t[pt])}f(Cp,"_$1");fu(Cp,"findScalarTagByName");function wp({atKey:t,directives:e,schema:r},n,s,i){const o=r.tags.find(a=>(a.default===!0||t&&a.default==="key")&&a.test?.test(n))||r[pt];if(r.compat){const a=r.compat.find(u=>u.default&&u.test?.test(n))??r[pt];if(o.tag!==a.tag){const u=e.tagString(o.tag),c=e.tagString(a.tag),l=`Value may be parsed as either ${u} or ${c}`;i(s,"TAG_RESOLVE_FAILED",l,!0)}}return o}f(wp,"F$1");fu(wp,"findScalarTagByTest");var AA=Object.defineProperty,CA=f((t,e)=>AA(t,"name",{value:e,configurable:!0}),"a$7");function Sp(t,e,r){if(e){r??(r=e.length);for(let n=r-1;n>=0;--n){let s=e[n];switch(s.type){case"space":case"comment":case"newline":t-=s.source.length;continue}for(s=e[++n];s?.type==="space";)t+=s.source.length,s=e[++n];break}}return t}f(Sp,"s$a");CA(Sp,"emptyScalarPosition");var wA=Object.defineProperty,hu=f((t,e)=>wA(t,"name",{value:e,configurable:!0}),"u$c");const SA={composeNode:du,composeEmptyNode:qi};function du(t,e,r,n){const s=t.atKey,{spaceBefore:i,comment:o,anchor:a,tag:u}=r;let c,l=!0;switch(e.type){case"alias":c=Fp(t,e,n),(a||u)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=pu(t,e,u,n),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{c=gp(SA,t,e,r,n),a&&(c.anchor=a.source.substring(1))}catch(p){const h=p instanceof Error?p.message:String(p);n(e,"RESOURCE_EXHAUSTION",h)}break;default:{const p=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",p),l=!1}}return c??(c=qi(t,e.offset,void 0,null,r,n)),a&&c.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),s&&t.options.stringKeys&&(!re(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&n(u??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),t.options.keepSourceTokens&&l&&(c.srcToken=e),c}f(du,"A$4");hu(du,"composeNode");function qi(t,e,r,n,{spaceBefore:s,comment:i,anchor:o,tag:a,end:u},c){const l={type:"scalar",offset:Sp(e,r,n),indent:-1,source:""},p=pu(t,l,a,c);return o&&(p.anchor=o.source.substring(1),p.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(p.spaceBefore=!0),i&&(p.comment=i,p.range[2]=u),p}f(qi,"p$7");hu(qi,"composeEmptyNode");function Fp({options:t},{offset:e,source:r,end:n},s){const i=new Ma(r.substring(1));i.source===""&&s(e,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(e+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+r.length,a=Ur(n,o,t.strict,s);return i.range=[e,o,a.offset],a.comment&&(i.comment=a.comment),i}f(Fp,"I$4");hu(Fp,"composeAlias");var FA=Object.defineProperty,OA=f((t,e)=>FA(t,"name",{value:e,configurable:!0}),"f$6");function Op(t,e,{offset:r,start:n,value:s,end:i},o){const a=Object.assign({_directives:e},t),u=new iu(void 0,a),c={atKey:!1,atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},l=rr(n,{indicator:"doc-start",next:s??i?.[0],offset:r,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(u.directives.docStart=!0,s&&(s.type==="block-map"||s.type==="block-seq")&&!l.hasNewline&&o(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=s?du(c,s,l,o):qi(c,l.end,n,null,l,o);const p=u.contents.range[2],h=Ur(i,p,!1,o);return h.comment&&(u.comment=h.comment),u.range=[r,p,h.offset],u}f(Op,"b$a");OA(Op,"composeDoc");var PA=Object.defineProperty,mu=f((t,e)=>PA(t,"name",{value:e,configurable:!0}),"h$5");function hr(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:r}=t;return[e,e+(typeof r=="string"?r.length:1)]}f(hr,"c$5");mu(hr,"getErrorPos");function na(t){let e="",r=!1,n=!1;for(let s=0;s<t.length;++s){const i=t[s];switch(i[0]){case"#":e+=(e===""?"":n?`
126
+
127
+ `:`
128
+ `)+(i.substring(1)||" "),r=!0,n=!1;break;case"%":t[s+1]?.[0]!=="#"&&(s+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:e,afterEmptyLine:n}}f(na,"m$6");mu(na,"parsePrelude");let Pp=class{static{f(this,"y")}static{mu(this,"Composer")}constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,n,s,i)=>{const o=hr(r);i?this.warnings.push(new rA(o,n,s)):this.errors.push(new dr(o,n,s))},this.directives=new vr({version:e.version||"1.2"}),this.options=e}decorate(e,r){const{comment:n,afterEmptyLine:s}=na(this.prelude);if(n){const i=e.contents;if(r)e.comment=e.comment?`${e.comment}
129
+ ${n}`:n;else if(s||e.directives.docStart||!i)e.commentBefore=n;else if(ce(i)&&!i.flow&&i.items.length>0){let o=i.items[0];fe(o)&&(o=o.key);const a=o.commentBefore;o.commentBefore=a?`${n}
130
+ ${a}`:n}else{const o=i.commentBefore;i.commentBefore=o?`${n}
131
+ ${o}`:n}}if(r){for(let i=0;i<this.errors.length;++i)e.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)e.warnings.push(this.warnings[i])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:na(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,r=!1,n=-1){for(const s of e)yield*this.next(s);yield*this.end(r,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(r,n,s)=>{const i=hr(e);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const r=Op(this.options,this.directives,e,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const r=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new dr(hr(e),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new dr(hr(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const r=Ur(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const n=this.doc.comment;this.doc.comment=n?`${n}
132
+ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new dr(hr(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),s=new iu(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,r,r],this.decorate(s,!1),yield s}}};var NA=Object.defineProperty,cr=f((t,e)=>NA(t,"name",{value:e,configurable:!0}),"i$7");function xA(t,e=!0,r){if(t){const n=cr((s,i,o)=>{const a=typeof s=="number"?s:Array.isArray(s)?s[0]:s.offset;if(r)r(a,i,o);else throw new dr([a,a+1],i,o)},"_onError");switch(t.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return cu(t,e,n);case"block-scalar":return uu({options:{strict:e}},t,n)}}return null}f(xA,"q$2");cr(xA,"resolveAsScalar");function LA(t,e){const{implicitKey:r=!1,indent:n,inFlow:s=!1,offset:i=-1,type:o="PLAIN"}=e,a=jr({type:o,value:t},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}}),u=e.end??[{type:"newline",offset:-1,indent:n,source:`
133
+ `}];switch(a[0]){case"|":case">":{const c=a.indexOf(`
134
+ `),l=a.substring(0,c),p=a.substring(c+1)+`
135
+ `,h=[{type:"block-scalar-header",offset:i,indent:n,source:l}];return gu(h,u)||h.push({type:"newline",offset:-1,indent:n,source:`
136
+ `}),{type:"block-scalar",offset:i,indent:n,props:h,source:p}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:a,end:u};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:a,end:u};default:return{type:"scalar",offset:i,indent:n,source:a,end:u}}}f(LA,"E$3");cr(LA,"createScalarToken");function kA(t,e,r={}){let{afterKey:n=!1,implicitKey:s=!1,inFlow:i=!1,type:o}=r,a="indent"in t?t.indent:null;if(n&&typeof a=="number"&&(a+=2),!o)switch(t.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const c=t.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const u=jr({type:o,value:e},{implicitKey:s||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(u[0]){case"|":case">":Np(t,u);break;case'"':Ls(t,u,"double-quoted-scalar");break;case"'":Ls(t,u,"single-quoted-scalar");break;default:Ls(t,u,"scalar")}}f(kA,"L$3");cr(kA,"setScalarValue");function Np(t,e){const r=e.indexOf(`
137
+ `),n=e.substring(0,r),s=e.substring(r+1)+`
138
+ `;if(t.type==="block-scalar"){const i=t.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=n,t.source=s}else{const{offset:i}=t,o="indent"in t?t.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:o,source:n}];gu(a,"end"in t?t.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
139
+ `});for(const u of Object.keys(t))u!=="type"&&u!=="offset"&&delete t[u];Object.assign(t,{type:"block-scalar",indent:o,props:a,source:s})}}f(Np,"A$3");cr(Np,"setBlockScalarValue");function gu(t,e){if(e)for(const r of e)switch(r.type){case"space":case"comment":t.push(r);break;case"newline":return t.push(r),!0}return!1}f(gu,"b$9");cr(gu,"addEndtoBlockProps");function Ls(t,e,r){switch(t.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":t.type=r,t.source=e;break;case"block-scalar":{const n=t.props.slice(1);let s=e.length;t.props[0].type==="block-scalar-header"&&(s-=t.props[0].source.length);for(const i of n)i.offset+=s;delete t.props,Object.assign(t,{type:r,source:e,end:n});break}case"block-map":case"block-seq":{const n={type:"newline",offset:t.offset+e.length,indent:t.indent,source:`
140
+ `};delete t.items,Object.assign(t,{type:r,source:e,end:[n]});break}default:{const n="indent"in t?t.indent:-1,s="end"in t&&Array.isArray(t.end)?t.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(t))i!=="type"&&i!=="offset"&&delete t[i];Object.assign(t,{type:r,indent:n,source:e,end:s})}}}f(Ls,"u$b");cr(Ls,"setFlowScalarValue");var BA=Object.defineProperty,yu=f((t,e)=>BA(t,"name",{value:e,configurable:!0}),"t$5");yu(t=>"type"in t?Gn(t):Pn(t),"stringify");function Gn(t){switch(t.type){case"block-scalar":{let e="";for(const r of t.props)e+=Gn(r);return e+t.source}case"block-map":case"block-seq":{let e="";for(const r of t.items)e+=Pn(r);return e}case"flow-collection":{let e=t.start.source;for(const r of t.items)e+=Pn(r);for(const r of t.end)e+=r.source;return e}case"document":{let e=Pn(t);if(t.end)for(const r of t.end)e+=r.source;return e}default:{let e=t.source;if("end"in t&&t.end)for(const r of t.end)e+=r.source;return e}}}f(Gn,"f$4");yu(Gn,"stringifyToken");function Pn({start:t,key:e,sep:r,value:n}){let s="";for(const i of t)s+=i.source;if(e&&(s+=Gn(e)),r)for(const i of r)s+=i.source;return n&&(s+=Gn(n)),s}f(Pn,"c$4");yu(Pn,"stringifyItem");var IA=Object.defineProperty,xp=f((t,e)=>IA(t,"name",{value:e,configurable:!0}),"s$9");const sa=Symbol("break visit"),RA=Symbol("skip children"),Lp=Symbol("remove item");function nr(t,e){"type"in t&&t.type==="document"&&(t={start:t.start,value:t.value}),bu(Object.freeze([]),t,e)}f(nr,"l$2");xp(nr,"visit");nr.BREAK=sa;nr.SKIP=RA;nr.REMOVE=Lp;nr.itemAtPath=(t,e)=>{let r=t;for(const[n,s]of e){const i=r?.[n];if(i&&"items"in i)r=i.items[s];else return}return r};nr.parentCollection=(t,e)=>{const r=nr.itemAtPath(t,e.slice(0,-1)),n=e[e.length-1][0],s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function bu(t,e,r){let n=r(e,t);if(typeof n=="symbol")return n;for(const s of["key","value"]){const i=e[s];if(i&&"items"in i){for(let o=0;o<i.items.length;++o){const a=bu(Object.freeze(t.concat([[s,o]])),i.items[o],r);if(typeof a=="number")o=a-1;else{if(a===sa)return sa;a===Lp&&(i.items.splice(o,1),o-=1)}}typeof n=="function"&&s==="key"&&(n=n(e,t))}}return typeof n=="function"?n(e,t):n}f(bu,"y$6");xp(bu,"_visit");var _A=Object.defineProperty,Wi=f((t,e)=>_A(t,"name",{value:e,configurable:!0}),"r$2");const vu="\uFEFF",Du="",Eu="",Hs="";Wi(t=>!!t&&"items"in t,"isCollection");Wi(t=>!!t&&(t.type==="scalar"||t.type==="single-quoted-scalar"||t.type==="double-quoted-scalar"||t.type==="block-scalar"),"isScalar");function TA(t){switch(t){case vu:return"<BOM>";case Du:return"<DOC>";case Eu:return"<FLOW_END>";case Hs:return"<SCALAR>";default:return JSON.stringify(t)}}f(TA,"i$6");Wi(TA,"prettyToken");function kp(t){switch(t){case vu:return"byte-order-mark";case Du:return"doc-mode";case Eu:return"flow-error-end";case Hs:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
141
+ `:case`\r
142
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}f(kp,"d$9");Wi(kp,"tokenType");var jA=Object.defineProperty,$u=f((t,e)=>jA(t,"name",{value:e,configurable:!0}),"a$5");function Ge(t){switch(t){case void 0:case" ":case`
143
+ `:case"\r":case" ":return!0;default:return!1}}f(Ge,"n$4");$u(Ge,"isEmpty");const dc=new Set("0123456789ABCDEFabcdef"),MA=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Cs=new Set(",[]{}"),GA=new Set(` ,[]{}
144
+ \r `),mo=$u(t=>!t||GA.has(t),"isNotAnchorChar");let UA=class{static{f(this,"k")}static{$u(this,"Lexer")}constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,r=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,r=this.buffer[e];for(;r===" "||r===" ";)r=this.buffer[++e];return!r||r==="#"||r===`
145
+ `?!0:r==="\r"?this.buffer[e+1]===`
146
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let r=this.buffer[e];if(this.indentNext>0){let n=0;for(;r===" ";)r=this.buffer[++n+e];if(r==="\r"){const s=this.buffer[n+e+1];if(s===`
147
+ `||!s&&!this.atEnd)return e+n+1}return r===`
148
+ `||n>=this.indentNext||!r&&!this.atEnd?e+n:-1}if(r==="-"||r==="."){const n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&Ge(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
149
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===vu&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let r=e.length,n=e.indexOf("#");for(;n!==-1;){const i=e[n-1];if(i===" "||i===" "){r=n-1;break}else n=e.indexOf("#",n+1)}for(;;){const i=e[r-1];if(i===" "||i===" ")r-=1;else break}const s=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const r=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-r),yield*this.pushNewline(),"stream"}return yield Du,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const r=this.peek(3);if((r==="---"||r==="...")&&Ge(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ge(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Ge(r)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(e[r]){case"#":yield*this.pushCount(e.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(mo),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,r,n=-1;do e=yield*this.pushNewline(),e>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(e+r>0);const s=this.getLine();if(s===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&s[0]!=="#"||n===0&&(s.startsWith("---")||s.startsWith("..."))&&Ge(s[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield Eu,yield*this.parseLineStart();let i=0;for(;s[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(mo),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Ge(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let r=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let i=0;for(;this.buffer[r-1-i]==="\\";)i+=1;if(i%2===0)break;r=this.buffer.indexOf('"',r+1)}const n=this.buffer.substring(0,r);let s=n.indexOf(`
150
+ `,this.pos);if(s!==-1){for(;s!==-1;){const i=this.continueScalar(s+1);if(i===-1)break;s=n.indexOf(`
151
+ `,i)}s!==-1&&(r=s-(n[s-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const r=this.buffer[++e];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Ge(r)||r==="#")}*parseBlockScalar(){let e=this.pos-1,r=0,n;e:for(let i=this.pos;n=this.buffer[i];++i)switch(n){case" ":r+=1;break;case`
152
+ `:e=i,r=0;break;case"\r":{const o=this.buffer[i+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
153
+ `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
154
+ `,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;for(n=this.buffer[s];n===" ";)n=this.buffer[++s];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===`
155
+ `;)n=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep)do{let i=e-1,o=this.buffer[i];o==="\r"&&(o=this.buffer[--i]);const a=i;for(;o===" ";)o=this.buffer[--i];if(o===`
156
+ `&&i>=this.pos&&i+1+r>a)e=i;else break}while(!0);return yield Hs,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,s;for(;s=this.buffer[++n];)if(s===":"){const i=this.buffer[n+1];if(Ge(i)||e&&Cs.has(i))break;r=n}else if(Ge(s)){let i=this.buffer[n+1];if(s==="\r"&&(i===`
157
+ `?(n+=1,s=`
158
+ `,i=this.buffer[n+1]):r=n),i==="#"||e&&Cs.has(i))break;if(s===`
159
+ `){const o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&Cs.has(s))break;r=n}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield Hs,yield*this.pushToIndex(r+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,r){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(mo),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{const r=this.flowLevel>0,n=this.charAt(1);if(Ge(n)||r&&Cs.has(n)){r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,r=this.buffer[e];for(;!Ge(r)&&r!==">";)r=this.buffer[++e];return yield*this.pushToIndex(r===">"?e+1:e,!1)}else{let e=this.pos+1,r=this.buffer[e];for(;r;)if(MA.has(r))r=this.buffer[++e];else if(r==="%"&&dc.has(this.buffer[e+1])&&dc.has(this.buffer[e+2]))r=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
160
+ `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
161
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||e&&n===" ");const s=r-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=r),s}*pushUntil(e){let r=this.pos,n=this.buffer[r];for(;!e(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};var HA=Object.defineProperty,KA=f((t,e)=>HA(t,"name",{value:e,configurable:!0}),"s$7");let qA=class{static{f(this,"a")}static{KA(this,"LineCounter")}constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let r=0,n=this.lineStarts.length;for(;r<n;){const i=r+n>>1;this.lineStarts[i]<e?r=i+1:n=i}if(this.lineStarts[r]===e)return{line:r+1,col:1};if(r===0)return{line:0,col:e};const s=this.lineStarts[r-1];return{line:r,col:e-s+1}}}};var WA=Object.defineProperty,Gt=f((t,e)=>WA(t,"name",{value:e,configurable:!0}),"l$1");function vt(t,e){for(let r=0;r<t.length;++r)if(t[r].type===e)return!0;return!1}f(vt,"r$1");Gt(vt,"includesToken");function ia(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}f(ia,"d$8");Gt(ia,"findNonEmptyIndex");function Au(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}f(Au,"k$4");Gt(Au,"isFlowToken");function An(t){switch(t.type){case"document":return t.start;case"block-map":{const e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}f(An,"u$6");Gt(An,"getPrevProps");function Wt(t){if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}f(Wt,"h$3");Gt(Wt,"getFirstKeyStartProps");function Un(t,e){if(e.length<1e5)Array.prototype.push.apply(t,e);else for(let r=0;r<e.length;++r)t.push(e[r])}f(Un,"f$2");Gt(Un,"arrayPushArray");function oa(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!vt(e.start,"explicit-key-ind")&&!vt(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Au(e.value)?e.value.end?Un(e.value.end,e.sep):e.value.end=e.sep:Un(e.start,e.sep),delete e.sep)}f(oa,"y$5");Gt(oa,"fixFlowSeqItems");let Bp=class{static{f(this,"g")}static{Gt(this,"Parser")}constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new UA,this.onNewLine=e}*parse(e,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,r))yield*this.next(n);r||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const r=kp(e);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const r=e??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&oa(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{const s=n.items[n.items.length-1];if(s.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(s.sep)s.value=r;else{Object.assign(s,{key:r,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=n.items[n.items.length-1];s.value?n.items.push({start:[],value:r}):s.value=r;break}case"flow-collection":{const s=n.items[n.items.length-1];!s||s.value?n.items.push({start:[],key:r,sep:[]}):s.sep?s.value=r:Object.assign(s,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const s=r.items[r.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&ia(s.start)===-1&&(r.indent===0||s.start.every(i=>i.type!=="comment"||i.indent<r.indent))&&(n.type==="document"?n.end=s.start:n.items.push({start:s.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{ia(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const r=An(this.peek(2)),n=Wt(r);let s;e.end?(s=e.end,s.push(this.sourceToken),delete e.end):s=[this.sourceToken];const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
162
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
163
+ `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const r=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,e.indent)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Un(n,r.start),n.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent,s=n&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let i=[];if(s&&r.sep&&!r.value){const o=[];for(let a=0;a<r.sep.length;++a){const u=r.sep[a];switch(u.type){case"newline":o.push(a);break;case"space":break;case"comment":u.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(i=r.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":s||r.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):s||r.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(vt(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Au(r.key)&&!vt(r.sep,"newline")){const o=Wt(r.start),a=r.key,u=r.sep;u.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:u}]})}else i.length>0?r.sep=r.sep.concat(i,this.sourceToken):r.sep.push(this.sourceToken);else if(vt(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const o=Wt(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||s?e.items.push({start:i,key:null,sep:[this.sourceToken]}):vt(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);s||r.value?(e.items.push({start:i,key:o,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(o):(Object.assign(r,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!r.explicitKey&&r.sep&&!vt(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const r=e.items[e.items.length-1];switch(this.type){case"newline":if(r.value){const n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,e.indent)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Un(n,r.start),n.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=e.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;r.value||vt(r.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>e.indent){const n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const r=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?e.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);!r||r.value?e.items.push({start:[],key:s,sep:[]}):r.sep?this.stack.push(s):Object.assign(r,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const s=An(n),i=Wt(s);oa(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let r=this.source.indexOf(`
164
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
165
+ `,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=An(e),n=Wt(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=An(e),n=Wt(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};var VA=Object.defineProperty,ps=f((t,e)=>VA(t,"name",{value:e,configurable:!0}),"s$6");function Cu(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new qA||null,prettyErrors:e}}f(Cu,"a$3");ps(Cu,"parseOptions");function YA(t,e={}){const{lineCounter:r,prettyErrors:n}=Cu(e),s=new Bp(r?.addNewLine),i=new Pp(e),o=Array.from(i.compose(s.parse(t)));if(n&&r)for(const a of o)a.errors.forEach(Gs(t,r)),a.warnings.forEach(Gs(t,r));return o.length>0?o:Object.assign([],{empty:!0},i.streamInfo())}f(YA,"L$2");ps(YA,"parseAllDocuments");function Ip(t,e={}){const{lineCounter:r,prettyErrors:n}=Cu(e),s=new Bp(r?.addNewLine),i=new Pp(e);let o=null;for(const a of i.compose(s.parse(t),!0,t.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new dr(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(o.errors.forEach(Gs(t,r)),o.warnings.forEach(Gs(t,r))),o}f(Ip,"d$7");ps(Ip,"parseDocument");function Hn(t,e,r){let n;typeof e=="function"?n=e:r===void 0&&e&&typeof e=="object"&&(r=e);const s=Ip(t,r);if(!s)return null;if(s.warnings.forEach(i=>Ha(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}f(Hn,"C$2");ps(Hn,"parse");function wu(t,e,r){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:r===void 0&&e&&(r=e),typeof r=="string"&&(r=r.length),typeof r=="number"){const s=Math.round(r);r=s<1?void 0:s>8?{indent:8}:{indent:s}}if(t===void 0){const{keepUndefined:s}=r??e??{};if(!s)return}return Tr(t)&&!n?t.toString(r):new iu(t,n,r).toString(r)}f(wu,"A$2");ps(wu,"stringify");var zA=Object.defineProperty,Rp=f((t,e)=>zA(t,"name",{value:e,configurable:!0}),"a$2"),XA=Object.defineProperty,_p=Rp((t,e)=>XA(t,"name",{value:e,configurable:!0}),"o"),JA=Object.defineProperty,QA=_p((t,e)=>JA(t,"name",{value:e,configurable:!0}),"r");async function hs(t,e,r){const{buffer:n,compression:s,encoding:i="utf8",flag:o,...a}=r??{},u=await Fa(t,{buffer:n,compression:s,encoding:i,flag:o});return typeof e=="function"?Hn(u,e,a):Hn(u,a)}f(hs,"n$3");Rp(hs,"g");_p(hs,"l");QA(hs,"readYaml");var ZA=Object.defineProperty,Tp=f((t,e)=>ZA(t,"name",{value:e,configurable:!0}),"n$2"),eC=Object.defineProperty,jp=Tp((t,e)=>eC(t,"name",{value:e,configurable:!0}),"o"),tC=Object.defineProperty,rC=jp((t,e)=>tC(t,"name",{value:e,configurable:!0}),"t");function ds(t,e,r){const{buffer:n,compression:s,encoding:i="utf8",flag:o,...a}=r??{},u=Oa(t,{buffer:n,compression:s,encoding:i,flag:o});return typeof e=="function"?Hn(u,e,a):Hn(u,a)}f(ds,"o$1");Tp(ds,"g");jp(ds,"l");rC(ds,"readYamlSync");var nC=Object.defineProperty,Mp=f((t,e)=>nC(t,"name",{value:e,configurable:!0}),"f$1"),sC=Object.defineProperty,Gp=Mp((t,e)=>sC(t,"name",{value:e,configurable:!0}),"n"),iC=Object.defineProperty,oC=Gp((t,e)=>iC(t,"name",{value:e,configurable:!0}),"a");async function Su(t,e,r,n){let s,i,o;typeof r=="object"&&r!==null&&!Array.isArray(r)&&typeof r!="function"?(s=r,i=s.replacer,o=s.space):typeof n=="object"?(s=n,i=r,o=s.space):(i=r,o=n);const a=wu(e,i,o??s);await uf(t,a,s)}f(Su,"p$4");Mp(Su,"u");Gp(Su,"c");oC(Su,"writeYaml");var aC=Object.defineProperty,Up=f((t,e)=>aC(t,"name",{value:e,configurable:!0}),"i$3"),uC=Object.defineProperty,Hp=Up((t,e)=>uC(t,"name",{value:e,configurable:!0}),"t"),cC=Object.defineProperty,lC=Hp((t,e)=>cC(t,"name",{value:e,configurable:!0}),"a");function Fu(t,e,r,n){let s,i,o;typeof r=="object"&&r!==null&&!Array.isArray(r)&&typeof r!="function"?(s=r,i=s.replacer,o=s.space):typeof n=="object"?(s=n,i=r,o=s.space):(i=r,o=n);const a=wu(e,i,o??s);lf(t,a,s)}f(Fu,"n$1");Up(Fu,"b");Hp(Fu,"c");lC(Fu,"writeYamlSync");var fC=Object.defineProperty,ve=f((t,e)=>fC(t,"name",{value:e,configurable:!0}),"n"),pC=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,hC=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,dC=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,go={Space_Separator:pC,ID_Start:hC,ID_Continue:dC},de={isSpaceSeparator(t){return typeof t=="string"&&go.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||go.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="‌"||t==="‍"||go.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}};let aa,xe,Dt,Ks,It,Ve,$e,Ou,Nn;var mC=ve(function(t,e){aa=String(t),xe="start",Dt=[],Ks=0,It=1,Ve=0,$e=void 0,Ou=void 0,Nn=void 0;do $e=Kp(),gC[xe]();while($e.type!=="eof");return typeof e=="function"?qs({"":Nn},"",e):Nn},"parse");function qs(t,e,r){const n=t[e];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let s=0;s<n.length;s++){const i=String(s),o=qs(n,i,r);o===void 0?delete n[i]:Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const s in n){const i=qs(n,s,r);i===void 0?delete n[s]:Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,n)}f(qs,"T$2");ve(qs,"internalize");let K,G,Cn,bt,Y;function Kp(){for(K="default",G="",Cn=!1,bt=1;;){Y=ct();const t=qp[K]();if(t)return t}}f(Kp,"tu");ve(Kp,"lex");function ct(){if(aa[Ks])return String.fromCodePoint(aa.codePointAt(Ks))}f(ct,"S");ve(ct,"peek");function N(){const t=ct();return t===`
166
+ `?(It++,Ve=0):t?Ve+=t.length:Ve++,t&&(Ks+=t.length),t}f(N,"u$4");ve(N,"read");const qp={default(){switch(Y){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
167
+ `:case"\r":case"\u2028":case"\u2029":N();return;case"/":N(),K="comment";return;case void 0:return N(),te("eof")}if(de.isSpaceSeparator(Y)){N();return}return qp[xe]()},comment(){switch(Y){case"*":N(),K="multiLineComment";return;case"/":N(),K="singleLineComment";return}throw ne(N())},multiLineComment(){switch(Y){case"*":N(),K="multiLineCommentAsterisk";return;case void 0:throw ne(N())}N()},multiLineCommentAsterisk(){switch(Y){case"*":N();return;case"/":N(),K="default";return;case void 0:throw ne(N())}N(),K="multiLineComment"},singleLineComment(){switch(Y){case`
168
+ `:case"\r":case"\u2028":case"\u2029":N(),K="default";return;case void 0:return N(),te("eof")}N()},value(){switch(Y){case"{":case"[":return te("punctuator",N());case"n":return N(),Ft("ull"),te("null",null);case"t":return N(),Ft("rue"),te("boolean",!0);case"f":return N(),Ft("alse"),te("boolean",!1);case"-":case"+":N()==="-"&&(bt=-1),K="sign";return;case".":G=N(),K="decimalPointLeading";return;case"0":G=N(),K="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":G=N(),K="decimalInteger";return;case"I":return N(),Ft("nfinity"),te("numeric",1/0);case"N":return N(),Ft("aN"),te("numeric",NaN);case'"':case"'":Cn=N()==='"',G="",K="string";return}throw ne(N())},identifierNameStartEscape(){if(Y!=="u")throw ne(N());N();const t=Ws();switch(t){case"$":case"_":break;default:if(!de.isIdStartChar(t))throw ua();break}G+=t,K="identifierName"},identifierName(){switch(Y){case"$":case"_":case"‌":case"‍":G+=N();return;case"\\":N(),K="identifierNameEscape";return}if(de.isIdContinueChar(Y)){G+=N();return}return te("identifier",G)},identifierNameEscape(){if(Y!=="u")throw ne(N());N();const t=Ws();switch(t){case"$":case"_":case"‌":case"‍":break;default:if(!de.isIdContinueChar(t))throw ua();break}G+=t,K="identifierName"},sign(){switch(Y){case".":G=N(),K="decimalPointLeading";return;case"0":G=N(),K="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":G=N(),K="decimalInteger";return;case"I":return N(),Ft("nfinity"),te("numeric",bt*(1/0));case"N":return N(),Ft("aN"),te("numeric",NaN)}throw ne(N())},zero(){switch(Y){case".":G+=N(),K="decimalPoint";return;case"e":case"E":G+=N(),K="decimalExponent";return;case"x":case"X":G+=N(),K="hexadecimal";return}return te("numeric",bt*0)},decimalInteger(){switch(Y){case".":G+=N(),K="decimalPoint";return;case"e":case"E":G+=N(),K="decimalExponent";return}if(de.isDigit(Y)){G+=N();return}return te("numeric",bt*Number(G))},decimalPointLeading(){if(de.isDigit(Y)){G+=N(),K="decimalFraction";return}throw ne(N())},decimalPoint(){switch(Y){case"e":case"E":G+=N(),K="decimalExponent";return}if(de.isDigit(Y)){G+=N(),K="decimalFraction";return}return te("numeric",bt*Number(G))},decimalFraction(){switch(Y){case"e":case"E":G+=N(),K="decimalExponent";return}if(de.isDigit(Y)){G+=N();return}return te("numeric",bt*Number(G))},decimalExponent(){switch(Y){case"+":case"-":G+=N(),K="decimalExponentSign";return}if(de.isDigit(Y)){G+=N(),K="decimalExponentInteger";return}throw ne(N())},decimalExponentSign(){if(de.isDigit(Y)){G+=N(),K="decimalExponentInteger";return}throw ne(N())},decimalExponentInteger(){if(de.isDigit(Y)){G+=N();return}return te("numeric",bt*Number(G))},hexadecimal(){if(de.isHexDigit(Y)){G+=N(),K="hexadecimalInteger";return}throw ne(N())},hexadecimalInteger(){if(de.isHexDigit(Y)){G+=N();return}return te("numeric",bt*Number(G))},string(){switch(Y){case"\\":N(),G+=Wp();return;case'"':if(Cn)return N(),te("string",G);G+=N();return;case"'":if(!Cn)return N(),te("string",G);G+=N();return;case`
169
+ `:case"\r":throw ne(N());case"\u2028":case"\u2029":Yp(Y);break;case void 0:throw ne(N())}G+=N()},start(){switch(Y){case"{":case"[":return te("punctuator",N())}K="value"},beforePropertyName(){switch(Y){case"$":case"_":G=N(),K="identifierName";return;case"\\":N(),K="identifierNameStartEscape";return;case"}":return te("punctuator",N());case'"':case"'":Cn=N()==='"',K="string";return}if(de.isIdStartChar(Y)){G+=N(),K="identifierName";return}throw ne(N())},afterPropertyName(){if(Y===":")return te("punctuator",N());throw ne(N())},beforePropertyValue(){K="value"},afterPropertyValue(){switch(Y){case",":case"}":return te("punctuator",N())}throw ne(N())},beforeArrayValue(){if(Y==="]")return te("punctuator",N());K="value"},afterArrayValue(){switch(Y){case",":case"]":return te("punctuator",N())}throw ne(N())},end(){throw ne(N())}};function te(t,e){return{type:t,value:e,line:It,column:Ve}}f(te,"i$2");ve(te,"newToken");function Ft(t){for(const e of t){if(ct()!==e)throw ne(N());N()}}f(Ft,"I$3");ve(Ft,"literal");function Wp(){switch(ct()){case"b":return N(),"\b";case"f":return N(),"\f";case"n":return N(),`
170
+ `;case"r":return N(),"\r";case"t":return N()," ";case"v":return N(),"\v";case"0":if(N(),de.isDigit(ct()))throw ne(N());return"\0";case"x":return N(),Vp();case"u":return N(),Ws();case`
171
+ `:case"\u2028":case"\u2029":return N(),"";case"\r":return N(),ct()===`
172
+ `&&N(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw ne(N());case void 0:throw ne(N())}return N()}f(Wp,"Au");ve(Wp,"escape");function Vp(){let t="",e=ct();if(!de.isHexDigit(e)||(t+=N(),e=ct(),!de.isHexDigit(e)))throw ne(N());return t+=N(),String.fromCodePoint(parseInt(t,16))}f(Vp,"ru");ve(Vp,"hexEscape");function Ws(){let t="",e=4;for(;e-- >0;){const r=ct();if(!de.isHexDigit(r))throw ne(N());t+=N()}return String.fromCodePoint(parseInt(t,16))}f(Ws,"Z");ve(Ws,"unicodeEscape");const gC={start(){if($e.type==="eof")throw Ot();ks()},beforePropertyName(){switch($e.type){case"identifier":case"string":Ou=$e.value,xe="afterPropertyName";return;case"punctuator":wn();return;case"eof":throw Ot()}},afterPropertyName(){if($e.type==="eof")throw Ot();xe="beforePropertyValue"},beforePropertyValue(){if($e.type==="eof")throw Ot();ks()},beforeArrayValue(){if($e.type==="eof")throw Ot();if($e.type==="punctuator"&&$e.value==="]"){wn();return}ks()},afterPropertyValue(){if($e.type==="eof")throw Ot();switch($e.value){case",":xe="beforePropertyName";return;case"}":wn()}},afterArrayValue(){if($e.type==="eof")throw Ot();switch($e.value){case",":xe="beforeArrayValue";return;case"]":wn()}},end(){}};function ks(){let t;switch($e.type){case"punctuator":switch($e.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=$e.value;break}if(Nn===void 0)Nn=t;else{const e=Dt[Dt.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,Ou,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")Dt.push(t),Array.isArray(t)?xe="beforeArrayValue":xe="beforePropertyName";else{const e=Dt[Dt.length-1];e==null?xe="end":Array.isArray(e)?xe="afterArrayValue":xe="afterPropertyValue"}}f(ks,"q$1");ve(ks,"push");function wn(){Dt.pop();const t=Dt[Dt.length-1];t==null?xe="end":Array.isArray(t)?xe="afterArrayValue":xe="afterPropertyValue"}f(wn,"_");ve(wn,"pop");function ne(t){return Vi(t===void 0?`JSON5: invalid end of input at ${It}:${Ve}`:`JSON5: invalid character '${Pu(t)}' at ${It}:${Ve}`)}f(ne,"a$1");ve(ne,"invalidChar");function Ot(){return Vi(`JSON5: invalid end of input at ${It}:${Ve}`)}f(Ot,"v$3");ve(Ot,"invalidEOF");function ua(){return Ve-=5,Vi(`JSON5: invalid identifier character at ${It}:${Ve}`)}f(ua,"R$3");ve(ua,"invalidIdentifier");function Yp(t){console.warn(`JSON5: '${Pu(t)}' in strings is not valid ECMAScript; consider escaping`)}f(Yp,"nu");ve(Yp,"separatorChar");function Pu(t){const e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){const r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}f(Pu,"G$2");ve(Pu,"formatChar");function Vi(t){const e=new SyntaxError(t);return e.lineNumber=It,e.columnNumber=Ve,e}f(Vi,"J$1");ve(Vi,"syntaxError");var yC=ve(function(t,e,r){const n=[];let s="",i,o,a="",u;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(r=e.space,u=e.quote,e=e.replacer),typeof e=="function")o=e;else if(Array.isArray(e)){i=[];for(const b of e){let m;typeof b=="string"?m=b:(typeof b=="number"||b instanceof String||b instanceof Number)&&(m=String(b)),m!==void 0&&i.indexOf(m)<0&&i.push(m)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r=="number"?r>0&&(r=Math.min(10,Math.floor(r)),a=" ".substr(0,r)):typeof r=="string"&&(a=r.substr(0,10)),c("",{"":t});function c(b,m){let v=m[b];switch(v!=null&&(typeof v.toJSON5=="function"?v=v.toJSON5(b):typeof v.toJSON=="function"&&(v=v.toJSON(b))),o&&(v=o.call(m,b,v)),v instanceof Number?v=Number(v):v instanceof String?v=String(v):v instanceof Boolean&&(v=v.valueOf()),v){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof v=="string")return l(v);if(typeof v=="number")return String(v);if(typeof v=="object")return Array.isArray(v)?g(v):p(v)}function l(b){const m={"'":.1,'"':.2},v={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let E="";for(let y=0;y<b.length;y++){const D=b[y];switch(D){case"'":case'"':m[D]++,E+=D;continue;case"\0":if(de.isDigit(b[y+1])){E+="\\x00";continue}}if(v[D]){E+=v[D];continue}if(D<" "){let w=D.charCodeAt(0).toString(16);E+="\\x"+("00"+w).substring(w.length);continue}E+=D}const C=u||Object.keys(m).reduce((y,D)=>m[y]<m[D]?y:D);return E=E.replace(new RegExp(C,"g"),v[C]),C+E+C}function p(b){if(n.indexOf(b)>=0)throw TypeError("Converting circular structure to JSON5");n.push(b);let m=s;s=s+a;let v=i||Object.keys(b),E=[];for(const y of v){const D=c(y,b);if(D!==void 0){let w=h(y)+":";a!==""&&(w+=" "),w+=D,E.push(w)}}let C;if(E.length===0)C="{}";else{let y;if(a==="")y=E.join(","),C="{"+y+"}";else{let D=`,
173
+ `+s;y=E.join(D),C=`{
174
+ `+s+y+`,
175
+ `+m+"}"}}return n.pop(),s=m,C}function h(b){if(b.length===0)return l(b);const m=String.fromCodePoint(b.codePointAt(0));if(!de.isIdStartChar(m))return l(b);for(let v=m.length;v<b.length;v++)if(!de.isIdContinueChar(String.fromCodePoint(b.codePointAt(v))))return l(b);return b}function g(b){if(n.indexOf(b)>=0)throw TypeError("Converting circular structure to JSON5");n.push(b);let m=s;s=s+a;let v=[];for(let C=0;C<b.length;C++){const y=c(String(C),b);v.push(y!==void 0?y:"null")}let E;if(v.length===0)E="[]";else if(a==="")E="["+v.join(",")+"]";else{let C=`,
176
+ `+s,y=v.join(C);E=`[
177
+ `+s+y+`,
178
+ `+m+"]"}return n.pop(),s=m,E}},"stringify");const bC={parse:mC,stringify:yC};var zp=bC,vC=Object.defineProperty,Or=f((t,e)=>vC(t,"name",{value:e,configurable:!0}),"t$2");function Xp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}f(Xp,"getDefaultExportFromCjs");Or(Xp,"getDefaultExportFromCjs");function DC(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}f(DC,"getDefaultExportFromNamespaceIfPresent");Or(DC,"getDefaultExportFromNamespaceIfPresent");function EC(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")&&Object.keys(t).length===1?t.default:t}f(EC,"getDefaultExportFromNamespaceIfNotNamed");Or(EC,"getDefaultExportFromNamespaceIfNotNamed");function Yi(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=Or(f(function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"a"),"a");r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:Or(function(){return t[n]},"get")})}),r}f(Yi,"getAugmentedNamespace");Or(Yi,"getAugmentedNamespace");var yo,mc;function Jp(){return mc||(mc=1,yo=process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}),yo}f(Jp,"requireDebug");var bo,gc;function Qp(){return gc||(gc=1,bo={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}),bo}f(Qp,"requireConstants");var ws={exports:{}},yc;function $C(){return yc||(yc=1,(function(t,e){var r=Object.defineProperty,n=f((C,y)=>r(C,"name",{value:y,configurable:!0}),"O");const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=Qp(),a=Jp();e=t.exports={};const u=e.re=[],c=e.safeRe=[],l=e.src=[],p=e.safeSrc=[],h=e.t={};let g=0;const b="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",o],[b,i]],v=n(C=>{for(const[y,D]of m)C=C.split(`${y}*`).join(`${y}{0,${D}}`).split(`${y}+`).join(`${y}{1,${D}}`);return C},"makeSafeRegex"),E=n((C,y,D)=>{const w=v(y),d=g++;a(C,d,y),h[C]=d,l[d]=y,p[d]=w,u[d]=new RegExp(y,D?"g":void 0),c[d]=new RegExp(w,D?"g":void 0)},"createToken");E("NUMERICIDENTIFIER","0|[1-9]\\d*"),E("NUMERICIDENTIFIERLOOSE","\\d+"),E("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${b}*`),E("MAINVERSION",`(${l[h.NUMERICIDENTIFIER]})\\.(${l[h.NUMERICIDENTIFIER]})\\.(${l[h.NUMERICIDENTIFIER]})`),E("MAINVERSIONLOOSE",`(${l[h.NUMERICIDENTIFIERLOOSE]})\\.(${l[h.NUMERICIDENTIFIERLOOSE]})\\.(${l[h.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASEIDENTIFIER",`(?:${l[h.NONNUMERICIDENTIFIER]}|${l[h.NUMERICIDENTIFIER]})`),E("PRERELEASEIDENTIFIERLOOSE",`(?:${l[h.NONNUMERICIDENTIFIER]}|${l[h.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASE",`(?:-(${l[h.PRERELEASEIDENTIFIER]}(?:\\.${l[h.PRERELEASEIDENTIFIER]})*))`),E("PRERELEASELOOSE",`(?:-?(${l[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[h.PRERELEASEIDENTIFIERLOOSE]})*))`),E("BUILDIDENTIFIER",`${b}+`),E("BUILD",`(?:\\+(${l[h.BUILDIDENTIFIER]}(?:\\.${l[h.BUILDIDENTIFIER]})*))`),E("FULLPLAIN",`v?${l[h.MAINVERSION]}${l[h.PRERELEASE]}?${l[h.BUILD]}?`),E("FULL",`^${l[h.FULLPLAIN]}$`),E("LOOSEPLAIN",`[v=\\s]*${l[h.MAINVERSIONLOOSE]}${l[h.PRERELEASELOOSE]}?${l[h.BUILD]}?`),E("LOOSE",`^${l[h.LOOSEPLAIN]}$`),E("GTLT","((?:<|>)?=?)"),E("XRANGEIDENTIFIERLOOSE",`${l[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),E("XRANGEIDENTIFIER",`${l[h.NUMERICIDENTIFIER]}|x|X|\\*`),E("XRANGEPLAIN",`[v=\\s]*(${l[h.XRANGEIDENTIFIER]})(?:\\.(${l[h.XRANGEIDENTIFIER]})(?:\\.(${l[h.XRANGEIDENTIFIER]})(?:${l[h.PRERELEASE]})?${l[h.BUILD]}?)?)?`),E("XRANGEPLAINLOOSE",`[v=\\s]*(${l[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[h.XRANGEIDENTIFIERLOOSE]})(?:${l[h.PRERELEASELOOSE]})?${l[h.BUILD]}?)?)?`),E("XRANGE",`^${l[h.GTLT]}\\s*${l[h.XRANGEPLAIN]}$`),E("XRANGELOOSE",`^${l[h.GTLT]}\\s*${l[h.XRANGEPLAINLOOSE]}$`),E("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),E("COERCE",`${l[h.COERCEPLAIN]}(?:$|[^\\d])`),E("COERCEFULL",l[h.COERCEPLAIN]+`(?:${l[h.PRERELEASE]})?(?:${l[h.BUILD]})?(?:$|[^\\d])`),E("COERCERTL",l[h.COERCE],!0),E("COERCERTLFULL",l[h.COERCEFULL],!0),E("LONETILDE","(?:~>?)"),E("TILDETRIM",`(\\s*)${l[h.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",E("TILDE",`^${l[h.LONETILDE]}${l[h.XRANGEPLAIN]}$`),E("TILDELOOSE",`^${l[h.LONETILDE]}${l[h.XRANGEPLAINLOOSE]}$`),E("LONECARET","(?:\\^)"),E("CARETTRIM",`(\\s*)${l[h.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",E("CARET",`^${l[h.LONECARET]}${l[h.XRANGEPLAIN]}$`),E("CARETLOOSE",`^${l[h.LONECARET]}${l[h.XRANGEPLAINLOOSE]}$`),E("COMPARATORLOOSE",`^${l[h.GTLT]}\\s*(${l[h.LOOSEPLAIN]})$|^$`),E("COMPARATOR",`^${l[h.GTLT]}\\s*(${l[h.FULLPLAIN]})$|^$`),E("COMPARATORTRIM",`(\\s*)${l[h.GTLT]}\\s*(${l[h.LOOSEPLAIN]}|${l[h.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",E("HYPHENRANGE",`^\\s*(${l[h.XRANGEPLAIN]})\\s+-\\s+(${l[h.XRANGEPLAIN]})\\s*$`),E("HYPHENRANGELOOSE",`^\\s*(${l[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[h.XRANGEPLAINLOOSE]})\\s*$`),E("STAR","(<|>)?=?\\s*\\*"),E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(ws,ws.exports)),ws.exports}f($C,"requireRe");var vo,bc;function AC(){if(bc)return vo;bc=1;var t=Object.defineProperty,e=f((i,o)=>t(i,"name",{value:o,configurable:!0}),"t");const r=Object.freeze({loose:!0}),n=Object.freeze({});return vo=e(i=>i?typeof i!="object"?r:i:n,"parseOptions"),vo}f(AC,"requireParseOptions");var Do,vc;function CC(){if(vc)return Do;vc=1;var t=Object.defineProperty,e=f((i,o)=>t(i,"name",{value:o,configurable:!0}),"s");const r=/^[0-9]+$/,n=e((i,o)=>{if(typeof i=="number"&&typeof o=="number")return i===o?0:i<o?-1:1;const a=r.test(i),u=r.test(o);return a&&u&&(i=+i,o=+o),i===o?0:a&&!u?-1:u&&!a?1:i<o?-1:1},"compareIdentifiers"),s=e((i,o)=>n(o,i),"rcompareIdentifiers");return Do={compareIdentifiers:n,rcompareIdentifiers:s},Do}f(CC,"requireIdentifiers");var Eo,Dc;function wC(){if(Dc)return Eo;Dc=1;var t=Object.defineProperty,e=f((l,p)=>t(l,"name",{value:p,configurable:!0}),"a");const r=Jp(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:s}=Qp(),{safeRe:i,t:o}=$C(),a=AC(),{compareIdentifiers:u}=CC();class c{static{f(this,"SemVer")}static{e(this,"SemVer")}constructor(p,h){if(h=a(h),p instanceof c){if(p.loose===!!h.loose&&p.includePrerelease===!!h.includePrerelease)return p;p=p.version}else if(typeof p!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof p}".`);if(p.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",p,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;const g=p.trim().match(h.loose?i[o.LOOSE]:i[o.FULL]);if(!g)throw new TypeError(`Invalid Version: ${p}`);if(this.raw=p,this.major=+g[1],this.minor=+g[2],this.patch=+g[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");g[4]?this.prerelease=g[4].split(".").map(b=>{if(/^[0-9]+$/.test(b)){const m=+b;if(m>=0&&m<s)return m}return b}):this.prerelease=[],this.build=g[5]?g[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(p){if(r("SemVer.compare",this.version,this.options,p),!(p instanceof c)){if(typeof p=="string"&&p===this.version)return 0;p=new c(p,this.options)}return p.version===this.version?0:this.compareMain(p)||this.comparePre(p)}compareMain(p){return p instanceof c||(p=new c(p,this.options)),this.major<p.major?-1:this.major>p.major?1:this.minor<p.minor?-1:this.minor>p.minor?1:this.patch<p.patch?-1:this.patch>p.patch?1:0}comparePre(p){if(p instanceof c||(p=new c(p,this.options)),this.prerelease.length&&!p.prerelease.length)return-1;if(!this.prerelease.length&&p.prerelease.length)return 1;if(!this.prerelease.length&&!p.prerelease.length)return 0;let h=0;do{const g=this.prerelease[h],b=p.prerelease[h];if(r("prerelease compare",h,g,b),g===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(g===void 0)return-1;if(g!==b)return u(g,b)}while(++h)}compareBuild(p){p instanceof c||(p=new c(p,this.options));let h=0;do{const g=this.build[h],b=p.build[h];if(r("build compare",h,g,b),g===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(g===void 0)return-1;if(g!==b)return u(g,b)}while(++h)}inc(p,h,g){if(p.startsWith("pre")){if(!h&&g===!1)throw new Error("invalid increment argument: identifier is empty");if(h){const b=`-${h}`.match(this.options.loose?i[o.PRERELEASELOOSE]:i[o.PRERELEASE]);if(!b||b[1]!==h)throw new Error(`invalid identifier: ${h}`)}}switch(p){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,g);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,g);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,g),this.inc("pre",h,g);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,g),this.inc("pre",h,g);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const b=Number(g)?1:0;if(this.prerelease.length===0)this.prerelease=[b];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(h===this.prerelease.join(".")&&g===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(b)}}if(h){let m=[h,b];g===!1&&(m=[h]),u(this.prerelease[0],h)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${p}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Eo=c,Eo}f(wC,"requireSemver");var $o,Ec;function Zp(){if(Ec)return $o;Ec=1;var t=Object.defineProperty,e=f((s,i)=>t(s,"name",{value:i,configurable:!0}),"t");const r=wC();return $o=e((s,i,o=!1)=>{if(s instanceof r)return s;try{return new r(s,i)}catch(a){if(!o)return null;throw a}},"parse"),$o}f(Zp,"requireParse$1");var Ao,$c;function SC(){if($c)return Ao;$c=1;var t=Object.defineProperty,e=f((s,i)=>t(s,"name",{value:i,configurable:!0}),"t");const r=Zp();return Ao=e((s,i)=>{const o=r(s,i);return o?o.version:null},"valid"),Ao}f(SC,"requireValid");var Co,Ac;function FC(){if(Ac)return Co;Ac=1;var t=Object.defineProperty,e=f((s,i)=>t(s,"name",{value:i,configurable:!0}),"t");const r=Zp();return Co=e((s,i)=>{const o=r(s.trim().replace(/^[=v]+/,""),i);return o?o.version:null},"clean"),Co}f(FC,"requireClean");var wo,Cc;function eh(){return Cc||(Cc=1,wo=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","ALGLIB-Documentation","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Advanced-Cryptics-Dictionary","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BOLA-1.1","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-Tso","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Mark-Modifications","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","Buddy","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CAPEC-tou","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","ESA-PL-permissive-2.4","ESA-PL-strong-copyleft-2.4","ESA-PL-weak-copyleft-2.4","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-SMC","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-sell-variant-critical-systems","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ISO-permission","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-STK","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MMPL-1.0.1","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-TNT","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSC-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OSSP","OpenMDW-1.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","ParaType-Free-Font-1.3","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGMLUG-PM","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TekHVC","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","UnRAR","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","Vixie-Cron","W3C","W3C-19980720","W3C-20150513","WTFNMFPL","WTFPL","Watcom-1.0","Widget-Workshop","WordNet","Wsuipa","X11","X11-distribute-modifications-variant","X11-no-permit-persons","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","hyphen-bulgarian","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]),wo}f(eh,"requireSpdxLicenseIds");var So,wc;function OC(){return wc||(wc=1,So=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]),So}f(OC,"requireDeprecated");var Fo,Sc;function PC(){return Sc||(Sc=1,Fo=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]),Fo}f(PC,"requireSpdxExceptions");var Oo,Fc;function NC(){if(Fc)return Oo;Fc=1;var t=Object.defineProperty,e=f((s,i)=>t(s,"name",{value:i,configurable:!0}),"n"),r=[].concat(eh()).concat(OC()),n=PC();return Oo=f(function(s){var i=0;function o(){return i<s.length}f(o,"o"),e(o,"hasMore");function a(C){if(C instanceof RegExp){var y=s.slice(i),D=y.match(C);if(D)return i+=D[0].length,D[0]}else if(s.indexOf(C,i)===i)return i+=C.length,C}f(a,"s"),e(a,"read");function u(){a(/[ ]*/)}f(u,"d"),e(u,"skipWhitespace");function c(){for(var C,y=["WITH","AND","OR","(",")",":","+"],D=0;D<y.length&&(C=a(y[D]),!C);D++);if(C==="+"&&i>1&&s[i-2]===" ")throw new Error("Space before `+`");return C&&{type:"OPERATOR",string:C}}f(c,"g"),e(c,"operator");function l(){return a(/[A-Za-z0-9-.]+/)}f(l,"c"),e(l,"idstring");function p(){var C=l();if(!C)throw new Error("Expected idstring at offset "+i);return C}f(p,"a"),e(p,"expectIdstring");function h(){if(a("DocumentRef-")){var C=p();return{type:"DOCUMENTREF",string:C}}}f(h,"E"),e(h,"documentRef");function g(){if(a("LicenseRef-")){var C=p();return{type:"LICENSEREF",string:C}}}f(g,"x"),e(g,"licenseRef");function b(){var C=i,y=l();if(r.indexOf(y)!==-1)return{type:"LICENSE",string:y};if(n.indexOf(y)!==-1)return{type:"EXCEPTION",string:y};i=C}f(b,"v"),e(b,"identifier");function m(){return c()||h()||g()||b()}f(m,"h"),e(m,"parseToken");for(var v=[];o()&&(u(),!!o());){var E=m();if(!E)throw new Error("Unexpected `"+s[i]+"` at offset "+i);v.push(E)}return v},"scan"),Oo}f(NC,"requireScan");var Po,Oc;function xC(){if(Oc)return Po;Oc=1;var t=Object.defineProperty,e=f((r,n)=>t(r,"name",{value:n,configurable:!0}),"n");return Po=f(function(r){var n=0;function s(){return n<r.length}f(s,"u"),e(s,"hasMore");function i(){return s()?r[n]:null}f(i,"o"),e(i,"token");function o(){if(!s())throw new Error;n++}f(o,"a"),e(o,"next");function a(E){var C=i();if(C&&C.type==="OPERATOR"&&E===C.string)return o(),C.string}f(a,"f"),e(a,"parseOperator");function u(){if(a("WITH")){var E=i();if(E&&E.type==="EXCEPTION")return o(),E.string;throw new Error("Expected exception after `WITH`")}}f(u,"x"),e(u,"parseWith");function c(){var E=n,C="",y=i();if(y.type==="DOCUMENTREF"&&(o(),C+="DocumentRef-"+y.string+":",!a(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(y=i(),y.type==="LICENSEREF")return o(),C+="LicenseRef-"+y.string,{license:C};n=E}f(c,"h"),e(c,"parseLicenseRef");function l(){var E=i();if(E&&E.type==="LICENSE"){o();var C={license:E.string};a("+")&&(C.plus=!0);var y=u();return y&&(C.exception=y),C}}f(l,"g"),e(l,"parseLicense");function p(){var E=a("(");if(E){var C=m();if(!a(")"))throw new Error("Expected `)`");return C}}f(p,"l"),e(p,"parseParenthesizedExpression");function h(){return p()||c()||l()}f(h,"R"),e(h,"parseAtom");function g(E,C){return e(f(function y(){var D=C();if(D){if(!a(E))return D;var w=y();if(!w)throw new Error("Expected expression");return{left:D,conjunction:E.toLowerCase(),right:w}}},"t"),"parseBinaryOp")}f(g,"p"),e(g,"makeBinaryOpParser");var b=g("AND",h),m=g("OR",b),v=m();if(!v||s())throw new Error("Syntax error");return v},"parse"),Po}f(xC,"requireParse");var No,Pc;function th(){if(Pc)return No;Pc=1;var t=NC(),e=xC();return No=f(function(r){return e(t(r))},"spdxExpressionParse"),No}f(th,"requireSpdxExpressionParse");var xo,Nc;function LC(){if(Nc)return xo;Nc=1;var t=Object.defineProperty,e=f((y,D)=>t(y,"name",{value:D,configurable:!0}),"u"),r=th(),n=eh();function s(y){try{return r(y),!0}catch{return!1}}f(s,"valid"),e(s,"valid");function i(y,D){var w=D[0].length-y[0].length;return w!==0?w:y[0].toUpperCase().localeCompare(D[0].toUpperCase())}f(i,"sortTranspositions"),e(i,"sortTranspositions");var o=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(i),a=0,u=1,c=[function(y){return y.toUpperCase()},function(y){return y.trim()},function(y){return y.replace(/\./g,"")},function(y){return y.replace(/\s+/g,"")},function(y){return y.replace(/\s+/g,"-")},function(y){return y.replace("v","-")},function(y){return y.replace(/,?\s*(\d)/,"-$1")},function(y){return y.replace(/,?\s*(\d)/,"-$1.0")},function(y){return y.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(y){return y.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(y){return y[0].toUpperCase()+y.slice(1)},function(y){return y.replace("/","-")},function(y){return y.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(y){return y.indexOf("3.0")!==-1?y+"-or-later":y+"-only"},function(y){return y+"only"},function(y){return y.replace(/(\d)$/,"-$1.0")},function(y){return y.replace(/(-| )?(\d)$/,"-$2-Clause")},function(y){return y.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(y){return y.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(y){return y.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(y){return y.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(y){return y.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(y){return y.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(y){return"CC-"+y},function(y){return"CC-"+y+"-4.0"},function(y){return y.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(y){return"CC-"+y.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],l=n.map(function(y){var D=/^(.*)-\d+\.\d+$/.exec(y);return D?[D[0],D[1]]:[y,null]}).reduce(function(y,D){var w=D[1];return y[w]=y[w]||[],y[w].push(D[0]),y},{}),p=Object.keys(l).map(e(function(y){return[y,l[y]]},"makeEntries")).filter(e(function(y){return y[1].length===1&&y[0]!==null&&y[0]!=="APL"},"identifySoleVersions")).map(e(function(y){return[y[0],y[1][0]]},"createLastResorts"));l=void 0;var h=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(p).sort(i),g=0,b=1,m=e(function(y){for(var D=0;D<c.length;D++){var w=c[D](y).trim();if(w!==y&&s(w))return w}return null},"validTransformation"),v=e(function(y){for(var D=y.toUpperCase(),w=0;w<h.length;w++){var d=h[w];if(D.indexOf(d[g])>-1)return d[b]}return null},"validLastResort"),E=e(function(y,D){for(var w=0;w<o.length;w++){var d=o[w],$=d[a];if(y.indexOf($)>-1){var A=y.replace($,d[u]),P=D(A);if(P!==null)return P}}return null},"anyCorrection");xo=f(function(y,D){D=D||{};var w=D.upgrade===void 0?!0:!!D.upgrade;function d(x){return w?C(x):x}f(d,"L"),e(d,"postprocess");var $=typeof y=="string"&&y.trim().length!==0;if(!$)throw Error("Invalid argument. Expected non-empty string.");if(y=y.trim(),s(y))return d(y);var A=y.replace(/\+$/,"").trim();if(s(A))return d(A);var P=m(y);return P!==null||(P=E(y,function(x){return s(x)?x:m(x)}),P!==null)||(P=v(y),P!==null)||(P=E(y,v),P!==null)?d(P):null},"spdxCorrect");function C(y){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(y)!==-1?y+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(y)!==-1?y.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(y)!==-1?y+"-or-later":y}return f(C,"upgradeGPLs"),e(C,"upgradeGPLs"),xo}f(LC,"requireSpdxCorrect");var Lo,xc;function kC(){if(xc)return Lo;xc=1;var t=Object.defineProperty,e=f((u,c)=>t(u,"name",{value:c,configurable:!0}),"i"),r=th(),n=LC(),s='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',i=/^SEE LICEN[CS]E IN (.+)$/;function o(u,c){return c.slice(0,u.length)===u}f(o,"startsWith"),e(o,"startsWith");function a(u){if(u.hasOwnProperty("license")){var c=u.license;return o("LicenseRef",c)||o("DocumentRef",c)}else return a(u.left)||a(u.right)}return f(a,"usesLicenseRef"),e(a,"usesLicenseRef"),Lo=f(function(u){var c;try{c=r(u)}catch{var l;if(u==="UNLICENSED"||u==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(l=i.exec(u))return{validForOldPackages:!0,validForNewPackages:!0,inFile:l[1]};var p={validForOldPackages:!1,validForNewPackages:!1,warnings:[s]};if(u.trim().length!==0){var h=n(u);h&&p.warnings.push('license is similar to the valid expression "'+h+'"')}return p}return a(c)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[s]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},"validateNpmPackageLicense"),Lo}f(kC,"requireValidateNpmPackageLicense");var BC=Object.defineProperty,Z=f((t,e)=>BC(t,"name",{value:e,configurable:!0}),"c$1"),rh={hasSubscribers:!1},Ee=rh,mr=rh;import("node:diagnostics_channel").then(t=>{Ee=t.channel("lru-cache:metrics"),mr=t.tracingChannel("lru-cache")}).catch(()=>{});var IC=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ko=Z(()=>Ee.hasSubscribers||mr.hasSubscribers,"D"),nh=new Set,Lc=process||{},RC=Z((t,e,r,n)=>{typeof Lc.emitWarning=="function"?Lc.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},"G"),_C=Z(t=>!nh.has(t),"P"),Pt=Z(t=>!!t&&t===Math.floor(t)&&t>0&&isFinite(t),"T"),sh=Z(t=>Pt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Bs:null:null,"j"),Bs=class extends Array{static{f(this,"D")}static{Z(this,"O")}constructor(e){super(e),this.fill(0)}},TC=class Sn{static{f(this,"W")}static{Z(this,"c")}heap;length;static#n=!1;static create(e){let r=sh(e);if(!r)return[];Sn.#n=!0;let n=new Sn(e,r);return Sn.#n=!1,n}constructor(e,r){if(!Sn.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},jC=class ih{static{f(this,"U")}static{Z(this,"c")}#n;#c;#t;#P;#y;#I;#R;#b;get perf(){return this.#b}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#v;#i;#s;#e;#f;#h;#l;#a;#D;#u;#E;#$;#d;#m;#A;#_;#p;#N;static unsafeExposeInternals(e){return{starts:e.#$,ttls:e.#d,autopurgeTimers:e.#m,sizes:e.#E,keyMap:e.#i,keyList:e.#s,valList:e.#e,next:e.#f,prev:e.#h,get head(){return e.#l},get tail(){return e.#a},free:e.#D,isBackgroundFetch:Z(r=>e.#r(r),"isBackgroundFetch"),backgroundFetch:Z((r,n,s,i)=>e.#M(r,n,s,i),"backgroundFetch"),moveToTail:Z(r=>e.#B(r),"moveToTail"),indexes:Z(r=>e.#C(r),"indexes"),rindexes:Z(r=>e.#w(r),"rindexes"),isStale:Z(r=>e.#g(r),"isStale")}}get max(){return this.#n}get maxSize(){return this.#c}get calculatedSize(){return this.#v}get size(){return this.#o}get fetchMethod(){return this.#I}get memoMethod(){return this.#R}get dispose(){return this.#t}get onInsert(){return this.#P}get disposeAfter(){return this.#y}constructor(e){let{max:r=0,ttl:n,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:c,onInsert:l,disposeAfter:p,noDisposeOnSet:h,noUpdateTTL:g,maxSize:b=0,maxEntrySize:m=0,sizeCalculation:v,fetchMethod:E,memoMethod:C,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:D,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:d,ignoreFetchAbort:$,perf:A}=e;if(A!==void 0&&typeof A?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#b=A??IC,r!==0&&!Pt(r))throw new TypeError("max option must be a nonnegative integer");let P=r?sh(r):Array;if(!P)throw new Error("invalid max value: "+r);if(this.#n=r,this.#c=b,this.maxEntrySize=m||this.#c,this.sizeCalculation=v,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#R=C,E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#I=E,this.#_=!!E,this.#i=new Map,this.#s=Array.from({length:r}).fill(void 0),this.#e=Array.from({length:r}).fill(void 0),this.#f=new P(r),this.#h=new P(r),this.#l=0,this.#a=0,this.#D=TC.create(r),this.#o=0,this.#v=0,typeof c=="function"&&(this.#t=c),typeof l=="function"&&(this.#P=l),typeof p=="function"?(this.#y=p,this.#u=[]):(this.#y=void 0,this.#u=void 0),this.#A=!!this.#t,this.#N=!!this.#P,this.#p=!!this.#y,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!d,this.ignoreFetchAbort=!!$,this.maxEntrySize!==0){if(this.#c!==0&&!Pt(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!Pt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#Y()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Pt(s)||s===0?s:1,this.ttlAutopurge=!!i,this.ttl=n||0,this.ttl){if(!Pt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#G()}if(this.#n===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#c){let x="LRU_CACHE_UNBOUNDED";_C(x)&&(nh.add(x),RC("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",x,ih))}}getRemainingTTL(e){return this.#i.has(e)?1/0:0}#G(){let e=new Bs(this.#n),r=new Bs(this.#n);this.#d=e,this.#$=r;let n=this.ttlAutopurge?Array.from({length:this.#n}):void 0;this.#m=n,this.#U=(a,u,c=this.#b.now())=>{r[a]=u!==0?c:0,e[a]=u,s(a,u)},this.#x=a=>{r[a]=e[a]!==0?this.#b.now():0,s(a,e[a])};let s=this.ttlAutopurge?(a,u)=>{if(n?.[a]&&(clearTimeout(n[a]),n[a]=void 0),u&&u!==0&&n){let c=setTimeout(()=>{this.#g(a)&&this.#S(this.#s[a],"expire")},u+1);c.unref&&c.unref(),n[a]=c}}:()=>{};this.#F=(a,u)=>{if(e[u]){let c=e[u],l=r[u];if(!c||!l)return;a.ttl=c,a.start=l,a.now=i||o();let p=a.now-l;a.remainingTTL=c-p}};let i=0,o=Z(()=>{let a=this.#b.now();if(this.ttlResolution>0){i=a;let u=setTimeout(()=>i=0,this.ttlResolution);u.unref&&u.unref()}return a},"r");this.getRemainingTTL=a=>{let u=this.#i.get(a);if(u===void 0)return 0;let c=e[u],l=r[u];if(!c||!l)return 1/0;let p=(i||o())-l;return c-p},this.#g=a=>{let u=r[a],c=e[a];return!!c&&!!u&&(i||o())-u>c}}#x=Z(()=>{},"#D");#F=Z(()=>{},"#v");#U=Z(()=>{},"#N");#g=Z(()=>!1,"#p");#Y(){let e=new Bs(this.#n);this.#v=0,this.#E=e,this.#L=r=>{this.#v-=e[r],e[r]=0},this.#H=(r,n,s,i)=>{if(this.#r(n))return 0;if(!Pt(s))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(s=i(n,r),!Pt(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#T=(r,n,s)=>{if(e[r]=n,this.#c){let i=this.#c-e[r];for(;this.#v>i;)this.#j(!0)}this.#v+=e[r],s&&(s.entrySize=n,s.totalCalculatedSize=this.#v)}}#L=Z(e=>{},"#R");#T=Z((e,r,n)=>{},"#j");#H=Z((e,r,n,s)=>{if(n||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#V");*#C({allowStale:e=this.allowStale}={}){if(this.#o)for(let r=this.#a;this.#K(r)&&((e||!this.#g(r))&&(yield r),r!==this.#l);)r=this.#h[r]}*#w({allowStale:e=this.allowStale}={}){if(this.#o)for(let r=this.#l;this.#K(r)&&((e||!this.#g(r))&&(yield r),r!==this.#a);)r=this.#f[r]}#K(e){return e!==void 0&&this.#i.get(this.#s[e])===e}*entries(){for(let e of this.#C())this.#e[e]!==void 0&&this.#s[e]!==void 0&&!this.#r(this.#e[e])&&(yield[this.#s[e],this.#e[e]])}*rentries(){for(let e of this.#w())this.#e[e]!==void 0&&this.#s[e]!==void 0&&!this.#r(this.#e[e])&&(yield[this.#s[e],this.#e[e]])}*keys(){for(let e of this.#C()){let r=this.#s[e];r!==void 0&&!this.#r(this.#e[e])&&(yield r)}}*rkeys(){for(let e of this.#w()){let r=this.#s[e];r!==void 0&&!this.#r(this.#e[e])&&(yield r)}}*values(){for(let e of this.#C())this.#e[e]!==void 0&&!this.#r(this.#e[e])&&(yield this.#e[e])}*rvalues(){for(let e of this.#w())this.#e[e]!==void 0&&!this.#r(this.#e[e])&&(yield this.#e[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let n of this.#C()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;if(i!==void 0&&e(i,this.#s[n],this))return this.#k(this.#s[n],r)}}forEach(e,r=this){for(let n of this.#C()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;i!==void 0&&e.call(r,i,this.#s[n],this)}}rforEach(e,r=this){for(let n of this.#w()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;i!==void 0&&e.call(r,i,this.#s[n],this)}}purgeStale(){let e=!1;for(let r of this.#w({allowStale:!0}))this.#g(r)&&(this.#S(this.#s[r],"expire"),e=!0);return e}info(e){let r=this.#i.get(e);if(r===void 0)return;let n=this.#e[r],s=this.#r(n)?n.__staleWhileFetching:n;if(s===void 0)return;let i={value:s};if(this.#d&&this.#$){let o=this.#d[r],a=this.#$[r];if(o&&a){let u=o-(this.#b.now()-a);i.ttl=u,i.start=Date.now()}}return this.#E&&(i.size=this.#E[r]),i}dump(){let e=[];for(let r of this.#C({allowStale:!0})){let n=this.#s[r],s=this.#e[r],i=this.#r(s)?s.__staleWhileFetching:s;if(i===void 0||n===void 0)continue;let o={value:i};if(this.#d&&this.#$){o.ttl=this.#d[r];let a=this.#b.now()-this.#$[r];o.start=Math.floor(Date.now()-a)}this.#E&&(o.size=this.#E[r]),e.unshift([n,o])}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let s=Date.now()-n.start;n.start=this.#b.now()-s}this.#O(r,n.value,n)}}set(e,r,n={}){let{status:s=Ee.hasSubscribers?{}:void 0}=n;n.status=s,s&&(s.op="set",s.key=e,r!==void 0&&(s.value=r),s.cache=this);let i=this.#O(e,r,n);return s&&Ee.hasSubscribers&&Ee.publish(s),i}#O(e,r,n,s){let{ttl:i=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:c}=n;if(r===void 0)return c&&(c.set="deleted"),this.delete(e),this;let{noUpdateTTL:l=this.noUpdateTTL}=n,p=this.#r(r);c&&!p&&(c.value=r);let h=this.#H(e,r,n.size||0,u,c);if(this.maxEntrySize&&h>this.maxEntrySize)return this.#S(e,"set"),c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this;let g=this.#o===0?void 0:this.#i.get(e);if(g===void 0)g=this.#o===0?this.#a:this.#D.length!==0?this.#D.pop():this.#o===this.#n?this.#j(!1):this.#o,this.#s[g]=e,this.#e[g]=r,this.#i.set(e,g),this.#f[this.#a]=g,this.#h[g]=this.#a,this.#a=g,this.#o++,this.#T(g,h,c),c&&(c.set="add"),l=!1,this.#N&&!p&&this.#P?.(r,e,"add");else{this.#B(g);let b=this.#e[g];if(r!==b){if(!a)if(this.#r(b)){b!==s&&b.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:m}=b;m!==void 0&&m!==r&&(this.#A&&this.#t?.(m,e,"set"),this.#p&&this.#u?.push([m,e,"set"]))}else this.#A&&this.#t?.(b,e,"set"),this.#p&&this.#u?.push([b,e,"set"]);if(this.#L(g),this.#T(g,h,c),this.#e[g]=r,!p){let m=b&&this.#r(b)?b.__staleWhileFetching:b,v=m===void 0?"add":r!==m?"replace":"update";c&&(c.set=v,m!==void 0&&(c.oldValue=m)),this.#N&&this.onInsert?.(r,e,v)}}else p||(c&&(c.set="update"),this.#N&&this.onInsert?.(r,e,"update"))}if(i!==0&&!this.#d&&this.#G(),this.#d&&(l||this.#U(g,i,o),c&&this.#F(c,g)),!a&&this.#p&&this.#u){let b=this.#u,m;for(;m=b?.shift();)this.#y?.(...m)}return this}pop(){try{for(;this.#o;){let e=this.#e[this.#l];if(this.#j(!0),this.#r(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#p&&this.#u){let e=this.#u,r;for(;r=e?.shift();)this.#y?.(...r)}}}#j(e){let r=this.#l,n=this.#s[r],s=this.#e[r],i=this.#r(s);i&&s.__abortController.abort(new Error("evicted"));let o=i?s.__staleWhileFetching:s;return(this.#A||this.#p)&&o!==void 0&&(this.#A&&this.#t?.(o,n,"evict"),this.#p&&this.#u?.push([o,n,"evict"])),this.#L(r),this.#m?.[r]&&(clearTimeout(this.#m[r]),this.#m[r]=void 0),e&&(this.#s[r]=void 0,this.#e[r]=void 0,this.#D.push(r)),this.#o===1?(this.#l=this.#a=0,this.#D.length=0):this.#l=this.#f[r],this.#i.delete(n),this.#o--,r}has(e,r={}){let{status:n=Ee.hasSubscribers?{}:void 0}=r;r.status=n,n&&(n.op="has",n.key=e,n.cache=this);let s=this.#z(e,r);return Ee.hasSubscribers&&Ee.publish(n),s}#z(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:s}=r,i=this.#i.get(e);if(i!==void 0){let o=this.#e[i];if(this.#r(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#g(i))s&&(s.has="stale",this.#F(s,i));else return n&&this.#x(i),s&&(s.has="hit",this.#F(s,i)),!0}else s&&(s.has="miss");return!1}peek(e,r={}){let{status:n=ko()?{}:void 0}=r;n&&(n.op="peek",n.key=e,n.cache=this),r.status=n;let s=this.#X(e,r);return Ee.hasSubscribers&&Ee.publish(n),s}#X(e,r){let{status:n,allowStale:s=this.allowStale}=r,i=this.#i.get(e);if(i===void 0||!s&&this.#g(i)){n&&(n.peek=i===void 0?"miss":"stale");return}let o=this.#e[i],a=this.#r(o)?o.__staleWhileFetching:o;return n&&(a!==void 0?(n.peek="hit",n.value=a):n.peek="miss"),a}#M(e,r,n,s){let i=r===void 0?void 0:this.#e[r];if(this.#r(i))return i;let o=new AbortController,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let u={signal:o.signal,options:n,context:s},c=Z((m,v=!1)=>{let{aborted:E}=o.signal,C=n.ignoreFetchAbort&&m!==void 0,y=n.ignoreFetchAbort||!!(n.allowStaleOnFetchAbort&&m!==void 0);if(n.status&&(E&&!v?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,C&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),E&&!C&&!v)return p(o.signal.reason,y);let D=g,w=this.#e[r];return(w===g||w===void 0&&C&&v)&&(m===void 0?D.__staleWhileFetching!==void 0?this.#e[r]=D.__staleWhileFetching:this.#S(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.#O(e,m,u.options,D))),m},"o"),l=Z(m=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=m),p(m,!1)),"p"),p=Z((m,v)=>{let{aborted:E}=o.signal,C=E&&n.allowStaleOnFetchAbort,y=C||n.allowStaleOnFetchRejection,D=y||n.noDeleteOnFetchRejection,w=g;if(this.#e[r]===g&&(!D||!v&&w.__staleWhileFetching===void 0?this.#S(e,"fetch"):C||(this.#e[r]=w.__staleWhileFetching)),y)return n.status&&w.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),w.__staleWhileFetching;if(w.__returned===w)throw m},"m"),h=Z((m,v)=>{let E=this.#I?.(e,i,u);o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(m(void 0),n.allowStaleOnFetchAbort&&(m=Z(C=>c(C,!0),"f")))}),E&&E instanceof Promise?E.then(C=>m(C===void 0?void 0:C),v):E!==void 0&&m(E)},"_");n.status&&(n.status.fetchDispatched=!0);let g=new Promise(h).then(c,l),b=Object.assign(g,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return r===void 0?(this.#O(e,b,{...u.options,status:void 0}),r=this.#i.get(e)):this.#e[r]=b,b}#r(e){if(!this.#_)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof AbortController}fetch(e,r={}){let n=mr.hasSubscribers,{status:s=ko()?{}:void 0}=r;r.status=s,s&&r.context&&(s.context=r.context);let i=this.#q(e,r);return s&&n&&(s.trace=!0,mr.tracePromise(()=>i,s).catch(()=>{})),i}async#q(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:m,forceRefresh:v=!1,status:E,signal:C}=r;if(E&&(E.op="fetch",E.key=e,v&&(E.forceRefresh=!0),E.cache=this),!this.#_)return E&&(E.fetch="get"),this.#k(e,{allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,status:E});let y={allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:b,ignoreFetchAbort:g,status:E,signal:C},D=this.#i.get(e);if(D===void 0){E&&(E.fetch="miss");let w=this.#M(e,D,y,m);return w.__returned=w}else{let w=this.#e[D];if(this.#r(w)){let P=n&&w.__staleWhileFetching!==void 0;return E&&(E.fetch="inflight",P&&(E.returnedStale=!0)),P?w.__staleWhileFetching:w.__returned=w}let d=this.#g(D);if(!v&&!d)return E&&(E.fetch="hit"),this.#B(D),s&&this.#x(D),E&&this.#F(E,D),w;let $=this.#M(e,D,y,m),A=$.__staleWhileFetching!==void 0&&n;return E&&(E.fetch=d?"stale":"refresh",A&&d&&(E.returnedStale=!0)),A?$.__staleWhileFetching:$.__returned=$}}forceFetch(e,r={}){let n=mr.hasSubscribers,{status:s=ko()?{}:void 0}=r;r.status=s,s&&r.context&&(s.context=r.context);let i=this.#J(e,r);return s&&n&&(s.trace=!0,mr.tracePromise(()=>i,s).catch(()=>{})),i}async#J(e,r={}){let n=await this.#q(e,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(e,r={}){let{status:n=Ee.hasSubscribers?{}:void 0}=r;r.status=n,n&&(n.op="memo",n.key=e,r.context&&(n.context=r.context),n.cache=this);let s=this.#Q(e,r);return n&&(n.value=s),Ee.hasSubscribers&&Ee.publish(n),s}#Q(e,r={}){let n=this.#R;if(!n)throw new Error("no memoMethod provided to constructor");let{context:s,status:i,forceRefresh:o,...a}=r;i&&o&&(i.forceRefresh=!0);let u=this.#k(e,a),c=o||u===void 0;if(i&&(i.memo=c?"miss":"hit",c||(i.value=u)),!c)return u;let l=n(e,u,{options:a,context:s});return i&&(i.value=l),this.#O(e,l,a),l}get(e,r={}){let{status:n=Ee.hasSubscribers?{}:void 0}=r;r.status=n,n&&(n.op="get",n.key=e,n.cache=this);let s=this.#k(e,r);return n&&(s!==void 0&&(n.value=s),Ee.hasSubscribers&&Ee.publish(n)),s}#k(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=r,a=this.#i.get(e);if(a===void 0){o&&(o.get="miss");return}let u=this.#e[a],c=this.#r(u);return o&&this.#F(o,a),this.#g(a)?c?(o&&(o.get="stale-fetching"),n&&u.__staleWhileFetching!==void 0?(o&&(o.returnedStale=!0),u.__staleWhileFetching):void 0):(i||this.#S(e,"expire"),o&&(o.get="stale"),n?(o&&(o.returnedStale=!0),u):void 0):(o&&(o.get=c?"fetching":"hit"),this.#B(a),s&&this.#x(a),c?u.__staleWhileFetching:u)}#W(e,r){this.#h[r]=e,this.#f[e]=r}#B(e){e!==this.#a&&(e===this.#l?this.#l=this.#f[e]:this.#W(this.#h[e],this.#f[e]),this.#W(this.#a,e),this.#a=e)}delete(e){return this.#S(e,"delete")}#S(e,r){Ee.hasSubscribers&&Ee.publish({op:"delete",delete:r,key:e,cache:this});let n=!1;if(this.#o!==0){let s=this.#i.get(e);if(s!==void 0)if(this.#m?.[s]&&(clearTimeout(this.#m?.[s]),this.#m[s]=void 0),n=!0,this.#o===1)this.#V(r);else{this.#L(s);let i=this.#e[s];if(this.#r(i)?i.__abortController.abort(new Error("deleted")):(this.#A||this.#p)&&(this.#A&&this.#t?.(i,e,r),this.#p&&this.#u?.push([i,e,r])),this.#i.delete(e),this.#s[s]=void 0,this.#e[s]=void 0,s===this.#a)this.#a=this.#h[s];else if(s===this.#l)this.#l=this.#f[s];else{let o=this.#h[s];this.#f[o]=this.#f[s];let a=this.#f[s];this.#h[a]=this.#h[s]}this.#o--,this.#D.push(s)}}if(this.#p&&this.#u?.length){let s=this.#u,i;for(;i=s?.shift();)this.#y?.(...i)}return n}clear(){return this.#V("delete")}#V(e){for(let r of this.#w({allowStale:!0})){let n=this.#e[r];if(this.#r(n))n.__abortController.abort(new Error("deleted"));else{let s=this.#s[r];this.#A&&this.#t?.(n,s,e),this.#p&&this.#u?.push([n,s,e])}}if(this.#i.clear(),this.#e.fill(void 0),this.#s.fill(void 0),this.#d&&this.#$){this.#d.fill(0),this.#$.fill(0);for(let r of this.#m??[])r!==void 0&&clearTimeout(r);this.#m?.fill(void 0)}if(this.#E&&this.#E.fill(0),this.#l=0,this.#a=0,this.#D.length=0,this.#v=0,this.#o=0,this.#p&&this.#u){let r=this.#u,n;for(;n=r?.shift();)this.#y?.(...n)}}};const MC=Object.defineProperty({__proto__:null,LRUCache:jC},Symbol.toStringTag,{value:"Module"}),GC=Yi(MC);var Bo,kc;function UC(){if(kc)return Bo;kc=1;var t=Object.defineProperty,e=f((a,u)=>t(a,"name",{value:u,configurable:!0}),"$");const r=e((...a)=>a.every(u=>u)?a.join(""):"","maybeJoin"),n=e(a=>a?encodeURIComponent(a):"","maybeEncode"),s=e(a=>a.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),"formatHashFragment"),i={sshtemplate:e(({domain:a,user:u,project:c,committish:l})=>`git@${a}:${u}/${c}.git${r("#",l)}`,"sshtemplate"),sshurltemplate:e(({domain:a,user:u,project:c,committish:l})=>`git+ssh://git@${a}/${u}/${c}.git${r("#",l)}`,"sshurltemplate"),edittemplate:e(({domain:a,user:u,project:c,committish:l,editpath:p,path:h})=>`https://${a}/${u}/${c}${r("/",p,"/",n(l||"HEAD"),"/",h)}`,"edittemplate"),browsetemplate:e(({domain:a,user:u,project:c,committish:l,treepath:p})=>`https://${a}/${u}/${c}${r("/",p,"/",n(l))}`,"browsetemplate"),browsetreetemplate:e(({domain:a,user:u,project:c,committish:l,treepath:p,path:h,fragment:g,hashformat:b})=>`https://${a}/${u}/${c}/${p}/${n(l||"HEAD")}/${h}${r("#",b(g||""))}`,"browsetreetemplate"),browseblobtemplate:e(({domain:a,user:u,project:c,committish:l,blobpath:p,path:h,fragment:g,hashformat:b})=>`https://${a}/${u}/${c}/${p}/${n(l||"HEAD")}/${h}${r("#",b(g||""))}`,"browseblobtemplate"),docstemplate:e(({domain:a,user:u,project:c,treepath:l,committish:p})=>`https://${a}/${u}/${c}${r("/",l,"/",n(p))}#readme`,"docstemplate"),httpstemplate:e(({auth:a,domain:u,user:c,project:l,committish:p})=>`git+https://${r(a,"@")}${u}/${c}/${l}.git${r("#",p)}`,"httpstemplate"),filetemplate:e(({domain:a,user:u,project:c,committish:l,path:p})=>`https://${a}/${u}/${c}/raw/${n(l||"HEAD")}/${p}`,"filetemplate"),shortcuttemplate:e(({type:a,user:u,project:c,committish:l})=>`${a}:${u}/${c}${r("#",l)}`,"shortcuttemplate"),pathtemplate:e(({user:a,project:u,committish:c})=>`${a}/${u}${r("#",c)}`,"pathtemplate"),bugstemplate:e(({domain:a,user:u,project:c})=>`https://${a}/${u}/${c}/issues`,"bugstemplate"),hashformat:s},o={};o.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:e(({auth:a,user:u,project:c,committish:l,path:p})=>`https://${r(a,"@")}raw.githubusercontent.com/${u}/${c}/${n(l||"HEAD")}/${p}`,"filetemplate"),gittemplate:e(({auth:a,domain:u,user:c,project:l,committish:p})=>`git://${r(a,"@")}${u}/${c}/${l}.git${r("#",p)}`,"gittemplate"),tarballtemplate:e(({domain:a,user:u,project:c,committish:l})=>`https://codeload.${a}/${u}/${c}/tar.gz/${n(l||"HEAD")}`,"tarballtemplate"),extract:e(a=>{let[,u,c,l,p]=a.pathname.split("/",5);if(!(l&&l!=="tree")&&(l||(p=a.hash.slice(1)),c&&c.endsWith(".git")&&(c=c.slice(0,-4)),!(!u||!c)))return{user:u,project:c,committish:p}},"extract")},o.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:e(({domain:a,user:u,project:c,committish:l,treepath:p,path:h,editpath:g})=>`https://${a}/${u}/${c}${r("/",p,"/",n(l||"HEAD"),"/",h,g)}`,"edittemplate"),tarballtemplate:e(({domain:a,user:u,project:c,committish:l})=>`https://${a}/${u}/${c}/get/${n(l||"HEAD")}.tar.gz`,"tarballtemplate"),extract:e(a=>{let[,u,c,l]=a.pathname.split("/",4);if(!["get"].includes(l)&&(c&&c.endsWith(".git")&&(c=c.slice(0,-4)),!(!u||!c)))return{user:u,project:c,committish:a.hash.slice(1)}},"extract")},o.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:e(({domain:a,user:u,project:c,committish:l})=>`https://${a}/api/v4/projects/${n(u+"/"+c)}/repository/archive.tar.gz?sha=${n(l||"HEAD")}`,"tarballtemplate"),extract:e(a=>{const u=a.pathname.slice(1);if(u.includes("/-/")||u.includes("/archive.tar.gz"))return;const c=u.split("/");let l=c.pop();l.endsWith(".git")&&(l=l.slice(0,-4));const p=c.join("/");if(!(!p||!l))return{user:p,project:l,committish:a.hash.slice(1)}},"extract")},o.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:e(({domain:a,project:u,committish:c})=>`git@${a}:${u}.git${r("#",c)}`,"sshtemplate"),sshurltemplate:e(({domain:a,project:u,committish:c})=>`git+ssh://git@${a}/${u}.git${r("#",c)}`,"sshurltemplate"),edittemplate:e(({domain:a,user:u,project:c,committish:l,editpath:p})=>`https://${a}/${u}/${c}${r("/",n(l))}/${p}`,"edittemplate"),browsetemplate:e(({domain:a,project:u,committish:c})=>`https://${a}/${u}${r("/",n(c))}`,"browsetemplate"),browsetreetemplate:e(({domain:a,project:u,committish:c,path:l,hashformat:p})=>`https://${a}/${u}${r("/",n(c))}${r("#",p(l))}`,"browsetreetemplate"),browseblobtemplate:e(({domain:a,project:u,committish:c,path:l,hashformat:p})=>`https://${a}/${u}${r("/",n(c))}${r("#",p(l))}`,"browseblobtemplate"),docstemplate:e(({domain:a,project:u,committish:c})=>`https://${a}/${u}${r("/",n(c))}`,"docstemplate"),httpstemplate:e(({domain:a,project:u,committish:c})=>`git+https://${a}/${u}.git${r("#",c)}`,"httpstemplate"),filetemplate:e(({user:a,project:u,committish:c,path:l})=>`https://gist.githubusercontent.com/${a}/${u}/raw${r("/",n(c))}/${l}`,"filetemplate"),shortcuttemplate:e(({type:a,project:u,committish:c})=>`${a}:${u}${r("#",c)}`,"shortcuttemplate"),pathtemplate:e(({project:a,committish:u})=>`${a}${r("#",u)}`,"pathtemplate"),bugstemplate:e(({domain:a,project:u})=>`https://${a}/${u}`,"bugstemplate"),gittemplate:e(({domain:a,project:u,committish:c})=>`git://${a}/${u}.git${r("#",c)}`,"gittemplate"),tarballtemplate:e(({project:a,committish:u})=>`https://codeload.github.com/gist/${a}/tar.gz/${n(u||"HEAD")}`,"tarballtemplate"),extract:e(a=>{let[,u,c,l]=a.pathname.split("/",4);if(l!=="raw"){if(!c){if(!u)return;c=u,u=null}return c.endsWith(".git")&&(c=c.slice(0,-4)),{user:u,project:c,committish:a.hash.slice(1)}}},"extract"),hashformat:e(function(a){return a&&"file-"+s(a)},"hashformat")},o.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:e(({domain:a,user:u,project:c,committish:l,path:p})=>`https://${a}/${u}/${c}/blob/${n(l)||"HEAD"}/${p}`,"filetemplate"),httpstemplate:e(({domain:a,user:u,project:c,committish:l})=>`https://${a}/${u}/${c}${r("#",l)}`,"httpstemplate"),tarballtemplate:e(({domain:a,user:u,project:c,committish:l})=>`https://${a}/${u}/${c}/archive/${n(l)||"HEAD"}.tar.gz`,"tarballtemplate"),bugstemplate:e(()=>null,"bugstemplate"),extract:e(a=>{let[,u,c,l]=a.pathname.split("/",4);if(!["archive"].includes(l)&&(c&&c.endsWith(".git")&&(c=c.slice(0,-4)),!(!u||!c)))return{user:u,project:c,committish:a.hash.slice(1)}},"extract")};for(const[a,u]of Object.entries(o))o[a]=Object.assign({},i,u);return Bo=o,Bo}f(UC,"requireHosts");var Io,Bc;function oh(){if(Bc)return Io;Bc=1;var t=Object.defineProperty,e=f((o,a)=>t(o,"name",{value:a,configurable:!0}),"s");const r=e((o,a,u)=>{const c=o.indexOf(u);return o.lastIndexOf(a,c>-1?c:1/0)},"lastIndexOfBefore"),n=e(o=>{try{return new URL(o)}catch{}},"safeUrl"),s=e((o,a)=>{const u=o.indexOf(":"),c=o.slice(0,u+1);if(Object.prototype.hasOwnProperty.call(a,c)||o.substr(u,3)==="://")return o;const l=o.indexOf("@");return l>-1?l>u?`git+ssh://${o}`:o:`${o.slice(0,u+1)}//${o.slice(u+1)}`},"correctProtocol"),i=e(o=>{const a=r(o,"@","#"),u=r(o,":","#");return u>a&&(o=o.slice(0,u)+"/"+o.slice(u+1)),r(o,":","#")===-1&&o.indexOf("//")===-1&&(o=`git+ssh://${o}`),o},"correctUrl");return Io=f((o,a)=>{const u=a?s(o,a):o;return n(u)||n(i(u))},"parseUrl"),Io}f(oh,"requireParseUrl");var Ro,Ic;function HC(){if(Ic)return Ro;Ic=1;var t=Object.defineProperty,e=f((s,i)=>t(s,"name",{value:i,configurable:!0}),"S");const r=oh(),n=e(s=>{const i=s.indexOf("#"),o=s.indexOf("/"),a=s.indexOf("/",o+1),u=s.indexOf(":"),c=/\s/.exec(s),l=s.indexOf("@"),p=!c||i>-1&&c.index>i,h=l===-1||i>-1&&l>i,g=u===-1||i>-1&&u>i,b=a===-1||i>-1&&a>i,m=o>0,v=i>-1?s[i-1]!=="/":!s.endsWith("/"),E=!s.startsWith(".");return p&&m&&v&&E&&h&&g&&b},"isGitHubShorthand");return Ro=f((s,i,{gitHosts:o,protocols:a})=>{if(!s)return;const u=n(s)?`github:${s}`:s,c=r(u,a);if(!c)return;const l=o.byShortcut[c.protocol],p=o.byDomain[c.hostname.startsWith("www.")?c.hostname.slice(4):c.hostname],h=l||p;if(!h)return;const g=o[l||p];let b=null;a[c.protocol]?.auth&&(c.username||c.password)&&(b=`${c.username}${c.password?":"+c.password:""}`);let m=null,v=null,E=null,C=null;try{if(l){let y=c.pathname.startsWith("/")?c.pathname.slice(1):c.pathname;const D=y.indexOf("@");D>-1&&(y=y.slice(D+1));const w=y.lastIndexOf("/");w>-1?(v=decodeURIComponent(y.slice(0,w)),v||(v=null),E=decodeURIComponent(y.slice(w+1))):E=decodeURIComponent(y),E.endsWith(".git")&&(E=E.slice(0,-4)),c.hash&&(m=decodeURIComponent(c.hash.slice(1))),C="shortcut"}else{if(!g.protocols.includes(c.protocol))return;const y=g.extract(c);if(!y)return;v=y.user&&decodeURIComponent(y.user),E=decodeURIComponent(y.project),m=decodeURIComponent(y.committish),C=a[c.protocol]?.name||c.protocol.slice(0,-1)}}catch(y){if(y instanceof URIError)return;throw y}return[h,v,b,E,m,C,i]},"fromUrl"),Ro}f(HC,"requireFromUrl");var _o,Rc;function KC(){if(Rc)return _o;Rc=1;var t=Object.defineProperty,e=f((c,l)=>t(c,"name",{value:l,configurable:!0}),"o");const{LRUCache:r}=GC,n=UC(),s=HC(),i=oh(),o=new r({max:1e3});function a(c){try{const{protocol:l,hostname:p,pathname:h}=new URL(c);if(!p)return null;const g=/(?:git\+)http:$/.test(l)?"http:":"https:",b=h.replace(/\.git$/,"");return`${g}//${p}${b}`}catch{return null}}f(a,"unknownHostedUrl"),e(a,"unknownHostedUrl");class u{static{f(this,"GitHost")}static{e(this,"GitHost")}constructor(l,p,h,g,b,m,v={}){Object.assign(this,u.#n[l],{type:l,user:p,auth:h,project:g,committish:b,default:m,opts:v})}static#n={byShortcut:{},byDomain:{}};static#c={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(l,p){u.#n[l]=p,u.#n.byDomain[p.domain]=l,u.#n.byShortcut[`${l}:`]=l,u.#c[`${l}:`]={name:l}}static fromUrl(l,p){if(typeof l!="string")return;const h=l+JSON.stringify(p||{});if(!o.has(h)){const g=s(l,p,{gitHosts:u.#n,protocols:u.#c});o.set(h,g?new u(...g):void 0)}return o.get(h)}static fromManifest(l,p={}){if(!l||typeof l!="object")return;const h=l.repository,g=h&&(typeof h=="string"?h:typeof h=="object"&&typeof h.url=="string"?h.url:null);if(!g)throw new Error("no repository");const b=g&&u.fromUrl(g.replace(/^git\+/,""),p)||null;if(b)return b;const m=a(g);return u.fromUrl(m,p)||m}static parseUrl(l){return i(l)}#t(l,p){if(typeof l!="function")return null;const h={...this,...this.opts,...p};h.path||(h.path=""),h.path.startsWith("/")&&(h.path=h.path.slice(1)),h.noCommittish&&(h.committish=null);const g=l(h);return h.noGitPlus&&g.startsWith("git+")?g.slice(4):g}hash(){return this.committish?`#${this.committish}`:""}ssh(l){return this.#t(this.sshtemplate,l)}sshurl(l){return this.#t(this.sshurltemplate,l)}browse(l,...p){return typeof l!="string"?this.#t(this.browsetemplate,l):typeof p[0]!="string"?this.#t(this.browsetreetemplate,{...p[0],path:l}):this.#t(this.browsetreetemplate,{...p[1],fragment:p[0],path:l})}browseFile(l,...p){return typeof p[0]!="string"?this.#t(this.browseblobtemplate,{...p[0],path:l}):this.#t(this.browseblobtemplate,{...p[1],fragment:p[0],path:l})}docs(l){return this.#t(this.docstemplate,l)}bugs(l){return this.#t(this.bugstemplate,l)}https(l){return this.#t(this.httpstemplate,l)}git(l){return this.#t(this.gittemplate,l)}shortcut(l){return this.#t(this.shortcuttemplate,l)}path(l){return this.#t(this.pathtemplate,l)}tarball(l){return this.#t(this.tarballtemplate,{...l,noCommittish:!1})}file(l,p){return this.#t(this.filetemplate,{...p,path:l})}edit(l,p){return this.#t(this.edittemplate,{...p,path:l})}getDefaultRepresentation(){return this.default}toString(l){return this.default&&typeof this[this.default]=="function"?this[this.default](l):this.sshurl(l)}}for(const[c,l]of Object.entries(n))u.addHost(c,l);return _o=u,_o}f(KC,"requireLib");var To,_c;function qC(){if(_c)return To;_c=1;var t=Object.defineProperty,e=f((n,s)=>t(n,"name",{value:s,configurable:!0}),"r");To=r;function r(n){if(!n||n==="ERROR: No README data found!")return;n=n.trim().split(`
179
+ `);let s=0;for(;n[s]&&n[s].trim().match(/^(#|$)/);)s++;const i=n.length;let o=s+1;for(;o<i&&n[o].trim();)o++;return n.slice(s,o).join(" ").trim()}return f(r,"extractDescription"),e(r,"extractDescription"),To}f(qC,"requireExtract_description");var ah={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},uh={web:"url",name:"url"},ch={server:"start",tests:"test"};const WC={topLevel:ah,bugs:uh,script:ch},VC=Object.defineProperty({__proto__:null,bugs:uh,default:WC,script:ch,topLevel:ah},Symbol.toStringTag,{value:"Module"}),YC=Yi(VC);var jo,Tc;function zC(){if(Tc)return jo;Tc=1;var t=Object.defineProperty,e=f((d,$)=>t(d,"name",{value:$,configurable:!0}),"n"),{URL:r}=td,n=SC(),s=FC(),i=kC(),o=KC(),{isBuiltin:a}=Qh,u=["dependencies","devDependencies","optionalDependencies"],c=qC(),l=YC,p=e(d=>d.includes("@")&&d.indexOf("@")<d.lastIndexOf("."),"isEmail");jo={warn:e(function(){},"warn"),fixRepositoryField:e(function(d){if(d.repositories&&(this.warn("repositories"),d.repository=d.repositories[0]),!d.repository)return this.warn("missingRepository");typeof d.repository=="string"&&(d.repository={type:"git",url:d.repository});var $=d.repository.url||"";if($){var A=o.fromUrl($);A&&($=d.repository.url=A.getDefaultRepresentation()==="shortcut"?A.https():A.toString())}$.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",$)},"fixRepositoryField"),fixTypos:e(function(d){Object.keys(l.topLevel).forEach(function($){Object.prototype.hasOwnProperty.call(d,$)&&this.warn("typo",$,l.topLevel[$])},this)},"fixTypos"),fixScriptsField:e(function(d){if(d.scripts){if(typeof d.scripts!="object"){this.warn("nonObjectScripts"),delete d.scripts;return}Object.keys(d.scripts).forEach(function($){typeof d.scripts[$]!="string"?(this.warn("nonStringScript"),delete d.scripts[$]):l.script[$]&&!d.scripts[l.script[$]]&&this.warn("typo",$,l.script[$],"scripts")},this)}},"fixScriptsField"),fixFilesField:e(function(d){var $=d.files;$&&!Array.isArray($)?(this.warn("nonArrayFiles"),delete d.files):d.files&&(d.files=d.files.filter(function(A){return!A||typeof A!="string"?(this.warn("invalidFilename",A),!1):!0},this))},"fixFilesField"),fixBinField:e(function(d){if(d.bin&&typeof d.bin=="string"){var $={},A;(A=d.name.match(/^@[^/]+[/](.*)$/))?$[A[1]]=d.bin:$[d.name]=d.bin,d.bin=$}},"fixBinField"),fixManField:e(function(d){d.man&&typeof d.man=="string"&&(d.man=[d.man])},"fixManField"),fixBundleDependenciesField:e(function(d){var $="bundledDependencies",A="bundleDependencies";d[$]&&!d[A]&&(d[A]=d[$],delete d[$]),d[A]&&!Array.isArray(d[A])?(this.warn("nonArrayBundleDependencies"),delete d[A]):d[A]&&(d[A]=d[A].filter(function(P){return!P||typeof P!="string"?(this.warn("nonStringBundleDependency",P),!1):(d.dependencies||(d.dependencies={}),Object.prototype.hasOwnProperty.call(d.dependencies,P)||(this.warn("nonDependencyBundleDependency",P),d.dependencies[P]="*"),!0)},this))},"fixBundleDependenciesField"),fixDependencies:e(function(d){D(d,this.warn),C(d),this.fixBundleDependenciesField(d),["dependencies","devDependencies"].forEach(function($){if($ in d){if(!d[$]||typeof d[$]!="object"){this.warn("nonObjectDependencies",$),delete d[$];return}Object.keys(d[$]).forEach(function(A){var P=d[$][A];typeof P!="string"&&(this.warn("nonStringDependency",A,JSON.stringify(P)),delete d[$][A]);var x=o.fromUrl(d[$][A]);x&&(d[$][A]=x.toString())},this)}},this)},"fixDependencies"),fixModulesField:e(function(d){d.modules&&(this.warn("deprecatedModules"),delete d.modules)},"fixModulesField"),fixKeywordsField:e(function(d){typeof d.keywords=="string"&&(d.keywords=d.keywords.split(/,\s+/)),d.keywords&&!Array.isArray(d.keywords)?(delete d.keywords,this.warn("nonArrayKeywords")):d.keywords&&(d.keywords=d.keywords.filter(function($){return typeof $!="string"||!$?(this.warn("nonStringKeyword"),!1):!0},this))},"fixKeywordsField"),fixVersionField:e(function(d,$){var A=!$;if(!d.version)return d.version="",!0;if(!n(d.version,A))throw new Error('Invalid version: "'+d.version+'"');return d.version=s(d.version,A),!0},"fixVersionField"),fixPeople:e(function(d){m(d,v),m(d,E)},"fixPeople"),fixNameField:e(function(d,$){typeof $=="boolean"?$={strict:$}:typeof $>"u"&&($={});var A=$.strict;if(!d.name&&!A){d.name="";return}if(typeof d.name!="string")throw new Error("name field must be a string.");A||(d.name=d.name.trim()),b(d.name,A,$.allowLegacyCase),a(d.name)&&this.warn("conflictingName",d.name)},"fixNameField"),fixDescriptionField:e(function(d){d.description&&typeof d.description!="string"&&(this.warn("nonStringDescription"),delete d.description),d.readme&&!d.description&&(d.description=c(d.readme)),d.description===void 0&&delete d.description,d.description||this.warn("missingDescription")},"fixDescriptionField"),fixReadmeField:e(function(d){d.readme||(this.warn("missingReadme"),d.readme="ERROR: No README data found!")},"fixReadmeField"),fixBugsField:e(function(d){if(!d.bugs&&d.repository&&d.repository.url){var $=o.fromUrl(d.repository.url);$&&$.bugs()&&(d.bugs={url:$.bugs()})}else if(d.bugs){if(typeof d.bugs=="string")p(d.bugs)?d.bugs={email:d.bugs}:r.canParse(d.bugs)?d.bugs={url:d.bugs}:this.warn("nonEmailUrlBugsString");else{w(d.bugs,this.warn);var A=d.bugs;d.bugs={},A.url&&(r.canParse(A.url)?d.bugs.url=A.url:this.warn("nonUrlBugsUrlField")),A.email&&(typeof A.email=="string"&&p(A.email)?d.bugs.email=A.email:this.warn("nonEmailBugsEmailField"))}!d.bugs.email&&!d.bugs.url&&(delete d.bugs,this.warn("emptyNormalizedBugs"))}},"fixBugsField"),fixHomepageField:e(function(d){if(!d.homepage&&d.repository&&d.repository.url){var $=o.fromUrl(d.repository.url);$&&$.docs()&&(d.homepage=$.docs())}if(d.homepage){if(typeof d.homepage!="string")return this.warn("nonUrlHomepage"),delete d.homepage;r.canParse(d.homepage)||(d.homepage="http://"+d.homepage)}},"fixHomepageField"),fixLicenseField:e(function(d){const $=d.license||d.licence;if(!$)return this.warn("missingLicense");if(typeof $!="string"||$.length<1||$.trim()==="")return this.warn("invalidLicense");if(!i($).validForNewPackages)return this.warn("invalidLicense")},"fixLicenseField")};function h(d){if(d.charAt(0)!=="@")return!1;var $=d.slice(1).split("/");return $.length!==2?!1:$[0]&&$[1]&&$[0]===encodeURIComponent($[0])&&$[1]===encodeURIComponent($[1])}f(h,"isValidScopedPackageName"),e(h,"isValidScopedPackageName");function g(d){return!d.match(/[/@\s+%:]/)&&d===encodeURIComponent(d)}f(g,"isCorrectlyEncodedName"),e(g,"isCorrectlyEncodedName");function b(d,$,A){if(d.charAt(0)==="."||!(h(d)||g(d))||$&&!A&&d!==d.toLowerCase()||d.toLowerCase()==="node_modules"||d.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(d))}f(b,"ensureValidName"),e(b,"ensureValidName");function m(d,$){return d.author&&(d.author=$(d.author)),["maintainers","contributors"].forEach(function(A){Array.isArray(d[A])&&(d[A]=d[A].map($))}),d}f(m,"modifyPeople"),e(m,"modifyPeople");function v(d){if(typeof d=="string")return d;var $=d.name||"",A=d.url||d.web,P=A?" ("+A+")":"",x=d.email||d.mail,R=x?" <"+x+">":"";return $+R+P}f(v,"unParsePerson"),e(v,"unParsePerson");function E(d){if(typeof d!="string")return d;var $=d.match(/^([^(<]+)/),A=d.match(/\(([^()]+)\)/),P=d.match(/<([^<>]+)>/),x={};return $&&$[0].trim()&&(x.name=$[0].trim()),P&&(x.email=P[1]),A&&(x.url=A[1]),x}f(E,"parsePerson"),e(E,"parsePerson");function C(d){var $=d.optionalDependencies;if($){var A=d.dependencies||{};Object.keys($).forEach(function(P){A[P]=$[P]}),d.dependencies=A}}f(C,"addOptionalDepsToDeps"),e(C,"addOptionalDepsToDeps");function y(d,$,A){if(!d)return{};if(typeof d=="string"&&(d=d.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(d))return d;A("deprecatedArrayDependencies",$);var P={};return d.filter(function(x){return typeof x=="string"}).forEach(function(x){x=x.trim().split(/(:?[@\s><=])/);var R=x.shift(),M=x.join("");M=M.trim(),M=M.replace(/^@/,""),P[R]=M}),P}f(y,"depObjectify"),e(y,"depObjectify");function D(d,$){u.forEach(function(A){d[A]&&(d[A]=y(d[A],A,$))})}f(D,"objectifyDeps"),e(D,"objectifyDeps");function w(d,$){d&&Object.keys(d).forEach(function(A){l.bugs[A]&&($("typo",A,l.bugs[A],"bugs"),d[l.bugs[A]]=d[A],delete d[A])})}return f(w,"bugsTypos"),e(w,"bugsTypos"),jo}f(zC,"requireFixer");var lh="'repositories' (plural) Not supported. Please pick one as the 'repository' field",fh="No repository field.",ph="Probably broken git url: %s",hh="scripts must be an object",dh="script values must be string commands",mh="Invalid 'files' member",gh="Invalid filename in 'files' list: %s",yh="Invalid 'bundleDependencies' list. Must be array of package names",bh="Invalid bundleDependencies member: %s",vh="Non-dependency in bundleDependencies: %s",Dh="%s field must be an object",Eh="Invalid dependency: %s %s",$h="specifying %s as array is deprecated",Ah="modules field is deprecated",Ch="keywords should be an array of strings",wh="keywords should be an array of strings",Sh="%s is also the name of a node core module.",Fh="'description' field should be a string",Oh="No description",Ph="No README data",Nh="No license field.",xh="Bug string field must be url, email, or {email,url}",Lh="bugs.url field must be a string url. Deleted.",kh="bugs.email field must be a string email. Deleted.",Bh="Normalized value of bugs field is an empty object. Deleted.",Ih="homepage field must be a string url. Deleted.",Rh="license should be a valid SPDX license expression",_h="%s should probably be %s.";const XC={repositories:lh,missingRepository:fh,brokenGitUrl:ph,nonObjectScripts:hh,nonStringScript:dh,nonArrayFiles:mh,invalidFilename:gh,nonArrayBundleDependencies:yh,nonStringBundleDependency:bh,nonDependencyBundleDependency:vh,nonObjectDependencies:Dh,nonStringDependency:Eh,deprecatedArrayDependencies:$h,deprecatedModules:Ah,nonArrayKeywords:Ch,nonStringKeyword:wh,conflictingName:Sh,nonStringDescription:Fh,missingDescription:Oh,missingReadme:Ph,missingLicense:Nh,nonEmailUrlBugsString:xh,nonUrlBugsUrlField:Lh,nonEmailBugsEmailField:kh,emptyNormalizedBugs:Bh,nonUrlHomepage:Ih,invalidLicense:Rh,typo:_h},JC=Object.defineProperty({__proto__:null,brokenGitUrl:ph,conflictingName:Sh,default:XC,deprecatedArrayDependencies:$h,deprecatedModules:Ah,emptyNormalizedBugs:Bh,invalidFilename:gh,invalidLicense:Rh,missingDescription:Oh,missingLicense:Nh,missingReadme:Ph,missingRepository:fh,nonArrayBundleDependencies:yh,nonArrayFiles:mh,nonArrayKeywords:Ch,nonDependencyBundleDependency:vh,nonEmailBugsEmailField:kh,nonEmailUrlBugsString:xh,nonObjectDependencies:Dh,nonObjectScripts:hh,nonStringBundleDependency:bh,nonStringDependency:Eh,nonStringDescription:Fh,nonStringKeyword:wh,nonStringScript:dh,nonUrlBugsUrlField:Lh,nonUrlHomepage:Ih,repositories:lh,typo:_h},Symbol.toStringTag,{value:"Module"}),QC=Yi(JC);var Mo,jc;function ZC(){if(jc)return Mo;jc=1;var t=Object.defineProperty,e=f((i,o)=>t(i,"name",{value:o,configurable:!0}),"s"),r=rd,n=QC;Mo=f(function(){var i=Array.prototype.slice.call(arguments,0),o=i.shift();if(o==="typo")return s.apply(null,i);var a=n[o]?n[o]:o+": '%s'";return i.unshift(a),r.format.apply(null,i)},"make_warning");function s(i,o,a){return a&&(i=a+"['"+i+"']",o=a+"['"+o+"']"),r.format(n.typo,i,o)}return f(s,"makeTypoWarning"),e(s,"makeTypoWarning"),Mo}f(ZC,"requireMake_warning");var Go,Mc;function ew(){if(Mc)return Go;Mc=1;var t=Object.defineProperty,e=f((c,l)=>t(c,"name",{value:l,configurable:!0}),"n");Go=a;var r=zC();a.fixer=r;var n=ZC(),s=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],i=["dependencies","people","typos"],o=s.map(function(c){return u(c)+"Field"});o=o.concat(i);function a(c,l,p){l===!0&&(l=null,p=!0),p||(p=!1),(!l||c.private)&&(l=e(function(){},"warn")),c.scripts&&c.scripts.install==="node-gyp rebuild"&&!c.scripts.preinstall&&(c.gypfile=!0),r.warn=function(){l(n.apply(null,arguments))},o.forEach(function(h){r["fix"+u(h)](c,p)}),c._id=c.name+"@"+c.version}f(a,"normalize"),e(a,"normalize");function u(c){return c.charAt(0).toUpperCase()+c.slice(1)}return f(u,"ucFirst"),e(u,"ucFirst"),Go}f(ew,"requireNormalize");var tw=ew();const rw=Xp(tw);var nw=Object.defineProperty,sw=f((t,e)=>nw(t,"name",{value:e,configurable:!0}),"d$3"),iw=Object.defineProperty,ow=sw((t,e)=>iw(t,"name",{value:e,configurable:!0}),"f"),aw=Object.defineProperty,Hr=ow((t,e)=>aw(t,"name",{value:e,configurable:!0}),"c");const Th=Hr((t,e,r)=>{const n=se(t),s=se(e),i=s===n?".":ed(n,s);return r.some(o=>{const a=o.startsWith("./")?o.slice(2):o,u=i.startsWith("./")?i.slice(2):i;if(a==="."&&u===".")return!0;if(a.endsWith("/**")){const c=a.slice(0,-3);return u===c||u.startsWith(`${c}/`)}if(a.endsWith("/*")){const c=a.slice(0,-2);return c===""?u!=="."&&!u.includes("/"):u.startsWith(`${c}/`)||u===c}return u===a||u.startsWith(`${a}/`)})},"isPackageInWorkspace"),jh=Hr(async t=>{const e=await hl("pnpm-workspace.yaml",{cwd:se(t),type:"file"});if(!e)return;const r=await hs(e),n=Array.isArray(r.packages)?r.packages:[];if(!Th(e,t,n))return;const s={};return r.catalog&&typeof r.catalog=="object"&&(s.catalog=r.catalog),r.catalogs&&typeof r.catalogs=="object"&&(s.catalogs=r.catalogs),Object.keys(s).length>0?s:void 0},"readPnpmCatalogs"),Mh=Hr(t=>{const e=gl("pnpm-workspace.yaml",{cwd:se(t),type:"file"});if(!e)return;const r=ds(e),n=Array.isArray(r.packages)?r.packages:[];if(!Th(e,t,n))return;const s={};return r.catalog&&typeof r.catalog=="object"&&(s.catalog=r.catalog),r.catalogs&&typeof r.catalogs=="object"&&(s.catalogs=r.catalogs),Object.keys(s).length>0?s:void 0},"readPnpmCatalogsSync"),uw=Hr((t,e,r)=>{if(e==="catalog:")return r.catalog?.[t];if(e.startsWith("catalog:")){const n=e.slice(8);return r.catalogs?.[n]?.[t]}},"resolveCatalogReference"),cw=Hr((t,e)=>{for(const[r,n]of Object.entries(t)){if(typeof n!="string")continue;const s=uw(r,n,e);s&&(t[r]=s)}},"resolveDependenciesCatalogReferences"),zi=Hr((t,e)=>{const r=["dependencies","devDependencies","peerDependencies","optionalDependencies"];for(const n of r){if(!t[n]||typeof t[n]!="object")continue;const s=t[n];cw(s,e)}},"resolveCatalogReferences");var lw=Object.defineProperty,Oe=f((t,e)=>lw(t,"name",{value:e,configurable:!0}),"l"),fw=Object.defineProperty,De=Oe((t,e)=>fw(t,"name",{value:e,configurable:!0}),"f");const pw=X(import.meta.url),vn=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Nu=De(t=>{if(typeof vn<"u"&&vn.versions&&vn.versions.node){const[e,r]=vn.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return vn.getBuiltinModule(t)}return pw(t)},"__cjs_getBuiltinModule"),{existsSync:Gh}=Nu("node:fs"),{createInterface:hw}=Nu("node:readline"),{styleText:Me}=Nu("node:util");var dw=Object.defineProperty,Se=De((t,e)=>dw(t,"name",{value:e,configurable:!0}),"f");const dt=Se(t=>{const e=typeof t;return t!==null&&(e==="object"||e==="function")},"isObject"),mw=Se(t=>{if(!dt(t))return!1;for(const e in t)if(Object.hasOwn(t,e))return!1;return!0},"isEmptyObject"),Uh=new Set(["__proto__","prototype","constructor"]),Hh=1e6,gw=Se(t=>t>="0"&&t<="9","isDigit");function lr(t){if(t==="0")return!0;if(/^[1-9]\d*$/.test(t)){const e=Number.parseInt(t,10);return e<=Number.MAX_SAFE_INTEGER&&e<=Hh}return!1}f(lr,"w");Oe(lr,"b");De(lr,"p$1");Se(lr,"shouldCoerceToNumber");function Er(t,e){return Uh.has(t)?!1:(t&&lr(t)?e.push(Number.parseInt(t,10)):e.push(t),!0)}f(Er,"P");Oe(Er,"P");De(Er,"y");Se(Er,"processSegment");function Xi(t){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);const e=[];let r="",n="start",s=!1,i=0;for(const o of t){if(i++,s){r+=o,s=!1;continue}if(o==="\\"){if(n==="index")throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd")throw new Error(`Invalid character '${o}' after an index at position ${i}`);s=!0,n=n==="start"?"property":n;continue}switch(o){case".":{if(n==="index")throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd"){n="property";break}if(!Er(r,e))return[];r="",n="property";break}case"[":{if(n==="index")throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd"){n="index";break}if(n==="property"||n==="start"){if((r||n==="property")&&!Er(r,e))return[];r=""}n="index";break}case"]":{if(n==="index"){if(r==="")r=(e.pop()||"")+"[]",n="property";else{const a=Number.parseInt(r,10);!Number.isNaN(a)&&Number.isFinite(a)&&a>=0&&a<=Number.MAX_SAFE_INTEGER&&a<=Hh&&r===String(a)?e.push(a):e.push(r),r="",n="indexEnd"}break}if(n==="indexEnd")throw new Error(`Invalid character '${o}' after an index at position ${i}`);r+=o;break}default:{if(n==="index"&&!gw(o))throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd")throw new Error(`Invalid character '${o}' after an index at position ${i}`);n==="start"&&(n="property"),r+=o}}}switch(s&&(r+="\\"),n){case"property":{if(!Er(r,e))return[];break}case"index":throw new Error("Index was not closed");case"start":{e.push("");break}}return e}f(Xi,"N");Oe(Xi,"B");De(Xi,"parsePath");Se(Xi,"parsePath");function fr(t){if(typeof t=="string")return Xi(t);if(Array.isArray(t)){const e=[];for(const[r,n]of t.entries()){if(typeof n!="string"&&typeof n!="number")throw new TypeError(`Expected a string or number for path segment at index ${r}, got ${typeof n}`);if(typeof n=="number"&&!Number.isFinite(n))throw new TypeError(`Path segment at index ${r} must be a finite number, got ${n}`);if(Uh.has(n))return[];typeof n=="string"&&lr(n)?e.push(Number.parseInt(n,10)):e.push(n)}return e}return[]}f(fr,"b$2");Oe(fr,"k");De(fr,"d");Se(fr,"normalizePath");function lt(t,e,r){if(!dt(t)||typeof e!="string"&&!Array.isArray(e))return r===void 0?t:r;const n=fr(e);if(n.length===0)return r;for(let s=0;s<n.length;s++){const i=n[s];if(t=t[i],t==null){if(s!==n.length-1)return r;break}}return t===void 0?r:t}f(lt,"d$2");Oe(lt,"h");De(lt,"getProperty");Se(lt,"getProperty");function Ji(t,e,r){if(!dt(t)||typeof e!="string"&&!Array.isArray(e))return t;const n=t,s=fr(e);if(s.length===0)return t;for(let i=0;i<s.length;i++){const o=s[i];if(i===s.length-1)t[o]=r;else if(!dt(t[o])){const a=typeof s[i+1]=="number";t[o]=a?[]:{}}t=t[o]}return n}f(Ji,"T");Oe(Ji,"M");De(Ji,"setProperty");Se(Ji,"setProperty");function xu(t,e){if(!dt(t)||typeof e!="string"&&!Array.isArray(e))return!1;const r=fr(e);if(r.length===0)return!1;for(let n=0;n<r.length;n++){const s=r[n];if(n===r.length-1)return Object.hasOwn(t,s)?(delete t[s],!0):!1;if(t=t[s],!dt(t))return!1}}f(xu,"q");Oe(xu,"ue");De(xu,"deleteProperty");Se(xu,"deleteProperty");function Bt(t,e){if(!dt(t)||typeof e!="string"&&!Array.isArray(e))return!1;const r=fr(e);if(r.length===0)return!1;for(const n of r){if(!dt(t)||!(n in t))return!1;t=t[n]}return!0}f(Bt,"m$1");Oe(Bt,"y");De(Bt,"hasProperty");Se(Bt,"hasProperty");function Kn(t){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);return t.replaceAll(/[\\.[]/g,String.raw`\$&`)}f(Kn,"E$2");Oe(Kn,"x");De(Kn,"escapePath");Se(Kn,"escapePath");function Qi(t){const e=Object.entries(t);return Array.isArray(t)?e.map(([r,n])=>[lr(r)?Number.parseInt(r,10):r,n]):e}f(Qi,"D");Oe(Qi,"R");De(Qi,"m$2");Se(Qi,"normalizeEntries");function Zi(t,e={}){if(!Array.isArray(t))throw new TypeError(`Expected an array, got ${typeof t}`);const{preferDotForIndices:r=!1}=e,n=[];for(const[s,i]of t.entries()){if(typeof i!="string"&&typeof i!="number")throw new TypeError(`Expected a string or number for path segment at index ${s}, got ${typeof i}`);if(typeof i=="number")if(!Number.isInteger(i)||i<0){const o=Kn(String(i));n.push(s===0?o:`.${o}`)}else r&&s>0?n.push(`.${i}`):n.push(`[${i}]`);else if(typeof i=="string")if(i==="")s===0||n.push(".");else if(lr(i)){const o=Number.parseInt(i,10);r&&s>0?n.push(`.${o}`):n.push(`[${o}]`)}else{const o=Kn(i);n.push(s===0?o:`.${o}`)}}return n.join("")}f(Zi,"F");Oe(Zi,"Y");De(Zi,"stringifyPath");Se(Zi,"stringifyPath");function*ms(t,e=[],r=new Set){if(!dt(t)||mw(t)){e.length>0&&(yield Zi(e));return}if(!r.has(t)){r.add(t);for(const[n,s]of Qi(t))e.push(n),yield*ms(s,e,r),e.pop();r.delete(t)}}f(ms,"j$1");Oe(ms,"S");De(ms,"x");Se(ms,"deepKeysIterator");function Lu(t){return[...ms(t)]}f(Lu,"G");Oe(Lu,"ge");De(Lu,"deepKeys");Se(Lu,"deepKeys");function ku(t){const e={};if(!dt(t))return e;for(const[r,n]of Object.entries(t))Ji(e,r,n);return e}f(ku,"K");Oe(ku,"de");De(ku,"unflatten");Se(ku,"unflatten");var yw=Object.defineProperty,Uo=De((t,e)=>yw(t,"name",{value:e,configurable:!0}),"i");const bw=Uo(async t=>{const{default:e=!1,message:r,transformer:n}=t,s=Uo(o=>{const a=Me(["cyan","bold"],"?"),u=Me(["bold"],o),c=e?`${Me(["greenBright"],"Y")}${Me(["gray"],"/n")}`:`y/${Me(["yellowBright"],"N")}`;return`${a} ${u} ${Me(["gray"],`(${c})`)}`},"formatMessage"),i=Uo(o=>n?n(o):o?Me(["greenBright"],"Yes"):Me(["yellowBright"],"No"),"formatAnswer");return new Promise(o=>{const a=hw({input:process.stdin,output:process.stdout}),u=s(r);a.question(u,c=>{a.close();const l=c.trim().toLowerCase();if(l===""){o(e);return}if(l==="y"||l==="yes"){console.log(`${Me(["greenBright"],"✓")} ${i(!0)}`),o(!0);return}if(l==="n"||l==="no"){console.log(`${Me(["yellowBright"],"✗")} ${i(!1)}`),o(!1);return}console.log(`${Me(["gray"],"→")} ${i(e)}`),o(e)}),a.on("SIGINT",()=>{a.close(),console.log(`
180
+ ${Me(["gray"],"→")} ${i(e)}`),o(e)})})},"confirm"),vw=typeof process.stdout<"u"&&!process.versions.deno&&!globalThis.window;var Dw=Object.defineProperty,Ae=De((t,e)=>Dw(t,"name",{value:e,configurable:!0}),"l");const Kh=/, ([^,]*)$/,Vs=new Map,qh=new Map;class Ew extends Error{static{f(this,"ke")}static{Oe(this,"be")}static{De(this,"M")}static{Ae(this,"PackageJsonValidationError")}constructor(e){super(`The following warnings were encountered while normalizing package data:
181
+ - ${e.join(`
182
+ - `)}`),this.name="PackageJsonValidationError"}}const eo=Ae((t,e,r=[])=>{const n=[];if(rw(t,s=>{n.push(s)},e),e&&n.length>0){const s=n.filter(i=>!r.some(o=>o instanceof RegExp?o.test(i):o===i));if(s.length>0)throw new Ew(s)}return t},"normalizeInput"),$w=Ae(async t=>await hs(t),"parseYamlFile"),Aw=Ae(t=>ds(t),"parseYamlFileSync"),Cw=Ae(async t=>{const e=await Fa(t);return zp.parse(e)},"parseJson5File"),ww=Ae(t=>{const e=Oa(t);return zp.parse(e)},"parseJson5FileSync"),Wh=Ae(async(t,e)=>e?.yaml!==!1&&(t.endsWith(".yaml")||t.endsWith(".yml"))?$w(t):e?.json5!==!1&&t.endsWith(".json5")?Cw(t):Ci(t),"parsePackageFile"),Vh=Ae((t,e)=>e?.yaml!==!1&&(t.endsWith(".yaml")||t.endsWith(".yml"))?Aw(t):e?.json5!==!1&&t.endsWith(".json5")?ww(t):wi(t),"parsePackageFileSync"),Sw=Ae(async(t,e={})=>{const r={type:"file"};t&&(r.cwd=t);const n=["package.json"];e.yaml!==!1&&n.push("package.yaml","package.yml"),e.json5!==!1&&n.push("package.json5");let s;for(const u of n)if(s=await hl(u,r),s)break;if(!s)throw new Ef(`No such file or directory, for ${n.join(", ").replace(Kh," or $1")} found.`);const i=e.cache&&typeof e.cache!="boolean"?e.cache:qh;if(e.cache&&i.has(s))return i.get(s);const o=await Wh(s,e);if(e.resolveCatalogs){const u=await jh(s);u&&zi(o,u)}eo(o,e.strict??!1,e.ignoreWarnings);const a={packageJson:o,path:s};return e.cache&&i.set(s,a),a},"findPackageJson");Ae((t,e={})=>{const r={type:"file"};t&&(r.cwd=t);const n=["package.json"];e.yaml!==!1&&n.push("package.yaml","package.yml"),e.json5!==!1&&n.push("package.json5");let s;for(const u of n)if(s=gl(u,r),s)break;if(!s)throw new Ef(`No such file or directory, for ${n.join(", ").replace(Kh," or $1")} found.`);const i=e.cache&&typeof e.cache!="boolean"?e.cache:qh;if(e.cache&&i.has(s))return i.get(s);const o=Vh(s,e);if(e.resolveCatalogs){const u=Mh(s);u&&zi(o,u)}eo(o,e.strict??!1,e.ignoreWarnings);const a={packageJson:o,path:s};return e.cache&&i.set(s,a),a},"findPackageJsonSync");Ae(async(t,e={})=>{const{cwd:r,...n}=e,s=z(r??process.cwd());await XE(Pr(s,"package.json"),t,n)},"writePackageJson");Ae((t,e={})=>{const{cwd:r,...n}=e,s=z(r??process.cwd());i$(Pr(s,"package.json"),t,n)},"writePackageJsonSync");const PS=Ae((t,e)=>{const r=typeof t=="object"&&!Array.isArray(t);if(!r&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let n,s=!1,i;if(r)n=structuredClone(t);else if(Gh(t)){i=t;const a=e?.cache&&typeof e.cache!="boolean"?e.cache:Vs;if(e?.cache&&a.has(i))return a.get(i);n=Vh(i,e),s=!0}else n=ir(t);if(e?.resolveCatalogs)if(s){const a=Mh(t);a&&zi(n,a)}else throw new Error("The 'resolveCatalogs' option can only be used on a file path.");eo(n,e?.strict??!1,e?.ignoreWarnings);const o=n;return s&&e?.cache&&(typeof e.cache=="boolean"?Vs:e.cache).set(i,o),o},"parsePackageJsonSync"),NS=Ae(async(t,e)=>{const r=typeof t=="object"&&!Array.isArray(t);if(!r&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let n,s=!1,i;if(r)n=structuredClone(t);else if(Gh(t)){i=t;const a=e?.cache&&typeof e.cache!="boolean"?e.cache:Vs;if(e?.cache&&a.has(i))return a.get(i);n=await Wh(i,e),s=!0}else n=ir(t);if(e?.resolveCatalogs)if(s){const a=await jh(t);a&&zi(n,a)}else throw new Error("The 'resolveCatalogs' option can only be used on a file path.");eo(n,e?.strict??!1,e?.ignoreWarnings);const o=n;return s&&e?.cache&&(typeof e.cache=="boolean"?Vs:e.cache).set(i,o),o},"parsePackageJson");Ae((t,e,r)=>lt(t,e,r),"getPackageJsonProperty");Ae((t,e)=>Bt(t,e),"hasPackageJsonProperty");Ae((t,e,r)=>{const n=lt(t,"dependencies",{}),s=lt(t,"devDependencies",{}),i=lt(t,"peerDependencies",{}),o={...n,...s,...r?.peerDeps===!1?{}:i};for(const a of e)if(Bt(o,a))return!0;return!1},"hasPackageJsonAnyDependency");Ae(async(t,e,r="dependencies",n={})=>{const s=lt(t,"dependencies",{}),i=lt(t,"devDependencies",{}),o=lt(t,"peerDependencies",{}),a=[],u={deps:!0,devDeps:!0,peerDeps:!1,...n};for(const c of e)u.deps&&Bt(s,c)||u.devDeps&&Bt(i,c)||u.peerDeps&&Bt(o,c)||a.push(c);if(a.length!==0){if(process.env.CI||vw&&!process.stdout.isTTY){const c=`Skipping package installation for [${e.join(", ")}] because the process is not interactive.`;if(n.throwOnWarn)throw new Error(c);n.logger?.warn?n.logger.warn(c):console.warn(c);return}if(typeof u.confirm?.message=="function"&&(u.confirm.message=u.confirm.message(a)),u.confirm?.message===void 0){const c=`${a.length===1?"Package is":"Packages are"} required for this config: ${a.join(", ")}. Do you want to install them?`;u.confirm===void 0?u.confirm={message:c}:u.confirm.message=c}await bw(u.confirm)&&await Zh(a,{...u.installPackage,cwd:u.cwd?z(u.cwd):void 0,dev:r==="devDependencies"})}},"ensurePackages");var Fw=Object.defineProperty,Ow=f((t,e)=>Fw(t,"name",{value:e,configurable:!0}),"b$1"),Pw=Object.defineProperty,Nw=Ow((t,e)=>Pw(t,"name",{value:e,configurable:!0}),"h"),xw=Object.defineProperty,Ho=Nw((t,e)=>xw(t,"name",{value:e,configurable:!0}),"a");let Gc;const Lw=new Map,xS=Ho((t,e,r,n)=>{const{ignoreSideEffectsForRoot:s,...i}=t;Gc??=new nd({...i,roots:[...i.roots??[],e],tsconfig:n?{configFile:n,references:"auto"}:void 0});const o=Gc;return{name:"oxc-resolve",resolveId:{async handler(a,u,c){const{isEntry:l}=c,p=l||!u?se(a):se(u),{error:h,path:g}=await o.async(p,a);if(h){r.debug(h,{context:[{basedir:e,extensions:i.extensions,id:g}]});return}let b=Ho(v=>!0,"hasModuleSideEffects");try{const{packageJson:v,path:E}=await Sw(se(g),{cache:Lw}),C=se(E);if(!s||e!==C){const y=v.sideEffects;if(typeof y=="boolean")b=Ho(()=>y,"hasModuleSideEffects");else if(Array.isArray(y)){const D=y.map(w=>w.includes("/")?w:`**/${w}`);b=Uc(D,void 0,{resolve:C})}}}catch(v){const E=v instanceof Error?v.message:String(v);console.debug(E,{context:[{basedir:p,caller:"Resolver",error:v,extensions:i.extensions,id:g}]})}if(a.includes("?"))return{id:g,moduleSideEffects:b(g)};const m=await this.resolve(g,u,{skipSelf:!0,...c});if(m)return m.external?!1:m.id!==g?m:{id:g,meta:m.meta,moduleSideEffects:b(g)}},order:"post"}}},"oxcResolvePlugin");var kw=Object.defineProperty,Kr=f((t,e)=>kw(t,"name",{value:e,configurable:!0}),"t$1");const L=X(import.meta.url);new URL(".",import.meta.url).pathname;const{readFileSync:Bw}=L("node:fs");let $t=null;const I=[],Dn=Kr(()=>{let t=!1;return process.platform==="linux"&&(t=Rw(),t===null&&(t=_w()),t===null&&(t=Tw())),t},"isMusl"),Iw=Kr(t=>t.includes("libc.musl-")||t.includes("ld-musl-"),"isFileMusl"),Rw=Kr(()=>{try{return Bw("/usr/bin/ldd","utf-8").includes("musl")}catch{return null}},"isMuslFromFilesystem"),_w=Kr(()=>{let t=null;return typeof process.report?.getReport=="function"&&(process.report.excludeNetwork=!0,t=process.report.getReport()),t?t.header&&t.header.glibcVersionRuntime?!1:!!(Array.isArray(t.sharedObjects)&&t.sharedObjects.some(Iw)):null},"isMuslFromReport"),Tw=Kr(()=>{try{return L("child_process").execSync("ldd --version",{encoding:"utf8"}).includes("musl")}catch{return!1}},"isMuslFromChildProcess");function Yh(){if(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)try{return L(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)}catch(t){I.push(t)}else if(process.platform==="android")if(process.arch==="arm64"){try{return L("./transform.android-arm64.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-android-arm64"),e=L("@oxc-transform/binding-android-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="arm"){try{return L("./transform.android-arm-eabi.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-android-arm-eabi"),e=L("@oxc-transform/binding-android-arm-eabi/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else I.push(new Error(`Unsupported architecture on Android ${process.arch}`));else if(process.platform==="win32")if(process.arch==="x64")if(process.config?.variables?.shlib_suffix==="dll.a"||process.config?.variables?.node_target_type==="shared_library"){try{return L("./transform.win32-x64-gnu.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-win32-x64-gnu"),e=L("@oxc-transform/binding-win32-x64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else{try{return L("./transform.win32-x64-msvc.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-win32-x64-msvc"),e=L("@oxc-transform/binding-win32-x64-msvc/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="ia32"){try{return L("./transform.win32-ia32-msvc.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-win32-ia32-msvc"),e=L("@oxc-transform/binding-win32-ia32-msvc/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.win32-arm64-msvc.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-win32-arm64-msvc"),e=L("@oxc-transform/binding-win32-arm64-msvc/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else I.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));else if(process.platform==="darwin"){try{return L("./transform.darwin-universal.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-darwin-universal"),e=L("@oxc-transform/binding-darwin-universal/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}if(process.arch==="x64"){try{return L("./transform.darwin-x64.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-darwin-x64"),e=L("@oxc-transform/binding-darwin-x64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.darwin-arm64.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-darwin-arm64"),e=L("@oxc-transform/binding-darwin-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else I.push(new Error(`Unsupported architecture on macOS: ${process.arch}`))}else if(process.platform==="freebsd")if(process.arch==="x64"){try{return L("./transform.freebsd-x64.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-freebsd-x64"),e=L("@oxc-transform/binding-freebsd-x64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.freebsd-arm64.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-freebsd-arm64"),e=L("@oxc-transform/binding-freebsd-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else I.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));else if(process.platform==="linux")if(process.arch==="x64")if(Dn()){try{return L("./transform.linux-x64-musl.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-x64-musl"),e=L("@oxc-transform/binding-linux-x64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else{try{return L("./transform.linux-x64-gnu.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-x64-gnu"),e=L("@oxc-transform/binding-linux-x64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="arm64")if(Dn()){try{return L("./transform.linux-arm64-musl.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-arm64-musl"),e=L("@oxc-transform/binding-linux-arm64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else{try{return L("./transform.linux-arm64-gnu.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-arm64-gnu"),e=L("@oxc-transform/binding-linux-arm64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="arm")if(Dn()){try{return L("./transform.linux-arm-musleabihf.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-arm-musleabihf"),e=L("@oxc-transform/binding-linux-arm-musleabihf/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else{try{return L("./transform.linux-arm-gnueabihf.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-arm-gnueabihf"),e=L("@oxc-transform/binding-linux-arm-gnueabihf/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="loong64")if(Dn()){try{return L("./transform.linux-loong64-musl.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-loong64-musl"),e=L("@oxc-transform/binding-linux-loong64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else{try{return L("./transform.linux-loong64-gnu.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-loong64-gnu"),e=L("@oxc-transform/binding-linux-loong64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="riscv64")if(Dn()){try{return L("./transform.linux-riscv64-musl.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-riscv64-musl"),e=L("@oxc-transform/binding-linux-riscv64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else{try{return L("./transform.linux-riscv64-gnu.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-riscv64-gnu"),e=L("@oxc-transform/binding-linux-riscv64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="ppc64"){try{return L("./transform.linux-ppc64-gnu.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-ppc64-gnu"),e=L("@oxc-transform/binding-linux-ppc64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="s390x"){try{return L("./transform.linux-s390x-gnu.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-linux-s390x-gnu"),e=L("@oxc-transform/binding-linux-s390x-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else I.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));else if(process.platform==="openharmony")if(process.arch==="arm64"){try{return L("./transform.openharmony-arm64.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-openharmony-arm64"),e=L("@oxc-transform/binding-openharmony-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="x64"){try{return L("./transform.openharmony-x64.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-openharmony-x64"),e=L("@oxc-transform/binding-openharmony-x64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else if(process.arch==="arm"){try{return L("./transform.openharmony-arm.node")}catch(t){I.push(t)}try{const t=L("@oxc-transform/binding-openharmony-arm"),e=L("@oxc-transform/binding-openharmony-arm/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){I.push(t)}}else I.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));else I.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))}f(Yh,"m");Kr(Yh,"requireNative");$t=Yh();if(!$t||process.env.NAPI_RS_FORCE_WASI){let t=null,e=null;try{t=L("./transform.wasi.cjs"),$t=t}catch(r){process.env.NAPI_RS_FORCE_WASI&&(e=r)}if(!$t||process.env.NAPI_RS_FORCE_WASI)try{t=L("@oxc-transform/binding-wasm32-wasi"),$t=t}catch(r){process.env.NAPI_RS_FORCE_WASI&&(e?e.cause=r:e=r,I.push(r))}if(process.env.NAPI_RS_FORCE_WASI==="error"&&!t){const r=new Error("WASI binding not found and NAPI_RS_FORCE_WASI is set to error");throw r.cause=e,r}}if(!$t&&globalThis.process?.versions?.webcontainer)try{$t=L("./webcontainer-fallback.cjs")}catch(t){I.push(t)}if(!$t)throw I.length>0?new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.",{cause:I.reduce((t,e)=>(e.cause=t,e))}):new Error("Failed to load native binding");const{transform:jw}=$t;var Mw=Object.defineProperty,Gw=f((t,e)=>Mw(t,"name",{value:e,configurable:!0}),"t"),Uw=Object.defineProperty,Hw=Gw((t,e)=>Uw(t,"name",{value:e,configurable:!0}),"n"),Kw=Object.defineProperty,qw=Hw((t,e)=>Kw(t,"name",{value:e,configurable:!0}),"s");const Ww=qw(({exclude:t,include:e,...r})=>{const n=Uc(e,t??sd);return{name:"packem:oxc-transform",async transform(s,i){if(!n(i))return;const o=await jw(i,s,{...r,sourcemap:!0}),{code:a,errors:u,map:c}=o;if(u.length>0){const l=u.map(p=>typeof p=="string"?p:p.message??JSON.stringify(p));return this.error({message:[`
183
+ transform errors:`,...l].join(`
184
+
185
+ `),pluginCode:"ERR_TRANSFORM"})}return{code:a,map:c}}}},"oxcTransformPlugin");Ww.NAME="oxc";export{Oa as $,wu as A,zp as B,Hn as C,xS as I,NS as N,iS as a,oS as b,Fa as c,Zp as d,$C as e,Qp as f,AC as g,Jp as h,ot as i,CC as j,SC as k,rw as l,FC as m,lf as n,it as o,Sw as p,PS as q,wC as r,Ww as s,Xp as t,ca as w};