import{g as y}from"./_commonjsHelpers-CLLqo0NO.mjs";import g from"path";import h from"fs";import $ from"util";import{e as b}from"./register-proxy-C4V2Z2tW.mjs";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"4.2.860"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4ae6c007-03f0-4353-8579-c844a2a809f5",e._sentryDebugIdIdentifier="sentry-dbid-4ae6c007-03f0-4353-8579-c844a2a809f5")})()}catch{}var a={exports:{}},d={exports:{}};const u=h,{promisify:w}=$,I=w(u.access);d.exports=async e=>{try{return await I(e),!0}catch{return!1}};d.exports.sync=e=>{try{return u.accessSync(e),!0}catch{return!1}};var E=d.exports;const i=g,f=E,_=b;class l extends Error{constructor(t,n){super("Max tries reached."),this.originalPath=t,this.lastTriedPath=n}}const p=(e,t)=>{const n=e.match(/^(?<filename>.*)\((?<index>\d+)\)$/);let{filename:s,index:o}=n?n.groups:{filename:e,index:0};return s=s.trim(),[`${s}${t}`,`${s} (${++o})${t}`]},T=e=>{const t=_(e);return(n,s)=>{const o=new RegExp(`^(?<filename>.*)${t}(?<index>\\d+)$`).exec(n);let{filename:r,index:x}=o?o.groups:{filename:n,index:0};return[`${r}${s}`,`${r.trim()}${e}${++x}${s}`]}},c=(e,t)=>{const n=i.extname(e),s=i.dirname(e),[o,r]=t(i.basename(e,n),n);return[i.join(s,o),i.join(s,r)]},m=async(e,{incrementer:t=p,maxTries:n=Number.POSITIVE_INFINITY}={})=>{let s=0,[o]=c(e,t),r=e;for(;;){if(!await f(r))return r;if(++s>n)throw new l(o,r);[o,r]=c(r,t)}};a.exports=m;a.exports.default=m;a.exports.sync=(e,{incrementer:t=p,maxTries:n=Number.POSITIVE_INFINITY}={})=>{let s=0,[o]=c(e,t),r=e;for(;;){if(!f.sync(r))return r;if(++s>n)throw new l(o,r);[o,r]=c(r,t)}};a.exports.MaxTryError=l;a.exports.separatorIncrementer=T;var S=a.exports;const v=y(S),R=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"}));export{R as i};
//# sourceMappingURL=index-CtJ962V1.mjs.map
