@tsmodule/tsmodule 40.17.0 → 40.19.0

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.
@@ -1,26 +1,4 @@
1
1
 
2
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
2
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
3
3
 
4
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
5
- /**
6
- * @license *
7
- * Copyright 2022 C. Lewis
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy
10
- of this software and associated documentation files (the "Software"), to deal
11
- in the Software without restriction, including without limitation the rights
12
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- copies of the Software, and to permit persons to whom the Software is
14
- furnished to do so, subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
- SOFTWARE.
26
- */
4
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
@@ -1,3 +1,3 @@
1
1
 
2
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
2
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
3
3
 
@@ -1,5 +1,5 @@
1
1
 
2
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
2
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
3
3
 
4
4
  var bA=Object.create;var $o=Object.defineProperty;var vA=Object.getOwnPropertyDescriptor;var xA=Object.getOwnPropertyNames;var BA=Object.getPrototypeOf,wA=Object.prototype.hasOwnProperty;var S=(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 new Error('Dynamic require of "'+e+'" is not supported')});var d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var SA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xA(t))!wA.call(e,i)&&i!==r&&$o(e,i,{get:()=>t[i],enumerable:!(n=vA(t,i))||n.enumerable});return e};var Ne=(e,t,r)=>(r=e!=null?bA(BA(e)):{},SA(t||!e||!e.__esModule?$o(r,"default",{value:e,enumerable:!0}):r,e));var ia=d(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.splitWhen=mt.flatten=void 0;function jA(e){return e.reduce((t,r)=>[].concat(t,r),[])}mt.flatten=jA;function HA(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}mt.splitWhen=HA});var sa=d(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.isEnoentCodeError=void 0;function KA(e){return e.code==="ENOENT"}wr.isEnoentCodeError=KA});var oa=d(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.createDirentFromStats=void 0;var Jn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function $A(e,t){return new Jn(e,t)}Sr.createDirentFromStats=$A});var aa=d(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.removeLeadingDotSegment=Qe.escape=Qe.makeAbsolute=Qe.unixify=void 0;var UA=S("path"),GA=2,JA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function YA(e){return e.replace(/\\/g,"/")}Qe.unixify=YA;function WA(e,t){return UA.resolve(e,t)}Qe.makeAbsolute=WA;function VA(e){return e.replace(JA,"\\$2")}Qe.escape=VA;function XA(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(GA)}return e}Qe.removeLeadingDotSegment=XA});var ua=d((Wm,la)=>{la.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Aa=d((Vm,fa)=>{var ZA=ua(),ca={"{":"}","(":")","[":"]"},zA=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var l=ca[a];if(l){var c=e.indexOf(l,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},ep=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=ca[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};fa.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(ZA(t))return!0;var n=zA;return r&&r.strict===!1&&(n=ep),n(t)}});var ha=d((Xm,pa)=>{"use strict";var tp=Aa(),rp=S("path").posix.dirname,np=S("os").platform()==="win32",Yn="/",ip=/\\/g,sp=/[\{\[].*[\}\]]$/,op=/(^|[^\\])([\{\[]|\([^\)]+$)/,ap=/\\([\!\*\?\|\[\]\(\)\{\}])/g;pa.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&np&&t.indexOf(Yn)<0&&(t=t.replace(ip,Yn)),sp.test(t)&&(t+=Yn),t+="a";do t=rp(t);while(tp(t)||op.test(t));return t.replace(ap,"$1")}});var Qr=d(ge=>{"use strict";ge.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ge.find=(e,t)=>e.nodes.find(r=>r.type===t);ge.exceedsLimit=(e,t,r=1,n)=>n===!1||!ge.isInteger(e)||!ge.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;ge.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};ge.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;ge.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;ge.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ge.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);ge.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var Rr=d((zm,ga)=>{"use strict";var da=Qr();ga.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&da.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&da.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var Ea=d((ey,_a)=>{"use strict";_a.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Sa=d((ty,wa)=>{"use strict";var ma=Ea(),rt=(e,t,r)=>{if(ma(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ma(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),l=e+":"+t+"="+i+s+o+a;if(rt.cache.hasOwnProperty(l))return rt.cache[l].result;let c=Math.min(e,t),u=Math.max(e,t);if(Math.abs(c-u)===1){let E=e+"|"+t;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let A=Ba(e)||Ba(t),f={min:e,max:t,a:c,b:u},C=[],_=[];if(A&&(f.isPadded=A,f.maxLen=String(f.max).length),c<0){let E=u<0?Math.abs(u):1;_=ya(E,Math.abs(c),f,n),c=f.a=0}return u>=0&&(C=ya(c,u,f,n)),f.negatives=_,f.positives=C,f.result=lp(_,C,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&C.length+_.length>1&&(f.result=`(?:${f.result})`),rt.cache[l]=f,f.result};function lp(e,t,r){let n=Wn(e,t,"-",!1,r)||[],i=Wn(t,e,"",!1,r)||[],s=Wn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function up(e,t){let r=1,n=1,i=ba(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=ba(e,r);for(i=va(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=va(t+1,n)-1;return s=[...s],s.sort(Ap),s}function cp(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=fp(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,c]=n[a];l===c?s+=l:l!=="0"||c!=="9"?s+=pp(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function ya(e,t,r,n){let i=up(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let c=i[l],u=cp(String(o),String(c),n),A="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+xa(a.count),o=c+1;continue}r.isPadded&&(A=hp(c,r,n)),u.string=A+u.pattern+xa(u.count),s.push(u),o=c+1,a=u}return s}function Wn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!Ca(t,"string",a)&&s.push(r+a),n&&Ca(t,"string",a)&&s.push(r+a)}return s}function fp(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Ap(e,t){return e>t?1:t>e?-1:0}function Ca(e,t,r){return e.some(n=>n[t]===r)}function ba(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function va(e,t){return e-e%Math.pow(10,t)}function xa(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function pp(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Ba(e){return/^-?(0+)\d/.test(e)}function hp(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}rt.cache={};rt.clearCache=()=>rt.cache={};wa.exports=rt});var Zn=d((ry,La)=>{"use strict";var dp=S("util"),Ia=Sa(),Qa=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),gp=e=>t=>e===!0?Number(t):String(t),Vn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Jt=e=>Number.isInteger(+e),Xn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},_p=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Ep=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Ra=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},mp=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},Ta=(e,t,r,n)=>{if(r)return Ia(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Da=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Ia(e,t,r)},ka=(...e)=>new RangeError("Invalid range arguments: "+dp.inspect(...e)),Oa=(e,t,r)=>{if(r.strictRanges===!0)throw ka([e,t]);return[]},yp=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Cp=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw ka([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),l=String(t),c=String(r);r=Math.max(Math.abs(r),1);let u=Xn(a)||Xn(l)||Xn(c),A=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&_p(e,t,n)===!1,C=n.transform||gp(f);if(n.toRegex&&r===1)return Ta(Ra(e,A),Ra(t,A),!0,n);let _={negatives:[],positives:[]},E=L=>_[L<0?"negatives":"positives"].push(Math.abs(L)),x=[],v=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):x.push(Ep(C(i,v),A,f)),i=o?i-r:i+r,v++;return n.toRegex===!0?r>1?mp(_,n):Da(x,null,{wrap:!1,...n}):x},bp=(e,t,r=1,n={})=>{if(!Jt(e)&&e.length>1||!Jt(t)&&t.length>1)return Oa(e,t,n);let i=n.transform||(f=>String.fromCharCode(f)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return Ta(l,c,!1,n);let u=[],A=0;for(;a?s>=o:s<=o;)u.push(i(s,A)),s=a?s-r:s+r,A++;return n.toRegex===!0?Da(u,null,{wrap:!1,options:n}):u},Ir=(e,t,r,n={})=>{if(t==null&&Vn(e))return[e];if(!Vn(e)||!Vn(t))return Oa(e,t,n);if(typeof r=="function")return Ir(e,t,1,{transform:r});if(Qa(r))return Ir(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Jt(r)?Jt(e)&&Jt(t)?Cp(e,t,r,i):bp(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Qa(r)?yp(r,i):Ir(e,t,1,r)};La.exports=Ir});var Ma=d((ny,Na)=>{"use strict";var vp=Zn(),Pa=Qr(),xp=(e,t={})=>{let r=(n,i={})=>{let s=Pa.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,l=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=Pa.reduce(n.nodes),A=vp(...u,{...t,wrap:!1,toRegex:!0});if(A.length!==0)return u.length>1&&A.length>1?`(${A})`:A}if(n.nodes)for(let u of n.nodes)c+=r(u,n);return c};return r(e)};Na.exports=xp});var ja=d((iy,qa)=>{"use strict";var Bp=Zn(),Fa=Rr(),yt=Qr(),nt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?yt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(nt(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?nt(i,s,r):i+s);return yt.flatten(n)},wp=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(nt(a.pop(),Fa(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(nt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let A=yt.reduce(i.nodes);if(yt.exceedsLimit(...A,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Bp(...A,t);f.length===0&&(f=Fa(i,t)),a.push(nt(a.pop(),f)),i.nodes=[];return}let l=yt.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let A=0;A<i.nodes.length;A++){let f=i.nodes[A];if(f.type==="comma"&&i.type==="brace"){A===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(nt(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(nt(c.pop(),f.value));continue}f.nodes&&n(f,i)}return c};return yt.flatten(n(e))};qa.exports=wp});var Ka=d((sy,Ha)=>{"use strict";Ha.exports={MAX_LENGTH:1024*64,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:`
5
5
  `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Ya=d((oy,Ja)=>{"use strict";var Sp=Rr(),{MAX_LENGTH:$a,CHAR_BACKSLASH:zn,CHAR_BACKTICK:Qp,CHAR_COMMA:Rp,CHAR_DOT:Ip,CHAR_LEFT_PARENTHESES:Tp,CHAR_RIGHT_PARENTHESES:Dp,CHAR_LEFT_CURLY_BRACE:kp,CHAR_RIGHT_CURLY_BRACE:Op,CHAR_LEFT_SQUARE_BRACKET:Ua,CHAR_RIGHT_SQUARE_BRACKET:Ga,CHAR_DOUBLE_QUOTE:Lp,CHAR_SINGLE_QUOTE:Pp,CHAR_NO_BREAK_SPACE:Np,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Mp}=Ka(),Fp=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min($a,r.maxLength):$a;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,l=0,c=e.length,u=0,A=0,f,C={},_=()=>e[u++],E=x=>{if(x.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&x.type==="text"){a.value+=x.value;return}return o.nodes.push(x),x.parent=o,x.prev=a,a=x,x};for(E({type:"bos"});u<c;)if(o=s[s.length-1],f=_(),!(f===Mp||f===Np)){if(f===zn){E({type:"text",value:(t.keepEscaping?f:"")+_()});continue}if(f===Ga){E({type:"text",value:"\\"+f});continue}if(f===Ua){l++;let x=!0,v;for(;u<c&&(v=_());){if(f+=v,v===Ua){l++;continue}if(v===zn){f+=_();continue}if(v===Ga&&(l--,l===0))break}E({type:"text",value:f});continue}if(f===Tp){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:f});continue}if(f===Dp){if(o.type!=="paren"){E({type:"text",value:f});continue}o=s.pop(),E({type:"text",value:f}),o=s[s.length-1];continue}if(f===Lp||f===Pp||f===Qp){let x=f,v;for(t.keepQuotes!==!0&&(f="");u<c&&(v=_());){if(v===zn){f+=v+_();continue}if(v===x){t.keepQuotes===!0&&(f+=v);break}f+=v}E({type:"text",value:f});continue}if(f===kp){A++;let v={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:A,commas:0,ranges:0,nodes:[]};o=E(v),s.push(o),E({type:"open",value:f});continue}if(f===Op){if(o.type!=="brace"){E({type:"text",value:f});continue}let x="close";o=s.pop(),o.close=!0,E({type:x,value:f}),A--,o=s[s.length-1];continue}if(f===Rp&&A>0){if(o.ranges>0){o.ranges=0;let x=o.nodes.shift();o.nodes=[x,{type:"text",value:Sp(o)}]}E({type:"comma",value:f}),o.commas++;continue}if(f===Ip&&A>0&&o.commas===0){let x=o.nodes;if(A===0||x.length===0){E({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){x.pop();let v=x[x.length-1];v.value+=a.value+f,a=v,o.ranges--;continue}E({type:"dot",value:f});continue}E({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(L=>{L.nodes||(L.type==="open"&&(L.isOpen=!0),L.type==="close"&&(L.isClose=!0),L.nodes||(L.type="text"),L.invalid=!0)});let x=s[s.length-1],v=x.nodes.indexOf(o);x.nodes.splice(v,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};Ja.exports=Fp});var Xa=d((ay,Va)=>{"use strict";var Wa=Rr(),qp=Ma(),jp=ja(),Hp=Ya(),fe=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=fe.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(fe.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};fe.parse=(e,t={})=>Hp(e,t);fe.stringify=(e,t={})=>Wa(typeof e=="string"?fe.parse(e,t):e,t);fe.compile=(e,t={})=>(typeof e=="string"&&(e=fe.parse(e,t)),qp(e,t));fe.expand=(e,t={})=>{typeof e=="string"&&(e=fe.parse(e,t));let r=jp(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};fe.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?fe.compile(e,t):fe.expand(e,t);Va.exports=fe});var Yt=d((ly,rl)=>{"use strict";var Kp=S("path"),Re="\\\\/",Za=`[^${Re}]`,Me="\\.",$p="\\+",Up="\\?",Tr="\\/",Gp="(?=.)",za="[^/]",ei=`(?:${Tr}|$)`,el=`(?:^|${Tr})`,ti=`${Me}{1,2}${ei}`,Jp=`(?!${Me})`,Yp=`(?!${el}${ti})`,Wp=`(?!${Me}{0,1}${ei})`,Vp=`(?!${ti})`,Xp=`[^.${Tr}]`,Zp=`${za}*?`,tl={DOT_LITERAL:Me,PLUS_LITERAL:$p,QMARK_LITERAL:Up,SLASH_LITERAL:Tr,ONE_CHAR:Gp,QMARK:za,END_ANCHOR:ei,DOTS_SLASH:ti,NO_DOT:Jp,NO_DOTS:Yp,NO_DOT_SLASH:Wp,NO_DOTS_SLASH:Vp,QMARK_NO_DOT:Xp,STAR:Zp,START_ANCHOR:el},zp={...tl,SLASH_LITERAL:`[${Re}]`,QMARK:Za,STAR:`${Za}*?`,DOTS_SLASH:`${Me}{1,2}(?:[${Re}]|$)`,NO_DOT:`(?!${Me})`,NO_DOTS:`(?!(?:^|[${Re}])${Me}{1,2}(?:[${Re}]|$))`,NO_DOT_SLASH:`(?!${Me}{0,1}(?:[${Re}]|$))`,NO_DOTS_SLASH:`(?!${Me}{1,2}(?:[${Re}]|$))`,QMARK_NO_DOT:`[^.${Re}]`,START_ANCHOR:`(?:^|[${Re}])`,END_ANCHOR:`(?:[${Re}]|$)`},eh={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"};rl.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:eh,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:Kp.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?zp:tl}}});var Wt=d(le=>{"use strict";var th=S("path"),rh=process.platform==="win32",{REGEX_BACKSLASH:nh,REGEX_REMOVE_BACKSLASH:ih,REGEX_SPECIAL_CHARS:sh,REGEX_SPECIAL_CHARS_GLOBAL:oh}=Yt();le.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);le.hasRegexChars=e=>sh.test(e);le.isRegexChar=e=>e.length===1&&le.hasRegexChars(e);le.escapeRegex=e=>e.replace(oh,"\\$1");le.toPosixSlashes=e=>e.replace(nh,"/");le.removeBackslashes=e=>e.replace(ih,t=>t==="\\"?"":t);le.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};le.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:rh===!0||th.sep==="\\";le.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?le.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};le.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};le.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var cl=d((cy,ul)=>{"use strict";var nl=Wt(),{CHAR_ASTERISK:ri,CHAR_AT:ah,CHAR_BACKWARD_SLASH:Vt,CHAR_COMMA:lh,CHAR_DOT:ni,CHAR_EXCLAMATION_MARK:ii,CHAR_FORWARD_SLASH:ll,CHAR_LEFT_CURLY_BRACE:si,CHAR_LEFT_PARENTHESES:oi,CHAR_LEFT_SQUARE_BRACKET:uh,CHAR_PLUS:ch,CHAR_QUESTION_MARK:il,CHAR_RIGHT_CURLY_BRACE:fh,CHAR_RIGHT_PARENTHESES:sl,CHAR_RIGHT_SQUARE_BRACKET:Ah}=Yt(),ol=e=>e===ll||e===Vt,al=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},ph=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=e,c=-1,u=0,A=0,f=!1,C=!1,_=!1,E=!1,x=!1,v=!1,L=!1,q=!1,X=!1,B=!1,F=0,R,w,N={value:"",depth:0,isGlob:!1},ee=()=>c>=n,g=()=>l.charCodeAt(c+1),b=()=>(R=w,l.charCodeAt(++c));for(;c<n;){w=b();let oe;if(w===Vt){L=N.backslashes=!0,w=b(),w===si&&(v=!0);continue}if(v===!0||w===si){for(F++;ee()!==!0&&(w=b());){if(w===Vt){L=N.backslashes=!0,b();continue}if(w===si){F++;continue}if(v!==!0&&w===ni&&(w=b())===ni){if(f=N.isBrace=!0,_=N.isGlob=!0,B=!0,i===!0)continue;break}if(v!==!0&&w===lh){if(f=N.isBrace=!0,_=N.isGlob=!0,B=!0,i===!0)continue;break}if(w===fh&&(F--,F===0)){v=!1,f=N.isBrace=!0,B=!0;break}}if(i===!0)continue;break}if(w===ll){if(s.push(c),o.push(N),N={value:"",depth:0,isGlob:!1},B===!0)continue;if(R===ni&&c===u+1){u+=2;continue}A=c+1;continue}if(r.noext!==!0&&(w===ch||w===ah||w===ri||w===il||w===ii)===!0&&g()===oi){if(_=N.isGlob=!0,E=N.isExtglob=!0,B=!0,w===ii&&c===u&&(X=!0),i===!0){for(;ee()!==!0&&(w=b());){if(w===Vt){L=N.backslashes=!0,w=b();continue}if(w===sl){_=N.isGlob=!0,B=!0;break}}continue}break}if(w===ri){if(R===ri&&(x=N.isGlobstar=!0),_=N.isGlob=!0,B=!0,i===!0)continue;break}if(w===il){if(_=N.isGlob=!0,B=!0,i===!0)continue;break}if(w===uh){for(;ee()!==!0&&(oe=b());){if(oe===Vt){L=N.backslashes=!0,b();continue}if(oe===Ah){C=N.isBracket=!0,_=N.isGlob=!0,B=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&w===ii&&c===u){q=N.negated=!0,u++;continue}if(r.noparen!==!0&&w===oi){if(_=N.isGlob=!0,i===!0){for(;ee()!==!0&&(w=b());){if(w===oi){L=N.backslashes=!0,w=b();continue}if(w===sl){B=!0;break}}continue}break}if(_===!0){if(B=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,_=!1);let k=l,ue="",p="";u>0&&(ue=l.slice(0,u),l=l.slice(u),A-=u),k&&_===!0&&A>0?(k=l.slice(0,A),p=l.slice(A)):_===!0?(k="",p=l):k=l,k&&k!==""&&k!=="/"&&k!==l&&ol(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),r.unescape===!0&&(p&&(p=nl.removeBackslashes(p)),k&&L===!0&&(k=nl.removeBackslashes(k)));let h={prefix:ue,input:e,start:u,base:k,glob:p,isBrace:f,isBracket:C,isGlob:_,isExtglob:E,isGlobstar:x,negated:q,negatedExtglob:X};if(r.tokens===!0&&(h.maxDepth=0,ol(w)||o.push(N),h.tokens=o),r.parts===!0||r.tokens===!0){let oe;for(let M=0;M<s.length;M++){let we=oe?oe+1:u,Se=s[M],ce=e.slice(we,Se);r.tokens&&(M===0&&u!==0?(o[M].isPrefix=!0,o[M].value=ue):o[M].value=ce,al(o[M]),h.maxDepth+=o[M].depth),(M!==0||ce!=="")&&a.push(ce),oe=Se}if(oe&&oe+1<e.length){let M=e.slice(oe+1);a.push(M),r.tokens&&(o[o.length-1].value=M,al(o[o.length-1]),h.maxDepth+=o[o.length-1].depth)}h.slashes=s,h.parts=a}return h};ul.exports=ph});var pl=d((fy,Al)=>{"use strict";var Dr=Yt(),Ae=Wt(),{MAX_LENGTH:kr,POSIX_REGEX_SOURCE:hh,REGEX_NON_SPECIAL_CHARS:dh,REGEX_SPECIAL_CHARS_BACKREF:gh,REPLACEMENTS:fl}=Dr,_h=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>Ae.escapeRegex(i)).join("..")}return r},Ct=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ai=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=fl[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(kr,r.maxLength):kr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=Ae.isWindows(t),c=Dr.globChars(l),u=Dr.extglobChars(c),{DOT_LITERAL:A,PLUS_LITERAL:f,SLASH_LITERAL:C,ONE_CHAR:_,DOTS_SLASH:E,NO_DOT:x,NO_DOT_SLASH:v,NO_DOTS_SLASH:L,QMARK:q,QMARK_NO_DOT:X,STAR:B,START_ANCHOR:F}=c,R=y=>`(${a}(?:(?!${F}${y.dot?E:A}).)*?)`,w=r.dot?"":x,N=r.dot?q:X,ee=r.bash===!0?R(r):B;r.capture&&(ee=`(${ee})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let g={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=Ae.removePrefix(e,g),i=e.length;let b=[],k=[],ue=[],p=s,h,oe=()=>g.index===i-1,M=g.peek=(y=1)=>e[g.index+y],we=g.advance=()=>e[++g.index]||"",Se=()=>e.slice(g.index+1),ce=(y="",$=0)=>{g.consumed+=y,g.index+=$},yr=y=>{g.output+=y.output!=null?y.output:y.value,ce(y.value)},yA=()=>{let y=1;for(;M()==="!"&&(M(2)!=="("||M(3)==="?");)we(),g.start++,y++;return y%2===0?!1:(g.negated=!0,g.start++,!0)},Cr=y=>{g[y]++,ue.push(y)},tt=y=>{g[y]--,ue.pop()},O=y=>{if(p.type==="globstar"){let $=g.braces>0&&(y.type==="comma"||y.type==="brace"),m=y.extglob===!0||b.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!$&&!m&&(g.output=g.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=ee,g.output+=p.output)}if(b.length&&y.type!=="paren"&&(b[b.length-1].inner+=y.value),(y.value||y.output)&&yr(y),p&&p.type==="text"&&y.type==="text"){p.value+=y.value,p.output=(p.output||"")+y.value;return}y.prev=p,o.push(y),p=y},br=(y,$)=>{let m={...u[$],conditions:1,inner:""};m.prev=p,m.parens=g.parens,m.output=g.output;let T=(r.capture?"(":"")+m.open;Cr("parens"),O({type:y,value:$,output:g.output?"":_}),O({type:"paren",extglob:!0,value:we(),output:T}),b.push(m)},CA=y=>{let $=y.close+(r.capture?")":""),m;if(y.type==="negate"){let T=ee;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(T=R(r)),(T!==ee||oe()||/^\)+$/.test(Se()))&&($=y.close=`)$))${T}`),y.inner.includes("*")&&(m=Se())&&/^\.[^\\/.]+$/.test(m)){let Y=ai(m,{...t,fastpaths:!1}).output;$=y.close=`)${Y})${T})`}y.prev.type==="bos"&&(g.negatedExtglob=!0)}O({type:"paren",extglob:!0,value:h,output:$}),tt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let y=!1,$=e.replace(gh,(m,T,Y,ae,te,qn)=>ae==="\\"?(y=!0,m):ae==="?"?T?T+ae+(te?q.repeat(te.length):""):qn===0?N+(te?q.repeat(te.length):""):q.repeat(Y.length):ae==="."?A.repeat(Y.length):ae==="*"?T?T+ae+(te?ee:""):ee:T?m:`\\${m}`);return y===!0&&(r.unescape===!0?$=$.replace(/\\/g,""):$=$.replace(/\\+/g,m=>m.length%2===0?"\\\\":m?"\\":"")),$===e&&r.contains===!0?(g.output=e,g):(g.output=Ae.wrapOutput($,g,t),g)}for(;!oe();){if(h=we(),h==="\0")continue;if(h==="\\"){let m=M();if(m==="/"&&r.bash!==!0||m==="."||m===";")continue;if(!m){h+="\\",O({type:"text",value:h});continue}let T=/^\\+/.exec(Se()),Y=0;if(T&&T[0].length>2&&(Y=T[0].length,g.index+=Y,Y%2!==0&&(h+="\\")),r.unescape===!0?h=we():h+=we(),g.brackets===0){O({type:"text",value:h});continue}}if(g.brackets>0&&(h!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&h===":"){let m=p.value.slice(1);if(m.includes("[")&&(p.posix=!0,m.includes(":"))){let T=p.value.lastIndexOf("["),Y=p.value.slice(0,T),ae=p.value.slice(T+2),te=hh[ae];if(te){p.value=Y+te,g.backtrack=!0,we(),!s.output&&o.indexOf(p)===1&&(s.output=_);continue}}}(h==="["&&M()!==":"||h==="-"&&M()==="]")&&(h=`\\${h}`),h==="]"&&(p.value==="["||p.value==="[^")&&(h=`\\${h}`),r.posix===!0&&h==="!"&&p.value==="["&&(h="^"),p.value+=h,yr({value:h});continue}if(g.quotes===1&&h!=='"'){h=Ae.escapeRegex(h),p.value+=h,yr({value:h});continue}if(h==='"'){g.quotes=g.quotes===1?0:1,r.keepQuotes===!0&&O({type:"text",value:h});continue}if(h==="("){Cr("parens"),O({type:"paren",value:h});continue}if(h===")"){if(g.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Ct("opening","("));let m=b[b.length-1];if(m&&g.parens===m.parens+1){CA(b.pop());continue}O({type:"paren",value:h,output:g.parens?")":"\\)"}),tt("parens");continue}if(h==="["){if(r.nobracket===!0||!Se().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Ct("closing","]"));h=`\\${h}`}else Cr("brackets");O({type:"bracket",value:h});continue}if(h==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){O({type:"text",value:h,output:`\\${h}`});continue}if(g.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Ct("opening","["));O({type:"text",value:h,output:`\\${h}`});continue}tt("brackets");let m=p.value.slice(1);if(p.posix!==!0&&m[0]==="^"&&!m.includes("/")&&(h=`/${h}`),p.value+=h,yr({value:h}),r.literalBrackets===!1||Ae.hasRegexChars(m))continue;let T=Ae.escapeRegex(p.value);if(g.output=g.output.slice(0,-p.value.length),r.literalBrackets===!0){g.output+=T,p.value=T;continue}p.value=`(${a}${T}|${p.value})`,g.output+=p.value;continue}if(h==="{"&&r.nobrace!==!0){Cr("braces");let m={type:"brace",value:h,output:"(",outputIndex:g.output.length,tokensIndex:g.tokens.length};k.push(m),O(m);continue}if(h==="}"){let m=k[k.length-1];if(r.nobrace===!0||!m){O({type:"text",value:h,output:h});continue}let T=")";if(m.dots===!0){let Y=o.slice(),ae=[];for(let te=Y.length-1;te>=0&&(o.pop(),Y[te].type!=="brace");te--)Y[te].type!=="dots"&&ae.unshift(Y[te].value);T=_h(ae,r),g.backtrack=!0}if(m.comma!==!0&&m.dots!==!0){let Y=g.output.slice(0,m.outputIndex),ae=g.tokens.slice(m.tokensIndex);m.value=m.output="\\{",h=T="\\}",g.output=Y;for(let te of ae)g.output+=te.output||te.value}O({type:"brace",value:h,output:T}),tt("braces"),k.pop();continue}if(h==="|"){b.length>0&&b[b.length-1].conditions++,O({type:"text",value:h});continue}if(h===","){let m=h,T=k[k.length-1];T&&ue[ue.length-1]==="braces"&&(T.comma=!0,m="|"),O({type:"comma",value:h,output:m});continue}if(h==="/"){if(p.type==="dot"&&g.index===g.start+1){g.start=g.index+1,g.consumed="",g.output="",o.pop(),p=s;continue}O({type:"slash",value:h,output:C});continue}if(h==="."){if(g.braces>0&&p.type==="dot"){p.value==="."&&(p.output=A);let m=k[k.length-1];p.type="dots",p.output+=h,p.value+=h,m.dots=!0;continue}if(g.braces+g.parens===0&&p.type!=="bos"&&p.type!=="slash"){O({type:"text",value:h,output:A});continue}O({type:"dot",value:h,output:A});continue}if(h==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&M()==="("&&M(2)!=="?"){br("qmark",h);continue}if(p&&p.type==="paren"){let T=M(),Y=h;if(T==="<"&&!Ae.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(T)||T==="<"&&!/<([!=]|\w+>)/.test(Se()))&&(Y=`\\${h}`),O({type:"text",value:h,output:Y});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){O({type:"qmark",value:h,output:X});continue}O({type:"qmark",value:h,output:q});continue}if(h==="!"){if(r.noextglob!==!0&&M()==="("&&(M(2)!=="?"||!/[!=<:]/.test(M(3)))){br("negate",h);continue}if(r.nonegate!==!0&&g.index===0){yA();continue}}if(h==="+"){if(r.noextglob!==!0&&M()==="("&&M(2)!=="?"){br("plus",h);continue}if(p&&p.value==="("||r.regex===!1){O({type:"plus",value:h,output:f});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||g.parens>0){O({type:"plus",value:h});continue}O({type:"plus",value:f});continue}if(h==="@"){if(r.noextglob!==!0&&M()==="("&&M(2)!=="?"){O({type:"at",extglob:!0,value:h,output:""});continue}O({type:"text",value:h});continue}if(h!=="*"){(h==="$"||h==="^")&&(h=`\\${h}`);let m=dh.exec(Se());m&&(h+=m[0],g.index+=m[0].length),O({type:"text",value:h});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=h,p.output=ee,g.backtrack=!0,g.globstar=!0,ce(h);continue}let y=Se();if(r.noextglob!==!0&&/^\([^?]/.test(y)){br("star",h);continue}if(p.type==="star"){if(r.noglobstar===!0){ce(h);continue}let m=p.prev,T=m.prev,Y=m.type==="slash"||m.type==="bos",ae=T&&(T.type==="star"||T.type==="globstar");if(r.bash===!0&&(!Y||y[0]&&y[0]!=="/")){O({type:"star",value:h,output:""});continue}let te=g.braces>0&&(m.type==="comma"||m.type==="brace"),qn=b.length&&(m.type==="pipe"||m.type==="paren");if(!Y&&m.type!=="paren"&&!te&&!qn){O({type:"star",value:h,output:""});continue}for(;y.slice(0,3)==="/**";){let vr=e[g.index+4];if(vr&&vr!=="/")break;y=y.slice(3),ce("/**",3)}if(m.type==="bos"&&oe()){p.type="globstar",p.value+=h,p.output=R(r),g.output=p.output,g.globstar=!0,ce(h);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&!ae&&oe()){g.output=g.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=R(r)+(r.strictSlashes?")":"|$)"),p.value+=h,g.globstar=!0,g.output+=m.output+p.output,ce(h);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&y[0]==="/"){let vr=y[1]!==void 0?"|$":"";g.output=g.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=`${R(r)}${C}|${C}${vr})`,p.value+=h,g.output+=m.output+p.output,g.globstar=!0,ce(h+we()),O({type:"slash",value:"/",output:""});continue}if(m.type==="bos"&&y[0]==="/"){p.type="globstar",p.value+=h,p.output=`(?:^|${C}|${R(r)}${C})`,g.output=p.output,g.globstar=!0,ce(h+we()),O({type:"slash",value:"/",output:""});continue}g.output=g.output.slice(0,-p.output.length),p.type="globstar",p.output=R(r),p.value+=h,g.output+=p.output,g.globstar=!0,ce(h);continue}let $={type:"star",value:h,output:ee};if(r.bash===!0){$.output=".*?",(p.type==="bos"||p.type==="slash")&&($.output=w+$.output),O($);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){$.output=h,O($);continue}(g.index===g.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(g.output+=v,p.output+=v):r.dot===!0?(g.output+=L,p.output+=L):(g.output+=w,p.output+=w),M()!=="*"&&(g.output+=_,p.output+=_)),O($)}for(;g.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ct("closing","]"));g.output=Ae.escapeLast(g.output,"["),tt("brackets")}for(;g.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ct("closing",")"));g.output=Ae.escapeLast(g.output,"("),tt("parens")}for(;g.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ct("closing","}"));g.output=Ae.escapeLast(g.output,"{"),tt("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&O({type:"maybe_slash",value:"",output:`${C}?`}),g.backtrack===!0){g.output="";for(let y of g.tokens)g.output+=y.output!=null?y.output:y.value,y.suffix&&(g.output+=y.suffix)}return g};ai.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(kr,r.maxLength):kr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=fl[e]||e;let s=Ae.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:A,NO_DOTS_SLASH:f,STAR:C,START_ANCHOR:_}=Dr.globChars(s),E=r.dot?A:u,x=r.dot?f:u,v=r.capture?"":"?:",L={negated:!1,prefix:""},q=r.bash===!0?".*?":C;r.capture&&(q=`(${q})`);let X=w=>w.noglobstar===!0?q:`(${v}(?:(?!${_}${w.dot?c:o}).)*?)`,B=w=>{switch(w){case"*":return`${E}${l}${q}`;case".*":return`${o}${l}${q}`;case"*.*":return`${E}${q}${o}${l}${q}`;case"*/*":return`${E}${q}${a}${l}${x}${q}`;case"**":return E+X(r);case"**/*":return`(?:${E}${X(r)}${a})?${x}${l}${q}`;case"**/*.*":return`(?:${E}${X(r)}${a})?${x}${q}${o}${l}${q}`;case"**/.*":return`(?:${E}${X(r)}${a})?${o}${l}${q}`;default:{let N=/^(.*?)\.(\w+)$/.exec(w);if(!N)return;let ee=B(N[1]);return ee?ee+o+N[2]:void 0}}},F=Ae.removePrefix(e,L),R=B(F);return R&&r.strictSlashes!==!0&&(R+=`${a}?`),R};Al.exports=ai});var dl=d((Ay,hl)=>{"use strict";var Eh=S("path"),mh=cl(),li=pl(),ui=Wt(),yh=Yt(),Ch=e=>e&&typeof e=="object"&&!Array.isArray(e),V=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(f=>V(f,t,r));return f=>{for(let C of u){let _=C(f);if(_)return _}return!1}}let n=Ch(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=ui.isWindows(t),o=n?V.compileRe(e,t):V.makeRe(e,t,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};l=V(i.ignore,u,r)}let c=(u,A=!1)=>{let{isMatch:f,match:C,output:_}=V.test(u,o,t,{glob:e,posix:s}),E={glob:e,state:a,regex:o,posix:s,input:u,output:_,match:C,isMatch:f};return typeof i.onResult=="function"&&i.onResult(E),f===!1?(E.isMatch=!1,A?E:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,A?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),A?E:!0)};return r&&(c.state=a),c};V.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?ui.toPosixSlashes:null),a=e===n,l=a&&o?o(e):e;return a===!1&&(l=o?o(e):e,a=l===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=V.matchBase(e,t,r,i):a=t.exec(l)),{isMatch:Boolean(a),match:a,output:l}};V.matchBase=(e,t,r,n=ui.isWindows(r))=>(t instanceof RegExp?t:V.makeRe(t,r)).test(Eh.basename(e));V.isMatch=(e,t,r)=>V(t,r)(e);V.parse=(e,t)=>Array.isArray(e)?e.map(r=>V.parse(r,t)):li(e,{...t,fastpaths:!1});V.scan=(e,t)=>mh(e,t);V.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let l=V.toRegex(a,t);return n===!0&&(l.state=e),l};V.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=li.fastpaths(e,t)),i.output||(i=li(e,t)),V.compileRe(i,t,r,n)};V.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};V.constants=yh;hl.exports=V});var _l=d((py,gl)=>{"use strict";gl.exports=dl()});var bl=d((hy,Cl)=>{"use strict";var ml=S("util"),yl=Xa(),Ie=_l(),ci=Wt(),El=e=>e===""||e==="./",G=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<t.length;u++){let A=Ie(String(t[u]),{...r,onResult:a},!0),f=A.state.negated||A.state.negatedExtglob;f&&o++;for(let C of e){let _=A(C,!0);!(f?!_.isMatch:_.isMatch)||(f?n.add(_.output):(n.delete(_.output),i.add(_.output)))}}let c=(o===t.length?[...s]:[...i]).filter(u=>!n.has(u));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(u=>u.replace(/\\/g,"")):t}return c};G.match=G;G.matcher=(e,t)=>Ie(e,t);G.isMatch=(e,t,r)=>Ie(t,r)(e);G.any=G.isMatch;G.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(G(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};G.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ml.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>G.contains(e,n,r));if(typeof t=="string"){if(El(e)||El(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return G.isMatch(e,t,{...r,contains:!0})};G.matchKeys=(e,t,r)=>{if(!ci.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=G(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};G.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Ie(String(i),r);if(n.some(o=>s(o)))return!0}return!1};G.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Ie(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};G.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ml.inspect(e)}"`);return[].concat(t).every(n=>Ie(n,r)(e))};G.capture=(e,t,r)=>{let n=ci.isWindows(r),s=Ie.makeRe(String(e),{...r,capture:!0}).exec(n?ci.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};G.makeRe=(...e)=>Ie.makeRe(...e);G.scan=(...e)=>Ie.scan(...e);G.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of yl(String(n),t))r.push(Ie.parse(i,t));return r};G.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:yl(e,t)};G.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return G.braces(e,{...t,expand:!0})};Cl.exports=G});var Il=d(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.matchAny=Q.convertPatternsToRe=Q.makeRe=Q.getPatternParts=Q.expandBraceExpansion=Q.expandPatternsWithBraceExpansion=Q.isAffectDepthOfReadingPattern=Q.endsWithSlashGlobStar=Q.hasGlobStar=Q.getBaseDirectory=Q.isPatternRelatedToParentDirectory=Q.getPatternsOutsideCurrentDirectory=Q.getPatternsInsideCurrentDirectory=Q.getPositivePatterns=Q.getNegativePatterns=Q.isPositivePattern=Q.isNegativePattern=Q.convertToNegativePattern=Q.convertToPositivePattern=Q.isDynamicPattern=Q.isStaticPattern=void 0;var bh=S("path"),vh=ha(),fi=bl(),vl="**",xh="\\",Bh=/[*?]|^!/,wh=/\[[^[]*]/,Sh=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Qh=/[!*+?@]\([^(]*\)/,Rh=/,|\.\./;function xl(e,t={}){return!Bl(e,t)}Q.isStaticPattern=xl;function Bl(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(xh)||Bh.test(e)||wh.test(e)||Sh.test(e)||t.extglob!==!1&&Qh.test(e)||t.braceExpansion!==!1&&Ih(e))}Q.isDynamicPattern=Bl;function Ih(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Rh.test(n)}function Th(e){return Or(e)?e.slice(1):e}Q.convertToPositivePattern=Th;function Dh(e){return"!"+e}Q.convertToNegativePattern=Dh;function Or(e){return e.startsWith("!")&&e[1]!=="("}Q.isNegativePattern=Or;function wl(e){return!Or(e)}Q.isPositivePattern=wl;function kh(e){return e.filter(Or)}Q.getNegativePatterns=kh;function Oh(e){return e.filter(wl)}Q.getPositivePatterns=Oh;function Lh(e){return e.filter(t=>!Ai(t))}Q.getPatternsInsideCurrentDirectory=Lh;function Ph(e){return e.filter(Ai)}Q.getPatternsOutsideCurrentDirectory=Ph;function Ai(e){return e.startsWith("..")||e.startsWith("./..")}Q.isPatternRelatedToParentDirectory=Ai;function Nh(e){return vh(e,{flipBackslashes:!1})}Q.getBaseDirectory=Nh;function Mh(e){return e.includes(vl)}Q.hasGlobStar=Mh;function Sl(e){return e.endsWith("/"+vl)}Q.endsWithSlashGlobStar=Sl;function Fh(e){let t=bh.basename(e);return Sl(e)||xl(t)}Q.isAffectDepthOfReadingPattern=Fh;function qh(e){return e.reduce((t,r)=>t.concat(Ql(r)),[])}Q.expandPatternsWithBraceExpansion=qh;function Ql(e){return fi.braces(e,{expand:!0,nodupes:!0})}Q.expandBraceExpansion=Ql;function jh(e,t){let{parts:r}=fi.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}Q.getPatternParts=jh;function Rl(e,t){return fi.makeRe(e,t)}Q.makeRe=Rl;function Hh(e,t){return e.map(r=>Rl(r,t))}Q.convertPatternsToRe=Hh;function Kh(e,t){return t.some(r=>r.test(e))}Q.matchAny=Kh});var Ol=d((gy,kl)=>{"use strict";var $h=S("stream"),Tl=$h.PassThrough,Uh=Array.prototype.slice;kl.exports=Gh;function Gh(){let e=[],t=Uh.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Tl(n);function a(){for(let u=0,A=arguments.length;u<A;u++)e.push(Dl(arguments[u],n));return l(),this}function l(){if(r)return;r=!0;let u=e.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let A=u.length+1;function f(){--A>0||(r=!1,l())}function C(_){function E(){_.removeListener("merge2UnpipeEnd",E),_.removeListener("end",E),s&&_.removeListener("error",x),f()}function x(v){o.emit("error",v)}if(_._readableState.endEmitted)return f();_.on("merge2UnpipeEnd",E),_.on("end",E),s&&_.on("error",x),_.pipe(o,{end:!1}),_.resume()}for(let _=0;_<u.length;_++)C(u[_]);f()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function Dl(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Dl(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Tl(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Pl=d(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.merge=void 0;var Jh=Ol();function Yh(e){let t=Jh(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Ll(e)),t.once("end",()=>Ll(e)),t}Lr.merge=Yh;function Ll(e){e.forEach(t=>t.emit("close"))}});var Nl=d(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.isEmpty=bt.isString=void 0;function Wh(e){return typeof e=="string"}bt.isString=Wh;function Vh(e){return e===""}bt.isEmpty=Vh});var Fe=d(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.string=ne.stream=ne.pattern=ne.path=ne.fs=ne.errno=ne.array=void 0;var Xh=ia();ne.array=Xh;var Zh=sa();ne.errno=Zh;var zh=oa();ne.fs=zh;var ed=aa();ne.path=ed;var td=Il();ne.pattern=td;var rd=Pl();ne.stream=rd;var nd=Nl();ne.string=nd});var ql=d(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.convertPatternGroupToTask=ie.convertPatternGroupsToTasks=ie.groupPatternsByBaseDirectory=ie.getNegativePatternsAsPositive=ie.getPositivePatterns=ie.convertPatternsToTasks=ie.generate=void 0;var qe=Fe();function id(e,t){let r=Ml(e),n=Fl(e,t.ignore),i=r.filter(l=>qe.pattern.isStaticPattern(l,t)),s=r.filter(l=>qe.pattern.isDynamicPattern(l,t)),o=pi(i,n,!1),a=pi(s,n,!0);return o.concat(a)}ie.generate=id;function pi(e,t,r){let n=[],i=qe.pattern.getPatternsOutsideCurrentDirectory(e),s=qe.pattern.getPatternsInsideCurrentDirectory(e),o=hi(i),a=hi(s);return n.push(...di(o,t,r)),"."in a?n.push(gi(".",s,t,r)):n.push(...di(a,t,r)),n}ie.convertPatternsToTasks=pi;function Ml(e){return qe.pattern.getPositivePatterns(e)}ie.getPositivePatterns=Ml;function Fl(e,t){return qe.pattern.getNegativePatterns(e).concat(t).map(qe.pattern.convertToPositivePattern)}ie.getNegativePatternsAsPositive=Fl;function hi(e){let t={};return e.reduce((r,n)=>{let i=qe.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ie.groupPatternsByBaseDirectory=hi;function di(e,t,r){return Object.keys(e).map(n=>gi(n,e[n],t,r))}ie.convertPatternGroupsToTasks=di;function gi(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(qe.pattern.convertToNegativePattern))}}ie.convertPatternGroupToTask=gi});var Hl=d(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.removeDuplicateSlashes=vt.transform=void 0;var sd=/(?!^)\/{2,}/g;function od(e){return e.map(t=>jl(t))}vt.transform=od;function jl(e){return e.replace(sd,"/")}vt.removeDuplicateSlashes=jl});var $l=d(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.read=void 0;function ad(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Kl(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){_i(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Kl(r,s);return}_i(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),_i(r,o)})})}Pr.read=ad;function Kl(e,t){e(t)}function _i(e,t){e(null,t)}});var Ul=d(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.read=void 0;function ld(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Nr.read=ld});var Gl=d($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.createFileSystemAdapter=$e.FILE_SYSTEM_ADAPTER=void 0;var Mr=S("fs");$e.FILE_SYSTEM_ADAPTER={lstat:Mr.lstat,stat:Mr.stat,lstatSync:Mr.lstatSync,statSync:Mr.statSync};function ud(e){return e===void 0?$e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},$e.FILE_SYSTEM_ADAPTER),e)}$e.createFileSystemAdapter=ud});var Jl=d(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var cd=Gl(),Ei=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=cd.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};mi.default=Ei});var it=d(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.statSync=Ue.stat=Ue.Settings=void 0;var Yl=$l(),fd=Ul(),yi=Jl();Ue.Settings=yi.default;function Ad(e,t,r){if(typeof t=="function"){Yl.read(e,Ci(),t);return}Yl.read(e,Ci(t),r)}Ue.stat=Ad;function pd(e,t){let r=Ci(t);return fd.read(e,r)}Ue.statSync=pd;function Ci(e={}){return e instanceof yi.default?e:new yi.default(e)}});var Xl=d((Sy,Vl)=>{var Wl;Vl.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Wl||(Wl=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var zl=d((Qy,Zl)=>{Zl.exports=dd;var hd=Xl();function dd(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(l){function c(){t&&t(l,r),t=null}s?hd(c):c()}function a(l,c,u){r[l]=u,(--n===0||c)&&o(c)}n?i?i.forEach(function(l){e[l](function(c,u){a(l,c,u)})}):e.forEach(function(l,c){l(function(u,A){a(c,u,A)})}):o(null),s=!1}});var bi=d(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Fr=process.versions.node.split(".");if(Fr[0]===void 0||Fr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var eu=Number.parseInt(Fr[0],10),gd=Number.parseInt(Fr[1],10),tu=10,_d=10,Ed=eu>tu,md=eu===tu&&gd>=_d;qr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Ed||md});var ru=d(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.createDirentFromStats=void 0;var vi=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function yd(e,t){return new vi(e,t)}jr.createDirentFromStats=yd});var xi=d(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.fs=void 0;var Cd=ru();Hr.fs=Cd});var Bi=d(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.joinPathSegments=void 0;function bd(e,t,r){return e.endsWith(r)?e+t:e+r+t}Kr.joinPathSegments=bd});var lu=d(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var vd=it(),nu=zl(),xd=bi(),iu=xi(),su=Bi();function Bd(e,t,r){if(!t.stats&&xd.IS_SUPPORT_READDIR_WITH_FILE_TYPES){ou(e,t,r);return}au(e,t,r)}Ge.read=Bd;function ou(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){$r(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:su.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){wi(r,s);return}let o=s.map(a=>wd(a,t));nu(o,(a,l)=>{if(a!==null){$r(r,a);return}wi(r,l)})})}Ge.readdirWithFileTypes=ou;function wd(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=iu.fs.createDirentFromStats(e.name,i),r(null,e)})}}function au(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){$r(r,n);return}let s=i.map(o=>{let a=su.joinPathSegments(e,o,t.pathSegmentSeparator);return l=>{vd.stat(a,t.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let A={name:o,path:a,dirent:iu.fs.createDirentFromStats(o,u)};t.stats&&(A.stats=u),l(null,A)})}});nu(s,(o,a)=>{if(o!==null){$r(r,o);return}wi(r,a)})})}Ge.readdir=au;function $r(e,t){e(t)}function wi(e,t){e(null,t)}});var pu=d(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.readdir=Je.readdirWithFileTypes=Je.read=void 0;var Sd=it(),Qd=bi(),uu=xi(),cu=Bi();function Rd(e,t){return!t.stats&&Qd.IS_SUPPORT_READDIR_WITH_FILE_TYPES?fu(e,t):Au(e,t)}Je.read=Rd;function fu(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:cu.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=uu.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Je.readdirWithFileTypes=fu;function Au(e,t){return t.fs.readdirSync(e).map(n=>{let i=cu.joinPathSegments(e,n,t.pathSegmentSeparator),s=Sd.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:uu.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Je.readdir=Au});var hu=d(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.createFileSystemAdapter=Ye.FILE_SYSTEM_ADAPTER=void 0;var xt=S("fs");Ye.FILE_SYSTEM_ADAPTER={lstat:xt.lstat,stat:xt.stat,lstatSync:xt.lstatSync,statSync:xt.statSync,readdir:xt.readdir,readdirSync:xt.readdirSync};function Id(e){return e===void 0?Ye.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ye.FILE_SYSTEM_ADAPTER),e)}Ye.createFileSystemAdapter=Id});var du=d(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var Td=S("path"),Dd=it(),kd=hu(),Si=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=kd.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Td.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Dd.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Qi.default=Si});var Ur=d(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.Settings=We.scandirSync=We.scandir=void 0;var gu=lu(),Od=pu(),Ri=du();We.Settings=Ri.default;function Ld(e,t,r){if(typeof t=="function"){gu.read(e,Ii(),t);return}gu.read(e,Ii(t),r)}We.scandir=Ld;function Pd(e,t){let r=Ii(t);return Od.read(e,r)}We.scandirSync=Pd;function Ii(e={}){return e instanceof Ri.default?e:new Ri.default(e)}});var Eu=d((My,_u)=>{"use strict";function Nd(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}_u.exports=Nd});var yu=d((Fy,Ti)=>{"use strict";var Md=Eu();function mu(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Md(Fd),i=null,s=null,o=0,a=null,l={push:E,drain:_e,saturated:_e,pause:u,paused:!1,concurrency:r,running:c,resume:C,idle:_,length:A,getQueue:f,unshift:x,empty:_e,kill:L,killAndDrain:q,error:X};return l;function c(){return o}function u(){l.paused=!0}function A(){for(var B=i,F=0;B;)B=B.next,F++;return F}function f(){for(var B=i,F=[];B;)F.push(B.value),B=B.next;return F}function C(){if(!!l.paused){l.paused=!1;for(var B=0;B<l.concurrency;B++)o++,v()}}function _(){return o===0&&l.length()===0}function E(B,F){var R=n.get();R.context=e,R.release=v,R.value=B,R.callback=F||_e,R.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=R,s=R):(i=R,s=R,l.saturated()):(o++,t.call(e,R.value,R.worked))}function x(B,F){var R=n.get();R.context=e,R.release=v,R.value=B,R.callback=F||_e,o===l.concurrency||l.paused?i?(R.next=i,i=R):(i=R,s=R,l.saturated()):(o++,t.call(e,R.value,R.worked))}function v(B){B&&n.release(B);var F=i;F?l.paused?o--:(s===i&&(s=null),i=F.next,F.next=null,t.call(e,F.value,F.worked),s===null&&l.empty()):--o===0&&l.drain()}function L(){i=null,s=null,l.drain=_e}function q(){i=null,s=null,l.drain(),l.drain=_e}function X(B){a=B}}function _e(){}function Fd(){this.value=null,this.callback=_e,this.next=null,this.release=_e,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=_e,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function qd(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(u,A){t.call(this,u).then(function(f){A(null,f)},A)}var i=mu(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=c,i;function a(u){var A=new Promise(function(f,C){s(u,function(_,E){if(_){C(_);return}f(E)})});return A.catch(_e),A}function l(u){var A=new Promise(function(f,C){o(u,function(_,E){if(_){C(_);return}f(E)})});return A.catch(_e),A}function c(){var u=i.drain,A=new Promise(function(f){i.drain=function(){u(),f()}});return A}}Ti.exports=mu;Ti.exports.promise=qd});var Gr=d(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.joinPathSegments=Te.replacePathSegmentSeparator=Te.isAppliedFilter=Te.isFatalError=void 0;function jd(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Te.isFatalError=jd;function Hd(e,t){return e===null||e(t)}Te.isAppliedFilter=Hd;function Kd(e,t){return e.split(/[/\\]/).join(t)}Te.replacePathSegmentSeparator=Kd;function $d(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Te.joinPathSegments=$d});var Oi=d(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var Ud=Gr(),Di=class{constructor(t,r){this._root=t,this._settings=r,this._root=Ud.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};ki.default=Di});var Ni=d(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var Gd=S("events"),Jd=Ur(),Yd=yu(),Jr=Gr(),Wd=Oi(),Li=class extends Wd.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Jd.scandir,this._emitter=new Gd.EventEmitter,this._queue=Yd(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Jr.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Jr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Jr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Jr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Pi.default=Li});var Cu=d(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var Vd=Ni(),Mi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Vd.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Xd(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Zd(t,this._storage)}),this._reader.read()}};Fi.default=Mi;function Xd(e,t){e(t)}function Zd(e,t){e(null,t)}});var bu=d(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});var zd=S("stream"),eg=Ni(),qi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new eg.default(this._root,this._settings),this._stream=new zd.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};ji.default=qi});var vu=d(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});var tg=Ur(),Yr=Gr(),rg=Oi(),Hi=class extends rg.default{constructor(){super(...arguments),this._scandir=tg.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(!!Yr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Yr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Yr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Yr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Ki.default=Hi});var xu=d(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});var ng=vu(),$i=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new ng.default(this._root,this._settings)}read(){return this._reader.read()}};Ui.default=$i});var Bu=d(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var ig=S("path"),sg=Ur(),Gi=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ig.sep),this.fsScandirSettings=new sg.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Ji.default=Gi});var Vr=d(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.Settings=De.walkStream=De.walkSync=De.walk=void 0;var wu=Cu(),og=bu(),ag=xu(),Yi=Bu();De.Settings=Yi.default;function lg(e,t,r){if(typeof t=="function"){new wu.default(e,Wr()).read(t);return}new wu.default(e,Wr(t)).read(r)}De.walk=lg;function ug(e,t){let r=Wr(t);return new ag.default(e,r).read()}De.walkSync=ug;function cg(e,t){let r=Wr(t);return new og.default(e,r).read()}De.walkStream=cg;function Wr(e={}){return e instanceof Yi.default?e:new Yi.default(e)}});var Xr=d(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});var fg=S("path"),Ag=it(),Su=Fe(),Wi=class{constructor(t){this._settings=t,this._fsStatSettings=new Ag.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return fg.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Su.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Su.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Vi.default=Wi});var zi=d(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var pg=S("stream"),hg=it(),dg=Vr(),gg=Xr(),Xi=class extends gg.default{constructor(){super(...arguments),this._walkStream=dg.walkStream,this._stat=hg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new pg.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Zi.default=Xi});var Qu=d(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var _g=Vr(),Eg=Xr(),mg=zi(),es=class extends Eg.default{constructor(){super(...arguments),this._walkAsync=_g.walk,this._readerStream=new mg.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};ts.default=es});var Ru=d(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});var Bt=Fe(),rs=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Bt.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return Bt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Bt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Bt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Bt.array.splitWhen(t,r=>r.dynamic&&Bt.pattern.hasGlobStar(r.pattern))}};ns.default=rs});var Iu=d(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var yg=Ru(),is=class extends yg.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};ss.default=is});var Tu=d(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});var Zr=Fe(),Cg=Iu(),os=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new Cg.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Zr.pattern.isAffectDepthOfReadingPattern);return Zr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Zr.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Zr.pattern.matchAny(t,r)}};as.default=os});var Du=d(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});var st=Fe(),ls=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=st.pattern.convertPatternsToRe(t,this._micromatchOptions),i=st.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=st.path.makeAbsolute(this._settings.cwd,t);return st.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=st.path.removeLeadingDotSegment(t),s=st.pattern.matchAny(i,r);return!s&&n?st.pattern.matchAny(i+"/",r):s}};us.default=ls});var ku=d(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var bg=Fe(),cs=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return bg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};fs.default=cs});var Lu=d(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var Ou=Fe(),As=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Ou.path.makeAbsolute(this._settings.cwd,r),r=Ou.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};ps.default=As});var zr=d(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});var vg=S("path"),xg=Tu(),Bg=Du(),wg=ku(),Sg=Lu(),hs=class{constructor(t){this._settings=t,this.errorFilter=new wg.default(this._settings),this.entryFilter=new Bg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new xg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Sg.default(this._settings)}_getRootDirectory(t){return vg.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};ds.default=hs});var Pu=d(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var Qg=Qu(),Rg=zr(),gs=class extends Rg.default{constructor(){super(...arguments),this._reader=new Qg.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};_s.default=gs});var Nu=d(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});var Ig=S("stream"),Tg=zi(),Dg=zr(),Es=class extends Dg.default{constructor(){super(...arguments),this._reader=new Tg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new Ig.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};ms.default=Es});var Mu=d(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var kg=it(),Og=Vr(),Lg=Xr(),ys=class extends Lg.default{constructor(){super(...arguments),this._walkSync=Og.walkSync,this._statSync=kg.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Cs.default=ys});var Fu=d(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var Pg=Mu(),Ng=zr(),bs=class extends Ng.default{constructor(){super(...arguments),this._reader=new Pg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};vs.default=bs});var qu=d(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var wt=S("fs"),Mg=S("os"),Fg=Math.max(Mg.cpus().length,1);St.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:wt.lstat,lstatSync:wt.lstatSync,stat:wt.stat,statSync:wt.statSync,readdir:wt.readdir,readdirSync:wt.readdirSync};var xs=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Fg),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)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},St.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};St.default=xs});var en=d((cC,Ku)=>{"use strict";var ju=ql(),Hu=Hl(),qg=Pu(),jg=Nu(),Hg=Fu(),Bs=qu(),ot=Fe();async function ws(e,t){Qt(e);let r=Ss(e,qg.default,t),n=await Promise.all(r);return ot.array.flatten(n)}(function(e){function t(o,a){Qt(o);let l=Ss(o,Hg.default,a);return ot.array.flatten(l)}e.sync=t;function r(o,a){Qt(o);let l=Ss(o,jg.default,a);return ot.stream.merge(l)}e.stream=r;function n(o,a){Qt(o);let l=Hu.transform([].concat(o)),c=new Bs.default(a);return ju.generate(l,c)}e.generateTasks=n;function i(o,a){Qt(o);let l=new Bs.default(a);return ot.pattern.isDynamicPattern(o,l)}e.isDynamicPattern=i;function s(o){return Qt(o),ot.path.escape(o)}e.escapePath=s})(ws||(ws={}));function Ss(e,t,r){let n=Hu.transform([].concat(e)),i=new Bs.default(r),s=ju.generate(n,i),o=new t(i);return s.map(o.read,o)}function Qt(e){if(![].concat(e).every(n=>ot.string.isString(n)&&!ot.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Ku.exports=ws});var Uu=d((fC,Qs)=>{"use strict";var $u=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Qs.exports=$u;Qs.exports.default=$u});var Ju=d((AC,rn)=>{"use strict";var Kg=Uu(),tn=new WeakMap,Gu=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(tn.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Kg(s,e),tn.set(s,n),s};rn.exports=Gu;rn.exports.default=Gu;rn.exports.callCount=e=>{if(!tn.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return tn.get(e)}});var Yu=d((pC,nn)=>{nn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&nn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&nn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var zu=d((hC,Tt)=>{var J=global.process,at=function(e){return 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"};at(J)?(Wu=S("assert"),Rt=Yu(),Vu=/^win/i.test(J.platform),Xt=S("events"),typeof Xt!="function"&&(Xt=Xt.EventEmitter),J.__signal_exit_emitter__?re=J.__signal_exit_emitter__:(re=J.__signal_exit_emitter__=new Xt,re.count=0,re.emitted={}),re.infinite||(re.setMaxListeners(1/0),re.infinite=!0),Tt.exports=function(e,t){if(!at(global.process))return function(){};Wu.equal(typeof e,"function","a callback must be provided for exit handler"),It===!1&&Rs();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){re.removeListener(r,e),re.listeners("exit").length===0&&re.listeners("afterexit").length===0&&sn()};return re.on(r,e),n},sn=function(){!It||!at(global.process)||(It=!1,Rt.forEach(function(t){try{J.removeListener(t,on[t])}catch{}}),J.emit=an,J.reallyExit=Is,re.count-=1)},Tt.exports.unload=sn,lt=function(t,r,n){re.emitted[t]||(re.emitted[t]=!0,re.emit(t,r,n))},on={},Rt.forEach(function(e){on[e]=function(){if(!!at(global.process)){var r=J.listeners(e);r.length===re.count&&(sn(),lt("exit",null,e),lt("afterexit",null,e),Vu&&e==="SIGHUP"&&(e="SIGINT"),J.kill(J.pid,e))}}}),Tt.exports.signals=function(){return Rt},It=!1,Rs=function(){It||!at(global.process)||(It=!0,re.count+=1,Rt=Rt.filter(function(t){try{return J.on(t,on[t]),!0}catch{return!1}}),J.emit=Zu,J.reallyExit=Xu)},Tt.exports.load=Rs,Is=J.reallyExit,Xu=function(t){!at(global.process)||(J.exitCode=t||0,lt("exit",J.exitCode,null),lt("afterexit",J.exitCode,null),Is.call(J,J.exitCode))},an=J.emit,Zu=function(t,r){if(t==="exit"&&at(global.process)){r!==void 0&&(J.exitCode=r);var n=an.apply(this,arguments);return lt("exit",J.exitCode,null),lt("afterexit",J.exitCode,null),n}else return an.apply(this,arguments)}):Tt.exports=function(){return function(){}};var Wu,Rt,Vu,Xt,re,sn,lt,on,It,Rs,Is,Xu,an,Zu});var ic=d((yC,Gg)=>{Gg.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var ac=d((CC,oc)=>{"use strict";var un=Object.assign({},ic()),sc=Object.keys(un);Object.defineProperty(un,"random",{get(){let e=Math.floor(Math.random()*sc.length),t=sc[e];return un[t]}});oc.exports=un});var lc=d((IC,cn)=>{var Vg=function(){"use strict";function e(o,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var A=[],f=[],C=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function _(E,x){if(E===null)return null;if(x==0)return E;var v,L;if(typeof E!="object")return E;if(e.__isArray(E))v=[];else if(e.__isRegExp(E))v=new RegExp(E.source,s(E)),E.lastIndex&&(v.lastIndex=E.lastIndex);else if(e.__isDate(E))v=new Date(E.getTime());else{if(C&&Buffer.isBuffer(E))return Buffer.allocUnsafe?v=Buffer.allocUnsafe(E.length):v=new Buffer(E.length),E.copy(v),v;typeof c>"u"?(L=Object.getPrototypeOf(E),v=Object.create(L)):(v=Object.create(c),L=c)}if(a){var q=A.indexOf(E);if(q!=-1)return f[q];A.push(E),f.push(v)}for(var X in E){var B;L&&(B=Object.getOwnPropertyDescriptor(L,X)),!(B&&B.set==null)&&(v[X]=_(E[X],x-1))}return v}return _(o,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof cn=="object"&&cn.exports&&(cn.exports=Vg)});var cc=d((TC,uc)=>{var Xg=lc();uc.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=Xg(t[r]))}),e}});var Ac=d((DC,fc)=>{fc.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var gc=d((kC,Os)=>{"use strict";var Zg=cc(),er=Ac(),hc={nul:0,control:0};Os.exports=function(t){return dc(t,hc)};Os.exports.config=function(e){return e=Zg(e||{},hc),function(r){return dc(r,e)}};function dc(e,t){if(typeof e!="string")return pc(e,t);for(var r=0,n=0;n<e.length;n++){var i=pc(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function pc(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:zg(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function zg(e){var t=0,r=er.length-1,n;if(e<er[0][0]||e>er[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>er[n][1])t=n+1;else if(e<er[n][0])r=n-1;else return!0;return!1}});var Ps=d((LC,_c)=>{_c.exports=S("stream")});var Cc=d((PC,yc)=>{"use strict";function Ec(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function e_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ec(Object(r),!0).forEach(function(n){t_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ec(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n_(e,t,r){return t&&mc(e.prototype,t),r&&mc(e,r),e}var i_=S("buffer"),fn=i_.Buffer,s_=S("util"),Ns=s_.inspect,o_=Ns&&Ns.custom||"inspect";function a_(e,t,r){fn.prototype.copy.call(e,t,r)}yc.exports=function(){function e(){r_(this,e),this.head=null,this.tail=null,this.length=0}return n_(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return fn.alloc(0);for(var n=fn.allocUnsafe(r>>>0),i=this.head,s=0;i;)a_(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=fn.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:o_,value:function(r,n){return Ns(this,e_({},n,{depth:0,customInspect:!1}))}}]),e}()});var Fs=d((NC,vc)=>{"use strict";function l_(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ms,this,e)):process.nextTick(Ms,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(An,r):(r._writableState.errorEmitted=!0,process.nextTick(bc,r,s)):process.nextTick(bc,r,s):t?(process.nextTick(An,r),t(s)):process.nextTick(An,r)}),this)}function bc(e,t){Ms(e,t),An(e)}function An(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function u_(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ms(e,t){e.emit("error",t)}function c_(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}vc.exports={destroy:l_,undestroy:u_,errorOrDestroy:c_}});var Ve=d((MC,wc)=>{"use strict";var Bc={};function Ee(e,t,r){r||(r=Error);function n(s,o,a){return typeof t=="string"?t:t(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=e,Bc[e]=i}function xc(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function f_(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function A_(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function p_(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Ee("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Ee("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&f_(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(A_(e," argument"))i=`The ${e} ${n} ${xc(t,"type")}`;else{let s=p_(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${xc(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);Ee("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ee("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ee("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ee("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ee("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ee("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ee("ERR_STREAM_WRITE_AFTER_END","write after end");Ee("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ee("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ee("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");wc.exports.codes=Bc});var qs=d((FC,Sc)=>{"use strict";var h_=Ve().codes.ERR_INVALID_OPT_VALUE;function d_(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function g_(e,t,r,n){var i=d_(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new h_(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Sc.exports={getHighWaterMark:g_}});var Qc=d((qC,js)=>{typeof Object.create=="function"?js.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:js.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var ut=d((jC,Ks)=>{try{if(Hs=S("util"),typeof Hs.inherits!="function")throw"";Ks.exports=Hs.inherits}catch{Ks.exports=Qc()}var Hs});var Ic=d((HC,Rc)=>{Rc.exports=S("util").deprecate});var Gs=d((KC,Pc)=>{"use strict";Pc.exports=W;function Dc(e){var t=this;this.next=null,this.entry=null,this.finish=function(){K_(t,e)}}var kt;W.WritableState=rr;var __={deprecate:Ic()},kc=Ps(),hn=S("buffer").Buffer,E_=global.Uint8Array||function(){};function m_(e){return hn.from(e)}function y_(e){return hn.isBuffer(e)||e instanceof E_}var Us=Fs(),C_=qs(),b_=C_.getHighWaterMark,Xe=Ve().codes,v_=Xe.ERR_INVALID_ARG_TYPE,x_=Xe.ERR_METHOD_NOT_IMPLEMENTED,B_=Xe.ERR_MULTIPLE_CALLBACK,w_=Xe.ERR_STREAM_CANNOT_PIPE,S_=Xe.ERR_STREAM_DESTROYED,Q_=Xe.ERR_STREAM_NULL_VALUES,R_=Xe.ERR_STREAM_WRITE_AFTER_END,I_=Xe.ERR_UNKNOWN_ENCODING,Ot=Us.errorOrDestroy;ut()(W,kc);function T_(){}function rr(e,t,r){kt=kt||ct(),e=e||{},typeof r!="boolean"&&(r=t instanceof kt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=b_(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){M_(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Dc(this)}rr.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(rr.prototype,"buffer",{get:__.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var pn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(pn=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(t){return pn.call(this,t)?!0:this!==W?!1:t&&t._writableState instanceof rr}})):pn=function(t){return t instanceof this};function W(e){kt=kt||ct();var t=this instanceof kt;if(!t&&!pn.call(W,this))return new W(e);this._writableState=new rr(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),kc.call(this)}W.prototype.pipe=function(){Ot(this,new w_)};function D_(e,t){var r=new R_;Ot(e,r),process.nextTick(t,r)}function k_(e,t,r,n){var i;return r===null?i=new Q_:typeof r!="string"&&!t.objectMode&&(i=new v_("chunk",["string","Buffer"],r)),i?(Ot(e,i),process.nextTick(n,i),!1):!0}W.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&y_(e);return s&&!hn.isBuffer(e)&&(e=m_(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=T_),n.ending?D_(this,r):(s||k_(this,n,e,r))&&(n.pendingcb++,i=L_(this,n,s,e,t,r)),i};W.prototype.cork=function(){this._writableState.corked++};W.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Oc(this,e))};W.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new I_(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O_(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=hn.from(t,r)),t}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L_(e,t,r,n,i,s){if(!r){var o=O_(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else $s(e,t,!1,a,n,i,s);return l}function $s(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new S_("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function P_(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(tr,e,t),e._writableState.errorEmitted=!0,Ot(e,n)):(i(n),e._writableState.errorEmitted=!0,Ot(e,n),tr(e,t))}function N_(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function M_(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new B_;if(N_(r),t)P_(e,r,n,t,i);else{var s=Lc(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Oc(e,r),n?process.nextTick(Tc,e,r,s,i):Tc(e,r,s,i)}}function Tc(e,t,r,n){r||F_(e,t),t.pendingcb--,n(),tr(e,t)}function F_(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Oc(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,$s(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Dc(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,A=t.objectMode?1:l.length;if($s(e,t,!1,A,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}W.prototype._write=function(e,t,r){r(new x_("_write()"))};W.prototype._writev=null;W.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||H_(this,n,r),this};Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Lc(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function q_(e,t){e._final(function(r){t.pendingcb--,r&&Ot(e,r),t.prefinished=!0,e.emit("prefinish"),tr(e,t)})}function j_(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(q_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function tr(e,t){var r=Lc(t);if(r&&(j_(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function H_(e,t,r){t.ending=!0,tr(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function K_(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});W.prototype.destroy=Us.destroy;W.prototype._undestroy=Us.undestroy;W.prototype._destroy=function(e,t){t(e)}});var ct=d(($C,Mc)=>{"use strict";var $_=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Mc.exports=ke;var Nc=Ws(),Ys=Gs();ut()(ke,Nc);for(Js=$_(Ys.prototype),dn=0;dn<Js.length;dn++)gn=Js[dn],ke.prototype[gn]||(ke.prototype[gn]=Ys.prototype[gn]);var Js,gn,dn;function ke(e){if(!(this instanceof ke))return new ke(e);Nc.call(this,e),Ys.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",U_)))}Object.defineProperty(ke.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ke.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ke.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U_(){this._writableState.ended||process.nextTick(G_,this)}function G_(e){e.end()}Object.defineProperty(ke.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var jc=d((Vs,qc)=>{var _n=S("buffer"),Oe=_n.Buffer;function Fc(e,t){for(var r in e)t[r]=e[r]}Oe.from&&Oe.alloc&&Oe.allocUnsafe&&Oe.allocUnsafeSlow?qc.exports=_n:(Fc(_n,Vs),Vs.Buffer=ft);function ft(e,t,r){return Oe(e,t,r)}ft.prototype=Object.create(Oe.prototype);Fc(Oe,ft);ft.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Oe(e,t,r)};ft.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Oe(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};ft.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Oe(e)};ft.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return _n.SlowBuffer(e)}});var zs=d(Kc=>{"use strict";var Zs=jc().Buffer,Hc=Zs.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function J_(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Y_(e){var t=J_(e);if(typeof t!="string"&&(Zs.isEncoding===Hc||!Hc(e)))throw new Error("Unknown encoding: "+e);return t||e}Kc.StringDecoder=nr;function nr(e){this.encoding=Y_(e);var t;switch(this.encoding){case"utf16le":this.text=eE,this.end=tE,t=4;break;case"utf8":this.fillLast=X_,t=4;break;case"base64":this.text=rE,this.end=nE,t=3;break;default:this.write=iE,this.end=sE;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Zs.allocUnsafe(t)}nr.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};nr.prototype.end=z_;nr.prototype.text=Z_;nr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Xs(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function W_(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Xs(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Xs(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Xs(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function V_(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function X_(e){var t=this.lastTotal-this.lastNeed,r=V_(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Z_(e,t){var r=W_(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function z_(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function eE(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function tE(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function rE(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function nE(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function iE(e){return e.toString(this.encoding)}function sE(e){return e&&e.length?this.write(e):""}});var En=d((GC,Gc)=>{"use strict";var $c=Ve().codes.ERR_STREAM_PREMATURE_CLOSE;function oE(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function aE(){}function lE(e){return e.setHeader&&typeof e.abort=="function"}function Uc(e,t,r){if(typeof t=="function")return Uc(e,null,t);t||(t={}),r=oE(r||aE);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},o=e._writableState&&e._writableState.finished,a=function(){i=!1,o=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,c=function(){n=!1,l=!0,i||r.call(e)},u=function(_){r.call(e,_)},A=function(){var _;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(_=new $c),r.call(e,_);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(_=new $c),r.call(e,_)},f=function(){e.req.on("finish",a)};return lE(e)?(e.on("complete",a),e.on("abort",A),e.req?f():e.on("request",f)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",c),e.on("finish",a),t.error!==!1&&e.on("error",u),e.on("close",A),function(){e.removeListener("complete",a),e.removeListener("abort",A),e.removeListener("request",f),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",c),e.removeListener("error",u),e.removeListener("close",A)}}Gc.exports=Uc});var Yc=d((JC,Jc)=>{"use strict";var mn;function Ze(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var uE=En(),ze=Symbol("lastResolve"),At=Symbol("lastReject"),ir=Symbol("error"),yn=Symbol("ended"),pt=Symbol("lastPromise"),eo=Symbol("handlePromise"),ht=Symbol("stream");function et(e,t){return{value:e,done:t}}function cE(e){var t=e[ze];if(t!==null){var r=e[ht].read();r!==null&&(e[pt]=null,e[ze]=null,e[At]=null,t(et(r,!1)))}}function fE(e){process.nextTick(cE,e)}function AE(e,t){return function(r,n){e.then(function(){if(t[yn]){r(et(void 0,!0));return}t[eo](r,n)},n)}}var pE=Object.getPrototypeOf(function(){}),hE=Object.setPrototypeOf((mn={get stream(){return this[ht]},next:function(){var t=this,r=this[ir];if(r!==null)return Promise.reject(r);if(this[yn])return Promise.resolve(et(void 0,!0));if(this[ht].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[ir]?a(t[ir]):o(et(void 0,!0))})});var n=this[pt],i;if(n)i=new Promise(AE(n,this));else{var s=this[ht].read();if(s!==null)return Promise.resolve(et(s,!1));i=new Promise(this[eo])}return this[pt]=i,i}},Ze(mn,Symbol.asyncIterator,function(){return this}),Ze(mn,"return",function(){var t=this;return new Promise(function(r,n){t[ht].destroy(null,function(i){if(i){n(i);return}r(et(void 0,!0))})})}),mn),pE),dE=function(t){var r,n=Object.create(hE,(r={},Ze(r,ht,{value:t,writable:!0}),Ze(r,ze,{value:null,writable:!0}),Ze(r,At,{value:null,writable:!0}),Ze(r,ir,{value:null,writable:!0}),Ze(r,yn,{value:t._readableState.endEmitted,writable:!0}),Ze(r,eo,{value:function(s,o){var a=n[ht].read();a?(n[pt]=null,n[ze]=null,n[At]=null,s(et(a,!1))):(n[ze]=s,n[At]=o)},writable:!0}),r));return n[pt]=null,uE(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[At];s!==null&&(n[pt]=null,n[ze]=null,n[At]=null,s(i)),n[ir]=i;return}var o=n[ze];o!==null&&(n[pt]=null,n[ze]=null,n[At]=null,o(et(void 0,!0))),n[yn]=!0}),t.on("readable",fE.bind(null,n)),n};Jc.exports=dE});var Zc=d((YC,Xc)=>{"use strict";function Wc(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(c){r(c);return}a.done?t(l):Promise.resolve(l).then(n,i)}function gE(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(l){Wc(s,n,i,o,a,"next",l)}function a(l){Wc(s,n,i,o,a,"throw",l)}o(void 0)})}}function Vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _E(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vc(Object(r),!0).forEach(function(n){EE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mE=Ve().codes.ERR_INVALID_ARG_TYPE;function yE(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new mE("iterable",["Iterable"],t);var i=new e(_E({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=gE(function*(){try{var l=yield n.next(),c=l.value,u=l.done;u?i.push(null):i.push(yield c)?o():s=!1}catch(A){i.destroy(A)}}),a.apply(this,arguments)}return i}Xc.exports=yE});var Ws=d((VC,uf)=>{"use strict";uf.exports=P;var Lt;P.ReadableState=rf;var WC=S("events").EventEmitter,tf=function(t,r){return t.listeners(r).length},or=Ps(),Cn=S("buffer").Buffer,CE=global.Uint8Array||function(){};function bE(e){return Cn.from(e)}function vE(e){return Cn.isBuffer(e)||e instanceof CE}var to=S("util"),D;to&&to.debuglog?D=to.debuglog("stream"):D=function(){};var xE=Cc(),lo=Fs(),BE=qs(),wE=BE.getHighWaterMark,bn=Ve().codes,SE=bn.ERR_INVALID_ARG_TYPE,QE=bn.ERR_STREAM_PUSH_AFTER_EOF,RE=bn.ERR_METHOD_NOT_IMPLEMENTED,IE=bn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Pt,ro,no;ut()(P,or);var sr=lo.errorOrDestroy,io=["error","close","destroy","pause","resume"];function TE(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function rf(e,t,r){Lt=Lt||ct(),e=e||{},typeof r!="boolean"&&(r=t instanceof Lt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=wE(this,e,"readableHighWaterMark",r),this.buffer=new xE,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Pt||(Pt=zs().StringDecoder),this.decoder=new Pt(e.encoding),this.encoding=e.encoding)}function P(e){if(Lt=Lt||ct(),!(this instanceof P))return new P(e);var t=this instanceof Lt;this._readableState=new rf(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),or.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});P.prototype.destroy=lo.destroy;P.prototype._undestroy=lo.undestroy;P.prototype._destroy=function(e,t){t(e)};P.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Cn.from(e,t),t=""),n=!0),nf(this,e,t,!1,n)};P.prototype.unshift=function(e){return nf(this,e,null,!0,!1)};function nf(e,t,r,n,i){D("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,OE(e,s);else{var o;if(i||(o=DE(s,t)),o)sr(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Cn.prototype&&(t=bE(t)),n)s.endEmitted?sr(e,new IE):so(e,s,t,!0);else if(s.ended)sr(e,new QE);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?so(e,s,t,!1):ao(e,s)):so(e,s,t,!1)}else n||(s.reading=!1,ao(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function so(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&vn(e)),ao(e,t)}function DE(e,t){var r;return!vE(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new SE("chunk",["string","Buffer","Uint8Array"],t)),r}P.prototype.isPaused=function(){return this._readableState.flowing===!1};P.prototype.setEncoding=function(e){Pt||(Pt=zs().StringDecoder);var t=new Pt(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var zc=1073741824;function kE(e){return e>=zc?e=zc:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function ef(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=kE(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}P.prototype.read=function(e){D("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return D("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?oo(this):vn(this),null;if(e=ef(e,t),e===0&&t.ended)return t.length===0&&oo(this),null;var n=t.needReadable;D("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,D("length less than watermark",n)),t.ended||t.reading?(n=!1,D("reading or ended",n)):n&&(D("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=ef(r,t)));var i;return e>0?i=af(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&oo(this)),i!==null&&this.emit("data",i),i};function OE(e,t){if(D("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?vn(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,sf(e)))}}function vn(e){var t=e._readableState;D("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(D("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(sf,e))}function sf(e){var t=e._readableState;D("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,uo(e)}function ao(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(LE,e,t))}function LE(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(D("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}P.prototype._read=function(e){sr(this,new RE("_read()"))};P.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,D("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:E;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(x,v){D("onunpipe"),x===r&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,u())}function a(){D("onend"),e.end()}var l=PE(r);e.on("drain",l);var c=!1;function u(){D("cleanup"),e.removeListener("close",C),e.removeListener("finish",_),e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",E),r.removeListener("data",A),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",A);function A(x){D("ondata");var v=e.write(x);D("dest.write",v),v===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&lf(n.pipes,e)!==-1)&&!c&&(D("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(x){D("onerror",x),E(),e.removeListener("error",f),tf(e,"error")===0&&sr(e,x)}TE(e,"error",f);function C(){e.removeListener("finish",_),E()}e.once("close",C);function _(){D("onfinish"),e.removeListener("close",C),E()}e.once("finish",_);function E(){D("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(D("pipe resume"),r.resume()),e};function PE(e){return function(){var r=e._readableState;D("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&tf(e,"data")&&(r.flowing=!0,uo(e))}}P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=lf(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};P.prototype.on=function(e,t){var r=or.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,D("on readable",n.length,n.reading),n.length?vn(this):n.reading||process.nextTick(NE,this)),r};P.prototype.addListener=P.prototype.on;P.prototype.removeListener=function(e,t){var r=or.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(of,this),r};P.prototype.removeAllListeners=function(e){var t=or.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(of,this),t};function of(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function NE(e){D("readable nexttick read 0"),e.read(0)}P.prototype.resume=function(){var e=this._readableState;return e.flowing||(D("resume"),e.flowing=!e.readableListening,ME(this,e)),e.paused=!1,this};function ME(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(FE,e,t))}function FE(e,t){D("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),uo(e),t.flowing&&!t.reading&&e.read(0)}P.prototype.pause=function(){return D("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(D("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function uo(e){var t=e._readableState;for(D("flow",t.flowing);t.flowing&&e.read()!==null;);}P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(D("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(D("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<io.length;s++)e.on(io[s],this.emit.bind(this,io[s]));return this._read=function(o){D("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return ro===void 0&&(ro=Yc()),ro(this)});Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});P._fromList=af;Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function af(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function oo(e){var t=e._readableState;D("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(qE,t,e))}function qE(e,t){if(D("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(P.from=function(e,t){return no===void 0&&(no=Zc()),no(P,e,t)});function lf(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var co=d((XC,ff)=>{"use strict";ff.exports=je;var xn=Ve().codes,jE=xn.ERR_METHOD_NOT_IMPLEMENTED,HE=xn.ERR_MULTIPLE_CALLBACK,KE=xn.ERR_TRANSFORM_ALREADY_TRANSFORMING,$E=xn.ERR_TRANSFORM_WITH_LENGTH_0,Bn=ct();ut()(je,Bn);function UE(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new HE);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function je(e){if(!(this instanceof je))return new je(e);Bn.call(this,e),this._transformState={afterTransform:UE.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",GE)}function GE(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){cf(e,t,r)}):cf(this,null,null)}je.prototype.push=function(e,t){return this._transformState.needTransform=!1,Bn.prototype.push.call(this,e,t)};je.prototype._transform=function(e,t,r){r(new jE("_transform()"))};je.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};je.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};je.prototype._destroy=function(e,t){Bn.prototype._destroy.call(this,e,function(r){t(r)})};function cf(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new $E;if(e._transformState.transforming)throw new KE;return e.push(null)}});var hf=d((ZC,pf)=>{"use strict";pf.exports=ar;var Af=co();ut()(ar,Af);function ar(e){if(!(this instanceof ar))return new ar(e);Af.call(this,e)}ar.prototype._transform=function(e,t,r){r(null,e)}});var mf=d((zC,Ef)=>{"use strict";var fo;function JE(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var _f=Ve().codes,YE=_f.ERR_MISSING_ARGS,WE=_f.ERR_STREAM_DESTROYED;function df(e){if(e)throw e}function VE(e){return e.setHeader&&typeof e.abort=="function"}function XE(e,t,r,n){n=JE(n);var i=!1;e.on("close",function(){i=!0}),fo===void 0&&(fo=En()),fo(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,VE(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new WE("pipe"))}}}function gf(e){e()}function ZE(e,t){return e.pipe(t)}function zE(e){return!e.length||typeof e[e.length-1]!="function"?df:e.pop()}function e0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=zE(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new YE("streams");var i,s=t.map(function(o,a){var l=a<t.length-1,c=a>0;return XE(o,l,c,function(u){i||(i=u),u&&s.forEach(gf),!l&&(s.forEach(gf),n(i))})});return t.reduce(ZE)}Ef.exports=e0});var yf=d((me,ur)=>{var lr=S("stream");process.env.READABLE_STREAM==="disable"&&lr?(ur.exports=lr.Readable,Object.assign(ur.exports,lr),ur.exports.Stream=lr):(me=ur.exports=Ws(),me.Stream=lr||me,me.Readable=me,me.Writable=Gs(),me.Duplex=ct(),me.Transform=co(),me.PassThrough=hf(),me.finished=En(),me.pipeline=mf())});var vf=d((eb,bf)=>{"use strict";var{Buffer:xe}=S("buffer"),Cf=Symbol.for("BufferList");function K(e){if(!(this instanceof K))return new K(e);K._init.call(this,e)}K._init=function(t){Object.defineProperty(this,Cf,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};K.prototype._new=function(t){return new K(t)};K.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};K.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};K.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};K.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};K.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||xe.alloc(0);let s=!!t,o=this._offset(n),a=i-n,l=a,c=s&&r||0,u=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:xe.concat(this._bufs,this.length);for(let A=0;A<this._bufs.length;A++)this._bufs[A].copy(t,c),c+=this._bufs[A].length;return t}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(t,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(t=xe.allocUnsafe(a));for(let A=o[0];A<this._bufs.length;A++){let f=this._bufs[A].length-u;if(l>f)this._bufs[A].copy(t,c,u),c+=f;else{this._bufs[A].copy(t,c,u,u+l),c+=f;break}l-=f,u&&(u=0)}return t.length>c?t.slice(0,c):t};K.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};K.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};K.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};K.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};K.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(xe.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(xe.from(t));return this};K.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};K.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=xe.from([e]):typeof e=="string"?e=xe.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=xe.from(e.buffer,e.byteOffset,e.byteLength):xe.isBuffer(e)||(e=xe.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=e.length){let l=o.indexOf(e,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-e.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,e))return l;s++}s=0}return-1};K.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?K.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:K.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();K.prototype._isBufferList=function(t){return t instanceof K||K.isBufferList(t)};K.isBufferList=function(t){return t!=null&&t[Cf]};bf.exports=K});var xf=d((tb,wn)=>{"use strict";var Ao=yf().Duplex,t0=ut(),cr=vf();function se(e){if(!(this instanceof se))return new se(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}cr._init.call(this,e),Ao.call(this)}t0(se,Ao);Object.assign(se.prototype,cr.prototype);se.prototype._new=function(t){return new se(t)};se.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};se.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};se.prototype.end=function(t){Ao.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};se.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};se.prototype._isBufferList=function(t){return t instanceof se||t instanceof cr||se.isBufferList(t)};se.isBufferList=cr.isBufferList;wn.exports=se;wn.exports.BufferListStream=se;wn.exports.BufferList=cr});var Mo=d((ox,eA)=>{var Nn=S("fs"),zf=S("path"),Am=S("os");function Po(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function No(e,t){try{return t(e)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",e),!1;throw r}}var pm={nil:function(e){return e==null},array:function(e){return Array.isArray(e)},emptyObject:function(e){for(var t in e)return!1;return!0},buffer:function(e){return Buffer.isBuffer(e)},regExp:function(e){return Po(e,"RegExp")},string:function(e){return Po(e,"String")},func:function(e){return typeof e=="function"},number:function(e){return Po(e,"Number")},exists:function(e){return Nn.existsSync(e)},file:function(e){return No(e,function(t){return Nn.statSync(t).isFile()})},samePath:function(e,t){return zf.resolve(e)===zf.resolve(t)},directory:function(e){return No(e,function(t){return Nn.statSync(t).isDirectory()})},symbolicLink:function(e){return No(e,function(t){return Nn.lstatSync(t).isSymbolicLink()})},windows:function(){return Am.platform()==="win32"}};eA.exports=pm});var sA=d((ax,iA)=>{var Er=S("fs"),tA=S("os"),Fo=S("path"),Mn=Mo(),_r,hm=tA.tmpdir&&tA.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function nA(){this.stack=[]}nA.prototype={create:function(e,t){var r=Fo.join(t,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:e}),r},write:function(){for(var e=0;e<arguments.length;++e)Er.writeFileSync(arguments[e]," ")},mkdir:function(){for(var e=0;e<arguments.length;++e)Er.mkdirSync(arguments[e])},cleanup:function(e){try{for(var t;t=this.stack.pop();){var r=t.type,n=t.name;r==="file"&&Mn.file(n)?Er.unlinkSync(n):r==="dir"&&Mn.directory(n)&&Er.rmdirSync(n)}}finally{Mn.func(e)&&e()}}};var rA=!1;iA.exports=function e(t){if(!Mn.func(t))return!1;if(_r!==void 0)return t(_r);if(!rA)rA=!0;else return setTimeout(function(){e(t)},300);var r=new nA,n=r.create("dir",hm),i=r.create("dir",n),s=r.create("file",i);r.mkdir(n,i);var o={recursive:!0},a;try{a=Er.watch(n,o)}catch(c){if(c.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return t(_r=!1);throw c}if(!a)return!1;var l=setTimeout(function(){a.close(),r.cleanup(function(){t(_r=!1)})},200);a.on("change",function(c,u){Fo.basename(s)===Fo.basename(u)&&(a.close(),clearTimeout(l),r.cleanup(function(){t(_r=!0)}))}),r.write(s)}});var gA=d((lx,Ko)=>{var jo=S("fs"),mr=S("path"),aA=S("util"),lA=S("events"),uA=sA(),H=Mo(),dm="update",cA="remove",oA=Symbol("skip");function gm(e){return e.some(function(t,r,n){return n.indexOf(t)!==r})}function Ho(e){return e.filter(function(t,r,n){return n.indexOf(t)===r})}function _m(e){return e.reduce(function(t,r){return t.concat(r)},[])}function Em(e){if(e&&e!=="buffer"&&!Buffer.isEncoding(e))throw new Error("Unknown encoding: "+e)}function mm(e){return H.func(e)?function(t,r){e(t,!1)&&r()}:H.regExp(e)?function(t,r){e.test(t)&&r()}:function(t,r){r()}}function ym(e){return e.map(function(t){return H.exists(t)?[dm,t]:[cA,t]})}function Cm(e){var t=Ho(e),r=/~$|^\.#|^##$/g,n=e.some(function(s){return r.test(s)});if(n){var i=gm(e.map(function(s){return s.replace(r,"")}));i&&(t=t.filter(function(s){return H.exists(s)}))}return ym(t)}function bm(e,t){var r,n=[],i=e.options.encoding,s=e.options.delay;H.number(s)||(s=200);function o(){Cm(n).forEach(function(a){a[1]=Buffer.from(a[1]),i!=="buffer"&&(a[1]=a[1].toString(i)),t.apply(null,a)}),r=null,n=[]}return function(a,l){n.push(l),r||(r=setTimeout(o,s))}}function fA(){var e={};return function(t){return function(r,n){e[r+n]=[r,n],setTimeout(function(){Object.keys(e).forEach(function(i){t.apply(null,e[i])}),e={}})}}}function AA(e,t,r=function(){}){H.directory(e)?jo.readdir(e,function(n,i){if(n)if(/^(EPERM|EACCES)$/.test(n.code))console.warn("Warning: Cannot access %s.",e);else throw n;else i.forEach(function(s){var o=mr.join(e,s);H.directory(o)&&t(o)}),r()}):r()}function vm(e){var t=0;return function(){return t++,function(){t--,t===0&&e()}}}function xm(){return function(){}}function pA(e,t){return!H.func(t)||t(e,oA)!==oA}var hA=aA.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function Pe(){lA.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}aA.inherits(Pe,lA.EventEmitter);Pe.prototype.expose=function(){var e={},t=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(n){e[n]=function(){return t[n].apply(t,arguments)}}),e};Pe.prototype.isClosed=function(){return this._isClosed};Pe.prototype.close=function(e){var t=this;if(e){var r=this.watchers[e];r&&r.close&&(r.close(),delete t.watchers[e]),AA(e,function(n){t.close(n)})}else Object.keys(t.watchers).forEach(function(n){var i=t.watchers[n];i&&i.close&&i.close()}),this.watchers={};H.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(dA,this)))};Pe.prototype.getWatchedPaths=function(e){if(H.func(e)){var t=this;t._isReady?e(Object.keys(t.watchers)):t.on("ready",function(){e(Object.keys(t.watchers))})}};function qo(e){e._isReady||(e._isReady=!0,process.nextTick(function(){e.emit("ready")}))}function dA(e){e.emit("close")}Pe.prototype.add=function(e,t){var r=this;t=t||{fpath:""};var n=mr.resolve(t.fpath);this.watchers[n]=e;var i=function(o,a){if(!r.isClosed()){var l=a;H.nil(l)&&(l=""),l=mr.join(t.fpath,l),t.options.recursive&&uA(function(c){if(!c){var u=mr.resolve(l);if(!H.exists(l))r.close(u);else{var A=H.directory(l)&&!r.watchers[u]&&pA(l,t.options.filter);A&&r.watchDirectory(l,t.options)}}}),s(o,l)}},s=bm(t,function(o,a){if(t.compareName)t.compareName(a)&&r.emit("change",o,a);else{var l=mm(t.options.filter);l(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});e.on("error",function(o){r.isClosed()||(H.windows()&&o.code==="EPERM"?(e.emit("change",cA,t.fpath&&""),r.flag="windows-error",r.close(n)):r.emit("error",o))}),e.on("change",i)};Pe.prototype.watchFile=function(e,t,r){var n=mr.join(e,"../"),i=Object.assign({},t,{filter:null,encoding:"utf8"});delete i.recursive;var s=jo.watch(n,i);this.add(s,{type:"file",fpath:n,options:Object.assign({},i,{encoding:t.encoding}),compareName:function(o){return H.samePath(o,e)}}),H.func(r)&&(r.length===1&&hA(),this.on("change",r))};Pe.prototype.watchDirectory=function(e,t,r,n=xm){var i=this,s=n();uA(function(o){t.recursive=!!t.recursive;var a=Object.assign({},t,{encoding:"utf8"});if(o||delete a.recursive,i._isClosed)return s(),i.close();var l=jo.watch(e,a);i.add(l,{type:"dir",fpath:e,options:t}),H.func(r)&&(r.length===1&&hA(),i.on("change",r)),t.recursive&&!o&&AA(e,function(c){pA(c,t.filter)&&i.watchDirectory(c,t,null,n)},n()),s()})};function Bm(e){var t=new Pe,r=fA(),n=e.length;return e.forEach(function(i){i.on("change",r(function(s,o){t.emit("change",s,o)})),i.on("error",function(s){t.emit("error",s)}),i.on("ready",function(){--n||qo(t)})}),t.close=function(){e.forEach(function(i){i.close()}),process.nextTick(dA,t)},t.getWatchedPaths=function(i){if(H.func(i)){var s=e.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=Ho(_m(o));i(a)})}},t.expose()}function Fn(e,t,r){var n=new Pe;if(H.buffer(e)&&(e=e.toString()),!H.array(e)&&!H.exists(e)&&n.emit("error",new Error(e+" does not exist.")),H.string(t)&&(t={encoding:t}),H.func(t)&&(r=t,t={}),arguments.length<2&&(t={}),t.encoding?Em(t.encoding):t.encoding="utf8",H.array(e)){if(e.length===1)return Fn(e[0],t,r);var i=fA();return Bm(Ho(e).map(function(o){var a=Fn(o,t);return H.func(r)&&a.on("change",i(r)),a}))}if(H.file(e))n.watchFile(e,t,r),qo(n);else if(H.directory(e)){var s=vm(function(){qo(n)});n.watchDirectory(e,t,r,s)}return n.expose()}Ko.exports=Fn;Ko.exports.default=Fn});import{constants as V0,existsSync as gr}from"fs";import{copyFile as X0,mkdir as Jf,readFile as Yf,rm as Hf,writeFile as Z0}from"fs/promises";import{dirname as Wf,extname as z0,isAbsolute as em,resolve as tm,resolve as Kt}from"path";import{build as Io,transform as rm}from"esbuild";var Uo=(e=0)=>t=>`\x1B[${t+e}m`,Go=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Jo=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,U={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Yo=Object.keys(U.modifier),jn=Object.keys(U.color),Hn=Object.keys(U.bgColor),Wo=[...jn,...Hn];function QA(){let e=new Map;for(let[t,r]of Object.entries(U)){for(let[n,i]of Object.entries(r))U[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=U[n],e.set(i[0],i[1]);Object.defineProperty(U,t,{value:r,enumerable:!1})}return Object.defineProperty(U,"codes",{value:e,enumerable:!1}),U.color.close="\x1B[39m",U.bgColor.close="\x1B[49m",U.color.ansi=Uo(),U.color.ansi256=Go(),U.color.ansi16m=Jo(),U.bgColor.ansi=Uo(10),U.bgColor.ansi256=Go(10),U.bgColor.ansi16m=Jo(10),Object.defineProperties(U,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>U.rgbToAnsi256(...U.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>U.ansi256ToAnsi(U.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>U.ansi256ToAnsi(U.hexToAnsi256(t)),enumerable:!1}}),U}var RA=QA(),be=RA;import Kn from"node:process";import IA from"node:os";import Vo from"node:tty";function de(e,t=Kn.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:Z}=Kn,xr;de("no-color")||de("no-colors")||de("color=false")||de("color=never")?xr=0:(de("color")||de("colors")||de("color=true")||de("color=always"))&&(xr=1);function TA(){if("FORCE_COLOR"in Z)return Z.FORCE_COLOR==="true"?1:Z.FORCE_COLOR==="false"?0:Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}function DA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function kA(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=TA();n!==void 0&&(xr=n);let i=r?xr:n;if(i===0)return 0;if(r){if(de("color=16m")||de("color=full")||de("color=truecolor"))return 3;if(de("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(Z.TERM==="dumb")return s;if(Kn.platform==="win32"){let o=IA.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in Z)||Z.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Z&&"AGENT_NAME"in Z)return 1;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let o=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:s}function Xo(e,t={}){let r=kA(e,{streamIsTTY:e&&e.isTTY,...t});return DA(r)}var OA={stdout:Xo({isTTY:Vo.isatty(1)}),stderr:Xo({isTTY:Vo.isatty(2)})},Zo=OA;function zo(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function ea(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.slice(i,o?n-1:n)+t+(o?`\r
@@ -26,9 +26,9 @@ import ReactDOM from "react-dom";
26
26
  `,$f=e=>{let t=` ${e} `;ye(I.bgBlue(I.bold(I.white(t))))},kv=e=>{let t=` ${e} `;ye(I.bgRed(I.bold(I.white(t))))},im=async()=>{let e;if(gr("dist")||await Jf("dist"),gr("dist/package.json")?e=JSON.parse(await Yf("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",await Z0("dist/package.json",JSON.stringify(e,null,2))},Uf=(e,t,r)=>{t=Kt(t);let n=bo(t);return{stdin:{contents:e,sourcefile:t,resolveDir:Wf(t),loader:r},outdir:void 0,outfile:n}},Gf=async(e,t,r)=>{e=Kt(e),t=Kt(t);let o=["yarn tailwindcss",r?"":"--minify","--postcss postcss.config.js",`-i ${e}`,`-o ${t}`];gr(Kt(process.cwd(),"tailwind.config.js"))&&o.push("--config tailwind.config.js");let a=he({log:!1,stdio:"ignore"}),l=o.join(" "),{code:c,stdout:u,stderr:A}=await a.run(l);if(c!==0)throw new Error(`Building CSS bundle exited with code ${c} for ${e}.
27
27
  \rTried running: ${l}.
28
28
  \rError: ${u+A}`)},sm=`
29
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
29
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
30
30
  `,Ln=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=!1,jsOnly:o=!1,noWrite:a=!1,stdin:l=void 0,stdinFile:c=void 0})=>{Kf.NODE_ENV=n?"development":"production";let u=pe(Ln);n&&(s=!0);let{cwd:A,srcDir:f,outDir:C}=Co(),_=await xo(),E=JSON.parse(_),x={treeShaking:i,target:r,minify:!n,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:n?"warning":"error",define:{"process.env.NODE_ENV":n?JSON.stringify("development"):JSON.stringify("production")}},v=["esbuild","*.png"],L=Kt(A,"tsconfig.export.json"),q=gr(L),X={...x,tsconfig:q?L:void 0,bundle:i,absWorkingDir:A,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:E?.platform??"node",write:!a,external:i?v:void 0,banner:i?{js:sm}:void 0},B="";if(l){u.log("Building file from stdin",{stdin:l,stdinFile:c,noWrite:a}),c||(ye(I.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof l=="string"&&l.length?B=l:B=await Ro();let b={...x,sourcefile:c,loader:"tsx",banner:void 0,footer:void 0};if(a)return(await rm(B,b)).code;{let k=Uf(B,c,"tsx");await Ke(async()=>await Io({...X,...k}),{start:"Building stdin to dist/.",success:"Built stdin to dist/.",error:"Error building stdin to dist/."}),ye(I.grey("Use --no-write to print to stdout instead."));return}}u.log("Building",{files:e,dev:n,runtimeOnly:s}),$f(`${I.bold("TS Module")} [${Kf.NODE_ENV}]`);let F=To.default.sync(e,{cwd:A}).filter(b=>z0(b)!==".d.ts").map(b=>Kt(b));if(em(e)){F.length||F.push(e);let b=e.replace(f,C).replace(qt,".js").replace(gt,".js");u.log("Cleaning emitted file:",{outfile:b}),await Hf(b,{force:!0})}else u.log("Cleaning old output:",{outDir:C}),await Hf(C,{force:!0,recursive:!0});let R=F.filter(b=>gt.test(b));u.log("Compiling TSX files:",{tsxJsxInput:R});let w=R.filter(b=>!b.endsWith(".d.ts"));await Ke(async()=>await Promise.all(w.map(async b=>{let k=await Yf(b,"utf-8"),ue=nm+k,p=Uf(ue,b,"tsx");await Io({...X,...p})})),{start:"Compiling TSX files.",success:"Compiled TSX files.",error:"Failed to compile TSX files."});let N=F.filter(b=>qt.test(b)).filter(b=>!gt.test(b));u.log("Compiling TS files:",{tsJsInput:N}),await Ke(async()=>await Io({...X,entryPoints:N.filter(b=>!b.endsWith(".d.ts"))}),{start:"Compiling TS/JS files.",success:"Compiled TS/JS files.",error:"Failed to compile TS/JS files."});let ee=F.filter(b=>!Pf.test(b));if(await Ke(async()=>{for(let b of ee){let k=bo(b);u.log("Copying non-source file:",{file:b,emittedFile:k}),await Jf(Wf(k),{recursive:!0}),await X0(b,k,V0.COPYFILE_FICLONE)}},{start:"Copying non-source files to dist/.",success:"Copied non-source files to dist/.",error:"Failed to copy non-source files to dist/."}),!process.env.NO_REWRITES){let b=e.replace(f,C).replace(/^(\.\/)?src\//,"dist/").replace(qt,".js").replace(gt,".js");u.log("Normalizing import specifiers in emitted JS.",{emittedJs:b}),await Ke(async()=>await On(b.endsWith(".js")?b:`${b}.js`),{start:"Normalizing import specifiers.",success:"Normalized import specifiers.",error:"Failed to normalize import specifiers."}),await On(b.endsWith(".js")?b:`${b}.js`)}if(await im()&&He('Forced "type": "module" in output.').succeed(),!s){if(!o)if(gr(tm(t))){u.log("Building styles for production.");let{style:b="./dist/bundle.css"}=E;if(u.log("Building style bundle.",{bundleInput:t,bundleOutput:b,dev:n}),await Ke(async()=>await Gf(t,b,n),{start:"Bundling styles with Tailwind.",success:"Bundled styles with Tailwind.",error:"Failed to bundle styles."}),i){u.log("Bundling all styles.");let k=To.default.sync("dist/**/*.css");await Ke(async()=>await Promise.all(k.map(async ue=>await Gf(ue,ue,n))),{start:"Bundling emitted styles",success:`Bundled all styles to ${I.bold(b)}.`,error:"Failed to bundle styles."})}}else ye(I.grey(`Bundle styles not found for this project.
31
- \rChecked: `+I.bold(t)));$f("Running post-build setup."),await Ke(async()=>await vo(),{start:"Generating type declarations.",success:`Generated declarations for ${F.length} files.`,error:"Failed to generate type declarations."}),ye(I.green("Build complete."))}};import{resolve as Zf}from"path";var um=Ne(en(),1);import{copyFile as jv,mkdir as cm}from"fs/promises";import{dirname as Kv,resolve as Do}from"path";var Xf={"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},Vf={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:Xf,scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build",prepublishOnly:"yarn test",lint:"eslint src --fix"}},files:["tsconfig.json",".eslintrc","ava.config.mjs"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},$t={default:Vf,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{...Xf,"./*":"./dist/components/*/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"}},files:["next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^18.2.0","react-dom@^18.2.0"],devDependencies:[...Vf.devDependencies,"@types/react@^18.0.23","@types/react-dom@^18.0.7","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as om,resolve as am}from"path";import{fileURLToPath as lm}from"url";var Pn=am(om(lm(import.meta.url)),"..");var fm=e=>Do(Pn,`./templates/${e}`),ko=async({template:e,targetDir:t=process.cwd()})=>{let r=he(),n=fm(e),i=Do(t);await cm(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};var Oo=async({template:e,targetDir:t=process.cwd()})=>{let r=Do(t),n=$t[e].packageJson;return await kn(r,n)},Lo=async({template:e,targetDir:t=process.cwd()})=>{let r=he({cwd:t}),n=[...$t.default.dependencies],i=[...$t.default.devDependencies];switch(e){case"react":n.push(...$t.react.dependencies),i.push(...$t.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),i.length&&await r.run(`yarn add -D ${i.join(" ")}`)};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var ix=async(e,{react:t=!1})=>{let r=He(`Creating new module ${I.blueBright(e)}.`).start(),n={template:"default",targetDir:e};if(await ko(n),await Oo(n),t){let s={template:"react",targetDir:e};await ko(s),await Oo(s)}await kn(Zf(process.cwd(),e),{name:e}),r.succeed("Project created."),await Lo({template:"default",targetDir:e}),t&&await Lo({template:"react",targetDir:e}),r.succeed("Dependencies installed."),await he({cwd:Zf(e)}).run("git init"),r.succeed("Set up as Git repository.")};import{relative as wm,resolve as Sm}from"path";import{existsSync as Qm}from"fs";import{lstat as Rm}from"fs/promises";var mA=Ne(gA(),1);var _A=()=>{console.clear()},EA=e=>{ye(`
31
+ \rChecked: `+I.bold(t)));$f("Running post-build setup."),await Ke(async()=>await vo(),{start:"Generating type declarations.",success:`Generated declarations for ${F.length} files.`,error:"Failed to generate type declarations."}),ye(I.green("Build complete."))}};import{resolve as Zf}from"path";var um=Ne(en(),1);import{copyFile as jv,mkdir as cm}from"fs/promises";import{dirname as Kv,resolve as Do}from"path";var Xf={"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},Vf={packageJson:{type:"module",platform:"node",engines:{node:">=14"},types:"dist/index.d.ts",files:["dist"],exports:Xf,scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build",prepublishOnly:"yarn test",lint:"eslint src --fix"}},files:["tsconfig.json",".eslintrc",".gitignore","tsconfig.export.json","LICENSE","ava.config.mjs"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},$t={default:Vf,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{...Xf,"./*":"./dist/components/*/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"}},files:["next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^18.2.0","react-dom@^18.2.0"],devDependencies:[...Vf.devDependencies,"@types/react@^18.0.23","@types/react-dom@^18.0.7","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as om,resolve as am}from"path";import{fileURLToPath as lm}from"url";var Pn=am(om(lm(import.meta.url)),"..");var fm=e=>Do(Pn,`./templates/${e}`),ko=async({template:e,targetDir:t=process.cwd()})=>{let r=he(),n=fm(e),i=Do(t);await cm(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};var Oo=async({template:e,targetDir:t=process.cwd()})=>{let r=Do(t),n=$t[e].packageJson;return await kn(r,n)},Lo=async({template:e,targetDir:t=process.cwd()})=>{let r=he({cwd:t}),n=[...$t.default.dependencies],i=[...$t.default.devDependencies];switch(e){case"react":n.push(...$t.react.dependencies),i.push(...$t.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),i.length&&await r.run(`yarn add -D ${i.join(" ")}`)};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var ix=async(e,{react:t=!1})=>{let r=He(`Creating new module ${I.blueBright(e)}.`).start(),n={template:"default",targetDir:e};if(await ko(n),await Oo(n),t){let s={template:"react",targetDir:e};await ko(s),await Oo(s)}await kn(Zf(process.cwd(),e),{name:e}),r.succeed("Project created."),await Lo({template:"default",targetDir:e}),t&&await Lo({template:"react",targetDir:e}),r.succeed("Dependencies installed."),await he({cwd:Zf(e)}).run("git init"),r.succeed("Set up as Git repository.")};import{relative as wm,resolve as Sm}from"path";import{existsSync as Qm}from"fs";import{lstat as Rm}from"fs/promises";var mA=Ne(gA(),1);var _A=()=>{console.clear()},EA=e=>{ye(`
32
32
  `,I.gray(`Built ${I.bold(e)}.`),`
33
33
  `,I.blue(new Date().toLocaleString()))},_x=async()=>{let e=process.cwd(),t=he();process.platform!=="win32"&&await t.run("clear"),_A(),await Ln({dev:!0}),EA("src/**/*"),(0,mA.default)(Sm(e,"src"),{recursive:!0}).on("change",async(r,n)=>{if(!Qm(n)||(await Rm(n)).isDirectory())return;_A();let a=Date.now();try{await Ln({dev:!0,runtimeOnly:!0,input:n})}catch(c){ye("ERROR:",c)}let l=Date.now()-a;He(I.blueBright(`Dev refresh finished in ${I.bold(`${l}ms`)}.`)).succeed(),EA(wm(e,n))})};import{pathToFileURL as Im}from"url";import{resolve as Tm}from"path";var vx=async()=>{let e=Tm(Pn,"dist/loader/index.js"),t=["--no-warnings","--loader",Im(e).href,...process.argv.slice(2)],r=he({stdio:"inherit"}),{code:n}=await r.run(`node ${t.join(" ")}`);process.exit(n??0)};export{kv as bannerError,$f as bannerLog,Ln as build,ix as create,_x as dev,vx as execute,On as normalizeImportSpecifiers};
34
34
  /*!
package/dist/utils/cwd.js CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
2
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
3
3
 
4
4
  import{extname as se,resolve as h}from"path";var v=/\.[mc]?tsx?(?=\?|$)/;var M=/\.([mc])?[tj]sx$/;var f={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},K={".mts":{...f,loader:"ts"},".jsx":{...f,loader:"jsx"},".tsx":{...f,loader:"tsx"},".cts":{...f,loader:"ts"},".ts":{...f,loader:"ts"},".json":{...f,loader:"json"}},ce=Object.keys(K);import{existsSync as U}from"fs";var S=(t=0)=>e=>`\x1B[${e+t}m`,B=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,I=(t=0)=>(e,r,o)=>`\x1B[${38+t};2;${e};${r};${o}m`,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},j=Object.keys(i.modifier),T=Object.keys(i.color),E=Object.keys(i.bgColor),F=[...T,...E];function W(){let t=new Map;for(let[e,r]of Object.entries(i)){for(let[o,n]of Object.entries(r))i[o]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[o]=i[o],t.set(n[0],n[1]);Object.defineProperty(i,e,{value:r,enumerable:!1})}return Object.defineProperty(i,"codes",{value:t,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi=S(),i.color.ansi256=B(),i.color.ansi16m=I(),i.bgColor.ansi=S(10),i.bgColor.ansi256=B(10),i.bgColor.ansi16m=I(10),Object.defineProperties(i,{rgbToAnsi256:{value(e,r,o){return e===r&&r===o?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(o/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[o]=r;o.length===3&&(o=[...o].map(s=>s+s).join(""));let n=Number.parseInt(o,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:e=>i.rgbToAnsi256(...i.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,o,n;if(e>=232)r=((e-232)*10+8)/255,o=r,n=r;else{e-=16;let d=e%36;r=Math.floor(e/36)/5,o=Math.floor(d/6)/5,n=d%6/5}let s=Math.max(r,o,n)*2;if(s===0)return 30;let l=30+(Math.round(n)<<2|Math.round(o)<<1|Math.round(r));return s===2&&(l+=60),l},enumerable:!1},rgbToAnsi:{value:(e,r,o)=>i.ansi256ToAnsi(i.rgbToAnsi256(e,r,o)),enumerable:!1},hexToAnsi:{value:e=>i.ansi256ToAnsi(i.hexToAnsi256(e)),enumerable:!1}}),i}var J=W(),a=J;import C from"node:process";import z from"node:os";import _ from"node:tty";function u(t,e=C.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",o=e.indexOf(r+t),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}var{env:c}=C,x;u("no-color")||u("no-colors")||u("color=false")||u("color=never")?x=0:(u("color")||u("colors")||u("color=true")||u("color=always"))&&(x=1);function H(){if("FORCE_COLOR"in c)return c.FORCE_COLOR==="true"?1:c.FORCE_COLOR==="false"?0:c.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(c.FORCE_COLOR,10),3)}function X(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function q(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let o=H();o!==void 0&&(x=o);let n=r?x:o;if(n===0)return 0;if(r){if(u("color=16m")||u("color=full")||u("color=truecolor"))return 3;if(u("color=256"))return 2}if(t&&!e&&n===void 0)return 0;let s=n||0;if(c.TERM==="dumb")return s;if(C.platform==="win32"){let l=z.release().split(".");return Number(l[0])>=10&&Number(l[2])>=10586?Number(l[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(l=>l in c)||c.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in c&&"AGENT_NAME"in c)return 1;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let l=Number.parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return l>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:s}function L(t,e={}){let r=q(t,{streamIsTTY:t&&t.isTTY,...e});return X(r)}var Q={stdout:L({isTTY:_.isatty(1)}),stderr:L({isTTY:_.isatty(2)})},w=Q;function P(t,e,r){let o=t.indexOf(e);if(o===-1)return t;let n=e.length,s=0,l="";do l+=t.slice(s,o)+e+r,s=o+n,o=t.indexOf(e,s);while(o!==-1);return l+=t.slice(s),l}function k(t,e,r,o){let n=0,s="";do{let l=t[o-1]==="\r";s+=t.slice(n,l?o-1:o)+e+(l?`\r
5
5
  `:`
@@ -1,4 +1,4 @@
1
1
 
2
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
2
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
3
3
 
4
4
  import{readFile as o,writeFile as c}from"fs/promises";import{resolve as a}from"path";var r=async(e=process.cwd())=>{let s=a(e,"package.json");return await o(s,"utf-8")},i=async(e=process.cwd())=>{let s=await r(e);return JSON.parse(s)},k=async(e=process.cwd(),s)=>{let n=a(e,"package.json"),t=await i(e);return Object.assign(t,s),await c(n,JSON.stringify(t,null,2),"utf-8"),t};export{i as getPackageJson,r as getPackageJsonFile,k as setPackageJsonFields};