@prisma/dev 0.0.0-dev.202512121158 → 0.0.0-dev.202512121230

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,86 @@
1
- "use strict";var Mt=Object.create;var W=Object.defineProperty;var jt=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Nt=Object.getPrototypeOf,qt=Object.prototype.hasOwnProperty;var D=(t,e)=>()=>(t&&(e=t(t=0)),e);var ae=(t,e)=>{for(var r in e)W(t,r,{get:e[r],enumerable:!0})},Ae=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ut(e))!qt.call(t,n)&&n!==r&&W(t,n,{get:()=>e[n],enumerable:!(o=jt(e,n))||o.enumerable});return t};var w=(t,e,r)=>(r=t!=null?Mt(Nt(t)):{},Ae(e||!t||!t.__esModule?W(r,"default",{value:t,enumerable:!0}):r,t)),Ft=t=>Ae(W({},"__esModule",{value:!0}),t);var p=D(()=>{"use strict"});function _e(t){return Buffer.from(JSON.stringify(Object.fromEntries(Object.entries(t).sort(([[e],[r]])=>e.localeCompare(r)))),"utf8").toString("base64url")}function Gt(t){let e=Buffer.from(t,"base64url").toString("utf8"),{issues:r,output:o,success:n}=(0,f.safeParse)(Vt,e,{abortEarly:!0});return n?[null,o]:[r]}var f,$e,Vt,k,ie=D(()=>{"use strict";p();f=require("valibot"),$e=/^(postgres|postgresql):\/\//,Vt=(0,f.pipe)((0,f.string)(),(0,f.parseJson)(),(0,f.object)({databaseUrl:(0,f.pipe)((0,f.string)(),(0,f.url)(),(0,f.regex)($e)),name:(0,f.optional)((0,f.pipe)((0,f.string)(),(0,f.minLength)(1))),shadowDatabaseUrl:(0,f.pipe)((0,f.string)(),(0,f.url)(),(0,f.regex)($e))}));k=async(t,e)=>{let{authorization:r}=t,{HTTPException:o}=await import("hono/http-exception");if(!r)throw new o(401,{message:"Missing API Key"});let[n,s="",a]=r.split(" ");if(n!=="Bearer"||a)throw new o(401,{message:"Invalid API Key"});let[i,c]=Gt(s);if(i)throw new o(401,{message:"Invalid API Key",cause:i.join(", ")});let{databaseUrl:u,name:l,shadowDatabaseUrl:g}=c,{name:b}=e.get("serverState");if(!l)throw new o(401,{message:`Wrong API Key; The Prisma Dev server running at port ${e.get("port")} requires an API Key from a newer version of \`prisma dev\`. Check the "${b}" server's output for the updated \`DATABASE_URL\` value.`});if(l!==b)throw new o(401,{message:`Wrong API Key; The Prisma Dev server running at port ${e.get("port")} is named "${b}", but the API Key is for "${l}"`});let{hostname:R,port:x}=new URL(u),{port:q}=e.get("db"),{hostname:Bt,port:Ht}=new URL(g),Lt=e.get("shadowDBPort");if(R!=="localhost"||Number(x)!==q||Bt!=="localhost"||Number(Ht)!==Lt)throw new o(401,{message:"Wrong API Key; Check your Prisma schema's `provider.url` value (probably defined in `.env`'s `DATABASE_URL` environment variable) is aligned with `prisma dev`'s output"});return{decodedAPIKey:c}}});function de(t,{suffix:e="nodejs"}={}){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);return e&&(t+=`-${e}`),z.default.platform==="darwin"?Kt(t):z.default.platform==="win32"?Qt(t):Jt(t)}var h,ce,z,O,ue,B,Kt,Qt,Jt,ke=D(()=>{"use strict";p();h=w(require("path"),1),ce=w(require("os"),1),z=w(require("process"),1),O=ce.default.homedir(),ue=ce.default.tmpdir(),{env:B}=z.default,Kt=t=>{let e=h.default.join(O,"Library");return{data:h.default.join(e,"Application Support",t),config:h.default.join(e,"Preferences",t),cache:h.default.join(e,"Caches",t),log:h.default.join(e,"Logs",t),temp:h.default.join(ue,t)}},Qt=t=>{let e=B.APPDATA||h.default.join(O,"AppData","Roaming"),r=B.LOCALAPPDATA||h.default.join(O,"AppData","Local");return{data:h.default.join(r,t,"Data"),config:h.default.join(e,t,"Config"),cache:h.default.join(r,t,"Cache"),log:h.default.join(r,t,"Log"),temp:h.default.join(ue,t)}},Jt=t=>{let e=h.default.basename(O);return{data:h.default.join(B.XDG_DATA_HOME||h.default.join(O,".local","share"),t),config:h.default.join(B.XDG_CONFIG_HOME||h.default.join(O,".config"),t),cache:h.default.join(B.XDG_CACHE_HOME||h.default.join(O,".cache"),t),log:h.default.join(B.XDG_STATE_HOME||h.default.join(O,".local","state"),t),temp:h.default.join(ue,e,t)}}});function Le(t,e){return`${He.cache}/engine/${t}/${e}`}function F(t){return`${He.data}/${t}`}async function Me(t){try{return await(0,v.access)(t,v.constants.F_OK),!0}catch(e){if(le(e))return!1;throw e}}async function je(t,e){let r=await Wt(t);await(0,v.writeFile)(e,r),await(0,v.chmod)(e,"755")}async function Ue(t,e){await t.stream().pipeTo(X.WriteStream.toWeb((0,X.createWriteStream)(e,{encoding:"utf-8"})))}function le(t){return t!=null&&typeof t=="object"&&"code"in t&&t.code==="ENOENT"}async function Ne(t){try{return await(0,v.readFile)(t,{encoding:"utf-8"})}catch(e){if(le(e))return null;throw e}}async function qe(t){await(0,v.mkdir)(t,{recursive:!0})}async function Fe(t,e){try{return(await(0,v.readdir)(t,{withFileTypes:!0})).reduce((o,n)=>(n.isDirectory()&&!n.name.startsWith(".")&&(!e||(0,Be.default)(e,n.name))&&o.push(n.name),o),[])}catch(r){if(le(r))return[];throw r}}var X,v,Ie,Ce,Be,He,Wt,Y=D(()=>{"use strict";p();X=require("fs"),v=require("fs/promises"),Ie=require("util"),Ce=require("zlib");ke();Be=w(require("zeptomatch"),1),He=de("prisma-dev"),Wt=(0,Ie.promisify)(Ce.unzip)});function te(t){let e,r,o=new Promise((a,i)=>{e=a,r=i}),n=a=>{n=s=null,r(a),t?.onRejected?.(a),t?.onFulfilled?.()},s=a=>{s=n=null,e(a),t?.onResolved?.(a),t?.onFulfilled?.()};return{isFulfilled:()=>s===n,promise:o,reject:a=>n?.(a),resolve:a=>s?.(a)}}var he=D(()=>{"use strict";p()});function re(t,e){return console.error(t),t instanceof V?e.json({EngineNotStarted:{reason:{EngineStartupError:{logs:[],msg:t.message}}}},500):t instanceof j?e.text(t.responseBody,t.statusCode):e.body(null,500)}var Ye,Ze,et,tt,rt,ot,nr,sr,Xe,U,V,j,ge=D(()=>{"use strict";p();Ye=require("child_process"),Ze=require("events"),et=require("fs/promises"),tt=require("path"),rt=require("timers/promises");he();ot=require("std-env");Y();({PRISMA_DEV_FORCE_ENGINE_BINARY_DOWNLOAD:nr,PRISMA_DEV_FORCE_ENGINE_BINARY_PATH:sr,PRISMA_DEV_FORCE_NETWORK_DELAY_MS:Xe}=ot.process.env),U=class t{static#r=new Map;#e;#t;constructor(e){this.#e=e,this.#t=null}static async get(e){let{debug:r}=e,o=`${e.schemaHash}:${e.clientVersion}`;try{let n=t.#r.get(o);if(n)return n;let s=new t(e);return t.#r.set(o,s),r&&console.debug("[Query Engine] starting...",e),await s.start(),r&&console.debug("[Query Engine] started!"),s}finally{t.stopAll(o)}}static async stopAll(e){let o=(await Promise.allSettled(Array.from(t.#r.entries()).filter(([n])=>n!==e).map(async([n,s])=>{try{await s.stop()}finally{t.#r.delete(n)}}))).filter(n=>n.status==="rejected").map(n=>n.reason);if(o.length>0)throw new AggregateError(o,"Failed to stop engines")}async commitTransaction(e,r){return await this.#i(e,r,"commit")}async request(e,r){let{url:o}=await this.start(),n=this.#o(r),s=await fetch(o,{body:typeof e=="string"?e:JSON.stringify(e),headers:{...n,"Content-Type":"application/json"},method:"POST"});if(!s.ok)throw await j.fromResponse(s);return await s.text()}async rollbackTransaction(e,r){return await this.#i(e,r,"rollback")}async startTransaction(e,r){let{url:o}=await this.start(),n=this.#o(r),s=await fetch(`${o}/transaction/start`,{body:JSON.stringify(e),headers:{...n,"Content-Type":"application/json"},method:"POST"});if(!s.ok)throw await j.fromResponse(s);return await s.json()}async start(){if(this.#t!=null)return await this.#t;let{promise:e,reject:r,resolve:o}=te();this.#t=e;let n=sr||await this.#s();this.#e.debug&&console.debug("[Query Engine] spinning up at path...",n);let{proxySignals:s}=await import("foreground-child/proxy-signals"),a=(0,Ye.spawn)(n,["--enable-raw-queries","--enable-telemetry-in-response","--port","0"],{env:{LOG_QUERIES:"y",PRISMA_DML:this.#e.base64Schema,QE_LOG_LEVEL:"TRACE",RUST_BACKTRACE:"1",RUST_LOG:"info"},stdio:["ignore","pipe","pipe"],windowsHide:!0});s(a),a.stderr.setEncoding("utf8"),a.stdout.setEncoding("utf8");let i=l=>{let g=l.split(`
2
- `).find(q=>q.includes("Started query engine http server"));if(!g)return;a.stdout.removeListener("data",i);let{fields:b}=JSON.parse(g);if(b==null)return r(new Error(`Unexpected data during initialization, "fields" are missing: ${l}`));let{ip:R,port:x}=b;if(R==null||x==null)return r(new Error(`This version of query-engine is not compatible with minippg, "ip" and "port" are missing in the startup log entry.
3
- Received data: ${l}`));o({childProcess:a,url:`http://${R}:${x}`})},c=l=>{this.#t=null,r(new V(String(l))),a.removeListener("exit",u),a.kill()};a.once("error",c);let u=(l,g)=>{this.#t=null,r(new V(`Query Engine exited with code ${l} and signal ${g}`))};return a.once("exit",u),a.stdout.on("data",i),this.#e.debug&&(a.stderr.on("data",console.error.bind(console,"[Query Engine]")),a.stdout.on("data",console.debug.bind(console,"[Query Engine]"))),await this.#t}async stop(){if(this.#t==null)return;let{childProcess:e}=await this.#t;e.exitCode==null&&e.signalCode==null&&(this.#t=null,e.kill(),await(0,Ze.once)(e,"exit"))}async#s(){this.#e.debug&&console.debug("[Query Engine] getting engine commit hash...");let e=await this.#a();this.#e.debug&&console.debug("[Query Engine] got engine commit hash",e);let r=Le(this.#e.clientVersion,e);this.#e.debug&&console.debug("[Query Engine] cache directory path",r),await(0,et.mkdir)(r,{recursive:!0});let{binaryTarget:o}=this.#e.platform,n=o==="windows"?".exe":"",s=(0,tt.join)(r,`query-engine-${o}${n}`);return this.#e.debug&&console.debug("[Query Engine] binary path",s),(nr==="1"||await Me(s)===!1)&&await this.#n({commitHash:e,extension:n,engineBinaryPath:s}),s}async#a(){let e=await fetch(`https://registry.npmjs.org/@prisma/client/${this.#e.clientVersion}`);if(!e.ok)throw new Error(`Couldn't fetch package.json from npm registry, status code: ${e.status}`);let o=(await e.json()).devDependencies?.["@prisma/engines-version"];if(!o)throw new Error("Couldn't find engines version in package.json");let n=o.split(".").at(-1);if(!n)throw new Error("Couldn't find commit hash in engines version");return n}async#n(e){let{commitHash:r,extension:o,engineBinaryPath:n}=e,{binaryTarget:s}=this.#e.platform,a=`https://binaries.prisma.sh/all_commits/${r}/${s}/query-engine${o}.gz`;this.#e.debug&&console.debug("[Query Engine] downloading engine from url",a);let i=await fetch(a);if(!i.ok)throw new Error(`Couldn't download engine. URL: ${a}, status code: ${i.status}`);Xe&&await(0,rt.setTimeout)(Number(Xe)),await je(await i.arrayBuffer(),n),this.#e.debug&&console.debug("[Query Engine] downloaded and saved at",n)}#o(e){let r={};for(let[o,n]of Object.entries(e))n!=null&&(r[o]=n);return r}async#i(e,r,o){let{url:n}=await this.#t,s=this.#o(r),a=await fetch(`${n}/transaction/${e}/${o}`,{headers:{...s,"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw await j.fromResponse(a);try{return await a.json()}catch{return{}}}};V=class extends Error{name="EngineStartError"},j=class t extends Error{constructor(r,o,n){super(`${r}: Query Engine response status ${o}, body: ${n}`);this.action=r;this.statusCode=o;this.responseBody=n}name="EngineHttpError";static async fromResponse(r){let o=new URL(r.url),n=await r.text();return new t(o.pathname,r.status,n)}}});async function nt(t){let{output:e,success:r}=(0,S.safeParse)(ar,await t.req.json(),{abortEarly:!0});return r?e:t.text("Invalid input",400)}var S,ar,st=D(()=>{"use strict";p();S=require("valibot"),ar=(0,S.object)({tags:(0,S.union)([(0,S.pipe)((0,S.array)((0,S.string)()),(0,S.minLength)(1)),(0,S.literal)("all")])})});async function at(t){return ye===void 0&&(ye=await _.Server.create({databaseUrl:t.get("db").connectionString,maxResponseSize:(0,_.parseSize)("128 MiB"),queryTimeout:(0,_.parseDuration)("PT5M"),maxTransactionTimeout:(0,_.parseDuration)("PT5M"),maxTransactionWaitTime:(0,_.parseDuration)("PT5M"),perRequestLogContext:{logFormat:"text",logLevel:t.get("debug")?"debug":"off"}})),ye}var _,oe,ye,it=D(()=>{"use strict";p();_=require("@prisma/query-plan-executor"),oe=require("@prisma/query-plan-executor")});async function be(t){let r=new TextEncoder().encode(t),o=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(o)).map(a=>a.toString(16).padStart(2,"0")).join("")}function ut(t){let e=t.req.param("schemaHash"),r=ne.get(e);return r==null?t.json({EngineNotStarted:{reason:"SchemaMissing"}},404):{schemaHash:e,schemas:r}}async function dt(t,e,r){let o=Pe.Buffer.from(t,"base64").toString("utf8"),n=(0,ct.produceSchema)(o,a=>{a.datasource('"postgresql"',e.toString())});r&&console.log("[Accelerate] schema with override:",n);let s=await be(n);return{base64Override:Pe.Buffer.from(n,"utf8").toString("base64"),overrideHash:s}}var Pe,ct,ne,lt=D(()=>{"use strict";p();Pe=require("buffer"),ct=require("@mrleebo/prisma-ast"),ne=new Map});function se(t){let{req:e}=t;return{traceparent:e.header("traceparent"),"X-capture-telemetry":e.header("X-capture-telemetry")}}var pt=D(()=>{"use strict";p()});async function mt(t){let{issues:e,output:r,success:o}=(0,m.safeParse)(ir,await t.req.json(),{abortEarly:!0});return o?r:t.json({EngineNotStarted:{reason:"InvalidRequest",issues:e}},400)}function ft(t,e){let{output:r,success:o}=(0,m.safeParse)(cr,t);return o?r:e.json({EngineMalfunction:{}},500)}var m,ir,cr,ht=D(()=>{"use strict";p();m=require("valibot"),ir=(0,m.object)({isolation_level:(0,m.optional)((0,m.string)()),max_wait:(0,m.pipe)((0,m.number)(),(0,m.integer)(),(0,m.minValue)(0)),timeout:(0,m.pipe)((0,m.number)(),(0,m.integer)(),(0,m.minValue)(0))});cr=(0,m.looseObject)({id:(0,m.union)([(0,m.string)(),(0,m.number)()])})});var Pt={};ae(Pt,{accelerateRoute:()=>G});async function Se(t){let{req:e}=t,r=ut(t);if(r instanceof Response)return r;let{base64Override:o,overrideHash:n}=r.schemas;return await U.get({base64Schema:o,clientVersion:process.env.PRISMA_DEV_FORCE_CLIENT_VERSION||e.param("clientVersion"),debug:t.get("debug"),platform:t.get("platform"),schemaHash:n})}var gt,yt,I,G,ur,K,dr,lr,bt=D(()=>{"use strict";p();gt=require("hono/http-exception"),yt=require("hono/tiny"),I=require("hono/validator");ie();st();ge();it();lt();pt();ht();G=new yt.Hono;G.post("/invalidate",(0,I.validator)("header",k),async t=>{let e=await nt(t);return e instanceof Response?e:t.body(null)});ur="/:clientVersion/:schemaHash",K=G.basePath(ur);G.route("/",K);dr=["/graphql","/itx/:transactionId/graphql"];K.on("POST",[...dr],(0,I.validator)("header",k),async t=>{let{req:e}=t;try{let r=await Se(t);if(r instanceof Response)return r;let o=await e.text(),n=e.param("transactionId"),s=await r.request(o,{...se(t),"X-transaction-id":n});return t.text(s)}catch(r){return re(r,t)}});K.basePath("/itx/:transactionId").on("POST",["/commit","/rollback"],(0,I.validator)("header",k),async t=>{let{req:e}=t;try{let r=await Se(t);if(r instanceof Response)return r;let n=`${e.routePath.split("/").filter(Boolean).at(-1)}Transaction`,s=e.param("transactionId"),a=await r[n](s,se(t));return t.json(a)}catch(r){return re(r,t)}});K.put("/schema",(0,I.validator)("header",k),async t=>{let{req:e}=t,r=await e.text();if(!r)return t.text("Missing schema",400);let o=e.param("schemaHash"),n=ne.get(o);if(n==null){if(o!==await be(r))return t.text("Schema hash mismatch",400);let s=await dt(r,t.get("db").prismaORMConnectionString,t.get("debug"));return ne.set(o,{base64Original:r,...s}),t.text(o)}return r!==n.base64Original?t.text("Schema mismatch",400):t.text(o)});K.post("/transaction/start",(0,I.validator)("header",k),async t=>{let{req:e}=t,r=await mt(t);if(r instanceof Response)return r;try{let o=await Se(t);if(o instanceof Response)return o;let n=await o.startTransaction(r,se(t)),s=ft(n,t);if(s instanceof Response)return s;let{id:a}=s,i=e.param("clientVersion"),c=t.get("port"),u=t.get("protocol"),l=e.param("schemaHash");return t.json({...n,"data-proxy":{endpoint:`${u}://localhost:${c}/${i}/${l}/itx/${a}`}})}catch(o){return re(o,t)}});lr=[["/connection-info","GET"],["/query","POST"],["/transaction/start","POST"],["/transaction/:transactionId/commit","POST"],["/transaction/:transactionId/query","POST"],["/transaction/:transactionId/rollback","POST"]];for(let[t,e]of lr)G.on(e,t,(0,I.validator)("header",k),async r=>{let o=r.req.header("prisma-engine-hash");if(o!=="0.0.0"&&o!==oe.version)throw new gt.HTTPException(400,{message:`Using an HTTP connection string is not supported with Prisma Client version ${o} by this version of \`prisma dev\`. Please either use a direct TCP connection string or upgrade your client to version ${oe.version}.`});return await(await at(r)).fetch(r.req.raw)})});var vt={};ae(vt,{utilityRoute:()=>we});var St,wt,we,so,Dt=D(()=>{"use strict";p();St=require("hono/tiny"),wt=require("http-status-codes"),we=new St.Hono;we.post("/database/dump",async t=>{let e=t.get("db"),r=t.get("serverState");return await e.dump(r.databaseDumpPath),t.json({dumpPath:r.databaseDumpPath},wt.StatusCodes.CREATED)});so=we.get("/health",t=>t.json({name:t.get("serverState").name}))});var Pr={};ae(Pr,{DEFAULT_DATABASE_PORT:()=>H,DEFAULT_SERVER_PORT:()=>L,DEFAULT_SHADOW_DATABASE_PORT:()=>M,PortNotAvailableError:()=>E,ServerAlreadyRunningError:()=>J,startPrismaDevServer:()=>Ct,unstable_startServer:()=>yr});module.exports=Ft(Pr);p();ie();p();var Je=require("pathe/utils");Y();p();var $=require("get-port-please"),ee=require("remeda"),H=51214,L=51213,M=51215,Z=65535,A=-1/0;async function Ge(t){let{debug:e,name:r,requestedPorts:o,servers:n}=t,{portsUsedByOtherServers:s,portsUsedByThisServerLastTime:a}=Yt(r,n);e&&(console.debug(`ports used by other servers: ${Object.keys(s).join(", ")}`),console.debug(`ports used by "${r}" server last time: ${JSON.stringify(a)}`));let i={databasePort:A,port:A,shadowDatabasePort:A},c=["port","databasePort","shadowDatabasePort"];for(let u of c){let l=await zt({debug:e,portKey:u,portsUsedByOtherServers:s,portsUsedByThisServerLastTime:a,requestedPorts:o})??await Xt({debug:e,pickedPorts:i,portKey:u,portsUsedByOtherServers:s,portsUsedByThisServerLastTime:a});e&&console.debug(`Got port for "${u}": ${l}`),i[u]=l}return e&&console.debug(`Picked ports: ${JSON.stringify(i)}`),i}async function zt(t){let{debug:e,portKey:r,portsUsedByOtherServers:o,portsUsedByThisServerLastTime:n,requestedPorts:s}=t,{[r]:a,...i}=s;if(Ve(a))return await Zt({debug:e,otherRequestedPorts:i,portKey:r,portsUsedByOtherServers:o,requestedPort:a}),a;let c=n?.[r]??A;if(!Ve(c))return e&&console.debug(`No port specified for "${r}". Trying to pick a new port.`),null;let u=c in o;return u||Object.values(i).includes(c)?(e&&console.debug(`Port ${c} that was used last time for this server, ${u?"is also used by another server":"has been requested for another service"}. Trying to pick a new port.`),null):await(0,$.checkPort)(c)===!1?(e&&console.debug(`Port ${c}, that was used last time for this server, is not available. Trying to pick a new port.`),null):(e&&console.debug(`Using port ${c} for "${r}" as it was used last time and is available.`),c)}async function Xt(t){let{debug:e,pickedPorts:r,portKey:o,portsUsedByOtherServers:n,portsUsedByThisServerLastTime:s}=t,a=Math.max(H,L,M)+1,i=[...Object.values(r),...Object.keys(n).map(Number),...Object.values(s||{})],c=Math.min(Math.max(a,...i)+100,Z),u=(0,ee.difference)((0,ee.range)(a,c),i),l={port:L,databasePort:H,shadowDatabasePort:M}[o];try{return await(0,$.getPort)({port:l in n||Object.values(r).includes(l)||Object.values(s||{}).includes(l)?void 0:l,ports:u})}catch(g){if(g instanceof Error&&g.name==="GetPortError"&&c+1<=Z)return e&&console.debug(`Expanding port lookup to range [${c+1}, ${Z}].`),await(0,$.getPort)({portRange:[c+1,Z]});throw g}}function Ve(t){return t>=0}function Yt(t,e){let r={},o;for(let n of e){let{databasePort:s,port:a,shadowDatabasePort:i}=n;if(n.name===t){o={databasePort:s,port:a,shadowDatabasePort:i};continue}r[s]=!0,r[a]=!0,r[i]=!0}return{portsUsedByOtherServers:r,portsUsedByThisServerLastTime:o}}async function Zt(t){let{debug:e,otherRequestedPorts:r,portKey:o,portsUsedByOtherServers:n,requestedPort:s}=t;if(s in n)throw e&&console.error(`Port ${s} was requested for "${o}", but is already used by another server.`),new me(s);if(Object.values(r).includes(s))throw e&&console.error(`Port ${s} was requested for "${o}", but also for another key.`),new pe(s);if((0,$.isUnsafePort)(s))throw e&&console.error(`Port ${s} was requested for "${o}", but is unsafe.`),new E(s);if(await(0,$.checkPort)(s)===!1)throw e&&console.error(`Port ${s} was requested for "${o}", but is not available.`),new E(s)}var E=class extends Error{constructor(r){super(`Port \`${r}\` is not available.`);this.port=r}name="PortNotAvailableError"},pe=class extends Error{constructor(r){super(`Port number \`${r}\` was requested twice. Please choose a different port for each service.`);this.port=r}name="PortRequestedTwiceError"},me=class extends Error{constructor(r){super(`Port number \`${r}\` belongs to another Prisma Dev server. Please choose a different port.`);this.port=r}name="PortBelongsToAnotherServerError"};var y={connectionLimit:1,connectTimeout:0,database:"template1",maxIdleConnectionLifetime:0,password:"postgres",poolTimeout:0,socketTimeout:0,sslMode:"disable",username:"postgres"},er=`postgres://${y.username}:${y.password}@localhost`,We=new URLSearchParams({sslmode:y.sslMode}),tr=new URLSearchParams({...Object.fromEntries(We.entries()),connection_limit:String(y.connectionLimit),connect_timeout:String(y.connectTimeout),max_idle_connection_lifetime:String(y.maxIdleConnectionLifetime),pool_timeout:String(y.poolTimeout),single_use_connections:"true",socket_timeout:String(y.socketTimeout)});async function fe(t,e){let r=t==="database"?e.databasePort:e.shadowDatabasePort;if(e.dryRun)return Ke(t,e,{db:null,port:r,server:null});let{debug:o}=e,s=await(t==="shadow_database"?rr:ze)(e.pgliteDataDirPath,o);o&&s.onNotification((c,u)=>{console.debug(`[${t}][${c}] ${u}`)});let{PGLiteSocketServer:a}=await import("@electric-sql/pglite-socket"),i=new a({db:s,debug:o,inspect:o,port:r});o&&(i.addEventListener("listening",c=>{let{detail:u}=c;console.debug(`[${t}] server listening on ${JSON.stringify(u)}`)}),i.addEventListener("connection",c=>{let{clientAddress:u,clientPort:l}=c.detail;console.debug(`[${t}] client connected from ${u}:${l}`)}),i.addEventListener("error",c=>{let{detail:u}=c;console.error(`[${t}] server error:`,u)}));try{await i.start()}catch(c){throw c instanceof Error&&"code"in c&&c.code==="EADDRINUSE"?new E(r):c}return Ke(t,e,{db:s,port:r,server:i})}function Ke(t,e,r){let{debug:o}=e,{db:n,port:s,server:a}=r||{};return o&&console.debug(`[${t}] server started on port ${s}`),{...y,close:async()=>{let i=[];try{await a?.stop(),o&&console.debug(`[${t}] server stopped on port ${s}`)}catch(c){console.error(`[${t}] server stop error`,c),i.push(c)}if(t==="database")try{await n?.syncToFs(),o&&console.debug(`[${t}] synced to filesystem`)}catch(c){console.error(`[${t}] sync error`,c),i.push(c)}try{await n?.close(),o&&console.debug(`[${t}] closed`)}catch(c){console.error(`[${t}] close error`,c),i.push(c)}if(i.length>0)throw new AggregateError(i,`Failed to close ${t} properly`)},connectionString:Qe(s,We),dump:async i=>{t==="shadow_database"||!n||await or({db:n,debug:o,destinationPath:i})},port:s,prismaORMConnectionString:Qe(s,tr),terminalCommand:`PGPASSWORD=${y.password} PGSSLMODE=${y.sslMode} psql -h localhost -p ${s} -U ${y.username} -d ${y.database}`}}function Qe(t,e){return`${er}:${t}/${y.database}?${e.toString()}`}async function ze(t,e){let{PGlite:r}=await import("@electric-sql/pglite");return await r.create({database:y.database,dataDir:t,debug:e?5:void 0,relaxedDurability:!1,username:y.username})}async function rr(t,e){let{PGlite:r}=await import("@electric-sql/pglite");return await r.create({database:y.database,dataDir:"memory://",debug:e?5:void 0,relaxedDurability:!1,username:y.username})}async function or(t){let{dataDir:e,db:r,debug:o,destinationPath:n}=t,s=r||await ze(e,o),{pgDump:a}=await import("@electric-sql/pglite-tools/pg_dump"),i=await a({args:["--schema-only","--no-owner"],fileName:n?(0,Je.filename)(n):void 0,pg:await s.clone()});return n?(o&&console.debug(`[DB] Dumping database to ${n}`),await Ue(i,n)):(o&&console.debug("[DB] Dumping database to memory"),await i.text())}p();var Tt=require("http"),Rt=require("util"),xt=w(require("@prisma/get-platform"),1);he();ge();async function Ot(t,e){let{port:r}=e;if(e.dryRun)return Et(r,null);let o=await pr(r,t,e),{promise:n,reject:s,resolve:a}=te(),{serve:i}=await import("@hono/node-server"),c=i({createServer:Tt.createServer,fetch:o.fetch,overrideGlobalObjects:!1,port:r},a);return c.on("error",u=>{if(typeof u=="object"&&"code"in u&&u.code==="EADDRINUSE")return s(new E(r));console.error("[Accelerate]",u)}),await n,Et(r,c)}function Et(t,e){return{async close(){e&&await Promise.allSettled([(0,Rt.promisify)(e.close.bind(e))(),U.stopAll()])},port:t,url:`http://localhost:${t}`}}async function pr(t,e,r){let{debug:o}=r,[{Hono:n},{accelerateRoute:s},{utilityRoute:a}]=await Promise.all([import("hono/tiny"),Promise.resolve().then(()=>(bt(),Pt)),Promise.resolve().then(()=>(Dt(),vt))]),i=new n,c=await xt.getPlatformInfo();if(o&&console.debug("[Accelerate] platform info: %s",JSON.stringify(c)),o){let{logger:l}=await import("hono/logger");i.use("*",l((...g)=>console.log("[Accelerate]",...g)))}i.use("*",async(l,g)=>(l.set("db",e),l.set("debug",!!o),l.set("platform",c),l.set("port",t),l.set("protocol","http"),l.set("serverState",r),l.set("shadowDBPort",r.shadowDatabasePort),await g()));let u=new n;return u.route("/",s),u.route("/",a),i.route("/",u),i}p();var It=require("fs/promises"),C=require("pathe"),N=require("proper-lockfile"),xe=require("std-env"),d=require("valibot");Y();p();var mr=require("timers/promises"),At=require("std-env");function $t(t,e){if(t==null)return!1;try{return At.process.kill?.(t,0)??!0}catch(r){return e&&console.error(`Error checking if process with PID ${t} exists:`,r),!1}}var Ee=(0,d.pipe)((0,d.string)(),(0,d.url)()),_t=(0,d.object)({connectionString:Ee,prismaORMConnectionString:(0,d.optional)(Ee),terminalCommand:(0,d.optional)((0,d.string)())}),kt=(0,d.object)({url:Ee}),ve=(0,d.pipe)((0,d.number)(),(0,d.integer)(),(0,d.minValue)(1)),fr=(0,d.object)({database:_t,http:kt,ppg:kt,shadowDatabase:_t}),hr=(0,d.object)({databasePort:ve,exports:(0,d.optional)(fr),name:(0,d.pipe)((0,d.string)(),(0,d.minLength)(1)),pid:(0,d.optional)((0,d.pipe)((0,d.number)(),(0,d.integer)(),(0,d.minValue)(0))),port:ve,shadowDatabasePort:ve,version:(0,d.literal)("1")}),Oe=Symbol("initialize"),De="default",T=class{_databasePort;debug;dryRun;name;persistenceMode;pid;_port;_shadowDatabasePort;constructor(e){this._databasePort=e.databasePort??A,this.debug=e.debug??!1,this.dryRun=e.dryRun??!1,this.name=e.name??De,this.persistenceMode=e.persistenceMode,this.pid=e.pid??xe.process.pid,this._port=e.port??A,this._shadowDatabasePort=e.shadowDatabasePort??A}static async createExclusively(e){let r=e?.dryRun!==!0&&e?.persistenceMode!=="stateless"?new Q(e):new Te(e);return await r[Oe](),r}static async fromServerDump(e){let{debug:r,name:o=De}=e??{},n=F(o),s=Q.getServerDumpPath(n),a=await Ne(s);if(a==null)return r&&console.debug(`[State] No server dump file found at: ${s}`),null;r&&(console.debug(`[State] server dump file found at "${s}":`),console.debug(a));let{issues:i,output:c,success:u}=(0,d.safeParse)((0,d.pipe)((0,d.string)(),(0,d.parseJson)(),hr),a);if(!u)throw r&&console.debug(`[State] Invalid server dump file at "${s}":
4
- ${JSON.stringify(i,null,2)}`),new Error(`Invalid Prisma Dev state for "${o}".`);return new Q({databasePort:c.databasePort,debug:r,dryRun:!1,name:o,pid:c.pid,port:c.port,serverDump:c,shadowDatabasePort:c.shadowDatabasePort})}static async scan(e){let{debug:r,globs:o}=e??{},n=(0,C.join)(F(De),"..");r&&console.debug(`[State] scanning for server states in: ${n}`);let s=await Fe(n,o);return r&&console.debug(`[State] found server names: ${JSON.stringify(s)}`),await Promise.all(s.map(a=>gr(a,e)))}get databasePort(){return this._databasePort}get port(){return this._port}get shadowDatabasePort(){return this._shadowDatabasePort}},Te=class extends T{constructor(e){super({...e,databasePort:e?.databasePort??H,persistenceMode:"stateless",port:e?.port??L,shadowDatabasePort:e?.shadowDatabasePort??M})}get databaseDumpPath(){return"<DUMP_PATH>"}get pgliteDataDirPath(){return"memory://"}async[Oe](){}async close(){}async writeServerDump(){}},Q=class t extends T{#r;#e;#t;#s;#a;#n;#o;constructor(e){super({...e,persistenceMode:"stateful"}),this.#n=!1,this.#e=F(this.name),this.#r=(0,C.join)(this.#e,"db_dump.bak"),this.#t=(0,C.join)(this.#e,".lock"),this.#s=(0,C.join)(this.#e,".pglite"),this.#o=e?.serverDump??null,this.#a=t.getServerDumpPath(this.#e)}static getServerDumpPath(e){return(0,C.join)(e,"server.json")}get databaseDumpPath(){return this.#r}get exports(){return this.#o?.exports}get pgliteDataDirPath(){return this.#s}async[Oe](){await qe(this.#e),this.debug&&console.debug(`[State] using data directory: ${this.#e}`);try{await(0,N.lock)(this.#e,{lockfilePath:this.#t}),this.debug&&console.debug(`[State] obtained lock on: ${this.#e}`);let e=await T.scan({debug:this.debug,onlyMetadata:!0}),r=await Ge({debug:this.debug,name:this.name,requestedPorts:{databasePort:this.databasePort,port:this.port,shadowDatabasePort:this.shadowDatabasePort},servers:e});this._databasePort=r.databasePort,this._port=r.port,this._shadowDatabasePort=r.shadowDatabasePort,await this.writeServerDump()}catch(e){throw e instanceof Error&&"code"in e&&e.code==="ELOCKED"?new J(this):e}}async close(){if(!this.#n)try{await(0,N.unlock)(this.#e,{lockfilePath:this.#t}),this.#n=!0,this.debug&&console.debug(`[State] released lock on: ${this.#e}`)}catch(e){throw this.debug&&console.error(`[State] failed to release lock on: ${this.#e}`,e),e}}async writeServerDump(e){this.#o={name:this.name,version:"1",pid:xe.process.pid,port:this.port,databasePort:this.databasePort,shadowDatabasePort:this.shadowDatabasePort,exports:e},await(0,It.writeFile)(this.#a,`${JSON.stringify(this.#o,null,2)}
5
- `,{encoding:"utf-8"})}};async function gr(t,e){let{debug:r,onlyMetadata:o}=e||{},n=typeof t=="string"?t:t.name,s=typeof t!="string"?t:void 0,a={databasePort:s?.databasePort??-1,exports:s?.exports,name:n,pid:s?.pid,port:s?.port??-1,shadowDatabasePort:s?.shadowDatabasePort??-1,version:"1"};try{let i=s||await T.fromServerDump({debug:r,name:n});if(!i)return r&&console.debug(`[State] no server state found for name: ${n}`),{...a,status:"no_such_server"};a.databasePort=i.databasePort,a.exports=i.exports,a.pid=i.pid,a.port=i.port,a.shadowDatabasePort=i.shadowDatabasePort;let{exports:c,pid:u}=i;if(o)return{...a,status:"unknown"};if(!$t(u,r))return r&&console.debug(`[State] server state for "${n}" has no running process with PID: ${u}`),{...a,status:"not_running"};let l=F(n);try{if(!await(0,N.check)(l,{lockfilePath:(0,C.join)(l,".lock")}))return r&&console.debug(`[State] server state for "${n}" is not locked, indicating it is not running.`),{...a,status:"starting_up"}}catch(q){r&&console.error(`[State] server state for "${n}" failed to check lock:`,q)}if(!c)return{...a,status:"starting_up"};let{http:g}=c,{hc:b}=await import("hono/client"),R=await b(g.url).health.$get();if(!R.ok)return r&&console.debug(`[State] server state for "${n}" is not live: ${JSON.stringify(R)}`),{...a,status:"not_running"};let x=await R.json();return x.name!==t?(r&&console.debug(`[State] server state for "${n}" has mismatched health response: ${JSON.stringify(x)}`),{...a,status:"unknown"}):(r&&console.debug(`[State] server state for "${t}" is live: ${JSON.stringify(x)}`),{...a,status:"running"})}catch(i){return r&&console.error(`[State] failed to get server status for "${n}":`,i),{...a,status:"error"}}}var Re=class extends Error{name="ServerStateAlreadyExistsError";constructor(e){super(`A Prisma Dev server with the name "${e}" is already running.`)}},J=class extends Re{#r;name="ServerAlreadyRunningError";constructor(e){super(e.name),this.#r=e}get server(){return T.fromServerDump({debug:this.#r.debug,name:this.#r.name})}};async function Ct(t){let e=await T.createExclusively(t),[r,o]=await Promise.all([fe("database",e),fe("shadow_database",e)]),n=await Ot(r,e),s=`prisma+postgres://localhost:${n.port}/?${new URLSearchParams({api_key:_e({databaseUrl:r.prismaORMConnectionString,name:e.name,shadowDatabaseUrl:o.prismaORMConnectionString})}).toString()}`,a={database:{connectionString:r.connectionString,prismaORMConnectionString:r.prismaORMConnectionString,terminalCommand:r.terminalCommand},http:{url:n.url},ppg:{url:s},shadowDatabase:{connectionString:o.prismaORMConnectionString,prismaORMConnectionString:o.prismaORMConnectionString,terminalCommand:o.terminalCommand}};return await e.writeServerDump(a),{...a,close:()=>i(e,[n,r,o]),name:e.name};async function i(c,u){let g=(await Promise.allSettled(u.map(b=>b.close()))).filter(b=>b.status==="rejected").map(b=>new Error(b.reason));try{await c.close()}catch(b){g.push(b)}if(g.length>0)throw new AggregateError(g,"Failed to close some servers")}}async function yr(t){return await Ct(t)}0&&(module.exports={DEFAULT_DATABASE_PORT,DEFAULT_SERVER_PORT,DEFAULT_SHADOW_DATABASE_PORT,PortNotAvailableError,ServerAlreadyRunningError,startPrismaDevServer,unstable_startServer});
1
+ "use strict";var eo=Object.create;var Ct=Object.defineProperty;var to=Object.getOwnPropertyDescriptor;var ro=Object.getOwnPropertyNames;var no=Object.getPrototypeOf,io=Object.prototype.hasOwnProperty;var xe=(e,t)=>()=>(e&&(t=e(e=0)),t);var ke=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lr=(e,t)=>{for(var r in t)Ct(e,r,{get:t[r],enumerable:!0})},Rn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ro(t))!io.call(e,i)&&i!==r&&Ct(e,i,{get:()=>t[i],enumerable:!(n=to(t,i))||n.enumerable});return e};var Pe=(e,t,r)=>(r=e!=null?eo(no(e)):{},Rn(t||!e||!e.__esModule?Ct(r,"default",{value:e,enumerable:!0}):r,e)),so=e=>Rn(Ct({},"__esModule",{value:!0}),e);var X=xe(()=>{"use strict"});function Cn(e){return Buffer.from(JSON.stringify(Object.fromEntries(Object.entries(e).sort(([[t],[r]])=>t.localeCompare(r)))),"utf8").toString("base64url")}function oo(e){let t=Buffer.from(e,"base64url").toString("utf8"),{issues:r,output:n,success:i}=(0,de.safeParse)(ao,t,{abortEarly:!0});return i?[null,n]:[r]}var de,kn,ao,ze,fr=xe(()=>{"use strict";X();de=require("valibot"),kn=/^(postgres|postgresql):\/\//,ao=(0,de.pipe)((0,de.string)(),(0,de.parseJson)(),(0,de.object)({databaseUrl:(0,de.pipe)((0,de.string)(),(0,de.url)(),(0,de.regex)(kn)),name:(0,de.optional)((0,de.pipe)((0,de.string)(),(0,de.minLength)(1))),shadowDatabaseUrl:(0,de.pipe)((0,de.string)(),(0,de.url)(),(0,de.regex)(kn))}));ze=async(e,t)=>{let{authorization:r}=e,{HTTPException:n}=await import("hono/http-exception");if(!r)throw new n(401,{message:"Missing API Key"});let[i,o="",c]=r.split(" ");if(i!=="Bearer"||c)throw new n(401,{message:"Invalid API Key"});let[a,s]=oo(o);if(a)throw new n(401,{message:"Invalid API Key",cause:a.join(", ")});let{databaseUrl:l,name:d,shadowDatabaseUrl:v}=s,{name:g}=t.get("serverState");if(!d)throw new n(401,{message:`Wrong API Key; The Prisma Dev server running at port ${t.get("port")} requires an API Key from a newer version of \`prisma dev\`. Check the "${g}" server's output for the updated \`DATABASE_URL\` value.`});if(d!==g)throw new n(401,{message:`Wrong API Key; The Prisma Dev server running at port ${t.get("port")} is named "${g}", but the API Key is for "${d}"`});let{hostname:x,port:_}=new URL(l),{port:E}=t.get("db"),{hostname:p,port:y}=new URL(v),u=t.get("shadowDBPort");if(x!=="localhost"||Number(_)!==E||p!=="localhost"||Number(y)!==u)throw new n(401,{message:"Wrong API Key; Check your Prisma schema's `provider.url` value (probably defined in `.env`'s `DATABASE_URL` environment variable) is aligned with `prisma dev`'s output"});return{decodedAPIKey:s}}});function hr(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),Dt.default.platform==="darwin"?co(e):Dt.default.platform==="win32"?uo(e):lo(e)}var ve,dr,Dt,Fe,pr,rt,co,uo,lo,Dn=xe(()=>{"use strict";X();ve=Pe(require("path"),1),dr=Pe(require("os"),1),Dt=Pe(require("process"),1),Fe=dr.default.homedir(),pr=dr.default.tmpdir(),{env:rt}=Dt.default,co=e=>{let t=ve.default.join(Fe,"Library");return{data:ve.default.join(t,"Application Support",e),config:ve.default.join(t,"Preferences",e),cache:ve.default.join(t,"Caches",e),log:ve.default.join(t,"Logs",e),temp:ve.default.join(pr,e)}},uo=e=>{let t=rt.APPDATA||ve.default.join(Fe,"AppData","Roaming"),r=rt.LOCALAPPDATA||ve.default.join(Fe,"AppData","Local");return{data:ve.default.join(r,e,"Data"),config:ve.default.join(t,e,"Config"),cache:ve.default.join(r,e,"Cache"),log:ve.default.join(r,e,"Log"),temp:ve.default.join(pr,e)}},lo=e=>{let t=ve.default.basename(Fe);return{data:ve.default.join(rt.XDG_DATA_HOME||ve.default.join(Fe,".local","share"),e),config:ve.default.join(rt.XDG_CONFIG_HOME||ve.default.join(Fe,".config"),e),cache:ve.default.join(rt.XDG_CACHE_HOME||ve.default.join(Fe,".cache"),e),log:ve.default.join(rt.XDG_STATE_HOME||ve.default.join(Fe,".local","state"),e),temp:ve.default.join(pr,t,e)}}});function Nn(e,t){return`${Ln.cache}/engine/${e}/${t}`}function mt(e){return`${Ln.data}/${e}`}async function Mn(e){try{return await(0,Ae.access)(e,Ae.constants.F_OK),!0}catch(t){if(mr(t))return!1;throw t}}async function Fn(e,t){let r=await fo(e);await(0,Ae.writeFile)(t,r),await(0,Ae.chmod)(t,"755")}async function qn(e,t){await e.stream().pipeTo(jt.WriteStream.toWeb((0,jt.createWriteStream)(t,{encoding:"utf-8"})))}function mr(e){return e!=null&&typeof e=="object"&&"code"in e&&e.code==="ENOENT"}async function Bn(e){try{return await(0,Ae.readFile)(e,{encoding:"utf-8"})}catch(t){if(mr(t))return null;throw t}}async function Hn(e){await(0,Ae.mkdir)(e,{recursive:!0})}async function Gn(e,t){try{return(await(0,Ae.readdir)(e,{withFileTypes:!0})).reduce((n,i)=>(i.isDirectory()&&!i.name.startsWith(".")&&(!t||(0,$n.default)(t,i.name))&&n.push(i.name),n),[])}catch(r){if(mr(r))return[];throw r}}var jt,Ae,jn,In,$n,Ln,fo,It=xe(()=>{"use strict";X();jt=require("fs"),Ae=require("fs/promises"),jn=require("util"),In=require("zlib");Dn();$n=Pe(require("zeptomatch"),1),Ln=hr("prisma-dev"),fo=(0,jn.promisify)(In.unzip)});var Nt=ke((Cm,ri)=>{"use strict";X();var br=Object.defineProperty,So=Object.getOwnPropertyDescriptor,wo=Object.getOwnPropertyNames,Eo=Object.prototype.hasOwnProperty,Po=(e,t)=>{for(var r in t)br(e,r,{get:t[r],enumerable:!0})},Ao=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of wo(t))!Eo.call(e,i)&&i!==r&&br(e,i,{get:()=>t[i],enumerable:!(n=So(t,i))||n.enumerable});return e},Oo=e=>Ao(br({},"__esModule",{value:!0}),e),zn={};Po(zn,{underline:()=>To,yellow:()=>Ro});ri.exports=Oo(zn);var _r,Qn,Zn,ei,ti=!0;typeof process<"u"&&({FORCE_COLOR:_r,NODE_DISABLE_COLORS:Qn,NO_COLOR:Zn,TERM:ei}=process.env||{},ti=process.stdout&&process.stdout.isTTY);var xo={enabled:!Qn&&Zn==null&&ei!=="dumb"&&(_r!=null&&_r!=="0"||ti)};function pe(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!xo.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var om=pe(0,0),cm=pe(1,22),um=pe(2,22),lm=pe(3,23),To=pe(4,24),fm=pe(7,27),dm=pe(8,28),pm=pe(9,29),hm=pe(30,39),mm=pe(31,39),vm=pe(32,39),Ro=pe(33,39),gm=pe(34,39),ym=pe(35,39),_m=pe(36,39),bm=pe(37,39),Sm=pe(90,39),wm=pe(90,39),Em=pe(40,49),Pm=pe(41,49),Am=pe(42,49),Om=pe(43,49),xm=pe(44,49),Tm=pe(45,49),Rm=pe(46,49),km=pe(47,49)});var wr=ke((jm,ai)=>{"use strict";X();var Sr=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,Co=Object.getOwnPropertyNames,Do=Object.prototype.hasOwnProperty,jo=(e,t)=>{for(var r in t)Sr(e,r,{get:t[r],enumerable:!0})},Io=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Co(t))!Do.call(e,i)&&i!==r&&Sr(e,i,{get:()=>t[i],enumerable:!(n=ko(t,i))||n.enumerable});return e},$o=e=>Io(Sr({},"__esModule",{value:!0}),e),ni={};jo(ni,{log:()=>No,should:()=>si,tags:()=>ii,warn:()=>Mo});ai.exports=$o(ni);var Lo=Nt(),ii={warn:(0,Lo.yellow)("prisma:warn")},si={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function No(...e){console.log(...e)}function Mo(e,...t){si.warn()&&console.warn(`${ii.warn} ${e}`,...t)}});var _i=ke(($m,yi)=>{"use strict";X();var Or=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,qo=Object.getOwnPropertyNames,Bo=Object.prototype.hasOwnProperty,ui=(e,t)=>{for(var r in t)Or(e,r,{get:t[r],enumerable:!0})},Ho=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qo(t))!Bo.call(e,i)&&i!==r&&Or(e,i,{get:()=>t[i],enumerable:!(n=Fo(t,i))||n.enumerable});return e},Go=e=>Ho(Or({},"__esModule",{value:!0}),e),li={};ui(li,{Debug:()=>gi,clearLogs:()=>bc,default:()=>Sc,getLogs:()=>_c});yi.exports=Go(li);var Er={};ui(Er,{$:()=>mi,bgBlack:()=>oc,bgBlue:()=>fc,bgCyan:()=>pc,bgGreen:()=>uc,bgMagenta:()=>dc,bgRed:()=>cc,bgWhite:()=>hc,bgYellow:()=>lc,black:()=>zo,blue:()=>tc,bold:()=>vi,cyan:()=>nc,dim:()=>Wo,gray:()=>sc,green:()=>Zo,grey:()=>ac,hidden:()=>Xo,inverse:()=>Ko,italic:()=>Jo,magenta:()=>rc,red:()=>Qo,reset:()=>Uo,strikethrough:()=>Yo,underline:()=>Vo,white:()=>ic,yellow:()=>ec});var Pr,fi,di,pi,hi=!0;typeof process<"u"&&({FORCE_COLOR:Pr,NODE_DISABLE_COLORS:fi,NO_COLOR:di,TERM:pi}=process.env||{},hi=process.stdout&&process.stdout.isTTY);var mi={enabled:!fi&&di==null&&pi!=="dumb"&&(Pr!=null&&Pr!=="0"||hi)};function he(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!mi.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Uo=he(0,0),vi=he(1,22),Wo=he(2,22),Jo=he(3,23),Vo=he(4,24),Ko=he(7,27),Xo=he(8,28),Yo=he(9,29),zo=he(30,39),Qo=he(31,39),Zo=he(32,39),ec=he(33,39),tc=he(34,39),rc=he(35,39),nc=he(36,39),ic=he(37,39),sc=he(90,39),ac=he(90,39),oc=he(40,49),cc=he(41,49),uc=he(42,49),lc=he(43,49),fc=he(44,49),dc=he(45,49),pc=he(46,49),hc=he(47,49),mc=100,oi=["green","yellow","blue","magenta","cyan","red"],vt=[],ci=Date.now(),vc=0,Ar=typeof process<"u"?process.env:{};globalThis.DEBUG??=Ar.DEBUG??"";globalThis.DEBUG_COLORS??=Ar.DEBUG_COLORS?Ar.DEBUG_COLORS==="true":!0;var gt={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function gc(e){let t={color:oi[vc++%oi.length],enabled:gt.enabled(e),namespace:e,log:gt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:c,log:a}=t;if(n.length!==0&&vt.push([o,...n]),vt.length>mc&&vt.shift(),gt.enabled(o)||i){let s=n.map(d=>typeof d=="string"?d:yc(d)),l=`+${Date.now()-ci}ms`;ci=Date.now(),globalThis.DEBUG_COLORS?a(Er[c](vi(o)),...s,Er[c](l)):a(o,...s,l)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var gi=new Proxy(gc,{get:(e,t)=>gt[t],set:(e,t,r)=>gt[t]=r});function yc(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function _c(e=7500){let t=vt.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(`
2
+ `);return t.length<e?t:t.slice(-e)}function bc(){vt.length=0}var Sc=gi});var Li=ke((Wm,$i)=>{"use strict";X();var wc=Object.create,Ht=Object.defineProperty,Ec=Object.getOwnPropertyDescriptor,Pc=Object.getOwnPropertyNames,Ac=Object.getPrototypeOf,Oc=Object.prototype.hasOwnProperty,xc=(e,t)=>{for(var r in t)Ht(e,r,{get:t[r],enumerable:!0})},wi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Pc(t))!Oc.call(e,i)&&i!==r&&Ht(e,i,{get:()=>t[i],enumerable:!(n=Ec(t,i))||n.enumerable});return e},Gt=(e,t,r)=>(r=e!=null?wc(Ac(e)):{},wi(t||!e||!e.__esModule?Ht(r,"default",{value:e,enumerable:!0}):r,e)),Tc=e=>wi(Ht({},"__esModule",{value:!0}),e),Ei={};xc(Ei,{computeLibSSLSpecificPaths:()=>ki,getArchFromUname:()=>ji,getBinaryTargetForCurrentPlatform:()=>qc,getBinaryTargetForCurrentPlatformInternal:()=>Di,getPlatformInfo:()=>Hc,getPlatformInfoMemoized:()=>Ir,getSSLVersion:()=>Ci,getos:()=>Ai,parseDistro:()=>Oi,parseLibSSLVersion:()=>Dr,parseOpenSSLVersion:()=>Ti,resolveDistro:()=>xi});$i.exports=Tc(Ei);var xr=wr(),Rc=Gt(_i()),kc=Gt(require("child_process")),Pi=Gt(require("fs/promises")),Tr=Gt(require("os")),Cc=require("util"),Le=Symbol.for("@ts-pattern/matcher"),Dc=Symbol.for("@ts-pattern/isVariadic"),qt="@ts-pattern/anonymous-select-key",Rr=e=>!!(e&&typeof e=="object"),Ft=e=>e&&!!e[Le],Ie=(e,t,r)=>{if(Ft(e)){let n=e[Le](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(c=>r(c,o[c])),i}if(Rr(e)){if(!Rr(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let c of e.keys()){let a=e[c];Ft(a)&&a[Dc]?o.push(a):o.length?i.push(a):n.push(a)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let c=t.slice(0,n.length),a=i.length===0?[]:t.slice(-i.length),s=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,d)=>Ie(l,c[d],r))&&i.every((l,d)=>Ie(l,a[d],r))&&(o.length===0||Ie(o[0],s,r))}return e.length===t.length&&e.every((c,a)=>Ie(c,t[a],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Ft(o=i)&&o[Le]().matcherType==="optional")&&Ie(i,t[n],r);var o})}return Object.is(t,e)},Je=e=>{var t,r,n;return Rr(e)?Ft(e)?(t=(r=(n=e[Le]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?yt(e,Je):yt(Object.values(e),Je):[]},yt=(e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]);function Re(e){return Object.assign(e,{optional:()=>jc(e),and:t=>ge(e,t),or:t=>Ic(e,t),select:t=>t===void 0?bi(e):bi(t,e)})}function jc(e){return Re({[Le]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return t===void 0?(Je(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ie(e,t,n),selections:r}},getSelectionKeys:()=>Je(e),matcherType:"optional"})})}function ge(...e){return Re({[Le]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return{matched:e.every(i=>Ie(i,t,n)),selections:r}},getSelectionKeys:()=>yt(e,Je),matcherType:"and"})})}function Ic(...e){return Re({[Le]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return yt(e,Je).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ie(i,t,n)),selections:r}},getSelectionKeys:()=>yt(e,Je),matcherType:"or"})})}function ce(e){return{[Le]:()=>({match:t=>({matched:!!e(t)})})}}function bi(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Re({[Le]:()=>({match:n=>{let i={[t??qt]:n};return{matched:r===void 0||Ie(r,n,(o,c)=>{i[o]=c}),selections:i}},getSelectionKeys:()=>[t??qt].concat(r===void 0?[]:Je(r))})})}function De(e){return typeof e=="number"}function He(e){return typeof e=="string"}function Ge(e){return typeof e=="bigint"}var Nm=Re(ce(function(e){return!0})),Ue=e=>Object.assign(Re(e),{startsWith:t=>{return Ue(ge(e,(r=t,ce(n=>He(n)&&n.startsWith(r)))));var r},endsWith:t=>{return Ue(ge(e,(r=t,ce(n=>He(n)&&n.endsWith(r)))));var r},minLength:t=>Ue(ge(e,(r=>ce(n=>He(n)&&n.length>=r))(t))),length:t=>Ue(ge(e,(r=>ce(n=>He(n)&&n.length===r))(t))),maxLength:t=>Ue(ge(e,(r=>ce(n=>He(n)&&n.length<=r))(t))),includes:t=>{return Ue(ge(e,(r=t,ce(n=>He(n)&&n.includes(r)))));var r},regex:t=>{return Ue(ge(e,(r=t,ce(n=>He(n)&&!!n.match(r)))));var r}}),Mm=Ue(ce(He)),je=e=>Object.assign(Re(e),{between:(t,r)=>je(ge(e,((n,i)=>ce(o=>De(o)&&n<=o&&i>=o))(t,r))),lt:t=>je(ge(e,(r=>ce(n=>De(n)&&n<r))(t))),gt:t=>je(ge(e,(r=>ce(n=>De(n)&&n>r))(t))),lte:t=>je(ge(e,(r=>ce(n=>De(n)&&n<=r))(t))),gte:t=>je(ge(e,(r=>ce(n=>De(n)&&n>=r))(t))),int:()=>je(ge(e,ce(t=>De(t)&&Number.isInteger(t)))),finite:()=>je(ge(e,ce(t=>De(t)&&Number.isFinite(t)))),positive:()=>je(ge(e,ce(t=>De(t)&&t>0))),negative:()=>je(ge(e,ce(t=>De(t)&&t<0)))}),Fm=je(ce(De)),We=e=>Object.assign(Re(e),{between:(t,r)=>We(ge(e,((n,i)=>ce(o=>Ge(o)&&n<=o&&i>=o))(t,r))),lt:t=>We(ge(e,(r=>ce(n=>Ge(n)&&n<r))(t))),gt:t=>We(ge(e,(r=>ce(n=>Ge(n)&&n>r))(t))),lte:t=>We(ge(e,(r=>ce(n=>Ge(n)&&n<=r))(t))),gte:t=>We(ge(e,(r=>ce(n=>Ge(n)&&n>=r))(t))),positive:()=>We(ge(e,ce(t=>Ge(t)&&t>0))),negative:()=>We(ge(e,ce(t=>Ge(t)&&t<0)))}),qm=We(ce(Ge)),Bm=Re(ce(function(e){return typeof e=="boolean"})),Hm=Re(ce(function(e){return typeof e=="symbol"})),Gm=Re(ce(function(e){return e==null})),Um=Re(ce(function(e){return e!=null})),$c=class extends Error{constructor(e){let t;try{t=JSON.stringify(e)}catch{t=e}super(`Pattern matching error: no pattern matches value ${t}`),this.input=void 0,this.input=e}},kr={matched:!1,value:void 0};function jr(e){return new Lc(e,kr)}var Lc=class Cr{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,c={},a=(l,d)=>{o=!0,c[l]=d},s=!n.some(l=>Ie(l,this.input,a))||i&&!i(this.input)?kr:{matched:!0,value:r(o?qt in c?c[qt]:c:this.input,this.input)};return new Cr(this.input,s)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Cr(this.input,n?{matched:!0,value:r(this.input,this.input)}:kr)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new $c(this.input)}run(){return this.exhaustive()}returnType(){return this}},Nc=(0,Cc.promisify)(kc.default.exec),Oe=(0,Rc.default)("prisma:get-platform"),Mc=["1.0.x","1.1.x","3.0.x"];async function Ai(){let e=Tr.default.platform(),t=process.arch;if(e==="freebsd"){let c=await Bt("freebsd-version");if(c&&c.trim().length>0){let s=/^(\d+)\.?/.exec(c);if(s)return{platform:"freebsd",targetDistro:`freebsd${s[1]}`,arch:t}}}if(e!=="linux")return{platform:e,arch:t};let r=await xi(),n=await ji(),i=ki({arch:t,archFromUname:n,familyDistro:r.familyDistro}),{libssl:o}=await Ci(i);return{platform:"linux",libssl:o,arch:t,archFromUname:n,...r}}function Oi(e){let t=/^ID="?([^"\n]*)"?$/im,r=/^ID_LIKE="?([^"\n]*)"?$/im,n=t.exec(e),i=n&&n[1]&&n[1].toLowerCase()||"",o=r.exec(e),c=o&&o[1]&&o[1].toLowerCase()||"",a=jr({id:i,idLike:c}).with({id:"alpine"},({id:s})=>({targetDistro:"musl",familyDistro:s,originalDistro:s})).with({id:"raspbian"},({id:s})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:s})).with({id:"nixos"},({id:s})=>({targetDistro:"nixos",originalDistro:s,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:s})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:s})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:s})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:s})).when(({idLike:s})=>s.includes("debian")||s.includes("ubuntu"),({id:s})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:s})).when(({idLike:s})=>i==="arch"||s.includes("arch"),({id:s})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:s})).when(({idLike:s})=>s.includes("centos")||s.includes("fedora")||s.includes("rhel")||s.includes("suse"),({id:s})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:s})).otherwise(({id:s})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:s}));return Oe(`Found distro info:
3
+ ${JSON.stringify(a,null,2)}`),a}async function xi(){let e="/etc/os-release";try{let t=await Pi.default.readFile(e,{encoding:"utf-8"});return Oi(t)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function Ti(e){let t=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(t){let r=`${t[1]}.x`;return Ri(r)}}function Dr(e){let t=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(t){let r=`${t[1]}${t[2]??".0"}.x`;return Ri(r)}}function Ri(e){let t=(()=>{if(Ii(e))return e;let r=e.split(".");return r[1]="0",r.join(".")})();if(Mc.includes(t))return t}function ki(e){return jr(e).with({familyDistro:"musl"},()=>(Oe('Trying platform-specific paths for "alpine"'),["/lib","/usr/lib"])).with({familyDistro:"debian"},({archFromUname:t})=>(Oe('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${t}-linux-gnu`,`/lib/${t}-linux-gnu`])).with({familyDistro:"rhel"},()=>(Oe('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:t,arch:r,archFromUname:n})=>(Oe(`Don't know any platform-specific paths for "${t}" on ${r} (${n})`),[]))}async function Ci(e){let t='grep -v "libssl.so.0"',r=await Si(e);if(r){Oe(`Found libssl.so file using platform-specific paths: ${r}`);let o=Dr(r);if(Oe(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"libssl-specific-path"}}Oe('Falling back to "ldconfig" and other generic paths');let n=await Bt(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${t}`);if(n||(n=await Si(["/lib64","/usr/lib64","/lib","/usr/lib"])),n){Oe(`Found libssl.so file using "ldconfig" or other generic paths: ${n}`);let o=Dr(n);if(Oe(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"ldconfig"}}let i=await Bt("openssl version -v");if(i){Oe(`Found openssl binary with version: ${i}`);let o=Ti(i);if(Oe(`The parsed openssl version is: ${o}`),o)return{libssl:o,strategy:"openssl-binary"}}return Oe("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Si(e){for(let t of e){let r=await Fc(t);if(r)return r}}async function Fc(e){try{return(await Pi.default.readdir(e)).find(r=>r.startsWith("libssl.so.")&&!r.startsWith("libssl.so.0"))}catch(t){if(t.code==="ENOENT")return;throw t}}async function qc(){let{binaryTarget:e}=await Ir();return e}function Bc(e){return e.binaryTarget!==void 0}async function Hc(){let{memoized:e,...t}=await Ir();return t}var Mt={};async function Ir(){if(Bc(Mt))return Promise.resolve({...Mt,memoized:!0});let e=await Ai(),t=Di(e);return Mt={...e,binaryTarget:t},{...Mt,memoized:!1}}function Di(e){let{platform:t,arch:r,archFromUname:n,libssl:i,targetDistro:o,familyDistro:c,originalDistro:a}=e;t==="linux"&&!["x64","arm64"].includes(r)&&(0,xr.warn)(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures (detected "${r}" instead). If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${n}".`);let s="1.1.x";if(t==="linux"&&i===void 0){let d=jr({familyDistro:c}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");(0,xr.warn)(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${s}".
4
+ ${d}`)}let l="debian";if(t==="linux"&&o===void 0&&Oe(`Distro is "${a}". Falling back to Prisma engines built for "${l}".`),t==="darwin"&&r==="arm64")return"darwin-arm64";if(t==="darwin")return"darwin";if(t==="win32")return"windows";if(t==="freebsd")return o;if(t==="openbsd")return"openbsd";if(t==="netbsd")return"netbsd";if(t==="linux"&&o==="nixos")return"linux-nixos";if(t==="linux"&&r==="arm64")return`${o==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${i||s}`;if(t==="linux"&&r==="arm")return`linux-arm-openssl-${i||s}`;if(t==="linux"&&o==="musl"){let d="linux-musl";return!i||Ii(i)?d:`${d}-openssl-${i}`}return t==="linux"&&o&&i?`${o}-openssl-${i}`:(t!=="linux"&&(0,xr.warn)(`Prisma detected unknown OS "${t}" and may not work as expected. Defaulting to "linux".`),i?`${l}-openssl-${i}`:o?`${o}-openssl-${s}`:`${l}-openssl-${s}`)}async function Gc(e){try{return await e()}catch{return}}function Bt(e){return Gc(async()=>{let t=await Nc(e);return Oe(`Command "${e}" successfully returned "${t.stdout}"`),t.stdout})}async function ji(){return typeof Tr.default.machine=="function"?Tr.default.machine():(await Bt("uname -m"))?.trim()}function Ii(e){return e.startsWith("1.")}});var at=ke((Km,Fi)=>{"use strict";X();var $r=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Wc=Object.getOwnPropertyNames,Jc=Object.prototype.hasOwnProperty,Vc=(e,t)=>{for(var r in t)$r(e,r,{get:t[r],enumerable:!0})},Kc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Wc(t))!Jc.call(e,i)&&i!==r&&$r(e,i,{get:()=>t[i],enumerable:!(n=Uc(t,i))||n.enumerable});return e},Xc=e=>Kc($r({},"__esModule",{value:!0}),e),Ni={};Vc(Ni,{__commonJS:()=>ru,__esm:()=>tu,__export:()=>nu,__require:()=>eu,__toCommonJS:()=>su,__toESM:()=>iu});Fi.exports=Xc(Ni);var Yc=Object.create,Ut=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,Lr=Object.getOwnPropertyNames,Qc=Object.getPrototypeOf,Zc=Object.prototype.hasOwnProperty,eu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),tu=(e,t)=>function(){return e&&(t=(0,e[Lr(e)[0]])(e=0)),t},ru=(e,t)=>function(){return t||(0,e[Lr(e)[0]])((t={exports:{}}).exports,t),t.exports},nu=(e,t)=>{for(var r in t)Ut(e,r,{get:t[r],enumerable:!0})},Mi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Lr(t))!Zc.call(e,i)&&i!==r&&Ut(e,i,{get:()=>t[i],enumerable:!(n=zc(t,i))||n.enumerable});return e},iu=(e,t,r)=>(r=e!=null?Yc(Qc(e)):{},Mi(t||!e||!e.__esModule?Ut(r,"default",{value:e,enumerable:!0}):r,e)),su=e=>Mi(Ut({},"__esModule",{value:!0}),e)});var Xi=ke((lv,Ki)=>{"use strict";X();var au=Object.create,Wt=Object.defineProperty,ou=Object.getOwnPropertyDescriptor,cu=Object.getOwnPropertyNames,uu=Object.getPrototypeOf,lu=Object.prototype.hasOwnProperty,fu=(e,t)=>{for(var r in t)Wt(e,r,{get:t[r],enumerable:!0})},qi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cu(t))!lu.call(e,i)&&i!==r&&Wt(e,i,{get:()=>t[i],enumerable:!(n=ou(t,i))||n.enumerable});return e},du=(e,t,r)=>(r=e!=null?au(uu(e)):{},qi(t||!e||!e.__esModule?Wt(r,"default",{value:e,enumerable:!0}):r,e)),pu=e=>qi(Wt({},"__esModule",{value:!0}),e),Bi={};fu(Bi,{link:()=>Ju});Ki.exports=pu(Bi);var hu=Nt(),Qe=at(),Mr=du(require("process")),Hi=(0,Qe.__commonJS)({"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(e,t){"use strict";t.exports=(r,n=process.argv)=>{let i=r.startsWith("-")?"":r.length===1?"-":"--",o=n.indexOf(i+r),c=n.indexOf("--");return o!==-1&&(c===-1||o<c)}}}),mu=(0,Qe.__commonJS)({"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(e,t){"use strict";var r=(0,Qe.__require)("os"),n=(0,Qe.__require)("tty"),i=Hi(),{env:o}=process,c;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?c=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(c=1),"FORCE_COLOR"in o&&(o.FORCE_COLOR==="true"?c=1:o.FORCE_COLOR==="false"?c=0:c=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3));function a(d){return d===0?!1:{level:d,hasBasic:!0,has256:d>=2,has16m:d>=3}}function s(d,v){if(c===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(d&&!v&&c===void 0)return 0;let g=c||0;if(o.TERM==="dumb")return g;if(process.platform==="win32"){let x=r.release().split(".");return Number(x[0])>=10&&Number(x[2])>=10586?Number(x[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(x=>x in o)||o.CI_NAME==="codeship"?1:g;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if(o.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in o){let x=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return x>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:g}function l(d){let v=s(d,d&&d.isTTY);return a(v)}t.exports={supportsColor:l,stdout:a(s(!0,n.isatty(1))),stderr:a(s(!0,n.isatty(2)))}}}),vu=(0,Qe.__commonJS)({"../../node_modules/.pnpm/supports-hyperlinks@3.2.0/node_modules/supports-hyperlinks/index.js"(e,t){"use strict";var r=mu(),n=Hi();function i(c){if(/^\d{3,4}$/.test(c)){let s=/(\d{1,2})(\d{2})/.exec(c)||[];return{major:0,minor:parseInt(s[1],10),patch:parseInt(s[2],10)}}let a=(c||"").split(".").map(s=>parseInt(s,10));return{major:a[0],minor:a[1],patch:a[2]}}function o(c){let{CI:a,FORCE_HYPERLINK:s,NETLIFY:l,TEAMCITY_VERSION:d,TERM_PROGRAM:v,TERM_PROGRAM_VERSION:g,VTE_VERSION:x,TERM:_}=process.env;if(s)return!(s.length>0&&parseInt(s,10)===0);if(n("no-hyperlink")||n("no-hyperlinks")||n("hyperlink=false")||n("hyperlink=never"))return!1;if(n("hyperlink=true")||n("hyperlink=always")||l)return!0;if(!r.supportsColor(c)||c&&!c.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||a||d)return!1;if(v){let E=i(g||"");switch(v){case"iTerm.app":return E.major===3?E.minor>=1:E.major>3;case"WezTerm":return E.major>=20200620;case"vscode":return E.major>1||E.major===1&&E.minor>=72;case"ghostty":return!0}}if(x){if(x==="0.50.0")return!1;let E=i(x);return E.major>0||E.minor>=50}switch(_){case"alacritty":return!0}return!1}t.exports={supportsHyperlink:o,stdout:o(process.stdout),stderr:o(process.stderr)}}}),Gi={};(0,Qe.__export)(Gi,{beep:()=>Hu,clearScreen:()=>Mu,clearTerminal:()=>Fu,cursorBackward:()=>Eu,cursorDown:()=>Su,cursorForward:()=>wu,cursorGetPosition:()=>Ou,cursorHide:()=>Ru,cursorLeft:()=>Ji,cursorMove:()=>bu,cursorNextLine:()=>xu,cursorPrevLine:()=>Tu,cursorRestorePosition:()=>Au,cursorSavePosition:()=>Pu,cursorShow:()=>ku,cursorTo:()=>_u,cursorUp:()=>Wi,enterAlternativeScreen:()=>qu,eraseDown:()=>Iu,eraseEndLine:()=>Du,eraseLine:()=>Vi,eraseLines:()=>Cu,eraseScreen:()=>Nr,eraseStartLine:()=>ju,eraseUp:()=>$u,exitAlternativeScreen:()=>Bu,iTerm:()=>Wu,image:()=>Uu,link:()=>Gu,scrollDown:()=>Nu,scrollUp:()=>Lu});var Fr=globalThis.window?.document!==void 0,Ym=globalThis.process?.versions?.node!==void 0,zm=globalThis.process?.versions?.bun!==void 0,Qm=globalThis.Deno?.version?.deno!==void 0,Zm=globalThis.process?.versions?.electron!==void 0,ev=globalThis.navigator?.userAgent?.includes("jsdom")===!0,tv=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,rv=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,nv=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,iv=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,wt=globalThis.navigator?.userAgentData?.platform,sv=wt==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",av=wt==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",ov=wt==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",cv=wt==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),uv=wt==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android",ue="\x1B[",bt="\x1B]",ot="\x07",_t=";",Ui=!Fr&&Mr.default.env.TERM_PROGRAM==="Apple_Terminal",gu=!Fr&&Mr.default.platform==="win32",yu=Fr?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:Mr.default.cwd,_u=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?ue+(e+1)+"G":ue+(t+1)+_t+(e+1)+"H"},bu=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=ue+-e+"D":e>0&&(r+=ue+e+"C"),t<0?r+=ue+-t+"A":t>0&&(r+=ue+t+"B"),r},Wi=(e=1)=>ue+e+"A",Su=(e=1)=>ue+e+"B",wu=(e=1)=>ue+e+"C",Eu=(e=1)=>ue+e+"D",Ji=ue+"G",Pu=Ui?"\x1B7":ue+"s",Au=Ui?"\x1B8":ue+"u",Ou=ue+"6n",xu=ue+"E",Tu=ue+"F",Ru=ue+"?25l",ku=ue+"?25h",Cu=e=>{let t="";for(let r=0;r<e;r++)t+=Vi+(r<e-1?Wi():"");return e&&(t+=Ji),t},Du=ue+"K",ju=ue+"1K",Vi=ue+"2K",Iu=ue+"J",$u=ue+"1J",Nr=ue+"2J",Lu=ue+"S",Nu=ue+"T",Mu="\x1Bc",Fu=gu?`${Nr}${ue}0f`:`${Nr}${ue}3J${ue}H`,qu=ue+"?1049h",Bu=ue+"?1049l",Hu=ot,Gu=(e,t)=>[bt,"8",_t,_t,t,ot,e,bt,"8",_t,_t,ot].join(""),Uu=(e,t={})=>{let r=`${bt}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+Buffer.from(e).toString("base64")+ot},Wu={setCwd:(e=yu())=>`${bt}50;CurrentDir=${e}${ot}`,annotation(e,t={}){let r=`${bt}1337;`,n=t.x!==void 0,i=t.y!==void 0;if((n||i)&&!(n&&i&&t.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replaceAll("|",""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+ot}},qr=(0,Qe.__toESM)(vu(),1);function St(e,t,{target:r="stdout",...n}={}){return qr.default[r]?Gi.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`}St.isSupported=qr.default.stdout;St.stderr=(e,t,r={})=>St(e,t,{target:"stderr",...r});St.stderr.isSupported=qr.default.stderr;function Ju(e){return St(e,e,{fallback:hu.underline})}});var Zi=ke((dv,Qi)=>{"use strict";X();var Br=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Ku=Object.getOwnPropertyNames,Xu=Object.prototype.hasOwnProperty,Yu=(e,t)=>{for(var r in t)Br(e,r,{get:t[r],enumerable:!0})},zu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ku(t))!Xu.call(e,i)&&i!==r&&Br(e,i,{get:()=>t[i],enumerable:!(n=Vu(t,i))||n.enumerable});return e},Qu=e=>zu(Br({},"__esModule",{value:!0}),e),Yi={};Yu(Yi,{binaryTargets:()=>zi,init_binaryTargets:()=>el});Qi.exports=Qu(Yi);var Zu=at(),zi,el=(0,Zu.__esm)({"src/binaryTargets.ts"(){zi=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"]}})});var es=ke(()=>{"use strict";X()});var fn=ke((wv,sa)=>{"use strict";X();var tl=Object.create,Zt=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,nl=Object.getOwnPropertyNames,il=Object.getPrototypeOf,sl=Object.prototype.hasOwnProperty,al=(e,t)=>{for(var r in t)Zt(e,r,{get:t[r],enumerable:!0})},ps=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nl(t))!sl.call(e,i)&&i!==r&&Zt(e,i,{get:()=>t[i],enumerable:!(n=rl(t,i))||n.enumerable});return e},Ve=(e,t,r)=>(r=e!=null?tl(il(e)):{},ps(t||!e||!e.__esModule?Zt(r,"default",{value:e,enumerable:!0}):r,e)),ol=e=>ps(Zt({},"__esModule",{value:!0}),e),hs={};al(hs,{execaNode:()=>uh,require_main:()=>Xl,require_tempy:()=>Ad});sa.exports=ol(hs);var D=at(),cl=require("buffer"),ul=Ve(require("path")),Vr=Ve(require("child_process")),ct=Ve(require("process")),Kt=Ve(require("process")),Pt=Ve(require("path")),ms=require("url"),ll=Ve(require("process")),fl=require("os"),dl=require("os"),pl=Ve(require("os")),hl=require("fs"),ml=require("child_process"),vs=require("fs"),vl=require("timers/promises"),gl=require("buffer"),yl=require("child_process"),_l=require("util"),bl=Ve(require("process")),Sl=(0,D.__commonJS)({"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(e,t){"use strict";t.exports=o,o.sync=c;var r=(0,D.__require)("fs");function n(a,s){var l=s.pathExt!==void 0?s.pathExt:process.env.PATHEXT;if(!l||(l=l.split(";"),l.indexOf("")!==-1))return!0;for(var d=0;d<l.length;d++){var v=l[d].toLowerCase();if(v&&a.substr(-v.length).toLowerCase()===v)return!0}return!1}function i(a,s,l){return!a.isSymbolicLink()&&!a.isFile()?!1:n(s,l)}function o(a,s,l){r.stat(a,function(d,v){l(d,d?!1:i(v,a,s))})}function c(a,s){return i(r.statSync(a),a,s)}}}),wl=(0,D.__commonJS)({"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(e,t){"use strict";t.exports=n,n.sync=i;var r=(0,D.__require)("fs");function n(a,s,l){r.stat(a,function(d,v){l(d,d?!1:o(v,s))})}function i(a,s){return o(r.statSync(a),s)}function o(a,s){return a.isFile()&&c(a,s)}function c(a,s){var l=a.mode,d=a.uid,v=a.gid,g=s.uid!==void 0?s.uid:process.getuid&&process.getuid(),x=s.gid!==void 0?s.gid:process.getgid&&process.getgid(),_=parseInt("100",8),E=parseInt("010",8),p=parseInt("001",8),y=_|E,u=l&p||l&E&&v===x||l&_&&d===g||l&y&&g===0;return u}}}),El=(0,D.__commonJS)({"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(e,t){"use strict";var r=(0,D.__require)("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=Sl():n=wl(),t.exports=i,i.sync=o;function i(c,a,s){if(typeof a=="function"&&(s=a,a={}),!s){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(l,d){i(c,a||{},function(v,g){v?d(v):l(g)})})}n(c,a||{},function(l,d){l&&(l.code==="EACCES"||a&&a.ignoreErrors)&&(l=null,d=!1),s(l,d)})}function o(c,a){try{return n.sync(c,a||{})}catch(s){if(a&&a.ignoreErrors||s.code==="EACCES")return!1;throw s}}}}),Pl=(0,D.__commonJS)({"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(e,t){"use strict";var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=(0,D.__require)("path"),i=r?";":":",o=El(),c=d=>Object.assign(new Error(`not found: ${d}`),{code:"ENOENT"}),a=(d,v)=>{let g=v.colon||i,x=d.match(/\//)||r&&d.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(v.path||process.env.PATH||"").split(g)],_=r?v.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",E=r?_.split(g):[""];return r&&d.indexOf(".")!==-1&&E[0]!==""&&E.unshift(""),{pathEnv:x,pathExt:E,pathExtExe:_}},s=(d,v,g)=>{typeof v=="function"&&(g=v,v={}),v||(v={});let{pathEnv:x,pathExt:_,pathExtExe:E}=a(d,v),p=[],y=f=>new Promise((m,h)=>{if(f===x.length)return v.all&&p.length?m(p):h(c(d));let O=x[f],b=/^".*"$/.test(O)?O.slice(1,-1):O,P=n.join(b,d),S=!b&&/^\.[\\\/]/.test(d)?d.slice(0,2)+P:P;m(u(S,f,0))}),u=(f,m,h)=>new Promise((O,b)=>{if(h===_.length)return O(y(m+1));let P=_[h];o(f+P,{pathExt:E},(S,R)=>{if(!S&&R)if(v.all)p.push(f+P);else return O(f+P);return O(u(f,m,h+1))})});return g?y(0).then(f=>g(null,f),g):y(0)},l=(d,v)=>{v=v||{};let{pathEnv:g,pathExt:x,pathExtExe:_}=a(d,v),E=[];for(let p=0;p<g.length;p++){let y=g[p],u=/^".*"$/.test(y)?y.slice(1,-1):y,f=n.join(u,d),m=!u&&/^\.[\\\/]/.test(d)?d.slice(0,2)+f:f;for(let h=0;h<x.length;h++){let O=m+x[h];try{if(o.sync(O,{pathExt:_}))if(v.all)E.push(O);else return O}catch{}}}if(v.all&&E.length)return E;if(v.nothrow)return null;throw c(d)};t.exports=s,s.sync=l}}),Al=(0,D.__commonJS)({"../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(e,t){"use strict";var r=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(c=>c.toUpperCase()==="PATH")||"Path"};t.exports=r,t.exports.default=r}}),Ol=(0,D.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(e,t){"use strict";var r=(0,D.__require)("path"),n=Pl(),i=Al();function o(a,s){let l=a.options.env||process.env,d=process.cwd(),v=a.options.cwd!=null,g=v&&process.chdir!==void 0&&!process.chdir.disabled;if(g)try{process.chdir(a.options.cwd)}catch{}let x;try{x=n.sync(a.command,{path:l[i({env:l})],pathExt:s?r.delimiter:void 0})}catch{}finally{g&&process.chdir(d)}return x&&(x=r.resolve(v?a.options.cwd:"",x)),x}function c(a){return o(a)||o(a,!0)}t.exports=c}}),xl=(0,D.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(e,t){"use strict";var r=/([()\][%!^"`<>&|;, *?])/g;function n(o){return o=o.replace(r,"^$1"),o}function i(o,c){return o=`${o}`,o=o.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),o=o.replace(/(?=(\\+?)?)\1$/,"$1$1"),o=`"${o}"`,o=o.replace(r,"^$1"),c&&(o=o.replace(r,"^$1")),o}t.exports.command=n,t.exports.argument=i}}),Tl=(0,D.__commonJS)({"../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(e,t){"use strict";t.exports=/^#!(.*)/}}),Rl=(0,D.__commonJS)({"../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(e,t){"use strict";var r=Tl();t.exports=(n="")=>{let i=n.match(r);if(!i)return null;let[o,c]=i[0].replace(/#! ?/,"").split(" "),a=o.split("/").pop();return a==="env"?c:c?`${a} ${c}`:a}}}),kl=(0,D.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(e,t){"use strict";var r=(0,D.__require)("fs"),n=Rl();function i(o){let a=Buffer.alloc(150),s;try{s=r.openSync(o,"r"),r.readSync(s,a,0,150,0),r.closeSync(s)}catch{}return n(a.toString())}t.exports=i}}),Cl=(0,D.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(e,t){"use strict";var r=(0,D.__require)("path"),n=Ol(),i=xl(),o=kl(),c=process.platform==="win32",a=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function l(g){g.file=n(g);let x=g.file&&o(g.file);return x?(g.args.unshift(g.file),g.command=x,n(g)):g.file}function d(g){if(!c)return g;let x=l(g),_=!a.test(x);if(g.options.forceShell||_){let E=s.test(x);g.command=r.normalize(g.command),g.command=i.command(g.command),g.args=g.args.map(y=>i.argument(y,E));let p=[g.command].concat(g.args).join(" ");g.args=["/d","/s","/c",`"${p}"`],g.command=process.env.comspec||"cmd.exe",g.options.windowsVerbatimArguments=!0}return g}function v(g,x,_){x&&!Array.isArray(x)&&(_=x,x=null),x=x?x.slice(0):[],_=Object.assign({},_);let E={command:g,args:x,options:_,file:void 0,original:{command:g,args:x}};return _.shell?E:d(E)}t.exports=v}}),Dl=(0,D.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(e,t){"use strict";var r=process.platform==="win32";function n(a,s){return Object.assign(new Error(`${s} ${a.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${s} ${a.command}`,path:a.command,spawnargs:a.args})}function i(a,s){if(!r)return;let l=a.emit;a.emit=function(d,v){if(d==="exit"){let g=o(v,s);if(g)return l.call(a,"error",g)}return l.apply(a,arguments)}}function o(a,s){return r&&a===1&&!s.file?n(s.original,"spawn"):null}function c(a,s){return r&&a===1&&!s.file?n(s.original,"spawnSync"):null}t.exports={hookChildProcess:i,verifyENOENT:o,verifyENOENTSync:c,notFoundError:n}}}),jl=(0,D.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(e,t){"use strict";var r=(0,D.__require)("child_process"),n=Cl(),i=Dl();function o(a,s,l){let d=n(a,s,l),v=r.spawn(d.command,d.args,d.options);return i.hookChildProcess(v,d),v}function c(a,s,l){let d=n(a,s,l),v=r.spawnSync(d.command,d.args,d.options);return v.error=v.error||i.verifyENOENTSync(v.status,d),v}t.exports=o,t.exports.spawn=o,t.exports.sync=c,t.exports._parse=n,t.exports._enoent=i}}),Il=(0,D.__commonJS)({"../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(e,t){"use strict";var{PassThrough:r}=(0,D.__require)("stream");t.exports=function(){var n=[],i=new r({objectMode:!0});return i.setMaxListeners(0),i.add=o,i.isEmpty=c,i.on("unpipe",a),Array.prototype.slice.call(arguments).forEach(o),i;function o(s){return Array.isArray(s)?(s.forEach(o),this):(n.push(s),s.once("end",a.bind(null,s)),s.once("error",i.emit.bind(i,"error")),s.pipe(i,{end:!1}),this)}function c(){return n.length==0}function a(s){n=n.filter(function(l){return l!==s}),!n.length&&i.readable&&i.end()}}}}),$l=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/promisify.js"(e,t){"use strict";t.exports=r=>function(){let n=arguments.length,i=new Array(n);for(let o=0;o<n;o+=1)i[o]=arguments[o];return new Promise((o,c)=>{i.push((a,s)=>{a?c(a):o(s)}),r.apply(null,i)})}}}),Te=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/fs.js"(e,t){"use strict";var r=(0,D.__require)("fs"),n=$l(),i=a=>[typeof r[a]=="function",!a.match(/Sync$/),!a.match(/^[A-Z]/),!a.match(/^create/),!a.match(/^(un)?watch/)].every(Boolean),o=a=>{let s=r[a];return n(s)},c=()=>{let a={};return Object.keys(r).forEach(s=>{i(s)?s==="exists"?a.exists=()=>{throw new Error("fs.exists() is deprecated")}:a[s]=o(s):a[s]=r[s]}),a};t.exports=c()}}),we=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/validate.js"(e,t){"use strict";var r=g=>{let x=_=>["a","e","i","o","u"].indexOf(_[0])!==-1?`an ${_}`:`a ${_}`;return g.map(x).join(" or ")},n=g=>/array of /.test(g),i=g=>g.split(" of ")[1],o=g=>n(g)?o(i(g)):["string","number","boolean","array","object","buffer","null","undefined","function"].some(x=>x===g),c=g=>g===null?"null":Array.isArray(g)?"array":Buffer.isBuffer(g)?"buffer":typeof g,a=(g,x,_)=>_.indexOf(g)===x,s=g=>{let x=c(g),_;return x==="array"&&(_=g.map(E=>c(E)).filter(a),x+=` of ${_.join(", ")}`),x},l=(g,x)=>{let _=i(x);return c(g)!=="array"?!1:g.every(E=>c(E)===_)},d=(g,x,_,E)=>{if(!E.some(y=>{if(!o(y))throw new Error(`Unknown type "${y}"`);return n(y)?l(_,y):y===c(_)}))throw new Error(`Argument "${x}" passed to ${g} must be ${r(E)}. Received ${s(_)}`)},v=(g,x,_,E)=>{_!==void 0&&(d(g,x,_,["object"]),Object.keys(_).forEach(p=>{let y=`${x}.${p}`;if(E[p]!==void 0)d(g,y,_[p],E[p]);else throw new Error(`Unknown argument "${y}" passed to ${g}`)}))};t.exports={argument:d,options:v}}}),Xr=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/mode.js"(e){"use strict";e.normalizeFileMode=t=>{let r;return typeof t=="number"?r=t.toString(8):r=t,r.substring(r.length-3)}}}),Yr=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/remove.js"(e){"use strict";var t=Te(),r=we(),n=(c,a)=>{let s=`${c}([path])`;r.argument(s,"path",a,["string","undefined"])},i=c=>{t.rmSync(c,{recursive:!0,force:!0,maxRetries:3})},o=c=>t.rm(c,{recursive:!0,force:!0,maxRetries:3});e.validateInput=n,e.sync=i,e.async=o}}),lt=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/dir.js"(e){"use strict";var t=(0,D.__require)("path"),r=Te(),n=Xr(),i=we(),o=Yr(),c=(u,f,m)=>{let h=`${u}(path, [criteria])`;i.argument(h,"path",f,["string"]),i.options(h,"criteria",m,{empty:["boolean"],mode:["string","number"]})},a=u=>{let f=u||{};return typeof f.empty!="boolean"&&(f.empty=!1),f.mode!==void 0&&(f.mode=n.normalizeFileMode(f.mode)),f},s=u=>new Error(`Path ${u} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),l=u=>{let f;try{f=r.statSync(u)}catch(m){if(m.code!=="ENOENT")throw m}if(f&&!f.isDirectory())throw s(u);return f},d=(u,f)=>{let m=f||{};try{r.mkdirSync(u,m.mode)}catch(h){if(h.code==="ENOENT")d(t.dirname(u),m),r.mkdirSync(u,m.mode);else if(h.code!=="EEXIST")throw h}},v=(u,f,m)=>{let h=()=>{let b=n.normalizeFileMode(f.mode);m.mode!==void 0&&m.mode!==b&&r.chmodSync(u,m.mode)},O=()=>{m.empty&&r.readdirSync(u).forEach(P=>{o.sync(t.resolve(u,P))})};h(),O()},g=(u,f)=>{let m=a(f),h=l(u);h?v(u,h,m):d(u,m)},x=u=>new Promise((f,m)=>{r.stat(u).then(h=>{h.isDirectory()?f(h):m(s(u))}).catch(h=>{h.code==="ENOENT"?f(void 0):m(h)})}),_=u=>new Promise((f,m)=>{r.readdir(u).then(h=>{let O=b=>{if(b===h.length)f();else{let P=t.resolve(u,h[b]);o.async(P).then(()=>{O(b+1)})}};O(0)}).catch(m)}),E=(u,f,m)=>new Promise((h,O)=>{let b=()=>{let S=n.normalizeFileMode(f.mode);return m.mode!==void 0&&m.mode!==S?r.chmod(u,m.mode):Promise.resolve()},P=()=>m.empty?_(u):Promise.resolve();b().then(P).then(h,O)}),p=(u,f)=>{let m=f||{};return new Promise((h,O)=>{r.mkdir(u,m.mode).then(h).catch(b=>{b.code==="ENOENT"?p(t.dirname(u),m).then(()=>r.mkdir(u,m.mode)).then(h).catch(P=>{P.code==="EEXIST"?h():O(P)}):b.code==="EEXIST"?h():O(b)})})},y=(u,f)=>new Promise((m,h)=>{let O=a(f);x(u).then(b=>b!==void 0?E(u,b,O):p(u,O)).then(m,h)});e.validateInput=c,e.sync=g,e.createSync=d,e.async=y,e.createAsync=p}}),er=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/write.js"(e){"use strict";var t=(0,D.__require)("path"),r=Te(),n=we(),i=lt(),o=(_,E,p,y)=>{let u=`${_}(path, data, [options])`;n.argument(u,"path",E,["string"]),n.argument(u,"data",p,["string","buffer","object","array"]),n.options(u,"options",y,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},c=".__new__",a=(_,E)=>{let p=E;return typeof p!="number"&&(p=2),typeof _=="object"&&!Buffer.isBuffer(_)&&_!==null?JSON.stringify(_,null,p):_},s=(_,E,p)=>{try{r.writeFileSync(_,E,p)}catch(y){if(y.code==="ENOENT")i.createSync(t.dirname(_)),r.writeFileSync(_,E,p);else throw y}},l=(_,E,p)=>{s(_+c,E,p),r.renameSync(_+c,_)},d=(_,E,p)=>{let y=p||{},u=a(E,y.jsonIndent),f=s;y.atomic&&(f=l),f(_,u,{mode:y.mode})},v=(_,E,p)=>new Promise((y,u)=>{r.writeFile(_,E,p).then(y).catch(f=>{f.code==="ENOENT"?i.createAsync(t.dirname(_)).then(()=>r.writeFile(_,E,p)).then(y,u):u(f)})}),g=(_,E,p)=>new Promise((y,u)=>{v(_+c,E,p).then(()=>r.rename(_+c,_)).then(y,u)}),x=(_,E,p)=>{let y=p||{},u=a(E,y.jsonIndent),f=v;return y.atomic&&(f=g),f(_,u,{mode:y.mode})};e.validateInput=o,e.sync=d,e.async=x}}),Ll=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/append.js"(e){"use strict";var t=Te(),r=er(),n=we(),i=(a,s,l,d)=>{let v=`${a}(path, data, [options])`;n.argument(v,"path",s,["string"]),n.argument(v,"data",l,["string","buffer"]),n.options(v,"options",d,{mode:["string","number"]})},o=(a,s,l)=>{try{t.appendFileSync(a,s,l)}catch(d){if(d.code==="ENOENT")r.sync(a,s,l);else throw d}},c=(a,s,l)=>new Promise((d,v)=>{t.appendFile(a,s,l).then(d).catch(g=>{g.code==="ENOENT"?r.async(a,s,l).then(d,v):v(g)})});e.validateInput=i,e.sync=o,e.async=c}}),Nl=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/file.js"(e){"use strict";var t=Te(),r=Xr(),n=we(),i=er(),o=(p,y,u)=>{let f=`${p}(path, [criteria])`;n.argument(f,"path",y,["string"]),n.options(f,"criteria",u,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},c=p=>{let y=p||{};return y.mode!==void 0&&(y.mode=r.normalizeFileMode(y.mode)),y},a=p=>new Error(`Path ${p} exists but is not a file. Halting jetpack.file() call for safety reasons.`),s=p=>{let y;try{y=t.statSync(p)}catch(u){if(u.code!=="ENOENT")throw u}if(y&&!y.isFile())throw a(p);return y},l=(p,y,u)=>{let f=r.normalizeFileMode(y.mode),m=()=>u.content!==void 0?(i.sync(p,u.content,{mode:f,jsonIndent:u.jsonIndent}),!0):!1,h=()=>{u.mode!==void 0&&u.mode!==f&&t.chmodSync(p,u.mode)};m()||h()},d=(p,y)=>{let u="";y.content!==void 0&&(u=y.content),i.sync(p,u,{mode:y.mode,jsonIndent:y.jsonIndent})},v=(p,y)=>{let u=c(y),f=s(p);f!==void 0?l(p,f,u):d(p,u)},g=p=>new Promise((y,u)=>{t.stat(p).then(f=>{f.isFile()?y(f):u(a(p))}).catch(f=>{f.code==="ENOENT"?y(void 0):u(f)})}),x=(p,y,u)=>{let f=r.normalizeFileMode(y.mode),m=()=>new Promise((O,b)=>{u.content!==void 0?i.async(p,u.content,{mode:f,jsonIndent:u.jsonIndent}).then(()=>{O(!0)}).catch(b):O(!1)}),h=()=>{if(u.mode!==void 0&&u.mode!==f)return t.chmod(p,u.mode)};return m().then(O=>{if(!O)return h()})},_=(p,y)=>{let u="";return y.content!==void 0&&(u=y.content),i.async(p,u,{mode:y.mode,jsonIndent:y.jsonIndent})},E=(p,y)=>new Promise((u,f)=>{let m=c(y);g(p).then(h=>h!==void 0?x(p,h,m):_(p,m)).then(u,f)});e.validateInput=o,e.sync=v,e.async=E}}),At=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/inspect.js"(e){"use strict";var t=(0,D.__require)("crypto"),r=(0,D.__require)("path"),n=Te(),i=we(),o=["md5","sha1","sha256","sha512"],c=["report","follow"],a=(E,p,y)=>{let u=`${E}(path, [options])`;if(i.argument(u,"path",p,["string"]),i.options(u,"options",y,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),y&&y.checksum!==void 0&&o.indexOf(y.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${u} must have one of values: ${o.join(", ")}`);if(y&&y.symlinks!==void 0&&c.indexOf(y.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${u} must have one of values: ${c.join(", ")}`)},s=(E,p,y)=>{let u={};return u.name=r.basename(E),y.isFile()?(u.type="file",u.size=y.size):y.isDirectory()?u.type="dir":y.isSymbolicLink()?u.type="symlink":u.type="other",p.mode&&(u.mode=y.mode),p.times&&(u.accessTime=y.atime,u.modifyTime=y.mtime,u.changeTime=y.ctime,u.birthTime=y.birthtime),p.absolutePath&&(u.absolutePath=E),u},l=(E,p)=>{let y=t.createHash(p),u=n.readFileSync(E);return y.update(u),y.digest("hex")},d=(E,p,y)=>{p.type==="file"&&y.checksum?p[y.checksum]=l(E,y.checksum):p.type==="symlink"&&(p.pointsAt=n.readlinkSync(E))},v=(E,p)=>{let y=n.lstatSync,u,f=p||{};f.symlinks==="follow"&&(y=n.statSync);try{u=y(E)}catch(h){if(h.code==="ENOENT")return;throw h}let m=s(E,f,u);return d(E,m,f),m},g=(E,p)=>new Promise((y,u)=>{let f=t.createHash(p),m=n.createReadStream(E);m.on("data",h=>{f.update(h)}),m.on("end",()=>{y(f.digest("hex"))}),m.on("error",u)}),x=(E,p,y)=>p.type==="file"&&y.checksum?g(E,y.checksum).then(u=>(p[y.checksum]=u,p)):p.type==="symlink"?n.readlink(E).then(u=>(p.pointsAt=u,p)):Promise.resolve(p),_=(E,p)=>new Promise((y,u)=>{let f=n.lstat,m=p||{};m.symlinks==="follow"&&(f=n.stat),f(E).then(h=>{let O=s(E,m,h);x(E,O,m).then(y,u)}).catch(h=>{h.code==="ENOENT"?y(void 0):u(h)})});e.supportedChecksumAlgorithms=o,e.symlinkOptions=c,e.validateInput=a,e.sync=v,e.async=_}}),zr=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/list.js"(e){"use strict";var t=Te(),r=we(),n=(c,a)=>{let s=`${c}(path)`;r.argument(s,"path",a,["string","undefined"])},i=c=>{try{return t.readdirSync(c)}catch(a){if(a.code==="ENOENT")return;throw a}},o=c=>new Promise((a,s)=>{t.readdir(c).then(l=>{a(l)}).catch(l=>{l.code==="ENOENT"?a(void 0):s(l)})});e.validateInput=n,e.sync=i,e.async=o}}),Qr=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/tree_walker.js"(e){"use strict";var t=(0,D.__require)("fs"),r=(0,D.__require)("path"),n=At(),i=zr(),o=l=>l.isDirectory()?"dir":l.isFile()?"file":l.isSymbolicLink()?"symlink":"other",c=(l,d,v)=>{d.maxLevelsDeep===void 0&&(d.maxLevelsDeep=1/0);let g=d.inspectOptions!==void 0;d.symlinks&&(d.inspectOptions===void 0?d.inspectOptions={symlinks:d.symlinks}:d.inspectOptions.symlinks=d.symlinks);let x=(E,p)=>{t.readdirSync(E,{withFileTypes:!0}).forEach(y=>{let u=typeof y=="string",f;u?f=r.join(E,y):f=r.join(E,y.name);let m;if(g)m=n.sync(f,d.inspectOptions);else if(u){let h=n.sync(f,d.inspectOptions);m={name:h.name,type:h.type}}else{let h=o(y);if(h==="symlink"&&d.symlinks==="follow"){let O=t.statSync(f);m={name:y.name,type:o(O)}}else m={name:y.name,type:h}}m!==void 0&&(v(f,m),m.type==="dir"&&p<d.maxLevelsDeep&&x(f,p+1))})},_=n.sync(l,d.inspectOptions);_?(g?v(l,_):v(l,{name:_.name,type:_.type}),_.type==="dir"&&x(l,1)):v(l,void 0)},a=5,s=(l,d,v,g)=>{d.maxLevelsDeep===void 0&&(d.maxLevelsDeep=1/0);let x=d.inspectOptions!==void 0;d.symlinks&&(d.inspectOptions===void 0?d.inspectOptions={symlinks:d.symlinks}:d.inspectOptions.symlinks=d.symlinks);let _=[],E=0,p=()=>{if(_.length===0&&E===0)g();else if(_.length>0&&E<a){let m=_.pop();E+=1,m()}},y=m=>{_.push(m),p()},u=()=>{E-=1,p()},f=(m,h)=>{let O=(b,P)=>{P.type==="dir"&&h<d.maxLevelsDeep&&f(b,h+1)};y(()=>{t.readdir(m,{withFileTypes:!0},(b,P)=>{b?g(b):(P.forEach(S=>{let R=typeof S=="string",T;if(R?T=r.join(m,S):T=r.join(m,S.name),x||R)y(()=>{n.async(T,d.inspectOptions).then(C=>{C!==void 0&&(x?v(T,C):v(T,{name:C.name,type:C.type}),O(T,C)),u()}).catch(C=>{g(C)})});else{let C=o(S);if(C==="symlink"&&d.symlinks==="follow")y(()=>{t.stat(T,(A,w)=>{if(A)g(A);else{let k={name:S.name,type:o(w)};v(T,k),O(T,k),u()}})});else{let A={name:S.name,type:C};v(T,A),O(T,A)}}}),u())})})};n.async(l,d.inspectOptions).then(m=>{m?(x?v(l,m):v(l,{name:m.name,type:m.type}),m.type==="dir"?f(l,1):g()):(v(l,void 0),g())}).catch(m=>{g(m)})};e.sync=c,e.async=s}}),Ml=(0,D.__commonJS)({"../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.js"(e,t){"use strict";var r=typeof process=="object"&&process&&process.platform==="win32";t.exports=r?{sep:"\\"}:{sep:"/"}}}),gs=(0,D.__commonJS)({"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(e,t){"use strict";t.exports=r;function r(o,c,a){o instanceof RegExp&&(o=n(o,a)),c instanceof RegExp&&(c=n(c,a));var s=i(o,c,a);return s&&{start:s[0],end:s[1],pre:a.slice(0,s[0]),body:a.slice(s[0]+o.length,s[1]),post:a.slice(s[1]+c.length)}}function n(o,c){var a=c.match(o);return a?a[0]:null}r.range=i;function i(o,c,a){var s,l,d,v,g,x=a.indexOf(o),_=a.indexOf(c,x+1),E=x;if(x>=0&&_>0){if(o===c)return[x,_];for(s=[],d=a.length;E>=0&&!g;)E==x?(s.push(E),x=a.indexOf(o,E+1)):s.length==1?g=[s.pop(),_]:(l=s.pop(),l<d&&(d=l,v=_),_=a.indexOf(c,E+1)),E=x<_&&x>=0?x:_;s.length&&(g=[d,v])}return g}}}),Fl=(0,D.__commonJS)({"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(e,t){"use strict";var r=gs();t.exports=g;var n="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function s(u){return parseInt(u,10)==u?parseInt(u,10):u.charCodeAt(0)}function l(u){return u.split("\\\\").join(n).split("\\{").join(i).split("\\}").join(o).split("\\,").join(c).split("\\.").join(a)}function d(u){return u.split(n).join("\\").split(i).join("{").split(o).join("}").split(c).join(",").split(a).join(".")}function v(u){if(!u)return[""];var f=[],m=r("{","}",u);if(!m)return u.split(",");var h=m.pre,O=m.body,b=m.post,P=h.split(",");P[P.length-1]+="{"+O+"}";var S=v(b);return b.length&&(P[P.length-1]+=S.shift(),P.push.apply(P,S)),f.push.apply(f,P),f}function g(u){return u?(u.substr(0,2)==="{}"&&(u="\\{\\}"+u.substr(2)),y(l(u),!0).map(d)):[]}function x(u){return"{"+u+"}"}function _(u){return/^-?0\d/.test(u)}function E(u,f){return u<=f}function p(u,f){return u>=f}function y(u,f){var m=[],h=r("{","}",u);if(!h)return[u];var O=h.pre,b=h.post.length?y(h.post,!1):[""];if(/\$$/.test(h.pre))for(var P=0;P<b.length;P++){var S=O+"{"+h.body+"}"+b[P];m.push(S)}else{var R=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(h.body),T=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(h.body),C=R||T,A=h.body.indexOf(",")>=0;if(!C&&!A)return h.post.match(/,.*\}/)?(u=h.pre+"{"+h.body+o+h.post,y(u)):[u];var w;if(C)w=h.body.split(/\.\./);else if(w=v(h.body),w.length===1&&(w=y(w[0],!1).map(x),w.length===1))return b.map(function(M){return h.pre+w[0]+M});var k;if(C){var L=s(w[0]),q=s(w[1]),j=Math.max(w[0].length,w[1].length),F=w.length==3?Math.abs(s(w[2])):1,B=E,N=q<L;N&&(F*=-1,B=p);var H=w.some(_);k=[];for(var $=L;B($,q);$+=F){var V;if(T)V=String.fromCharCode($),V==="\\"&&(V="");else if(V=String($),H){var ae=j-V.length;if(ae>0){var K=new Array(ae+1).join("0");$<0?V="-"+K+V.slice(1):V=K+V}}k.push(V)}}else{k=[];for(var I=0;I<w.length;I++)k.push.apply(k,y(w[I],!1))}for(var I=0;I<k.length;I++)for(var P=0;P<b.length;P++){var S=O+k[I]+b[P];(!f||C||S)&&m.push(S)}}return m}}}),ql=(0,D.__commonJS)({"../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.js"(e,t){"use strict";var r=t.exports=(b,P,S={})=>(u(P),!S.nocomment&&P.charAt(0)==="#"?!1:new O(P,S).match(b));t.exports=r;var n=Ml();r.sep=n.sep;var i=Symbol("globstar **");r.GLOBSTAR=i;var o=Fl(),c={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",s=a+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",d="(?:(?!(?:\\/|^)\\.).)*?",v=b=>b.split("").reduce((P,S)=>(P[S]=!0,P),{}),g=v("().*{}+?[]^$\\!"),x=v("[.("),_=/\/+/;r.filter=(b,P={})=>(S,R,T)=>r(S,b,P);var E=(b,P={})=>{let S={};return Object.keys(b).forEach(R=>S[R]=b[R]),Object.keys(P).forEach(R=>S[R]=P[R]),S};r.defaults=b=>{if(!b||typeof b!="object"||!Object.keys(b).length)return r;let P=r,S=(R,T,C)=>P(R,T,E(b,C));return S.Minimatch=class extends P.Minimatch{constructor(T,C){super(T,E(b,C))}},S.Minimatch.defaults=R=>P.defaults(E(b,R)).Minimatch,S.filter=(R,T)=>P.filter(R,E(b,T)),S.defaults=R=>P.defaults(E(b,R)),S.makeRe=(R,T)=>P.makeRe(R,E(b,T)),S.braceExpand=(R,T)=>P.braceExpand(R,E(b,T)),S.match=(R,T,C)=>P.match(R,T,E(b,C)),S},r.braceExpand=(b,P)=>p(b,P);var p=(b,P={})=>(u(b),P.nobrace||!/\{(?:(?!\{).)*\}/.test(b)?[b]:o(b)),y=1024*64,u=b=>{if(typeof b!="string")throw new TypeError("invalid pattern");if(b.length>y)throw new TypeError("pattern is too long")},f=Symbol("subparse");r.makeRe=(b,P)=>new O(b,P||{}).makeRe(),r.match=(b,P,S={})=>{let R=new O(P,S);return b=b.filter(T=>R.match(T)),R.options.nonull&&!b.length&&b.push(P),b};var m=b=>b.replace(/\\(.)/g,"$1"),h=b=>b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),O=class{constructor(b,P){u(b),P||(P={}),this.options=P,this.set=[],this.pattern=b,this.windowsPathsNoEscape=!!P.windowsPathsNoEscape||P.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!P.partial,this.make()}debug(){}make(){let b=this.pattern,P=this.options;if(!P.nocomment&&b.charAt(0)==="#"){this.comment=!0;return}if(!b){this.empty=!0;return}this.parseNegate();let S=this.globSet=this.braceExpand();P.debug&&(this.debug=(...R)=>console.error(...R)),this.debug(this.pattern,S),S=this.globParts=S.map(R=>R.split(_)),this.debug(this.pattern,S),S=S.map((R,T,C)=>R.map(this.parse,this)),this.debug(this.pattern,S),S=S.filter(R=>R.indexOf(!1)===-1),this.debug(this.pattern,S),this.set=S}parseNegate(){if(this.options.nonegate)return;let b=this.pattern,P=!1,S=0;for(let R=0;R<b.length&&b.charAt(R)==="!";R++)P=!P,S++;S&&(this.pattern=b.substr(S)),this.negate=P}matchOne(b,P,S){var R=this.options;this.debug("matchOne",{this:this,file:b,pattern:P}),this.debug("matchOne",b.length,P.length);for(var T=0,C=0,A=b.length,w=P.length;T<A&&C<w;T++,C++){this.debug("matchOne loop");var k=P[C],L=b[T];if(this.debug(P,k,L),k===!1)return!1;if(k===i){this.debug("GLOBSTAR",[P,k,L]);var q=T,j=C+1;if(j===w){for(this.debug("** at the end");T<A;T++)if(b[T]==="."||b[T]===".."||!R.dot&&b[T].charAt(0)===".")return!1;return!0}for(;q<A;){var F=b[q];if(this.debug(`
5
+ globstar while`,b,q,P,j,F),this.matchOne(b.slice(q),P.slice(j),S))return this.debug("globstar found match!",q,A,F),!0;if(F==="."||F===".."||!R.dot&&F.charAt(0)==="."){this.debug("dot detected!",b,q,P,j);break}this.debug("globstar swallow a segment, and continue"),q++}return!!(S&&(this.debug(`
6
+ >>> no match, partial?`,b,q,P,j),q===A))}var B;if(typeof k=="string"?(B=L===k,this.debug("string match",k,L,B)):(B=L.match(k),this.debug("pattern match",k,L,B)),!B)return!1}if(T===A&&C===w)return!0;if(T===A)return S;if(C===w)return T===A-1&&b[T]==="";throw new Error("wtf?")}braceExpand(){return p(this.pattern,this.options)}parse(b,P){u(b);let S=this.options;if(b==="**")if(S.noglobstar)b="*";else return i;if(b==="")return"";let R="",T=!!S.nocase,C=!1,A=[],w=[],k,L=!1,q=-1,j=-1,F,B,N,H=b.charAt(0)==="."?"":S.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",$=()=>{if(k){switch(k){case"*":R+=s,T=!0;break;case"?":R+=a,T=!0;break;default:R+="\\"+k;break}this.debug("clearStateChar %j %j",k,R),k=!1}};for(let K=0,I;K<b.length&&(I=b.charAt(K));K++){if(this.debug("%s %s %s %j",b,K,R,I),C){if(I==="/")return!1;g[I]&&(R+="\\"),R+=I,C=!1;continue}switch(I){case"/":return!1;case"\\":$(),C=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",b,K,R,I),L){this.debug(" in class"),I==="!"&&K===j+1&&(I="^"),R+=I;continue}this.debug("call clearStateChar %j",k),$(),k=I,S.noext&&$();continue;case"(":if(L){R+="(";continue}if(!k){R+="\\(";continue}A.push({type:k,start:K-1,reStart:R.length,open:c[k].open,close:c[k].close}),R+=k==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",k,R),k=!1;continue;case")":if(L||!A.length){R+="\\)";continue}$(),T=!0,B=A.pop(),R+=B.close,B.type==="!"&&w.push(B),B.reEnd=R.length;continue;case"|":if(L||!A.length){R+="\\|";continue}$(),R+="|";continue;case"[":if($(),L){R+="\\"+I;continue}L=!0,j=K,q=R.length,R+=I;continue;case"]":if(K===j+1||!L){R+="\\"+I;continue}F=b.substring(j+1,K);try{RegExp("["+F+"]")}catch{N=this.parse(F,f),R=R.substr(0,q)+"\\["+N[0]+"\\]",T=T||N[1],L=!1;continue}T=!0,L=!1,R+=I;continue;default:$(),g[I]&&!(I==="^"&&L)&&(R+="\\"),R+=I;break}}for(L&&(F=b.substr(j+1),N=this.parse(F,f),R=R.substr(0,q)+"\\["+N[0],T=T||N[1]),B=A.pop();B;B=A.pop()){let K;K=R.slice(B.reStart+B.open.length),this.debug("setting tail",R,B),K=K.replace(/((?:\\{2}){0,64})(\\?)\|/g,(M,G,W)=>(W||(W="\\"),G+G+W+"|")),this.debug(`tail=%j
7
+ %s`,K,K,B,R);let I=B.type==="*"?s:B.type==="?"?a:"\\"+B.type;T=!0,R=R.slice(0,B.reStart)+I+"\\("+K}$(),C&&(R+="\\\\");let V=x[R.charAt(0)];for(let K=w.length-1;K>-1;K--){let I=w[K],M=R.slice(0,I.reStart),G=R.slice(I.reStart,I.reEnd-8),W=R.slice(I.reEnd),re=R.slice(I.reEnd-8,I.reEnd)+W,ie=M.split("(").length-1,Y=W;for(let ne=0;ne<ie;ne++)Y=Y.replace(/\)[+*?]?/,"");W=Y;let Q=W===""&&P!==f?"$":"";R=M+G+W+Q+re}if(R!==""&&T&&(R="(?=.)"+R),V&&(R=H+R),P===f)return[R,T];if(!T)return m(b);let ae=S.nocase?"i":"";try{return Object.assign(new RegExp("^"+R+"$",ae),{_glob:b,_src:R})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let b=this.set;if(!b.length)return this.regexp=!1,this.regexp;let P=this.options,S=P.noglobstar?s:P.dot?l:d,R=P.nocase?"i":"",T=b.map(C=>(C=C.map(A=>typeof A=="string"?h(A):A===i?i:A._src).reduce((A,w)=>(A[A.length-1]===i&&w===i||A.push(w),A),[]),C.forEach((A,w)=>{A!==i||C[w-1]===i||(w===0?C.length>1?C[w+1]="(?:\\/|"+S+"\\/)?"+C[w+1]:C[w]=S:w===C.length-1?C[w-1]+="(?:\\/|"+S+")?":(C[w-1]+="(?:\\/|\\/"+S+"\\/)"+C[w+1],C[w+1]=i))}),C.filter(A=>A!==i).join("/"))).join("|");T="^(?:"+T+")$",this.negate&&(T="^(?!"+T+").*$");try{this.regexp=new RegExp(T,R)}catch{this.regexp=!1}return this.regexp}match(b,P=this.partial){if(this.debug("match",b,this.pattern),this.comment)return!1;if(this.empty)return b==="";if(b==="/"&&P)return!0;let S=this.options;n.sep!=="/"&&(b=b.split(n.sep).join("/")),b=b.split(_),this.debug(this.pattern,"split",b);let R=this.set;this.debug(this.pattern,"set",R);let T;for(let C=b.length-1;C>=0&&(T=b[C],!T);C--);for(let C=0;C<R.length;C++){let A=R[C],w=b;if(S.matchBase&&A.length===1&&(w=[T]),this.matchOne(w,A,P))return S.flipNegate?!0:!this.negate}return S.flipNegate?!1:this.negate}static defaults(b){return r.defaults(b).Minimatch}};r.Minimatch=O}}),ys=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/matcher.js"(e){"use strict";var t=ql().Minimatch,r=(n,i)=>{let o=i.indexOf("/")!==-1,c=/^!?\//.test(i),a=/^!/.test(i),s;if(!c&&o){let l=i.replace(/^!/,"").replace(/^\.\//,"");return/\/$/.test(n)?s="":s="/",a?`!${n}${s}${l}`:`${n}${s}${l}`}return i};e.create=(n,i,o)=>{let c;typeof i=="string"?c=[i]:c=i;let a=c.map(l=>r(n,l)).map(l=>new t(l,{matchBase:!0,nocomment:!0,nocase:o||!1,dot:!0,windowsPathsNoEscape:!0}));return l=>{let d="matching",v=!1,g,x;for(x=0;x<a.length;x+=1){if(g=a[x],g.negate&&(d="negation",x===0&&(v=!0)),d==="negation"&&v&&!g.match(l))return!1;d==="matching"&&!v&&(v=g.match(l))}return v}}}}),Bl=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/find.js"(e){"use strict";var t=(0,D.__require)("path"),r=Qr(),n=At(),i=ys(),o=we(),c=(E,p,y)=>{let u=`${E}([path], options)`;o.argument(u,"path",p,["string"]),o.options(u,"options",y,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},a=E=>{let p=E||{};return p.matching===void 0&&(p.matching="*"),p.files===void 0&&(p.files=!0),p.ignoreCase===void 0&&(p.ignoreCase=!1),p.directories===void 0&&(p.directories=!1),p.recursive===void 0&&(p.recursive=!0),p},s=(E,p)=>E.map(y=>t.relative(p,y)),l=E=>{let p=new Error(`Path you want to find stuff in doesn't exist ${E}`);return p.code="ENOENT",p},d=E=>{let p=new Error(`Path you want to find stuff in must be a directory ${E}`);return p.code="ENOTDIR",p},v=(E,p)=>{let y=[],u=i.create(E,p.matching,p.ignoreCase),f=1/0;return p.recursive===!1&&(f=1),r.sync(E,{maxLevelsDeep:f,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(m,h)=>{h&&m!==E&&u(m)&&(h.type==="file"&&p.files===!0||h.type==="dir"&&p.directories===!0)&&(p.filter?p.filter(h)&&y.push(m):y.push(m))}),y.sort(),s(y,p.cwd)},g=(E,p)=>{let y=n.sync(E,{symlinks:"follow"});if(y===void 0)throw l(E);if(y.type!=="dir")throw d(E);return v(E,a(p))},x=(E,p)=>new Promise((y,u)=>{let f=[],m=i.create(E,p.matching,p.ignoreCase),h=1/0;p.recursive===!1&&(h=1);let O=0,b=!1,P=()=>{b&&O===0&&(f.sort(),y(s(f,p.cwd)))};r.async(E,{maxLevelsDeep:h,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(S,R)=>{if(R&&S!==E&&m(S)&&(R.type==="file"&&p.files===!0||R.type==="dir"&&p.directories===!0))if(p.filter){let C=p.filter(R);typeof C.then=="function"?(O+=1,C.then(w=>{w&&f.push(S),O-=1,P()}).catch(w=>{u(w)})):C&&f.push(S)}else f.push(S)},S=>{S?u(S):(b=!0,P())})}),_=(E,p)=>n.async(E,{symlinks:"follow"}).then(y=>{if(y===void 0)throw l(E);if(y.type!=="dir")throw d(E);return x(E,a(p))});e.validateInput=c,e.sync=g,e.async=_}}),Hl=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/inspect_tree.js"(e){"use strict";var t=(0,D.__require)("crypto"),r=(0,D.__require)("path"),n=At(),i=zr(),o=we(),c=Qr(),a=(_,E,p)=>{let y=`${_}(path, [options])`;if(o.argument(y,"path",E,["string"]),o.options(y,"options",p,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),p&&p.checksum!==void 0&&n.supportedChecksumAlgorithms.indexOf(p.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${y} must have one of values: ${n.supportedChecksumAlgorithms.join(", ")}`);if(p&&p.symlinks!==void 0&&n.symlinkOptions.indexOf(p.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${y} must have one of values: ${n.symlinkOptions.join(", ")}`)},s=(_,E)=>_===void 0?".":_.relativePath+"/"+E.name,l=(_,E)=>{let p=t.createHash(E);return _.forEach(y=>{p.update(y.name+y[E])}),p.digest("hex")},d=(_,E,p)=>{p.relativePath&&(E.relativePath=s(_,E)),E.type==="dir"&&(E.children.forEach(y=>{d(E,y,p)}),E.size=0,E.children.sort((y,u)=>y.type==="dir"&&u.type==="file"?-1:y.type==="file"&&u.type==="dir"?1:y.name.localeCompare(u.name)),E.children.forEach(y=>{E.size+=y.size||0}),p.checksum&&(E[p.checksum]=l(E.children,p.checksum)))},v=(_,E,p)=>{let y=E[0];if(E.length>1){let u=_.children.find(f=>f.name===y);return v(u,E.slice(1),p)}return _},g=(_,E)=>{let p=E||{},y;return c.sync(_,{inspectOptions:p},(u,f)=>{if(f){f.type==="dir"&&(f.children=[]);let m=r.relative(_,u);m===""?y=f:v(y,m.split(r.sep),f).children.push(f)}}),y&&d(void 0,y,p),y},x=(_,E)=>{let p=E||{},y;return new Promise((u,f)=>{c.async(_,{inspectOptions:p},(m,h)=>{if(h){h.type==="dir"&&(h.children=[]);let O=r.relative(_,m);O===""?y=h:v(y,O.split(r.sep),h).children.push(h)}},m=>{m?f(m):(y&&d(void 0,y,p),u(y))})})};e.validateInput=a,e.sync=g,e.async=x}}),Zr=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/exists.js"(e){"use strict";var t=Te(),r=we(),n=(c,a)=>{let s=`${c}(path)`;r.argument(s,"path",a,["string"])},i=c=>{try{let a=t.statSync(c);return a.isDirectory()?"dir":a.isFile()?"file":"other"}catch(a){if(a.code!=="ENOENT")throw a}return!1},o=c=>new Promise((a,s)=>{t.stat(c).then(l=>{l.isDirectory()?a("dir"):l.isFile()?a("file"):a("other")}).catch(l=>{l.code==="ENOENT"?a(!1):s(l)})});e.validateInput=n,e.sync=i,e.async=o}}),_s=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/copy.js"(e){"use strict";var t=(0,D.__require)("path"),r=Te(),n=lt(),i=Zr(),o=At(),c=er(),a=ys(),s=Xr(),l=Qr(),d=we(),v=(A,w,k,L)=>{let q=`${A}(from, to, [options])`;d.argument(q,"from",w,["string"]),d.argument(q,"to",k,["string"]),d.options(q,"options",L,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},g=(A,w)=>{let k=A||{},L={};return k.ignoreCase===void 0&&(k.ignoreCase=!1),L.overwrite=k.overwrite,k.matching?L.allowedToCopy=a.create(w,k.matching,k.ignoreCase):L.allowedToCopy=()=>!0,L},x=A=>{let w=new Error(`Path to copy doesn't exist ${A}`);return w.code="ENOENT",w},_=A=>{let w=new Error(`Destination path already exists ${A}`);return w.code="EEXIST",w},E={mode:!0,symlinks:"report",times:!0,absolutePath:!0},p=A=>typeof A.opts.overwrite!="function"&&A.opts.overwrite!==!0,y=(A,w,k)=>{if(!i.sync(A))throw x(A);if(i.sync(w)&&!k.overwrite)throw _(w)},u=A=>{if(typeof A.opts.overwrite=="function"){let w=o.sync(A.destPath,E);return A.opts.overwrite(A.srcInspectData,w)}return A.opts.overwrite===!0},f=(A,w,k,L)=>{let q=r.readFileSync(A);try{r.writeFileSync(w,q,{mode:k,flag:"wx"})}catch(j){if(j.code==="ENOENT")c.sync(w,q,{mode:k});else if(j.code==="EEXIST"){if(u(L))r.writeFileSync(w,q,{mode:k});else if(p(L))throw _(L.destPath)}else throw j}},m=(A,w)=>{let k=r.readlinkSync(A);try{r.symlinkSync(k,w)}catch(L){if(L.code==="EEXIST")r.unlinkSync(w),r.symlinkSync(k,w);else throw L}},h=(A,w,k,L)=>{let q={srcPath:A,destPath:k,srcInspectData:w,opts:L},j=s.normalizeFileMode(w.mode);w.type==="dir"?n.createSync(k,{mode:j}):w.type==="file"?f(A,k,j,q):w.type==="symlink"&&m(A,k)},O=(A,w,k)=>{let L=g(k,A);y(A,w,L),l.sync(A,{inspectOptions:E},(q,j)=>{let F=t.relative(A,q),B=t.resolve(w,F);L.allowedToCopy(q,B,j)&&h(q,j,B,L)})},b=(A,w,k)=>i.async(A).then(L=>{if(L)return i.async(w);throw x(A)}).then(L=>{if(L&&!k.overwrite)throw _(w)}),P=A=>new Promise((w,k)=>{typeof A.opts.overwrite=="function"?o.async(A.destPath,E).then(L=>{w(A.opts.overwrite(A.srcInspectData,L))}).catch(k):w(A.opts.overwrite===!0)}),S=(A,w,k,L,q)=>new Promise((j,F)=>{let B=q||{},N="wx";B.overwrite&&(N="w");let H=r.createReadStream(A),$=r.createWriteStream(w,{mode:k,flags:N});H.on("error",F),$.on("error",V=>{H.resume(),V.code==="ENOENT"?n.createAsync(t.dirname(w)).then(()=>{S(A,w,k,L).then(j,F)}).catch(F):V.code==="EEXIST"?P(L).then(ae=>{ae?S(A,w,k,L,{overwrite:!0}).then(j,F):p(L)?F(_(w)):j()}).catch(F):F(V)}),$.on("finish",j),H.pipe($)}),R=(A,w)=>r.readlink(A).then(k=>new Promise((L,q)=>{r.symlink(k,w).then(L).catch(j=>{j.code==="EEXIST"?r.unlink(w).then(()=>r.symlink(k,w)).then(L,q):q(j)})})),T=(A,w,k,L)=>{let q={srcPath:A,destPath:k,srcInspectData:w,opts:L},j=s.normalizeFileMode(w.mode);return w.type==="dir"?n.createAsync(k,{mode:j}):w.type==="file"?S(A,k,j,q):w.type==="symlink"?R(A,k):Promise.resolve()},C=(A,w,k)=>new Promise((L,q)=>{let j=g(k,A);b(A,w,j).then(()=>{let F=!1,B=0;l.async(A,{inspectOptions:E},(N,H)=>{if(H){let $=t.relative(A,N),V=t.resolve(w,$);j.allowedToCopy(N,H,V)&&(B+=1,T(N,H,V,j).then(()=>{B-=1,F&&B===0&&L()}).catch(q))}},N=>{N?q(N):(F=!0,F&&B===0&&L())})}).catch(q)});e.validateInput=v,e.sync=O,e.async=C}}),bs=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/move.js"(e){"use strict";var t=(0,D.__require)("path"),r=Te(),n=we(),i=_s(),o=lt(),c=Zr(),a=Yr(),s=(E,p,y,u)=>{let f=`${E}(from, to, [options])`;n.argument(f,"from",p,["string"]),n.argument(f,"to",y,["string"]),n.options(f,"options",u,{overwrite:["boolean"]})},l=E=>E||{},d=E=>{let p=new Error(`Destination path already exists ${E}`);return p.code="EEXIST",p},v=E=>{let p=new Error(`Path to move doesn't exist ${E}`);return p.code="ENOENT",p},g=(E,p,y)=>{let u=l(y);if(c.sync(p)!==!1&&u.overwrite!==!0)throw d(p);try{r.renameSync(E,p)}catch(f){if(f.code==="EISDIR"||f.code==="EPERM")a.sync(p),r.renameSync(E,p);else if(f.code==="EXDEV")i.sync(E,p,{overwrite:!0}),a.sync(E);else if(f.code==="ENOENT"){if(!c.sync(E))throw v(E);o.createSync(t.dirname(p)),r.renameSync(E,p)}else throw f}},x=E=>new Promise((p,y)=>{let u=t.dirname(E);c.async(u).then(f=>{f?y():o.createAsync(u).then(p,y)}).catch(y)}),_=(E,p,y)=>{let u=l(y);return new Promise((f,m)=>{c.async(p).then(h=>{h!==!1&&u.overwrite!==!0?m(d(p)):r.rename(E,p).then(f).catch(O=>{O.code==="EISDIR"||O.code==="EPERM"?a.async(p).then(()=>r.rename(E,p)).then(f,m):O.code==="EXDEV"?i.async(E,p,{overwrite:!0}).then(()=>a.async(E)).then(f,m):O.code==="ENOENT"?c.async(E).then(b=>{b?x(p).then(()=>r.rename(E,p)).then(f,m):m(v(E))}).catch(m):m(O)})})})};e.validateInput=s,e.sync=g,e.async=_}}),Gl=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/read.js"(e){"use strict";var t=Te(),r=we(),n=["utf8","buffer","json","jsonWithDates"],i=(l,d,v)=>{let g=`${l}(path, returnAs)`;if(r.argument(g,"path",d,["string"]),r.argument(g,"returnAs",v,["string","undefined"]),v&&n.indexOf(v)===-1)throw new Error(`Argument "returnAs" passed to ${g} must have one of values: ${n.join(", ")}`)},o=(l,d)=>typeof d=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(d)?new Date(d):d,c=(l,d)=>{let v=new Error(`JSON parsing failed while reading ${l} [${d}]`);return v.originalError=d,v},a=(l,d)=>{let v=d||"utf8",g,x="utf8";v==="buffer"&&(x=null);try{g=t.readFileSync(l,{encoding:x})}catch(_){if(_.code==="ENOENT")return;throw _}try{v==="json"?g=JSON.parse(g):v==="jsonWithDates"&&(g=JSON.parse(g,o))}catch(_){throw c(l,_)}return g},s=(l,d)=>new Promise((v,g)=>{let x=d||"utf8",_="utf8";x==="buffer"&&(_=null),t.readFile(l,{encoding:_}).then(E=>{try{v(x==="json"?JSON.parse(E):x==="jsonWithDates"?JSON.parse(E,o):E)}catch(p){g(c(l,p))}}).catch(E=>{E.code==="ENOENT"?v(void 0):g(E)})});e.validateInput=i,e.sync=a,e.async=s}}),Ul=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/rename.js"(e){"use strict";var t=(0,D.__require)("path"),r=bs(),n=we(),i=(a,s,l,d)=>{let v=`${a}(path, newName, [options])`;if(n.argument(v,"path",s,["string"]),n.argument(v,"newName",l,["string"]),n.options(v,"options",d,{overwrite:["boolean"]}),t.basename(l)!==l)throw new Error(`Argument "newName" passed to ${v} should be a filename, not a path. Received "${l}"`)},o=(a,s,l)=>{let d=t.join(t.dirname(a),s);r.sync(a,d,l)},c=(a,s,l)=>{let d=t.join(t.dirname(a),s);return r.async(a,d,l)};e.validateInput=i,e.sync=o,e.async=c}}),Wl=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/symlink.js"(e){"use strict";var t=(0,D.__require)("path"),r=Te(),n=we(),i=lt(),o=(s,l,d)=>{let v=`${s}(symlinkValue, path)`;n.argument(v,"symlinkValue",l,["string"]),n.argument(v,"path",d,["string"])},c=(s,l)=>{try{r.symlinkSync(s,l)}catch(d){if(d.code==="ENOENT")i.createSync(t.dirname(l)),r.symlinkSync(s,l);else throw d}},a=(s,l)=>new Promise((d,v)=>{r.symlink(s,l).then(d).catch(g=>{g.code==="ENOENT"?i.createAsync(t.dirname(l)).then(()=>r.symlink(s,l)).then(d,v):v(g)})});e.validateInput=o,e.sync=c,e.async=a}}),Jl=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/streams.js"(e){"use strict";var t=(0,D.__require)("fs");e.createWriteStream=t.createWriteStream,e.createReadStream=t.createReadStream}}),Vl=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/tmp_dir.js"(e){"use strict";var t=(0,D.__require)("path"),r=(0,D.__require)("os"),n=(0,D.__require)("crypto"),i=lt(),o=Te(),c=we(),a=(g,x)=>{let _=`${g}([options])`;c.options(_,"options",x,{prefix:["string"],basePath:["string"]})},s=(g,x)=>{g=g||{};let _={};return typeof g.prefix!="string"?_.prefix="":_.prefix=g.prefix,typeof g.basePath=="string"?_.basePath=t.resolve(x,g.basePath):_.basePath=r.tmpdir(),_},l=32,d=(g,x)=>{let _=s(x,g),E=n.randomBytes(l/2).toString("hex"),p=t.join(_.basePath,_.prefix+E);try{o.mkdirSync(p)}catch(y){if(y.code==="ENOENT")i.sync(p);else throw y}return p},v=(g,x)=>new Promise((_,E)=>{let p=s(x,g);n.randomBytes(l/2,(y,u)=>{if(y)E(y);else{let f=u.toString("hex"),m=t.join(p.basePath,p.prefix+f);o.mkdir(m,h=>{h?h.code==="ENOENT"?i.async(m).then(()=>{_(m)},E):E(h):_(m)})}})});e.validateInput=a,e.sync=d,e.async=v}}),Kl=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/jetpack.js"(e,t){"use strict";var r=(0,D.__require)("util"),n=(0,D.__require)("path"),i=Ll(),o=lt(),c=Nl(),a=Bl(),s=At(),l=Hl(),d=_s(),v=Zr(),g=zr(),x=bs(),_=Gl(),E=Yr(),p=Ul(),y=Wl(),u=Jl(),f=Vl(),m=er(),h=O=>{let b=()=>O||process.cwd(),P=function(){if(arguments.length===0)return b();let A=Array.prototype.slice.call(arguments),w=[b()].concat(A);return h(n.resolve.apply(null,w))},S=A=>n.resolve(b(),A),R=function(){return Array.prototype.unshift.call(arguments,b()),n.resolve.apply(null,arguments)},T=A=>{let w=A||{};return w.cwd=b(),w},C={cwd:P,path:R,append:(A,w,k)=>{i.validateInput("append",A,w,k),i.sync(S(A),w,k)},appendAsync:(A,w,k)=>(i.validateInput("appendAsync",A,w,k),i.async(S(A),w,k)),copy:(A,w,k)=>{d.validateInput("copy",A,w,k),d.sync(S(A),S(w),k)},copyAsync:(A,w,k)=>(d.validateInput("copyAsync",A,w,k),d.async(S(A),S(w),k)),createWriteStream:(A,w)=>u.createWriteStream(S(A),w),createReadStream:(A,w)=>u.createReadStream(S(A),w),dir:(A,w)=>{o.validateInput("dir",A,w);let k=S(A);return o.sync(k,w),P(k)},dirAsync:(A,w)=>(o.validateInput("dirAsync",A,w),new Promise((k,L)=>{let q=S(A);o.async(q,w).then(()=>{k(P(q))},L)})),exists:A=>(v.validateInput("exists",A),v.sync(S(A))),existsAsync:A=>(v.validateInput("existsAsync",A),v.async(S(A))),file:(A,w)=>(c.validateInput("file",A,w),c.sync(S(A),w),C),fileAsync:(A,w)=>(c.validateInput("fileAsync",A,w),new Promise((k,L)=>{c.async(S(A),w).then(()=>{k(C)},L)})),find:(A,w)=>(typeof w>"u"&&typeof A=="object"&&(w=A,A="."),a.validateInput("find",A,w),a.sync(S(A),T(w))),findAsync:(A,w)=>(typeof w>"u"&&typeof A=="object"&&(w=A,A="."),a.validateInput("findAsync",A,w),a.async(S(A),T(w))),inspect:(A,w)=>(s.validateInput("inspect",A,w),s.sync(S(A),w)),inspectAsync:(A,w)=>(s.validateInput("inspectAsync",A,w),s.async(S(A),w)),inspectTree:(A,w)=>(l.validateInput("inspectTree",A,w),l.sync(S(A),w)),inspectTreeAsync:(A,w)=>(l.validateInput("inspectTreeAsync",A,w),l.async(S(A),w)),list:A=>(g.validateInput("list",A),g.sync(S(A||"."))),listAsync:A=>(g.validateInput("listAsync",A),g.async(S(A||"."))),move:(A,w,k)=>{x.validateInput("move",A,w,k),x.sync(S(A),S(w),k)},moveAsync:(A,w,k)=>(x.validateInput("moveAsync",A,w,k),x.async(S(A),S(w),k)),read:(A,w)=>(_.validateInput("read",A,w),_.sync(S(A),w)),readAsync:(A,w)=>(_.validateInput("readAsync",A,w),_.async(S(A),w)),remove:A=>{E.validateInput("remove",A),E.sync(S(A||"."))},removeAsync:A=>(E.validateInput("removeAsync",A),E.async(S(A||"."))),rename:(A,w,k)=>{p.validateInput("rename",A,w,k),p.sync(S(A),w,k)},renameAsync:(A,w,k)=>(p.validateInput("renameAsync",A,w,k),p.async(S(A),w,k)),symlink:(A,w)=>{y.validateInput("symlink",A,w),y.sync(A,S(w))},symlinkAsync:(A,w)=>(y.validateInput("symlinkAsync",A,w),y.async(A,S(w))),tmpDir:A=>{f.validateInput("tmpDir",A);let w=f.sync(b(),A);return P(w)},tmpDirAsync:A=>(f.validateInput("tmpDirAsync",A),new Promise((w,k)=>{f.async(b(),A).then(L=>{w(P(L))},k)})),write:(A,w,k)=>{m.validateInput("write",A,w,k),m.sync(S(A),w,k)},writeAsync:(A,w,k)=>(m.validateInput("writeAsync",A,w,k),m.async(S(A),w,k))};return r.inspect.custom!==void 0&&(C[r.inspect.custom]=()=>`[fs-jetpack CWD: ${b()}]`),C};t.exports=h}}),Xl=(0,D.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/main.js"(e,t){"use strict";var r=Kl();t.exports=r()}}),Yl=(0,D.__commonJS)({"../../node_modules/.pnpm/crypto-random-string@2.0.0/node_modules/crypto-random-string/index.js"(e,t){"use strict";var r=(0,D.__require)("crypto");t.exports=n=>{if(!Number.isFinite(n))throw new TypeError("Expected a finite number");return r.randomBytes(Math.ceil(n/2)).toString("hex").slice(0,n)}}}),zl=(0,D.__commonJS)({"../../node_modules/.pnpm/unique-string@2.0.0/node_modules/unique-string/index.js"(e,t){"use strict";var r=Yl();t.exports=()=>r(32)}}),Ql=(0,D.__commonJS)({"../../node_modules/.pnpm/temp-dir@2.0.0/node_modules/temp-dir/index.js"(e,t){"use strict";var r=(0,D.__require)("fs"),n=(0,D.__require)("os"),i=Symbol.for("__RESOLVED_TEMP_DIRECTORY__");global[i]||Object.defineProperty(global,i,{value:r.realpathSync(n.tmpdir())}),t.exports=global[i]}}),Zl=(0,D.__commonJS)({"../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(e,t){"use strict";var r=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";r.writable=n=>r(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",r.readable=n=>r(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",r.duplex=n=>r.writable(n)&&r.readable(n),r.transform=n=>r.duplex(n)&&typeof n._transform=="function",t.exports=r}}),ef=(0,D.__commonJS)({"../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(e,t){"use strict";t.exports=(...r)=>[...new Set([].concat(...r))]}}),Ss=(0,D.__commonJS)({"../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(e,t){"use strict";var r=(0,D.__require)("stream"),n=r.PassThrough,i=Array.prototype.slice;t.exports=o;function o(){let a=[],s=i.call(arguments),l=!1,d=s[s.length-1];d&&!Array.isArray(d)&&d.pipe==null?s.pop():d={};let v=d.end!==!1,g=d.pipeError===!0;d.objectMode==null&&(d.objectMode=!0),d.highWaterMark==null&&(d.highWaterMark=64*1024);let x=n(d);function _(){for(let y=0,u=arguments.length;y<u;y++)a.push(c(arguments[y],d));return E(),this}function E(){if(l)return;l=!0;let y=a.shift();if(!y){process.nextTick(p);return}Array.isArray(y)||(y=[y]);let u=y.length+1;function f(){--u>0||(l=!1,E())}function m(h){function O(){h.removeListener("merge2UnpipeEnd",O),h.removeListener("end",O),g&&h.removeListener("error",b),f()}function b(P){x.emit("error",P)}if(h._readableState.endEmitted)return f();h.on("merge2UnpipeEnd",O),h.on("end",O),g&&h.on("error",b),h.pipe(x,{end:!1}),h.resume()}for(let h=0;h<y.length;h++)m(y[h]);f()}function p(){l=!1,x.emit("queueDrain"),v&&x.end()}return x.setMaxListeners(0),x.add=_,x.on("unpipe",function(y){y.emit("merge2UnpipeEnd")}),s.length&&_.apply(null,s),x}function c(a,s){if(Array.isArray(a))for(let l=0,d=a.length;l<d;l++)a[l]=c(a[l],s);else{if(!a._readableState&&a.pipe&&(a=a.pipe(n(s))),!a._readableState||!a.pause||!a.pipe)throw new Error("Only readable stream can be merged.");a.pause()}return a}}}),tf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(n){return n.reduce((i,o)=>[].concat(i,o),[])}e.flatten=t;function r(n,i){let o=[[]],c=0;for(let a of n)i(a)?(c++,o[c]=[]):o[c].push(a);return o}e.splitWhen=r}}),rf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}}),nf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}}),sf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var t=(0,D.__require)("os"),r=(0,D.__require)("path"),n=t.platform()==="win32",i=2,o=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,c=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,a=/^\\\\([.?])/,s=/\\(?![!()+@[\]{}])/g;function l(p){return p.replace(/\\/g,"/")}e.unixify=l;function d(p,y){return r.resolve(p,y)}e.makeAbsolute=d;function v(p){if(p.charAt(0)==="."){let y=p.charAt(1);if(y==="/"||y==="\\")return p.slice(i)}return p}e.removeLeadingDotSegment=v,e.escape=n?g:x;function g(p){return p.replace(c,"\\$2")}e.escapeWindowsPath=g;function x(p){return p.replace(o,"\\$2")}e.escapePosixPath=x,e.convertPathToPattern=n?_:E;function _(p){return g(p).replace(a,"//$1").replace(s,"/")}e.convertWindowsPathToPattern=_;function E(p){return x(p)}e.convertPosixPathToPattern=E}}),af=(0,D.__commonJS)({"../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js"(e,t){"use strict";t.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}}}),ws=(0,D.__commonJS)({"../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js"(e,t){"use strict";var r=af(),n={"{":"}","(":")","[":"]"},i=function(c){if(c[0]==="!")return!0;for(var a=0,s=-2,l=-2,d=-2,v=-2,g=-2;a<c.length;){if(c[a]==="*"||c[a+1]==="?"&&/[\].+)]/.test(c[a])||l!==-1&&c[a]==="["&&c[a+1]!=="]"&&(l<a&&(l=c.indexOf("]",a)),l>a&&(g===-1||g>l||(g=c.indexOf("\\",a),g===-1||g>l)))||d!==-1&&c[a]==="{"&&c[a+1]!=="}"&&(d=c.indexOf("}",a),d>a&&(g=c.indexOf("\\",a),g===-1||g>d))||v!==-1&&c[a]==="("&&c[a+1]==="?"&&/[:!=]/.test(c[a+2])&&c[a+3]!==")"&&(v=c.indexOf(")",a),v>a&&(g=c.indexOf("\\",a),g===-1||g>v))||s!==-1&&c[a]==="("&&c[a+1]!=="|"&&(s<a&&(s=c.indexOf("|",a)),s!==-1&&c[s+1]!==")"&&(v=c.indexOf(")",s),v>s&&(g=c.indexOf("\\",s),g===-1||g>v))))return!0;if(c[a]==="\\"){var x=c[a+1];a+=2;var _=n[x];if(_){var E=c.indexOf(_,a);E!==-1&&(a=E+1)}if(c[a]==="!")return!0}else a++}return!1},o=function(c){if(c[0]==="!")return!0;for(var a=0;a<c.length;){if(/[*?{}()[\]]/.test(c[a]))return!0;if(c[a]==="\\"){var s=c[a+1];a+=2;var l=n[s];if(l){var d=c.indexOf(l,a);d!==-1&&(a=d+1)}if(c[a]==="!")return!0}else a++}return!1};t.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(r(a))return!0;var l=i;return s&&s.strict===!1&&(l=o),l(a)}}}),of=(0,D.__commonJS)({"../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js"(e,t){"use strict";var r=ws(),n=(0,D.__require)("path").posix.dirname,i=(0,D.__require)("os").platform()==="win32",o="/",c=/\\/g,a=/[\{\[].*[\}\]]$/,s=/(^|[^\\])([\{\[]|\([^\)]+$)/,l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(v,g){var x=Object.assign({flipBackslashes:!0},g);x.flipBackslashes&&i&&v.indexOf(o)<0&&(v=v.replace(c,o)),a.test(v)&&(v+=o),v+="a";do v=n(v);while(r(v)||s.test(v));return v.replace(l,"$1")}}}),en=(0,D.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(e){"use strict";e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(n=>n.type===r),e.exceedsLimit=(t,r,n=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(n)>=i,e.escapeNode=(t,r=0,n)=>{let i=t.nodes[r];i&&(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]),e.flatten=(...t)=>{let r=[],n=i=>{for(let o=0;o<i.length;o++){let c=i[o];if(Array.isArray(c)){n(c);continue}c!==void 0&&r.push(c)}return r};return n(t),r}}}),tn=(0,D.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(e,t){"use strict";var r=en();t.exports=(n,i={})=>{let o=(c,a={})=>{let s=i.escapeInvalid&&r.isInvalidBrace(a),l=c.invalid===!0&&i.escapeInvalid===!0,d="";if(c.value)return(s||l)&&r.isOpenOrClose(c)?"\\"+c.value:c.value;if(c.value)return c.value;if(c.nodes)for(let v of c.nodes)d+=o(v);return d};return o(n)}}}),cf=(0,D.__commonJS)({"../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(e,t){"use strict";t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}}),uf=(0,D.__commonJS)({"../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(e,t){"use strict";var r=cf(),n=(u,f,m)=>{if(r(u)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(f===void 0||u===f)return String(u);if(r(f)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let h={relaxZeros:!0,...m};typeof h.strictZeros=="boolean"&&(h.relaxZeros=h.strictZeros===!1);let O=String(h.relaxZeros),b=String(h.shorthand),P=String(h.capture),S=String(h.wrap),R=u+":"+f+"="+O+b+P+S;if(n.cache.hasOwnProperty(R))return n.cache[R].result;let T=Math.min(u,f),C=Math.max(u,f);if(Math.abs(T-C)===1){let q=u+"|"+f;return h.capture?`(${q})`:h.wrap===!1?q:`(?:${q})`}let A=p(u)||p(f),w={min:u,max:f,a:T,b:C},k=[],L=[];if(A&&(w.isPadded=A,w.maxLen=String(w.max).length),T<0){let q=C<0?Math.abs(C):1;L=a(q,Math.abs(T),w,h),T=w.a=0}return C>=0&&(k=a(T,C,w,h)),w.negatives=L,w.positives=k,w.result=i(L,k,h),h.capture===!0?w.result=`(${w.result})`:h.wrap!==!1&&k.length+L.length>1&&(w.result=`(?:${w.result})`),n.cache[R]=w,w.result};function i(u,f,m){let h=s(u,f,"-",!1,m)||[],O=s(f,u,"",!1,m)||[],b=s(u,f,"-?",!0,m)||[];return h.concat(b).concat(O).join("|")}function o(u,f){let m=1,h=1,O=g(u,m),b=new Set([f]);for(;u<=O&&O<=f;)b.add(O),m+=1,O=g(u,m);for(O=x(f+1,h)-1;u<O&&O<=f;)b.add(O),h+=1,O=x(f+1,h)-1;return b=[...b],b.sort(d),b}function c(u,f,m){if(u===f)return{pattern:u,count:[],digits:0};let h=l(u,f),O=h.length,b="",P=0;for(let S=0;S<O;S++){let[R,T]=h[S];R===T?b+=R:R!=="0"||T!=="9"?b+=E(R,T,m):P++}return P&&(b+=m.shorthand===!0?"\\d":"[0-9]"),{pattern:b,count:[P],digits:O}}function a(u,f,m,h){let O=o(u,f),b=[],P=u,S;for(let R=0;R<O.length;R++){let T=O[R],C=c(String(P),String(T),h),A="";if(!m.isPadded&&S&&S.pattern===C.pattern){S.count.length>1&&S.count.pop(),S.count.push(C.count[0]),S.string=S.pattern+_(S.count),P=T+1;continue}m.isPadded&&(A=y(T,m,h)),C.string=A+C.pattern+_(C.count),b.push(C),P=T+1,S=C}return b}function s(u,f,m,h,O){let b=[];for(let P of u){let{string:S}=P;!h&&!v(f,"string",S)&&b.push(m+S),h&&v(f,"string",S)&&b.push(m+S)}return b}function l(u,f){let m=[];for(let h=0;h<u.length;h++)m.push([u[h],f[h]]);return m}function d(u,f){return u>f?1:f>u?-1:0}function v(u,f,m){return u.some(h=>h[f]===m)}function g(u,f){return Number(String(u).slice(0,-f)+"9".repeat(f))}function x(u,f){return u-u%Math.pow(10,f)}function _(u){let[f=0,m=""]=u;return m||f>1?`{${f+(m?","+m:"")}}`:""}function E(u,f,m){return`[${u}${f-u===1?"":"-"}${f}]`}function p(u){return/^-?(0+)\d/.test(u)}function y(u,f,m){if(!f.isPadded)return u;let h=Math.abs(f.maxLen-String(u).length),O=m.relaxZeros!==!1;switch(h){case 0:return"";case 1:return O?"0?":"0";case 2:return O?"0{0,2}":"00";default:return O?`0{0,${h}}`:`0{${h}}`}}n.cache={},n.clearCache=()=>n.cache={},t.exports=n}}),Es=(0,D.__commonJS)({"../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(e,t){"use strict";var r=(0,D.__require)("util"),n=uf(),i=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),o=h=>O=>h===!0?Number(O):String(O),c=h=>typeof h=="number"||typeof h=="string"&&h!=="",a=h=>Number.isInteger(+h),s=h=>{let O=`${h}`,b=-1;if(O[0]==="-"&&(O=O.slice(1)),O==="0")return!1;for(;O[++b]==="0";);return b>0},l=(h,O,b)=>typeof h=="string"||typeof O=="string"?!0:b.stringify===!0,d=(h,O,b)=>{if(O>0){let P=h[0]==="-"?"-":"";P&&(h=h.slice(1)),h=P+h.padStart(P?O-1:O,"0")}return b===!1?String(h):h},v=(h,O)=>{let b=h[0]==="-"?"-":"";for(b&&(h=h.slice(1),O--);h.length<O;)h="0"+h;return b?"-"+h:h},g=(h,O,b)=>{h.negatives.sort((C,A)=>C<A?-1:C>A?1:0),h.positives.sort((C,A)=>C<A?-1:C>A?1:0);let P=O.capture?"":"?:",S="",R="",T;return h.positives.length&&(S=h.positives.map(C=>v(String(C),b)).join("|")),h.negatives.length&&(R=`-(${P}${h.negatives.map(C=>v(String(C),b)).join("|")})`),S&&R?T=`${S}|${R}`:T=S||R,O.wrap?`(${P}${T})`:T},x=(h,O,b,P)=>{if(b)return n(h,O,{wrap:!1,...P});let S=String.fromCharCode(h);if(h===O)return S;let R=String.fromCharCode(O);return`[${S}-${R}]`},_=(h,O,b)=>{if(Array.isArray(h)){let P=b.wrap===!0,S=b.capture?"":"?:";return P?`(${S}${h.join("|")})`:h.join("|")}return n(h,O,b)},E=(...h)=>new RangeError("Invalid range arguments: "+r.inspect(...h)),p=(h,O,b)=>{if(b.strictRanges===!0)throw E([h,O]);return[]},y=(h,O)=>{if(O.strictRanges===!0)throw new TypeError(`Expected step "${h}" to be a number`);return[]},u=(h,O,b=1,P={})=>{let S=Number(h),R=Number(O);if(!Number.isInteger(S)||!Number.isInteger(R)){if(P.strictRanges===!0)throw E([h,O]);return[]}S===0&&(S=0),R===0&&(R=0);let T=S>R,C=String(h),A=String(O),w=String(b);b=Math.max(Math.abs(b),1);let k=s(C)||s(A)||s(w),L=k?Math.max(C.length,A.length,w.length):0,q=k===!1&&l(h,O,P)===!1,j=P.transform||o(q);if(P.toRegex&&b===1)return x(v(h,L),v(O,L),!0,P);let F={negatives:[],positives:[]},B=$=>F[$<0?"negatives":"positives"].push(Math.abs($)),N=[],H=0;for(;T?S>=R:S<=R;)P.toRegex===!0&&b>1?B(S):N.push(d(j(S,H),L,q)),S=T?S-b:S+b,H++;return P.toRegex===!0?b>1?g(F,P,L):_(N,null,{wrap:!1,...P}):N},f=(h,O,b=1,P={})=>{if(!a(h)&&h.length>1||!a(O)&&O.length>1)return p(h,O,P);let S=P.transform||(q=>String.fromCharCode(q)),R=`${h}`.charCodeAt(0),T=`${O}`.charCodeAt(0),C=R>T,A=Math.min(R,T),w=Math.max(R,T);if(P.toRegex&&b===1)return x(A,w,!1,P);let k=[],L=0;for(;C?R>=T:R<=T;)k.push(S(R,L)),R=C?R-b:R+b,L++;return P.toRegex===!0?_(k,null,{wrap:!1,options:P}):k},m=(h,O,b,P={})=>{if(O==null&&c(h))return[h];if(!c(h)||!c(O))return p(h,O,P);if(typeof b=="function")return m(h,O,1,{transform:b});if(i(b))return m(h,O,0,b);let S={...P};return S.capture===!0&&(S.wrap=!0),b=b||S.step||1,a(b)?a(h)&&a(O)?u(h,O,b,S):f(h,O,Math.max(Math.abs(b),1),S):b!=null&&!i(b)?y(b,S):m(h,O,1,b)};t.exports=m}}),lf=(0,D.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(e,t){"use strict";var r=Es(),n=en(),i=(o,c={})=>{let a=(s,l={})=>{let d=n.isInvalidBrace(l),v=s.invalid===!0&&c.escapeInvalid===!0,g=d===!0||v===!0,x=c.escapeInvalid===!0?"\\":"",_="";if(s.isOpen===!0)return x+s.value;if(s.isClose===!0)return console.log("node.isClose",x,s.value),x+s.value;if(s.type==="open")return g?x+s.value:"(";if(s.type==="close")return g?x+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":g?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let E=n.reduce(s.nodes),p=r(...E,{...c,wrap:!1,toRegex:!0,strictZeros:!0});if(p.length!==0)return E.length>1&&p.length>1?`(${p})`:p}if(s.nodes)for(let E of s.nodes)_+=a(E,s);return _};return a(o)};t.exports=i}}),ff=(0,D.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(e,t){"use strict";var r=Es(),n=tn(),i=en(),o=(a="",s="",l=!1)=>{let d=[];if(a=[].concat(a),s=[].concat(s),!s.length)return a;if(!a.length)return l?i.flatten(s).map(v=>`{${v}}`):s;for(let v of a)if(Array.isArray(v))for(let g of v)d.push(o(g,s,l));else for(let g of s)l===!0&&typeof g=="string"&&(g=`{${g}}`),d.push(Array.isArray(g)?o(v,g,l):v+g);return i.flatten(d)},c=(a,s={})=>{let l=s.rangeLimit===void 0?1e3:s.rangeLimit,d=(v,g={})=>{v.queue=[];let x=g,_=g.queue;for(;x.type!=="brace"&&x.type!=="root"&&x.parent;)x=x.parent,_=x.queue;if(v.invalid||v.dollar){_.push(o(_.pop(),n(v,s)));return}if(v.type==="brace"&&v.invalid!==!0&&v.nodes.length===2){_.push(o(_.pop(),["{}"]));return}if(v.nodes&&v.ranges>0){let u=i.reduce(v.nodes);if(i.exceedsLimit(...u,s.step,l))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=r(...u,s);f.length===0&&(f=n(v,s)),_.push(o(_.pop(),f)),v.nodes=[];return}let E=i.encloseBrace(v),p=v.queue,y=v;for(;y.type!=="brace"&&y.type!=="root"&&y.parent;)y=y.parent,p=y.queue;for(let u=0;u<v.nodes.length;u++){let f=v.nodes[u];if(f.type==="comma"&&v.type==="brace"){u===1&&p.push(""),p.push("");continue}if(f.type==="close"){_.push(o(_.pop(),p,E));continue}if(f.value&&f.type!=="open"){p.push(o(p.pop(),f.value));continue}f.nodes&&d(f,v)}return p};return i.flatten(d(a))};t.exports=c}}),df=(0,D.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(e,t){"use strict";t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
8
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}}),pf=(0,D.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(e,t){"use strict";var r=tn(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:o,CHAR_COMMA:c,CHAR_DOT:a,CHAR_LEFT_PARENTHESES:s,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:d,CHAR_RIGHT_CURLY_BRACE:v,CHAR_LEFT_SQUARE_BRACKET:g,CHAR_RIGHT_SQUARE_BRACKET:x,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:E,CHAR_NO_BREAK_SPACE:p,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=df(),u=(f,m={})=>{if(typeof f!="string")throw new TypeError("Expected a string");let h=m||{},O=typeof h.maxLength=="number"?Math.min(n,h.maxLength):n;if(f.length>O)throw new SyntaxError(`Input length (${f.length}), exceeds max characters (${O})`);let b={type:"root",input:f,nodes:[]},P=[b],S=b,R=b,T=0,C=f.length,A=0,w=0,k,L=()=>f[A++],q=j=>{if(j.type==="text"&&R.type==="dot"&&(R.type="text"),R&&R.type==="text"&&j.type==="text"){R.value+=j.value;return}return S.nodes.push(j),j.parent=S,j.prev=R,R=j,j};for(q({type:"bos"});A<C;)if(S=P[P.length-1],k=L(),!(k===y||k===p)){if(k===i){q({type:"text",value:(m.keepEscaping?k:"")+L()});continue}if(k===x){q({type:"text",value:"\\"+k});continue}if(k===g){T++;let j;for(;A<C&&(j=L());){if(k+=j,j===g){T++;continue}if(j===i){k+=L();continue}if(j===x&&(T--,T===0))break}q({type:"text",value:k});continue}if(k===s){S=q({type:"paren",nodes:[]}),P.push(S),q({type:"text",value:k});continue}if(k===l){if(S.type!=="paren"){q({type:"text",value:k});continue}S=P.pop(),q({type:"text",value:k}),S=P[P.length-1];continue}if(k===_||k===E||k===o){let j=k,F;for(m.keepQuotes!==!0&&(k="");A<C&&(F=L());){if(F===i){k+=F+L();continue}if(F===j){m.keepQuotes===!0&&(k+=F);break}k+=F}q({type:"text",value:k});continue}if(k===d){w++;let F={type:"brace",open:!0,close:!1,dollar:R.value&&R.value.slice(-1)==="$"||S.dollar===!0,depth:w,commas:0,ranges:0,nodes:[]};S=q(F),P.push(S),q({type:"open",value:k});continue}if(k===v){if(S.type!=="brace"){q({type:"text",value:k});continue}let j="close";S=P.pop(),S.close=!0,q({type:j,value:k}),w--,S=P[P.length-1];continue}if(k===c&&w>0){if(S.ranges>0){S.ranges=0;let j=S.nodes.shift();S.nodes=[j,{type:"text",value:r(S)}]}q({type:"comma",value:k}),S.commas++;continue}if(k===a&&w>0&&S.commas===0){let j=S.nodes;if(w===0||j.length===0){q({type:"text",value:k});continue}if(R.type==="dot"){if(S.range=[],R.value+=k,R.type="range",S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,R.type="text";continue}S.ranges++,S.args=[];continue}if(R.type==="range"){j.pop();let F=j[j.length-1];F.value+=R.value+k,R=F,S.ranges--;continue}q({type:"dot",value:k});continue}q({type:"text",value:k})}do if(S=P.pop(),S.type!=="root"){S.nodes.forEach(B=>{B.nodes||(B.type==="open"&&(B.isOpen=!0),B.type==="close"&&(B.isClose=!0),B.nodes||(B.type="text"),B.invalid=!0)});let j=P[P.length-1],F=j.nodes.indexOf(S);j.nodes.splice(F,1,...S.nodes)}while(P.length>0);return q({type:"eos"}),b};t.exports=u}}),hf=(0,D.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(e,t){"use strict";var r=tn(),n=lf(),i=ff(),o=pf(),c=(a,s={})=>{let l=[];if(Array.isArray(a))for(let d of a){let v=c.create(d,s);Array.isArray(v)?l.push(...v):l.push(v)}else l=[].concat(c.create(a,s));return s&&s.expand===!0&&s.nodupes===!0&&(l=[...new Set(l)]),l};c.parse=(a,s={})=>o(a,s),c.stringify=(a,s={})=>r(typeof a=="string"?c.parse(a,s):a,s),c.compile=(a,s={})=>(typeof a=="string"&&(a=c.parse(a,s)),n(a,s)),c.expand=(a,s={})=>{typeof a=="string"&&(a=c.parse(a,s));let l=i(a,s);return s.noempty===!0&&(l=l.filter(Boolean)),s.nodupes===!0&&(l=[...new Set(l)]),l},c.create=(a,s={})=>a===""||a.length<3?[a]:s.expand!==!0?c.compile(a,s):c.expand(a,s),t.exports=c}}),tr=(0,D.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(e,t){"use strict";var r=(0,D.__require)("path"),n="\\\\/",i=`[^${n}]`,o="\\.",c="\\+",a="\\?",s="\\/",l="(?=.)",d="[^/]",v=`(?:${s}|$)`,g=`(?:^|${s})`,x=`${o}{1,2}${v}`,_=`(?!${o})`,E=`(?!${g}${x})`,p=`(?!${o}{0,1}${v})`,y=`(?!${x})`,u=`[^.${s}]`,f=`${d}*?`,m={DOT_LITERAL:o,PLUS_LITERAL:c,QMARK_LITERAL:a,SLASH_LITERAL:s,ONE_CHAR:l,QMARK:d,END_ANCHOR:v,DOTS_SLASH:x,NO_DOT:_,NO_DOTS:E,NO_DOT_SLASH:p,NO_DOTS_SLASH:y,QMARK_NO_DOT:u,STAR:f,START_ANCHOR:g},h={...m,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${o}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${n}])${o}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},O={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:O,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:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?h:m}}}}),rr=(0,D.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(e){"use strict";var t=(0,D.__require)("path"),r=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:c}=tr();e.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),e.hasRegexChars=a=>o.test(a),e.isRegexChar=a=>a.length===1&&e.hasRegexChars(a),e.escapeRegex=a=>a.replace(c,"\\$1"),e.toPosixSlashes=a=>a.replace(n,"/"),e.removeBackslashes=a=>a.replace(i,s=>s==="\\"?"":s),e.supportsLookbehinds=()=>{let a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||a[0]===8&&a[1]>=10},e.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:r===!0||t.sep==="\\",e.escapeLast=(a,s,l)=>{let d=a.lastIndexOf(s,l);return d===-1?a:a[d-1]==="\\"?e.escapeLast(a,s,d-1):`${a.slice(0,d)}\\${a.slice(d)}`},e.removePrefix=(a,s={})=>{let l=a;return l.startsWith("./")&&(l=l.slice(2),s.prefix="./"),l},e.wrapOutput=(a,s={},l={})=>{let d=l.contains?"":"^",v=l.contains?"":"$",g=`${d}(?:${a})${v}`;return s.negated===!0&&(g=`(?:^(?!${g}).*$)`),g}}}),mf=(0,D.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(e,t){"use strict";var r=rr(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:c,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:d,CHAR_LEFT_PARENTHESES:v,CHAR_LEFT_SQUARE_BRACKET:g,CHAR_PLUS:x,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:p,CHAR_RIGHT_SQUARE_BRACKET:y}=tr(),u=h=>h===l||h===o,f=h=>{h.isPrefix!==!0&&(h.depth=h.isGlobstar?1/0:1)},m=(h,O)=>{let b=O||{},P=h.length-1,S=b.parts===!0||b.scanToEnd===!0,R=[],T=[],C=[],A=h,w=-1,k=0,L=0,q=!1,j=!1,F=!1,B=!1,N=!1,H=!1,$=!1,V=!1,ae=!1,K=!1,I=0,M,G,W={value:"",depth:0,isGlob:!1},re=()=>w>=P,ie=()=>A.charCodeAt(w+1),Y=()=>(M=G,A.charCodeAt(++w));for(;w<P;){G=Y();let z;if(G===o){$=W.backslashes=!0,G=Y(),G===d&&(H=!0);continue}if(H===!0||G===d){for(I++;re()!==!0&&(G=Y());){if(G===o){$=W.backslashes=!0,Y();continue}if(G===d){I++;continue}if(H!==!0&&G===a&&(G=Y())===a){if(q=W.isBrace=!0,F=W.isGlob=!0,K=!0,S===!0)continue;break}if(H!==!0&&G===c){if(q=W.isBrace=!0,F=W.isGlob=!0,K=!0,S===!0)continue;break}if(G===E&&(I--,I===0)){H=!1,q=W.isBrace=!0,K=!0;break}}if(S===!0)continue;break}if(G===l){if(R.push(w),T.push(W),W={value:"",depth:0,isGlob:!1},K===!0)continue;if(M===a&&w===k+1){k+=2;continue}L=w+1;continue}if(b.noext!==!0&&(G===x||G===i||G===n||G===_||G===s)===!0&&ie()===v){if(F=W.isGlob=!0,B=W.isExtglob=!0,K=!0,G===s&&w===k&&(ae=!0),S===!0){for(;re()!==!0&&(G=Y());){if(G===o){$=W.backslashes=!0,G=Y();continue}if(G===p){F=W.isGlob=!0,K=!0;break}}continue}break}if(G===n){if(M===n&&(N=W.isGlobstar=!0),F=W.isGlob=!0,K=!0,S===!0)continue;break}if(G===_){if(F=W.isGlob=!0,K=!0,S===!0)continue;break}if(G===g){for(;re()!==!0&&(z=Y());){if(z===o){$=W.backslashes=!0,Y();continue}if(z===y){j=W.isBracket=!0,F=W.isGlob=!0,K=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&G===s&&w===k){V=W.negated=!0,k++;continue}if(b.noparen!==!0&&G===v){if(F=W.isGlob=!0,S===!0){for(;re()!==!0&&(G=Y());){if(G===v){$=W.backslashes=!0,G=Y();continue}if(G===p){K=!0;break}}continue}break}if(F===!0){if(K=!0,S===!0)continue;break}}b.noext===!0&&(B=!1,F=!1);let Q=A,ne="",se="";k>0&&(ne=A.slice(0,k),A=A.slice(k),L-=k),Q&&F===!0&&L>0?(Q=A.slice(0,L),se=A.slice(L)):F===!0?(Q="",se=A):Q=A,Q&&Q!==""&&Q!=="/"&&Q!==A&&u(Q.charCodeAt(Q.length-1))&&(Q=Q.slice(0,-1)),b.unescape===!0&&(se&&(se=r.removeBackslashes(se)),Q&&$===!0&&(Q=r.removeBackslashes(Q)));let Z={prefix:ne,input:h,start:k,base:Q,glob:se,isBrace:q,isBracket:j,isGlob:F,isExtglob:B,isGlobstar:N,negated:V,negatedExtglob:ae};if(b.tokens===!0&&(Z.maxDepth=0,u(G)||T.push(W),Z.tokens=T),b.parts===!0||b.tokens===!0){let z;for(let ye=0;ye<R.length;ye++){let $e=z?z+1:k,J=R[ye],oe=h.slice($e,J);b.tokens&&(ye===0&&k!==0?(T[ye].isPrefix=!0,T[ye].value=ne):T[ye].value=oe,f(T[ye]),Z.maxDepth+=T[ye].depth),(ye!==0||oe!=="")&&C.push(oe),z=J}if(z&&z+1<h.length){let ye=h.slice(z+1);C.push(ye),b.tokens&&(T[T.length-1].value=ye,f(T[T.length-1]),Z.maxDepth+=T[T.length-1].depth)}Z.slashes=R,Z.parts=C}return Z};t.exports=m}}),vf=(0,D.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(e,t){"use strict";var r=tr(),n=rr(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:s}=r,l=(g,x)=>{if(typeof x.expandRange=="function")return x.expandRange(...g,x);g.sort();let _=`[${g.join("-")}]`;try{new RegExp(_)}catch{return g.map(p=>n.escapeRegex(p)).join("..")}return _},d=(g,x)=>`Missing ${g}: "${x}" - use "\\\\${x}" to match literal characters`,v=(g,x)=>{if(typeof g!="string")throw new TypeError("Expected a string");g=s[g]||g;let _={...x},E=typeof _.maxLength=="number"?Math.min(i,_.maxLength):i,p=g.length;if(p>E)throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${E}`);let y={type:"bos",value:"",output:_.prepend||""},u=[y],f=_.capture?"":"?:",m=n.isWindows(x),h=r.globChars(m),O=r.extglobChars(h),{DOT_LITERAL:b,PLUS_LITERAL:P,SLASH_LITERAL:S,ONE_CHAR:R,DOTS_SLASH:T,NO_DOT:C,NO_DOT_SLASH:A,NO_DOTS_SLASH:w,QMARK:k,QMARK_NO_DOT:L,STAR:q,START_ANCHOR:j}=h,F=J=>`(${f}(?:(?!${j}${J.dot?T:b}).)*?)`,B=_.dot?"":C,N=_.dot?k:L,H=_.bash===!0?F(_):q;_.capture&&(H=`(${H})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);let $={input:g,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:u};g=n.removePrefix(g,$),p=g.length;let V=[],ae=[],K=[],I=y,M,G=()=>$.index===p-1,W=$.peek=(J=1)=>g[$.index+J],re=$.advance=()=>g[++$.index]||"",ie=()=>g.slice($.index+1),Y=(J="",oe=0)=>{$.consumed+=J,$.index+=oe},Q=J=>{$.output+=J.output!=null?J.output:J.value,Y(J.value)},ne=()=>{let J=1;for(;W()==="!"&&(W(2)!=="("||W(3)==="?");)re(),$.start++,J++;return J%2===0?!1:($.negated=!0,$.start++,!0)},se=J=>{$[J]++,K.push(J)},Z=J=>{$[J]--,K.pop()},z=J=>{if(I.type==="globstar"){let oe=$.braces>0&&(J.type==="comma"||J.type==="brace"),U=J.extglob===!0||V.length&&(J.type==="pipe"||J.type==="paren");J.type!=="slash"&&J.type!=="paren"&&!oe&&!U&&($.output=$.output.slice(0,-I.output.length),I.type="star",I.value="*",I.output=H,$.output+=I.output)}if(V.length&&J.type!=="paren"&&(V[V.length-1].inner+=J.value),(J.value||J.output)&&Q(J),I&&I.type==="text"&&J.type==="text"){I.value+=J.value,I.output=(I.output||"")+J.value;return}J.prev=I,u.push(J),I=J},ye=(J,oe)=>{let U={...O[oe],conditions:1,inner:""};U.prev=I,U.parens=$.parens,U.output=$.output;let ee=(_.capture?"(":"")+U.open;se("parens"),z({type:J,value:oe,output:$.output?"":R}),z({type:"paren",extglob:!0,value:re(),output:ee}),V.push(U)},$e=J=>{let oe=J.close+(_.capture?")":""),U;if(J.type==="negate"){let ee=H;if(J.inner&&J.inner.length>1&&J.inner.includes("/")&&(ee=F(_)),(ee!==H||G()||/^\)+$/.test(ie()))&&(oe=J.close=`)$))${ee}`),J.inner.includes("*")&&(U=ie())&&/^\.[^\\/.]+$/.test(U)){let me=v(U,{...x,fastpaths:!1}).output;oe=J.close=`)${me})${ee})`}J.prev.type==="bos"&&($.negatedExtglob=!0)}z({type:"paren",extglob:!0,value:M,output:oe}),Z("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(g)){let J=!1,oe=g.replace(a,(U,ee,me,be,_e,tt)=>be==="\\"?(J=!0,U):be==="?"?ee?ee+be+(_e?k.repeat(_e.length):""):tt===0?N+(_e?k.repeat(_e.length):""):k.repeat(me.length):be==="."?b.repeat(me.length):be==="*"?ee?ee+be+(_e?H:""):H:ee?U:`\\${U}`);return J===!0&&(_.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,U=>U.length%2===0?"\\\\":U?"\\":"")),oe===g&&_.contains===!0?($.output=g,$):($.output=n.wrapOutput(oe,$,x),$)}for(;!G();){if(M=re(),M==="\0")continue;if(M==="\\"){let U=W();if(U==="/"&&_.bash!==!0||U==="."||U===";")continue;if(!U){M+="\\",z({type:"text",value:M});continue}let ee=/^\\+/.exec(ie()),me=0;if(ee&&ee[0].length>2&&(me=ee[0].length,$.index+=me,me%2!==0&&(M+="\\")),_.unescape===!0?M=re():M+=re(),$.brackets===0){z({type:"text",value:M});continue}}if($.brackets>0&&(M!=="]"||I.value==="["||I.value==="[^")){if(_.posix!==!1&&M===":"){let U=I.value.slice(1);if(U.includes("[")&&(I.posix=!0,U.includes(":"))){let ee=I.value.lastIndexOf("["),me=I.value.slice(0,ee),be=I.value.slice(ee+2),_e=o[be];if(_e){I.value=me+_e,$.backtrack=!0,re(),!y.output&&u.indexOf(I)===1&&(y.output=R);continue}}}(M==="["&&W()!==":"||M==="-"&&W()==="]")&&(M=`\\${M}`),M==="]"&&(I.value==="["||I.value==="[^")&&(M=`\\${M}`),_.posix===!0&&M==="!"&&I.value==="["&&(M="^"),I.value+=M,Q({value:M});continue}if($.quotes===1&&M!=='"'){M=n.escapeRegex(M),I.value+=M,Q({value:M});continue}if(M==='"'){$.quotes=$.quotes===1?0:1,_.keepQuotes===!0&&z({type:"text",value:M});continue}if(M==="("){se("parens"),z({type:"paren",value:M});continue}if(M===")"){if($.parens===0&&_.strictBrackets===!0)throw new SyntaxError(d("opening","("));let U=V[V.length-1];if(U&&$.parens===U.parens+1){$e(V.pop());continue}z({type:"paren",value:M,output:$.parens?")":"\\)"}),Z("parens");continue}if(M==="["){if(_.nobracket===!0||!ie().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(d("closing","]"));M=`\\${M}`}else se("brackets");z({type:"bracket",value:M});continue}if(M==="]"){if(_.nobracket===!0||I&&I.type==="bracket"&&I.value.length===1){z({type:"text",value:M,output:`\\${M}`});continue}if($.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(d("opening","["));z({type:"text",value:M,output:`\\${M}`});continue}Z("brackets");let U=I.value.slice(1);if(I.posix!==!0&&U[0]==="^"&&!U.includes("/")&&(M=`/${M}`),I.value+=M,Q({value:M}),_.literalBrackets===!1||n.hasRegexChars(U))continue;let ee=n.escapeRegex(I.value);if($.output=$.output.slice(0,-I.value.length),_.literalBrackets===!0){$.output+=ee,I.value=ee;continue}I.value=`(${f}${ee}|${I.value})`,$.output+=I.value;continue}if(M==="{"&&_.nobrace!==!0){se("braces");let U={type:"brace",value:M,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};ae.push(U),z(U);continue}if(M==="}"){let U=ae[ae.length-1];if(_.nobrace===!0||!U){z({type:"text",value:M,output:M});continue}let ee=")";if(U.dots===!0){let me=u.slice(),be=[];for(let _e=me.length-1;_e>=0&&(u.pop(),me[_e].type!=="brace");_e--)me[_e].type!=="dots"&&be.unshift(me[_e].value);ee=l(be,_),$.backtrack=!0}if(U.comma!==!0&&U.dots!==!0){let me=$.output.slice(0,U.outputIndex),be=$.tokens.slice(U.tokensIndex);U.value=U.output="\\{",M=ee="\\}",$.output=me;for(let _e of be)$.output+=_e.output||_e.value}z({type:"brace",value:M,output:ee}),Z("braces"),ae.pop();continue}if(M==="|"){V.length>0&&V[V.length-1].conditions++,z({type:"text",value:M});continue}if(M===","){let U=M,ee=ae[ae.length-1];ee&&K[K.length-1]==="braces"&&(ee.comma=!0,U="|"),z({type:"comma",value:M,output:U});continue}if(M==="/"){if(I.type==="dot"&&$.index===$.start+1){$.start=$.index+1,$.consumed="",$.output="",u.pop(),I=y;continue}z({type:"slash",value:M,output:S});continue}if(M==="."){if($.braces>0&&I.type==="dot"){I.value==="."&&(I.output=b);let U=ae[ae.length-1];I.type="dots",I.output+=M,I.value+=M,U.dots=!0;continue}if($.braces+$.parens===0&&I.type!=="bos"&&I.type!=="slash"){z({type:"text",value:M,output:b});continue}z({type:"dot",value:M,output:b});continue}if(M==="?"){if(!(I&&I.value==="(")&&_.noextglob!==!0&&W()==="("&&W(2)!=="?"){ye("qmark",M);continue}if(I&&I.type==="paren"){let ee=W(),me=M;if(ee==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(I.value==="("&&!/[!=<:]/.test(ee)||ee==="<"&&!/<([!=]|\w+>)/.test(ie()))&&(me=`\\${M}`),z({type:"text",value:M,output:me});continue}if(_.dot!==!0&&(I.type==="slash"||I.type==="bos")){z({type:"qmark",value:M,output:L});continue}z({type:"qmark",value:M,output:k});continue}if(M==="!"){if(_.noextglob!==!0&&W()==="("&&(W(2)!=="?"||!/[!=<:]/.test(W(3)))){ye("negate",M);continue}if(_.nonegate!==!0&&$.index===0){ne();continue}}if(M==="+"){if(_.noextglob!==!0&&W()==="("&&W(2)!=="?"){ye("plus",M);continue}if(I&&I.value==="("||_.regex===!1){z({type:"plus",value:M,output:P});continue}if(I&&(I.type==="bracket"||I.type==="paren"||I.type==="brace")||$.parens>0){z({type:"plus",value:M});continue}z({type:"plus",value:P});continue}if(M==="@"){if(_.noextglob!==!0&&W()==="("&&W(2)!=="?"){z({type:"at",extglob:!0,value:M,output:""});continue}z({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);let U=c.exec(ie());U&&(M+=U[0],$.index+=U[0].length),z({type:"text",value:M});continue}if(I&&(I.type==="globstar"||I.star===!0)){I.type="star",I.star=!0,I.value+=M,I.output=H,$.backtrack=!0,$.globstar=!0,Y(M);continue}let J=ie();if(_.noextglob!==!0&&/^\([^?]/.test(J)){ye("star",M);continue}if(I.type==="star"){if(_.noglobstar===!0){Y(M);continue}let U=I.prev,ee=U.prev,me=U.type==="slash"||U.type==="bos",be=ee&&(ee.type==="star"||ee.type==="globstar");if(_.bash===!0&&(!me||J[0]&&J[0]!=="/")){z({type:"star",value:M,output:""});continue}let _e=$.braces>0&&(U.type==="comma"||U.type==="brace"),tt=V.length&&(U.type==="pipe"||U.type==="paren");if(!me&&U.type!=="paren"&&!_e&&!tt){z({type:"star",value:M,output:""});continue}for(;J.slice(0,3)==="/**";){let Me=g[$.index+4];if(Me&&Me!=="/")break;J=J.slice(3),Y("/**",3)}if(U.type==="bos"&&G()){I.type="globstar",I.value+=M,I.output=F(_),$.output=I.output,$.globstar=!0,Y(M);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&!be&&G()){$.output=$.output.slice(0,-(U.output+I.output).length),U.output=`(?:${U.output}`,I.type="globstar",I.output=F(_)+(_.strictSlashes?")":"|$)"),I.value+=M,$.globstar=!0,$.output+=U.output+I.output,Y(M);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&J[0]==="/"){let Me=J[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(U.output+I.output).length),U.output=`(?:${U.output}`,I.type="globstar",I.output=`${F(_)}${S}|${S}${Me})`,I.value+=M,$.output+=U.output+I.output,$.globstar=!0,Y(M+re()),z({type:"slash",value:"/",output:""});continue}if(U.type==="bos"&&J[0]==="/"){I.type="globstar",I.value+=M,I.output=`(?:^|${S}|${F(_)}${S})`,$.output=I.output,$.globstar=!0,Y(M+re()),z({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-I.output.length),I.type="globstar",I.output=F(_),I.value+=M,$.output+=I.output,$.globstar=!0,Y(M);continue}let oe={type:"star",value:M,output:H};if(_.bash===!0){oe.output=".*?",(I.type==="bos"||I.type==="slash")&&(oe.output=B+oe.output),z(oe);continue}if(I&&(I.type==="bracket"||I.type==="paren")&&_.regex===!0){oe.output=M,z(oe);continue}($.index===$.start||I.type==="slash"||I.type==="dot")&&(I.type==="dot"?($.output+=A,I.output+=A):_.dot===!0?($.output+=w,I.output+=w):($.output+=B,I.output+=B),W()!=="*"&&($.output+=R,I.output+=R)),z(oe)}for(;$.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(d("closing","]"));$.output=n.escapeLast($.output,"["),Z("brackets")}for(;$.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(d("closing",")"));$.output=n.escapeLast($.output,"("),Z("parens")}for(;$.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(d("closing","}"));$.output=n.escapeLast($.output,"{"),Z("braces")}if(_.strictSlashes!==!0&&(I.type==="star"||I.type==="bracket")&&z({type:"maybe_slash",value:"",output:`${S}?`}),$.backtrack===!0){$.output="";for(let J of $.tokens)$.output+=J.output!=null?J.output:J.value,J.suffix&&($.output+=J.suffix)}return $};v.fastpaths=(g,x)=>{let _={...x},E=typeof _.maxLength=="number"?Math.min(i,_.maxLength):i,p=g.length;if(p>E)throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${E}`);g=s[g]||g;let y=n.isWindows(x),{DOT_LITERAL:u,SLASH_LITERAL:f,ONE_CHAR:m,DOTS_SLASH:h,NO_DOT:O,NO_DOTS:b,NO_DOTS_SLASH:P,STAR:S,START_ANCHOR:R}=r.globChars(y),T=_.dot?b:O,C=_.dot?P:O,A=_.capture?"":"?:",w={negated:!1,prefix:""},k=_.bash===!0?".*?":S;_.capture&&(k=`(${k})`);let L=B=>B.noglobstar===!0?k:`(${A}(?:(?!${R}${B.dot?h:u}).)*?)`,q=B=>{switch(B){case"*":return`${T}${m}${k}`;case".*":return`${u}${m}${k}`;case"*.*":return`${T}${k}${u}${m}${k}`;case"*/*":return`${T}${k}${f}${m}${C}${k}`;case"**":return T+L(_);case"**/*":return`(?:${T}${L(_)}${f})?${C}${m}${k}`;case"**/*.*":return`(?:${T}${L(_)}${f})?${C}${k}${u}${m}${k}`;case"**/.*":return`(?:${T}${L(_)}${f})?${u}${m}${k}`;default:{let N=/^(.*?)\.(\w+)$/.exec(B);if(!N)return;let H=q(N[1]);return H?H+u+N[2]:void 0}}},j=n.removePrefix(g,w),F=q(j);return F&&_.strictSlashes!==!0&&(F+=`${f}?`),F},t.exports=v}}),gf=(0,D.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(e,t){"use strict";var r=(0,D.__require)("path"),n=mf(),i=vf(),o=rr(),c=tr(),a=l=>l&&typeof l=="object"&&!Array.isArray(l),s=(l,d,v=!1)=>{if(Array.isArray(l)){let f=l.map(h=>s(h,d,v));return h=>{for(let O of f){let b=O(h);if(b)return b}return!1}}let g=a(l)&&l.tokens&&l.input;if(l===""||typeof l!="string"&&!g)throw new TypeError("Expected pattern to be a non-empty string");let x=d||{},_=o.isWindows(d),E=g?s.compileRe(l,d):s.makeRe(l,d,!1,!0),p=E.state;delete E.state;let y=()=>!1;if(x.ignore){let f={...d,ignore:null,onMatch:null,onResult:null};y=s(x.ignore,f,v)}let u=(f,m=!1)=>{let{isMatch:h,match:O,output:b}=s.test(f,E,d,{glob:l,posix:_}),P={glob:l,state:p,regex:E,posix:_,input:f,output:b,match:O,isMatch:h};return typeof x.onResult=="function"&&x.onResult(P),h===!1?(P.isMatch=!1,m?P:!1):y(f)?(typeof x.onIgnore=="function"&&x.onIgnore(P),P.isMatch=!1,m?P:!1):(typeof x.onMatch=="function"&&x.onMatch(P),m?P:!0)};return v&&(u.state=p),u};s.test=(l,d,v,{glob:g,posix:x}={})=>{if(typeof l!="string")throw new TypeError("Expected input to be a string");if(l==="")return{isMatch:!1,output:""};let _=v||{},E=_.format||(x?o.toPosixSlashes:null),p=l===g,y=p&&E?E(l):l;return p===!1&&(y=E?E(l):l,p=y===g),(p===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?p=s.matchBase(l,d,v,x):p=d.exec(y)),{isMatch:!!p,match:p,output:y}},s.matchBase=(l,d,v,g=o.isWindows(v))=>(d instanceof RegExp?d:s.makeRe(d,v)).test(r.basename(l)),s.isMatch=(l,d,v)=>s(d,v)(l),s.parse=(l,d)=>Array.isArray(l)?l.map(v=>s.parse(v,d)):i(l,{...d,fastpaths:!1}),s.scan=(l,d)=>n(l,d),s.compileRe=(l,d,v=!1,g=!1)=>{if(v===!0)return l.output;let x=d||{},_=x.contains?"":"^",E=x.contains?"":"$",p=`${_}(?:${l.output})${E}`;l&&l.negated===!0&&(p=`^(?!${p}).*$`);let y=s.toRegex(p,d);return g===!0&&(y.state=l),y},s.makeRe=(l,d={},v=!1,g=!1)=>{if(!l||typeof l!="string")throw new TypeError("Expected a non-empty string");let x={negated:!1,fastpaths:!0};return d.fastpaths!==!1&&(l[0]==="."||l[0]==="*")&&(x.output=i.fastpaths(l,d)),x.output||(x=i(l,d)),s.compileRe(x,d,v,g)},s.toRegex=(l,d)=>{try{let v=d||{};return new RegExp(l,v.flags||(v.nocase?"i":""))}catch(v){if(d&&d.debug===!0)throw v;return/$^/}},s.constants=c,t.exports=s}}),yf=(0,D.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js"(e,t){"use strict";t.exports=gf()}}),_f=(0,D.__commonJS)({"../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(e,t){"use strict";var r=(0,D.__require)("util"),n=hf(),i=yf(),o=rr(),c=l=>l===""||l==="./",a=l=>{let d=l.indexOf("{");return d>-1&&l.indexOf("}",d)>-1},s=(l,d,v)=>{d=[].concat(d),l=[].concat(l);let g=new Set,x=new Set,_=new Set,E=0,p=f=>{_.add(f.output),v&&v.onResult&&v.onResult(f)};for(let f=0;f<d.length;f++){let m=i(String(d[f]),{...v,onResult:p},!0),h=m.state.negated||m.state.negatedExtglob;h&&E++;for(let O of l){let b=m(O,!0);(h?!b.isMatch:b.isMatch)&&(h?g.add(b.output):(g.delete(b.output),x.add(b.output)))}}let u=(E===d.length?[..._]:[...x]).filter(f=>!g.has(f));if(v&&u.length===0){if(v.failglob===!0)throw new Error(`No matches found for "${d.join(", ")}"`);if(v.nonull===!0||v.nullglob===!0)return v.unescape?d.map(f=>f.replace(/\\/g,"")):d}return u};s.match=s,s.matcher=(l,d)=>i(l,d),s.isMatch=(l,d,v)=>i(d,v)(l),s.any=s.isMatch,s.not=(l,d,v={})=>{d=[].concat(d).map(String);let g=new Set,x=[],_=p=>{v.onResult&&v.onResult(p),x.push(p.output)},E=new Set(s(l,d,{...v,onResult:_}));for(let p of x)E.has(p)||g.add(p);return[...g]},s.contains=(l,d,v)=>{if(typeof l!="string")throw new TypeError(`Expected a string: "${r.inspect(l)}"`);if(Array.isArray(d))return d.some(g=>s.contains(l,g,v));if(typeof d=="string"){if(c(l)||c(d))return!1;if(l.includes(d)||l.startsWith("./")&&l.slice(2).includes(d))return!0}return s.isMatch(l,d,{...v,contains:!0})},s.matchKeys=(l,d,v)=>{if(!o.isObject(l))throw new TypeError("Expected the first argument to be an object");let g=s(Object.keys(l),d,v),x={};for(let _ of g)x[_]=l[_];return x},s.some=(l,d,v)=>{let g=[].concat(l);for(let x of[].concat(d)){let _=i(String(x),v);if(g.some(E=>_(E)))return!0}return!1},s.every=(l,d,v)=>{let g=[].concat(l);for(let x of[].concat(d)){let _=i(String(x),v);if(!g.every(E=>_(E)))return!1}return!0},s.all=(l,d,v)=>{if(typeof l!="string")throw new TypeError(`Expected a string: "${r.inspect(l)}"`);return[].concat(d).every(g=>i(g,v)(l))},s.capture=(l,d,v)=>{let g=o.isWindows(v),_=i.makeRe(String(l),{...v,capture:!0}).exec(g?o.toPosixSlashes(d):d);if(_)return _.slice(1).map(E=>E===void 0?"":E)},s.makeRe=(...l)=>i.makeRe(...l),s.scan=(...l)=>i.scan(...l),s.parse=(l,d)=>{let v=[];for(let g of[].concat(l||[]))for(let x of n(String(g),d))v.push(i.parse(x,d));return v},s.braces=(l,d)=>{if(typeof l!="string")throw new TypeError("Expected a string");return d&&d.nobrace===!0||!a(l)?[l]:n(l,d)},s.braceExpand=(l,d)=>{if(typeof l!="string")throw new TypeError("Expected a string");return s.braces(l,{...d,expand:!0})},s.hasBraces=a,t.exports=s}}),bf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=(0,D.__require)("path"),r=of(),n=_f(),i="**",o="\\",c=/[*?]|^!/,a=/\[[^[]*]/,s=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,l=/[!*+?@]\([^(]*\)/,d=/,|\.\./,v=/(?!^)\/{2,}/g;function g(N,H={}){return!x(N,H)}e.isStaticPattern=g;function x(N,H={}){return N===""?!1:!!(H.caseSensitiveMatch===!1||N.includes(o)||c.test(N)||a.test(N)||s.test(N)||H.extglob!==!1&&l.test(N)||H.braceExpansion!==!1&&_(N))}e.isDynamicPattern=x;function _(N){let H=N.indexOf("{");if(H===-1)return!1;let $=N.indexOf("}",H+1);if($===-1)return!1;let V=N.slice(H,$);return d.test(V)}function E(N){return y(N)?N.slice(1):N}e.convertToPositivePattern=E;function p(N){return"!"+N}e.convertToNegativePattern=p;function y(N){return N.startsWith("!")&&N[1]!=="("}e.isNegativePattern=y;function u(N){return!y(N)}e.isPositivePattern=u;function f(N){return N.filter(y)}e.getNegativePatterns=f;function m(N){return N.filter(u)}e.getPositivePatterns=m;function h(N){return N.filter(H=>!b(H))}e.getPatternsInsideCurrentDirectory=h;function O(N){return N.filter(b)}e.getPatternsOutsideCurrentDirectory=O;function b(N){return N.startsWith("..")||N.startsWith("./..")}e.isPatternRelatedToParentDirectory=b;function P(N){return r(N,{flipBackslashes:!1})}e.getBaseDirectory=P;function S(N){return N.includes(i)}e.hasGlobStar=S;function R(N){return N.endsWith("/"+i)}e.endsWithSlashGlobStar=R;function T(N){let H=t.basename(N);return R(N)||g(H)}e.isAffectDepthOfReadingPattern=T;function C(N){return N.reduce((H,$)=>H.concat(A($)),[])}e.expandPatternsWithBraceExpansion=C;function A(N){let H=n.braces(N,{expand:!0,nodupes:!0,keepEscaping:!0});return H.sort(($,V)=>$.length-V.length),H.filter($=>$!=="")}e.expandBraceExpansion=A;function w(N,H){let{parts:$}=n.scan(N,Object.assign(Object.assign({},H),{parts:!0}));return $.length===0&&($=[N]),$[0].startsWith("/")&&($[0]=$[0].slice(1),$.unshift("")),$}e.getPatternParts=w;function k(N,H){return n.makeRe(N,H)}e.makeRe=k;function L(N,H){return N.map($=>k($,H))}e.convertPatternsToRe=L;function q(N,H){return H.some($=>$.test(N))}e.matchAny=q;function j(N){return N.replace(v,"/")}e.removeDuplicateSlashes=j;function F(N){let H=[],$=[];for(let V of N)B(V)?H.push(V):$.push(V);return[H,$]}e.partitionAbsoluteAndRelative=F;function B(N){return t.isAbsolute(N)}e.isAbsolute=B}}),Sf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=Ss();function r(i){let o=t(i);return i.forEach(c=>{c.once("error",a=>o.emit("error",a))}),o.once("close",()=>n(i)),o.once("end",()=>n(i)),o}e.merge=r;function n(i){i.forEach(o=>o.emit("close"))}}}),wf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(n){return typeof n=="string"}e.isString=t;function r(n){return n===""}e.isEmpty=r}}),Ke=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=tf();e.array=t;var r=rf();e.errno=r;var n=nf();e.fs=n;var i=sf();e.path=i;var o=bf();e.pattern=o;var c=Sf();e.stream=c;var a=wf();e.string=a}}),Ef=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Ke();function r(d,v){let g=n(d,v),x=n(v.ignore,v),_=o(g),E=c(g,x),p=_.filter(m=>t.pattern.isStaticPattern(m,v)),y=_.filter(m=>t.pattern.isDynamicPattern(m,v)),u=i(p,E,!1),f=i(y,E,!0);return u.concat(f)}e.generate=r;function n(d,v){let g=d;return v.braceExpansion&&(g=t.pattern.expandPatternsWithBraceExpansion(g)),v.baseNameMatch&&(g=g.map(x=>x.includes("/")?x:`**/${x}`)),g.map(x=>t.pattern.removeDuplicateSlashes(x))}function i(d,v,g){let x=[],_=t.pattern.getPatternsOutsideCurrentDirectory(d),E=t.pattern.getPatternsInsideCurrentDirectory(d),p=a(_),y=a(E);return x.push(...s(p,v,g)),"."in y?x.push(l(".",E,v,g)):x.push(...s(y,v,g)),x}e.convertPatternsToTasks=i;function o(d){return t.pattern.getPositivePatterns(d)}e.getPositivePatterns=o;function c(d,v){return t.pattern.getNegativePatterns(d).concat(v).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=c;function a(d){let v={};return d.reduce((g,x)=>{let _=t.pattern.getBaseDirectory(x);return _ in g?g[_].push(x):g[_]=[x],g},v)}e.groupPatternsByBaseDirectory=a;function s(d,v,g){return Object.keys(d).map(x=>l(x,d[x],v,g))}e.convertPatternGroupsToTasks=s;function l(d,v,g,x){return{dynamic:x,positive:v,negative:g,base:d,patterns:[].concat(v,g.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=l}}),Pf=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(i,o,c){o.fs.lstat(i,(a,s)=>{if(a!==null){r(c,a);return}if(!s.isSymbolicLink()||!o.followSymbolicLink){n(c,s);return}o.fs.stat(i,(l,d)=>{if(l!==null){if(o.throwErrorOnBrokenSymbolicLink){r(c,l);return}n(c,s);return}o.markSymbolicLink&&(d.isSymbolicLink=()=>!0),n(c,d)})})}e.read=t;function r(i,o){i(o)}function n(i,o){i(null,o)}}}),Af=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,n){let i=n.fs.lstatSync(r);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let o=n.fs.statSync(r);return n.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw o}}e.read=t}}),Of=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=(0,D.__require)("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}}),xf=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Of(),r=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n??i}};e.default=r}}),ft=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=Pf(),r=Af(),n=xf();e.Settings=n.default;function i(a,s,l){if(typeof s=="function"){t.read(a,c(),s);return}t.read(a,c(s),l)}e.stat=i;function o(a,s){let l=c(s);return r.read(a,l)}e.statSync=o;function c(a={}){return a instanceof n.default?a:new n.default(a)}}}),Tf=(0,D.__commonJS)({"../../node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(e,t){"use strict";var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(r||(r=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}}),Rf=(0,D.__commonJS)({"../../node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.js"(e,t){"use strict";t.exports=n;var r=Tf();function n(i,o){let c,a,s,l=!0;Array.isArray(i)?(c=[],a=i.length):(s=Object.keys(i),c={},a=s.length);function d(g){function x(){o&&o(g,c),o=null}l?r(x):x()}function v(g,x,_){c[g]=_,(--a===0||x)&&d(x)}a?s?s.forEach(function(g){i[g](function(x,_){v(g,x,_)})}):i.forEach(function(g,x){g(function(_,E){v(x,_,E)})}):d(null),l=!1}}}),Ps=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),n=Number.parseInt(t[1],10),i=10,o=10,c=r>i,a=r===i&&n>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=c||a}}),kf=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}}),As=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=kf();e.fs=t}}),Os=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,n,i){return r.endsWith(i)?r+n:r+i+n}e.joinPathSegments=t}}),Cf=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=ft(),r=Rf(),n=Ps(),i=As(),o=Os();function c(g,x,_){if(!x.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){a(g,x,_);return}l(g,x,_)}e.read=c;function a(g,x,_){x.fs.readdir(g,{withFileTypes:!0},(E,p)=>{if(E!==null){d(_,E);return}let y=p.map(f=>({dirent:f,name:f.name,path:o.joinPathSegments(g,f.name,x.pathSegmentSeparator)}));if(!x.followSymbolicLinks){v(_,y);return}let u=y.map(f=>s(f,x));r(u,(f,m)=>{if(f!==null){d(_,f);return}v(_,m)})})}e.readdirWithFileTypes=a;function s(g,x){return _=>{if(!g.dirent.isSymbolicLink()){_(null,g);return}x.fs.stat(g.path,(E,p)=>{if(E!==null){if(x.throwErrorOnBrokenSymbolicLink){_(E);return}_(null,g);return}g.dirent=i.fs.createDirentFromStats(g.name,p),_(null,g)})}}function l(g,x,_){x.fs.readdir(g,(E,p)=>{if(E!==null){d(_,E);return}let y=p.map(u=>{let f=o.joinPathSegments(g,u,x.pathSegmentSeparator);return m=>{t.stat(f,x.fsStatSettings,(h,O)=>{if(h!==null){m(h);return}let b={name:u,path:f,dirent:i.fs.createDirentFromStats(u,O)};x.stats&&(b.stats=O),m(null,b)})}});r(y,(u,f)=>{if(u!==null){d(_,u);return}v(_,f)})})}e.readdir=l;function d(g,x){g(x)}function v(g,x){g(null,x)}}}),Df=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=ft(),r=Ps(),n=As(),i=Os();function o(s,l){return!l.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?c(s,l):a(s,l)}e.read=o;function c(s,l){return l.fs.readdirSync(s,{withFileTypes:!0}).map(v=>{let g={dirent:v,name:v.name,path:i.joinPathSegments(s,v.name,l.pathSegmentSeparator)};if(g.dirent.isSymbolicLink()&&l.followSymbolicLinks)try{let x=l.fs.statSync(g.path);g.dirent=n.fs.createDirentFromStats(g.name,x)}catch(x){if(l.throwErrorOnBrokenSymbolicLink)throw x}return g})}e.readdirWithFileTypes=c;function a(s,l){return l.fs.readdirSync(s).map(v=>{let g=i.joinPathSegments(s,v,l.pathSegmentSeparator),x=t.statSync(g,l.fsStatSettings),_={name:v,path:g,dirent:n.fs.createDirentFromStats(v,x)};return l.stats&&(_.stats=x),_})}e.readdir=a}}),jf=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=(0,D.__require)("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}}),If=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=(0,D.__require)("path"),r=ft(),n=jf(),i=class{constructor(o={}){this._options=o,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(o,c){return o??c}};e.default=i}}),rn=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=Cf(),r=Df(),n=If();e.Settings=n.default;function i(a,s,l){if(typeof s=="function"){t.read(a,c(),s);return}t.read(a,c(s),l)}e.scandir=i;function o(a,s){let l=c(s);return r.read(a,l)}e.scandirSync=o;function c(a={}){return a instanceof n.default?a:new n.default(a)}}}),$f=(0,D.__commonJS)({"../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js"(e,t){"use strict";function r(n){var i=new n,o=i;function c(){var s=i;return s.next?i=s.next:(i=new n,o=i),s.next=null,s}function a(s){o.next=s,o=s}return{get:c,release:a}}t.exports=r}}),Lf=(0,D.__commonJS)({"../../node_modules/.pnpm/fastq@1.15.0/node_modules/fastq/queue.js"(e,t){"use strict";var r=$f();function n(a,s,l){if(typeof a=="function"&&(l=s,s=a,a=null),l<1)throw new Error("fastqueue concurrency must be greater than 1");var d=r(o),v=null,g=null,x=0,_=null,E={push:O,drain:i,saturated:i,pause:y,paused:!1,concurrency:l,running:p,resume:m,idle:h,length:u,getQueue:f,unshift:b,empty:i,kill:S,killAndDrain:R,error:T};return E;function p(){return x}function y(){E.paused=!0}function u(){for(var C=v,A=0;C;)C=C.next,A++;return A}function f(){for(var C=v,A=[];C;)A.push(C.value),C=C.next;return A}function m(){if(E.paused){E.paused=!1;for(var C=0;C<E.concurrency;C++)x++,P()}}function h(){return x===0&&E.length()===0}function O(C,A){var w=d.get();w.context=a,w.release=P,w.value=C,w.callback=A||i,w.errorHandler=_,x===E.concurrency||E.paused?g?(g.next=w,g=w):(v=w,g=w,E.saturated()):(x++,s.call(a,w.value,w.worked))}function b(C,A){var w=d.get();w.context=a,w.release=P,w.value=C,w.callback=A||i,x===E.concurrency||E.paused?v?(w.next=v,v=w):(v=w,g=w,E.saturated()):(x++,s.call(a,w.value,w.worked))}function P(C){C&&d.release(C);var A=v;A?E.paused?x--:(g===v&&(g=null),v=A.next,A.next=null,s.call(a,A.value,A.worked),g===null&&E.empty()):--x===0&&E.drain()}function S(){v=null,g=null,E.drain=i}function R(){v=null,g=null,E.drain(),E.drain=i}function T(C){_=C}}function i(){}function o(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var a=this;this.worked=function(l,d){var v=a.callback,g=a.errorHandler,x=a.value;a.value=null,a.callback=i,a.errorHandler&&g(l,x),v.call(a.context,l,d),a.release(a)}}function c(a,s,l){typeof a=="function"&&(l=s,s=a,a=null);function d(y,u){s.call(this,y).then(function(f){u(null,f)},u)}var v=n(a,d,l),g=v.push,x=v.unshift;return v.push=_,v.unshift=E,v.drained=p,v;function _(y){var u=new Promise(function(f,m){g(y,function(h,O){if(h){m(h);return}f(O)})});return u.catch(i),u}function E(y){var u=new Promise(function(f,m){x(y,function(h,O){if(h){m(h);return}f(O)})});return u.catch(i),u}function p(){if(v.idle())return new Promise(function(f){f()});var y=v.drain,u=new Promise(function(f){v.drain=function(){y(),f()}});return u}}t.exports=n,t.exports.promise=c}}),nn=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(o,c){return o.errorFilter===null?!0:!o.errorFilter(c)}e.isFatalError=t;function r(o,c){return o===null||o(c)}e.isAppliedFilter=r;function n(o,c){return o.split(/[/\\]/).join(c)}e.replacePathSegmentSeparator=n;function i(o,c,a){return o===""?c:o.endsWith(a)?o+c:o+a+c}e.joinPathSegments=i}}),xs=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=nn(),r=class{constructor(n,i){this._root=n,this._settings=i,this._root=t.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=r}}),Ts=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=(0,D.__require)("events"),r=rn(),n=Lf(),i=nn(),o=xs(),c=class extends o.default{constructor(a,s){super(a,s),this._settings=s,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(a){this._emitter.on("entry",a)}onError(a){this._emitter.once("error",a)}onEnd(a){this._emitter.once("end",a)}_pushToQueue(a,s){let l={directory:a,base:s};this._queue.push(l,d=>{d!==null&&this._handleError(d)})}_worker(a,s){this._scandir(a.directory,this._settings.fsScandirSettings,(l,d)=>{if(l!==null){s(l,void 0);return}for(let v of d)this._handleEntry(v,a.base);s(null,void 0)})}_handleError(a){this._isDestroyed||!i.isFatalError(this._settings,a)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",a))}_handleEntry(a,s){if(this._isDestroyed||this._isFatalError)return;let l=a.path;s!==void 0&&(a.path=i.joinPathSegments(s,a.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,a)&&this._emitEntry(a),a.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(l,s===void 0?void 0:a.path)}_emitEntry(a){this._emitter.emit("entry",a)}};e.default=c}}),Nf=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ts(),r=class{constructor(o,c){this._root=o,this._settings=c,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(o){this._reader.onError(c=>{n(o,c)}),this._reader.onEntry(c=>{this._storage.push(c)}),this._reader.onEnd(()=>{i(o,this._storage)}),this._reader.read()}};e.default=r;function n(o,c){o(c)}function i(o,c){o(null,c)}}}),Mf=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=(0,D.__require)("stream"),r=Ts(),n=class{constructor(i,o){this._root=i,this._settings=o,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}}),Ff=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=rn(),r=nn(),n=xs(),i=class extends n.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(o,c){this._queue.add({directory:o,base:c})}_handleQueue(){for(let o of this._queue.values())this._handleDirectory(o.directory,o.base)}_handleDirectory(o,c){try{let a=this._scandir(o,this._settings.fsScandirSettings);for(let s of a)this._handleEntry(s,c)}catch(a){this._handleError(a)}}_handleError(o){if(r.isFatalError(this._settings,o))throw o}_handleEntry(o,c){let a=o.path;c!==void 0&&(o.path=r.joinPathSegments(c,o.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,o)&&this._pushToStorage(o),o.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(a,c===void 0?void 0:o.path)}_pushToStorage(o){this._storage.push(o)}};e.default=i}}),qf=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ff(),r=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}}),Bf=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=(0,D.__require)("path"),r=rn(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,o){return i??o}};e.default=n}}),sn=(0,D.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=Nf(),r=Mf(),n=qf(),i=Bf();e.Settings=i.default;function o(l,d,v){if(typeof d=="function"){new t.default(l,s()).read(d);return}new t.default(l,s(d)).read(v)}e.walk=o;function c(l,d){let v=s(d);return new n.default(l,v).read()}e.walkSync=c;function a(l,d){let v=s(d);return new r.default(l,v).read()}e.walkStream=a;function s(l={}){return l instanceof i.default?l:new i.default(l)}}}),an=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=(0,D.__require)("path"),r=ft(),n=Ke(),i=class{constructor(o){this._settings=o,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(o){return t.resolve(this._settings.cwd,o)}_makeEntry(o,c){let a={name:c,path:c,dirent:n.fs.createDirentFromStats(c,o)};return this._settings.stats&&(a.stats=o),a}_isFatalError(o){return!n.errno.isEnoentCodeError(o)&&!this._settings.suppressErrors}};e.default=i}}),Rs=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=(0,D.__require)("stream"),r=ft(),n=sn(),i=an(),o=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=r.stat}dynamic(c,a){return this._walkStream(c,a)}static(c,a){let s=c.map(this._getFullEntryPath,this),l=new t.PassThrough({objectMode:!0});l._write=(d,v,g)=>this._getEntry(s[d],c[d],a).then(x=>{x!==null&&a.entryFilter(x)&&l.push(x),d===s.length-1&&l.end(),g()}).catch(g);for(let d=0;d<s.length;d++)l.write(d);return l}_getEntry(c,a,s){return this._getStat(c).then(l=>this._makeEntry(l,a)).catch(l=>{if(s.errorFilter(l))return null;throw l})}_getStat(c){return new Promise((a,s)=>{this._stat(c,this._fsStatSettings,(l,d)=>l===null?a(d):s(l))})}};e.default=o}}),Hf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=sn(),r=an(),n=Rs(),i=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new n.default(this._settings)}dynamic(o,c){return new Promise((a,s)=>{this._walkAsync(o,c,(l,d)=>{l===null?a(d):s(l)})})}async static(o,c){let a=[],s=this._readerStream.static(o,c);return new Promise((l,d)=>{s.once("error",d),s.on("data",v=>a.push(v)),s.once("end",()=>l(a))})}};e.default=i}}),Gf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ke(),r=class{constructor(n,i,o){this._patterns=n,this._settings=i,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let n of this._patterns){let i=this._getPatternSegments(n),o=this._splitSegmentsIntoSections(i);this._storage.push({complete:o.length<=1,pattern:n,segments:i,sections:o})}}_getPatternSegments(n){return t.pattern.getPatternParts(n,this._micromatchOptions).map(o=>t.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:t.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(n){return t.array.splitWhen(n,i=>i.dynamic&&t.pattern.hasGlobStar(i.pattern))}};e.default=r}}),Uf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Gf(),r=class extends t.default{match(n){let i=n.split("/"),o=i.length,c=this._storage.filter(a=>!a.complete||a.segments.length>o);for(let a of c){let s=a.sections[0];if(!a.complete&&o>s.length||i.every((d,v)=>{let g=a.segments[v];return!!(g.dynamic&&g.patternRe.test(d)||!g.dynamic&&g.pattern===d)}))return!0}return!1}};e.default=r}}),Wf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ke(),r=Uf(),n=class{constructor(i,o){this._settings=i,this._micromatchOptions=o}getFilter(i,o,c){let a=this._getMatcher(o),s=this._getNegativePatternsRe(c);return l=>this._filter(i,l,a,s)}_getMatcher(i){return new r.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let o=i.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(o,this._micromatchOptions)}_filter(i,o,c,a){if(this._isSkippedByDeep(i,o.path)||this._isSkippedSymbolicLink(o))return!1;let s=t.path.removeLeadingDotSegment(o.path);return this._isSkippedByPositivePatterns(s,c)?!1:this._isSkippedByNegativePatterns(s,a)}_isSkippedByDeep(i,o){return this._settings.deep===1/0?!1:this._getEntryLevel(i,o)>=this._settings.deep}_getEntryLevel(i,o){let c=o.split("/").length;if(i==="")return c;let a=i.split("/").length;return c-a}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,o){return!this._settings.baseNameMatch&&!o.match(i)}_isSkippedByNegativePatterns(i,o){return!t.pattern.matchAny(i,o)}};e.default=n}}),Jf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ke(),r=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let[o,c]=t.pattern.partitionAbsoluteAndRelative(i),a={positive:{all:t.pattern.convertPatternsToRe(n,this._micromatchOptions)},negative:{absolute:t.pattern.convertPatternsToRe(o,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:t.pattern.convertPatternsToRe(c,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return s=>this._filter(s,a)}_filter(n,i){let o=t.path.removeLeadingDotSegment(n.path);if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n))return!1;let c=this._isMatchToPatternsSet(o,i,n.dirent.isDirectory());return this._settings.unique&&c&&this._createIndexRecord(o),c}_isDuplicateEntry(n){return this.index.has(n)}_createIndexRecord(n){this.index.set(n,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isMatchToPatternsSet(n,i,o){return!(!this._isMatchToPatterns(n,i.positive.all,o)||this._isMatchToPatterns(n,i.negative.relative,o)||this._isMatchToAbsoluteNegative(n,i.negative.absolute,o))}_isMatchToAbsoluteNegative(n,i,o){if(i.length===0)return!1;let c=t.path.makeAbsolute(this._settings.cwd,n);return this._isMatchToPatterns(c,i,o)}_isMatchToPatterns(n,i,o){if(i.length===0)return!1;let c=t.pattern.matchAny(n,i);return!c&&o?t.pattern.matchAny(n+"/",i):c}};e.default=r}}),Vf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ke(),r=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return t.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=r}}),Kf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ke(),r=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=t.path.makeAbsolute(this._settings.cwd,i),i=t.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=r}}),on=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=(0,D.__require)("path"),r=Wf(),n=Jf(),i=Vf(),o=Kf(),c=class{constructor(a){this._settings=a,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new o.default(this._settings)}_getRootDirectory(a){return t.resolve(this._settings.cwd,a.base)}_getReaderOptions(a){let s=a.base==="."?"":a.base;return{basePath:s,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(s,a.positive,a.negative),entryFilter:this.entryFilter.getFilter(a.positive,a.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=c}}),Xf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Hf(),r=on(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(i){let o=this._getRootDirectory(i),c=this._getReaderOptions(i);return(await this.api(o,i,c)).map(s=>c.transform(s))}api(i,o,c){return o.dynamic?this._reader.dynamic(i,c):this._reader.static(o.patterns,c)}};e.default=n}}),Yf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=(0,D.__require)("stream"),r=Rs(),n=on(),i=class extends n.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(o){let c=this._getRootDirectory(o),a=this._getReaderOptions(o),s=this.api(c,o,a),l=new t.Readable({objectMode:!0,read:()=>{}});return s.once("error",d=>l.emit("error",d)).on("data",d=>l.emit("data",a.transform(d))).once("end",()=>l.emit("end")),l.once("close",()=>s.destroy()),l}api(o,c,a){return c.dynamic?this._reader.dynamic(o,a):this._reader.static(c.patterns,a)}};e.default=i}}),zf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=ft(),r=sn(),n=an(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(o,c){return this._walkSync(o,c)}static(o,c){let a=[];for(let s of o){let l=this._getFullEntryPath(s),d=this._getEntry(l,s,c);d===null||!c.entryFilter(d)||a.push(d)}return a}_getEntry(o,c,a){try{let s=this._getStat(o);return this._makeEntry(s,c)}catch(s){if(a.errorFilter(s))return null;throw s}}_getStat(o){return this._statSync(o,this._fsStatSettings)}};e.default=i}}),Qf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=zf(),r=on(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(i){let o=this._getRootDirectory(i),c=this._getReaderOptions(i);return this.api(o,i,c).map(c.transform)}api(i,o,c){return o.dynamic?this._reader.dynamic(i,c):this._reader.static(o.patterns,c)}};e.default=n}}),Zf=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=(0,D.__require)("fs"),r=(0,D.__require)("os"),n=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var i=class{constructor(o={}){this._options=o,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(o,c){return o===void 0?c:o}_getFileSystemMethods(o={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),o)}};e.default=i}}),ks=(0,D.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(e,t){"use strict";var r=Ef(),n=Xf(),i=Yf(),o=Qf(),c=Zf(),a=Ke();async function s(v,g){d(v);let x=l(v,n.default,g),_=await Promise.all(x);return a.array.flatten(_)}(function(v){v.glob=v,v.globSync=g,v.globStream=x,v.async=v;function g(m,h){d(m);let O=l(m,o.default,h);return a.array.flatten(O)}v.sync=g;function x(m,h){d(m);let O=l(m,i.default,h);return a.stream.merge(O)}v.stream=x;function _(m,h){d(m);let O=[].concat(m),b=new c.default(h);return r.generate(O,b)}v.generateTasks=_;function E(m,h){d(m);let O=new c.default(h);return a.pattern.isDynamicPattern(m,O)}v.isDynamicPattern=E;function p(m){return d(m),a.path.escape(m)}v.escapePath=p;function y(m){return d(m),a.path.convertPathToPattern(m)}v.convertPathToPattern=y;let u;(function(m){function h(b){return d(b),a.path.escapePosixPath(b)}m.escapePath=h;function O(b){return d(b),a.path.convertPosixPathToPattern(b)}m.convertPathToPattern=O})(u=v.posix||(v.posix={}));let f;(function(m){function h(b){return d(b),a.path.escapeWindowsPath(b)}m.escapePath=h;function O(b){return d(b),a.path.convertWindowsPathToPattern(b)}m.convertPathToPattern=O})(f=v.win32||(v.win32={}))})(s||(s={}));function l(v,g,x){let _=[].concat(v),E=new c.default(x),p=r.generate(_,E),y=new g(E);return p.map(y.read,y)}function d(v){if(![].concat(v).every(_=>a.string.isString(_)&&!a.string.isEmpty(_)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=s}}),ed=(0,D.__commonJS)({"../../node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(e){"use strict";var{promisify:t}=(0,D.__require)("util"),r=(0,D.__require)("fs");async function n(o,c,a){if(typeof a!="string")throw new TypeError(`Expected a string, got ${typeof a}`);try{return(await t(r[o])(a))[c]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}function i(o,c,a){if(typeof a!="string")throw new TypeError(`Expected a string, got ${typeof a}`);try{return r[o](a)[c]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}e.isFile=n.bind(null,"stat","isFile"),e.isDirectory=n.bind(null,"stat","isDirectory"),e.isSymlink=n.bind(null,"lstat","isSymbolicLink"),e.isFileSync=i.bind(null,"statSync","isFile"),e.isDirectorySync=i.bind(null,"statSync","isDirectory"),e.isSymlinkSync=i.bind(null,"lstatSync","isSymbolicLink")}}),td=(0,D.__commonJS)({"../../node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.js"(e,t){"use strict";var r=(0,D.__require)("path"),n=ed(),i=s=>s.length>1?`{${s.join(",")}}`:s[0],o=(s,l)=>{let d=s[0]==="!"?s.slice(1):s;return r.isAbsolute(d)?d:r.join(l,d)},c=(s,l)=>r.extname(s)?`**/${s}`:`**/${s}.${i(l)}`,a=(s,l)=>{if(l.files&&!Array.isArray(l.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof l.files}\``);if(l.extensions&&!Array.isArray(l.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof l.extensions}\``);return l.files&&l.extensions?l.files.map(d=>r.posix.join(s,c(d,l.extensions))):l.files?l.files.map(d=>r.posix.join(s,`**/${d}`)):l.extensions?[r.posix.join(s,`**/*.${i(l.extensions)}`)]:[r.posix.join(s,"**")]};t.exports=async(s,l)=>{if(l={cwd:process.cwd(),...l},typeof l.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof l.cwd}\``);let d=await Promise.all([].concat(s).map(async v=>await n.isDirectory(o(v,l.cwd))?a(v,l):v));return[].concat.apply([],d)},t.exports.sync=(s,l)=>{if(l={cwd:process.cwd(),...l},typeof l.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof l.cwd}\``);let d=[].concat(s).map(v=>n.isDirectorySync(o(v,l.cwd))?a(v,l):v);return[].concat.apply([],d)}}}),rd=(0,D.__commonJS)({"../../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(e,t){"use strict";function r(j){return Array.isArray(j)?j:[j]}var n="",i=" ",o="\\",c=/^\s+$/,a=/(?:[^\\]|^)\\$/,s=/^\\!/,l=/^\\#/,d=/\r?\n/g,v=/^\.*\/|^\.+$/,g="/",x="node-ignore";typeof Symbol<"u"&&(x=Symbol.for("node-ignore"));var _=x,E=(j,F,B)=>Object.defineProperty(j,F,{value:B}),p=/([0-z])-([0-z])/g,y=()=>!1,u=j=>j.replace(p,(F,B,N)=>B.charCodeAt(0)<=N.charCodeAt(0)?F:n),f=j=>{let{length:F}=j;return j.slice(0,F-F%2)},m=[[/\\?\s+$/,j=>j.indexOf("\\")===0?i:n],[/\\\s/g,()=>i],[/[\\$.|*+(){^]/g,j=>`\\${j}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(j,F,B)=>F+6<B.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(j,F,B)=>{let N=B.replace(/\\\*/g,"[^\\/]*");return F+N}],[/\\\\\\(?=[$.|*+(){^])/g,()=>o],[/\\\\/g,()=>o],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(j,F,B,N,H)=>F===o?`\\[${B}${f(N)}${H}`:H==="]"&&N.length%2===0?`[${u(B)}${N}]`:"[]"],[/(?:[^*])$/,j=>/\/$/.test(j)?`${j}$`:`${j}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(j,F)=>`${F?`${F}[^/]+`:"[^/]*"}(?=$|\\/$)`]],h=Object.create(null),O=(j,F)=>{let B=h[j];return B||(B=m.reduce((N,H)=>N.replace(H[0],H[1].bind(j)),j),h[j]=B),F?new RegExp(B,"i"):new RegExp(B)},b=j=>typeof j=="string",P=j=>j&&b(j)&&!c.test(j)&&!a.test(j)&&j.indexOf("#")!==0,S=j=>j.split(d),R=class{constructor(j,F,B,N){this.origin=j,this.pattern=F,this.negative=B,this.regex=N}},T=(j,F)=>{let B=j,N=!1;j.indexOf("!")===0&&(N=!0,j=j.substr(1)),j=j.replace(s,"!").replace(l,"#");let H=O(j,F);return new R(B,j,N,H)},C=(j,F)=>{throw new F(j)},A=(j,F,B)=>b(j)?j?A.isNotRelative(j)?B(`path should be a \`path.relative()\`d string, but got "${F}"`,RangeError):!0:B("path must not be empty",TypeError):B(`path must be a string, but got \`${F}\``,TypeError),w=j=>v.test(j);A.isNotRelative=w,A.convert=j=>j;var k=class{constructor({ignorecase:j=!0,ignoreCase:F=j,allowRelativePaths:B=!1}={}){E(this,_,!0),this._rules=[],this._ignoreCase=F,this._allowRelativePaths=B,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(j){if(j&&j[_]){this._rules=this._rules.concat(j._rules),this._added=!0;return}if(P(j)){let F=T(j,this._ignoreCase);this._added=!0,this._rules.push(F)}}add(j){return this._added=!1,r(b(j)?S(j):j).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(j){return this.add(j)}_testOne(j,F){let B=!1,N=!1;return this._rules.forEach(H=>{let{negative:$}=H;if(N===$&&B!==N||$&&!B&&!N&&!F)return;H.regex.test(j)&&(B=!$,N=$)}),{ignored:B,unignored:N}}_test(j,F,B,N){let H=j&&A.convert(j);return A(H,j,this._allowRelativePaths?y:C),this._t(H,F,B,N)}_t(j,F,B,N){if(j in F)return F[j];if(N||(N=j.split(g)),N.pop(),!N.length)return F[j]=this._testOne(j,B);let H=this._t(N.join(g)+g,F,B,N);return F[j]=H.ignored?H:this._testOne(j,B)}ignores(j){return this._test(j,this._ignoreCache,!1).ignored}createFilter(){return j=>!this.ignores(j)}filter(j){return r(j).filter(this.createFilter())}test(j){return this._test(j,this._testCache,!0)}},L=j=>new k(j),q=j=>A(j&&A.convert(j),j,y);if(L.isPathValid=q,L.default=L,t.exports=L,typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let j=B=>/^\\\\\?\\/.test(B)||/["<>|\u0000-\u001F]+/u.test(B)?B:B.replace(/\\/g,"/");A.convert=j;let F=/^[a-z]:\//i;A.isNotRelative=B=>F.test(B)||w(B)}}}),Cs=(0,D.__commonJS)({"../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js"(e,t){"use strict";t.exports=r=>{let n=/^\\\\\?\\/.test(r),i=/[^\u0000-\u0080]+/.test(r);return n||i?r:r.replace(/\\/g,"/")}}}),nd=(0,D.__commonJS)({"../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/gitignore.js"(e,t){"use strict";var{promisify:r}=(0,D.__require)("util"),n=(0,D.__require)("fs"),i=(0,D.__require)("path"),o=ks(),c=rd(),a=Cs(),s=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],l=r(n.readFile),d=u=>f=>f.startsWith("!")?"!"+i.posix.join(u,f.slice(1)):i.posix.join(u,f),v=(u,f)=>{let m=a(i.relative(f.cwd,i.dirname(f.fileName)));return u.split(/\r?\n/).filter(Boolean).filter(h=>!h.startsWith("#")).map(d(m))},g=u=>{let f=c();for(let m of u)f.add(v(m.content,{cwd:m.cwd,fileName:m.filePath}));return f},x=(u,f)=>{if(u=a(u),i.isAbsolute(f)){if(a(f).startsWith(u))return f;throw new Error(`Path ${f} is not in cwd ${u}`)}return i.join(u,f)},_=(u,f)=>m=>u.ignores(a(i.relative(f,x(f,m.path||m)))),E=async(u,f)=>{let m=i.join(f,u),h=await l(m,"utf8");return{cwd:f,filePath:m,content:h}},p=(u,f)=>{let m=i.join(f,u),h=n.readFileSync(m,"utf8");return{cwd:f,filePath:m,content:h}},y=({ignore:u=[],cwd:f=a(process.cwd())}={})=>({ignore:u,cwd:f});t.exports=async u=>{u=y(u);let f=await o("**/.gitignore",{ignore:s.concat(u.ignore),cwd:u.cwd}),m=await Promise.all(f.map(O=>E(O,u.cwd))),h=g(m);return _(h,u.cwd)},t.exports.sync=u=>{u=y(u);let m=o.sync("**/.gitignore",{ignore:s.concat(u.ignore),cwd:u.cwd}).map(O=>p(O,u.cwd)),h=g(m);return _(h,u.cwd)}}}),id=(0,D.__commonJS)({"../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/stream-utils.js"(e,t){"use strict";var{Transform:r}=(0,D.__require)("stream"),n=class extends r{constructor(){super({objectMode:!0})}},i=class extends n{constructor(c){super(),this._filter=c}_transform(c,a,s){this._filter(c)&&this.push(c),s()}},o=class extends n{constructor(){super(),this._pushed=new Set}_transform(c,a,s){this._pushed.has(c)||(this.push(c),this._pushed.add(c)),s()}};t.exports={FilterStream:i,UniqueStream:o}}}),sd=(0,D.__commonJS)({"../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/index.js"(e,t){"use strict";var r=(0,D.__require)("fs"),n=ef(),i=Ss(),o=ks(),c=td(),a=nd(),{FilterStream:s,UniqueStream:l}=id(),d=()=>!1,v=m=>m[0]==="!",g=m=>{if(!m.every(h=>typeof h=="string"))throw new TypeError("Patterns must be a string or an array of strings")},x=(m={})=>{if(!m.cwd)return;let h;try{h=r.statSync(m.cwd)}catch{return}if(!h.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},_=m=>m.stats instanceof r.Stats?m.path:m,E=(m,h)=>{m=n([].concat(m)),g(m),x(h);let O=[];h={ignore:[],expandDirectories:!0,...h};for(let[b,P]of m.entries()){if(v(P))continue;let S=m.slice(b).filter(T=>v(T)).map(T=>T.slice(1)),R={...h,ignore:h.ignore.concat(S)};O.push({pattern:P,options:R})}return O},p=(m,h)=>{let O={};return m.options.cwd&&(O.cwd=m.options.cwd),Array.isArray(m.options.expandDirectories)?O={...O,files:m.options.expandDirectories}:typeof m.options.expandDirectories=="object"&&(O={...O,...m.options.expandDirectories}),h(m.pattern,O)},y=(m,h)=>m.options.expandDirectories?p(m,h):[m.pattern],u=m=>m&&m.gitignore?a.sync({cwd:m.cwd,ignore:m.ignore}):d,f=m=>h=>{let{options:O}=m;return O.ignore&&Array.isArray(O.ignore)&&O.expandDirectories&&(O.ignore=c.sync(O.ignore)),{pattern:h,options:O}};t.exports=async(m,h)=>{let O=E(m,h),b=async()=>h&&h.gitignore?a({cwd:h.cwd,ignore:h.ignore}):d,P=async()=>{let C=await Promise.all(O.map(async A=>{let w=await y(A,c);return Promise.all(w.map(f(A)))}));return n(...C)},[S,R]=await Promise.all([b(),P()]),T=await Promise.all(R.map(C=>o(C.pattern,C.options)));return n(...T).filter(C=>!S(_(C)))},t.exports.sync=(m,h)=>{let O=E(m,h),b=[];for(let R of O){let T=y(R,c.sync).map(f(R));b.push(...T)}let P=u(h),S=[];for(let R of b)S=n(S,o.sync(R.pattern,R.options));return S.filter(R=>!P(R))},t.exports.stream=(m,h)=>{let O=E(m,h),b=[];for(let T of O){let C=y(T,c.sync).map(f(T));b.push(...C)}let P=u(h),S=new s(T=>!P(T)),R=new l;return i(b.map(T=>o.stream(T.pattern,T.options))).pipe(S).pipe(R)},t.exports.generateGlobTasks=E,t.exports.hasMagic=(m,h)=>[].concat(m).some(O=>o.isDynamicPattern(O,h)),t.exports.gitignore=a}}),ad=(0,D.__commonJS)({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(e,t){"use strict";var r=(0,D.__require)("constants"),n=process.cwd,i=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(c=process.chdir,process.chdir=function(s){i=null,c.call(process,s)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,c));var c;t.exports=a;function a(s){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&l(s),s.lutimes||d(s),s.chown=x(s.chown),s.fchown=x(s.fchown),s.lchown=x(s.lchown),s.chmod=v(s.chmod),s.fchmod=v(s.fchmod),s.lchmod=v(s.lchmod),s.chownSync=_(s.chownSync),s.fchownSync=_(s.fchownSync),s.lchownSync=_(s.lchownSync),s.chmodSync=g(s.chmodSync),s.fchmodSync=g(s.fchmodSync),s.lchmodSync=g(s.lchmodSync),s.stat=E(s.stat),s.fstat=E(s.fstat),s.lstat=E(s.lstat),s.statSync=p(s.statSync),s.fstatSync=p(s.fstatSync),s.lstatSync=p(s.lstatSync),s.chmod&&!s.lchmod&&(s.lchmod=function(u,f,m){m&&process.nextTick(m)},s.lchmodSync=function(){}),s.chown&&!s.lchown&&(s.lchown=function(u,f,m,h){h&&process.nextTick(h)},s.lchownSync=function(){}),o==="win32"&&(s.rename=typeof s.rename!="function"?s.rename:function(u){function f(m,h,O){var b=Date.now(),P=0;u(m,h,function S(R){if(R&&(R.code==="EACCES"||R.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){s.stat(h,function(T,C){T&&T.code==="ENOENT"?u(m,h,S):O(R)})},P),P<100&&(P+=10);return}O&&O(R)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,u),f}(s.rename)),s.read=typeof s.read!="function"?s.read:function(u){function f(m,h,O,b,P,S){var R;if(S&&typeof S=="function"){var T=0;R=function(C,A,w){if(C&&C.code==="EAGAIN"&&T<10)return T++,u.call(s,m,h,O,b,P,R);S.apply(this,arguments)}}return u.call(s,m,h,O,b,P,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,u),f}(s.read),s.readSync=typeof s.readSync!="function"?s.readSync:function(u){return function(f,m,h,O,b){for(var P=0;;)try{return u.call(s,f,m,h,O,b)}catch(S){if(S.code==="EAGAIN"&&P<10){P++;continue}throw S}}}(s.readSync);function l(u){u.lchmod=function(f,m,h){u.open(f,r.O_WRONLY|r.O_SYMLINK,m,function(O,b){if(O){h&&h(O);return}u.fchmod(b,m,function(P){u.close(b,function(S){h&&h(P||S)})})})},u.lchmodSync=function(f,m){var h=u.openSync(f,r.O_WRONLY|r.O_SYMLINK,m),O=!0,b;try{b=u.fchmodSync(h,m),O=!1}finally{if(O)try{u.closeSync(h)}catch{}else u.closeSync(h)}return b}}function d(u){r.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(f,m,h,O){u.open(f,r.O_SYMLINK,function(b,P){if(b){O&&O(b);return}u.futimes(P,m,h,function(S){u.close(P,function(R){O&&O(S||R)})})})},u.lutimesSync=function(f,m,h){var O=u.openSync(f,r.O_SYMLINK),b,P=!0;try{b=u.futimesSync(O,m,h),P=!1}finally{if(P)try{u.closeSync(O)}catch{}else u.closeSync(O)}return b}):u.futimes&&(u.lutimes=function(f,m,h,O){O&&process.nextTick(O)},u.lutimesSync=function(){})}function v(u){return u&&function(f,m,h){return u.call(s,f,m,function(O){y(O)&&(O=null),h&&h.apply(this,arguments)})}}function g(u){return u&&function(f,m){try{return u.call(s,f,m)}catch(h){if(!y(h))throw h}}}function x(u){return u&&function(f,m,h,O){return u.call(s,f,m,h,function(b){y(b)&&(b=null),O&&O.apply(this,arguments)})}}function _(u){return u&&function(f,m,h){try{return u.call(s,f,m,h)}catch(O){if(!y(O))throw O}}}function E(u){return u&&function(f,m,h){typeof m=="function"&&(h=m,m=null);function O(b,P){P&&(P.uid<0&&(P.uid+=4294967296),P.gid<0&&(P.gid+=4294967296)),h&&h.apply(this,arguments)}return m?u.call(s,f,m,O):u.call(s,f,O)}}function p(u){return u&&function(f,m){var h=m?u.call(s,f,m):u.call(s,f);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function y(u){if(!u||u.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(u.code==="EINVAL"||u.code==="EPERM"))}}}}),od=(0,D.__commonJS)({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(e,t){"use strict";var r=(0,D.__require)("stream").Stream;t.exports=n;function n(i){return{ReadStream:o,WriteStream:c};function o(a,s){if(!(this instanceof o))return new o(a,s);r.call(this);var l=this;this.path=a,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var d=Object.keys(s),v=0,g=d.length;v<g;v++){var x=d[v];this[x]=s[x]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){l._read()});return}i.open(this.path,this.flags,this.mode,function(_,E){if(_){l.emit("error",_),l.readable=!1;return}l.fd=E,l.emit("open",E),l._read()})}function c(a,s){if(!(this instanceof c))return new c(a,s);r.call(this),this.path=a,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var l=Object.keys(s),d=0,v=l.length;d<v;d++){var g=l[d];this[g]=s[g]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}),cd=(0,D.__commonJS)({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(e,t){"use strict";t.exports=n;var r=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var o={__proto__:r(i)};else var o=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(c){Object.defineProperty(o,c,Object.getOwnPropertyDescriptor(i,c))}),o}}}),ud=(0,D.__commonJS)({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(e,t){"use strict";var r=(0,D.__require)("fs"),n=ad(),i=od(),o=cd(),c=(0,D.__require)("util"),a,s;typeof Symbol=="function"&&typeof Symbol.for=="function"?(a=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(a="___graceful-fs.queue",s="___graceful-fs.previous");function l(){}function d(u,f){Object.defineProperty(u,a,{get:function(){return f}})}var v=l;c.debuglog?v=c.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(v=function(){var u=c.format.apply(c,arguments);u="GFS4: "+u.split(/\n/).join(`
9
+ GFS4: `),console.error(u)}),r[a]||(g=global[a]||[],d(r,g),r.close=function(u){function f(m,h){return u.call(r,m,function(O){O||p(),typeof h=="function"&&h.apply(this,arguments)})}return Object.defineProperty(f,s,{value:u}),f}(r.close),r.closeSync=function(u){function f(m){u.apply(r,arguments),p()}return Object.defineProperty(f,s,{value:u}),f}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){v(r[a]),(0,D.__require)("assert").equal(r[a].length,0)}));var g;global[a]||d(global,r[a]),t.exports=x(o(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=x(r),r.__patched=!0);function x(u){n(u),u.gracefulify=x,u.createReadStream=$,u.createWriteStream=V;var f=u.readFile;u.readFile=m;function m(I,M,G){return typeof M=="function"&&(G=M,M=null),W(I,M,G);function W(re,ie,Y,Q){return f(re,ie,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?_([W,[re,ie,Y],ne,Q||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var h=u.writeFile;u.writeFile=O;function O(I,M,G,W){return typeof G=="function"&&(W=G,G=null),re(I,M,G,W);function re(ie,Y,Q,ne,se){return h(ie,Y,Q,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?_([re,[ie,Y,Q,ne],Z,se||Date.now(),Date.now()]):typeof ne=="function"&&ne.apply(this,arguments)})}}var b=u.appendFile;b&&(u.appendFile=P);function P(I,M,G,W){return typeof G=="function"&&(W=G,G=null),re(I,M,G,W);function re(ie,Y,Q,ne,se){return b(ie,Y,Q,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?_([re,[ie,Y,Q,ne],Z,se||Date.now(),Date.now()]):typeof ne=="function"&&ne.apply(this,arguments)})}}var S=u.copyFile;S&&(u.copyFile=R);function R(I,M,G,W){return typeof G=="function"&&(W=G,G=0),re(I,M,G,W);function re(ie,Y,Q,ne,se){return S(ie,Y,Q,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?_([re,[ie,Y,Q,ne],Z,se||Date.now(),Date.now()]):typeof ne=="function"&&ne.apply(this,arguments)})}}var T=u.readdir;u.readdir=A;var C=/^v[0-5]\./;function A(I,M,G){typeof M=="function"&&(G=M,M=null);var W=C.test(process.version)?function(Y,Q,ne,se){return T(Y,re(Y,Q,ne,se))}:function(Y,Q,ne,se){return T(Y,Q,re(Y,Q,ne,se))};return W(I,M,G);function re(ie,Y,Q,ne){return function(se,Z){se&&(se.code==="EMFILE"||se.code==="ENFILE")?_([W,[ie,Y,Q],se,ne||Date.now(),Date.now()]):(Z&&Z.sort&&Z.sort(),typeof Q=="function"&&Q.call(this,se,Z))}}}if(process.version.substr(0,4)==="v0.8"){var w=i(u);F=w.ReadStream,N=w.WriteStream}var k=u.ReadStream;k&&(F.prototype=Object.create(k.prototype),F.prototype.open=B);var L=u.WriteStream;L&&(N.prototype=Object.create(L.prototype),N.prototype.open=H),Object.defineProperty(u,"ReadStream",{get:function(){return F},set:function(I){F=I},enumerable:!0,configurable:!0}),Object.defineProperty(u,"WriteStream",{get:function(){return N},set:function(I){N=I},enumerable:!0,configurable:!0});var q=F;Object.defineProperty(u,"FileReadStream",{get:function(){return q},set:function(I){q=I},enumerable:!0,configurable:!0});var j=N;Object.defineProperty(u,"FileWriteStream",{get:function(){return j},set:function(I){j=I},enumerable:!0,configurable:!0});function F(I,M){return this instanceof F?(k.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function B(){var I=this;K(I.path,I.flags,I.mode,function(M,G){M?(I.autoClose&&I.destroy(),I.emit("error",M)):(I.fd=G,I.emit("open",G),I.read())})}function N(I,M){return this instanceof N?(L.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function H(){var I=this;K(I.path,I.flags,I.mode,function(M,G){M?(I.destroy(),I.emit("error",M)):(I.fd=G,I.emit("open",G))})}function $(I,M){return new u.ReadStream(I,M)}function V(I,M){return new u.WriteStream(I,M)}var ae=u.open;u.open=K;function K(I,M,G,W){return typeof G=="function"&&(W=G,G=null),re(I,M,G,W);function re(ie,Y,Q,ne,se){return ae(ie,Y,Q,function(Z,z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?_([re,[ie,Y,Q,ne],Z,se||Date.now(),Date.now()]):typeof ne=="function"&&ne.apply(this,arguments)})}}return u}function _(u){v("ENQUEUE",u[0].name,u[1]),r[a].push(u),y()}var E;function p(){for(var u=Date.now(),f=0;f<r[a].length;++f)r[a][f].length>2&&(r[a][f][3]=u,r[a][f][4]=u);y()}function y(){if(clearTimeout(E),E=void 0,r[a].length!==0){var u=r[a].shift(),f=u[0],m=u[1],h=u[2],O=u[3],b=u[4];if(O===void 0)v("RETRY",f.name,m),f.apply(null,m);else if(Date.now()-O>=6e4){v("TIMEOUT",f.name,m);var P=m.pop();typeof P=="function"&&P.call(null,h)}else{var S=Date.now()-b,R=Math.max(b-O,1),T=Math.min(R*1.2,100);S>=T?(v("RETRY",f.name,m),f.apply(null,m.concat([O]))):r[a].push(u)}E===void 0&&(E=setTimeout(y,0))}}}}),ld=(0,D.__commonJS)({"../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(e,t){"use strict";var r=(0,D.__require)("path");t.exports=n=>{let i=process.cwd();return n=r.resolve(n),process.platform==="win32"&&(i=i.toLowerCase(),n=n.toLowerCase()),n===i}}}),fd=(0,D.__commonJS)({"../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(e,t){"use strict";var r=(0,D.__require)("path");t.exports=(n,i)=>{let o=r.relative(i,n);return!!(o&&o!==".."&&!o.startsWith(`..${r.sep}`)&&o!==r.resolve(n))}}}),dd=(0,D.__commonJS)({"../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(e){"use strict";var t=(0,D.__require)("path"),r=process.platform==="win32",n=(0,D.__require)("fs"),i=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function o(){var d;if(i){var v=new Error;d=g}else d=x;return d;function g(_){_&&(v.message=_.message,_=v,x(_))}function x(_){if(_){if(process.throwDeprecation)throw _;if(!process.noDeprecation){var E="fs: missing callback "+(_.stack||_.message);process.traceDeprecation?console.trace(E):console.error(E)}}}}function c(d){return typeof d=="function"?d:o()}var a=t.normalize;r?s=/(.*?)(?:[\/\\]+|$)/g:s=/(.*?)(?:[\/]+|$)/g;var s;r?l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:l=/^[\/]*/;var l;e.realpathSync=function(v,g){if(v=t.resolve(v),g&&Object.prototype.hasOwnProperty.call(g,v))return g[v];var x=v,_={},E={},p,y,u,f;m();function m(){var R=l.exec(v);p=R[0].length,y=R[0],u=R[0],f="",r&&!E[u]&&(n.lstatSync(u),E[u]=!0)}for(;p<v.length;){s.lastIndex=p;var h=s.exec(v);if(f=y,y+=h[0],u=f+h[1],p=s.lastIndex,!(E[u]||g&&g[u]===u)){var O;if(g&&Object.prototype.hasOwnProperty.call(g,u))O=g[u];else{var b=n.lstatSync(u);if(!b.isSymbolicLink()){E[u]=!0,g&&(g[u]=u);continue}var P=null;if(!r){var S=b.dev.toString(32)+":"+b.ino.toString(32);_.hasOwnProperty(S)&&(P=_[S])}P===null&&(n.statSync(u),P=n.readlinkSync(u)),O=t.resolve(f,P),g&&(g[u]=O),r||(_[S]=P)}v=t.resolve(O,v.slice(p)),m()}}return g&&(g[x]=v),v},e.realpath=function(v,g,x){if(typeof x!="function"&&(x=c(g),g=null),v=t.resolve(v),g&&Object.prototype.hasOwnProperty.call(g,v))return process.nextTick(x.bind(null,null,g[v]));var _=v,E={},p={},y,u,f,m;h();function h(){var R=l.exec(v);y=R[0].length,u=R[0],f=R[0],m="",r&&!p[f]?n.lstat(f,function(T){if(T)return x(T);p[f]=!0,O()}):process.nextTick(O)}function O(){if(y>=v.length)return g&&(g[_]=v),x(null,v);s.lastIndex=y;var R=s.exec(v);return m=u,u+=R[0],f=m+R[1],y=s.lastIndex,p[f]||g&&g[f]===f?process.nextTick(O):g&&Object.prototype.hasOwnProperty.call(g,f)?S(g[f]):n.lstat(f,b)}function b(R,T){if(R)return x(R);if(!T.isSymbolicLink())return p[f]=!0,g&&(g[f]=f),process.nextTick(O);if(!r){var C=T.dev.toString(32)+":"+T.ino.toString(32);if(E.hasOwnProperty(C))return P(null,E[C],f)}n.stat(f,function(A){if(A)return x(A);n.readlink(f,function(w,k){r||(E[C]=k),P(w,k)})})}function P(R,T,C){if(R)return x(R);var A=t.resolve(m,T);g&&(g[C]=A),S(A)}function S(R){v=t.resolve(R,v.slice(y)),h()}}}}),Ds=(0,D.__commonJS)({"../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js"(e,t){"use strict";t.exports=l,l.realpath=l,l.sync=d,l.realpathSync=d,l.monkeypatch=v,l.unmonkeypatch=g;var r=(0,D.__require)("fs"),n=r.realpath,i=r.realpathSync,o=process.version,c=/^v[0-5]\./.test(o),a=dd();function s(x){return x&&x.syscall==="realpath"&&(x.code==="ELOOP"||x.code==="ENOMEM"||x.code==="ENAMETOOLONG")}function l(x,_,E){if(c)return n(x,_,E);typeof _=="function"&&(E=_,_=null),n(x,_,function(p,y){s(p)?a.realpath(x,_,E):E(p,y)})}function d(x,_){if(c)return i(x,_);try{return i(x,_)}catch(E){if(s(E))return a.realpathSync(x,_);throw E}}function v(){r.realpath=l,r.realpathSync=d}function g(){r.realpath=n,r.realpathSync=i}}}),pd=(0,D.__commonJS)({"../../node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js"(e,t){"use strict";t.exports=function(n,i){for(var o=[],c=0;c<n.length;c++){var a=i(n[c],c);r(a)?o.push.apply(o,a):o.push(a)}return o};var r=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}}}),hd=(0,D.__commonJS)({"../../node_modules/.pnpm/brace-expansion@1.1.11/node_modules/brace-expansion/index.js"(e,t){"use strict";var r=pd(),n=gs();t.exports=x;var i="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",c="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",s="\0PERIOD"+Math.random()+"\0";function l(f){return parseInt(f,10)==f?parseInt(f,10):f.charCodeAt(0)}function d(f){return f.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(c).split("\\,").join(a).split("\\.").join(s)}function v(f){return f.split(i).join("\\").split(o).join("{").split(c).join("}").split(a).join(",").split(s).join(".")}function g(f){if(!f)return[""];var m=[],h=n("{","}",f);if(!h)return f.split(",");var O=h.pre,b=h.body,P=h.post,S=O.split(",");S[S.length-1]+="{"+b+"}";var R=g(P);return P.length&&(S[S.length-1]+=R.shift(),S.push.apply(S,R)),m.push.apply(m,S),m}function x(f){return f?(f.substr(0,2)==="{}"&&(f="\\{\\}"+f.substr(2)),u(d(f),!0).map(v)):[]}function _(f){return"{"+f+"}"}function E(f){return/^-?0\d/.test(f)}function p(f,m){return f<=m}function y(f,m){return f>=m}function u(f,m){var h=[],O=n("{","}",f);if(!O||/\$$/.test(O.pre))return[f];var b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(O.body),P=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(O.body),S=b||P,R=O.body.indexOf(",")>=0;if(!S&&!R)return O.post.match(/,.*\}/)?(f=O.pre+"{"+O.body+c+O.post,u(f)):[f];var T;if(S)T=O.body.split(/\.\./);else if(T=g(O.body),T.length===1&&(T=u(T[0],!1).map(_),T.length===1)){var A=O.post.length?u(O.post,!1):[""];return A.map(function(W){return O.pre+T[0]+W})}var C=O.pre,A=O.post.length?u(O.post,!1):[""],w;if(S){var k=l(T[0]),L=l(T[1]),q=Math.max(T[0].length,T[1].length),j=T.length==3?Math.abs(l(T[2])):1,F=p,B=L<k;B&&(j*=-1,F=y);var N=T.some(E);w=[];for(var H=k;F(H,L);H+=j){var $;if(P)$=String.fromCharCode(H),$==="\\"&&($="");else if($=String(H),N){var V=q-$.length;if(V>0){var ae=new Array(V+1).join("0");H<0?$="-"+ae+$.slice(1):$=ae+$}}w.push($)}}else w=r(T,function(G){return u(G,!1)});for(var K=0;K<w.length;K++)for(var I=0;I<A.length;I++){var M=C+w[K]+A[I];(!m||S||M)&&h.push(M)}return h}}}),cn=(0,D.__commonJS)({"../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(e,t){"use strict";t.exports=E,E.Minimatch=p;var r=function(){try{return(0,D.__require)("path")}catch{}}()||{sep:"/"};E.sep=r.sep;var n=E.GLOBSTAR=p.GLOBSTAR={},i=hd(),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},c="[^/]",a=c+"*?",s="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l="(?:(?!(?:\\/|^)\\.).)*?",d=v("().*{}+?[]^$\\!");function v(T){return T.split("").reduce(function(C,A){return C[A]=!0,C},{})}var g=/\/+/;E.filter=x;function x(T,C){return C=C||{},function(A,w,k){return E(A,T,C)}}function _(T,C){C=C||{};var A={};return Object.keys(T).forEach(function(w){A[w]=T[w]}),Object.keys(C).forEach(function(w){A[w]=C[w]}),A}E.defaults=function(T){if(!T||typeof T!="object"||!Object.keys(T).length)return E;var C=E,A=function(k,L,q){return C(k,L,_(T,q))};return A.Minimatch=function(k,L){return new C.Minimatch(k,_(T,L))},A.Minimatch.defaults=function(k){return C.defaults(_(T,k)).Minimatch},A.filter=function(k,L){return C.filter(k,_(T,L))},A.defaults=function(k){return C.defaults(_(T,k))},A.makeRe=function(k,L){return C.makeRe(k,_(T,L))},A.braceExpand=function(k,L){return C.braceExpand(k,_(T,L))},A.match=function(w,k,L){return C.match(w,k,_(T,L))},A},p.defaults=function(T){return E.defaults(T).Minimatch};function E(T,C,A){return h(C),A||(A={}),!A.nocomment&&C.charAt(0)==="#"?!1:new p(C,A).match(T)}function p(T,C){if(!(this instanceof p))return new p(T,C);h(T),C||(C={}),T=T.trim(),!C.allowWindowsEscape&&r.sep!=="/"&&(T=T.split(r.sep).join("/")),this.options=C,this.set=[],this.pattern=T,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!C.partial,this.make()}p.prototype.debug=function(){},p.prototype.make=y;function y(){var T=this.pattern,C=this.options;if(!C.nocomment&&T.charAt(0)==="#"){this.comment=!0;return}if(!T){this.empty=!0;return}this.parseNegate();var A=this.globSet=this.braceExpand();C.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,A),A=this.globParts=A.map(function(w){return w.split(g)}),this.debug(this.pattern,A),A=A.map(function(w,k,L){return w.map(this.parse,this)},this),this.debug(this.pattern,A),A=A.filter(function(w){return w.indexOf(!1)===-1}),this.debug(this.pattern,A),this.set=A}p.prototype.parseNegate=u;function u(){var T=this.pattern,C=!1,A=this.options,w=0;if(!A.nonegate){for(var k=0,L=T.length;k<L&&T.charAt(k)==="!";k++)C=!C,w++;w&&(this.pattern=T.substr(w)),this.negate=C}}E.braceExpand=function(T,C){return f(T,C)},p.prototype.braceExpand=f;function f(T,C){return C||(this instanceof p?C=this.options:C={}),T=typeof T>"u"?this.pattern:T,h(T),C.nobrace||!/\{(?:(?!\{).)*\}/.test(T)?[T]:i(T)}var m=1024*64,h=function(T){if(typeof T!="string")throw new TypeError("invalid pattern");if(T.length>m)throw new TypeError("pattern is too long")};p.prototype.parse=b;var O={};function b(T,C){h(T);var A=this.options;if(T==="**")if(A.noglobstar)T="*";else return n;if(T==="")return"";var w="",k=!!A.nocase,L=!1,q=[],j=[],F,B=!1,N=-1,H=-1,$=T.charAt(0)==="."?"":A.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",V=this;function ae(){if(F){switch(F){case"*":w+=a,k=!0;break;case"?":w+=c,k=!0;break;default:w+="\\"+F;break}V.debug("clearStateChar %j %j",F,w),F=!1}}for(var K=0,I=T.length,M;K<I&&(M=T.charAt(K));K++){if(this.debug("%s %s %s %j",T,K,w,M),L&&d[M]){w+="\\"+M,L=!1;continue}switch(M){case"/":return!1;case"\\":ae(),L=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",T,K,w,M),B){this.debug(" in class"),M==="!"&&K===H+1&&(M="^"),w+=M;continue}V.debug("call clearStateChar %j",F),ae(),F=M,A.noext&&ae();continue;case"(":if(B){w+="(";continue}if(!F){w+="\\(";continue}q.push({type:F,start:K-1,reStart:w.length,open:o[F].open,close:o[F].close}),w+=F==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",F,w),F=!1;continue;case")":if(B||!q.length){w+="\\)";continue}ae(),k=!0;var G=q.pop();w+=G.close,G.type==="!"&&j.push(G),G.reEnd=w.length;continue;case"|":if(B||!q.length||L){w+="\\|",L=!1;continue}ae(),w+="|";continue;case"[":if(ae(),B){w+="\\"+M;continue}B=!0,H=K,N=w.length,w+=M;continue;case"]":if(K===H+1||!B){w+="\\"+M,L=!1;continue}var W=T.substring(H+1,K);try{RegExp("["+W+"]")}catch{var re=this.parse(W,O);w=w.substr(0,N)+"\\["+re[0]+"\\]",k=k||re[1],B=!1;continue}k=!0,B=!1,w+=M;continue;default:ae(),L?L=!1:d[M]&&!(M==="^"&&B)&&(w+="\\"),w+=M}}for(B&&(W=T.substr(H+1),re=this.parse(W,O),w=w.substr(0,N)+"\\["+re[0],k=k||re[1]),G=q.pop();G;G=q.pop()){var ie=w.slice(G.reStart+G.open.length);this.debug("setting tail",w,G),ie=ie.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(_e,tt,Me){return Me||(Me="\\"),tt+tt+Me+"|"}),this.debug(`tail=%j
10
+ %s`,ie,ie,G,w);var Y=G.type==="*"?a:G.type==="?"?c:"\\"+G.type;k=!0,w=w.slice(0,G.reStart)+Y+"\\("+ie}ae(),L&&(w+="\\\\");var Q=!1;switch(w.charAt(0)){case"[":case".":case"(":Q=!0}for(var ne=j.length-1;ne>-1;ne--){var se=j[ne],Z=w.slice(0,se.reStart),z=w.slice(se.reStart,se.reEnd-8),ye=w.slice(se.reEnd-8,se.reEnd),$e=w.slice(se.reEnd);ye+=$e;var J=Z.split("(").length-1,oe=$e;for(K=0;K<J;K++)oe=oe.replace(/\)[+*?]?/,"");$e=oe;var U="";$e===""&&C!==O&&(U="$");var ee=Z+z+$e+U+ye;w=ee}if(w!==""&&k&&(w="(?=.)"+w),Q&&(w=$+w),C===O)return[w,k];if(!k)return S(T);var me=A.nocase?"i":"";try{var be=new RegExp("^"+w+"$",me)}catch{return new RegExp("$.")}return be._glob=T,be._src=w,be}E.makeRe=function(T,C){return new p(T,C||{}).makeRe()},p.prototype.makeRe=P;function P(){if(this.regexp||this.regexp===!1)return this.regexp;var T=this.set;if(!T.length)return this.regexp=!1,this.regexp;var C=this.options,A=C.noglobstar?a:C.dot?s:l,w=C.nocase?"i":"",k=T.map(function(L){return L.map(function(q){return q===n?A:typeof q=="string"?R(q):q._src}).join("\\/")}).join("|");k="^(?:"+k+")$",this.negate&&(k="^(?!"+k+").*$");try{this.regexp=new RegExp(k,w)}catch{this.regexp=!1}return this.regexp}E.match=function(T,C,A){A=A||{};var w=new p(C,A);return T=T.filter(function(k){return w.match(k)}),w.options.nonull&&!T.length&&T.push(C),T},p.prototype.match=function(C,A){if(typeof A>"u"&&(A=this.partial),this.debug("match",C,this.pattern),this.comment)return!1;if(this.empty)return C==="";if(C==="/"&&A)return!0;var w=this.options;r.sep!=="/"&&(C=C.split(r.sep).join("/")),C=C.split(g),this.debug(this.pattern,"split",C);var k=this.set;this.debug(this.pattern,"set",k);var L,q;for(q=C.length-1;q>=0&&(L=C[q],!L);q--);for(q=0;q<k.length;q++){var j=k[q],F=C;w.matchBase&&j.length===1&&(F=[L]);var B=this.matchOne(F,j,A);if(B)return w.flipNegate?!0:!this.negate}return w.flipNegate?!1:this.negate},p.prototype.matchOne=function(T,C,A){var w=this.options;this.debug("matchOne",{this:this,file:T,pattern:C}),this.debug("matchOne",T.length,C.length);for(var k=0,L=0,q=T.length,j=C.length;k<q&&L<j;k++,L++){this.debug("matchOne loop");var F=C[L],B=T[k];if(this.debug(C,F,B),F===!1)return!1;if(F===n){this.debug("GLOBSTAR",[C,F,B]);var N=k,H=L+1;if(H===j){for(this.debug("** at the end");k<q;k++)if(T[k]==="."||T[k]===".."||!w.dot&&T[k].charAt(0)===".")return!1;return!0}for(;N<q;){var $=T[N];if(this.debug(`
11
+ globstar while`,T,N,C,H,$),this.matchOne(T.slice(N),C.slice(H),A))return this.debug("globstar found match!",N,q,$),!0;if($==="."||$===".."||!w.dot&&$.charAt(0)==="."){this.debug("dot detected!",T,N,C,H);break}this.debug("globstar swallow a segment, and continue"),N++}return!!(A&&(this.debug(`
12
+ >>> no match, partial?`,T,N,C,H),N===q))}var V;if(typeof F=="string"?(V=B===F,this.debug("string match",F,B,V)):(V=B.match(F),this.debug("pattern match",F,B,V)),!V)return!1}if(k===q&&L===j)return!0;if(k===q)return A;if(L===j)return k===q-1&&T[k]==="";throw new Error("wtf?")};function S(T){return T.replace(/\\(.)/g,"$1")}function R(T){return T.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}}),md=(0,D.__commonJS)({"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(e,t){"use strict";typeof Object.create=="function"?t.exports=function(n,i){i&&(n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,i){if(i){n.super_=i;var o=function(){};o.prototype=i.prototype,n.prototype=new o,n.prototype.constructor=n}}}}),vd=(0,D.__commonJS)({"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(e,t){"use strict";try{if(r=(0,D.__require)("util"),typeof r.inherits!="function")throw"";t.exports=r.inherits}catch{t.exports=md()}var r}}),un=(0,D.__commonJS)({"../../node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(e,t){"use strict";function r(i){return i.charAt(0)==="/"}function n(i){var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,c=o.exec(i),a=c[1]||"",s=!!(a&&a.charAt(1)!==":");return!!(c[2]||s)}t.exports=process.platform==="win32"?n:r,t.exports.posix=r,t.exports.win32=n}}),js=(0,D.__commonJS)({"../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js"(e){"use strict";e.setopts=d,e.ownProp=t,e.makeAbs=x,e.finish=v,e.mark=g,e.isIgnored=_,e.childrenIgnored=E;function t(p,y){return Object.prototype.hasOwnProperty.call(p,y)}var r=(0,D.__require)("fs"),n=(0,D.__require)("path"),i=cn(),o=un(),c=i.Minimatch;function a(p,y){return p.localeCompare(y,"en")}function s(p,y){p.ignore=y.ignore||[],Array.isArray(p.ignore)||(p.ignore=[p.ignore]),p.ignore.length&&(p.ignore=p.ignore.map(l))}function l(p){var y=null;if(p.slice(-3)==="/**"){var u=p.replace(/(\/\*\*)+$/,"");y=new c(u,{dot:!0})}return{matcher:new c(p,{dot:!0}),gmatcher:y}}function d(p,y,u){if(u||(u={}),u.matchBase&&y.indexOf("/")===-1){if(u.noglobstar)throw new Error("base matching requires globstar");y="**/"+y}p.silent=!!u.silent,p.pattern=y,p.strict=u.strict!==!1,p.realpath=!!u.realpath,p.realpathCache=u.realpathCache||Object.create(null),p.follow=!!u.follow,p.dot=!!u.dot,p.mark=!!u.mark,p.nodir=!!u.nodir,p.nodir&&(p.mark=!0),p.sync=!!u.sync,p.nounique=!!u.nounique,p.nonull=!!u.nonull,p.nosort=!!u.nosort,p.nocase=!!u.nocase,p.stat=!!u.stat,p.noprocess=!!u.noprocess,p.absolute=!!u.absolute,p.fs=u.fs||r,p.maxLength=u.maxLength||1/0,p.cache=u.cache||Object.create(null),p.statCache=u.statCache||Object.create(null),p.symlinks=u.symlinks||Object.create(null),s(p,u),p.changedCwd=!1;var f=process.cwd();t(u,"cwd")?(p.cwd=n.resolve(u.cwd),p.changedCwd=p.cwd!==f):p.cwd=f,p.root=u.root||n.resolve(p.cwd,"/"),p.root=n.resolve(p.root),process.platform==="win32"&&(p.root=p.root.replace(/\\/g,"/")),p.cwdAbs=o(p.cwd)?p.cwd:x(p,p.cwd),process.platform==="win32"&&(p.cwdAbs=p.cwdAbs.replace(/\\/g,"/")),p.nomount=!!u.nomount,u.nonegate=!0,u.nocomment=!0,u.allowWindowsEscape=!1,p.minimatch=new c(y,u),p.options=p.minimatch.options}function v(p){for(var y=p.nounique,u=y?[]:Object.create(null),f=0,m=p.matches.length;f<m;f++){var h=p.matches[f];if(!h||Object.keys(h).length===0){if(p.nonull){var O=p.minimatch.globSet[f];y?u.push(O):u[O]=!0}}else{var b=Object.keys(h);y?u.push.apply(u,b):b.forEach(function(P){u[P]=!0})}}if(y||(u=Object.keys(u)),p.nosort||(u=u.sort(a)),p.mark){for(var f=0;f<u.length;f++)u[f]=p._mark(u[f]);p.nodir&&(u=u.filter(function(P){var S=!/\/$/.test(P),R=p.cache[P]||p.cache[x(p,P)];return S&&R&&(S=R!=="DIR"&&!Array.isArray(R)),S}))}p.ignore.length&&(u=u.filter(function(P){return!_(p,P)})),p.found=u}function g(p,y){var u=x(p,y),f=p.cache[u],m=y;if(f){var h=f==="DIR"||Array.isArray(f),O=y.slice(-1)==="/";if(h&&!O?m+="/":!h&&O&&(m=m.slice(0,-1)),m!==y){var b=x(p,m);p.statCache[b]=p.statCache[u],p.cache[b]=p.cache[u]}}return m}function x(p,y){var u=y;return y.charAt(0)==="/"?u=n.join(p.root,y):o(y)||y===""?u=y:p.changedCwd?u=n.resolve(p.cwd,y):u=n.resolve(y),process.platform==="win32"&&(u=u.replace(/\\/g,"/")),u}function _(p,y){return p.ignore.length?p.ignore.some(function(u){return u.matcher.match(y)||!!(u.gmatcher&&u.gmatcher.match(y))}):!1}function E(p,y){return p.ignore.length?p.ignore.some(function(u){return!!(u.gmatcher&&u.gmatcher.match(y))}):!1}}}),gd=(0,D.__commonJS)({"../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js"(e,t){"use strict";t.exports=E,E.GlobSync=p;var r=Ds(),n=cn(),i=n.Minimatch,o=Ls().Glob,c=(0,D.__require)("util"),a=(0,D.__require)("path"),s=(0,D.__require)("assert"),l=un(),d=js(),v=d.setopts,g=d.ownProp,x=d.childrenIgnored,_=d.isIgnored;function E(y,u){if(typeof u=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
13
+ See: https://github.com/isaacs/node-glob/issues/167`);return new p(y,u).found}function p(y,u){if(!y)throw new Error("must provide pattern");if(typeof u=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
14
+ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof p))return new p(y,u);if(v(this,y,u),this.noprocess)return this;var f=this.minimatch.set.length;this.matches=new Array(f);for(var m=0;m<f;m++)this._process(this.minimatch.set[m],m,!1);this._finish()}p.prototype._finish=function(){if(s.ok(this instanceof p),this.realpath){var y=this;this.matches.forEach(function(u,f){var m=y.matches[f]=Object.create(null);for(var h in u)try{h=y._makeAbs(h);var O=r.realpathSync(h,y.realpathCache);m[O]=!0}catch(b){if(b.syscall==="stat")m[y._makeAbs(h)]=!0;else throw b}})}d.finish(this)},p.prototype._process=function(y,u,f){s.ok(this instanceof p);for(var m=0;typeof y[m]=="string";)m++;var h;switch(m){case y.length:this._processSimple(y.join("/"),u);return;case 0:h=null;break;default:h=y.slice(0,m).join("/");break}var O=y.slice(m),b;h===null?b=".":((l(h)||l(y.map(function(R){return typeof R=="string"?R:"[*]"}).join("/")))&&(!h||!l(h))&&(h="/"+h),b=h);var P=this._makeAbs(b);if(!x(this,b)){var S=O[0]===n.GLOBSTAR;S?this._processGlobStar(h,b,P,O,u,f):this._processReaddir(h,b,P,O,u,f)}},p.prototype._processReaddir=function(y,u,f,m,h,O){var b=this._readdir(f,O);if(b){for(var P=m[0],S=!!this.minimatch.negate,R=P._glob,T=this.dot||R.charAt(0)===".",C=[],A=0;A<b.length;A++){var w=b[A];if(w.charAt(0)!=="."||T){var k;S&&!y?k=!w.match(P):k=w.match(P),k&&C.push(w)}}var L=C.length;if(L!==0){if(m.length===1&&!this.mark&&!this.stat){this.matches[h]||(this.matches[h]=Object.create(null));for(var A=0;A<L;A++){var w=C[A];y&&(y.slice(-1)!=="/"?w=y+"/"+w:w=y+w),w.charAt(0)==="/"&&!this.nomount&&(w=a.join(this.root,w)),this._emitMatch(h,w)}return}m.shift();for(var A=0;A<L;A++){var w=C[A],q;y?q=[y,w]:q=[w],this._process(q.concat(m),h,O)}}}},p.prototype._emitMatch=function(y,u){if(!_(this,u)){var f=this._makeAbs(u);if(this.mark&&(u=this._mark(u)),this.absolute&&(u=f),!this.matches[y][u]){if(this.nodir){var m=this.cache[f];if(m==="DIR"||Array.isArray(m))return}this.matches[y][u]=!0,this.stat&&this._stat(u)}}},p.prototype._readdirInGlobStar=function(y){if(this.follow)return this._readdir(y,!1);var u,f,m;try{f=this.fs.lstatSync(y)}catch(O){if(O.code==="ENOENT")return null}var h=f&&f.isSymbolicLink();return this.symlinks[y]=h,!h&&f&&!f.isDirectory()?this.cache[y]="FILE":u=this._readdir(y,!1),u},p.prototype._readdir=function(y,u){var f;if(u&&!g(this.symlinks,y))return this._readdirInGlobStar(y);if(g(this.cache,y)){var m=this.cache[y];if(!m||m==="FILE")return null;if(Array.isArray(m))return m}try{return this._readdirEntries(y,this.fs.readdirSync(y))}catch(h){return this._readdirError(y,h),null}},p.prototype._readdirEntries=function(y,u){if(!this.mark&&!this.stat)for(var f=0;f<u.length;f++){var m=u[f];y==="/"?m=y+m:m=y+"/"+m,this.cache[m]=!0}return this.cache[y]=u,u},p.prototype._readdirError=function(y,u){switch(u.code){case"ENOTSUP":case"ENOTDIR":var f=this._makeAbs(y);if(this.cache[f]="FILE",f===this.cwdAbs){var m=new Error(u.code+" invalid cwd "+this.cwd);throw m.path=this.cwd,m.code=u.code,m}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(y)]=!1;break;default:if(this.cache[this._makeAbs(y)]=!1,this.strict)throw u;this.silent||console.error("glob error",u);break}},p.prototype._processGlobStar=function(y,u,f,m,h,O){var b=this._readdir(f,O);if(b){var P=m.slice(1),S=y?[y]:[],R=S.concat(P);this._process(R,h,!1);var T=b.length,C=this.symlinks[f];if(!(C&&O))for(var A=0;A<T;A++){var w=b[A];if(!(w.charAt(0)==="."&&!this.dot)){var k=S.concat(b[A],P);this._process(k,h,!0);var L=S.concat(b[A],m);this._process(L,h,!0)}}}},p.prototype._processSimple=function(y,u){var f=this._stat(y);if(this.matches[u]||(this.matches[u]=Object.create(null)),!!f){if(y&&l(y)&&!this.nomount){var m=/[\/\\]$/.test(y);y.charAt(0)==="/"?y=a.join(this.root,y):(y=a.resolve(this.root,y),m&&(y+="/"))}process.platform==="win32"&&(y=y.replace(/\\/g,"/")),this._emitMatch(u,y)}},p.prototype._stat=function(y){var u=this._makeAbs(y),f=y.slice(-1)==="/";if(y.length>this.maxLength)return!1;if(!this.stat&&g(this.cache,u)){var b=this.cache[u];if(Array.isArray(b)&&(b="DIR"),!f||b==="DIR")return b;if(f&&b==="FILE")return!1}var m,h=this.statCache[u];if(!h){var O;try{O=this.fs.lstatSync(u)}catch(P){if(P&&(P.code==="ENOENT"||P.code==="ENOTDIR"))return this.statCache[u]=!1,!1}if(O&&O.isSymbolicLink())try{h=this.fs.statSync(u)}catch{h=O}else h=O}this.statCache[u]=h;var b=!0;return h&&(b=h.isDirectory()?"DIR":"FILE"),this.cache[u]=this.cache[u]||b,f&&b==="FILE"?!1:b},p.prototype._mark=function(y){return d.mark(this,y)},p.prototype._makeAbs=function(y){return d.makeAbs(this,y)}}}),Is=(0,D.__commonJS)({"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(e,t){"use strict";t.exports=r;function r(n,i){if(n&&i)return r(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(c){o[c]=n[c]}),o;function o(){for(var c=new Array(arguments.length),a=0;a<c.length;a++)c[a]=arguments[a];var s=n.apply(this,c),l=c[c.length-1];return typeof s=="function"&&s!==l&&Object.keys(l).forEach(function(d){s[d]=l[d]}),s}}}}),$s=(0,D.__commonJS)({"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(e,t){"use strict";var r=Is();t.exports=r(n),t.exports.strict=r(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function n(o){var c=function(){return c.called?c.value:(c.called=!0,c.value=o.apply(this,arguments))};return c.called=!1,c}function i(o){var c=function(){if(c.called)throw new Error(c.onceError);return c.called=!0,c.value=o.apply(this,arguments)},a=o.name||"Function wrapped with `once`";return c.onceError=a+" shouldn't be called more than once",c.called=!1,c}}}),yd=(0,D.__commonJS)({"../../node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js"(e,t){"use strict";var r=Is(),n=Object.create(null),i=$s();t.exports=r(o);function o(s,l){return n[s]?(n[s].push(l),null):(n[s]=[l],c(s))}function c(s){return i(function l(){var d=n[s],v=d.length,g=a(arguments);try{for(var x=0;x<v;x++)d[x].apply(null,g)}finally{d.length>v?(d.splice(0,v),process.nextTick(function(){l.apply(null,g)})):delete n[s]}})}function a(s){for(var l=s.length,d=[],v=0;v<l;v++)d[v]=s[v];return d}}}),Ls=(0,D.__commonJS)({"../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js"(e,t){"use strict";t.exports=f;var r=Ds(),n=cn(),i=n.Minimatch,o=vd(),c=(0,D.__require)("events").EventEmitter,a=(0,D.__require)("path"),s=(0,D.__require)("assert"),l=un(),d=gd(),v=js(),g=v.setopts,x=v.ownProp,_=yd(),E=(0,D.__require)("util"),p=v.childrenIgnored,y=v.isIgnored,u=$s();function f(P,S,R){if(typeof S=="function"&&(R=S,S={}),S||(S={}),S.sync){if(R)throw new TypeError("callback provided to sync glob");return d(P,S)}return new O(P,S,R)}f.sync=d;var m=f.GlobSync=d.GlobSync;f.glob=f;function h(P,S){if(S===null||typeof S!="object")return P;for(var R=Object.keys(S),T=R.length;T--;)P[R[T]]=S[R[T]];return P}f.hasMagic=function(P,S){var R=h({},S);R.noprocess=!0;var T=new O(P,R),C=T.minimatch.set;if(!P)return!1;if(C.length>1)return!0;for(var A=0;A<C[0].length;A++)if(typeof C[0][A]!="string")return!0;return!1},f.Glob=O,o(O,c);function O(P,S,R){if(typeof S=="function"&&(R=S,S=null),S&&S.sync){if(R)throw new TypeError("callback provided to sync glob");return new m(P,S)}if(!(this instanceof O))return new O(P,S,R);g(this,P,S),this._didRealPath=!1;var T=this.minimatch.set.length;this.matches=new Array(T),typeof R=="function"&&(R=u(R),this.on("error",R),this.on("end",function(L){R(null,L)}));var C=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(T===0)return k();for(var A=!0,w=0;w<T;w++)this._process(this.minimatch.set[w],w,!1,k);A=!1;function k(){--C._processing,C._processing<=0&&(A?process.nextTick(function(){C._finish()}):C._finish())}}O.prototype._finish=function(){if(s(this instanceof O),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();v.finish(this),this.emit("end",this.found)}},O.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var P=this.matches.length;if(P===0)return this._finish();for(var S=this,R=0;R<this.matches.length;R++)this._realpathSet(R,T);function T(){--P===0&&S._finish()}},O.prototype._realpathSet=function(P,S){var R=this.matches[P];if(!R)return S();var T=Object.keys(R),C=this,A=T.length;if(A===0)return S();var w=this.matches[P]=Object.create(null);T.forEach(function(k,L){k=C._makeAbs(k),r.realpath(k,C.realpathCache,function(q,j){q?q.syscall==="stat"?w[k]=!0:C.emit("error",q):w[j]=!0,--A===0&&(C.matches[P]=w,S())})})},O.prototype._mark=function(P){return v.mark(this,P)},O.prototype._makeAbs=function(P){return v.makeAbs(this,P)},O.prototype.abort=function(){this.aborted=!0,this.emit("abort")},O.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},O.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var P=this._emitQueue.slice(0);this._emitQueue.length=0;for(var S=0;S<P.length;S++){var R=P[S];this._emitMatch(R[0],R[1])}}if(this._processQueue.length){var T=this._processQueue.slice(0);this._processQueue.length=0;for(var S=0;S<T.length;S++){var C=T[S];this._processing--,this._process(C[0],C[1],C[2],C[3])}}}},O.prototype._process=function(P,S,R,T){if(s(this instanceof O),s(typeof T=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([P,S,R,T]);return}for(var C=0;typeof P[C]=="string";)C++;var A;switch(C){case P.length:this._processSimple(P.join("/"),S,T);return;case 0:A=null;break;default:A=P.slice(0,C).join("/");break}var w=P.slice(C),k;A===null?k=".":((l(A)||l(P.map(function(j){return typeof j=="string"?j:"[*]"}).join("/")))&&(!A||!l(A))&&(A="/"+A),k=A);var L=this._makeAbs(k);if(p(this,k))return T();var q=w[0]===n.GLOBSTAR;q?this._processGlobStar(A,k,L,w,S,R,T):this._processReaddir(A,k,L,w,S,R,T)}},O.prototype._processReaddir=function(P,S,R,T,C,A,w){var k=this;this._readdir(R,A,function(L,q){return k._processReaddir2(P,S,R,T,C,A,q,w)})},O.prototype._processReaddir2=function(P,S,R,T,C,A,w,k){if(!w)return k();for(var L=T[0],q=!!this.minimatch.negate,j=L._glob,F=this.dot||j.charAt(0)===".",B=[],N=0;N<w.length;N++){var H=w[N];if(H.charAt(0)!=="."||F){var $;q&&!P?$=!H.match(L):$=H.match(L),$&&B.push(H)}}var V=B.length;if(V===0)return k();if(T.length===1&&!this.mark&&!this.stat){this.matches[C]||(this.matches[C]=Object.create(null));for(var N=0;N<V;N++){var H=B[N];P&&(P!=="/"?H=P+"/"+H:H=P+H),H.charAt(0)==="/"&&!this.nomount&&(H=a.join(this.root,H)),this._emitMatch(C,H)}return k()}T.shift();for(var N=0;N<V;N++){var H=B[N],ae;P&&(P!=="/"?H=P+"/"+H:H=P+H),this._process([H].concat(T),C,A,k)}k()},O.prototype._emitMatch=function(P,S){if(!this.aborted&&!y(this,S)){if(this.paused){this._emitQueue.push([P,S]);return}var R=l(S)?S:this._makeAbs(S);if(this.mark&&(S=this._mark(S)),this.absolute&&(S=R),!this.matches[P][S]){if(this.nodir){var T=this.cache[R];if(T==="DIR"||Array.isArray(T))return}this.matches[P][S]=!0;var C=this.statCache[R];C&&this.emit("stat",S,C),this.emit("match",S)}}},O.prototype._readdirInGlobStar=function(P,S){if(this.aborted)return;if(this.follow)return this._readdir(P,!1,S);var R="lstat\0"+P,T=this,C=_(R,A);C&&T.fs.lstat(P,C);function A(w,k){if(w&&w.code==="ENOENT")return S();var L=k&&k.isSymbolicLink();T.symlinks[P]=L,!L&&k&&!k.isDirectory()?(T.cache[P]="FILE",S()):T._readdir(P,!1,S)}},O.prototype._readdir=function(P,S,R){if(!this.aborted&&(R=_("readdir\0"+P+"\0"+S,R),!!R)){if(S&&!x(this.symlinks,P))return this._readdirInGlobStar(P,R);if(x(this.cache,P)){var T=this.cache[P];if(!T||T==="FILE")return R();if(Array.isArray(T))return R(null,T)}var C=this;C.fs.readdir(P,b(this,P,R))}};function b(P,S,R){return function(T,C){T?P._readdirError(S,T,R):P._readdirEntries(S,C,R)}}O.prototype._readdirEntries=function(P,S,R){if(!this.aborted){if(!this.mark&&!this.stat)for(var T=0;T<S.length;T++){var C=S[T];P==="/"?C=P+C:C=P+"/"+C,this.cache[C]=!0}return this.cache[P]=S,R(null,S)}},O.prototype._readdirError=function(P,S,R){if(!this.aborted){switch(S.code){case"ENOTSUP":case"ENOTDIR":var T=this._makeAbs(P);if(this.cache[T]="FILE",T===this.cwdAbs){var C=new Error(S.code+" invalid cwd "+this.cwd);C.path=this.cwd,C.code=S.code,this.emit("error",C),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(P)]=!1;break;default:this.cache[this._makeAbs(P)]=!1,this.strict&&(this.emit("error",S),this.abort()),this.silent||console.error("glob error",S);break}return R()}},O.prototype._processGlobStar=function(P,S,R,T,C,A,w){var k=this;this._readdir(R,A,function(L,q){k._processGlobStar2(P,S,R,T,C,A,q,w)})},O.prototype._processGlobStar2=function(P,S,R,T,C,A,w,k){if(!w)return k();var L=T.slice(1),q=P?[P]:[],j=q.concat(L);this._process(j,C,!1,k);var F=this.symlinks[R],B=w.length;if(F&&A)return k();for(var N=0;N<B;N++){var H=w[N];if(!(H.charAt(0)==="."&&!this.dot)){var $=q.concat(w[N],L);this._process($,C,!0,k);var V=q.concat(w[N],T);this._process(V,C,!0,k)}}k()},O.prototype._processSimple=function(P,S,R){var T=this;this._stat(P,function(C,A){T._processSimple2(P,S,C,A,R)})},O.prototype._processSimple2=function(P,S,R,T,C){if(this.matches[S]||(this.matches[S]=Object.create(null)),!T)return C();if(P&&l(P)&&!this.nomount){var A=/[\/\\]$/.test(P);P.charAt(0)==="/"?P=a.join(this.root,P):(P=a.resolve(this.root,P),A&&(P+="/"))}process.platform==="win32"&&(P=P.replace(/\\/g,"/")),this._emitMatch(S,P),C()},O.prototype._stat=function(P,S){var R=this._makeAbs(P),T=P.slice(-1)==="/";if(P.length>this.maxLength)return S();if(!this.stat&&x(this.cache,R)){var C=this.cache[R];if(Array.isArray(C)&&(C="DIR"),!T||C==="DIR")return S(null,C);if(T&&C==="FILE")return S()}var A,w=this.statCache[R];if(w!==void 0){if(w===!1)return S(null,w);var k=w.isDirectory()?"DIR":"FILE";return T&&k==="FILE"?S():S(null,k,w)}var L=this,q=_("stat\0"+R,j);q&&L.fs.lstat(R,q);function j(F,B){if(B&&B.isSymbolicLink())return L.fs.stat(R,function(N,H){N?L._stat2(P,R,null,B,S):L._stat2(P,R,N,H,S)});L._stat2(P,R,F,B,S)}},O.prototype._stat2=function(P,S,R,T,C){if(R&&(R.code==="ENOENT"||R.code==="ENOTDIR"))return this.statCache[S]=!1,C();var A=P.slice(-1)==="/";if(this.statCache[S]=T,S.slice(-1)==="/"&&T&&!T.isDirectory())return C(null,!1,T);var w=!0;return T&&(w=T.isDirectory()?"DIR":"FILE"),this.cache[S]=this.cache[S]||w,A&&w==="FILE"?C():C(null,w,T)}}}),_d=(0,D.__commonJS)({"../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(e,t){"use strict";var r=(0,D.__require)("assert"),n=(0,D.__require)("path"),i=(0,D.__require)("fs"),o=void 0;try{o=Ls()}catch{}var c={nosort:!0,silent:!0},a=0,s=process.platform==="win32",l=f=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(h=>{f[h]=f[h]||i[h],h=h+"Sync",f[h]=f[h]||i[h]}),f.maxBusyTries=f.maxBusyTries||3,f.emfileWait=f.emfileWait||1e3,f.glob===!1&&(f.disableGlob=!0),f.disableGlob!==!0&&o===void 0)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");f.disableGlob=f.disableGlob||!1,f.glob=f.glob||c},d=(f,m,h)=>{typeof m=="function"&&(h=m,m={}),r(f,"rimraf: missing path"),r.equal(typeof f,"string","rimraf: path should be a string"),r.equal(typeof h,"function","rimraf: callback function required"),r(m,"rimraf: invalid options argument provided"),r.equal(typeof m,"object","rimraf: options should be object"),l(m);let O=0,b=null,P=0,S=T=>{b=b||T,--P===0&&h(b)},R=(T,C)=>{if(T)return h(T);if(P=C.length,P===0)return h();C.forEach(A=>{let w=k=>{if(k){if((k.code==="EBUSY"||k.code==="ENOTEMPTY"||k.code==="EPERM")&&O<m.maxBusyTries)return O++,setTimeout(()=>v(A,m,w),O*100);if(k.code==="EMFILE"&&a<m.emfileWait)return setTimeout(()=>v(A,m,w),a++);k.code==="ENOENT"&&(k=null)}a=0,S(k)};v(A,m,w)})};if(m.disableGlob||!o.hasMagic(f))return R(null,[f]);m.lstat(f,(T,C)=>{if(!T)return R(null,[f]);o(f,m.glob,R)})},v=(f,m,h)=>{r(f),r(m),r(typeof h=="function"),m.lstat(f,(O,b)=>{if(O&&O.code==="ENOENT")return h(null);if(O&&O.code==="EPERM"&&s&&g(f,m,O,h),b&&b.isDirectory())return _(f,m,O,h);m.unlink(f,P=>{if(P){if(P.code==="ENOENT")return h(null);if(P.code==="EPERM")return s?g(f,m,P,h):_(f,m,P,h);if(P.code==="EISDIR")return _(f,m,P,h)}return h(P)})})},g=(f,m,h,O)=>{r(f),r(m),r(typeof O=="function"),m.chmod(f,438,b=>{b?O(b.code==="ENOENT"?null:h):m.stat(f,(P,S)=>{P?O(P.code==="ENOENT"?null:h):S.isDirectory()?_(f,m,h,O):m.unlink(f,O)})})},x=(f,m,h)=>{r(f),r(m);try{m.chmodSync(f,438)}catch(b){if(b.code==="ENOENT")return;throw h}let O;try{O=m.statSync(f)}catch(b){if(b.code==="ENOENT")return;throw h}O.isDirectory()?y(f,m,h):m.unlinkSync(f)},_=(f,m,h,O)=>{r(f),r(m),r(typeof O=="function"),m.rmdir(f,b=>{b&&(b.code==="ENOTEMPTY"||b.code==="EEXIST"||b.code==="EPERM")?E(f,m,O):b&&b.code==="ENOTDIR"?O(h):O(b)})},E=(f,m,h)=>{r(f),r(m),r(typeof h=="function"),m.readdir(f,(O,b)=>{if(O)return h(O);let P=b.length;if(P===0)return m.rmdir(f,h);let S;b.forEach(R=>{d(n.join(f,R),m,T=>{if(!S){if(T)return h(S=T);--P===0&&m.rmdir(f,h)}})})})},p=(f,m)=>{m=m||{},l(m),r(f,"rimraf: missing path"),r.equal(typeof f,"string","rimraf: path should be a string"),r(m,"rimraf: missing options"),r.equal(typeof m,"object","rimraf: options should be object");let h;if(m.disableGlob||!o.hasMagic(f))h=[f];else try{m.lstatSync(f),h=[f]}catch{h=o.sync(f,m.glob)}if(h.length)for(let O=0;O<h.length;O++){let b=h[O],P;try{P=m.lstatSync(b)}catch(S){if(S.code==="ENOENT")return;S.code==="EPERM"&&s&&x(b,m,S)}try{P&&P.isDirectory()?y(b,m,null):m.unlinkSync(b)}catch(S){if(S.code==="ENOENT")return;if(S.code==="EPERM")return s?x(b,m,S):y(b,m,S);if(S.code!=="EISDIR")throw S;y(b,m,S)}}},y=(f,m,h)=>{r(f),r(m);try{m.rmdirSync(f)}catch(O){if(O.code==="ENOENT")return;if(O.code==="ENOTDIR")throw h;(O.code==="ENOTEMPTY"||O.code==="EEXIST"||O.code==="EPERM")&&u(f,m)}},u=(f,m)=>{r(f),r(m),m.readdirSync(f).forEach(b=>p(n.join(f,b),m));let h=s?100:1,O=0;do{let b=!0;try{let P=m.rmdirSync(f,m);return b=!1,P}finally{if(++O<h&&b)continue}}while(!0)};t.exports=d,d.sync=p}}),bd=(0,D.__commonJS)({"../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js"(e,t){"use strict";t.exports=(r,n=1,i)=>{if(i={indent:" ",includeEmptyLines:!1,...i},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof i.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i.indent}\``);if(n===0)return r;let o=i.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(o,i.indent.repeat(n))}}}),Sd=(0,D.__commonJS)({"../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(e,t){"use strict";var r=(0,D.__require)("os"),n=/\s+at.*(?:\(|\s)(.*)\)?/,i=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,o=typeof r.homedir>"u"?"":r.homedir();t.exports=(c,a)=>(a=Object.assign({pretty:!1},a),c.replace(/\\/g,"/").split(`
15
+ `).filter(s=>{let l=s.match(n);if(l===null||!l[1])return!0;let d=l[1];return d.includes(".app/Contents/Resources/electron.asar")||d.includes(".app/Contents/Resources/default_app.asar")?!1:!i.test(d)}).filter(s=>s.trim()!=="").map(s=>a.pretty?s.replace(n,(l,d)=>l.replace(d,d.replace(o,"~"))):s).join(`
16
+ `))}}),wd=(0,D.__commonJS)({"../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(e,t){"use strict";var r=bd(),n=Sd(),i=c=>c.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""),o=class extends Error{constructor(c){if(!Array.isArray(c))throw new TypeError(`Expected input to be an Array, got ${typeof c}`);c=[...c].map(s=>s instanceof Error?s:s!==null&&typeof s=="object"?Object.assign(new Error(s.message),s):new Error(s));let a=c.map(s=>typeof s.stack=="string"?i(n(s.stack)):String(s)).join(`
17
+ `);a=`
18
+ `+r(a,4),super(a),this.name="AggregateError",Object.defineProperty(this,"_errors",{value:c})}*[Symbol.iterator](){for(let c of this._errors)yield c}};t.exports=o}}),Ed=(0,D.__commonJS)({"../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(e,t){"use strict";var r=wd();t.exports=async(n,i,{concurrency:o=1/0,stopOnError:c=!0}={})=>new Promise((a,s)=>{if(typeof i!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(o)||o===1/0)&&o>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${o}\` (${typeof o})`);let l=[],d=[],v=n[Symbol.iterator](),g=!1,x=!1,_=0,E=0,p=()=>{if(g)return;let y=v.next(),u=E;if(E++,y.done){x=!0,_===0&&(!c&&d.length!==0?s(new r(d)):a(l));return}_++,(async()=>{try{let f=await y.value;l[u]=await i(f,u),_--,p()}catch(f){c?(g=!0,s(f)):(d.push(f),_--,p())}})()};for(let y=0;y<o&&(p(),!x);y++);})}}),Pd=(0,D.__commonJS)({"../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js"(e,t){"use strict";var{promisify:r}=(0,D.__require)("util"),n=(0,D.__require)("path"),i=sd(),o=ws(),c=Cs(),a=ud(),s=ld(),l=fd(),d=_d(),v=Ed(),g=r(d),x={glob:!1,unlink:a.unlink,unlinkSync:a.unlinkSync,chmod:a.chmod,chmodSync:a.chmodSync,stat:a.stat,statSync:a.statSync,lstat:a.lstat,lstatSync:a.lstatSync,rmdir:a.rmdir,rmdirSync:a.rmdirSync,readdir:a.readdir,readdirSync:a.readdirSync};function _(p,y){if(s(p))throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.");if(!l(p,y))throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.")}function E(p){return p=Array.isArray(p)?p:[p],p=p.map(y=>process.platform==="win32"&&o(y)===!1?c(y):y),p}t.exports=async(p,{force:y,dryRun:u,cwd:f=process.cwd(),onProgress:m=()=>{},...h}={})=>{h={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:f,...h},p=E(p);let O=(await i(p,h)).sort((R,T)=>T.localeCompare(R));O.length===0&&m({totalCount:0,deletedCount:0,percent:1});let b=0,S=await v(O,async R=>(R=n.resolve(f,R),y||_(R,f),u||await g(R,x),b+=1,m({totalCount:O.length,deletedCount:b,percent:b/O.length}),R),h);return S.sort((R,T)=>R.localeCompare(T)),S},t.exports.sync=(p,{force:y,dryRun:u,cwd:f=process.cwd(),...m}={})=>{m={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:f,...m},p=E(p);let O=i.sync(p,m).sort((b,P)=>P.localeCompare(b)).map(b=>(b=n.resolve(f,b),y||_(b,f),u||d.sync(b,x),b));return O.sort((b,P)=>b.localeCompare(P)),O}}}),Ad=(0,D.__commonJS)({"../../node_modules/.pnpm/tempy@1.0.1/node_modules/tempy/index.js"(e,t){"use strict";var r=(0,D.__require)("fs"),n=(0,D.__require)("path"),i=zl(),o=Ql(),c=Zl(),a=Pd(),s=(0,D.__require)("stream"),{promisify:l}=(0,D.__require)("util"),d=l(s.pipeline),{writeFile:v}=r.promises,g=(E="")=>n.join(o,E+i()),x=async(E,p)=>d(p,r.createWriteStream(E)),_=(E,{extraArguments:p=0}={})=>async(...y)=>{let[u,f]=y.slice(p),m=await E(...y.slice(0,p),f);try{return await u(m)}finally{await a(m,{force:!0})}};t.exports.file=E=>{if(E={...E},E.name){if(E.extension!==void 0&&E.extension!==null)throw new Error("The `name` and `extension` options are mutually exclusive");return n.join(t.exports.directory(),E.name)}return g()+(E.extension===void 0||E.extension===null?"":"."+E.extension.replace(/^\./,""))},t.exports.file.task=_(t.exports.file),t.exports.directory=({prefix:E=""}={})=>{let p=g(E);return r.mkdirSync(p),p},t.exports.directory.task=_(t.exports.directory),t.exports.write=async(E,p)=>{let y=t.exports.file(p);return await(c(E)?x:v)(y,E),y},t.exports.write.task=_(t.exports.write,{extraArguments:1}),t.exports.writeSync=(E,p)=>{let y=t.exports.file(p);return r.writeFileSync(y,E),y},Object.defineProperty(t.exports,"root",{get(){return o}})}}),Od=(0,D.__toESM)(jl(),1);function xd(e){let t=typeof e=="string"?`
19
+ `:10,r=typeof e=="string"?"\r":13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}function Ns(e={}){let{env:t=process.env,platform:r=process.platform}=e;return r!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}var Td=({cwd:e=Kt.default.cwd(),path:t=Kt.default.env[Ns()],preferLocal:r=!0,execPath:n=Kt.default.execPath,addExecPath:i=!0}={})=>{let o=e instanceof URL?(0,ms.fileURLToPath)(e):e,c=Pt.default.resolve(o),a=[];return r&&Rd(a,c),i&&kd(a,n,c),[...a,t].join(Pt.default.delimiter)},Rd=(e,t)=>{let r;for(;r!==t;)e.push(Pt.default.join(t,"node_modules/.bin")),r=t,t=Pt.default.resolve(t,"..")},kd=(e,t,r)=>{let n=t instanceof URL?(0,ms.fileURLToPath)(t):t;e.push(Pt.default.resolve(r,n,".."))},Cd=({env:e=Kt.default.env,...t}={})=>{e={...e};let r=Ns({env:e});return t.path=e[r],e[r]=Td(t),e},Dd=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);!jd(i,o)&&n||Object.defineProperty(e,r,o)},jd=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Id=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},$d=(e,t)=>`/* Wrapped ${e}*/
20
+ ${t}`,Ld=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Nd=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Md=(e,t,r)=>{let n=r===""?"":`with ${r.trim()}() `,i=$d.bind(null,n,t.toString());Object.defineProperty(i,"name",Nd),Object.defineProperty(e,"toString",{...Ld,value:i})};function Fd(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let i of Reflect.ownKeys(t))Dd(e,t,i,r);return Id(e,t),Md(e,t,n),e}var zt=new WeakMap,Ms=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",o=function(...c){if(zt.set(o,++n),n===1)r=e.apply(this,c),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Fd(o,e),zt.set(o,n),o};Ms.callCount=e=>{if(!zt.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return zt.get(e)};var qd=Ms,Bd=()=>{let e=qs-Fs+1;return Array.from({length:e},Hd)},Hd=(e,t)=>({name:`SIGRT${t+1}`,number:Fs+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Fs=34,qs=64,Gd=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],Bs=()=>{let e=Bd();return[...Gd,...e].map(Ud)},Ud=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:c}}=dl.constants,a=c!==void 0;return{name:e,number:a?c:t,description:r,supported:a,action:n,forced:i,standard:o}},Wd=()=>{let e=Bs();return Object.fromEntries(e.map(Jd))},Jd=({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:c})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:c}],Vd=Wd(),Kd=()=>{let e=Bs(),t=qs+1,r=Array.from({length:t},(n,i)=>Xd(i,e));return Object.assign({},...r)},Xd=(e,t)=>{let r=Yd(e,t);if(r===void 0)return{};let{name:n,description:i,supported:o,action:c,forced:a,standard:s}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:c,forced:a,standard:s}}},Yd=(e,t)=>{let r=t.find(({name:n})=>fl.constants.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},yv=Kd(),zd=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:c})=>e?`timed out after ${t} milliseconds`:c?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:o!==void 0?`failed with exit code ${o}`:"failed",Qt=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:c,escapedCommand:a,timedOut:s,isCanceled:l,killed:d,parsed:{options:{timeout:v,cwd:g=ll.default.cwd()}}})=>{o=o===null?void 0:o,i=i===null?void 0:i;let x=i===void 0?void 0:Vd[i].description,_=n&&n.code,p=`Command ${zd({timedOut:s,timeout:v,errorCode:_,signal:i,signalDescription:x,exitCode:o,isCanceled:l})}: ${c}`,y=Object.prototype.toString.call(n)==="[object Error]",u=y?`${p}
21
+ ${n.message}`:p,f=[u,t,e].filter(Boolean).join(`
22
+ `);return y?(n.originalMessage=n.message,n.message=f):n=new Error(f),n.shortMessage=u,n.command=c,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=x,n.stdout=e,n.stderr=t,n.cwd=g,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!s,n.isCanceled=l,n.killed=d&&!s,n},Xt=["stdin","stdout","stderr"],Qd=e=>Xt.some(t=>e[t]!==void 0),Hs=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Xt.map(n=>e[n]);if(Qd(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Xt.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Xt.length);return Array.from({length:r},(n,i)=>t[i])},Zd=e=>{let t=Hs(e);return t==="ipc"?"ipc":t===void 0||typeof t=="string"?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]},ut=[];ut.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&ut.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ut.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Yt=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",Hr=Symbol.for("signal-exit emitter"),Gr=globalThis,ep=Object.defineProperty.bind(Object),tp=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Gr[Hr])return Gr[Hr];ep(Gr,Hr,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let r=this.listeners[e],n=r.indexOf(t);n!==-1&&(n===0&&r.length===1?r.length=0:r.splice(n,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(let i of this.listeners[e])n=i(t,r)===!0||n;return e==="exit"&&(n=this.emit("afterExit",t,r)||n),n}},Gs=class{},rp=e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),np=class extends Gs{onExit(){return()=>{}}load(){}unload(){}},ip=class extends Gs{#n=Kr.platform==="win32"?"SIGINT":"SIGHUP";#e=new tp;#t;#s;#a;#i={};#r=!1;constructor(e){super(),this.#t=e,this.#i={};for(let t of ut)this.#i[t]=()=>{let r=this.#t.listeners(t),{count:n}=this.#e,i=e;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(n+=i.__signal_exit_emitter__.count),r.length===n){this.unload();let o=this.#e.emit("exit",null,t),c=t==="SIGHUP"?this.#n:t;o||e.kill(e.pid,c)}};this.#a=e.reallyExit,this.#s=e.emit}onExit(e,t){if(!Yt(this.#t))return()=>{};this.#r===!1&&this.load();let r=t?.alwaysLast?"afterExit":"exit";return this.#e.on(r,e),()=>{this.#e.removeListener(r,e),this.#e.listeners.exit.length===0&&this.#e.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#r){this.#r=!0,this.#e.count+=1;for(let e of ut)try{let t=this.#i[e];t&&this.#t.on(e,t)}catch{}this.#t.emit=(e,...t)=>this.#c(e,...t),this.#t.reallyExit=e=>this.#o(e)}}unload(){this.#r&&(this.#r=!1,ut.forEach(e=>{let t=this.#i[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#t.removeListener(e,t)}catch{}}),this.#t.emit=this.#s,this.#t.reallyExit=this.#a,this.#e.count-=1)}#o(e){return Yt(this.#t)?(this.#t.exitCode=e||0,this.#e.emit("exit",this.#t.exitCode,null),this.#a.call(this.#t,this.#t.exitCode)):0}#c(e,...t){let r=this.#s;if(e==="exit"&&Yt(this.#t)){typeof t[0]=="number"&&(this.#t.exitCode=t[0]);let n=r.call(this.#t,e,...t);return this.#e.emit("exit",this.#t.exitCode,null),n}else return r.call(this.#t,e,...t)}},Kr=globalThis.process,{onExit:sp,load:_v,unload:bv}=rp(Yt(Kr)?new ip(Kr):new np),ap=1e3*5,op=(e,t="SIGTERM",r={})=>{let n=e(t);return cp(e,t,r,n),n},cp=(e,t,r,n)=>{if(!up(t,r,n))return;let i=fp(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()},up=(e,{forceKillAfterTimeout:t},r)=>lp(e)&&t!==!1&&r,lp=e=>e===pl.default.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",fp=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return ap;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},dp=(e,t)=>{e.kill()&&(t.isCanceled=!0)},pp=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},hp=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,o=new Promise((a,s)=>{i=setTimeout(()=>{pp(e,r,s)},t)}),c=n.finally(()=>{clearTimeout(i)});return Promise.race([o,c])},mp=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},vp=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=sp(()=>{e.kill()});return n.finally(()=>{i()})};function ln(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function ts(e){return ln(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var gp=e=>e instanceof ml.ChildProcess&&typeof e.then=="function",Ur=(e,t,r)=>{if(typeof r=="string")return e[t].pipe((0,hl.createWriteStream)(r)),e;if(ts(r))return e[t].pipe(r),e;if(!gp(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!ts(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},yp=e=>{e.stdout!==null&&(e.pipeStdout=Ur.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=Ur.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=Ur.bind(void 0,e,"all"))},Us=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:i,addChunk:o,getFinalChunk:c,finalize:a},{maxBuffer:s=Number.POSITIVE_INFINITY}={})=>{if(!bp(e))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let l=t();l.length=0;try{for await(let d of e){let v=Sp(d),g=r[v](d,l);Ws({convertedChunk:g,state:l,getSize:n,truncateChunk:i,addChunk:o,maxBuffer:s})}return _p({state:l,convertChunk:r,getSize:n,truncateChunk:i,addChunk:o,getFinalChunk:c,maxBuffer:s}),a(l)}catch(d){throw d.bufferedData=a(l),d}},_p=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:i,maxBuffer:o})=>{let c=i(e);c!==void 0&&Ws({convertedChunk:c,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:o})},Ws=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:i,maxBuffer:o})=>{let c=r(e),a=t.length+c;if(a<=o){rs(e,t,i,a);return}let s=n(e,o-t.length);throw s!==void 0&&rs(s,t,i,o),new wp},rs=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},bp=e=>typeof e=="object"&&e!==null&&typeof e[Symbol.asyncIterator]=="function",Sp=e=>{let t=typeof e;if(t==="string")return"string";if(t!=="object"||e===null)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let r=ns.call(e);return r==="[object ArrayBuffer]"?"arrayBuffer":r==="[object DataView]"?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&ns.call(e.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:ns}=Object.prototype,wp=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}},Ep=e=>e,Pp=()=>{},Ap=({contents:e})=>e,Js=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Vs=e=>e.length;async function Op(e,t){return Us(e,$p,t)}var xp=()=>({contents:new ArrayBuffer(0)}),Tp=e=>Rp.encode(e),Rp=new TextEncoder,is=e=>new Uint8Array(e),ss=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),kp=(e,t)=>e.slice(0,t),Cp=(e,{contents:t,length:r},n)=>{let i=Xs()?jp(t,n):Dp(t,n);return new Uint8Array(i).set(e,r),i},Dp=(e,t)=>{if(t<=e.byteLength)return e;let r=new ArrayBuffer(Ks(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},jp=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let r=new ArrayBuffer(t,{maxByteLength:Ks(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},Ks=e=>as**Math.ceil(Math.log(e)/Math.log(as)),as=2,Ip=({contents:e,length:t})=>Xs()?e:e.slice(0,t),Xs=()=>"resize"in ArrayBuffer.prototype,$p={init:xp,convertChunk:{string:Tp,buffer:is,arrayBuffer:is,dataView:ss,typedArray:ss,others:Js},getSize:Vs,truncateChunk:kp,addChunk:Cp,getFinalChunk:Pp,finalize:Ip};async function Ys(e,t){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return os(await Op(e,t))}catch(r){throw r.bufferedData!==void 0&&(r.bufferedData=os(r.bufferedData)),r}}var os=e=>globalThis.Buffer.from(e);async function Lp(e,t){return Us(e,Bp,t)}var Np=()=>({contents:"",textDecoder:new TextDecoder}),Jt=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),Mp=(e,{contents:t})=>t+e,Fp=(e,t)=>e.slice(0,t),qp=({textDecoder:e})=>{let t=e.decode();return t===""?void 0:t},Bp={init:Np,convertChunk:{string:Ep,buffer:Jt,arrayBuffer:Jt,dataView:Jt,typedArray:Jt,others:Js},getSize:Vs,truncateChunk:Fp,addChunk:Mp,getFinalChunk:qp,finalize:Ap},Hp=(0,D.__toESM)(Il(),1),zs=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},Gp=({input:e,inputFile:t})=>typeof t!="string"?e:(zs(e),(0,vs.readFileSync)(t)),Up=e=>{let t=Gp(e);if(ln(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},Wp=({input:e,inputFile:t})=>typeof t!="string"?e:(zs(e),(0,vs.createReadStream)(t)),Jp=(e,t)=>{let r=Wp(t);r!==void 0&&(ln(r)?r.pipe(e.stdin):e.stdin.end(r))},Vp=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=(0,Hp.default)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Wr=async(e,t)=>{if(!(!e||t===void 0)){await(0,vl.setTimeout)(0),e.destroy();try{return await t}catch(r){return r.bufferedData}}},Jr=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t==="utf8"||t==="utf-8"?Lp(e,{maxBuffer:n}):t===null||t==="buffer"?Ys(e,{maxBuffer:n}):Kp(e,n,t)},Kp=async(e,t,r)=>(await Ys(e,{maxBuffer:t})).toString(r),Xp=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},c)=>{let a=Jr(e,{encoding:n,buffer:i,maxBuffer:o}),s=Jr(t,{encoding:n,buffer:i,maxBuffer:o}),l=Jr(r,{encoding:n,buffer:i,maxBuffer:o*2});try{return await Promise.all([c,a,s,l])}catch(d){return Promise.all([{error:d,signal:d.signal,timedOut:d.timedOut},Wr(e,a),Wr(t,s),Wr(r,l)])}},Yp=(async()=>{})().constructor.prototype,zp=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Yp,e)]),cs=(e,t)=>{for(let[r,n]of zp){let i=typeof t=="function"?(...o)=>Reflect.apply(n.value,t(),o):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}},Qp=e=>new Promise((t,r)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})}),Qs=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Zp=/^[\w.-]+$/,eh=e=>typeof e!="string"||Zp.test(e)?e:`"${e.replaceAll('"','\\"')}"`,Zs=(e,t)=>Qs(e,t).join(" "),ea=(e,t)=>Qs(e,t).map(r=>eh(r)).join(" "),th=/ +/g,us=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof yl.ChildProcess)&&"stdout"in e){let r=typeof e.stdout;if(r==="string")return e.stdout;if(gl.Buffer.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},ls=(e,t,r)=>r||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],rh=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],c=o.split(th).filter(Boolean),a=ls(r,c,o.startsWith(" "));if(n===t.length)return a;let s=t[n],l=Array.isArray(s)?s.map(d=>us(d)):[us(s)];return ls(a,l,o.endsWith(" "))},fs=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=rh({templates:e,expressions:t,tokens:r,index:n,template:i});return r},nh=(0,_l.debuglog)("execa").enabled,Vt=(e,t)=>String(e).padStart(t,"0"),ih=()=>{let e=new Date;return`${Vt(e.getHours(),2)}:${Vt(e.getMinutes(),2)}:${Vt(e.getSeconds(),2)}.${Vt(e.getMilliseconds(),3)}`},ta=(e,{verbose:t})=>{t&&bl.default.stderr.write(`[${ih()}] ${e}
23
+ `)},sh=1e3*1e3*100,ah=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...ct.default.env,...e}:e;return r?Cd({env:o,cwd:n,execPath:i}):o},ra=(e,t,r={})=>{let n=Od.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:sh,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||ct.default.cwd(),execPath:ct.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:nh,...r},r.env=ah(r),r.stdio=Hs(r),ct.default.platform==="win32"&&ul.default.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},Et=(e,t,r)=>typeof t!="string"&&!cl.Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?xd(t):t;function na(e,t,r){let n=ra(e,t,r),i=Zs(e,t),o=ea(e,t);ta(o,n.options),mp(n.options);let c;try{c=Vr.default.spawn(n.file,n.args,n.options)}catch(x){let _=new Vr.default.ChildProcess,E=Promise.reject(Qt({error:x,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return cs(_,E),_}let a=Qp(c),s=hp(c,n.options,a),l=vp(c,n.options,s),d={isCanceled:!1};c.kill=op.bind(null,c.kill.bind(c)),c.cancel=dp.bind(null,c,d);let g=qd(async()=>{let[{error:x,exitCode:_,signal:E,timedOut:p},y,u,f]=await Xp(c,n.options,l),m=Et(n.options,y),h=Et(n.options,u),O=Et(n.options,f);if(x||_!==0||E!==null){let b=Qt({error:x,exitCode:_,signal:E,stdout:m,stderr:h,all:O,command:i,escapedCommand:o,parsed:n,timedOut:p,isCanceled:d.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:c.killed});if(!n.options.reject)return b;throw b}return{command:i,escapedCommand:o,exitCode:0,stdout:m,stderr:h,all:O,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Jp(c,n.options),c.all=Vp(c,n.options),yp(c),cs(c,g),c}function oh(e,t,r){let n=ra(e,t,r),i=Zs(e,t),o=ea(e,t);ta(o,n.options);let c=Up(n.options),a;try{a=Vr.default.spawnSync(n.file,n.args,{...n.options,input:c})}catch(d){throw Qt({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let s=Et(n.options,a.stdout,a.error),l=Et(n.options,a.stderr,a.error);if(a.error||a.status!==0||a.signal!==null){let d=Qt({stdout:s,stderr:l,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:o,parsed:n,timedOut:a.error&&a.error.code==="ETIMEDOUT",isCanceled:!1,killed:a.signal!==null});if(!n.options.reject)return d;throw d}return{command:i,escapedCommand:o,exitCode:0,stdout:s,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var ch=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},ds=(e={})=>({preferLocal:!0,...ch(e),...e});function ia(e){function t(r,...n){if(!Array.isArray(r))return ia({...e,...r});let[i,...o]=fs(r,n);return na(i,o,ds(e))}return t.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[i,...o]=fs(r,n);return oh(i,o,ds(e))},t}var Sv=ia();function uh(e,t,r={}){t&&!Array.isArray(t)&&typeof t=="object"&&(r=t,t=[]);let n=Zd(r),i=ct.default.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:o=ct.default.execPath,nodeOptions:c=i}=r;return na(o,[...c,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var fa=ke((cg,la)=>{"use strict";X();var lh=Object.create,nr=Object.defineProperty,fh=Object.getOwnPropertyDescriptor,dh=Object.getOwnPropertyNames,ph=Object.getPrototypeOf,hh=Object.prototype.hasOwnProperty,mh=(e,t)=>{for(var r in t)nr(e,r,{get:t[r],enumerable:!0})},aa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dh(t))!hh.call(e,i)&&i!==r&&nr(e,i,{get:()=>t[i],enumerable:!(n=fh(t,i))||n.enumerable});return e},vh=(e,t,r)=>(r=e!=null?lh(ph(e)):{},aa(t||!e||!e.__esModule?nr(r,"default",{value:e,enumerable:!0}):r,e)),gh=e=>aa(nr({},"__esModule",{value:!0}),e),oa={};mh(oa,{jestConsoleContext:()=>Sh,jestContext:()=>bh,jestStdoutContext:()=>wh,processExitContext:()=>Eh});la.exports=gh(oa);var dn=fn(),ca=at(),Xe=vh(require("path")),yh=(0,ca.__toESM)((0,dn.require_main)()),_h=(0,ca.__toESM)((0,dn.require_tempy)()),bh={new:function(e={}){let t=e;return beforeEach(()=>{let r=process.cwd();t.mocked=t.mocked??{cwd:process.cwd()},t.tmpDir=_h.default.directory(),t.fs=yh.default.cwd(t.tmpDir),t.tree=(n=t.tmpDir,i="")=>{function*o(a,s=""){for(let l of a)l.name==="node_modules"||l.name===".git"||(l.type==="dir"?(yield`${s}\u2514\u2500\u2500 ${l.name}/`,yield*o(l.children,s+" ")):l.type==="symlink"?yield`${s} -> ${l.relativePath}`:yield`${s}\u2514\u2500\u2500 ${l.name}`)}let c=t.fs.inspectTree(n,{relativePath:!0,symlinks:"report"})?.children||[];return`
24
+ ${[...o(c,i)].join(`
25
+ `)}
26
+ `},t.fixture=n=>{t.fs.copy(Xe.default.join(r,"src","__tests__","fixtures",n),".",{overwrite:!0}),t.fs.symlink(Xe.default.join(r,"..","client"),Xe.default.join(t.fs.cwd(),"node_modules","@prisma","client")),t.fs.symlink(Xe.default.join(r,"..","config"),Xe.default.join(t.fs.cwd(),"node_modules","@prisma","config"))},t.cli=(...n)=>(0,dn.execaNode)(Xe.default.join(r,"../cli/build/index.js"),n,{cwd:t.fs.cwd(),stdio:"pipe",all:!0}),t.printDir=(n,i)=>{let o=t.fs.list(n)??[];return o.sort((c,a)=>c.localeCompare(a)),o.filter(c=>i.includes(Xe.default.extname(c))).map(c=>`${c}:
27
+
28
+ ${t.fs.read(Xe.default.join(n,c))}`).join(`
29
+
30
+ `)},process.chdir(t.tmpDir)}),afterEach(()=>{process.chdir(t.mocked.cwd)}),ua(e)}};function ua(e){return{add(t){let r=t(e);return ua(r)},assemble(){return e}}}var Sh=()=>e=>{let t=e;return beforeEach(()=>{t.mocked["console.error"]=jest.spyOn(console,"error").mockImplementation(()=>{}),t.mocked["console.log"]=jest.spyOn(console,"log").mockImplementation(()=>{}),t.mocked["console.info"]=jest.spyOn(console,"info").mockImplementation(()=>{}),t.mocked["console.warn"]=jest.spyOn(console,"warn").mockImplementation(()=>{})}),afterEach(()=>{t.mocked["console.error"].mockRestore(),t.mocked["console.log"].mockRestore(),t.mocked["console.info"].mockRestore(),t.mocked["console.warn"].mockRestore()}),t},wh=({normalizationRules:e}={normalizationRules:[]})=>t=>{let r=t,n=(i,o)=>{for(let[c,a]of o)i=i.replace(c,a);return i};return beforeEach(()=>{r.mocked["process.stderr.write"]=jest.spyOn(process.stderr,"write").mockImplementation(()=>!0),r.mocked["process.stdout.write"]=jest.spyOn(process.stdout,"write").mockImplementation(()=>!0),r.normalizedCapturedStdout=()=>n(r.mocked["process.stdout.write"].mock.calls.join(""),e),r.normalizedCapturedStderr=()=>n(r.mocked["process.stderr.write"].mock.calls.join(""),e),r.clearCapturedStdout=()=>r.mocked["process.stdout.write"].mockClear(),r.clearCapturedStderr=()=>r.mocked["process.stderr.write"].mockClear()}),afterEach(()=>{r.mocked["process.stderr.write"].mockRestore(),r.mocked["process.stdout.write"].mockRestore()}),r},Eh=()=>e=>{let t=e;return beforeEach(()=>{t.mocked["process.exit"]=jest.spyOn(process,"exit").mockImplementation(r=>{throw new Error("process.exit: "+r)}),t.recordedExitCode=()=>t.mocked["process.exit"].mock.calls[0]?.[0]}),afterEach(()=>{t.mocked["process.exit"].mockRestore()}),t}});var ma=ke((mg,ha)=>{"use strict";X();var hn=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,Ah=Object.getOwnPropertyNames,Oh=Object.prototype.hasOwnProperty,xh=(e,t)=>{for(var r in t)hn(e,r,{get:t[r],enumerable:!0})},Th=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ah(t))!Oh.call(e,i)&&i!==r&&hn(e,i,{get:()=>t[i],enumerable:!(n=Ph(t,i))||n.enumerable});return e},Rh=e=>Th(hn({},"__esModule",{value:!0}),e),da={};xh(da,{binaryTargets:()=>pa.binaryTargets,getBinaryTargetForCurrentPlatform:()=>pn.getBinaryTargetForCurrentPlatform,getPlatformInfo:()=>pn.getPlatformInfo,getos:()=>pn.getos,jestConsoleContext:()=>ir.jestConsoleContext,jestContext:()=>ir.jestContext,jestStdoutContext:()=>ir.jestStdoutContext,link:()=>kh.link,processExitContext:()=>ir.processExitContext});ha.exports=Rh(da);var pn=Li(),kh=Xi(),lg=wr(),fg=Nt(),pa=Zi(),dg=es(),ir=fa(),pg=fn(),hg=at();(0,pa.init_binaryTargets)()});function sr(e){let t,r,n=new Promise((c,a)=>{t=c,r=a}),i=c=>{i=o=null,r(c),e?.onRejected?.(c),e?.onFulfilled?.()},o=c=>{o=i=null,t(c),e?.onResolved?.(c),e?.onFulfilled?.()};return{isFulfilled:()=>o===i,promise:n,reject:c=>i?.(c),resolve:c=>o?.(c)}}var mn=xe(()=>{"use strict";X()});function ar(e,t){return console.error(e),e instanceof Ot?t.json({EngineNotStarted:{reason:{EngineStartupError:{logs:[],msg:e.message}}}},500):e instanceof dt?t.text(e.responseBody,e.statusCode):t.body(null,500)}var ga,ya,_a,ba,Sa,wa,Ch,Dh,va,pt,Ot,dt,vn=xe(()=>{"use strict";X();ga=require("child_process"),ya=require("events"),_a=require("fs/promises"),ba=require("path"),Sa=require("timers/promises");mn();wa=require("std-env");It();({PRISMA_DEV_FORCE_ENGINE_BINARY_DOWNLOAD:Ch,PRISMA_DEV_FORCE_ENGINE_BINARY_PATH:Dh,PRISMA_DEV_FORCE_NETWORK_DELAY_MS:va}=wa.process.env),pt=class e{static#n=new Map;#e;#t;constructor(t){this.#e=t,this.#t=null}static async get(t){let{debug:r}=t,n=`${t.schemaHash}:${t.clientVersion}`;try{let i=e.#n.get(n);if(i)return i;let o=new e(t);return e.#n.set(n,o),r&&console.debug("[Query Engine] starting...",t),await o.start(),r&&console.debug("[Query Engine] started!"),o}finally{e.stopAll(n)}}static async stopAll(t){let n=(await Promise.allSettled(Array.from(e.#n.entries()).filter(([i])=>i!==t).map(async([i,o])=>{try{await o.stop()}finally{e.#n.delete(i)}}))).filter(i=>i.status==="rejected").map(i=>i.reason);if(n.length>0)throw new AggregateError(n,"Failed to stop engines")}async commitTransaction(t,r){return await this.#o(t,r,"commit")}async request(t,r){let{url:n}=await this.start(),i=this.#r(r),o=await fetch(n,{body:typeof t=="string"?t:JSON.stringify(t),headers:{...i,"Content-Type":"application/json"},method:"POST"});if(!o.ok)throw await dt.fromResponse(o);return await o.text()}async rollbackTransaction(t,r){return await this.#o(t,r,"rollback")}async startTransaction(t,r){let{url:n}=await this.start(),i=this.#r(r),o=await fetch(`${n}/transaction/start`,{body:JSON.stringify(t),headers:{...i,"Content-Type":"application/json"},method:"POST"});if(!o.ok)throw await dt.fromResponse(o);return await o.json()}async start(){if(this.#t!=null)return await this.#t;let{promise:t,reject:r,resolve:n}=sr();this.#t=t;let i=Dh||await this.#s();this.#e.debug&&console.debug("[Query Engine] spinning up at path...",i);let{proxySignals:o}=await import("foreground-child/proxy-signals"),c=(0,ga.spawn)(i,["--enable-raw-queries","--enable-telemetry-in-response","--port","0"],{env:{LOG_QUERIES:"y",PRISMA_DML:this.#e.base64Schema,QE_LOG_LEVEL:"TRACE",RUST_BACKTRACE:"1",RUST_LOG:"info"},stdio:["ignore","pipe","pipe"],windowsHide:!0});o(c),c.stderr.setEncoding("utf8"),c.stdout.setEncoding("utf8");let a=d=>{let v=d.split(`
31
+ `).find(E=>E.includes("Started query engine http server"));if(!v)return;c.stdout.removeListener("data",a);let{fields:g}=JSON.parse(v);if(g==null)return r(new Error(`Unexpected data during initialization, "fields" are missing: ${d}`));let{ip:x,port:_}=g;if(x==null||_==null)return r(new Error(`This version of query-engine is not compatible with minippg, "ip" and "port" are missing in the startup log entry.
32
+ Received data: ${d}`));n({childProcess:c,url:`http://${x}:${_}`})},s=d=>{this.#t=null,r(new Ot(String(d))),c.removeListener("exit",l),c.kill()};c.once("error",s);let l=(d,v)=>{this.#t=null,r(new Ot(`Query Engine exited with code ${d} and signal ${v}`))};return c.once("exit",l),c.stdout.on("data",a),this.#e.debug&&(c.stderr.on("data",console.error.bind(console,"[Query Engine]")),c.stdout.on("data",console.debug.bind(console,"[Query Engine]"))),await this.#t}async stop(){if(this.#t==null)return;let{childProcess:t}=await this.#t;t.exitCode==null&&t.signalCode==null&&(this.#t=null,t.kill(),await(0,ya.once)(t,"exit"))}async#s(){this.#e.debug&&console.debug("[Query Engine] getting engine commit hash...");let t=await this.#a();this.#e.debug&&console.debug("[Query Engine] got engine commit hash",t);let r=Nn(this.#e.clientVersion,t);this.#e.debug&&console.debug("[Query Engine] cache directory path",r),await(0,_a.mkdir)(r,{recursive:!0});let{binaryTarget:n}=this.#e.platform,i=n==="windows"?".exe":"",o=(0,ba.join)(r,`query-engine-${n}${i}`);return this.#e.debug&&console.debug("[Query Engine] binary path",o),(Ch==="1"||await Mn(o)===!1)&&await this.#i({commitHash:t,extension:i,engineBinaryPath:o}),o}async#a(){let t=await fetch(`https://registry.npmjs.org/@prisma/client/${this.#e.clientVersion}`);if(!t.ok)throw new Error(`Couldn't fetch package.json from npm registry, status code: ${t.status}`);let n=(await t.json()).devDependencies?.["@prisma/engines-version"];if(!n)throw new Error("Couldn't find engines version in package.json");let i=n.split(".").at(-1);if(!i)throw new Error("Couldn't find commit hash in engines version");return i}async#i(t){let{commitHash:r,extension:n,engineBinaryPath:i}=t,{binaryTarget:o}=this.#e.platform,c=`https://binaries.prisma.sh/all_commits/${r}/${o}/query-engine${n}.gz`;this.#e.debug&&console.debug("[Query Engine] downloading engine from url",c);let a=await fetch(c);if(!a.ok)throw new Error(`Couldn't download engine. URL: ${c}, status code: ${a.status}`);va&&await(0,Sa.setTimeout)(Number(va)),await Fn(await a.arrayBuffer(),i),this.#e.debug&&console.debug("[Query Engine] downloaded and saved at",i)}#r(t){let r={};for(let[n,i]of Object.entries(t))i!=null&&(r[n]=i);return r}async#o(t,r,n){let{url:i}=await this.#t,o=this.#r(r),c=await fetch(`${i}/transaction/${t}/${n}`,{headers:{...o,"Content-Type":"application/json"},method:"POST"});if(!c.ok)throw await dt.fromResponse(c);try{return await c.json()}catch{return{}}}};Ot=class extends Error{name="EngineStartError"},dt=class e extends Error{constructor(r,n,i){super(`${r}: Query Engine response status ${n}, body: ${i}`);this.action=r;this.statusCode=n;this.responseBody=i}name="EngineHttpError";static async fromResponse(r){let n=new URL(r.url),i=await r.text();return new e(n.pathname,r.status,i)}}});async function Ea(e){let{output:t,success:r}=(0,Ee.safeParse)(jh,await e.req.json(),{abortEarly:!0});return r?t:e.text("Invalid input",400)}var Ee,jh,Pa=xe(()=>{"use strict";X();Ee=require("valibot"),jh=(0,Ee.object)({tags:(0,Ee.union)([(0,Ee.pipe)((0,Ee.array)((0,Ee.string)()),(0,Ee.minLength)(1)),(0,Ee.literal)("all")])})});async function Aa(e){return gn===void 0&&(gn=await Ye.Server.create({databaseUrl:e.get("db").connectionString,maxResponseSize:(0,Ye.parseSize)("128 MiB"),queryTimeout:(0,Ye.parseDuration)("PT5M"),maxTransactionTimeout:(0,Ye.parseDuration)("PT5M"),maxTransactionWaitTime:(0,Ye.parseDuration)("PT5M"),perRequestLogContext:{logFormat:"text",logLevel:e.get("debug")?"debug":"off"}})),gn}var Ye,or,gn,Oa=xe(()=>{"use strict";X();Ye=require("@prisma/query-plan-executor"),or=require("@prisma/query-plan-executor")});async function _n(e){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(c=>c.toString(16).padStart(2,"0")).join("")}function Ta(e){let t=e.req.param("schemaHash"),r=cr.get(t);return r==null?e.json({EngineNotStarted:{reason:"SchemaMissing"}},404):{schemaHash:t,schemas:r}}async function Ra(e,t,r){let n=yn.Buffer.from(e,"base64").toString("utf8"),i=(0,xa.produceSchema)(n,c=>{c.datasource('"postgresql"',t.toString())});r&&console.log("[Accelerate] schema with override:",i);let o=await _n(i);return{base64Override:yn.Buffer.from(i,"utf8").toString("base64"),overrideHash:o}}var yn,xa,cr,ka=xe(()=>{"use strict";X();yn=require("buffer"),xa=require("@mrleebo/prisma-ast"),cr=new Map});function ur(e){let{req:t}=e;return{traceparent:t.header("traceparent"),"X-capture-telemetry":t.header("X-capture-telemetry")}}var Ca=xe(()=>{"use strict";X()});async function Da(e){let{issues:t,output:r,success:n}=(0,fe.safeParse)(Ih,await e.req.json(),{abortEarly:!0});return n?r:e.json({EngineNotStarted:{reason:"InvalidRequest",issues:t}},400)}function ja(e,t){let{output:r,success:n}=(0,fe.safeParse)($h,e);return n?r:t.json({EngineMalfunction:{}},500)}var fe,Ih,$h,Ia=xe(()=>{"use strict";X();fe=require("valibot"),Ih=(0,fe.object)({isolation_level:(0,fe.optional)((0,fe.string)()),max_wait:(0,fe.pipe)((0,fe.number)(),(0,fe.integer)(),(0,fe.minValue)(0)),timeout:(0,fe.pipe)((0,fe.number)(),(0,fe.integer)(),(0,fe.minValue)(0))});$h=(0,fe.looseObject)({id:(0,fe.union)([(0,fe.string)(),(0,fe.number)()])})});var Na={};lr(Na,{accelerateRoute:()=>xt});async function bn(e){let{req:t}=e,r=Ta(e);if(r instanceof Response)return r;let{base64Override:n,overrideHash:i}=r.schemas;return await pt.get({base64Schema:n,clientVersion:process.env.PRISMA_DEV_FORCE_CLIENT_VERSION||t.param("clientVersion"),debug:e.get("debug"),platform:e.get("platform"),schemaHash:i})}var $a,La,Ze,xt,Lh,Tt,Nh,Mh,Ma=xe(()=>{"use strict";X();$a=require("hono/http-exception"),La=require("hono/tiny"),Ze=require("hono/validator");fr();Pa();vn();Oa();ka();Ca();Ia();xt=new La.Hono;xt.post("/invalidate",(0,Ze.validator)("header",ze),async e=>{let t=await Ea(e);return t instanceof Response?t:e.body(null)});Lh="/:clientVersion/:schemaHash",Tt=xt.basePath(Lh);xt.route("/",Tt);Nh=["/graphql","/itx/:transactionId/graphql"];Tt.on("POST",[...Nh],(0,Ze.validator)("header",ze),async e=>{let{req:t}=e;try{let r=await bn(e);if(r instanceof Response)return r;let n=await t.text(),i=t.param("transactionId"),o=await r.request(n,{...ur(e),"X-transaction-id":i});return e.text(o)}catch(r){return ar(r,e)}});Tt.basePath("/itx/:transactionId").on("POST",["/commit","/rollback"],(0,Ze.validator)("header",ze),async e=>{let{req:t}=e;try{let r=await bn(e);if(r instanceof Response)return r;let i=`${t.routePath.split("/").filter(Boolean).at(-1)}Transaction`,o=t.param("transactionId"),c=await r[i](o,ur(e));return e.json(c)}catch(r){return ar(r,e)}});Tt.put("/schema",(0,Ze.validator)("header",ze),async e=>{let{req:t}=e,r=await t.text();if(!r)return e.text("Missing schema",400);let n=t.param("schemaHash"),i=cr.get(n);if(i==null){if(n!==await _n(r))return e.text("Schema hash mismatch",400);let o=await Ra(r,e.get("db").prismaORMConnectionString,e.get("debug"));return cr.set(n,{base64Original:r,...o}),e.text(n)}return r!==i.base64Original?e.text("Schema mismatch",400):e.text(n)});Tt.post("/transaction/start",(0,Ze.validator)("header",ze),async e=>{let{req:t}=e,r=await Da(e);if(r instanceof Response)return r;try{let n=await bn(e);if(n instanceof Response)return n;let i=await n.startTransaction(r,ur(e)),o=ja(i,e);if(o instanceof Response)return o;let{id:c}=o,a=t.param("clientVersion"),s=e.get("port"),l=e.get("protocol"),d=t.param("schemaHash");return e.json({...i,"data-proxy":{endpoint:`${l}://localhost:${s}/${a}/${d}/itx/${c}`}})}catch(n){return ar(n,e)}});Mh=[["/connection-info","GET"],["/query","POST"],["/transaction/start","POST"],["/transaction/:transactionId/commit","POST"],["/transaction/:transactionId/query","POST"],["/transaction/:transactionId/rollback","POST"]];for(let[e,t]of Mh)xt.on(t,e,(0,Ze.validator)("header",ze),async r=>{let n=r.req.header("prisma-engine-hash");if(n!=="0.0.0"&&n!==or.version)throw new $a.HTTPException(400,{message:`Using an HTTP connection string is not supported with Prisma Client version ${n} by this version of \`prisma dev\`. Please either use a direct TCP connection string or upgrade your client to version ${or.version}.`});return await(await Aa(r)).fetch(r.req.raw)})});var Ba={};lr(Ba,{utilityRoute:()=>Sn});var Fa,qa,Sn,Hg,Ha=xe(()=>{"use strict";X();Fa=require("hono/tiny"),qa=require("http-status-codes"),Sn=new Fa.Hono;Sn.post("/database/dump",async e=>{let t=e.get("db"),r=e.get("serverState");return await t.dump(r.databaseDumpPath),e.json({dumpPath:r.databaseDumpPath},qa.StatusCodes.CREATED)});Hg=Sn.get("/health",e=>e.json({name:e.get("serverState").name}))});var Wh={};lr(Wh,{DEFAULT_DATABASE_PORT:()=>nt,DEFAULT_SERVER_PORT:()=>it,DEFAULT_SHADOW_DATABASE_PORT:()=>st,PortNotAvailableError:()=>Ce,ServerAlreadyRunningError:()=>kt,startPrismaDevServer:()=>Za,unstable_startServer:()=>Uh});module.exports=so(Wh);X();fr();X();var Kn=require("pathe/utils");It();X();var Be=require("get-port-please"),Lt=require("remeda"),nt=51214,it=51213,st=51215,$t=65535,qe=-1/0;async function Wn(e){let{debug:t,name:r,requestedPorts:n,servers:i}=e,{portsUsedByOtherServers:o,portsUsedByThisServerLastTime:c}=mo(r,i);t&&(console.debug(`ports used by other servers: ${Object.keys(o).join(", ")}`),console.debug(`ports used by "${r}" server last time: ${JSON.stringify(c)}`));let a={databasePort:qe,port:qe,shadowDatabasePort:qe},s=["port","databasePort","shadowDatabasePort"];for(let l of s){let d=await po({debug:t,portKey:l,portsUsedByOtherServers:o,portsUsedByThisServerLastTime:c,requestedPorts:n})??await ho({debug:t,pickedPorts:a,portKey:l,portsUsedByOtherServers:o,portsUsedByThisServerLastTime:c});t&&console.debug(`Got port for "${l}": ${d}`),a[l]=d}return t&&console.debug(`Picked ports: ${JSON.stringify(a)}`),a}async function po(e){let{debug:t,portKey:r,portsUsedByOtherServers:n,portsUsedByThisServerLastTime:i,requestedPorts:o}=e,{[r]:c,...a}=o;if(Un(c))return await vo({debug:t,otherRequestedPorts:a,portKey:r,portsUsedByOtherServers:n,requestedPort:c}),c;let s=i?.[r]??qe;if(!Un(s))return t&&console.debug(`No port specified for "${r}". Trying to pick a new port.`),null;let l=s in n;return l||Object.values(a).includes(s)?(t&&console.debug(`Port ${s} that was used last time for this server, ${l?"is also used by another server":"has been requested for another service"}. Trying to pick a new port.`),null):await(0,Be.checkPort)(s)===!1?(t&&console.debug(`Port ${s}, that was used last time for this server, is not available. Trying to pick a new port.`),null):(t&&console.debug(`Using port ${s} for "${r}" as it was used last time and is available.`),s)}async function ho(e){let{debug:t,pickedPorts:r,portKey:n,portsUsedByOtherServers:i,portsUsedByThisServerLastTime:o}=e,c=Math.max(nt,it,st)+1,a=[...Object.values(r),...Object.keys(i).map(Number),...Object.values(o||{})],s=Math.min(Math.max(c,...a)+100,$t),l=(0,Lt.difference)((0,Lt.range)(c,s),a),d={port:it,databasePort:nt,shadowDatabasePort:st}[n];try{return await(0,Be.getPort)({port:d in i||Object.values(r).includes(d)||Object.values(o||{}).includes(d)?void 0:d,ports:l})}catch(v){if(v instanceof Error&&v.name==="GetPortError"&&s+1<=$t)return t&&console.debug(`Expanding port lookup to range [${s+1}, ${$t}].`),await(0,Be.getPort)({portRange:[s+1,$t]});throw v}}function Un(e){return e>=0}function mo(e,t){let r={},n;for(let i of t){let{databasePort:o,port:c,shadowDatabasePort:a}=i;if(i.name===e){n={databasePort:o,port:c,shadowDatabasePort:a};continue}r[o]=!0,r[c]=!0,r[a]=!0}return{portsUsedByOtherServers:r,portsUsedByThisServerLastTime:n}}async function vo(e){let{debug:t,otherRequestedPorts:r,portKey:n,portsUsedByOtherServers:i,requestedPort:o}=e;if(o in i)throw t&&console.error(`Port ${o} was requested for "${n}", but is already used by another server.`),new gr(o);if(Object.values(r).includes(o))throw t&&console.error(`Port ${o} was requested for "${n}", but also for another key.`),new vr(o);if((0,Be.isUnsafePort)(o))throw t&&console.error(`Port ${o} was requested for "${n}", but is unsafe.`),new Ce(o);if(await(0,Be.checkPort)(o)===!1)throw t&&console.error(`Port ${o} was requested for "${n}", but is not available.`),new Ce(o)}var Ce=class extends Error{constructor(r){super(`Port \`${r}\` is not available.`);this.port=r}name="PortNotAvailableError"},vr=class extends Error{constructor(r){super(`Port number \`${r}\` was requested twice. Please choose a different port for each service.`);this.port=r}name="PortRequestedTwiceError"},gr=class extends Error{constructor(r){super(`Port number \`${r}\` belongs to another Prisma Dev server. Please choose a different port.`);this.port=r}name="PortBelongsToAnotherServerError"};var Se={connectionLimit:1,connectTimeout:0,database:"template1",maxIdleConnectionLifetime:0,password:"postgres",poolTimeout:0,socketTimeout:0,sslMode:"disable",username:"postgres"},go=`postgres://${Se.username}:${Se.password}@localhost`,Xn=new URLSearchParams({sslmode:Se.sslMode}),yo=new URLSearchParams({...Object.fromEntries(Xn.entries()),connection_limit:String(Se.connectionLimit),connect_timeout:String(Se.connectTimeout),max_idle_connection_lifetime:String(Se.maxIdleConnectionLifetime),pool_timeout:String(Se.poolTimeout),single_use_connections:"true",socket_timeout:String(Se.socketTimeout)});async function yr(e,t){let r=e==="database"?t.databasePort:t.shadowDatabasePort;if(t.dryRun)return Jn(e,t,{db:null,port:r,server:null});let{debug:n}=t,o=await(e==="shadow_database"?_o:Yn)(t.pgliteDataDirPath,n);n&&o.onNotification((s,l)=>{console.debug(`[${e}][${s}] ${l}`)});let{PGLiteSocketServer:c}=await import("@electric-sql/pglite-socket"),a=new c({db:o,debug:n,inspect:n,port:r});n&&(a.addEventListener("listening",s=>{let{detail:l}=s;console.debug(`[${e}] server listening on ${JSON.stringify(l)}`)}),a.addEventListener("connection",s=>{let{clientAddress:l,clientPort:d}=s.detail;console.debug(`[${e}] client connected from ${l}:${d}`)}),a.addEventListener("error",s=>{let{detail:l}=s;console.error(`[${e}] server error:`,l)}));try{await a.start()}catch(s){throw s instanceof Error&&"code"in s&&s.code==="EADDRINUSE"?new Ce(r):s}return Jn(e,t,{db:o,port:r,server:a})}function Jn(e,t,r){let{debug:n}=t,{db:i,port:o,server:c}=r||{};return n&&console.debug(`[${e}] server started on port ${o}`),{...Se,close:async()=>{let a=[];try{await c?.stop(),n&&console.debug(`[${e}] server stopped on port ${o}`)}catch(s){console.error(`[${e}] server stop error`,s),a.push(s)}if(e==="database")try{await i?.syncToFs(),n&&console.debug(`[${e}] synced to filesystem`)}catch(s){console.error(`[${e}] sync error`,s),a.push(s)}try{await i?.close(),n&&console.debug(`[${e}] closed`)}catch(s){console.error(`[${e}] close error`,s),a.push(s)}if(a.length>0)throw new AggregateError(a,`Failed to close ${e} properly`)},connectionString:Vn(o,Xn),dump:async a=>{e==="shadow_database"||!i||await bo({db:i,debug:n,destinationPath:a})},port:o,prismaORMConnectionString:Vn(o,yo),terminalCommand:`PGPASSWORD=${Se.password} PGSSLMODE=${Se.sslMode} psql -h localhost -p ${o} -U ${Se.username} -d ${Se.database}`}}function Vn(e,t){return`${go}:${e}/${Se.database}?${t.toString()}`}async function Yn(e,t){let{PGlite:r}=await import("@electric-sql/pglite");return await r.create({database:Se.database,dataDir:e,debug:t?5:void 0,relaxedDurability:!1,username:Se.username})}async function _o(e,t){let{PGlite:r}=await import("@electric-sql/pglite");return await r.create({database:Se.database,dataDir:"memory://",debug:t?5:void 0,relaxedDurability:!1,username:Se.username})}async function bo(e){let{dataDir:t,db:r,debug:n,destinationPath:i}=e,o=r||await Yn(t,n),{pgDump:c}=await import("@electric-sql/pglite-tools/pg_dump"),a=await c({args:["--schema-only","--no-owner"],fileName:i?(0,Kn.filename)(i):void 0,pg:await o.clone()});return i?(n&&console.debug(`[DB] Dumping database to ${i}`),await qn(a,i)):(n&&console.debug("[DB] Dumping database to memory"),await a.text())}X();var Ua=require("http"),Wa=require("util"),Ja=Pe(ma(),1);mn();vn();async function Va(e,t){let{port:r}=t;if(t.dryRun)return Ga(r,null);let n=await Fh(r,e,t),{promise:i,reject:o,resolve:c}=sr(),{serve:a}=await import("@hono/node-server"),s=a({createServer:Ua.createServer,fetch:n.fetch,overrideGlobalObjects:!1,port:r},c);return s.on("error",l=>{if(typeof l=="object"&&"code"in l&&l.code==="EADDRINUSE")return o(new Ce(r));console.error("[Accelerate]",l)}),await i,Ga(r,s)}function Ga(e,t){return{async close(){t&&await Promise.allSettled([(0,Wa.promisify)(t.close.bind(t))(),pt.stopAll()])},port:e,url:`http://localhost:${e}`}}async function Fh(e,t,r){let{debug:n}=r,[{Hono:i},{accelerateRoute:o},{utilityRoute:c}]=await Promise.all([import("hono/tiny"),Promise.resolve().then(()=>(Ma(),Na)),Promise.resolve().then(()=>(Ha(),Ba))]),a=new i,s=await(0,Ja.getPlatformInfo)();if(n&&console.debug("[Accelerate] platform info: %s",JSON.stringify(s)),n){let{logger:d}=await import("hono/logger");a.use("*",d((...v)=>console.log("[Accelerate]",...v)))}a.use("*",async(d,v)=>(d.set("db",t),d.set("debug",!!n),d.set("platform",s),d.set("port",e),d.set("protocol","http"),d.set("serverState",r),d.set("shadowDBPort",r.shadowDatabasePort),await v()));let l=new i;return l.route("/",o),l.route("/",c),a.route("/",l),a}X();var Qa=require("fs/promises"),et=require("pathe"),ht=require("proper-lockfile"),xn=require("std-env"),te=require("valibot");It();X();var qh=require("timers/promises"),Ka=require("std-env");function Xa(e,t){if(e==null)return!1;try{return Ka.process.kill?.(e,0)??!0}catch(r){return t&&console.error(`Error checking if process with PID ${e} exists:`,r),!1}}var Pn=(0,te.pipe)((0,te.string)(),(0,te.url)()),Ya=(0,te.object)({connectionString:Pn,prismaORMConnectionString:(0,te.optional)(Pn),terminalCommand:(0,te.optional)((0,te.string)())}),za=(0,te.object)({url:Pn}),wn=(0,te.pipe)((0,te.number)(),(0,te.integer)(),(0,te.minValue)(1)),Bh=(0,te.object)({database:Ya,http:za,ppg:za,shadowDatabase:Ya}),Hh=(0,te.object)({databasePort:wn,exports:(0,te.optional)(Bh),name:(0,te.pipe)((0,te.string)(),(0,te.minLength)(1)),pid:(0,te.optional)((0,te.pipe)((0,te.number)(),(0,te.integer)(),(0,te.minValue)(0))),port:wn,shadowDatabasePort:wn,version:(0,te.literal)("1")}),Tn=Symbol("initialize"),En="default",Ne=class{_databasePort;debug;dryRun;name;persistenceMode;pid;_port;_shadowDatabasePort;constructor(t){this._databasePort=t.databasePort??qe,this.debug=t.debug??!1,this.dryRun=t.dryRun??!1,this.name=t.name??En,this.persistenceMode=t.persistenceMode,this.pid=t.pid??xn.process.pid,this._port=t.port??qe,this._shadowDatabasePort=t.shadowDatabasePort??qe}static async createExclusively(t){let r=t?.dryRun!==!0&&t?.persistenceMode!=="stateless"?new Rt(t):new An(t);return await r[Tn](),r}static async fromServerDump(t){let{debug:r,name:n=En}=t??{},i=mt(n),o=Rt.getServerDumpPath(i),c=await Bn(o);if(c==null)return r&&console.debug(`[State] No server dump file found at: ${o}`),null;r&&(console.debug(`[State] server dump file found at "${o}":`),console.debug(c));let{issues:a,output:s,success:l}=(0,te.safeParse)((0,te.pipe)((0,te.string)(),(0,te.parseJson)(),Hh),c);if(!l)throw r&&console.debug(`[State] Invalid server dump file at "${o}":
33
+ ${JSON.stringify(a,null,2)}`),new Error(`Invalid Prisma Dev state for "${n}".`);return new Rt({databasePort:s.databasePort,debug:r,dryRun:!1,name:n,pid:s.pid,port:s.port,serverDump:s,shadowDatabasePort:s.shadowDatabasePort})}static async scan(t){let{debug:r,globs:n}=t??{},i=(0,et.join)(mt(En),"..");r&&console.debug(`[State] scanning for server states in: ${i}`);let o=await Gn(i,n);return r&&console.debug(`[State] found server names: ${JSON.stringify(o)}`),await Promise.all(o.map(c=>Gh(c,t)))}get databasePort(){return this._databasePort}get port(){return this._port}get shadowDatabasePort(){return this._shadowDatabasePort}},An=class extends Ne{constructor(t){super({...t,databasePort:t?.databasePort??nt,persistenceMode:"stateless",port:t?.port??it,shadowDatabasePort:t?.shadowDatabasePort??st})}get databaseDumpPath(){return"<DUMP_PATH>"}get pgliteDataDirPath(){return"memory://"}async[Tn](){}async close(){}async writeServerDump(){}},Rt=class e extends Ne{#n;#e;#t;#s;#a;#i;#r;constructor(t){super({...t,persistenceMode:"stateful"}),this.#i=!1,this.#e=mt(this.name),this.#n=(0,et.join)(this.#e,"db_dump.bak"),this.#t=(0,et.join)(this.#e,".lock"),this.#s=(0,et.join)(this.#e,".pglite"),this.#r=t?.serverDump??null,this.#a=e.getServerDumpPath(this.#e)}static getServerDumpPath(t){return(0,et.join)(t,"server.json")}get databaseDumpPath(){return this.#n}get exports(){return this.#r?.exports}get pgliteDataDirPath(){return this.#s}async[Tn](){await Hn(this.#e),this.debug&&console.debug(`[State] using data directory: ${this.#e}`);try{await(0,ht.lock)(this.#e,{lockfilePath:this.#t}),this.debug&&console.debug(`[State] obtained lock on: ${this.#e}`);let t=await Ne.scan({debug:this.debug,onlyMetadata:!0}),r=await Wn({debug:this.debug,name:this.name,requestedPorts:{databasePort:this.databasePort,port:this.port,shadowDatabasePort:this.shadowDatabasePort},servers:t});this._databasePort=r.databasePort,this._port=r.port,this._shadowDatabasePort=r.shadowDatabasePort,await this.writeServerDump()}catch(t){throw t instanceof Error&&"code"in t&&t.code==="ELOCKED"?new kt(this):t}}async close(){if(!this.#i)try{await(0,ht.unlock)(this.#e,{lockfilePath:this.#t}),this.#i=!0,this.debug&&console.debug(`[State] released lock on: ${this.#e}`)}catch(t){throw this.debug&&console.error(`[State] failed to release lock on: ${this.#e}`,t),t}}async writeServerDump(t){this.#r={name:this.name,version:"1",pid:xn.process.pid,port:this.port,databasePort:this.databasePort,shadowDatabasePort:this.shadowDatabasePort,exports:t},await(0,Qa.writeFile)(this.#a,`${JSON.stringify(this.#r,null,2)}
34
+ `,{encoding:"utf-8"})}};async function Gh(e,t){let{debug:r,onlyMetadata:n}=t||{},i=typeof e=="string"?e:e.name,o=typeof e!="string"?e:void 0,c={databasePort:o?.databasePort??-1,exports:o?.exports,name:i,pid:o?.pid,port:o?.port??-1,shadowDatabasePort:o?.shadowDatabasePort??-1,version:"1"};try{let a=o||await Ne.fromServerDump({debug:r,name:i});if(!a)return r&&console.debug(`[State] no server state found for name: ${i}`),{...c,status:"no_such_server"};c.databasePort=a.databasePort,c.exports=a.exports,c.pid=a.pid,c.port=a.port,c.shadowDatabasePort=a.shadowDatabasePort;let{exports:s,pid:l}=a;if(n)return{...c,status:"unknown"};if(!Xa(l,r))return r&&console.debug(`[State] server state for "${i}" has no running process with PID: ${l}`),{...c,status:"not_running"};let d=mt(i);try{if(!await(0,ht.check)(d,{lockfilePath:(0,et.join)(d,".lock")}))return r&&console.debug(`[State] server state for "${i}" is not locked, indicating it is not running.`),{...c,status:"starting_up"}}catch(E){r&&console.error(`[State] server state for "${i}" failed to check lock:`,E)}if(!s)return{...c,status:"starting_up"};let{http:v}=s,{hc:g}=await import("hono/client"),x=await g(v.url).health.$get();if(!x.ok)return r&&console.debug(`[State] server state for "${i}" is not live: ${JSON.stringify(x)}`),{...c,status:"not_running"};let _=await x.json();return _.name!==e?(r&&console.debug(`[State] server state for "${i}" has mismatched health response: ${JSON.stringify(_)}`),{...c,status:"unknown"}):(r&&console.debug(`[State] server state for "${e}" is live: ${JSON.stringify(_)}`),{...c,status:"running"})}catch(a){return r&&console.error(`[State] failed to get server status for "${i}":`,a),{...c,status:"error"}}}var On=class extends Error{name="ServerStateAlreadyExistsError";constructor(t){super(`A Prisma Dev server with the name "${t}" is already running.`)}},kt=class extends On{#n;name="ServerAlreadyRunningError";constructor(t){super(t.name),this.#n=t}get server(){return Ne.fromServerDump({debug:this.#n.debug,name:this.#n.name})}};async function Za(e){let t=await Ne.createExclusively(e),[r,n]=await Promise.all([yr("database",t),yr("shadow_database",t)]),i=await Va(r,t),o=`prisma+postgres://localhost:${i.port}/?${new URLSearchParams({api_key:Cn({databaseUrl:r.prismaORMConnectionString,name:t.name,shadowDatabaseUrl:n.prismaORMConnectionString})}).toString()}`,c={database:{connectionString:r.connectionString,prismaORMConnectionString:r.prismaORMConnectionString,terminalCommand:r.terminalCommand},http:{url:i.url},ppg:{url:o},shadowDatabase:{connectionString:n.prismaORMConnectionString,prismaORMConnectionString:n.prismaORMConnectionString,terminalCommand:n.terminalCommand}};return await t.writeServerDump(c),{...c,close:()=>a(t,[i,r,n]),name:t.name};async function a(s,l){let v=(await Promise.allSettled(l.map(g=>g.close()))).filter(g=>g.status==="rejected").map(g=>new Error(g.reason));try{await s.close()}catch(g){v.push(g)}if(v.length>0)throw new AggregateError(v,"Failed to close some servers")}}async function Uh(e){return await Za(e)}0&&(module.exports={DEFAULT_DATABASE_PORT,DEFAULT_SERVER_PORT,DEFAULT_SHADOW_DATABASE_PORT,PortNotAvailableError,ServerAlreadyRunningError,startPrismaDevServer,unstable_startServer});
35
+ /*! Bundled license information:
36
+
37
+ @prisma/get-platform/dist/chunk-3UEKS5W6.js:
38
+ (*! Bundled license information:
39
+
40
+ is-extglob/index.js:
41
+ (*!
42
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
43
+ *
44
+ * Copyright (c) 2014-2016, Jon Schlinkert.
45
+ * Licensed under the MIT License.
46
+ *)
47
+
48
+ is-glob/index.js:
49
+ (*!
50
+ * is-glob <https://github.com/jonschlinkert/is-glob>
51
+ *
52
+ * Copyright (c) 2014-2017, Jon Schlinkert.
53
+ * Released under the MIT License.
54
+ *)
55
+
56
+ is-number/index.js:
57
+ (*!
58
+ * is-number <https://github.com/jonschlinkert/is-number>
59
+ *
60
+ * Copyright (c) 2014-present, Jon Schlinkert.
61
+ * Released under the MIT License.
62
+ *)
63
+
64
+ to-regex-range/index.js:
65
+ (*!
66
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
67
+ *
68
+ * Copyright (c) 2015-present, Jon Schlinkert.
69
+ * Released under the MIT License.
70
+ *)
71
+
72
+ fill-range/index.js:
73
+ (*!
74
+ * fill-range <https://github.com/jonschlinkert/fill-range>
75
+ *
76
+ * Copyright (c) 2014-present, Jon Schlinkert.
77
+ * Licensed under the MIT License.
78
+ *)
79
+
80
+ queue-microtask/index.js:
81
+ (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
82
+
83
+ run-parallel/index.js:
84
+ (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
85
+ *)
86
+ */