From 882a33fd80288941f014f69e0182eb55eb43ca8f Mon Sep 17 00:00:00 2001 From: Kelly Mears Date: Mon, 12 Aug 2024 02:34:27 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix(patch):=20windows=20bootstra?= =?UTF-8?q?p=20path=20resolution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bundles/@yarnpkg/plugin-bud.js | 32 +++++++++---------- .../src/bootstrap/files/index.ts | 3 +- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js b/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js index c62ceb8d5c..c0d37d0efb 100644 --- a/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js +++ b/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js @@ -3,30 +3,30 @@ module.exports = { name: "@yarnpkg/plugin-bud", factory: function (require) { -var plugin=(()=>{var n1=Object.create;var Es=Object.defineProperty;var r1=Object.getOwnPropertyDescriptor;var i1=Object.getOwnPropertyNames;var s1=Object.getPrototypeOf,o1=Object.prototype.hasOwnProperty;var q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var u1=(t,n)=>()=>(t&&(n=t(t=0)),n);var L=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),Ca=(t,n)=>{for(var i in n)Es(t,i,{get:n[i],enumerable:!0})},Np=(t,n,i,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of i1(n))!o1.call(t,u)&&u!==i&&Es(t,u,{get:()=>n[u],enumerable:!(o=r1(n,u))||o.enumerable});return t};var Fe=(t,n,i)=>(i=t!=null?n1(s1(t)):{},Np(n||!t||!t.__esModule?Es(i,"default",{value:t,enumerable:!0}):i,t)),a1=t=>Np(Es({},"__esModule",{value:!0}),t);var Bp={};Ca(Bp,{path:()=>se,root:()=>Pa});var qp,Hp,Ra,Pa,se,ft=u1(()=>{qp=q("path"),Hp=q("url"),Ra={},Pa=(Ra?.url&&typeof Ra.url<"u"?(0,Hp.fileURLToPath)(Ra.url):__dirname).split("sources").shift(),se=(...t)=>t.length?(0,qp.join)(Pa,...t):Pa});var Oa=L((gL,jp)=>{"use strict";var c1=q("stream"),Up=c1.PassThrough,l1=Array.prototype.slice;jp.exports=f1;function f1(){let t=[],n=l1.call(arguments),i=!1,o=n[n.length-1];o&&!Array.isArray(o)&&o.pipe==null?n.pop():o={};let u=o.end!==!1,c=o.pipeError===!0;o.objectMode==null&&(o.objectMode=!0),o.highWaterMark==null&&(o.highWaterMark=64*1024);let f=Up(o);function h(){for(let v=0,S=arguments.length;v0||(i=!1,g())}function H(O){function D(){O.removeListener("merge2UnpipeEnd",D),O.removeListener("end",D),c&&O.removeListener("error",j),x()}function j(W){f.emit("error",W)}if(O._readableState.endEmitted)return x();O.on("merge2UnpipeEnd",D),O.on("end",D),c&&O.on("error",j),O.pipe(f,{end:!1}),O.resume()}for(let O=0;O{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.splitWhen=pr.flatten=void 0;function h1(t){return t.reduce((n,i)=>[].concat(n,i),[])}pr.flatten=h1;function p1(t,n){let i=[[]],o=0;for(let u of t)n(u)?(o++,i[o]=[]):i[o].push(u);return i}pr.splitWhen=p1});var Xp=L(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.isEnoentCodeError=void 0;function d1(t){return t.code==="ENOENT"}As.isEnoentCodeError=d1});var zp=L(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.createDirentFromStats=void 0;var Ia=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function g1(t,n){return new Ia(t,n)}Cs.createDirentFromStats=g1});var Vp=L(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.convertPosixPathToPattern=Ne.convertWindowsPathToPattern=Ne.convertPathToPattern=Ne.escapePosixPath=Ne.escapeWindowsPath=Ne.escape=Ne.removeLeadingDotSegment=Ne.makeAbsolute=Ne.unixify=void 0;var m1=q("os"),_1=q("path"),Yp=m1.platform()==="win32",y1=2,v1=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,b1=/(\\?)([(){}]|^!|[!+@](?=\())/g,w1=/^\\\\([.?])/,x1=/\\(?![!()+@{}])/g;function S1(t){return t.replace(/\\/g,"/")}Ne.unixify=S1;function E1(t,n){return _1.resolve(t,n)}Ne.makeAbsolute=E1;function A1(t){if(t.charAt(0)==="."){let n=t.charAt(1);if(n==="/"||n==="\\")return t.slice(y1)}return t}Ne.removeLeadingDotSegment=A1;Ne.escape=Yp?La:ka;function La(t){return t.replace(b1,"\\$2")}Ne.escapeWindowsPath=La;function ka(t){return t.replace(v1,"\\$2")}Ne.escapePosixPath=ka;Ne.convertPathToPattern=Yp?Qp:Zp;function Qp(t){return La(t).replace(w1,"//$1").replace(x1,"/")}Ne.convertWindowsPathToPattern=Qp;function Zp(t){return ka(t)}Ne.convertPosixPathToPattern=Zp});var ed=L((bL,Jp)=>{Jp.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}});var rd=L((wL,nd)=>{var C1=ed(),td={"{":"}","(":")","[":"]"},R1=function(t){if(t[0]==="!")return!0;for(var n=0,i=-2,o=-2,u=-2,c=-2,f=-2;nn&&(f===-1||f>o||(f=t.indexOf("\\",n),f===-1||f>o)))||u!==-1&&t[n]==="{"&&t[n+1]!=="}"&&(u=t.indexOf("}",n),u>n&&(f=t.indexOf("\\",n),f===-1||f>u))||c!==-1&&t[n]==="("&&t[n+1]==="?"&&/[:!=]/.test(t[n+2])&&t[n+3]!==")"&&(c=t.indexOf(")",n),c>n&&(f=t.indexOf("\\",n),f===-1||f>c))||i!==-1&&t[n]==="("&&t[n+1]!=="|"&&(ii&&(f=t.indexOf("\\",i),f===-1||f>c))))return!0;if(t[n]==="\\"){var h=t[n+1];n+=2;var g=td[h];if(g){var _=t.indexOf(g,n);_!==-1&&(n=_+1)}if(t[n]==="!")return!0}else n++}return!1},P1=function(t){if(t[0]==="!")return!0;for(var n=0;n{"use strict";var T1=rd(),O1=q("path").posix.dirname,I1=q("os").platform()==="win32",Da="/",L1=/\\/g,k1=/[\{\[].*[\}\]]$/,D1=/(^|[^\\])([\{\[]|\([^\)]+$)/,N1=/\\([\!\*\?\|\[\]\(\)\{\}])/g;id.exports=function(n,i){var o=Object.assign({flipBackslashes:!0},i);o.flipBackslashes&&I1&&n.indexOf(Da)<0&&(n=n.replace(L1,Da)),k1.test(n)&&(n+=Da),n+="a";do n=O1(n);while(T1(n)||D1.test(n));return n.replace(N1,"$1")}});var Rs=L(At=>{"use strict";At.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;At.find=(t,n)=>t.nodes.find(i=>i.type===n);At.exceedsLimit=(t,n,i=1,o)=>o===!1||!At.isInteger(t)||!At.isInteger(n)?!1:(Number(n)-Number(t))/Number(i)>=o;At.escapeNode=(t,n=0,i)=>{let o=t.nodes[n];!o||(i&&o.type===i||o.type==="open"||o.type==="close")&&o.escaped!==!0&&(o.value="\\"+o.value,o.escaped=!0)};At.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;At.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;At.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;At.reduce=t=>t.reduce((n,i)=>(i.type==="text"&&n.push(i.value),i.type==="range"&&(i.type="text"),n),[]);At.flatten=(...t)=>{let n=[],i=o=>{for(let u=0;u{"use strict";var od=Rs();ud.exports=(t,n={})=>{let i=(o,u={})=>{let c=n.escapeInvalid&&od.isInvalidBrace(u),f=o.invalid===!0&&n.escapeInvalid===!0,h="";if(o.value)return(c||f)&&od.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let g of o.nodes)h+=i(g);return h};return i(t)}});var cd=L((AL,ad)=>{"use strict";ad.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var yd=L((CL,_d)=>{"use strict";var ld=cd(),Mn=(t,n,i)=>{if(ld(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(n===void 0||t===n)return String(t);if(ld(n)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...i};typeof o.strictZeros=="boolean"&&(o.relaxZeros=o.strictZeros===!1);let u=String(o.relaxZeros),c=String(o.shorthand),f=String(o.capture),h=String(o.wrap),g=t+":"+n+"="+u+c+f+h;if(Mn.cache.hasOwnProperty(g))return Mn.cache[g].result;let _=Math.min(t,n),v=Math.max(t,n);if(Math.abs(_-v)===1){let D=t+"|"+n;return o.capture?`(${D})`:o.wrap===!1?D:`(?:${D})`}let S=md(t)||md(n),x={min:t,max:n,a:_,b:v},H=[],O=[];if(S&&(x.isPadded=S,x.maxLen=String(x.max).length),_<0){let D=v<0?Math.abs(v):1;O=fd(D,Math.abs(_),x,o),_=x.a=0}return v>=0&&(H=fd(_,v,x,o)),x.negatives=O,x.positives=H,x.result=$1(O,H,o),o.capture===!0?x.result=`(${x.result})`:o.wrap!==!1&&H.length+O.length>1&&(x.result=`(?:${x.result})`),Mn.cache[g]=x,x.result};function $1(t,n,i){let o=Na(t,n,"-",!1,i)||[],u=Na(n,t,"",!1,i)||[],c=Na(t,n,"-?",!0,i)||[];return o.concat(c).concat(u).join("|")}function M1(t,n){let i=1,o=1,u=pd(t,i),c=new Set([n]);for(;t<=u&&u<=n;)c.add(u),i+=1,u=pd(t,i);for(u=dd(n+1,o)-1;t1&&h.count.pop(),h.count.push(v.count[0]),h.string=h.pattern+gd(h.count),f=_+1;continue}i.isPadded&&(S=W1(_,i,o)),v.string=S+v.pattern+gd(v.count),c.push(v),f=_+1,h=v}return c}function Na(t,n,i,o,u){let c=[];for(let f of t){let{string:h}=f;!o&&!hd(n,"string",h)&&c.push(i+h),o&&hd(n,"string",h)&&c.push(i+h)}return c}function q1(t,n){let i=[];for(let o=0;on?1:n>t?-1:0}function hd(t,n,i){return t.some(o=>o[n]===i)}function pd(t,n){return Number(String(t).slice(0,-n)+"9".repeat(n))}function dd(t,n){return t-t%Math.pow(10,n)}function gd(t){let[n=0,i=""]=t;return i||n>1?`{${n+(i?","+i:"")}}`:""}function B1(t,n,i){return`[${t}${n-t===1?"":"-"}${n}]`}function md(t){return/^-?(0+)\d/.test(t)}function W1(t,n,i){if(!n.isPadded)return t;let o=Math.abs(n.maxLen-String(t).length),u=i.relaxZeros!==!1;switch(o){case 0:return"";case 1:return u?"0?":"0";case 2:return u?"0{0,2}":"00";default:return u?`0{0,${o}}`:`0{${o}}`}}Mn.cache={};Mn.clearCache=()=>Mn.cache={};_d.exports=Mn});var Fa=L((RL,Cd)=>{"use strict";var U1=q("util"),wd=yd(),vd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),G1=t=>n=>t===!0?Number(n):String(n),$a=t=>typeof t=="number"||typeof t=="string"&&t!=="",gi=t=>Number.isInteger(+t),Ma=t=>{let n=`${t}`,i=-1;if(n[0]==="-"&&(n=n.slice(1)),n==="0")return!1;for(;n[++i]==="0";);return i>0},j1=(t,n,i)=>typeof t=="string"||typeof n=="string"?!0:i.stringify===!0,K1=(t,n,i)=>{if(n>0){let o=t[0]==="-"?"-":"";o&&(t=t.slice(1)),t=o+t.padStart(o?n-1:n,"0")}return i===!1?String(t):t},bd=(t,n)=>{let i=t[0]==="-"?"-":"";for(i&&(t=t.slice(1),n--);t.length{t.negatives.sort((f,h)=>fh?1:0),t.positives.sort((f,h)=>fh?1:0);let i=n.capture?"":"?:",o="",u="",c;return t.positives.length&&(o=t.positives.join("|")),t.negatives.length&&(u=`-(${i}${t.negatives.join("|")})`),o&&u?c=`${o}|${u}`:c=o||u,n.wrap?`(${i}${c})`:c},xd=(t,n,i,o)=>{if(i)return wd(t,n,{wrap:!1,...o});let u=String.fromCharCode(t);if(t===n)return u;let c=String.fromCharCode(n);return`[${u}-${c}]`},Sd=(t,n,i)=>{if(Array.isArray(t)){let o=i.wrap===!0,u=i.capture?"":"?:";return o?`(${u}${t.join("|")})`:t.join("|")}return wd(t,n,i)},Ed=(...t)=>new RangeError("Invalid range arguments: "+U1.inspect(...t)),Ad=(t,n,i)=>{if(i.strictRanges===!0)throw Ed([t,n]);return[]},z1=(t,n)=>{if(n.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Y1=(t,n,i=1,o={})=>{let u=Number(t),c=Number(n);if(!Number.isInteger(u)||!Number.isInteger(c)){if(o.strictRanges===!0)throw Ed([t,n]);return[]}u===0&&(u=0),c===0&&(c=0);let f=u>c,h=String(t),g=String(n),_=String(i);i=Math.max(Math.abs(i),1);let v=Ma(h)||Ma(g)||Ma(_),S=v?Math.max(h.length,g.length,_.length):0,x=v===!1&&j1(t,n,o)===!1,H=o.transform||G1(x);if(o.toRegex&&i===1)return xd(bd(t,S),bd(n,S),!0,o);let O={negatives:[],positives:[]},D=ee=>O[ee<0?"negatives":"positives"].push(Math.abs(ee)),j=[],W=0;for(;f?u>=c:u<=c;)o.toRegex===!0&&i>1?D(u):j.push(K1(H(u,W),S,x)),u=f?u-i:u+i,W++;return o.toRegex===!0?i>1?X1(O,o):Sd(j,null,{wrap:!1,...o}):j},Q1=(t,n,i=1,o={})=>{if(!gi(t)&&t.length>1||!gi(n)&&n.length>1)return Ad(t,n,o);let u=o.transform||(x=>String.fromCharCode(x)),c=`${t}`.charCodeAt(0),f=`${n}`.charCodeAt(0),h=c>f,g=Math.min(c,f),_=Math.max(c,f);if(o.toRegex&&i===1)return xd(g,_,!1,o);let v=[],S=0;for(;h?c>=f:c<=f;)v.push(u(c,S)),c=h?c-i:c+i,S++;return o.toRegex===!0?Sd(v,null,{wrap:!1,options:o}):v},Ts=(t,n,i,o={})=>{if(n==null&&$a(t))return[t];if(!$a(t)||!$a(n))return Ad(t,n,o);if(typeof i=="function")return Ts(t,n,1,{transform:i});if(vd(i))return Ts(t,n,0,i);let u={...o};return u.capture===!0&&(u.wrap=!0),i=i||u.step||1,gi(i)?gi(t)&&gi(n)?Y1(t,n,i,u):Q1(t,n,Math.max(Math.abs(i),1),u):i!=null&&!vd(i)?z1(i,u):Ts(t,n,1,i)};Cd.exports=Ts});var Td=L((PL,Pd)=>{"use strict";var Z1=Fa(),Rd=Rs(),V1=(t,n={})=>{let i=(o,u={})=>{let c=Rd.isInvalidBrace(u),f=o.invalid===!0&&n.escapeInvalid===!0,h=c===!0||f===!0,g=n.escapeInvalid===!0?"\\":"",_="";if(o.isOpen===!0||o.isClose===!0)return g+o.value;if(o.type==="open")return h?g+o.value:"(";if(o.type==="close")return h?g+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":h?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let v=Rd.reduce(o.nodes),S=Z1(...v,{...n,wrap:!1,toRegex:!0});if(S.length!==0)return v.length>1&&S.length>1?`(${S})`:S}if(o.nodes)for(let v of o.nodes)_+=i(v,o);return _};return i(t)};Pd.exports=V1});var Ld=L((TL,Id)=>{"use strict";var J1=Fa(),Od=Ps(),dr=Rs(),Fn=(t="",n="",i=!1)=>{let o=[];if(t=[].concat(t),n=[].concat(n),!n.length)return t;if(!t.length)return i?dr.flatten(n).map(u=>`{${u}}`):n;for(let u of t)if(Array.isArray(u))for(let c of u)o.push(Fn(c,n,i));else for(let c of n)i===!0&&typeof c=="string"&&(c=`{${c}}`),o.push(Array.isArray(c)?Fn(u,c,i):u+c);return dr.flatten(o)},eC=(t,n={})=>{let i=n.rangeLimit===void 0?1e3:n.rangeLimit,o=(u,c={})=>{u.queue=[];let f=c,h=c.queue;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,h=f.queue;if(u.invalid||u.dollar){h.push(Fn(h.pop(),Od(u,n)));return}if(u.type==="brace"&&u.invalid!==!0&&u.nodes.length===2){h.push(Fn(h.pop(),["{}"]));return}if(u.nodes&&u.ranges>0){let S=dr.reduce(u.nodes);if(dr.exceedsLimit(...S,n.step,i))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let x=J1(...S,n);x.length===0&&(x=Od(u,n)),h.push(Fn(h.pop(),x)),u.nodes=[];return}let g=dr.encloseBrace(u),_=u.queue,v=u;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,_=v.queue;for(let S=0;S{"use strict";kd.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:` -`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var qd=L((IL,Fd)=>{"use strict";var tC=Ps(),{MAX_LENGTH:Nd,CHAR_BACKSLASH:qa,CHAR_BACKTICK:nC,CHAR_COMMA:rC,CHAR_DOT:iC,CHAR_LEFT_PARENTHESES:sC,CHAR_RIGHT_PARENTHESES:oC,CHAR_LEFT_CURLY_BRACE:uC,CHAR_RIGHT_CURLY_BRACE:aC,CHAR_LEFT_SQUARE_BRACKET:$d,CHAR_RIGHT_SQUARE_BRACKET:Md,CHAR_DOUBLE_QUOTE:cC,CHAR_SINGLE_QUOTE:lC,CHAR_NO_BREAK_SPACE:fC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:hC}=Dd(),pC=(t,n={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let i=n||{},o=typeof i.maxLength=="number"?Math.min(Nd,i.maxLength):Nd;if(t.length>o)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${o})`);let u={type:"root",input:t,nodes:[]},c=[u],f=u,h=u,g=0,_=t.length,v=0,S=0,x,H={},O=()=>t[v++],D=j=>{if(j.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&j.type==="text"){h.value+=j.value;return}return f.nodes.push(j),j.parent=f,j.prev=h,h=j,j};for(D({type:"bos"});v<_;)if(f=c[c.length-1],x=O(),!(x===hC||x===fC)){if(x===qa){D({type:"text",value:(n.keepEscaping?x:"")+O()});continue}if(x===Md){D({type:"text",value:"\\"+x});continue}if(x===$d){g++;let j=!0,W;for(;v<_&&(W=O());){if(x+=W,W===$d){g++;continue}if(W===qa){x+=O();continue}if(W===Md&&(g--,g===0))break}D({type:"text",value:x});continue}if(x===sC){f=D({type:"paren",nodes:[]}),c.push(f),D({type:"text",value:x});continue}if(x===oC){if(f.type!=="paren"){D({type:"text",value:x});continue}f=c.pop(),D({type:"text",value:x}),f=c[c.length-1];continue}if(x===cC||x===lC||x===nC){let j=x,W;for(n.keepQuotes!==!0&&(x="");v<_&&(W=O());){if(W===qa){x+=W+O();continue}if(W===j){n.keepQuotes===!0&&(x+=W);break}x+=W}D({type:"text",value:x});continue}if(x===uC){S++;let W={type:"brace",open:!0,close:!1,dollar:h.value&&h.value.slice(-1)==="$"||f.dollar===!0,depth:S,commas:0,ranges:0,nodes:[]};f=D(W),c.push(f),D({type:"open",value:x});continue}if(x===aC){if(f.type!=="brace"){D({type:"text",value:x});continue}let j="close";f=c.pop(),f.close=!0,D({type:j,value:x}),S--,f=c[c.length-1];continue}if(x===rC&&S>0){if(f.ranges>0){f.ranges=0;let j=f.nodes.shift();f.nodes=[j,{type:"text",value:tC(f)}]}D({type:"comma",value:x}),f.commas++;continue}if(x===iC&&S>0&&f.commas===0){let j=f.nodes;if(S===0||j.length===0){D({type:"text",value:x});continue}if(h.type==="dot"){if(f.range=[],h.value+=x,h.type="range",f.nodes.length!==3&&f.nodes.length!==5){f.invalid=!0,f.ranges=0,h.type="text";continue}f.ranges++,f.args=[];continue}if(h.type==="range"){j.pop();let W=j[j.length-1];W.value+=h.value+x,h=W,f.ranges--;continue}D({type:"dot",value:x});continue}D({type:"text",value:x})}do if(f=c.pop(),f.type!=="root"){f.nodes.forEach(ee=>{ee.nodes||(ee.type==="open"&&(ee.isOpen=!0),ee.type==="close"&&(ee.isClose=!0),ee.nodes||(ee.type="text"),ee.invalid=!0)});let j=c[c.length-1],W=j.nodes.indexOf(f);j.nodes.splice(W,1,...f.nodes)}while(c.length>0);return D({type:"eos"}),u};Fd.exports=pC});var Wd=L((LL,Bd)=>{"use strict";var Hd=Ps(),dC=Td(),gC=Ld(),mC=qd(),ht=(t,n={})=>{let i=[];if(Array.isArray(t))for(let o of t){let u=ht.create(o,n);Array.isArray(u)?i.push(...u):i.push(u)}else i=[].concat(ht.create(t,n));return n&&n.expand===!0&&n.nodupes===!0&&(i=[...new Set(i)]),i};ht.parse=(t,n={})=>mC(t,n);ht.stringify=(t,n={})=>Hd(typeof t=="string"?ht.parse(t,n):t,n);ht.compile=(t,n={})=>(typeof t=="string"&&(t=ht.parse(t,n)),dC(t,n));ht.expand=(t,n={})=>{typeof t=="string"&&(t=ht.parse(t,n));let i=gC(t,n);return n.noempty===!0&&(i=i.filter(Boolean)),n.nodupes===!0&&(i=[...new Set(i)]),i};ht.create=(t,n={})=>t===""||t.length<3?[t]:n.expand!==!0?ht.compile(t,n):ht.expand(t,n);Bd.exports=ht});var mi=L((kL,Xd)=>{"use strict";var _C=q("path"),Wt="\\\\/",Ud=`[^${Wt}]`,sn="\\.",yC="\\+",vC="\\?",Os="\\/",bC="(?=.)",Gd="[^/]",Ha=`(?:${Os}|$)`,jd=`(?:^|${Os})`,Ba=`${sn}{1,2}${Ha}`,wC=`(?!${sn})`,xC=`(?!${jd}${Ba})`,SC=`(?!${sn}{0,1}${Ha})`,EC=`(?!${Ba})`,AC=`[^.${Os}]`,CC=`${Gd}*?`,Kd={DOT_LITERAL:sn,PLUS_LITERAL:yC,QMARK_LITERAL:vC,SLASH_LITERAL:Os,ONE_CHAR:bC,QMARK:Gd,END_ANCHOR:Ha,DOTS_SLASH:Ba,NO_DOT:wC,NO_DOTS:xC,NO_DOT_SLASH:SC,NO_DOTS_SLASH:EC,QMARK_NO_DOT:AC,STAR:CC,START_ANCHOR:jd},RC={...Kd,SLASH_LITERAL:`[${Wt}]`,QMARK:Ud,STAR:`${Ud}*?`,DOTS_SLASH:`${sn}{1,2}(?:[${Wt}]|$)`,NO_DOT:`(?!${sn})`,NO_DOTS:`(?!(?:^|[${Wt}])${sn}{1,2}(?:[${Wt}]|$))`,NO_DOT_SLASH:`(?!${sn}{0,1}(?:[${Wt}]|$))`,NO_DOTS_SLASH:`(?!${sn}{1,2}(?:[${Wt}]|$))`,QMARK_NO_DOT:`[^.${Wt}]`,START_ANCHOR:`(?:^|[${Wt}])`,END_ANCHOR:`(?:[${Wt}]|$)`},PC={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"};Xd.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:PC,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:_C.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?RC:Kd}}});var _i=L(rt=>{"use strict";var TC=q("path"),OC=process.platform==="win32",{REGEX_BACKSLASH:IC,REGEX_REMOVE_BACKSLASH:LC,REGEX_SPECIAL_CHARS:kC,REGEX_SPECIAL_CHARS_GLOBAL:DC}=mi();rt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);rt.hasRegexChars=t=>kC.test(t);rt.isRegexChar=t=>t.length===1&&rt.hasRegexChars(t);rt.escapeRegex=t=>t.replace(DC,"\\$1");rt.toPosixSlashes=t=>t.replace(IC,"/");rt.removeBackslashes=t=>t.replace(LC,n=>n==="\\"?"":n);rt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};rt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:OC===!0||TC.sep==="\\";rt.escapeLast=(t,n,i)=>{let o=t.lastIndexOf(n,i);return o===-1?t:t[o-1]==="\\"?rt.escapeLast(t,n,o-1):`${t.slice(0,o)}\\${t.slice(o)}`};rt.removePrefix=(t,n={})=>{let i=t;return i.startsWith("./")&&(i=i.slice(2),n.prefix="./"),i};rt.wrapOutput=(t,n={},i={})=>{let o=i.contains?"":"^",u=i.contains?"":"$",c=`${o}(?:${t})${u}`;return n.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var tg=L((NL,eg)=>{"use strict";var zd=_i(),{CHAR_ASTERISK:Wa,CHAR_AT:NC,CHAR_BACKWARD_SLASH:yi,CHAR_COMMA:$C,CHAR_DOT:Ua,CHAR_EXCLAMATION_MARK:Ga,CHAR_FORWARD_SLASH:Jd,CHAR_LEFT_CURLY_BRACE:ja,CHAR_LEFT_PARENTHESES:Ka,CHAR_LEFT_SQUARE_BRACKET:MC,CHAR_PLUS:FC,CHAR_QUESTION_MARK:Yd,CHAR_RIGHT_CURLY_BRACE:qC,CHAR_RIGHT_PARENTHESES:Qd,CHAR_RIGHT_SQUARE_BRACKET:HC}=mi(),Zd=t=>t===Jd||t===yi,Vd=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},BC=(t,n)=>{let i=n||{},o=t.length-1,u=i.parts===!0||i.scanToEnd===!0,c=[],f=[],h=[],g=t,_=-1,v=0,S=0,x=!1,H=!1,O=!1,D=!1,j=!1,W=!1,ee=!1,z=!1,Y=!1,N=!1,te=0,Q,G,ue={value:"",depth:0,isGlob:!1},Pe=()=>_>=o,I=()=>g.charCodeAt(_+1),ve=()=>(Q=G,g.charCodeAt(++_));for(;_0&&(Mt=g.slice(0,v),g=g.slice(v),S-=v),me&&O===!0&&S>0?(me=g.slice(0,S),A=g.slice(S)):O===!0?(me="",A=g):me=g,me&&me!==""&&me!=="/"&&me!==g&&Zd(me.charCodeAt(me.length-1))&&(me=me.slice(0,-1)),i.unescape===!0&&(A&&(A=zd.removeBackslashes(A)),me&&ee===!0&&(me=zd.removeBackslashes(me)));let C={prefix:Mt,input:t,start:v,base:me,glob:A,isBrace:x,isBracket:H,isGlob:O,isExtglob:D,isGlobstar:j,negated:z,negatedExtglob:Y};if(i.tokens===!0&&(C.maxDepth=0,Zd(G)||f.push(ue),C.tokens=f),i.parts===!0||i.tokens===!0){let Be;for(let fe=0;fe{"use strict";var Is=mi(),pt=_i(),{MAX_LENGTH:Ls,POSIX_REGEX_SOURCE:WC,REGEX_NON_SPECIAL_CHARS:UC,REGEX_SPECIAL_CHARS_BACKREF:GC,REPLACEMENTS:ng}=Is,jC=(t,n)=>{if(typeof n.expandRange=="function")return n.expandRange(...t,n);t.sort();let i=`[${t.join("-")}]`;try{new RegExp(i)}catch{return t.map(u=>pt.escapeRegex(u)).join("..")}return i},gr=(t,n)=>`Missing ${t}: "${n}" - use "\\\\${n}" to match literal characters`,Xa=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=ng[t]||t;let i={...n},o=typeof i.maxLength=="number"?Math.min(Ls,i.maxLength):Ls,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);let c={type:"bos",value:"",output:i.prepend||""},f=[c],h=i.capture?"":"?:",g=pt.isWindows(n),_=Is.globChars(g),v=Is.extglobChars(_),{DOT_LITERAL:S,PLUS_LITERAL:x,SLASH_LITERAL:H,ONE_CHAR:O,DOTS_SLASH:D,NO_DOT:j,NO_DOT_SLASH:W,NO_DOTS_SLASH:ee,QMARK:z,QMARK_NO_DOT:Y,STAR:N,START_ANCHOR:te}=_,Q=F=>`(${h}(?:(?!${te}${F.dot?D:S}).)*?)`,G=i.dot?"":j,ue=i.dot?z:Y,Pe=i.bash===!0?Q(i):N;i.capture&&(Pe=`(${Pe})`),typeof i.noext=="boolean"&&(i.noextglob=i.noext);let I={input:t,index:-1,start:0,dot:i.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:f};t=pt.removePrefix(t,I),u=t.length;let ve=[],me=[],Mt=[],A=c,C,Be=()=>I.index===u-1,fe=I.peek=(F=1)=>t[I.index+F],Ie=I.advance=()=>t[++I.index]||"",mt=()=>t.slice(I.index+1),Ye=(F="",_e=0)=>{I.consumed+=F,I.index+=_e},Kn=F=>{I.output+=F.output!=null?F.output:F.value,Ye(F.value)},cn=()=>{let F=1;for(;fe()==="!"&&(fe(2)!=="("||fe(3)==="?");)Ie(),I.start++,F++;return F%2===0?!1:(I.negated=!0,I.start++,!0)},Xt=F=>{I[F]++,Mt.push(F)},zt=F=>{I[F]--,Mt.pop()},oe=F=>{if(A.type==="globstar"){let _e=I.braces>0&&(F.type==="comma"||F.type==="brace"),$=F.extglob===!0||ve.length&&(F.type==="pipe"||F.type==="paren");F.type!=="slash"&&F.type!=="paren"&&!_e&&!$&&(I.output=I.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=Pe,I.output+=A.output)}if(ve.length&&F.type!=="paren"&&(ve[ve.length-1].inner+=F.value),(F.value||F.output)&&Kn(F),A&&A.type==="text"&&F.type==="text"){A.value+=F.value,A.output=(A.output||"")+F.value;return}F.prev=A,f.push(F),A=F},Ft=(F,_e)=>{let $={...v[_e],conditions:1,inner:""};$.prev=A,$.parens=I.parens,$.output=I.output;let Z=(i.capture?"(":"")+$.open;Xt("parens"),oe({type:F,value:_e,output:I.output?"":O}),oe({type:"paren",extglob:!0,value:Ie(),output:Z}),ve.push($)},iu=F=>{let _e=F.close+(i.capture?")":""),$;if(F.type==="negate"){let Z=Pe;if(F.inner&&F.inner.length>1&&F.inner.includes("/")&&(Z=Q(i)),(Z!==Pe||Be()||/^\)+$/.test(mt()))&&(_e=F.close=`)$))${Z}`),F.inner.includes("*")&&($=mt())&&/^\.[^\\/.]+$/.test($)){let be=Xa($,{...n,fastpaths:!1}).output;_e=F.close=`)${be})${Z})`}F.prev.type==="bos"&&(I.negatedExtglob=!0)}oe({type:"paren",extglob:!0,value:C,output:_e}),zt("parens")};if(i.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let F=!1,_e=t.replace(GC,($,Z,be,We,we,Xn)=>We==="\\"?(F=!0,$):We==="?"?Z?Z+We+(we?z.repeat(we.length):""):Xn===0?ue+(we?z.repeat(we.length):""):z.repeat(be.length):We==="."?S.repeat(be.length):We==="*"?Z?Z+We+(we?Pe:""):Pe:Z?$:`\\${$}`);return F===!0&&(i.unescape===!0?_e=_e.replace(/\\/g,""):_e=_e.replace(/\\+/g,$=>$.length%2===0?"\\\\":$?"\\":"")),_e===t&&i.contains===!0?(I.output=t,I):(I.output=pt.wrapOutput(_e,I,n),I)}for(;!Be();){if(C=Ie(),C==="\0")continue;if(C==="\\"){let $=fe();if($==="/"&&i.bash!==!0||$==="."||$===";")continue;if(!$){C+="\\",oe({type:"text",value:C});continue}let Z=/^\\+/.exec(mt()),be=0;if(Z&&Z[0].length>2&&(be=Z[0].length,I.index+=be,be%2!==0&&(C+="\\")),i.unescape===!0?C=Ie():C+=Ie(),I.brackets===0){oe({type:"text",value:C});continue}}if(I.brackets>0&&(C!=="]"||A.value==="["||A.value==="[^")){if(i.posix!==!1&&C===":"){let $=A.value.slice(1);if($.includes("[")&&(A.posix=!0,$.includes(":"))){let Z=A.value.lastIndexOf("["),be=A.value.slice(0,Z),We=A.value.slice(Z+2),we=WC[We];if(we){A.value=be+we,I.backtrack=!0,Ie(),!c.output&&f.indexOf(A)===1&&(c.output=O);continue}}}(C==="["&&fe()!==":"||C==="-"&&fe()==="]")&&(C=`\\${C}`),C==="]"&&(A.value==="["||A.value==="[^")&&(C=`\\${C}`),i.posix===!0&&C==="!"&&A.value==="["&&(C="^"),A.value+=C,Kn({value:C});continue}if(I.quotes===1&&C!=='"'){C=pt.escapeRegex(C),A.value+=C,Kn({value:C});continue}if(C==='"'){I.quotes=I.quotes===1?0:1,i.keepQuotes===!0&&oe({type:"text",value:C});continue}if(C==="("){Xt("parens"),oe({type:"paren",value:C});continue}if(C===")"){if(I.parens===0&&i.strictBrackets===!0)throw new SyntaxError(gr("opening","("));let $=ve[ve.length-1];if($&&I.parens===$.parens+1){iu(ve.pop());continue}oe({type:"paren",value:C,output:I.parens?")":"\\)"}),zt("parens");continue}if(C==="["){if(i.nobracket===!0||!mt().includes("]")){if(i.nobracket!==!0&&i.strictBrackets===!0)throw new SyntaxError(gr("closing","]"));C=`\\${C}`}else Xt("brackets");oe({type:"bracket",value:C});continue}if(C==="]"){if(i.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){oe({type:"text",value:C,output:`\\${C}`});continue}if(I.brackets===0){if(i.strictBrackets===!0)throw new SyntaxError(gr("opening","["));oe({type:"text",value:C,output:`\\${C}`});continue}zt("brackets");let $=A.value.slice(1);if(A.posix!==!0&&$[0]==="^"&&!$.includes("/")&&(C=`/${C}`),A.value+=C,Kn({value:C}),i.literalBrackets===!1||pt.hasRegexChars($))continue;let Z=pt.escapeRegex(A.value);if(I.output=I.output.slice(0,-A.value.length),i.literalBrackets===!0){I.output+=Z,A.value=Z;continue}A.value=`(${h}${Z}|${A.value})`,I.output+=A.value;continue}if(C==="{"&&i.nobrace!==!0){Xt("braces");let $={type:"brace",value:C,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};me.push($),oe($);continue}if(C==="}"){let $=me[me.length-1];if(i.nobrace===!0||!$){oe({type:"text",value:C,output:C});continue}let Z=")";if($.dots===!0){let be=f.slice(),We=[];for(let we=be.length-1;we>=0&&(f.pop(),be[we].type!=="brace");we--)be[we].type!=="dots"&&We.unshift(be[we].value);Z=jC(We,i),I.backtrack=!0}if($.comma!==!0&&$.dots!==!0){let be=I.output.slice(0,$.outputIndex),We=I.tokens.slice($.tokensIndex);$.value=$.output="\\{",C=Z="\\}",I.output=be;for(let we of We)I.output+=we.output||we.value}oe({type:"brace",value:C,output:Z}),zt("braces"),me.pop();continue}if(C==="|"){ve.length>0&&ve[ve.length-1].conditions++,oe({type:"text",value:C});continue}if(C===","){let $=C,Z=me[me.length-1];Z&&Mt[Mt.length-1]==="braces"&&(Z.comma=!0,$="|"),oe({type:"comma",value:C,output:$});continue}if(C==="/"){if(A.type==="dot"&&I.index===I.start+1){I.start=I.index+1,I.consumed="",I.output="",f.pop(),A=c;continue}oe({type:"slash",value:C,output:H});continue}if(C==="."){if(I.braces>0&&A.type==="dot"){A.value==="."&&(A.output=S);let $=me[me.length-1];A.type="dots",A.output+=C,A.value+=C,$.dots=!0;continue}if(I.braces+I.parens===0&&A.type!=="bos"&&A.type!=="slash"){oe({type:"text",value:C,output:S});continue}oe({type:"dot",value:C,output:S});continue}if(C==="?"){if(!(A&&A.value==="(")&&i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Ft("qmark",C);continue}if(A&&A.type==="paren"){let Z=fe(),be=C;if(Z==="<"&&!pt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(Z)||Z==="<"&&!/<([!=]|\w+>)/.test(mt()))&&(be=`\\${C}`),oe({type:"text",value:C,output:be});continue}if(i.dot!==!0&&(A.type==="slash"||A.type==="bos")){oe({type:"qmark",value:C,output:Y});continue}oe({type:"qmark",value:C,output:z});continue}if(C==="!"){if(i.noextglob!==!0&&fe()==="("&&(fe(2)!=="?"||!/[!=<:]/.test(fe(3)))){Ft("negate",C);continue}if(i.nonegate!==!0&&I.index===0){cn();continue}}if(C==="+"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Ft("plus",C);continue}if(A&&A.value==="("||i.regex===!1){oe({type:"plus",value:C,output:x});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||I.parens>0){oe({type:"plus",value:C});continue}oe({type:"plus",value:x});continue}if(C==="@"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){oe({type:"at",extglob:!0,value:C,output:""});continue}oe({type:"text",value:C});continue}if(C!=="*"){(C==="$"||C==="^")&&(C=`\\${C}`);let $=UC.exec(mt());$&&(C+=$[0],I.index+=$[0].length),oe({type:"text",value:C});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=C,A.output=Pe,I.backtrack=!0,I.globstar=!0,Ye(C);continue}let F=mt();if(i.noextglob!==!0&&/^\([^?]/.test(F)){Ft("star",C);continue}if(A.type==="star"){if(i.noglobstar===!0){Ye(C);continue}let $=A.prev,Z=$.prev,be=$.type==="slash"||$.type==="bos",We=Z&&(Z.type==="star"||Z.type==="globstar");if(i.bash===!0&&(!be||F[0]&&F[0]!=="/")){oe({type:"star",value:C,output:""});continue}let we=I.braces>0&&($.type==="comma"||$.type==="brace"),Xn=ve.length&&($.type==="pipe"||$.type==="paren");if(!be&&$.type!=="paren"&&!we&&!Xn){oe({type:"star",value:C,output:""});continue}for(;F.slice(0,3)==="/**";){let zn=t[I.index+4];if(zn&&zn!=="/")break;F=F.slice(3),Ye("/**",3)}if($.type==="bos"&&Be()){A.type="globstar",A.value+=C,A.output=Q(i),I.output=A.output,I.globstar=!0,Ye(C);continue}if($.type==="slash"&&$.prev.type!=="bos"&&!We&&Be()){I.output=I.output.slice(0,-($.output+A.output).length),$.output=`(?:${$.output}`,A.type="globstar",A.output=Q(i)+(i.strictSlashes?")":"|$)"),A.value+=C,I.globstar=!0,I.output+=$.output+A.output,Ye(C);continue}if($.type==="slash"&&$.prev.type!=="bos"&&F[0]==="/"){let zn=F[1]!==void 0?"|$":"";I.output=I.output.slice(0,-($.output+A.output).length),$.output=`(?:${$.output}`,A.type="globstar",A.output=`${Q(i)}${H}|${H}${zn})`,A.value+=C,I.output+=$.output+A.output,I.globstar=!0,Ye(C+Ie()),oe({type:"slash",value:"/",output:""});continue}if($.type==="bos"&&F[0]==="/"){A.type="globstar",A.value+=C,A.output=`(?:^|${H}|${Q(i)}${H})`,I.output=A.output,I.globstar=!0,Ye(C+Ie()),oe({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-A.output.length),A.type="globstar",A.output=Q(i),A.value+=C,I.output+=A.output,I.globstar=!0,Ye(C);continue}let _e={type:"star",value:C,output:Pe};if(i.bash===!0){_e.output=".*?",(A.type==="bos"||A.type==="slash")&&(_e.output=G+_e.output),oe(_e);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&i.regex===!0){_e.output=C,oe(_e);continue}(I.index===I.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(I.output+=W,A.output+=W):i.dot===!0?(I.output+=ee,A.output+=ee):(I.output+=G,A.output+=G),fe()!=="*"&&(I.output+=O,A.output+=O)),oe(_e)}for(;I.brackets>0;){if(i.strictBrackets===!0)throw new SyntaxError(gr("closing","]"));I.output=pt.escapeLast(I.output,"["),zt("brackets")}for(;I.parens>0;){if(i.strictBrackets===!0)throw new SyntaxError(gr("closing",")"));I.output=pt.escapeLast(I.output,"("),zt("parens")}for(;I.braces>0;){if(i.strictBrackets===!0)throw new SyntaxError(gr("closing","}"));I.output=pt.escapeLast(I.output,"{"),zt("braces")}if(i.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&oe({type:"maybe_slash",value:"",output:`${H}?`}),I.backtrack===!0){I.output="";for(let F of I.tokens)I.output+=F.output!=null?F.output:F.value,F.suffix&&(I.output+=F.suffix)}return I};Xa.fastpaths=(t,n)=>{let i={...n},o=typeof i.maxLength=="number"?Math.min(Ls,i.maxLength):Ls,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);t=ng[t]||t;let c=pt.isWindows(n),{DOT_LITERAL:f,SLASH_LITERAL:h,ONE_CHAR:g,DOTS_SLASH:_,NO_DOT:v,NO_DOTS:S,NO_DOTS_SLASH:x,STAR:H,START_ANCHOR:O}=Is.globChars(c),D=i.dot?S:v,j=i.dot?x:v,W=i.capture?"":"?:",ee={negated:!1,prefix:""},z=i.bash===!0?".*?":H;i.capture&&(z=`(${z})`);let Y=G=>G.noglobstar===!0?z:`(${W}(?:(?!${O}${G.dot?_:f}).)*?)`,N=G=>{switch(G){case"*":return`${D}${g}${z}`;case".*":return`${f}${g}${z}`;case"*.*":return`${D}${z}${f}${g}${z}`;case"*/*":return`${D}${z}${h}${g}${j}${z}`;case"**":return D+Y(i);case"**/*":return`(?:${D}${Y(i)}${h})?${j}${g}${z}`;case"**/*.*":return`(?:${D}${Y(i)}${h})?${j}${z}${f}${g}${z}`;case"**/.*":return`(?:${D}${Y(i)}${h})?${f}${g}${z}`;default:{let ue=/^(.*?)\.(\w+)$/.exec(G);if(!ue)return;let Pe=N(ue[1]);return Pe?Pe+f+ue[2]:void 0}}},te=pt.removePrefix(t,ee),Q=N(te);return Q&&i.strictSlashes!==!0&&(Q+=`${h}?`),Q};rg.exports=Xa});var og=L((ML,sg)=>{"use strict";var KC=q("path"),XC=tg(),za=ig(),Ya=_i(),zC=mi(),YC=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,n,i=!1)=>{if(Array.isArray(t)){let v=t.map(x=>De(x,n,i));return x=>{for(let H of v){let O=H(x);if(O)return O}return!1}}let o=YC(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let u=n||{},c=Ya.isWindows(n),f=o?De.compileRe(t,n):De.makeRe(t,n,!1,!0),h=f.state;delete f.state;let g=()=>!1;if(u.ignore){let v={...n,ignore:null,onMatch:null,onResult:null};g=De(u.ignore,v,i)}let _=(v,S=!1)=>{let{isMatch:x,match:H,output:O}=De.test(v,f,n,{glob:t,posix:c}),D={glob:t,state:h,regex:f,posix:c,input:v,output:O,match:H,isMatch:x};return typeof u.onResult=="function"&&u.onResult(D),x===!1?(D.isMatch=!1,S?D:!1):g(v)?(typeof u.onIgnore=="function"&&u.onIgnore(D),D.isMatch=!1,S?D:!1):(typeof u.onMatch=="function"&&u.onMatch(D),S?D:!0)};return i&&(_.state=h),_};De.test=(t,n,i,{glob:o,posix:u}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let c=i||{},f=c.format||(u?Ya.toPosixSlashes:null),h=t===o,g=h&&f?f(t):t;return h===!1&&(g=f?f(t):t,h=g===o),(h===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?h=De.matchBase(t,n,i,u):h=n.exec(g)),{isMatch:Boolean(h),match:h,output:g}};De.matchBase=(t,n,i,o=Ya.isWindows(i))=>(n instanceof RegExp?n:De.makeRe(n,i)).test(KC.basename(t));De.isMatch=(t,n,i)=>De(n,i)(t);De.parse=(t,n)=>Array.isArray(t)?t.map(i=>De.parse(i,n)):za(t,{...n,fastpaths:!1});De.scan=(t,n)=>XC(t,n);De.compileRe=(t,n,i=!1,o=!1)=>{if(i===!0)return t.output;let u=n||{},c=u.contains?"":"^",f=u.contains?"":"$",h=`${c}(?:${t.output})${f}`;t&&t.negated===!0&&(h=`^(?!${h}).*$`);let g=De.toRegex(h,n);return o===!0&&(g.state=t),g};De.makeRe=(t,n={},i=!1,o=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return n.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(u.output=za.fastpaths(t,n)),u.output||(u=za(t,n)),De.compileRe(u,n,i,o)};De.toRegex=(t,n)=>{try{let i=n||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(i){if(n&&n.debug===!0)throw i;return/$^/}};De.constants=zC;sg.exports=De});var ag=L((FL,ug)=>{"use strict";ug.exports=og()});var pg=L((qL,hg)=>{"use strict";var lg=q("util"),fg=Wd(),Ut=ag(),Qa=_i(),cg=t=>t===""||t==="./",Re=(t,n,i)=>{n=[].concat(n),t=[].concat(t);let o=new Set,u=new Set,c=new Set,f=0,h=v=>{c.add(v.output),i&&i.onResult&&i.onResult(v)};for(let v=0;v!o.has(v));if(i&&_.length===0){if(i.failglob===!0)throw new Error(`No matches found for "${n.join(", ")}"`);if(i.nonull===!0||i.nullglob===!0)return i.unescape?n.map(v=>v.replace(/\\/g,"")):n}return _};Re.match=Re;Re.matcher=(t,n)=>Ut(t,n);Re.isMatch=(t,n,i)=>Ut(n,i)(t);Re.any=Re.isMatch;Re.not=(t,n,i={})=>{n=[].concat(n).map(String);let o=new Set,u=[],c=h=>{i.onResult&&i.onResult(h),u.push(h.output)},f=new Set(Re(t,n,{...i,onResult:c}));for(let h of u)f.has(h)||o.add(h);return[...o]};Re.contains=(t,n,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${lg.inspect(t)}"`);if(Array.isArray(n))return n.some(o=>Re.contains(t,o,i));if(typeof n=="string"){if(cg(t)||cg(n))return!1;if(t.includes(n)||t.startsWith("./")&&t.slice(2).includes(n))return!0}return Re.isMatch(t,n,{...i,contains:!0})};Re.matchKeys=(t,n,i)=>{if(!Qa.isObject(t))throw new TypeError("Expected the first argument to be an object");let o=Re(Object.keys(t),n,i),u={};for(let c of o)u[c]=t[c];return u};Re.some=(t,n,i)=>{let o=[].concat(t);for(let u of[].concat(n)){let c=Ut(String(u),i);if(o.some(f=>c(f)))return!0}return!1};Re.every=(t,n,i)=>{let o=[].concat(t);for(let u of[].concat(n)){let c=Ut(String(u),i);if(!o.every(f=>c(f)))return!1}return!0};Re.all=(t,n,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${lg.inspect(t)}"`);return[].concat(n).every(o=>Ut(o,i)(t))};Re.capture=(t,n,i)=>{let o=Qa.isWindows(i),c=Ut.makeRe(String(t),{...i,capture:!0}).exec(o?Qa.toPosixSlashes(n):n);if(c)return c.slice(1).map(f=>f===void 0?"":f)};Re.makeRe=(...t)=>Ut.makeRe(...t);Re.scan=(...t)=>Ut.scan(...t);Re.parse=(t,n)=>{let i=[];for(let o of[].concat(t||[]))for(let u of fg(String(o),n))i.push(Ut.parse(u,n));return i};Re.braces=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");return n&&n.nobrace===!0||!/\{.*\}/.test(t)?[t]:fg(t,n)};Re.braceExpand=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Re.braces(t,{...n,expand:!0})};hg.exports=Re});var wg=L(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.removeDuplicateSlashes=ne.matchAny=ne.convertPatternsToRe=ne.makeRe=ne.getPatternParts=ne.expandBraceExpansion=ne.expandPatternsWithBraceExpansion=ne.isAffectDepthOfReadingPattern=ne.endsWithSlashGlobStar=ne.hasGlobStar=ne.getBaseDirectory=ne.isPatternRelatedToParentDirectory=ne.getPatternsOutsideCurrentDirectory=ne.getPatternsInsideCurrentDirectory=ne.getPositivePatterns=ne.getNegativePatterns=ne.isPositivePattern=ne.isNegativePattern=ne.convertToNegativePattern=ne.convertToPositivePattern=ne.isDynamicPattern=ne.isStaticPattern=void 0;var QC=q("path"),ZC=sd(),Za=pg(),dg="**",VC="\\",JC=/[*?]|^!/,eR=/\[[^[]*]/,tR=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,nR=/[!*+?@]\([^(]*\)/,rR=/,|\.\./,iR=/(?!^)\/{2,}/g;function gg(t,n={}){return!mg(t,n)}ne.isStaticPattern=gg;function mg(t,n={}){return t===""?!1:!!(n.caseSensitiveMatch===!1||t.includes(VC)||JC.test(t)||eR.test(t)||tR.test(t)||n.extglob!==!1&&nR.test(t)||n.braceExpansion!==!1&&sR(t))}ne.isDynamicPattern=mg;function sR(t){let n=t.indexOf("{");if(n===-1)return!1;let i=t.indexOf("}",n+1);if(i===-1)return!1;let o=t.slice(n,i);return rR.test(o)}function oR(t){return ks(t)?t.slice(1):t}ne.convertToPositivePattern=oR;function uR(t){return"!"+t}ne.convertToNegativePattern=uR;function ks(t){return t.startsWith("!")&&t[1]!=="("}ne.isNegativePattern=ks;function _g(t){return!ks(t)}ne.isPositivePattern=_g;function aR(t){return t.filter(ks)}ne.getNegativePatterns=aR;function cR(t){return t.filter(_g)}ne.getPositivePatterns=cR;function lR(t){return t.filter(n=>!Va(n))}ne.getPatternsInsideCurrentDirectory=lR;function fR(t){return t.filter(Va)}ne.getPatternsOutsideCurrentDirectory=fR;function Va(t){return t.startsWith("..")||t.startsWith("./..")}ne.isPatternRelatedToParentDirectory=Va;function hR(t){return ZC(t,{flipBackslashes:!1})}ne.getBaseDirectory=hR;function pR(t){return t.includes(dg)}ne.hasGlobStar=pR;function yg(t){return t.endsWith("/"+dg)}ne.endsWithSlashGlobStar=yg;function dR(t){let n=QC.basename(t);return yg(t)||gg(n)}ne.isAffectDepthOfReadingPattern=dR;function gR(t){return t.reduce((n,i)=>n.concat(vg(i)),[])}ne.expandPatternsWithBraceExpansion=gR;function vg(t){let n=Za.braces(t,{expand:!0,nodupes:!0});return n.sort((i,o)=>i.length-o.length),n.filter(i=>i!=="")}ne.expandBraceExpansion=vg;function mR(t,n){let{parts:i}=Za.scan(t,Object.assign(Object.assign({},n),{parts:!0}));return i.length===0&&(i=[t]),i[0].startsWith("/")&&(i[0]=i[0].slice(1),i.unshift("")),i}ne.getPatternParts=mR;function bg(t,n){return Za.makeRe(t,n)}ne.makeRe=bg;function _R(t,n){return t.map(i=>bg(i,n))}ne.convertPatternsToRe=_R;function yR(t,n){return n.some(i=>i.test(t))}ne.matchAny=yR;function vR(t){return t.replace(iR,"/")}ne.removeDuplicateSlashes=vR});var Sg=L(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.merge=void 0;var bR=Oa();function wR(t){let n=bR(t);return t.forEach(i=>{i.once("error",o=>n.emit("error",o))}),n.once("close",()=>xg(t)),n.once("end",()=>xg(t)),n}Ds.merge=wR;function xg(t){t.forEach(n=>n.emit("close"))}});var Eg=L(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.isEmpty=mr.isString=void 0;function xR(t){return typeof t=="string"}mr.isString=xR;function SR(t){return t===""}mr.isEmpty=SR});var on=L(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.string=Xe.stream=Xe.pattern=Xe.path=Xe.fs=Xe.errno=Xe.array=void 0;var ER=Kp();Xe.array=ER;var AR=Xp();Xe.errno=AR;var CR=zp();Xe.fs=CR;var RR=Vp();Xe.path=RR;var PR=wg();Xe.pattern=PR;var TR=Sg();Xe.stream=TR;var OR=Eg();Xe.string=OR});var Pg=L(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var kt=on();function IR(t,n){let i=Ag(t,n),o=Ag(n.ignore,n),u=Cg(i),c=Rg(i,o),f=u.filter(v=>kt.pattern.isStaticPattern(v,n)),h=u.filter(v=>kt.pattern.isDynamicPattern(v,n)),g=Ja(f,c,!1),_=Ja(h,c,!0);return g.concat(_)}ze.generate=IR;function Ag(t,n){let i=t;return n.braceExpansion&&(i=kt.pattern.expandPatternsWithBraceExpansion(i)),n.baseNameMatch&&(i=i.map(o=>o.includes("/")?o:`**/${o}`)),i.map(o=>kt.pattern.removeDuplicateSlashes(o))}function Ja(t,n,i){let o=[],u=kt.pattern.getPatternsOutsideCurrentDirectory(t),c=kt.pattern.getPatternsInsideCurrentDirectory(t),f=ec(u),h=ec(c);return o.push(...tc(f,n,i)),"."in h?o.push(nc(".",c,n,i)):o.push(...tc(h,n,i)),o}ze.convertPatternsToTasks=Ja;function Cg(t){return kt.pattern.getPositivePatterns(t)}ze.getPositivePatterns=Cg;function Rg(t,n){return kt.pattern.getNegativePatterns(t).concat(n).map(kt.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=Rg;function ec(t){let n={};return t.reduce((i,o)=>{let u=kt.pattern.getBaseDirectory(o);return u in i?i[u].push(o):i[u]=[o],i},n)}ze.groupPatternsByBaseDirectory=ec;function tc(t,n,i){return Object.keys(t).map(o=>nc(o,t[o],n,i))}ze.convertPatternGroupsToTasks=tc;function nc(t,n,i,o){return{dynamic:o,positive:n,negative:i,base:t,patterns:[].concat(n,i.map(kt.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=nc});var Og=L(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.read=void 0;function LR(t,n,i){n.fs.lstat(t,(o,u)=>{if(o!==null){Tg(i,o);return}if(!u.isSymbolicLink()||!n.followSymbolicLink){rc(i,u);return}n.fs.stat(t,(c,f)=>{if(c!==null){if(n.throwErrorOnBrokenSymbolicLink){Tg(i,c);return}rc(i,u);return}n.markSymbolicLink&&(f.isSymbolicLink=()=>!0),rc(i,f)})})}Ns.read=LR;function Tg(t,n){t(n)}function rc(t,n){t(null,n)}});var Ig=L($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.read=void 0;function kR(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let o=n.fs.statSync(t);return n.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw o}}$s.read=kR});var Lg=L(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.createFileSystemAdapter=bn.FILE_SYSTEM_ADAPTER=void 0;var Ms=q("fs");bn.FILE_SYSTEM_ADAPTER={lstat:Ms.lstat,stat:Ms.stat,lstatSync:Ms.lstatSync,statSync:Ms.statSync};function DR(t){return t===void 0?bn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},bn.FILE_SYSTEM_ADAPTER),t)}bn.createFileSystemAdapter=DR});var kg=L(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var NR=Lg(),ic=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=NR.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n??i}};sc.default=ic});var qn=L(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.statSync=wn.stat=wn.Settings=void 0;var Dg=Og(),$R=Ig(),oc=kg();wn.Settings=oc.default;function MR(t,n,i){if(typeof n=="function"){Dg.read(t,uc(),n);return}Dg.read(t,uc(n),i)}wn.stat=MR;function FR(t,n){let i=uc(n);return $R.read(t,i)}wn.statSync=FR;function uc(t={}){return t instanceof oc.default?t:new oc.default(t)}});var Mg=L((QL,$g)=>{var Ng;$g.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Ng||(Ng=Promise.resolve())).then(t).catch(n=>setTimeout(()=>{throw n},0))});var qg=L((ZL,Fg)=>{Fg.exports=HR;var qR=Mg();function HR(t,n){let i,o,u,c=!0;Array.isArray(t)?(i=[],o=t.length):(u=Object.keys(t),i={},o=u.length);function f(g){function _(){n&&n(g,i),n=null}c?qR(_):_()}function h(g,_,v){i[g]=v,(--o===0||_)&&f(_)}o?u?u.forEach(function(g){t[g](function(_,v){h(g,_,v)})}):t.forEach(function(g,_){g(function(v,S){h(_,v,S)})}):f(null),c=!1}});var ac=L(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Fs=process.versions.node.split(".");if(Fs[0]===void 0||Fs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Hg=Number.parseInt(Fs[0],10),BR=Number.parseInt(Fs[1],10),Bg=10,WR=10,UR=Hg>Bg,GR=Hg===Bg&&BR>=WR;qs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=UR||GR});var Wg=L(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.createDirentFromStats=void 0;var cc=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function jR(t,n){return new cc(t,n)}Hs.createDirentFromStats=jR});var lc=L(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.fs=void 0;var KR=Wg();Bs.fs=KR});var fc=L(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.joinPathSegments=void 0;function XR(t,n,i){return t.endsWith(i)?t+n:t+i+n}Ws.joinPathSegments=XR});var zg=L(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.readdir=xn.readdirWithFileTypes=xn.read=void 0;var zR=qn(),Ug=qg(),YR=ac(),Gg=lc(),jg=fc();function QR(t,n,i){if(!n.stats&&YR.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Kg(t,n,i);return}Xg(t,n,i)}xn.read=QR;function Kg(t,n,i){n.fs.readdir(t,{withFileTypes:!0},(o,u)=>{if(o!==null){Us(i,o);return}let c=u.map(h=>({dirent:h,name:h.name,path:jg.joinPathSegments(t,h.name,n.pathSegmentSeparator)}));if(!n.followSymbolicLinks){hc(i,c);return}let f=c.map(h=>ZR(h,n));Ug(f,(h,g)=>{if(h!==null){Us(i,h);return}hc(i,g)})})}xn.readdirWithFileTypes=Kg;function ZR(t,n){return i=>{if(!t.dirent.isSymbolicLink()){i(null,t);return}n.fs.stat(t.path,(o,u)=>{if(o!==null){if(n.throwErrorOnBrokenSymbolicLink){i(o);return}i(null,t);return}t.dirent=Gg.fs.createDirentFromStats(t.name,u),i(null,t)})}}function Xg(t,n,i){n.fs.readdir(t,(o,u)=>{if(o!==null){Us(i,o);return}let c=u.map(f=>{let h=jg.joinPathSegments(t,f,n.pathSegmentSeparator);return g=>{zR.stat(h,n.fsStatSettings,(_,v)=>{if(_!==null){g(_);return}let S={name:f,path:h,dirent:Gg.fs.createDirentFromStats(f,v)};n.stats&&(S.stats=v),g(null,S)})}});Ug(c,(f,h)=>{if(f!==null){Us(i,f);return}hc(i,h)})})}xn.readdir=Xg;function Us(t,n){t(n)}function hc(t,n){t(null,n)}});var Jg=L(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.readdir=Sn.readdirWithFileTypes=Sn.read=void 0;var VR=qn(),JR=ac(),Yg=lc(),Qg=fc();function eP(t,n){return!n.stats&&JR.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Zg(t,n):Vg(t,n)}Sn.read=eP;function Zg(t,n){return n.fs.readdirSync(t,{withFileTypes:!0}).map(o=>{let u={dirent:o,name:o.name,path:Qg.joinPathSegments(t,o.name,n.pathSegmentSeparator)};if(u.dirent.isSymbolicLink()&&n.followSymbolicLinks)try{let c=n.fs.statSync(u.path);u.dirent=Yg.fs.createDirentFromStats(u.name,c)}catch(c){if(n.throwErrorOnBrokenSymbolicLink)throw c}return u})}Sn.readdirWithFileTypes=Zg;function Vg(t,n){return n.fs.readdirSync(t).map(o=>{let u=Qg.joinPathSegments(t,o,n.pathSegmentSeparator),c=VR.statSync(u,n.fsStatSettings),f={name:o,path:u,dirent:Yg.fs.createDirentFromStats(o,c)};return n.stats&&(f.stats=c),f})}Sn.readdir=Vg});var em=L(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.createFileSystemAdapter=En.FILE_SYSTEM_ADAPTER=void 0;var _r=q("fs");En.FILE_SYSTEM_ADAPTER={lstat:_r.lstat,stat:_r.stat,lstatSync:_r.lstatSync,statSync:_r.statSync,readdir:_r.readdir,readdirSync:_r.readdirSync};function tP(t){return t===void 0?En.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},En.FILE_SYSTEM_ADAPTER),t)}En.createFileSystemAdapter=tP});var tm=L(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var nP=q("path"),rP=qn(),iP=em(),pc=class{constructor(n={}){this._options=n,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=iP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,nP.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new rP.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(n,i){return n??i}};dc.default=pc});var Gs=L(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.Settings=An.scandirSync=An.scandir=void 0;var nm=zg(),sP=Jg(),gc=tm();An.Settings=gc.default;function oP(t,n,i){if(typeof n=="function"){nm.read(t,mc(),n);return}nm.read(t,mc(n),i)}An.scandir=oP;function uP(t,n){let i=mc(n);return sP.read(t,i)}An.scandirSync=uP;function mc(t={}){return t instanceof gc.default?t:new gc.default(t)}});var im=L((uk,rm)=>{"use strict";function aP(t){var n=new t,i=n;function o(){var c=n;return c.next?n=c.next:(n=new t,i=n),c.next=null,c}function u(c){i.next=c,i=c}return{get:o,release:u}}rm.exports=aP});var om=L((ak,_c)=>{"use strict";var cP=im();function sm(t,n,i){if(typeof t=="function"&&(i=n,n=t,t=null),i<1)throw new Error("fastqueue concurrency must be greater than 1");var o=cP(lP),u=null,c=null,f=0,h=null,g={push:D,drain:Ct,saturated:Ct,pause:v,paused:!1,concurrency:i,running:_,resume:H,idle:O,length:S,getQueue:x,unshift:j,empty:Ct,kill:ee,killAndDrain:z,error:Y};return g;function _(){return f}function v(){g.paused=!0}function S(){for(var N=u,te=0;N;)N=N.next,te++;return te}function x(){for(var N=u,te=[];N;)te.push(N.value),N=N.next;return te}function H(){if(!!g.paused){g.paused=!1;for(var N=0;N{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.joinPathSegments=Gt.replacePathSegmentSeparator=Gt.isAppliedFilter=Gt.isFatalError=void 0;function hP(t,n){return t.errorFilter===null?!0:!t.errorFilter(n)}Gt.isFatalError=hP;function pP(t,n){return t===null||t(n)}Gt.isAppliedFilter=pP;function dP(t,n){return t.split(/[/\\]/).join(n)}Gt.replacePathSegmentSeparator=dP;function gP(t,n,i){return t===""?n:t.endsWith(i)?t+n:t+i+n}Gt.joinPathSegments=gP});var bc=L(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var mP=js(),yc=class{constructor(n,i){this._root=n,this._settings=i,this._root=mP.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};vc.default=yc});var Sc=L(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var _P=q("events"),yP=Gs(),vP=om(),Ks=js(),bP=bc(),wc=class extends bP.default{constructor(n,i){super(n,i),this._settings=i,this._scandir=yP.scandir,this._emitter=new _P.EventEmitter,this._queue=vP(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(n){this._emitter.on("entry",n)}onError(n){this._emitter.once("error",n)}onEnd(n){this._emitter.once("end",n)}_pushToQueue(n,i){let o={directory:n,base:i};this._queue.push(o,u=>{u!==null&&this._handleError(u)})}_worker(n,i){this._scandir(n.directory,this._settings.fsScandirSettings,(o,u)=>{if(o!==null){i(o,void 0);return}for(let c of u)this._handleEntry(c,n.base);i(null,void 0)})}_handleError(n){this._isDestroyed||!Ks.isFatalError(this._settings,n)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",n))}_handleEntry(n,i){if(this._isDestroyed||this._isFatalError)return;let o=n.path;i!==void 0&&(n.path=Ks.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),Ks.isAppliedFilter(this._settings.entryFilter,n)&&this._emitEntry(n),n.dirent.isDirectory()&&Ks.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(o,i===void 0?void 0:n.path)}_emitEntry(n){this._emitter.emit("entry",n)}};xc.default=wc});var um=L(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var wP=Sc(),Ec=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new wP.default(this._root,this._settings),this._storage=[]}read(n){this._reader.onError(i=>{xP(n,i)}),this._reader.onEntry(i=>{this._storage.push(i)}),this._reader.onEnd(()=>{SP(n,this._storage)}),this._reader.read()}};Ac.default=Ec;function xP(t,n){t(n)}function SP(t,n){t(null,n)}});var am=L(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var EP=q("stream"),AP=Sc(),Cc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new AP.default(this._root,this._settings),this._stream=new EP.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Rc.default=Cc});var cm=L(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var CP=Gs(),Xs=js(),RP=bc(),Pc=class extends RP.default{constructor(){super(...arguments),this._scandir=CP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(n,i){this._queue.add({directory:n,base:i})}_handleQueue(){for(let n of this._queue.values())this._handleDirectory(n.directory,n.base)}_handleDirectory(n,i){try{let o=this._scandir(n,this._settings.fsScandirSettings);for(let u of o)this._handleEntry(u,i)}catch(o){this._handleError(o)}}_handleError(n){if(!!Xs.isFatalError(this._settings,n))throw n}_handleEntry(n,i){let o=n.path;i!==void 0&&(n.path=Xs.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),Xs.isAppliedFilter(this._settings.entryFilter,n)&&this._pushToStorage(n),n.dirent.isDirectory()&&Xs.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(o,i===void 0?void 0:n.path)}_pushToStorage(n){this._storage.push(n)}};Tc.default=Pc});var lm=L(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var PP=cm(),Oc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new PP.default(this._root,this._settings)}read(){return this._reader.read()}};Ic.default=Oc});var fm=L(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});var TP=q("path"),OP=Gs(),Lc=class{constructor(n={}){this._options=n,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,TP.sep),this.fsScandirSettings=new OP.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,i){return n??i}};kc.default=Lc});var Ys=L(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.Settings=jt.walkStream=jt.walkSync=jt.walk=void 0;var hm=um(),IP=am(),LP=lm(),Dc=fm();jt.Settings=Dc.default;function kP(t,n,i){if(typeof n=="function"){new hm.default(t,zs()).read(n);return}new hm.default(t,zs(n)).read(i)}jt.walk=kP;function DP(t,n){let i=zs(n);return new LP.default(t,i).read()}jt.walkSync=DP;function NP(t,n){let i=zs(n);return new IP.default(t,i).read()}jt.walkStream=NP;function zs(t={}){return t instanceof Dc.default?t:new Dc.default(t)}});var Qs=L($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var $P=q("path"),MP=qn(),pm=on(),Nc=class{constructor(n){this._settings=n,this._fsStatSettings=new MP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(n){return $P.resolve(this._settings.cwd,n)}_makeEntry(n,i){let o={name:i,path:i,dirent:pm.fs.createDirentFromStats(i,n)};return this._settings.stats&&(o.stats=n),o}_isFatalError(n){return!pm.errno.isEnoentCodeError(n)&&!this._settings.suppressErrors}};$c.default=Nc});var qc=L(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var FP=q("stream"),qP=qn(),HP=Ys(),BP=Qs(),Mc=class extends BP.default{constructor(){super(...arguments),this._walkStream=HP.walkStream,this._stat=qP.stat}dynamic(n,i){return this._walkStream(n,i)}static(n,i){let o=n.map(this._getFullEntryPath,this),u=new FP.PassThrough({objectMode:!0});u._write=(c,f,h)=>this._getEntry(o[c],n[c],i).then(g=>{g!==null&&i.entryFilter(g)&&u.push(g),c===o.length-1&&u.end(),h()}).catch(h);for(let c=0;cthis._makeEntry(u,i)).catch(u=>{if(o.errorFilter(u))return null;throw u})}_getStat(n){return new Promise((i,o)=>{this._stat(n,this._fsStatSettings,(u,c)=>u===null?i(c):o(u))})}};Fc.default=Mc});var dm=L(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var WP=Ys(),UP=Qs(),GP=qc(),Hc=class extends UP.default{constructor(){super(...arguments),this._walkAsync=WP.walk,this._readerStream=new GP.default(this._settings)}dynamic(n,i){return new Promise((o,u)=>{this._walkAsync(n,i,(c,f)=>{c===null?o(f):u(c)})})}async static(n,i){let o=[],u=this._readerStream.static(n,i);return new Promise((c,f)=>{u.once("error",f),u.on("data",h=>o.push(h)),u.once("end",()=>c(o))})}};Bc.default=Hc});var gm=L(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var vi=on(),Wc=class{constructor(n,i,o){this._patterns=n,this._settings=i,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let n of this._patterns){let i=this._getPatternSegments(n),o=this._splitSegmentsIntoSections(i);this._storage.push({complete:o.length<=1,pattern:n,segments:i,sections:o})}}_getPatternSegments(n){return vi.pattern.getPatternParts(n,this._micromatchOptions).map(o=>vi.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:vi.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(n){return vi.array.splitWhen(n,i=>i.dynamic&&vi.pattern.hasGlobStar(i.pattern))}};Uc.default=Wc});var mm=L(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var jP=gm(),Gc=class extends jP.default{match(n){let i=n.split("/"),o=i.length,u=this._storage.filter(c=>!c.complete||c.segments.length>o);for(let c of u){let f=c.sections[0];if(!c.complete&&o>f.length||i.every((g,_)=>{let v=c.segments[_];return!!(v.dynamic&&v.patternRe.test(g)||!v.dynamic&&v.pattern===g)}))return!0}return!1}};jc.default=Gc});var _m=L(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var Zs=on(),KP=mm(),Kc=class{constructor(n,i){this._settings=n,this._micromatchOptions=i}getFilter(n,i,o){let u=this._getMatcher(i),c=this._getNegativePatternsRe(o);return f=>this._filter(n,f,u,c)}_getMatcher(n){return new KP.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let i=n.filter(Zs.pattern.isAffectDepthOfReadingPattern);return Zs.pattern.convertPatternsToRe(i,this._micromatchOptions)}_filter(n,i,o,u){if(this._isSkippedByDeep(n,i.path)||this._isSkippedSymbolicLink(i))return!1;let c=Zs.path.removeLeadingDotSegment(i.path);return this._isSkippedByPositivePatterns(c,o)?!1:this._isSkippedByNegativePatterns(c,u)}_isSkippedByDeep(n,i){return this._settings.deep===1/0?!1:this._getEntryLevel(n,i)>=this._settings.deep}_getEntryLevel(n,i){let o=i.split("/").length;if(n==="")return o;let u=n.split("/").length;return o-u}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,i){return!this._settings.baseNameMatch&&!i.match(n)}_isSkippedByNegativePatterns(n,i){return!Zs.pattern.matchAny(n,i)}};Xc.default=Kc});var ym=L(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var Hn=on(),zc=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let o=Hn.pattern.convertPatternsToRe(n,this._micromatchOptions),u=Hn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return c=>this._filter(c,o,u)}_filter(n,i,o){let u=Hn.path.removeLeadingDotSegment(n.path);if(this._settings.unique&&this._isDuplicateEntry(u)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(u,o))return!1;let c=n.dirent.isDirectory(),f=this._isMatchToPatterns(u,i,c)&&!this._isMatchToPatterns(u,o,c);return this._settings.unique&&f&&this._createIndexRecord(u),f}_isDuplicateEntry(n){return this.index.has(n)}_createIndexRecord(n){this.index.set(n,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let o=Hn.path.makeAbsolute(this._settings.cwd,n);return Hn.pattern.matchAny(o,i)}_isMatchToPatterns(n,i,o){let u=Hn.pattern.matchAny(n,i);return!u&&o?Hn.pattern.matchAny(n+"/",i):u}};Yc.default=zc});var vm=L(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var XP=on(),Qc=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return XP.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};Zc.default=Qc});var wm=L(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var bm=on(),Vc=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=bm.path.makeAbsolute(this._settings.cwd,i),i=bm.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};Jc.default=Vc});var Vs=L(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var zP=q("path"),YP=_m(),QP=ym(),ZP=vm(),VP=wm(),el=class{constructor(n){this._settings=n,this.errorFilter=new ZP.default(this._settings),this.entryFilter=new QP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new YP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new VP.default(this._settings)}_getRootDirectory(n){return zP.resolve(this._settings.cwd,n.base)}_getReaderOptions(n){let i=n.base==="."?"":n.base;return{basePath:i,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(i,n.positive,n.negative),entryFilter:this.entryFilter.getFilter(n.positive,n.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}}};tl.default=el});var xm=L(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var JP=dm(),eT=Vs(),nl=class extends eT.default{constructor(){super(...arguments),this._reader=new JP.default(this._settings)}async read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n);return(await this.api(i,n,o)).map(c=>o.transform(c))}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};rl.default=nl});var Sm=L(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var tT=q("stream"),nT=qc(),rT=Vs(),il=class extends rT.default{constructor(){super(...arguments),this._reader=new nT.default(this._settings)}read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n),u=this.api(i,n,o),c=new tT.Readable({objectMode:!0,read:()=>{}});return u.once("error",f=>c.emit("error",f)).on("data",f=>c.emit("data",o.transform(f))).once("end",()=>c.emit("end")),c.once("close",()=>u.destroy()),c}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};sl.default=il});var Em=L(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var iT=qn(),sT=Ys(),oT=Qs(),ol=class extends oT.default{constructor(){super(...arguments),this._walkSync=sT.walkSync,this._statSync=iT.statSync}dynamic(n,i){return this._walkSync(n,i)}static(n,i){let o=[];for(let u of n){let c=this._getFullEntryPath(u),f=this._getEntry(c,u,i);f===null||!i.entryFilter(f)||o.push(f)}return o}_getEntry(n,i,o){try{let u=this._getStat(n);return this._makeEntry(u,i)}catch(u){if(o.errorFilter(u))return null;throw u}}_getStat(n){return this._statSync(n,this._fsStatSettings)}};ul.default=ol});var Am=L(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var uT=Em(),aT=Vs(),al=class extends aT.default{constructor(){super(...arguments),this._reader=new uT.default(this._settings)}read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n);return this.api(i,n,o).map(o.transform)}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};cl.default=al});var Cm=L(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var yr=q("fs"),cT=q("os"),lT=Math.max(cT.cpus().length,1);vr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:yr.lstat,lstatSync:yr.lstatSync,stat:yr.stat,statSync:yr.statSync,readdir:yr.readdir,readdirSync:yr.readdirSync};var ll=class{constructor(n={}){this._options=n,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,lT),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(n,i){return n===void 0?i:n}_getFileSystemMethods(n={}){return Object.assign(Object.assign({},vr.DEFAULT_FILE_SYSTEM_ADAPTER),n)}};vr.default=ll});var dl=L((kk,Pm)=>{"use strict";var Rm=Pg(),fT=xm(),hT=Sm(),pT=Am(),fl=Cm(),Rt=on();async function hl(t,n){Dt(t);let i=pl(t,fT.default,n),o=await Promise.all(i);return Rt.array.flatten(o)}(function(t){t.glob=t,t.globSync=n,t.globStream=i,t.async=t;function n(_,v){Dt(_);let S=pl(_,pT.default,v);return Rt.array.flatten(S)}t.sync=n;function i(_,v){Dt(_);let S=pl(_,hT.default,v);return Rt.stream.merge(S)}t.stream=i;function o(_,v){Dt(_);let S=[].concat(_),x=new fl.default(v);return Rm.generate(S,x)}t.generateTasks=o;function u(_,v){Dt(_);let S=new fl.default(v);return Rt.pattern.isDynamicPattern(_,S)}t.isDynamicPattern=u;function c(_){return Dt(_),Rt.path.escape(_)}t.escapePath=c;function f(_){return Dt(_),Rt.path.convertPathToPattern(_)}t.convertPathToPattern=f;let h;(function(_){function v(x){return Dt(x),Rt.path.escapePosixPath(x)}_.escapePath=v;function S(x){return Dt(x),Rt.path.convertPosixPathToPattern(x)}_.convertPathToPattern=S})(h=t.posix||(t.posix={}));let g;(function(_){function v(x){return Dt(x),Rt.path.escapeWindowsPath(x)}_.escapePath=v;function S(x){return Dt(x),Rt.path.convertWindowsPathToPattern(x)}_.convertPathToPattern=S})(g=t.win32||(t.win32={}))})(hl||(hl={}));function pl(t,n,i){let o=[].concat(t),u=new fl.default(i),c=Rm.generate(o,u),f=new n(u);return c.map(f.read,f)}function Dt(t){if(![].concat(t).every(o=>Rt.string.isString(o)&&!Rt.string.isEmpty(o)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Pm.exports=hl});var Om=L(Bn=>{"use strict";var{promisify:dT}=q("util"),Tm=q("fs");async function gl(t,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await dT(Tm[t])(i))[n]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}function ml(t,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return Tm[t](i)[n]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}Bn.isFile=gl.bind(null,"stat","isFile");Bn.isDirectory=gl.bind(null,"stat","isDirectory");Bn.isSymlink=gl.bind(null,"lstat","isSymbolicLink");Bn.isFileSync=ml.bind(null,"statSync","isFile");Bn.isDirectorySync=ml.bind(null,"statSync","isDirectory");Bn.isSymlinkSync=ml.bind(null,"lstatSync","isSymbolicLink")});var Nm=L((Nk,_l)=>{"use strict";var Wn=q("path"),Im=Om(),Lm=t=>t.length>1?`{${t.join(",")}}`:t[0],km=(t,n)=>{let i=t[0]==="!"?t.slice(1):t;return Wn.isAbsolute(i)?i:Wn.join(n,i)},gT=(t,n)=>Wn.extname(t)?`**/${t}`:`**/${t}.${Lm(n)}`,Dm=(t,n)=>{if(n.files&&!Array.isArray(n.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof n.files}\``);if(n.extensions&&!Array.isArray(n.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof n.extensions}\``);return n.files&&n.extensions?n.files.map(i=>Wn.posix.join(t,gT(i,n.extensions))):n.files?n.files.map(i=>Wn.posix.join(t,`**/${i}`)):n.extensions?[Wn.posix.join(t,`**/*.${Lm(n.extensions)}`)]:[Wn.posix.join(t,"**")]};_l.exports=async(t,n)=>{if(n={cwd:process.cwd(),...n},typeof n.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof n.cwd}\``);let i=await Promise.all([].concat(t).map(async o=>await Im.isDirectory(km(o,n.cwd))?Dm(o,n):o));return[].concat.apply([],i)};_l.exports.sync=(t,n)=>{if(n={cwd:process.cwd(),...n},typeof n.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof n.cwd}\``);let i=[].concat(t).map(o=>Im.isDirectorySync(km(o,n.cwd))?Dm(o,n):o);return[].concat.apply([],i)}});var jm=L(($k,Gm)=>{function $m(t){return Array.isArray(t)?t:[t]}var Hm="",Mm=" ",yl="\\",mT=/^\s+$/,_T=/(?:[^\\]|^)\\$/,yT=/^\\!/,vT=/^\\#/,bT=/\r?\n/g,wT=/^\.*\/|^\.+$/,vl="/",Bm="node-ignore";typeof Symbol<"u"&&(Bm=Symbol.for("node-ignore"));var Fm=Bm,xT=(t,n,i)=>Object.defineProperty(t,n,{value:i}),ST=/([0-z])-([0-z])/g,Wm=()=>!1,ET=t=>t.replace(ST,(n,i,o)=>i.charCodeAt(0)<=o.charCodeAt(0)?n:Hm),AT=t=>{let{length:n}=t;return t.slice(0,n-n%2)},CT=[[/\\?\s+$/,t=>t.indexOf("\\")===0?Mm:Hm],[/\\\s/g,()=>Mm],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,n,i)=>n+6{let o=i.replace(/\\\*/g,"[^\\/]*");return n+o}],[/\\\\\\(?=[$.|*+(){^])/g,()=>yl],[/\\\\/g,()=>yl],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,n,i,o,u)=>n===yl?`\\[${i}${AT(o)}${u}`:u==="]"&&o.length%2===0?`[${ET(i)}${o}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,n)=>`${n?`${n}[^/]+`:"[^/]*"}(?=$|\\/$)`]],qm=Object.create(null),RT=(t,n)=>{let i=qm[t];return i||(i=CT.reduce((o,u)=>o.replace(u[0],u[1].bind(t)),t),qm[t]=i),n?new RegExp(i,"i"):new RegExp(i)},xl=t=>typeof t=="string",PT=t=>t&&xl(t)&&!mT.test(t)&&!_T.test(t)&&t.indexOf("#")!==0,TT=t=>t.split(bT),bl=class{constructor(n,i,o,u){this.origin=n,this.pattern=i,this.negative=o,this.regex=u}},OT=(t,n)=>{let i=t,o=!1;t.indexOf("!")===0&&(o=!0,t=t.substr(1)),t=t.replace(yT,"!").replace(vT,"#");let u=RT(t,n);return new bl(i,t,o,u)},IT=(t,n)=>{throw new n(t)},un=(t,n,i)=>xl(t)?t?un.isNotRelative(t)?i(`path should be a \`path.relative()\`d string, but got "${n}"`,RangeError):!0:i("path must not be empty",TypeError):i(`path must be a string, but got \`${n}\``,TypeError),Um=t=>wT.test(t);un.isNotRelative=Um;un.convert=t=>t;var wl=class{constructor({ignorecase:n=!0,ignoreCase:i=n,allowRelativePaths:o=!1}={}){xT(this,Fm,!0),this._rules=[],this._ignoreCase=i,this._allowRelativePaths=o,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(n){if(n&&n[Fm]){this._rules=this._rules.concat(n._rules),this._added=!0;return}if(PT(n)){let i=OT(n,this._ignoreCase);this._added=!0,this._rules.push(i)}}add(n){return this._added=!1,$m(xl(n)?TT(n):n).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(n){return this.add(n)}_testOne(n,i){let o=!1,u=!1;return this._rules.forEach(c=>{let{negative:f}=c;if(u===f&&o!==u||f&&!o&&!u&&!i)return;c.regex.test(n)&&(o=!f,u=f)}),{ignored:o,unignored:u}}_test(n,i,o,u){let c=n&&un.convert(n);return un(c,n,this._allowRelativePaths?Wm:IT),this._t(c,i,o,u)}_t(n,i,o,u){if(n in i)return i[n];if(u||(u=n.split(vl)),u.pop(),!u.length)return i[n]=this._testOne(n,o);let c=this._t(u.join(vl)+vl,i,o,u);return i[n]=c.ignored?c:this._testOne(n,o)}ignores(n){return this._test(n,this._ignoreCache,!1).ignored}createFilter(){return n=>!this.ignores(n)}filter(n){return $m(n).filter(this.createFilter())}test(n){return this._test(n,this._testCache,!0)}},Js=t=>new wl(t),LT=t=>un(t&&un.convert(t),t,Wm);Js.isPathValid=LT;Js.default=Js;Gm.exports=Js;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=i=>/^\\\\\?\\/.test(i)||/["<>|\u0000-\u001F]+/u.test(i)?i:i.replace(/\\/g,"/");un.convert=t;let n=/^[a-z]:\//i;un.isNotRelative=i=>n.test(i)||Um(i)}});var Sr=L((xr,Si)=>{(function(){var t,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",_=1,v=2,S=4,x=1,H=2,O=1,D=2,j=4,W=8,ee=16,z=32,Y=64,N=128,te=256,Q=512,G=30,ue="...",Pe=800,I=16,ve=1,me=2,Mt=3,A=1/0,C=9007199254740991,Be=17976931348623157e292,fe=0/0,Ie=4294967295,mt=Ie-1,Ye=Ie>>>1,Kn=[["ary",N],["bind",O],["bindKey",D],["curry",W],["curryRight",ee],["flip",Q],["partial",z],["partialRight",Y],["rearg",te]],cn="[object Arguments]",Xt="[object Array]",zt="[object AsyncFunction]",oe="[object Boolean]",Ft="[object Date]",iu="[object DOMException]",F="[object Error]",_e="[object Function]",$="[object GeneratorFunction]",Z="[object Map]",be="[object Number]",We="[object Null]",we="[object Object]",Xn="[object Promise]",zn="[object Proxy]",Qr="[object RegExp]",Pt="[object Set]",Zr="[object String]",Ni="[object Symbol]",wv="[object Undefined]",Vr="[object WeakMap]",xv="[object WeakSet]",Jr="[object ArrayBuffer]",Yn="[object DataView]",su="[object Float32Array]",ou="[object Float64Array]",uu="[object Int8Array]",au="[object Int16Array]",cu="[object Int32Array]",lu="[object Uint8Array]",fu="[object Uint8ClampedArray]",hu="[object Uint16Array]",pu="[object Uint32Array]",Sv=/\b__p \+= '';/g,Ev=/\b(__p \+=) '' \+/g,Av=/(__e\(.*?\)|\b__t\)) \+\n'';/g,of=/&(?:amp|lt|gt|quot|#39);/g,uf=/[&<>"']/g,Cv=RegExp(of.source),Rv=RegExp(uf.source),Pv=/<%-([\s\S]+?)%>/g,Tv=/<%([\s\S]+?)%>/g,af=/<%=([\s\S]+?)%>/g,Ov=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Iv=/^\w*$/,Lv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,du=/[\\^$.*+?()[\]{}|]/g,kv=RegExp(du.source),gu=/^\s+/,Dv=/\s/,Nv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$v=/\{\n\/\* \[wrapped with (.+)\] \*/,Mv=/,? & /,Fv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qv=/[()=,{}\[\]\/\s]/,Hv=/\\(\\)?/g,Bv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cf=/\w*$/,Wv=/^[-+]0x[0-9a-f]+$/i,Uv=/^0b[01]+$/i,Gv=/^\[object .+?Constructor\]$/,jv=/^0o[0-7]+$/i,Kv=/^(?:0|[1-9]\d*)$/,Xv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$i=/($^)/,zv=/['\n\r\u2028\u2029\\]/g,Mi="\\ud800-\\udfff",Yv="\\u0300-\\u036f",Qv="\\ufe20-\\ufe2f",Zv="\\u20d0-\\u20ff",lf=Yv+Qv+Zv,ff="\\u2700-\\u27bf",hf="a-z\\xdf-\\xf6\\xf8-\\xff",Vv="\\xac\\xb1\\xd7\\xf7",Jv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",eb="\\u2000-\\u206f",tb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pf="A-Z\\xc0-\\xd6\\xd8-\\xde",df="\\ufe0e\\ufe0f",gf=Vv+Jv+eb+tb,mu="['\u2019]",nb="["+Mi+"]",mf="["+gf+"]",Fi="["+lf+"]",_f="\\d+",rb="["+ff+"]",yf="["+hf+"]",vf="[^"+Mi+gf+_f+ff+hf+pf+"]",_u="\\ud83c[\\udffb-\\udfff]",ib="(?:"+Fi+"|"+_u+")",bf="[^"+Mi+"]",yu="(?:\\ud83c[\\udde6-\\uddff]){2}",vu="[\\ud800-\\udbff][\\udc00-\\udfff]",Qn="["+pf+"]",wf="\\u200d",xf="(?:"+yf+"|"+vf+")",sb="(?:"+Qn+"|"+vf+")",Sf="(?:"+mu+"(?:d|ll|m|re|s|t|ve))?",Ef="(?:"+mu+"(?:D|LL|M|RE|S|T|VE))?",Af=ib+"?",Cf="["+df+"]?",ob="(?:"+wf+"(?:"+[bf,yu,vu].join("|")+")"+Cf+Af+")*",ub="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ab="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rf=Cf+Af+ob,cb="(?:"+[rb,yu,vu].join("|")+")"+Rf,lb="(?:"+[bf+Fi+"?",Fi,yu,vu,nb].join("|")+")",fb=RegExp(mu,"g"),hb=RegExp(Fi,"g"),bu=RegExp(_u+"(?="+_u+")|"+lb+Rf,"g"),pb=RegExp([Qn+"?"+yf+"+"+Sf+"(?="+[mf,Qn,"$"].join("|")+")",sb+"+"+Ef+"(?="+[mf,Qn+xf,"$"].join("|")+")",Qn+"?"+xf+"+"+Sf,Qn+"+"+Ef,ab,ub,_f,cb].join("|"),"g"),db=RegExp("["+wf+Mi+lf+df+"]"),gb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_b=-1,Ae={};Ae[su]=Ae[ou]=Ae[uu]=Ae[au]=Ae[cu]=Ae[lu]=Ae[fu]=Ae[hu]=Ae[pu]=!0,Ae[cn]=Ae[Xt]=Ae[Jr]=Ae[oe]=Ae[Yn]=Ae[Ft]=Ae[F]=Ae[_e]=Ae[Z]=Ae[be]=Ae[we]=Ae[Qr]=Ae[Pt]=Ae[Zr]=Ae[Vr]=!1;var Ee={};Ee[cn]=Ee[Xt]=Ee[Jr]=Ee[Yn]=Ee[oe]=Ee[Ft]=Ee[su]=Ee[ou]=Ee[uu]=Ee[au]=Ee[cu]=Ee[Z]=Ee[be]=Ee[we]=Ee[Qr]=Ee[Pt]=Ee[Zr]=Ee[Ni]=Ee[lu]=Ee[fu]=Ee[hu]=Ee[pu]=!0,Ee[F]=Ee[_e]=Ee[Vr]=!1;var yb={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vb={"&":"&","<":"<",">":">",'"':""","'":"'"},bb={"&":"&","<":"<",">":">",""":'"',"'":"'"},wb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xb=parseFloat,Sb=parseInt,Pf=typeof global=="object"&&global&&global.Object===Object&&global,Eb=typeof self=="object"&&self&&self.Object===Object&&self,qe=Pf||Eb||Function("return this")(),wu=typeof xr=="object"&&xr&&!xr.nodeType&&xr,Pn=wu&&typeof Si=="object"&&Si&&!Si.nodeType&&Si,Tf=Pn&&Pn.exports===wu,xu=Tf&&Pf.process,_t=function(){try{var b=Pn&&Pn.require&&Pn.require("util").types;return b||xu&&xu.binding&&xu.binding("util")}catch{}}(),Of=_t&&_t.isArrayBuffer,If=_t&&_t.isDate,Lf=_t&&_t.isMap,kf=_t&&_t.isRegExp,Df=_t&&_t.isSet,Nf=_t&&_t.isTypedArray;function st(b,R,E){switch(E.length){case 0:return b.call(R);case 1:return b.call(R,E[0]);case 2:return b.call(R,E[0],E[1]);case 3:return b.call(R,E[0],E[1],E[2])}return b.apply(R,E)}function Ab(b,R,E,B){for(var re=-1,ge=b==null?0:b.length;++re-1}function Su(b,R,E){for(var B=-1,re=b==null?0:b.length;++B-1;);return E}function Uf(b,R){for(var E=b.length;E--&&Zn(R,b[E],0)>-1;);return E}function Db(b,R){for(var E=b.length,B=0;E--;)b[E]===R&&++B;return B}var Nb=Ru(yb),$b=Ru(vb);function Mb(b){return"\\"+wb[b]}function Fb(b,R){return b==null?t:b[R]}function Vn(b){return db.test(b)}function qb(b){return gb.test(b)}function Hb(b){for(var R,E=[];!(R=b.next()).done;)E.push(R.value);return E}function Iu(b){var R=-1,E=Array(b.size);return b.forEach(function(B,re){E[++R]=[re,B]}),E}function Gf(b,R){return function(E){return b(R(E))}}function hn(b,R){for(var E=-1,B=b.length,re=0,ge=[];++E-1}function Rw(e,r){var s=this.__data__,a=ns(s,e);return a<0?(++this.size,s.push([e,r])):s[a][1]=r,this}Yt.prototype.clear=Sw,Yt.prototype.delete=Ew,Yt.prototype.get=Aw,Yt.prototype.has=Cw,Yt.prototype.set=Rw;function Qt(e){var r=-1,s=e==null?0:e.length;for(this.clear();++r=r?e:r)),e}function wt(e,r,s,a,l,d){var m,y=r&_,w=r&v,P=r&S;if(s&&(m=l?s(e,a,l,d):s(e)),m!==t)return m;if(!Te(e))return e;var T=ie(e);if(T){if(m=Ix(e),!y)return Je(e,m)}else{var k=Ke(e),M=k==_e||k==$;if(vn(e))return Ch(e,y);if(k==we||k==cn||M&&!l){if(m=w||M?{}:jh(e),!y)return w?bx(e,Uw(m,e)):vx(e,nh(m,e))}else{if(!Ee[k])return l?e:{};m=Lx(e,k,y)}}d||(d=new Ot);var U=d.get(e);if(U)return U;d.set(e,m),bp(e)?e.forEach(function(J){m.add(wt(J,r,s,J,e,d))}):yp(e)&&e.forEach(function(J,he){m.set(he,wt(J,r,s,he,e,d))});var V=P?w?ra:na:w?tt:He,ce=T?t:V(e);return yt(ce||e,function(J,he){ce&&(he=J,J=e[he]),oi(m,he,wt(J,r,s,he,e,d))}),m}function Gw(e){var r=He(e);return function(s){return rh(s,e,r)}}function rh(e,r,s){var a=s.length;if(e==null)return!a;for(e=Se(e);a--;){var l=s[a],d=r[l],m=e[l];if(m===t&&!(l in e)||!d(m))return!1}return!0}function ih(e,r,s){if(typeof e!="function")throw new vt(u);return pi(function(){e.apply(t,s)},r)}function ui(e,r,s,a){var l=-1,d=qi,m=!0,y=e.length,w=[],P=r.length;if(!y)return w;s&&(r=Ce(r,ot(s))),a?(d=Su,m=!1):r.length>=i&&(d=ei,m=!1,r=new In(r));e:for(;++ll?0:l+s),a=a===t||a>l?l:ae(a),a<0&&(a+=l),a=s>a?0:xp(a);s0&&s(y)?r>1?Ue(y,r-1,s,a,l):fn(l,y):a||(l[l.length]=y)}return l}var Fu=Lh(),uh=Lh(!0);function qt(e,r){return e&&Fu(e,r,He)}function qu(e,r){return e&&uh(e,r,He)}function is(e,r){return ln(r,function(s){return tn(e[s])})}function kn(e,r){r=_n(r,e);for(var s=0,a=r.length;e!=null&&sr}function Xw(e,r){return e!=null&&xe.call(e,r)}function zw(e,r){return e!=null&&r in Se(e)}function Yw(e,r,s){return e>=je(r,s)&&e=120&&T.length>=120)?new In(m&&T):t}T=e[0];var k=-1,M=y[0];e:for(;++k-1;)y!==e&&Yi.call(y,w,1),Yi.call(e,w,1);return e}function yh(e,r){for(var s=e?r.length:0,a=s-1;s--;){var l=r[s];if(s==a||l!==d){var d=l;en(l)?Yi.call(e,l,1):Yu(e,l)}}return e}function Ku(e,r){return e+Vi(Vf()*(r-e+1))}function ax(e,r,s,a){for(var l=-1,d=Me(Zi((r-e)/(s||1)),0),m=E(d);d--;)m[a?d:++l]=e,e+=s;return m}function Xu(e,r){var s="";if(!e||r<1||r>C)return s;do r%2&&(s+=e),r=Vi(r/2),r&&(e+=e);while(r);return s}function le(e,r){return la(zh(e,r,nt),e+"")}function cx(e){return th(ar(e))}function lx(e,r){var s=ar(e);return gs(s,Ln(r,0,s.length))}function li(e,r,s,a){if(!Te(e))return e;r=_n(r,e);for(var l=-1,d=r.length,m=d-1,y=e;y!=null&&++ll?0:l+r),s=s>l?l:s,s<0&&(s+=l),l=r>s?0:s-r>>>0,r>>>=0;for(var d=E(l);++a>>1,m=e[d];m!==null&&!at(m)&&(s?m<=r:m=i){var P=r?null:Ex(e);if(P)return Bi(P);m=!1,l=ei,w=new In}else w=r?[]:y;e:for(;++a=a?e:xt(e,r,s)}var Ah=tw||function(e){return qe.clearTimeout(e)};function Ch(e,r){if(r)return e.slice();var s=e.length,a=Xf?Xf(s):new e.constructor(s);return e.copy(a),a}function Ju(e){var r=new e.constructor(e.byteLength);return new Xi(r).set(new Xi(e)),r}function gx(e,r){var s=r?Ju(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function mx(e){var r=new e.constructor(e.source,cf.exec(e));return r.lastIndex=e.lastIndex,r}function _x(e){return si?Se(si.call(e)):{}}function Rh(e,r){var s=r?Ju(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Ph(e,r){if(e!==r){var s=e!==t,a=e===null,l=e===e,d=at(e),m=r!==t,y=r===null,w=r===r,P=at(r);if(!y&&!P&&!d&&e>r||d&&m&&w&&!y&&!P||a&&m&&w||!s&&w||!l)return 1;if(!a&&!d&&!P&&e=y)return w;var P=s[a];return w*(P=="desc"?-1:1)}}return e.index-r.index}function Th(e,r,s,a){for(var l=-1,d=e.length,m=s.length,y=-1,w=r.length,P=Me(d-m,0),T=E(w+P),k=!a;++y1?s[l-1]:t,m=l>2?s[2]:t;for(d=e.length>3&&typeof d=="function"?(l--,d):t,m&&Ze(s[0],s[1],m)&&(d=l<3?t:d,l=1),r=Se(r);++a-1?l[d?r[m]:m]:t}}function Nh(e){return Jt(function(r){var s=r.length,a=s,l=bt.prototype.thru;for(e&&r.reverse();a--;){var d=r[a];if(typeof d!="function")throw new vt(u);if(l&&!m&&ps(d)=="wrapper")var m=new bt([],!0)}for(a=m?a:s;++a1&&de.reverse(),T&&wy))return!1;var P=d.get(e),T=d.get(r);if(P&&T)return P==r&&T==e;var k=-1,M=!0,U=s&H?new In:t;for(d.set(e,r),d.set(r,e);++k1?"& ":"")+r[a],r=r.join(s>2?", ":" "),e.replace(Nv,`{ +var plugin=(()=>{var n1=Object.create;var Es=Object.defineProperty;var r1=Object.getOwnPropertyDescriptor;var i1=Object.getOwnPropertyNames;var s1=Object.getPrototypeOf,o1=Object.prototype.hasOwnProperty;var H=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var u1=(t,n)=>()=>(t&&(n=t(t=0)),n);var L=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),Ra=(t,n)=>{for(var i in n)Es(t,i,{get:n[i],enumerable:!0})},$p=(t,n,i,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of i1(n))!o1.call(t,u)&&u!==i&&Es(t,u,{get:()=>n[u],enumerable:!(o=r1(n,u))||o.enumerable});return t};var Fe=(t,n,i)=>(i=t!=null?n1(s1(t)):{},$p(n||!t||!t.__esModule?Es(i,"default",{value:t,enumerable:!0}):i,t)),a1=t=>$p(Es({},"__esModule",{value:!0}),t);var Wp={};Ra(Wp,{path:()=>ie,root:()=>Ta});var Hp,Bp,Pa,Ta,ie,ft=u1(()=>{Hp=H("path"),Bp=H("url"),Pa={},Ta=(Pa?.url&&typeof Pa.url<"u"?(0,Bp.fileURLToPath)(Pa.url):__dirname).split("sources").shift(),ie=(...t)=>t.length?(0,Hp.join)(Ta,...t):Ta});var Ia=L((gL,Kp)=>{"use strict";var c1=H("stream"),Gp=c1.PassThrough,l1=Array.prototype.slice;Kp.exports=f1;function f1(){let t=[],n=l1.call(arguments),i=!1,o=n[n.length-1];o&&!Array.isArray(o)&&o.pipe==null?n.pop():o={};let u=o.end!==!1,c=o.pipeError===!0;o.objectMode==null&&(o.objectMode=!0),o.highWaterMark==null&&(o.highWaterMark=64*1024);let f=Gp(o);function h(){for(let v=0,S=arguments.length;v0||(i=!1,g())}function F(A){function D(){A.removeListener("merge2UnpipeEnd",D),A.removeListener("end",D),c&&A.removeListener("error",te),x()}function te(j){f.emit("error",j)}if(A._readableState.endEmitted)return x();A.on("merge2UnpipeEnd",D),A.on("end",D),c&&A.on("error",te),A.pipe(f,{end:!1}),A.resume()}for(let A=0;A{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.splitWhen=pr.flatten=void 0;function h1(t){return t.reduce((n,i)=>[].concat(n,i),[])}pr.flatten=h1;function p1(t,n){let i=[[]],o=0;for(let u of t)n(u)?(o++,i[o]=[]):i[o].push(u);return i}pr.splitWhen=p1});var zp=L(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.isEnoentCodeError=void 0;function d1(t){return t.code==="ENOENT"}As.isEnoentCodeError=d1});var Yp=L(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.createDirentFromStats=void 0;var La=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function g1(t,n){return new La(t,n)}Cs.createDirentFromStats=g1});var Jp=L(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.convertPosixPathToPattern=Ne.convertWindowsPathToPattern=Ne.convertPathToPattern=Ne.escapePosixPath=Ne.escapeWindowsPath=Ne.escape=Ne.removeLeadingDotSegment=Ne.makeAbsolute=Ne.unixify=void 0;var m1=H("os"),_1=H("path"),Zp=m1.platform()==="win32",y1=2,v1=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,b1=/(\\?)([(){}]|^!|[!+@](?=\())/g,w1=/^\\\\([.?])/,x1=/\\(?![!()+@{}])/g;function S1(t){return t.replace(/\\/g,"/")}Ne.unixify=S1;function E1(t,n){return _1.resolve(t,n)}Ne.makeAbsolute=E1;function A1(t){if(t.charAt(0)==="."){let n=t.charAt(1);if(n==="/"||n==="\\")return t.slice(y1)}return t}Ne.removeLeadingDotSegment=A1;Ne.escape=Zp?ka:Da;function ka(t){return t.replace(b1,"\\$2")}Ne.escapeWindowsPath=ka;function Da(t){return t.replace(v1,"\\$2")}Ne.escapePosixPath=Da;Ne.convertPathToPattern=Zp?Qp:Vp;function Qp(t){return ka(t).replace(w1,"//$1").replace(x1,"/")}Ne.convertWindowsPathToPattern=Qp;function Vp(t){return Da(t)}Ne.convertPosixPathToPattern=Vp});var td=L((bL,ed)=>{ed.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}});var id=L((wL,rd)=>{var C1=td(),nd={"{":"}","(":")","[":"]"},R1=function(t){if(t[0]==="!")return!0;for(var n=0,i=-2,o=-2,u=-2,c=-2,f=-2;nn&&(f===-1||f>o||(f=t.indexOf("\\",n),f===-1||f>o)))||u!==-1&&t[n]==="{"&&t[n+1]!=="}"&&(u=t.indexOf("}",n),u>n&&(f=t.indexOf("\\",n),f===-1||f>u))||c!==-1&&t[n]==="("&&t[n+1]==="?"&&/[:!=]/.test(t[n+2])&&t[n+3]!==")"&&(c=t.indexOf(")",n),c>n&&(f=t.indexOf("\\",n),f===-1||f>c))||i!==-1&&t[n]==="("&&t[n+1]!=="|"&&(ii&&(f=t.indexOf("\\",i),f===-1||f>c))))return!0;if(t[n]==="\\"){var h=t[n+1];n+=2;var g=nd[h];if(g){var _=t.indexOf(g,n);_!==-1&&(n=_+1)}if(t[n]==="!")return!0}else n++}return!1},P1=function(t){if(t[0]==="!")return!0;for(var n=0;n{"use strict";var T1=id(),O1=H("path").posix.dirname,I1=H("os").platform()==="win32",Na="/",L1=/\\/g,k1=/[\{\[].*[\}\]]$/,D1=/(^|[^\\])([\{\[]|\([^\)]+$)/,N1=/\\([\!\*\?\|\[\]\(\)\{\}])/g;sd.exports=function(n,i){var o=Object.assign({flipBackslashes:!0},i);o.flipBackslashes&&I1&&n.indexOf(Na)<0&&(n=n.replace(L1,Na)),k1.test(n)&&(n+=Na),n+="a";do n=O1(n);while(T1(n)||D1.test(n));return n.replace(N1,"$1")}});var Rs=L(At=>{"use strict";At.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;At.find=(t,n)=>t.nodes.find(i=>i.type===n);At.exceedsLimit=(t,n,i=1,o)=>o===!1||!At.isInteger(t)||!At.isInteger(n)?!1:(Number(n)-Number(t))/Number(i)>=o;At.escapeNode=(t,n=0,i)=>{let o=t.nodes[n];!o||(i&&o.type===i||o.type==="open"||o.type==="close")&&o.escaped!==!0&&(o.value="\\"+o.value,o.escaped=!0)};At.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;At.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;At.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;At.reduce=t=>t.reduce((n,i)=>(i.type==="text"&&n.push(i.value),i.type==="range"&&(i.type="text"),n),[]);At.flatten=(...t)=>{let n=[],i=o=>{for(let u=0;u{"use strict";var ud=Rs();ad.exports=(t,n={})=>{let i=(o,u={})=>{let c=n.escapeInvalid&&ud.isInvalidBrace(u),f=o.invalid===!0&&n.escapeInvalid===!0,h="";if(o.value)return(c||f)&&ud.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let g of o.nodes)h+=i(g);return h};return i(t)}});var ld=L((AL,cd)=>{"use strict";cd.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var vd=L((CL,yd)=>{"use strict";var fd=ld(),Mn=(t,n,i)=>{if(fd(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(n===void 0||t===n)return String(t);if(fd(n)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...i};typeof o.strictZeros=="boolean"&&(o.relaxZeros=o.strictZeros===!1);let u=String(o.relaxZeros),c=String(o.shorthand),f=String(o.capture),h=String(o.wrap),g=t+":"+n+"="+u+c+f+h;if(Mn.cache.hasOwnProperty(g))return Mn.cache[g].result;let _=Math.min(t,n),v=Math.max(t,n);if(Math.abs(_-v)===1){let D=t+"|"+n;return o.capture?`(${D})`:o.wrap===!1?D:`(?:${D})`}let S=_d(t)||_d(n),x={min:t,max:n,a:_,b:v},F=[],A=[];if(S&&(x.isPadded=S,x.maxLen=String(x.max).length),_<0){let D=v<0?Math.abs(v):1;A=hd(D,Math.abs(_),x,o),_=x.a=0}return v>=0&&(F=hd(_,v,x,o)),x.negatives=A,x.positives=F,x.result=$1(A,F,o),o.capture===!0?x.result=`(${x.result})`:o.wrap!==!1&&F.length+A.length>1&&(x.result=`(?:${x.result})`),Mn.cache[g]=x,x.result};function $1(t,n,i){let o=$a(t,n,"-",!1,i)||[],u=$a(n,t,"",!1,i)||[],c=$a(t,n,"-?",!0,i)||[];return o.concat(c).concat(u).join("|")}function M1(t,n){let i=1,o=1,u=dd(t,i),c=new Set([n]);for(;t<=u&&u<=n;)c.add(u),i+=1,u=dd(t,i);for(u=gd(n+1,o)-1;t1&&h.count.pop(),h.count.push(v.count[0]),h.string=h.pattern+md(h.count),f=_+1;continue}i.isPadded&&(S=W1(_,i,o)),v.string=S+v.pattern+md(v.count),c.push(v),f=_+1,h=v}return c}function $a(t,n,i,o,u){let c=[];for(let f of t){let{string:h}=f;!o&&!pd(n,"string",h)&&c.push(i+h),o&&pd(n,"string",h)&&c.push(i+h)}return c}function q1(t,n){let i=[];for(let o=0;on?1:n>t?-1:0}function pd(t,n,i){return t.some(o=>o[n]===i)}function dd(t,n){return Number(String(t).slice(0,-n)+"9".repeat(n))}function gd(t,n){return t-t%Math.pow(10,n)}function md(t){let[n=0,i=""]=t;return i||n>1?`{${n+(i?","+i:"")}}`:""}function B1(t,n,i){return`[${t}${n-t===1?"":"-"}${n}]`}function _d(t){return/^-?(0+)\d/.test(t)}function W1(t,n,i){if(!n.isPadded)return t;let o=Math.abs(n.maxLen-String(t).length),u=i.relaxZeros!==!1;switch(o){case 0:return"";case 1:return u?"0?":"0";case 2:return u?"0{0,2}":"00";default:return u?`0{0,${o}}`:`0{${o}}`}}Mn.cache={};Mn.clearCache=()=>Mn.cache={};yd.exports=Mn});var qa=L((RL,Cd)=>{"use strict";var U1=H("util"),wd=vd(),bd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),G1=t=>n=>t===!0?Number(n):String(n),Ma=t=>typeof t=="number"||typeof t=="string"&&t!=="",gi=t=>Number.isInteger(+t),Fa=t=>{let n=`${t}`,i=-1;if(n[0]==="-"&&(n=n.slice(1)),n==="0")return!1;for(;n[++i]==="0";);return i>0},j1=(t,n,i)=>typeof t=="string"||typeof n=="string"?!0:i.stringify===!0,K1=(t,n,i)=>{if(n>0){let o=t[0]==="-"?"-":"";o&&(t=t.slice(1)),t=o+t.padStart(o?n-1:n,"0")}return i===!1?String(t):t},Os=(t,n)=>{let i=t[0]==="-"?"-":"";for(i&&(t=t.slice(1),n--);t.length{t.negatives.sort((h,g)=>hg?1:0),t.positives.sort((h,g)=>hg?1:0);let o=n.capture?"":"?:",u="",c="",f;return t.positives.length&&(u=t.positives.map(h=>Os(String(h),i)).join("|")),t.negatives.length&&(c=`-(${o}${t.negatives.map(h=>Os(String(h),i)).join("|")})`),u&&c?f=`${u}|${c}`:f=u||c,n.wrap?`(${o}${f})`:f},xd=(t,n,i,o)=>{if(i)return wd(t,n,{wrap:!1,...o});let u=String.fromCharCode(t);if(t===n)return u;let c=String.fromCharCode(n);return`[${u}-${c}]`},Sd=(t,n,i)=>{if(Array.isArray(t)){let o=i.wrap===!0,u=i.capture?"":"?:";return o?`(${u}${t.join("|")})`:t.join("|")}return wd(t,n,i)},Ed=(...t)=>new RangeError("Invalid range arguments: "+U1.inspect(...t)),Ad=(t,n,i)=>{if(i.strictRanges===!0)throw Ed([t,n]);return[]},z1=(t,n)=>{if(n.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Y1=(t,n,i=1,o={})=>{let u=Number(t),c=Number(n);if(!Number.isInteger(u)||!Number.isInteger(c)){if(o.strictRanges===!0)throw Ed([t,n]);return[]}u===0&&(u=0),c===0&&(c=0);let f=u>c,h=String(t),g=String(n),_=String(i);i=Math.max(Math.abs(i),1);let v=Fa(h)||Fa(g)||Fa(_),S=v?Math.max(h.length,g.length,_.length):0,x=v===!1&&j1(t,n,o)===!1,F=o.transform||G1(x);if(o.toRegex&&i===1)return xd(Os(t,S),Os(n,S),!0,o);let A={negatives:[],positives:[]},D=ae=>A[ae<0?"negatives":"positives"].push(Math.abs(ae)),te=[],j=0;for(;f?u>=c:u<=c;)o.toRegex===!0&&i>1?D(u):te.push(K1(F(u,j),S,x)),u=f?u-i:u+i,j++;return o.toRegex===!0?i>1?X1(A,o,S):Sd(te,null,{wrap:!1,...o}):te},Z1=(t,n,i=1,o={})=>{if(!gi(t)&&t.length>1||!gi(n)&&n.length>1)return Ad(t,n,o);let u=o.transform||(x=>String.fromCharCode(x)),c=`${t}`.charCodeAt(0),f=`${n}`.charCodeAt(0),h=c>f,g=Math.min(c,f),_=Math.max(c,f);if(o.toRegex&&i===1)return xd(g,_,!1,o);let v=[],S=0;for(;h?c>=f:c<=f;)v.push(u(c,S)),c=h?c-i:c+i,S++;return o.toRegex===!0?Sd(v,null,{wrap:!1,options:o}):v},Ts=(t,n,i,o={})=>{if(n==null&&Ma(t))return[t];if(!Ma(t)||!Ma(n))return Ad(t,n,o);if(typeof i=="function")return Ts(t,n,1,{transform:i});if(bd(i))return Ts(t,n,0,i);let u={...o};return u.capture===!0&&(u.wrap=!0),i=i||u.step||1,gi(i)?gi(t)&&gi(n)?Y1(t,n,i,u):Z1(t,n,Math.max(Math.abs(i),1),u):i!=null&&!bd(i)?z1(i,u):Ts(t,n,1,i)};Cd.exports=Ts});var Td=L((PL,Pd)=>{"use strict";var Q1=qa(),Rd=Rs(),V1=(t,n={})=>{let i=(o,u={})=>{let c=Rd.isInvalidBrace(u),f=o.invalid===!0&&n.escapeInvalid===!0,h=c===!0||f===!0,g=n.escapeInvalid===!0?"\\":"",_="";if(o.isOpen===!0)return g+o.value;if(o.isClose===!0)return console.log("node.isClose",g,o.value),g+o.value;if(o.type==="open")return h?g+o.value:"(";if(o.type==="close")return h?g+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":h?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let v=Rd.reduce(o.nodes),S=Q1(...v,{...n,wrap:!1,toRegex:!0,strictZeros:!0});if(S.length!==0)return v.length>1&&S.length>1?`(${S})`:S}if(o.nodes)for(let v of o.nodes)_+=i(v,o);return _};return i(t)};Pd.exports=V1});var Ld=L((TL,Id)=>{"use strict";var J1=qa(),Od=Ps(),dr=Rs(),Fn=(t="",n="",i=!1)=>{let o=[];if(t=[].concat(t),n=[].concat(n),!n.length)return t;if(!t.length)return i?dr.flatten(n).map(u=>`{${u}}`):n;for(let u of t)if(Array.isArray(u))for(let c of u)o.push(Fn(c,n,i));else for(let c of n)i===!0&&typeof c=="string"&&(c=`{${c}}`),o.push(Array.isArray(c)?Fn(u,c,i):u+c);return dr.flatten(o)},eC=(t,n={})=>{let i=n.rangeLimit===void 0?1e3:n.rangeLimit,o=(u,c={})=>{u.queue=[];let f=c,h=c.queue;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,h=f.queue;if(u.invalid||u.dollar){h.push(Fn(h.pop(),Od(u,n)));return}if(u.type==="brace"&&u.invalid!==!0&&u.nodes.length===2){h.push(Fn(h.pop(),["{}"]));return}if(u.nodes&&u.ranges>0){let S=dr.reduce(u.nodes);if(dr.exceedsLimit(...S,n.step,i))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let x=J1(...S,n);x.length===0&&(x=Od(u,n)),h.push(Fn(h.pop(),x)),u.nodes=[];return}let g=dr.encloseBrace(u),_=u.queue,v=u;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,_=v.queue;for(let S=0;S{"use strict";kd.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:` +`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var qd=L((IL,Fd)=>{"use strict";var tC=Ps(),{MAX_LENGTH:Nd,CHAR_BACKSLASH:Ha,CHAR_BACKTICK:nC,CHAR_COMMA:rC,CHAR_DOT:iC,CHAR_LEFT_PARENTHESES:sC,CHAR_RIGHT_PARENTHESES:oC,CHAR_LEFT_CURLY_BRACE:uC,CHAR_RIGHT_CURLY_BRACE:aC,CHAR_LEFT_SQUARE_BRACKET:$d,CHAR_RIGHT_SQUARE_BRACKET:Md,CHAR_DOUBLE_QUOTE:cC,CHAR_SINGLE_QUOTE:lC,CHAR_NO_BREAK_SPACE:fC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:hC}=Dd(),pC=(t,n={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let i=n||{},o=typeof i.maxLength=="number"?Math.min(Nd,i.maxLength):Nd;if(t.length>o)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${o})`);let u={type:"root",input:t,nodes:[]},c=[u],f=u,h=u,g=0,_=t.length,v=0,S=0,x,F=()=>t[v++],A=D=>{if(D.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&D.type==="text"){h.value+=D.value;return}return f.nodes.push(D),D.parent=f,D.prev=h,h=D,D};for(A({type:"bos"});v<_;)if(f=c[c.length-1],x=F(),!(x===hC||x===fC)){if(x===Ha){A({type:"text",value:(n.keepEscaping?x:"")+F()});continue}if(x===Md){A({type:"text",value:"\\"+x});continue}if(x===$d){g++;let D;for(;v<_&&(D=F());){if(x+=D,D===$d){g++;continue}if(D===Ha){x+=F();continue}if(D===Md&&(g--,g===0))break}A({type:"text",value:x});continue}if(x===sC){f=A({type:"paren",nodes:[]}),c.push(f),A({type:"text",value:x});continue}if(x===oC){if(f.type!=="paren"){A({type:"text",value:x});continue}f=c.pop(),A({type:"text",value:x}),f=c[c.length-1];continue}if(x===cC||x===lC||x===nC){let D=x,te;for(n.keepQuotes!==!0&&(x="");v<_&&(te=F());){if(te===Ha){x+=te+F();continue}if(te===D){n.keepQuotes===!0&&(x+=te);break}x+=te}A({type:"text",value:x});continue}if(x===uC){S++;let te={type:"brace",open:!0,close:!1,dollar:h.value&&h.value.slice(-1)==="$"||f.dollar===!0,depth:S,commas:0,ranges:0,nodes:[]};f=A(te),c.push(f),A({type:"open",value:x});continue}if(x===aC){if(f.type!=="brace"){A({type:"text",value:x});continue}let D="close";f=c.pop(),f.close=!0,A({type:D,value:x}),S--,f=c[c.length-1];continue}if(x===rC&&S>0){if(f.ranges>0){f.ranges=0;let D=f.nodes.shift();f.nodes=[D,{type:"text",value:tC(f)}]}A({type:"comma",value:x}),f.commas++;continue}if(x===iC&&S>0&&f.commas===0){let D=f.nodes;if(S===0||D.length===0){A({type:"text",value:x});continue}if(h.type==="dot"){if(f.range=[],h.value+=x,h.type="range",f.nodes.length!==3&&f.nodes.length!==5){f.invalid=!0,f.ranges=0,h.type="text";continue}f.ranges++,f.args=[];continue}if(h.type==="range"){D.pop();let te=D[D.length-1];te.value+=h.value+x,h=te,f.ranges--;continue}A({type:"dot",value:x});continue}A({type:"text",value:x})}do if(f=c.pop(),f.type!=="root"){f.nodes.forEach(j=>{j.nodes||(j.type==="open"&&(j.isOpen=!0),j.type==="close"&&(j.isClose=!0),j.nodes||(j.type="text"),j.invalid=!0)});let D=c[c.length-1],te=D.nodes.indexOf(f);D.nodes.splice(te,1,...f.nodes)}while(c.length>0);return A({type:"eos"}),u};Fd.exports=pC});var Wd=L((LL,Bd)=>{"use strict";var Hd=Ps(),dC=Td(),gC=Ld(),mC=qd(),ht=(t,n={})=>{let i=[];if(Array.isArray(t))for(let o of t){let u=ht.create(o,n);Array.isArray(u)?i.push(...u):i.push(u)}else i=[].concat(ht.create(t,n));return n&&n.expand===!0&&n.nodupes===!0&&(i=[...new Set(i)]),i};ht.parse=(t,n={})=>mC(t,n);ht.stringify=(t,n={})=>Hd(typeof t=="string"?ht.parse(t,n):t,n);ht.compile=(t,n={})=>(typeof t=="string"&&(t=ht.parse(t,n)),dC(t,n));ht.expand=(t,n={})=>{typeof t=="string"&&(t=ht.parse(t,n));let i=gC(t,n);return n.noempty===!0&&(i=i.filter(Boolean)),n.nodupes===!0&&(i=[...new Set(i)]),i};ht.create=(t,n={})=>t===""||t.length<3?[t]:n.expand!==!0?ht.compile(t,n):ht.expand(t,n);Bd.exports=ht});var mi=L((kL,Xd)=>{"use strict";var _C=H("path"),Wt="\\\\/",Ud=`[^${Wt}]`,sn="\\.",yC="\\+",vC="\\?",Is="\\/",bC="(?=.)",Gd="[^/]",Ba=`(?:${Is}|$)`,jd=`(?:^|${Is})`,Wa=`${sn}{1,2}${Ba}`,wC=`(?!${sn})`,xC=`(?!${jd}${Wa})`,SC=`(?!${sn}{0,1}${Ba})`,EC=`(?!${Wa})`,AC=`[^.${Is}]`,CC=`${Gd}*?`,Kd={DOT_LITERAL:sn,PLUS_LITERAL:yC,QMARK_LITERAL:vC,SLASH_LITERAL:Is,ONE_CHAR:bC,QMARK:Gd,END_ANCHOR:Ba,DOTS_SLASH:Wa,NO_DOT:wC,NO_DOTS:xC,NO_DOT_SLASH:SC,NO_DOTS_SLASH:EC,QMARK_NO_DOT:AC,STAR:CC,START_ANCHOR:jd},RC={...Kd,SLASH_LITERAL:`[${Wt}]`,QMARK:Ud,STAR:`${Ud}*?`,DOTS_SLASH:`${sn}{1,2}(?:[${Wt}]|$)`,NO_DOT:`(?!${sn})`,NO_DOTS:`(?!(?:^|[${Wt}])${sn}{1,2}(?:[${Wt}]|$))`,NO_DOT_SLASH:`(?!${sn}{0,1}(?:[${Wt}]|$))`,NO_DOTS_SLASH:`(?!${sn}{1,2}(?:[${Wt}]|$))`,QMARK_NO_DOT:`[^.${Wt}]`,START_ANCHOR:`(?:^|[${Wt}])`,END_ANCHOR:`(?:[${Wt}]|$)`},PC={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"};Xd.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:PC,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:_C.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?RC:Kd}}});var _i=L(rt=>{"use strict";var TC=H("path"),OC=process.platform==="win32",{REGEX_BACKSLASH:IC,REGEX_REMOVE_BACKSLASH:LC,REGEX_SPECIAL_CHARS:kC,REGEX_SPECIAL_CHARS_GLOBAL:DC}=mi();rt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);rt.hasRegexChars=t=>kC.test(t);rt.isRegexChar=t=>t.length===1&&rt.hasRegexChars(t);rt.escapeRegex=t=>t.replace(DC,"\\$1");rt.toPosixSlashes=t=>t.replace(IC,"/");rt.removeBackslashes=t=>t.replace(LC,n=>n==="\\"?"":n);rt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};rt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:OC===!0||TC.sep==="\\";rt.escapeLast=(t,n,i)=>{let o=t.lastIndexOf(n,i);return o===-1?t:t[o-1]==="\\"?rt.escapeLast(t,n,o-1):`${t.slice(0,o)}\\${t.slice(o)}`};rt.removePrefix=(t,n={})=>{let i=t;return i.startsWith("./")&&(i=i.slice(2),n.prefix="./"),i};rt.wrapOutput=(t,n={},i={})=>{let o=i.contains?"":"^",u=i.contains?"":"$",c=`${o}(?:${t})${u}`;return n.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var tg=L((NL,eg)=>{"use strict";var zd=_i(),{CHAR_ASTERISK:Ua,CHAR_AT:NC,CHAR_BACKWARD_SLASH:yi,CHAR_COMMA:$C,CHAR_DOT:Ga,CHAR_EXCLAMATION_MARK:ja,CHAR_FORWARD_SLASH:Jd,CHAR_LEFT_CURLY_BRACE:Ka,CHAR_LEFT_PARENTHESES:Xa,CHAR_LEFT_SQUARE_BRACKET:MC,CHAR_PLUS:FC,CHAR_QUESTION_MARK:Yd,CHAR_RIGHT_CURLY_BRACE:qC,CHAR_RIGHT_PARENTHESES:Zd,CHAR_RIGHT_SQUARE_BRACKET:HC}=mi(),Qd=t=>t===Jd||t===yi,Vd=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},BC=(t,n)=>{let i=n||{},o=t.length-1,u=i.parts===!0||i.scanToEnd===!0,c=[],f=[],h=[],g=t,_=-1,v=0,S=0,x=!1,F=!1,A=!1,D=!1,te=!1,j=!1,ae=!1,X=!1,z=!1,N=!1,J=0,Y,U,oe={value:"",depth:0,isGlob:!1},Pe=()=>_>=o,I=()=>g.charCodeAt(_+1),ve=()=>(Y=U,g.charCodeAt(++_));for(;_0&&(Mt=g.slice(0,v),g=g.slice(v),S-=v),me&&A===!0&&S>0?(me=g.slice(0,S),C=g.slice(S)):A===!0?(me="",C=g):me=g,me&&me!==""&&me!=="/"&&me!==g&&Qd(me.charCodeAt(me.length-1))&&(me=me.slice(0,-1)),i.unescape===!0&&(C&&(C=zd.removeBackslashes(C)),me&&ae===!0&&(me=zd.removeBackslashes(me)));let R={prefix:Mt,input:t,start:v,base:me,glob:C,isBrace:x,isBracket:F,isGlob:A,isExtglob:D,isGlobstar:te,negated:X,negatedExtglob:z};if(i.tokens===!0&&(R.maxDepth=0,Qd(U)||f.push(oe),R.tokens=f),i.parts===!0||i.tokens===!0){let Be;for(let fe=0;fe{"use strict";var Ls=mi(),pt=_i(),{MAX_LENGTH:ks,POSIX_REGEX_SOURCE:WC,REGEX_NON_SPECIAL_CHARS:UC,REGEX_SPECIAL_CHARS_BACKREF:GC,REPLACEMENTS:ng}=Ls,jC=(t,n)=>{if(typeof n.expandRange=="function")return n.expandRange(...t,n);t.sort();let i=`[${t.join("-")}]`;try{new RegExp(i)}catch{return t.map(u=>pt.escapeRegex(u)).join("..")}return i},gr=(t,n)=>`Missing ${t}: "${n}" - use "\\\\${n}" to match literal characters`,za=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=ng[t]||t;let i={...n},o=typeof i.maxLength=="number"?Math.min(ks,i.maxLength):ks,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);let c={type:"bos",value:"",output:i.prepend||""},f=[c],h=i.capture?"":"?:",g=pt.isWindows(n),_=Ls.globChars(g),v=Ls.extglobChars(_),{DOT_LITERAL:S,PLUS_LITERAL:x,SLASH_LITERAL:F,ONE_CHAR:A,DOTS_SLASH:D,NO_DOT:te,NO_DOT_SLASH:j,NO_DOTS_SLASH:ae,QMARK:X,QMARK_NO_DOT:z,STAR:N,START_ANCHOR:J}=_,Y=q=>`(${h}(?:(?!${J}${q.dot?D:S}).)*?)`,U=i.dot?"":te,oe=i.dot?X:z,Pe=i.bash===!0?Y(i):N;i.capture&&(Pe=`(${Pe})`),typeof i.noext=="boolean"&&(i.noextglob=i.noext);let I={input:t,index:-1,start:0,dot:i.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:f};t=pt.removePrefix(t,I),u=t.length;let ve=[],me=[],Mt=[],C=c,R,Be=()=>I.index===u-1,fe=I.peek=(q=1)=>t[I.index+q],Ie=I.advance=()=>t[++I.index]||"",mt=()=>t.slice(I.index+1),Ye=(q="",_e=0)=>{I.consumed+=q,I.index+=_e},Kn=q=>{I.output+=q.output!=null?q.output:q.value,Ye(q.value)},cn=()=>{let q=1;for(;fe()==="!"&&(fe(2)!=="("||fe(3)==="?");)Ie(),I.start++,q++;return q%2===0?!1:(I.negated=!0,I.start++,!0)},Xt=q=>{I[q]++,Mt.push(q)},zt=q=>{I[q]--,Mt.pop()},se=q=>{if(C.type==="globstar"){let _e=I.braces>0&&(q.type==="comma"||q.type==="brace"),$=q.extglob===!0||ve.length&&(q.type==="pipe"||q.type==="paren");q.type!=="slash"&&q.type!=="paren"&&!_e&&!$&&(I.output=I.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=Pe,I.output+=C.output)}if(ve.length&&q.type!=="paren"&&(ve[ve.length-1].inner+=q.value),(q.value||q.output)&&Kn(q),C&&C.type==="text"&&q.type==="text"){C.value+=q.value,C.output=(C.output||"")+q.value;return}q.prev=C,f.push(q),C=q},Ft=(q,_e)=>{let $={...v[_e],conditions:1,inner:""};$.prev=C,$.parens=I.parens,$.output=I.output;let Z=(i.capture?"(":"")+$.open;Xt("parens"),se({type:q,value:_e,output:I.output?"":A}),se({type:"paren",extglob:!0,value:Ie(),output:Z}),ve.push($)},su=q=>{let _e=q.close+(i.capture?")":""),$;if(q.type==="negate"){let Z=Pe;if(q.inner&&q.inner.length>1&&q.inner.includes("/")&&(Z=Y(i)),(Z!==Pe||Be()||/^\)+$/.test(mt()))&&(_e=q.close=`)$))${Z}`),q.inner.includes("*")&&($=mt())&&/^\.[^\\/.]+$/.test($)){let be=za($,{...n,fastpaths:!1}).output;_e=q.close=`)${be})${Z})`}q.prev.type==="bos"&&(I.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:R,output:_e}),zt("parens")};if(i.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let q=!1,_e=t.replace(GC,($,Z,be,We,we,Xn)=>We==="\\"?(q=!0,$):We==="?"?Z?Z+We+(we?X.repeat(we.length):""):Xn===0?oe+(we?X.repeat(we.length):""):X.repeat(be.length):We==="."?S.repeat(be.length):We==="*"?Z?Z+We+(we?Pe:""):Pe:Z?$:`\\${$}`);return q===!0&&(i.unescape===!0?_e=_e.replace(/\\/g,""):_e=_e.replace(/\\+/g,$=>$.length%2===0?"\\\\":$?"\\":"")),_e===t&&i.contains===!0?(I.output=t,I):(I.output=pt.wrapOutput(_e,I,n),I)}for(;!Be();){if(R=Ie(),R==="\0")continue;if(R==="\\"){let $=fe();if($==="/"&&i.bash!==!0||$==="."||$===";")continue;if(!$){R+="\\",se({type:"text",value:R});continue}let Z=/^\\+/.exec(mt()),be=0;if(Z&&Z[0].length>2&&(be=Z[0].length,I.index+=be,be%2!==0&&(R+="\\")),i.unescape===!0?R=Ie():R+=Ie(),I.brackets===0){se({type:"text",value:R});continue}}if(I.brackets>0&&(R!=="]"||C.value==="["||C.value==="[^")){if(i.posix!==!1&&R===":"){let $=C.value.slice(1);if($.includes("[")&&(C.posix=!0,$.includes(":"))){let Z=C.value.lastIndexOf("["),be=C.value.slice(0,Z),We=C.value.slice(Z+2),we=WC[We];if(we){C.value=be+we,I.backtrack=!0,Ie(),!c.output&&f.indexOf(C)===1&&(c.output=A);continue}}}(R==="["&&fe()!==":"||R==="-"&&fe()==="]")&&(R=`\\${R}`),R==="]"&&(C.value==="["||C.value==="[^")&&(R=`\\${R}`),i.posix===!0&&R==="!"&&C.value==="["&&(R="^"),C.value+=R,Kn({value:R});continue}if(I.quotes===1&&R!=='"'){R=pt.escapeRegex(R),C.value+=R,Kn({value:R});continue}if(R==='"'){I.quotes=I.quotes===1?0:1,i.keepQuotes===!0&&se({type:"text",value:R});continue}if(R==="("){Xt("parens"),se({type:"paren",value:R});continue}if(R===")"){if(I.parens===0&&i.strictBrackets===!0)throw new SyntaxError(gr("opening","("));let $=ve[ve.length-1];if($&&I.parens===$.parens+1){su(ve.pop());continue}se({type:"paren",value:R,output:I.parens?")":"\\)"}),zt("parens");continue}if(R==="["){if(i.nobracket===!0||!mt().includes("]")){if(i.nobracket!==!0&&i.strictBrackets===!0)throw new SyntaxError(gr("closing","]"));R=`\\${R}`}else Xt("brackets");se({type:"bracket",value:R});continue}if(R==="]"){if(i.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){se({type:"text",value:R,output:`\\${R}`});continue}if(I.brackets===0){if(i.strictBrackets===!0)throw new SyntaxError(gr("opening","["));se({type:"text",value:R,output:`\\${R}`});continue}zt("brackets");let $=C.value.slice(1);if(C.posix!==!0&&$[0]==="^"&&!$.includes("/")&&(R=`/${R}`),C.value+=R,Kn({value:R}),i.literalBrackets===!1||pt.hasRegexChars($))continue;let Z=pt.escapeRegex(C.value);if(I.output=I.output.slice(0,-C.value.length),i.literalBrackets===!0){I.output+=Z,C.value=Z;continue}C.value=`(${h}${Z}|${C.value})`,I.output+=C.value;continue}if(R==="{"&&i.nobrace!==!0){Xt("braces");let $={type:"brace",value:R,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};me.push($),se($);continue}if(R==="}"){let $=me[me.length-1];if(i.nobrace===!0||!$){se({type:"text",value:R,output:R});continue}let Z=")";if($.dots===!0){let be=f.slice(),We=[];for(let we=be.length-1;we>=0&&(f.pop(),be[we].type!=="brace");we--)be[we].type!=="dots"&&We.unshift(be[we].value);Z=jC(We,i),I.backtrack=!0}if($.comma!==!0&&$.dots!==!0){let be=I.output.slice(0,$.outputIndex),We=I.tokens.slice($.tokensIndex);$.value=$.output="\\{",R=Z="\\}",I.output=be;for(let we of We)I.output+=we.output||we.value}se({type:"brace",value:R,output:Z}),zt("braces"),me.pop();continue}if(R==="|"){ve.length>0&&ve[ve.length-1].conditions++,se({type:"text",value:R});continue}if(R===","){let $=R,Z=me[me.length-1];Z&&Mt[Mt.length-1]==="braces"&&(Z.comma=!0,$="|"),se({type:"comma",value:R,output:$});continue}if(R==="/"){if(C.type==="dot"&&I.index===I.start+1){I.start=I.index+1,I.consumed="",I.output="",f.pop(),C=c;continue}se({type:"slash",value:R,output:F});continue}if(R==="."){if(I.braces>0&&C.type==="dot"){C.value==="."&&(C.output=S);let $=me[me.length-1];C.type="dots",C.output+=R,C.value+=R,$.dots=!0;continue}if(I.braces+I.parens===0&&C.type!=="bos"&&C.type!=="slash"){se({type:"text",value:R,output:S});continue}se({type:"dot",value:R,output:S});continue}if(R==="?"){if(!(C&&C.value==="(")&&i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Ft("qmark",R);continue}if(C&&C.type==="paren"){let Z=fe(),be=R;if(Z==="<"&&!pt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(C.value==="("&&!/[!=<:]/.test(Z)||Z==="<"&&!/<([!=]|\w+>)/.test(mt()))&&(be=`\\${R}`),se({type:"text",value:R,output:be});continue}if(i.dot!==!0&&(C.type==="slash"||C.type==="bos")){se({type:"qmark",value:R,output:z});continue}se({type:"qmark",value:R,output:X});continue}if(R==="!"){if(i.noextglob!==!0&&fe()==="("&&(fe(2)!=="?"||!/[!=<:]/.test(fe(3)))){Ft("negate",R);continue}if(i.nonegate!==!0&&I.index===0){cn();continue}}if(R==="+"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Ft("plus",R);continue}if(C&&C.value==="("||i.regex===!1){se({type:"plus",value:R,output:x});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||I.parens>0){se({type:"plus",value:R});continue}se({type:"plus",value:x});continue}if(R==="@"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){se({type:"at",extglob:!0,value:R,output:""});continue}se({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let $=UC.exec(mt());$&&(R+=$[0],I.index+=$[0].length),se({type:"text",value:R});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=R,C.output=Pe,I.backtrack=!0,I.globstar=!0,Ye(R);continue}let q=mt();if(i.noextglob!==!0&&/^\([^?]/.test(q)){Ft("star",R);continue}if(C.type==="star"){if(i.noglobstar===!0){Ye(R);continue}let $=C.prev,Z=$.prev,be=$.type==="slash"||$.type==="bos",We=Z&&(Z.type==="star"||Z.type==="globstar");if(i.bash===!0&&(!be||q[0]&&q[0]!=="/")){se({type:"star",value:R,output:""});continue}let we=I.braces>0&&($.type==="comma"||$.type==="brace"),Xn=ve.length&&($.type==="pipe"||$.type==="paren");if(!be&&$.type!=="paren"&&!we&&!Xn){se({type:"star",value:R,output:""});continue}for(;q.slice(0,3)==="/**";){let zn=t[I.index+4];if(zn&&zn!=="/")break;q=q.slice(3),Ye("/**",3)}if($.type==="bos"&&Be()){C.type="globstar",C.value+=R,C.output=Y(i),I.output=C.output,I.globstar=!0,Ye(R);continue}if($.type==="slash"&&$.prev.type!=="bos"&&!We&&Be()){I.output=I.output.slice(0,-($.output+C.output).length),$.output=`(?:${$.output}`,C.type="globstar",C.output=Y(i)+(i.strictSlashes?")":"|$)"),C.value+=R,I.globstar=!0,I.output+=$.output+C.output,Ye(R);continue}if($.type==="slash"&&$.prev.type!=="bos"&&q[0]==="/"){let zn=q[1]!==void 0?"|$":"";I.output=I.output.slice(0,-($.output+C.output).length),$.output=`(?:${$.output}`,C.type="globstar",C.output=`${Y(i)}${F}|${F}${zn})`,C.value+=R,I.output+=$.output+C.output,I.globstar=!0,Ye(R+Ie()),se({type:"slash",value:"/",output:""});continue}if($.type==="bos"&&q[0]==="/"){C.type="globstar",C.value+=R,C.output=`(?:^|${F}|${Y(i)}${F})`,I.output=C.output,I.globstar=!0,Ye(R+Ie()),se({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-C.output.length),C.type="globstar",C.output=Y(i),C.value+=R,I.output+=C.output,I.globstar=!0,Ye(R);continue}let _e={type:"star",value:R,output:Pe};if(i.bash===!0){_e.output=".*?",(C.type==="bos"||C.type==="slash")&&(_e.output=U+_e.output),se(_e);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&i.regex===!0){_e.output=R,se(_e);continue}(I.index===I.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(I.output+=j,C.output+=j):i.dot===!0?(I.output+=ae,C.output+=ae):(I.output+=U,C.output+=U),fe()!=="*"&&(I.output+=A,C.output+=A)),se(_e)}for(;I.brackets>0;){if(i.strictBrackets===!0)throw new SyntaxError(gr("closing","]"));I.output=pt.escapeLast(I.output,"["),zt("brackets")}for(;I.parens>0;){if(i.strictBrackets===!0)throw new SyntaxError(gr("closing",")"));I.output=pt.escapeLast(I.output,"("),zt("parens")}for(;I.braces>0;){if(i.strictBrackets===!0)throw new SyntaxError(gr("closing","}"));I.output=pt.escapeLast(I.output,"{"),zt("braces")}if(i.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${F}?`}),I.backtrack===!0){I.output="";for(let q of I.tokens)I.output+=q.output!=null?q.output:q.value,q.suffix&&(I.output+=q.suffix)}return I};za.fastpaths=(t,n)=>{let i={...n},o=typeof i.maxLength=="number"?Math.min(ks,i.maxLength):ks,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);t=ng[t]||t;let c=pt.isWindows(n),{DOT_LITERAL:f,SLASH_LITERAL:h,ONE_CHAR:g,DOTS_SLASH:_,NO_DOT:v,NO_DOTS:S,NO_DOTS_SLASH:x,STAR:F,START_ANCHOR:A}=Ls.globChars(c),D=i.dot?S:v,te=i.dot?x:v,j=i.capture?"":"?:",ae={negated:!1,prefix:""},X=i.bash===!0?".*?":F;i.capture&&(X=`(${X})`);let z=U=>U.noglobstar===!0?X:`(${j}(?:(?!${A}${U.dot?_:f}).)*?)`,N=U=>{switch(U){case"*":return`${D}${g}${X}`;case".*":return`${f}${g}${X}`;case"*.*":return`${D}${X}${f}${g}${X}`;case"*/*":return`${D}${X}${h}${g}${te}${X}`;case"**":return D+z(i);case"**/*":return`(?:${D}${z(i)}${h})?${te}${g}${X}`;case"**/*.*":return`(?:${D}${z(i)}${h})?${te}${X}${f}${g}${X}`;case"**/.*":return`(?:${D}${z(i)}${h})?${f}${g}${X}`;default:{let oe=/^(.*?)\.(\w+)$/.exec(U);if(!oe)return;let Pe=N(oe[1]);return Pe?Pe+f+oe[2]:void 0}}},J=pt.removePrefix(t,ae),Y=N(J);return Y&&i.strictSlashes!==!0&&(Y+=`${h}?`),Y};rg.exports=za});var og=L((ML,sg)=>{"use strict";var KC=H("path"),XC=tg(),Ya=ig(),Za=_i(),zC=mi(),YC=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,n,i=!1)=>{if(Array.isArray(t)){let v=t.map(x=>De(x,n,i));return x=>{for(let F of v){let A=F(x);if(A)return A}return!1}}let o=YC(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let u=n||{},c=Za.isWindows(n),f=o?De.compileRe(t,n):De.makeRe(t,n,!1,!0),h=f.state;delete f.state;let g=()=>!1;if(u.ignore){let v={...n,ignore:null,onMatch:null,onResult:null};g=De(u.ignore,v,i)}let _=(v,S=!1)=>{let{isMatch:x,match:F,output:A}=De.test(v,f,n,{glob:t,posix:c}),D={glob:t,state:h,regex:f,posix:c,input:v,output:A,match:F,isMatch:x};return typeof u.onResult=="function"&&u.onResult(D),x===!1?(D.isMatch=!1,S?D:!1):g(v)?(typeof u.onIgnore=="function"&&u.onIgnore(D),D.isMatch=!1,S?D:!1):(typeof u.onMatch=="function"&&u.onMatch(D),S?D:!0)};return i&&(_.state=h),_};De.test=(t,n,i,{glob:o,posix:u}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let c=i||{},f=c.format||(u?Za.toPosixSlashes:null),h=t===o,g=h&&f?f(t):t;return h===!1&&(g=f?f(t):t,h=g===o),(h===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?h=De.matchBase(t,n,i,u):h=n.exec(g)),{isMatch:Boolean(h),match:h,output:g}};De.matchBase=(t,n,i,o=Za.isWindows(i))=>(n instanceof RegExp?n:De.makeRe(n,i)).test(KC.basename(t));De.isMatch=(t,n,i)=>De(n,i)(t);De.parse=(t,n)=>Array.isArray(t)?t.map(i=>De.parse(i,n)):Ya(t,{...n,fastpaths:!1});De.scan=(t,n)=>XC(t,n);De.compileRe=(t,n,i=!1,o=!1)=>{if(i===!0)return t.output;let u=n||{},c=u.contains?"":"^",f=u.contains?"":"$",h=`${c}(?:${t.output})${f}`;t&&t.negated===!0&&(h=`^(?!${h}).*$`);let g=De.toRegex(h,n);return o===!0&&(g.state=t),g};De.makeRe=(t,n={},i=!1,o=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return n.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(u.output=Ya.fastpaths(t,n)),u.output||(u=Ya(t,n)),De.compileRe(u,n,i,o)};De.toRegex=(t,n)=>{try{let i=n||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(i){if(n&&n.debug===!0)throw i;return/$^/}};De.constants=zC;sg.exports=De});var ag=L((FL,ug)=>{"use strict";ug.exports=og()});var pg=L((qL,hg)=>{"use strict";var lg=H("util"),fg=Wd(),Ut=ag(),Qa=_i(),cg=t=>t===""||t==="./",Re=(t,n,i)=>{n=[].concat(n),t=[].concat(t);let o=new Set,u=new Set,c=new Set,f=0,h=v=>{c.add(v.output),i&&i.onResult&&i.onResult(v)};for(let v=0;v!o.has(v));if(i&&_.length===0){if(i.failglob===!0)throw new Error(`No matches found for "${n.join(", ")}"`);if(i.nonull===!0||i.nullglob===!0)return i.unescape?n.map(v=>v.replace(/\\/g,"")):n}return _};Re.match=Re;Re.matcher=(t,n)=>Ut(t,n);Re.isMatch=(t,n,i)=>Ut(n,i)(t);Re.any=Re.isMatch;Re.not=(t,n,i={})=>{n=[].concat(n).map(String);let o=new Set,u=[],c=h=>{i.onResult&&i.onResult(h),u.push(h.output)},f=new Set(Re(t,n,{...i,onResult:c}));for(let h of u)f.has(h)||o.add(h);return[...o]};Re.contains=(t,n,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${lg.inspect(t)}"`);if(Array.isArray(n))return n.some(o=>Re.contains(t,o,i));if(typeof n=="string"){if(cg(t)||cg(n))return!1;if(t.includes(n)||t.startsWith("./")&&t.slice(2).includes(n))return!0}return Re.isMatch(t,n,{...i,contains:!0})};Re.matchKeys=(t,n,i)=>{if(!Qa.isObject(t))throw new TypeError("Expected the first argument to be an object");let o=Re(Object.keys(t),n,i),u={};for(let c of o)u[c]=t[c];return u};Re.some=(t,n,i)=>{let o=[].concat(t);for(let u of[].concat(n)){let c=Ut(String(u),i);if(o.some(f=>c(f)))return!0}return!1};Re.every=(t,n,i)=>{let o=[].concat(t);for(let u of[].concat(n)){let c=Ut(String(u),i);if(!o.every(f=>c(f)))return!1}return!0};Re.all=(t,n,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${lg.inspect(t)}"`);return[].concat(n).every(o=>Ut(o,i)(t))};Re.capture=(t,n,i)=>{let o=Qa.isWindows(i),c=Ut.makeRe(String(t),{...i,capture:!0}).exec(o?Qa.toPosixSlashes(n):n);if(c)return c.slice(1).map(f=>f===void 0?"":f)};Re.makeRe=(...t)=>Ut.makeRe(...t);Re.scan=(...t)=>Ut.scan(...t);Re.parse=(t,n)=>{let i=[];for(let o of[].concat(t||[]))for(let u of fg(String(o),n))i.push(Ut.parse(u,n));return i};Re.braces=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");return n&&n.nobrace===!0||!/\{.*\}/.test(t)?[t]:fg(t,n)};Re.braceExpand=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Re.braces(t,{...n,expand:!0})};hg.exports=Re});var wg=L(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.removeDuplicateSlashes=ee.matchAny=ee.convertPatternsToRe=ee.makeRe=ee.getPatternParts=ee.expandBraceExpansion=ee.expandPatternsWithBraceExpansion=ee.isAffectDepthOfReadingPattern=ee.endsWithSlashGlobStar=ee.hasGlobStar=ee.getBaseDirectory=ee.isPatternRelatedToParentDirectory=ee.getPatternsOutsideCurrentDirectory=ee.getPatternsInsideCurrentDirectory=ee.getPositivePatterns=ee.getNegativePatterns=ee.isPositivePattern=ee.isNegativePattern=ee.convertToNegativePattern=ee.convertToPositivePattern=ee.isDynamicPattern=ee.isStaticPattern=void 0;var ZC=H("path"),QC=od(),Va=pg(),dg="**",VC="\\",JC=/[*?]|^!/,eR=/\[[^[]*]/,tR=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,nR=/[!*+?@]\([^(]*\)/,rR=/,|\.\./,iR=/(?!^)\/{2,}/g;function gg(t,n={}){return!mg(t,n)}ee.isStaticPattern=gg;function mg(t,n={}){return t===""?!1:!!(n.caseSensitiveMatch===!1||t.includes(VC)||JC.test(t)||eR.test(t)||tR.test(t)||n.extglob!==!1&&nR.test(t)||n.braceExpansion!==!1&&sR(t))}ee.isDynamicPattern=mg;function sR(t){let n=t.indexOf("{");if(n===-1)return!1;let i=t.indexOf("}",n+1);if(i===-1)return!1;let o=t.slice(n,i);return rR.test(o)}function oR(t){return Ds(t)?t.slice(1):t}ee.convertToPositivePattern=oR;function uR(t){return"!"+t}ee.convertToNegativePattern=uR;function Ds(t){return t.startsWith("!")&&t[1]!=="("}ee.isNegativePattern=Ds;function _g(t){return!Ds(t)}ee.isPositivePattern=_g;function aR(t){return t.filter(Ds)}ee.getNegativePatterns=aR;function cR(t){return t.filter(_g)}ee.getPositivePatterns=cR;function lR(t){return t.filter(n=>!Ja(n))}ee.getPatternsInsideCurrentDirectory=lR;function fR(t){return t.filter(Ja)}ee.getPatternsOutsideCurrentDirectory=fR;function Ja(t){return t.startsWith("..")||t.startsWith("./..")}ee.isPatternRelatedToParentDirectory=Ja;function hR(t){return QC(t,{flipBackslashes:!1})}ee.getBaseDirectory=hR;function pR(t){return t.includes(dg)}ee.hasGlobStar=pR;function yg(t){return t.endsWith("/"+dg)}ee.endsWithSlashGlobStar=yg;function dR(t){let n=ZC.basename(t);return yg(t)||gg(n)}ee.isAffectDepthOfReadingPattern=dR;function gR(t){return t.reduce((n,i)=>n.concat(vg(i)),[])}ee.expandPatternsWithBraceExpansion=gR;function vg(t){let n=Va.braces(t,{expand:!0,nodupes:!0});return n.sort((i,o)=>i.length-o.length),n.filter(i=>i!=="")}ee.expandBraceExpansion=vg;function mR(t,n){let{parts:i}=Va.scan(t,Object.assign(Object.assign({},n),{parts:!0}));return i.length===0&&(i=[t]),i[0].startsWith("/")&&(i[0]=i[0].slice(1),i.unshift("")),i}ee.getPatternParts=mR;function bg(t,n){return Va.makeRe(t,n)}ee.makeRe=bg;function _R(t,n){return t.map(i=>bg(i,n))}ee.convertPatternsToRe=_R;function yR(t,n){return n.some(i=>i.test(t))}ee.matchAny=yR;function vR(t){return t.replace(iR,"/")}ee.removeDuplicateSlashes=vR});var Sg=L(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.merge=void 0;var bR=Ia();function wR(t){let n=bR(t);return t.forEach(i=>{i.once("error",o=>n.emit("error",o))}),n.once("close",()=>xg(t)),n.once("end",()=>xg(t)),n}Ns.merge=wR;function xg(t){t.forEach(n=>n.emit("close"))}});var Eg=L(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.isEmpty=mr.isString=void 0;function xR(t){return typeof t=="string"}mr.isString=xR;function SR(t){return t===""}mr.isEmpty=SR});var on=L(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.string=Xe.stream=Xe.pattern=Xe.path=Xe.fs=Xe.errno=Xe.array=void 0;var ER=Xp();Xe.array=ER;var AR=zp();Xe.errno=AR;var CR=Yp();Xe.fs=CR;var RR=Jp();Xe.path=RR;var PR=wg();Xe.pattern=PR;var TR=Sg();Xe.stream=TR;var OR=Eg();Xe.string=OR});var Pg=L(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var kt=on();function IR(t,n){let i=Ag(t,n),o=Ag(n.ignore,n),u=Cg(i),c=Rg(i,o),f=u.filter(v=>kt.pattern.isStaticPattern(v,n)),h=u.filter(v=>kt.pattern.isDynamicPattern(v,n)),g=ec(f,c,!1),_=ec(h,c,!0);return g.concat(_)}ze.generate=IR;function Ag(t,n){let i=t;return n.braceExpansion&&(i=kt.pattern.expandPatternsWithBraceExpansion(i)),n.baseNameMatch&&(i=i.map(o=>o.includes("/")?o:`**/${o}`)),i.map(o=>kt.pattern.removeDuplicateSlashes(o))}function ec(t,n,i){let o=[],u=kt.pattern.getPatternsOutsideCurrentDirectory(t),c=kt.pattern.getPatternsInsideCurrentDirectory(t),f=tc(u),h=tc(c);return o.push(...nc(f,n,i)),"."in h?o.push(rc(".",c,n,i)):o.push(...nc(h,n,i)),o}ze.convertPatternsToTasks=ec;function Cg(t){return kt.pattern.getPositivePatterns(t)}ze.getPositivePatterns=Cg;function Rg(t,n){return kt.pattern.getNegativePatterns(t).concat(n).map(kt.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=Rg;function tc(t){let n={};return t.reduce((i,o)=>{let u=kt.pattern.getBaseDirectory(o);return u in i?i[u].push(o):i[u]=[o],i},n)}ze.groupPatternsByBaseDirectory=tc;function nc(t,n,i){return Object.keys(t).map(o=>rc(o,t[o],n,i))}ze.convertPatternGroupsToTasks=nc;function rc(t,n,i,o){return{dynamic:o,positive:n,negative:i,base:t,patterns:[].concat(n,i.map(kt.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=rc});var Og=L($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.read=void 0;function LR(t,n,i){n.fs.lstat(t,(o,u)=>{if(o!==null){Tg(i,o);return}if(!u.isSymbolicLink()||!n.followSymbolicLink){ic(i,u);return}n.fs.stat(t,(c,f)=>{if(c!==null){if(n.throwErrorOnBrokenSymbolicLink){Tg(i,c);return}ic(i,u);return}n.markSymbolicLink&&(f.isSymbolicLink=()=>!0),ic(i,f)})})}$s.read=LR;function Tg(t,n){t(n)}function ic(t,n){t(null,n)}});var Ig=L(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.read=void 0;function kR(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let o=n.fs.statSync(t);return n.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw o}}Ms.read=kR});var Lg=L(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.createFileSystemAdapter=bn.FILE_SYSTEM_ADAPTER=void 0;var Fs=H("fs");bn.FILE_SYSTEM_ADAPTER={lstat:Fs.lstat,stat:Fs.stat,lstatSync:Fs.lstatSync,statSync:Fs.statSync};function DR(t){return t===void 0?bn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},bn.FILE_SYSTEM_ADAPTER),t)}bn.createFileSystemAdapter=DR});var kg=L(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var NR=Lg(),sc=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=NR.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n??i}};oc.default=sc});var qn=L(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.statSync=wn.stat=wn.Settings=void 0;var Dg=Og(),$R=Ig(),uc=kg();wn.Settings=uc.default;function MR(t,n,i){if(typeof n=="function"){Dg.read(t,ac(),n);return}Dg.read(t,ac(n),i)}wn.stat=MR;function FR(t,n){let i=ac(n);return $R.read(t,i)}wn.statSync=FR;function ac(t={}){return t instanceof uc.default?t:new uc.default(t)}});var Mg=L((ZL,$g)=>{var Ng;$g.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Ng||(Ng=Promise.resolve())).then(t).catch(n=>setTimeout(()=>{throw n},0))});var qg=L((QL,Fg)=>{Fg.exports=HR;var qR=Mg();function HR(t,n){let i,o,u,c=!0;Array.isArray(t)?(i=[],o=t.length):(u=Object.keys(t),i={},o=u.length);function f(g){function _(){n&&n(g,i),n=null}c?qR(_):_()}function h(g,_,v){i[g]=v,(--o===0||_)&&f(_)}o?u?u.forEach(function(g){t[g](function(_,v){h(g,_,v)})}):t.forEach(function(g,_){g(function(v,S){h(_,v,S)})}):f(null),c=!1}});var cc=L(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var qs=process.versions.node.split(".");if(qs[0]===void 0||qs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Hg=Number.parseInt(qs[0],10),BR=Number.parseInt(qs[1],10),Bg=10,WR=10,UR=Hg>Bg,GR=Hg===Bg&&BR>=WR;Hs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=UR||GR});var Wg=L(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.createDirentFromStats=void 0;var lc=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function jR(t,n){return new lc(t,n)}Bs.createDirentFromStats=jR});var fc=L(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.fs=void 0;var KR=Wg();Ws.fs=KR});var hc=L(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.joinPathSegments=void 0;function XR(t,n,i){return t.endsWith(i)?t+n:t+i+n}Us.joinPathSegments=XR});var zg=L(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.readdir=xn.readdirWithFileTypes=xn.read=void 0;var zR=qn(),Ug=qg(),YR=cc(),Gg=fc(),jg=hc();function ZR(t,n,i){if(!n.stats&&YR.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Kg(t,n,i);return}Xg(t,n,i)}xn.read=ZR;function Kg(t,n,i){n.fs.readdir(t,{withFileTypes:!0},(o,u)=>{if(o!==null){Gs(i,o);return}let c=u.map(h=>({dirent:h,name:h.name,path:jg.joinPathSegments(t,h.name,n.pathSegmentSeparator)}));if(!n.followSymbolicLinks){pc(i,c);return}let f=c.map(h=>QR(h,n));Ug(f,(h,g)=>{if(h!==null){Gs(i,h);return}pc(i,g)})})}xn.readdirWithFileTypes=Kg;function QR(t,n){return i=>{if(!t.dirent.isSymbolicLink()){i(null,t);return}n.fs.stat(t.path,(o,u)=>{if(o!==null){if(n.throwErrorOnBrokenSymbolicLink){i(o);return}i(null,t);return}t.dirent=Gg.fs.createDirentFromStats(t.name,u),i(null,t)})}}function Xg(t,n,i){n.fs.readdir(t,(o,u)=>{if(o!==null){Gs(i,o);return}let c=u.map(f=>{let h=jg.joinPathSegments(t,f,n.pathSegmentSeparator);return g=>{zR.stat(h,n.fsStatSettings,(_,v)=>{if(_!==null){g(_);return}let S={name:f,path:h,dirent:Gg.fs.createDirentFromStats(f,v)};n.stats&&(S.stats=v),g(null,S)})}});Ug(c,(f,h)=>{if(f!==null){Gs(i,f);return}pc(i,h)})})}xn.readdir=Xg;function Gs(t,n){t(n)}function pc(t,n){t(null,n)}});var Jg=L(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.readdir=Sn.readdirWithFileTypes=Sn.read=void 0;var VR=qn(),JR=cc(),Yg=fc(),Zg=hc();function eP(t,n){return!n.stats&&JR.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Qg(t,n):Vg(t,n)}Sn.read=eP;function Qg(t,n){return n.fs.readdirSync(t,{withFileTypes:!0}).map(o=>{let u={dirent:o,name:o.name,path:Zg.joinPathSegments(t,o.name,n.pathSegmentSeparator)};if(u.dirent.isSymbolicLink()&&n.followSymbolicLinks)try{let c=n.fs.statSync(u.path);u.dirent=Yg.fs.createDirentFromStats(u.name,c)}catch(c){if(n.throwErrorOnBrokenSymbolicLink)throw c}return u})}Sn.readdirWithFileTypes=Qg;function Vg(t,n){return n.fs.readdirSync(t).map(o=>{let u=Zg.joinPathSegments(t,o,n.pathSegmentSeparator),c=VR.statSync(u,n.fsStatSettings),f={name:o,path:u,dirent:Yg.fs.createDirentFromStats(o,c)};return n.stats&&(f.stats=c),f})}Sn.readdir=Vg});var em=L(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.createFileSystemAdapter=En.FILE_SYSTEM_ADAPTER=void 0;var _r=H("fs");En.FILE_SYSTEM_ADAPTER={lstat:_r.lstat,stat:_r.stat,lstatSync:_r.lstatSync,statSync:_r.statSync,readdir:_r.readdir,readdirSync:_r.readdirSync};function tP(t){return t===void 0?En.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},En.FILE_SYSTEM_ADAPTER),t)}En.createFileSystemAdapter=tP});var tm=L(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var nP=H("path"),rP=qn(),iP=em(),dc=class{constructor(n={}){this._options=n,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=iP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,nP.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new rP.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(n,i){return n??i}};gc.default=dc});var js=L(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.Settings=An.scandirSync=An.scandir=void 0;var nm=zg(),sP=Jg(),mc=tm();An.Settings=mc.default;function oP(t,n,i){if(typeof n=="function"){nm.read(t,_c(),n);return}nm.read(t,_c(n),i)}An.scandir=oP;function uP(t,n){let i=_c(n);return sP.read(t,i)}An.scandirSync=uP;function _c(t={}){return t instanceof mc.default?t:new mc.default(t)}});var im=L((uk,rm)=>{"use strict";function aP(t){var n=new t,i=n;function o(){var c=n;return c.next?n=c.next:(n=new t,i=n),c.next=null,c}function u(c){i.next=c,i=c}return{get:o,release:u}}rm.exports=aP});var om=L((ak,yc)=>{"use strict";var cP=im();function sm(t,n,i){if(typeof t=="function"&&(i=n,n=t,t=null),i<1)throw new Error("fastqueue concurrency must be greater than 1");var o=cP(lP),u=null,c=null,f=0,h=null,g={push:D,drain:Ct,saturated:Ct,pause:v,paused:!1,concurrency:i,running:_,resume:F,idle:A,length:S,getQueue:x,unshift:te,empty:Ct,kill:ae,killAndDrain:X,error:z};return g;function _(){return f}function v(){g.paused=!0}function S(){for(var N=u,J=0;N;)N=N.next,J++;return J}function x(){for(var N=u,J=[];N;)J.push(N.value),N=N.next;return J}function F(){if(!!g.paused){g.paused=!1;for(var N=0;N{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.joinPathSegments=Gt.replacePathSegmentSeparator=Gt.isAppliedFilter=Gt.isFatalError=void 0;function hP(t,n){return t.errorFilter===null?!0:!t.errorFilter(n)}Gt.isFatalError=hP;function pP(t,n){return t===null||t(n)}Gt.isAppliedFilter=pP;function dP(t,n){return t.split(/[/\\]/).join(n)}Gt.replacePathSegmentSeparator=dP;function gP(t,n,i){return t===""?n:t.endsWith(i)?t+n:t+i+n}Gt.joinPathSegments=gP});var wc=L(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var mP=Ks(),vc=class{constructor(n,i){this._root=n,this._settings=i,this._root=mP.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};bc.default=vc});var Ec=L(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var _P=H("events"),yP=js(),vP=om(),Xs=Ks(),bP=wc(),xc=class extends bP.default{constructor(n,i){super(n,i),this._settings=i,this._scandir=yP.scandir,this._emitter=new _P.EventEmitter,this._queue=vP(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(n){this._emitter.on("entry",n)}onError(n){this._emitter.once("error",n)}onEnd(n){this._emitter.once("end",n)}_pushToQueue(n,i){let o={directory:n,base:i};this._queue.push(o,u=>{u!==null&&this._handleError(u)})}_worker(n,i){this._scandir(n.directory,this._settings.fsScandirSettings,(o,u)=>{if(o!==null){i(o,void 0);return}for(let c of u)this._handleEntry(c,n.base);i(null,void 0)})}_handleError(n){this._isDestroyed||!Xs.isFatalError(this._settings,n)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",n))}_handleEntry(n,i){if(this._isDestroyed||this._isFatalError)return;let o=n.path;i!==void 0&&(n.path=Xs.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),Xs.isAppliedFilter(this._settings.entryFilter,n)&&this._emitEntry(n),n.dirent.isDirectory()&&Xs.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(o,i===void 0?void 0:n.path)}_emitEntry(n){this._emitter.emit("entry",n)}};Sc.default=xc});var um=L(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var wP=Ec(),Ac=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new wP.default(this._root,this._settings),this._storage=[]}read(n){this._reader.onError(i=>{xP(n,i)}),this._reader.onEntry(i=>{this._storage.push(i)}),this._reader.onEnd(()=>{SP(n,this._storage)}),this._reader.read()}};Cc.default=Ac;function xP(t,n){t(n)}function SP(t,n){t(null,n)}});var am=L(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var EP=H("stream"),AP=Ec(),Rc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new AP.default(this._root,this._settings),this._stream=new EP.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Pc.default=Rc});var cm=L(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var CP=js(),zs=Ks(),RP=wc(),Tc=class extends RP.default{constructor(){super(...arguments),this._scandir=CP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(n,i){this._queue.add({directory:n,base:i})}_handleQueue(){for(let n of this._queue.values())this._handleDirectory(n.directory,n.base)}_handleDirectory(n,i){try{let o=this._scandir(n,this._settings.fsScandirSettings);for(let u of o)this._handleEntry(u,i)}catch(o){this._handleError(o)}}_handleError(n){if(!!zs.isFatalError(this._settings,n))throw n}_handleEntry(n,i){let o=n.path;i!==void 0&&(n.path=zs.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),zs.isAppliedFilter(this._settings.entryFilter,n)&&this._pushToStorage(n),n.dirent.isDirectory()&&zs.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(o,i===void 0?void 0:n.path)}_pushToStorage(n){this._storage.push(n)}};Oc.default=Tc});var lm=L(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var PP=cm(),Ic=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new PP.default(this._root,this._settings)}read(){return this._reader.read()}};Lc.default=Ic});var fm=L(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});var TP=H("path"),OP=js(),kc=class{constructor(n={}){this._options=n,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,TP.sep),this.fsScandirSettings=new OP.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,i){return n??i}};Dc.default=kc});var Zs=L(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.Settings=jt.walkStream=jt.walkSync=jt.walk=void 0;var hm=um(),IP=am(),LP=lm(),Nc=fm();jt.Settings=Nc.default;function kP(t,n,i){if(typeof n=="function"){new hm.default(t,Ys()).read(n);return}new hm.default(t,Ys(n)).read(i)}jt.walk=kP;function DP(t,n){let i=Ys(n);return new LP.default(t,i).read()}jt.walkSync=DP;function NP(t,n){let i=Ys(n);return new IP.default(t,i).read()}jt.walkStream=NP;function Ys(t={}){return t instanceof Nc.default?t:new Nc.default(t)}});var Qs=L(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var $P=H("path"),MP=qn(),pm=on(),$c=class{constructor(n){this._settings=n,this._fsStatSettings=new MP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(n){return $P.resolve(this._settings.cwd,n)}_makeEntry(n,i){let o={name:i,path:i,dirent:pm.fs.createDirentFromStats(i,n)};return this._settings.stats&&(o.stats=n),o}_isFatalError(n){return!pm.errno.isEnoentCodeError(n)&&!this._settings.suppressErrors}};Mc.default=$c});var Hc=L(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var FP=H("stream"),qP=qn(),HP=Zs(),BP=Qs(),Fc=class extends BP.default{constructor(){super(...arguments),this._walkStream=HP.walkStream,this._stat=qP.stat}dynamic(n,i){return this._walkStream(n,i)}static(n,i){let o=n.map(this._getFullEntryPath,this),u=new FP.PassThrough({objectMode:!0});u._write=(c,f,h)=>this._getEntry(o[c],n[c],i).then(g=>{g!==null&&i.entryFilter(g)&&u.push(g),c===o.length-1&&u.end(),h()}).catch(h);for(let c=0;cthis._makeEntry(u,i)).catch(u=>{if(o.errorFilter(u))return null;throw u})}_getStat(n){return new Promise((i,o)=>{this._stat(n,this._fsStatSettings,(u,c)=>u===null?i(c):o(u))})}};qc.default=Fc});var dm=L(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var WP=Zs(),UP=Qs(),GP=Hc(),Bc=class extends UP.default{constructor(){super(...arguments),this._walkAsync=WP.walk,this._readerStream=new GP.default(this._settings)}dynamic(n,i){return new Promise((o,u)=>{this._walkAsync(n,i,(c,f)=>{c===null?o(f):u(c)})})}async static(n,i){let o=[],u=this._readerStream.static(n,i);return new Promise((c,f)=>{u.once("error",f),u.on("data",h=>o.push(h)),u.once("end",()=>c(o))})}};Wc.default=Bc});var gm=L(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});var vi=on(),Uc=class{constructor(n,i,o){this._patterns=n,this._settings=i,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let n of this._patterns){let i=this._getPatternSegments(n),o=this._splitSegmentsIntoSections(i);this._storage.push({complete:o.length<=1,pattern:n,segments:i,sections:o})}}_getPatternSegments(n){return vi.pattern.getPatternParts(n,this._micromatchOptions).map(o=>vi.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:vi.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(n){return vi.array.splitWhen(n,i=>i.dynamic&&vi.pattern.hasGlobStar(i.pattern))}};Gc.default=Uc});var mm=L(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var jP=gm(),jc=class extends jP.default{match(n){let i=n.split("/"),o=i.length,u=this._storage.filter(c=>!c.complete||c.segments.length>o);for(let c of u){let f=c.sections[0];if(!c.complete&&o>f.length||i.every((g,_)=>{let v=c.segments[_];return!!(v.dynamic&&v.patternRe.test(g)||!v.dynamic&&v.pattern===g)}))return!0}return!1}};Kc.default=jc});var _m=L(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var Vs=on(),KP=mm(),Xc=class{constructor(n,i){this._settings=n,this._micromatchOptions=i}getFilter(n,i,o){let u=this._getMatcher(i),c=this._getNegativePatternsRe(o);return f=>this._filter(n,f,u,c)}_getMatcher(n){return new KP.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let i=n.filter(Vs.pattern.isAffectDepthOfReadingPattern);return Vs.pattern.convertPatternsToRe(i,this._micromatchOptions)}_filter(n,i,o,u){if(this._isSkippedByDeep(n,i.path)||this._isSkippedSymbolicLink(i))return!1;let c=Vs.path.removeLeadingDotSegment(i.path);return this._isSkippedByPositivePatterns(c,o)?!1:this._isSkippedByNegativePatterns(c,u)}_isSkippedByDeep(n,i){return this._settings.deep===1/0?!1:this._getEntryLevel(n,i)>=this._settings.deep}_getEntryLevel(n,i){let o=i.split("/").length;if(n==="")return o;let u=n.split("/").length;return o-u}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,i){return!this._settings.baseNameMatch&&!i.match(n)}_isSkippedByNegativePatterns(n,i){return!Vs.pattern.matchAny(n,i)}};zc.default=Xc});var ym=L(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var Hn=on(),Yc=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let o=Hn.pattern.convertPatternsToRe(n,this._micromatchOptions),u=Hn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return c=>this._filter(c,o,u)}_filter(n,i,o){let u=Hn.path.removeLeadingDotSegment(n.path);if(this._settings.unique&&this._isDuplicateEntry(u)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(u,o))return!1;let c=n.dirent.isDirectory(),f=this._isMatchToPatterns(u,i,c)&&!this._isMatchToPatterns(u,o,c);return this._settings.unique&&f&&this._createIndexRecord(u),f}_isDuplicateEntry(n){return this.index.has(n)}_createIndexRecord(n){this.index.set(n,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let o=Hn.path.makeAbsolute(this._settings.cwd,n);return Hn.pattern.matchAny(o,i)}_isMatchToPatterns(n,i,o){let u=Hn.pattern.matchAny(n,i);return!u&&o?Hn.pattern.matchAny(n+"/",i):u}};Zc.default=Yc});var vm=L(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var XP=on(),Qc=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return XP.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};Vc.default=Qc});var wm=L(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var bm=on(),Jc=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=bm.path.makeAbsolute(this._settings.cwd,i),i=bm.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};el.default=Jc});var Js=L(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var zP=H("path"),YP=_m(),ZP=ym(),QP=vm(),VP=wm(),tl=class{constructor(n){this._settings=n,this.errorFilter=new QP.default(this._settings),this.entryFilter=new ZP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new YP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new VP.default(this._settings)}_getRootDirectory(n){return zP.resolve(this._settings.cwd,n.base)}_getReaderOptions(n){let i=n.base==="."?"":n.base;return{basePath:i,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(i,n.positive,n.negative),entryFilter:this.entryFilter.getFilter(n.positive,n.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}}};nl.default=tl});var xm=L(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var JP=dm(),eT=Js(),rl=class extends eT.default{constructor(){super(...arguments),this._reader=new JP.default(this._settings)}async read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n);return(await this.api(i,n,o)).map(c=>o.transform(c))}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};il.default=rl});var Sm=L(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var tT=H("stream"),nT=Hc(),rT=Js(),sl=class extends rT.default{constructor(){super(...arguments),this._reader=new nT.default(this._settings)}read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n),u=this.api(i,n,o),c=new tT.Readable({objectMode:!0,read:()=>{}});return u.once("error",f=>c.emit("error",f)).on("data",f=>c.emit("data",o.transform(f))).once("end",()=>c.emit("end")),c.once("close",()=>u.destroy()),c}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};ol.default=sl});var Em=L(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var iT=qn(),sT=Zs(),oT=Qs(),ul=class extends oT.default{constructor(){super(...arguments),this._walkSync=sT.walkSync,this._statSync=iT.statSync}dynamic(n,i){return this._walkSync(n,i)}static(n,i){let o=[];for(let u of n){let c=this._getFullEntryPath(u),f=this._getEntry(c,u,i);f===null||!i.entryFilter(f)||o.push(f)}return o}_getEntry(n,i,o){try{let u=this._getStat(n);return this._makeEntry(u,i)}catch(u){if(o.errorFilter(u))return null;throw u}}_getStat(n){return this._statSync(n,this._fsStatSettings)}};al.default=ul});var Am=L(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var uT=Em(),aT=Js(),cl=class extends aT.default{constructor(){super(...arguments),this._reader=new uT.default(this._settings)}read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n);return this.api(i,n,o).map(o.transform)}api(n,i,o){return i.dynamic?this._reader.dynamic(n,o):this._reader.static(i.patterns,o)}};ll.default=cl});var Cm=L(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var yr=H("fs"),cT=H("os"),lT=Math.max(cT.cpus().length,1);vr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:yr.lstat,lstatSync:yr.lstatSync,stat:yr.stat,statSync:yr.statSync,readdir:yr.readdir,readdirSync:yr.readdirSync};var fl=class{constructor(n={}){this._options=n,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,lT),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(n,i){return n===void 0?i:n}_getFileSystemMethods(n={}){return Object.assign(Object.assign({},vr.DEFAULT_FILE_SYSTEM_ADAPTER),n)}};vr.default=fl});var gl=L((kk,Pm)=>{"use strict";var Rm=Pg(),fT=xm(),hT=Sm(),pT=Am(),hl=Cm(),Rt=on();async function pl(t,n){Dt(t);let i=dl(t,fT.default,n),o=await Promise.all(i);return Rt.array.flatten(o)}(function(t){t.glob=t,t.globSync=n,t.globStream=i,t.async=t;function n(_,v){Dt(_);let S=dl(_,pT.default,v);return Rt.array.flatten(S)}t.sync=n;function i(_,v){Dt(_);let S=dl(_,hT.default,v);return Rt.stream.merge(S)}t.stream=i;function o(_,v){Dt(_);let S=[].concat(_),x=new hl.default(v);return Rm.generate(S,x)}t.generateTasks=o;function u(_,v){Dt(_);let S=new hl.default(v);return Rt.pattern.isDynamicPattern(_,S)}t.isDynamicPattern=u;function c(_){return Dt(_),Rt.path.escape(_)}t.escapePath=c;function f(_){return Dt(_),Rt.path.convertPathToPattern(_)}t.convertPathToPattern=f;let h;(function(_){function v(x){return Dt(x),Rt.path.escapePosixPath(x)}_.escapePath=v;function S(x){return Dt(x),Rt.path.convertPosixPathToPattern(x)}_.convertPathToPattern=S})(h=t.posix||(t.posix={}));let g;(function(_){function v(x){return Dt(x),Rt.path.escapeWindowsPath(x)}_.escapePath=v;function S(x){return Dt(x),Rt.path.convertWindowsPathToPattern(x)}_.convertPathToPattern=S})(g=t.win32||(t.win32={}))})(pl||(pl={}));function dl(t,n,i){let o=[].concat(t),u=new hl.default(i),c=Rm.generate(o,u),f=new n(u);return c.map(f.read,f)}function Dt(t){if(![].concat(t).every(o=>Rt.string.isString(o)&&!Rt.string.isEmpty(o)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Pm.exports=pl});var Om=L(Bn=>{"use strict";var{promisify:dT}=H("util"),Tm=H("fs");async function ml(t,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await dT(Tm[t])(i))[n]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}function _l(t,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return Tm[t](i)[n]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}Bn.isFile=ml.bind(null,"stat","isFile");Bn.isDirectory=ml.bind(null,"stat","isDirectory");Bn.isSymlink=ml.bind(null,"lstat","isSymbolicLink");Bn.isFileSync=_l.bind(null,"statSync","isFile");Bn.isDirectorySync=_l.bind(null,"statSync","isDirectory");Bn.isSymlinkSync=_l.bind(null,"lstatSync","isSymbolicLink")});var Nm=L((Nk,yl)=>{"use strict";var Wn=H("path"),Im=Om(),Lm=t=>t.length>1?`{${t.join(",")}}`:t[0],km=(t,n)=>{let i=t[0]==="!"?t.slice(1):t;return Wn.isAbsolute(i)?i:Wn.join(n,i)},gT=(t,n)=>Wn.extname(t)?`**/${t}`:`**/${t}.${Lm(n)}`,Dm=(t,n)=>{if(n.files&&!Array.isArray(n.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof n.files}\``);if(n.extensions&&!Array.isArray(n.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof n.extensions}\``);return n.files&&n.extensions?n.files.map(i=>Wn.posix.join(t,gT(i,n.extensions))):n.files?n.files.map(i=>Wn.posix.join(t,`**/${i}`)):n.extensions?[Wn.posix.join(t,`**/*.${Lm(n.extensions)}`)]:[Wn.posix.join(t,"**")]};yl.exports=async(t,n)=>{if(n={cwd:process.cwd(),...n},typeof n.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof n.cwd}\``);let i=await Promise.all([].concat(t).map(async o=>await Im.isDirectory(km(o,n.cwd))?Dm(o,n):o));return[].concat.apply([],i)};yl.exports.sync=(t,n)=>{if(n={cwd:process.cwd(),...n},typeof n.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof n.cwd}\``);let i=[].concat(t).map(o=>Im.isDirectorySync(km(o,n.cwd))?Dm(o,n):o);return[].concat.apply([],i)}});var jm=L(($k,Gm)=>{function $m(t){return Array.isArray(t)?t:[t]}var Hm="",Mm=" ",vl="\\",mT=/^\s+$/,_T=/(?:[^\\]|^)\\$/,yT=/^\\!/,vT=/^\\#/,bT=/\r?\n/g,wT=/^\.*\/|^\.+$/,bl="/",Bm="node-ignore";typeof Symbol<"u"&&(Bm=Symbol.for("node-ignore"));var Fm=Bm,xT=(t,n,i)=>Object.defineProperty(t,n,{value:i}),ST=/([0-z])-([0-z])/g,Wm=()=>!1,ET=t=>t.replace(ST,(n,i,o)=>i.charCodeAt(0)<=o.charCodeAt(0)?n:Hm),AT=t=>{let{length:n}=t;return t.slice(0,n-n%2)},CT=[[/\\?\s+$/,t=>t.indexOf("\\")===0?Mm:Hm],[/\\\s/g,()=>Mm],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,n,i)=>n+6{let o=i.replace(/\\\*/g,"[^\\/]*");return n+o}],[/\\\\\\(?=[$.|*+(){^])/g,()=>vl],[/\\\\/g,()=>vl],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,n,i,o,u)=>n===vl?`\\[${i}${AT(o)}${u}`:u==="]"&&o.length%2===0?`[${ET(i)}${o}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,n)=>`${n?`${n}[^/]+`:"[^/]*"}(?=$|\\/$)`]],qm=Object.create(null),RT=(t,n)=>{let i=qm[t];return i||(i=CT.reduce((o,u)=>o.replace(u[0],u[1].bind(t)),t),qm[t]=i),n?new RegExp(i,"i"):new RegExp(i)},Sl=t=>typeof t=="string",PT=t=>t&&Sl(t)&&!mT.test(t)&&!_T.test(t)&&t.indexOf("#")!==0,TT=t=>t.split(bT),wl=class{constructor(n,i,o,u){this.origin=n,this.pattern=i,this.negative=o,this.regex=u}},OT=(t,n)=>{let i=t,o=!1;t.indexOf("!")===0&&(o=!0,t=t.substr(1)),t=t.replace(yT,"!").replace(vT,"#");let u=RT(t,n);return new wl(i,t,o,u)},IT=(t,n)=>{throw new n(t)},un=(t,n,i)=>Sl(t)?t?un.isNotRelative(t)?i(`path should be a \`path.relative()\`d string, but got "${n}"`,RangeError):!0:i("path must not be empty",TypeError):i(`path must be a string, but got \`${n}\``,TypeError),Um=t=>wT.test(t);un.isNotRelative=Um;un.convert=t=>t;var xl=class{constructor({ignorecase:n=!0,ignoreCase:i=n,allowRelativePaths:o=!1}={}){xT(this,Fm,!0),this._rules=[],this._ignoreCase=i,this._allowRelativePaths=o,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(n){if(n&&n[Fm]){this._rules=this._rules.concat(n._rules),this._added=!0;return}if(PT(n)){let i=OT(n,this._ignoreCase);this._added=!0,this._rules.push(i)}}add(n){return this._added=!1,$m(Sl(n)?TT(n):n).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(n){return this.add(n)}_testOne(n,i){let o=!1,u=!1;return this._rules.forEach(c=>{let{negative:f}=c;if(u===f&&o!==u||f&&!o&&!u&&!i)return;c.regex.test(n)&&(o=!f,u=f)}),{ignored:o,unignored:u}}_test(n,i,o,u){let c=n&&un.convert(n);return un(c,n,this._allowRelativePaths?Wm:IT),this._t(c,i,o,u)}_t(n,i,o,u){if(n in i)return i[n];if(u||(u=n.split(bl)),u.pop(),!u.length)return i[n]=this._testOne(n,o);let c=this._t(u.join(bl)+bl,i,o,u);return i[n]=c.ignored?c:this._testOne(n,o)}ignores(n){return this._test(n,this._ignoreCache,!1).ignored}createFilter(){return n=>!this.ignores(n)}filter(n){return $m(n).filter(this.createFilter())}test(n){return this._test(n,this._testCache,!0)}},eo=t=>new xl(t),LT=t=>un(t&&un.convert(t),t,Wm);eo.isPathValid=LT;eo.default=eo;Gm.exports=eo;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=i=>/^\\\\\?\\/.test(i)||/["<>|\u0000-\u001F]+/u.test(i)?i:i.replace(/\\/g,"/");un.convert=t;let n=/^[a-z]:\//i;un.isNotRelative=i=>n.test(i)||Um(i)}});var Sr=L((xr,Si)=>{(function(){var t,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",_=1,v=2,S=4,x=1,F=2,A=1,D=2,te=4,j=8,ae=16,X=32,z=64,N=128,J=256,Y=512,U=30,oe="...",Pe=800,I=16,ve=1,me=2,Mt=3,C=1/0,R=9007199254740991,Be=17976931348623157e292,fe=0/0,Ie=4294967295,mt=Ie-1,Ye=Ie>>>1,Kn=[["ary",N],["bind",A],["bindKey",D],["curry",j],["curryRight",ae],["flip",Y],["partial",X],["partialRight",z],["rearg",J]],cn="[object Arguments]",Xt="[object Array]",zt="[object AsyncFunction]",se="[object Boolean]",Ft="[object Date]",su="[object DOMException]",q="[object Error]",_e="[object Function]",$="[object GeneratorFunction]",Z="[object Map]",be="[object Number]",We="[object Null]",we="[object Object]",Xn="[object Promise]",zn="[object Proxy]",Zr="[object RegExp]",Pt="[object Set]",Qr="[object String]",Ni="[object Symbol]",wv="[object Undefined]",Vr="[object WeakMap]",xv="[object WeakSet]",Jr="[object ArrayBuffer]",Yn="[object DataView]",ou="[object Float32Array]",uu="[object Float64Array]",au="[object Int8Array]",cu="[object Int16Array]",lu="[object Int32Array]",fu="[object Uint8Array]",hu="[object Uint8ClampedArray]",pu="[object Uint16Array]",du="[object Uint32Array]",Sv=/\b__p \+= '';/g,Ev=/\b(__p \+=) '' \+/g,Av=/(__e\(.*?\)|\b__t\)) \+\n'';/g,uf=/&(?:amp|lt|gt|quot|#39);/g,af=/[&<>"']/g,Cv=RegExp(uf.source),Rv=RegExp(af.source),Pv=/<%-([\s\S]+?)%>/g,Tv=/<%([\s\S]+?)%>/g,cf=/<%=([\s\S]+?)%>/g,Ov=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Iv=/^\w*$/,Lv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gu=/[\\^$.*+?()[\]{}|]/g,kv=RegExp(gu.source),mu=/^\s+/,Dv=/\s/,Nv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$v=/\{\n\/\* \[wrapped with (.+)\] \*/,Mv=/,? & /,Fv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qv=/[()=,{}\[\]\/\s]/,Hv=/\\(\\)?/g,Bv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lf=/\w*$/,Wv=/^[-+]0x[0-9a-f]+$/i,Uv=/^0b[01]+$/i,Gv=/^\[object .+?Constructor\]$/,jv=/^0o[0-7]+$/i,Kv=/^(?:0|[1-9]\d*)$/,Xv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$i=/($^)/,zv=/['\n\r\u2028\u2029\\]/g,Mi="\\ud800-\\udfff",Yv="\\u0300-\\u036f",Zv="\\ufe20-\\ufe2f",Qv="\\u20d0-\\u20ff",ff=Yv+Zv+Qv,hf="\\u2700-\\u27bf",pf="a-z\\xdf-\\xf6\\xf8-\\xff",Vv="\\xac\\xb1\\xd7\\xf7",Jv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",eb="\\u2000-\\u206f",tb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",df="A-Z\\xc0-\\xd6\\xd8-\\xde",gf="\\ufe0e\\ufe0f",mf=Vv+Jv+eb+tb,_u="['\u2019]",nb="["+Mi+"]",_f="["+mf+"]",Fi="["+ff+"]",yf="\\d+",rb="["+hf+"]",vf="["+pf+"]",bf="[^"+Mi+mf+yf+hf+pf+df+"]",yu="\\ud83c[\\udffb-\\udfff]",ib="(?:"+Fi+"|"+yu+")",wf="[^"+Mi+"]",vu="(?:\\ud83c[\\udde6-\\uddff]){2}",bu="[\\ud800-\\udbff][\\udc00-\\udfff]",Zn="["+df+"]",xf="\\u200d",Sf="(?:"+vf+"|"+bf+")",sb="(?:"+Zn+"|"+bf+")",Ef="(?:"+_u+"(?:d|ll|m|re|s|t|ve))?",Af="(?:"+_u+"(?:D|LL|M|RE|S|T|VE))?",Cf=ib+"?",Rf="["+gf+"]?",ob="(?:"+xf+"(?:"+[wf,vu,bu].join("|")+")"+Rf+Cf+")*",ub="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ab="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pf=Rf+Cf+ob,cb="(?:"+[rb,vu,bu].join("|")+")"+Pf,lb="(?:"+[wf+Fi+"?",Fi,vu,bu,nb].join("|")+")",fb=RegExp(_u,"g"),hb=RegExp(Fi,"g"),wu=RegExp(yu+"(?="+yu+")|"+lb+Pf,"g"),pb=RegExp([Zn+"?"+vf+"+"+Ef+"(?="+[_f,Zn,"$"].join("|")+")",sb+"+"+Af+"(?="+[_f,Zn+Sf,"$"].join("|")+")",Zn+"?"+Sf+"+"+Ef,Zn+"+"+Af,ab,ub,yf,cb].join("|"),"g"),db=RegExp("["+xf+Mi+ff+gf+"]"),gb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_b=-1,Ae={};Ae[ou]=Ae[uu]=Ae[au]=Ae[cu]=Ae[lu]=Ae[fu]=Ae[hu]=Ae[pu]=Ae[du]=!0,Ae[cn]=Ae[Xt]=Ae[Jr]=Ae[se]=Ae[Yn]=Ae[Ft]=Ae[q]=Ae[_e]=Ae[Z]=Ae[be]=Ae[we]=Ae[Zr]=Ae[Pt]=Ae[Qr]=Ae[Vr]=!1;var Ee={};Ee[cn]=Ee[Xt]=Ee[Jr]=Ee[Yn]=Ee[se]=Ee[Ft]=Ee[ou]=Ee[uu]=Ee[au]=Ee[cu]=Ee[lu]=Ee[Z]=Ee[be]=Ee[we]=Ee[Zr]=Ee[Pt]=Ee[Qr]=Ee[Ni]=Ee[fu]=Ee[hu]=Ee[pu]=Ee[du]=!0,Ee[q]=Ee[_e]=Ee[Vr]=!1;var yb={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vb={"&":"&","<":"<",">":">",'"':""","'":"'"},bb={"&":"&","<":"<",">":">",""":'"',"'":"'"},wb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xb=parseFloat,Sb=parseInt,Tf=typeof global=="object"&&global&&global.Object===Object&&global,Eb=typeof self=="object"&&self&&self.Object===Object&&self,qe=Tf||Eb||Function("return this")(),xu=typeof xr=="object"&&xr&&!xr.nodeType&&xr,Pn=xu&&typeof Si=="object"&&Si&&!Si.nodeType&&Si,Of=Pn&&Pn.exports===xu,Su=Of&&Tf.process,_t=function(){try{var b=Pn&&Pn.require&&Pn.require("util").types;return b||Su&&Su.binding&&Su.binding("util")}catch{}}(),If=_t&&_t.isArrayBuffer,Lf=_t&&_t.isDate,kf=_t&&_t.isMap,Df=_t&&_t.isRegExp,Nf=_t&&_t.isSet,$f=_t&&_t.isTypedArray;function st(b,P,E){switch(E.length){case 0:return b.call(P);case 1:return b.call(P,E[0]);case 2:return b.call(P,E[0],E[1]);case 3:return b.call(P,E[0],E[1],E[2])}return b.apply(P,E)}function Ab(b,P,E,B){for(var ne=-1,ge=b==null?0:b.length;++ne-1}function Eu(b,P,E){for(var B=-1,ne=b==null?0:b.length;++B-1;);return E}function Gf(b,P){for(var E=b.length;E--&&Qn(P,b[E],0)>-1;);return E}function Db(b,P){for(var E=b.length,B=0;E--;)b[E]===P&&++B;return B}var Nb=Pu(yb),$b=Pu(vb);function Mb(b){return"\\"+wb[b]}function Fb(b,P){return b==null?t:b[P]}function Vn(b){return db.test(b)}function qb(b){return gb.test(b)}function Hb(b){for(var P,E=[];!(P=b.next()).done;)E.push(P.value);return E}function Lu(b){var P=-1,E=Array(b.size);return b.forEach(function(B,ne){E[++P]=[ne,B]}),E}function jf(b,P){return function(E){return b(P(E))}}function hn(b,P){for(var E=-1,B=b.length,ne=0,ge=[];++E-1}function Rw(e,r){var s=this.__data__,a=ns(s,e);return a<0?(++this.size,s.push([e,r])):s[a][1]=r,this}Yt.prototype.clear=Sw,Yt.prototype.delete=Ew,Yt.prototype.get=Aw,Yt.prototype.has=Cw,Yt.prototype.set=Rw;function Zt(e){var r=-1,s=e==null?0:e.length;for(this.clear();++r=r?e:r)),e}function wt(e,r,s,a,l,d){var m,y=r&_,w=r&v,T=r&S;if(s&&(m=l?s(e,a,l,d):s(e)),m!==t)return m;if(!Te(e))return e;var O=re(e);if(O){if(m=Ix(e),!y)return Je(e,m)}else{var k=Ke(e),M=k==_e||k==$;if(vn(e))return Rh(e,y);if(k==we||k==cn||M&&!l){if(m=w||M?{}:Kh(e),!y)return w?bx(e,Uw(m,e)):vx(e,rh(m,e))}else{if(!Ee[k])return l?e:{};m=Lx(e,k,y)}}d||(d=new Ot);var W=d.get(e);if(W)return W;d.set(e,m),wp(e)?e.forEach(function(V){m.add(wt(V,r,s,V,e,d))}):vp(e)&&e.forEach(function(V,he){m.set(he,wt(V,r,s,he,e,d))});var Q=T?w?ia:ra:w?tt:He,ce=O?t:Q(e);return yt(ce||e,function(V,he){ce&&(he=V,V=e[he]),oi(m,he,wt(V,r,s,he,e,d))}),m}function Gw(e){var r=He(e);return function(s){return ih(s,e,r)}}function ih(e,r,s){var a=s.length;if(e==null)return!a;for(e=Se(e);a--;){var l=s[a],d=r[l],m=e[l];if(m===t&&!(l in e)||!d(m))return!1}return!0}function sh(e,r,s){if(typeof e!="function")throw new vt(u);return pi(function(){e.apply(t,s)},r)}function ui(e,r,s,a){var l=-1,d=qi,m=!0,y=e.length,w=[],T=r.length;if(!y)return w;s&&(r=Ce(r,ot(s))),a?(d=Eu,m=!1):r.length>=i&&(d=ei,m=!1,r=new In(r));e:for(;++ll?0:l+s),a=a===t||a>l?l:ue(a),a<0&&(a+=l),a=s>a?0:Sp(a);s0&&s(y)?r>1?Ue(y,r-1,s,a,l):fn(l,y):a||(l[l.length]=y)}return l}var qu=kh(),ah=kh(!0);function qt(e,r){return e&&qu(e,r,He)}function Hu(e,r){return e&&ah(e,r,He)}function is(e,r){return ln(r,function(s){return tn(e[s])})}function kn(e,r){r=_n(r,e);for(var s=0,a=r.length;e!=null&&sr}function Xw(e,r){return e!=null&&xe.call(e,r)}function zw(e,r){return e!=null&&r in Se(e)}function Yw(e,r,s){return e>=je(r,s)&&e=120&&O.length>=120)?new In(m&&O):t}O=e[0];var k=-1,M=y[0];e:for(;++k-1;)y!==e&&Yi.call(y,w,1),Yi.call(e,w,1);return e}function vh(e,r){for(var s=e?r.length:0,a=s-1;s--;){var l=r[s];if(s==a||l!==d){var d=l;en(l)?Yi.call(e,l,1):Zu(e,l)}}return e}function Xu(e,r){return e+Vi(Jf()*(r-e+1))}function ax(e,r,s,a){for(var l=-1,d=Me(Qi((r-e)/(s||1)),0),m=E(d);d--;)m[a?d:++l]=e,e+=s;return m}function zu(e,r){var s="";if(!e||r<1||r>R)return s;do r%2&&(s+=e),r=Vi(r/2),r&&(e+=e);while(r);return s}function le(e,r){return fa(Yh(e,r,nt),e+"")}function cx(e){return nh(ar(e))}function lx(e,r){var s=ar(e);return gs(s,Ln(r,0,s.length))}function li(e,r,s,a){if(!Te(e))return e;r=_n(r,e);for(var l=-1,d=r.length,m=d-1,y=e;y!=null&&++ll?0:l+r),s=s>l?l:s,s<0&&(s+=l),l=r>s?0:s-r>>>0,r>>>=0;for(var d=E(l);++a>>1,m=e[d];m!==null&&!at(m)&&(s?m<=r:m=i){var T=r?null:Ex(e);if(T)return Bi(T);m=!1,l=ei,w=new In}else w=r?[]:y;e:for(;++a=a?e:xt(e,r,s)}var Ch=tw||function(e){return qe.clearTimeout(e)};function Rh(e,r){if(r)return e.slice();var s=e.length,a=zf?zf(s):new e.constructor(s);return e.copy(a),a}function ea(e){var r=new e.constructor(e.byteLength);return new Xi(r).set(new Xi(e)),r}function gx(e,r){var s=r?ea(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function mx(e){var r=new e.constructor(e.source,lf.exec(e));return r.lastIndex=e.lastIndex,r}function _x(e){return si?Se(si.call(e)):{}}function Ph(e,r){var s=r?ea(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Th(e,r){if(e!==r){var s=e!==t,a=e===null,l=e===e,d=at(e),m=r!==t,y=r===null,w=r===r,T=at(r);if(!y&&!T&&!d&&e>r||d&&m&&w&&!y&&!T||a&&m&&w||!s&&w||!l)return 1;if(!a&&!d&&!T&&e=y)return w;var T=s[a];return w*(T=="desc"?-1:1)}}return e.index-r.index}function Oh(e,r,s,a){for(var l=-1,d=e.length,m=s.length,y=-1,w=r.length,T=Me(d-m,0),O=E(w+T),k=!a;++y1?s[l-1]:t,m=l>2?s[2]:t;for(d=e.length>3&&typeof d=="function"?(l--,d):t,m&&Qe(s[0],s[1],m)&&(d=l<3?t:d,l=1),r=Se(r);++a-1?l[d?r[m]:m]:t}}function $h(e){return Jt(function(r){var s=r.length,a=s,l=bt.prototype.thru;for(e&&r.reverse();a--;){var d=r[a];if(typeof d!="function")throw new vt(u);if(l&&!m&&ps(d)=="wrapper")var m=new bt([],!0)}for(a=m?a:s;++a1&&de.reverse(),O&&wy))return!1;var T=d.get(e),O=d.get(r);if(T&&O)return T==r&&O==e;var k=-1,M=!0,W=s&F?new In:t;for(d.set(e,r),d.set(r,e);++k1?"& ":"")+r[a],r=r.join(s>2?", ":" "),e.replace(Nv,`{ /* [wrapped with `+r+`] */ -`)}function Dx(e){return ie(e)||$n(e)||!!(Qf&&e&&e[Qf])}function en(e,r){var s=typeof e;return r=r??C,!!r&&(s=="number"||s!="symbol"&&Kv.test(e))&&e>-1&&e%1==0&&e0){if(++r>=Pe)return arguments[0]}else r=0;return e.apply(t,arguments)}}function gs(e,r){var s=-1,a=e.length,l=a-1;for(r=r===t?a:r;++s1?e[r-1]:t;return s=typeof s=="function"?(e.pop(),s):t,op(e,s)});function up(e){var r=p(e);return r.__chain__=!0,r}function jS(e,r){return r(e),e}function ms(e,r){return r(e)}var KS=Jt(function(e){var r=e.length,s=r?e[0]:0,a=this.__wrapped__,l=function(d){return Mu(d,e)};return r>1||this.__actions__.length||!(a instanceof pe)||!en(s)?this.thru(l):(a=a.slice(s,+s+(r?1:0)),a.__actions__.push({func:ms,args:[l],thisArg:t}),new bt(a,this.__chain__).thru(function(d){return r&&!d.length&&d.push(t),d}))});function XS(){return up(this)}function zS(){return new bt(this.value(),this.__chain__)}function YS(){this.__values__===t&&(this.__values__=wp(this.value()));var e=this.__index__>=this.__values__.length,r=e?t:this.__values__[this.__index__++];return{done:e,value:r}}function QS(){return this}function ZS(e){for(var r,s=this;s instanceof ts;){var a=ep(s);a.__index__=0,a.__values__=t,r?l.__wrapped__=a:r=a;var l=a;s=s.__wrapped__}return l.__wrapped__=e,r}function VS(){var e=this.__wrapped__;if(e instanceof pe){var r=e;return this.__actions__.length&&(r=new pe(this)),r=r.reverse(),r.__actions__.push({func:ms,args:[fa],thisArg:t}),new bt(r,this.__chain__)}return this.thru(fa)}function JS(){return Sh(this.__wrapped__,this.__actions__)}var eE=as(function(e,r,s){xe.call(e,s)?++e[s]:Zt(e,s,1)});function tE(e,r,s){var a=ie(e)?$f:jw;return s&&Ze(e,r,s)&&(r=t),a(e,X(r,3))}function nE(e,r){var s=ie(e)?ln:oh;return s(e,X(r,3))}var rE=Dh(tp),iE=Dh(np);function sE(e,r){return Ue(_s(e,r),1)}function oE(e,r){return Ue(_s(e,r),A)}function uE(e,r,s){return s=s===t?1:ae(s),Ue(_s(e,r),s)}function ap(e,r){var s=ie(e)?yt:gn;return s(e,X(r,3))}function cp(e,r){var s=ie(e)?Cb:sh;return s(e,X(r,3))}var aE=as(function(e,r,s){xe.call(e,s)?e[s].push(r):Zt(e,s,[r])});function cE(e,r,s,a){e=et(e)?e:ar(e),s=s&&!a?ae(s):0;var l=e.length;return s<0&&(s=Me(l+s,0)),xs(e)?s<=l&&e.indexOf(r,s)>-1:!!l&&Zn(e,r,s)>-1}var lE=le(function(e,r,s){var a=-1,l=typeof r=="function",d=et(e)?E(e.length):[];return gn(e,function(m){d[++a]=l?st(r,m,s):ai(m,r,s)}),d}),fE=as(function(e,r,s){Zt(e,s,r)});function _s(e,r){var s=ie(e)?Ce:hh;return s(e,X(r,3))}function hE(e,r,s,a){return e==null?[]:(ie(r)||(r=r==null?[]:[r]),s=a?t:s,ie(s)||(s=s==null?[]:[s]),mh(e,r,s))}var pE=as(function(e,r,s){e[s?0:1].push(r)},function(){return[[],[]]});function dE(e,r,s){var a=ie(e)?Eu:Hf,l=arguments.length<3;return a(e,X(r,4),s,l,gn)}function gE(e,r,s){var a=ie(e)?Rb:Hf,l=arguments.length<3;return a(e,X(r,4),s,l,sh)}function mE(e,r){var s=ie(e)?ln:oh;return s(e,bs(X(r,3)))}function _E(e){var r=ie(e)?th:cx;return r(e)}function yE(e,r,s){(s?Ze(e,r,s):r===t)?r=1:r=ae(r);var a=ie(e)?Hw:lx;return a(e,r)}function vE(e){var r=ie(e)?Bw:hx;return r(e)}function bE(e){if(e==null)return 0;if(et(e))return xs(e)?Jn(e):e.length;var r=Ke(e);return r==Z||r==Pt?e.size:Uu(e).length}function wE(e,r,s){var a=ie(e)?Au:px;return s&&Ze(e,r,s)&&(r=t),a(e,X(r,3))}var xE=le(function(e,r){if(e==null)return[];var s=r.length;return s>1&&Ze(e,r[0],r[1])?r=[]:s>2&&Ze(r[0],r[1],r[2])&&(r=[r[0]]),mh(e,Ue(r,1),[])}),ys=nw||function(){return qe.Date.now()};function SE(e,r){if(typeof r!="function")throw new vt(u);return e=ae(e),function(){if(--e<1)return r.apply(this,arguments)}}function lp(e,r,s){return r=s?t:r,r=e&&r==null?e.length:r,Vt(e,N,t,t,t,t,r)}function fp(e,r){var s;if(typeof r!="function")throw new vt(u);return e=ae(e),function(){return--e>0&&(s=r.apply(this,arguments)),e<=1&&(r=t),s}}var pa=le(function(e,r,s){var a=O;if(s.length){var l=hn(s,or(pa));a|=z}return Vt(e,a,r,s,l)}),hp=le(function(e,r,s){var a=O|D;if(s.length){var l=hn(s,or(hp));a|=z}return Vt(r,a,e,s,l)});function pp(e,r,s){r=s?t:r;var a=Vt(e,W,t,t,t,t,t,r);return a.placeholder=pp.placeholder,a}function dp(e,r,s){r=s?t:r;var a=Vt(e,ee,t,t,t,t,t,r);return a.placeholder=dp.placeholder,a}function gp(e,r,s){var a,l,d,m,y,w,P=0,T=!1,k=!1,M=!0;if(typeof e!="function")throw new vt(u);r=Et(r)||0,Te(s)&&(T=!!s.leading,k="maxWait"in s,d=k?Me(Et(s.maxWait)||0,r):d,M="trailing"in s?!!s.trailing:M);function U(ke){var Lt=a,rn=l;return a=l=t,P=ke,m=e.apply(rn,Lt),m}function V(ke){return P=ke,y=pi(he,r),T?U(ke):m}function ce(ke){var Lt=ke-w,rn=ke-P,Dp=r-Lt;return k?je(Dp,d-rn):Dp}function J(ke){var Lt=ke-w,rn=ke-P;return w===t||Lt>=r||Lt<0||k&&rn>=d}function he(){var ke=ys();if(J(ke))return de(ke);y=pi(he,ce(ke))}function de(ke){return y=t,M&&a?U(ke):(a=l=t,m)}function ct(){y!==t&&Ah(y),P=0,a=w=l=y=t}function Ve(){return y===t?m:de(ys())}function lt(){var ke=ys(),Lt=J(ke);if(a=arguments,l=this,w=ke,Lt){if(y===t)return V(w);if(k)return Ah(y),y=pi(he,r),U(w)}return y===t&&(y=pi(he,r)),m}return lt.cancel=ct,lt.flush=Ve,lt}var EE=le(function(e,r){return ih(e,1,r)}),AE=le(function(e,r,s){return ih(e,Et(r)||0,s)});function CE(e){return Vt(e,Q)}function vs(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new vt(u);var s=function(){var a=arguments,l=r?r.apply(this,a):a[0],d=s.cache;if(d.has(l))return d.get(l);var m=e.apply(this,a);return s.cache=d.set(l,m)||d,m};return s.cache=new(vs.Cache||Qt),s}vs.Cache=Qt;function bs(e){if(typeof e!="function")throw new vt(u);return function(){var r=arguments;switch(r.length){case 0:return!e.call(this);case 1:return!e.call(this,r[0]);case 2:return!e.call(this,r[0],r[1]);case 3:return!e.call(this,r[0],r[1],r[2])}return!e.apply(this,r)}}function RE(e){return fp(2,e)}var PE=dx(function(e,r){r=r.length==1&&ie(r[0])?Ce(r[0],ot(X())):Ce(Ue(r,1),ot(X()));var s=r.length;return le(function(a){for(var l=-1,d=je(a.length,s);++l=r}),$n=ch(function(){return arguments}())?ch:function(e){return Oe(e)&&xe.call(e,"callee")&&!Yf.call(e,"callee")},ie=E.isArray,UE=Of?ot(Of):Zw;function et(e){return e!=null&&ws(e.length)&&!tn(e)}function Le(e){return Oe(e)&&et(e)}function GE(e){return e===!0||e===!1||Oe(e)&&Qe(e)==oe}var vn=iw||Aa,jE=If?ot(If):Vw;function KE(e){return Oe(e)&&e.nodeType===1&&!di(e)}function XE(e){if(e==null)return!0;if(et(e)&&(ie(e)||typeof e=="string"||typeof e.splice=="function"||vn(e)||ur(e)||$n(e)))return!e.length;var r=Ke(e);if(r==Z||r==Pt)return!e.size;if(hi(e))return!Uu(e).length;for(var s in e)if(xe.call(e,s))return!1;return!0}function zE(e,r){return ci(e,r)}function YE(e,r,s){s=typeof s=="function"?s:t;var a=s?s(e,r):t;return a===t?ci(e,r,t,s):!!a}function ga(e){if(!Oe(e))return!1;var r=Qe(e);return r==F||r==iu||typeof e.message=="string"&&typeof e.name=="string"&&!di(e)}function QE(e){return typeof e=="number"&&Zf(e)}function tn(e){if(!Te(e))return!1;var r=Qe(e);return r==_e||r==$||r==zt||r==zn}function _p(e){return typeof e=="number"&&e==ae(e)}function ws(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=C}function Te(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}function Oe(e){return e!=null&&typeof e=="object"}var yp=Lf?ot(Lf):ex;function ZE(e,r){return e===r||Wu(e,r,sa(r))}function VE(e,r,s){return s=typeof s=="function"?s:t,Wu(e,r,sa(r),s)}function JE(e){return vp(e)&&e!=+e}function e0(e){if(Mx(e))throw new re(o);return lh(e)}function t0(e){return e===null}function n0(e){return e==null}function vp(e){return typeof e=="number"||Oe(e)&&Qe(e)==be}function di(e){if(!Oe(e)||Qe(e)!=we)return!1;var r=zi(e);if(r===null)return!0;var s=xe.call(r,"constructor")&&r.constructor;return typeof s=="function"&&s instanceof s&&Gi.call(s)==Vb}var ma=kf?ot(kf):tx;function r0(e){return _p(e)&&e>=-C&&e<=C}var bp=Df?ot(Df):nx;function xs(e){return typeof e=="string"||!ie(e)&&Oe(e)&&Qe(e)==Zr}function at(e){return typeof e=="symbol"||Oe(e)&&Qe(e)==Ni}var ur=Nf?ot(Nf):rx;function i0(e){return e===t}function s0(e){return Oe(e)&&Ke(e)==Vr}function o0(e){return Oe(e)&&Qe(e)==xv}var u0=hs(Gu),a0=hs(function(e,r){return e<=r});function wp(e){if(!e)return[];if(et(e))return xs(e)?Tt(e):Je(e);if(ti&&e[ti])return Hb(e[ti]());var r=Ke(e),s=r==Z?Iu:r==Pt?Bi:ar;return s(e)}function nn(e){if(!e)return e===0?e:0;if(e=Et(e),e===A||e===-A){var r=e<0?-1:1;return r*Be}return e===e?e:0}function ae(e){var r=nn(e),s=r%1;return r===r?s?r-s:r:0}function xp(e){return e?Ln(ae(e),0,Ie):0}function Et(e){if(typeof e=="number")return e;if(at(e))return fe;if(Te(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Te(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Bf(e);var s=Uv.test(e);return s||jv.test(e)?Sb(e.slice(2),s?2:8):Wv.test(e)?fe:+e}function Sp(e){return Ht(e,tt(e))}function c0(e){return e?Ln(ae(e),-C,C):e===0?e:0}function ye(e){return e==null?"":ut(e)}var l0=ir(function(e,r){if(hi(r)||et(r)){Ht(r,He(r),e);return}for(var s in r)xe.call(r,s)&&oi(e,s,r[s])}),Ep=ir(function(e,r){Ht(r,tt(r),e)}),Ss=ir(function(e,r,s,a){Ht(r,tt(r),e,a)}),f0=ir(function(e,r,s,a){Ht(r,He(r),e,a)}),h0=Jt(Mu);function p0(e,r){var s=rr(e);return r==null?s:nh(s,r)}var d0=le(function(e,r){e=Se(e);var s=-1,a=r.length,l=a>2?r[2]:t;for(l&&Ze(r[0],r[1],l)&&(a=1);++s1),d}),Ht(e,ra(e),s),a&&(s=wt(s,_|v|S,Ax));for(var l=r.length;l--;)Yu(s,r[l]);return s});function L0(e,r){return Cp(e,bs(X(r)))}var k0=Jt(function(e,r){return e==null?{}:ox(e,r)});function Cp(e,r){if(e==null)return{};var s=Ce(ra(e),function(a){return[a]});return r=X(r),_h(e,s,function(a,l){return r(a,l[0])})}function D0(e,r,s){r=_n(r,e);var a=-1,l=r.length;for(l||(l=1,e=t);++ar){var a=e;e=r,r=a}if(s||e%1||r%1){var l=Vf();return je(e+l*(r-e+xb("1e-"+((l+"").length-1))),r)}return Ku(e,r)}var j0=sr(function(e,r,s){return r=r.toLowerCase(),e+(s?Tp(r):r)});function Tp(e){return va(ye(e).toLowerCase())}function Op(e){return e=ye(e),e&&e.replace(Xv,Nb).replace(hb,"")}function K0(e,r,s){e=ye(e),r=ut(r);var a=e.length;s=s===t?a:Ln(ae(s),0,a);var l=s;return s-=r.length,s>=0&&e.slice(s,l)==r}function X0(e){return e=ye(e),e&&Rv.test(e)?e.replace(uf,$b):e}function z0(e){return e=ye(e),e&&kv.test(e)?e.replace(du,"\\$&"):e}var Y0=sr(function(e,r,s){return e+(s?"-":"")+r.toLowerCase()}),Q0=sr(function(e,r,s){return e+(s?" ":"")+r.toLowerCase()}),Z0=kh("toLowerCase");function V0(e,r,s){e=ye(e),r=ae(r);var a=r?Jn(e):0;if(!r||a>=r)return e;var l=(r-a)/2;return fs(Vi(l),s)+e+fs(Zi(l),s)}function J0(e,r,s){e=ye(e),r=ae(r);var a=r?Jn(e):0;return r&&a>>0,s?(e=ye(e),e&&(typeof r=="string"||r!=null&&!ma(r))&&(r=ut(r),!r&&Vn(e))?yn(Tt(e),0,s):e.split(r,s)):[]}var oA=sr(function(e,r,s){return e+(s?" ":"")+va(r)});function uA(e,r,s){return e=ye(e),s=s==null?0:Ln(ae(s),0,e.length),r=ut(r),e.slice(s,s+r.length)==r}function aA(e,r,s){var a=p.templateSettings;s&&Ze(e,r,s)&&(r=t),e=ye(e),r=Ss({},r,a,Hh);var l=Ss({},r.imports,a.imports,Hh),d=He(l),m=Ou(l,d),y,w,P=0,T=r.interpolate||$i,k="__p += '",M=Lu((r.escape||$i).source+"|"+T.source+"|"+(T===af?Bv:$i).source+"|"+(r.evaluate||$i).source+"|$","g"),U="//# sourceURL="+(xe.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_b+"]")+` -`;e.replace(M,function(J,he,de,ct,Ve,lt){return de||(de=ct),k+=e.slice(P,lt).replace(zv,Mb),he&&(y=!0,k+=`' + +`)}function Dx(e){return re(e)||$n(e)||!!(Qf&&e&&e[Qf])}function en(e,r){var s=typeof e;return r=r??R,!!r&&(s=="number"||s!="symbol"&&Kv.test(e))&&e>-1&&e%1==0&&e0){if(++r>=Pe)return arguments[0]}else r=0;return e.apply(t,arguments)}}function gs(e,r){var s=-1,a=e.length,l=a-1;for(r=r===t?a:r;++s1?e[r-1]:t;return s=typeof s=="function"?(e.pop(),s):t,up(e,s)});function ap(e){var r=p(e);return r.__chain__=!0,r}function jS(e,r){return r(e),e}function ms(e,r){return r(e)}var KS=Jt(function(e){var r=e.length,s=r?e[0]:0,a=this.__wrapped__,l=function(d){return Fu(d,e)};return r>1||this.__actions__.length||!(a instanceof pe)||!en(s)?this.thru(l):(a=a.slice(s,+s+(r?1:0)),a.__actions__.push({func:ms,args:[l],thisArg:t}),new bt(a,this.__chain__).thru(function(d){return r&&!d.length&&d.push(t),d}))});function XS(){return ap(this)}function zS(){return new bt(this.value(),this.__chain__)}function YS(){this.__values__===t&&(this.__values__=xp(this.value()));var e=this.__index__>=this.__values__.length,r=e?t:this.__values__[this.__index__++];return{done:e,value:r}}function ZS(){return this}function QS(e){for(var r,s=this;s instanceof ts;){var a=tp(s);a.__index__=0,a.__values__=t,r?l.__wrapped__=a:r=a;var l=a;s=s.__wrapped__}return l.__wrapped__=e,r}function VS(){var e=this.__wrapped__;if(e instanceof pe){var r=e;return this.__actions__.length&&(r=new pe(this)),r=r.reverse(),r.__actions__.push({func:ms,args:[ha],thisArg:t}),new bt(r,this.__chain__)}return this.thru(ha)}function JS(){return Eh(this.__wrapped__,this.__actions__)}var eE=as(function(e,r,s){xe.call(e,s)?++e[s]:Qt(e,s,1)});function tE(e,r,s){var a=re(e)?Mf:jw;return s&&Qe(e,r,s)&&(r=t),a(e,K(r,3))}function nE(e,r){var s=re(e)?ln:uh;return s(e,K(r,3))}var rE=Nh(np),iE=Nh(rp);function sE(e,r){return Ue(_s(e,r),1)}function oE(e,r){return Ue(_s(e,r),C)}function uE(e,r,s){return s=s===t?1:ue(s),Ue(_s(e,r),s)}function cp(e,r){var s=re(e)?yt:gn;return s(e,K(r,3))}function lp(e,r){var s=re(e)?Cb:oh;return s(e,K(r,3))}var aE=as(function(e,r,s){xe.call(e,s)?e[s].push(r):Qt(e,s,[r])});function cE(e,r,s,a){e=et(e)?e:ar(e),s=s&&!a?ue(s):0;var l=e.length;return s<0&&(s=Me(l+s,0)),xs(e)?s<=l&&e.indexOf(r,s)>-1:!!l&&Qn(e,r,s)>-1}var lE=le(function(e,r,s){var a=-1,l=typeof r=="function",d=et(e)?E(e.length):[];return gn(e,function(m){d[++a]=l?st(r,m,s):ai(m,r,s)}),d}),fE=as(function(e,r,s){Qt(e,s,r)});function _s(e,r){var s=re(e)?Ce:ph;return s(e,K(r,3))}function hE(e,r,s,a){return e==null?[]:(re(r)||(r=r==null?[]:[r]),s=a?t:s,re(s)||(s=s==null?[]:[s]),_h(e,r,s))}var pE=as(function(e,r,s){e[s?0:1].push(r)},function(){return[[],[]]});function dE(e,r,s){var a=re(e)?Au:Bf,l=arguments.length<3;return a(e,K(r,4),s,l,gn)}function gE(e,r,s){var a=re(e)?Rb:Bf,l=arguments.length<3;return a(e,K(r,4),s,l,oh)}function mE(e,r){var s=re(e)?ln:uh;return s(e,bs(K(r,3)))}function _E(e){var r=re(e)?nh:cx;return r(e)}function yE(e,r,s){(s?Qe(e,r,s):r===t)?r=1:r=ue(r);var a=re(e)?Hw:lx;return a(e,r)}function vE(e){var r=re(e)?Bw:hx;return r(e)}function bE(e){if(e==null)return 0;if(et(e))return xs(e)?Jn(e):e.length;var r=Ke(e);return r==Z||r==Pt?e.size:Gu(e).length}function wE(e,r,s){var a=re(e)?Cu:px;return s&&Qe(e,r,s)&&(r=t),a(e,K(r,3))}var xE=le(function(e,r){if(e==null)return[];var s=r.length;return s>1&&Qe(e,r[0],r[1])?r=[]:s>2&&Qe(r[0],r[1],r[2])&&(r=[r[0]]),_h(e,Ue(r,1),[])}),ys=nw||function(){return qe.Date.now()};function SE(e,r){if(typeof r!="function")throw new vt(u);return e=ue(e),function(){if(--e<1)return r.apply(this,arguments)}}function fp(e,r,s){return r=s?t:r,r=e&&r==null?e.length:r,Vt(e,N,t,t,t,t,r)}function hp(e,r){var s;if(typeof r!="function")throw new vt(u);return e=ue(e),function(){return--e>0&&(s=r.apply(this,arguments)),e<=1&&(r=t),s}}var da=le(function(e,r,s){var a=A;if(s.length){var l=hn(s,or(da));a|=X}return Vt(e,a,r,s,l)}),pp=le(function(e,r,s){var a=A|D;if(s.length){var l=hn(s,or(pp));a|=X}return Vt(r,a,e,s,l)});function dp(e,r,s){r=s?t:r;var a=Vt(e,j,t,t,t,t,t,r);return a.placeholder=dp.placeholder,a}function gp(e,r,s){r=s?t:r;var a=Vt(e,ae,t,t,t,t,t,r);return a.placeholder=gp.placeholder,a}function mp(e,r,s){var a,l,d,m,y,w,T=0,O=!1,k=!1,M=!0;if(typeof e!="function")throw new vt(u);r=Et(r)||0,Te(s)&&(O=!!s.leading,k="maxWait"in s,d=k?Me(Et(s.maxWait)||0,r):d,M="trailing"in s?!!s.trailing:M);function W(ke){var Lt=a,rn=l;return a=l=t,T=ke,m=e.apply(rn,Lt),m}function Q(ke){return T=ke,y=pi(he,r),O?W(ke):m}function ce(ke){var Lt=ke-w,rn=ke-T,Np=r-Lt;return k?je(Np,d-rn):Np}function V(ke){var Lt=ke-w,rn=ke-T;return w===t||Lt>=r||Lt<0||k&&rn>=d}function he(){var ke=ys();if(V(ke))return de(ke);y=pi(he,ce(ke))}function de(ke){return y=t,M&&a?W(ke):(a=l=t,m)}function ct(){y!==t&&Ch(y),T=0,a=w=l=y=t}function Ve(){return y===t?m:de(ys())}function lt(){var ke=ys(),Lt=V(ke);if(a=arguments,l=this,w=ke,Lt){if(y===t)return Q(w);if(k)return Ch(y),y=pi(he,r),W(w)}return y===t&&(y=pi(he,r)),m}return lt.cancel=ct,lt.flush=Ve,lt}var EE=le(function(e,r){return sh(e,1,r)}),AE=le(function(e,r,s){return sh(e,Et(r)||0,s)});function CE(e){return Vt(e,Y)}function vs(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new vt(u);var s=function(){var a=arguments,l=r?r.apply(this,a):a[0],d=s.cache;if(d.has(l))return d.get(l);var m=e.apply(this,a);return s.cache=d.set(l,m)||d,m};return s.cache=new(vs.Cache||Zt),s}vs.Cache=Zt;function bs(e){if(typeof e!="function")throw new vt(u);return function(){var r=arguments;switch(r.length){case 0:return!e.call(this);case 1:return!e.call(this,r[0]);case 2:return!e.call(this,r[0],r[1]);case 3:return!e.call(this,r[0],r[1],r[2])}return!e.apply(this,r)}}function RE(e){return hp(2,e)}var PE=dx(function(e,r){r=r.length==1&&re(r[0])?Ce(r[0],ot(K())):Ce(Ue(r,1),ot(K()));var s=r.length;return le(function(a){for(var l=-1,d=je(a.length,s);++l=r}),$n=lh(function(){return arguments}())?lh:function(e){return Oe(e)&&xe.call(e,"callee")&&!Zf.call(e,"callee")},re=E.isArray,UE=If?ot(If):Qw;function et(e){return e!=null&&ws(e.length)&&!tn(e)}function Le(e){return Oe(e)&&et(e)}function GE(e){return e===!0||e===!1||Oe(e)&&Ze(e)==se}var vn=iw||Ca,jE=Lf?ot(Lf):Vw;function KE(e){return Oe(e)&&e.nodeType===1&&!di(e)}function XE(e){if(e==null)return!0;if(et(e)&&(re(e)||typeof e=="string"||typeof e.splice=="function"||vn(e)||ur(e)||$n(e)))return!e.length;var r=Ke(e);if(r==Z||r==Pt)return!e.size;if(hi(e))return!Gu(e).length;for(var s in e)if(xe.call(e,s))return!1;return!0}function zE(e,r){return ci(e,r)}function YE(e,r,s){s=typeof s=="function"?s:t;var a=s?s(e,r):t;return a===t?ci(e,r,t,s):!!a}function ma(e){if(!Oe(e))return!1;var r=Ze(e);return r==q||r==su||typeof e.message=="string"&&typeof e.name=="string"&&!di(e)}function ZE(e){return typeof e=="number"&&Vf(e)}function tn(e){if(!Te(e))return!1;var r=Ze(e);return r==_e||r==$||r==zt||r==zn}function yp(e){return typeof e=="number"&&e==ue(e)}function ws(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=R}function Te(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}function Oe(e){return e!=null&&typeof e=="object"}var vp=kf?ot(kf):ex;function QE(e,r){return e===r||Uu(e,r,oa(r))}function VE(e,r,s){return s=typeof s=="function"?s:t,Uu(e,r,oa(r),s)}function JE(e){return bp(e)&&e!=+e}function e0(e){if(Mx(e))throw new ne(o);return fh(e)}function t0(e){return e===null}function n0(e){return e==null}function bp(e){return typeof e=="number"||Oe(e)&&Ze(e)==be}function di(e){if(!Oe(e)||Ze(e)!=we)return!1;var r=zi(e);if(r===null)return!0;var s=xe.call(r,"constructor")&&r.constructor;return typeof s=="function"&&s instanceof s&&Gi.call(s)==Vb}var _a=Df?ot(Df):tx;function r0(e){return yp(e)&&e>=-R&&e<=R}var wp=Nf?ot(Nf):nx;function xs(e){return typeof e=="string"||!re(e)&&Oe(e)&&Ze(e)==Qr}function at(e){return typeof e=="symbol"||Oe(e)&&Ze(e)==Ni}var ur=$f?ot($f):rx;function i0(e){return e===t}function s0(e){return Oe(e)&&Ke(e)==Vr}function o0(e){return Oe(e)&&Ze(e)==xv}var u0=hs(ju),a0=hs(function(e,r){return e<=r});function xp(e){if(!e)return[];if(et(e))return xs(e)?Tt(e):Je(e);if(ti&&e[ti])return Hb(e[ti]());var r=Ke(e),s=r==Z?Lu:r==Pt?Bi:ar;return s(e)}function nn(e){if(!e)return e===0?e:0;if(e=Et(e),e===C||e===-C){var r=e<0?-1:1;return r*Be}return e===e?e:0}function ue(e){var r=nn(e),s=r%1;return r===r?s?r-s:r:0}function Sp(e){return e?Ln(ue(e),0,Ie):0}function Et(e){if(typeof e=="number")return e;if(at(e))return fe;if(Te(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Te(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Wf(e);var s=Uv.test(e);return s||jv.test(e)?Sb(e.slice(2),s?2:8):Wv.test(e)?fe:+e}function Ep(e){return Ht(e,tt(e))}function c0(e){return e?Ln(ue(e),-R,R):e===0?e:0}function ye(e){return e==null?"":ut(e)}var l0=ir(function(e,r){if(hi(r)||et(r)){Ht(r,He(r),e);return}for(var s in r)xe.call(r,s)&&oi(e,s,r[s])}),Ap=ir(function(e,r){Ht(r,tt(r),e)}),Ss=ir(function(e,r,s,a){Ht(r,tt(r),e,a)}),f0=ir(function(e,r,s,a){Ht(r,He(r),e,a)}),h0=Jt(Fu);function p0(e,r){var s=rr(e);return r==null?s:rh(s,r)}var d0=le(function(e,r){e=Se(e);var s=-1,a=r.length,l=a>2?r[2]:t;for(l&&Qe(r[0],r[1],l)&&(a=1);++s1),d}),Ht(e,ia(e),s),a&&(s=wt(s,_|v|S,Ax));for(var l=r.length;l--;)Zu(s,r[l]);return s});function L0(e,r){return Rp(e,bs(K(r)))}var k0=Jt(function(e,r){return e==null?{}:ox(e,r)});function Rp(e,r){if(e==null)return{};var s=Ce(ia(e),function(a){return[a]});return r=K(r),yh(e,s,function(a,l){return r(a,l[0])})}function D0(e,r,s){r=_n(r,e);var a=-1,l=r.length;for(l||(l=1,e=t);++ar){var a=e;e=r,r=a}if(s||e%1||r%1){var l=Jf();return je(e+l*(r-e+xb("1e-"+((l+"").length-1))),r)}return Xu(e,r)}var j0=sr(function(e,r,s){return r=r.toLowerCase(),e+(s?Op(r):r)});function Op(e){return ba(ye(e).toLowerCase())}function Ip(e){return e=ye(e),e&&e.replace(Xv,Nb).replace(hb,"")}function K0(e,r,s){e=ye(e),r=ut(r);var a=e.length;s=s===t?a:Ln(ue(s),0,a);var l=s;return s-=r.length,s>=0&&e.slice(s,l)==r}function X0(e){return e=ye(e),e&&Rv.test(e)?e.replace(af,$b):e}function z0(e){return e=ye(e),e&&kv.test(e)?e.replace(gu,"\\$&"):e}var Y0=sr(function(e,r,s){return e+(s?"-":"")+r.toLowerCase()}),Z0=sr(function(e,r,s){return e+(s?" ":"")+r.toLowerCase()}),Q0=Dh("toLowerCase");function V0(e,r,s){e=ye(e),r=ue(r);var a=r?Jn(e):0;if(!r||a>=r)return e;var l=(r-a)/2;return fs(Vi(l),s)+e+fs(Qi(l),s)}function J0(e,r,s){e=ye(e),r=ue(r);var a=r?Jn(e):0;return r&&a>>0,s?(e=ye(e),e&&(typeof r=="string"||r!=null&&!_a(r))&&(r=ut(r),!r&&Vn(e))?yn(Tt(e),0,s):e.split(r,s)):[]}var oA=sr(function(e,r,s){return e+(s?" ":"")+ba(r)});function uA(e,r,s){return e=ye(e),s=s==null?0:Ln(ue(s),0,e.length),r=ut(r),e.slice(s,s+r.length)==r}function aA(e,r,s){var a=p.templateSettings;s&&Qe(e,r,s)&&(r=t),e=ye(e),r=Ss({},r,a,Bh);var l=Ss({},r.imports,a.imports,Bh),d=He(l),m=Iu(l,d),y,w,T=0,O=r.interpolate||$i,k="__p += '",M=ku((r.escape||$i).source+"|"+O.source+"|"+(O===cf?Bv:$i).source+"|"+(r.evaluate||$i).source+"|$","g"),W="//# sourceURL="+(xe.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_b+"]")+` +`;e.replace(M,function(V,he,de,ct,Ve,lt){return de||(de=ct),k+=e.slice(T,lt).replace(zv,Mb),he&&(y=!0,k+=`' + __e(`+he+`) + '`),Ve&&(w=!0,k+=`'; `+Ve+`; __p += '`),de&&(k+=`' + ((__t = (`+de+`)) == null ? '' : __t) + -'`),P=lt+J.length,J}),k+=`'; -`;var V=xe.call(r,"variable")&&r.variable;if(!V)k=`with (obj) { +'`),T=lt+V.length,V}),k+=`'; +`;var Q=xe.call(r,"variable")&&r.variable;if(!Q)k=`with (obj) { `+k+` } -`;else if(qv.test(V))throw new re(c);k=(w?k.replace(Sv,""):k).replace(Ev,"$1").replace(Av,"$1;"),k="function("+(V||"obj")+`) { -`+(V?"":`obj || (obj = {}); +`;else if(qv.test(Q))throw new ne(c);k=(w?k.replace(Sv,""):k).replace(Ev,"$1").replace(Av,"$1;"),k="function("+(Q||"obj")+`) { +`+(Q?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(y?", __e = _.escape":"")+(w?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+k+`return __p -}`;var ce=Lp(function(){return ge(d,U+"return "+k).apply(t,m)});if(ce.source=k,ga(ce))throw ce;return ce}function cA(e){return ye(e).toLowerCase()}function lA(e){return ye(e).toUpperCase()}function fA(e,r,s){if(e=ye(e),e&&(s||r===t))return Bf(e);if(!e||!(r=ut(r)))return e;var a=Tt(e),l=Tt(r),d=Wf(a,l),m=Uf(a,l)+1;return yn(a,d,m).join("")}function hA(e,r,s){if(e=ye(e),e&&(s||r===t))return e.slice(0,jf(e)+1);if(!e||!(r=ut(r)))return e;var a=Tt(e),l=Uf(a,Tt(r))+1;return yn(a,0,l).join("")}function pA(e,r,s){if(e=ye(e),e&&(s||r===t))return e.replace(gu,"");if(!e||!(r=ut(r)))return e;var a=Tt(e),l=Wf(a,Tt(r));return yn(a,l).join("")}function dA(e,r){var s=G,a=ue;if(Te(r)){var l="separator"in r?r.separator:l;s="length"in r?ae(r.length):s,a="omission"in r?ut(r.omission):a}e=ye(e);var d=e.length;if(Vn(e)){var m=Tt(e);d=m.length}if(s>=d)return e;var y=s-Jn(a);if(y<1)return a;var w=m?yn(m,0,y).join(""):e.slice(0,y);if(l===t)return w+a;if(m&&(y+=w.length-y),ma(l)){if(e.slice(y).search(l)){var P,T=w;for(l.global||(l=Lu(l.source,ye(cf.exec(l))+"g")),l.lastIndex=0;P=l.exec(T);)var k=P.index;w=w.slice(0,k===t?y:k)}}else if(e.indexOf(ut(l),y)!=y){var M=w.lastIndexOf(l);M>-1&&(w=w.slice(0,M))}return w+a}function gA(e){return e=ye(e),e&&Cv.test(e)?e.replace(of,Gb):e}var mA=sr(function(e,r,s){return e+(s?" ":"")+r.toUpperCase()}),va=kh("toUpperCase");function Ip(e,r,s){return e=ye(e),r=s?t:r,r===t?qb(e)?Xb(e):Ob(e):e.match(r)||[]}var Lp=le(function(e,r){try{return st(e,t,r)}catch(s){return ga(s)?s:new re(s)}}),_A=Jt(function(e,r){return yt(r,function(s){s=Bt(s),Zt(e,s,pa(e[s],e))}),e});function yA(e){var r=e==null?0:e.length,s=X();return e=r?Ce(e,function(a){if(typeof a[1]!="function")throw new vt(u);return[s(a[0]),a[1]]}):[],le(function(a){for(var l=-1;++lC)return[];var s=Ie,a=je(e,Ie);r=X(r),e-=Ie;for(var l=Tu(a,r);++s0||r<0)?new pe(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),r!==t&&(r=ae(r),s=r<0?s.dropRight(-r):s.take(r-e)),s)},pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},pe.prototype.toArray=function(){return this.take(Ie)},qt(pe.prototype,function(e,r){var s=/^(?:filter|find|map|reject)|While$/.test(r),a=/^(?:head|last)$/.test(r),l=p[a?"take"+(r=="last"?"Right":""):r],d=a||/^find/.test(r);!l||(p.prototype[r]=function(){var m=this.__wrapped__,y=a?[1]:arguments,w=m instanceof pe,P=y[0],T=w||ie(m),k=function(he){var de=l.apply(p,fn([he],y));return a&&M?de[0]:de};T&&s&&typeof P=="function"&&P.length!=1&&(w=T=!1);var M=this.__chain__,U=!!this.__actions__.length,V=d&&!M,ce=w&&!U;if(!d&&T){m=ce?m:new pe(this);var J=e.apply(m,y);return J.__actions__.push({func:ms,args:[k],thisArg:t}),new bt(J,M)}return V&&ce?e.apply(this,y):(J=this.thru(k),V?a?J.value()[0]:J.value():J)})}),yt(["pop","push","shift","sort","splice","unshift"],function(e){var r=Wi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var l=arguments;if(a&&!this.__chain__){var d=this.value();return r.apply(ie(d)?d:[],l)}return this[s](function(m){return r.apply(ie(m)?m:[],l)})}}),qt(pe.prototype,function(e,r){var s=p[r];if(s){var a=s.name+"";xe.call(nr,a)||(nr[a]=[]),nr[a].push({name:r,func:s})}}),nr[cs(t,D).name]=[{name:"wrapper",func:t}],pe.prototype.clone=gw,pe.prototype.reverse=mw,pe.prototype.value=_w,p.prototype.at=KS,p.prototype.chain=XS,p.prototype.commit=zS,p.prototype.next=YS,p.prototype.plant=ZS,p.prototype.reverse=VS,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=JS,p.prototype.first=p.prototype.head,ti&&(p.prototype[ti]=QS),p},pn=zb();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qe._=pn,define(function(){return pn})):Pn?((Pn.exports=pn)._=pn,wu._=pn):qe._=pn}).call(xr)});var S_=L((PD,x_)=>{"use strict";x_.exports=t=>function(){let n=arguments.length,i=new Array(n);for(let o=0;o{i.push((c,f)=>{c?u(c):o(f)}),t.apply(null,i)})}});var it=L((TD,E_)=>{"use strict";var ro=q("fs"),HT=S_(),BT=t=>[typeof ro[t]=="function",!t.match(/Sync$/),!t.match(/^[A-Z]/),!t.match(/^create/),!t.match(/^(un)?watch/)].every(Boolean),WT=t=>{let n=ro[t];return HT(n)},UT=()=>{let t={};return Object.keys(ro).forEach(n=>{BT(n)?n==="exists"?t.exists=()=>{throw new Error("fs.exists() is deprecated")}:t[n]=WT(n):t[n]=ro[n]}),t};E_.exports=UT()});var Ge=L((OD,P_)=>{"use strict";var GT=t=>{let n=i=>["a","e","i","o","u"].indexOf(i[0])!==-1?`an ${i}`:`a ${i}`;return t.map(n).join(" or ")},A_=t=>/array of /.test(t),C_=t=>t.split(" of ")[1],R_=t=>A_(t)?R_(C_(t)):["string","number","boolean","array","object","buffer","null","undefined","function"].some(n=>n===t),Ci=t=>t===null?"null":Array.isArray(t)?"array":Buffer.isBuffer(t)?"buffer":typeof t,jT=(t,n,i)=>i.indexOf(t)===n,KT=t=>{let n=Ci(t),i;return n==="array"&&(i=t.map(o=>Ci(o)).filter(jT),n+=` of ${i.join(", ")}`),n},XT=(t,n)=>{let i=C_(n);return Ci(t)!=="array"?!1:t.every(o=>Ci(o)===i)},Rl=(t,n,i,o)=>{if(!o.some(c=>{if(!R_(c))throw new Error(`Unknown type "${c}"`);return A_(c)?XT(i,c):c===Ci(i)}))throw new Error(`Argument "${n}" passed to ${t} must be ${GT(o)}. Received ${KT(i)}`)},zT=(t,n,i,o)=>{i!==void 0&&(Rl(t,n,i,["object"]),Object.keys(i).forEach(u=>{let c=`${n}.${u}`;if(o[u]!==void 0)Rl(t,c,i[u],o[u]);else throw new Error(`Unknown argument "${c}" passed to ${t}`)}))};P_.exports={argument:Rl,options:zT}});var io=L(T_=>{"use strict";T_.normalizeFileMode=t=>{let n;return typeof t=="number"?n=t.toString(8):n=t,n.substring(n.length-3)}});var oo=L(so=>{"use strict";var O_=it(),YT=Ge(),QT=(t,n)=>{let i=`${t}([path])`;YT.argument(i,"path",n,["string","undefined"])},ZT=t=>{O_.rmSync(t,{recursive:!0,force:!0,maxRetries:3})},VT=t=>O_.rm(t,{recursive:!0,force:!0,maxRetries:3});so.validateInput=QT;so.sync=ZT;so.async=VT});var Gn=L(Or=>{"use strict";var uo=q("path"),Kt=it(),Pl=io(),I_=Ge(),L_=oo(),JT=(t,n,i)=>{let o=`${t}(path, [criteria])`;I_.argument(o,"path",n,["string"]),I_.options(o,"criteria",i,{empty:["boolean"],mode:["string","number"]})},k_=t=>{let n=t||{};return typeof n.empty!="boolean"&&(n.empty=!1),n.mode!==void 0&&(n.mode=Pl.normalizeFileMode(n.mode)),n},D_=t=>new Error(`Path ${t} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),eO=t=>{let n;try{n=Kt.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isDirectory())throw D_(t);return n},Tl=(t,n)=>{let i=n||{};try{Kt.mkdirSync(t,i.mode)}catch(o){if(o.code==="ENOENT")Tl(uo.dirname(t),i),Kt.mkdirSync(t,i.mode);else if(o.code!=="EEXIST")throw o}},tO=(t,n,i)=>{let o=()=>{let c=Pl.normalizeFileMode(n.mode);i.mode!==void 0&&i.mode!==c&&Kt.chmodSync(t,i.mode)},u=()=>{i.empty&&Kt.readdirSync(t).forEach(f=>{L_.sync(uo.resolve(t,f))})};o(),u()},nO=(t,n)=>{let i=k_(n),o=eO(t);o?tO(t,o,i):Tl(t,i)},rO=t=>new Promise((n,i)=>{Kt.stat(t).then(o=>{o.isDirectory()?n(o):i(D_(t))}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})}),iO=t=>new Promise((n,i)=>{Kt.readdir(t).then(o=>{let u=c=>{if(c===o.length)n();else{let f=uo.resolve(t,o[c]);L_.async(f).then(()=>{u(c+1)})}};u(0)}).catch(i)}),sO=(t,n,i)=>new Promise((o,u)=>{let c=()=>{let h=Pl.normalizeFileMode(n.mode);return i.mode!==void 0&&i.mode!==h?Kt.chmod(t,i.mode):Promise.resolve()},f=()=>i.empty?iO(t):Promise.resolve();c().then(f).then(o,u)}),Ol=(t,n)=>{let i=n||{};return new Promise((o,u)=>{Kt.mkdir(t,i.mode).then(o).catch(c=>{c.code==="ENOENT"?Ol(uo.dirname(t),i).then(()=>Kt.mkdir(t,i.mode)).then(o).catch(f=>{f.code==="EEXIST"?o():u(f)}):c.code==="EEXIST"?o():u(c)})})},oO=(t,n)=>new Promise((i,o)=>{let u=k_(n);rO(t).then(c=>c!==void 0?sO(t,c,u):Ol(t,u)).then(i,o)});Or.validateInput=JT;Or.sync=nO;Or.createSync=Tl;Or.async=oO;Or.createAsync=Ol});var Ri=L(co=>{"use strict";var N_=q("path"),Ir=it(),Il=Ge(),$_=Gn(),uO=(t,n,i,o)=>{let u=`${t}(path, data, [options])`;Il.argument(u,"path",n,["string"]),Il.argument(u,"data",i,["string","buffer","object","array"]),Il.options(u,"options",o,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},ao=".__new__",M_=(t,n)=>{let i=n;return typeof i!="number"&&(i=2),typeof t=="object"&&!Buffer.isBuffer(t)&&t!==null?JSON.stringify(t,null,i):t},F_=(t,n,i)=>{try{Ir.writeFileSync(t,n,i)}catch(o){if(o.code==="ENOENT")$_.createSync(N_.dirname(t)),Ir.writeFileSync(t,n,i);else throw o}},aO=(t,n,i)=>{F_(t+ao,n,i),Ir.renameSync(t+ao,t)},cO=(t,n,i)=>{let o=i||{},u=M_(n,o.jsonIndent),c=F_;o.atomic&&(c=aO),c(t,u,{mode:o.mode})},q_=(t,n,i)=>new Promise((o,u)=>{Ir.writeFile(t,n,i).then(o).catch(c=>{c.code==="ENOENT"?$_.createAsync(N_.dirname(t)).then(()=>Ir.writeFile(t,n,i)).then(o,u):u(c)})}),lO=(t,n,i)=>new Promise((o,u)=>{q_(t+ao,n,i).then(()=>Ir.rename(t+ao,t)).then(o,u)}),fO=(t,n,i)=>{let o=i||{},u=M_(n,o.jsonIndent),c=q_;return o.atomic&&(c=lO),c(t,u,{mode:o.mode})};co.validateInput=uO;co.sync=cO;co.async=fO});var W_=L(lo=>{"use strict";var H_=it(),B_=Ri(),Ll=Ge(),hO=(t,n,i,o)=>{let u=`${t}(path, data, [options])`;Ll.argument(u,"path",n,["string"]),Ll.argument(u,"data",i,["string","buffer"]),Ll.options(u,"options",o,{mode:["string","number"]})},pO=(t,n,i)=>{try{H_.appendFileSync(t,n,i)}catch(o){if(o.code==="ENOENT")B_.sync(t,n,i);else throw o}},dO=(t,n,i)=>new Promise((o,u)=>{H_.appendFile(t,n,i).then(o).catch(c=>{c.code==="ENOENT"?B_.async(t,n,i).then(o,u):u(c)})});lo.validateInput=hO;lo.sync=pO;lo.async=dO});var K_=L(po=>{"use strict";var fo=it(),kl=io(),U_=Ge(),ho=Ri(),gO=(t,n,i)=>{let o=`${t}(path, [criteria])`;U_.argument(o,"path",n,["string"]),U_.options(o,"criteria",i,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},G_=t=>{let n=t||{};return n.mode!==void 0&&(n.mode=kl.normalizeFileMode(n.mode)),n},j_=t=>new Error(`Path ${t} exists but is not a file. Halting jetpack.file() call for safety reasons.`),mO=t=>{let n;try{n=fo.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isFile())throw j_(t);return n},_O=(t,n,i)=>{let o=kl.normalizeFileMode(n.mode),u=()=>i.content!==void 0?(ho.sync(t,i.content,{mode:o,jsonIndent:i.jsonIndent}),!0):!1,c=()=>{i.mode!==void 0&&i.mode!==o&&fo.chmodSync(t,i.mode)};u()||c()},yO=(t,n)=>{let i="";n.content!==void 0&&(i=n.content),ho.sync(t,i,{mode:n.mode,jsonIndent:n.jsonIndent})},vO=(t,n)=>{let i=G_(n),o=mO(t);o!==void 0?_O(t,o,i):yO(t,i)},bO=t=>new Promise((n,i)=>{fo.stat(t).then(o=>{o.isFile()?n(o):i(j_(t))}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})}),wO=(t,n,i)=>{let o=kl.normalizeFileMode(n.mode),u=()=>new Promise((f,h)=>{i.content!==void 0?ho.async(t,i.content,{mode:o,jsonIndent:i.jsonIndent}).then(()=>{f(!0)}).catch(h):f(!1)}),c=()=>{if(i.mode!==void 0&&i.mode!==o)return fo.chmod(t,i.mode)};return u().then(f=>{if(!f)return c()})},xO=(t,n)=>{let i="";return n.content!==void 0&&(i=n.content),ho.async(t,i,{mode:n.mode,jsonIndent:n.jsonIndent})},SO=(t,n)=>new Promise((i,o)=>{let u=G_(n);bO(t).then(c=>c!==void 0?wO(t,c,u):xO(t,u)).then(i,o)});po.validateInput=gO;po.sync=vO;po.async=SO});var kr=L(Lr=>{"use strict";var z_=q("crypto"),EO=q("path"),Cn=it(),X_=Ge(),Dl=["md5","sha1","sha256","sha512"],Nl=["report","follow"],AO=(t,n,i)=>{let o=`${t}(path, [options])`;if(X_.argument(o,"path",n,["string"]),X_.options(o,"options",i,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Dl.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${Dl.join(", ")}`);if(i&&i.symlinks!==void 0&&Nl.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${Nl.join(", ")}`)},Y_=(t,n,i)=>{let o={};return o.name=EO.basename(t),i.isFile()?(o.type="file",o.size=i.size):i.isDirectory()?o.type="dir":i.isSymbolicLink()?o.type="symlink":o.type="other",n.mode&&(o.mode=i.mode),n.times&&(o.accessTime=i.atime,o.modifyTime=i.mtime,o.changeTime=i.ctime,o.birthTime=i.birthtime),n.absolutePath&&(o.absolutePath=t),o},CO=(t,n)=>{let i=z_.createHash(n),o=Cn.readFileSync(t);return i.update(o),i.digest("hex")},RO=(t,n,i)=>{n.type==="file"&&i.checksum?n[i.checksum]=CO(t,i.checksum):n.type==="symlink"&&(n.pointsAt=Cn.readlinkSync(t))},PO=(t,n)=>{let i=Cn.lstatSync,o,u=n||{};u.symlinks==="follow"&&(i=Cn.statSync);try{o=i(t)}catch(f){if(f.code==="ENOENT")return;throw f}let c=Y_(t,u,o);return RO(t,c,u),c},TO=(t,n)=>new Promise((i,o)=>{let u=z_.createHash(n),c=Cn.createReadStream(t);c.on("data",f=>{u.update(f)}),c.on("end",()=>{i(u.digest("hex"))}),c.on("error",o)}),OO=(t,n,i)=>n.type==="file"&&i.checksum?TO(t,i.checksum).then(o=>(n[i.checksum]=o,n)):n.type==="symlink"?Cn.readlink(t).then(o=>(n.pointsAt=o,n)):Promise.resolve(n),IO=(t,n)=>new Promise((i,o)=>{let u=Cn.lstat,c=n||{};c.symlinks==="follow"&&(u=Cn.stat),u(t).then(f=>{let h=Y_(t,c,f);OO(t,h,c).then(i,o)}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Lr.supportedChecksumAlgorithms=Dl;Lr.symlinkOptions=Nl;Lr.validateInput=AO;Lr.sync=PO;Lr.async=IO});var mo=L(go=>{"use strict";var Q_=it(),LO=Ge(),kO=(t,n)=>{let i=`${t}(path)`;LO.argument(i,"path",n,["string","undefined"])},DO=t=>{try{return Q_.readdirSync(t)}catch(n){if(n.code==="ENOENT")return;throw n}},NO=t=>new Promise((n,i)=>{Q_.readdir(t).then(o=>{n(o)}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})});go.validateInput=kO;go.sync=DO;go.async=NO});var bo=L($l=>{"use strict";var _o=q("fs"),yo=q("path"),Pi=kr(),qD=mo(),vo=t=>t.isDirectory()?"dir":t.isFile()?"file":t.isSymbolicLink()?"symlink":"other",$O=(t,n,i)=>{n.maxLevelsDeep===void 0&&(n.maxLevelsDeep=1/0);let o=n.inspectOptions!==void 0;n.symlinks&&(n.inspectOptions===void 0?n.inspectOptions={symlinks:n.symlinks}:n.inspectOptions.symlinks=n.symlinks);let u=(f,h)=>{_o.readdirSync(f,{withFileTypes:!0}).forEach(g=>{let _=typeof g=="string",v;_?v=yo.join(f,g):v=yo.join(f,g.name);let S;if(o)S=Pi.sync(v,n.inspectOptions);else if(_){let x=Pi.sync(v,n.inspectOptions);S={name:x.name,type:x.type}}else{let x=vo(g);if(x==="symlink"&&n.symlinks==="follow"){let H=_o.statSync(v);S={name:g.name,type:vo(H)}}else S={name:g.name,type:x}}S!==void 0&&(i(v,S),S.type==="dir"&&h{n.maxLevelsDeep===void 0&&(n.maxLevelsDeep=1/0);let u=n.inspectOptions!==void 0;n.symlinks&&(n.inspectOptions===void 0?n.inspectOptions={symlinks:n.symlinks}:n.inspectOptions.symlinks=n.symlinks);let c=[],f=0,h=()=>{if(c.length===0&&f===0)o();else if(c.length>0&&f{c.push(S),h()},_=()=>{f-=1,h()},v=(S,x)=>{let H=(O,D)=>{D.type==="dir"&&x{_o.readdir(S,{withFileTypes:!0},(O,D)=>{O?o(O):(D.forEach(j=>{let W=typeof j=="string",ee;if(W?ee=yo.join(S,j):ee=yo.join(S,j.name),u||W)g(()=>{Pi.async(ee,n.inspectOptions).then(z=>{z!==void 0&&(u?i(ee,z):i(ee,{name:z.name,type:z.type}),H(ee,z)),_()}).catch(z=>{o(z)})});else{let z=vo(j);if(z==="symlink"&&n.symlinks==="follow")g(()=>{_o.stat(ee,(Y,N)=>{if(Y)o(Y);else{let te={name:j.name,type:vo(N)};i(ee,te),H(ee,te),_()}})});else{let Y={name:j.name,type:z};i(ee,Y),H(ee,Y)}}}),_())})})};Pi.async(t,n.inspectOptions).then(S=>{S?(u?i(t,S):i(t,{name:S.name,type:S.type}),S.type==="dir"?v(t,1):o()):(i(t,void 0),o())}).catch(S=>{o(S)})};$l.sync=$O;$l.async=FO});var V_=L((BD,Z_)=>{var qO=typeof process=="object"&&process&&process.platform==="win32";Z_.exports=qO?{sep:"\\"}:{sep:"/"}});var ry=L((WD,ny)=>{"use strict";ny.exports=ey;function ey(t,n,i){t instanceof RegExp&&(t=J_(t,i)),n instanceof RegExp&&(n=J_(n,i));var o=ty(t,n,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+n.length)}}function J_(t,n){var i=n.match(t);return i?i[0]:null}ey.range=ty;function ty(t,n,i){var o,u,c,f,h,g=i.indexOf(t),_=i.indexOf(n,g+1),v=g;if(g>=0&&_>0){if(t===n)return[g,_];for(o=[],c=i.length;v>=0&&!h;)v==g?(o.push(v),g=i.indexOf(t,v+1)):o.length==1?h=[o.pop(),_]:(u=o.pop(),u=0?g:_;o.length&&(h=[c,f])}return h}});var fy=L((UD,ly)=>{var iy=ry();ly.exports=WO;var sy="\0SLASH"+Math.random()+"\0",oy="\0OPEN"+Math.random()+"\0",Fl="\0CLOSE"+Math.random()+"\0",uy="\0COMMA"+Math.random()+"\0",ay="\0PERIOD"+Math.random()+"\0";function Ml(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function HO(t){return t.split("\\\\").join(sy).split("\\{").join(oy).split("\\}").join(Fl).split("\\,").join(uy).split("\\.").join(ay)}function BO(t){return t.split(sy).join("\\").split(oy).join("{").split(Fl).join("}").split(uy).join(",").split(ay).join(".")}function cy(t){if(!t)return[""];var n=[],i=iy("{","}",t);if(!i)return t.split(",");var o=i.pre,u=i.body,c=i.post,f=o.split(",");f[f.length-1]+="{"+u+"}";var h=cy(c);return c.length&&(f[f.length-1]+=h.shift(),f.push.apply(f,h)),n.push.apply(n,f),n}function WO(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ti(HO(t),!0).map(BO)):[]}function UO(t){return"{"+t+"}"}function GO(t){return/^-?0\d/.test(t)}function jO(t,n){return t<=n}function KO(t,n){return t>=n}function Ti(t,n){var i=[],o=iy("{","}",t);if(!o)return[t];var u=o.pre,c=o.post.length?Ti(o.post,!1):[""];if(/\$$/.test(o.pre))for(var f=0;f=0;if(!v&&!S)return o.post.match(/,.*\}/)?(t=o.pre+"{"+o.body+Fl+o.post,Ti(t)):[t];var x;if(v)x=o.body.split(/\.\./);else if(x=cy(o.body),x.length===1&&(x=Ti(x[0],!1).map(UO),x.length===1))return c.map(function(Pe){return o.pre+x[0]+Pe});var H;if(v){var O=Ml(x[0]),D=Ml(x[1]),j=Math.max(x[0].length,x[1].length),W=x.length==3?Math.abs(Ml(x[2])):1,ee=jO,z=D0){var G=new Array(Q+1).join("0");N<0?te="-"+G+te.slice(1):te=G+te}}H.push(te)}}else{H=[];for(var ue=0;ue{var dt=Wl.exports=(t,n,i={})=>(xo(n),!i.nocomment&&n.charAt(0)==="#"?!1:new Dr(n,i).match(t));Wl.exports=dt;var Hl=V_();dt.sep=Hl.sep;var Nt=Symbol("globstar **");dt.GLOBSTAR=Nt;var XO=fy(),hy={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Bl="[^/]",ql=Bl+"*?",zO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",YO="(?:(?!(?:\\/|^)\\.).)*?",gy=t=>t.split("").reduce((n,i)=>(n[i]=!0,n),{}),py=gy("().*{}+?[]^$\\!"),QO=gy("[.("),dy=/\/+/;dt.filter=(t,n={})=>(i,o,u)=>dt(i,t,n);var Rn=(t,n={})=>{let i={};return Object.keys(t).forEach(o=>i[o]=t[o]),Object.keys(n).forEach(o=>i[o]=n[o]),i};dt.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return dt;let n=dt,i=(o,u,c)=>n(o,u,Rn(t,c));return i.Minimatch=class extends n.Minimatch{constructor(u,c){super(u,Rn(t,c))}},i.Minimatch.defaults=o=>n.defaults(Rn(t,o)).Minimatch,i.filter=(o,u)=>n.filter(o,Rn(t,u)),i.defaults=o=>n.defaults(Rn(t,o)),i.makeRe=(o,u)=>n.makeRe(o,Rn(t,u)),i.braceExpand=(o,u)=>n.braceExpand(o,Rn(t,u)),i.match=(o,u,c)=>n.match(o,u,Rn(t,c)),i};dt.braceExpand=(t,n)=>my(t,n);var my=(t,n={})=>(xo(t),n.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:XO(t)),ZO=1024*64,xo=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>ZO)throw new TypeError("pattern is too long")},wo=Symbol("subparse");dt.makeRe=(t,n)=>new Dr(t,n||{}).makeRe();dt.match=(t,n,i={})=>{let o=new Dr(n,i);return t=t.filter(u=>o.match(u)),o.options.nonull&&!t.length&&t.push(n),t};var VO=t=>t.replace(/\\(.)/g,"$1"),JO=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Dr=class{constructor(n,i){xo(n),i||(i={}),this.options=i,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!i.partial,this.make()}debug(){}make(){let n=this.pattern,i=this.options;if(!i.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let o=this.globSet=this.braceExpand();i.debug&&(this.debug=(...u)=>console.error(...u)),this.debug(this.pattern,o),o=this.globParts=o.map(u=>u.split(dy)),this.debug(this.pattern,o),o=o.map((u,c,f)=>u.map(this.parse,this)),this.debug(this.pattern,o),o=o.filter(u=>u.indexOf(!1)===-1),this.debug(this.pattern,o),this.set=o}parseNegate(){if(this.options.nonegate)return;let n=this.pattern,i=!1,o=0;for(let u=0;u>> no match, partial?`,n,S,i,x),S===h))}var O;if(typeof _=="string"?(O=v===_,this.debug("string match",_,v,O)):(O=v.match(_),this.debug("pattern match",_,v,O)),!O)return!1}if(c===h&&f===g)return!0;if(c===h)return o;if(f===g)return c===h-1&&n[c]==="";throw new Error("wtf?")}braceExpand(){return my(this.pattern,this.options)}parse(n,i){xo(n);let o=this.options;if(n==="**")if(o.noglobstar)n="*";else return Nt;if(n==="")return"";let u="",c=!!o.nocase,f=!1,h=[],g=[],_,v=!1,S=-1,x=-1,H,O,D,j=n.charAt(0)==="."?"":o.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",W=()=>{if(_){switch(_){case"*":u+=ql,c=!0;break;case"?":u+=Bl,c=!0;break;default:u+="\\"+_;break}this.debug("clearStateChar %j %j",_,u),_=!1}};for(let Y=0,N;Y(G||(G="\\"),Q+Q+G+"|")),this.debug(`tail=%j - %s`,Y,Y,O,u);let N=O.type==="*"?ql:O.type==="?"?Bl:"\\"+O.type;c=!0,u=u.slice(0,O.reStart)+N+"\\("+Y}W(),f&&(u+="\\\\");let ee=QO[u.charAt(0)];for(let Y=g.length-1;Y>-1;Y--){let N=g[Y],te=u.slice(0,N.reStart),Q=u.slice(N.reStart,N.reEnd-8),G=u.slice(N.reEnd),ue=u.slice(N.reEnd-8,N.reEnd)+G,Pe=te.split("(").length-1,I=G;for(let me=0;me(f=f.map(h=>typeof h=="string"?JO(h):h===Nt?Nt:h._src).reduce((h,g)=>(h[h.length-1]===Nt&&g===Nt||h.push(g),h),[]),f.forEach((h,g)=>{h!==Nt||f[g-1]===Nt||(g===0?f.length>1?f[g+1]="(?:\\/|"+o+"\\/)?"+f[g+1]:f[g]=o:g===f.length-1?f[g-1]+="(?:\\/|"+o+")?":(f[g-1]+="(?:\\/|\\/"+o+"\\/)"+f[g+1],f[g+1]=Nt))}),f.filter(h=>h!==Nt).join("/"))).join("|");c="^(?:"+c+")$",this.negate&&(c="^(?!"+c+").*$");try{this.regexp=new RegExp(c,u)}catch{this.regexp=!1}return this.regexp}match(n,i=this.partial){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&i)return!0;let o=this.options;Hl.sep!=="/"&&(n=n.split(Hl.sep).join("/")),n=n.split(dy),this.debug(this.pattern,"split",n);let u=this.set;this.debug(this.pattern,"set",u);let c;for(let f=n.length-1;f>=0&&(c=n[f],!c);f--);for(let f=0;f{"use strict";var eI=_y().Minimatch,tI=(t,n)=>{let i=n.indexOf("/")!==-1,o=/^!?\//.test(n),u=/^!/.test(n),c;if(!o&&i){let f=n.replace(/^!/,"").replace(/^\.\//,"");return/\/$/.test(t)?c="":c="/",u?`!${t}${c}${f}`:`${t}${c}${f}`}return n};yy.create=(t,n,i)=>{let o;typeof n=="string"?o=[n]:o=n;let u=o.map(f=>tI(t,f)).map(f=>new eI(f,{matchBase:!0,nocomment:!0,nocase:i||!1,dot:!0,windowsPathsNoEscape:!0}));return f=>{let h="matching",g=!1,_,v;for(v=0;v{"use strict";var nI=q("path"),by=bo(),wy=kr(),xy=Ul(),vy=Ge(),rI=(t,n,i)=>{let o=`${t}([path], options)`;vy.argument(o,"path",n,["string"]),vy.options(o,"options",i,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},Sy=t=>{let n=t||{};return n.matching===void 0&&(n.matching="*"),n.files===void 0&&(n.files=!0),n.ignoreCase===void 0&&(n.ignoreCase=!1),n.directories===void 0&&(n.directories=!1),n.recursive===void 0&&(n.recursive=!0),n},Ey=(t,n)=>t.map(i=>nI.relative(n,i)),Ay=t=>{let n=new Error(`Path you want to find stuff in doesn't exist ${t}`);return n.code="ENOENT",n},Cy=t=>{let n=new Error(`Path you want to find stuff in must be a directory ${t}`);return n.code="ENOTDIR",n},iI=(t,n)=>{let i=[],o=xy.create(t,n.matching,n.ignoreCase),u=1/0;return n.recursive===!1&&(u=1),by.sync(t,{maxLevelsDeep:u,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(c,f)=>{f&&c!==t&&o(c)&&(f.type==="file"&&n.files===!0||f.type==="dir"&&n.directories===!0)&&(n.filter?n.filter(f)&&i.push(c):i.push(c))}),i.sort(),Ey(i,n.cwd)},sI=(t,n)=>{let i=wy.sync(t,{symlinks:"follow"});if(i===void 0)throw Ay(t);if(i.type!=="dir")throw Cy(t);return iI(t,Sy(n))},oI=(t,n)=>new Promise((i,o)=>{let u=[],c=xy.create(t,n.matching,n.ignoreCase),f=1/0;n.recursive===!1&&(f=1);let h=0,g=!1,_=()=>{g&&h===0&&(u.sort(),i(Ey(u,n.cwd)))};by.async(t,{maxLevelsDeep:f,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(v,S)=>{if(S&&v!==t&&c(v)&&(S.type==="file"&&n.files===!0||S.type==="dir"&&n.directories===!0))if(n.filter){let H=n.filter(S);typeof H.then=="function"?(h+=1,H.then(D=>{D&&u.push(v),h-=1,_()}).catch(D=>{o(D)})):H&&u.push(v)}else u.push(v)},v=>{v?o(v):(g=!0,_())})}),uI=(t,n)=>wy.async(t,{symlinks:"follow"}).then(i=>{if(i===void 0)throw Ay(t);if(i.type!=="dir")throw Cy(t);return oI(t,Sy(n))});So.validateInput=rI;So.sync=sI;So.async=uI});var Oy=L(Co=>{"use strict";var aI=q("crypto"),Ao=q("path"),Eo=kr(),zD=mo(),Py=Ge(),Ty=bo(),cI=(t,n,i)=>{let o=`${t}(path, [options])`;if(Py.argument(o,"path",n,["string"]),Py.options(o,"options",i,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Eo.supportedChecksumAlgorithms.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${Eo.supportedChecksumAlgorithms.join(", ")}`);if(i&&i.symlinks!==void 0&&Eo.symlinkOptions.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${Eo.symlinkOptions.join(", ")}`)},lI=(t,n)=>t===void 0?".":t.relativePath+"/"+n.name,fI=(t,n)=>{let i=aI.createHash(n);return t.forEach(o=>{i.update(o.name+o[n])}),i.digest("hex")},Gl=(t,n,i)=>{i.relativePath&&(n.relativePath=lI(t,n)),n.type==="dir"&&(n.children.forEach(o=>{Gl(n,o,i)}),n.size=0,n.children.sort((o,u)=>o.type==="dir"&&u.type==="file"?-1:o.type==="file"&&u.type==="dir"?1:o.name.localeCompare(u.name)),n.children.forEach(o=>{n.size+=o.size||0}),i.checksum&&(n[i.checksum]=fI(n.children,i.checksum)))},jl=(t,n,i)=>{let o=n[0];if(n.length>1){let u=t.children.find(c=>c.name===o);return jl(u,n.slice(1),i)}return t},hI=(t,n)=>{let i=n||{},o;return Ty.sync(t,{inspectOptions:i},(u,c)=>{if(c){c.type==="dir"&&(c.children=[]);let f=Ao.relative(t,u);f===""?o=c:jl(o,f.split(Ao.sep),c).children.push(c)}}),o&&Gl(void 0,o,i),o},pI=(t,n)=>{let i=n||{},o;return new Promise((u,c)=>{Ty.async(t,{inspectOptions:i},(f,h)=>{if(h){h.type==="dir"&&(h.children=[]);let g=Ao.relative(t,f);g===""?o=h:jl(o,g.split(Ao.sep),h).children.push(h)}},f=>{f?c(f):(o&&Gl(void 0,o,i),u(o))})})};Co.validateInput=cI;Co.sync=hI;Co.async=pI});var Po=L(Ro=>{"use strict";var Iy=it(),dI=Ge(),gI=(t,n)=>{let i=`${t}(path)`;dI.argument(i,"path",n,["string"])},mI=t=>{try{let n=Iy.statSync(t);return n.isDirectory()?"dir":n.isFile()?"file":"other"}catch(n){if(n.code!=="ENOENT")throw n}return!1},_I=t=>new Promise((n,i)=>{Iy.stat(t).then(o=>{o.isDirectory()?n("dir"):o.isFile()?n("file"):n("other")}).catch(o=>{o.code==="ENOENT"?n(!1):i(o)})});Ro.validateInput=gI;Ro.sync=mI;Ro.async=_I});var Yl=L(Lo=>{"use strict";var Oi=q("path"),gt=it(),zl=Gn(),To=Po(),Ly=kr(),yI=Ri(),vI=Ul(),ky=io(),Dy=bo(),Kl=Ge(),bI=(t,n,i,o)=>{let u=`${t}(from, to, [options])`;Kl.argument(u,"from",n,["string"]),Kl.argument(u,"to",i,["string"]),Kl.options(u,"options",o,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},Ny=(t,n)=>{let i=t||{},o={};return i.ignoreCase===void 0&&(i.ignoreCase=!1),o.overwrite=i.overwrite,i.matching?o.allowedToCopy=vI.create(n,i.matching,i.ignoreCase):o.allowedToCopy=()=>!0,o},$y=t=>{let n=new Error(`Path to copy doesn't exist ${t}`);return n.code="ENOENT",n},Oo=t=>{let n=new Error(`Destination path already exists ${t}`);return n.code="EEXIST",n},Io={mode:!0,symlinks:"report",times:!0,absolutePath:!0},My=t=>typeof t.opts.overwrite!="function"&&t.opts.overwrite!==!0,wI=(t,n,i)=>{if(!To.sync(t))throw $y(t);if(To.sync(n)&&!i.overwrite)throw Oo(n)},xI=t=>{if(typeof t.opts.overwrite=="function"){let n=Ly.sync(t.destPath,Io);return t.opts.overwrite(t.srcInspectData,n)}return t.opts.overwrite===!0},SI=(t,n,i,o)=>{let u=gt.readFileSync(t);try{gt.writeFileSync(n,u,{mode:i,flag:"wx"})}catch(c){if(c.code==="ENOENT")yI.sync(n,u,{mode:i});else if(c.code==="EEXIST"){if(xI(o))gt.writeFileSync(n,u,{mode:i});else if(My(o))throw Oo(o.destPath)}else throw c}},EI=(t,n)=>{let i=gt.readlinkSync(t);try{gt.symlinkSync(i,n)}catch(o){if(o.code==="EEXIST")gt.unlinkSync(n),gt.symlinkSync(i,n);else throw o}},AI=(t,n,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:n,opts:o},c=ky.normalizeFileMode(n.mode);n.type==="dir"?zl.createSync(i,{mode:c}):n.type==="file"?SI(t,i,c,u):n.type==="symlink"&&EI(t,i)},CI=(t,n,i)=>{let o=Ny(i,t);wI(t,n,o),Dy.sync(t,{inspectOptions:Io},(u,c)=>{let f=Oi.relative(t,u),h=Oi.resolve(n,f);o.allowedToCopy(u,h,c)&&AI(u,c,h,o)})},RI=(t,n,i)=>To.async(t).then(o=>{if(o)return To.async(n);throw $y(t)}).then(o=>{if(o&&!i.overwrite)throw Oo(n)}),PI=t=>new Promise((n,i)=>{typeof t.opts.overwrite=="function"?Ly.async(t.destPath,Io).then(o=>{n(t.opts.overwrite(t.srcInspectData,o))}).catch(i):n(t.opts.overwrite===!0)}),Xl=(t,n,i,o,u)=>new Promise((c,f)=>{let h=u||{},g="wx";h.overwrite&&(g="w");let _=gt.createReadStream(t),v=gt.createWriteStream(n,{mode:i,flags:g});_.on("error",f),v.on("error",S=>{_.resume(),S.code==="ENOENT"?zl.createAsync(Oi.dirname(n)).then(()=>{Xl(t,n,i,o).then(c,f)}).catch(f):S.code==="EEXIST"?PI(o).then(x=>{x?Xl(t,n,i,o,{overwrite:!0}).then(c,f):My(o)?f(Oo(n)):c()}).catch(f):f(S)}),v.on("finish",c),_.pipe(v)}),TI=(t,n)=>gt.readlink(t).then(i=>new Promise((o,u)=>{gt.symlink(i,n).then(o).catch(c=>{c.code==="EEXIST"?gt.unlink(n).then(()=>gt.symlink(i,n)).then(o,u):u(c)})})),OI=(t,n,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:n,opts:o},c=ky.normalizeFileMode(n.mode);return n.type==="dir"?zl.createAsync(i,{mode:c}):n.type==="file"?Xl(t,i,c,u):n.type==="symlink"?TI(t,i):Promise.resolve()},II=(t,n,i)=>new Promise((o,u)=>{let c=Ny(i,t);RI(t,n,c).then(()=>{let f=!1,h=0;Dy.async(t,{inspectOptions:Io},(g,_)=>{if(_){let v=Oi.relative(t,g),S=Oi.resolve(n,v);c.allowedToCopy(g,_,S)&&(h+=1,OI(g,_,S,c).then(()=>{h-=1,f&&h===0&&o()}).catch(u))}},g=>{g?u(g):(f=!0,f&&h===0&&o())})}).catch(u)});Lo.validateInput=bI;Lo.sync=CI;Lo.async=II});var Zl=L(Do=>{"use strict";var Fy=q("path"),Nr=it(),Ql=Ge(),qy=Yl(),Hy=Gn(),Ii=Po(),ko=oo(),LI=(t,n,i,o)=>{let u=`${t}(from, to, [options])`;Ql.argument(u,"from",n,["string"]),Ql.argument(u,"to",i,["string"]),Ql.options(u,"options",o,{overwrite:["boolean"]})},By=t=>t||{},Wy=t=>{let n=new Error(`Destination path already exists ${t}`);return n.code="EEXIST",n},Uy=t=>{let n=new Error(`Path to move doesn't exist ${t}`);return n.code="ENOENT",n},kI=(t,n,i)=>{let o=By(i);if(Ii.sync(n)!==!1&&o.overwrite!==!0)throw Wy(n);try{Nr.renameSync(t,n)}catch(u){if(u.code==="EISDIR"||u.code==="EPERM")ko.sync(n),Nr.renameSync(t,n);else if(u.code==="EXDEV")qy.sync(t,n,{overwrite:!0}),ko.sync(t);else if(u.code==="ENOENT"){if(!Ii.sync(t))throw Uy(t);Hy.createSync(Fy.dirname(n)),Nr.renameSync(t,n)}else throw u}},DI=t=>new Promise((n,i)=>{let o=Fy.dirname(t);Ii.async(o).then(u=>{u?i():Hy.createAsync(o).then(n,i)}).catch(i)}),NI=(t,n,i)=>{let o=By(i);return new Promise((u,c)=>{Ii.async(n).then(f=>{f!==!1&&o.overwrite!==!0?c(Wy(n)):Nr.rename(t,n).then(u).catch(h=>{h.code==="EISDIR"||h.code==="EPERM"?ko.async(n).then(()=>Nr.rename(t,n)).then(u,c):h.code==="EXDEV"?qy.async(t,n,{overwrite:!0}).then(()=>ko.async(t)).then(u,c):h.code==="ENOENT"?Ii.async(t).then(g=>{g?DI(n).then(()=>Nr.rename(t,n)).then(u,c):c(Uy(t))}).catch(c):c(h)})})})};Do.validateInput=LI;Do.sync=kI;Do.async=NI});var Yy=L(No=>{"use strict";var Ky=it(),Gy=Ge(),jy=["utf8","buffer","json","jsonWithDates"],$I=(t,n,i)=>{let o=`${t}(path, returnAs)`;if(Gy.argument(o,"path",n,["string"]),Gy.argument(o,"returnAs",i,["string","undefined"]),i&&jy.indexOf(i)===-1)throw new Error(`Argument "returnAs" passed to ${o} must have one of values: ${jy.join(", ")}`)},Xy=(t,n)=>typeof n=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(n)?new Date(n):n,zy=(t,n)=>{let i=new Error(`JSON parsing failed while reading ${t} [${n}]`);return i.originalError=n,i},MI=(t,n)=>{let i=n||"utf8",o,u="utf8";i==="buffer"&&(u=null);try{o=Ky.readFileSync(t,{encoding:u})}catch(c){if(c.code==="ENOENT")return;throw c}try{i==="json"?o=JSON.parse(o):i==="jsonWithDates"&&(o=JSON.parse(o,Xy))}catch(c){throw zy(t,c)}return o},FI=(t,n)=>new Promise((i,o)=>{let u=n||"utf8",c="utf8";u==="buffer"&&(c=null),Ky.readFile(t,{encoding:c}).then(f=>{try{i(u==="json"?JSON.parse(f):u==="jsonWithDates"?JSON.parse(f,Xy):f)}catch(h){o(zy(t,h))}}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});No.validateInput=$I;No.sync=MI;No.async=FI});var Zy=L($o=>{"use strict";var Li=q("path"),Qy=Zl(),Vl=Ge(),qI=(t,n,i,o)=>{let u=`${t}(path, newName, [options])`;if(Vl.argument(u,"path",n,["string"]),Vl.argument(u,"newName",i,["string"]),Vl.options(u,"options",o,{overwrite:["boolean"]}),Li.basename(i)!==i)throw new Error(`Argument "newName" passed to ${u} should be a filename, not a path. Received "${i}"`)},HI=(t,n,i)=>{let o=Li.join(Li.dirname(t),n);Qy.sync(t,o,i)},BI=(t,n,i)=>{let o=Li.join(Li.dirname(t),n);return Qy.async(t,o,i)};$o.validateInput=qI;$o.sync=HI;$o.async=BI});var tv=L(Fo=>{"use strict";var Jy=q("path"),Mo=it(),Vy=Ge(),ev=Gn(),WI=(t,n,i)=>{let o=`${t}(symlinkValue, path)`;Vy.argument(o,"symlinkValue",n,["string"]),Vy.argument(o,"path",i,["string"])},UI=(t,n)=>{try{Mo.symlinkSync(t,n)}catch(i){if(i.code==="ENOENT")ev.createSync(Jy.dirname(n)),Mo.symlinkSync(t,n);else throw i}},GI=(t,n)=>new Promise((i,o)=>{Mo.symlink(t,n).then(i).catch(u=>{u.code==="ENOENT"?ev.createAsync(Jy.dirname(n)).then(()=>Mo.symlink(t,n)).then(i,o):o(u)})});Fo.validateInput=WI;Fo.sync=UI;Fo.async=GI});var rv=L(Jl=>{"use strict";var nv=q("fs");Jl.createWriteStream=nv.createWriteStream;Jl.createReadStream=nv.createReadStream});var cv=L(qo=>{"use strict";var ef=q("path"),jI=q("os"),iv=q("crypto"),sv=Gn(),ov=it(),KI=Ge(),XI=(t,n)=>{let i=`${t}([options])`;KI.options(i,"options",n,{prefix:["string"],basePath:["string"]})},uv=(t,n)=>{t=t||{};let i={};return typeof t.prefix!="string"?i.prefix="":i.prefix=t.prefix,typeof t.basePath=="string"?i.basePath=ef.resolve(n,t.basePath):i.basePath=jI.tmpdir(),i},av=32,zI=(t,n)=>{let i=uv(n,t),o=iv.randomBytes(av/2).toString("hex"),u=ef.join(i.basePath,i.prefix+o);try{ov.mkdirSync(u)}catch(c){if(c.code==="ENOENT")sv.sync(u);else throw c}return u},YI=(t,n)=>new Promise((i,o)=>{let u=uv(n,t);iv.randomBytes(av/2,(c,f)=>{if(c)o(c);else{let h=f.toString("hex"),g=ef.join(u.basePath,u.prefix+h);ov.mkdir(g,_=>{_?_.code==="ENOENT"?sv.async(g).then(()=>{i(g)},o):o(_):i(g)})}})});qo.validateInput=XI;qo.sync=zI;qo.async=YI});var dv=L((iN,pv)=>{"use strict";var lv=q("util"),tf=q("path"),Ho=W_(),Bo=Gn(),Wo=K_(),Uo=Ry(),Go=kr(),jo=Oy(),Ko=Yl(),Xo=Po(),zo=mo(),Yo=Zl(),Qo=Yy(),Zo=oo(),Vo=Zy(),Jo=tv(),fv=rv(),eu=cv(),tu=Ri(),hv=t=>{let n=()=>t||process.cwd(),i=function(){if(arguments.length===0)return n();let h=Array.prototype.slice.call(arguments),g=[n()].concat(h);return hv(tf.resolve.apply(null,g))},o=h=>tf.resolve(n(),h),u=function(){return Array.prototype.unshift.call(arguments,n()),tf.resolve.apply(null,arguments)},c=h=>{let g=h||{};return g.cwd=n(),g},f={cwd:i,path:u,append:(h,g,_)=>{Ho.validateInput("append",h,g,_),Ho.sync(o(h),g,_)},appendAsync:(h,g,_)=>(Ho.validateInput("appendAsync",h,g,_),Ho.async(o(h),g,_)),copy:(h,g,_)=>{Ko.validateInput("copy",h,g,_),Ko.sync(o(h),o(g),_)},copyAsync:(h,g,_)=>(Ko.validateInput("copyAsync",h,g,_),Ko.async(o(h),o(g),_)),createWriteStream:(h,g)=>fv.createWriteStream(o(h),g),createReadStream:(h,g)=>fv.createReadStream(o(h),g),dir:(h,g)=>{Bo.validateInput("dir",h,g);let _=o(h);return Bo.sync(_,g),i(_)},dirAsync:(h,g)=>(Bo.validateInput("dirAsync",h,g),new Promise((_,v)=>{let S=o(h);Bo.async(S,g).then(()=>{_(i(S))},v)})),exists:h=>(Xo.validateInput("exists",h),Xo.sync(o(h))),existsAsync:h=>(Xo.validateInput("existsAsync",h),Xo.async(o(h))),file:(h,g)=>(Wo.validateInput("file",h,g),Wo.sync(o(h),g),f),fileAsync:(h,g)=>(Wo.validateInput("fileAsync",h,g),new Promise((_,v)=>{Wo.async(o(h),g).then(()=>{_(f)},v)})),find:(h,g)=>(typeof g>"u"&&typeof h=="object"&&(g=h,h="."),Uo.validateInput("find",h,g),Uo.sync(o(h),c(g))),findAsync:(h,g)=>(typeof g>"u"&&typeof h=="object"&&(g=h,h="."),Uo.validateInput("findAsync",h,g),Uo.async(o(h),c(g))),inspect:(h,g)=>(Go.validateInput("inspect",h,g),Go.sync(o(h),g)),inspectAsync:(h,g)=>(Go.validateInput("inspectAsync",h,g),Go.async(o(h),g)),inspectTree:(h,g)=>(jo.validateInput("inspectTree",h,g),jo.sync(o(h),g)),inspectTreeAsync:(h,g)=>(jo.validateInput("inspectTreeAsync",h,g),jo.async(o(h),g)),list:h=>(zo.validateInput("list",h),zo.sync(o(h||"."))),listAsync:h=>(zo.validateInput("listAsync",h),zo.async(o(h||"."))),move:(h,g,_)=>{Yo.validateInput("move",h,g,_),Yo.sync(o(h),o(g),_)},moveAsync:(h,g,_)=>(Yo.validateInput("moveAsync",h,g,_),Yo.async(o(h),o(g),_)),read:(h,g)=>(Qo.validateInput("read",h,g),Qo.sync(o(h),g)),readAsync:(h,g)=>(Qo.validateInput("readAsync",h,g),Qo.async(o(h),g)),remove:h=>{Zo.validateInput("remove",h),Zo.sync(o(h||"."))},removeAsync:h=>(Zo.validateInput("removeAsync",h),Zo.async(o(h||"."))),rename:(h,g,_)=>{Vo.validateInput("rename",h,g,_),Vo.sync(o(h),g,_)},renameAsync:(h,g,_)=>(Vo.validateInput("renameAsync",h,g,_),Vo.async(o(h),g,_)),symlink:(h,g)=>{Jo.validateInput("symlink",h,g),Jo.sync(h,o(g))},symlinkAsync:(h,g)=>(Jo.validateInput("symlinkAsync",h,g),Jo.async(h,o(g))),tmpDir:h=>{eu.validateInput("tmpDir",h);let g=eu.sync(n(),h);return i(g)},tmpDirAsync:h=>(eu.validateInput("tmpDirAsync",h),new Promise((g,_)=>{eu.async(n(),h).then(v=>{g(i(v))},_)})),write:(h,g,_)=>{tu.validateInput("write",h,g,_),tu.sync(o(h),g,_)},writeAsync:(h,g,_)=>(tu.validateInput("writeAsync",h,g,_),tu.async(o(h),g,_))};return lv.inspect.custom!==void 0&&(f[lv.inspect.custom]=()=>`[fs-jetpack CWD: ${n()}]`),f};pv.exports=hv});var nu=L((sN,gv)=>{"use strict";var QI=dv();gv.exports=QI()});var JI={};Ca(JI,{default:()=>VI});var Ai={};Ca(Ai,{Browserslist:()=>cr,BrowserslistUpdate:()=>Tr,Bud:()=>Ei,Build:()=>$r,Clean:()=>Mr,Contributors:()=>qr,Dev:()=>Hr,Docs:()=>Br,DocsDev:()=>Wr,Docusaurus:()=>lr,Eslint:()=>fr,GitHookCommitMsg:()=>ki,Lint:()=>Ur,Netlify:()=>hr,PackageCheck:()=>wr,Pm2:()=>Er,Prettier:()=>Ar,RegistryClean:()=>Gr,RegistryStart:()=>jr,RegistryStop:()=>Kr,Release:()=>Xr,Syncpack:()=>Cr,TestRun:()=>zr,Tsc:()=>Rr,Version:()=>Yr,Vitest:()=>Pr,YarnPluginBuild:()=>Fr});var Mp=q("clipanion");var $p=q("@yarnpkg/cli"),K=class extends $p.BaseCommand{constructor(){super(...arguments);this.result=0}async throwIfError(i){if(i!==0)throw new Error("command failed")}};var cr=class extends K{constructor(){super(...arguments);this.passthrough=Mp.Option.Proxy({name:"browserslist options"})}async execute(){return await this.cli.run(["browserslist",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};cr.paths=[["@bud","browserslist"]],cr.usage={category:"@bud",description:"run browserslist",examples:[["browserslist usage info","yarn @bud browserslist --help"]]};var Fp=q("clipanion");var lr=class extends K{constructor(){super(...arguments);this.passthrough=Fp.Option.Proxy({name:"docusaurus options"})}async execute(){return await this.cli.run(["workspace","@repo/docs","docusaurus",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};lr.paths=[["@bud","docusaurus"]],lr.usage={category:"@bud",description:"run docusaurus",examples:[["docusaurus usage info","yarn @bud docusaurus --help"]]};var Wp=q("clipanion");var fr=class extends K{constructor(){super(...arguments);this.passthrough=Wp.Option.Proxy({name:"pm2 options"})}async execute(){let{path:i}=await Promise.resolve().then(()=>(ft(),Bp));await this.cli.run(["node",i("node_modules",".bin","eslint"),i("examples/**/*.{ts,tsx,js,jsx}"),i("sources/**/src/**/*.{ts,tsx,js,jsx}"),i("tests/**/*.{ts,tsx,js,jsx}"),i("config/**/*.{ts,tsx,js,jsx}"),"--config",i("config/eslint.config.cjs"),"--no-error-on-unmatched-pattern",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};fr.paths=[["@bud","eslint"]],fr.usage={category:"@bud",description:"Eslint passthrough",examples:[["eslint usage info","yarn @bud eslint --help"]]};ft();var Ta=q("clipanion");var hr=class extends K{constructor(){super(...arguments);this.dir=Ta.Option.String("--dir",se("sources","@repo","docs","build"),{description:"directory to deploy"});this.passthrough=Ta.Option.Proxy({name:"netlify options"})}async execute(){return await this.cli.run(["workspace","@repo/docs","netlify",...this.passthrough??[],"--dir",`${this.dir}`]).then(this.throwIfError).catch(this.catch)}};hr.paths=[["@bud","netlify"]],hr.usage={category:"@bud",description:"run netlify",examples:[["netlify usage info","yarn @bud netlify --help"]]};ft();var g_=q("clipanion");var n_=Fe(q("fs"),1),r_=Fe(q("path"),1),i_=Fe(Oa(),1),xi=Fe(dl(),1),wi=Fe(Nm(),1);var zm=Fe(q("process"),1),Sl=Fe(q("fs"),1),Un=Fe(q("path"),1),El=Fe(dl(),1),Ym=Fe(jm(),1);function br(t){let n=/^\\\\\?\\/.test(t),i=/[^\u0000-\u0080]+/.test(t);return n||i?t:t.replace(/\\/g,"/")}var Km=q("url"),Xm=q("stream"),bi=t=>t instanceof URL?(0,Km.fileURLToPath)(t):t,eo=class extends Xm.Transform{constructor(n){super({objectMode:!0,transform(i,o,u){u(void 0,n(i)?i:void 0)}})}},to=t=>t[0]==="!";var Qm={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},Zm="**/.gitignore",kT=(t,n)=>to(t)?"!"+Un.default.posix.join(n,t.slice(1)):Un.default.posix.join(n,t),DT=(t,n)=>{let i=br(Un.default.relative(n,Un.default.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(o=>o&&!o.startsWith("#")).map(o=>kT(o,i))},NT=(t,n)=>{if(n=br(n),Un.default.isAbsolute(t)){if(br(t).startsWith(n))return Un.default.relative(n,t);throw new Error(`Path ${t} is not in cwd ${n}`)}return t},Vm=(t,n)=>{let i=t.flatMap(u=>DT(u,n)),o=(0,Ym.default)().add(i);return u=>(u=bi(u),u=NT(u,n),u?o.ignores(br(u)):!1)},Jm=(t={})=>({cwd:bi(t.cwd)||zm.default.cwd(),suppressErrors:Boolean(t.suppressErrors),deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),e_=async(t,n)=>{let{cwd:i,suppressErrors:o,deep:u}=Jm(n),c=await(0,El.default)(t,{cwd:i,suppressErrors:o,deep:u,...Qm}),f=await Promise.all(c.map(async h=>({filePath:h,content:await Sl.default.promises.readFile(h,"utf8")})));return Vm(f,i)},t_=(t,n)=>{let{cwd:i,suppressErrors:o,deep:u}=Jm(n),f=El.default.sync(t,{cwd:i,suppressErrors:o,deep:u,...Qm}).map(h=>({filePath:h,content:Sl.default.readFileSync(h,"utf8")}));return Vm(f,i)};var $T=t=>{if(t.some(n=>typeof n!="string"))throw new TypeError("Patterns must be a string or an array of strings")},Al=t=>(t=[...new Set([t].flat())],$T(t),t),MT=t=>{if(!t.cwd)return;let n;try{n=n_.default.statSync(t.cwd)}catch{return}if(!n.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},s_=(t={})=>(t={...t,ignore:t.ignore||[],expandDirectories:t.expandDirectories===void 0?!0:t.expandDirectories,cwd:bi(t.cwd)},MT(t),t),o_=t=>async(n,i)=>t(Al(n),s_(i)),no=t=>(n,i)=>t(Al(n),s_(i)),u_=t=>{let{ignoreFiles:n,gitignore:i}=t,o=n?Al(n):[];return i&&o.push(Zm),o},FT=async t=>{let n=u_(t);return c_(n.length>0&&await e_(n,t))},a_=t=>{let n=u_(t);return c_(n.length>0&&t_(n,t))},c_=t=>{let n=new Set;return i=>{let o=i.path||i,u=r_.default.normalize(o),c=n.has(u)||t&&t(o);return n.add(u),!c}},l_=(t,n)=>t.flat().filter(i=>n(i)),qT=(t,n)=>(0,i_.default)(t).pipe(new eo(i=>n(i))),f_=(t,n)=>{let i=[];for(;t.length>0;){let o=t.findIndex(c=>to(c));if(o===-1){i.push({patterns:t,options:n});break}let u=t[o].slice(1);for(let c of i)c.options.ignore.push(u);o!==0&&i.push({patterns:t.slice(0,o),options:{...n,ignore:[...n.ignore,u]}}),t=t.slice(o+1)}return i},h_=(t,n)=>({...n?{cwd:n}:{},...Array.isArray(t)?{files:t}:t}),p_=async(t,n)=>{let i=f_(t,n),{cwd:o,expandDirectories:u}=n;if(!u)return i;let c=h_(u,o),f=o?{cwd:o}:void 0;return Promise.all(i.map(async h=>{let{patterns:g,options:_}=h;return[g,_.ignore]=await Promise.all([(0,wi.default)(g,c),(0,wi.default)(_.ignore,f)]),{patterns:g,options:_}}))},Cl=(t,n)=>{let i=f_(t,n),{cwd:o,expandDirectories:u}=n;if(!u)return i;let c=h_(u,o),f=o?{cwd:o}:void 0;return i.map(h=>{let{patterns:g,options:_}=h;return g=wi.default.sync(g,c),_.ignore=wi.default.sync(_.ignore,f),{patterns:g,options:_}})},d_=o_(async(t,n)=>{let[i,o]=await Promise.all([p_(t,n),FT(n)]),u=await Promise.all(i.map(c=>(0,xi.default)(c.patterns,c.options)));return l_(u,o)}),Kk=no((t,n)=>{let i=Cl(t,n),o=a_(n),u=i.map(c=>xi.default.sync(c.patterns,c.options));return l_(u,o)}),Xk=no((t,n)=>{let i=Cl(t,n),o=a_(n),u=i.map(c=>xi.default.stream(c.patterns,c.options));return qT(u,o)}),zk=no((t,n)=>t.some(i=>xi.default.isDynamicPattern(i,n))),Yk=o_(p_),Qk=no(Cl);var wr=class extends K{constructor(){super(...arguments);this.passthrough=g_.Option.Proxy({name:"pm2 options"})}async execute(){await d_(["sources/@roots/*"],{onlyDirectories:!0}).then(async i=>await Promise.all([...i,"sources/create-bud-app"].flatMap(async o=>await this.cli.run(["node",se("node_modules",".bin","package-check"),"--cwd",o]).then(this.throwIfError).catch(this.catch))).catch(this.catch)).catch(this.catch)}};wr.paths=[["@bud","package-check"]],wr.usage={category:"@bud",description:"PackageCheck passthrough",examples:[["package-check usage info","yarn @bud package-check --help"]]};ft();var m_=q("clipanion"),__=Fe(Sr());var Er=class extends K{constructor(){super(...arguments);this.passthrough=m_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",se("node_modules",".bin","pm2"),...this.passthrough]).catch(__.noop)}};Er.paths=[["@bud","pm2"]],Er.usage={category:"@bud",description:"registry access",examples:[["pm2 usage info","yarn @bud pm2 --info"]]};ft();var y_=q("clipanion");var Ar=class extends K{constructor(){super(...arguments);this.passthrough=y_.Option.Proxy({name:"prettier options"})}async execute(){this.passthrough.length||(this.passthrough=["--ignore-unknown","--no-error-on-unmatched-pattern","--write"]),await this.cli.run(["node",se("node_modules/.bin/prettier"),se("sources/@roots/*/src/**/*"),`--config=${se("config","prettier.config.js")}`,"--ignore-unknown","--no-error-on-unmatched-pattern","--write",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Ar.paths=[["@bud","prettier"]],Ar.usage={category:"@bud",description:"Prettier passthrough",examples:[["prettier usage info","yarn @bud prettier --help"]]};ft();var v_=q("clipanion");var Cr=class extends K{constructor(){super(...arguments);this.passthrough=v_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",se("node_modules",".bin","syncpack"),"list-mismatches","--config",se("config/syncpack.config.cjs")]).then(this.throwIfError).catch(this.catch)}};Cr.paths=[["@bud","syncpack"]],Cr.usage={category:"@bud",description:"Syncpack passthrough",examples:[["syncpack usage info","yarn @bud syncpack --help"]]};ft();var b_=q("clipanion");var Rr=class extends K{constructor(){super(...arguments);this.passthrough=b_.Option.Proxy({name:"tsc options"})}async execute(){return await this.cli.run(["node",se("node_modules",".bin","tsc"),...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Rr.paths=[["@bud","tsc"]],Rr.usage={category:"@bud",description:"Run the typescript compiler",examples:[["tsc usage info","yarn @bud tsc --help"]]};ft();var w_=q("clipanion");var Pr=class extends K{constructor(){super(...arguments);this.passthrough=w_.Option.Proxy({name:"vitest options"})}async execute(){return await this.cli.run(["node",se("node_modules",".bin","vitest"),...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Pr.paths=[["@bud","vitest"]],Pr.usage={category:"@bud",description:"Run vitest",examples:[["vitest usage info","yarn @bud vitest --help"]]};var Tr=class extends K{async execute(){await this.cli.run(["update-browserslist-db"])}};Tr.paths=[["@bud","browserslist","update"],["@bud","browserslist","upgrade"]],Tr.usage={category:"@bud",description:"update browserslist",examples:[["update browserslist db","yarn @bud browserslist update"]]};var Ei=class extends K{async execute(){process.stdout.write(` +}`;var ce=kp(function(){return ge(d,W+"return "+k).apply(t,m)});if(ce.source=k,ma(ce))throw ce;return ce}function cA(e){return ye(e).toLowerCase()}function lA(e){return ye(e).toUpperCase()}function fA(e,r,s){if(e=ye(e),e&&(s||r===t))return Wf(e);if(!e||!(r=ut(r)))return e;var a=Tt(e),l=Tt(r),d=Uf(a,l),m=Gf(a,l)+1;return yn(a,d,m).join("")}function hA(e,r,s){if(e=ye(e),e&&(s||r===t))return e.slice(0,Kf(e)+1);if(!e||!(r=ut(r)))return e;var a=Tt(e),l=Gf(a,Tt(r))+1;return yn(a,0,l).join("")}function pA(e,r,s){if(e=ye(e),e&&(s||r===t))return e.replace(mu,"");if(!e||!(r=ut(r)))return e;var a=Tt(e),l=Uf(a,Tt(r));return yn(a,l).join("")}function dA(e,r){var s=U,a=oe;if(Te(r)){var l="separator"in r?r.separator:l;s="length"in r?ue(r.length):s,a="omission"in r?ut(r.omission):a}e=ye(e);var d=e.length;if(Vn(e)){var m=Tt(e);d=m.length}if(s>=d)return e;var y=s-Jn(a);if(y<1)return a;var w=m?yn(m,0,y).join(""):e.slice(0,y);if(l===t)return w+a;if(m&&(y+=w.length-y),_a(l)){if(e.slice(y).search(l)){var T,O=w;for(l.global||(l=ku(l.source,ye(lf.exec(l))+"g")),l.lastIndex=0;T=l.exec(O);)var k=T.index;w=w.slice(0,k===t?y:k)}}else if(e.indexOf(ut(l),y)!=y){var M=w.lastIndexOf(l);M>-1&&(w=w.slice(0,M))}return w+a}function gA(e){return e=ye(e),e&&Cv.test(e)?e.replace(uf,Gb):e}var mA=sr(function(e,r,s){return e+(s?" ":"")+r.toUpperCase()}),ba=Dh("toUpperCase");function Lp(e,r,s){return e=ye(e),r=s?t:r,r===t?qb(e)?Xb(e):Ob(e):e.match(r)||[]}var kp=le(function(e,r){try{return st(e,t,r)}catch(s){return ma(s)?s:new ne(s)}}),_A=Jt(function(e,r){return yt(r,function(s){s=Bt(s),Qt(e,s,da(e[s],e))}),e});function yA(e){var r=e==null?0:e.length,s=K();return e=r?Ce(e,function(a){if(typeof a[1]!="function")throw new vt(u);return[s(a[0]),a[1]]}):[],le(function(a){for(var l=-1;++lR)return[];var s=Ie,a=je(e,Ie);r=K(r),e-=Ie;for(var l=Ou(a,r);++s0||r<0)?new pe(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),r!==t&&(r=ue(r),s=r<0?s.dropRight(-r):s.take(r-e)),s)},pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},pe.prototype.toArray=function(){return this.take(Ie)},qt(pe.prototype,function(e,r){var s=/^(?:filter|find|map|reject)|While$/.test(r),a=/^(?:head|last)$/.test(r),l=p[a?"take"+(r=="last"?"Right":""):r],d=a||/^find/.test(r);!l||(p.prototype[r]=function(){var m=this.__wrapped__,y=a?[1]:arguments,w=m instanceof pe,T=y[0],O=w||re(m),k=function(he){var de=l.apply(p,fn([he],y));return a&&M?de[0]:de};O&&s&&typeof T=="function"&&T.length!=1&&(w=O=!1);var M=this.__chain__,W=!!this.__actions__.length,Q=d&&!M,ce=w&&!W;if(!d&&O){m=ce?m:new pe(this);var V=e.apply(m,y);return V.__actions__.push({func:ms,args:[k],thisArg:t}),new bt(V,M)}return Q&&ce?e.apply(this,y):(V=this.thru(k),Q?a?V.value()[0]:V.value():V)})}),yt(["pop","push","shift","sort","splice","unshift"],function(e){var r=Wi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var l=arguments;if(a&&!this.__chain__){var d=this.value();return r.apply(re(d)?d:[],l)}return this[s](function(m){return r.apply(re(m)?m:[],l)})}}),qt(pe.prototype,function(e,r){var s=p[r];if(s){var a=s.name+"";xe.call(nr,a)||(nr[a]=[]),nr[a].push({name:r,func:s})}}),nr[cs(t,D).name]=[{name:"wrapper",func:t}],pe.prototype.clone=gw,pe.prototype.reverse=mw,pe.prototype.value=_w,p.prototype.at=KS,p.prototype.chain=XS,p.prototype.commit=zS,p.prototype.next=YS,p.prototype.plant=QS,p.prototype.reverse=VS,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=JS,p.prototype.first=p.prototype.head,ti&&(p.prototype[ti]=ZS),p},pn=zb();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qe._=pn,define(function(){return pn})):Pn?((Pn.exports=pn)._=pn,xu._=pn):qe._=pn}).call(xr)});var S_=L((PD,x_)=>{"use strict";x_.exports=t=>function(){let n=arguments.length,i=new Array(n);for(let o=0;o{i.push((c,f)=>{c?u(c):o(f)}),t.apply(null,i)})}});var it=L((TD,E_)=>{"use strict";var io=H("fs"),HT=S_(),BT=t=>[typeof io[t]=="function",!t.match(/Sync$/),!t.match(/^[A-Z]/),!t.match(/^create/),!t.match(/^(un)?watch/)].every(Boolean),WT=t=>{let n=io[t];return HT(n)},UT=()=>{let t={};return Object.keys(io).forEach(n=>{BT(n)?n==="exists"?t.exists=()=>{throw new Error("fs.exists() is deprecated")}:t[n]=WT(n):t[n]=io[n]}),t};E_.exports=UT()});var Ge=L((OD,P_)=>{"use strict";var GT=t=>{let n=i=>["a","e","i","o","u"].indexOf(i[0])!==-1?`an ${i}`:`a ${i}`;return t.map(n).join(" or ")},A_=t=>/array of /.test(t),C_=t=>t.split(" of ")[1],R_=t=>A_(t)?R_(C_(t)):["string","number","boolean","array","object","buffer","null","undefined","function"].some(n=>n===t),Ci=t=>t===null?"null":Array.isArray(t)?"array":Buffer.isBuffer(t)?"buffer":typeof t,jT=(t,n,i)=>i.indexOf(t)===n,KT=t=>{let n=Ci(t),i;return n==="array"&&(i=t.map(o=>Ci(o)).filter(jT),n+=` of ${i.join(", ")}`),n},XT=(t,n)=>{let i=C_(n);return Ci(t)!=="array"?!1:t.every(o=>Ci(o)===i)},Pl=(t,n,i,o)=>{if(!o.some(c=>{if(!R_(c))throw new Error(`Unknown type "${c}"`);return A_(c)?XT(i,c):c===Ci(i)}))throw new Error(`Argument "${n}" passed to ${t} must be ${GT(o)}. Received ${KT(i)}`)},zT=(t,n,i,o)=>{i!==void 0&&(Pl(t,n,i,["object"]),Object.keys(i).forEach(u=>{let c=`${n}.${u}`;if(o[u]!==void 0)Pl(t,c,i[u],o[u]);else throw new Error(`Unknown argument "${c}" passed to ${t}`)}))};P_.exports={argument:Pl,options:zT}});var so=L(T_=>{"use strict";T_.normalizeFileMode=t=>{let n;return typeof t=="number"?n=t.toString(8):n=t,n.substring(n.length-3)}});var uo=L(oo=>{"use strict";var O_=it(),YT=Ge(),ZT=(t,n)=>{let i=`${t}([path])`;YT.argument(i,"path",n,["string","undefined"])},QT=t=>{O_.rmSync(t,{recursive:!0,force:!0,maxRetries:3})},VT=t=>O_.rm(t,{recursive:!0,force:!0,maxRetries:3});oo.validateInput=ZT;oo.sync=QT;oo.async=VT});var Gn=L(Or=>{"use strict";var ao=H("path"),Kt=it(),Tl=so(),I_=Ge(),L_=uo(),JT=(t,n,i)=>{let o=`${t}(path, [criteria])`;I_.argument(o,"path",n,["string"]),I_.options(o,"criteria",i,{empty:["boolean"],mode:["string","number"]})},k_=t=>{let n=t||{};return typeof n.empty!="boolean"&&(n.empty=!1),n.mode!==void 0&&(n.mode=Tl.normalizeFileMode(n.mode)),n},D_=t=>new Error(`Path ${t} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),eO=t=>{let n;try{n=Kt.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isDirectory())throw D_(t);return n},Ol=(t,n)=>{let i=n||{};try{Kt.mkdirSync(t,i.mode)}catch(o){if(o.code==="ENOENT")Ol(ao.dirname(t),i),Kt.mkdirSync(t,i.mode);else if(o.code!=="EEXIST")throw o}},tO=(t,n,i)=>{let o=()=>{let c=Tl.normalizeFileMode(n.mode);i.mode!==void 0&&i.mode!==c&&Kt.chmodSync(t,i.mode)},u=()=>{i.empty&&Kt.readdirSync(t).forEach(f=>{L_.sync(ao.resolve(t,f))})};o(),u()},nO=(t,n)=>{let i=k_(n),o=eO(t);o?tO(t,o,i):Ol(t,i)},rO=t=>new Promise((n,i)=>{Kt.stat(t).then(o=>{o.isDirectory()?n(o):i(D_(t))}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})}),iO=t=>new Promise((n,i)=>{Kt.readdir(t).then(o=>{let u=c=>{if(c===o.length)n();else{let f=ao.resolve(t,o[c]);L_.async(f).then(()=>{u(c+1)})}};u(0)}).catch(i)}),sO=(t,n,i)=>new Promise((o,u)=>{let c=()=>{let h=Tl.normalizeFileMode(n.mode);return i.mode!==void 0&&i.mode!==h?Kt.chmod(t,i.mode):Promise.resolve()},f=()=>i.empty?iO(t):Promise.resolve();c().then(f).then(o,u)}),Il=(t,n)=>{let i=n||{};return new Promise((o,u)=>{Kt.mkdir(t,i.mode).then(o).catch(c=>{c.code==="ENOENT"?Il(ao.dirname(t),i).then(()=>Kt.mkdir(t,i.mode)).then(o).catch(f=>{f.code==="EEXIST"?o():u(f)}):c.code==="EEXIST"?o():u(c)})})},oO=(t,n)=>new Promise((i,o)=>{let u=k_(n);rO(t).then(c=>c!==void 0?sO(t,c,u):Il(t,u)).then(i,o)});Or.validateInput=JT;Or.sync=nO;Or.createSync=Ol;Or.async=oO;Or.createAsync=Il});var Ri=L(lo=>{"use strict";var N_=H("path"),Ir=it(),Ll=Ge(),$_=Gn(),uO=(t,n,i,o)=>{let u=`${t}(path, data, [options])`;Ll.argument(u,"path",n,["string"]),Ll.argument(u,"data",i,["string","buffer","object","array"]),Ll.options(u,"options",o,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},co=".__new__",M_=(t,n)=>{let i=n;return typeof i!="number"&&(i=2),typeof t=="object"&&!Buffer.isBuffer(t)&&t!==null?JSON.stringify(t,null,i):t},F_=(t,n,i)=>{try{Ir.writeFileSync(t,n,i)}catch(o){if(o.code==="ENOENT")$_.createSync(N_.dirname(t)),Ir.writeFileSync(t,n,i);else throw o}},aO=(t,n,i)=>{F_(t+co,n,i),Ir.renameSync(t+co,t)},cO=(t,n,i)=>{let o=i||{},u=M_(n,o.jsonIndent),c=F_;o.atomic&&(c=aO),c(t,u,{mode:o.mode})},q_=(t,n,i)=>new Promise((o,u)=>{Ir.writeFile(t,n,i).then(o).catch(c=>{c.code==="ENOENT"?$_.createAsync(N_.dirname(t)).then(()=>Ir.writeFile(t,n,i)).then(o,u):u(c)})}),lO=(t,n,i)=>new Promise((o,u)=>{q_(t+co,n,i).then(()=>Ir.rename(t+co,t)).then(o,u)}),fO=(t,n,i)=>{let o=i||{},u=M_(n,o.jsonIndent),c=q_;return o.atomic&&(c=lO),c(t,u,{mode:o.mode})};lo.validateInput=uO;lo.sync=cO;lo.async=fO});var W_=L(fo=>{"use strict";var H_=it(),B_=Ri(),kl=Ge(),hO=(t,n,i,o)=>{let u=`${t}(path, data, [options])`;kl.argument(u,"path",n,["string"]),kl.argument(u,"data",i,["string","buffer"]),kl.options(u,"options",o,{mode:["string","number"]})},pO=(t,n,i)=>{try{H_.appendFileSync(t,n,i)}catch(o){if(o.code==="ENOENT")B_.sync(t,n,i);else throw o}},dO=(t,n,i)=>new Promise((o,u)=>{H_.appendFile(t,n,i).then(o).catch(c=>{c.code==="ENOENT"?B_.async(t,n,i).then(o,u):u(c)})});fo.validateInput=hO;fo.sync=pO;fo.async=dO});var K_=L(go=>{"use strict";var ho=it(),Dl=so(),U_=Ge(),po=Ri(),gO=(t,n,i)=>{let o=`${t}(path, [criteria])`;U_.argument(o,"path",n,["string"]),U_.options(o,"criteria",i,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},G_=t=>{let n=t||{};return n.mode!==void 0&&(n.mode=Dl.normalizeFileMode(n.mode)),n},j_=t=>new Error(`Path ${t} exists but is not a file. Halting jetpack.file() call for safety reasons.`),mO=t=>{let n;try{n=ho.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isFile())throw j_(t);return n},_O=(t,n,i)=>{let o=Dl.normalizeFileMode(n.mode),u=()=>i.content!==void 0?(po.sync(t,i.content,{mode:o,jsonIndent:i.jsonIndent}),!0):!1,c=()=>{i.mode!==void 0&&i.mode!==o&&ho.chmodSync(t,i.mode)};u()||c()},yO=(t,n)=>{let i="";n.content!==void 0&&(i=n.content),po.sync(t,i,{mode:n.mode,jsonIndent:n.jsonIndent})},vO=(t,n)=>{let i=G_(n),o=mO(t);o!==void 0?_O(t,o,i):yO(t,i)},bO=t=>new Promise((n,i)=>{ho.stat(t).then(o=>{o.isFile()?n(o):i(j_(t))}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})}),wO=(t,n,i)=>{let o=Dl.normalizeFileMode(n.mode),u=()=>new Promise((f,h)=>{i.content!==void 0?po.async(t,i.content,{mode:o,jsonIndent:i.jsonIndent}).then(()=>{f(!0)}).catch(h):f(!1)}),c=()=>{if(i.mode!==void 0&&i.mode!==o)return ho.chmod(t,i.mode)};return u().then(f=>{if(!f)return c()})},xO=(t,n)=>{let i="";return n.content!==void 0&&(i=n.content),po.async(t,i,{mode:n.mode,jsonIndent:n.jsonIndent})},SO=(t,n)=>new Promise((i,o)=>{let u=G_(n);bO(t).then(c=>c!==void 0?wO(t,c,u):xO(t,u)).then(i,o)});go.validateInput=gO;go.sync=vO;go.async=SO});var kr=L(Lr=>{"use strict";var z_=H("crypto"),EO=H("path"),Cn=it(),X_=Ge(),Nl=["md5","sha1","sha256","sha512"],$l=["report","follow"],AO=(t,n,i)=>{let o=`${t}(path, [options])`;if(X_.argument(o,"path",n,["string"]),X_.options(o,"options",i,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Nl.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${Nl.join(", ")}`);if(i&&i.symlinks!==void 0&&$l.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${$l.join(", ")}`)},Y_=(t,n,i)=>{let o={};return o.name=EO.basename(t),i.isFile()?(o.type="file",o.size=i.size):i.isDirectory()?o.type="dir":i.isSymbolicLink()?o.type="symlink":o.type="other",n.mode&&(o.mode=i.mode),n.times&&(o.accessTime=i.atime,o.modifyTime=i.mtime,o.changeTime=i.ctime,o.birthTime=i.birthtime),n.absolutePath&&(o.absolutePath=t),o},CO=(t,n)=>{let i=z_.createHash(n),o=Cn.readFileSync(t);return i.update(o),i.digest("hex")},RO=(t,n,i)=>{n.type==="file"&&i.checksum?n[i.checksum]=CO(t,i.checksum):n.type==="symlink"&&(n.pointsAt=Cn.readlinkSync(t))},PO=(t,n)=>{let i=Cn.lstatSync,o,u=n||{};u.symlinks==="follow"&&(i=Cn.statSync);try{o=i(t)}catch(f){if(f.code==="ENOENT")return;throw f}let c=Y_(t,u,o);return RO(t,c,u),c},TO=(t,n)=>new Promise((i,o)=>{let u=z_.createHash(n),c=Cn.createReadStream(t);c.on("data",f=>{u.update(f)}),c.on("end",()=>{i(u.digest("hex"))}),c.on("error",o)}),OO=(t,n,i)=>n.type==="file"&&i.checksum?TO(t,i.checksum).then(o=>(n[i.checksum]=o,n)):n.type==="symlink"?Cn.readlink(t).then(o=>(n.pointsAt=o,n)):Promise.resolve(n),IO=(t,n)=>new Promise((i,o)=>{let u=Cn.lstat,c=n||{};c.symlinks==="follow"&&(u=Cn.stat),u(t).then(f=>{let h=Y_(t,c,f);OO(t,h,c).then(i,o)}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Lr.supportedChecksumAlgorithms=Nl;Lr.symlinkOptions=$l;Lr.validateInput=AO;Lr.sync=PO;Lr.async=IO});var _o=L(mo=>{"use strict";var Z_=it(),LO=Ge(),kO=(t,n)=>{let i=`${t}(path)`;LO.argument(i,"path",n,["string","undefined"])},DO=t=>{try{return Z_.readdirSync(t)}catch(n){if(n.code==="ENOENT")return;throw n}},NO=t=>new Promise((n,i)=>{Z_.readdir(t).then(o=>{n(o)}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})});mo.validateInput=kO;mo.sync=DO;mo.async=NO});var wo=L(Ml=>{"use strict";var yo=H("fs"),vo=H("path"),Pi=kr(),qD=_o(),bo=t=>t.isDirectory()?"dir":t.isFile()?"file":t.isSymbolicLink()?"symlink":"other",$O=(t,n,i)=>{n.maxLevelsDeep===void 0&&(n.maxLevelsDeep=1/0);let o=n.inspectOptions!==void 0;n.symlinks&&(n.inspectOptions===void 0?n.inspectOptions={symlinks:n.symlinks}:n.inspectOptions.symlinks=n.symlinks);let u=(f,h)=>{yo.readdirSync(f,{withFileTypes:!0}).forEach(g=>{let _=typeof g=="string",v;_?v=vo.join(f,g):v=vo.join(f,g.name);let S;if(o)S=Pi.sync(v,n.inspectOptions);else if(_){let x=Pi.sync(v,n.inspectOptions);S={name:x.name,type:x.type}}else{let x=bo(g);if(x==="symlink"&&n.symlinks==="follow"){let F=yo.statSync(v);S={name:g.name,type:bo(F)}}else S={name:g.name,type:x}}S!==void 0&&(i(v,S),S.type==="dir"&&h{n.maxLevelsDeep===void 0&&(n.maxLevelsDeep=1/0);let u=n.inspectOptions!==void 0;n.symlinks&&(n.inspectOptions===void 0?n.inspectOptions={symlinks:n.symlinks}:n.inspectOptions.symlinks=n.symlinks);let c=[],f=0,h=()=>{if(c.length===0&&f===0)o();else if(c.length>0&&f{c.push(S),h()},_=()=>{f-=1,h()},v=(S,x)=>{let F=(A,D)=>{D.type==="dir"&&x{yo.readdir(S,{withFileTypes:!0},(A,D)=>{A?o(A):(D.forEach(te=>{let j=typeof te=="string",ae;if(j?ae=vo.join(S,te):ae=vo.join(S,te.name),u||j)g(()=>{Pi.async(ae,n.inspectOptions).then(X=>{X!==void 0&&(u?i(ae,X):i(ae,{name:X.name,type:X.type}),F(ae,X)),_()}).catch(X=>{o(X)})});else{let X=bo(te);if(X==="symlink"&&n.symlinks==="follow")g(()=>{yo.stat(ae,(z,N)=>{if(z)o(z);else{let J={name:te.name,type:bo(N)};i(ae,J),F(ae,J),_()}})});else{let z={name:te.name,type:X};i(ae,z),F(ae,z)}}}),_())})})};Pi.async(t,n.inspectOptions).then(S=>{S?(u?i(t,S):i(t,{name:S.name,type:S.type}),S.type==="dir"?v(t,1):o()):(i(t,void 0),o())}).catch(S=>{o(S)})};Ml.sync=$O;Ml.async=FO});var V_=L((BD,Q_)=>{var qO=typeof process=="object"&&process&&process.platform==="win32";Q_.exports=qO?{sep:"\\"}:{sep:"/"}});var ry=L((WD,ny)=>{"use strict";ny.exports=ey;function ey(t,n,i){t instanceof RegExp&&(t=J_(t,i)),n instanceof RegExp&&(n=J_(n,i));var o=ty(t,n,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+n.length)}}function J_(t,n){var i=n.match(t);return i?i[0]:null}ey.range=ty;function ty(t,n,i){var o,u,c,f,h,g=i.indexOf(t),_=i.indexOf(n,g+1),v=g;if(g>=0&&_>0){if(t===n)return[g,_];for(o=[],c=i.length;v>=0&&!h;)v==g?(o.push(v),g=i.indexOf(t,v+1)):o.length==1?h=[o.pop(),_]:(u=o.pop(),u=0?g:_;o.length&&(h=[c,f])}return h}});var fy=L((UD,ly)=>{var iy=ry();ly.exports=WO;var sy="\0SLASH"+Math.random()+"\0",oy="\0OPEN"+Math.random()+"\0",ql="\0CLOSE"+Math.random()+"\0",uy="\0COMMA"+Math.random()+"\0",ay="\0PERIOD"+Math.random()+"\0";function Fl(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function HO(t){return t.split("\\\\").join(sy).split("\\{").join(oy).split("\\}").join(ql).split("\\,").join(uy).split("\\.").join(ay)}function BO(t){return t.split(sy).join("\\").split(oy).join("{").split(ql).join("}").split(uy).join(",").split(ay).join(".")}function cy(t){if(!t)return[""];var n=[],i=iy("{","}",t);if(!i)return t.split(",");var o=i.pre,u=i.body,c=i.post,f=o.split(",");f[f.length-1]+="{"+u+"}";var h=cy(c);return c.length&&(f[f.length-1]+=h.shift(),f.push.apply(f,h)),n.push.apply(n,f),n}function WO(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ti(HO(t),!0).map(BO)):[]}function UO(t){return"{"+t+"}"}function GO(t){return/^-?0\d/.test(t)}function jO(t,n){return t<=n}function KO(t,n){return t>=n}function Ti(t,n){var i=[],o=iy("{","}",t);if(!o)return[t];var u=o.pre,c=o.post.length?Ti(o.post,!1):[""];if(/\$$/.test(o.pre))for(var f=0;f=0;if(!v&&!S)return o.post.match(/,.*\}/)?(t=o.pre+"{"+o.body+ql+o.post,Ti(t)):[t];var x;if(v)x=o.body.split(/\.\./);else if(x=cy(o.body),x.length===1&&(x=Ti(x[0],!1).map(UO),x.length===1))return c.map(function(Pe){return o.pre+x[0]+Pe});var F;if(v){var A=Fl(x[0]),D=Fl(x[1]),te=Math.max(x[0].length,x[1].length),j=x.length==3?Math.abs(Fl(x[2])):1,ae=jO,X=D0){var U=new Array(Y+1).join("0");N<0?J="-"+U+J.slice(1):J=U+J}}F.push(J)}}else{F=[];for(var oe=0;oe{var dt=Ul.exports=(t,n,i={})=>(So(n),!i.nocomment&&n.charAt(0)==="#"?!1:new Dr(n,i).match(t));Ul.exports=dt;var Bl=V_();dt.sep=Bl.sep;var Nt=Symbol("globstar **");dt.GLOBSTAR=Nt;var XO=fy(),hy={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Wl="[^/]",Hl=Wl+"*?",zO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",YO="(?:(?!(?:\\/|^)\\.).)*?",gy=t=>t.split("").reduce((n,i)=>(n[i]=!0,n),{}),py=gy("().*{}+?[]^$\\!"),ZO=gy("[.("),dy=/\/+/;dt.filter=(t,n={})=>(i,o,u)=>dt(i,t,n);var Rn=(t,n={})=>{let i={};return Object.keys(t).forEach(o=>i[o]=t[o]),Object.keys(n).forEach(o=>i[o]=n[o]),i};dt.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return dt;let n=dt,i=(o,u,c)=>n(o,u,Rn(t,c));return i.Minimatch=class extends n.Minimatch{constructor(u,c){super(u,Rn(t,c))}},i.Minimatch.defaults=o=>n.defaults(Rn(t,o)).Minimatch,i.filter=(o,u)=>n.filter(o,Rn(t,u)),i.defaults=o=>n.defaults(Rn(t,o)),i.makeRe=(o,u)=>n.makeRe(o,Rn(t,u)),i.braceExpand=(o,u)=>n.braceExpand(o,Rn(t,u)),i.match=(o,u,c)=>n.match(o,u,Rn(t,c)),i};dt.braceExpand=(t,n)=>my(t,n);var my=(t,n={})=>(So(t),n.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:XO(t)),QO=1024*64,So=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>QO)throw new TypeError("pattern is too long")},xo=Symbol("subparse");dt.makeRe=(t,n)=>new Dr(t,n||{}).makeRe();dt.match=(t,n,i={})=>{let o=new Dr(n,i);return t=t.filter(u=>o.match(u)),o.options.nonull&&!t.length&&t.push(n),t};var VO=t=>t.replace(/\\(.)/g,"$1"),JO=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Dr=class{constructor(n,i){So(n),i||(i={}),this.options=i,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!i.partial,this.make()}debug(){}make(){let n=this.pattern,i=this.options;if(!i.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let o=this.globSet=this.braceExpand();i.debug&&(this.debug=(...u)=>console.error(...u)),this.debug(this.pattern,o),o=this.globParts=o.map(u=>u.split(dy)),this.debug(this.pattern,o),o=o.map((u,c,f)=>u.map(this.parse,this)),this.debug(this.pattern,o),o=o.filter(u=>u.indexOf(!1)===-1),this.debug(this.pattern,o),this.set=o}parseNegate(){if(this.options.nonegate)return;let n=this.pattern,i=!1,o=0;for(let u=0;u>> no match, partial?`,n,S,i,x),S===h))}var A;if(typeof _=="string"?(A=v===_,this.debug("string match",_,v,A)):(A=v.match(_),this.debug("pattern match",_,v,A)),!A)return!1}if(c===h&&f===g)return!0;if(c===h)return o;if(f===g)return c===h-1&&n[c]==="";throw new Error("wtf?")}braceExpand(){return my(this.pattern,this.options)}parse(n,i){So(n);let o=this.options;if(n==="**")if(o.noglobstar)n="*";else return Nt;if(n==="")return"";let u="",c=!!o.nocase,f=!1,h=[],g=[],_,v=!1,S=-1,x=-1,F,A,D,te=n.charAt(0)==="."?"":o.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=()=>{if(_){switch(_){case"*":u+=Hl,c=!0;break;case"?":u+=Wl,c=!0;break;default:u+="\\"+_;break}this.debug("clearStateChar %j %j",_,u),_=!1}};for(let z=0,N;z(U||(U="\\"),Y+Y+U+"|")),this.debug(`tail=%j + %s`,z,z,A,u);let N=A.type==="*"?Hl:A.type==="?"?Wl:"\\"+A.type;c=!0,u=u.slice(0,A.reStart)+N+"\\("+z}j(),f&&(u+="\\\\");let ae=ZO[u.charAt(0)];for(let z=g.length-1;z>-1;z--){let N=g[z],J=u.slice(0,N.reStart),Y=u.slice(N.reStart,N.reEnd-8),U=u.slice(N.reEnd),oe=u.slice(N.reEnd-8,N.reEnd)+U,Pe=J.split("(").length-1,I=U;for(let me=0;me(f=f.map(h=>typeof h=="string"?JO(h):h===Nt?Nt:h._src).reduce((h,g)=>(h[h.length-1]===Nt&&g===Nt||h.push(g),h),[]),f.forEach((h,g)=>{h!==Nt||f[g-1]===Nt||(g===0?f.length>1?f[g+1]="(?:\\/|"+o+"\\/)?"+f[g+1]:f[g]=o:g===f.length-1?f[g-1]+="(?:\\/|"+o+")?":(f[g-1]+="(?:\\/|\\/"+o+"\\/)"+f[g+1],f[g+1]=Nt))}),f.filter(h=>h!==Nt).join("/"))).join("|");c="^(?:"+c+")$",this.negate&&(c="^(?!"+c+").*$");try{this.regexp=new RegExp(c,u)}catch{this.regexp=!1}return this.regexp}match(n,i=this.partial){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&i)return!0;let o=this.options;Bl.sep!=="/"&&(n=n.split(Bl.sep).join("/")),n=n.split(dy),this.debug(this.pattern,"split",n);let u=this.set;this.debug(this.pattern,"set",u);let c;for(let f=n.length-1;f>=0&&(c=n[f],!c);f--);for(let f=0;f{"use strict";var eI=_y().Minimatch,tI=(t,n)=>{let i=n.indexOf("/")!==-1,o=/^!?\//.test(n),u=/^!/.test(n),c;if(!o&&i){let f=n.replace(/^!/,"").replace(/^\.\//,"");return/\/$/.test(t)?c="":c="/",u?`!${t}${c}${f}`:`${t}${c}${f}`}return n};yy.create=(t,n,i)=>{let o;typeof n=="string"?o=[n]:o=n;let u=o.map(f=>tI(t,f)).map(f=>new eI(f,{matchBase:!0,nocomment:!0,nocase:i||!1,dot:!0,windowsPathsNoEscape:!0}));return f=>{let h="matching",g=!1,_,v;for(v=0;v{"use strict";var nI=H("path"),by=wo(),wy=kr(),xy=Gl(),vy=Ge(),rI=(t,n,i)=>{let o=`${t}([path], options)`;vy.argument(o,"path",n,["string"]),vy.options(o,"options",i,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},Sy=t=>{let n=t||{};return n.matching===void 0&&(n.matching="*"),n.files===void 0&&(n.files=!0),n.ignoreCase===void 0&&(n.ignoreCase=!1),n.directories===void 0&&(n.directories=!1),n.recursive===void 0&&(n.recursive=!0),n},Ey=(t,n)=>t.map(i=>nI.relative(n,i)),Ay=t=>{let n=new Error(`Path you want to find stuff in doesn't exist ${t}`);return n.code="ENOENT",n},Cy=t=>{let n=new Error(`Path you want to find stuff in must be a directory ${t}`);return n.code="ENOTDIR",n},iI=(t,n)=>{let i=[],o=xy.create(t,n.matching,n.ignoreCase),u=1/0;return n.recursive===!1&&(u=1),by.sync(t,{maxLevelsDeep:u,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(c,f)=>{f&&c!==t&&o(c)&&(f.type==="file"&&n.files===!0||f.type==="dir"&&n.directories===!0)&&(n.filter?n.filter(f)&&i.push(c):i.push(c))}),i.sort(),Ey(i,n.cwd)},sI=(t,n)=>{let i=wy.sync(t,{symlinks:"follow"});if(i===void 0)throw Ay(t);if(i.type!=="dir")throw Cy(t);return iI(t,Sy(n))},oI=(t,n)=>new Promise((i,o)=>{let u=[],c=xy.create(t,n.matching,n.ignoreCase),f=1/0;n.recursive===!1&&(f=1);let h=0,g=!1,_=()=>{g&&h===0&&(u.sort(),i(Ey(u,n.cwd)))};by.async(t,{maxLevelsDeep:f,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(v,S)=>{if(S&&v!==t&&c(v)&&(S.type==="file"&&n.files===!0||S.type==="dir"&&n.directories===!0))if(n.filter){let F=n.filter(S);typeof F.then=="function"?(h+=1,F.then(D=>{D&&u.push(v),h-=1,_()}).catch(D=>{o(D)})):F&&u.push(v)}else u.push(v)},v=>{v?o(v):(g=!0,_())})}),uI=(t,n)=>wy.async(t,{symlinks:"follow"}).then(i=>{if(i===void 0)throw Ay(t);if(i.type!=="dir")throw Cy(t);return oI(t,Sy(n))});Eo.validateInput=rI;Eo.sync=sI;Eo.async=uI});var Oy=L(Ro=>{"use strict";var aI=H("crypto"),Co=H("path"),Ao=kr(),zD=_o(),Py=Ge(),Ty=wo(),cI=(t,n,i)=>{let o=`${t}(path, [options])`;if(Py.argument(o,"path",n,["string"]),Py.options(o,"options",i,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Ao.supportedChecksumAlgorithms.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${Ao.supportedChecksumAlgorithms.join(", ")}`);if(i&&i.symlinks!==void 0&&Ao.symlinkOptions.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${Ao.symlinkOptions.join(", ")}`)},lI=(t,n)=>t===void 0?".":t.relativePath+"/"+n.name,fI=(t,n)=>{let i=aI.createHash(n);return t.forEach(o=>{i.update(o.name+o[n])}),i.digest("hex")},jl=(t,n,i)=>{i.relativePath&&(n.relativePath=lI(t,n)),n.type==="dir"&&(n.children.forEach(o=>{jl(n,o,i)}),n.size=0,n.children.sort((o,u)=>o.type==="dir"&&u.type==="file"?-1:o.type==="file"&&u.type==="dir"?1:o.name.localeCompare(u.name)),n.children.forEach(o=>{n.size+=o.size||0}),i.checksum&&(n[i.checksum]=fI(n.children,i.checksum)))},Kl=(t,n,i)=>{let o=n[0];if(n.length>1){let u=t.children.find(c=>c.name===o);return Kl(u,n.slice(1),i)}return t},hI=(t,n)=>{let i=n||{},o;return Ty.sync(t,{inspectOptions:i},(u,c)=>{if(c){c.type==="dir"&&(c.children=[]);let f=Co.relative(t,u);f===""?o=c:Kl(o,f.split(Co.sep),c).children.push(c)}}),o&&jl(void 0,o,i),o},pI=(t,n)=>{let i=n||{},o;return new Promise((u,c)=>{Ty.async(t,{inspectOptions:i},(f,h)=>{if(h){h.type==="dir"&&(h.children=[]);let g=Co.relative(t,f);g===""?o=h:Kl(o,g.split(Co.sep),h).children.push(h)}},f=>{f?c(f):(o&&jl(void 0,o,i),u(o))})})};Ro.validateInput=cI;Ro.sync=hI;Ro.async=pI});var To=L(Po=>{"use strict";var Iy=it(),dI=Ge(),gI=(t,n)=>{let i=`${t}(path)`;dI.argument(i,"path",n,["string"])},mI=t=>{try{let n=Iy.statSync(t);return n.isDirectory()?"dir":n.isFile()?"file":"other"}catch(n){if(n.code!=="ENOENT")throw n}return!1},_I=t=>new Promise((n,i)=>{Iy.stat(t).then(o=>{o.isDirectory()?n("dir"):o.isFile()?n("file"):n("other")}).catch(o=>{o.code==="ENOENT"?n(!1):i(o)})});Po.validateInput=gI;Po.sync=mI;Po.async=_I});var Zl=L(ko=>{"use strict";var Oi=H("path"),gt=it(),Yl=Gn(),Oo=To(),Ly=kr(),yI=Ri(),vI=Gl(),ky=so(),Dy=wo(),Xl=Ge(),bI=(t,n,i,o)=>{let u=`${t}(from, to, [options])`;Xl.argument(u,"from",n,["string"]),Xl.argument(u,"to",i,["string"]),Xl.options(u,"options",o,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},Ny=(t,n)=>{let i=t||{},o={};return i.ignoreCase===void 0&&(i.ignoreCase=!1),o.overwrite=i.overwrite,i.matching?o.allowedToCopy=vI.create(n,i.matching,i.ignoreCase):o.allowedToCopy=()=>!0,o},$y=t=>{let n=new Error(`Path to copy doesn't exist ${t}`);return n.code="ENOENT",n},Io=t=>{let n=new Error(`Destination path already exists ${t}`);return n.code="EEXIST",n},Lo={mode:!0,symlinks:"report",times:!0,absolutePath:!0},My=t=>typeof t.opts.overwrite!="function"&&t.opts.overwrite!==!0,wI=(t,n,i)=>{if(!Oo.sync(t))throw $y(t);if(Oo.sync(n)&&!i.overwrite)throw Io(n)},xI=t=>{if(typeof t.opts.overwrite=="function"){let n=Ly.sync(t.destPath,Lo);return t.opts.overwrite(t.srcInspectData,n)}return t.opts.overwrite===!0},SI=(t,n,i,o)=>{let u=gt.readFileSync(t);try{gt.writeFileSync(n,u,{mode:i,flag:"wx"})}catch(c){if(c.code==="ENOENT")yI.sync(n,u,{mode:i});else if(c.code==="EEXIST"){if(xI(o))gt.writeFileSync(n,u,{mode:i});else if(My(o))throw Io(o.destPath)}else throw c}},EI=(t,n)=>{let i=gt.readlinkSync(t);try{gt.symlinkSync(i,n)}catch(o){if(o.code==="EEXIST")gt.unlinkSync(n),gt.symlinkSync(i,n);else throw o}},AI=(t,n,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:n,opts:o},c=ky.normalizeFileMode(n.mode);n.type==="dir"?Yl.createSync(i,{mode:c}):n.type==="file"?SI(t,i,c,u):n.type==="symlink"&&EI(t,i)},CI=(t,n,i)=>{let o=Ny(i,t);wI(t,n,o),Dy.sync(t,{inspectOptions:Lo},(u,c)=>{let f=Oi.relative(t,u),h=Oi.resolve(n,f);o.allowedToCopy(u,h,c)&&AI(u,c,h,o)})},RI=(t,n,i)=>Oo.async(t).then(o=>{if(o)return Oo.async(n);throw $y(t)}).then(o=>{if(o&&!i.overwrite)throw Io(n)}),PI=t=>new Promise((n,i)=>{typeof t.opts.overwrite=="function"?Ly.async(t.destPath,Lo).then(o=>{n(t.opts.overwrite(t.srcInspectData,o))}).catch(i):n(t.opts.overwrite===!0)}),zl=(t,n,i,o,u)=>new Promise((c,f)=>{let h=u||{},g="wx";h.overwrite&&(g="w");let _=gt.createReadStream(t),v=gt.createWriteStream(n,{mode:i,flags:g});_.on("error",f),v.on("error",S=>{_.resume(),S.code==="ENOENT"?Yl.createAsync(Oi.dirname(n)).then(()=>{zl(t,n,i,o).then(c,f)}).catch(f):S.code==="EEXIST"?PI(o).then(x=>{x?zl(t,n,i,o,{overwrite:!0}).then(c,f):My(o)?f(Io(n)):c()}).catch(f):f(S)}),v.on("finish",c),_.pipe(v)}),TI=(t,n)=>gt.readlink(t).then(i=>new Promise((o,u)=>{gt.symlink(i,n).then(o).catch(c=>{c.code==="EEXIST"?gt.unlink(n).then(()=>gt.symlink(i,n)).then(o,u):u(c)})})),OI=(t,n,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:n,opts:o},c=ky.normalizeFileMode(n.mode);return n.type==="dir"?Yl.createAsync(i,{mode:c}):n.type==="file"?zl(t,i,c,u):n.type==="symlink"?TI(t,i):Promise.resolve()},II=(t,n,i)=>new Promise((o,u)=>{let c=Ny(i,t);RI(t,n,c).then(()=>{let f=!1,h=0;Dy.async(t,{inspectOptions:Lo},(g,_)=>{if(_){let v=Oi.relative(t,g),S=Oi.resolve(n,v);c.allowedToCopy(g,_,S)&&(h+=1,OI(g,_,S,c).then(()=>{h-=1,f&&h===0&&o()}).catch(u))}},g=>{g?u(g):(f=!0,f&&h===0&&o())})}).catch(u)});ko.validateInput=bI;ko.sync=CI;ko.async=II});var Vl=L(No=>{"use strict";var Fy=H("path"),Nr=it(),Ql=Ge(),qy=Zl(),Hy=Gn(),Ii=To(),Do=uo(),LI=(t,n,i,o)=>{let u=`${t}(from, to, [options])`;Ql.argument(u,"from",n,["string"]),Ql.argument(u,"to",i,["string"]),Ql.options(u,"options",o,{overwrite:["boolean"]})},By=t=>t||{},Wy=t=>{let n=new Error(`Destination path already exists ${t}`);return n.code="EEXIST",n},Uy=t=>{let n=new Error(`Path to move doesn't exist ${t}`);return n.code="ENOENT",n},kI=(t,n,i)=>{let o=By(i);if(Ii.sync(n)!==!1&&o.overwrite!==!0)throw Wy(n);try{Nr.renameSync(t,n)}catch(u){if(u.code==="EISDIR"||u.code==="EPERM")Do.sync(n),Nr.renameSync(t,n);else if(u.code==="EXDEV")qy.sync(t,n,{overwrite:!0}),Do.sync(t);else if(u.code==="ENOENT"){if(!Ii.sync(t))throw Uy(t);Hy.createSync(Fy.dirname(n)),Nr.renameSync(t,n)}else throw u}},DI=t=>new Promise((n,i)=>{let o=Fy.dirname(t);Ii.async(o).then(u=>{u?i():Hy.createAsync(o).then(n,i)}).catch(i)}),NI=(t,n,i)=>{let o=By(i);return new Promise((u,c)=>{Ii.async(n).then(f=>{f!==!1&&o.overwrite!==!0?c(Wy(n)):Nr.rename(t,n).then(u).catch(h=>{h.code==="EISDIR"||h.code==="EPERM"?Do.async(n).then(()=>Nr.rename(t,n)).then(u,c):h.code==="EXDEV"?qy.async(t,n,{overwrite:!0}).then(()=>Do.async(t)).then(u,c):h.code==="ENOENT"?Ii.async(t).then(g=>{g?DI(n).then(()=>Nr.rename(t,n)).then(u,c):c(Uy(t))}).catch(c):c(h)})})})};No.validateInput=LI;No.sync=kI;No.async=NI});var Yy=L($o=>{"use strict";var Ky=it(),Gy=Ge(),jy=["utf8","buffer","json","jsonWithDates"],$I=(t,n,i)=>{let o=`${t}(path, returnAs)`;if(Gy.argument(o,"path",n,["string"]),Gy.argument(o,"returnAs",i,["string","undefined"]),i&&jy.indexOf(i)===-1)throw new Error(`Argument "returnAs" passed to ${o} must have one of values: ${jy.join(", ")}`)},Xy=(t,n)=>typeof n=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(n)?new Date(n):n,zy=(t,n)=>{let i=new Error(`JSON parsing failed while reading ${t} [${n}]`);return i.originalError=n,i},MI=(t,n)=>{let i=n||"utf8",o,u="utf8";i==="buffer"&&(u=null);try{o=Ky.readFileSync(t,{encoding:u})}catch(c){if(c.code==="ENOENT")return;throw c}try{i==="json"?o=JSON.parse(o):i==="jsonWithDates"&&(o=JSON.parse(o,Xy))}catch(c){throw zy(t,c)}return o},FI=(t,n)=>new Promise((i,o)=>{let u=n||"utf8",c="utf8";u==="buffer"&&(c=null),Ky.readFile(t,{encoding:c}).then(f=>{try{i(u==="json"?JSON.parse(f):u==="jsonWithDates"?JSON.parse(f,Xy):f)}catch(h){o(zy(t,h))}}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});$o.validateInput=$I;$o.sync=MI;$o.async=FI});var Qy=L(Mo=>{"use strict";var Li=H("path"),Zy=Vl(),Jl=Ge(),qI=(t,n,i,o)=>{let u=`${t}(path, newName, [options])`;if(Jl.argument(u,"path",n,["string"]),Jl.argument(u,"newName",i,["string"]),Jl.options(u,"options",o,{overwrite:["boolean"]}),Li.basename(i)!==i)throw new Error(`Argument "newName" passed to ${u} should be a filename, not a path. Received "${i}"`)},HI=(t,n,i)=>{let o=Li.join(Li.dirname(t),n);Zy.sync(t,o,i)},BI=(t,n,i)=>{let o=Li.join(Li.dirname(t),n);return Zy.async(t,o,i)};Mo.validateInput=qI;Mo.sync=HI;Mo.async=BI});var tv=L(qo=>{"use strict";var Jy=H("path"),Fo=it(),Vy=Ge(),ev=Gn(),WI=(t,n,i)=>{let o=`${t}(symlinkValue, path)`;Vy.argument(o,"symlinkValue",n,["string"]),Vy.argument(o,"path",i,["string"])},UI=(t,n)=>{try{Fo.symlinkSync(t,n)}catch(i){if(i.code==="ENOENT")ev.createSync(Jy.dirname(n)),Fo.symlinkSync(t,n);else throw i}},GI=(t,n)=>new Promise((i,o)=>{Fo.symlink(t,n).then(i).catch(u=>{u.code==="ENOENT"?ev.createAsync(Jy.dirname(n)).then(()=>Fo.symlink(t,n)).then(i,o):o(u)})});qo.validateInput=WI;qo.sync=UI;qo.async=GI});var rv=L(ef=>{"use strict";var nv=H("fs");ef.createWriteStream=nv.createWriteStream;ef.createReadStream=nv.createReadStream});var cv=L(Ho=>{"use strict";var tf=H("path"),jI=H("os"),iv=H("crypto"),sv=Gn(),ov=it(),KI=Ge(),XI=(t,n)=>{let i=`${t}([options])`;KI.options(i,"options",n,{prefix:["string"],basePath:["string"]})},uv=(t,n)=>{t=t||{};let i={};return typeof t.prefix!="string"?i.prefix="":i.prefix=t.prefix,typeof t.basePath=="string"?i.basePath=tf.resolve(n,t.basePath):i.basePath=jI.tmpdir(),i},av=32,zI=(t,n)=>{let i=uv(n,t),o=iv.randomBytes(av/2).toString("hex"),u=tf.join(i.basePath,i.prefix+o);try{ov.mkdirSync(u)}catch(c){if(c.code==="ENOENT")sv.sync(u);else throw c}return u},YI=(t,n)=>new Promise((i,o)=>{let u=uv(n,t);iv.randomBytes(av/2,(c,f)=>{if(c)o(c);else{let h=f.toString("hex"),g=tf.join(u.basePath,u.prefix+h);ov.mkdir(g,_=>{_?_.code==="ENOENT"?sv.async(g).then(()=>{i(g)},o):o(_):i(g)})}})});Ho.validateInput=XI;Ho.sync=zI;Ho.async=YI});var dv=L((iN,pv)=>{"use strict";var lv=H("util"),nf=H("path"),Bo=W_(),Wo=Gn(),Uo=K_(),Go=Ry(),jo=kr(),Ko=Oy(),Xo=Zl(),zo=To(),Yo=_o(),Zo=Vl(),Qo=Yy(),Vo=uo(),Jo=Qy(),eu=tv(),fv=rv(),tu=cv(),nu=Ri(),hv=t=>{let n=()=>t||process.cwd(),i=function(){if(arguments.length===0)return n();let h=Array.prototype.slice.call(arguments),g=[n()].concat(h);return hv(nf.resolve.apply(null,g))},o=h=>nf.resolve(n(),h),u=function(){return Array.prototype.unshift.call(arguments,n()),nf.resolve.apply(null,arguments)},c=h=>{let g=h||{};return g.cwd=n(),g},f={cwd:i,path:u,append:(h,g,_)=>{Bo.validateInput("append",h,g,_),Bo.sync(o(h),g,_)},appendAsync:(h,g,_)=>(Bo.validateInput("appendAsync",h,g,_),Bo.async(o(h),g,_)),copy:(h,g,_)=>{Xo.validateInput("copy",h,g,_),Xo.sync(o(h),o(g),_)},copyAsync:(h,g,_)=>(Xo.validateInput("copyAsync",h,g,_),Xo.async(o(h),o(g),_)),createWriteStream:(h,g)=>fv.createWriteStream(o(h),g),createReadStream:(h,g)=>fv.createReadStream(o(h),g),dir:(h,g)=>{Wo.validateInput("dir",h,g);let _=o(h);return Wo.sync(_,g),i(_)},dirAsync:(h,g)=>(Wo.validateInput("dirAsync",h,g),new Promise((_,v)=>{let S=o(h);Wo.async(S,g).then(()=>{_(i(S))},v)})),exists:h=>(zo.validateInput("exists",h),zo.sync(o(h))),existsAsync:h=>(zo.validateInput("existsAsync",h),zo.async(o(h))),file:(h,g)=>(Uo.validateInput("file",h,g),Uo.sync(o(h),g),f),fileAsync:(h,g)=>(Uo.validateInput("fileAsync",h,g),new Promise((_,v)=>{Uo.async(o(h),g).then(()=>{_(f)},v)})),find:(h,g)=>(typeof g>"u"&&typeof h=="object"&&(g=h,h="."),Go.validateInput("find",h,g),Go.sync(o(h),c(g))),findAsync:(h,g)=>(typeof g>"u"&&typeof h=="object"&&(g=h,h="."),Go.validateInput("findAsync",h,g),Go.async(o(h),c(g))),inspect:(h,g)=>(jo.validateInput("inspect",h,g),jo.sync(o(h),g)),inspectAsync:(h,g)=>(jo.validateInput("inspectAsync",h,g),jo.async(o(h),g)),inspectTree:(h,g)=>(Ko.validateInput("inspectTree",h,g),Ko.sync(o(h),g)),inspectTreeAsync:(h,g)=>(Ko.validateInput("inspectTreeAsync",h,g),Ko.async(o(h),g)),list:h=>(Yo.validateInput("list",h),Yo.sync(o(h||"."))),listAsync:h=>(Yo.validateInput("listAsync",h),Yo.async(o(h||"."))),move:(h,g,_)=>{Zo.validateInput("move",h,g,_),Zo.sync(o(h),o(g),_)},moveAsync:(h,g,_)=>(Zo.validateInput("moveAsync",h,g,_),Zo.async(o(h),o(g),_)),read:(h,g)=>(Qo.validateInput("read",h,g),Qo.sync(o(h),g)),readAsync:(h,g)=>(Qo.validateInput("readAsync",h,g),Qo.async(o(h),g)),remove:h=>{Vo.validateInput("remove",h),Vo.sync(o(h||"."))},removeAsync:h=>(Vo.validateInput("removeAsync",h),Vo.async(o(h||"."))),rename:(h,g,_)=>{Jo.validateInput("rename",h,g,_),Jo.sync(o(h),g,_)},renameAsync:(h,g,_)=>(Jo.validateInput("renameAsync",h,g,_),Jo.async(o(h),g,_)),symlink:(h,g)=>{eu.validateInput("symlink",h,g),eu.sync(h,o(g))},symlinkAsync:(h,g)=>(eu.validateInput("symlinkAsync",h,g),eu.async(h,o(g))),tmpDir:h=>{tu.validateInput("tmpDir",h);let g=tu.sync(n(),h);return i(g)},tmpDirAsync:h=>(tu.validateInput("tmpDirAsync",h),new Promise((g,_)=>{tu.async(n(),h).then(v=>{g(i(v))},_)})),write:(h,g,_)=>{nu.validateInput("write",h,g,_),nu.sync(o(h),g,_)},writeAsync:(h,g,_)=>(nu.validateInput("writeAsync",h,g,_),nu.async(o(h),g,_))};return lv.inspect.custom!==void 0&&(f[lv.inspect.custom]=()=>`[fs-jetpack CWD: ${n()}]`),f};pv.exports=hv});var ru=L((sN,gv)=>{"use strict";var ZI=dv();gv.exports=ZI()});var JI={};Ra(JI,{default:()=>VI});var Ai={};Ra(Ai,{Browserslist:()=>cr,BrowserslistUpdate:()=>Tr,Bud:()=>Ei,Build:()=>$r,Clean:()=>Mr,Contributors:()=>qr,Dev:()=>Hr,Docs:()=>Br,DocsDev:()=>Wr,Docusaurus:()=>lr,Eslint:()=>fr,GitHookCommitMsg:()=>ki,Lint:()=>Ur,Netlify:()=>hr,PackageCheck:()=>wr,Pm2:()=>Er,Prettier:()=>Ar,RegistryClean:()=>Gr,RegistryStart:()=>jr,RegistryStop:()=>Kr,Release:()=>Xr,Syncpack:()=>Cr,TestRun:()=>zr,Tsc:()=>Rr,Version:()=>Yr,Vitest:()=>Pr,YarnPluginBuild:()=>Fr});var Fp=H("clipanion");var Mp=H("@yarnpkg/cli"),G=class extends Mp.BaseCommand{constructor(){super(...arguments);this.result=0}async throwIfError(i){if(i!==0)throw new Error("command failed")}};var cr=class extends G{constructor(){super(...arguments);this.passthrough=Fp.Option.Proxy({name:"browserslist options"})}async execute(){return await this.cli.run(["browserslist",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};cr.paths=[["@bud","browserslist"]],cr.usage={category:"@bud",description:"run browserslist",examples:[["browserslist usage info","yarn @bud browserslist --help"]]};var qp=H("clipanion");var lr=class extends G{constructor(){super(...arguments);this.passthrough=qp.Option.Proxy({name:"docusaurus options"})}async execute(){return await this.cli.run(["workspace","@repo/docs","docusaurus",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};lr.paths=[["@bud","docusaurus"]],lr.usage={category:"@bud",description:"run docusaurus",examples:[["docusaurus usage info","yarn @bud docusaurus --help"]]};var Up=H("clipanion");var fr=class extends G{constructor(){super(...arguments);this.passthrough=Up.Option.Proxy({name:"pm2 options"})}async execute(){let{path:i}=await Promise.resolve().then(()=>(ft(),Wp));await this.cli.run(["node",i("node_modules",".bin","eslint"),i("examples/**/*.{ts,tsx,js,jsx}"),i("sources/**/src/**/*.{ts,tsx,js,jsx}"),i("tests/**/*.{ts,tsx,js,jsx}"),i("config/**/*.{ts,tsx,js,jsx}"),"--config",i("config/eslint.config.cjs"),"--no-error-on-unmatched-pattern",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};fr.paths=[["@bud","eslint"]],fr.usage={category:"@bud",description:"Eslint passthrough",examples:[["eslint usage info","yarn @bud eslint --help"]]};ft();var Oa=H("clipanion");var hr=class extends G{constructor(){super(...arguments);this.dir=Oa.Option.String("--dir",ie("sources","@repo","docs","build"),{description:"directory to deploy"});this.passthrough=Oa.Option.Proxy({name:"netlify options"})}async execute(){return await this.cli.run(["workspace","@repo/docs","netlify",...this.passthrough??[],"--dir",`${this.dir}`]).then(this.throwIfError).catch(this.catch)}};hr.paths=[["@bud","netlify"]],hr.usage={category:"@bud",description:"run netlify",examples:[["netlify usage info","yarn @bud netlify --help"]]};ft();var g_=H("clipanion");var n_=Fe(H("fs"),1),r_=Fe(H("path"),1),i_=Fe(Ia(),1),xi=Fe(gl(),1),wi=Fe(Nm(),1);var zm=Fe(H("process"),1),El=Fe(H("fs"),1),Un=Fe(H("path"),1),Al=Fe(gl(),1),Ym=Fe(jm(),1);function br(t){let n=/^\\\\\?\\/.test(t),i=/[^\u0000-\u0080]+/.test(t);return n||i?t:t.replace(/\\/g,"/")}var Km=H("url"),Xm=H("stream"),bi=t=>t instanceof URL?(0,Km.fileURLToPath)(t):t,to=class extends Xm.Transform{constructor(n){super({objectMode:!0,transform(i,o,u){u(void 0,n(i)?i:void 0)}})}},no=t=>t[0]==="!";var Zm={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},Qm="**/.gitignore",kT=(t,n)=>no(t)?"!"+Un.default.posix.join(n,t.slice(1)):Un.default.posix.join(n,t),DT=(t,n)=>{let i=br(Un.default.relative(n,Un.default.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(o=>o&&!o.startsWith("#")).map(o=>kT(o,i))},NT=(t,n)=>{if(n=br(n),Un.default.isAbsolute(t)){if(br(t).startsWith(n))return Un.default.relative(n,t);throw new Error(`Path ${t} is not in cwd ${n}`)}return t},Vm=(t,n)=>{let i=t.flatMap(u=>DT(u,n)),o=(0,Ym.default)().add(i);return u=>(u=bi(u),u=NT(u,n),u?o.ignores(br(u)):!1)},Jm=(t={})=>({cwd:bi(t.cwd)||zm.default.cwd(),suppressErrors:Boolean(t.suppressErrors),deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),e_=async(t,n)=>{let{cwd:i,suppressErrors:o,deep:u}=Jm(n),c=await(0,Al.default)(t,{cwd:i,suppressErrors:o,deep:u,...Zm}),f=await Promise.all(c.map(async h=>({filePath:h,content:await El.default.promises.readFile(h,"utf8")})));return Vm(f,i)},t_=(t,n)=>{let{cwd:i,suppressErrors:o,deep:u}=Jm(n),f=Al.default.sync(t,{cwd:i,suppressErrors:o,deep:u,...Zm}).map(h=>({filePath:h,content:El.default.readFileSync(h,"utf8")}));return Vm(f,i)};var $T=t=>{if(t.some(n=>typeof n!="string"))throw new TypeError("Patterns must be a string or an array of strings")},Cl=t=>(t=[...new Set([t].flat())],$T(t),t),MT=t=>{if(!t.cwd)return;let n;try{n=n_.default.statSync(t.cwd)}catch{return}if(!n.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},s_=(t={})=>(t={...t,ignore:t.ignore||[],expandDirectories:t.expandDirectories===void 0?!0:t.expandDirectories,cwd:bi(t.cwd)},MT(t),t),o_=t=>async(n,i)=>t(Cl(n),s_(i)),ro=t=>(n,i)=>t(Cl(n),s_(i)),u_=t=>{let{ignoreFiles:n,gitignore:i}=t,o=n?Cl(n):[];return i&&o.push(Qm),o},FT=async t=>{let n=u_(t);return c_(n.length>0&&await e_(n,t))},a_=t=>{let n=u_(t);return c_(n.length>0&&t_(n,t))},c_=t=>{let n=new Set;return i=>{let o=i.path||i,u=r_.default.normalize(o),c=n.has(u)||t&&t(o);return n.add(u),!c}},l_=(t,n)=>t.flat().filter(i=>n(i)),qT=(t,n)=>(0,i_.default)(t).pipe(new to(i=>n(i))),f_=(t,n)=>{let i=[];for(;t.length>0;){let o=t.findIndex(c=>no(c));if(o===-1){i.push({patterns:t,options:n});break}let u=t[o].slice(1);for(let c of i)c.options.ignore.push(u);o!==0&&i.push({patterns:t.slice(0,o),options:{...n,ignore:[...n.ignore,u]}}),t=t.slice(o+1)}return i},h_=(t,n)=>({...n?{cwd:n}:{},...Array.isArray(t)?{files:t}:t}),p_=async(t,n)=>{let i=f_(t,n),{cwd:o,expandDirectories:u}=n;if(!u)return i;let c=h_(u,o),f=o?{cwd:o}:void 0;return Promise.all(i.map(async h=>{let{patterns:g,options:_}=h;return[g,_.ignore]=await Promise.all([(0,wi.default)(g,c),(0,wi.default)(_.ignore,f)]),{patterns:g,options:_}}))},Rl=(t,n)=>{let i=f_(t,n),{cwd:o,expandDirectories:u}=n;if(!u)return i;let c=h_(u,o),f=o?{cwd:o}:void 0;return i.map(h=>{let{patterns:g,options:_}=h;return g=wi.default.sync(g,c),_.ignore=wi.default.sync(_.ignore,f),{patterns:g,options:_}})},d_=o_(async(t,n)=>{let[i,o]=await Promise.all([p_(t,n),FT(n)]),u=await Promise.all(i.map(c=>(0,xi.default)(c.patterns,c.options)));return l_(u,o)}),Kk=ro((t,n)=>{let i=Rl(t,n),o=a_(n),u=i.map(c=>xi.default.sync(c.patterns,c.options));return l_(u,o)}),Xk=ro((t,n)=>{let i=Rl(t,n),o=a_(n),u=i.map(c=>xi.default.stream(c.patterns,c.options));return qT(u,o)}),zk=ro((t,n)=>t.some(i=>xi.default.isDynamicPattern(i,n))),Yk=o_(p_),Zk=ro(Rl);var wr=class extends G{constructor(){super(...arguments);this.passthrough=g_.Option.Proxy({name:"pm2 options"})}async execute(){await d_(["sources/@roots/*"],{onlyDirectories:!0}).then(async i=>await Promise.all([...i,"sources/create-bud-app"].flatMap(async o=>await this.cli.run(["node",ie("node_modules",".bin","package-check"),"--cwd",o]).then(this.throwIfError).catch(this.catch))).catch(this.catch)).catch(this.catch)}};wr.paths=[["@bud","package-check"]],wr.usage={category:"@bud",description:"PackageCheck passthrough",examples:[["package-check usage info","yarn @bud package-check --help"]]};ft();var m_=H("clipanion"),__=Fe(Sr());var Er=class extends G{constructor(){super(...arguments);this.passthrough=m_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",ie("node_modules",".bin","pm2"),...this.passthrough]).catch(__.noop)}};Er.paths=[["@bud","pm2"]],Er.usage={category:"@bud",description:"registry access",examples:[["pm2 usage info","yarn @bud pm2 --info"]]};ft();var y_=H("clipanion");var Ar=class extends G{constructor(){super(...arguments);this.passthrough=y_.Option.Proxy({name:"prettier options"})}async execute(){this.passthrough.length||(this.passthrough=["--ignore-unknown","--no-error-on-unmatched-pattern","--write"]),await this.cli.run(["node",ie("node_modules/.bin/prettier"),ie("sources/@roots/*/src/**/*"),`--config=${ie("config","prettier.config.js")}`,"--ignore-unknown","--no-error-on-unmatched-pattern","--write",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Ar.paths=[["@bud","prettier"]],Ar.usage={category:"@bud",description:"Prettier passthrough",examples:[["prettier usage info","yarn @bud prettier --help"]]};ft();var v_=H("clipanion");var Cr=class extends G{constructor(){super(...arguments);this.passthrough=v_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",ie("node_modules",".bin","syncpack"),"list-mismatches","--config",ie("config/syncpack.config.cjs")]).then(this.throwIfError).catch(this.catch)}};Cr.paths=[["@bud","syncpack"]],Cr.usage={category:"@bud",description:"Syncpack passthrough",examples:[["syncpack usage info","yarn @bud syncpack --help"]]};ft();var b_=H("clipanion");var Rr=class extends G{constructor(){super(...arguments);this.passthrough=b_.Option.Proxy({name:"tsc options"})}async execute(){return await this.cli.run(["node",ie("node_modules",".bin","tsc"),...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Rr.paths=[["@bud","tsc"]],Rr.usage={category:"@bud",description:"Run the typescript compiler",examples:[["tsc usage info","yarn @bud tsc --help"]]};ft();var w_=H("clipanion");var Pr=class extends G{constructor(){super(...arguments);this.passthrough=w_.Option.Proxy({name:"vitest options"})}async execute(){return await this.cli.run(["node",ie("node_modules",".bin","vitest"),...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Pr.paths=[["@bud","vitest"]],Pr.usage={category:"@bud",description:"Run vitest",examples:[["vitest usage info","yarn @bud vitest --help"]]};var Tr=class extends G{async execute(){await this.cli.run(["update-browserslist-db"])}};Tr.paths=[["@bud","browserslist","update"],["@bud","browserslist","upgrade"]],Tr.usage={category:"@bud",description:"update browserslist",examples:[["update browserslist db","yarn @bud browserslist update"]]};var Ei=class extends G{async execute(){process.stdout.write(` _ _ | |__ _ _ __| | | _ \\| | | |/ _ | @@ -34,7 +34,7 @@ globstar while`,n,S,i,x,H),this.matchOne(n.slice(S),i.slice(x),o))return this.de |_.__/ \\__._|\\__._| `),Object.values(Ai).filter(n=>n.usage).forEach(n=>{n.usage.examples?.forEach(([i,o])=>{process.stdout.write(` \x1B[34m${o}\x1B[0m ${i} -`)})})}};Ei.paths=[["@bud"]];ft();var $t=Fe(nu());var $r=class extends K{constructor(){super(...arguments);this.tsconfig=se("config/tsconfig.json")}async bundle({alias:i={},external:o=[],format:u="esm",outdir:c,outfile:f,source:h}){return this.cli.run(["esbuild","--alias:webpack=@roots/bud-support/webpack","--allow-overwrite","--bundle","--external:crypto","--external:module","--external:node:*","--external:@roots/*","--minify","--log-level=warning","--platform=node",...Object.entries(i).map(([g,_])=>`--alias:${g}=${_}`),...o.map(g=>`--external:${g}`),`--format=${u}`,f?`--outfile=${f}`:null,c?`--outdir=${c}`:null,h].filter(Boolean))}async execute(){if(await Promise.all([this.bundle({format:"cjs",outfile:"sources/@roots/filesystem/vendor/sdk/index.cjs",source:"node_modules/@aws-sdk/client-s3/dist-es/index.js"}),this.bundle({format:"esm",outfile:"sources/@roots/bud-support/vendor/highlight/index.js",source:"sources/@roots/bud-support/src/highlight/index.ts"}).then(async()=>{await $t.writeAsync(se("sources/@roots/bud-support/vendor/highlight/index.d.ts"),"export declare const highlight: (code: string) => string;")}),this.bundle({external:["./runtime/getUrl.js"],format:"cjs",outfile:se("sources/@roots/bud-support/vendor/html-loader/index.cjs"),source:se("node_modules/html-loader/dist/index.js")}).then(async()=>{let o=se("sources/@roots/bud-support/vendor/html-loader/index.cjs"),u=await $t.readAsync(o);await $t.writeAsync(o,u.replace(/\.\/runtime\/getUrl\.js/g,"./runtime/getUrl.cjs")),await $t.copyAsync(se("node_modules/html-loader/dist/runtime/getUrl.js"),se("sources/@roots/bud-support/vendor/html-loader/runtime/getUrl.cjs"),{overwrite:!0})}),this.bundle({external:["./lib/loader.js"],format:"cjs",outfile:"sources/@roots/bud-support/vendor/html-webpack-plugin/index.cjs",source:"node_modules/html-webpack-plugin/index.js"}).then(async()=>{let o=se("sources/@roots/bud-support/vendor/html-webpack-plugin/index.cjs"),u=await $t.readAsync(o);await $t.writeAsync(o,u.replace(/\.\/lib\/loader\.js/g,"./lib/loader.cjs"))}),$t.copyAsync(se("node_modules/html-webpack-plugin/lib/loader.js"),se("sources/@roots/bud-support/vendor/html-webpack-plugin/lib/loader.cjs"),{overwrite:!0}),$t.copyAsync(se("node_modules/html-webpack-plugin/typings.d.ts"),se("sources/@roots/bud-support/vendor/html-webpack-plugin/index.d.cts"),{overwrite:!0})]).catch(o=>{throw o}),await this.cli.run(["@bud","tsc","--build",this.tsconfig,"--force"]).catch(o=>{throw o})!==0)throw new Error("Build failed")}};$r.paths=[["@bud","build"]],$r.usage={category:"@bud",description:"Build packages",examples:[["build packages","yarn @bud build"]]};var Mr=class extends K{async execute(){await this.cli.run(["exec","git","clean","-fxd"])}};Mr.paths=[["@bud","clean"]],Mr.usage={category:"@bud",description:"clean project artifacts",examples:[["clean project artifacts","yarn @bud clean"]]};var Fr=class extends K{async execute(){await this.cli.run(["workspace","@repo/yarn-plugin-bud","build"]).catch(n=>{throw n}).then(n=>{if(n!==0)throw new Error("Plugin could not be built.")})}};Fr.paths=[["@bud","plugin","build"]],Fr.usage={category:"@bud",examples:[["build @bud yarn plugin","yarn @bud plugin build"]]};var qr=class extends K{async execute(){await this.cli.run(["workspace","@repo/markdown-kit","exec","node","contributors/index.js"]).catch(n=>{throw n})}};qr.paths=[["@bud","contributors"]],qr.usage={category:"@bud",description:"Aggregate contributor data",examples:[["update contributors","yarn @bud contributors"]]};var Hr=class extends K{async catch(n){process.stderr.write(` +`)})})}};Ei.paths=[["@bud"]];ft();var $t=Fe(ru());var $r=class extends G{constructor(){super(...arguments);this.tsconfig=ie("config/tsconfig.json")}async bundle({alias:i={},external:o=[],format:u="esm",outdir:c,outfile:f,source:h}){return this.cli.run(["esbuild","--alias:webpack=@roots/bud-support/webpack","--allow-overwrite","--bundle","--external:crypto","--external:module","--external:node:*","--external:@roots/*","--minify","--log-level=warning","--platform=node",...Object.entries(i).map(([g,_])=>`--alias:${g}=${_}`),...o.map(g=>`--external:${g}`),`--format=${u}`,f?`--outfile=${f}`:null,c?`--outdir=${c}`:null,h].filter(Boolean))}async execute(){if(await Promise.all([this.bundle({format:"cjs",outfile:"sources/@roots/filesystem/vendor/sdk/index.cjs",source:"node_modules/@aws-sdk/client-s3/dist-es/index.js"}),this.bundle({format:"esm",outfile:"sources/@roots/bud-support/vendor/highlight/index.js",source:"sources/@roots/bud-support/src/highlight/index.ts"}).then(async()=>{await $t.writeAsync(ie("sources/@roots/bud-support/vendor/highlight/index.d.ts"),"export declare const highlight: (code: string) => string;")}),this.bundle({external:["./runtime/getUrl.js"],format:"cjs",outfile:ie("sources/@roots/bud-support/vendor/html-loader/index.cjs"),source:ie("node_modules/html-loader/dist/index.js")}).then(async()=>{let o=ie("sources/@roots/bud-support/vendor/html-loader/index.cjs"),u=await $t.readAsync(o);await $t.writeAsync(o,u.replace(/\.\/runtime\/getUrl\.js/g,"./runtime/getUrl.cjs")),await $t.copyAsync(ie("node_modules/html-loader/dist/runtime/getUrl.js"),ie("sources/@roots/bud-support/vendor/html-loader/runtime/getUrl.cjs"),{overwrite:!0})}),this.bundle({external:["./lib/loader.js"],format:"cjs",outfile:"sources/@roots/bud-support/vendor/html-webpack-plugin/index.cjs",source:"node_modules/html-webpack-plugin/index.js"}).then(async()=>{let o=ie("sources/@roots/bud-support/vendor/html-webpack-plugin/index.cjs"),u=await $t.readAsync(o);await $t.writeAsync(o,u.replace(/\.\/lib\/loader\.js/g,"./lib/loader.cjs"))}),$t.copyAsync(ie("node_modules/html-webpack-plugin/lib/loader.js"),ie("sources/@roots/bud-support/vendor/html-webpack-plugin/lib/loader.cjs"),{overwrite:!0}),$t.copyAsync(ie("node_modules/html-webpack-plugin/typings.d.ts"),ie("sources/@roots/bud-support/vendor/html-webpack-plugin/index.d.cts"),{overwrite:!0})]).catch(o=>{throw o}),await this.cli.run(["@bud","tsc","--build",this.tsconfig,"--force"]).catch(o=>{throw o})!==0)throw new Error("Build failed")}};$r.paths=[["@bud","build"]],$r.usage={category:"@bud",description:"Build packages",examples:[["build packages","yarn @bud build"]]};var Mr=class extends G{async execute(){await this.cli.run(["exec","git","clean","-fxd"])}};Mr.paths=[["@bud","clean"]],Mr.usage={category:"@bud",description:"clean project artifacts",examples:[["clean project artifacts","yarn @bud clean"]]};var Fr=class extends G{async execute(){await this.cli.run(["workspace","@repo/yarn-plugin-bud","build"]).catch(n=>{throw n}).then(n=>{if(n!==0)throw new Error("Plugin could not be built.")})}};Fr.paths=[["@bud","plugin","build"]],Fr.usage={category:"@bud",examples:[["build @bud yarn plugin","yarn @bud plugin build"]]};var qr=class extends G{async execute(){await this.cli.run(["workspace","@repo/markdown-kit","exec","node","contributors/index.js"]).catch(n=>{throw n})}};qr.paths=[["@bud","contributors"]],qr.usage={category:"@bud",description:"Aggregate contributor data",examples:[["update contributors","yarn @bud contributors"]]};var Hr=class extends G{async catch(n){process.stderr.write(` ---------------- @@ -42,7 +42,7 @@ Error: ${n.message} ---------------- -`)}async execute(){await Promise.all([this.cli.run(["@bud","build"]).catch(this.catch),this.cli.run(["@bud","docs","build"]).catch(this.catch)]),await Promise.all([this.cli.run(["@bud","tsc","--watch"]).catch(this.catch),this.cli.run(["@bud","test","unit","--watch","--ui"]).catch(this.catch),this.cli.run(["@bud","docs","dev"]).catch(this.catch)])}};Hr.paths=[["@bud","dev"]],Hr.usage={category:"@bud",description:"develop project code",examples:[["run tsc, docusaurus & vitest in watch mode","yarn @bud dev"]]};var Br=class extends K{async execute(){await this.cli.run(["@bud","build"]).then(n=>n!==0&&this.catch(new Error(`\`@bud build\` returned error code ${n}`))).catch(this.catch),await this.cli.run(["workspace","@repo/markdown-kit","run","build"]).then(n=>n!==0&&this.catch(new Error(`\`workspace @repo/markdown-kit run build\` returned error code ${n}`))).catch(this.catch),await Promise.all([this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/cli-examples/index.js"]).catch(this.catch),this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/releases/index.js"]).catch(this.catch),this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/readme/index.js"]).catch(this.catch)]),await this.cli.run(["@bud","docusaurus","build"]).then(n=>n!==0&&this.catch(new Error(`\`@bud docusaurus build\` returned error code ${n}`))).catch(this.catch)}};Br.paths=[["@bud","docs"],["@bud","docs","build"]],Br.usage={category:"@bud",description:"build docs and other markdown files",examples:[["build docs and readme","yarn @bud docs"]]};var Wr=class extends K{async execute(){await this.cli.run(["@bud","docs","build"]),await this.cli.run(["@bud","docusaurus","start","--port=3015"])}};Wr.paths=[["@bud","docs","dev"]],Wr.usage={category:"@bud",description:"develop docs",examples:[["develop docs","yarn @bud docs dev"]]};var ki=class extends K{constructor(){super(...arguments);this.emoji={chore:"\u{1F9F9}",deps:"\u{1F4E6}",docs:"\u{1F4D5}",feat:"\u2728",fix:"\u{1FA79}",improve:"\u{1F528}",merge:"\u{1F500}",release:"\u{1F680}",test:"\u{1F9EA}"};this.validator=/^(chore|deps|docs|feat|fix|improve|merge|release|test):(none|patch|minor|major)(.*)/;this.exit=(...i)=>{throw i.map(o=>this.context.stderr.write(`${o} +`)}async execute(){await Promise.all([this.cli.run(["@bud","build"]).catch(this.catch),this.cli.run(["@bud","docs","build"]).catch(this.catch)]),await Promise.all([this.cli.run(["@bud","tsc","--watch"]).catch(this.catch),this.cli.run(["@bud","test","unit","--watch","--ui"]).catch(this.catch),this.cli.run(["@bud","docs","dev"]).catch(this.catch)])}};Hr.paths=[["@bud","dev"]],Hr.usage={category:"@bud",description:"develop project code",examples:[["run tsc, docusaurus & vitest in watch mode","yarn @bud dev"]]};var Br=class extends G{async execute(){await this.cli.run(["@bud","build"]).then(n=>n!==0&&this.catch(new Error(`\`@bud build\` returned error code ${n}`))).catch(this.catch),await this.cli.run(["workspace","@repo/markdown-kit","run","build"]).then(n=>n!==0&&this.catch(new Error(`\`workspace @repo/markdown-kit run build\` returned error code ${n}`))).catch(this.catch),await Promise.all([this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/cli-examples/index.js"]).catch(this.catch),this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/releases/index.js"]).catch(this.catch),this.cli.run(["workspace","@repo/markdown-kit","exec","node","compiled/readme/index.js"]).catch(this.catch)]),await this.cli.run(["@bud","docusaurus","build"]).then(n=>n!==0&&this.catch(new Error(`\`@bud docusaurus build\` returned error code ${n}`))).catch(this.catch)}};Br.paths=[["@bud","docs"],["@bud","docs","build"]],Br.usage={category:"@bud",description:"build docs and other markdown files",examples:[["build docs and readme","yarn @bud docs"]]};var Wr=class extends G{async execute(){await this.cli.run(["@bud","docs","build"]),await this.cli.run(["@bud","docusaurus","start","--port=3015"])}};Wr.paths=[["@bud","docs","dev"]],Wr.usage={category:"@bud",description:"develop docs",examples:[["develop docs","yarn @bud docs dev"]]};var ki=class extends G{constructor(){super(...arguments);this.emoji={chore:"\u{1F9F9}",deps:"\u{1F4E6}",docs:"\u{1F4D5}",feat:"\u2728",fix:"\u{1FA79}",improve:"\u{1F528}",merge:"\u{1F500}",release:"\u{1F680}",test:"\u{1F9EA}"};this.validator=/^(chore|deps|docs|feat|fix|improve|merge|release|test):(none|patch|minor|major)(.*)/;this.exit=(...i)=>{throw i.map(o=>this.context.stderr.write(`${o} `)),new Error("Invalid commit message")}}async execute(){let i=await import("fs/promises"),o=await i.readFile("./.git/COMMIT_EDITMSG","utf8").catch(this.exit).then(u=>u.split(` `).filter(c=>!c.startsWith("#")).map(c=>c.trim()).join(` `)??"");o!==` @@ -50,11 +50,11 @@ Error: ${n.message} `,`Message should follow the format: : `,`Where is one of: chore, deps, docs, feat, fix, improve, merge, release, test `,`And is one of: none, patch, minor, major -`,"Example: feat:minor add new feature"),await i.writeFile("./.git/COMMIT_EDITMSG",o.replace(this.validator,(u,c,f,h)=>`${this.emoji[c]} ${c}(${f}):${h}`),"utf8").catch(this.exit))}};ki.paths=[["@bud","git-hooks","commit-msg"]];var mv=q("clipanion");var Ur=class extends K{constructor(){super(...arguments);this.fix=mv.Option.Boolean("--fix",!1)}async execute(){await Promise.all([this.cli.run(["@bud","eslint",this.fix?"--fix":void 0].filter(Boolean)).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","syncpack"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","prettier",this.fix?"--write":void 0].filter(Boolean)).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","package-check"]).then(this.throwIfError).catch(this.catch)])}};Ur.paths=[["@bud","lint"]],Ur.usage={category:"@bud",description:"Lint project"};ft();var an=Fe(nu());var Gr=class extends K{async execute(){if(await an.removeAsync(se("storage/mocks")).catch(this.catch),await an.removeAsync(se("storage","packages")).catch(this.catch),await an.existsAsync(se("storage",".verdaccio-db.json"))){let i=await an.readAsync(se("storage",".verdaccio-db.json"),"json").catch(this.catch);i.list=[],await an.writeAsync(se("storage/.verdaccio-db.json"),i).catch(this.catch)}}};Gr.paths=[["@bud","registry","clean"]],Gr.usage={category:"@bud",description:"clean previously published packages",examples:[["clean previously published packages","yarn @bud registry clean"]]};ft();var nf=Fe(Sr());var jr=class extends K{async execute(){await this.cli.run(["@bud","pm2","start",se("node_modules","verdaccio","build","lib","cli","cli.js"),"-n","verdaccio","--","--config",se("config","verdaccio","config.yaml")]).catch(nf.noop).finally(async()=>{await this.cli.run(["@bud","pm2","save"]).catch(nf.noop)})}};jr.paths=[["@bud","registry","start"]],jr.usage={category:"@bud",description:"start verdaccio registry",examples:[["start verdaccio server","yarn @bud registry start"]]};var rf=Fe(Sr());var Kr=class extends K{async execute(){await this.cli.run(["@bud","pm2","stop","verdaccio"]).catch(rf.noop),await this.cli.run(["@bud","pm2","delete","verdaccio"]).catch(rf.noop)}};Kr.paths=[["@bud","registry","stop"]],Kr.usage={category:"@bud",description:"stop verdaccio registry",examples:[["stop verdaccio server","yarn @bud registry stop"]]};var ru=q("clipanion"),Di=Fe(Sr());var Xr=class extends K{constructor(){super();this.registry=ru.Option.String("-r,--registry","http://localhost:4873",{description:"Release registry"});this.tag=ru.Option.String("-t,--tag",{description:"Release tag",required:!0});this.version=ru.Option.String("-v,--version",{description:"Release version",required:!1});this.catch=this.catch.bind(this),this.resetRegistry=this.resetRegistry.bind(this)}async catch(){await this.resetRegistry()}async execute(){this.registry.startsWith("http://localhost:4873")&&(await this.cli.run(["config","set","npmPublishRegistry","http://localhost:4873"]).then(this.throwIfError).catch(this.catch),await this.cli.run(["config","set","npmRegistryServer","http://localhost:4873"]).then(this.throwIfError).catch(this.catch)),this.version||(this.version=this.makeVersion()),await this.cli.run(["@bud","version",this.version]).then(this.throwIfError).catch(this.catch),await this.cli.run(["workspaces","foreach","--all","--no-private","npm","publish","--access","public","--tag",this.tag]).then(this.throwIfError).catch(this.catch),await this.resetRegistry(),this.context.stdout.write(` +`,"Example: feat:minor add new feature"),await i.writeFile("./.git/COMMIT_EDITMSG",o.replace(this.validator,(u,c,f,h)=>`${this.emoji[c]} ${c}(${f}):${h}`),"utf8").catch(this.exit))}};ki.paths=[["@bud","git-hooks","commit-msg"]];var mv=H("clipanion");var Ur=class extends G{constructor(){super(...arguments);this.fix=mv.Option.Boolean("--fix",!1)}async execute(){await Promise.all([this.cli.run(["@bud","eslint",this.fix?"--fix":void 0].filter(Boolean)).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","syncpack"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","prettier",this.fix?"--write":void 0].filter(Boolean)).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","package-check"]).then(this.throwIfError).catch(this.catch)])}};Ur.paths=[["@bud","lint"]],Ur.usage={category:"@bud",description:"Lint project"};ft();var an=Fe(ru());var Gr=class extends G{async execute(){if(await an.removeAsync(ie("storage/mocks")).catch(this.catch),await an.removeAsync(ie("storage","packages")).catch(this.catch),await an.existsAsync(ie("storage",".verdaccio-db.json"))){let i=await an.readAsync(ie("storage",".verdaccio-db.json"),"json").catch(this.catch);i.list=[],await an.writeAsync(ie("storage/.verdaccio-db.json"),i).catch(this.catch)}}};Gr.paths=[["@bud","registry","clean"]],Gr.usage={category:"@bud",description:"clean previously published packages",examples:[["clean previously published packages","yarn @bud registry clean"]]};ft();var rf=Fe(Sr());var jr=class extends G{async execute(){await this.cli.run(["@bud","pm2","start",ie("node_modules","verdaccio","build","lib","cli","cli.js"),"-n","verdaccio","--","--config",ie("config","verdaccio","config.yaml")]).catch(rf.noop).finally(async()=>{await this.cli.run(["@bud","pm2","save"]).catch(rf.noop)})}};jr.paths=[["@bud","registry","start"]],jr.usage={category:"@bud",description:"start verdaccio registry",examples:[["start verdaccio server","yarn @bud registry start"]]};var sf=Fe(Sr());var Kr=class extends G{async execute(){await this.cli.run(["@bud","pm2","stop","verdaccio"]).catch(sf.noop),await this.cli.run(["@bud","pm2","delete","verdaccio"]).catch(sf.noop)}};Kr.paths=[["@bud","registry","stop"]],Kr.usage={category:"@bud",description:"stop verdaccio registry",examples:[["stop verdaccio server","yarn @bud registry stop"]]};var iu=H("clipanion"),Di=Fe(Sr());var Xr=class extends G{constructor(){super();this.registry=iu.Option.String("-r,--registry","http://localhost:4873",{description:"Release registry"});this.tag=iu.Option.String("-t,--tag",{description:"Release tag",required:!0});this.version=iu.Option.String("-v,--version",{description:"Release version",required:!1});this.catch=this.catch.bind(this),this.resetRegistry=this.resetRegistry.bind(this)}async catch(){await this.resetRegistry()}async execute(){this.registry.startsWith("http://localhost:4873")&&(await this.cli.run(["config","set","npmPublishRegistry","http://localhost:4873"]).then(this.throwIfError).catch(this.catch),await this.cli.run(["config","set","npmRegistryServer","http://localhost:4873"]).then(this.throwIfError).catch(this.catch)),this.version||(this.version=this.makeVersion()),await this.cli.run(["@bud","version",this.version]).then(this.throwIfError).catch(this.catch),await this.cli.run(["workspaces","foreach","--all","--no-private","npm","publish","--access","public","--tag",this.tag]).then(this.throwIfError).catch(this.catch),await this.resetRegistry(),this.context.stdout.write(` \u{1F4E6} Released: ${this.version} -`)}makeVersion(){let i=new Date,o=[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()],u=[i.getUTCHours(),i.getUTCMinutes()];return[o.join("."),parseInt(u.join(""))].join("-")}async resetRegistry(){await this.cli.run(["config","set","npmPublishRegistry","https://registry.npmjs.org"]).catch(Di.noop),await this.cli.run(["config","set","npmRegistryServer","https://registry.npmjs.org"]).catch(Di.noop),await this.cli.run(["@bud","version","0.0.0"]).catch(Di.noop),await this.cli.run(["install"]).catch(Di.noop)}};Xr.paths=[["@bud","release"]],Xr.usage={category:"@bud",description:"Do a release.",examples:[["Bump packages to x.y.z and publish","yarn @bud release --version x.y.z --tag latest"]]};ft();var sf=q("clipanion"),_v=Fe(nu());var zr=class extends K{constructor(){super(...arguments);this.configuration=sf.Option.String({required:!0});this.passthrough=sf.Option.Proxy({name:"vitest passthrough options"})}async execute(){let i=["@bud","vitest"];return await _v.removeAsync(se("storage","mocks")).catch(o=>{throw o}),["e2e","integration"].includes(this.configuration)&&await this.cli.run(["@bud","release","--tag","latest","--registry","http://localhost:4873/"]).catch(o=>{throw o}),!i.includes("--config")&&i.push("--config",se("config","vitest",`config.${this.configuration}.ts`)),i.push(...this.passthrough),await this.cli.run(i)}};zr.paths=[["@bud","test"]],zr.usage={category:"@bud",description:"run test suites",examples:[["run unit test suite","yarn @bud test unit"],["run integration test suite","yarn @bud test integration"],["run e2e test suite","yarn @bud test e2e"]]};var yv=q("clipanion");var Yr=class extends K{constructor(){super(...arguments);this.version=yv.Option.String()}async execute(){await this.cli.run(["workspaces","foreach","--all","--no-private","package","set","version",this.version]).then(this.throwIfError).catch(this.catch)}};Yr.paths=[["@bud","version"]],Yr.usage={category:"@bud",description:"bump version of public packages",examples:[["Bump packages to x.y.z","yarn @bud version x.y.z"]]};var jn=q("@yarnpkg/shell"),vv=Fe(Sr()),bv=async()=>{await(0,jn.execute)("yarn",["@bud","plugin","build"]),await(0,jn.execute)("yarn",["@bud","registry","start"]).catch(vv.noop),await(0,jn.execute)("yarn",["@bud","build"]),await(0,jn.execute)("yarn",["@bud"]),await(0,jn.execute)("yarn",["playwright","install"]),await(0,jn.execute)("git",["config","core.hooksPath",".github/hooks"])};var ZI={commands:Object.values(Ai),hooks:{afterAllInstalled:bv}},VI=ZI;return a1(JI);})(); +`)}makeVersion(){let i=new Date,o=[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()],u=[i.getUTCHours(),i.getUTCMinutes()];return[o.join("."),parseInt(u.join(""))].join("-")}async resetRegistry(){await this.cli.run(["config","set","npmPublishRegistry","https://registry.npmjs.org"]).catch(Di.noop),await this.cli.run(["config","set","npmRegistryServer","https://registry.npmjs.org"]).catch(Di.noop),await this.cli.run(["@bud","version","0.0.0"]).catch(Di.noop),await this.cli.run(["install"]).catch(Di.noop)}};Xr.paths=[["@bud","release"]],Xr.usage={category:"@bud",description:"Do a release.",examples:[["Bump packages to x.y.z and publish","yarn @bud release --version x.y.z --tag latest"]]};ft();var of=H("clipanion"),_v=Fe(ru());var zr=class extends G{constructor(){super(...arguments);this.configuration=of.Option.String({required:!0});this.passthrough=of.Option.Proxy({name:"vitest passthrough options"})}async execute(){let i=["@bud","vitest"];return await _v.removeAsync(ie("storage","mocks")).catch(o=>{throw o}),["e2e","integration"].includes(this.configuration)&&await this.cli.run(["@bud","release","--tag","latest","--registry","http://localhost:4873/"]).catch(o=>{throw o}),!i.includes("--config")&&i.push("--config",ie("config","vitest",`config.${this.configuration}.ts`)),i.push(...this.passthrough),await this.cli.run(i)}};zr.paths=[["@bud","test"]],zr.usage={category:"@bud",description:"run test suites",examples:[["run unit test suite","yarn @bud test unit"],["run integration test suite","yarn @bud test integration"],["run e2e test suite","yarn @bud test e2e"]]};var yv=H("clipanion");var Yr=class extends G{constructor(){super(...arguments);this.version=yv.Option.String()}async execute(){await this.cli.run(["workspaces","foreach","--all","--no-private","package","set","version",this.version]).then(this.throwIfError).catch(this.catch)}};Yr.paths=[["@bud","version"]],Yr.usage={category:"@bud",description:"bump version of public packages",examples:[["Bump packages to x.y.z","yarn @bud version x.y.z"]]};var jn=H("@yarnpkg/shell"),vv=Fe(Sr()),bv=async()=>{await(0,jn.execute)("yarn",["@bud","plugin","build"]),await(0,jn.execute)("yarn",["@bud","registry","start"]).catch(vv.noop),await(0,jn.execute)("yarn",["@bud","build"]),await(0,jn.execute)("yarn",["@bud"]),await(0,jn.execute)("yarn",["playwright","install"]),await(0,jn.execute)("git",["config","core.hooksPath",".github/hooks"])};var QI={commands:Object.values(Ai),hooks:{afterAllInstalled:bv}},VI=QI;return a1(JI);})(); /*! * fill-range * diff --git a/sources/@roots/bud-framework/src/bootstrap/files/index.ts b/sources/@roots/bud-framework/src/bootstrap/files/index.ts index 65cd7af251..67c292c86d 100644 --- a/sources/@roots/bud-framework/src/bootstrap/files/index.ts +++ b/sources/@roots/bud-framework/src/bootstrap/files/index.ts @@ -4,6 +4,7 @@ import type {InspectResult} from '@roots/filesystem/filesystem' import {builtinModules} from 'node:module' import {join, parse} from 'node:path' +import {normalize} from 'path/posix' import {get as getPaths} from '@roots/bud-framework/bootstrap/paths' import {BudError} from '@roots/bud-support/errors' @@ -134,7 +135,7 @@ async function getFileInfo(filename: string) { ...omit(inspect, `absolutePath`, `type`, `filename`), bud: inspect.name.includes(`bud`), local: inspect.name.includes(`local`), - path: inspect.absolutePath, + path: normalize(inspect.absolutePath), target: getFileTarget(inspect), type: getFileType(inspect, parsed), ...parsed,