diff --git a/package.json b/package.json index 88771d85b2..86bcd33002 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@vitest/coverage-v8": "0.34.6", "@vitest/ui": "0.34.6", "browserslist": "4.22.1", - "caniuse-lite": "1.0.30001546", + "caniuse-lite": "latest", "esbuild": "0.19.4", "eslint": "8.51.0", "eslint-plugin-n": "16.1.0", 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 aefd4cce80..0e69d9a671 100644 --- a/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js +++ b/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js @@ -3,42 +3,57 @@ module.exports = { name: "@yarnpkg/plugin-bud", factory: function (require) { -var plugin=(()=>{var JA=Object.create;var bs=Object.defineProperty;var e1=Object.getOwnPropertyDescriptor;var t1=Object.getOwnPropertyNames;var n1=Object.getPrototypeOf,r1=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 L=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),Tp=(t,n)=>{for(var i in n)bs(t,i,{get:n[i],enumerable:!0})},Op=(t,n,i,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of t1(n))!r1.call(t,u)&&u!==i&&bs(t,u,{get:()=>n[u],enumerable:!(o=e1(n,u))||o.enumerable});return t};var He=(t,n,i)=>(i=t!=null?JA(n1(t)):{},Op(n||!t||!t.__esModule?bs(i,"default",{value:t,enumerable:!0}):i,t)),i1=t=>Op(bs({},"__esModule",{value:!0}),t);var Dp=L((tL,kp)=>{kp.exports={description:"Configurable, extensible build tools for modern single and multi-page web applications",logo:"https://cdn.roots.io/app/uploads/logo-bud.svg",name:"bud.js",organization:{favicon:"https://roots.io/favicon.ico",name:"Roots Software Foundation LLC",site:"https://roots.io",twitter:"https://twitter.com/rootswp"},sponsors:[{image:"https://cdn.roots.io/app/uploads/km-digital.svg",title:"KM Digital",url:"https://k-m.com/"},{image:"https://cdn.roots.io/app/uploads/carrot.svg",title:"Carrot",url:"https://carrot.com/"},{image:"https://cdn.roots.io/app/uploads/wordpress.svg",title:"WordPress.com",url:"https://wordpress.com/"},{image:"https://cdn.roots.io/app/uploads/worksite-safety.svg",title:"Worksite Safety",url:"https://worksitesafety.ca/careers/"},{image:"https://cdn.roots.io/app/uploads/copia-digital.svg",title:"Copia Digital",url:"https://www.copiadigital.com/"},{image:"https://cdn.roots.io/app/uploads/freave.svg",title:"Freave",url:"https://www.freave.com/"}],url:{discourse:"https://discourse.roots.io/c/bud/24",docs:"https://bud.js.org",git:"git@github.com:roots/bud",web:"https://github.com/roots/bud"}}});var Ea=L((gL,Up)=>{"use strict";var s1=q("stream"),Bp=s1.PassThrough,o1=Array.prototype.slice;Up.exports=u1;function u1(){let t=[],n=o1.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=Bp(o);function h(){for(let v=0,x=arguments.length;v0||(i=!1,g())}function H(O){function D(){O.removeListener("merge2UnpipeEnd",D),O.removeListener("end",D),c&&O.removeListener("error",K),S()}function K(W){f.emit("error",W)}if(O._readableState.endEmitted)return S();O.on("merge2UnpipeEnd",D),O.on("end",D),c&&O.on("error",K),O.pipe(f,{end:!1}),O.resume()}for(let O=0;O{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.splitWhen=lr.flatten=void 0;function a1(t){return t.reduce((n,i)=>[].concat(n,i),[])}lr.flatten=a1;function c1(t,n){let i=[[]],o=0;for(let u of t)n(u)?(o++,i[o]=[]):i[o].push(u);return i}lr.splitWhen=c1});var jp=L(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.isEnoentCodeError=void 0;function l1(t){return t.code==="ENOENT"}Ss.isEnoentCodeError=l1});var Kp=L(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.createDirentFromStats=void 0;var Aa=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 f1(t,n){return new Aa(t,n)}xs.createDirentFromStats=f1});var Qp=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 h1=q("os"),p1=q("path"),Xp=h1.platform()==="win32",d1=2,g1=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,m1=/(\\?)([(){}]|^!|[!+@](?=\())/g,_1=/^\\\\([.?])/,y1=/\\(?![!()+@{}])/g;function v1(t){return t.replace(/\\/g,"/")}Ne.unixify=v1;function w1(t,n){return p1.resolve(t,n)}Ne.makeAbsolute=w1;function b1(t){if(t.charAt(0)==="."){let n=t.charAt(1);if(n==="/"||n==="\\")return t.slice(d1)}return t}Ne.removeLeadingDotSegment=b1;Ne.escape=Xp?Ra:Ca;function Ra(t){return t.replace(m1,"\\$2")}Ne.escapeWindowsPath=Ra;function Ca(t){return t.replace(g1,"\\$2")}Ne.escapePosixPath=Ca;Ne.convertPathToPattern=Xp?zp:Yp;function zp(t){return Ra(t).replace(_1,"//$1").replace(y1,"/")}Ne.convertWindowsPathToPattern=zp;function Yp(t){return Ca(t)}Ne.convertPosixPathToPattern=Yp});var Vp=L((wL,Zp)=>{Zp.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 td=L((bL,ed)=>{var S1=Vp(),Jp={"{":"}","(":")","[":"]"},x1=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=Jp[h];if(g){var _=t.indexOf(g,n);_!==-1&&(n=_+1)}if(t[n]==="!")return!0}else n++}return!1},E1=function(t){if(t[0]==="!")return!0;for(var n=0;n{"use strict";var A1=td(),R1=q("path").posix.dirname,C1=q("os").platform()==="win32",Pa="/",P1=/\\/g,T1=/[\{\[].*[\}\]]$/,O1=/(^|[^\\])([\{\[]|\([^\)]+$)/,I1=/\\([\!\*\?\|\[\]\(\)\{\}])/g;nd.exports=function(n,i){var o=Object.assign({flipBackslashes:!0},i);o.flipBackslashes&&C1&&n.indexOf(Pa)<0&&(n=n.replace(P1,Pa)),T1.test(n)&&(n+=Pa),n+="a";do n=R1(n);while(A1(n)||O1.test(n));return n.replace(I1,"$1")}});var Es=L(Et=>{"use strict";Et.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Et.find=(t,n)=>t.nodes.find(i=>i.type===n);Et.exceedsLimit=(t,n,i=1,o)=>o===!1||!Et.isInteger(t)||!Et.isInteger(n)?!1:(Number(n)-Number(t))/Number(i)>=o;Et.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)};Et.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;Et.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;Et.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Et.reduce=t=>t.reduce((n,i)=>(i.type==="text"&&n.push(i.value),i.type==="range"&&(i.type="text"),n),[]);Et.flatten=(...t)=>{let n=[],i=o=>{for(let u=0;u{"use strict";var id=Es();sd.exports=(t,n={})=>{let i=(o,u={})=>{let c=n.escapeInvalid&&id.isInvalidBrace(u),f=o.invalid===!0&&n.escapeInvalid===!0,h="";if(o.value)return(c||f)&&id.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 ud=L((AL,od)=>{"use strict";od.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var md=L((RL,gd)=>{"use strict";var ad=ud(),$n=(t,n,i)=>{if(ad(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(n===void 0||t===n)return String(t);if(ad(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($n.cache.hasOwnProperty(g))return $n.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 x=dd(t)||dd(n),S={min:t,max:n,a:_,b:v},H=[],O=[];if(x&&(S.isPadded=x,S.maxLen=String(S.max).length),_<0){let D=v<0?Math.abs(v):1;O=cd(D,Math.abs(_),S,o),_=S.a=0}return v>=0&&(H=cd(_,v,S,o)),S.negatives=O,S.positives=H,S.result=L1(O,H,o),o.capture===!0?S.result=`(${S.result})`:o.wrap!==!1&&H.length+O.length>1&&(S.result=`(?:${S.result})`),$n.cache[g]=S,S.result};function L1(t,n,i){let o=Ta(t,n,"-",!1,i)||[],u=Ta(n,t,"",!1,i)||[],c=Ta(t,n,"-?",!0,i)||[];return o.concat(c).concat(u).join("|")}function k1(t,n){let i=1,o=1,u=fd(t,i),c=new Set([n]);for(;t<=u&&u<=n;)c.add(u),i+=1,u=fd(t,i);for(u=hd(n+1,o)-1;t1&&h.count.pop(),h.count.push(v.count[0]),h.string=h.pattern+pd(h.count),f=_+1;continue}i.isPadded&&(x=F1(_,i,o)),v.string=x+v.pattern+pd(v.count),c.push(v),f=_+1,h=v}return c}function Ta(t,n,i,o,u){let c=[];for(let f of t){let{string:h}=f;!o&&!ld(n,"string",h)&&c.push(i+h),o&&ld(n,"string",h)&&c.push(i+h)}return c}function N1(t,n){let i=[];for(let o=0;on?1:n>t?-1:0}function ld(t,n,i){return t.some(o=>o[n]===i)}function fd(t,n){return Number(String(t).slice(0,-n)+"9".repeat(n))}function hd(t,n){return t-t%Math.pow(10,n)}function pd(t){let[n=0,i=""]=t;return i||n>1?`{${n+(i?","+i:"")}}`:""}function M1(t,n,i){return`[${t}${n-t===1?"":"-"}${n}]`}function dd(t){return/^-?(0+)\d/.test(t)}function F1(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}}`}}$n.cache={};$n.clearCache=()=>$n.cache={};gd.exports=$n});var La=L((CL,Ed)=>{"use strict";var q1=q("util"),vd=md(),_d=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),H1=t=>n=>t===!0?Number(n):String(n),Oa=t=>typeof t=="number"||typeof t=="string"&&t!=="",pi=t=>Number.isInteger(+t),Ia=t=>{let n=`${t}`,i=-1;if(n[0]==="-"&&(n=n.slice(1)),n==="0")return!1;for(;n[++i]==="0";);return i>0},B1=(t,n,i)=>typeof t=="string"||typeof n=="string"?!0:i.stringify===!0,W1=(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},yd=(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},wd=(t,n,i,o)=>{if(i)return vd(t,n,{wrap:!1,...o});let u=String.fromCharCode(t);if(t===n)return u;let c=String.fromCharCode(n);return`[${u}-${c}]`},bd=(t,n,i)=>{if(Array.isArray(t)){let o=i.wrap===!0,u=i.capture?"":"?:";return o?`(${u}${t.join("|")})`:t.join("|")}return vd(t,n,i)},Sd=(...t)=>new RangeError("Invalid range arguments: "+q1.inspect(...t)),xd=(t,n,i)=>{if(i.strictRanges===!0)throw Sd([t,n]);return[]},G1=(t,n)=>{if(n.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},j1=(t,n,i=1,o={})=>{let u=Number(t),c=Number(n);if(!Number.isInteger(u)||!Number.isInteger(c)){if(o.strictRanges===!0)throw Sd([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=Ia(h)||Ia(g)||Ia(_),x=v?Math.max(h.length,g.length,_.length):0,S=v===!1&&B1(t,n,o)===!1,H=o.transform||H1(S);if(o.toRegex&&i===1)return wd(yd(t,x),yd(n,x),!0,o);let O={negatives:[],positives:[]},D=te=>O[te<0?"negatives":"positives"].push(Math.abs(te)),K=[],W=0;for(;f?u>=c:u<=c;)o.toRegex===!0&&i>1?D(u):K.push(W1(H(u,W),x,S)),u=f?u-i:u+i,W++;return o.toRegex===!0?i>1?U1(O,o):bd(K,null,{wrap:!1,...o}):K},K1=(t,n,i=1,o={})=>{if(!pi(t)&&t.length>1||!pi(n)&&n.length>1)return xd(t,n,o);let u=o.transform||(S=>String.fromCharCode(S)),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 wd(g,_,!1,o);let v=[],x=0;for(;h?c>=f:c<=f;)v.push(u(c,x)),c=h?c-i:c+i,x++;return o.toRegex===!0?bd(v,null,{wrap:!1,options:o}):v},Rs=(t,n,i,o={})=>{if(n==null&&Oa(t))return[t];if(!Oa(t)||!Oa(n))return xd(t,n,o);if(typeof i=="function")return Rs(t,n,1,{transform:i});if(_d(i))return Rs(t,n,0,i);let u={...o};return u.capture===!0&&(u.wrap=!0),i=i||u.step||1,pi(i)?pi(t)&&pi(n)?j1(t,n,i,u):K1(t,n,Math.max(Math.abs(i),1),u):i!=null&&!_d(i)?G1(i,u):Rs(t,n,1,i)};Ed.exports=Rs});var Cd=L((PL,Rd)=>{"use strict";var X1=La(),Ad=Es(),z1=(t,n={})=>{let i=(o,u={})=>{let c=Ad.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=Ad.reduce(o.nodes),x=X1(...v,{...n,wrap:!1,toRegex:!0});if(x.length!==0)return v.length>1&&x.length>1?`(${x})`:x}if(o.nodes)for(let v of o.nodes)_+=i(v,o);return _};return i(t)};Rd.exports=z1});var Od=L((TL,Td)=>{"use strict";var Y1=La(),Pd=As(),fr=Es(),Mn=(t="",n="",i=!1)=>{let o=[];if(t=[].concat(t),n=[].concat(n),!n.length)return t;if(!t.length)return i?fr.flatten(n).map(u=>`{${u}}`):n;for(let u of t)if(Array.isArray(u))for(let c of u)o.push(Mn(c,n,i));else for(let c of n)i===!0&&typeof c=="string"&&(c=`{${c}}`),o.push(Array.isArray(c)?Mn(u,c,i):u+c);return fr.flatten(o)},Q1=(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(Mn(h.pop(),Pd(u,n)));return}if(u.type==="brace"&&u.invalid!==!0&&u.nodes.length===2){h.push(Mn(h.pop(),["{}"]));return}if(u.nodes&&u.ranges>0){let x=fr.reduce(u.nodes);if(fr.exceedsLimit(...x,n.step,i))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=Y1(...x,n);S.length===0&&(S=Pd(u,n)),h.push(Mn(h.pop(),S)),u.nodes=[];return}let g=fr.encloseBrace(u),_=u.queue,v=u;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,_=v.queue;for(let x=0;x{"use strict";Id.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 Md=L((IL,$d)=>{"use strict";var Z1=As(),{MAX_LENGTH:kd,CHAR_BACKSLASH:ka,CHAR_BACKTICK:V1,CHAR_COMMA:J1,CHAR_DOT:eR,CHAR_LEFT_PARENTHESES:tR,CHAR_RIGHT_PARENTHESES:nR,CHAR_LEFT_CURLY_BRACE:rR,CHAR_RIGHT_CURLY_BRACE:iR,CHAR_LEFT_SQUARE_BRACKET:Dd,CHAR_RIGHT_SQUARE_BRACKET:Nd,CHAR_DOUBLE_QUOTE:sR,CHAR_SINGLE_QUOTE:oR,CHAR_NO_BREAK_SPACE:uR,CHAR_ZERO_WIDTH_NOBREAK_SPACE:aR}=Ld(),cR=(t,n={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let i=n||{},o=typeof i.maxLength=="number"?Math.min(kd,i.maxLength):kd;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,x=0,S,H={},O=()=>t[v++],D=K=>{if(K.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&K.type==="text"){h.value+=K.value;return}return f.nodes.push(K),K.parent=f,K.prev=h,h=K,K};for(D({type:"bos"});v<_;)if(f=c[c.length-1],S=O(),!(S===aR||S===uR)){if(S===ka){D({type:"text",value:(n.keepEscaping?S:"")+O()});continue}if(S===Nd){D({type:"text",value:"\\"+S});continue}if(S===Dd){g++;let K=!0,W;for(;v<_&&(W=O());){if(S+=W,W===Dd){g++;continue}if(W===ka){S+=O();continue}if(W===Nd&&(g--,g===0))break}D({type:"text",value:S});continue}if(S===tR){f=D({type:"paren",nodes:[]}),c.push(f),D({type:"text",value:S});continue}if(S===nR){if(f.type!=="paren"){D({type:"text",value:S});continue}f=c.pop(),D({type:"text",value:S}),f=c[c.length-1];continue}if(S===sR||S===oR||S===V1){let K=S,W;for(n.keepQuotes!==!0&&(S="");v<_&&(W=O());){if(W===ka){S+=W+O();continue}if(W===K){n.keepQuotes===!0&&(S+=W);break}S+=W}D({type:"text",value:S});continue}if(S===rR){x++;let W={type:"brace",open:!0,close:!1,dollar:h.value&&h.value.slice(-1)==="$"||f.dollar===!0,depth:x,commas:0,ranges:0,nodes:[]};f=D(W),c.push(f),D({type:"open",value:S});continue}if(S===iR){if(f.type!=="brace"){D({type:"text",value:S});continue}let K="close";f=c.pop(),f.close=!0,D({type:K,value:S}),x--,f=c[c.length-1];continue}if(S===J1&&x>0){if(f.ranges>0){f.ranges=0;let K=f.nodes.shift();f.nodes=[K,{type:"text",value:Z1(f)}]}D({type:"comma",value:S}),f.commas++;continue}if(S===eR&&x>0&&f.commas===0){let K=f.nodes;if(x===0||K.length===0){D({type:"text",value:S});continue}if(h.type==="dot"){if(f.range=[],h.value+=S,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"){K.pop();let W=K[K.length-1];W.value+=h.value+S,h=W,f.ranges--;continue}D({type:"dot",value:S});continue}D({type:"text",value:S})}do if(f=c.pop(),f.type!=="root"){f.nodes.forEach(te=>{te.nodes||(te.type==="open"&&(te.isOpen=!0),te.type==="close"&&(te.isClose=!0),te.nodes||(te.type="text"),te.invalid=!0)});let K=c[c.length-1],W=K.nodes.indexOf(f);K.nodes.splice(W,1,...f.nodes)}while(c.length>0);return D({type:"eos"}),u};$d.exports=cR});var Hd=L((LL,qd)=>{"use strict";var Fd=As(),lR=Cd(),fR=Od(),hR=Md(),ft=(t,n={})=>{let i=[];if(Array.isArray(t))for(let o of t){let u=ft.create(o,n);Array.isArray(u)?i.push(...u):i.push(u)}else i=[].concat(ft.create(t,n));return n&&n.expand===!0&&n.nodupes===!0&&(i=[...new Set(i)]),i};ft.parse=(t,n={})=>hR(t,n);ft.stringify=(t,n={})=>Fd(typeof t=="string"?ft.parse(t,n):t,n);ft.compile=(t,n={})=>(typeof t=="string"&&(t=ft.parse(t,n)),lR(t,n));ft.expand=(t,n={})=>{typeof t=="string"&&(t=ft.parse(t,n));let i=fR(t,n);return n.noempty===!0&&(i=i.filter(Boolean)),n.nodupes===!0&&(i=[...new Set(i)]),i};ft.create=(t,n={})=>t===""||t.length<3?[t]:n.expand!==!0?ft.compile(t,n):ft.expand(t,n);qd.exports=ft});var di=L((kL,jd)=>{"use strict";var pR=q("path"),Bt="\\\\/",Bd=`[^${Bt}]`,rn="\\.",dR="\\+",gR="\\?",Cs="\\/",mR="(?=.)",Wd="[^/]",Da=`(?:${Cs}|$)`,Ud=`(?:^|${Cs})`,Na=`${rn}{1,2}${Da}`,_R=`(?!${rn})`,yR=`(?!${Ud}${Na})`,vR=`(?!${rn}{0,1}${Da})`,wR=`(?!${Na})`,bR=`[^.${Cs}]`,SR=`${Wd}*?`,Gd={DOT_LITERAL:rn,PLUS_LITERAL:dR,QMARK_LITERAL:gR,SLASH_LITERAL:Cs,ONE_CHAR:mR,QMARK:Wd,END_ANCHOR:Da,DOTS_SLASH:Na,NO_DOT:_R,NO_DOTS:yR,NO_DOT_SLASH:vR,NO_DOTS_SLASH:wR,QMARK_NO_DOT:bR,STAR:SR,START_ANCHOR:Ud},xR={...Gd,SLASH_LITERAL:`[${Bt}]`,QMARK:Bd,STAR:`${Bd}*?`,DOTS_SLASH:`${rn}{1,2}(?:[${Bt}]|$)`,NO_DOT:`(?!${rn})`,NO_DOTS:`(?!(?:^|[${Bt}])${rn}{1,2}(?:[${Bt}]|$))`,NO_DOT_SLASH:`(?!${rn}{0,1}(?:[${Bt}]|$))`,NO_DOTS_SLASH:`(?!${rn}{1,2}(?:[${Bt}]|$))`,QMARK_NO_DOT:`[^.${Bt}]`,START_ANCHOR:`(?:^|[${Bt}])`,END_ANCHOR:`(?:[${Bt}]|$)`},ER={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"};jd.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:ER,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:pR.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?xR:Gd}}});var gi=L(rt=>{"use strict";var AR=q("path"),RR=process.platform==="win32",{REGEX_BACKSLASH:CR,REGEX_REMOVE_BACKSLASH:PR,REGEX_SPECIAL_CHARS:TR,REGEX_SPECIAL_CHARS_GLOBAL:OR}=di();rt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);rt.hasRegexChars=t=>TR.test(t);rt.isRegexChar=t=>t.length===1&&rt.hasRegexChars(t);rt.escapeRegex=t=>t.replace(OR,"\\$1");rt.toPosixSlashes=t=>t.replace(CR,"/");rt.removeBackslashes=t=>t.replace(PR,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:RR===!0||AR.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 Jd=L((NL,Vd)=>{"use strict";var Kd=gi(),{CHAR_ASTERISK:$a,CHAR_AT:IR,CHAR_BACKWARD_SLASH:mi,CHAR_COMMA:LR,CHAR_DOT:Ma,CHAR_EXCLAMATION_MARK:Fa,CHAR_FORWARD_SLASH:Zd,CHAR_LEFT_CURLY_BRACE:qa,CHAR_LEFT_PARENTHESES:Ha,CHAR_LEFT_SQUARE_BRACKET:kR,CHAR_PLUS:DR,CHAR_QUESTION_MARK:Xd,CHAR_RIGHT_CURLY_BRACE:NR,CHAR_RIGHT_PARENTHESES:zd,CHAR_RIGHT_SQUARE_BRACKET:$R}=di(),Yd=t=>t===Zd||t===mi,Qd=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},MR=(t,n)=>{let i=n||{},o=t.length-1,u=i.parts===!0||i.scanToEnd===!0,c=[],f=[],h=[],g=t,_=-1,v=0,x=0,S=!1,H=!1,O=!1,D=!1,K=!1,W=!1,te=!1,z=!1,Y=!1,N=!1,ne=0,Q,G,ue={value:"",depth:0,isGlob:!1},Pe=()=>_>=o,I=()=>g.charCodeAt(_+1),ve=()=>(Q=G,g.charCodeAt(++_));for(;_0&&($t=g.slice(0,v),g=g.slice(v),x-=v),me&&O===!0&&x>0?(me=g.slice(0,x),A=g.slice(x)):O===!0?(me="",A=g):me=g,me&&me!==""&&me!=="/"&&me!==g&&Yd(me.charCodeAt(me.length-1))&&(me=me.slice(0,-1)),i.unescape===!0&&(A&&(A=Kd.removeBackslashes(A)),me&&te===!0&&(me=Kd.removeBackslashes(me)));let R={prefix:$t,input:t,start:v,base:me,glob:A,isBrace:S,isBracket:H,isGlob:O,isExtglob:D,isGlobstar:K,negated:z,negatedExtglob:Y};if(i.tokens===!0&&(R.maxDepth=0,Yd(G)||f.push(ue),R.tokens=f),i.parts===!0||i.tokens===!0){let Be;for(let fe=0;fe{"use strict";var Ps=di(),ht=gi(),{MAX_LENGTH:Ts,POSIX_REGEX_SOURCE:FR,REGEX_NON_SPECIAL_CHARS:qR,REGEX_SPECIAL_CHARS_BACKREF:HR,REPLACEMENTS:eg}=Ps,BR=(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=>ht.escapeRegex(u)).join("..")}return i},hr=(t,n)=>`Missing ${t}: "${n}" - use "\\\\${n}" to match literal characters`,Ba=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=eg[t]||t;let i={...n},o=typeof i.maxLength=="number"?Math.min(Ts,i.maxLength):Ts,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=ht.isWindows(n),_=Ps.globChars(g),v=Ps.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:H,ONE_CHAR:O,DOTS_SLASH:D,NO_DOT:K,NO_DOT_SLASH:W,NO_DOTS_SLASH:te,QMARK:z,QMARK_NO_DOT:Y,STAR:N,START_ANCHOR:ne}=_,Q=F=>`(${h}(?:(?!${ne}${F.dot?D:x}).)*?)`,G=i.dot?"":K,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=ht.removePrefix(t,I),u=t.length;let ve=[],me=[],$t=[],A=c,R,Be=()=>I.index===u-1,fe=I.peek=(F=1)=>t[I.index+F],Ie=I.advance=()=>t[++I.index]||"",gt=()=>t.slice(I.index+1),Ye=(F="",_e=0)=>{I.consumed+=F,I.index+=_e},Gn=F=>{I.output+=F.output!=null?F.output:F.value,Ye(F.value)},an=()=>{let F=1;for(;fe()==="!"&&(fe(2)!=="("||fe(3)==="?");)Ie(),I.start++,F++;return F%2===0?!1:(I.negated=!0,I.start++,!0)},Kt=F=>{I[F]++,$t.push(F)},Xt=F=>{I[F]--,$t.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)&&Gn(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},Mt=(F,_e)=>{let $={...v[_e],conditions:1,inner:""};$.prev=A,$.parens=I.parens,$.output=I.output;let Z=(i.capture?"(":"")+$.open;Kt("parens"),oe({type:F,value:_e,output:I.output?"":O}),oe({type:"paren",extglob:!0,value:Ie(),output:Z}),ve.push($)},tu=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(gt()))&&(_e=F.close=`)$))${Z}`),F.inner.includes("*")&&($=gt())&&/^\.[^\\/.]+$/.test($)){let we=Ba($,{...n,fastpaths:!1}).output;_e=F.close=`)${we})${Z})`}F.prev.type==="bos"&&(I.negatedExtglob=!0)}oe({type:"paren",extglob:!0,value:R,output:_e}),Xt("parens")};if(i.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let F=!1,_e=t.replace(HR,($,Z,we,We,be,jn)=>We==="\\"?(F=!0,$):We==="?"?Z?Z+We+(be?z.repeat(be.length):""):jn===0?ue+(be?z.repeat(be.length):""):z.repeat(we.length):We==="."?x.repeat(we.length):We==="*"?Z?Z+We+(be?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=ht.wrapOutput(_e,I,n),I)}for(;!Be();){if(R=Ie(),R==="\0")continue;if(R==="\\"){let $=fe();if($==="/"&&i.bash!==!0||$==="."||$===";")continue;if(!$){R+="\\",oe({type:"text",value:R});continue}let Z=/^\\+/.exec(gt()),we=0;if(Z&&Z[0].length>2&&(we=Z[0].length,I.index+=we,we%2!==0&&(R+="\\")),i.unescape===!0?R=Ie():R+=Ie(),I.brackets===0){oe({type:"text",value:R});continue}}if(I.brackets>0&&(R!=="]"||A.value==="["||A.value==="[^")){if(i.posix!==!1&&R===":"){let $=A.value.slice(1);if($.includes("[")&&(A.posix=!0,$.includes(":"))){let Z=A.value.lastIndexOf("["),we=A.value.slice(0,Z),We=A.value.slice(Z+2),be=FR[We];if(be){A.value=we+be,I.backtrack=!0,Ie(),!c.output&&f.indexOf(A)===1&&(c.output=O);continue}}}(R==="["&&fe()!==":"||R==="-"&&fe()==="]")&&(R=`\\${R}`),R==="]"&&(A.value==="["||A.value==="[^")&&(R=`\\${R}`),i.posix===!0&&R==="!"&&A.value==="["&&(R="^"),A.value+=R,Gn({value:R});continue}if(I.quotes===1&&R!=='"'){R=ht.escapeRegex(R),A.value+=R,Gn({value:R});continue}if(R==='"'){I.quotes=I.quotes===1?0:1,i.keepQuotes===!0&&oe({type:"text",value:R});continue}if(R==="("){Kt("parens"),oe({type:"paren",value:R});continue}if(R===")"){if(I.parens===0&&i.strictBrackets===!0)throw new SyntaxError(hr("opening","("));let $=ve[ve.length-1];if($&&I.parens===$.parens+1){tu(ve.pop());continue}oe({type:"paren",value:R,output:I.parens?")":"\\)"}),Xt("parens");continue}if(R==="["){if(i.nobracket===!0||!gt().includes("]")){if(i.nobracket!==!0&&i.strictBrackets===!0)throw new SyntaxError(hr("closing","]"));R=`\\${R}`}else Kt("brackets");oe({type:"bracket",value:R});continue}if(R==="]"){if(i.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){oe({type:"text",value:R,output:`\\${R}`});continue}if(I.brackets===0){if(i.strictBrackets===!0)throw new SyntaxError(hr("opening","["));oe({type:"text",value:R,output:`\\${R}`});continue}Xt("brackets");let $=A.value.slice(1);if(A.posix!==!0&&$[0]==="^"&&!$.includes("/")&&(R=`/${R}`),A.value+=R,Gn({value:R}),i.literalBrackets===!1||ht.hasRegexChars($))continue;let Z=ht.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(R==="{"&&i.nobrace!==!0){Kt("braces");let $={type:"brace",value:R,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};me.push($),oe($);continue}if(R==="}"){let $=me[me.length-1];if(i.nobrace===!0||!$){oe({type:"text",value:R,output:R});continue}let Z=")";if($.dots===!0){let we=f.slice(),We=[];for(let be=we.length-1;be>=0&&(f.pop(),we[be].type!=="brace");be--)we[be].type!=="dots"&&We.unshift(we[be].value);Z=BR(We,i),I.backtrack=!0}if($.comma!==!0&&$.dots!==!0){let we=I.output.slice(0,$.outputIndex),We=I.tokens.slice($.tokensIndex);$.value=$.output="\\{",R=Z="\\}",I.output=we;for(let be of We)I.output+=be.output||be.value}oe({type:"brace",value:R,output:Z}),Xt("braces"),me.pop();continue}if(R==="|"){ve.length>0&&ve[ve.length-1].conditions++,oe({type:"text",value:R});continue}if(R===","){let $=R,Z=me[me.length-1];Z&&$t[$t.length-1]==="braces"&&(Z.comma=!0,$="|"),oe({type:"comma",value:R,output:$});continue}if(R==="/"){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:R,output:H});continue}if(R==="."){if(I.braces>0&&A.type==="dot"){A.value==="."&&(A.output=x);let $=me[me.length-1];A.type="dots",A.output+=R,A.value+=R,$.dots=!0;continue}if(I.braces+I.parens===0&&A.type!=="bos"&&A.type!=="slash"){oe({type:"text",value:R,output:x});continue}oe({type:"dot",value:R,output:x});continue}if(R==="?"){if(!(A&&A.value==="(")&&i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("qmark",R);continue}if(A&&A.type==="paren"){let Z=fe(),we=R;if(Z==="<"&&!ht.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(Z)||Z==="<"&&!/<([!=]|\w+>)/.test(gt()))&&(we=`\\${R}`),oe({type:"text",value:R,output:we});continue}if(i.dot!==!0&&(A.type==="slash"||A.type==="bos")){oe({type:"qmark",value:R,output:Y});continue}oe({type:"qmark",value:R,output:z});continue}if(R==="!"){if(i.noextglob!==!0&&fe()==="("&&(fe(2)!=="?"||!/[!=<:]/.test(fe(3)))){Mt("negate",R);continue}if(i.nonegate!==!0&&I.index===0){an();continue}}if(R==="+"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("plus",R);continue}if(A&&A.value==="("||i.regex===!1){oe({type:"plus",value:R,output:S});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||I.parens>0){oe({type:"plus",value:R});continue}oe({type:"plus",value:S});continue}if(R==="@"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){oe({type:"at",extglob:!0,value:R,output:""});continue}oe({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let $=qR.exec(gt());$&&(R+=$[0],I.index+=$[0].length),oe({type:"text",value:R});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=R,A.output=Pe,I.backtrack=!0,I.globstar=!0,Ye(R);continue}let F=gt();if(i.noextglob!==!0&&/^\([^?]/.test(F)){Mt("star",R);continue}if(A.type==="star"){if(i.noglobstar===!0){Ye(R);continue}let $=A.prev,Z=$.prev,we=$.type==="slash"||$.type==="bos",We=Z&&(Z.type==="star"||Z.type==="globstar");if(i.bash===!0&&(!we||F[0]&&F[0]!=="/")){oe({type:"star",value:R,output:""});continue}let be=I.braces>0&&($.type==="comma"||$.type==="brace"),jn=ve.length&&($.type==="pipe"||$.type==="paren");if(!we&&$.type!=="paren"&&!be&&!jn){oe({type:"star",value:R,output:""});continue}for(;F.slice(0,3)==="/**";){let Kn=t[I.index+4];if(Kn&&Kn!=="/")break;F=F.slice(3),Ye("/**",3)}if($.type==="bos"&&Be()){A.type="globstar",A.value+=R,A.output=Q(i),I.output=A.output,I.globstar=!0,Ye(R);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+=R,I.globstar=!0,I.output+=$.output+A.output,Ye(R);continue}if($.type==="slash"&&$.prev.type!=="bos"&&F[0]==="/"){let Kn=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}${Kn})`,A.value+=R,I.output+=$.output+A.output,I.globstar=!0,Ye(R+Ie()),oe({type:"slash",value:"/",output:""});continue}if($.type==="bos"&&F[0]==="/"){A.type="globstar",A.value+=R,A.output=`(?:^|${H}|${Q(i)}${H})`,I.output=A.output,I.globstar=!0,Ye(R+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+=R,I.output+=A.output,I.globstar=!0,Ye(R);continue}let _e={type:"star",value:R,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=R,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+=te,A.output+=te):(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(hr("closing","]"));I.output=ht.escapeLast(I.output,"["),Xt("brackets")}for(;I.parens>0;){if(i.strictBrackets===!0)throw new SyntaxError(hr("closing",")"));I.output=ht.escapeLast(I.output,"("),Xt("parens")}for(;I.braces>0;){if(i.strictBrackets===!0)throw new SyntaxError(hr("closing","}"));I.output=ht.escapeLast(I.output,"{"),Xt("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};Ba.fastpaths=(t,n)=>{let i={...n},o=typeof i.maxLength=="number"?Math.min(Ts,i.maxLength):Ts,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);t=eg[t]||t;let c=ht.isWindows(n),{DOT_LITERAL:f,SLASH_LITERAL:h,ONE_CHAR:g,DOTS_SLASH:_,NO_DOT:v,NO_DOTS:x,NO_DOTS_SLASH:S,STAR:H,START_ANCHOR:O}=Ps.globChars(c),D=i.dot?x:v,K=i.dot?S:v,W=i.capture?"":"?:",te={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}${K}${z}`;case"**":return D+Y(i);case"**/*":return`(?:${D}${Y(i)}${h})?${K}${g}${z}`;case"**/*.*":return`(?:${D}${Y(i)}${h})?${K}${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}}},ne=ht.removePrefix(t,te),Q=N(ne);return Q&&i.strictSlashes!==!0&&(Q+=`${h}?`),Q};tg.exports=Ba});var ig=L((ML,rg)=>{"use strict";var WR=q("path"),UR=Jd(),Wa=ng(),Ua=gi(),GR=di(),jR=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,n,i=!1)=>{if(Array.isArray(t)){let v=t.map(S=>De(S,n,i));return S=>{for(let H of v){let O=H(S);if(O)return O}return!1}}let o=jR(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=Ua.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,x=!1)=>{let{isMatch:S,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:S};return typeof u.onResult=="function"&&u.onResult(D),S===!1?(D.isMatch=!1,x?D:!1):g(v)?(typeof u.onIgnore=="function"&&u.onIgnore(D),D.isMatch=!1,x?D:!1):(typeof u.onMatch=="function"&&u.onMatch(D),x?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?Ua.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=Ua.isWindows(i))=>(n instanceof RegExp?n:De.makeRe(n,i)).test(WR.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)):Wa(t,{...n,fastpaths:!1});De.scan=(t,n)=>UR(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=Wa.fastpaths(t,n)),u.output||(u=Wa(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=GR;rg.exports=De});var og=L((FL,sg)=>{"use strict";sg.exports=ig()});var fg=L((qL,lg)=>{"use strict";var ag=q("util"),cg=Hd(),Wt=og(),Ga=gi(),ug=t=>t===""||t==="./",Ce=(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 _};Ce.match=Ce;Ce.matcher=(t,n)=>Wt(t,n);Ce.isMatch=(t,n,i)=>Wt(n,i)(t);Ce.any=Ce.isMatch;Ce.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(Ce(t,n,{...i,onResult:c}));for(let h of u)f.has(h)||o.add(h);return[...o]};Ce.contains=(t,n,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ag.inspect(t)}"`);if(Array.isArray(n))return n.some(o=>Ce.contains(t,o,i));if(typeof n=="string"){if(ug(t)||ug(n))return!1;if(t.includes(n)||t.startsWith("./")&&t.slice(2).includes(n))return!0}return Ce.isMatch(t,n,{...i,contains:!0})};Ce.matchKeys=(t,n,i)=>{if(!Ga.isObject(t))throw new TypeError("Expected the first argument to be an object");let o=Ce(Object.keys(t),n,i),u={};for(let c of o)u[c]=t[c];return u};Ce.some=(t,n,i)=>{let o=[].concat(t);for(let u of[].concat(n)){let c=Wt(String(u),i);if(o.some(f=>c(f)))return!0}return!1};Ce.every=(t,n,i)=>{let o=[].concat(t);for(let u of[].concat(n)){let c=Wt(String(u),i);if(!o.every(f=>c(f)))return!1}return!0};Ce.all=(t,n,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ag.inspect(t)}"`);return[].concat(n).every(o=>Wt(o,i)(t))};Ce.capture=(t,n,i)=>{let o=Ga.isWindows(i),c=Wt.makeRe(String(t),{...i,capture:!0}).exec(o?Ga.toPosixSlashes(n):n);if(c)return c.slice(1).map(f=>f===void 0?"":f)};Ce.makeRe=(...t)=>Wt.makeRe(...t);Ce.scan=(...t)=>Wt.scan(...t);Ce.parse=(t,n)=>{let i=[];for(let o of[].concat(t||[]))for(let u of cg(String(o),n))i.push(Wt.parse(u,n));return i};Ce.braces=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");return n&&n.nobrace===!0||!/\{.*\}/.test(t)?[t]:cg(t,n)};Ce.braceExpand=(t,n)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Ce.braces(t,{...n,expand:!0})};lg.exports=Ce});var vg=L(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.removeDuplicateSlashes=re.matchAny=re.convertPatternsToRe=re.makeRe=re.getPatternParts=re.expandBraceExpansion=re.expandPatternsWithBraceExpansion=re.isAffectDepthOfReadingPattern=re.endsWithSlashGlobStar=re.hasGlobStar=re.getBaseDirectory=re.isPatternRelatedToParentDirectory=re.getPatternsOutsideCurrentDirectory=re.getPatternsInsideCurrentDirectory=re.getPositivePatterns=re.getNegativePatterns=re.isPositivePattern=re.isNegativePattern=re.convertToNegativePattern=re.convertToPositivePattern=re.isDynamicPattern=re.isStaticPattern=void 0;var KR=q("path"),XR=rd(),ja=fg(),hg="**",zR="\\",YR=/[*?]|^!/,QR=/\[[^[]*]/,ZR=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,VR=/[!*+?@]\([^(]*\)/,JR=/,|\.\./,eC=/(?!^)\/{2,}/g;function pg(t,n={}){return!dg(t,n)}re.isStaticPattern=pg;function dg(t,n={}){return t===""?!1:!!(n.caseSensitiveMatch===!1||t.includes(zR)||YR.test(t)||QR.test(t)||ZR.test(t)||n.extglob!==!1&&VR.test(t)||n.braceExpansion!==!1&&tC(t))}re.isDynamicPattern=dg;function tC(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 JR.test(o)}function nC(t){return Os(t)?t.slice(1):t}re.convertToPositivePattern=nC;function rC(t){return"!"+t}re.convertToNegativePattern=rC;function Os(t){return t.startsWith("!")&&t[1]!=="("}re.isNegativePattern=Os;function gg(t){return!Os(t)}re.isPositivePattern=gg;function iC(t){return t.filter(Os)}re.getNegativePatterns=iC;function sC(t){return t.filter(gg)}re.getPositivePatterns=sC;function oC(t){return t.filter(n=>!Ka(n))}re.getPatternsInsideCurrentDirectory=oC;function uC(t){return t.filter(Ka)}re.getPatternsOutsideCurrentDirectory=uC;function Ka(t){return t.startsWith("..")||t.startsWith("./..")}re.isPatternRelatedToParentDirectory=Ka;function aC(t){return XR(t,{flipBackslashes:!1})}re.getBaseDirectory=aC;function cC(t){return t.includes(hg)}re.hasGlobStar=cC;function mg(t){return t.endsWith("/"+hg)}re.endsWithSlashGlobStar=mg;function lC(t){let n=KR.basename(t);return mg(t)||pg(n)}re.isAffectDepthOfReadingPattern=lC;function fC(t){return t.reduce((n,i)=>n.concat(_g(i)),[])}re.expandPatternsWithBraceExpansion=fC;function _g(t){let n=ja.braces(t,{expand:!0,nodupes:!0});return n.sort((i,o)=>i.length-o.length),n.filter(i=>i!=="")}re.expandBraceExpansion=_g;function hC(t,n){let{parts:i}=ja.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}re.getPatternParts=hC;function yg(t,n){return ja.makeRe(t,n)}re.makeRe=yg;function pC(t,n){return t.map(i=>yg(i,n))}re.convertPatternsToRe=pC;function dC(t,n){return n.some(i=>i.test(t))}re.matchAny=dC;function gC(t){return t.replace(eC,"/")}re.removeDuplicateSlashes=gC});var bg=L(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.merge=void 0;var mC=Ea();function _C(t){let n=mC(t);return t.forEach(i=>{i.once("error",o=>n.emit("error",o))}),n.once("close",()=>wg(t)),n.once("end",()=>wg(t)),n}Is.merge=_C;function wg(t){t.forEach(n=>n.emit("close"))}});var Sg=L(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.isEmpty=pr.isString=void 0;function yC(t){return typeof t=="string"}pr.isString=yC;function vC(t){return t===""}pr.isEmpty=vC});var sn=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 wC=Gp();Xe.array=wC;var bC=jp();Xe.errno=bC;var SC=Kp();Xe.fs=SC;var xC=Qp();Xe.path=xC;var EC=vg();Xe.pattern=EC;var AC=bg();Xe.stream=AC;var RC=Sg();Xe.string=RC});var Rg=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 Lt=sn();function CC(t,n){let i=xg(t,n),o=xg(n.ignore,n),u=Eg(i),c=Ag(i,o),f=u.filter(v=>Lt.pattern.isStaticPattern(v,n)),h=u.filter(v=>Lt.pattern.isDynamicPattern(v,n)),g=Xa(f,c,!1),_=Xa(h,c,!0);return g.concat(_)}ze.generate=CC;function xg(t,n){let i=t;return n.braceExpansion&&(i=Lt.pattern.expandPatternsWithBraceExpansion(i)),n.baseNameMatch&&(i=i.map(o=>o.includes("/")?o:`**/${o}`)),i.map(o=>Lt.pattern.removeDuplicateSlashes(o))}function Xa(t,n,i){let o=[],u=Lt.pattern.getPatternsOutsideCurrentDirectory(t),c=Lt.pattern.getPatternsInsideCurrentDirectory(t),f=za(u),h=za(c);return o.push(...Ya(f,n,i)),"."in h?o.push(Qa(".",c,n,i)):o.push(...Ya(h,n,i)),o}ze.convertPatternsToTasks=Xa;function Eg(t){return Lt.pattern.getPositivePatterns(t)}ze.getPositivePatterns=Eg;function Ag(t,n){return Lt.pattern.getNegativePatterns(t).concat(n).map(Lt.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=Ag;function za(t){let n={};return t.reduce((i,o)=>{let u=Lt.pattern.getBaseDirectory(o);return u in i?i[u].push(o):i[u]=[o],i},n)}ze.groupPatternsByBaseDirectory=za;function Ya(t,n,i){return Object.keys(t).map(o=>Qa(o,t[o],n,i))}ze.convertPatternGroupsToTasks=Ya;function Qa(t,n,i,o){return{dynamic:o,positive:n,negative:i,base:t,patterns:[].concat(n,i.map(Lt.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=Qa});var Pg=L(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.read=void 0;function PC(t,n,i){n.fs.lstat(t,(o,u)=>{if(o!==null){Cg(i,o);return}if(!u.isSymbolicLink()||!n.followSymbolicLink){Za(i,u);return}n.fs.stat(t,(c,f)=>{if(c!==null){if(n.throwErrorOnBrokenSymbolicLink){Cg(i,c);return}Za(i,u);return}n.markSymbolicLink&&(f.isSymbolicLink=()=>!0),Za(i,f)})})}Ls.read=PC;function Cg(t,n){t(n)}function Za(t,n){t(null,n)}});var Tg=L(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.read=void 0;function TC(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}}ks.read=TC});var Og=L(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.createFileSystemAdapter=vn.FILE_SYSTEM_ADAPTER=void 0;var Ds=q("fs");vn.FILE_SYSTEM_ADAPTER={lstat:Ds.lstat,stat:Ds.stat,lstatSync:Ds.lstatSync,statSync:Ds.statSync};function OC(t){return t===void 0?vn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},vn.FILE_SYSTEM_ADAPTER),t)}vn.createFileSystemAdapter=OC});var Ig=L(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var IC=Og(),Va=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=IC.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}};Ja.default=Va});var Fn=L(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.statSync=wn.stat=wn.Settings=void 0;var Lg=Pg(),LC=Tg(),ec=Ig();wn.Settings=ec.default;function kC(t,n,i){if(typeof n=="function"){Lg.read(t,tc(),n);return}Lg.read(t,tc(n),i)}wn.stat=kC;function DC(t,n){let i=tc(n);return LC.read(t,i)}wn.statSync=DC;function tc(t={}){return t instanceof ec.default?t:new ec.default(t)}});var Ng=L((QL,Dg)=>{var kg;Dg.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(kg||(kg=Promise.resolve())).then(t).catch(n=>setTimeout(()=>{throw n},0))});var Mg=L((ZL,$g)=>{$g.exports=$C;var NC=Ng();function $C(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?NC(_):_()}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,x){h(_,v,x)})}):f(null),c=!1}});var nc=L($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Ns=process.versions.node.split(".");if(Ns[0]===void 0||Ns[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Fg=Number.parseInt(Ns[0],10),MC=Number.parseInt(Ns[1],10),qg=10,FC=10,qC=Fg>qg,HC=Fg===qg&&MC>=FC;$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES=qC||HC});var Hg=L(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.createDirentFromStats=void 0;var rc=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 BC(t,n){return new rc(t,n)}Ms.createDirentFromStats=BC});var ic=L(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.fs=void 0;var WC=Hg();Fs.fs=WC});var sc=L(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.joinPathSegments=void 0;function UC(t,n,i){return t.endsWith(i)?t+n:t+i+n}qs.joinPathSegments=UC});var Kg=L(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.readdir=bn.readdirWithFileTypes=bn.read=void 0;var GC=Fn(),Bg=Mg(),jC=nc(),Wg=ic(),Ug=sc();function KC(t,n,i){if(!n.stats&&jC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Gg(t,n,i);return}jg(t,n,i)}bn.read=KC;function Gg(t,n,i){n.fs.readdir(t,{withFileTypes:!0},(o,u)=>{if(o!==null){Hs(i,o);return}let c=u.map(h=>({dirent:h,name:h.name,path:Ug.joinPathSegments(t,h.name,n.pathSegmentSeparator)}));if(!n.followSymbolicLinks){oc(i,c);return}let f=c.map(h=>XC(h,n));Bg(f,(h,g)=>{if(h!==null){Hs(i,h);return}oc(i,g)})})}bn.readdirWithFileTypes=Gg;function XC(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=Wg.fs.createDirentFromStats(t.name,u),i(null,t)})}}function jg(t,n,i){n.fs.readdir(t,(o,u)=>{if(o!==null){Hs(i,o);return}let c=u.map(f=>{let h=Ug.joinPathSegments(t,f,n.pathSegmentSeparator);return g=>{GC.stat(h,n.fsStatSettings,(_,v)=>{if(_!==null){g(_);return}let x={name:f,path:h,dirent:Wg.fs.createDirentFromStats(f,v)};n.stats&&(x.stats=v),g(null,x)})}});Bg(c,(f,h)=>{if(f!==null){Hs(i,f);return}oc(i,h)})})}bn.readdir=jg;function Hs(t,n){t(n)}function oc(t,n){t(null,n)}});var Zg=L(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.readdir=Sn.readdirWithFileTypes=Sn.read=void 0;var zC=Fn(),YC=nc(),Xg=ic(),zg=sc();function QC(t,n){return!n.stats&&YC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Yg(t,n):Qg(t,n)}Sn.read=QC;function Yg(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=Xg.fs.createDirentFromStats(u.name,c)}catch(c){if(n.throwErrorOnBrokenSymbolicLink)throw c}return u})}Sn.readdirWithFileTypes=Yg;function Qg(t,n){return n.fs.readdirSync(t).map(o=>{let u=zg.joinPathSegments(t,o,n.pathSegmentSeparator),c=zC.statSync(u,n.fsStatSettings),f={name:o,path:u,dirent:Xg.fs.createDirentFromStats(o,c)};return n.stats&&(f.stats=c),f})}Sn.readdir=Qg});var Vg=L(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.createFileSystemAdapter=xn.FILE_SYSTEM_ADAPTER=void 0;var dr=q("fs");xn.FILE_SYSTEM_ADAPTER={lstat:dr.lstat,stat:dr.stat,lstatSync:dr.lstatSync,statSync:dr.statSync,readdir:dr.readdir,readdirSync:dr.readdirSync};function ZC(t){return t===void 0?xn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xn.FILE_SYSTEM_ADAPTER),t)}xn.createFileSystemAdapter=ZC});var Jg=L(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var VC=q("path"),JC=Fn(),eP=Vg(),uc=class{constructor(n={}){this._options=n,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=eP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,VC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new JC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(n,i){return n??i}};ac.default=uc});var Bs=L(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.Settings=En.scandirSync=En.scandir=void 0;var em=Kg(),tP=Zg(),cc=Jg();En.Settings=cc.default;function nP(t,n,i){if(typeof n=="function"){em.read(t,lc(),n);return}em.read(t,lc(n),i)}En.scandir=nP;function rP(t,n){let i=lc(n);return tP.read(t,i)}En.scandirSync=rP;function lc(t={}){return t instanceof cc.default?t:new cc.default(t)}});var nm=L((uk,tm)=>{"use strict";function iP(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}}tm.exports=iP});var im=L((ak,fc)=>{"use strict";var sP=nm();function rm(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=sP(oP),u=null,c=null,f=0,h=null,g={push:D,drain:At,saturated:At,pause:v,paused:!1,concurrency:i,running:_,resume:H,idle:O,length:x,getQueue:S,unshift:K,empty:At,kill:te,killAndDrain:z,error:Y};return g;function _(){return f}function v(){g.paused=!0}function x(){for(var N=u,ne=0;N;)N=N.next,ne++;return ne}function S(){for(var N=u,ne=[];N;)ne.push(N.value),N=N.next;return ne}function H(){if(!!g.paused){g.paused=!1;for(var N=0;N{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.joinPathSegments=Ut.replacePathSegmentSeparator=Ut.isAppliedFilter=Ut.isFatalError=void 0;function aP(t,n){return t.errorFilter===null?!0:!t.errorFilter(n)}Ut.isFatalError=aP;function cP(t,n){return t===null||t(n)}Ut.isAppliedFilter=cP;function lP(t,n){return t.split(/[/\\]/).join(n)}Ut.replacePathSegmentSeparator=lP;function fP(t,n,i){return t===""?n:t.endsWith(i)?t+n:t+i+n}Ut.joinPathSegments=fP});var dc=L(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var hP=Ws(),hc=class{constructor(n,i){this._root=n,this._settings=i,this._root=hP.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};pc.default=hc});var _c=L(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var pP=q("events"),dP=Bs(),gP=im(),Us=Ws(),mP=dc(),gc=class extends mP.default{constructor(n,i){super(n,i),this._settings=i,this._scandir=dP.scandir,this._emitter=new pP.EventEmitter,this._queue=gP(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||!Us.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=Us.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),Us.isAppliedFilter(this._settings.entryFilter,n)&&this._emitEntry(n),n.dirent.isDirectory()&&Us.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(o,i===void 0?void 0:n.path)}_emitEntry(n){this._emitter.emit("entry",n)}};mc.default=gc});var sm=L(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var _P=_c(),yc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new _P.default(this._root,this._settings),this._storage=[]}read(n){this._reader.onError(i=>{yP(n,i)}),this._reader.onEntry(i=>{this._storage.push(i)}),this._reader.onEnd(()=>{vP(n,this._storage)}),this._reader.read()}};vc.default=yc;function yP(t,n){t(n)}function vP(t,n){t(null,n)}});var om=L(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var wP=q("stream"),bP=_c(),wc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new bP.default(this._root,this._settings),this._stream=new wP.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}};bc.default=wc});var um=L(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var SP=Bs(),Gs=Ws(),xP=dc(),Sc=class extends xP.default{constructor(){super(...arguments),this._scandir=SP.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(!!Gs.isFatalError(this._settings,n))throw n}_handleEntry(n,i){let o=n.path;i!==void 0&&(n.path=Gs.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),Gs.isAppliedFilter(this._settings.entryFilter,n)&&this._pushToStorage(n),n.dirent.isDirectory()&&Gs.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(o,i===void 0?void 0:n.path)}_pushToStorage(n){this._storage.push(n)}};xc.default=Sc});var am=L(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var EP=um(),Ec=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new EP.default(this._root,this._settings)}read(){return this._reader.read()}};Ac.default=Ec});var cm=L(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var AP=q("path"),RP=Bs(),Rc=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,AP.sep),this.fsScandirSettings=new RP.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}};Cc.default=Rc});var Ks=L(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Settings=Gt.walkStream=Gt.walkSync=Gt.walk=void 0;var lm=sm(),CP=om(),PP=am(),Pc=cm();Gt.Settings=Pc.default;function TP(t,n,i){if(typeof n=="function"){new lm.default(t,js()).read(n);return}new lm.default(t,js(n)).read(i)}Gt.walk=TP;function OP(t,n){let i=js(n);return new PP.default(t,i).read()}Gt.walkSync=OP;function IP(t,n){let i=js(n);return new CP.default(t,i).read()}Gt.walkStream=IP;function js(t={}){return t instanceof Pc.default?t:new Pc.default(t)}});var Xs=L(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var LP=q("path"),kP=Fn(),fm=sn(),Tc=class{constructor(n){this._settings=n,this._fsStatSettings=new kP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(n){return LP.resolve(this._settings.cwd,n)}_makeEntry(n,i){let o={name:i,path:i,dirent:fm.fs.createDirentFromStats(i,n)};return this._settings.stats&&(o.stats=n),o}_isFatalError(n){return!fm.errno.isEnoentCodeError(n)&&!this._settings.suppressErrors}};Oc.default=Tc});var kc=L(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var DP=q("stream"),NP=Fn(),$P=Ks(),MP=Xs(),Ic=class extends MP.default{constructor(){super(...arguments),this._walkStream=$P.walkStream,this._stat=NP.stat}dynamic(n,i){return this._walkStream(n,i)}static(n,i){let o=n.map(this._getFullEntryPath,this),u=new DP.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))})}};Lc.default=Ic});var hm=L(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});var FP=Ks(),qP=Xs(),HP=kc(),Dc=class extends qP.default{constructor(){super(...arguments),this._walkAsync=FP.walk,this._readerStream=new HP.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))})}};Nc.default=Dc});var pm=L(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var _i=sn(),$c=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 _i.pattern.getPatternParts(n,this._micromatchOptions).map(o=>_i.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:_i.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(n){return _i.array.splitWhen(n,i=>i.dynamic&&_i.pattern.hasGlobStar(i.pattern))}};Mc.default=$c});var dm=L(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var BP=pm(),Fc=class extends BP.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}};qc.default=Fc});var gm=L(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var zs=sn(),WP=dm(),Hc=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 WP.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)}};Bc.default=Hc});var mm=L(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var qn=sn(),Wc=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let o=qn.pattern.convertPatternsToRe(n,this._micromatchOptions),u=qn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return c=>this._filter(c,o,u)}_filter(n,i,o){let u=qn.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=qn.path.makeAbsolute(this._settings.cwd,n);return qn.pattern.matchAny(o,i)}_isMatchToPatterns(n,i,o){let u=qn.pattern.matchAny(n,i);return!u&&o?qn.pattern.matchAny(n+"/",i):u}};Uc.default=Wc});var _m=L(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var UP=sn(),Gc=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return UP.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};jc.default=Gc});var vm=L(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var ym=sn(),Kc=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=ym.path.makeAbsolute(this._settings.cwd,i),i=ym.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};Xc.default=Kc});var Ys=L(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var GP=q("path"),jP=gm(),KP=mm(),XP=_m(),zP=vm(),zc=class{constructor(n){this._settings=n,this.errorFilter=new XP.default(this._settings),this.entryFilter=new KP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new jP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new zP.default(this._settings)}_getRootDirectory(n){return GP.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}}};Yc.default=zc});var wm=L(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var YP=hm(),QP=Ys(),Qc=class extends QP.default{constructor(){super(...arguments),this._reader=new YP.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)}};Zc.default=Qc});var bm=L(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var ZP=q("stream"),VP=kc(),JP=Ys(),Vc=class extends JP.default{constructor(){super(...arguments),this._reader=new VP.default(this._settings)}read(n){let i=this._getRootDirectory(n),o=this._getReaderOptions(n),u=this.api(i,n,o),c=new ZP.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)}};Jc.default=Vc});var Sm=L(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var eT=Fn(),tT=Ks(),nT=Xs(),el=class extends nT.default{constructor(){super(...arguments),this._walkSync=tT.walkSync,this._statSync=eT.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)}};tl.default=el});var xm=L(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var rT=Sm(),iT=Ys(),nl=class extends iT.default{constructor(){super(...arguments),this._reader=new rT.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)}};rl.default=nl});var Em=L(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gr=q("fs"),sT=q("os"),oT=Math.max(sT.cpus().length,1);mr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gr.lstat,lstatSync:gr.lstatSync,stat:gr.stat,statSync:gr.statSync,readdir:gr.readdir,readdirSync:gr.readdirSync};var il=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,oT),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({},mr.DEFAULT_FILE_SYSTEM_ADAPTER),n)}};mr.default=il});var al=L((kk,Rm)=>{"use strict";var Am=Rg(),uT=wm(),aT=bm(),cT=xm(),sl=Em(),Rt=sn();async function ol(t,n){kt(t);let i=ul(t,uT.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){kt(_);let x=ul(_,cT.default,v);return Rt.array.flatten(x)}t.sync=n;function i(_,v){kt(_);let x=ul(_,aT.default,v);return Rt.stream.merge(x)}t.stream=i;function o(_,v){kt(_);let x=[].concat(_),S=new sl.default(v);return Am.generate(x,S)}t.generateTasks=o;function u(_,v){kt(_);let x=new sl.default(v);return Rt.pattern.isDynamicPattern(_,x)}t.isDynamicPattern=u;function c(_){return kt(_),Rt.path.escape(_)}t.escapePath=c;function f(_){return kt(_),Rt.path.convertPathToPattern(_)}t.convertPathToPattern=f;let h;(function(_){function v(S){return kt(S),Rt.path.escapePosixPath(S)}_.escapePath=v;function x(S){return kt(S),Rt.path.convertPosixPathToPattern(S)}_.convertPathToPattern=x})(h=t.posix||(t.posix={}));let g;(function(_){function v(S){return kt(S),Rt.path.escapeWindowsPath(S)}_.escapePath=v;function x(S){return kt(S),Rt.path.convertWindowsPathToPattern(S)}_.convertPathToPattern=x})(g=t.win32||(t.win32={}))})(ol||(ol={}));function ul(t,n,i){let o=[].concat(t),u=new sl.default(i),c=Am.generate(o,u),f=new n(u);return c.map(f.read,f)}function kt(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")}Rm.exports=ol});var Pm=L(Hn=>{"use strict";var{promisify:lT}=q("util"),Cm=q("fs");async function cl(t,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await lT(Cm[t])(i))[n]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}function ll(t,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return Cm[t](i)[n]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}Hn.isFile=cl.bind(null,"stat","isFile");Hn.isDirectory=cl.bind(null,"stat","isDirectory");Hn.isSymlink=cl.bind(null,"lstat","isSymbolicLink");Hn.isFileSync=ll.bind(null,"statSync","isFile");Hn.isDirectorySync=ll.bind(null,"statSync","isDirectory");Hn.isSymlinkSync=ll.bind(null,"lstatSync","isSymbolicLink")});var km=L((Nk,fl)=>{"use strict";var Bn=q("path"),Tm=Pm(),Om=t=>t.length>1?`{${t.join(",")}}`:t[0],Im=(t,n)=>{let i=t[0]==="!"?t.slice(1):t;return Bn.isAbsolute(i)?i:Bn.join(n,i)},fT=(t,n)=>Bn.extname(t)?`**/${t}`:`**/${t}.${Om(n)}`,Lm=(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=>Bn.posix.join(t,fT(i,n.extensions))):n.files?n.files.map(i=>Bn.posix.join(t,`**/${i}`)):n.extensions?[Bn.posix.join(t,`**/*.${Om(n.extensions)}`)]:[Bn.posix.join(t,"**")]};fl.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 Tm.isDirectory(Im(o,n.cwd))?Lm(o,n):o));return[].concat.apply([],i)};fl.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=>Tm.isDirectorySync(Im(o,n.cwd))?Lm(o,n):o);return[].concat.apply([],i)}});var Um=L(($k,Wm)=>{function Dm(t){return Array.isArray(t)?t:[t]}var Fm="",Nm=" ",hl="\\",hT=/^\s+$/,pT=/(?:[^\\]|^)\\$/,dT=/^\\!/,gT=/^\\#/,mT=/\r?\n/g,_T=/^\.*\/|^\.+$/,pl="/",qm="node-ignore";typeof Symbol<"u"&&(qm=Symbol.for("node-ignore"));var $m=qm,yT=(t,n,i)=>Object.defineProperty(t,n,{value:i}),vT=/([0-z])-([0-z])/g,Hm=()=>!1,wT=t=>t.replace(vT,(n,i,o)=>i.charCodeAt(0)<=o.charCodeAt(0)?n:Fm),bT=t=>{let{length:n}=t;return t.slice(0,n-n%2)},ST=[[/\\?\s+$/,t=>t.indexOf("\\")===0?Nm:Fm],[/\\\s/g,()=>Nm],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,n,i)=>n+6{let o=i.replace(/\\\*/g,"[^\\/]*");return n+o}],[/\\\\\\(?=[$.|*+(){^])/g,()=>hl],[/\\\\/g,()=>hl],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,n,i,o,u)=>n===hl?`\\[${i}${bT(o)}${u}`:u==="]"&&o.length%2===0?`[${wT(i)}${o}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,n)=>`${n?`${n}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Mm=Object.create(null),xT=(t,n)=>{let i=Mm[t];return i||(i=ST.reduce((o,u)=>o.replace(u[0],u[1].bind(t)),t),Mm[t]=i),n?new RegExp(i,"i"):new RegExp(i)},ml=t=>typeof t=="string",ET=t=>t&&ml(t)&&!hT.test(t)&&!pT.test(t)&&t.indexOf("#")!==0,AT=t=>t.split(mT),dl=class{constructor(n,i,o,u){this.origin=n,this.pattern=i,this.negative=o,this.regex=u}},RT=(t,n)=>{let i=t,o=!1;t.indexOf("!")===0&&(o=!0,t=t.substr(1)),t=t.replace(dT,"!").replace(gT,"#");let u=xT(t,n);return new dl(i,t,o,u)},CT=(t,n)=>{throw new n(t)},on=(t,n,i)=>ml(t)?t?on.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),Bm=t=>_T.test(t);on.isNotRelative=Bm;on.convert=t=>t;var gl=class{constructor({ignorecase:n=!0,ignoreCase:i=n,allowRelativePaths:o=!1}={}){yT(this,$m,!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[$m]){this._rules=this._rules.concat(n._rules),this._added=!0;return}if(ET(n)){let i=RT(n,this._ignoreCase);this._added=!0,this._rules.push(i)}}add(n){return this._added=!1,Dm(ml(n)?AT(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&&on.convert(n);return on(c,n,this._allowRelativePaths?Hm:CT),this._t(c,i,o,u)}_t(n,i,o,u){if(n in i)return i[n];if(u||(u=n.split(pl)),u.pop(),!u.length)return i[n]=this._testOne(n,o);let c=this._t(u.join(pl)+pl,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 Dm(n).filter(this.createFilter())}test(n){return this._test(n,this._testCache,!0)}},Qs=t=>new gl(t),PT=t=>on(t&&on.convert(t),t,Hm);Qs.isPathValid=PT;Qs.default=Qs;Wm.exports=Qs;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,"/");on.convert=t;let n=/^[a-z]:\//i;on.isNotRelative=i=>n.test(i)||Bm(i)}});var wr=L((vr,bi)=>{(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,x=4,S=1,H=2,O=1,D=2,K=4,W=8,te=16,z=32,Y=64,N=128,ne=256,Q=512,G=30,ue="...",Pe=800,I=16,ve=1,me=2,$t=3,A=1/0,R=9007199254740991,Be=17976931348623157e292,fe=0/0,Ie=4294967295,gt=Ie-1,Ye=Ie>>>1,Gn=[["ary",N],["bind",O],["bindKey",D],["curry",W],["curryRight",te],["flip",Q],["partial",z],["partialRight",Y],["rearg",ne]],an="[object Arguments]",Kt="[object Array]",Xt="[object AsyncFunction]",oe="[object Boolean]",Mt="[object Date]",tu="[object DOMException]",F="[object Error]",_e="[object Function]",$="[object GeneratorFunction]",Z="[object Map]",we="[object Number]",We="[object Null]",be="[object Object]",jn="[object Promise]",Kn="[object Proxy]",Xr="[object RegExp]",Ct="[object Set]",zr="[object String]",Li="[object Symbol]",yv="[object Undefined]",Yr="[object WeakMap]",vv="[object WeakSet]",Qr="[object ArrayBuffer]",Xn="[object DataView]",nu="[object Float32Array]",ru="[object Float64Array]",iu="[object Int8Array]",su="[object Int16Array]",ou="[object Int32Array]",uu="[object Uint8Array]",au="[object Uint8ClampedArray]",cu="[object Uint16Array]",lu="[object Uint32Array]",wv=/\b__p \+= '';/g,bv=/\b(__p \+=) '' \+/g,Sv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jl=/&(?:amp|lt|gt|quot|#39);/g,ef=/[&<>"']/g,xv=RegExp(Jl.source),Ev=RegExp(ef.source),Av=/<%-([\s\S]+?)%>/g,Rv=/<%([\s\S]+?)%>/g,tf=/<%=([\s\S]+?)%>/g,Cv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pv=/^\w*$/,Tv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fu=/[\\^$.*+?()[\]{}|]/g,Ov=RegExp(fu.source),hu=/^\s+/,Iv=/\s/,Lv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kv=/\{\n\/\* \[wrapped with (.+)\] \*/,Dv=/,? & /,Nv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$v=/[()=,{}\[\]\/\s]/,Mv=/\\(\\)?/g,Fv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nf=/\w*$/,qv=/^[-+]0x[0-9a-f]+$/i,Hv=/^0b[01]+$/i,Bv=/^\[object .+?Constructor\]$/,Wv=/^0o[0-7]+$/i,Uv=/^(?:0|[1-9]\d*)$/,Gv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ki=/($^)/,jv=/['\n\r\u2028\u2029\\]/g,Di="\\ud800-\\udfff",Kv="\\u0300-\\u036f",Xv="\\ufe20-\\ufe2f",zv="\\u20d0-\\u20ff",rf=Kv+Xv+zv,sf="\\u2700-\\u27bf",of="a-z\\xdf-\\xf6\\xf8-\\xff",Yv="\\xac\\xb1\\xd7\\xf7",Qv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zv="\\u2000-\\u206f",Vv=" \\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",uf="A-Z\\xc0-\\xd6\\xd8-\\xde",af="\\ufe0e\\ufe0f",cf=Yv+Qv+Zv+Vv,pu="['\u2019]",Jv="["+Di+"]",lf="["+cf+"]",Ni="["+rf+"]",ff="\\d+",ew="["+sf+"]",hf="["+of+"]",pf="[^"+Di+cf+ff+sf+of+uf+"]",du="\\ud83c[\\udffb-\\udfff]",tw="(?:"+Ni+"|"+du+")",df="[^"+Di+"]",gu="(?:\\ud83c[\\udde6-\\uddff]){2}",mu="[\\ud800-\\udbff][\\udc00-\\udfff]",zn="["+uf+"]",gf="\\u200d",mf="(?:"+hf+"|"+pf+")",nw="(?:"+zn+"|"+pf+")",_f="(?:"+pu+"(?:d|ll|m|re|s|t|ve))?",yf="(?:"+pu+"(?:D|LL|M|RE|S|T|VE))?",vf=tw+"?",wf="["+af+"]?",rw="(?:"+gf+"(?:"+[df,gu,mu].join("|")+")"+wf+vf+")*",iw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bf=wf+vf+rw,ow="(?:"+[ew,gu,mu].join("|")+")"+bf,uw="(?:"+[df+Ni+"?",Ni,gu,mu,Jv].join("|")+")",aw=RegExp(pu,"g"),cw=RegExp(Ni,"g"),_u=RegExp(du+"(?="+du+")|"+uw+bf,"g"),lw=RegExp([zn+"?"+hf+"+"+_f+"(?="+[lf,zn,"$"].join("|")+")",nw+"+"+yf+"(?="+[lf,zn+mf,"$"].join("|")+")",zn+"?"+mf+"+"+_f,zn+"+"+yf,sw,iw,ff,ow].join("|"),"g"),fw=RegExp("["+gf+Di+rf+af+"]"),hw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pw=["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"],dw=-1,Ae={};Ae[nu]=Ae[ru]=Ae[iu]=Ae[su]=Ae[ou]=Ae[uu]=Ae[au]=Ae[cu]=Ae[lu]=!0,Ae[an]=Ae[Kt]=Ae[Qr]=Ae[oe]=Ae[Xn]=Ae[Mt]=Ae[F]=Ae[_e]=Ae[Z]=Ae[we]=Ae[be]=Ae[Xr]=Ae[Ct]=Ae[zr]=Ae[Yr]=!1;var Ee={};Ee[an]=Ee[Kt]=Ee[Qr]=Ee[Xn]=Ee[oe]=Ee[Mt]=Ee[nu]=Ee[ru]=Ee[iu]=Ee[su]=Ee[ou]=Ee[Z]=Ee[we]=Ee[be]=Ee[Xr]=Ee[Ct]=Ee[zr]=Ee[Li]=Ee[uu]=Ee[au]=Ee[cu]=Ee[lu]=!0,Ee[F]=Ee[_e]=Ee[Yr]=!1;var gw={\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"},mw={"&":"&","<":"<",">":">",'"':""","'":"'"},_w={"&":"&","<":"<",">":">",""":'"',"'":"'"},yw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vw=parseFloat,ww=parseInt,Sf=typeof global=="object"&&global&&global.Object===Object&&global,bw=typeof self=="object"&&self&&self.Object===Object&&self,Fe=Sf||bw||Function("return this")(),yu=typeof vr=="object"&&vr&&!vr.nodeType&&vr,Cn=yu&&typeof bi=="object"&&bi&&!bi.nodeType&&bi,xf=Cn&&Cn.exports===yu,vu=xf&&Sf.process,mt=function(){try{var w=Cn&&Cn.require&&Cn.require("util").types;return w||vu&&vu.binding&&vu.binding("util")}catch{}}(),Ef=mt&&mt.isArrayBuffer,Af=mt&&mt.isDate,Rf=mt&&mt.isMap,Cf=mt&&mt.isRegExp,Pf=mt&&mt.isSet,Tf=mt&&mt.isTypedArray;function st(w,C,E){switch(E.length){case 0:return w.call(C);case 1:return w.call(C,E[0]);case 2:return w.call(C,E[0],E[1]);case 3:return w.call(C,E[0],E[1],E[2])}return w.apply(C,E)}function Sw(w,C,E,B){for(var ie=-1,ge=w==null?0:w.length;++ie-1}function wu(w,C,E){for(var B=-1,ie=w==null?0:w.length;++B-1;);return E}function Mf(w,C){for(var E=w.length;E--&&Yn(C,w[E],0)>-1;);return E}function Iw(w,C){for(var E=w.length,B=0;E--;)w[E]===C&&++B;return B}var Lw=Eu(gw),kw=Eu(mw);function Dw(w){return"\\"+yw[w]}function Nw(w,C){return w==null?t:w[C]}function Qn(w){return fw.test(w)}function $w(w){return hw.test(w)}function Mw(w){for(var C,E=[];!(C=w.next()).done;)E.push(C.value);return E}function Pu(w){var C=-1,E=Array(w.size);return w.forEach(function(B,ie){E[++C]=[ie,B]}),E}function Ff(w,C){return function(E){return w(C(E))}}function fn(w,C){for(var E=-1,B=w.length,ie=0,ge=[];++E-1}function Eb(e,r){var s=this.__data__,a=Ji(s,e);return a<0?(++this.size,s.push([e,r])):s[a][1]=r,this}zt.prototype.clear=wb,zt.prototype.delete=bb,zt.prototype.get=Sb,zt.prototype.has=xb,zt.prototype.set=Eb;function Yt(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&_,b=r&v,P=r&x;if(s&&(m=l?s(e,a,l,d):s(e)),m!==t)return m;if(!Te(e))return e;var T=se(e);if(T){if(m=PS(e),!y)return Je(e,m)}else{var k=Ke(e),M=k==_e||k==$;if(yn(e))return wh(e,y);if(k==be||k==an||M&&!l){if(m=b||M?{}:qh(e),!y)return b?_S(e,Hb(m,e)):mS(e,Qf(m,e))}else{if(!Ee[k])return l?e:{};m=TS(e,k,y)}}d||(d=new Tt);var U=d.get(e);if(U)return U;d.set(e,m),dp(e)?e.forEach(function(J){m.add(wt(J,r,s,J,e,d))}):hp(e)&&e.forEach(function(J,he){m.set(he,wt(J,r,s,he,e,d))});var V=P?b?ea:Ju:b?tt:qe,ce=T?t:V(e);return _t(ce||e,function(J,he){ce&&(he=J,J=e[he]),ri(m,he,wt(J,r,s,he,e,d))}),m}function Bb(e){var r=qe(e);return function(s){return Zf(s,e,r)}}function Zf(e,r,s){var a=s.length;if(e==null)return!a;for(e=xe(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 Vf(e,r,s){if(typeof e!="function")throw new yt(u);return li(function(){e.apply(t,s)},r)}function ii(e,r,s,a){var l=-1,d=$i,m=!0,y=e.length,b=[],P=r.length;if(!y)return b;s&&(r=Re(r,ot(s))),a?(d=wu,m=!1):r.length>=i&&(d=Zr,m=!1,r=new On(r));e:for(;++ll?0:l+s),a=a===t||a>l?l:ae(a),a<0&&(a+=l),a=s>a?0:mp(a);s0&&s(y)?r>1?Ue(y,r-1,s,a,l):ln(l,y):a||(l[l.length]=y)}return l}var Nu=Rh(),th=Rh(!0);function Ft(e,r){return e&&Nu(e,r,qe)}function $u(e,r){return e&&th(e,r,qe)}function ts(e,r){return cn(r,function(s){return en(e[s])})}function Ln(e,r){r=mn(r,e);for(var s=0,a=r.length;e!=null&&sr}function Gb(e,r){return e!=null&&Se.call(e,r)}function jb(e,r){return e!=null&&r in xe(e)}function Kb(e,r,s){return e>=je(r,s)&&e=120&&T.length>=120)?new On(m&&T):t}T=e[0];var k=-1,M=y[0];e:for(;++k-1;)y!==e&&Ki.call(y,b,1),Ki.call(e,b,1);return e}function hh(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;Jt(l)?Ki.call(e,l,1):Ku(e,l)}}return e}function Uu(e,r){return e+Yi(Kf()*(r-e+1))}function sS(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 Gu(e,r){var s="";if(!e||r<1||r>R)return s;do r%2&&(s+=e),r=Yi(r/2),r&&(e+=e);while(r);return s}function le(e,r){return ua(Wh(e,r,nt),e+"")}function oS(e){return Yf(or(e))}function uS(e,r){var s=or(e);return hs(s,In(r,0,s.length))}function ui(e,r,s,a){if(!Te(e))return e;r=mn(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:bS(e);if(P)return Fi(P);m=!1,l=Zr,b=new On}else b=r?[]:y;e:for(;++a=a?e:bt(e,r,s)}var vh=Vw||function(e){return Fe.clearTimeout(e)};function wh(e,r){if(r)return e.slice();var s=e.length,a=Bf?Bf(s):new e.constructor(s);return e.copy(a),a}function Qu(e){var r=new e.constructor(e.byteLength);return new Gi(r).set(new Gi(e)),r}function hS(e,r){var s=r?Qu(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function pS(e){var r=new e.constructor(e.source,nf.exec(e));return r.lastIndex=e.lastIndex,r}function dS(e){return ni?xe(ni.call(e)):{}}function bh(e,r){var s=r?Qu(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Sh(e,r){if(e!==r){var s=e!==t,a=e===null,l=e===e,d=at(e),m=r!==t,y=r===null,b=r===r,P=at(r);if(!y&&!P&&!d&&e>r||d&&m&&b&&!y&&!P||a&&m&&b||!s&&b||!l)return 1;if(!a&&!d&&!P&&e=y)return b;var P=s[a];return b*(P=="desc"?-1:1)}}return e.index-r.index}function xh(e,r,s,a){for(var l=-1,d=e.length,m=s.length,y=-1,b=r.length,P=Me(d-m,0),T=E(b+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=xe(r);++a-1?l[d?r[m]:m]:t}}function Th(e){return Vt(function(r){var s=r.length,a=s,l=vt.prototype.thru;for(e&&r.reverse();a--;){var d=r[a];if(typeof d!="function")throw new yt(u);if(l&&!m&&ls(d)=="wrapper")var m=new vt([],!0)}for(a=m?a:s;++a1&&de.reverse(),T&&by))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 On:t;for(d.set(e,r),d.set(r,e);++k1?"& ":"")+r[a],r=r.join(s>2?", ":" "),e.replace(Lv,`{ +var plugin=(()=>{var ZR=Object.create;var ks=Object.defineProperty;var JR=Object.getOwnPropertyDescriptor;var eP=Object.getOwnPropertyNames;var tP=Object.getPrototypeOf,nP=Object.prototype.hasOwnProperty;var N=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var T=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),$d=(e,n)=>{for(var i in n)ks(e,i,{get:n[i],enumerable:!0})},Dd=(e,n,i,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of eP(n))!nP.call(e,a)&&a!==i&&ks(e,a,{get:()=>n[a],enumerable:!(s=JR(n,a))||s.enumerable});return e};var me=(e,n,i)=>(i=e!=null?ZR(tP(e)):{},Dd(n||!e||!e.__esModule?ks(i,"default",{value:e,enumerable:!0}):i,e)),rP=e=>Dd(ks({},"__esModule",{value:!0}),e);var Hd=T((kD,Bd)=>{Bd.exports={description:"Configurable, extensible build tools for modern single and multi-page web applications",logo:"https://cdn.roots.io/app/uploads/logo-bud.svg",name:"bud.js",organization:{favicon:"https://roots.io/favicon.ico",name:"Roots Software Foundation LLC",site:"https://roots.io",twitter:"https://twitter.com/rootswp"},sponsors:[{image:"https://cdn.roots.io/app/uploads/km-digital.svg",title:"KM Digital",url:"https://k-m.com/"},{image:"https://cdn.roots.io/app/uploads/carrot.svg",title:"Carrot",url:"https://carrot.com/"},{image:"https://cdn.roots.io/app/uploads/wordpress.svg",title:"WordPress.com",url:"https://wordpress.com/"},{image:"https://cdn.roots.io/app/uploads/worksite-safety.svg",title:"Worksite Safety",url:"https://worksitesafety.ca/careers/"},{image:"https://cdn.roots.io/app/uploads/copia-digital.svg",title:"Copia Digital",url:"https://www.copiadigital.com/"},{image:"https://cdn.roots.io/app/uploads/freave.svg",title:"Freave",url:"https://www.freave.com/"}],url:{discourse:"https://discourse.roots.io/c/bud/24",docs:"https://bud.js.org",git:"git@github.com:roots/bud",web:"https://github.com/roots/bud"}}});var Vu=T((zD,Qd)=>{"use strict";var iP=N("stream"),Xd=iP.PassThrough,sP=Array.prototype.slice;Qd.exports=oP;function oP(){let e=[],n=sP.call(arguments),i=!1,s=n[n.length-1];s&&!Array.isArray(s)&&s.pipe==null?n.pop():s={};let a=s.end!==!1,c=s.pipeError===!0;s.objectMode==null&&(s.objectMode=!0),s.highWaterMark==null&&(s.highWaterMark=64*1024);let l=Xd(s);function f(){for(let _=0,x=arguments.length;_0||(i=!1,h())}function M(A){function $(){A.removeListener("merge2UnpipeEnd",$),A.removeListener("end",$),c&&A.removeListener("error",U),b()}function U(H){l.emit("error",H)}if(A._readableState.endEmitted)return b();A.on("merge2UnpipeEnd",$),A.on("end",$),c&&A.on("error",U),A.pipe(l,{end:!1}),A.resume()}for(let A=0;A<_.length;A++)M(_[A]);b()}function m(){i=!1,l.emit("queueDrain"),a&&l.end()}return l.setMaxListeners(0),l.add=f,l.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),n.length&&f.apply(null,n),l}function Yd(e,n){if(Array.isArray(e))for(let i=0,s=e.length;i{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.splitWhen=dr.flatten=void 0;function aP(e){return e.reduce((n,i)=>[].concat(n,i),[])}dr.flatten=aP;function uP(e,n){let i=[[]],s=0;for(let a of e)n(a)?(s++,i[s]=[]):i[s].push(a);return i}dr.splitWhen=uP});var Zd=T(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.isEnoentCodeError=void 0;function cP(e){return e.code==="ENOENT"}Ns.isEnoentCodeError=cP});var Jd=T($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.createDirentFromStats=void 0;var Zu=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 lP(e,n){return new Zu(e,n)}$s.createDirentFromStats=lP});var rg=T(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.convertPosixPathToPattern=De.convertWindowsPathToPattern=De.convertPathToPattern=De.escapePosixPath=De.escapeWindowsPath=De.escape=De.removeLeadingDotSegment=De.makeAbsolute=De.unixify=void 0;var fP=N("os"),pP=N("path"),eg=fP.platform()==="win32",hP=2,dP=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,gP=/(\\?)([(){}]|^!|[!+@](?=\())/g,mP=/^\\\\([.?])/,yP=/\\(?![!()+@{}])/g;function _P(e){return e.replace(/\\/g,"/")}De.unixify=_P;function vP(e,n){return pP.resolve(e,n)}De.makeAbsolute=vP;function bP(e){if(e.charAt(0)==="."){let n=e.charAt(1);if(n==="/"||n==="\\")return e.slice(hP)}return e}De.removeLeadingDotSegment=bP;De.escape=eg?Ju:ec;function Ju(e){return e.replace(gP,"\\$2")}De.escapeWindowsPath=Ju;function ec(e){return e.replace(dP,"\\$2")}De.escapePosixPath=ec;De.convertPathToPattern=eg?tg:ng;function tg(e){return Ju(e).replace(mP,"//$1").replace(yP,"/")}De.convertWindowsPathToPattern=tg;function ng(e){return ec(e)}De.convertPosixPathToPattern=ng});var sg=T((ZD,ig)=>{ig.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 ug=T((JD,ag)=>{var SP=sg(),og={"{":"}","(":")","[":"]"},wP=function(e){if(e[0]==="!")return!0;for(var n=0,i=-2,s=-2,a=-2,c=-2,l=-2;nn&&(l===-1||l>s||(l=e.indexOf("\\",n),l===-1||l>s)))||a!==-1&&e[n]==="{"&&e[n+1]!=="}"&&(a=e.indexOf("}",n),a>n&&(l=e.indexOf("\\",n),l===-1||l>a))||c!==-1&&e[n]==="("&&e[n+1]==="?"&&/[:!=]/.test(e[n+2])&&e[n+3]!==")"&&(c=e.indexOf(")",n),c>n&&(l=e.indexOf("\\",n),l===-1||l>c))||i!==-1&&e[n]==="("&&e[n+1]!=="|"&&(ii&&(l=e.indexOf("\\",i),l===-1||l>c))))return!0;if(e[n]==="\\"){var f=e[n+1];n+=2;var h=og[f];if(h){var m=e.indexOf(h,n);m!==-1&&(n=m+1)}if(e[n]==="!")return!0}else n++}return!1},xP=function(e){if(e[0]==="!")return!0;for(var n=0;n{"use strict";var EP=ug(),AP=N("path").posix.dirname,CP=N("os").platform()==="win32",tc="/",RP=/\\/g,PP=/[\{\[].*[\}\]]$/,TP=/(^|[^\\])([\{\[]|\([^\)]+$)/,OP=/\\([\!\*\?\|\[\]\(\)\{\}])/g;cg.exports=function(n,i){var s=Object.assign({flipBackslashes:!0},i);s.flipBackslashes&&CP&&n.indexOf(tc)<0&&(n=n.replace(RP,tc)),PP.test(n)&&(n+=tc),n+="a";do n=AP(n);while(EP(n)||TP.test(n));return n.replace(OP,"$1")}});var Ds=T(Et=>{"use strict";Et.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Et.find=(e,n)=>e.nodes.find(i=>i.type===n);Et.exceedsLimit=(e,n,i=1,s)=>s===!1||!Et.isInteger(e)||!Et.isInteger(n)?!1:(Number(n)-Number(e))/Number(i)>=s;Et.escapeNode=(e,n=0,i)=>{let s=e.nodes[n];!s||(i&&s.type===i||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)};Et.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;Et.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Et.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Et.reduce=e=>e.reduce((n,i)=>(i.type==="text"&&n.push(i.value),i.type==="range"&&(i.type="text"),n),[]);Et.flatten=(...e)=>{let n=[],i=s=>{for(let a=0;a{"use strict";var fg=Ds();pg.exports=(e,n={})=>{let i=(s,a={})=>{let c=n.escapeInvalid&&fg.isInvalidBrace(a),l=s.invalid===!0&&n.escapeInvalid===!0,f="";if(s.value)return(c||l)&&fg.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let h of s.nodes)f+=i(h);return f};return i(e)}});var dg=T((rM,hg)=>{"use strict";hg.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var xg=T((iM,wg)=>{"use strict";var gg=dg(),Dn=(e,n,i)=>{if(gg(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(n===void 0||e===n)return String(e);if(gg(n)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let s={relaxZeros:!0,...i};typeof s.strictZeros=="boolean"&&(s.relaxZeros=s.strictZeros===!1);let a=String(s.relaxZeros),c=String(s.shorthand),l=String(s.capture),f=String(s.wrap),h=e+":"+n+"="+a+c+l+f;if(Dn.cache.hasOwnProperty(h))return Dn.cache[h].result;let m=Math.min(e,n),_=Math.max(e,n);if(Math.abs(m-_)===1){let $=e+"|"+n;return s.capture?`(${$})`:s.wrap===!1?$:`(?:${$})`}let x=Sg(e)||Sg(n),b={min:e,max:n,a:m,b:_},M=[],A=[];if(x&&(b.isPadded=x,b.maxLen=String(b.max).length),m<0){let $=_<0?Math.abs(_):1;A=mg($,Math.abs(m),b,s),m=b.a=0}return _>=0&&(M=mg(m,_,b,s)),b.negatives=A,b.positives=M,b.result=IP(A,M,s),s.capture===!0?b.result=`(${b.result})`:s.wrap!==!1&&M.length+A.length>1&&(b.result=`(?:${b.result})`),Dn.cache[h]=b,b.result};function IP(e,n,i){let s=nc(e,n,"-",!1,i)||[],a=nc(n,e,"",!1,i)||[],c=nc(e,n,"-?",!0,i)||[];return s.concat(c).concat(a).join("|")}function LP(e,n){let i=1,s=1,a=_g(e,i),c=new Set([n]);for(;e<=a&&a<=n;)c.add(a),i+=1,a=_g(e,i);for(a=vg(n+1,s)-1;e1&&f.count.pop(),f.count.push(_.count[0]),f.string=f.pattern+bg(f.count),l=m+1;continue}i.isPadded&&(x=MP(m,i,s)),_.string=x+_.pattern+bg(_.count),c.push(_),l=m+1,f=_}return c}function nc(e,n,i,s,a){let c=[];for(let l of e){let{string:f}=l;!s&&!yg(n,"string",f)&&c.push(i+f),s&&yg(n,"string",f)&&c.push(i+f)}return c}function NP(e,n){let i=[];for(let s=0;sn?1:n>e?-1:0}function yg(e,n,i){return e.some(s=>s[n]===i)}function _g(e,n){return Number(String(e).slice(0,-n)+"9".repeat(n))}function vg(e,n){return e-e%Math.pow(10,n)}function bg(e){let[n=0,i=""]=e;return i||n>1?`{${n+(i?","+i:"")}}`:""}function DP(e,n,i){return`[${e}${n-e===1?"":"-"}${n}]`}function Sg(e){return/^-?(0+)\d/.test(e)}function MP(e,n,i){if(!n.isPadded)return e;let s=Math.abs(n.maxLen-String(e).length),a=i.relaxZeros!==!1;switch(s){case 0:return"";case 1:return a?"0?":"0";case 2:return a?"0{0,2}":"00";default:return a?`0{0,${s}}`:`0{${s}}`}}Dn.cache={};Dn.clearCache=()=>Dn.cache={};wg.exports=Dn});var sc=T((sM,Ig)=>{"use strict";var FP=N("util"),Cg=xg(),Eg=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),qP=e=>n=>e===!0?Number(n):String(n),rc=e=>typeof e=="number"||typeof e=="string"&&e!=="",vi=e=>Number.isInteger(+e),ic=e=>{let n=`${e}`,i=-1;if(n[0]==="-"&&(n=n.slice(1)),n==="0")return!1;for(;n[++i]==="0";);return i>0},BP=(e,n,i)=>typeof e=="string"||typeof n=="string"?!0:i.stringify===!0,HP=(e,n,i)=>{if(n>0){let s=e[0]==="-"?"-":"";s&&(e=e.slice(1)),e=s+e.padStart(s?n-1:n,"0")}return i===!1?String(e):e},Ag=(e,n)=>{let i=e[0]==="-"?"-":"";for(i&&(e=e.slice(1),n--);e.length{e.negatives.sort((l,f)=>lf?1:0),e.positives.sort((l,f)=>lf?1:0);let i=n.capture?"":"?:",s="",a="",c;return e.positives.length&&(s=e.positives.join("|")),e.negatives.length&&(a=`-(${i}${e.negatives.join("|")})`),s&&a?c=`${s}|${a}`:c=s||a,n.wrap?`(${i}${c})`:c},Rg=(e,n,i,s)=>{if(i)return Cg(e,n,{wrap:!1,...s});let a=String.fromCharCode(e);if(e===n)return a;let c=String.fromCharCode(n);return`[${a}-${c}]`},Pg=(e,n,i)=>{if(Array.isArray(e)){let s=i.wrap===!0,a=i.capture?"":"?:";return s?`(${a}${e.join("|")})`:e.join("|")}return Cg(e,n,i)},Tg=(...e)=>new RangeError("Invalid range arguments: "+FP.inspect(...e)),Og=(e,n,i)=>{if(i.strictRanges===!0)throw Tg([e,n]);return[]},UP=(e,n)=>{if(n.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},WP=(e,n,i=1,s={})=>{let a=Number(e),c=Number(n);if(!Number.isInteger(a)||!Number.isInteger(c)){if(s.strictRanges===!0)throw Tg([e,n]);return[]}a===0&&(a=0),c===0&&(c=0);let l=a>c,f=String(e),h=String(n),m=String(i);i=Math.max(Math.abs(i),1);let _=ic(f)||ic(h)||ic(m),x=_?Math.max(f.length,h.length,m.length):0,b=_===!1&&BP(e,n,s)===!1,M=s.transform||qP(b);if(s.toRegex&&i===1)return Rg(Ag(e,x),Ag(n,x),!0,s);let A={negatives:[],positives:[]},$=X=>A[X<0?"negatives":"positives"].push(Math.abs(X)),U=[],H=0;for(;l?a>=c:a<=c;)s.toRegex===!0&&i>1?$(a):U.push(HP(M(a,H),x,b)),a=l?a-i:a+i,H++;return s.toRegex===!0?i>1?GP(A,s):Pg(U,null,{wrap:!1,...s}):U},jP=(e,n,i=1,s={})=>{if(!vi(e)&&e.length>1||!vi(n)&&n.length>1)return Og(e,n,s);let a=s.transform||(b=>String.fromCharCode(b)),c=`${e}`.charCodeAt(0),l=`${n}`.charCodeAt(0),f=c>l,h=Math.min(c,l),m=Math.max(c,l);if(s.toRegex&&i===1)return Rg(h,m,!1,s);let _=[],x=0;for(;f?c>=l:c<=l;)_.push(a(c,x)),c=f?c-i:c+i,x++;return s.toRegex===!0?Pg(_,null,{wrap:!1,options:s}):_},Fs=(e,n,i,s={})=>{if(n==null&&rc(e))return[e];if(!rc(e)||!rc(n))return Og(e,n,s);if(typeof i=="function")return Fs(e,n,1,{transform:i});if(Eg(i))return Fs(e,n,0,i);let a={...s};return a.capture===!0&&(a.wrap=!0),i=i||a.step||1,vi(i)?vi(e)&&vi(n)?WP(e,n,i,a):jP(e,n,Math.max(Math.abs(i),1),a):i!=null&&!Eg(i)?UP(i,a):Fs(e,n,1,i)};Ig.exports=Fs});var Ng=T((oM,kg)=>{"use strict";var KP=sc(),Lg=Ds(),zP=(e,n={})=>{let i=(s,a={})=>{let c=Lg.isInvalidBrace(a),l=s.invalid===!0&&n.escapeInvalid===!0,f=c===!0||l===!0,h=n.escapeInvalid===!0?"\\":"",m="";if(s.isOpen===!0||s.isClose===!0)return h+s.value;if(s.type==="open")return f?h+s.value:"(";if(s.type==="close")return f?h+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":f?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let _=Lg.reduce(s.nodes),x=KP(..._,{...n,wrap:!1,toRegex:!0});if(x.length!==0)return _.length>1&&x.length>1?`(${x})`:x}if(s.nodes)for(let _ of s.nodes)m+=i(_,s);return m};return i(e)};kg.exports=zP});var Mg=T((aM,Dg)=>{"use strict";var XP=sc(),$g=Ms(),gr=Ds(),Mn=(e="",n="",i=!1)=>{let s=[];if(e=[].concat(e),n=[].concat(n),!n.length)return e;if(!e.length)return i?gr.flatten(n).map(a=>`{${a}}`):n;for(let a of e)if(Array.isArray(a))for(let c of a)s.push(Mn(c,n,i));else for(let c of n)i===!0&&typeof c=="string"&&(c=`{${c}}`),s.push(Array.isArray(c)?Mn(a,c,i):a+c);return gr.flatten(s)},YP=(e,n={})=>{let i=n.rangeLimit===void 0?1e3:n.rangeLimit,s=(a,c={})=>{a.queue=[];let l=c,f=c.queue;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,f=l.queue;if(a.invalid||a.dollar){f.push(Mn(f.pop(),$g(a,n)));return}if(a.type==="brace"&&a.invalid!==!0&&a.nodes.length===2){f.push(Mn(f.pop(),["{}"]));return}if(a.nodes&&a.ranges>0){let x=gr.reduce(a.nodes);if(gr.exceedsLimit(...x,n.step,i))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let b=XP(...x,n);b.length===0&&(b=$g(a,n)),f.push(Mn(f.pop(),b)),a.nodes=[];return}let h=gr.encloseBrace(a),m=a.queue,_=a;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,m=_.queue;for(let x=0;x{"use strict";Fg.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 Wg=T((cM,Ug)=>{"use strict";var QP=Ms(),{MAX_LENGTH:Bg,CHAR_BACKSLASH:oc,CHAR_BACKTICK:VP,CHAR_COMMA:ZP,CHAR_DOT:JP,CHAR_LEFT_PARENTHESES:eT,CHAR_RIGHT_PARENTHESES:tT,CHAR_LEFT_CURLY_BRACE:nT,CHAR_RIGHT_CURLY_BRACE:rT,CHAR_LEFT_SQUARE_BRACKET:Hg,CHAR_RIGHT_SQUARE_BRACKET:Gg,CHAR_DOUBLE_QUOTE:iT,CHAR_SINGLE_QUOTE:sT,CHAR_NO_BREAK_SPACE:oT,CHAR_ZERO_WIDTH_NOBREAK_SPACE:aT}=qg(),uT=(e,n={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let i=n||{},s=typeof i.maxLength=="number"?Math.min(Bg,i.maxLength):Bg;if(e.length>s)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${s})`);let a={type:"root",input:e,nodes:[]},c=[a],l=a,f=a,h=0,m=e.length,_=0,x=0,b,M={},A=()=>e[_++],$=U=>{if(U.type==="text"&&f.type==="dot"&&(f.type="text"),f&&f.type==="text"&&U.type==="text"){f.value+=U.value;return}return l.nodes.push(U),U.parent=l,U.prev=f,f=U,U};for($({type:"bos"});_0){if(l.ranges>0){l.ranges=0;let U=l.nodes.shift();l.nodes=[U,{type:"text",value:QP(l)}]}$({type:"comma",value:b}),l.commas++;continue}if(b===JP&&x>0&&l.commas===0){let U=l.nodes;if(x===0||U.length===0){$({type:"text",value:b});continue}if(f.type==="dot"){if(l.range=[],f.value+=b,f.type="range",l.nodes.length!==3&&l.nodes.length!==5){l.invalid=!0,l.ranges=0,f.type="text";continue}l.ranges++,l.args=[];continue}if(f.type==="range"){U.pop();let H=U[U.length-1];H.value+=f.value+b,f=H,l.ranges--;continue}$({type:"dot",value:b});continue}$({type:"text",value:b})}do if(l=c.pop(),l.type!=="root"){l.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let U=c[c.length-1],H=U.nodes.indexOf(l);U.nodes.splice(H,1,...l.nodes)}while(c.length>0);return $({type:"eos"}),a};Ug.exports=uT});var zg=T((lM,Kg)=>{"use strict";var jg=Ms(),cT=Ng(),lT=Mg(),fT=Wg(),ft=(e,n={})=>{let i=[];if(Array.isArray(e))for(let s of e){let a=ft.create(s,n);Array.isArray(a)?i.push(...a):i.push(a)}else i=[].concat(ft.create(e,n));return n&&n.expand===!0&&n.nodupes===!0&&(i=[...new Set(i)]),i};ft.parse=(e,n={})=>fT(e,n);ft.stringify=(e,n={})=>jg(typeof e=="string"?ft.parse(e,n):e,n);ft.compile=(e,n={})=>(typeof e=="string"&&(e=ft.parse(e,n)),cT(e,n));ft.expand=(e,n={})=>{typeof e=="string"&&(e=ft.parse(e,n));let i=lT(e,n);return n.noempty===!0&&(i=i.filter(Boolean)),n.nodupes===!0&&(i=[...new Set(i)]),i};ft.create=(e,n={})=>e===""||e.length<3?[e]:n.expand!==!0?ft.compile(e,n):ft.expand(e,n);Kg.exports=ft});var bi=T((fM,Zg)=>{"use strict";var pT=N("path"),Ht="\\\\/",Xg=`[^${Ht}]`,rn="\\.",hT="\\+",dT="\\?",qs="\\/",gT="(?=.)",Yg="[^/]",ac=`(?:${qs}|$)`,Qg=`(?:^|${qs})`,uc=`${rn}{1,2}${ac}`,mT=`(?!${rn})`,yT=`(?!${Qg}${uc})`,_T=`(?!${rn}{0,1}${ac})`,vT=`(?!${uc})`,bT=`[^.${qs}]`,ST=`${Yg}*?`,Vg={DOT_LITERAL:rn,PLUS_LITERAL:hT,QMARK_LITERAL:dT,SLASH_LITERAL:qs,ONE_CHAR:gT,QMARK:Yg,END_ANCHOR:ac,DOTS_SLASH:uc,NO_DOT:mT,NO_DOTS:yT,NO_DOT_SLASH:_T,NO_DOTS_SLASH:vT,QMARK_NO_DOT:bT,STAR:ST,START_ANCHOR:Qg},wT={...Vg,SLASH_LITERAL:`[${Ht}]`,QMARK:Xg,STAR:`${Xg}*?`,DOTS_SLASH:`${rn}{1,2}(?:[${Ht}]|$)`,NO_DOT:`(?!${rn})`,NO_DOTS:`(?!(?:^|[${Ht}])${rn}{1,2}(?:[${Ht}]|$))`,NO_DOT_SLASH:`(?!${rn}{0,1}(?:[${Ht}]|$))`,NO_DOTS_SLASH:`(?!${rn}{1,2}(?:[${Ht}]|$))`,QMARK_NO_DOT:`[^.${Ht}]`,START_ANCHOR:`(?:^|[${Ht}])`,END_ANCHOR:`(?:[${Ht}]|$)`},xT={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"};Zg.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:xT,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:pT.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?wT:Vg}}});var Si=T(rt=>{"use strict";var ET=N("path"),AT=process.platform==="win32",{REGEX_BACKSLASH:CT,REGEX_REMOVE_BACKSLASH:RT,REGEX_SPECIAL_CHARS:PT,REGEX_SPECIAL_CHARS_GLOBAL:TT}=bi();rt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);rt.hasRegexChars=e=>PT.test(e);rt.isRegexChar=e=>e.length===1&&rt.hasRegexChars(e);rt.escapeRegex=e=>e.replace(TT,"\\$1");rt.toPosixSlashes=e=>e.replace(CT,"/");rt.removeBackslashes=e=>e.replace(RT,n=>n==="\\"?"":n);rt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};rt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:AT===!0||ET.sep==="\\";rt.escapeLast=(e,n,i)=>{let s=e.lastIndexOf(n,i);return s===-1?e:e[s-1]==="\\"?rt.escapeLast(e,n,s-1):`${e.slice(0,s)}\\${e.slice(s)}`};rt.removePrefix=(e,n={})=>{let i=e;return i.startsWith("./")&&(i=i.slice(2),n.prefix="./"),i};rt.wrapOutput=(e,n={},i={})=>{let s=i.contains?"":"^",a=i.contains?"":"$",c=`${s}(?:${e})${a}`;return n.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var om=T((hM,sm)=>{"use strict";var Jg=Si(),{CHAR_ASTERISK:cc,CHAR_AT:OT,CHAR_BACKWARD_SLASH:wi,CHAR_COMMA:IT,CHAR_DOT:lc,CHAR_EXCLAMATION_MARK:fc,CHAR_FORWARD_SLASH:im,CHAR_LEFT_CURLY_BRACE:pc,CHAR_LEFT_PARENTHESES:hc,CHAR_LEFT_SQUARE_BRACKET:LT,CHAR_PLUS:kT,CHAR_QUESTION_MARK:em,CHAR_RIGHT_CURLY_BRACE:NT,CHAR_RIGHT_PARENTHESES:tm,CHAR_RIGHT_SQUARE_BRACKET:$T}=bi(),nm=e=>e===im||e===wi,rm=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},DT=(e,n)=>{let i=n||{},s=e.length-1,a=i.parts===!0||i.scanToEnd===!0,c=[],l=[],f=[],h=e,m=-1,_=0,x=0,b=!1,M=!1,A=!1,$=!1,U=!1,H=!1,X=!1,z=!1,Q=!1,D=!1,Z=0,V,j,ae={value:"",depth:0,isGlob:!1},Te=()=>m>=s,L=()=>h.charCodeAt(m+1),be=()=>(V=j,h.charCodeAt(++m));for(;m0&&(Dt=h.slice(0,_),h=h.slice(_),x-=_),ye&&A===!0&&x>0?(ye=h.slice(0,x),C=h.slice(x)):A===!0?(ye="",C=h):ye=h,ye&&ye!==""&&ye!=="/"&&ye!==h&&nm(ye.charCodeAt(ye.length-1))&&(ye=ye.slice(0,-1)),i.unescape===!0&&(C&&(C=Jg.removeBackslashes(C)),ye&&X===!0&&(ye=Jg.removeBackslashes(ye)));let R={prefix:Dt,input:e,start:_,base:ye,glob:C,isBrace:b,isBracket:M,isGlob:A,isExtglob:$,isGlobstar:U,negated:z,negatedExtglob:Q};if(i.tokens===!0&&(R.maxDepth=0,nm(j)||l.push(ae),R.tokens=l),i.parts===!0||i.tokens===!0){let He;for(let fe=0;fe{"use strict";var Bs=bi(),pt=Si(),{MAX_LENGTH:Hs,POSIX_REGEX_SOURCE:MT,REGEX_NON_SPECIAL_CHARS:FT,REGEX_SPECIAL_CHARS_BACKREF:qT,REPLACEMENTS:am}=Bs,BT=(e,n)=>{if(typeof n.expandRange=="function")return n.expandRange(...e,n);e.sort();let i=`[${e.join("-")}]`;try{new RegExp(i)}catch{return e.map(a=>pt.escapeRegex(a)).join("..")}return i},mr=(e,n)=>`Missing ${e}: "${n}" - use "\\\\${n}" to match literal characters`,dc=(e,n)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=am[e]||e;let i={...n},s=typeof i.maxLength=="number"?Math.min(Hs,i.maxLength):Hs,a=e.length;if(a>s)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${s}`);let c={type:"bos",value:"",output:i.prepend||""},l=[c],f=i.capture?"":"?:",h=pt.isWindows(n),m=Bs.globChars(h),_=Bs.extglobChars(m),{DOT_LITERAL:x,PLUS_LITERAL:b,SLASH_LITERAL:M,ONE_CHAR:A,DOTS_SLASH:$,NO_DOT:U,NO_DOT_SLASH:H,NO_DOTS_SLASH:X,QMARK:z,QMARK_NO_DOT:Q,STAR:D,START_ANCHOR:Z}=m,V=B=>`(${f}(?:(?!${Z}${B.dot?$:x}).)*?)`,j=i.dot?"":U,ae=i.dot?z:Q,Te=i.bash===!0?V(i):D;i.capture&&(Te=`(${Te})`),typeof i.noext=="boolean"&&(i.noextglob=i.noext);let L={input:e,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:l};e=pt.removePrefix(e,L),a=e.length;let be=[],ye=[],Dt=[],C=c,R,He=()=>L.index===a-1,fe=L.peek=(B=1)=>e[L.index+B],Le=L.advance=()=>e[++L.index]||"",gt=()=>e.slice(L.index+1),Ye=(B="",_e=0)=>{L.consumed+=B,L.index+=_e},zn=B=>{L.output+=B.output!=null?B.output:B.value,Ye(B.value)},un=()=>{let B=1;for(;fe()==="!"&&(fe(2)!=="("||fe(3)==="?");)Le(),L.start++,B++;return B%2===0?!1:(L.negated=!0,L.start++,!0)},Kt=B=>{L[B]++,Dt.push(B)},zt=B=>{L[B]--,Dt.pop()},oe=B=>{if(C.type==="globstar"){let _e=L.braces>0&&(B.type==="comma"||B.type==="brace"),F=B.extglob===!0||be.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!_e&&!F&&(L.output=L.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=Te,L.output+=C.output)}if(be.length&&B.type!=="paren"&&(be[be.length-1].inner+=B.value),(B.value||B.output)&&zn(B),C&&C.type==="text"&&B.type==="text"){C.value+=B.value,C.output=(C.output||"")+B.value;return}B.prev=C,l.push(B),C=B},Mt=(B,_e)=>{let F={..._[_e],conditions:1,inner:""};F.prev=C,F.parens=L.parens,F.output=L.output;let ee=(i.capture?"(":"")+F.open;Kt("parens"),oe({type:B,value:_e,output:L.output?"":A}),oe({type:"paren",extglob:!0,value:Le(),output:ee}),be.push(F)},Pa=B=>{let _e=B.close+(i.capture?")":""),F;if(B.type==="negate"){let ee=Te;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(ee=V(i)),(ee!==Te||He()||/^\)+$/.test(gt()))&&(_e=B.close=`)$))${ee}`),B.inner.includes("*")&&(F=gt())&&/^\.[^\\/.]+$/.test(F)){let Se=dc(F,{...n,fastpaths:!1}).output;_e=B.close=`)${Se})${ee})`}B.prev.type==="bos"&&(L.negatedExtglob=!0)}oe({type:"paren",extglob:!0,value:R,output:_e}),zt("parens")};if(i.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let B=!1,_e=e.replace(qT,(F,ee,Se,Ge,we,Xn)=>Ge==="\\"?(B=!0,F):Ge==="?"?ee?ee+Ge+(we?z.repeat(we.length):""):Xn===0?ae+(we?z.repeat(we.length):""):z.repeat(Se.length):Ge==="."?x.repeat(Se.length):Ge==="*"?ee?ee+Ge+(we?Te:""):Te:ee?F:`\\${F}`);return B===!0&&(i.unescape===!0?_e=_e.replace(/\\/g,""):_e=_e.replace(/\\+/g,F=>F.length%2===0?"\\\\":F?"\\":"")),_e===e&&i.contains===!0?(L.output=e,L):(L.output=pt.wrapOutput(_e,L,n),L)}for(;!He();){if(R=Le(),R==="\0")continue;if(R==="\\"){let F=fe();if(F==="/"&&i.bash!==!0||F==="."||F===";")continue;if(!F){R+="\\",oe({type:"text",value:R});continue}let ee=/^\\+/.exec(gt()),Se=0;if(ee&&ee[0].length>2&&(Se=ee[0].length,L.index+=Se,Se%2!==0&&(R+="\\")),i.unescape===!0?R=Le():R+=Le(),L.brackets===0){oe({type:"text",value:R});continue}}if(L.brackets>0&&(R!=="]"||C.value==="["||C.value==="[^")){if(i.posix!==!1&&R===":"){let F=C.value.slice(1);if(F.includes("[")&&(C.posix=!0,F.includes(":"))){let ee=C.value.lastIndexOf("["),Se=C.value.slice(0,ee),Ge=C.value.slice(ee+2),we=MT[Ge];if(we){C.value=Se+we,L.backtrack=!0,Le(),!c.output&&l.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,zn({value:R});continue}if(L.quotes===1&&R!=='"'){R=pt.escapeRegex(R),C.value+=R,zn({value:R});continue}if(R==='"'){L.quotes=L.quotes===1?0:1,i.keepQuotes===!0&&oe({type:"text",value:R});continue}if(R==="("){Kt("parens"),oe({type:"paren",value:R});continue}if(R===")"){if(L.parens===0&&i.strictBrackets===!0)throw new SyntaxError(mr("opening","("));let F=be[be.length-1];if(F&&L.parens===F.parens+1){Pa(be.pop());continue}oe({type:"paren",value:R,output:L.parens?")":"\\)"}),zt("parens");continue}if(R==="["){if(i.nobracket===!0||!gt().includes("]")){if(i.nobracket!==!0&&i.strictBrackets===!0)throw new SyntaxError(mr("closing","]"));R=`\\${R}`}else Kt("brackets");oe({type:"bracket",value:R});continue}if(R==="]"){if(i.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){oe({type:"text",value:R,output:`\\${R}`});continue}if(L.brackets===0){if(i.strictBrackets===!0)throw new SyntaxError(mr("opening","["));oe({type:"text",value:R,output:`\\${R}`});continue}zt("brackets");let F=C.value.slice(1);if(C.posix!==!0&&F[0]==="^"&&!F.includes("/")&&(R=`/${R}`),C.value+=R,zn({value:R}),i.literalBrackets===!1||pt.hasRegexChars(F))continue;let ee=pt.escapeRegex(C.value);if(L.output=L.output.slice(0,-C.value.length),i.literalBrackets===!0){L.output+=ee,C.value=ee;continue}C.value=`(${f}${ee}|${C.value})`,L.output+=C.value;continue}if(R==="{"&&i.nobrace!==!0){Kt("braces");let F={type:"brace",value:R,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};ye.push(F),oe(F);continue}if(R==="}"){let F=ye[ye.length-1];if(i.nobrace===!0||!F){oe({type:"text",value:R,output:R});continue}let ee=")";if(F.dots===!0){let Se=l.slice(),Ge=[];for(let we=Se.length-1;we>=0&&(l.pop(),Se[we].type!=="brace");we--)Se[we].type!=="dots"&&Ge.unshift(Se[we].value);ee=BT(Ge,i),L.backtrack=!0}if(F.comma!==!0&&F.dots!==!0){let Se=L.output.slice(0,F.outputIndex),Ge=L.tokens.slice(F.tokensIndex);F.value=F.output="\\{",R=ee="\\}",L.output=Se;for(let we of Ge)L.output+=we.output||we.value}oe({type:"brace",value:R,output:ee}),zt("braces"),ye.pop();continue}if(R==="|"){be.length>0&&be[be.length-1].conditions++,oe({type:"text",value:R});continue}if(R===","){let F=R,ee=ye[ye.length-1];ee&&Dt[Dt.length-1]==="braces"&&(ee.comma=!0,F="|"),oe({type:"comma",value:R,output:F});continue}if(R==="/"){if(C.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",l.pop(),C=c;continue}oe({type:"slash",value:R,output:M});continue}if(R==="."){if(L.braces>0&&C.type==="dot"){C.value==="."&&(C.output=x);let F=ye[ye.length-1];C.type="dots",C.output+=R,C.value+=R,F.dots=!0;continue}if(L.braces+L.parens===0&&C.type!=="bos"&&C.type!=="slash"){oe({type:"text",value:R,output:x});continue}oe({type:"dot",value:R,output:x});continue}if(R==="?"){if(!(C&&C.value==="(")&&i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("qmark",R);continue}if(C&&C.type==="paren"){let ee=fe(),Se=R;if(ee==="<"&&!pt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(C.value==="("&&!/[!=<:]/.test(ee)||ee==="<"&&!/<([!=]|\w+>)/.test(gt()))&&(Se=`\\${R}`),oe({type:"text",value:R,output:Se});continue}if(i.dot!==!0&&(C.type==="slash"||C.type==="bos")){oe({type:"qmark",value:R,output:Q});continue}oe({type:"qmark",value:R,output:z});continue}if(R==="!"){if(i.noextglob!==!0&&fe()==="("&&(fe(2)!=="?"||!/[!=<:]/.test(fe(3)))){Mt("negate",R);continue}if(i.nonegate!==!0&&L.index===0){un();continue}}if(R==="+"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("plus",R);continue}if(C&&C.value==="("||i.regex===!1){oe({type:"plus",value:R,output:b});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||L.parens>0){oe({type:"plus",value:R});continue}oe({type:"plus",value:b});continue}if(R==="@"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){oe({type:"at",extglob:!0,value:R,output:""});continue}oe({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let F=FT.exec(gt());F&&(R+=F[0],L.index+=F[0].length),oe({type:"text",value:R});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=R,C.output=Te,L.backtrack=!0,L.globstar=!0,Ye(R);continue}let B=gt();if(i.noextglob!==!0&&/^\([^?]/.test(B)){Mt("star",R);continue}if(C.type==="star"){if(i.noglobstar===!0){Ye(R);continue}let F=C.prev,ee=F.prev,Se=F.type==="slash"||F.type==="bos",Ge=ee&&(ee.type==="star"||ee.type==="globstar");if(i.bash===!0&&(!Se||B[0]&&B[0]!=="/")){oe({type:"star",value:R,output:""});continue}let we=L.braces>0&&(F.type==="comma"||F.type==="brace"),Xn=be.length&&(F.type==="pipe"||F.type==="paren");if(!Se&&F.type!=="paren"&&!we&&!Xn){oe({type:"star",value:R,output:""});continue}for(;B.slice(0,3)==="/**";){let Yn=e[L.index+4];if(Yn&&Yn!=="/")break;B=B.slice(3),Ye("/**",3)}if(F.type==="bos"&&He()){C.type="globstar",C.value+=R,C.output=V(i),L.output=C.output,L.globstar=!0,Ye(R);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&!Ge&&He()){L.output=L.output.slice(0,-(F.output+C.output).length),F.output=`(?:${F.output}`,C.type="globstar",C.output=V(i)+(i.strictSlashes?")":"|$)"),C.value+=R,L.globstar=!0,L.output+=F.output+C.output,Ye(R);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&B[0]==="/"){let Yn=B[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(F.output+C.output).length),F.output=`(?:${F.output}`,C.type="globstar",C.output=`${V(i)}${M}|${M}${Yn})`,C.value+=R,L.output+=F.output+C.output,L.globstar=!0,Ye(R+Le()),oe({type:"slash",value:"/",output:""});continue}if(F.type==="bos"&&B[0]==="/"){C.type="globstar",C.value+=R,C.output=`(?:^|${M}|${V(i)}${M})`,L.output=C.output,L.globstar=!0,Ye(R+Le()),oe({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-C.output.length),C.type="globstar",C.output=V(i),C.value+=R,L.output+=C.output,L.globstar=!0,Ye(R);continue}let _e={type:"star",value:R,output:Te};if(i.bash===!0){_e.output=".*?",(C.type==="bos"||C.type==="slash")&&(_e.output=j+_e.output),oe(_e);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&i.regex===!0){_e.output=R,oe(_e);continue}(L.index===L.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(L.output+=H,C.output+=H):i.dot===!0?(L.output+=X,C.output+=X):(L.output+=j,C.output+=j),fe()!=="*"&&(L.output+=A,C.output+=A)),oe(_e)}for(;L.brackets>0;){if(i.strictBrackets===!0)throw new SyntaxError(mr("closing","]"));L.output=pt.escapeLast(L.output,"["),zt("brackets")}for(;L.parens>0;){if(i.strictBrackets===!0)throw new SyntaxError(mr("closing",")"));L.output=pt.escapeLast(L.output,"("),zt("parens")}for(;L.braces>0;){if(i.strictBrackets===!0)throw new SyntaxError(mr("closing","}"));L.output=pt.escapeLast(L.output,"{"),zt("braces")}if(i.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&oe({type:"maybe_slash",value:"",output:`${M}?`}),L.backtrack===!0){L.output="";for(let B of L.tokens)L.output+=B.output!=null?B.output:B.value,B.suffix&&(L.output+=B.suffix)}return L};dc.fastpaths=(e,n)=>{let i={...n},s=typeof i.maxLength=="number"?Math.min(Hs,i.maxLength):Hs,a=e.length;if(a>s)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${s}`);e=am[e]||e;let c=pt.isWindows(n),{DOT_LITERAL:l,SLASH_LITERAL:f,ONE_CHAR:h,DOTS_SLASH:m,NO_DOT:_,NO_DOTS:x,NO_DOTS_SLASH:b,STAR:M,START_ANCHOR:A}=Bs.globChars(c),$=i.dot?x:_,U=i.dot?b:_,H=i.capture?"":"?:",X={negated:!1,prefix:""},z=i.bash===!0?".*?":M;i.capture&&(z=`(${z})`);let Q=j=>j.noglobstar===!0?z:`(${H}(?:(?!${A}${j.dot?m:l}).)*?)`,D=j=>{switch(j){case"*":return`${$}${h}${z}`;case".*":return`${l}${h}${z}`;case"*.*":return`${$}${z}${l}${h}${z}`;case"*/*":return`${$}${z}${f}${h}${U}${z}`;case"**":return $+Q(i);case"**/*":return`(?:${$}${Q(i)}${f})?${U}${h}${z}`;case"**/*.*":return`(?:${$}${Q(i)}${f})?${U}${z}${l}${h}${z}`;case"**/.*":return`(?:${$}${Q(i)}${f})?${l}${h}${z}`;default:{let ae=/^(.*?)\.(\w+)$/.exec(j);if(!ae)return;let Te=D(ae[1]);return Te?Te+l+ae[2]:void 0}}},Z=pt.removePrefix(e,X),V=D(Z);return V&&i.strictSlashes!==!0&&(V+=`${f}?`),V};um.exports=dc});var fm=T((gM,lm)=>{"use strict";var HT=N("path"),GT=om(),gc=cm(),mc=Si(),UT=bi(),WT=e=>e&&typeof e=="object"&&!Array.isArray(e),$e=(e,n,i=!1)=>{if(Array.isArray(e)){let _=e.map(b=>$e(b,n,i));return b=>{for(let M of _){let A=M(b);if(A)return A}return!1}}let s=WT(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let a=n||{},c=mc.isWindows(n),l=s?$e.compileRe(e,n):$e.makeRe(e,n,!1,!0),f=l.state;delete l.state;let h=()=>!1;if(a.ignore){let _={...n,ignore:null,onMatch:null,onResult:null};h=$e(a.ignore,_,i)}let m=(_,x=!1)=>{let{isMatch:b,match:M,output:A}=$e.test(_,l,n,{glob:e,posix:c}),$={glob:e,state:f,regex:l,posix:c,input:_,output:A,match:M,isMatch:b};return typeof a.onResult=="function"&&a.onResult($),b===!1?($.isMatch=!1,x?$:!1):h(_)?(typeof a.onIgnore=="function"&&a.onIgnore($),$.isMatch=!1,x?$:!1):(typeof a.onMatch=="function"&&a.onMatch($),x?$:!0)};return i&&(m.state=f),m};$e.test=(e,n,i,{glob:s,posix:a}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let c=i||{},l=c.format||(a?mc.toPosixSlashes:null),f=e===s,h=f&&l?l(e):e;return f===!1&&(h=l?l(e):e,f=h===s),(f===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?f=$e.matchBase(e,n,i,a):f=n.exec(h)),{isMatch:Boolean(f),match:f,output:h}};$e.matchBase=(e,n,i,s=mc.isWindows(i))=>(n instanceof RegExp?n:$e.makeRe(n,i)).test(HT.basename(e));$e.isMatch=(e,n,i)=>$e(n,i)(e);$e.parse=(e,n)=>Array.isArray(e)?e.map(i=>$e.parse(i,n)):gc(e,{...n,fastpaths:!1});$e.scan=(e,n)=>GT(e,n);$e.compileRe=(e,n,i=!1,s=!1)=>{if(i===!0)return e.output;let a=n||{},c=a.contains?"":"^",l=a.contains?"":"$",f=`${c}(?:${e.output})${l}`;e&&e.negated===!0&&(f=`^(?!${f}).*$`);let h=$e.toRegex(f,n);return s===!0&&(h.state=e),h};$e.makeRe=(e,n={},i=!1,s=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let a={negated:!1,fastpaths:!0};return n.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(a.output=gc.fastpaths(e,n)),a.output||(a=gc(e,n)),$e.compileRe(a,n,i,s)};$e.toRegex=(e,n)=>{try{let i=n||{};return new RegExp(e,i.flags||(i.nocase?"i":""))}catch(i){if(n&&n.debug===!0)throw i;return/$^/}};$e.constants=UT;lm.exports=$e});var hm=T((mM,pm)=>{"use strict";pm.exports=fm()});var _m=T((yM,ym)=>{"use strict";var gm=N("util"),mm=zg(),Gt=hm(),yc=Si(),dm=e=>e===""||e==="./",Pe=(e,n,i)=>{n=[].concat(n),e=[].concat(e);let s=new Set,a=new Set,c=new Set,l=0,f=_=>{c.add(_.output),i&&i.onResult&&i.onResult(_)};for(let _=0;_!s.has(_));if(i&&m.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(_=>_.replace(/\\/g,"")):n}return m};Pe.match=Pe;Pe.matcher=(e,n)=>Gt(e,n);Pe.isMatch=(e,n,i)=>Gt(n,i)(e);Pe.any=Pe.isMatch;Pe.not=(e,n,i={})=>{n=[].concat(n).map(String);let s=new Set,a=[],c=f=>{i.onResult&&i.onResult(f),a.push(f.output)},l=new Set(Pe(e,n,{...i,onResult:c}));for(let f of a)l.has(f)||s.add(f);return[...s]};Pe.contains=(e,n,i)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${gm.inspect(e)}"`);if(Array.isArray(n))return n.some(s=>Pe.contains(e,s,i));if(typeof n=="string"){if(dm(e)||dm(n))return!1;if(e.includes(n)||e.startsWith("./")&&e.slice(2).includes(n))return!0}return Pe.isMatch(e,n,{...i,contains:!0})};Pe.matchKeys=(e,n,i)=>{if(!yc.isObject(e))throw new TypeError("Expected the first argument to be an object");let s=Pe(Object.keys(e),n,i),a={};for(let c of s)a[c]=e[c];return a};Pe.some=(e,n,i)=>{let s=[].concat(e);for(let a of[].concat(n)){let c=Gt(String(a),i);if(s.some(l=>c(l)))return!0}return!1};Pe.every=(e,n,i)=>{let s=[].concat(e);for(let a of[].concat(n)){let c=Gt(String(a),i);if(!s.every(l=>c(l)))return!1}return!0};Pe.all=(e,n,i)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${gm.inspect(e)}"`);return[].concat(n).every(s=>Gt(s,i)(e))};Pe.capture=(e,n,i)=>{let s=yc.isWindows(i),c=Gt.makeRe(String(e),{...i,capture:!0}).exec(s?yc.toPosixSlashes(n):n);if(c)return c.slice(1).map(l=>l===void 0?"":l)};Pe.makeRe=(...e)=>Gt.makeRe(...e);Pe.scan=(...e)=>Gt.scan(...e);Pe.parse=(e,n)=>{let i=[];for(let s of[].concat(e||[]))for(let a of mm(String(s),n))i.push(Gt.parse(a,n));return i};Pe.braces=(e,n)=>{if(typeof e!="string")throw new TypeError("Expected a string");return n&&n.nobrace===!0||!/\{.*\}/.test(e)?[e]:mm(e,n)};Pe.braceExpand=(e,n)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Pe.braces(e,{...n,expand:!0})};ym.exports=Pe});var Cm=T(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.removeDuplicateSlashes=re.matchAny=re.convertPatternsToRe=re.makeRe=re.getPatternParts=re.expandBraceExpansion=re.expandPatternsWithBraceExpansion=re.isAffectDepthOfReadingPattern=re.endsWithSlashGlobStar=re.hasGlobStar=re.getBaseDirectory=re.isPatternRelatedToParentDirectory=re.getPatternsOutsideCurrentDirectory=re.getPatternsInsideCurrentDirectory=re.getPositivePatterns=re.getNegativePatterns=re.isPositivePattern=re.isNegativePattern=re.convertToNegativePattern=re.convertToPositivePattern=re.isDynamicPattern=re.isStaticPattern=void 0;var jT=N("path"),KT=lg(),_c=_m(),vm="**",zT="\\",XT=/[*?]|^!/,YT=/\[[^[]*]/,QT=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,VT=/[!*+?@]\([^(]*\)/,ZT=/,|\.\./,JT=/(?!^)\/{2,}/g;function bm(e,n={}){return!Sm(e,n)}re.isStaticPattern=bm;function Sm(e,n={}){return e===""?!1:!!(n.caseSensitiveMatch===!1||e.includes(zT)||XT.test(e)||YT.test(e)||QT.test(e)||n.extglob!==!1&&VT.test(e)||n.braceExpansion!==!1&&eO(e))}re.isDynamicPattern=Sm;function eO(e){let n=e.indexOf("{");if(n===-1)return!1;let i=e.indexOf("}",n+1);if(i===-1)return!1;let s=e.slice(n,i);return ZT.test(s)}function tO(e){return Gs(e)?e.slice(1):e}re.convertToPositivePattern=tO;function nO(e){return"!"+e}re.convertToNegativePattern=nO;function Gs(e){return e.startsWith("!")&&e[1]!=="("}re.isNegativePattern=Gs;function wm(e){return!Gs(e)}re.isPositivePattern=wm;function rO(e){return e.filter(Gs)}re.getNegativePatterns=rO;function iO(e){return e.filter(wm)}re.getPositivePatterns=iO;function sO(e){return e.filter(n=>!vc(n))}re.getPatternsInsideCurrentDirectory=sO;function oO(e){return e.filter(vc)}re.getPatternsOutsideCurrentDirectory=oO;function vc(e){return e.startsWith("..")||e.startsWith("./..")}re.isPatternRelatedToParentDirectory=vc;function aO(e){return KT(e,{flipBackslashes:!1})}re.getBaseDirectory=aO;function uO(e){return e.includes(vm)}re.hasGlobStar=uO;function xm(e){return e.endsWith("/"+vm)}re.endsWithSlashGlobStar=xm;function cO(e){let n=jT.basename(e);return xm(e)||bm(n)}re.isAffectDepthOfReadingPattern=cO;function lO(e){return e.reduce((n,i)=>n.concat(Em(i)),[])}re.expandPatternsWithBraceExpansion=lO;function Em(e){let n=_c.braces(e,{expand:!0,nodupes:!0});return n.sort((i,s)=>i.length-s.length),n.filter(i=>i!=="")}re.expandBraceExpansion=Em;function fO(e,n){let{parts:i}=_c.scan(e,Object.assign(Object.assign({},n),{parts:!0}));return i.length===0&&(i=[e]),i[0].startsWith("/")&&(i[0]=i[0].slice(1),i.unshift("")),i}re.getPatternParts=fO;function Am(e,n){return _c.makeRe(e,n)}re.makeRe=Am;function pO(e,n){return e.map(i=>Am(i,n))}re.convertPatternsToRe=pO;function hO(e,n){return n.some(i=>i.test(e))}re.matchAny=hO;function dO(e){return e.replace(JT,"/")}re.removeDuplicateSlashes=dO});var Pm=T(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.merge=void 0;var gO=Vu();function mO(e){let n=gO(e);return e.forEach(i=>{i.once("error",s=>n.emit("error",s))}),n.once("close",()=>Rm(e)),n.once("end",()=>Rm(e)),n}Us.merge=mO;function Rm(e){e.forEach(n=>n.emit("close"))}});var Tm=T(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.isEmpty=yr.isString=void 0;function yO(e){return typeof e=="string"}yr.isString=yO;function _O(e){return e===""}yr.isEmpty=_O});var sn=T(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.string=ze.stream=ze.pattern=ze.path=ze.fs=ze.errno=ze.array=void 0;var vO=Vd();ze.array=vO;var bO=Zd();ze.errno=bO;var SO=Jd();ze.fs=SO;var wO=rg();ze.path=wO;var xO=Cm();ze.pattern=xO;var EO=Pm();ze.stream=EO;var AO=Tm();ze.string=AO});var km=T(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.convertPatternGroupToTask=Xe.convertPatternGroupsToTasks=Xe.groupPatternsByBaseDirectory=Xe.getNegativePatternsAsPositive=Xe.getPositivePatterns=Xe.convertPatternsToTasks=Xe.generate=void 0;var Lt=sn();function CO(e,n){let i=Om(e,n),s=Om(n.ignore,n),a=Im(i),c=Lm(i,s),l=a.filter(_=>Lt.pattern.isStaticPattern(_,n)),f=a.filter(_=>Lt.pattern.isDynamicPattern(_,n)),h=bc(l,c,!1),m=bc(f,c,!0);return h.concat(m)}Xe.generate=CO;function Om(e,n){let i=e;return n.braceExpansion&&(i=Lt.pattern.expandPatternsWithBraceExpansion(i)),n.baseNameMatch&&(i=i.map(s=>s.includes("/")?s:`**/${s}`)),i.map(s=>Lt.pattern.removeDuplicateSlashes(s))}function bc(e,n,i){let s=[],a=Lt.pattern.getPatternsOutsideCurrentDirectory(e),c=Lt.pattern.getPatternsInsideCurrentDirectory(e),l=Sc(a),f=Sc(c);return s.push(...wc(l,n,i)),"."in f?s.push(xc(".",c,n,i)):s.push(...wc(f,n,i)),s}Xe.convertPatternsToTasks=bc;function Im(e){return Lt.pattern.getPositivePatterns(e)}Xe.getPositivePatterns=Im;function Lm(e,n){return Lt.pattern.getNegativePatterns(e).concat(n).map(Lt.pattern.convertToPositivePattern)}Xe.getNegativePatternsAsPositive=Lm;function Sc(e){let n={};return e.reduce((i,s)=>{let a=Lt.pattern.getBaseDirectory(s);return a in i?i[a].push(s):i[a]=[s],i},n)}Xe.groupPatternsByBaseDirectory=Sc;function wc(e,n,i){return Object.keys(e).map(s=>xc(s,e[s],n,i))}Xe.convertPatternGroupsToTasks=wc;function xc(e,n,i,s){return{dynamic:s,positive:n,negative:i,base:e,patterns:[].concat(n,i.map(Lt.pattern.convertToNegativePattern))}}Xe.convertPatternGroupToTask=xc});var $m=T(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.read=void 0;function RO(e,n,i){n.fs.lstat(e,(s,a)=>{if(s!==null){Nm(i,s);return}if(!a.isSymbolicLink()||!n.followSymbolicLink){Ec(i,a);return}n.fs.stat(e,(c,l)=>{if(c!==null){if(n.throwErrorOnBrokenSymbolicLink){Nm(i,c);return}Ec(i,a);return}n.markSymbolicLink&&(l.isSymbolicLink=()=>!0),Ec(i,l)})})}Ws.read=RO;function Nm(e,n){e(n)}function Ec(e,n){e(null,n)}});var Dm=T(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.read=void 0;function PO(e,n){let i=n.fs.lstatSync(e);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let s=n.fs.statSync(e);return n.markSymbolicLink&&(s.isSymbolicLink=()=>!0),s}catch(s){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw s}}js.read=PO});var Mm=T(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.createFileSystemAdapter=vn.FILE_SYSTEM_ADAPTER=void 0;var Ks=N("fs");vn.FILE_SYSTEM_ADAPTER={lstat:Ks.lstat,stat:Ks.stat,lstatSync:Ks.lstatSync,statSync:Ks.statSync};function TO(e){return e===void 0?vn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},vn.FILE_SYSTEM_ADAPTER),e)}vn.createFileSystemAdapter=TO});var Fm=T(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var OO=Mm(),Ac=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=OO.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}};Cc.default=Ac});var Fn=T(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.statSync=bn.stat=bn.Settings=void 0;var qm=$m(),IO=Dm(),Rc=Fm();bn.Settings=Rc.default;function LO(e,n,i){if(typeof n=="function"){qm.read(e,Pc(),n);return}qm.read(e,Pc(n),i)}bn.stat=LO;function kO(e,n){let i=Pc(n);return IO.read(e,i)}bn.statSync=kO;function Pc(e={}){return e instanceof Rc.default?e:new Rc.default(e)}});var Gm=T((PM,Hm)=>{var Bm;Hm.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Bm||(Bm=Promise.resolve())).then(e).catch(n=>setTimeout(()=>{throw n},0))});var Wm=T((TM,Um)=>{Um.exports=$O;var NO=Gm();function $O(e,n){let i,s,a,c=!0;Array.isArray(e)?(i=[],s=e.length):(a=Object.keys(e),i={},s=a.length);function l(h){function m(){n&&n(h,i),n=null}c?NO(m):m()}function f(h,m,_){i[h]=_,(--s===0||m)&&l(m)}s?a?a.forEach(function(h){e[h](function(m,_){f(h,m,_)})}):e.forEach(function(h,m){h(function(_,x){f(m,_,x)})}):l(null),c=!1}});var Tc=T(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var zs=process.versions.node.split(".");if(zs[0]===void 0||zs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var jm=Number.parseInt(zs[0],10),DO=Number.parseInt(zs[1],10),Km=10,MO=10,FO=jm>Km,qO=jm===Km&&DO>=MO;Xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=FO||qO});var zm=T(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.createDirentFromStats=void 0;var Oc=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 BO(e,n){return new Oc(e,n)}Ys.createDirentFromStats=BO});var Ic=T(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.fs=void 0;var HO=zm();Qs.fs=HO});var Lc=T(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.joinPathSegments=void 0;function GO(e,n,i){return e.endsWith(i)?e+n:e+i+n}Vs.joinPathSegments=GO});var Jm=T(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.readdir=Sn.readdirWithFileTypes=Sn.read=void 0;var UO=Fn(),Xm=Wm(),WO=Tc(),Ym=Ic(),Qm=Lc();function jO(e,n,i){if(!n.stats&&WO.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Vm(e,n,i);return}Zm(e,n,i)}Sn.read=jO;function Vm(e,n,i){n.fs.readdir(e,{withFileTypes:!0},(s,a)=>{if(s!==null){Zs(i,s);return}let c=a.map(f=>({dirent:f,name:f.name,path:Qm.joinPathSegments(e,f.name,n.pathSegmentSeparator)}));if(!n.followSymbolicLinks){kc(i,c);return}let l=c.map(f=>KO(f,n));Xm(l,(f,h)=>{if(f!==null){Zs(i,f);return}kc(i,h)})})}Sn.readdirWithFileTypes=Vm;function KO(e,n){return i=>{if(!e.dirent.isSymbolicLink()){i(null,e);return}n.fs.stat(e.path,(s,a)=>{if(s!==null){if(n.throwErrorOnBrokenSymbolicLink){i(s);return}i(null,e);return}e.dirent=Ym.fs.createDirentFromStats(e.name,a),i(null,e)})}}function Zm(e,n,i){n.fs.readdir(e,(s,a)=>{if(s!==null){Zs(i,s);return}let c=a.map(l=>{let f=Qm.joinPathSegments(e,l,n.pathSegmentSeparator);return h=>{UO.stat(f,n.fsStatSettings,(m,_)=>{if(m!==null){h(m);return}let x={name:l,path:f,dirent:Ym.fs.createDirentFromStats(l,_)};n.stats&&(x.stats=_),h(null,x)})}});Xm(c,(l,f)=>{if(l!==null){Zs(i,l);return}kc(i,f)})})}Sn.readdir=Zm;function Zs(e,n){e(n)}function kc(e,n){e(null,n)}});var iy=T(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.readdir=wn.readdirWithFileTypes=wn.read=void 0;var zO=Fn(),XO=Tc(),ey=Ic(),ty=Lc();function YO(e,n){return!n.stats&&XO.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ny(e,n):ry(e,n)}wn.read=YO;function ny(e,n){return n.fs.readdirSync(e,{withFileTypes:!0}).map(s=>{let a={dirent:s,name:s.name,path:ty.joinPathSegments(e,s.name,n.pathSegmentSeparator)};if(a.dirent.isSymbolicLink()&&n.followSymbolicLinks)try{let c=n.fs.statSync(a.path);a.dirent=ey.fs.createDirentFromStats(a.name,c)}catch(c){if(n.throwErrorOnBrokenSymbolicLink)throw c}return a})}wn.readdirWithFileTypes=ny;function ry(e,n){return n.fs.readdirSync(e).map(s=>{let a=ty.joinPathSegments(e,s,n.pathSegmentSeparator),c=zO.statSync(a,n.fsStatSettings),l={name:s,path:a,dirent:ey.fs.createDirentFromStats(s,c)};return n.stats&&(l.stats=c),l})}wn.readdir=ry});var sy=T(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.createFileSystemAdapter=xn.FILE_SYSTEM_ADAPTER=void 0;var _r=N("fs");xn.FILE_SYSTEM_ADAPTER={lstat:_r.lstat,stat:_r.stat,lstatSync:_r.lstatSync,statSync:_r.statSync,readdir:_r.readdir,readdirSync:_r.readdirSync};function QO(e){return e===void 0?xn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xn.FILE_SYSTEM_ADAPTER),e)}xn.createFileSystemAdapter=QO});var oy=T($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var VO=N("path"),ZO=Fn(),JO=sy(),Nc=class{constructor(n={}){this._options=n,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=JO.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,VO.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ZO.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(n,i){return n??i}};$c.default=Nc});var Js=T(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.Settings=En.scandirSync=En.scandir=void 0;var ay=Jm(),eI=iy(),Dc=oy();En.Settings=Dc.default;function tI(e,n,i){if(typeof n=="function"){ay.read(e,Mc(),n);return}ay.read(e,Mc(n),i)}En.scandir=tI;function nI(e,n){let i=Mc(n);return eI.read(e,i)}En.scandirSync=nI;function Mc(e={}){return e instanceof Dc.default?e:new Dc.default(e)}});var cy=T((qM,uy)=>{"use strict";function rI(e){var n=new e,i=n;function s(){var c=n;return c.next?n=c.next:(n=new e,i=n),c.next=null,c}function a(c){i.next=c,i=c}return{get:s,release:a}}uy.exports=rI});var fy=T((BM,Fc)=>{"use strict";var iI=cy();function ly(e,n,i){if(typeof e=="function"&&(i=n,n=e,e=null),i<1)throw new Error("fastqueue concurrency must be greater than 1");var s=iI(sI),a=null,c=null,l=0,f=null,h={push:$,drain:At,saturated:At,pause:_,paused:!1,concurrency:i,running:m,resume:M,idle:A,length:x,getQueue:b,unshift:U,empty:At,kill:X,killAndDrain:z,error:Q};return h;function m(){return l}function _(){h.paused=!0}function x(){for(var D=a,Z=0;D;)D=D.next,Z++;return Z}function b(){for(var D=a,Z=[];D;)Z.push(D.value),D=D.next;return Z}function M(){if(!!h.paused){h.paused=!1;for(var D=0;D{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.joinPathSegments=Ut.replacePathSegmentSeparator=Ut.isAppliedFilter=Ut.isFatalError=void 0;function aI(e,n){return e.errorFilter===null?!0:!e.errorFilter(n)}Ut.isFatalError=aI;function uI(e,n){return e===null||e(n)}Ut.isAppliedFilter=uI;function cI(e,n){return e.split(/[/\\]/).join(n)}Ut.replacePathSegmentSeparator=cI;function lI(e,n,i){return e===""?n:e.endsWith(i)?e+n:e+i+n}Ut.joinPathSegments=lI});var Hc=T(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var fI=eo(),qc=class{constructor(n,i){this._root=n,this._settings=i,this._root=fI.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};Bc.default=qc});var Wc=T(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var pI=N("events"),hI=Js(),dI=fy(),to=eo(),gI=Hc(),Gc=class extends gI.default{constructor(n,i){super(n,i),this._settings=i,this._scandir=hI.scandir,this._emitter=new pI.EventEmitter,this._queue=dI(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 s={directory:n,base:i};this._queue.push(s,a=>{a!==null&&this._handleError(a)})}_worker(n,i){this._scandir(n.directory,this._settings.fsScandirSettings,(s,a)=>{if(s!==null){i(s,void 0);return}for(let c of a)this._handleEntry(c,n.base);i(null,void 0)})}_handleError(n){this._isDestroyed||!to.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 s=n.path;i!==void 0&&(n.path=to.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),to.isAppliedFilter(this._settings.entryFilter,n)&&this._emitEntry(n),n.dirent.isDirectory()&&to.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(s,i===void 0?void 0:n.path)}_emitEntry(n){this._emitter.emit("entry",n)}};Uc.default=Gc});var py=T(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var mI=Wc(),jc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new mI.default(this._root,this._settings),this._storage=[]}read(n){this._reader.onError(i=>{yI(n,i)}),this._reader.onEntry(i=>{this._storage.push(i)}),this._reader.onEnd(()=>{_I(n,this._storage)}),this._reader.read()}};Kc.default=jc;function yI(e,n){e(n)}function _I(e,n){e(null,n)}});var hy=T(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var vI=N("stream"),bI=Wc(),zc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new bI.default(this._root,this._settings),this._stream=new vI.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}};Xc.default=zc});var dy=T(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});var SI=Js(),no=eo(),wI=Hc(),Yc=class extends wI.default{constructor(){super(...arguments),this._scandir=SI.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 s=this._scandir(n,this._settings.fsScandirSettings);for(let a of s)this._handleEntry(a,i)}catch(s){this._handleError(s)}}_handleError(n){if(!!no.isFatalError(this._settings,n))throw n}_handleEntry(n,i){let s=n.path;i!==void 0&&(n.path=no.joinPathSegments(i,n.name,this._settings.pathSegmentSeparator)),no.isAppliedFilter(this._settings.entryFilter,n)&&this._pushToStorage(n),n.dirent.isDirectory()&&no.isAppliedFilter(this._settings.deepFilter,n)&&this._pushToQueue(s,i===void 0?void 0:n.path)}_pushToStorage(n){this._storage.push(n)}};Qc.default=Yc});var gy=T(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var xI=dy(),Vc=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new xI.default(this._root,this._settings)}read(){return this._reader.read()}};Zc.default=Vc});var my=T(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var EI=N("path"),AI=Js(),Jc=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,EI.sep),this.fsScandirSettings=new AI.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}};el.default=Jc});var io=T(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.Settings=Wt.walkStream=Wt.walkSync=Wt.walk=void 0;var yy=py(),CI=hy(),RI=gy(),tl=my();Wt.Settings=tl.default;function PI(e,n,i){if(typeof n=="function"){new yy.default(e,ro()).read(n);return}new yy.default(e,ro(n)).read(i)}Wt.walk=PI;function TI(e,n){let i=ro(n);return new RI.default(e,i).read()}Wt.walkSync=TI;function OI(e,n){let i=ro(n);return new CI.default(e,i).read()}Wt.walkStream=OI;function ro(e={}){return e instanceof tl.default?e:new tl.default(e)}});var so=T(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var II=N("path"),LI=Fn(),_y=sn(),nl=class{constructor(n){this._settings=n,this._fsStatSettings=new LI.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(n){return II.resolve(this._settings.cwd,n)}_makeEntry(n,i){let s={name:i,path:i,dirent:_y.fs.createDirentFromStats(i,n)};return this._settings.stats&&(s.stats=n),s}_isFatalError(n){return!_y.errno.isEnoentCodeError(n)&&!this._settings.suppressErrors}};rl.default=nl});var ol=T(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var kI=N("stream"),NI=Fn(),$I=io(),DI=so(),il=class extends DI.default{constructor(){super(...arguments),this._walkStream=$I.walkStream,this._stat=NI.stat}dynamic(n,i){return this._walkStream(n,i)}static(n,i){let s=n.map(this._getFullEntryPath,this),a=new kI.PassThrough({objectMode:!0});a._write=(c,l,f)=>this._getEntry(s[c],n[c],i).then(h=>{h!==null&&i.entryFilter(h)&&a.push(h),c===s.length-1&&a.end(),f()}).catch(f);for(let c=0;cthis._makeEntry(a,i)).catch(a=>{if(s.errorFilter(a))return null;throw a})}_getStat(n){return new Promise((i,s)=>{this._stat(n,this._fsStatSettings,(a,c)=>a===null?i(c):s(a))})}};sl.default=il});var vy=T(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var MI=io(),FI=so(),qI=ol(),al=class extends FI.default{constructor(){super(...arguments),this._walkAsync=MI.walk,this._readerStream=new qI.default(this._settings)}dynamic(n,i){return new Promise((s,a)=>{this._walkAsync(n,i,(c,l)=>{c===null?s(l):a(c)})})}async static(n,i){let s=[],a=this._readerStream.static(n,i);return new Promise((c,l)=>{a.once("error",l),a.on("data",f=>s.push(f)),a.once("end",()=>c(s))})}};ul.default=al});var by=T(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var xi=sn(),cl=class{constructor(n,i,s){this._patterns=n,this._settings=i,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){for(let n of this._patterns){let i=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(i);this._storage.push({complete:s.length<=1,pattern:n,segments:i,sections:s})}}_getPatternSegments(n){return xi.pattern.getPatternParts(n,this._micromatchOptions).map(s=>xi.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:xi.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(n){return xi.array.splitWhen(n,i=>i.dynamic&&xi.pattern.hasGlobStar(i.pattern))}};ll.default=cl});var Sy=T(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var BI=by(),fl=class extends BI.default{match(n){let i=n.split("/"),s=i.length,a=this._storage.filter(c=>!c.complete||c.segments.length>s);for(let c of a){let l=c.sections[0];if(!c.complete&&s>l.length||i.every((h,m)=>{let _=c.segments[m];return!!(_.dynamic&&_.patternRe.test(h)||!_.dynamic&&_.pattern===h)}))return!0}return!1}};pl.default=fl});var wy=T(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var oo=sn(),HI=Sy(),hl=class{constructor(n,i){this._settings=n,this._micromatchOptions=i}getFilter(n,i,s){let a=this._getMatcher(i),c=this._getNegativePatternsRe(s);return l=>this._filter(n,l,a,c)}_getMatcher(n){return new HI.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let i=n.filter(oo.pattern.isAffectDepthOfReadingPattern);return oo.pattern.convertPatternsToRe(i,this._micromatchOptions)}_filter(n,i,s,a){if(this._isSkippedByDeep(n,i.path)||this._isSkippedSymbolicLink(i))return!1;let c=oo.path.removeLeadingDotSegment(i.path);return this._isSkippedByPositivePatterns(c,s)?!1:this._isSkippedByNegativePatterns(c,a)}_isSkippedByDeep(n,i){return this._settings.deep===1/0?!1:this._getEntryLevel(n,i)>=this._settings.deep}_getEntryLevel(n,i){let s=i.split("/").length;if(n==="")return s;let a=n.split("/").length;return s-a}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,i){return!this._settings.baseNameMatch&&!i.match(n)}_isSkippedByNegativePatterns(n,i){return!oo.pattern.matchAny(n,i)}};dl.default=hl});var xy=T(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var qn=sn(),gl=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let s=qn.pattern.convertPatternsToRe(n,this._micromatchOptions),a=qn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return c=>this._filter(c,s,a)}_filter(n,i,s){let a=qn.path.removeLeadingDotSegment(n.path);if(this._settings.unique&&this._isDuplicateEntry(a)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(a,s))return!1;let c=n.dirent.isDirectory(),l=this._isMatchToPatterns(a,i,c)&&!this._isMatchToPatterns(a,s,c);return this._settings.unique&&l&&this._createIndexRecord(a),l}_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 s=qn.path.makeAbsolute(this._settings.cwd,n);return qn.pattern.matchAny(s,i)}_isMatchToPatterns(n,i,s){let a=qn.pattern.matchAny(n,i);return!a&&s?qn.pattern.matchAny(n+"/",i):a}};ml.default=gl});var Ey=T(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var GI=sn(),yl=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return GI.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};_l.default=yl});var Cy=T(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var Ay=sn(),vl=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=Ay.path.makeAbsolute(this._settings.cwd,i),i=Ay.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};bl.default=vl});var ao=T(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var UI=N("path"),WI=wy(),jI=xy(),KI=Ey(),zI=Cy(),Sl=class{constructor(n){this._settings=n,this.errorFilter=new KI.default(this._settings),this.entryFilter=new jI.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new WI.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new zI.default(this._settings)}_getRootDirectory(n){return UI.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}}};wl.default=Sl});var Ry=T(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var XI=vy(),YI=ao(),xl=class extends YI.default{constructor(){super(...arguments),this._reader=new XI.default(this._settings)}async read(n){let i=this._getRootDirectory(n),s=this._getReaderOptions(n);return(await this.api(i,n,s)).map(c=>s.transform(c))}api(n,i,s){return i.dynamic?this._reader.dynamic(n,s):this._reader.static(i.patterns,s)}};El.default=xl});var Py=T(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var QI=N("stream"),VI=ol(),ZI=ao(),Al=class extends ZI.default{constructor(){super(...arguments),this._reader=new VI.default(this._settings)}read(n){let i=this._getRootDirectory(n),s=this._getReaderOptions(n),a=this.api(i,n,s),c=new QI.Readable({objectMode:!0,read:()=>{}});return a.once("error",l=>c.emit("error",l)).on("data",l=>c.emit("data",s.transform(l))).once("end",()=>c.emit("end")),c.once("close",()=>a.destroy()),c}api(n,i,s){return i.dynamic?this._reader.dynamic(n,s):this._reader.static(i.patterns,s)}};Cl.default=Al});var Ty=T(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var JI=Fn(),eL=io(),tL=so(),Rl=class extends tL.default{constructor(){super(...arguments),this._walkSync=eL.walkSync,this._statSync=JI.statSync}dynamic(n,i){return this._walkSync(n,i)}static(n,i){let s=[];for(let a of n){let c=this._getFullEntryPath(a),l=this._getEntry(c,a,i);l===null||!i.entryFilter(l)||s.push(l)}return s}_getEntry(n,i,s){try{let a=this._getStat(n);return this._makeEntry(a,i)}catch(a){if(s.errorFilter(a))return null;throw a}}_getStat(n){return this._statSync(n,this._fsStatSettings)}};Pl.default=Rl});var Oy=T(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var nL=Ty(),rL=ao(),Tl=class extends rL.default{constructor(){super(...arguments),this._reader=new nL.default(this._settings)}read(n){let i=this._getRootDirectory(n),s=this._getReaderOptions(n);return this.api(i,n,s).map(s.transform)}api(n,i,s){return i.dynamic?this._reader.dynamic(n,s):this._reader.static(i.patterns,s)}};Ol.default=Tl});var Iy=T(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var vr=N("fs"),iL=N("os"),sL=Math.max(iL.cpus().length,1);br.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:vr.lstat,lstatSync:vr.lstatSync,stat:vr.stat,statSync:vr.statSync,readdir:vr.readdir,readdirSync:vr.readdirSync};var Il=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,sL),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({},br.DEFAULT_FILE_SYSTEM_ADAPTER),n)}};br.default=Il});var $l=T((fF,ky)=>{"use strict";var Ly=km(),oL=Ry(),aL=Py(),uL=Oy(),Ll=Iy(),Ct=sn();async function kl(e,n){kt(e);let i=Nl(e,oL.default,n),s=await Promise.all(i);return Ct.array.flatten(s)}(function(e){e.glob=e,e.globSync=n,e.globStream=i,e.async=e;function n(m,_){kt(m);let x=Nl(m,uL.default,_);return Ct.array.flatten(x)}e.sync=n;function i(m,_){kt(m);let x=Nl(m,aL.default,_);return Ct.stream.merge(x)}e.stream=i;function s(m,_){kt(m);let x=[].concat(m),b=new Ll.default(_);return Ly.generate(x,b)}e.generateTasks=s;function a(m,_){kt(m);let x=new Ll.default(_);return Ct.pattern.isDynamicPattern(m,x)}e.isDynamicPattern=a;function c(m){return kt(m),Ct.path.escape(m)}e.escapePath=c;function l(m){return kt(m),Ct.path.convertPathToPattern(m)}e.convertPathToPattern=l;let f;(function(m){function _(b){return kt(b),Ct.path.escapePosixPath(b)}m.escapePath=_;function x(b){return kt(b),Ct.path.convertPosixPathToPattern(b)}m.convertPathToPattern=x})(f=e.posix||(e.posix={}));let h;(function(m){function _(b){return kt(b),Ct.path.escapeWindowsPath(b)}m.escapePath=_;function x(b){return kt(b),Ct.path.convertWindowsPathToPattern(b)}m.convertPathToPattern=x})(h=e.win32||(e.win32={}))})(kl||(kl={}));function Nl(e,n,i){let s=[].concat(e),a=new Ll.default(i),c=Ly.generate(s,a),l=new n(a);return c.map(l.read,l)}function kt(e){if(![].concat(e).every(s=>Ct.string.isString(s)&&!Ct.string.isEmpty(s)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ky.exports=kl});var $y=T(Bn=>{"use strict";var{promisify:cL}=N("util"),Ny=N("fs");async function Dl(e,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await cL(Ny[e])(i))[n]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}function Ml(e,n,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return Ny[e](i)[n]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}Bn.isFile=Dl.bind(null,"stat","isFile");Bn.isDirectory=Dl.bind(null,"stat","isDirectory");Bn.isSymlink=Dl.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 By=T((hF,Fl)=>{"use strict";var Hn=N("path"),Dy=$y(),My=e=>e.length>1?`{${e.join(",")}}`:e[0],Fy=(e,n)=>{let i=e[0]==="!"?e.slice(1):e;return Hn.isAbsolute(i)?i:Hn.join(n,i)},lL=(e,n)=>Hn.extname(e)?`**/${e}`:`**/${e}.${My(n)}`,qy=(e,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=>Hn.posix.join(e,lL(i,n.extensions))):n.files?n.files.map(i=>Hn.posix.join(e,`**/${i}`)):n.extensions?[Hn.posix.join(e,`**/*.${My(n.extensions)}`)]:[Hn.posix.join(e,"**")]};Fl.exports=async(e,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(e).map(async s=>await Dy.isDirectory(Fy(s,n.cwd))?qy(s,n):s));return[].concat.apply([],i)};Fl.exports.sync=(e,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(e).map(s=>Dy.isDirectorySync(Fy(s,n.cwd))?qy(s,n):s);return[].concat.apply([],i)}});var Qy=T((dF,Yy)=>{function Hy(e){return Array.isArray(e)?e:[e]}var jy="",Gy=" ",ql="\\",fL=/^\s+$/,pL=/(?:[^\\]|^)\\$/,hL=/^\\!/,dL=/^\\#/,gL=/\r?\n/g,mL=/^\.*\/|^\.+$/,Bl="/",Ky="node-ignore";typeof Symbol<"u"&&(Ky=Symbol.for("node-ignore"));var Uy=Ky,yL=(e,n,i)=>Object.defineProperty(e,n,{value:i}),_L=/([0-z])-([0-z])/g,zy=()=>!1,vL=e=>e.replace(_L,(n,i,s)=>i.charCodeAt(0)<=s.charCodeAt(0)?n:jy),bL=e=>{let{length:n}=e;return e.slice(0,n-n%2)},SL=[[/\\?\s+$/,e=>e.indexOf("\\")===0?Gy:jy],[/\\\s/g,()=>Gy],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,n,i)=>n+6{let s=i.replace(/\\\*/g,"[^\\/]*");return n+s}],[/\\\\\\(?=[$.|*+(){^])/g,()=>ql],[/\\\\/g,()=>ql],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,n,i,s,a)=>n===ql?`\\[${i}${bL(s)}${a}`:a==="]"&&s.length%2===0?`[${vL(i)}${s}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,n)=>`${n?`${n}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Wy=Object.create(null),wL=(e,n)=>{let i=Wy[e];return i||(i=SL.reduce((s,a)=>s.replace(a[0],a[1].bind(e)),e),Wy[e]=i),n?new RegExp(i,"i"):new RegExp(i)},Ul=e=>typeof e=="string",xL=e=>e&&Ul(e)&&!fL.test(e)&&!pL.test(e)&&e.indexOf("#")!==0,EL=e=>e.split(gL),Hl=class{constructor(n,i,s,a){this.origin=n,this.pattern=i,this.negative=s,this.regex=a}},AL=(e,n)=>{let i=e,s=!1;e.indexOf("!")===0&&(s=!0,e=e.substr(1)),e=e.replace(hL,"!").replace(dL,"#");let a=wL(e,n);return new Hl(i,e,s,a)},CL=(e,n)=>{throw new n(e)},on=(e,n,i)=>Ul(e)?e?on.isNotRelative(e)?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),Xy=e=>mL.test(e);on.isNotRelative=Xy;on.convert=e=>e;var Gl=class{constructor({ignorecase:n=!0,ignoreCase:i=n,allowRelativePaths:s=!1}={}){yL(this,Uy,!0),this._rules=[],this._ignoreCase=i,this._allowRelativePaths=s,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(n){if(n&&n[Uy]){this._rules=this._rules.concat(n._rules),this._added=!0;return}if(xL(n)){let i=AL(n,this._ignoreCase);this._added=!0,this._rules.push(i)}}add(n){return this._added=!1,Hy(Ul(n)?EL(n):n).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(n){return this.add(n)}_testOne(n,i){let s=!1,a=!1;return this._rules.forEach(c=>{let{negative:l}=c;if(a===l&&s!==a||l&&!s&&!a&&!i)return;c.regex.test(n)&&(s=!l,a=l)}),{ignored:s,unignored:a}}_test(n,i,s,a){let c=n&&on.convert(n);return on(c,n,this._allowRelativePaths?zy:CL),this._t(c,i,s,a)}_t(n,i,s,a){if(n in i)return i[n];if(a||(a=n.split(Bl)),a.pop(),!a.length)return i[n]=this._testOne(n,s);let c=this._t(a.join(Bl)+Bl,i,s,a);return i[n]=c.ignored?c:this._testOne(n,s)}ignores(n){return this._test(n,this._ignoreCache,!1).ignored}createFilter(){return n=>!this.ignores(n)}filter(n){return Hy(n).filter(this.createFilter())}test(n){return this._test(n,this._testCache,!0)}},uo=e=>new Gl(e),RL=e=>on(e&&on.convert(e),e,zy);uo.isPathValid=RL;uo.default=uo;Yy.exports=uo;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=i=>/^\\\\\?\\/.test(i)||/["<>|\u0000-\u001F]+/u.test(i)?i:i.replace(/\\/g,"/");on.convert=e;let n=/^[a-z]:\//i;on.isNotRelative=i=>n.test(i)||Xy(i)}});var Un=T((xr,Ri)=>{(function(){var e,n="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",m=1,_=2,x=4,b=1,M=2,A=1,$=2,U=4,H=8,X=16,z=32,Q=64,D=128,Z=256,V=512,j=30,ae="...",Te=800,L=16,be=1,ye=2,Dt=3,C=1/0,R=9007199254740991,He=17976931348623157e292,fe=0/0,Le=4294967295,gt=Le-1,Ye=Le>>>1,zn=[["ary",D],["bind",A],["bindKey",$],["curry",H],["curryRight",X],["flip",V],["partial",z],["partialRight",Q],["rearg",Z]],un="[object Arguments]",Kt="[object Array]",zt="[object AsyncFunction]",oe="[object Boolean]",Mt="[object Date]",Pa="[object DOMException]",B="[object Error]",_e="[object Function]",F="[object GeneratorFunction]",ee="[object Map]",Se="[object Number]",Ge="[object Null]",we="[object Object]",Xn="[object Promise]",Yn="[object Proxy]",Jr="[object RegExp]",Rt="[object Set]",ei="[object String]",Wi="[object Symbol]",yw="[object Undefined]",ti="[object WeakMap]",_w="[object WeakSet]",ni="[object ArrayBuffer]",Qn="[object DataView]",Ta="[object Float32Array]",Oa="[object Float64Array]",Ia="[object Int8Array]",La="[object Int16Array]",ka="[object Int32Array]",Na="[object Uint8Array]",$a="[object Uint8ClampedArray]",Da="[object Uint16Array]",Ma="[object Uint32Array]",vw=/\b__p \+= '';/g,bw=/\b(__p \+=) '' \+/g,Sw=/(__e\(.*?\)|\b__t\)) \+\n'';/g,op=/&(?:amp|lt|gt|quot|#39);/g,ap=/[&<>"']/g,ww=RegExp(op.source),xw=RegExp(ap.source),Ew=/<%-([\s\S]+?)%>/g,Aw=/<%([\s\S]+?)%>/g,up=/<%=([\s\S]+?)%>/g,Cw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rw=/^\w*$/,Pw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fa=/[\\^$.*+?()[\]{}|]/g,Tw=RegExp(Fa.source),qa=/^\s+/,Ow=/\s/,Iw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Lw=/\{\n\/\* \[wrapped with (.+)\] \*/,kw=/,? & /,Nw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$w=/[()=,{}\[\]\/\s]/,Dw=/\\(\\)?/g,Mw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cp=/\w*$/,Fw=/^[-+]0x[0-9a-f]+$/i,qw=/^0b[01]+$/i,Bw=/^\[object .+?Constructor\]$/,Hw=/^0o[0-7]+$/i,Gw=/^(?:0|[1-9]\d*)$/,Uw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ji=/($^)/,Ww=/['\n\r\u2028\u2029\\]/g,Ki="\\ud800-\\udfff",jw="\\u0300-\\u036f",Kw="\\ufe20-\\ufe2f",zw="\\u20d0-\\u20ff",lp=jw+Kw+zw,fp="\\u2700-\\u27bf",pp="a-z\\xdf-\\xf6\\xf8-\\xff",Xw="\\xac\\xb1\\xd7\\xf7",Yw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qw="\\u2000-\\u206f",Vw=" \\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",hp="A-Z\\xc0-\\xd6\\xd8-\\xde",dp="\\ufe0e\\ufe0f",gp=Xw+Yw+Qw+Vw,Ba="['\u2019]",Zw="["+Ki+"]",mp="["+gp+"]",zi="["+lp+"]",yp="\\d+",Jw="["+fp+"]",_p="["+pp+"]",vp="[^"+Ki+gp+yp+fp+pp+hp+"]",Ha="\\ud83c[\\udffb-\\udfff]",ex="(?:"+zi+"|"+Ha+")",bp="[^"+Ki+"]",Ga="(?:\\ud83c[\\udde6-\\uddff]){2}",Ua="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+hp+"]",Sp="\\u200d",wp="(?:"+_p+"|"+vp+")",tx="(?:"+Vn+"|"+vp+")",xp="(?:"+Ba+"(?:d|ll|m|re|s|t|ve))?",Ep="(?:"+Ba+"(?:D|LL|M|RE|S|T|VE))?",Ap=ex+"?",Cp="["+dp+"]?",nx="(?:"+Sp+"(?:"+[bp,Ga,Ua].join("|")+")"+Cp+Ap+")*",rx="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ix="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rp=Cp+Ap+nx,sx="(?:"+[Jw,Ga,Ua].join("|")+")"+Rp,ox="(?:"+[bp+zi+"?",zi,Ga,Ua,Zw].join("|")+")",ax=RegExp(Ba,"g"),ux=RegExp(zi,"g"),Wa=RegExp(Ha+"(?="+Ha+")|"+ox+Rp,"g"),cx=RegExp([Vn+"?"+_p+"+"+xp+"(?="+[mp,Vn,"$"].join("|")+")",tx+"+"+Ep+"(?="+[mp,Vn+wp,"$"].join("|")+")",Vn+"?"+wp+"+"+xp,Vn+"+"+Ep,ix,rx,yp,sx].join("|"),"g"),lx=RegExp("["+Sp+Ki+lp+dp+"]"),fx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,px=["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"],hx=-1,Ce={};Ce[Ta]=Ce[Oa]=Ce[Ia]=Ce[La]=Ce[ka]=Ce[Na]=Ce[$a]=Ce[Da]=Ce[Ma]=!0,Ce[un]=Ce[Kt]=Ce[ni]=Ce[oe]=Ce[Qn]=Ce[Mt]=Ce[B]=Ce[_e]=Ce[ee]=Ce[Se]=Ce[we]=Ce[Jr]=Ce[Rt]=Ce[ei]=Ce[ti]=!1;var Ae={};Ae[un]=Ae[Kt]=Ae[ni]=Ae[Qn]=Ae[oe]=Ae[Mt]=Ae[Ta]=Ae[Oa]=Ae[Ia]=Ae[La]=Ae[ka]=Ae[ee]=Ae[Se]=Ae[we]=Ae[Jr]=Ae[Rt]=Ae[ei]=Ae[Wi]=Ae[Na]=Ae[$a]=Ae[Da]=Ae[Ma]=!0,Ae[B]=Ae[_e]=Ae[ti]=!1;var dx={\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"},gx={"&":"&","<":"<",">":">",'"':""","'":"'"},mx={"&":"&","<":"<",">":">",""":'"',"'":"'"},yx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_x=parseFloat,vx=parseInt,Pp=typeof global=="object"&&global&&global.Object===Object&&global,bx=typeof self=="object"&&self&&self.Object===Object&&self,qe=Pp||bx||Function("return this")(),ja=typeof xr=="object"&&xr&&!xr.nodeType&&xr,Rn=ja&&typeof Ri=="object"&&Ri&&!Ri.nodeType&&Ri,Tp=Rn&&Rn.exports===ja,Ka=Tp&&Pp.process,mt=function(){try{var S=Rn&&Rn.require&&Rn.require("util").types;return S||Ka&&Ka.binding&&Ka.binding("util")}catch{}}(),Op=mt&&mt.isArrayBuffer,Ip=mt&&mt.isDate,Lp=mt&&mt.isMap,kp=mt&&mt.isRegExp,Np=mt&&mt.isSet,$p=mt&&mt.isTypedArray;function st(S,P,E){switch(E.length){case 0:return S.call(P);case 1:return S.call(P,E[0]);case 2:return S.call(P,E[0],E[1]);case 3:return S.call(P,E[0],E[1],E[2])}return S.apply(P,E)}function Sx(S,P,E,G){for(var ie=-1,ge=S==null?0:S.length;++ie-1}function za(S,P,E){for(var G=-1,ie=S==null?0:S.length;++G-1;);return E}function Up(S,P){for(var E=S.length;E--&&Zn(P,S[E],0)>-1;);return E}function Ox(S,P){for(var E=S.length,G=0;E--;)S[E]===P&&++G;return G}var Ix=Va(dx),Lx=Va(gx);function kx(S){return"\\"+yx[S]}function Nx(S,P){return S==null?e:S[P]}function Jn(S){return lx.test(S)}function $x(S){return fx.test(S)}function Dx(S){for(var P,E=[];!(P=S.next()).done;)E.push(P.value);return E}function tu(S){var P=-1,E=Array(S.size);return S.forEach(function(G,ie){E[++P]=[ie,G]}),E}function Wp(S,P){return function(E){return S(P(E))}}function fn(S,P){for(var E=-1,G=S.length,ie=0,ge=[];++E-1}function xE(t,r){var o=this.__data__,u=fs(o,t);return u<0?(++this.size,o.push([t,r])):o[u][1]=r,this}Xt.prototype.clear=vE,Xt.prototype.delete=bE,Xt.prototype.get=SE,Xt.prototype.has=wE,Xt.prototype.set=xE;function Yt(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r=r?t:r)),t}function bt(t,r,o,u,p,g){var y,v=r&m,w=r&_,O=r&x;if(o&&(y=p?o(t,u,p,g):o(t)),y!==e)return y;if(!Oe(t))return t;var I=se(t);if(I){if(y=RA(t),!v)return Je(t,y)}else{var k=Ke(t),q=k==_e||k==F;if(_n(t))return Ch(t,v);if(k==we||k==un||q&&!p){if(y=w||q?{}:jh(t),!v)return w?mA(t,qE(y,t)):gA(t,nh(y,t))}else{if(!Ae[k])return p?t:{};y=PA(t,k,v)}}g||(g=new Tt);var W=g.get(t);if(W)return W;g.set(t,y),bd(t)?t.forEach(function(ne){y.add(bt(ne,r,o,ne,t,g))}):_d(t)&&t.forEach(function(ne,pe){y.set(pe,bt(ne,r,o,pe,t,g))});var te=O?w?Ru:Cu:w?tt:Be,ce=I?e:te(t);return yt(ce||t,function(ne,pe){ce&&(pe=ne,ne=t[pe]),ci(y,pe,bt(ne,r,o,pe,t,g))}),y}function BE(t){var r=Be(t);return function(o){return rh(o,t,r)}}function rh(t,r,o){var u=o.length;if(t==null)return!u;for(t=Ee(t);u--;){var p=o[u],g=r[p],y=t[p];if(y===e&&!(p in t)||!g(y))return!1}return!0}function ih(t,r,o){if(typeof t!="function")throw new _t(a);return mi(function(){t.apply(e,o)},r)}function li(t,r,o,u){var p=-1,g=Xi,y=!0,v=t.length,w=[],O=r.length;if(!v)return w;o&&(r=Re(r,ot(o))),u?(g=za,y=!1):r.length>=i&&(g=ri,y=!1,r=new On(r));e:for(;++pp?0:p+o),u=u===e||u>p?p:ue(u),u<0&&(u+=p),u=o>u?0:wd(u);o0&&o(v)?r>1?Ue(v,r-1,o,u,p):ln(p,v):u||(p[p.length]=v)}return p}var uu=Lh(),ah=Lh(!0);function Ft(t,r){return t&&uu(t,r,Be)}function cu(t,r){return t&&ah(t,r,Be)}function hs(t,r){return cn(r,function(o){return en(t[o])})}function Ln(t,r){r=mn(r,t);for(var o=0,u=r.length;t!=null&&or}function UE(t,r){return t!=null&&xe.call(t,r)}function WE(t,r){return t!=null&&r in Ee(t)}function jE(t,r,o){return t>=je(r,o)&&t=120&&I.length>=120)?new On(y&&I):e}I=t[0];var k=-1,q=v[0];e:for(;++k-1;)v!==t&&is.call(v,w,1),is.call(t,w,1);return t}function _h(t,r){for(var o=t?r.length:0,u=o-1;o--;){var p=r[o];if(o==u||p!==g){var g=p;Jt(p)?is.call(t,p,1):vu(t,p)}}return t}function mu(t,r){return t+as(Zp()*(r-t+1))}function iA(t,r,o,u){for(var p=-1,g=Fe(os((r-t)/(o||1)),0),y=E(g);g--;)y[u?g:++p]=t,t+=o;return y}function yu(t,r){var o="";if(!t||r<1||r>R)return o;do r%2&&(o+=t),r=as(r/2),r&&(t+=t);while(r);return o}function le(t,r){return Nu(Xh(t,r,nt),t+"")}function sA(t){return th(cr(t))}function oA(t,r){var o=cr(t);return Es(o,In(r,0,o.length))}function hi(t,r,o,u){if(!Oe(t))return t;r=mn(r,t);for(var p=-1,g=r.length,y=g-1,v=t;v!=null&&++pp?0:p+r),o=o>p?p:o,o<0&&(o+=p),p=r>o?0:o-r>>>0,r>>>=0;for(var g=E(p);++u>>1,y=t[g];y!==null&&!ut(y)&&(o?y<=r:y=i){var O=r?null:bA(t);if(O)return Qi(O);y=!1,p=ri,w=new On}else w=r?[]:v;e:for(;++u=u?t:St(t,r,o)}var Ah=Vx||function(t){return qe.clearTimeout(t)};function Ch(t,r){if(r)return t.slice();var o=t.length,u=zp?zp(o):new t.constructor(o);return t.copy(u),u}function xu(t){var r=new t.constructor(t.byteLength);return new ns(r).set(new ns(t)),r}function fA(t,r){var o=r?xu(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}function pA(t){var r=new t.constructor(t.source,cp.exec(t));return r.lastIndex=t.lastIndex,r}function hA(t){return ui?Ee(ui.call(t)):{}}function Rh(t,r){var o=r?xu(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}function Ph(t,r){if(t!==r){var o=t!==e,u=t===null,p=t===t,g=ut(t),y=r!==e,v=r===null,w=r===r,O=ut(r);if(!v&&!O&&!g&&t>r||g&&y&&w&&!v&&!O||u&&y&&w||!o&&w||!p)return 1;if(!u&&!g&&!O&&t=v)return w;var O=o[u];return w*(O=="desc"?-1:1)}}return t.index-r.index}function Th(t,r,o,u){for(var p=-1,g=t.length,y=o.length,v=-1,w=r.length,O=Fe(g-y,0),I=E(w+O),k=!u;++v1?o[p-1]:e,y=p>2?o[2]:e;for(g=t.length>3&&typeof g=="function"?(p--,g):e,y&&Ve(o[0],o[1],y)&&(g=p<3?e:g,p=1),r=Ee(r);++u-1?p[g?r[y]:y]:e}}function $h(t){return Zt(function(r){var o=r.length,u=o,p=vt.prototype.thru;for(t&&r.reverse();u--;){var g=r[u];if(typeof g!="function")throw new _t(a);if(p&&!y&&ws(g)=="wrapper")var y=new vt([],!0)}for(u=y?u:o;++u1&&de.reverse(),I&&wv))return!1;var O=g.get(t),I=g.get(r);if(O&&I)return O==r&&I==t;var k=-1,q=!0,W=o&M?new On:e;for(g.set(t,r),g.set(r,t);++k1?"& ":"")+r[u],r=r.join(o>2?", ":" "),t.replace(Iw,`{ /* [wrapped with `+r+`] */ -`)}function IS(e){return se(e)||Nn(e)||!!(Gf&&e&&e[Gf])}function Jt(e,r){var s=typeof e;return r=r??R,!!r&&(s=="number"||s!="symbol"&&Uv.test(e))&&e>-1&&e%1==0&&e0){if(++r>=Pe)return arguments[0]}else r=0;return e.apply(t,arguments)}}function hs(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,ep(e,s)});function tp(e){var r=p(e);return r.__chain__=!0,r}function Wx(e,r){return r(e),e}function ps(e,r){return r(e)}var Ux=Vt(function(e){var r=e.length,s=r?e[0]:0,a=this.__wrapped__,l=function(d){return Du(d,e)};return r>1||this.__actions__.length||!(a instanceof pe)||!Jt(s)?this.thru(l):(a=a.slice(s,+s+(r?1:0)),a.__actions__.push({func:ps,args:[l],thisArg:t}),new vt(a,this.__chain__).thru(function(d){return r&&!d.length&&d.push(t),d}))});function Gx(){return tp(this)}function jx(){return new vt(this.value(),this.__chain__)}function Kx(){this.__values__===t&&(this.__values__=gp(this.value()));var e=this.__index__>=this.__values__.length,r=e?t:this.__values__[this.__index__++];return{done:e,value:r}}function Xx(){return this}function zx(e){for(var r,s=this;s instanceof Vi;){var a=zh(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 Yx(){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:ps,args:[aa],thisArg:t}),new vt(r,this.__chain__)}return this.thru(aa)}function Qx(){return _h(this.__wrapped__,this.__actions__)}var Zx=ss(function(e,r,s){Se.call(e,s)?++e[s]:Qt(e,s,1)});function Vx(e,r,s){var a=se(e)?Of:Wb;return s&&Ze(e,r,s)&&(r=t),a(e,X(r,3))}function Jx(e,r){var s=se(e)?cn:eh;return s(e,X(r,3))}var eE=Ph(Yh),tE=Ph(Qh);function nE(e,r){return Ue(ds(e,r),1)}function rE(e,r){return Ue(ds(e,r),A)}function iE(e,r,s){return s=s===t?1:ae(s),Ue(ds(e,r),s)}function np(e,r){var s=se(e)?_t:dn;return s(e,X(r,3))}function rp(e,r){var s=se(e)?xw:Jf;return s(e,X(r,3))}var sE=ss(function(e,r,s){Se.call(e,s)?e[s].push(r):Qt(e,s,[r])});function oE(e,r,s,a){e=et(e)?e:or(e),s=s&&!a?ae(s):0;var l=e.length;return s<0&&(s=Me(l+s,0)),vs(e)?s<=l&&e.indexOf(r,s)>-1:!!l&&Yn(e,r,s)>-1}var uE=le(function(e,r,s){var a=-1,l=typeof r=="function",d=et(e)?E(e.length):[];return dn(e,function(m){d[++a]=l?st(r,m,s):si(m,r,s)}),d}),aE=ss(function(e,r,s){Qt(e,s,r)});function ds(e,r){var s=se(e)?Re:oh;return s(e,X(r,3))}function cE(e,r,s,a){return e==null?[]:(se(r)||(r=r==null?[]:[r]),s=a?t:s,se(s)||(s=s==null?[]:[s]),lh(e,r,s))}var lE=ss(function(e,r,s){e[s?0:1].push(r)},function(){return[[],[]]});function fE(e,r,s){var a=se(e)?bu:Df,l=arguments.length<3;return a(e,X(r,4),s,l,dn)}function hE(e,r,s){var a=se(e)?Ew:Df,l=arguments.length<3;return a(e,X(r,4),s,l,Jf)}function pE(e,r){var s=se(e)?cn:eh;return s(e,_s(X(r,3)))}function dE(e){var r=se(e)?Yf:oS;return r(e)}function gE(e,r,s){(s?Ze(e,r,s):r===t)?r=1:r=ae(r);var a=se(e)?Mb:uS;return a(e,r)}function mE(e){var r=se(e)?Fb:cS;return r(e)}function _E(e){if(e==null)return 0;if(et(e))return vs(e)?Zn(e):e.length;var r=Ke(e);return r==Z||r==Ct?e.size:Hu(e).length}function yE(e,r,s){var a=se(e)?Su:lS;return s&&Ze(e,r,s)&&(r=t),a(e,X(r,3))}var vE=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]]),lh(e,Ue(r,1),[])}),gs=Jw||function(){return Fe.Date.now()};function wE(e,r){if(typeof r!="function")throw new yt(u);return e=ae(e),function(){if(--e<1)return r.apply(this,arguments)}}function ip(e,r,s){return r=s?t:r,r=e&&r==null?e.length:r,Zt(e,N,t,t,t,t,r)}function sp(e,r){var s;if(typeof r!="function")throw new yt(u);return e=ae(e),function(){return--e>0&&(s=r.apply(this,arguments)),e<=1&&(r=t),s}}var la=le(function(e,r,s){var a=O;if(s.length){var l=fn(s,ir(la));a|=z}return Zt(e,a,r,s,l)}),op=le(function(e,r,s){var a=O|D;if(s.length){var l=fn(s,ir(op));a|=z}return Zt(r,a,e,s,l)});function up(e,r,s){r=s?t:r;var a=Zt(e,W,t,t,t,t,t,r);return a.placeholder=up.placeholder,a}function ap(e,r,s){r=s?t:r;var a=Zt(e,te,t,t,t,t,t,r);return a.placeholder=ap.placeholder,a}function cp(e,r,s){var a,l,d,m,y,b,P=0,T=!1,k=!1,M=!0;if(typeof e!="function")throw new yt(u);r=xt(r)||0,Te(s)&&(T=!!s.leading,k="maxWait"in s,d=k?Me(xt(s.maxWait)||0,r):d,M="trailing"in s?!!s.trailing:M);function U(ke){var It=a,nn=l;return a=l=t,P=ke,m=e.apply(nn,It),m}function V(ke){return P=ke,y=li(he,r),T?U(ke):m}function ce(ke){var It=ke-b,nn=ke-P,Pp=r-It;return k?je(Pp,d-nn):Pp}function J(ke){var It=ke-b,nn=ke-P;return b===t||It>=r||It<0||k&&nn>=d}function he(){var ke=gs();if(J(ke))return de(ke);y=li(he,ce(ke))}function de(ke){return y=t,M&&a?U(ke):(a=l=t,m)}function ct(){y!==t&&vh(y),P=0,a=b=l=y=t}function Ve(){return y===t?m:de(gs())}function lt(){var ke=gs(),It=J(ke);if(a=arguments,l=this,b=ke,It){if(y===t)return V(b);if(k)return vh(y),y=li(he,r),U(b)}return y===t&&(y=li(he,r)),m}return lt.cancel=ct,lt.flush=Ve,lt}var bE=le(function(e,r){return Vf(e,1,r)}),SE=le(function(e,r,s){return Vf(e,xt(r)||0,s)});function xE(e){return Zt(e,Q)}function ms(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new yt(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(ms.Cache||Yt),s}ms.Cache=Yt;function _s(e){if(typeof e!="function")throw new yt(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 EE(e){return sp(2,e)}var AE=fS(function(e,r){r=r.length==1&&se(r[0])?Re(r[0],ot(X())):Re(Ue(r,1),ot(X()));var s=r.length;return le(function(a){for(var l=-1,d=je(a.length,s);++l=r}),Nn=rh(function(){return arguments}())?rh:function(e){return Oe(e)&&Se.call(e,"callee")&&!Uf.call(e,"callee")},se=E.isArray,HE=Ef?ot(Ef):zb;function et(e){return e!=null&&ys(e.length)&&!en(e)}function Le(e){return Oe(e)&&et(e)}function BE(e){return e===!0||e===!1||Oe(e)&&Qe(e)==oe}var yn=tb||Sa,WE=Af?ot(Af):Yb;function UE(e){return Oe(e)&&e.nodeType===1&&!fi(e)}function GE(e){if(e==null)return!0;if(et(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||yn(e)||sr(e)||Nn(e)))return!e.length;var r=Ke(e);if(r==Z||r==Ct)return!e.size;if(ci(e))return!Hu(e).length;for(var s in e)if(Se.call(e,s))return!1;return!0}function jE(e,r){return oi(e,r)}function KE(e,r,s){s=typeof s=="function"?s:t;var a=s?s(e,r):t;return a===t?oi(e,r,t,s):!!a}function ha(e){if(!Oe(e))return!1;var r=Qe(e);return r==F||r==tu||typeof e.message=="string"&&typeof e.name=="string"&&!fi(e)}function XE(e){return typeof e=="number"&&jf(e)}function en(e){if(!Te(e))return!1;var r=Qe(e);return r==_e||r==$||r==Xt||r==Kn}function fp(e){return typeof e=="number"&&e==ae(e)}function ys(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 hp=Rf?ot(Rf):Zb;function zE(e,r){return e===r||qu(e,r,na(r))}function YE(e,r,s){return s=typeof s=="function"?s:t,qu(e,r,na(r),s)}function QE(e){return pp(e)&&e!=+e}function ZE(e){if(DS(e))throw new ie(o);return ih(e)}function VE(e){return e===null}function JE(e){return e==null}function pp(e){return typeof e=="number"||Oe(e)&&Qe(e)==we}function fi(e){if(!Oe(e)||Qe(e)!=be)return!1;var r=ji(e);if(r===null)return!0;var s=Se.call(r,"constructor")&&r.constructor;return typeof s=="function"&&s instanceof s&&Bi.call(s)==Yw}var pa=Cf?ot(Cf):Vb;function e0(e){return fp(e)&&e>=-R&&e<=R}var dp=Pf?ot(Pf):Jb;function vs(e){return typeof e=="string"||!se(e)&&Oe(e)&&Qe(e)==zr}function at(e){return typeof e=="symbol"||Oe(e)&&Qe(e)==Li}var sr=Tf?ot(Tf):eS;function t0(e){return e===t}function n0(e){return Oe(e)&&Ke(e)==Yr}function r0(e){return Oe(e)&&Qe(e)==vv}var i0=cs(Bu),s0=cs(function(e,r){return e<=r});function gp(e){if(!e)return[];if(et(e))return vs(e)?Pt(e):Je(e);if(Vr&&e[Vr])return Mw(e[Vr]());var r=Ke(e),s=r==Z?Pu:r==Ct?Fi:or;return s(e)}function tn(e){if(!e)return e===0?e:0;if(e=xt(e),e===A||e===-A){var r=e<0?-1:1;return r*Be}return e===e?e:0}function ae(e){var r=tn(e),s=r%1;return r===r?s?r-s:r:0}function mp(e){return e?In(ae(e),0,Ie):0}function xt(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=Nf(e);var s=Hv.test(e);return s||Wv.test(e)?ww(e.slice(2),s?2:8):qv.test(e)?fe:+e}function _p(e){return qt(e,tt(e))}function o0(e){return e?In(ae(e),-R,R):e===0?e:0}function ye(e){return e==null?"":ut(e)}var u0=nr(function(e,r){if(ci(r)||et(r)){qt(r,qe(r),e);return}for(var s in r)Se.call(r,s)&&ri(e,s,r[s])}),yp=nr(function(e,r){qt(r,tt(r),e)}),ws=nr(function(e,r,s,a){qt(r,tt(r),e,a)}),a0=nr(function(e,r,s,a){qt(r,qe(r),e,a)}),c0=Vt(Du);function l0(e,r){var s=tr(e);return r==null?s:Qf(s,r)}var f0=le(function(e,r){e=xe(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}),qt(e,ea(e),s),a&&(s=wt(s,_|v|x,SS));for(var l=r.length;l--;)Ku(s,r[l]);return s});function T0(e,r){return wp(e,_s(X(r)))}var O0=Vt(function(e,r){return e==null?{}:rS(e,r)});function wp(e,r){if(e==null)return{};var s=Re(ea(e),function(a){return[a]});return r=X(r),fh(e,s,function(a,l){return r(a,l[0])})}function I0(e,r,s){r=mn(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=Kf();return je(e+l*(r-e+vw("1e-"+((l+"").length-1))),r)}return Uu(e,r)}var W0=rr(function(e,r,s){return r=r.toLowerCase(),e+(s?xp(r):r)});function xp(e){return ma(ye(e).toLowerCase())}function Ep(e){return e=ye(e),e&&e.replace(Gv,Lw).replace(cw,"")}function U0(e,r,s){e=ye(e),r=ut(r);var a=e.length;s=s===t?a:In(ae(s),0,a);var l=s;return s-=r.length,s>=0&&e.slice(s,l)==r}function G0(e){return e=ye(e),e&&Ev.test(e)?e.replace(ef,kw):e}function j0(e){return e=ye(e),e&&Ov.test(e)?e.replace(fu,"\\$&"):e}var K0=rr(function(e,r,s){return e+(s?"-":"")+r.toLowerCase()}),X0=rr(function(e,r,s){return e+(s?" ":"")+r.toLowerCase()}),z0=Ch("toLowerCase");function Y0(e,r,s){e=ye(e),r=ae(r);var a=r?Zn(e):0;if(!r||a>=r)return e;var l=(r-a)/2;return as(Yi(l),s)+e+as(zi(l),s)}function Q0(e,r,s){e=ye(e),r=ae(r);var a=r?Zn(e):0;return r&&a>>0,s?(e=ye(e),e&&(typeof r=="string"||r!=null&&!pa(r))&&(r=ut(r),!r&&Qn(e))?_n(Pt(e),0,s):e.split(r,s)):[]}var rA=rr(function(e,r,s){return e+(s?" ":"")+ma(r)});function iA(e,r,s){return e=ye(e),s=s==null?0:In(ae(s),0,e.length),r=ut(r),e.slice(s,s+r.length)==r}function sA(e,r,s){var a=p.templateSettings;s&&Ze(e,r,s)&&(r=t),e=ye(e),r=ws({},r,a,Dh);var l=ws({},r.imports,a.imports,Dh),d=qe(l),m=Cu(l,d),y,b,P=0,T=r.interpolate||ki,k="__p += '",M=Tu((r.escape||ki).source+"|"+T.source+"|"+(T===tf?Fv:ki).source+"|"+(r.evaluate||ki).source+"|$","g"),U="//# sourceURL="+(Se.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++dw+"]")+` -`;e.replace(M,function(J,he,de,ct,Ve,lt){return de||(de=ct),k+=e.slice(P,lt).replace(jv,Dw),he&&(y=!0,k+=`' + -__e(`+he+`) + -'`),Ve&&(b=!0,k+=`'; -`+Ve+`; +`)}function OA(t){return se(t)||$n(t)||!!(Qp&&t&&t[Qp])}function Jt(t,r){var o=typeof t;return r=r??R,!!r&&(o=="number"||o!="symbol"&&Gw.test(t))&&t>-1&&t%1==0&&t0){if(++r>=Te)return arguments[0]}else r=0;return t.apply(e,arguments)}}function Es(t,r){var o=-1,u=t.length,p=u-1;for(r=r===e?u:r;++o1?t[r-1]:e;return o=typeof o=="function"?(t.pop(),o):e,od(t,o)});function ad(t){var r=d(t);return r.__chain__=!0,r}function H0(t,r){return r(t),t}function As(t,r){return r(t)}var G0=Zt(function(t){var r=t.length,o=r?t[0]:0,u=this.__wrapped__,p=function(g){return au(g,t)};return r>1||this.__actions__.length||!(u instanceof he)||!Jt(o)?this.thru(p):(u=u.slice(o,+o+(r?1:0)),u.__actions__.push({func:As,args:[p],thisArg:e}),new vt(u,this.__chain__).thru(function(g){return r&&!g.length&&g.push(e),g}))});function U0(){return ad(this)}function W0(){return new vt(this.value(),this.__chain__)}function j0(){this.__values__===e&&(this.__values__=Sd(this.value()));var t=this.__index__>=this.__values__.length,r=t?e:this.__values__[this.__index__++];return{done:t,value:r}}function K0(){return this}function z0(t){for(var r,o=this;o instanceof ls;){var u=ed(o);u.__index__=0,u.__values__=e,r?p.__wrapped__=u:r=u;var p=u;o=o.__wrapped__}return p.__wrapped__=t,r}function X0(){var t=this.__wrapped__;if(t instanceof he){var r=t;return this.__actions__.length&&(r=new he(this)),r=r.reverse(),r.__actions__.push({func:As,args:[$u],thisArg:e}),new vt(r,this.__chain__)}return this.thru($u)}function Y0(){return xh(this.__wrapped__,this.__actions__)}var Q0=ys(function(t,r,o){xe.call(t,o)?++t[o]:Qt(t,o,1)});function V0(t,r,o){var u=se(t)?Dp:HE;return o&&Ve(t,r,o)&&(r=e),u(t,J(r,3))}function Z0(t,r){var o=se(t)?cn:oh;return o(t,J(r,3))}var J0=Nh(td),e1=Nh(nd);function t1(t,r){return Ue(Cs(t,r),1)}function n1(t,r){return Ue(Cs(t,r),C)}function r1(t,r,o){return o=o===e?1:ue(o),Ue(Cs(t,r),o)}function ud(t,r){var o=se(t)?yt:dn;return o(t,J(r,3))}function cd(t,r){var o=se(t)?wx:sh;return o(t,J(r,3))}var i1=ys(function(t,r,o){xe.call(t,o)?t[o].push(r):Qt(t,o,[r])});function s1(t,r,o,u){t=et(t)?t:cr(t),o=o&&!u?ue(o):0;var p=t.length;return o<0&&(o=Fe(p+o,0)),Is(t)?o<=p&&t.indexOf(r,o)>-1:!!p&&Zn(t,r,o)>-1}var o1=le(function(t,r,o){var u=-1,p=typeof r=="function",g=et(t)?E(t.length):[];return dn(t,function(y){g[++u]=p?st(r,y,o):fi(y,r,o)}),g}),a1=ys(function(t,r,o){Qt(t,o,r)});function Cs(t,r){var o=se(t)?Re:ph;return o(t,J(r,3))}function u1(t,r,o,u){return t==null?[]:(se(r)||(r=r==null?[]:[r]),o=u?e:o,se(o)||(o=o==null?[]:[o]),mh(t,r,o))}var c1=ys(function(t,r,o){t[o?0:1].push(r)},function(){return[[],[]]});function l1(t,r,o){var u=se(t)?Xa:Bp,p=arguments.length<3;return u(t,J(r,4),o,p,dn)}function f1(t,r,o){var u=se(t)?xx:Bp,p=arguments.length<3;return u(t,J(r,4),o,p,sh)}function p1(t,r){var o=se(t)?cn:oh;return o(t,Ts(J(r,3)))}function h1(t){var r=se(t)?th:sA;return r(t)}function d1(t,r,o){(o?Ve(t,r,o):r===e)?r=1:r=ue(r);var u=se(t)?DE:oA;return u(t,r)}function g1(t){var r=se(t)?ME:uA;return r(t)}function m1(t){if(t==null)return 0;if(et(t))return Is(t)?er(t):t.length;var r=Ke(t);return r==ee||r==Rt?t.size:hu(t).length}function y1(t,r,o){var u=se(t)?Ya:cA;return o&&Ve(t,r,o)&&(r=e),u(t,J(r,3))}var _1=le(function(t,r){if(t==null)return[];var o=r.length;return o>1&&Ve(t,r[0],r[1])?r=[]:o>2&&Ve(r[0],r[1],r[2])&&(r=[r[0]]),mh(t,Ue(r,1),[])}),Rs=Zx||function(){return qe.Date.now()};function v1(t,r){if(typeof r!="function")throw new _t(a);return t=ue(t),function(){if(--t<1)return r.apply(this,arguments)}}function ld(t,r,o){return r=o?e:r,r=t&&r==null?t.length:r,Vt(t,D,e,e,e,e,r)}function fd(t,r){var o;if(typeof r!="function")throw new _t(a);return t=ue(t),function(){return--t>0&&(o=r.apply(this,arguments)),t<=1&&(r=e),o}}var Mu=le(function(t,r,o){var u=A;if(o.length){var p=fn(o,ar(Mu));u|=z}return Vt(t,u,r,o,p)}),pd=le(function(t,r,o){var u=A|$;if(o.length){var p=fn(o,ar(pd));u|=z}return Vt(r,u,t,o,p)});function hd(t,r,o){r=o?e:r;var u=Vt(t,H,e,e,e,e,e,r);return u.placeholder=hd.placeholder,u}function dd(t,r,o){r=o?e:r;var u=Vt(t,X,e,e,e,e,e,r);return u.placeholder=dd.placeholder,u}function gd(t,r,o){var u,p,g,y,v,w,O=0,I=!1,k=!1,q=!0;if(typeof t!="function")throw new _t(a);r=xt(r)||0,Oe(o)&&(I=!!o.leading,k="maxWait"in o,g=k?Fe(xt(o.maxWait)||0,r):g,q="trailing"in o?!!o.trailing:q);function W(Ne){var It=u,nn=p;return u=p=e,O=Ne,y=t.apply(nn,It),y}function te(Ne){return O=Ne,v=mi(pe,r),I?W(Ne):y}function ce(Ne){var It=Ne-w,nn=Ne-O,Nd=r-It;return k?je(Nd,g-nn):Nd}function ne(Ne){var It=Ne-w,nn=Ne-O;return w===e||It>=r||It<0||k&&nn>=g}function pe(){var Ne=Rs();if(ne(Ne))return de(Ne);v=mi(pe,ce(Ne))}function de(Ne){return v=e,q&&u?W(Ne):(u=p=e,y)}function ct(){v!==e&&Ah(v),O=0,u=w=p=v=e}function Ze(){return v===e?y:de(Rs())}function lt(){var Ne=Rs(),It=ne(Ne);if(u=arguments,p=this,w=Ne,It){if(v===e)return te(w);if(k)return Ah(v),v=mi(pe,r),W(w)}return v===e&&(v=mi(pe,r)),y}return lt.cancel=ct,lt.flush=Ze,lt}var b1=le(function(t,r){return ih(t,1,r)}),S1=le(function(t,r,o){return ih(t,xt(r)||0,o)});function w1(t){return Vt(t,V)}function Ps(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new _t(a);var o=function(){var u=arguments,p=r?r.apply(this,u):u[0],g=o.cache;if(g.has(p))return g.get(p);var y=t.apply(this,u);return o.cache=g.set(p,y)||g,y};return o.cache=new(Ps.Cache||Yt),o}Ps.Cache=Yt;function Ts(t){if(typeof t!="function")throw new _t(a);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function x1(t){return fd(2,t)}var E1=lA(function(t,r){r=r.length==1&&se(r[0])?Re(r[0],ot(J())):Re(Ue(r,1),ot(J()));var o=r.length;return le(function(u){for(var p=-1,g=je(u.length,o);++p=r}),$n=ch(function(){return arguments}())?ch:function(t){return Ie(t)&&xe.call(t,"callee")&&!Yp.call(t,"callee")},se=E.isArray,q1=Op?ot(Op):zE;function et(t){return t!=null&&Os(t.length)&&!en(t)}function ke(t){return Ie(t)&&et(t)}function B1(t){return t===!0||t===!1||Ie(t)&&Qe(t)==oe}var _n=eE||Yu,H1=Ip?ot(Ip):XE;function G1(t){return Ie(t)&&t.nodeType===1&&!yi(t)}function U1(t){if(t==null)return!0;if(et(t)&&(se(t)||typeof t=="string"||typeof t.splice=="function"||_n(t)||ur(t)||$n(t)))return!t.length;var r=Ke(t);if(r==ee||r==Rt)return!t.size;if(gi(t))return!hu(t).length;for(var o in t)if(xe.call(t,o))return!1;return!0}function W1(t,r){return pi(t,r)}function j1(t,r,o){o=typeof o=="function"?o:e;var u=o?o(t,r):e;return u===e?pi(t,r,e,o):!!u}function qu(t){if(!Ie(t))return!1;var r=Qe(t);return r==B||r==Pa||typeof t.message=="string"&&typeof t.name=="string"&&!yi(t)}function K1(t){return typeof t=="number"&&Vp(t)}function en(t){if(!Oe(t))return!1;var r=Qe(t);return r==_e||r==F||r==zt||r==Yn}function yd(t){return typeof t=="number"&&t==ue(t)}function Os(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=R}function Oe(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function Ie(t){return t!=null&&typeof t=="object"}var _d=Lp?ot(Lp):QE;function z1(t,r){return t===r||pu(t,r,Tu(r))}function X1(t,r,o){return o=typeof o=="function"?o:e,pu(t,r,Tu(r),o)}function Y1(t){return vd(t)&&t!=+t}function Q1(t){if(kA(t))throw new ie(s);return lh(t)}function V1(t){return t===null}function Z1(t){return t==null}function vd(t){return typeof t=="number"||Ie(t)&&Qe(t)==Se}function yi(t){if(!Ie(t)||Qe(t)!=we)return!1;var r=rs(t);if(r===null)return!0;var o=xe.call(r,"constructor")&&r.constructor;return typeof o=="function"&&o instanceof o&&Ji.call(o)==Xx}var Bu=kp?ot(kp):VE;function J1(t){return yd(t)&&t>=-R&&t<=R}var bd=Np?ot(Np):ZE;function Is(t){return typeof t=="string"||!se(t)&&Ie(t)&&Qe(t)==ei}function ut(t){return typeof t=="symbol"||Ie(t)&&Qe(t)==Wi}var ur=$p?ot($p):JE;function eC(t){return t===e}function tC(t){return Ie(t)&&Ke(t)==ti}function nC(t){return Ie(t)&&Qe(t)==_w}var rC=Ss(du),iC=Ss(function(t,r){return t<=r});function Sd(t){if(!t)return[];if(et(t))return Is(t)?Pt(t):Je(t);if(ii&&t[ii])return Dx(t[ii]());var r=Ke(t),o=r==ee?tu:r==Rt?Qi:cr;return o(t)}function tn(t){if(!t)return t===0?t:0;if(t=xt(t),t===C||t===-C){var r=t<0?-1:1;return r*He}return t===t?t:0}function ue(t){var r=tn(t),o=r%1;return r===r?o?r-o:r:0}function wd(t){return t?In(ue(t),0,Le):0}function xt(t){if(typeof t=="number")return t;if(ut(t))return fe;if(Oe(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=Oe(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=Hp(t);var o=qw.test(t);return o||Hw.test(t)?vx(t.slice(2),o?2:8):Fw.test(t)?fe:+t}function xd(t){return qt(t,tt(t))}function sC(t){return t?In(ue(t),-R,R):t===0?t:0}function ve(t){return t==null?"":at(t)}var oC=sr(function(t,r){if(gi(r)||et(r)){qt(r,Be(r),t);return}for(var o in r)xe.call(r,o)&&ci(t,o,r[o])}),Ed=sr(function(t,r){qt(r,tt(r),t)}),Ls=sr(function(t,r,o,u){qt(r,tt(r),t,u)}),aC=sr(function(t,r,o,u){qt(r,Be(r),t,u)}),uC=Zt(au);function cC(t,r){var o=ir(t);return r==null?o:nh(o,r)}var lC=le(function(t,r){t=Ee(t);var o=-1,u=r.length,p=u>2?r[2]:e;for(p&&Ve(r[0],r[1],p)&&(u=1);++o1),g}),qt(t,Ru(t),o),u&&(o=bt(o,m|_|x,SA));for(var p=r.length;p--;)vu(o,r[p]);return o});function PC(t,r){return Cd(t,Ts(J(r)))}var TC=Zt(function(t,r){return t==null?{}:nA(t,r)});function Cd(t,r){if(t==null)return{};var o=Re(Ru(t),function(u){return[u]});return r=J(r),yh(t,o,function(u,p){return r(u,p[0])})}function OC(t,r,o){r=mn(r,t);var u=-1,p=r.length;for(p||(p=1,t=e);++ur){var u=t;t=r,r=u}if(o||t%1||r%1){var p=Zp();return je(t+p*(r-t+_x("1e-"+((p+"").length-1))),r)}return mu(t,r)}var HC=or(function(t,r,o){return r=r.toLowerCase(),t+(o?Td(r):r)});function Td(t){return Uu(ve(t).toLowerCase())}function Od(t){return t=ve(t),t&&t.replace(Uw,Ix).replace(ux,"")}function GC(t,r,o){t=ve(t),r=at(r);var u=t.length;o=o===e?u:In(ue(o),0,u);var p=o;return o-=r.length,o>=0&&t.slice(o,p)==r}function UC(t){return t=ve(t),t&&xw.test(t)?t.replace(ap,Lx):t}function WC(t){return t=ve(t),t&&Tw.test(t)?t.replace(Fa,"\\$&"):t}var jC=or(function(t,r,o){return t+(o?"-":"")+r.toLowerCase()}),KC=or(function(t,r,o){return t+(o?" ":"")+r.toLowerCase()}),zC=kh("toLowerCase");function XC(t,r,o){t=ve(t),r=ue(r);var u=r?er(t):0;if(!r||u>=r)return t;var p=(r-u)/2;return bs(as(p),o)+t+bs(os(p),o)}function YC(t,r,o){t=ve(t),r=ue(r);var u=r?er(t):0;return r&&u>>0,o?(t=ve(t),t&&(typeof r=="string"||r!=null&&!Bu(r))&&(r=at(r),!r&&Jn(t))?yn(Pt(t),0,o):t.split(r,o)):[]}var nR=or(function(t,r,o){return t+(o?" ":"")+Uu(r)});function rR(t,r,o){return t=ve(t),o=o==null?0:In(ue(o),0,t.length),r=at(r),t.slice(o,o+r.length)==r}function iR(t,r,o){var u=d.templateSettings;o&&Ve(t,r,o)&&(r=e),t=ve(t),r=Ls({},r,u,Bh);var p=Ls({},r.imports,u.imports,Bh),g=Be(p),y=eu(p,g),v,w,O=0,I=r.interpolate||ji,k="__p += '",q=nu((r.escape||ji).source+"|"+I.source+"|"+(I===up?Mw:ji).source+"|"+(r.evaluate||ji).source+"|$","g"),W="//# sourceURL="+(xe.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hx+"]")+` +`;t.replace(q,function(ne,pe,de,ct,Ze,lt){return de||(de=ct),k+=t.slice(O,lt).replace(Ww,kx),pe&&(v=!0,k+=`' + +__e(`+pe+`) + +'`),Ze&&(w=!0,k+=`'; +`+Ze+`; __p += '`),de&&(k+=`' + ((__t = (`+de+`)) == null ? '' : __t) + -'`),P=lt+J.length,J}),k+=`'; -`;var V=Se.call(r,"variable")&&r.variable;if(!V)k=`with (obj) { +'`),O=lt+ne.length,ne}),k+=`'; +`;var te=xe.call(r,"variable")&&r.variable;if(!te)k=`with (obj) { `+k+` } -`;else if($v.test(V))throw new ie(c);k=(b?k.replace(wv,""):k).replace(bv,"$1").replace(Sv,"$1;"),k="function("+(V||"obj")+`) { -`+(V?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(y?", __e = _.escape":"")+(b?`, __j = Array.prototype.join; +`;else if($w.test(te))throw new ie(c);k=(w?k.replace(vw,""):k).replace(bw,"$1").replace(Sw,"$1;"),k="function("+(te||"obj")+`) { +`+(te?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(v?", __e = _.escape":"")+(w?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+k+`return __p -}`;var ce=Rp(function(){return ge(d,U+"return "+k).apply(t,m)});if(ce.source=k,ha(ce))throw ce;return ce}function oA(e){return ye(e).toLowerCase()}function uA(e){return ye(e).toUpperCase()}function aA(e,r,s){if(e=ye(e),e&&(s||r===t))return Nf(e);if(!e||!(r=ut(r)))return e;var a=Pt(e),l=Pt(r),d=$f(a,l),m=Mf(a,l)+1;return _n(a,d,m).join("")}function cA(e,r,s){if(e=ye(e),e&&(s||r===t))return e.slice(0,qf(e)+1);if(!e||!(r=ut(r)))return e;var a=Pt(e),l=Mf(a,Pt(r))+1;return _n(a,0,l).join("")}function lA(e,r,s){if(e=ye(e),e&&(s||r===t))return e.replace(hu,"");if(!e||!(r=ut(r)))return e;var a=Pt(e),l=$f(a,Pt(r));return _n(a,l).join("")}function fA(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(Qn(e)){var m=Pt(e);d=m.length}if(s>=d)return e;var y=s-Zn(a);if(y<1)return a;var b=m?_n(m,0,y).join(""):e.slice(0,y);if(l===t)return b+a;if(m&&(y+=b.length-y),pa(l)){if(e.slice(y).search(l)){var P,T=b;for(l.global||(l=Tu(l.source,ye(nf.exec(l))+"g")),l.lastIndex=0;P=l.exec(T);)var k=P.index;b=b.slice(0,k===t?y:k)}}else if(e.indexOf(ut(l),y)!=y){var M=b.lastIndexOf(l);M>-1&&(b=b.slice(0,M))}return b+a}function hA(e){return e=ye(e),e&&xv.test(e)?e.replace(Jl,Bw):e}var pA=rr(function(e,r,s){return e+(s?" ":"")+r.toUpperCase()}),ma=Ch("toUpperCase");function Ap(e,r,s){return e=ye(e),r=s?t:r,r===t?$w(e)?Gw(e):Cw(e):e.match(r)||[]}var Rp=le(function(e,r){try{return st(e,t,r)}catch(s){return ha(s)?s:new ie(s)}}),dA=Vt(function(e,r){return _t(r,function(s){s=Ht(s),Qt(e,s,la(e[s],e))}),e});function gA(e){var r=e==null?0:e.length,s=X();return e=r?Re(e,function(a){if(typeof a[1]!="function")throw new yt(u);return[s(a[0]),a[1]]}):[],le(function(a){for(var l=-1;++lR)return[];var s=Ie,a=je(e,Ie);r=X(r),e-=Ie;for(var l=Ru(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)},Ft(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,b=m instanceof pe,P=y[0],T=b||se(m),k=function(he){var de=l.apply(p,ln([he],y));return a&&M?de[0]:de};T&&s&&typeof P=="function"&&P.length!=1&&(b=T=!1);var M=this.__chain__,U=!!this.__actions__.length,V=d&&!M,ce=b&&!U;if(!d&&T){m=ce?m:new pe(this);var J=e.apply(m,y);return J.__actions__.push({func:ps,args:[k],thisArg:t}),new vt(J,M)}return V&&ce?e.apply(this,y):(J=this.thru(k),V?a?J.value()[0]:J.value():J)})}),_t(["pop","push","shift","sort","splice","unshift"],function(e){var r=qi[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(se(d)?d:[],l)}return this[s](function(m){return r.apply(se(m)?m:[],l)})}}),Ft(pe.prototype,function(e,r){var s=p[r];if(s){var a=s.name+"";Se.call(er,a)||(er[a]=[]),er[a].push({name:r,func:s})}}),er[os(t,D).name]=[{name:"wrapper",func:t}],pe.prototype.clone=hb,pe.prototype.reverse=pb,pe.prototype.value=db,p.prototype.at=Ux,p.prototype.chain=Gx,p.prototype.commit=jx,p.prototype.next=Kx,p.prototype.plant=zx,p.prototype.reverse=Yx,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=Qx,p.prototype.first=p.prototype.head,Vr&&(p.prototype[Vr]=Xx),p},hn=jw();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Fe._=hn,define(function(){return hn})):Cn?((Cn.exports=hn)._=hn,yu._=hn):Fe._=hn}).call(vr)});var b_=L((RD,w_)=>{"use strict";w_.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((CD,S_)=>{"use strict";var eo=q("fs"),$T=b_(),MT=t=>[typeof eo[t]=="function",!t.match(/Sync$/),!t.match(/^[A-Z]/),!t.match(/^create/),!t.match(/^(un)?watch/)].every(Boolean),FT=t=>{let n=eo[t];return $T(n)},qT=()=>{let t={};return Object.keys(eo).forEach(n=>{MT(n)?n==="exists"?t.exists=()=>{throw new Error("fs.exists() is deprecated")}:t[n]=FT(n):t[n]=eo[n]}),t};S_.exports=qT()});var Ge=L((PD,R_)=>{"use strict";var HT=t=>{let n=i=>["a","e","i","o","u"].indexOf(i[0])!==-1?`an ${i}`:`a ${i}`;return t.map(n).join(" or ")},x_=t=>/array of /.test(t),E_=t=>t.split(" of ")[1],A_=t=>x_(t)?A_(E_(t)):["string","number","boolean","array","object","buffer","null","undefined","function"].some(n=>n===t),Ei=t=>t===null?"null":Array.isArray(t)?"array":Buffer.isBuffer(t)?"buffer":typeof t,BT=(t,n,i)=>i.indexOf(t)===n,WT=t=>{let n=Ei(t),i;return n==="array"&&(i=t.map(o=>Ei(o)).filter(BT),n+=` of ${i.join(", ")}`),n},UT=(t,n)=>{let i=E_(n);return Ei(t)!=="array"?!1:t.every(o=>Ei(o)===i)},bl=(t,n,i,o)=>{if(!o.some(c=>{if(!A_(c))throw new Error(`Unknown type "${c}"`);return x_(c)?UT(i,c):c===Ei(i)}))throw new Error(`Argument "${n}" passed to ${t} must be ${HT(o)}. Received ${WT(i)}`)},GT=(t,n,i,o)=>{i!==void 0&&(bl(t,n,i,["object"]),Object.keys(i).forEach(u=>{let c=`${n}.${u}`;if(o[u]!==void 0)bl(t,c,i[u],o[u]);else throw new Error(`Unknown argument "${c}" passed to ${t}`)}))};R_.exports={argument:bl,options:GT}});var to=L(C_=>{"use strict";C_.normalizeFileMode=t=>{let n;return typeof t=="number"?n=t.toString(8):n=t,n.substring(n.length-3)}});var ro=L(no=>{"use strict";var P_=it(),jT=Ge(),KT=(t,n)=>{let i=`${t}([path])`;jT.argument(i,"path",n,["string","undefined"])},XT=t=>{P_.rmSync(t,{recursive:!0,force:!0,maxRetries:3})},zT=t=>P_.rm(t,{recursive:!0,force:!0,maxRetries:3});no.validateInput=KT;no.sync=XT;no.async=zT});var Un=L(Rr=>{"use strict";var io=q("path"),jt=it(),Sl=to(),T_=Ge(),O_=ro(),YT=(t,n,i)=>{let o=`${t}(path, [criteria])`;T_.argument(o,"path",n,["string"]),T_.options(o,"criteria",i,{empty:["boolean"],mode:["string","number"]})},I_=t=>{let n=t||{};return typeof n.empty!="boolean"&&(n.empty=!1),n.mode!==void 0&&(n.mode=Sl.normalizeFileMode(n.mode)),n},L_=t=>new Error(`Path ${t} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),QT=t=>{let n;try{n=jt.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isDirectory())throw L_(t);return n},xl=(t,n)=>{let i=n||{};try{jt.mkdirSync(t,i.mode)}catch(o){if(o.code==="ENOENT")xl(io.dirname(t),i),jt.mkdirSync(t,i.mode);else if(o.code!=="EEXIST")throw o}},ZT=(t,n,i)=>{let o=()=>{let c=Sl.normalizeFileMode(n.mode);i.mode!==void 0&&i.mode!==c&&jt.chmodSync(t,i.mode)},u=()=>{i.empty&&jt.readdirSync(t).forEach(f=>{O_.sync(io.resolve(t,f))})};o(),u()},VT=(t,n)=>{let i=I_(n),o=QT(t);o?ZT(t,o,i):xl(t,i)},JT=t=>new Promise((n,i)=>{jt.stat(t).then(o=>{o.isDirectory()?n(o):i(L_(t))}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})}),eO=t=>new Promise((n,i)=>{jt.readdir(t).then(o=>{let u=c=>{if(c===o.length)n();else{let f=io.resolve(t,o[c]);O_.async(f).then(()=>{u(c+1)})}};u(0)}).catch(i)}),tO=(t,n,i)=>new Promise((o,u)=>{let c=()=>{let h=Sl.normalizeFileMode(n.mode);return i.mode!==void 0&&i.mode!==h?jt.chmod(t,i.mode):Promise.resolve()},f=()=>i.empty?eO(t):Promise.resolve();c().then(f).then(o,u)}),El=(t,n)=>{let i=n||{};return new Promise((o,u)=>{jt.mkdir(t,i.mode).then(o).catch(c=>{c.code==="ENOENT"?El(io.dirname(t),i).then(()=>jt.mkdir(t,i.mode)).then(o).catch(f=>{f.code==="EEXIST"?o():u(f)}):c.code==="EEXIST"?o():u(c)})})},nO=(t,n)=>new Promise((i,o)=>{let u=I_(n);JT(t).then(c=>c!==void 0?tO(t,c,u):El(t,u)).then(i,o)});Rr.validateInput=YT;Rr.sync=VT;Rr.createSync=xl;Rr.async=nO;Rr.createAsync=El});var Ai=L(oo=>{"use strict";var k_=q("path"),Cr=it(),Al=Ge(),D_=Un(),rO=(t,n,i,o)=>{let u=`${t}(path, data, [options])`;Al.argument(u,"path",n,["string"]),Al.argument(u,"data",i,["string","buffer","object","array"]),Al.options(u,"options",o,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},so=".__new__",N_=(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},$_=(t,n,i)=>{try{Cr.writeFileSync(t,n,i)}catch(o){if(o.code==="ENOENT")D_.createSync(k_.dirname(t)),Cr.writeFileSync(t,n,i);else throw o}},iO=(t,n,i)=>{$_(t+so,n,i),Cr.renameSync(t+so,t)},sO=(t,n,i)=>{let o=i||{},u=N_(n,o.jsonIndent),c=$_;o.atomic&&(c=iO),c(t,u,{mode:o.mode})},M_=(t,n,i)=>new Promise((o,u)=>{Cr.writeFile(t,n,i).then(o).catch(c=>{c.code==="ENOENT"?D_.createAsync(k_.dirname(t)).then(()=>Cr.writeFile(t,n,i)).then(o,u):u(c)})}),oO=(t,n,i)=>new Promise((o,u)=>{M_(t+so,n,i).then(()=>Cr.rename(t+so,t)).then(o,u)}),uO=(t,n,i)=>{let o=i||{},u=N_(n,o.jsonIndent),c=M_;return o.atomic&&(c=oO),c(t,u,{mode:o.mode})};oo.validateInput=rO;oo.sync=sO;oo.async=uO});var H_=L(uo=>{"use strict";var F_=it(),q_=Ai(),Rl=Ge(),aO=(t,n,i,o)=>{let u=`${t}(path, data, [options])`;Rl.argument(u,"path",n,["string"]),Rl.argument(u,"data",i,["string","buffer"]),Rl.options(u,"options",o,{mode:["string","number"]})},cO=(t,n,i)=>{try{F_.appendFileSync(t,n,i)}catch(o){if(o.code==="ENOENT")q_.sync(t,n,i);else throw o}},lO=(t,n,i)=>new Promise((o,u)=>{F_.appendFile(t,n,i).then(o).catch(c=>{c.code==="ENOENT"?q_.async(t,n,i).then(o,u):u(c)})});uo.validateInput=aO;uo.sync=cO;uo.async=lO});var G_=L(lo=>{"use strict";var ao=it(),Cl=to(),B_=Ge(),co=Ai(),fO=(t,n,i)=>{let o=`${t}(path, [criteria])`;B_.argument(o,"path",n,["string"]),B_.options(o,"criteria",i,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},W_=t=>{let n=t||{};return n.mode!==void 0&&(n.mode=Cl.normalizeFileMode(n.mode)),n},U_=t=>new Error(`Path ${t} exists but is not a file. Halting jetpack.file() call for safety reasons.`),hO=t=>{let n;try{n=ao.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isFile())throw U_(t);return n},pO=(t,n,i)=>{let o=Cl.normalizeFileMode(n.mode),u=()=>i.content!==void 0?(co.sync(t,i.content,{mode:o,jsonIndent:i.jsonIndent}),!0):!1,c=()=>{i.mode!==void 0&&i.mode!==o&&ao.chmodSync(t,i.mode)};u()||c()},dO=(t,n)=>{let i="";n.content!==void 0&&(i=n.content),co.sync(t,i,{mode:n.mode,jsonIndent:n.jsonIndent})},gO=(t,n)=>{let i=W_(n),o=hO(t);o!==void 0?pO(t,o,i):dO(t,i)},mO=t=>new Promise((n,i)=>{ao.stat(t).then(o=>{o.isFile()?n(o):i(U_(t))}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})}),_O=(t,n,i)=>{let o=Cl.normalizeFileMode(n.mode),u=()=>new Promise((f,h)=>{i.content!==void 0?co.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 ao.chmod(t,i.mode)};return u().then(f=>{if(!f)return c()})},yO=(t,n)=>{let i="";return n.content!==void 0&&(i=n.content),co.async(t,i,{mode:n.mode,jsonIndent:n.jsonIndent})},vO=(t,n)=>new Promise((i,o)=>{let u=W_(n);mO(t).then(c=>c!==void 0?_O(t,c,u):yO(t,u)).then(i,o)});lo.validateInput=fO;lo.sync=gO;lo.async=vO});var Tr=L(Pr=>{"use strict";var K_=q("crypto"),wO=q("path"),An=it(),j_=Ge(),Pl=["md5","sha1","sha256","sha512"],Tl=["report","follow"],bO=(t,n,i)=>{let o=`${t}(path, [options])`;if(j_.argument(o,"path",n,["string"]),j_.options(o,"options",i,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Pl.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${Pl.join(", ")}`);if(i&&i.symlinks!==void 0&&Tl.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${Tl.join(", ")}`)},X_=(t,n,i)=>{let o={};return o.name=wO.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},SO=(t,n)=>{let i=K_.createHash(n),o=An.readFileSync(t);return i.update(o),i.digest("hex")},xO=(t,n,i)=>{n.type==="file"&&i.checksum?n[i.checksum]=SO(t,i.checksum):n.type==="symlink"&&(n.pointsAt=An.readlinkSync(t))},EO=(t,n)=>{let i=An.lstatSync,o,u=n||{};u.symlinks==="follow"&&(i=An.statSync);try{o=i(t)}catch(f){if(f.code==="ENOENT")return;throw f}let c=X_(t,u,o);return xO(t,c,u),c},AO=(t,n)=>new Promise((i,o)=>{let u=K_.createHash(n),c=An.createReadStream(t);c.on("data",f=>{u.update(f)}),c.on("end",()=>{i(u.digest("hex"))}),c.on("error",o)}),RO=(t,n,i)=>n.type==="file"&&i.checksum?AO(t,i.checksum).then(o=>(n[i.checksum]=o,n)):n.type==="symlink"?An.readlink(t).then(o=>(n.pointsAt=o,n)):Promise.resolve(n),CO=(t,n)=>new Promise((i,o)=>{let u=An.lstat,c=n||{};c.symlinks==="follow"&&(u=An.stat),u(t).then(f=>{let h=X_(t,c,f);RO(t,h,c).then(i,o)}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Pr.supportedChecksumAlgorithms=Pl;Pr.symlinkOptions=Tl;Pr.validateInput=bO;Pr.sync=EO;Pr.async=CO});var ho=L(fo=>{"use strict";var z_=it(),PO=Ge(),TO=(t,n)=>{let i=`${t}(path)`;PO.argument(i,"path",n,["string","undefined"])},OO=t=>{try{return z_.readdirSync(t)}catch(n){if(n.code==="ENOENT")return;throw n}},IO=t=>new Promise((n,i)=>{z_.readdir(t).then(o=>{n(o)}).catch(o=>{o.code==="ENOENT"?n(void 0):i(o)})});fo.validateInput=TO;fo.sync=OO;fo.async=IO});var _o=L(Ol=>{"use strict";var po=q("fs"),go=q("path"),Ri=Tr(),MD=ho(),mo=t=>t.isDirectory()?"dir":t.isFile()?"file":t.isSymbolicLink()?"symlink":"other",LO=(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)=>{po.readdirSync(f,{withFileTypes:!0}).forEach(g=>{let _=typeof g=="string",v;_?v=go.join(f,g):v=go.join(f,g.name);let x;if(o)x=Ri.sync(v,n.inspectOptions);else if(_){let S=Ri.sync(v,n.inspectOptions);x={name:S.name,type:S.type}}else{let S=mo(g);if(S==="symlink"&&n.symlinks==="follow"){let H=po.statSync(v);x={name:g.name,type:mo(H)}}else x={name:g.name,type:S}}x!==void 0&&(i(v,x),x.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(x),h()},_=()=>{f-=1,h()},v=(x,S)=>{let H=(O,D)=>{D.type==="dir"&&S{po.readdir(x,{withFileTypes:!0},(O,D)=>{O?o(O):(D.forEach(K=>{let W=typeof K=="string",te;if(W?te=go.join(x,K):te=go.join(x,K.name),u||W)g(()=>{Ri.async(te,n.inspectOptions).then(z=>{z!==void 0&&(u?i(te,z):i(te,{name:z.name,type:z.type}),H(te,z)),_()}).catch(z=>{o(z)})});else{let z=mo(K);if(z==="symlink"&&n.symlinks==="follow")g(()=>{po.stat(te,(Y,N)=>{if(Y)o(Y);else{let ne={name:K.name,type:mo(N)};i(te,ne),H(te,ne),_()}})});else{let Y={name:K.name,type:z};i(te,Y),H(te,Y)}}}),_())})})};Ri.async(t,n.inspectOptions).then(x=>{x?(u?i(t,x):i(t,{name:x.name,type:x.type}),x.type==="dir"?v(t,1):o()):(i(t,void 0),o())}).catch(x=>{o(x)})};Ol.sync=LO;Ol.async=DO});var Q_=L((qD,Y_)=>{var NO=typeof process=="object"&&process&&process.platform==="win32";Y_.exports=NO?{sep:"\\"}:{sep:"/"}});var ty=L((HD,ey)=>{"use strict";ey.exports=V_;function V_(t,n,i){t instanceof RegExp&&(t=Z_(t,i)),n instanceof RegExp&&(n=Z_(n,i));var o=J_(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 Z_(t,n){var i=n.match(t);return i?i[0]:null}V_.range=J_;function J_(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 cy=L((BD,ay)=>{var ny=ty();ay.exports=FO;var ry="\0SLASH"+Math.random()+"\0",iy="\0OPEN"+Math.random()+"\0",Ll="\0CLOSE"+Math.random()+"\0",sy="\0COMMA"+Math.random()+"\0",oy="\0PERIOD"+Math.random()+"\0";function Il(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function $O(t){return t.split("\\\\").join(ry).split("\\{").join(iy).split("\\}").join(Ll).split("\\,").join(sy).split("\\.").join(oy)}function MO(t){return t.split(ry).join("\\").split(iy).join("{").split(Ll).join("}").split(sy).join(",").split(oy).join(".")}function uy(t){if(!t)return[""];var n=[],i=ny("{","}",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=uy(c);return c.length&&(f[f.length-1]+=h.shift(),f.push.apply(f,h)),n.push.apply(n,f),n}function FO(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ci($O(t),!0).map(MO)):[]}function qO(t){return"{"+t+"}"}function HO(t){return/^-?0\d/.test(t)}function BO(t,n){return t<=n}function WO(t,n){return t>=n}function Ci(t,n){var i=[],o=ny("{","}",t);if(!o)return[t];var u=o.pre,c=o.post.length?Ci(o.post,!1):[""];if(/\$$/.test(o.pre))for(var f=0;f=0;if(!v&&!x)return o.post.match(/,.*\}/)?(t=o.pre+"{"+o.body+Ll+o.post,Ci(t)):[t];var S;if(v)S=o.body.split(/\.\./);else if(S=uy(o.body),S.length===1&&(S=Ci(S[0],!1).map(qO),S.length===1))return c.map(function(Pe){return o.pre+S[0]+Pe});var H;if(v){var O=Il(S[0]),D=Il(S[1]),K=Math.max(S[0].length,S[1].length),W=S.length==3?Math.abs(Il(S[2])):1,te=BO,z=D0){var G=new Array(Q+1).join("0");N<0?ne="-"+G+ne.slice(1):ne=G+ne}}H.push(ne)}}else{H=[];for(var ue=0;ue{var pt=$l.exports=(t,n,i={})=>(vo(n),!i.nocomment&&n.charAt(0)==="#"?!1:new Or(n,i).match(t));$l.exports=pt;var Dl=Q_();pt.sep=Dl.sep;var Dt=Symbol("globstar **");pt.GLOBSTAR=Dt;var UO=cy(),ly={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Nl="[^/]",kl=Nl+"*?",GO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",jO="(?:(?!(?:\\/|^)\\.).)*?",py=t=>t.split("").reduce((n,i)=>(n[i]=!0,n),{}),fy=py("().*{}+?[]^$\\!"),KO=py("[.("),hy=/\/+/;pt.filter=(t,n={})=>(i,o,u)=>pt(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};pt.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return pt;let n=pt,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};pt.braceExpand=(t,n)=>dy(t,n);var dy=(t,n={})=>(vo(t),n.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:UO(t)),XO=1024*64,vo=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>XO)throw new TypeError("pattern is too long")},yo=Symbol("subparse");pt.makeRe=(t,n)=>new Or(t,n||{}).makeRe();pt.match=(t,n,i={})=>{let o=new Or(n,i);return t=t.filter(u=>o.match(u)),o.options.nonull&&!t.length&&t.push(n),t};var zO=t=>t.replace(/\\(.)/g,"$1"),YO=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Or=class{constructor(n,i){vo(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(hy)),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,x,i,S),x===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 dy(this.pattern,this.options)}parse(n,i){vo(n);let o=this.options;if(n==="**")if(o.noglobstar)n="*";else return Dt;if(n==="")return"";let u="",c=!!o.nocase,f=!1,h=[],g=[],_,v=!1,x=-1,S=-1,H,O,D,K=n.charAt(0)==="."?"":o.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",W=()=>{if(_){switch(_){case"*":u+=kl,c=!0;break;case"?":u+=Nl,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==="*"?kl:O.type==="?"?Nl:"\\"+O.type;c=!0,u=u.slice(0,O.reStart)+N+"\\("+Y}W(),f&&(u+="\\\\");let te=KO[u.charAt(0)];for(let Y=g.length-1;Y>-1;Y--){let N=g[Y],ne=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=ne.split("(").length-1,I=G;for(let me=0;me(f=f.map(h=>typeof h=="string"?YO(h):h===Dt?Dt:h._src).reduce((h,g)=>(h[h.length-1]===Dt&&g===Dt||h.push(g),h),[]),f.forEach((h,g)=>{h!==Dt||f[g-1]===Dt||(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]=Dt))}),f.filter(h=>h!==Dt).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;Dl.sep!=="/"&&(n=n.split(Dl.sep).join("/")),n=n.split(hy),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 QO=gy().Minimatch,ZO=(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};my.create=(t,n,i)=>{let o;typeof n=="string"?o=[n]:o=n;let u=o.map(f=>ZO(t,f)).map(f=>new QO(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 VO=q("path"),yy=_o(),vy=Tr(),wy=Ml(),_y=Ge(),JO=(t,n,i)=>{let o=`${t}([path], options)`;_y.argument(o,"path",n,["string"]),_y.options(o,"options",i,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},by=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},Sy=(t,n)=>t.map(i=>VO.relative(n,i)),xy=t=>{let n=new Error(`Path you want to find stuff in doesn't exist ${t}`);return n.code="ENOENT",n},Ey=t=>{let n=new Error(`Path you want to find stuff in must be a directory ${t}`);return n.code="ENOTDIR",n},eI=(t,n)=>{let i=[],o=wy.create(t,n.matching,n.ignoreCase),u=1/0;return n.recursive===!1&&(u=1),yy.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(),Sy(i,n.cwd)},tI=(t,n)=>{let i=vy.sync(t,{symlinks:"follow"});if(i===void 0)throw xy(t);if(i.type!=="dir")throw Ey(t);return eI(t,by(n))},nI=(t,n)=>new Promise((i,o)=>{let u=[],c=wy.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(Sy(u,n.cwd)))};yy.async(t,{maxLevelsDeep:f,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(v,x)=>{if(x&&v!==t&&c(v)&&(x.type==="file"&&n.files===!0||x.type==="dir"&&n.directories===!0))if(n.filter){let H=n.filter(x);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,_())})}),rI=(t,n)=>vy.async(t,{symlinks:"follow"}).then(i=>{if(i===void 0)throw xy(t);if(i.type!=="dir")throw Ey(t);return nI(t,by(n))});wo.validateInput=JO;wo.sync=tI;wo.async=rI});var Py=L(xo=>{"use strict";var iI=q("crypto"),So=q("path"),bo=Tr(),KD=ho(),Ry=Ge(),Cy=_o(),sI=(t,n,i)=>{let o=`${t}(path, [options])`;if(Ry.argument(o,"path",n,["string"]),Ry.options(o,"options",i,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&bo.supportedChecksumAlgorithms.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${bo.supportedChecksumAlgorithms.join(", ")}`);if(i&&i.symlinks!==void 0&&bo.symlinkOptions.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${bo.symlinkOptions.join(", ")}`)},oI=(t,n)=>t===void 0?".":t.relativePath+"/"+n.name,uI=(t,n)=>{let i=iI.createHash(n);return t.forEach(o=>{i.update(o.name+o[n])}),i.digest("hex")},Fl=(t,n,i)=>{i.relativePath&&(n.relativePath=oI(t,n)),n.type==="dir"&&(n.children.forEach(o=>{Fl(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]=uI(n.children,i.checksum)))},ql=(t,n,i)=>{let o=n[0];if(n.length>1){let u=t.children.find(c=>c.name===o);return ql(u,n.slice(1),i)}return t},aI=(t,n)=>{let i=n||{},o;return Cy.sync(t,{inspectOptions:i},(u,c)=>{if(c){c.type==="dir"&&(c.children=[]);let f=So.relative(t,u);f===""?o=c:ql(o,f.split(So.sep),c).children.push(c)}}),o&&Fl(void 0,o,i),o},cI=(t,n)=>{let i=n||{},o;return new Promise((u,c)=>{Cy.async(t,{inspectOptions:i},(f,h)=>{if(h){h.type==="dir"&&(h.children=[]);let g=So.relative(t,f);g===""?o=h:ql(o,g.split(So.sep),h).children.push(h)}},f=>{f?c(f):(o&&Fl(void 0,o,i),u(o))})})};xo.validateInput=sI;xo.sync=aI;xo.async=cI});var Ao=L(Eo=>{"use strict";var Ty=it(),lI=Ge(),fI=(t,n)=>{let i=`${t}(path)`;lI.argument(i,"path",n,["string"])},hI=t=>{try{let n=Ty.statSync(t);return n.isDirectory()?"dir":n.isFile()?"file":"other"}catch(n){if(n.code!=="ENOENT")throw n}return!1},pI=t=>new Promise((n,i)=>{Ty.stat(t).then(o=>{o.isDirectory()?n("dir"):o.isFile()?n("file"):n("other")}).catch(o=>{o.code==="ENOENT"?n(!1):i(o)})});Eo.validateInput=fI;Eo.sync=hI;Eo.async=pI});var Ul=L(To=>{"use strict";var Pi=q("path"),dt=it(),Wl=Un(),Ro=Ao(),Oy=Tr(),dI=Ai(),gI=Ml(),Iy=to(),Ly=_o(),Hl=Ge(),mI=(t,n,i,o)=>{let u=`${t}(from, to, [options])`;Hl.argument(u,"from",n,["string"]),Hl.argument(u,"to",i,["string"]),Hl.options(u,"options",o,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},ky=(t,n)=>{let i=t||{},o={};return i.ignoreCase===void 0&&(i.ignoreCase=!1),o.overwrite=i.overwrite,i.matching?o.allowedToCopy=gI.create(n,i.matching,i.ignoreCase):o.allowedToCopy=()=>!0,o},Dy=t=>{let n=new Error(`Path to copy doesn't exist ${t}`);return n.code="ENOENT",n},Co=t=>{let n=new Error(`Destination path already exists ${t}`);return n.code="EEXIST",n},Po={mode:!0,symlinks:"report",times:!0,absolutePath:!0},Ny=t=>typeof t.opts.overwrite!="function"&&t.opts.overwrite!==!0,_I=(t,n,i)=>{if(!Ro.sync(t))throw Dy(t);if(Ro.sync(n)&&!i.overwrite)throw Co(n)},yI=t=>{if(typeof t.opts.overwrite=="function"){let n=Oy.sync(t.destPath,Po);return t.opts.overwrite(t.srcInspectData,n)}return t.opts.overwrite===!0},vI=(t,n,i,o)=>{let u=dt.readFileSync(t);try{dt.writeFileSync(n,u,{mode:i,flag:"wx"})}catch(c){if(c.code==="ENOENT")dI.sync(n,u,{mode:i});else if(c.code==="EEXIST"){if(yI(o))dt.writeFileSync(n,u,{mode:i});else if(Ny(o))throw Co(o.destPath)}else throw c}},wI=(t,n)=>{let i=dt.readlinkSync(t);try{dt.symlinkSync(i,n)}catch(o){if(o.code==="EEXIST")dt.unlinkSync(n),dt.symlinkSync(i,n);else throw o}},bI=(t,n,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:n,opts:o},c=Iy.normalizeFileMode(n.mode);n.type==="dir"?Wl.createSync(i,{mode:c}):n.type==="file"?vI(t,i,c,u):n.type==="symlink"&&wI(t,i)},SI=(t,n,i)=>{let o=ky(i,t);_I(t,n,o),Ly.sync(t,{inspectOptions:Po},(u,c)=>{let f=Pi.relative(t,u),h=Pi.resolve(n,f);o.allowedToCopy(u,h,c)&&bI(u,c,h,o)})},xI=(t,n,i)=>Ro.async(t).then(o=>{if(o)return Ro.async(n);throw Dy(t)}).then(o=>{if(o&&!i.overwrite)throw Co(n)}),EI=t=>new Promise((n,i)=>{typeof t.opts.overwrite=="function"?Oy.async(t.destPath,Po).then(o=>{n(t.opts.overwrite(t.srcInspectData,o))}).catch(i):n(t.opts.overwrite===!0)}),Bl=(t,n,i,o,u)=>new Promise((c,f)=>{let h=u||{},g="wx";h.overwrite&&(g="w");let _=dt.createReadStream(t),v=dt.createWriteStream(n,{mode:i,flags:g});_.on("error",f),v.on("error",x=>{_.resume(),x.code==="ENOENT"?Wl.createAsync(Pi.dirname(n)).then(()=>{Bl(t,n,i,o).then(c,f)}).catch(f):x.code==="EEXIST"?EI(o).then(S=>{S?Bl(t,n,i,o,{overwrite:!0}).then(c,f):Ny(o)?f(Co(n)):c()}).catch(f):f(x)}),v.on("finish",c),_.pipe(v)}),AI=(t,n)=>dt.readlink(t).then(i=>new Promise((o,u)=>{dt.symlink(i,n).then(o).catch(c=>{c.code==="EEXIST"?dt.unlink(n).then(()=>dt.symlink(i,n)).then(o,u):u(c)})})),RI=(t,n,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:n,opts:o},c=Iy.normalizeFileMode(n.mode);return n.type==="dir"?Wl.createAsync(i,{mode:c}):n.type==="file"?Bl(t,i,c,u):n.type==="symlink"?AI(t,i):Promise.resolve()},CI=(t,n,i)=>new Promise((o,u)=>{let c=ky(i,t);xI(t,n,c).then(()=>{let f=!1,h=0;Ly.async(t,{inspectOptions:Po},(g,_)=>{if(_){let v=Pi.relative(t,g),x=Pi.resolve(n,v);c.allowedToCopy(g,_,x)&&(h+=1,RI(g,_,x,c).then(()=>{h-=1,f&&h===0&&o()}).catch(u))}},g=>{g?u(g):(f=!0,f&&h===0&&o())})}).catch(u)});To.validateInput=mI;To.sync=SI;To.async=CI});var jl=L(Io=>{"use strict";var $y=q("path"),Ir=it(),Gl=Ge(),My=Ul(),Fy=Un(),Ti=Ao(),Oo=ro(),PI=(t,n,i,o)=>{let u=`${t}(from, to, [options])`;Gl.argument(u,"from",n,["string"]),Gl.argument(u,"to",i,["string"]),Gl.options(u,"options",o,{overwrite:["boolean"]})},qy=t=>t||{},Hy=t=>{let n=new Error(`Destination path already exists ${t}`);return n.code="EEXIST",n},By=t=>{let n=new Error(`Path to move doesn't exist ${t}`);return n.code="ENOENT",n},TI=(t,n,i)=>{let o=qy(i);if(Ti.sync(n)!==!1&&o.overwrite!==!0)throw Hy(n);try{Ir.renameSync(t,n)}catch(u){if(u.code==="EISDIR"||u.code==="EPERM")Oo.sync(n),Ir.renameSync(t,n);else if(u.code==="EXDEV")My.sync(t,n,{overwrite:!0}),Oo.sync(t);else if(u.code==="ENOENT"){if(!Ti.sync(t))throw By(t);Fy.createSync($y.dirname(n)),Ir.renameSync(t,n)}else throw u}},OI=t=>new Promise((n,i)=>{let o=$y.dirname(t);Ti.async(o).then(u=>{u?i():Fy.createAsync(o).then(n,i)}).catch(i)}),II=(t,n,i)=>{let o=qy(i);return new Promise((u,c)=>{Ti.async(n).then(f=>{f!==!1&&o.overwrite!==!0?c(Hy(n)):Ir.rename(t,n).then(u).catch(h=>{h.code==="EISDIR"||h.code==="EPERM"?Oo.async(n).then(()=>Ir.rename(t,n)).then(u,c):h.code==="EXDEV"?My.async(t,n,{overwrite:!0}).then(()=>Oo.async(t)).then(u,c):h.code==="ENOENT"?Ti.async(t).then(g=>{g?OI(n).then(()=>Ir.rename(t,n)).then(u,c):c(By(t))}).catch(c):c(h)})})})};Io.validateInput=PI;Io.sync=TI;Io.async=II});var Xy=L(Lo=>{"use strict";var Gy=it(),Wy=Ge(),Uy=["utf8","buffer","json","jsonWithDates"],LI=(t,n,i)=>{let o=`${t}(path, returnAs)`;if(Wy.argument(o,"path",n,["string"]),Wy.argument(o,"returnAs",i,["string","undefined"]),i&&Uy.indexOf(i)===-1)throw new Error(`Argument "returnAs" passed to ${o} must have one of values: ${Uy.join(", ")}`)},jy=(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,Ky=(t,n)=>{let i=new Error(`JSON parsing failed while reading ${t} [${n}]`);return i.originalError=n,i},kI=(t,n)=>{let i=n||"utf8",o,u="utf8";i==="buffer"&&(u=null);try{o=Gy.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,jy))}catch(c){throw Ky(t,c)}return o},DI=(t,n)=>new Promise((i,o)=>{let u=n||"utf8",c="utf8";u==="buffer"&&(c=null),Gy.readFile(t,{encoding:c}).then(f=>{try{i(u==="json"?JSON.parse(f):u==="jsonWithDates"?JSON.parse(f,jy):f)}catch(h){o(Ky(t,h))}}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Lo.validateInput=LI;Lo.sync=kI;Lo.async=DI});var Yy=L(ko=>{"use strict";var Oi=q("path"),zy=jl(),Kl=Ge(),NI=(t,n,i,o)=>{let u=`${t}(path, newName, [options])`;if(Kl.argument(u,"path",n,["string"]),Kl.argument(u,"newName",i,["string"]),Kl.options(u,"options",o,{overwrite:["boolean"]}),Oi.basename(i)!==i)throw new Error(`Argument "newName" passed to ${u} should be a filename, not a path. Received "${i}"`)},$I=(t,n,i)=>{let o=Oi.join(Oi.dirname(t),n);zy.sync(t,o,i)},MI=(t,n,i)=>{let o=Oi.join(Oi.dirname(t),n);return zy.async(t,o,i)};ko.validateInput=NI;ko.sync=$I;ko.async=MI});var Jy=L(No=>{"use strict";var Zy=q("path"),Do=it(),Qy=Ge(),Vy=Un(),FI=(t,n,i)=>{let o=`${t}(symlinkValue, path)`;Qy.argument(o,"symlinkValue",n,["string"]),Qy.argument(o,"path",i,["string"])},qI=(t,n)=>{try{Do.symlinkSync(t,n)}catch(i){if(i.code==="ENOENT")Vy.createSync(Zy.dirname(n)),Do.symlinkSync(t,n);else throw i}},HI=(t,n)=>new Promise((i,o)=>{Do.symlink(t,n).then(i).catch(u=>{u.code==="ENOENT"?Vy.createAsync(Zy.dirname(n)).then(()=>Do.symlink(t,n)).then(i,o):o(u)})});No.validateInput=FI;No.sync=qI;No.async=HI});var tv=L(Xl=>{"use strict";var ev=q("fs");Xl.createWriteStream=ev.createWriteStream;Xl.createReadStream=ev.createReadStream});var uv=L($o=>{"use strict";var zl=q("path"),BI=q("os"),nv=q("crypto"),rv=Un(),iv=it(),WI=Ge(),UI=(t,n)=>{let i=`${t}([options])`;WI.options(i,"options",n,{prefix:["string"],basePath:["string"]})},sv=(t,n)=>{t=t||{};let i={};return typeof t.prefix!="string"?i.prefix="":i.prefix=t.prefix,typeof t.basePath=="string"?i.basePath=zl.resolve(n,t.basePath):i.basePath=BI.tmpdir(),i},ov=32,GI=(t,n)=>{let i=sv(n,t),o=nv.randomBytes(ov/2).toString("hex"),u=zl.join(i.basePath,i.prefix+o);try{iv.mkdirSync(u)}catch(c){if(c.code==="ENOENT")rv.sync(u);else throw c}return u},jI=(t,n)=>new Promise((i,o)=>{let u=sv(n,t);nv.randomBytes(ov/2,(c,f)=>{if(c)o(c);else{let h=f.toString("hex"),g=zl.join(u.basePath,u.prefix+h);iv.mkdir(g,_=>{_?_.code==="ENOENT"?rv.async(g).then(()=>{i(g)},o):o(_):i(g)})}})});$o.validateInput=UI;$o.sync=GI;$o.async=jI});var hv=L((nN,fv)=>{"use strict";var av=q("util"),Yl=q("path"),Mo=H_(),Fo=Un(),qo=G_(),Ho=Ay(),Bo=Tr(),Wo=Py(),Uo=Ul(),Go=Ao(),jo=ho(),Ko=jl(),Xo=Xy(),zo=ro(),Yo=Yy(),Qo=Jy(),cv=tv(),Zo=uv(),Vo=Ai(),lv=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 lv(Yl.resolve.apply(null,g))},o=h=>Yl.resolve(n(),h),u=function(){return Array.prototype.unshift.call(arguments,n()),Yl.resolve.apply(null,arguments)},c=h=>{let g=h||{};return g.cwd=n(),g},f={cwd:i,path:u,append:(h,g,_)=>{Mo.validateInput("append",h,g,_),Mo.sync(o(h),g,_)},appendAsync:(h,g,_)=>(Mo.validateInput("appendAsync",h,g,_),Mo.async(o(h),g,_)),copy:(h,g,_)=>{Uo.validateInput("copy",h,g,_),Uo.sync(o(h),o(g),_)},copyAsync:(h,g,_)=>(Uo.validateInput("copyAsync",h,g,_),Uo.async(o(h),o(g),_)),createWriteStream:(h,g)=>cv.createWriteStream(o(h),g),createReadStream:(h,g)=>cv.createReadStream(o(h),g),dir:(h,g)=>{Fo.validateInput("dir",h,g);let _=o(h);return Fo.sync(_,g),i(_)},dirAsync:(h,g)=>(Fo.validateInput("dirAsync",h,g),new Promise((_,v)=>{let x=o(h);Fo.async(x,g).then(()=>{_(i(x))},v)})),exists:h=>(Go.validateInput("exists",h),Go.sync(o(h))),existsAsync:h=>(Go.validateInput("existsAsync",h),Go.async(o(h))),file:(h,g)=>(qo.validateInput("file",h,g),qo.sync(o(h),g),f),fileAsync:(h,g)=>(qo.validateInput("fileAsync",h,g),new Promise((_,v)=>{qo.async(o(h),g).then(()=>{_(f)},v)})),find:(h,g)=>(typeof g>"u"&&typeof h=="object"&&(g=h,h="."),Ho.validateInput("find",h,g),Ho.sync(o(h),c(g))),findAsync:(h,g)=>(typeof g>"u"&&typeof h=="object"&&(g=h,h="."),Ho.validateInput("findAsync",h,g),Ho.async(o(h),c(g))),inspect:(h,g)=>(Bo.validateInput("inspect",h,g),Bo.sync(o(h),g)),inspectAsync:(h,g)=>(Bo.validateInput("inspectAsync",h,g),Bo.async(o(h),g)),inspectTree:(h,g)=>(Wo.validateInput("inspectTree",h,g),Wo.sync(o(h),g)),inspectTreeAsync:(h,g)=>(Wo.validateInput("inspectTreeAsync",h,g),Wo.async(o(h),g)),list:h=>(jo.validateInput("list",h),jo.sync(o(h||"."))),listAsync:h=>(jo.validateInput("listAsync",h),jo.async(o(h||"."))),move:(h,g,_)=>{Ko.validateInput("move",h,g,_),Ko.sync(o(h),o(g),_)},moveAsync:(h,g,_)=>(Ko.validateInput("moveAsync",h,g,_),Ko.async(o(h),o(g),_)),read:(h,g)=>(Xo.validateInput("read",h,g),Xo.sync(o(h),g)),readAsync:(h,g)=>(Xo.validateInput("readAsync",h,g),Xo.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,_)=>{Yo.validateInput("rename",h,g,_),Yo.sync(o(h),g,_)},renameAsync:(h,g,_)=>(Yo.validateInput("renameAsync",h,g,_),Yo.async(o(h),g,_)),symlink:(h,g)=>{Qo.validateInput("symlink",h,g),Qo.sync(h,o(g))},symlinkAsync:(h,g)=>(Qo.validateInput("symlinkAsync",h,g),Qo.async(h,o(g))),tmpDir:h=>{Zo.validateInput("tmpDir",h);let g=Zo.sync(n(),h);return i(g)},tmpDirAsync:h=>(Zo.validateInput("tmpDirAsync",h),new Promise((g,_)=>{Zo.async(n(),h).then(v=>{g(i(v))},_)})),write:(h,g,_)=>{Vo.validateInput("write",h,g,_),Vo.sync(o(h),g,_)},writeAsync:(h,g,_)=>(Vo.validateInput("writeAsync",h,g,_),Vo.async(o(h),g,_))};return av.inspect.custom!==void 0&&(f[av.inspect.custom]=()=>`[fs-jetpack CWD: ${n()}]`),f};fv.exports=lv});var Jo=L((rN,pv)=>{"use strict";var KI=hv();pv.exports=KI()});var YI={};Tp(YI,{default:()=>zI});var xi={};Tp(xi,{Bud:()=>Si,Build:()=>Lr,Clean:()=>kr,Contributors:()=>Nr,Dev:()=>$r,Docs:()=>Mr,DocsDev:()=>Fr,Docusaurus:()=>ur,Eslint:()=>ar,Lint:()=>qr,Netlify:()=>cr,PackageCheck:()=>yr,Pm2:()=>br,Prettier:()=>Sr,RegistryClean:()=>Hr,RegistryStart:()=>Br,RegistryStop:()=>Wr,Release:()=>Ur,Syncpack:()=>xr,TestRun:()=>Gr,Tsc:()=>Er,Version:()=>jr,Vitest:()=>Ar,YarnPluginBuild:()=>Dr});var Lp=q("clipanion");var Ip=q("@yarnpkg/cli"),ee=class extends Ip.BaseCommand{constructor(){super();this.result=0;this.promised=[]}async throwIfError(i){if(i!==0)throw new Error("command failed")}};var ur=class extends ee{constructor(){super(...arguments);this.passthrough=Lp.Option.Proxy({name:"docusaurus options"})}async execute(){return await this.cli.run(["workspace","@repo/docs","docusaurus",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};ur.paths=[["@bud","docusaurus"]],ur.usage={category:"@bud",description:"run docusaurus",examples:[["docusaurus usage info","yarn @bud docusaurus --help"]]};var $p=q("module"),Mp=q("path"),Fp=q("url"),hi={},qp=(hi?.url&&typeof hi.url<"u"?(0,Fp.fileURLToPath)(hi.url):__dirname).split("sources/").shift(),j=(...t)=>(0,Mp.join)(qp,...t),nL=j("package.json"),rL=j("storage"),iL=j("config","tsconfig.json");var sL={config:j("config"),fixtures:j("storage","fixtures"),root:qp,sources:j("sources"),storage:j("storage"),tests:j("tests")},Np;typeof hi?.url<"u"?Np=(0,$p.createRequire)(hi.url)("../../../config/monorepo.config.cjs"):Np=Dp();var Hp=q("clipanion");var ar=class extends ee{constructor(){super(...arguments);this.passthrough=Hp.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",j("node_modules",".bin","eslint"),j("examples/**/*.{ts,tsx,js,jsx}"),j("sources/**/src/**/*.{ts,tsx,js,jsx}"),j("tests/**/*.{ts,tsx,js,jsx}"),j("config/**/*.{ts,tsx,js,jsx}"),"--config",j("config/eslint.config.cjs"),"--no-error-on-unmatched-pattern",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};ar.paths=[["@bud","eslint"]],ar.usage={category:"@bud",description:"Eslint passthrough",examples:[["eslint usage info","yarn @bud eslint --help"]]};var xa=q("clipanion");var cr=class extends ee{constructor(){super(...arguments);this.dir=xa.Option.String("--dir",j("sources","@repo","docs","build"),{description:"directory to deploy"});this.passthrough=xa.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)}};cr.paths=[["@bud","netlify"]],cr.usage={category:"@bud",description:"run netlify",examples:[["netlify usage info","yarn @bud netlify --help"]]};var p_=q("clipanion");var e_=He(q("fs"),1),t_=He(q("path"),1),n_=He(Ea(),1),wi=He(al(),1),vi=He(km(),1);var Km=He(q("process"),1),_l=He(q("fs"),1),Wn=He(q("path"),1),yl=He(al(),1),Xm=He(Um(),1);function _r(t){let n=/^\\\\\?\\/.test(t),i=/[^\u0000-\u0080]+/.test(t);return n||i?t:t.replace(/\\/g,"/")}var Gm=q("url"),jm=q("stream"),yi=t=>t instanceof URL?(0,Gm.fileURLToPath)(t):t,Zs=class extends jm.Transform{constructor(n){super({objectMode:!0,transform(i,o,u){u(void 0,n(i)?i:void 0)}})}},Vs=t=>t[0]==="!";var zm={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},Ym="**/.gitignore",TT=(t,n)=>Vs(t)?"!"+Wn.default.posix.join(n,t.slice(1)):Wn.default.posix.join(n,t),OT=(t,n)=>{let i=_r(Wn.default.relative(n,Wn.default.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(o=>o&&!o.startsWith("#")).map(o=>TT(o,i))},IT=(t,n)=>{if(n=_r(n),Wn.default.isAbsolute(t)){if(_r(t).startsWith(n))return Wn.default.relative(n,t);throw new Error(`Path ${t} is not in cwd ${n}`)}return t},Qm=(t,n)=>{let i=t.flatMap(u=>OT(u,n)),o=(0,Xm.default)().add(i);return u=>(u=yi(u),u=IT(u,n),u?o.ignores(_r(u)):!1)},Zm=(t={})=>({cwd:yi(t.cwd)||Km.default.cwd(),suppressErrors:Boolean(t.suppressErrors),deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),Vm=async(t,n)=>{let{cwd:i,suppressErrors:o,deep:u}=Zm(n),c=await(0,yl.default)(t,{cwd:i,suppressErrors:o,deep:u,...zm}),f=await Promise.all(c.map(async h=>({filePath:h,content:await _l.default.promises.readFile(h,"utf8")})));return Qm(f,i)},Jm=(t,n)=>{let{cwd:i,suppressErrors:o,deep:u}=Zm(n),f=yl.default.sync(t,{cwd:i,suppressErrors:o,deep:u,...zm}).map(h=>({filePath:h,content:_l.default.readFileSync(h,"utf8")}));return Qm(f,i)};var LT=t=>{if(t.some(n=>typeof n!="string"))throw new TypeError("Patterns must be a string or an array of strings")},vl=t=>(t=[...new Set([t].flat())],LT(t),t),kT=t=>{if(!t.cwd)return;let n;try{n=e_.default.statSync(t.cwd)}catch{return}if(!n.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},r_=(t={})=>(t={...t,ignore:t.ignore||[],expandDirectories:t.expandDirectories===void 0?!0:t.expandDirectories,cwd:yi(t.cwd)},kT(t),t),i_=t=>async(n,i)=>t(vl(n),r_(i)),Js=t=>(n,i)=>t(vl(n),r_(i)),s_=t=>{let{ignoreFiles:n,gitignore:i}=t,o=n?vl(n):[];return i&&o.push(Ym),o},DT=async t=>{let n=s_(t);return u_(n.length>0&&await Vm(n,t))},o_=t=>{let n=s_(t);return u_(n.length>0&&Jm(n,t))},u_=t=>{let n=new Set;return i=>{let o=i.path||i,u=t_.default.normalize(o),c=n.has(u)||t&&t(o);return n.add(u),!c}},a_=(t,n)=>t.flat().filter(i=>n(i)),NT=(t,n)=>(0,n_.default)(t).pipe(new Zs(i=>n(i))),c_=(t,n)=>{let i=[];for(;t.length>0;){let o=t.findIndex(c=>Vs(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},l_=(t,n)=>({...n?{cwd:n}:{},...Array.isArray(t)?{files:t}:t}),f_=async(t,n)=>{let i=c_(t,n),{cwd:o,expandDirectories:u}=n;if(!u)return i;let c=l_(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,vi.default)(g,c),(0,vi.default)(_.ignore,f)]),{patterns:g,options:_}}))},wl=(t,n)=>{let i=c_(t,n),{cwd:o,expandDirectories:u}=n;if(!u)return i;let c=l_(u,o),f=o?{cwd:o}:void 0;return i.map(h=>{let{patterns:g,options:_}=h;return g=vi.default.sync(g,c),_.ignore=vi.default.sync(_.ignore,f),{patterns:g,options:_}})},h_=i_(async(t,n)=>{let[i,o]=await Promise.all([f_(t,n),DT(n)]),u=await Promise.all(i.map(c=>(0,wi.default)(c.patterns,c.options)));return a_(u,o)}),Kk=Js((t,n)=>{let i=wl(t,n),o=o_(n),u=i.map(c=>wi.default.sync(c.patterns,c.options));return a_(u,o)}),Xk=Js((t,n)=>{let i=wl(t,n),o=o_(n),u=i.map(c=>wi.default.stream(c.patterns,c.options));return NT(u,o)}),zk=Js((t,n)=>t.some(i=>wi.default.isDynamicPattern(i,n))),Yk=i_(f_),Qk=Js(wl);var yr=class extends ee{constructor(){super(...arguments);this.passthrough=p_.Option.Proxy({name:"pm2 options"})}async execute(){await h_(["sources/@roots/*"],{onlyDirectories:!0}).then(async i=>await Promise.all([...i,"sources/create-bud-app"].flatMap(async o=>await this.cli.run(["node",j("node_modules",".bin","package-check"),"--cwd",o]).then(this.throwIfError).catch(this.catch))).catch(this.catch)).catch(this.catch)}};yr.paths=[["@bud","package-check"]],yr.usage={category:"@bud",description:"PackageCheck passthrough",examples:[["package-check usage info","yarn @bud package-check --help"]]};var d_=q("clipanion"),g_=He(wr());var br=class extends ee{constructor(){super(...arguments);this.passthrough=d_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",j("node_modules",".bin","pm2"),...this.passthrough]).catch(g_.noop)}};br.paths=[["@bud","pm2"]],br.usage={category:"@bud",description:"registry access",examples:[["pm2 usage info","yarn @bud pm2 --info"]]};var m_=q("clipanion");var Sr=class extends ee{constructor(){super(...arguments);this.passthrough=m_.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",j("node_modules/.bin/prettier"),j("sources/@roots/*/src/**/*"),`--config=${j("config","prettier.config.js")}`,"--ignore-unknown","--no-error-on-unmatched-pattern","--write",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Sr.paths=[["@bud","prettier"]],Sr.usage={category:"@bud",description:"Prettier passthrough",examples:[["prettier usage info","yarn @bud prettier --help"]]};var __=q("clipanion");var xr=class extends ee{constructor(){super(...arguments);this.passthrough=__.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",j("node_modules",".bin","syncpack"),"list-mismatches","--config",j("config/syncpack.config.cjs")]).then(this.throwIfError).catch(this.catch)}};xr.paths=[["@bud","syncpack"]],xr.usage={category:"@bud",description:"Syncpack passthrough",examples:[["syncpack usage info","yarn @bud syncpack --help"]]};var y_=q("clipanion");var Er=class extends ee{constructor(){super(...arguments);this.passthrough=y_.Option.Proxy({name:"tsc options"})}async execute(){return await this.cli.run(["node",j("node_modules",".bin","tsc"),...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Er.paths=[["@bud","tsc"]],Er.usage={category:"@bud",description:"Run the typescript compiler",examples:[["tsc usage info","yarn @bud tsc --help"]]};var v_=q("clipanion");var Ar=class extends ee{constructor(){super(...arguments);this.passthrough=v_.Option.Proxy({name:"vitest options"})}async execute(){return await this.cli.run(["node",j("node_modules",".bin","vitest"),...this.passthrough]).then(this.throwIfError).catch(this.catch)}};Ar.paths=[["@bud","vitest"]],Ar.usage={category:"@bud",description:"Run vitest",examples:[["vitest usage info","yarn @bud vitest --help"]]};var Si=class extends ee{async execute(){process.stdout.write(` +}`;var ce=Ld(function(){return ge(g,W+"return "+k).apply(e,y)});if(ce.source=k,qu(ce))throw ce;return ce}function sR(t){return ve(t).toLowerCase()}function oR(t){return ve(t).toUpperCase()}function aR(t,r,o){if(t=ve(t),t&&(o||r===e))return Hp(t);if(!t||!(r=at(r)))return t;var u=Pt(t),p=Pt(r),g=Gp(u,p),y=Up(u,p)+1;return yn(u,g,y).join("")}function uR(t,r,o){if(t=ve(t),t&&(o||r===e))return t.slice(0,jp(t)+1);if(!t||!(r=at(r)))return t;var u=Pt(t),p=Up(u,Pt(r))+1;return yn(u,0,p).join("")}function cR(t,r,o){if(t=ve(t),t&&(o||r===e))return t.replace(qa,"");if(!t||!(r=at(r)))return t;var u=Pt(t),p=Gp(u,Pt(r));return yn(u,p).join("")}function lR(t,r){var o=j,u=ae;if(Oe(r)){var p="separator"in r?r.separator:p;o="length"in r?ue(r.length):o,u="omission"in r?at(r.omission):u}t=ve(t);var g=t.length;if(Jn(t)){var y=Pt(t);g=y.length}if(o>=g)return t;var v=o-er(u);if(v<1)return u;var w=y?yn(y,0,v).join(""):t.slice(0,v);if(p===e)return w+u;if(y&&(v+=w.length-v),Bu(p)){if(t.slice(v).search(p)){var O,I=w;for(p.global||(p=nu(p.source,ve(cp.exec(p))+"g")),p.lastIndex=0;O=p.exec(I);)var k=O.index;w=w.slice(0,k===e?v:k)}}else if(t.indexOf(at(p),v)!=v){var q=w.lastIndexOf(p);q>-1&&(w=w.slice(0,q))}return w+u}function fR(t){return t=ve(t),t&&ww.test(t)?t.replace(op,Bx):t}var pR=or(function(t,r,o){return t+(o?" ":"")+r.toUpperCase()}),Uu=kh("toUpperCase");function Id(t,r,o){return t=ve(t),r=o?e:r,r===e?$x(t)?Ux(t):Cx(t):t.match(r)||[]}var Ld=le(function(t,r){try{return st(t,e,r)}catch(o){return qu(o)?o:new ie(o)}}),hR=Zt(function(t,r){return yt(r,function(o){o=Bt(o),Qt(t,o,Mu(t[o],t))}),t});function dR(t){var r=t==null?0:t.length,o=J();return t=r?Re(t,function(u){if(typeof u[1]!="function")throw new _t(a);return[o(u[0]),u[1]]}):[],le(function(u){for(var p=-1;++pR)return[];var o=Le,u=je(t,Le);r=J(r),t-=Le;for(var p=Ja(u,r);++o0||r<0)?new he(o):(t<0?o=o.takeRight(-t):t&&(o=o.drop(t)),r!==e&&(r=ue(r),o=r<0?o.dropRight(-r):o.take(r-t)),o)},he.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},he.prototype.toArray=function(){return this.take(Le)},Ft(he.prototype,function(t,r){var o=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),p=d[u?"take"+(r=="last"?"Right":""):r],g=u||/^find/.test(r);!p||(d.prototype[r]=function(){var y=this.__wrapped__,v=u?[1]:arguments,w=y instanceof he,O=v[0],I=w||se(y),k=function(pe){var de=p.apply(d,ln([pe],v));return u&&q?de[0]:de};I&&o&&typeof O=="function"&&O.length!=1&&(w=I=!1);var q=this.__chain__,W=!!this.__actions__.length,te=g&&!q,ce=w&&!W;if(!g&&I){y=ce?y:new he(this);var ne=t.apply(y,v);return ne.__actions__.push({func:As,args:[k],thisArg:e}),new vt(ne,q)}return te&&ce?t.apply(this,v):(ne=this.thru(k),te?u?ne.value()[0]:ne.value():ne)})}),yt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Vi[t],o=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);d.prototype[t]=function(){var p=arguments;if(u&&!this.__chain__){var g=this.value();return r.apply(se(g)?g:[],p)}return this[o](function(y){return r.apply(se(y)?y:[],p)})}}),Ft(he.prototype,function(t,r){var o=d[r];if(o){var u=o.name+"";xe.call(rr,u)||(rr[u]=[]),rr[u].push({name:r,func:o})}}),rr[_s(e,$).name]=[{name:"wrapper",func:e}],he.prototype.clone=fE,he.prototype.reverse=pE,he.prototype.value=hE,d.prototype.at=G0,d.prototype.chain=U0,d.prototype.commit=W0,d.prototype.next=j0,d.prototype.plant=z0,d.prototype.reverse=X0,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=Y0,d.prototype.first=d.prototype.head,ii&&(d.prototype[ii]=K0),d},pn=Wx();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qe._=pn,define(function(){return pn})):Rn?((Rn.exports=pn)._=pn,ja._=pn):qe._=pn}).call(xr)});var I_=T((nq,O_)=>{O_.exports=T_;T_.sync=DL;var R_=N("fs");function $L(e,n){var i=n.pathExt!==void 0?n.pathExt:process.env.PATHEXT;if(!i||(i=i.split(";"),i.indexOf("")!==-1))return!0;for(var s=0;s{$_.exports=k_;k_.sync=ML;var L_=N("fs");function k_(e,n,i){L_.stat(e,function(s,a){i(s,s?!1:N_(a,n))})}function ML(e,n){return N_(L_.statSync(e),n)}function N_(e,n){return e.isFile()&&FL(e,n)}function FL(e,n){var i=e.mode,s=e.uid,a=e.gid,c=n.uid!==void 0?n.uid:process.getuid&&process.getuid(),l=n.gid!==void 0?n.gid:process.getgid&&process.getgid(),f=parseInt("100",8),h=parseInt("010",8),m=parseInt("001",8),_=f|h,x=i&m||i&h&&a===l||i&f&&s===c||i&_&&c===0;return x}});var F_=T((sq,M_)=>{var iq=N("fs"),po;process.platform==="win32"||global.TESTING_WINDOWS?po=I_():po=D_();M_.exports=Xl;Xl.sync=qL;function Xl(e,n,i){if(typeof n=="function"&&(i=n,n={}),!i){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(s,a){Xl(e,n||{},function(c,l){c?a(c):s(l)})})}po(e,n||{},function(s,a){s&&(s.code==="EACCES"||n&&n.ignoreErrors)&&(s=null,a=!1),i(s,a)})}function qL(e,n){try{return po.sync(e,n||{})}catch(i){if(n&&n.ignoreErrors||i.code==="EACCES")return!1;throw i}}});var j_=T((oq,W_)=>{var Tr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",q_=N("path"),BL=Tr?";":":",B_=F_(),H_=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),G_=(e,n)=>{let i=n.colon||BL,s=e.match(/\//)||Tr&&e.match(/\\/)?[""]:[...Tr?[process.cwd()]:[],...(n.path||process.env.PATH||"").split(i)],a=Tr?n.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Tr?a.split(i):[""];return Tr&&e.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:s,pathExt:c,pathExtExe:a}},U_=(e,n,i)=>{typeof n=="function"&&(i=n,n={}),n||(n={});let{pathEnv:s,pathExt:a,pathExtExe:c}=G_(e,n),l=[],f=m=>new Promise((_,x)=>{if(m===s.length)return n.all&&l.length?_(l):x(H_(e));let b=s[m],M=/^".*"$/.test(b)?b.slice(1,-1):b,A=q_.join(M,e),$=!M&&/^\.[\\\/]/.test(e)?e.slice(0,2)+A:A;_(h($,m,0))}),h=(m,_,x)=>new Promise((b,M)=>{if(x===a.length)return b(f(_+1));let A=a[x];B_(m+A,{pathExt:c},($,U)=>{if(!$&&U)if(n.all)l.push(m+A);else return b(m+A);return b(h(m,_,x+1))})});return i?f(0).then(m=>i(null,m),i):f(0)},HL=(e,n)=>{n=n||{};let{pathEnv:i,pathExt:s,pathExtExe:a}=G_(e,n),c=[];for(let l=0;l{"use strict";var K_=(e={})=>{let n=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(n).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};Yl.exports=K_;Yl.exports.default=K_});var V_=T((uq,Q_)=>{"use strict";var X_=N("path"),GL=j_(),UL=z_();function Y_(e,n){let i=e.options.env||process.env,s=process.cwd(),a=e.options.cwd!=null,c=a&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=GL.sync(e.command,{path:i[UL({env:i})],pathExt:n?X_.delimiter:void 0})}catch{}finally{c&&process.chdir(s)}return l&&(l=X_.resolve(a?e.options.cwd:"",l)),l}function WL(e){return Y_(e)||Y_(e,!0)}Q_.exports=WL});var Z_=T((cq,Vl)=>{"use strict";var Ql=/([()\][%!^"`<>&|;, *?])/g;function jL(e){return e=e.replace(Ql,"^$1"),e}function KL(e,n){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(Ql,"^$1"),n&&(e=e.replace(Ql,"^$1")),e}Vl.exports.command=jL;Vl.exports.argument=KL});var ev=T((lq,J_)=>{"use strict";J_.exports=/^#!(.*)/});var nv=T((fq,tv)=>{"use strict";var zL=ev();tv.exports=(e="")=>{let n=e.match(zL);if(!n)return null;let[i,s]=n[0].replace(/#! ?/,"").split(" "),a=i.split("/").pop();return a==="env"?s:s?`${a} ${s}`:a}});var iv=T((pq,rv)=>{"use strict";var Zl=N("fs"),XL=nv();function YL(e){let i=Buffer.alloc(150),s;try{s=Zl.openSync(e,"r"),Zl.readSync(s,i,0,150,0),Zl.closeSync(s)}catch{}return XL(i.toString())}rv.exports=YL});var uv=T((hq,av)=>{"use strict";var QL=N("path"),sv=V_(),ov=Z_(),VL=iv(),ZL=process.platform==="win32",JL=/\.(?:com|exe)$/i,ek=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function tk(e){e.file=sv(e);let n=e.file&&VL(e.file);return n?(e.args.unshift(e.file),e.command=n,sv(e)):e.file}function nk(e){if(!ZL)return e;let n=tk(e),i=!JL.test(n);if(e.options.forceShell||i){let s=ek.test(n);e.command=QL.normalize(e.command),e.command=ov.command(e.command),e.args=e.args.map(c=>ov.argument(c,s));let a=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${a}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function rk(e,n,i){n&&!Array.isArray(n)&&(i=n,n=null),n=n?n.slice(0):[],i=Object.assign({},i);let s={command:e,args:n,options:i,file:void 0,original:{command:e,args:n}};return i.shell?s:nk(s)}av.exports=rk});var fv=T((dq,lv)=>{"use strict";var Jl=process.platform==="win32";function ef(e,n){return Object.assign(new Error(`${n} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${n} ${e.command}`,path:e.command,spawnargs:e.args})}function ik(e,n){if(!Jl)return;let i=e.emit;e.emit=function(s,a){if(s==="exit"){let c=cv(a,n,"spawn");if(c)return i.call(e,"error",c)}return i.apply(e,arguments)}}function cv(e,n){return Jl&&e===1&&!n.file?ef(n.original,"spawn"):null}function sk(e,n){return Jl&&e===1&&!n.file?ef(n.original,"spawnSync"):null}lv.exports={hookChildProcess:ik,verifyENOENT:cv,verifyENOENTSync:sk,notFoundError:ef}});var dv=T((gq,Or)=>{"use strict";var pv=N("child_process"),tf=uv(),nf=fv();function hv(e,n,i){let s=tf(e,n,i),a=pv.spawn(s.command,s.args,s.options);return nf.hookChildProcess(a,s),a}function ok(e,n,i){let s=tf(e,n,i),a=pv.spawnSync(s.command,s.args,s.options);return a.error=a.error||nf.verifyENOENTSync(a.status,s),a}Or.exports=hv;Or.exports.spawn=hv;Or.exports.sync=ok;Or.exports._parse=tf;Or.exports._enoent=nf});var Xv=T((lB,zv)=>{"use strict";var{PassThrough:Qk}=N("stream");zv.exports=function(){var e=[],n=new Qk({objectMode:!0});return n.setMaxListeners(0),n.add=i,n.isEmpty=s,n.on("unpipe",a),Array.prototype.slice.call(arguments).forEach(i),n;function i(c){return Array.isArray(c)?(c.forEach(i),this):(e.push(c),c.once("end",a.bind(null,c)),c.once("error",n.emit.bind(n,"error")),c.pipe(n,{end:!1}),this)}function s(){return e.length==0}function a(c){e=e.filter(function(l){return l!==c}),!e.length&&n.readable&&n.end()}}});var _b=T((LB,yb)=>{"use strict";yb.exports=e=>function(){let n=arguments.length,i=new Array(n);for(let s=0;s{i.push((c,l)=>{c?a(c):s(l)}),e.apply(null,i)})}});var it=T((kB,vb)=>{"use strict";var To=N("fs"),fN=_b(),pN=e=>[typeof To[e]=="function",!e.match(/Sync$/),!e.match(/^[A-Z]/),!e.match(/^create/),!e.match(/^(un)?watch/)].every(Boolean),hN=e=>{let n=To[e];return fN(n)},dN=()=>{let e={};return Object.keys(To).forEach(n=>{pN(n)?n==="exists"?e.exists=()=>{throw new Error("fs.exists() is deprecated")}:e[n]=hN(n):e[n]=To[n]}),e};vb.exports=dN()});var We=T((NB,xb)=>{"use strict";var gN=e=>{let n=i=>["a","e","i","o","u"].indexOf(i[0])!==-1?`an ${i}`:`a ${i}`;return e.map(n).join(" or ")},bb=e=>/array of /.test(e),Sb=e=>e.split(" of ")[1],wb=e=>bb(e)?wb(Sb(e)):["string","number","boolean","array","object","buffer","null","undefined","function"].some(n=>n===e),ki=e=>e===null?"null":Array.isArray(e)?"array":Buffer.isBuffer(e)?"buffer":typeof e,mN=(e,n,i)=>i.indexOf(e)===n,yN=e=>{let n=ki(e),i;return n==="array"&&(i=e.map(s=>ki(s)).filter(mN),n+=` of ${i.join(", ")}`),n},_N=(e,n)=>{let i=Sb(n);return ki(e)!=="array"?!1:e.every(s=>ki(s)===i)},Rf=(e,n,i,s)=>{if(!s.some(c=>{if(!wb(c))throw new Error(`Unknown type "${c}"`);return bb(c)?_N(i,c):c===ki(i)}))throw new Error(`Argument "${n}" passed to ${e} must be ${gN(s)}. Received ${yN(i)}`)},vN=(e,n,i,s)=>{i!==void 0&&(Rf(e,n,i,["object"]),Object.keys(i).forEach(a=>{let c=`${n}.${a}`;if(s[a]!==void 0)Rf(e,c,i[a],s[a]);else throw new Error(`Unknown argument "${c}" passed to ${e}`)}))};xb.exports={argument:Rf,options:vN}});var Oo=T(Eb=>{"use strict";Eb.normalizeFileMode=e=>{let n;return typeof e=="number"?n=e.toString(8):n=e,n.substring(n.length-3)}});var Lo=T(Io=>{"use strict";var Ab=it(),bN=We(),SN=(e,n)=>{let i=`${e}([path])`;bN.argument(i,"path",n,["string","undefined"])},wN=e=>{Ab.rmSync(e,{recursive:!0,force:!0,maxRetries:3})},xN=e=>Ab.rm(e,{recursive:!0,force:!0,maxRetries:3});Io.validateInput=SN;Io.sync=wN;Io.async=xN});var jn=T(Lr=>{"use strict";var ko=N("path"),jt=it(),Pf=Oo(),Cb=We(),Rb=Lo(),EN=(e,n,i)=>{let s=`${e}(path, [criteria])`;Cb.argument(s,"path",n,["string"]),Cb.options(s,"criteria",i,{empty:["boolean"],mode:["string","number"]})},Pb=e=>{let n=e||{};return typeof n.empty!="boolean"&&(n.empty=!1),n.mode!==void 0&&(n.mode=Pf.normalizeFileMode(n.mode)),n},Tb=e=>new Error(`Path ${e} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),AN=e=>{let n;try{n=jt.statSync(e)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isDirectory())throw Tb(e);return n},Tf=(e,n)=>{let i=n||{};try{jt.mkdirSync(e,i.mode)}catch(s){if(s.code==="ENOENT")Tf(ko.dirname(e),i),jt.mkdirSync(e,i.mode);else if(s.code!=="EEXIST")throw s}},CN=(e,n,i)=>{let s=()=>{let c=Pf.normalizeFileMode(n.mode);i.mode!==void 0&&i.mode!==c&&jt.chmodSync(e,i.mode)},a=()=>{i.empty&&jt.readdirSync(e).forEach(l=>{Rb.sync(ko.resolve(e,l))})};s(),a()},RN=(e,n)=>{let i=Pb(n),s=AN(e);s?CN(e,s,i):Tf(e,i)},PN=e=>new Promise((n,i)=>{jt.stat(e).then(s=>{s.isDirectory()?n(s):i(Tb(e))}).catch(s=>{s.code==="ENOENT"?n(void 0):i(s)})}),TN=e=>new Promise((n,i)=>{jt.readdir(e).then(s=>{let a=c=>{if(c===s.length)n();else{let l=ko.resolve(e,s[c]);Rb.async(l).then(()=>{a(c+1)})}};a(0)}).catch(i)}),ON=(e,n,i)=>new Promise((s,a)=>{let c=()=>{let f=Pf.normalizeFileMode(n.mode);return i.mode!==void 0&&i.mode!==f?jt.chmod(e,i.mode):Promise.resolve()},l=()=>i.empty?TN(e):Promise.resolve();c().then(l).then(s,a)}),Of=(e,n)=>{let i=n||{};return new Promise((s,a)=>{jt.mkdir(e,i.mode).then(s).catch(c=>{c.code==="ENOENT"?Of(ko.dirname(e),i).then(()=>jt.mkdir(e,i.mode)).then(s).catch(l=>{l.code==="EEXIST"?s():a(l)}):c.code==="EEXIST"?s():a(c)})})},IN=(e,n)=>new Promise((i,s)=>{let a=Pb(n);PN(e).then(c=>c!==void 0?ON(e,c,a):Of(e,a)).then(i,s)});Lr.validateInput=EN;Lr.sync=RN;Lr.createSync=Tf;Lr.async=IN;Lr.createAsync=Of});var Ni=T($o=>{"use strict";var Ob=N("path"),kr=it(),If=We(),Ib=jn(),LN=(e,n,i,s)=>{let a=`${e}(path, data, [options])`;If.argument(a,"path",n,["string"]),If.argument(a,"data",i,["string","buffer","object","array"]),If.options(a,"options",s,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},No=".__new__",Lb=(e,n)=>{let i=n;return typeof i!="number"&&(i=2),typeof e=="object"&&!Buffer.isBuffer(e)&&e!==null?JSON.stringify(e,null,i):e},kb=(e,n,i)=>{try{kr.writeFileSync(e,n,i)}catch(s){if(s.code==="ENOENT")Ib.createSync(Ob.dirname(e)),kr.writeFileSync(e,n,i);else throw s}},kN=(e,n,i)=>{kb(e+No,n,i),kr.renameSync(e+No,e)},NN=(e,n,i)=>{let s=i||{},a=Lb(n,s.jsonIndent),c=kb;s.atomic&&(c=kN),c(e,a,{mode:s.mode})},Nb=(e,n,i)=>new Promise((s,a)=>{kr.writeFile(e,n,i).then(s).catch(c=>{c.code==="ENOENT"?Ib.createAsync(Ob.dirname(e)).then(()=>kr.writeFile(e,n,i)).then(s,a):a(c)})}),$N=(e,n,i)=>new Promise((s,a)=>{Nb(e+No,n,i).then(()=>kr.rename(e+No,e)).then(s,a)}),DN=(e,n,i)=>{let s=i||{},a=Lb(n,s.jsonIndent),c=Nb;return s.atomic&&(c=$N),c(e,a,{mode:s.mode})};$o.validateInput=LN;$o.sync=NN;$o.async=DN});var Mb=T(Do=>{"use strict";var $b=it(),Db=Ni(),Lf=We(),MN=(e,n,i,s)=>{let a=`${e}(path, data, [options])`;Lf.argument(a,"path",n,["string"]),Lf.argument(a,"data",i,["string","buffer"]),Lf.options(a,"options",s,{mode:["string","number"]})},FN=(e,n,i)=>{try{$b.appendFileSync(e,n,i)}catch(s){if(s.code==="ENOENT")Db.sync(e,n,i);else throw s}},qN=(e,n,i)=>new Promise((s,a)=>{$b.appendFile(e,n,i).then(s).catch(c=>{c.code==="ENOENT"?Db.async(e,n,i).then(s,a):a(c)})});Do.validateInput=MN;Do.sync=FN;Do.async=qN});var Hb=T(qo=>{"use strict";var Mo=it(),kf=Oo(),Fb=We(),Fo=Ni(),BN=(e,n,i)=>{let s=`${e}(path, [criteria])`;Fb.argument(s,"path",n,["string"]),Fb.options(s,"criteria",i,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},qb=e=>{let n=e||{};return n.mode!==void 0&&(n.mode=kf.normalizeFileMode(n.mode)),n},Bb=e=>new Error(`Path ${e} exists but is not a file. Halting jetpack.file() call for safety reasons.`),HN=e=>{let n;try{n=Mo.statSync(e)}catch(i){if(i.code!=="ENOENT")throw i}if(n&&!n.isFile())throw Bb(e);return n},GN=(e,n,i)=>{let s=kf.normalizeFileMode(n.mode),a=()=>i.content!==void 0?(Fo.sync(e,i.content,{mode:s,jsonIndent:i.jsonIndent}),!0):!1,c=()=>{i.mode!==void 0&&i.mode!==s&&Mo.chmodSync(e,i.mode)};a()||c()},UN=(e,n)=>{let i="";n.content!==void 0&&(i=n.content),Fo.sync(e,i,{mode:n.mode,jsonIndent:n.jsonIndent})},WN=(e,n)=>{let i=qb(n),s=HN(e);s!==void 0?GN(e,s,i):UN(e,i)},jN=e=>new Promise((n,i)=>{Mo.stat(e).then(s=>{s.isFile()?n(s):i(Bb(e))}).catch(s=>{s.code==="ENOENT"?n(void 0):i(s)})}),KN=(e,n,i)=>{let s=kf.normalizeFileMode(n.mode),a=()=>new Promise((l,f)=>{i.content!==void 0?Fo.async(e,i.content,{mode:s,jsonIndent:i.jsonIndent}).then(()=>{l(!0)}).catch(f):l(!1)}),c=()=>{if(i.mode!==void 0&&i.mode!==s)return Mo.chmod(e,i.mode)};return a().then(l=>{if(!l)return c()})},zN=(e,n)=>{let i="";return n.content!==void 0&&(i=n.content),Fo.async(e,i,{mode:n.mode,jsonIndent:n.jsonIndent})},XN=(e,n)=>new Promise((i,s)=>{let a=qb(n);jN(e).then(c=>c!==void 0?KN(e,c,a):zN(e,a)).then(i,s)});qo.validateInput=BN;qo.sync=WN;qo.async=XN});var $r=T(Nr=>{"use strict";var Ub=N("crypto"),YN=N("path"),An=it(),Gb=We(),Nf=["md5","sha1","sha256","sha512"],$f=["report","follow"],QN=(e,n,i)=>{let s=`${e}(path, [options])`;if(Gb.argument(s,"path",n,["string"]),Gb.options(s,"options",i,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Nf.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${s} must have one of values: ${Nf.join(", ")}`);if(i&&i.symlinks!==void 0&&$f.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${s} must have one of values: ${$f.join(", ")}`)},Wb=(e,n,i)=>{let s={};return s.name=YN.basename(e),i.isFile()?(s.type="file",s.size=i.size):i.isDirectory()?s.type="dir":i.isSymbolicLink()?s.type="symlink":s.type="other",n.mode&&(s.mode=i.mode),n.times&&(s.accessTime=i.atime,s.modifyTime=i.mtime,s.changeTime=i.ctime,s.birthTime=i.birthtime),n.absolutePath&&(s.absolutePath=e),s},VN=(e,n)=>{let i=Ub.createHash(n),s=An.readFileSync(e);return i.update(s),i.digest("hex")},ZN=(e,n,i)=>{n.type==="file"&&i.checksum?n[i.checksum]=VN(e,i.checksum):n.type==="symlink"&&(n.pointsAt=An.readlinkSync(e))},JN=(e,n)=>{let i=An.lstatSync,s,a=n||{};a.symlinks==="follow"&&(i=An.statSync);try{s=i(e)}catch(l){if(l.code==="ENOENT")return;throw l}let c=Wb(e,a,s);return ZN(e,c,a),c},e$=(e,n)=>new Promise((i,s)=>{let a=Ub.createHash(n),c=An.createReadStream(e);c.on("data",l=>{a.update(l)}),c.on("end",()=>{i(a.digest("hex"))}),c.on("error",s)}),t$=(e,n,i)=>n.type==="file"&&i.checksum?e$(e,i.checksum).then(s=>(n[i.checksum]=s,n)):n.type==="symlink"?An.readlink(e).then(s=>(n.pointsAt=s,n)):Promise.resolve(n),n$=(e,n)=>new Promise((i,s)=>{let a=An.lstat,c=n||{};c.symlinks==="follow"&&(a=An.stat),a(e).then(l=>{let f=Wb(e,c,l);t$(e,f,c).then(i,s)}).catch(l=>{l.code==="ENOENT"?i(void 0):s(l)})});Nr.supportedChecksumAlgorithms=Nf;Nr.symlinkOptions=$f;Nr.validateInput=QN;Nr.sync=JN;Nr.async=n$});var Ho=T(Bo=>{"use strict";var jb=it(),r$=We(),i$=(e,n)=>{let i=`${e}(path)`;r$.argument(i,"path",n,["string","undefined"])},s$=e=>{try{return jb.readdirSync(e)}catch(n){if(n.code==="ENOENT")return;throw n}},o$=e=>new Promise((n,i)=>{jb.readdir(e).then(s=>{n(s)}).catch(s=>{s.code==="ENOENT"?n(void 0):i(s)})});Bo.validateInput=i$;Bo.sync=s$;Bo.async=o$});var jo=T(Df=>{"use strict";var Go=N("fs"),Uo=N("path"),$i=$r(),UB=Ho(),Wo=e=>e.isDirectory()?"dir":e.isFile()?"file":e.isSymbolicLink()?"symlink":"other",a$=(e,n,i)=>{n.maxLevelsDeep===void 0&&(n.maxLevelsDeep=1/0);let s=n.inspectOptions!==void 0;n.symlinks&&(n.inspectOptions===void 0?n.inspectOptions={symlinks:n.symlinks}:n.inspectOptions.symlinks=n.symlinks);let a=(l,f)=>{Go.readdirSync(l,{withFileTypes:!0}).forEach(h=>{let m=typeof h=="string",_;m?_=Uo.join(l,h):_=Uo.join(l,h.name);let x;if(s)x=$i.sync(_,n.inspectOptions);else if(m){let b=$i.sync(_,n.inspectOptions);x={name:b.name,type:b.type}}else{let b=Wo(h);if(b==="symlink"&&n.symlinks==="follow"){let M=Go.statSync(_);x={name:h.name,type:Wo(M)}}else x={name:h.name,type:b}}x!==void 0&&(i(_,x),x.type==="dir"&&f{n.maxLevelsDeep===void 0&&(n.maxLevelsDeep=1/0);let a=n.inspectOptions!==void 0;n.symlinks&&(n.inspectOptions===void 0?n.inspectOptions={symlinks:n.symlinks}:n.inspectOptions.symlinks=n.symlinks);let c=[],l=0,f=()=>{if(c.length===0&&l===0)s();else if(c.length>0&&l{c.push(x),f()},m=()=>{l-=1,f()},_=(x,b)=>{let M=(A,$)=>{$.type==="dir"&&b{Go.readdir(x,{withFileTypes:!0},(A,$)=>{A?s(A):($.forEach(U=>{let H=typeof U=="string",X;if(H?X=Uo.join(x,U):X=Uo.join(x,U.name),a||H)h(()=>{$i.async(X,n.inspectOptions).then(z=>{z!==void 0&&(a?i(X,z):i(X,{name:z.name,type:z.type}),M(X,z)),m()}).catch(z=>{s(z)})});else{let z=Wo(U);if(z==="symlink"&&n.symlinks==="follow")h(()=>{Go.stat(X,(Q,D)=>{if(Q)s(Q);else{let Z={name:U.name,type:Wo(D)};i(X,Z),M(X,Z),m()}})});else{let Q={name:U.name,type:z};i(X,Q),M(X,Q)}}}),m())})})};$i.async(e,n.inspectOptions).then(x=>{x?(a?i(e,x):i(e,{name:x.name,type:x.type}),x.type==="dir"?_(e,1):s()):(i(e,void 0),s())}).catch(x=>{s(x)})};Df.sync=a$;Df.async=c$});var zb=T((jB,Kb)=>{var l$=typeof process=="object"&&process&&process.platform==="win32";Kb.exports=l$?{sep:"\\"}:{sep:"/"}});var Zb=T((KB,Vb)=>{"use strict";Vb.exports=Yb;function Yb(e,n,i){e instanceof RegExp&&(e=Xb(e,i)),n instanceof RegExp&&(n=Xb(n,i));var s=Qb(e,n,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+e.length,s[1]),post:i.slice(s[1]+n.length)}}function Xb(e,n){var i=n.match(e);return i?i[0]:null}Yb.range=Qb;function Qb(e,n,i){var s,a,c,l,f,h=i.indexOf(e),m=i.indexOf(n,h+1),_=h;if(h>=0&&m>0){if(e===n)return[h,m];for(s=[],c=i.length;_>=0&&!f;)_==h?(s.push(_),h=i.indexOf(e,_+1)):s.length==1?f=[s.pop(),m]:(a=s.pop(),a=0?h:m;s.length&&(f=[c,l])}return f}});var oS=T((zB,sS)=>{var Jb=Zb();sS.exports=h$;var eS="\0SLASH"+Math.random()+"\0",tS="\0OPEN"+Math.random()+"\0",Ff="\0CLOSE"+Math.random()+"\0",nS="\0COMMA"+Math.random()+"\0",rS="\0PERIOD"+Math.random()+"\0";function Mf(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function f$(e){return e.split("\\\\").join(eS).split("\\{").join(tS).split("\\}").join(Ff).split("\\,").join(nS).split("\\.").join(rS)}function p$(e){return e.split(eS).join("\\").split(tS).join("{").split(Ff).join("}").split(nS).join(",").split(rS).join(".")}function iS(e){if(!e)return[""];var n=[],i=Jb("{","}",e);if(!i)return e.split(",");var s=i.pre,a=i.body,c=i.post,l=s.split(",");l[l.length-1]+="{"+a+"}";var f=iS(c);return c.length&&(l[l.length-1]+=f.shift(),l.push.apply(l,f)),n.push.apply(n,l),n}function h$(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Di(f$(e),!0).map(p$)):[]}function d$(e){return"{"+e+"}"}function g$(e){return/^-?0\d/.test(e)}function m$(e,n){return e<=n}function y$(e,n){return e>=n}function Di(e,n){var i=[],s=Jb("{","}",e);if(!s)return[e];var a=s.pre,c=s.post.length?Di(s.post,!1):[""];if(/\$$/.test(s.pre))for(var l=0;l=0;if(!_&&!x)return s.post.match(/,.*\}/)?(e=s.pre+"{"+s.body+Ff+s.post,Di(e)):[e];var b;if(_)b=s.body.split(/\.\./);else if(b=iS(s.body),b.length===1&&(b=Di(b[0],!1).map(d$),b.length===1))return c.map(function(Te){return s.pre+b[0]+Te});var M;if(_){var A=Mf(b[0]),$=Mf(b[1]),U=Math.max(b[0].length,b[1].length),H=b.length==3?Math.abs(Mf(b[2])):1,X=m$,z=$0){var j=new Array(V+1).join("0");D<0?Z="-"+j+Z.slice(1):Z=j+Z}}M.push(Z)}}else{M=[];for(var ae=0;ae{var ht=Gf.exports=(e,n,i={})=>(zo(n),!i.nocomment&&n.charAt(0)==="#"?!1:new Dr(n,i).match(e));Gf.exports=ht;var Bf=zb();ht.sep=Bf.sep;var Nt=Symbol("globstar **");ht.GLOBSTAR=Nt;var _$=oS(),aS={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Hf="[^/]",qf=Hf+"*?",v$="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",b$="(?:(?!(?:\\/|^)\\.).)*?",lS=e=>e.split("").reduce((n,i)=>(n[i]=!0,n),{}),uS=lS("().*{}+?[]^$\\!"),S$=lS("[.("),cS=/\/+/;ht.filter=(e,n={})=>(i,s,a)=>ht(i,e,n);var Cn=(e,n={})=>{let i={};return Object.keys(e).forEach(s=>i[s]=e[s]),Object.keys(n).forEach(s=>i[s]=n[s]),i};ht.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return ht;let n=ht,i=(s,a,c)=>n(s,a,Cn(e,c));return i.Minimatch=class extends n.Minimatch{constructor(a,c){super(a,Cn(e,c))}},i.Minimatch.defaults=s=>n.defaults(Cn(e,s)).Minimatch,i.filter=(s,a)=>n.filter(s,Cn(e,a)),i.defaults=s=>n.defaults(Cn(e,s)),i.makeRe=(s,a)=>n.makeRe(s,Cn(e,a)),i.braceExpand=(s,a)=>n.braceExpand(s,Cn(e,a)),i.match=(s,a,c)=>n.match(s,a,Cn(e,c)),i};ht.braceExpand=(e,n)=>fS(e,n);var fS=(e,n={})=>(zo(e),n.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:_$(e)),w$=1024*64,zo=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>w$)throw new TypeError("pattern is too long")},Ko=Symbol("subparse");ht.makeRe=(e,n)=>new Dr(e,n||{}).makeRe();ht.match=(e,n,i={})=>{let s=new Dr(n,i);return e=e.filter(a=>s.match(a)),s.options.nonull&&!e.length&&e.push(n),e};var x$=e=>e.replace(/\\(.)/g,"$1"),E$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Dr=class{constructor(n,i){zo(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 s=this.globSet=this.braceExpand();i.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,s),s=this.globParts=s.map(a=>a.split(cS)),this.debug(this.pattern,s),s=s.map((a,c,l)=>a.map(this.parse,this)),this.debug(this.pattern,s),s=s.filter(a=>a.indexOf(!1)===-1),this.debug(this.pattern,s),this.set=s}parseNegate(){if(this.options.nonegate)return;let n=this.pattern,i=!1,s=0;for(let a=0;a>> no match, partial?`,n,x,i,b),x===f))}var A;if(typeof m=="string"?(A=_===m,this.debug("string match",m,_,A)):(A=_.match(m),this.debug("pattern match",m,_,A)),!A)return!1}if(c===f&&l===h)return!0;if(c===f)return s;if(l===h)return c===f-1&&n[c]==="";throw new Error("wtf?")}braceExpand(){return fS(this.pattern,this.options)}parse(n,i){zo(n);let s=this.options;if(n==="**")if(s.noglobstar)n="*";else return Nt;if(n==="")return"";let a="",c=!!s.nocase,l=!1,f=[],h=[],m,_=!1,x=-1,b=-1,M,A,$,U=n.charAt(0)==="."?"":s.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",H=()=>{if(m){switch(m){case"*":a+=qf,c=!0;break;case"?":a+=Hf,c=!0;break;default:a+="\\"+m;break}this.debug("clearStateChar %j %j",m,a),m=!1}};for(let Q=0,D;Q(j||(j="\\"),V+V+j+"|")),this.debug(`tail=%j + %s`,Q,Q,A,a);let D=A.type==="*"?qf:A.type==="?"?Hf:"\\"+A.type;c=!0,a=a.slice(0,A.reStart)+D+"\\("+Q}H(),l&&(a+="\\\\");let X=S$[a.charAt(0)];for(let Q=h.length-1;Q>-1;Q--){let D=h[Q],Z=a.slice(0,D.reStart),V=a.slice(D.reStart,D.reEnd-8),j=a.slice(D.reEnd),ae=a.slice(D.reEnd-8,D.reEnd)+j,Te=Z.split("(").length-1,L=j;for(let ye=0;ye(l=l.map(f=>typeof f=="string"?E$(f):f===Nt?Nt:f._src).reduce((f,h)=>(f[f.length-1]===Nt&&h===Nt||f.push(h),f),[]),l.forEach((f,h)=>{f!==Nt||l[h-1]===Nt||(h===0?l.length>1?l[h+1]="(?:\\/|"+s+"\\/)?"+l[h+1]:l[h]=s:h===l.length-1?l[h-1]+="(?:\\/|"+s+")?":(l[h-1]+="(?:\\/|\\/"+s+"\\/)"+l[h+1],l[h+1]=Nt))}),l.filter(f=>f!==Nt).join("/"))).join("|");c="^(?:"+c+")$",this.negate&&(c="^(?!"+c+").*$");try{this.regexp=new RegExp(c,a)}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 s=this.options;Bf.sep!=="/"&&(n=n.split(Bf.sep).join("/")),n=n.split(cS),this.debug(this.pattern,"split",n);let a=this.set;this.debug(this.pattern,"set",a);let c;for(let l=n.length-1;l>=0&&(c=n[l],!c);l--);for(let l=0;l{"use strict";var A$=pS().Minimatch,C$=(e,n)=>{let i=n.indexOf("/")!==-1,s=/^!?\//.test(n),a=/^!/.test(n),c;if(!s&&i){let l=n.replace(/^!/,"").replace(/^\.\//,"");return/\/$/.test(e)?c="":c="/",a?`!${e}${c}${l}`:`${e}${c}${l}`}return n};hS.create=(e,n,i)=>{let s;typeof n=="string"?s=[n]:s=n;let a=s.map(l=>C$(e,l)).map(l=>new A$(l,{matchBase:!0,nocomment:!0,nocase:i||!1,dot:!0,windowsPathsNoEscape:!0}));return l=>{let f="matching",h=!1,m,_;for(_=0;_{"use strict";var R$=N("path"),gS=jo(),mS=$r(),yS=Uf(),dS=We(),P$=(e,n,i)=>{let s=`${e}([path], options)`;dS.argument(s,"path",n,["string"]),dS.options(s,"options",i,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},_S=e=>{let n=e||{};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},vS=(e,n)=>e.map(i=>R$.relative(n,i)),bS=e=>{let n=new Error(`Path you want to find stuff in doesn't exist ${e}`);return n.code="ENOENT",n},SS=e=>{let n=new Error(`Path you want to find stuff in must be a directory ${e}`);return n.code="ENOTDIR",n},T$=(e,n)=>{let i=[],s=yS.create(e,n.matching,n.ignoreCase),a=1/0;return n.recursive===!1&&(a=1),gS.sync(e,{maxLevelsDeep:a,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(c,l)=>{l&&c!==e&&s(c)&&(l.type==="file"&&n.files===!0||l.type==="dir"&&n.directories===!0)&&(n.filter?n.filter(l)&&i.push(c):i.push(c))}),i.sort(),vS(i,n.cwd)},O$=(e,n)=>{let i=mS.sync(e,{symlinks:"follow"});if(i===void 0)throw bS(e);if(i.type!=="dir")throw SS(e);return T$(e,_S(n))},I$=(e,n)=>new Promise((i,s)=>{let a=[],c=yS.create(e,n.matching,n.ignoreCase),l=1/0;n.recursive===!1&&(l=1);let f=0,h=!1,m=()=>{h&&f===0&&(a.sort(),i(vS(a,n.cwd)))};gS.async(e,{maxLevelsDeep:l,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(_,x)=>{if(x&&_!==e&&c(_)&&(x.type==="file"&&n.files===!0||x.type==="dir"&&n.directories===!0))if(n.filter){let M=n.filter(x);typeof M.then=="function"?(f+=1,M.then($=>{$&&a.push(_),f-=1,m()}).catch($=>{s($)})):M&&a.push(_)}else a.push(_)},_=>{_?s(_):(h=!0,m())})}),L$=(e,n)=>mS.async(e,{symlinks:"follow"}).then(i=>{if(i===void 0)throw bS(e);if(i.type!=="dir")throw SS(e);return I$(e,_S(n))});Xo.validateInput=P$;Xo.sync=O$;Xo.async=L$});var AS=T(Vo=>{"use strict";var k$=N("crypto"),Qo=N("path"),Yo=$r(),ZB=Ho(),xS=We(),ES=jo(),N$=(e,n,i)=>{let s=`${e}(path, [options])`;if(xS.argument(s,"path",n,["string"]),xS.options(s,"options",i,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Yo.supportedChecksumAlgorithms.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${s} must have one of values: ${Yo.supportedChecksumAlgorithms.join(", ")}`);if(i&&i.symlinks!==void 0&&Yo.symlinkOptions.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${s} must have one of values: ${Yo.symlinkOptions.join(", ")}`)},$$=(e,n)=>e===void 0?".":e.relativePath+"/"+n.name,D$=(e,n)=>{let i=k$.createHash(n);return e.forEach(s=>{i.update(s.name+s[n])}),i.digest("hex")},Wf=(e,n,i)=>{i.relativePath&&(n.relativePath=$$(e,n)),n.type==="dir"&&(n.children.forEach(s=>{Wf(n,s,i)}),n.size=0,n.children.sort((s,a)=>s.type==="dir"&&a.type==="file"?-1:s.type==="file"&&a.type==="dir"?1:s.name.localeCompare(a.name)),n.children.forEach(s=>{n.size+=s.size||0}),i.checksum&&(n[i.checksum]=D$(n.children,i.checksum)))},jf=(e,n,i)=>{let s=n[0];if(n.length>1){let a=e.children.find(c=>c.name===s);return jf(a,n.slice(1),i)}return e},M$=(e,n)=>{let i=n||{},s;return ES.sync(e,{inspectOptions:i},(a,c)=>{if(c){c.type==="dir"&&(c.children=[]);let l=Qo.relative(e,a);l===""?s=c:jf(s,l.split(Qo.sep),c).children.push(c)}}),s&&Wf(void 0,s,i),s},F$=(e,n)=>{let i=n||{},s;return new Promise((a,c)=>{ES.async(e,{inspectOptions:i},(l,f)=>{if(f){f.type==="dir"&&(f.children=[]);let h=Qo.relative(e,l);h===""?s=f:jf(s,h.split(Qo.sep),f).children.push(f)}},l=>{l?c(l):(s&&Wf(void 0,s,i),a(s))})})};Vo.validateInput=N$;Vo.sync=M$;Vo.async=F$});var Jo=T(Zo=>{"use strict";var CS=it(),q$=We(),B$=(e,n)=>{let i=`${e}(path)`;q$.argument(i,"path",n,["string"])},H$=e=>{try{let n=CS.statSync(e);return n.isDirectory()?"dir":n.isFile()?"file":"other"}catch(n){if(n.code!=="ENOENT")throw n}return!1},G$=e=>new Promise((n,i)=>{CS.stat(e).then(s=>{s.isDirectory()?n("dir"):s.isFile()?n("file"):n("other")}).catch(s=>{s.code==="ENOENT"?n(!1):i(s)})});Zo.validateInput=B$;Zo.sync=H$;Zo.async=G$});var Yf=T(ra=>{"use strict";var Mi=N("path"),dt=it(),Xf=jn(),ea=Jo(),RS=$r(),U$=Ni(),W$=Uf(),PS=Oo(),TS=jo(),Kf=We(),j$=(e,n,i,s)=>{let a=`${e}(from, to, [options])`;Kf.argument(a,"from",n,["string"]),Kf.argument(a,"to",i,["string"]),Kf.options(a,"options",s,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},OS=(e,n)=>{let i=e||{},s={};return i.ignoreCase===void 0&&(i.ignoreCase=!1),s.overwrite=i.overwrite,i.matching?s.allowedToCopy=W$.create(n,i.matching,i.ignoreCase):s.allowedToCopy=()=>!0,s},IS=e=>{let n=new Error(`Path to copy doesn't exist ${e}`);return n.code="ENOENT",n},ta=e=>{let n=new Error(`Destination path already exists ${e}`);return n.code="EEXIST",n},na={mode:!0,symlinks:"report",times:!0,absolutePath:!0},LS=e=>typeof e.opts.overwrite!="function"&&e.opts.overwrite!==!0,K$=(e,n,i)=>{if(!ea.sync(e))throw IS(e);if(ea.sync(n)&&!i.overwrite)throw ta(n)},z$=e=>{if(typeof e.opts.overwrite=="function"){let n=RS.sync(e.destPath,na);return e.opts.overwrite(e.srcInspectData,n)}return e.opts.overwrite===!0},X$=(e,n,i,s)=>{let a=dt.readFileSync(e);try{dt.writeFileSync(n,a,{mode:i,flag:"wx"})}catch(c){if(c.code==="ENOENT")U$.sync(n,a,{mode:i});else if(c.code==="EEXIST"){if(z$(s))dt.writeFileSync(n,a,{mode:i});else if(LS(s))throw ta(s.destPath)}else throw c}},Y$=(e,n)=>{let i=dt.readlinkSync(e);try{dt.symlinkSync(i,n)}catch(s){if(s.code==="EEXIST")dt.unlinkSync(n),dt.symlinkSync(i,n);else throw s}},Q$=(e,n,i,s)=>{let a={srcPath:e,destPath:i,srcInspectData:n,opts:s},c=PS.normalizeFileMode(n.mode);n.type==="dir"?Xf.createSync(i,{mode:c}):n.type==="file"?X$(e,i,c,a):n.type==="symlink"&&Y$(e,i)},V$=(e,n,i)=>{let s=OS(i,e);K$(e,n,s),TS.sync(e,{inspectOptions:na},(a,c)=>{let l=Mi.relative(e,a),f=Mi.resolve(n,l);s.allowedToCopy(a,f,c)&&Q$(a,c,f,s)})},Z$=(e,n,i)=>ea.async(e).then(s=>{if(s)return ea.async(n);throw IS(e)}).then(s=>{if(s&&!i.overwrite)throw ta(n)}),J$=e=>new Promise((n,i)=>{typeof e.opts.overwrite=="function"?RS.async(e.destPath,na).then(s=>{n(e.opts.overwrite(e.srcInspectData,s))}).catch(i):n(e.opts.overwrite===!0)}),zf=(e,n,i,s,a)=>new Promise((c,l)=>{let f=a||{},h="wx";f.overwrite&&(h="w");let m=dt.createReadStream(e),_=dt.createWriteStream(n,{mode:i,flags:h});m.on("error",l),_.on("error",x=>{m.resume(),x.code==="ENOENT"?Xf.createAsync(Mi.dirname(n)).then(()=>{zf(e,n,i,s).then(c,l)}).catch(l):x.code==="EEXIST"?J$(s).then(b=>{b?zf(e,n,i,s,{overwrite:!0}).then(c,l):LS(s)?l(ta(n)):c()}).catch(l):l(x)}),_.on("finish",c),m.pipe(_)}),eD=(e,n)=>dt.readlink(e).then(i=>new Promise((s,a)=>{dt.symlink(i,n).then(s).catch(c=>{c.code==="EEXIST"?dt.unlink(n).then(()=>dt.symlink(i,n)).then(s,a):a(c)})})),tD=(e,n,i,s)=>{let a={srcPath:e,destPath:i,srcInspectData:n,opts:s},c=PS.normalizeFileMode(n.mode);return n.type==="dir"?Xf.createAsync(i,{mode:c}):n.type==="file"?zf(e,i,c,a):n.type==="symlink"?eD(e,i):Promise.resolve()},nD=(e,n,i)=>new Promise((s,a)=>{let c=OS(i,e);Z$(e,n,c).then(()=>{let l=!1,f=0;TS.async(e,{inspectOptions:na},(h,m)=>{if(m){let _=Mi.relative(e,h),x=Mi.resolve(n,_);c.allowedToCopy(h,m,x)&&(f+=1,tD(h,m,x,c).then(()=>{f-=1,l&&f===0&&s()}).catch(a))}},h=>{h?a(h):(l=!0,l&&f===0&&s())})}).catch(a)});ra.validateInput=j$;ra.sync=V$;ra.async=nD});var Vf=T(sa=>{"use strict";var kS=N("path"),Mr=it(),Qf=We(),NS=Yf(),$S=jn(),Fi=Jo(),ia=Lo(),rD=(e,n,i,s)=>{let a=`${e}(from, to, [options])`;Qf.argument(a,"from",n,["string"]),Qf.argument(a,"to",i,["string"]),Qf.options(a,"options",s,{overwrite:["boolean"]})},DS=e=>e||{},MS=e=>{let n=new Error(`Destination path already exists ${e}`);return n.code="EEXIST",n},FS=e=>{let n=new Error(`Path to move doesn't exist ${e}`);return n.code="ENOENT",n},iD=(e,n,i)=>{let s=DS(i);if(Fi.sync(n)!==!1&&s.overwrite!==!0)throw MS(n);try{Mr.renameSync(e,n)}catch(a){if(a.code==="EISDIR"||a.code==="EPERM")ia.sync(n),Mr.renameSync(e,n);else if(a.code==="EXDEV")NS.sync(e,n,{overwrite:!0}),ia.sync(e);else if(a.code==="ENOENT"){if(!Fi.sync(e))throw FS(e);$S.createSync(kS.dirname(n)),Mr.renameSync(e,n)}else throw a}},sD=e=>new Promise((n,i)=>{let s=kS.dirname(e);Fi.async(s).then(a=>{a?i():$S.createAsync(s).then(n,i)}).catch(i)}),oD=(e,n,i)=>{let s=DS(i);return new Promise((a,c)=>{Fi.async(n).then(l=>{l!==!1&&s.overwrite!==!0?c(MS(n)):Mr.rename(e,n).then(a).catch(f=>{f.code==="EISDIR"||f.code==="EPERM"?ia.async(n).then(()=>Mr.rename(e,n)).then(a,c):f.code==="EXDEV"?NS.async(e,n,{overwrite:!0}).then(()=>ia.async(e)).then(a,c):f.code==="ENOENT"?Fi.async(e).then(h=>{h?sD(n).then(()=>Mr.rename(e,n)).then(a,c):c(FS(e))}).catch(c):c(f)})})})};sa.validateInput=rD;sa.sync=iD;sa.async=oD});var WS=T(oa=>{"use strict";var HS=it(),qS=We(),BS=["utf8","buffer","json","jsonWithDates"],aD=(e,n,i)=>{let s=`${e}(path, returnAs)`;if(qS.argument(s,"path",n,["string"]),qS.argument(s,"returnAs",i,["string","undefined"]),i&&BS.indexOf(i)===-1)throw new Error(`Argument "returnAs" passed to ${s} must have one of values: ${BS.join(", ")}`)},GS=(e,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,US=(e,n)=>{let i=new Error(`JSON parsing failed while reading ${e} [${n}]`);return i.originalError=n,i},uD=(e,n)=>{let i=n||"utf8",s,a="utf8";i==="buffer"&&(a=null);try{s=HS.readFileSync(e,{encoding:a})}catch(c){if(c.code==="ENOENT")return;throw c}try{i==="json"?s=JSON.parse(s):i==="jsonWithDates"&&(s=JSON.parse(s,GS))}catch(c){throw US(e,c)}return s},cD=(e,n)=>new Promise((i,s)=>{let a=n||"utf8",c="utf8";a==="buffer"&&(c=null),HS.readFile(e,{encoding:c}).then(l=>{try{i(a==="json"?JSON.parse(l):a==="jsonWithDates"?JSON.parse(l,GS):l)}catch(f){s(US(e,f))}}).catch(l=>{l.code==="ENOENT"?i(void 0):s(l)})});oa.validateInput=aD;oa.sync=uD;oa.async=cD});var KS=T(aa=>{"use strict";var qi=N("path"),jS=Vf(),Zf=We(),lD=(e,n,i,s)=>{let a=`${e}(path, newName, [options])`;if(Zf.argument(a,"path",n,["string"]),Zf.argument(a,"newName",i,["string"]),Zf.options(a,"options",s,{overwrite:["boolean"]}),qi.basename(i)!==i)throw new Error(`Argument "newName" passed to ${a} should be a filename, not a path. Received "${i}"`)},fD=(e,n,i)=>{let s=qi.join(qi.dirname(e),n);jS.sync(e,s,i)},pD=(e,n,i)=>{let s=qi.join(qi.dirname(e),n);return jS.async(e,s,i)};aa.validateInput=lD;aa.sync=fD;aa.async=pD});var QS=T(ca=>{"use strict";var XS=N("path"),ua=it(),zS=We(),YS=jn(),hD=(e,n,i)=>{let s=`${e}(symlinkValue, path)`;zS.argument(s,"symlinkValue",n,["string"]),zS.argument(s,"path",i,["string"])},dD=(e,n)=>{try{ua.symlinkSync(e,n)}catch(i){if(i.code==="ENOENT")YS.createSync(XS.dirname(n)),ua.symlinkSync(e,n);else throw i}},gD=(e,n)=>new Promise((i,s)=>{ua.symlink(e,n).then(i).catch(a=>{a.code==="ENOENT"?YS.createAsync(XS.dirname(n)).then(()=>ua.symlink(e,n)).then(i,s):s(a)})});ca.validateInput=hD;ca.sync=dD;ca.async=gD});var ZS=T(Jf=>{"use strict";var VS=N("fs");Jf.createWriteStream=VS.createWriteStream;Jf.createReadStream=VS.createReadStream});var iw=T(la=>{"use strict";var ep=N("path"),mD=N("os"),JS=N("crypto"),ew=jn(),tw=it(),yD=We(),_D=(e,n)=>{let i=`${e}([options])`;yD.options(i,"options",n,{prefix:["string"],basePath:["string"]})},nw=(e,n)=>{e=e||{};let i={};return typeof e.prefix!="string"?i.prefix="":i.prefix=e.prefix,typeof e.basePath=="string"?i.basePath=ep.resolve(n,e.basePath):i.basePath=mD.tmpdir(),i},rw=32,vD=(e,n)=>{let i=nw(n,e),s=JS.randomBytes(rw/2).toString("hex"),a=ep.join(i.basePath,i.prefix+s);try{tw.mkdirSync(a)}catch(c){if(c.code==="ENOENT")ew.sync(a);else throw c}return a},bD=(e,n)=>new Promise((i,s)=>{let a=nw(n,e);JS.randomBytes(rw/2,(c,l)=>{if(c)s(c);else{let f=l.toString("hex"),h=ep.join(a.basePath,a.prefix+f);tw.mkdir(h,m=>{m?m.code==="ENOENT"?ew.async(h).then(()=>{i(h)},s):s(m):i(h)})}})});la.validateInput=_D;la.sync=vD;la.async=bD});var cw=T((uH,uw)=>{"use strict";var sw=N("util"),tp=N("path"),fa=Mb(),pa=jn(),ha=Hb(),da=wS(),ga=$r(),ma=AS(),ya=Yf(),_a=Jo(),va=Ho(),ba=Vf(),Sa=WS(),wa=Lo(),xa=KS(),Ea=QS(),ow=ZS(),Aa=iw(),Ca=Ni(),aw=e=>{let n=()=>e||process.cwd(),i=function(){if(arguments.length===0)return n();let f=Array.prototype.slice.call(arguments),h=[n()].concat(f);return aw(tp.resolve.apply(null,h))},s=f=>tp.resolve(n(),f),a=function(){return Array.prototype.unshift.call(arguments,n()),tp.resolve.apply(null,arguments)},c=f=>{let h=f||{};return h.cwd=n(),h},l={cwd:i,path:a,append:(f,h,m)=>{fa.validateInput("append",f,h,m),fa.sync(s(f),h,m)},appendAsync:(f,h,m)=>(fa.validateInput("appendAsync",f,h,m),fa.async(s(f),h,m)),copy:(f,h,m)=>{ya.validateInput("copy",f,h,m),ya.sync(s(f),s(h),m)},copyAsync:(f,h,m)=>(ya.validateInput("copyAsync",f,h,m),ya.async(s(f),s(h),m)),createWriteStream:(f,h)=>ow.createWriteStream(s(f),h),createReadStream:(f,h)=>ow.createReadStream(s(f),h),dir:(f,h)=>{pa.validateInput("dir",f,h);let m=s(f);return pa.sync(m,h),i(m)},dirAsync:(f,h)=>(pa.validateInput("dirAsync",f,h),new Promise((m,_)=>{let x=s(f);pa.async(x,h).then(()=>{m(i(x))},_)})),exists:f=>(_a.validateInput("exists",f),_a.sync(s(f))),existsAsync:f=>(_a.validateInput("existsAsync",f),_a.async(s(f))),file:(f,h)=>(ha.validateInput("file",f,h),ha.sync(s(f),h),l),fileAsync:(f,h)=>(ha.validateInput("fileAsync",f,h),new Promise((m,_)=>{ha.async(s(f),h).then(()=>{m(l)},_)})),find:(f,h)=>(typeof h>"u"&&typeof f=="object"&&(h=f,f="."),da.validateInput("find",f,h),da.sync(s(f),c(h))),findAsync:(f,h)=>(typeof h>"u"&&typeof f=="object"&&(h=f,f="."),da.validateInput("findAsync",f,h),da.async(s(f),c(h))),inspect:(f,h)=>(ga.validateInput("inspect",f,h),ga.sync(s(f),h)),inspectAsync:(f,h)=>(ga.validateInput("inspectAsync",f,h),ga.async(s(f),h)),inspectTree:(f,h)=>(ma.validateInput("inspectTree",f,h),ma.sync(s(f),h)),inspectTreeAsync:(f,h)=>(ma.validateInput("inspectTreeAsync",f,h),ma.async(s(f),h)),list:f=>(va.validateInput("list",f),va.sync(s(f||"."))),listAsync:f=>(va.validateInput("listAsync",f),va.async(s(f||"."))),move:(f,h,m)=>{ba.validateInput("move",f,h,m),ba.sync(s(f),s(h),m)},moveAsync:(f,h,m)=>(ba.validateInput("moveAsync",f,h,m),ba.async(s(f),s(h),m)),read:(f,h)=>(Sa.validateInput("read",f,h),Sa.sync(s(f),h)),readAsync:(f,h)=>(Sa.validateInput("readAsync",f,h),Sa.async(s(f),h)),remove:f=>{wa.validateInput("remove",f),wa.sync(s(f||"."))},removeAsync:f=>(wa.validateInput("removeAsync",f),wa.async(s(f||"."))),rename:(f,h,m)=>{xa.validateInput("rename",f,h,m),xa.sync(s(f),h,m)},renameAsync:(f,h,m)=>(xa.validateInput("renameAsync",f,h,m),xa.async(s(f),h,m)),symlink:(f,h)=>{Ea.validateInput("symlink",f,h),Ea.sync(f,s(h))},symlinkAsync:(f,h)=>(Ea.validateInput("symlinkAsync",f,h),Ea.async(f,s(h))),tmpDir:f=>{Aa.validateInput("tmpDir",f);let h=Aa.sync(n(),f);return i(h)},tmpDirAsync:f=>(Aa.validateInput("tmpDirAsync",f),new Promise((h,m)=>{Aa.async(n(),f).then(_=>{h(i(_))},m)})),write:(f,h,m)=>{Ca.validateInput("write",f,h,m),Ca.sync(s(f),h,m)},writeAsync:(f,h,m)=>(Ca.validateInput("writeAsync",f,h,m),Ca.async(s(f),h,m))};return sw.inspect.custom!==void 0&&(l[sw.inspect.custom]=()=>`[fs-jetpack CWD: ${n()}]`),l};uw.exports=aw});var Bi=T((cH,lw)=>{"use strict";var SD=cw();lw.exports=SD()});var ED={};$d(ED,{default:()=>xD});var Gi={};$d(Gi,{Browserslist:()=>lr,BrowserslistUpdate:()=>Kn,Bud:()=>Hi,Build:()=>Fr,Clean:()=>qr,Contributors:()=>Hr,Dev:()=>Gr,Docs:()=>Ur,DocsDev:()=>Wr,Docusaurus:()=>fr,Eslint:()=>pr,Lint:()=>jr,Netlify:()=>hr,PackageCheck:()=>wr,Pm2:()=>Er,Prettier:()=>Ar,RegistryClean:()=>Kr,RegistryStart:()=>zr,RegistryStop:()=>Xr,Release:()=>Yr,Syncpack:()=>Cr,TestRun:()=>Qr,Tsc:()=>Rr,Version:()=>Vr,Vitest:()=>Pr,YarnPluginBuild:()=>Br});var Fd=N("clipanion");var Md=N("@yarnpkg/cli"),Y=class extends Md.BaseCommand{constructor(){super();this.result=0;this.promised=[]}async throwIfError(i){if(i!==0)throw new Error("command failed")}};var lr=class extends Y{constructor(){super(...arguments);this.passthrough=Fd.Option.Proxy({name:"browserslist options"})}async execute(){return await this.cli.run(["browserslist",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};lr.paths=[["@bud","browserslist"]],lr.usage={category:"@bud",description:"run browserslist",examples:[["browserslist usage info","yarn @bud browserslist --help"]]};var qd=N("clipanion");var fr=class extends Y{constructor(){super(...arguments);this.passthrough=qd.Option.Proxy({name:"docusaurus options"})}async execute(){return await this.cli.run(["workspace","@repo/docs","docusaurus",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};fr.paths=[["@bud","docusaurus"]],fr.usage={category:"@bud",description:"run docusaurus",examples:[["docusaurus usage info","yarn @bud docusaurus --help"]]};var Ud=N("module"),Wd=N("path"),jd=N("url"),_i={},Kd=(_i?.url&&typeof _i.url<"u"?(0,jd.fileURLToPath)(_i.url):__dirname).split("sources/").shift(),K=(...e)=>(0,Wd.join)(Kd,...e),ND=K("package.json"),$D=K("storage"),DD=K("config","tsconfig.json");var MD={config:K("config"),fixtures:K("storage","fixtures"),root:Kd,sources:K("sources"),storage:K("storage"),tests:K("tests")},Gd;typeof _i?.url<"u"?Gd=(0,Ud.createRequire)(_i.url)("../../../config/monorepo.config.cjs"):Gd=Hd();var zd=N("clipanion");var pr=class extends Y{constructor(){super(...arguments);this.passthrough=zd.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",K("node_modules",".bin","eslint"),K("examples/**/*.{ts,tsx,js,jsx}"),K("sources/**/src/**/*.{ts,tsx,js,jsx}"),K("tests/**/*.{ts,tsx,js,jsx}"),K("config/**/*.{ts,tsx,js,jsx}"),"--config",K("config/eslint.config.cjs"),"--no-error-on-unmatched-pattern",...this.passthrough]).then(this.throwIfError).catch(this.catch)}};pr.paths=[["@bud","eslint"]],pr.usage={category:"@bud",description:"Eslint passthrough",examples:[["eslint usage info","yarn @bud eslint --help"]]};var Qu=N("clipanion");var hr=class extends Y{constructor(){super(...arguments);this.dir=Qu.Option.String("--dir",K("sources","@repo","docs","build"),{description:"directory to deploy"});this.passthrough=Qu.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"]]};var b_=N("clipanion");var a_=me(N("fs"),1),u_=me(N("path"),1),c_=me(Vu(),1),Ci=me($l(),1),Ai=me(By(),1);var Jy=me(N("process"),1),Wl=me(N("fs"),1),Gn=me(N("path"),1),jl=me($l(),1),e_=me(Qy(),1);function Sr(e){let n=/^\\\\\?\\/.test(e),i=/[^\u0000-\u0080]+/.test(e);return n||i?e:e.replace(/\\/g,"/")}var Vy=N("url"),Zy=N("stream"),Ei=e=>e instanceof URL?(0,Vy.fileURLToPath)(e):e,co=class extends Zy.Transform{constructor(n){super({objectMode:!0,transform(i,s,a){a(void 0,n(i)?i:void 0)}})}},lo=e=>e[0]==="!";var t_={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},n_="**/.gitignore",PL=(e,n)=>lo(e)?"!"+Gn.default.posix.join(n,e.slice(1)):Gn.default.posix.join(n,e),TL=(e,n)=>{let i=Sr(Gn.default.relative(n,Gn.default.dirname(e.filePath)));return e.content.split(/\r?\n/).filter(s=>s&&!s.startsWith("#")).map(s=>PL(s,i))},OL=(e,n)=>{if(n=Sr(n),Gn.default.isAbsolute(e)){if(Sr(e).startsWith(n))return Gn.default.relative(n,e);throw new Error(`Path ${e} is not in cwd ${n}`)}return e},r_=(e,n)=>{let i=e.flatMap(a=>TL(a,n)),s=(0,e_.default)().add(i);return a=>(a=Ei(a),a=OL(a,n),a?s.ignores(Sr(a)):!1)},i_=(e={})=>({cwd:Ei(e.cwd)||Jy.default.cwd(),suppressErrors:Boolean(e.suppressErrors),deep:typeof e.deep=="number"?e.deep:Number.POSITIVE_INFINITY}),s_=async(e,n)=>{let{cwd:i,suppressErrors:s,deep:a}=i_(n),c=await(0,jl.default)(e,{cwd:i,suppressErrors:s,deep:a,...t_}),l=await Promise.all(c.map(async f=>({filePath:f,content:await Wl.default.promises.readFile(f,"utf8")})));return r_(l,i)},o_=(e,n)=>{let{cwd:i,suppressErrors:s,deep:a}=i_(n),l=jl.default.sync(e,{cwd:i,suppressErrors:s,deep:a,...t_}).map(f=>({filePath:f,content:Wl.default.readFileSync(f,"utf8")}));return r_(l,i)};var IL=e=>{if(e.some(n=>typeof n!="string"))throw new TypeError("Patterns must be a string or an array of strings")},Kl=e=>(e=[...new Set([e].flat())],IL(e),e),LL=e=>{if(!e.cwd)return;let n;try{n=a_.default.statSync(e.cwd)}catch{return}if(!n.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},l_=(e={})=>(e={...e,ignore:e.ignore||[],expandDirectories:e.expandDirectories===void 0?!0:e.expandDirectories,cwd:Ei(e.cwd)},LL(e),e),f_=e=>async(n,i)=>e(Kl(n),l_(i)),fo=e=>(n,i)=>e(Kl(n),l_(i)),p_=e=>{let{ignoreFiles:n,gitignore:i}=e,s=n?Kl(n):[];return i&&s.push(n_),s},kL=async e=>{let n=p_(e);return d_(n.length>0&&await s_(n,e))},h_=e=>{let n=p_(e);return d_(n.length>0&&o_(n,e))},d_=e=>{let n=new Set;return i=>{let s=i.path||i,a=u_.default.normalize(s),c=n.has(a)||e&&e(s);return n.add(a),!c}},g_=(e,n)=>e.flat().filter(i=>n(i)),NL=(e,n)=>(0,c_.default)(e).pipe(new co(i=>n(i))),m_=(e,n)=>{let i=[];for(;e.length>0;){let s=e.findIndex(c=>lo(c));if(s===-1){i.push({patterns:e,options:n});break}let a=e[s].slice(1);for(let c of i)c.options.ignore.push(a);s!==0&&i.push({patterns:e.slice(0,s),options:{...n,ignore:[...n.ignore,a]}}),e=e.slice(s+1)}return i},y_=(e,n)=>({...n?{cwd:n}:{},...Array.isArray(e)?{files:e}:e}),__=async(e,n)=>{let i=m_(e,n),{cwd:s,expandDirectories:a}=n;if(!a)return i;let c=y_(a,s),l=s?{cwd:s}:void 0;return Promise.all(i.map(async f=>{let{patterns:h,options:m}=f;return[h,m.ignore]=await Promise.all([(0,Ai.default)(h,c),(0,Ai.default)(m.ignore,l)]),{patterns:h,options:m}}))},zl=(e,n)=>{let i=m_(e,n),{cwd:s,expandDirectories:a}=n;if(!a)return i;let c=y_(a,s),l=s?{cwd:s}:void 0;return i.map(f=>{let{patterns:h,options:m}=f;return h=Ai.default.sync(h,c),m.ignore=Ai.default.sync(m.ignore,l),{patterns:h,options:m}})},v_=f_(async(e,n)=>{let[i,s]=await Promise.all([__(e,n),kL(n)]),a=await Promise.all(i.map(c=>(0,Ci.default)(c.patterns,c.options)));return g_(a,s)}),EF=fo((e,n)=>{let i=zl(e,n),s=h_(n),a=i.map(c=>Ci.default.sync(c.patterns,c.options));return g_(a,s)}),AF=fo((e,n)=>{let i=zl(e,n),s=h_(n),a=i.map(c=>Ci.default.stream(c.patterns,c.options));return NL(a,s)}),CF=fo((e,n)=>e.some(i=>Ci.default.isDynamicPattern(i,n))),RF=f_(__),PF=fo(zl);var wr=class extends Y{constructor(){super(...arguments);this.passthrough=b_.Option.Proxy({name:"pm2 options"})}async execute(){await v_(["sources/@roots/*"],{onlyDirectories:!0}).then(async i=>await Promise.all([...i,"sources/create-bud-app"].flatMap(async s=>await this.cli.run(["node",K("node_modules",".bin","package-check"),"--cwd",s]).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"]]};var S_=N("clipanion"),w_=me(Un());var Er=class extends Y{constructor(){super(...arguments);this.passthrough=S_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",K("node_modules",".bin","pm2"),...this.passthrough]).catch(w_.noop)}};Er.paths=[["@bud","pm2"]],Er.usage={category:"@bud",description:"registry access",examples:[["pm2 usage info","yarn @bud pm2 --info"]]};var x_=N("clipanion");var Ar=class extends Y{constructor(){super(...arguments);this.passthrough=x_.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",K("node_modules/.bin/prettier"),K("sources/@roots/*/src/**/*"),`--config=${K("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"]]};var E_=N("clipanion");var Cr=class extends Y{constructor(){super(...arguments);this.passthrough=E_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",K("node_modules",".bin","syncpack"),"list-mismatches","--config",K("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"]]};var A_=N("clipanion");var Rr=class extends Y{constructor(){super(...arguments);this.passthrough=A_.Option.Proxy({name:"tsc options"})}async execute(){return await this.cli.run(["node",K("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"]]};var C_=N("clipanion");var Pr=class extends Y{constructor(){super(...arguments);this.passthrough=C_.Option.Proxy({name:"vitest options"})}async execute(){return await this.cli.run(["node",K("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 pb=N("buffer"),hb=me(N("path"),1),Ro=me(N("child_process"),1),Ii=me(N("process"),1),db=me(dv(),1);function rf(e){let n=typeof e=="string"?` +`:` +`.charCodeAt(),i=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===n&&(e=e.slice(0,-1)),e[e.length-1]===i&&(e=e.slice(0,-1)),e}var Pi=me(N("process"),1),Ir=me(N("path"),1),gv=me(N("url"),1);function ho(e={}){let{env:n=process.env,platform:i=process.platform}=e;return i!=="win32"?"PATH":Object.keys(n).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"}function ak(e={}){let{cwd:n=Pi.default.cwd(),path:i=Pi.default.env[ho()],execPath:s=Pi.default.execPath}=e,a,c=n instanceof URL?gv.default.fileURLToPath(n):n,l=Ir.default.resolve(c),f=[];for(;a!==l;)f.push(Ir.default.join(l,"node_modules/.bin")),a=l,l=Ir.default.resolve(l,"..");return f.push(Ir.default.resolve(c,s,"..")),[...f,i].join(Ir.default.delimiter)}function mv({env:e=Pi.default.env,...n}={}){e={...e};let i=ho({env:e});return n.path=e[i],e[i]=ak(n),e}var uk=(e,n,i,s)=>{if(i==="length"||i==="prototype"||i==="arguments"||i==="caller")return;let a=Object.getOwnPropertyDescriptor(e,i),c=Object.getOwnPropertyDescriptor(n,i);!ck(a,c)&&s||Object.defineProperty(e,i,c)},ck=function(e,n){return e===void 0||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},lk=(e,n)=>{let i=Object.getPrototypeOf(n);i!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,i)},fk=(e,n)=>`/* Wrapped ${e}*/ +${n}`,pk=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),hk=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),dk=(e,n,i)=>{let s=i===""?"":`with ${i.trim()}() `,a=fk.bind(null,s,n.toString());Object.defineProperty(a,"name",hk),Object.defineProperty(e,"toString",{...pk,value:a})};function sf(e,n,{ignoreNonConfigurable:i=!1}={}){let{name:s}=e;for(let a of Reflect.ownKeys(n))uk(e,n,a,i);return lk(e,n),dk(e,n,s),e}var go=new WeakMap,yv=(e,n={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let i,s=0,a=e.displayName||e.name||"",c=function(...l){if(go.set(c,++s),s===1)i=e.apply(this,l),e=null;else if(n.throw===!0)throw new Error(`Function \`${a}\` can only be called once`);return i};return sf(c,e),go.set(c,s),c};yv.callCount=e=>{if(!go.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return go.get(e)};var _v=yv;var Cv=me(N("process"),1);var Ev=N("os");var vv=()=>{let e=Sv-bv+1;return Array.from({length:e},gk)},gk=(e,n)=>({name:`SIGRT${n+1}`,number:bv+n,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),bv=34,Sv=64;var xv=N("os");var wv=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var of=()=>{let e=vv();return[...wv,...e].map(mk)},mk=({name:e,number:n,description:i,action:s,forced:a=!1,standard:c})=>{let{signals:{[e]:l}}=xv.constants,f=l!==void 0;return{name:e,number:f?l:n,description:i,supported:f,action:s,forced:a,standard:c}};var yk=()=>{let e=of();return Object.fromEntries(e.map(_k))},_k=({name:e,number:n,description:i,supported:s,action:a,forced:c,standard:l})=>[e,{name:e,number:n,description:i,supported:s,action:a,forced:c,standard:l}],Av=yk(),vk=()=>{let e=of(),n=64+1,i=Array.from({length:n},(s,a)=>bk(a,e));return Object.assign({},...i)},bk=(e,n)=>{let i=Sk(e,n);if(i===void 0)return{};let{name:s,description:a,supported:c,action:l,forced:f,standard:h}=i;return{[e]:{name:s,number:e,description:a,supported:c,action:l,forced:f,standard:h}}},Sk=(e,n)=>{let i=n.find(({name:s})=>Ev.constants.signals[s]===e);return i!==void 0?i:n.find(s=>s.number===e)},Tq=vk();var wk=({timedOut:e,timeout:n,errorCode:i,signal:s,signalDescription:a,exitCode:c,isCanceled:l})=>e?`timed out after ${n} milliseconds`:l?"was canceled":i!==void 0?`failed with ${i}`:s!==void 0?`was killed with ${s} (${a})`:c!==void 0?`failed with exit code ${c}`:"failed",Ti=({stdout:e,stderr:n,all:i,error:s,signal:a,exitCode:c,command:l,escapedCommand:f,timedOut:h,isCanceled:m,killed:_,parsed:{options:{timeout:x,cwd:b=Cv.default.cwd()}}})=>{c=c===null?void 0:c,a=a===null?void 0:a;let M=a===void 0?void 0:Av[a].description,A=s&&s.code,U=`Command ${wk({timedOut:h,timeout:x,errorCode:A,signal:a,signalDescription:M,exitCode:c,isCanceled:m})}: ${l}`,H=Object.prototype.toString.call(s)==="[object Error]",X=H?`${U} +${s.message}`:U,z=[X,n,e].filter(Boolean).join(` +`);return H?(s.originalMessage=s.message,s.message=z):s=new Error(z),s.shortMessage=X,s.command=l,s.escapedCommand=f,s.exitCode=c,s.signal=a,s.signalDescription=M,s.stdout=e,s.stderr=n,s.cwd=b,i!==void 0&&(s.all=i),"bufferedData"in s&&delete s.bufferedData,s.failed=!0,s.timedOut=Boolean(h),s.isCanceled=m,s.killed=_&&!h,s};var mo=["stdin","stdout","stderr"],xk=e=>mo.some(n=>e[n]!==void 0),Rv=e=>{if(!e)return;let{stdio:n}=e;if(n===void 0)return mo.map(s=>e[s]);if(xk(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${mo.map(s=>`\`${s}\``).join(", ")}`);if(typeof n=="string")return n;if(!Array.isArray(n))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof n}\``);let i=Math.max(n.length,mo.length);return Array.from({length:i},(s,a)=>n[a])};var Tv=me(N("os"),1);var Wn=[];Wn.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Wn.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Wn.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var yo=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",af=Symbol.for("signal-exit emitter"),uf=globalThis,Ek=Object.defineProperty.bind(Object),cf=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(uf[af])return uf[af];Ek(uf,af,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(n,i){this.listeners[n].push(i)}removeListener(n,i){let s=this.listeners[n],a=s.indexOf(i);a!==-1&&(a===0&&s.length===1?s.length=0:s.splice(a,1))}emit(n,i,s){if(this.emitted[n])return!1;this.emitted[n]=!0;let a=!1;for(let c of this.listeners[n])a=c(i,s)===!0||a;return n==="exit"&&(a=this.emit("afterExit",i,s)||a),a}},_o=class{},Ak=e=>({onExit(n,i){return e.onExit(n,i)},load(){return e.load()},unload(){return e.unload()}}),lf=class extends _o{onExit(){return()=>{}}load(){}unload(){}},ff=class extends _o{#o=pf.platform==="win32"?"SIGINT":"SIGHUP";#t=new cf;#e;#i;#s;#r={};#n=!1;constructor(n){super(),this.#e=n,this.#r={};for(let i of Wn)this.#r[i]=()=>{let s=this.#e.listeners(i),{count:a}=this.#t,c=n;if(typeof c.__signal_exit_emitter__=="object"&&typeof c.__signal_exit_emitter__.count=="number"&&(a+=c.__signal_exit_emitter__.count),s.length===a){this.unload();let l=this.#t.emit("exit",null,i),f=i==="SIGHUP"?this.#o:i;l||n.kill(n.pid,f)}};this.#s=n.reallyExit,this.#i=n.emit}onExit(n,i){if(!yo(this.#e))return()=>{};this.#n===!1&&this.load();let s=i?.alwaysLast?"afterExit":"exit";return this.#t.on(s,n),()=>{this.#t.removeListener(s,n),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#n){this.#n=!0,this.#t.count+=1;for(let n of Wn)try{let i=this.#r[n];i&&this.#e.on(n,i)}catch{}this.#e.emit=(n,...i)=>this.#u(n,...i),this.#e.reallyExit=n=>this.#a(n)}}unload(){!this.#n||(this.#n=!1,Wn.forEach(n=>{let i=this.#r[n];if(!i)throw new Error("Listener not defined for signal: "+n);try{this.#e.removeListener(n,i)}catch{}}),this.#e.emit=this.#i,this.#e.reallyExit=this.#s,this.#t.count-=1)}#a(n){return yo(this.#e)?(this.#e.exitCode=n||0,this.#t.emit("exit",this.#e.exitCode,null),this.#s.call(this.#e,this.#e.exitCode)):0}#u(n,...i){let s=this.#i;if(n==="exit"&&yo(this.#e)){typeof i[0]=="number"&&(this.#e.exitCode=i[0]);let a=s.call(this.#e,n,...i);return this.#t.emit("exit",this.#e.exitCode,null),a}else return s.call(this.#e,n,...i)}},pf=globalThis.process,{onExit:Pv,load:Dq,unload:Mq}=Ak(yo(pf)?new ff(pf):new lf);var Ck=1e3*5,Ov=(e,n="SIGTERM",i={})=>{let s=e(n);return Rk(e,n,i,s),s},Rk=(e,n,i,s)=>{if(!Pk(n,i,s))return;let a=Ok(i),c=setTimeout(()=>{e("SIGKILL")},a);c.unref&&c.unref()},Pk=(e,{forceKillAfterTimeout:n},i)=>Tk(e)&&n!==!1&&i,Tk=e=>e===Tv.default.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",Ok=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return Ck;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Iv=(e,n)=>{e.kill()&&(n.isCanceled=!0)},Ik=(e,n,i)=>{e.kill(n),i(Object.assign(new Error("Timed out"),{timedOut:!0,signal:n}))},Lv=(e,{timeout:n,killSignal:i="SIGTERM"},s)=>{if(n===0||n===void 0)return s;let a,c=new Promise((f,h)=>{a=setTimeout(()=>{Ik(e,i,h)},n)}),l=s.finally(()=>{clearTimeout(a)});return Promise.race([c,l])},kv=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Nv=async(e,{cleanup:n,detached:i},s)=>{if(!n||i)return s;let a=Pv(()=>{e.kill()});return s.finally(()=>{a()})};var $v=N("fs"),Dv=N("child_process");function vo(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function hf(e){return vo(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var Lk=e=>e instanceof Dv.ChildProcess&&typeof e.then=="function",df=(e,n,i)=>{if(typeof i=="string")return e[n].pipe((0,$v.createWriteStream)(i)),e;if(hf(i))return e[n].pipe(i),e;if(!Lk(i))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!hf(i.stdin))throw new TypeError("The target child process's stdin must be available.");return e[n].pipe(i.stdin),i},Mv=e=>{e.stdout!==null&&(e.pipeStdout=df.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=df.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=df.bind(void 0,e,"all"))};var Ao=N("fs"),Yv=N("timers/promises");var Oi=async(e,{init:n,convertChunk:i,getSize:s,truncateChunk:a,addChunk:c,getFinalChunk:l,finalize:f},{maxBuffer:h=Number.POSITIVE_INFINITY}={})=>{if(!Nk(e))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let m=n();m.length=0;try{for await(let _ of e){let x=$k(_),b=i[x](_,m);Bv({convertedChunk:b,state:m,getSize:s,truncateChunk:a,addChunk:c,maxBuffer:h})}return kk({state:m,convertChunk:i,getSize:s,truncateChunk:a,addChunk:c,getFinalChunk:l,maxBuffer:h}),f(m)}catch(_){throw _.bufferedData=f(m),_}},kk=({state:e,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:a,maxBuffer:c})=>{let l=a(e);l!==void 0&&Bv({convertedChunk:l,state:e,getSize:n,truncateChunk:i,addChunk:s,maxBuffer:c})},Bv=({convertedChunk:e,state:n,getSize:i,truncateChunk:s,addChunk:a,maxBuffer:c})=>{let l=i(e),f=n.length+l;if(f<=c){Fv(e,n,a,f);return}let h=s(e,c-n.length);throw h!==void 0&&Fv(h,n,a,c),new bo},Fv=(e,n,i,s)=>{n.contents=i(e,n,s),n.length=s},Nk=e=>typeof e=="object"&&e!==null&&typeof e[Symbol.asyncIterator]=="function",$k=e=>{let n=typeof e;if(n==="string")return"string";if(n!=="object"||e===null)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let i=qv.call(e);return i==="[object ArrayBuffer]"?"arrayBuffer":i==="[object DataView]"?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&qv.call(e.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:qv}=Object.prototype,bo=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}};var gf=e=>e,mf=()=>{},yf=({contents:e})=>e,So=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},wo=e=>e.length;async function _f(e,n){return Oi(e,Wk,n)}var Dk=()=>({contents:new ArrayBuffer(0)}),Mk=e=>Fk.encode(e),Fk=new TextEncoder,Hv=e=>new Uint8Array(e),Gv=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),qk=(e,n)=>e.slice(0,n),Bk=(e,{contents:n,length:i},s)=>{let a=jv()?Gk(n,s):Hk(n,s);return new Uint8Array(a).set(e,i),a},Hk=(e,n)=>{if(n<=e.byteLength)return e;let i=new ArrayBuffer(Wv(n));return new Uint8Array(i).set(new Uint8Array(e),0),i},Gk=(e,n)=>{if(n<=e.maxByteLength)return e.resize(n),e;let i=new ArrayBuffer(n,{maxByteLength:Wv(n)});return new Uint8Array(i).set(new Uint8Array(e),0),i},Wv=e=>Uv**Math.ceil(Math.log(e)/Math.log(Uv)),Uv=2,Uk=({contents:e,length:n})=>jv()?e:e.slice(0,n),jv=()=>"resize"in ArrayBuffer.prototype,Wk={init:Dk,convertChunk:{string:Mk,buffer:Hv,arrayBuffer:Hv,dataView:Gv,typedArray:Gv,others:So},getSize:wo,truncateChunk:qk,addChunk:Bk,getFinalChunk:mf,finalize:Uk};async function xo(e,n){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return Kv(await _f(e,n))}catch(i){throw i.bufferedData!==void 0&&(i.bufferedData=Kv(i.bufferedData)),i}}var Kv=e=>globalThis.Buffer.from(e);async function vf(e,n){return Oi(e,Yk,n)}var jk=()=>({contents:"",textDecoder:new TextDecoder}),Eo=(e,{textDecoder:n})=>n.decode(e,{stream:!0}),Kk=(e,{contents:n})=>n+e,zk=(e,n)=>e.slice(0,n),Xk=({textDecoder:e})=>{let n=e.decode();return n===""?void 0:n},Yk={init:jk,convertChunk:{string:gf,buffer:Eo,arrayBuffer:Eo,dataView:Eo,typedArray:Eo,others:So},getSize:wo,truncateChunk:zk,addChunk:Kk,getFinalChunk:Xk,finalize:yf};var Qv=me(Xv(),1),Vv=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},Vk=({input:e,inputFile:n})=>typeof n!="string"?e:(Vv(e),(0,Ao.readFileSync)(n)),Zv=e=>{let n=Vk(e);if(vo(n))throw new TypeError("The `input` option cannot be a stream in sync mode");return n},Zk=({input:e,inputFile:n})=>typeof n!="string"?e:(Vv(e),(0,Ao.createReadStream)(n)),Jv=(e,n)=>{let i=Zk(n);i!==void 0&&(vo(i)?i.pipe(e.stdin):e.stdin.end(i))},eb=(e,{all:n})=>{if(!n||!e.stdout&&!e.stderr)return;let i=(0,Qv.default)();return e.stdout&&i.add(e.stdout),e.stderr&&i.add(e.stderr),i},bf=async(e,n)=>{if(!(!e||n===void 0)){await(0,Yv.setTimeout)(0),e.destroy();try{return await n}catch(i){return i.bufferedData}}},Sf=(e,{encoding:n,buffer:i,maxBuffer:s})=>{if(!(!e||!i))return n==="utf8"||n==="utf-8"?vf(e,{maxBuffer:s}):n===null||n==="buffer"?xo(e,{maxBuffer:s}):Jk(e,s,n)},Jk=async(e,n,i)=>(await xo(e,{maxBuffer:n})).toString(i),tb=async({stdout:e,stderr:n,all:i},{encoding:s,buffer:a,maxBuffer:c},l)=>{let f=Sf(e,{encoding:s,buffer:a,maxBuffer:c}),h=Sf(n,{encoding:s,buffer:a,maxBuffer:c}),m=Sf(i,{encoding:s,buffer:a,maxBuffer:c*2});try{return await Promise.all([l,f,h,m])}catch(_){return Promise.all([{error:_,signal:_.signal,timedOut:_.timedOut},bf(e,f),bf(n,h),bf(i,m)])}};var eN=(async()=>{})().constructor.prototype,tN=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(eN,e)]),wf=(e,n)=>{for(let[i,s]of tN){let a=typeof n=="function"?(...c)=>Reflect.apply(s.value,n(),c):s.value.bind(n);Reflect.defineProperty(e,i,{...s,value:a})}},nb=e=>new Promise((n,i)=>{e.on("exit",(s,a)=>{n({exitCode:s,signal:a})}),e.on("error",s=>{i(s)}),e.stdin&&e.stdin.on("error",s=>{i(s)})});var sb=N("buffer"),ob=N("child_process"),ab=(e,n=[])=>Array.isArray(n)?[e,...n]:[e],nN=/^[\w.-]+$/,rN=e=>typeof e!="string"||nN.test(e)?e:`"${e.replaceAll('"','\\"')}"`,xf=(e,n)=>ab(e,n).join(" "),Ef=(e,n)=>ab(e,n).map(i=>rN(i)).join(" "),iN=/ +/g;var rb=e=>{let n=typeof e;if(n==="string")return e;if(n==="number")return String(e);if(n==="object"&&e!==null&&!(e instanceof ob.ChildProcess)&&"stdout"in e){let i=typeof e.stdout;if(i==="string")return e.stdout;if(sb.Buffer.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${i}" stdout in template expression`)}throw new TypeError(`Unexpected "${n}" in template expression`)},ib=(e,n,i)=>i||e.length===0||n.length===0?[...e,...n]:[...e.slice(0,-1),`${e.at(-1)}${n[0]}`,...n.slice(1)],sN=({templates:e,expressions:n,tokens:i,index:s,template:a})=>{let c=a??e.raw[s],l=c.split(iN).filter(Boolean),f=ib(i,l,c.startsWith(" "));if(s===n.length)return f;let h=n[s],m=Array.isArray(h)?h.map(_=>rb(_)):[rb(h)];return ib(f,m,c.endsWith(" "))},Af=(e,n)=>{let i=[];for(let[s,a]of e.entries())i=sN({templates:e,expressions:n,tokens:i,index:s,template:a});return i};var ub=N("util"),cb=me(N("process"),1),lb=(0,ub.debuglog)("execa").enabled,Co=(e,n)=>String(e).padStart(n,"0"),oN=()=>{let e=new Date;return`${Co(e.getHours(),2)}:${Co(e.getMinutes(),2)}:${Co(e.getSeconds(),2)}.${Co(e.getMilliseconds(),3)}`},Cf=(e,{verbose:n})=>{!n||cb.default.stderr.write(`[${oN()}] ${e} +`)};var aN=1e3*1e3*100,uN=({env:e,extendEnv:n,preferLocal:i,localDir:s,execPath:a})=>{let c=n?{...Ii.default.env,...e}:e;return i?mv({env:c,cwd:s,execPath:a}):c},gb=(e,n,i={})=>{let s=db.default._parse(e,n,i);return e=s.command,n=s.args,i=s.options,i={maxBuffer:aN,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:i.cwd||Ii.default.cwd(),execPath:Ii.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:lb,...i},i.env=uN(i),i.stdio=Rv(i),Ii.default.platform==="win32"&&hb.default.basename(e,".exe")==="cmd"&&n.unshift("/q"),{file:e,args:n,options:i,parsed:s}},Li=(e,n,i)=>typeof n!="string"&&!pb.Buffer.isBuffer(n)?i===void 0?void 0:"":e.stripFinalNewline?rf(n):n;function Po(e,n,i){let s=gb(e,n,i),a=xf(e,n),c=Ef(e,n);Cf(c,s.options),kv(s.options);let l;try{l=Ro.default.spawn(s.file,s.args,s.options)}catch(M){let A=new Ro.default.ChildProcess,$=Promise.reject(Ti({error:M,stdout:"",stderr:"",all:"",command:a,escapedCommand:c,parsed:s,timedOut:!1,isCanceled:!1,killed:!1}));return wf(A,$),A}let f=nb(l),h=Lv(l,s.options,f),m=Nv(l,s.options,h),_={isCanceled:!1};l.kill=Ov.bind(null,l.kill.bind(l)),l.cancel=Iv.bind(null,l,_);let b=_v(async()=>{let[{error:M,exitCode:A,signal:$,timedOut:U},H,X,z]=await tb(l,s.options,m),Q=Li(s.options,H),D=Li(s.options,X),Z=Li(s.options,z);if(M||A!==0||$!==null){let V=Ti({error:M,exitCode:A,signal:$,stdout:Q,stderr:D,all:Z,command:a,escapedCommand:c,parsed:s,timedOut:U,isCanceled:_.isCanceled||(s.options.signal?s.options.signal.aborted:!1),killed:l.killed});if(!s.options.reject)return V;throw V}return{command:a,escapedCommand:c,exitCode:0,stdout:Q,stderr:D,all:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Jv(l,s.options),l.all=eb(l,s.options),Mv(l),wf(l,b),l}function cN(e,n,i){let s=gb(e,n,i),a=xf(e,n),c=Ef(e,n);Cf(c,s.options);let l=Zv(s.options),f;try{f=Ro.default.spawnSync(s.file,s.args,{...s.options,input:l})}catch(_){throw Ti({error:_,stdout:"",stderr:"",all:"",command:a,escapedCommand:c,parsed:s,timedOut:!1,isCanceled:!1,killed:!1})}let h=Li(s.options,f.stdout,f.error),m=Li(s.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let _=Ti({stdout:h,stderr:m,error:f.error,signal:f.signal,exitCode:f.status,command:a,escapedCommand:c,parsed:s,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!s.options.reject)return _;throw _}return{command:a,escapedCommand:c,exitCode:0,stdout:h,stderr:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var lN=({input:e,inputFile:n,stdio:i})=>e===void 0&&n===void 0&&i===void 0?{stdin:"inherit"}:{},fb=(e={})=>({preferLocal:!0,...lN(e),...e});function mb(e){function n(i,...s){if(!Array.isArray(i))return mb({...e,...i});let[a,...c]=Af(i,s);return Po(a,c,fb(e))}return n.sync=(i,...s)=>{if(!Array.isArray(i))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[a,...c]=Af(i,s);return cN(a,c,fb(e))},n}var OB=mb();var fw=me(Bi()),pw=me(Un());var np=class extends Y{async execute(){this.context.stdout.write(`Updating browserslist... +`),await Po("yarn",["browserslist","--update-db"]).catch(this.catch),this.context.stdout.write(`Updating queries... +`),await Promise.all(np.queries.map(async([n,i])=>await this.updateQuery(n,i))).catch(this.catch)}async updateQuery(n,i){let s=await Po("yarn",["browserslist",i.join(", ")]).then(({stdout:h})=>h).catch(this.catch);if(!s)return;let a=[];a.push(`/** + * ${n} + */ +`),a.push(`module.exports = [ +`),s.split(` +`).map(h=>a.push(` \`${h}\`, +`)),a.push("]");let c=`${(0,pw.kebabCase)(n.toLowerCase())}.cjs`,l=K("sources","@roots","browserslist-config",c),f=a.join("");await fw.writeAsync(l,f).catch(this.catch),this.context.stdout.write(`Updated ${c} +`)}},Kn=np;Kn.paths=[["@bud","browserslist","update"],["@bud","browserslist","upgrade"]],Kn.usage={category:"@bud",description:"update browserslist",examples:[["browserslist usage info","yarn @bud browserslist --help"]]},Kn.queries=[["Default",[]],["Last 2 versions",["last 2 versions"]],["Last 3 versions",["last 3 versions"]],["WordPress",["> 1%","last 1 Android versions","last 1 ChromeAndroid versions","last 2 Chrome versions","last 2 Firefox versions","last 2 Safari versions","last 2 iOS versions","last 2 Edge versions","last 2 Opera versions"]]];var Hi=class extends Y{async execute(){process.stdout.write(` _ _ | |__ _ _ __| | | _ \\| | | |/ _ | | |_) | |_| | (_| | |_.__/ \\__._|\\__._| -`),Object.values(xi).filter(n=>n.usage).forEach(n=>{n.usage.examples?.forEach(([i,o])=>{process.stdout.write(` -\x1B[34m${o}\x1B[0m ${i} -`)})})}};Si.paths=[["@bud"]];var Nt=He(Jo());var Lr=class extends ee{constructor(){super(...arguments);this.tsconfig=j("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 Nt.writeAsync(j("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:j("sources/@roots/bud-support/vendor/html-loader/index.cjs"),source:j("node_modules/html-loader/dist/index.js")}).then(async()=>{let o=j("sources/@roots/bud-support/vendor/html-loader/index.cjs"),u=await Nt.readAsync(o);await Nt.writeAsync(o,u.replace(/\.\/runtime\/getUrl\.js/g,"./runtime/getUrl.cjs")),await Nt.copyAsync(j("node_modules/html-loader/dist/runtime/getUrl.js"),j("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=j("sources/@roots/bud-support/vendor/html-webpack-plugin/index.cjs"),u=await Nt.readAsync(o);await Nt.writeAsync(o,u.replace(/\.\/lib\/loader\.js/g,"./lib/loader.cjs"))}),Nt.copyAsync(j("node_modules/html-webpack-plugin/lib/loader.js"),j("sources/@roots/bud-support/vendor/html-webpack-plugin/lib/loader.cjs"),{overwrite:!0}),Nt.copyAsync(j("node_modules/html-webpack-plugin/typings.d.ts"),j("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")}};Lr.paths=[["@bud","build"]],Lr.usage={category:"@bud",description:"Build packages",examples:[["build packages","yarn @bud build"]]};var kr=class extends ee{async execute(){await this.cli.run(["exec","git","clean","-fxd"])}};kr.paths=[["@bud","clean"]],kr.usage={category:"@bud",description:"clean project artifacts",examples:[["clean project artifacts","yarn @bud clean"]]};var Dr=class extends ee{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.")})}};Dr.paths=[["@bud","plugin","build"]],Dr.usage={category:"@bud",examples:[["build @bud yarn plugin","yarn @bud plugin build"]]};var Nr=class extends ee{async execute(){await this.cli.run(["workspace","@repo/markdown-kit","exec","node","contributors/index.js"]).catch(n=>{throw n})}};Nr.paths=[["@bud","contributors"]],Nr.usage={category:"@bud",description:"Aggregate contributor data",examples:[["update contributors","yarn @bud contributors"]]};var $r=class extends ee{async execute(){await this.cli.run(["@bud","build"]),await this.cli.run(["@bud","docs","build"]),this.promised.push(this.cli.run(["@bud","tsc","--watch"]),this.cli.run(["@bud","test","unit"]),this.cli.run(["@bud","docs","dev"])),await Promise.all(this.promised)}};$r.paths=[["@bud","dev"]],$r.usage={category:"@bud",description:"develop project code",examples:[["run tsc, docusaurus & vitest in watch mode","yarn @bud dev"]]};var Mr=class extends ee{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)}};Mr.paths=[["@bud","docs"],["@bud","docs","build"]],Mr.usage={category:"@bud",description:"build docs and other markdown files",examples:[["build docs and readme","yarn @bud docs"]]};var Fr=class extends ee{async execute(){await this.cli.run(["@bud","docs","build"]),await this.cli.run(["@bud","docusaurus","start"])}};Fr.paths=[["@bud","docs","dev"]],Fr.usage={category:"@bud",description:"develop docs",examples:[["develop docs","yarn @bud docs dev"]]};var qr=class extends ee{async execute(){this.promised.push(this.cli.run(["@bud","eslint"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","syncpack"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","prettier"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","package-check"]).then(this.throwIfError).catch(this.catch)),await Promise.all(this.promised)}};qr.paths=[["@bud","lint"]],qr.usage={category:"@bud",description:"Lint project"};var un=He(Jo());var Hr=class extends ee{async execute(){if(await un.removeAsync(j("storage/mocks")).catch(this.catch),await un.removeAsync(j("storage","packages")).catch(this.catch),await un.existsAsync(j("storage",".verdaccio-db.json"))){let i=await un.readAsync(j("storage",".verdaccio-db.json"),"json").catch(this.catch);i.list=[],await un.writeAsync(j("storage/.verdaccio-db.json"),i).catch(this.catch)}}};Hr.paths=[["@bud","registry","clean"]],Hr.usage={category:"@bud",description:"clean previously published packages",examples:[["clean previously published packages","yarn @bud registry clean"]]};var Ql=He(wr());var Br=class extends ee{async execute(){await this.cli.run(["@bud","pm2","start",j("node_modules","verdaccio","build","lib","cli","cli.js"),"-n","verdaccio","--","--config",j("config","verdaccio","config.yaml")]).catch(Ql.noop).finally(async()=>{await this.cli.run(["@bud","pm2","save"]).catch(Ql.noop)})}};Br.paths=[["@bud","registry","start"]],Br.usage={category:"@bud",description:"start verdaccio registry",examples:[["start verdaccio server","yarn @bud registry start"]]};var Zl=He(wr());var Wr=class extends ee{async execute(){await this.cli.run(["@bud","pm2","stop","verdaccio"]).catch(Zl.noop),await this.cli.run(["@bud","pm2","delete","verdaccio"]).catch(Zl.noop)}};Wr.paths=[["@bud","registry","stop"]],Wr.usage={category:"@bud",description:"stop verdaccio registry",examples:[["stop verdaccio server","yarn @bud registry stop"]]};var eu=q("clipanion"),Ii=He(wr());var Ur=class extends ee{constructor(){super();this.registry=eu.Option.String("-r,--registry","http://localhost:4873",{description:"Release registry"});this.tag=eu.Option.String("-t,--tag",{description:"Release tag",required:!0});this.version=eu.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","--no-private","npm","publish","--access","public","--tag",this.tag]).then(this.throwIfError).catch(this.catch),await this.resetRegistry(),this.context.stdout.write(` +`),Object.values(Gi).filter(n=>n.usage).forEach(n=>{n.usage.examples?.forEach(([i,s])=>{process.stdout.write(` +\x1B[34m${s}\x1B[0m ${i} +`)})})}};Hi.paths=[["@bud"]];var $t=me(Bi());var Fr=class extends Y{constructor(){super(...arguments);this.tsconfig=K("config/tsconfig.json")}async bundle({alias:i={},external:s=[],format:a="esm",outdir:c,outfile:l,source:f}){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(([h,m])=>`--alias:${h}=${m}`),...s.map(h=>`--external:${h}`),`--format=${a}`,l?`--outfile=${l}`:null,c?`--outdir=${c}`:null,f].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(K("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:K("sources/@roots/bud-support/vendor/html-loader/index.cjs"),source:K("node_modules/html-loader/dist/index.js")}).then(async()=>{let s=K("sources/@roots/bud-support/vendor/html-loader/index.cjs"),a=await $t.readAsync(s);await $t.writeAsync(s,a.replace(/\.\/runtime\/getUrl\.js/g,"./runtime/getUrl.cjs")),await $t.copyAsync(K("node_modules/html-loader/dist/runtime/getUrl.js"),K("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 s=K("sources/@roots/bud-support/vendor/html-webpack-plugin/index.cjs"),a=await $t.readAsync(s);await $t.writeAsync(s,a.replace(/\.\/lib\/loader\.js/g,"./lib/loader.cjs"))}),$t.copyAsync(K("node_modules/html-webpack-plugin/lib/loader.js"),K("sources/@roots/bud-support/vendor/html-webpack-plugin/lib/loader.cjs"),{overwrite:!0}),$t.copyAsync(K("node_modules/html-webpack-plugin/typings.d.ts"),K("sources/@roots/bud-support/vendor/html-webpack-plugin/index.d.cts"),{overwrite:!0})]).catch(s=>{throw s}),await this.cli.run(["@bud","tsc","--build",this.tsconfig,"--force"]).catch(s=>{throw s})!==0)throw new Error("Build failed")}};Fr.paths=[["@bud","build"]],Fr.usage={category:"@bud",description:"Build packages",examples:[["build packages","yarn @bud build"]]};var qr=class extends Y{async execute(){await this.cli.run(["exec","git","clean","-fxd"])}};qr.paths=[["@bud","clean"]],qr.usage={category:"@bud",description:"clean project artifacts",examples:[["clean project artifacts","yarn @bud clean"]]};var Br=class extends Y{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.")})}};Br.paths=[["@bud","plugin","build"]],Br.usage={category:"@bud",examples:[["build @bud yarn plugin","yarn @bud plugin build"]]};var Hr=class extends Y{async execute(){await this.cli.run(["workspace","@repo/markdown-kit","exec","node","contributors/index.js"]).catch(n=>{throw n})}};Hr.paths=[["@bud","contributors"]],Hr.usage={category:"@bud",description:"Aggregate contributor data",examples:[["update contributors","yarn @bud contributors"]]};var Gr=class extends Y{async execute(){await this.cli.run(["@bud","build"]),await this.cli.run(["@bud","docs","build"]),this.promised.push(this.cli.run(["@bud","tsc","--watch"]),this.cli.run(["@bud","test","unit"]),this.cli.run(["@bud","docs","dev"])),await Promise.all(this.promised)}};Gr.paths=[["@bud","dev"]],Gr.usage={category:"@bud",description:"develop project code",examples:[["run tsc, docusaurus & vitest in watch mode","yarn @bud dev"]]};var Ur=class extends Y{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)}};Ur.paths=[["@bud","docs"],["@bud","docs","build"]],Ur.usage={category:"@bud",description:"build docs and other markdown files",examples:[["build docs and readme","yarn @bud docs"]]};var Wr=class extends Y{async execute(){await this.cli.run(["@bud","docs","build"]),await this.cli.run(["@bud","docusaurus","start"])}};Wr.paths=[["@bud","docs","dev"]],Wr.usage={category:"@bud",description:"develop docs",examples:[["develop docs","yarn @bud docs dev"]]};var jr=class extends Y{async execute(){this.promised.push(this.cli.run(["@bud","eslint"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","syncpack"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","prettier"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","package-check"]).then(this.throwIfError).catch(this.catch)),await Promise.all(this.promised)}};jr.paths=[["@bud","lint"]],jr.usage={category:"@bud",description:"Lint project"};var an=me(Bi());var Kr=class extends Y{async execute(){if(await an.removeAsync(K("storage/mocks")).catch(this.catch),await an.removeAsync(K("storage","packages")).catch(this.catch),await an.existsAsync(K("storage",".verdaccio-db.json"))){let i=await an.readAsync(K("storage",".verdaccio-db.json"),"json").catch(this.catch);i.list=[],await an.writeAsync(K("storage/.verdaccio-db.json"),i).catch(this.catch)}}};Kr.paths=[["@bud","registry","clean"]],Kr.usage={category:"@bud",description:"clean previously published packages",examples:[["clean previously published packages","yarn @bud registry clean"]]};var rp=me(Un());var zr=class extends Y{async execute(){await this.cli.run(["@bud","pm2","start",K("node_modules","verdaccio","build","lib","cli","cli.js"),"-n","verdaccio","--","--config",K("config","verdaccio","config.yaml")]).catch(rp.noop).finally(async()=>{await this.cli.run(["@bud","pm2","save"]).catch(rp.noop)})}};zr.paths=[["@bud","registry","start"]],zr.usage={category:"@bud",description:"start verdaccio registry",examples:[["start verdaccio server","yarn @bud registry start"]]};var ip=me(Un());var Xr=class extends Y{async execute(){await this.cli.run(["@bud","pm2","stop","verdaccio"]).catch(ip.noop),await this.cli.run(["@bud","pm2","delete","verdaccio"]).catch(ip.noop)}};Xr.paths=[["@bud","registry","stop"]],Xr.usage={category:"@bud",description:"stop verdaccio registry",examples:[["stop verdaccio server","yarn @bud registry stop"]]};var Ra=N("clipanion"),Ui=me(Un());var Yr=class extends Y{constructor(){super();this.registry=Ra.Option.String("-r,--registry","http://localhost:4873",{description:"Release registry"});this.tag=Ra.Option.String("-t,--tag",{description:"Release tag",required:!0});this.version=Ra.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","--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(Ii.noop),await this.cli.run(["config","set","npmRegistryServer","https://registry.npmjs.org"]).catch(Ii.noop),await this.cli.run(["@bud","version","0.0.0"]).catch(Ii.noop),await this.cli.run(["install"]).catch(Ii.noop)}};Ur.paths=[["@bud","release"]],Ur.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"]]};var Vl=q("clipanion"),dv=He(Jo());var Gr=class extends ee{constructor(){super(...arguments);this.configuration=Vl.Option.String({required:!0});this.passthrough=Vl.Option.Proxy({name:"vitest passthrough options"})}async execute(){let i=["@bud","vitest"];return["e2e","integration"].includes(this.configuration)&&(i.push("--run"),await dv.removeAsync(j("storage","mocks")).catch(o=>{throw o}),await this.cli.run(["@bud","release","--tag","latest","--registry","http://localhost:4873/"]).catch(o=>{throw o})),!i.includes("--config")&&i.push("--config",j("config","vitest",`config.${this.configuration}.ts`)),i.push(...this.passthrough),await this.cli.run(i)}};Gr.paths=[["@bud","test"]],Gr.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 gv=q("clipanion");var jr=class extends ee{constructor(){super(...arguments);this.version=gv.Option.String()}async execute(){await this.cli.run(["workspaces","foreach","--no-private","package","set","version",this.version]).then(this.throwIfError).catch(this.catch)}};jr.paths=[["@bud","version"]],jr.usage={category:"@bud",description:"bump version of public packages",examples:[["Bump packages to x.y.z","yarn @bud version x.y.z"]]};var Kr=q("@yarnpkg/shell"),mv=He(wr()),_v=async()=>{await(0,Kr.execute)("yarn",["@bud","plugin","build"]),await(0,Kr.execute)("yarn",["@bud","registry","start"]).catch(mv.noop),await(0,Kr.execute)("yarn",["@bud","build"]),await(0,Kr.execute)("yarn",["@bud"]),await(0,Kr.execute)("yarn",["playwright","install"])};var XI={commands:Object.values(xi),hooks:{afterAllInstalled:_v}},zI=XI;return i1(YI);})(); +`)}makeVersion(){let i=new Date,s=[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()],a=[i.getUTCHours(),i.getUTCMinutes()];return[s.join("."),parseInt(a.join(""))].join("-")}async resetRegistry(){await this.cli.run(["config","set","npmPublishRegistry","https://registry.npmjs.org"]).catch(Ui.noop),await this.cli.run(["config","set","npmRegistryServer","https://registry.npmjs.org"]).catch(Ui.noop),await this.cli.run(["@bud","version","0.0.0"]).catch(Ui.noop),await this.cli.run(["install"]).catch(Ui.noop)}};Yr.paths=[["@bud","release"]],Yr.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"]]};var sp=N("clipanion"),hw=me(Bi());var Qr=class extends Y{constructor(){super(...arguments);this.configuration=sp.Option.String({required:!0});this.passthrough=sp.Option.Proxy({name:"vitest passthrough options"})}async execute(){let i=["@bud","vitest"];return["e2e","integration"].includes(this.configuration)&&(i.push("--run"),await hw.removeAsync(K("storage","mocks")).catch(s=>{throw s}),await this.cli.run(["@bud","release","--tag","latest","--registry","http://localhost:4873/"]).catch(s=>{throw s})),!i.includes("--config")&&i.push("--config",K("config","vitest",`config.${this.configuration}.ts`)),i.push(...this.passthrough),await this.cli.run(i)}};Qr.paths=[["@bud","test"]],Qr.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 dw=N("clipanion");var Vr=class extends Y{constructor(){super(...arguments);this.version=dw.Option.String()}async execute(){await this.cli.run(["workspaces","foreach","--no-private","package","set","version",this.version]).then(this.throwIfError).catch(this.catch)}};Vr.paths=[["@bud","version"]],Vr.usage={category:"@bud",description:"bump version of public packages",examples:[["Bump packages to x.y.z","yarn @bud version x.y.z"]]};var Zr=N("@yarnpkg/shell"),gw=me(Un()),mw=async()=>{await(0,Zr.execute)("yarn",["@bud","plugin","build"]),await(0,Zr.execute)("yarn",["@bud","registry","start"]).catch(gw.noop),await(0,Zr.execute)("yarn",["@bud","build"]),await(0,Zr.execute)("yarn",["@bud"]),await(0,Zr.execute)("yarn",["playwright","install"])};var wD={commands:Object.values(Gi),hooks:{afterAllInstalled:mw}},xD=wD;return rP(ED);})(); /*! * fill-range * diff --git a/sources/@repo/yarn-plugin-bud/sources/command/_browserslist.ts b/sources/@repo/yarn-plugin-bud/sources/command/_browserslist.ts new file mode 100644 index 0000000000..6aae3f2c4f --- /dev/null +++ b/sources/@repo/yarn-plugin-bud/sources/command/_browserslist.ts @@ -0,0 +1,24 @@ +import {CommandClass, Option} from 'clipanion' + +import {Command} from './base.command' + +export class Browserslist extends Command { + public static paths: CommandClass['paths'] = [[`@bud`, `browserslist`]] + + public static usage: CommandClass['usage'] = { + category: `@bud`, + description: `run browserslist`, + examples: [ + [`browserslist usage info`, `yarn @bud browserslist --help`], + ], + } + + public passthrough = Option.Proxy({name: `browserslist options`}) + + public async execute() { + return await this.cli + .run([`browserslist`, ...(this.passthrough ?? [])]) + .then(this.throwIfError) + .catch(this.catch) + } +} diff --git a/sources/@repo/yarn-plugin-bud/sources/command/browserslist-update.ts b/sources/@repo/yarn-plugin-bud/sources/command/browserslist-update.ts new file mode 100644 index 0000000000..7bf95dc463 --- /dev/null +++ b/sources/@repo/yarn-plugin-bud/sources/command/browserslist-update.ts @@ -0,0 +1,93 @@ +import {path} from '@repo/constants' +import {CommandClass} from 'clipanion' +import {execa} from 'execa' +import * as fs from 'fs-jetpack' +import {kebabCase} from 'lodash' + +import {Command} from './base.command' + +export class BrowserslistUpdate extends Command { + public static paths: CommandClass['paths'] = [ + [`@bud`, `browserslist`, `update`], + [`@bud`, `browserslist`, `upgrade`], + ] + + public static usage: CommandClass['usage'] = { + category: `@bud`, + description: `update browserslist`, + examples: [ + [`browserslist usage info`, `yarn @bud browserslist --help`], + ], + } + + public static queries: Array<[string, Array]> = [ + [`Default`, []], + [`Last 2 versions`, [`last 2 versions`]], + [`Last 3 versions`, [`last 3 versions`]], + [ + `WordPress`, + [ + `> 1%`, + `last 1 Android versions`, + `last 1 ChromeAndroid versions`, + `last 2 Chrome versions`, + `last 2 Firefox versions`, + `last 2 Safari versions`, + `last 2 iOS versions`, + `last 2 Edge versions`, + `last 2 Opera versions`, + ], + ], + ] + + public async execute() { + this.context.stdout.write(`Updating browserslist...\n`) + + await execa(`yarn`, [`browserslist`, `--update-db`]).catch(this.catch) + + this.context.stdout.write(`Updating queries...\n`) + + await Promise.all( + BrowserslistUpdate.queries.map( + async ([name, query]) => await this.updateQuery(name, query), + ), + ).catch(this.catch) + } + + public async updateQuery(name: string, query: Array) { + const list = await execa(`yarn`, [`browserslist`, query.join(`, `)]) + .then(({stdout}) => stdout) + .catch(this.catch) + + if (!list) return + + const parts = [] + + // banner + parts.push(`/**\n * ${name}\n */\n`) + // opening module.exports statement + parts.push(`module.exports = [\n`) + // each line from stdout + list.split(`\n`).map(item => parts.push(` \`${item}\`,\n`)) + // closing bracket + parts.push(`]`) + + // file name + const filename = `${kebabCase(name.toLowerCase())}.cjs` + // file path + const writePath = path( + `sources`, + `@roots`, + `browserslist-config`, + filename, + ) + // file contents + const contents = parts.join(``) + + // write output + await fs.writeAsync(writePath, contents).catch(this.catch) + + // log + this.context.stdout.write(`Updated ${filename}\n`) + } +} diff --git a/sources/@repo/yarn-plugin-bud/sources/command/index.ts b/sources/@repo/yarn-plugin-bud/sources/command/index.ts index 58e1c716f2..1295310aed 100644 --- a/sources/@repo/yarn-plugin-bud/sources/command/index.ts +++ b/sources/@repo/yarn-plugin-bud/sources/command/index.ts @@ -1,3 +1,4 @@ +export {Browserslist} from './_browserslist.js' export {Docusaurus} from './_docusaurus.js' export {Eslint} from './_eslint.js' export {Netlify} from './_netlify.js' @@ -7,6 +8,7 @@ export {Prettier} from './_prettier.js' export {Syncpack} from './_syncpack.js' export {Tsc} from './_tsc.js' export {Vitest} from './_vitest.js' +export {BrowserslistUpdate} from './browserslist-update.js' export {Bud} from './bud.js' export {Build} from './build.js' export {Clean} from './clean.js' diff --git a/sources/@roots/browserslist-config/default.cjs b/sources/@roots/browserslist-config/default.cjs index 5dab769efc..237946a0e5 100644 --- a/sources/@roots/browserslist-config/default.cjs +++ b/sources/@roots/browserslist-config/default.cjs @@ -1,23 +1,24 @@ /** - * Browserslist defaults - */ + * Default + **/ module.exports = [ - `and_chr 117`, - `and_ff 117`, + `and_chr 118`, + `and_ff 118`, `and_qq 13.1`, `and_uc 15.5`, - `android 117`, + `android 118`, + `chrome 118`, `chrome 117`, `chrome 116`, `chrome 115`, `chrome 114`, `chrome 109`, + `edge 118`, `edge 117`, `edge 116`, + `firefox 118`, `firefox 117`, - `firefox 116`, `firefox 115`, - `firefox 102`, `ios_saf 17.0`, `ios_saf 16.6`, `ios_saf 16.3`, @@ -27,6 +28,7 @@ module.exports = [ `kaios 2.5`, `op_mini all`, `op_mob 73`, + `opera 103`, `opera 102`, `opera 101`, `safari 17.0`, @@ -34,4 +36,4 @@ module.exports = [ `safari 15.6`, `samsung 22`, `samsung 21`, -] +] \ No newline at end of file diff --git a/sources/@roots/browserslist-config/last-2-versions.cjs b/sources/@roots/browserslist-config/last-2-versions.cjs index 55aa471c76..15f89d3c90 100644 --- a/sources/@roots/browserslist-config/last-2-versions.cjs +++ b/sources/@roots/browserslist-config/last-2-versions.cjs @@ -2,27 +2,34 @@ * Last 2 versions */ module.exports = [ - `and_chr 117`, - `and_ff 117`, + `and_chr 118`, + `and_ff 118`, `and_qq 13.1`, `and_uc 15.5`, - `android 117`, + `android 118`, + `baidu 13.18`, + `bb 10`, + `bb 7`, + `chrome 118`, `chrome 117`, - `chrome 116`, + `edge 118`, `edge 117`, - `edge 116`, + `firefox 118`, `firefox 117`, - `firefox 116`, + `ie 11`, + `ie 10`, + `ie_mob 11`, + `ie_mob 10`, `ios_saf 17.0`, `ios_saf 16.6`, `kaios 3.0-3.1`, `kaios 2.5`, `op_mini all`, `op_mob 73`, + `opera 103`, `opera 102`, - `opera 101`, `safari 17.0`, `safari 16.6`, `samsung 22`, `samsung 21`, -] +] \ No newline at end of file diff --git a/sources/@roots/browserslist-config/last-3-versions.cjs b/sources/@roots/browserslist-config/last-3-versions.cjs index 78373e859b..19ee8e1766 100644 --- a/sources/@roots/browserslist-config/last-3-versions.cjs +++ b/sources/@roots/browserslist-config/last-3-versions.cjs @@ -2,20 +2,28 @@ * Last 3 versions */ module.exports = [ - `and_chr 117`, - `and_ff 117`, + `and_chr 118`, + `and_ff 118`, `and_qq 13.1`, `and_uc 15.5`, - `android 117`, + `android 118`, + `baidu 13.18`, + `bb 10`, + `bb 7`, + `chrome 118`, `chrome 117`, `chrome 116`, - `chrome 115`, + `edge 118`, `edge 117`, `edge 116`, - `edge 115`, + `firefox 118`, `firefox 117`, `firefox 116`, - `firefox 115`, + `ie 11`, + `ie 10`, + `ie 9`, + `ie_mob 11`, + `ie_mob 10`, `ios_saf 17.0`, `ios_saf 16.6`, `ios_saf 16.5`, @@ -23,13 +31,13 @@ module.exports = [ `kaios 2.5`, `op_mini all`, `op_mob 73`, + `opera 103`, `opera 102`, `opera 101`, - `opera 100`, `safari 17.0`, `safari 16.6`, `safari 16.5`, `samsung 22`, `samsung 21`, - `samsung 20` -] + `samsung 20`, +] \ No newline at end of file diff --git a/sources/@roots/browserslist-config/wordpress.cjs b/sources/@roots/browserslist-config/wordpress.cjs index c541de1e0b..2f6fc7320b 100644 --- a/sources/@roots/browserslist-config/wordpress.cjs +++ b/sources/@roots/browserslist-config/wordpress.cjs @@ -1,18 +1,26 @@ /** - * WordPress defaults + * WordPress */ module.exports = [ - `and_chr 117`, + `and_chr 118`, + `android 118`, + `chrome 118`, `chrome 117`, `chrome 116`, `chrome 115`, `chrome 109`, + `edge 118`, `edge 117`, `edge 116`, + `firefox 118`, `firefox 117`, + `ios_saf 17.0`, `ios_saf 16.6`, `ios_saf 15.6-15.7`, `op_mini all`, + `opera 103`, + `opera 102`, + `safari 17.0`, `safari 16.6`, `samsung 22`, -] +] \ No newline at end of file diff --git a/sources/@roots/bud-dashboard/src/service.tsx b/sources/@roots/bud-dashboard/src/service.tsx index 72957443bb..00bfca5b86 100644 --- a/sources/@roots/bud-dashboard/src/service.tsx +++ b/sources/@roots/bud-dashboard/src/service.tsx @@ -1,16 +1,17 @@ import type {Bud} from '@roots/bud-framework' import type { + MultiStats, StatsCompilation, StatsError, } from '@roots/bud-framework/config' import type {Dashboard as BudDashboard} from '@roots/bud-framework/services' -import {stdin, stdout} from 'node:process' +import {stdin} from 'node:process' import {makeErrorFormatter} from '@roots/bud-dashboard/helpers/formatErrors' import {Service} from '@roots/bud-framework/service' import {bind} from '@roots/bud-support/decorators/bind' -import {Box} from '@roots/bud-support/ink' +import {Box, Text, type ReactElement} from '@roots/bud-support/ink' import isUndefined from '@roots/bud-support/lodash/isUndefined' import {Application, TeletypeApplication} from './application.js' @@ -23,19 +24,17 @@ type Compilations = Array> export class Dashboard extends Service implements BudDashboard { /** * {@link BudDashboard.formatStatsErrors} + * + * @param errors - {@link StatsError[]} */ public declare formatStatsErrors: ( - errors: StatsError[] | undefined, + errors?: StatsError[] | undefined, ) => StatsError[] | undefined - /** - * {@link BudDashboard.stats} - */ - public declare stats?: StatsCompilation - /** * Class constructor - * @param app + * + * @param app - {@link Bud} instance */ public constructor(app: () => Bud) { super(app) @@ -44,29 +43,31 @@ export class Dashboard extends Service implements BudDashboard { /** * {@link BudDashboard.render} + * + * @param stats - {@link MultiStats} + * @param error - {@link Error} */ @bind - public render(stats?: StatsCompilation, error?: Error) { - if (!stats) return <>No stats - - const jsonStats = stats.toJson() - const stringStats = stats.toString() + public render(stats?: MultiStats, error?: Error): ReactElement | null { + if (!stats) return No stats to display /** - * Do not render if: - * - CI is enabled - * - silent mode is enabled + * Do not render if silent mode is enabled */ - if (this.app.context.silent === true || this.app.context.ci) return + if (this.app.context.silent) return null /** - * Render string if dashboard is disabled + * Render basic output if `--dashboard` flag is false */ if (this.app.context.dashboard === false) { - this.renderString(stringStats) - return this + const stringStats = stats.toString({ + preset: `minimal`, + }) + return {stringStats} } + const data = stats.toJson() + /** * Get compilations * @@ -76,9 +77,9 @@ export class Dashboard extends Service implements BudDashboard { * case, we want to flatten the children array. */ const getCompilations = (): Compilations => { - if (!jsonStats) return [] - if (!jsonStats.children?.length) return [jsonStats] - return jsonStats.children.flat() + if (!data) return [] + if (!data.children?.length) return [data] + return data.children.flat() } /** @@ -91,21 +92,21 @@ export class Dashboard extends Service implements BudDashboard { })) /** - * Get dashboard.assets option + * `--dashboard.assets` flag value */ const assets = !isUndefined(this.app.context.dashboard) ? this.app.context.dashboard.assets : true /** - * Get dashboard.compact option + * `--dashboard.compact` flag value */ const compact = !isUndefined(this.app.context.dashboard) ? this.app.context.dashboard.compact : compilations.length > 2 /** - * Get dashboard.entrypoints option + * `--dashboard.entrypoints flag value` */ const entrypoints = !isUndefined( this.app.context.dashboard?.entrypoints, @@ -114,7 +115,7 @@ export class Dashboard extends Service implements BudDashboard { : true /** - * Get dashboard.server option + * `--dashboard.server` flag value */ const server = !isUndefined(this.app.context.dashboard?.server) ? this.app.context.dashboard?.server @@ -160,14 +161,4 @@ export class Dashboard extends Service implements BudDashboard { ) } - - /** - * {@link BudDashboard.renderString} - */ - @bind - public renderString(text: string): Dashboard { - if (this.app.context.silent) return this - stdout.write(`${text}\n`) - return this - } } diff --git a/sources/@roots/bud-framework/src/services/dashboard/index.ts b/sources/@roots/bud-framework/src/services/dashboard/index.ts index 9eec5c74b4..f34e915b68 100644 --- a/sources/@roots/bud-framework/src/services/dashboard/index.ts +++ b/sources/@roots/bud-framework/src/services/dashboard/index.ts @@ -1,5 +1,5 @@ import type { - StatsCompilation, + MultiStats, StatsError, } from '@roots/bud-framework/config' @@ -7,11 +7,6 @@ import type { * Dashboard service container */ export interface Dashboard { - /** - * Received stats - */ - stats?: StatsCompilation - /** * Format stats errors */ @@ -22,10 +17,5 @@ export interface Dashboard { /** * Render function */ - render: (stats?: StatsCompilation, error?: any) => any - - /** - * Render string to stdout - */ - renderString(stats: string): any + render: (stats?: MultiStats, error?: any) => any } diff --git a/yarn.lock b/yarn.lock index 26b1ac62b2..c2ad851b4b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16497,7 +16497,7 @@ __metadata: "@vitest/coverage-v8": 0.34.6 "@vitest/ui": 0.34.6 browserslist: 4.22.1 - caniuse-lite: 1.0.30001546 + caniuse-lite: latest esbuild: 0.19.4 eslint: 8.51.0 eslint-plugin-n: 16.1.0 @@ -16846,10 +16846,10 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:1.0.30001546, caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001503, caniuse-lite@npm:^1.0.30001517, caniuse-lite@npm:^1.0.30001520, caniuse-lite@npm:^1.0.30001541": - version: 1.0.30001546 - resolution: "caniuse-lite@npm:1.0.30001546" - checksum: d3ef82f5ee94743002c5b2dd61c84342debcc94b2d5907b64ade3514ecfc4f20bbe86a6bc453fd6436d5fbcf6582e07405d7c2077565675a71c83adc238a11fa +"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001503, caniuse-lite@npm:^1.0.30001517, caniuse-lite@npm:^1.0.30001520, caniuse-lite@npm:^1.0.30001541, caniuse-lite@npm:latest": + version: 1.0.30001553 + resolution: "caniuse-lite@npm:1.0.30001553" + checksum: 45d6a2a3c3a098c8093a4c8883fceafb4bbf59d96f6fd5bb381ba4581d07eecbe0ede4f55383f0d49374154ff6a808bd90fbe32b17ccd1738034d2579787b33c languageName: node linkType: hard