diff --git a/.github/hooks/commit-msg b/.github/hooks/commit-msg new file mode 100755 index 0000000000..f866b0564c --- /dev/null +++ b/.github/hooks/commit-msg @@ -0,0 +1,99 @@ +#!/usr/bin/env node + +/** + * This script is used as a commit-msg Git hook to validate and format commit messages. + * It checks if the commit message follows a specific format and adds an emoji and additional information to the message. + * The commit message format should be: : + * Where is one of: chore, feat, fix, test, deps + * And is one of: none, patch, minor, major + * Example: feat:minor add new feature + * + * @remarks + * The script exports an empty object to satisfy the requirements of the ES module system. + */ + +import fs from 'node:fs/promises' + +import chalk from '@roots/bud-support/chalk' + +class emoji { + static chore = `🧹` + static deps = `📦` + static feat = `✨` + static fix = `🩹` + static test = `🧪` + + static get(type) { + return emoji[type] + } +} + +class code { + static invalid = 1 + static write = 2 + static read = 3 + + static get(key) { + return code[key] + } +} + +const validator = + /^(chore|feat|fix|test|deps):(none|patch|minor|major)(.*)/ + + + +const withCode = + code => + (...messages) => { + messages.map(message => + process.stderr.write(`${message.message ?? message}\n`), + ) + process.exit(code) + } + +const [, , file] = process.argv + +const original = await fs + .readFile(file, `utf8`) + .catch(withCode(code.get(`read`))) + .then(message => + message + .split(`\n`) + .filter(ln => !ln.startsWith(`#`)) + .map(ln => ln.trim()) + .join(`\n`) + ) + +/** + * Allow for totally empty commit messages + */ +if (original === `\n`) { + process.exit(0) +} + +if (!validator.test(original)) { + withCode(code.get(`invalid`))( + chalk.red(`Invalid commit message format\n`), + `Message should follow the format: : \n`, + `Where is one of: chore, feat, fix, test, deps\n`, + `And is one of: none, patch, minor, major\n`, + `Example: feat:minor add new feature`, + ) +} + +await fs + .writeFile( + file, + original.replace( + validator, + (_, type, severity, description) => + `${emoji.get(type)} ${type}(${severity}):${description}`, + ), + `utf8`, + ) + .catch(withCode(code.get(`write`))) + + // module exports required for esm + export default {} + diff --git a/.github/hooks/pre-commit b/.github/hooks/pre-commit new file mode 100755 index 0000000000..6d90e5713e --- /dev/null +++ b/.github/hooks/pre-commit @@ -0,0 +1,2 @@ +echo "linting...\n" +yarn @bud lint --fix diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml index b3283fae2c..65f56813f6 100644 --- a/.github/workflows/release-main.yml +++ b/.github/workflows/release-main.yml @@ -35,7 +35,7 @@ jobs: - run: git checkout -b v${{ github.event.inputs.version }} - run: | - git commit -am "chore: Bump @roots/bud to v${{ github.event.inputs.version }}" + git commit -am "chore:none Bump @roots/bud to v${{ github.event.inputs.version }}" git push -u origin v${{ github.event.inputs.version }} - run: | 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 02120ba1ba..3f426a7889 100644 --- a/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js +++ b/sources/@repo/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js @@ -3,10 +3,10 @@ module.exports = { name: "@yarnpkg/plugin-bud", factory: function (require) { -var plugin=(()=>{var e1=Object.create;var Ss=Object.defineProperty;var t1=Object.getOwnPropertyDescriptor;var n1=Object.getOwnPropertyNames;var r1=Object.getPrototypeOf,i1=Object.prototype.hasOwnProperty;var q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,i)=>(typeof require<"u"?require:r)[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,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Pp=(t,r)=>{for(var i in r)Ss(t,i,{get:r[i],enumerable:!0})},Tp=(t,r,i,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of n1(r))!i1.call(t,u)&&u!==i&&Ss(t,u,{get:()=>r[u],enumerable:!(o=t1(r,u))||o.enumerable});return t};var Fe=(t,r,i)=>(i=t!=null?e1(r1(t)):{},Tp(r||!t||!t.__esModule?Ss(i,"default",{value:t,enumerable:!0}):i,t)),s1=t=>Tp(Ss({},"__esModule",{value:!0}),t);var Dp=L((nL,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/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 Wp=L(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.splitWhen=lr.flatten=void 0;function o1(t){return t.reduce((r,i)=>[].concat(r,i),[])}lr.flatten=o1;function u1(t,r){let i=[[]],o=0;for(let u of t)r(u)?(o++,i[o]=[]):i[o].push(u);return i}lr.splitWhen=u1});var Up=L(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.isEnoentCodeError=void 0;function a1(t){return t.code==="ENOENT"}xs.isEnoentCodeError=a1});var Gp=L(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.createDirentFromStats=void 0;var Aa=class{constructor(r,i){this.name=r,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 c1(t,r){return new Aa(t,r)}Es.createDirentFromStats=c1});var zp=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 l1=q("os"),f1=q("path"),Kp=l1.platform()==="win32",h1=2,p1=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,d1=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,g1=/^\\\\([.?])/,m1=/\\(?![!()+@[\]{}])/g;function _1(t){return t.replace(/\\/g,"/")}Ne.unixify=_1;function y1(t,r){return f1.resolve(t,r)}Ne.makeAbsolute=y1;function v1(t){if(t.charAt(0)==="."){let r=t.charAt(1);if(r==="/"||r==="\\")return t.slice(h1)}return t}Ne.removeLeadingDotSegment=v1;Ne.escape=Kp?Ca:Ra;function Ca(t){return t.replace(d1,"\\$2")}Ne.escapeWindowsPath=Ca;function Ra(t){return t.replace(p1,"\\$2")}Ne.escapePosixPath=Ra;Ne.convertPathToPattern=Kp?jp:Xp;function jp(t){return Ca(t).replace(g1,"//$1").replace(m1,"/")}Ne.convertWindowsPathToPattern=jp;function Xp(t){return Ra(t)}Ne.convertPosixPathToPattern=Xp});var Qp=L((wL,Yp)=>{Yp.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(i[2])return!0;r=r.slice(i.index+i[0].length)}return!1}});var Jp=L((SL,Vp)=>{var b1=Qp(),Zp={"{":"}","(":")","[":"]"},w1=function(t){if(t[0]==="!")return!0;for(var r=0,i=-2,o=-2,u=-2,c=-2,f=-2;rr&&(f===-1||f>o||(f=t.indexOf("\\",r),f===-1||f>o)))||u!==-1&&t[r]==="{"&&t[r+1]!=="}"&&(u=t.indexOf("}",r),u>r&&(f=t.indexOf("\\",r),f===-1||f>u))||c!==-1&&t[r]==="("&&t[r+1]==="?"&&/[:!=]/.test(t[r+2])&&t[r+3]!==")"&&(c=t.indexOf(")",r),c>r&&(f=t.indexOf("\\",r),f===-1||f>c))||i!==-1&&t[r]==="("&&t[r+1]!=="|"&&(ii&&(f=t.indexOf("\\",i),f===-1||f>c))))return!0;if(t[r]==="\\"){var h=t[r+1];r+=2;var g=Zp[h];if(g){var _=t.indexOf(g,r);_!==-1&&(r=_+1)}if(t[r]==="!")return!0}else r++}return!1},S1=function(t){if(t[0]==="!")return!0;for(var r=0;r{"use strict";var x1=Jp(),E1=q("path").posix.dirname,A1=q("os").platform()==="win32",Pa="/",C1=/\\/g,R1=/[\{\[].*[\}\]]$/,P1=/(^|[^\\])([\{\[]|\([^\)]+$)/,T1=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ed.exports=function(r,i){var o=Object.assign({flipBackslashes:!0},i);o.flipBackslashes&&A1&&r.indexOf(Pa)<0&&(r=r.replace(C1,Pa)),R1.test(r)&&(r+=Pa),r+="a";do r=E1(r);while(x1(r)||P1.test(r));return r.replace(T1,"$1")}});var As=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,r)=>t.nodes.find(i=>i.type===r);Et.exceedsLimit=(t,r,i=1,o)=>o===!1||!Et.isInteger(t)||!Et.isInteger(r)?!1:(Number(r)-Number(t))/Number(i)>=o;Et.escapeNode=(t,r=0,i)=>{let o=t.nodes[r];!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((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]);Et.flatten=(...t)=>{let r=[],i=o=>{for(let u=0;u{"use strict";var nd=As();rd.exports=(t,r={})=>{let i=(o,u={})=>{let c=r.escapeInvalid&&nd.isInvalidBrace(u),f=o.invalid===!0&&r.escapeInvalid===!0,h="";if(o.value)return(c||f)&&nd.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 sd=L((CL,id)=>{"use strict";id.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var dd=L((RL,pd)=>{"use strict";var od=sd(),$n=(t,r,i)=>{if(od(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||t===r)return String(t);if(od(r)===!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+":"+r+"="+u+c+f+h;if($n.cache.hasOwnProperty(g))return $n.cache[g].result;let _=Math.min(t,r),v=Math.max(t,r);if(Math.abs(_-v)===1){let D=t+"|"+r;return o.capture?`(${D})`:o.wrap===!1?D:`(?:${D})`}let x=hd(t)||hd(r),S={min:t,max:r,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=ud(D,Math.abs(_),S,o),_=S.a=0}return v>=0&&(H=ud(_,v,S,o)),S.negatives=O,S.positives=H,S.result=O1(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 O1(t,r,i){let o=Ta(t,r,"-",!1,i)||[],u=Ta(r,t,"",!1,i)||[],c=Ta(t,r,"-?",!0,i)||[];return o.concat(c).concat(u).join("|")}function I1(t,r){let i=1,o=1,u=cd(t,i),c=new Set([r]);for(;t<=u&&u<=r;)c.add(u),i+=1,u=cd(t,i);for(u=ld(r+1,o)-1;t1&&h.count.pop(),h.count.push(v.count[0]),h.string=h.pattern+fd(h.count),f=_+1;continue}i.isPadded&&(x=$1(_,i,o)),v.string=x+v.pattern+fd(v.count),c.push(v),f=_+1,h=v}return c}function Ta(t,r,i,o,u){let c=[];for(let f of t){let{string:h}=f;!o&&!ad(r,"string",h)&&c.push(i+h),o&&ad(r,"string",h)&&c.push(i+h)}return c}function k1(t,r){let i=[];for(let o=0;or?1:r>t?-1:0}function ad(t,r,i){return t.some(o=>o[r]===i)}function cd(t,r){return Number(String(t).slice(0,-r)+"9".repeat(r))}function ld(t,r){return t-t%Math.pow(10,r)}function fd(t){let[r=0,i=""]=t;return i||r>1?`{${r+(i?","+i:"")}}`:""}function N1(t,r,i){return`[${t}${r-t===1?"":"-"}${r}]`}function hd(t){return/^-?(0+)\d/.test(t)}function $1(t,r,i){if(!r.isPadded)return t;let o=Math.abs(r.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={};pd.exports=$n});var La=L((PL,Sd)=>{"use strict";var M1=q("util"),_d=dd(),gd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),F1=t=>r=>t===!0?Number(r):String(r),Oa=t=>typeof t=="number"||typeof t=="string"&&t!=="",gi=t=>Number.isInteger(+t),Ia=t=>{let r=`${t}`,i=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++i]==="0";);return i>0},q1=(t,r,i)=>typeof t=="string"||typeof r=="string"?!0:i.stringify===!0,H1=(t,r,i)=>{if(r>0){let o=t[0]==="-"?"-":"";o&&(t=t.slice(1)),t=o+t.padStart(o?r-1:r,"0")}return i===!1?String(t):t},md=(t,r)=>{let i=t[0]==="-"?"-":"";for(i&&(t=t.slice(1),r--);t.length{t.negatives.sort((f,h)=>fh?1:0),t.positives.sort((f,h)=>fh?1:0);let i=r.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,r.wrap?`(${i}${c})`:c},yd=(t,r,i,o)=>{if(i)return _d(t,r,{wrap:!1,...o});let u=String.fromCharCode(t);if(t===r)return u;let c=String.fromCharCode(r);return`[${u}-${c}]`},vd=(t,r,i)=>{if(Array.isArray(t)){let o=i.wrap===!0,u=i.capture?"":"?:";return o?`(${u}${t.join("|")})`:t.join("|")}return _d(t,r,i)},bd=(...t)=>new RangeError("Invalid range arguments: "+M1.inspect(...t)),wd=(t,r,i)=>{if(i.strictRanges===!0)throw bd([t,r]);return[]},W1=(t,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},U1=(t,r,i=1,o={})=>{let u=Number(t),c=Number(r);if(!Number.isInteger(u)||!Number.isInteger(c)){if(o.strictRanges===!0)throw bd([t,r]);return[]}u===0&&(u=0),c===0&&(c=0);let f=u>c,h=String(t),g=String(r),_=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&&q1(t,r,o)===!1,H=o.transform||F1(S);if(o.toRegex&&i===1)return yd(md(t,x),md(r,x),!0,o);let O={negatives:[],positives:[]},D=te=>O[te<0?"negatives":"positives"].push(Math.abs(te)),j=[],W=0;for(;f?u>=c:u<=c;)o.toRegex===!0&&i>1?D(u):j.push(H1(H(u,W),x,S)),u=f?u-i:u+i,W++;return o.toRegex===!0?i>1?B1(O,o):vd(j,null,{wrap:!1,...o}):j},G1=(t,r,i=1,o={})=>{if(!gi(t)&&t.length>1||!gi(r)&&r.length>1)return wd(t,r,o);let u=o.transform||(S=>String.fromCharCode(S)),c=`${t}`.charCodeAt(0),f=`${r}`.charCodeAt(0),h=c>f,g=Math.min(c,f),_=Math.max(c,f);if(o.toRegex&&i===1)return yd(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?vd(v,null,{wrap:!1,options:o}):v},Rs=(t,r,i,o={})=>{if(r==null&&Oa(t))return[t];if(!Oa(t)||!Oa(r))return wd(t,r,o);if(typeof i=="function")return Rs(t,r,1,{transform:i});if(gd(i))return Rs(t,r,0,i);let u={...o};return u.capture===!0&&(u.wrap=!0),i=i||u.step||1,gi(i)?gi(t)&&gi(r)?U1(t,r,i,u):G1(t,r,Math.max(Math.abs(i),1),u):i!=null&&!gd(i)?W1(i,u):Rs(t,r,1,i)};Sd.exports=Rs});var Ad=L((TL,Ed)=>{"use strict";var K1=La(),xd=As(),j1=(t,r={})=>{let i=(o,u={})=>{let c=xd.isInvalidBrace(u),f=o.invalid===!0&&r.escapeInvalid===!0,h=c===!0||f===!0,g=r.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=xd.reduce(o.nodes),x=K1(...v,{...r,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)};Ed.exports=j1});var Pd=L((OL,Rd)=>{"use strict";var X1=La(),Cd=Cs(),fr=As(),Mn=(t="",r="",i=!1)=>{let o=[];if(t=[].concat(t),r=[].concat(r),!r.length)return t;if(!t.length)return i?fr.flatten(r).map(u=>`{${u}}`):r;for(let u of t)if(Array.isArray(u))for(let c of u)o.push(Mn(c,r,i));else for(let c of r)i===!0&&typeof c=="string"&&(c=`{${c}}`),o.push(Array.isArray(c)?Mn(u,c,i):u+c);return fr.flatten(o)},z1=(t,r={})=>{let i=r.rangeLimit===void 0?1e3:r.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(),Cd(u,r)));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,r.step,i))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=X1(...x,r);S.length===0&&(S=Cd(u,r)),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";Td.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 Nd=L((LL,Dd)=>{"use strict";var Y1=Cs(),{MAX_LENGTH:Id,CHAR_BACKSLASH:ka,CHAR_BACKTICK:Q1,CHAR_COMMA:Z1,CHAR_DOT:V1,CHAR_LEFT_PARENTHESES:J1,CHAR_RIGHT_PARENTHESES:eC,CHAR_LEFT_CURLY_BRACE:tC,CHAR_RIGHT_CURLY_BRACE:nC,CHAR_LEFT_SQUARE_BRACKET:Ld,CHAR_RIGHT_SQUARE_BRACKET:kd,CHAR_DOUBLE_QUOTE:rC,CHAR_SINGLE_QUOTE:iC,CHAR_NO_BREAK_SPACE:sC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:oC}=Od(),uC=(t,r={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let i=r||{},o=typeof i.maxLength=="number"?Math.min(Id,i.maxLength):Id;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=j=>{if(j.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&j.type==="text"){h.value+=j.value;return}return f.nodes.push(j),j.parent=f,j.prev=h,h=j,j};for(D({type:"bos"});v<_;)if(f=c[c.length-1],S=O(),!(S===oC||S===sC)){if(S===ka){D({type:"text",value:(r.keepEscaping?S:"")+O()});continue}if(S===kd){D({type:"text",value:"\\"+S});continue}if(S===Ld){g++;let j=!0,W;for(;v<_&&(W=O());){if(S+=W,W===Ld){g++;continue}if(W===ka){S+=O();continue}if(W===kd&&(g--,g===0))break}D({type:"text",value:S});continue}if(S===J1){f=D({type:"paren",nodes:[]}),c.push(f),D({type:"text",value:S});continue}if(S===eC){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===rC||S===iC||S===Q1){let j=S,W;for(r.keepQuotes!==!0&&(S="");v<_&&(W=O());){if(W===ka){S+=W+O();continue}if(W===j){r.keepQuotes===!0&&(S+=W);break}S+=W}D({type:"text",value:S});continue}if(S===tC){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===nC){if(f.type!=="brace"){D({type:"text",value:S});continue}let j="close";f=c.pop(),f.close=!0,D({type:j,value:S}),x--,f=c[c.length-1];continue}if(S===Z1&&x>0){if(f.ranges>0){f.ranges=0;let j=f.nodes.shift();f.nodes=[j,{type:"text",value:Y1(f)}]}D({type:"comma",value:S}),f.commas++;continue}if(S===V1&&x>0&&f.commas===0){let j=f.nodes;if(x===0||j.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"){j.pop();let W=j[j.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 j=c[c.length-1],W=j.nodes.indexOf(f);j.nodes.splice(W,1,...f.nodes)}while(c.length>0);return D({type:"eos"}),u};Dd.exports=uC});var Fd=L((kL,Md)=>{"use strict";var $d=Cs(),aC=Ad(),cC=Pd(),lC=Nd(),ft=(t,r={})=>{let i=[];if(Array.isArray(t))for(let o of t){let u=ft.create(o,r);Array.isArray(u)?i.push(...u):i.push(u)}else i=[].concat(ft.create(t,r));return r&&r.expand===!0&&r.nodupes===!0&&(i=[...new Set(i)]),i};ft.parse=(t,r={})=>lC(t,r);ft.stringify=(t,r={})=>$d(typeof t=="string"?ft.parse(t,r):t,r);ft.compile=(t,r={})=>(typeof t=="string"&&(t=ft.parse(t,r)),aC(t,r));ft.expand=(t,r={})=>{typeof t=="string"&&(t=ft.parse(t,r));let i=cC(t,r);return r.noempty===!0&&(i=i.filter(Boolean)),r.nodupes===!0&&(i=[...new Set(i)]),i};ft.create=(t,r={})=>t===""||t.length<3?[t]:r.expand!==!0?ft.compile(t,r):ft.expand(t,r);Md.exports=ft});var mi=L((DL,Ud)=>{"use strict";var fC=q("path"),Bt="\\\\/",qd=`[^${Bt}]`,rn="\\.",hC="\\+",pC="\\?",Ps="\\/",dC="(?=.)",Hd="[^/]",Da=`(?:${Ps}|$)`,Bd=`(?:^|${Ps})`,Na=`${rn}{1,2}${Da}`,gC=`(?!${rn})`,mC=`(?!${Bd}${Na})`,_C=`(?!${rn}{0,1}${Da})`,yC=`(?!${Na})`,vC=`[^.${Ps}]`,bC=`${Hd}*?`,Wd={DOT_LITERAL:rn,PLUS_LITERAL:hC,QMARK_LITERAL:pC,SLASH_LITERAL:Ps,ONE_CHAR:dC,QMARK:Hd,END_ANCHOR:Da,DOTS_SLASH:Na,NO_DOT:gC,NO_DOTS:mC,NO_DOT_SLASH:_C,NO_DOTS_SLASH:yC,QMARK_NO_DOT:vC,STAR:bC,START_ANCHOR:Bd},wC={...Wd,SLASH_LITERAL:`[${Bt}]`,QMARK:qd,STAR:`${qd}*?`,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}]|$)`},SC={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"};Ud.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:SC,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:fC.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?wC:Wd}}});var _i=L(rt=>{"use strict";var xC=q("path"),EC=process.platform==="win32",{REGEX_BACKSLASH:AC,REGEX_REMOVE_BACKSLASH:CC,REGEX_SPECIAL_CHARS:RC,REGEX_SPECIAL_CHARS_GLOBAL:PC}=mi();rt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);rt.hasRegexChars=t=>RC.test(t);rt.isRegexChar=t=>t.length===1&&rt.hasRegexChars(t);rt.escapeRegex=t=>t.replace(PC,"\\$1");rt.toPosixSlashes=t=>t.replace(AC,"/");rt.removeBackslashes=t=>t.replace(CC,r=>r==="\\"?"":r);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:EC===!0||xC.sep==="\\";rt.escapeLast=(t,r,i)=>{let o=t.lastIndexOf(r,i);return o===-1?t:t[o-1]==="\\"?rt.escapeLast(t,r,o-1):`${t.slice(0,o)}\\${t.slice(o)}`};rt.removePrefix=(t,r={})=>{let i=t;return i.startsWith("./")&&(i=i.slice(2),r.prefix="./"),i};rt.wrapOutput=(t,r={},i={})=>{let o=i.contains?"":"^",u=i.contains?"":"$",c=`${o}(?:${t})${u}`;return r.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var Zd=L(($L,Qd)=>{"use strict";var Gd=_i(),{CHAR_ASTERISK:$a,CHAR_AT:TC,CHAR_BACKWARD_SLASH:yi,CHAR_COMMA:OC,CHAR_DOT:Ma,CHAR_EXCLAMATION_MARK:Fa,CHAR_FORWARD_SLASH:Yd,CHAR_LEFT_CURLY_BRACE:qa,CHAR_LEFT_PARENTHESES:Ha,CHAR_LEFT_SQUARE_BRACKET:IC,CHAR_PLUS:LC,CHAR_QUESTION_MARK:Kd,CHAR_RIGHT_CURLY_BRACE:kC,CHAR_RIGHT_PARENTHESES:jd,CHAR_RIGHT_SQUARE_BRACKET:DC}=mi(),Xd=t=>t===Yd||t===yi,zd=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},NC=(t,r)=>{let i=r||{},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,j=!1,W=!1,te=!1,Y=!1,Q=!1,N=!1,ne=0,Z,G,ue={value:"",depth:0,isGlob:!1},Pe=()=>_>=o,I=()=>g.charCodeAt(_+1),ve=()=>(Z=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&&Xd(me.charCodeAt(me.length-1))&&(me=me.slice(0,-1)),i.unescape===!0&&(A&&(A=Gd.removeBackslashes(A)),me&&te===!0&&(me=Gd.removeBackslashes(me)));let C={prefix:$t,input:t,start:v,base:me,glob:A,isBrace:S,isBracket:H,isGlob:O,isExtglob:D,isGlobstar:j,negated:Y,negatedExtglob:Q};if(i.tokens===!0&&(C.maxDepth=0,Xd(G)||f.push(ue),C.tokens=f),i.parts===!0||i.tokens===!0){let Be;for(let fe=0;fe{"use strict";var Ts=mi(),ht=_i(),{MAX_LENGTH:Os,POSIX_REGEX_SOURCE:$C,REGEX_NON_SPECIAL_CHARS:MC,REGEX_SPECIAL_CHARS_BACKREF:FC,REPLACEMENTS:Vd}=Ts,qC=(t,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...t,r);t.sort();let i=`[${t.join("-")}]`;try{new RegExp(i)}catch{return t.map(u=>ht.escapeRegex(u)).join("..")}return i},hr=(t,r)=>`Missing ${t}: "${r}" - use "\\\\${r}" to match literal characters`,Ba=(t,r)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Vd[t]||t;let i={...r},o=typeof i.maxLength=="number"?Math.min(Os,i.maxLength):Os,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(r),_=Ts.globChars(g),v=Ts.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:H,ONE_CHAR:O,DOTS_SLASH:D,NO_DOT:j,NO_DOT_SLASH:W,NO_DOTS_SLASH:te,QMARK:Y,QMARK_NO_DOT:Q,STAR:N,START_ANCHOR:ne}=_,Z=F=>`(${h}(?:(?!${ne}${F.dot?D:x}).)*?)`,G=i.dot?"":j,ue=i.dot?Y:Q,Pe=i.bash===!0?Z(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,C,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},Un=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)},jt=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)&&Un(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 V=(i.capture?"(":"")+$.open;jt("parens"),oe({type:F,value:_e,output:I.output?"":O}),oe({type:"paren",extglob:!0,value:Ie(),output:V}),ve.push($)},tu=F=>{let _e=F.close+(i.capture?")":""),$;if(F.type==="negate"){let V=Pe;if(F.inner&&F.inner.length>1&&F.inner.includes("/")&&(V=Z(i)),(V!==Pe||Be()||/^\)+$/.test(gt()))&&(_e=F.close=`)$))${V}`),F.inner.includes("*")&&($=gt())&&/^\.[^\\/.]+$/.test($)){let be=Ba($,{...r,fastpaths:!1}).output;_e=F.close=`)${be})${V})`}F.prev.type==="bos"&&(I.negatedExtglob=!0)}oe({type:"paren",extglob:!0,value:C,output:_e}),Xt("parens")};if(i.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let F=!1,_e=t.replace(FC,($,V,be,We,we,Gn)=>We==="\\"?(F=!0,$):We==="?"?V?V+We+(we?Y.repeat(we.length):""):Gn===0?ue+(we?Y.repeat(we.length):""):Y.repeat(be.length):We==="."?x.repeat(be.length):We==="*"?V?V+We+(we?Pe:""):Pe:V?$:`\\${$}`);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,r),I)}for(;!Be();){if(C=Ie(),C==="\0")continue;if(C==="\\"){let $=fe();if($==="/"&&i.bash!==!0||$==="."||$===";")continue;if(!$){C+="\\",oe({type:"text",value:C});continue}let V=/^\\+/.exec(gt()),be=0;if(V&&V[0].length>2&&(be=V[0].length,I.index+=be,be%2!==0&&(C+="\\")),i.unescape===!0?C=Ie():C+=Ie(),I.brackets===0){oe({type:"text",value:C});continue}}if(I.brackets>0&&(C!=="]"||A.value==="["||A.value==="[^")){if(i.posix!==!1&&C===":"){let $=A.value.slice(1);if($.includes("[")&&(A.posix=!0,$.includes(":"))){let V=A.value.lastIndexOf("["),be=A.value.slice(0,V),We=A.value.slice(V+2),we=$C[We];if(we){A.value=be+we,I.backtrack=!0,Ie(),!c.output&&f.indexOf(A)===1&&(c.output=O);continue}}}(C==="["&&fe()!==":"||C==="-"&&fe()==="]")&&(C=`\\${C}`),C==="]"&&(A.value==="["||A.value==="[^")&&(C=`\\${C}`),i.posix===!0&&C==="!"&&A.value==="["&&(C="^"),A.value+=C,Un({value:C});continue}if(I.quotes===1&&C!=='"'){C=ht.escapeRegex(C),A.value+=C,Un({value:C});continue}if(C==='"'){I.quotes=I.quotes===1?0:1,i.keepQuotes===!0&&oe({type:"text",value:C});continue}if(C==="("){jt("parens"),oe({type:"paren",value:C});continue}if(C===")"){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:C,output:I.parens?")":"\\)"}),Xt("parens");continue}if(C==="["){if(i.nobracket===!0||!gt().includes("]")){if(i.nobracket!==!0&&i.strictBrackets===!0)throw new SyntaxError(hr("closing","]"));C=`\\${C}`}else jt("brackets");oe({type:"bracket",value:C});continue}if(C==="]"){if(i.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){oe({type:"text",value:C,output:`\\${C}`});continue}if(I.brackets===0){if(i.strictBrackets===!0)throw new SyntaxError(hr("opening","["));oe({type:"text",value:C,output:`\\${C}`});continue}Xt("brackets");let $=A.value.slice(1);if(A.posix!==!0&&$[0]==="^"&&!$.includes("/")&&(C=`/${C}`),A.value+=C,Un({value:C}),i.literalBrackets===!1||ht.hasRegexChars($))continue;let V=ht.escapeRegex(A.value);if(I.output=I.output.slice(0,-A.value.length),i.literalBrackets===!0){I.output+=V,A.value=V;continue}A.value=`(${h}${V}|${A.value})`,I.output+=A.value;continue}if(C==="{"&&i.nobrace!==!0){jt("braces");let $={type:"brace",value:C,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};me.push($),oe($);continue}if(C==="}"){let $=me[me.length-1];if(i.nobrace===!0||!$){oe({type:"text",value:C,output:C});continue}let V=")";if($.dots===!0){let be=f.slice(),We=[];for(let we=be.length-1;we>=0&&(f.pop(),be[we].type!=="brace");we--)be[we].type!=="dots"&&We.unshift(be[we].value);V=qC(We,i),I.backtrack=!0}if($.comma!==!0&&$.dots!==!0){let be=I.output.slice(0,$.outputIndex),We=I.tokens.slice($.tokensIndex);$.value=$.output="\\{",C=V="\\}",I.output=be;for(let we of We)I.output+=we.output||we.value}oe({type:"brace",value:C,output:V}),Xt("braces"),me.pop();continue}if(C==="|"){ve.length>0&&ve[ve.length-1].conditions++,oe({type:"text",value:C});continue}if(C===","){let $=C,V=me[me.length-1];V&&$t[$t.length-1]==="braces"&&(V.comma=!0,$="|"),oe({type:"comma",value:C,output:$});continue}if(C==="/"){if(A.type==="dot"&&I.index===I.start+1){I.start=I.index+1,I.consumed="",I.output="",f.pop(),A=c;continue}oe({type:"slash",value:C,output:H});continue}if(C==="."){if(I.braces>0&&A.type==="dot"){A.value==="."&&(A.output=x);let $=me[me.length-1];A.type="dots",A.output+=C,A.value+=C,$.dots=!0;continue}if(I.braces+I.parens===0&&A.type!=="bos"&&A.type!=="slash"){oe({type:"text",value:C,output:x});continue}oe({type:"dot",value:C,output:x});continue}if(C==="?"){if(!(A&&A.value==="(")&&i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("qmark",C);continue}if(A&&A.type==="paren"){let V=fe(),be=C;if(V==="<"&&!ht.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(V)||V==="<"&&!/<([!=]|\w+>)/.test(gt()))&&(be=`\\${C}`),oe({type:"text",value:C,output:be});continue}if(i.dot!==!0&&(A.type==="slash"||A.type==="bos")){oe({type:"qmark",value:C,output:Q});continue}oe({type:"qmark",value:C,output:Y});continue}if(C==="!"){if(i.noextglob!==!0&&fe()==="("&&(fe(2)!=="?"||!/[!=<:]/.test(fe(3)))){Mt("negate",C);continue}if(i.nonegate!==!0&&I.index===0){an();continue}}if(C==="+"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("plus",C);continue}if(A&&A.value==="("||i.regex===!1){oe({type:"plus",value:C,output:S});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||I.parens>0){oe({type:"plus",value:C});continue}oe({type:"plus",value:S});continue}if(C==="@"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){oe({type:"at",extglob:!0,value:C,output:""});continue}oe({type:"text",value:C});continue}if(C!=="*"){(C==="$"||C==="^")&&(C=`\\${C}`);let $=MC.exec(gt());$&&(C+=$[0],I.index+=$[0].length),oe({type:"text",value:C});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=C,A.output=Pe,I.backtrack=!0,I.globstar=!0,Ye(C);continue}let F=gt();if(i.noextglob!==!0&&/^\([^?]/.test(F)){Mt("star",C);continue}if(A.type==="star"){if(i.noglobstar===!0){Ye(C);continue}let $=A.prev,V=$.prev,be=$.type==="slash"||$.type==="bos",We=V&&(V.type==="star"||V.type==="globstar");if(i.bash===!0&&(!be||F[0]&&F[0]!=="/")){oe({type:"star",value:C,output:""});continue}let we=I.braces>0&&($.type==="comma"||$.type==="brace"),Gn=ve.length&&($.type==="pipe"||$.type==="paren");if(!be&&$.type!=="paren"&&!we&&!Gn){oe({type:"star",value:C,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+=C,A.output=Z(i),I.output=A.output,I.globstar=!0,Ye(C);continue}if($.type==="slash"&&$.prev.type!=="bos"&&!We&&Be()){I.output=I.output.slice(0,-($.output+A.output).length),$.output=`(?:${$.output}`,A.type="globstar",A.output=Z(i)+(i.strictSlashes?")":"|$)"),A.value+=C,I.globstar=!0,I.output+=$.output+A.output,Ye(C);continue}if($.type==="slash"&&$.prev.type!=="bos"&&F[0]==="/"){let Kn=F[1]!==void 0?"|$":"";I.output=I.output.slice(0,-($.output+A.output).length),$.output=`(?:${$.output}`,A.type="globstar",A.output=`${Z(i)}${H}|${H}${Kn})`,A.value+=C,I.output+=$.output+A.output,I.globstar=!0,Ye(C+Ie()),oe({type:"slash",value:"/",output:""});continue}if($.type==="bos"&&F[0]==="/"){A.type="globstar",A.value+=C,A.output=`(?:^|${H}|${Z(i)}${H})`,I.output=A.output,I.globstar=!0,Ye(C+Ie()),oe({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-A.output.length),A.type="globstar",A.output=Z(i),A.value+=C,I.output+=A.output,I.globstar=!0,Ye(C);continue}let _e={type:"star",value:C,output:Pe};if(i.bash===!0){_e.output=".*?",(A.type==="bos"||A.type==="slash")&&(_e.output=G+_e.output),oe(_e);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&i.regex===!0){_e.output=C,oe(_e);continue}(I.index===I.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(I.output+=W,A.output+=W):i.dot===!0?(I.output+=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,r)=>{let i={...r},o=typeof i.maxLength=="number"?Math.min(Os,i.maxLength):Os,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);t=Vd[t]||t;let c=ht.isWindows(r),{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}=Ts.globChars(c),D=i.dot?x:v,j=i.dot?S:v,W=i.capture?"":"?:",te={negated:!1,prefix:""},Y=i.bash===!0?".*?":H;i.capture&&(Y=`(${Y})`);let Q=G=>G.noglobstar===!0?Y:`(${W}(?:(?!${O}${G.dot?_:f}).)*?)`,N=G=>{switch(G){case"*":return`${D}${g}${Y}`;case".*":return`${f}${g}${Y}`;case"*.*":return`${D}${Y}${f}${g}${Y}`;case"*/*":return`${D}${Y}${h}${g}${j}${Y}`;case"**":return D+Q(i);case"**/*":return`(?:${D}${Q(i)}${h})?${j}${g}${Y}`;case"**/*.*":return`(?:${D}${Q(i)}${h})?${j}${Y}${f}${g}${Y}`;case"**/.*":return`(?:${D}${Q(i)}${h})?${f}${g}${Y}`;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),Z=N(ne);return Z&&i.strictSlashes!==!0&&(Z+=`${h}?`),Z};Jd.exports=Ba});var ng=L((FL,tg)=>{"use strict";var HC=q("path"),BC=Zd(),Wa=eg(),Ua=_i(),WC=mi(),UC=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,r,i=!1)=>{if(Array.isArray(t)){let v=t.map(S=>De(S,r,i));return S=>{for(let H of v){let O=H(S);if(O)return O}return!1}}let o=UC(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let u=r||{},c=Ua.isWindows(r),f=o?De.compileRe(t,r):De.makeRe(t,r,!1,!0),h=f.state;delete f.state;let g=()=>!1;if(u.ignore){let v={...r,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,r,{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,r,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,r,i,u):h=r.exec(g)),{isMatch:Boolean(h),match:h,output:g}};De.matchBase=(t,r,i,o=Ua.isWindows(i))=>(r instanceof RegExp?r:De.makeRe(r,i)).test(HC.basename(t));De.isMatch=(t,r,i)=>De(r,i)(t);De.parse=(t,r)=>Array.isArray(t)?t.map(i=>De.parse(i,r)):Wa(t,{...r,fastpaths:!1});De.scan=(t,r)=>BC(t,r);De.compileRe=(t,r,i=!1,o=!1)=>{if(i===!0)return t.output;let u=r||{},c=u.contains?"":"^",f=u.contains?"":"$",h=`${c}(?:${t.output})${f}`;t&&t.negated===!0&&(h=`^(?!${h}).*$`);let g=De.toRegex(h,r);return o===!0&&(g.state=t),g};De.makeRe=(t,r={},i=!1,o=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(u.output=Wa.fastpaths(t,r)),u.output||(u=Wa(t,r)),De.compileRe(u,r,i,o)};De.toRegex=(t,r)=>{try{let i=r||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(i){if(r&&r.debug===!0)throw i;return/$^/}};De.constants=WC;tg.exports=De});var ig=L((qL,rg)=>{"use strict";rg.exports=ng()});var cg=L((HL,ag)=>{"use strict";var og=q("util"),ug=Fd(),Wt=ig(),Ga=_i(),sg=t=>t===""||t==="./",Re=(t,r,i)=>{r=[].concat(r),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 "${r.join(", ")}"`);if(i.nonull===!0||i.nullglob===!0)return i.unescape?r.map(v=>v.replace(/\\/g,"")):r}return _};Re.match=Re;Re.matcher=(t,r)=>Wt(t,r);Re.isMatch=(t,r,i)=>Wt(r,i)(t);Re.any=Re.isMatch;Re.not=(t,r,i={})=>{r=[].concat(r).map(String);let o=new Set,u=[],c=h=>{i.onResult&&i.onResult(h),u.push(h.output)},f=new Set(Re(t,r,{...i,onResult:c}));for(let h of u)f.has(h)||o.add(h);return[...o]};Re.contains=(t,r,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${og.inspect(t)}"`);if(Array.isArray(r))return r.some(o=>Re.contains(t,o,i));if(typeof r=="string"){if(sg(t)||sg(r))return!1;if(t.includes(r)||t.startsWith("./")&&t.slice(2).includes(r))return!0}return Re.isMatch(t,r,{...i,contains:!0})};Re.matchKeys=(t,r,i)=>{if(!Ga.isObject(t))throw new TypeError("Expected the first argument to be an object");let o=Re(Object.keys(t),r,i),u={};for(let c of o)u[c]=t[c];return u};Re.some=(t,r,i)=>{let o=[].concat(t);for(let u of[].concat(r)){let c=Wt(String(u),i);if(o.some(f=>c(f)))return!0}return!1};Re.every=(t,r,i)=>{let o=[].concat(t);for(let u of[].concat(r)){let c=Wt(String(u),i);if(!o.every(f=>c(f)))return!1}return!0};Re.all=(t,r,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${og.inspect(t)}"`);return[].concat(r).every(o=>Wt(o,i)(t))};Re.capture=(t,r,i)=>{let o=Ga.isWindows(i),c=Wt.makeRe(String(t),{...i,capture:!0}).exec(o?Ga.toPosixSlashes(r):r);if(c)return c.slice(1).map(f=>f===void 0?"":f)};Re.makeRe=(...t)=>Wt.makeRe(...t);Re.scan=(...t)=>Wt.scan(...t);Re.parse=(t,r)=>{let i=[];for(let o of[].concat(t||[]))for(let u of ug(String(o),r))i.push(Wt.parse(u,r));return i};Re.braces=(t,r)=>{if(typeof t!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!/\{.*\}/.test(t)?[t]:ug(t,r)};Re.braceExpand=(t,r)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Re.braces(t,{...r,expand:!0})};ag.exports=Re});var _g=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 GC=q("path"),KC=td(),Ka=cg(),lg="**",jC="\\",XC=/[*?]|^!/,zC=/\[[^[]*]/,YC=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,QC=/[!*+?@]\([^(]*\)/,ZC=/,|\.\./,VC=/(?!^)\/{2,}/g;function fg(t,r={}){return!hg(t,r)}re.isStaticPattern=fg;function hg(t,r={}){return t===""?!1:!!(r.caseSensitiveMatch===!1||t.includes(jC)||XC.test(t)||zC.test(t)||YC.test(t)||r.extglob!==!1&&QC.test(t)||r.braceExpansion!==!1&&JC(t))}re.isDynamicPattern=hg;function JC(t){let r=t.indexOf("{");if(r===-1)return!1;let i=t.indexOf("}",r+1);if(i===-1)return!1;let o=t.slice(r,i);return ZC.test(o)}function eR(t){return Is(t)?t.slice(1):t}re.convertToPositivePattern=eR;function tR(t){return"!"+t}re.convertToNegativePattern=tR;function Is(t){return t.startsWith("!")&&t[1]!=="("}re.isNegativePattern=Is;function pg(t){return!Is(t)}re.isPositivePattern=pg;function nR(t){return t.filter(Is)}re.getNegativePatterns=nR;function rR(t){return t.filter(pg)}re.getPositivePatterns=rR;function iR(t){return t.filter(r=>!ja(r))}re.getPatternsInsideCurrentDirectory=iR;function sR(t){return t.filter(ja)}re.getPatternsOutsideCurrentDirectory=sR;function ja(t){return t.startsWith("..")||t.startsWith("./..")}re.isPatternRelatedToParentDirectory=ja;function oR(t){return KC(t,{flipBackslashes:!1})}re.getBaseDirectory=oR;function uR(t){return t.includes(lg)}re.hasGlobStar=uR;function dg(t){return t.endsWith("/"+lg)}re.endsWithSlashGlobStar=dg;function aR(t){let r=GC.basename(t);return dg(t)||fg(r)}re.isAffectDepthOfReadingPattern=aR;function cR(t){return t.reduce((r,i)=>r.concat(gg(i)),[])}re.expandPatternsWithBraceExpansion=cR;function gg(t){let r=Ka.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return r.sort((i,o)=>i.length-o.length),r.filter(i=>i!=="")}re.expandBraceExpansion=gg;function lR(t,r){let{parts:i}=Ka.scan(t,Object.assign(Object.assign({},r),{parts:!0}));return i.length===0&&(i=[t]),i[0].startsWith("/")&&(i[0]=i[0].slice(1),i.unshift("")),i}re.getPatternParts=lR;function mg(t,r){return Ka.makeRe(t,r)}re.makeRe=mg;function fR(t,r){return t.map(i=>mg(i,r))}re.convertPatternsToRe=fR;function hR(t,r){return r.some(i=>i.test(t))}re.matchAny=hR;function pR(t){return t.replace(VC,"/")}re.removeDuplicateSlashes=pR});var wg=L((WL,bg)=>{"use strict";var dR=q("stream"),yg=dR.PassThrough,gR=Array.prototype.slice;bg.exports=mR;function mR(){let t=[],r=gR.call(arguments),i=!1,o=r[r.length-1];o&&!Array.isArray(o)&&o.pipe==null?r.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=yg(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",j),S()}function j(W){f.emit("error",W)}if(O._readableState.endEmitted)return S();O.on("merge2UnpipeEnd",D),O.on("end",D),c&&O.on("error",j),O.pipe(f,{end:!1}),O.resume()}for(let O=0;O{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.merge=void 0;var _R=wg();function yR(t){let r=_R(t);return t.forEach(i=>{i.once("error",o=>r.emit("error",o))}),r.once("close",()=>Sg(t)),r.once("end",()=>Sg(t)),r}Ls.merge=yR;function Sg(t){t.forEach(r=>r.emit("close"))}});var Eg=L(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.isEmpty=pr.isString=void 0;function vR(t){return typeof t=="string"}pr.isString=vR;function bR(t){return t===""}pr.isEmpty=bR});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 wR=Wp();Xe.array=wR;var SR=Up();Xe.errno=SR;var xR=Gp();Xe.fs=xR;var ER=zp();Xe.path=ER;var AR=_g();Xe.pattern=AR;var CR=xg();Xe.stream=CR;var RR=Eg();Xe.string=RR});var Pg=L(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var Lt=sn();function PR(t,r){let i=Ag(t,r),o=Ag(r.ignore,r),u=Cg(i),c=Rg(i,o),f=u.filter(v=>Lt.pattern.isStaticPattern(v,r)),h=u.filter(v=>Lt.pattern.isDynamicPattern(v,r)),g=Xa(f,c,!1),_=Xa(h,c,!0);return g.concat(_)}ze.generate=PR;function Ag(t,r){let i=t;return r.braceExpansion&&(i=Lt.pattern.expandPatternsWithBraceExpansion(i)),r.baseNameMatch&&(i=i.map(o=>o.includes("/")?o:`**/${o}`)),i.map(o=>Lt.pattern.removeDuplicateSlashes(o))}function Xa(t,r,i){let o=[],u=Lt.pattern.getPatternsOutsideCurrentDirectory(t),c=Lt.pattern.getPatternsInsideCurrentDirectory(t),f=za(u),h=za(c);return o.push(...Ya(f,r,i)),"."in h?o.push(Qa(".",c,r,i)):o.push(...Ya(h,r,i)),o}ze.convertPatternsToTasks=Xa;function Cg(t){return Lt.pattern.getPositivePatterns(t)}ze.getPositivePatterns=Cg;function Rg(t,r){return Lt.pattern.getNegativePatterns(t).concat(r).map(Lt.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=Rg;function za(t){let r={};return t.reduce((i,o)=>{let u=Lt.pattern.getBaseDirectory(o);return u in i?i[u].push(o):i[u]=[o],i},r)}ze.groupPatternsByBaseDirectory=za;function Ya(t,r,i){return Object.keys(t).map(o=>Qa(o,t[o],r,i))}ze.convertPatternGroupsToTasks=Ya;function Qa(t,r,i,o){return{dynamic:o,positive:r,negative:i,base:t,patterns:[].concat(r,i.map(Lt.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=Qa});var Og=L(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.read=void 0;function TR(t,r,i){r.fs.lstat(t,(o,u)=>{if(o!==null){Tg(i,o);return}if(!u.isSymbolicLink()||!r.followSymbolicLink){Za(i,u);return}r.fs.stat(t,(c,f)=>{if(c!==null){if(r.throwErrorOnBrokenSymbolicLink){Tg(i,c);return}Za(i,u);return}r.markSymbolicLink&&(f.isSymbolicLink=()=>!0),Za(i,f)})})}ks.read=TR;function Tg(t,r){t(r)}function Za(t,r){t(null,r)}});var Ig=L(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.read=void 0;function OR(t,r){let i=r.fs.lstatSync(t);if(!i.isSymbolicLink()||!r.followSymbolicLink)return i;try{let o=r.fs.statSync(t);return r.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!r.throwErrorOnBrokenSymbolicLink)return i;throw o}}Ds.read=OR});var Lg=L(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.createFileSystemAdapter=vn.FILE_SYSTEM_ADAPTER=void 0;var Ns=q("fs");vn.FILE_SYSTEM_ADAPTER={lstat:Ns.lstat,stat:Ns.stat,lstatSync:Ns.lstatSync,statSync:Ns.statSync};function IR(t){return t===void 0?vn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},vn.FILE_SYSTEM_ADAPTER),t)}vn.createFileSystemAdapter=IR});var kg=L(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var LR=Lg(),Va=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=LR.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,i){return r??i}};Ja.default=Va});var Fn=L(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.statSync=bn.stat=bn.Settings=void 0;var Dg=Og(),kR=Ig(),ec=kg();bn.Settings=ec.default;function DR(t,r,i){if(typeof r=="function"){Dg.read(t,tc(),r);return}Dg.read(t,tc(r),i)}bn.stat=DR;function NR(t,r){let i=tc(r);return kR.read(t,i)}bn.statSync=NR;function tc(t={}){return t instanceof ec.default?t:new ec.default(t)}});var Mg=L((VL,$g)=>{var Ng;$g.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Ng||(Ng=Promise.resolve())).then(t).catch(r=>setTimeout(()=>{throw r},0))});var qg=L((JL,Fg)=>{Fg.exports=MR;var $R=Mg();function MR(t,r){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 _(){r&&r(g,i),r=null}c?$R(_):_()}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(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var $s=process.versions.node.split(".");if($s[0]===void 0||$s[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Hg=Number.parseInt($s[0],10),FR=Number.parseInt($s[1],10),Bg=10,qR=10,HR=Hg>Bg,BR=Hg===Bg&&FR>=qR;Ms.IS_SUPPORT_READDIR_WITH_FILE_TYPES=HR||BR});var Wg=L(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.createDirentFromStats=void 0;var rc=class{constructor(r,i){this.name=r,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 WR(t,r){return new rc(t,r)}Fs.createDirentFromStats=WR});var ic=L(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.fs=void 0;var UR=Wg();qs.fs=UR});var sc=L(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.joinPathSegments=void 0;function GR(t,r,i){return t.endsWith(i)?t+r:t+i+r}Hs.joinPathSegments=GR});var zg=L(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.readdir=wn.readdirWithFileTypes=wn.read=void 0;var KR=Fn(),Ug=qg(),jR=nc(),Gg=ic(),Kg=sc();function XR(t,r,i){if(!r.stats&&jR.IS_SUPPORT_READDIR_WITH_FILE_TYPES){jg(t,r,i);return}Xg(t,r,i)}wn.read=XR;function jg(t,r,i){r.fs.readdir(t,{withFileTypes:!0},(o,u)=>{if(o!==null){Bs(i,o);return}let c=u.map(h=>({dirent:h,name:h.name,path:Kg.joinPathSegments(t,h.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){oc(i,c);return}let f=c.map(h=>zR(h,r));Ug(f,(h,g)=>{if(h!==null){Bs(i,h);return}oc(i,g)})})}wn.readdirWithFileTypes=jg;function zR(t,r){return i=>{if(!t.dirent.isSymbolicLink()){i(null,t);return}r.fs.stat(t.path,(o,u)=>{if(o!==null){if(r.throwErrorOnBrokenSymbolicLink){i(o);return}i(null,t);return}t.dirent=Gg.fs.createDirentFromStats(t.name,u),i(null,t)})}}function Xg(t,r,i){r.fs.readdir(t,(o,u)=>{if(o!==null){Bs(i,o);return}let c=u.map(f=>{let h=Kg.joinPathSegments(t,f,r.pathSegmentSeparator);return g=>{KR.stat(h,r.fsStatSettings,(_,v)=>{if(_!==null){g(_);return}let x={name:f,path:h,dirent:Gg.fs.createDirentFromStats(f,v)};r.stats&&(x.stats=v),g(null,x)})}});Ug(c,(f,h)=>{if(f!==null){Bs(i,f);return}oc(i,h)})})}wn.readdir=Xg;function Bs(t,r){t(r)}function oc(t,r){t(null,r)}});var Jg=L(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.readdir=Sn.readdirWithFileTypes=Sn.read=void 0;var YR=Fn(),QR=nc(),Yg=ic(),Qg=sc();function ZR(t,r){return!r.stats&&QR.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Zg(t,r):Vg(t,r)}Sn.read=ZR;function Zg(t,r){return r.fs.readdirSync(t,{withFileTypes:!0}).map(o=>{let u={dirent:o,name:o.name,path:Qg.joinPathSegments(t,o.name,r.pathSegmentSeparator)};if(u.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let c=r.fs.statSync(u.path);u.dirent=Yg.fs.createDirentFromStats(u.name,c)}catch(c){if(r.throwErrorOnBrokenSymbolicLink)throw c}return u})}Sn.readdirWithFileTypes=Zg;function Vg(t,r){return r.fs.readdirSync(t).map(o=>{let u=Qg.joinPathSegments(t,o,r.pathSegmentSeparator),c=YR.statSync(u,r.fsStatSettings),f={name:o,path:u,dirent:Yg.fs.createDirentFromStats(o,c)};return r.stats&&(f.stats=c),f})}Sn.readdir=Vg});var em=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 VR(t){return t===void 0?xn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xn.FILE_SYSTEM_ADAPTER),t)}xn.createFileSystemAdapter=VR});var tm=L(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var JR=q("path"),eP=Fn(),tP=em(),uc=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=tP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,JR.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new eP.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,i){return r??i}};ac.default=uc});var Ws=L(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.Settings=En.scandirSync=En.scandir=void 0;var nm=zg(),nP=Jg(),cc=tm();En.Settings=cc.default;function rP(t,r,i){if(typeof r=="function"){nm.read(t,lc(),r);return}nm.read(t,lc(r),i)}En.scandir=rP;function iP(t,r){let i=lc(r);return nP.read(t,i)}En.scandirSync=iP;function lc(t={}){return t instanceof cc.default?t:new cc.default(t)}});var im=L((ck,rm)=>{"use strict";function sP(t){var r=new t,i=r;function o(){var c=r;return c.next?r=c.next:(r=new t,i=r),c.next=null,c}function u(c){i.next=c,i=c}return{get:o,release:u}}rm.exports=sP});var om=L((lk,fc)=>{"use strict";var oP=im();function sm(t,r,i){if(typeof t=="function"&&(i=r,r=t,t=null),i<1)throw new Error("fastqueue concurrency must be greater than 1");var o=oP(uP),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:j,empty:At,kill:te,killAndDrain:Y,error:Q};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 cP(t,r){return t.errorFilter===null?!0:!t.errorFilter(r)}Ut.isFatalError=cP;function lP(t,r){return t===null||t(r)}Ut.isAppliedFilter=lP;function fP(t,r){return t.split(/[/\\]/).join(r)}Ut.replacePathSegmentSeparator=fP;function hP(t,r,i){return t===""?r:t.endsWith(i)?t+r:t+i+r}Ut.joinPathSegments=hP});var dc=L(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var pP=Us(),hc=class{constructor(r,i){this._root=r,this._settings=i,this._root=pP.replacePathSegmentSeparator(r,i.pathSegmentSeparator)}};pc.default=hc});var _c=L(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var dP=q("events"),gP=Ws(),mP=om(),Gs=Us(),_P=dc(),gc=class extends _P.default{constructor(r,i){super(r,i),this._settings=i,this._scandir=gP.scandir,this._emitter=new dP.EventEmitter,this._queue=mP(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(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,i){let o={directory:r,base:i};this._queue.push(o,u=>{u!==null&&this._handleError(u)})}_worker(r,i){this._scandir(r.directory,this._settings.fsScandirSettings,(o,u)=>{if(o!==null){i(o,void 0);return}for(let c of u)this._handleEntry(c,r.base);i(null,void 0)})}_handleError(r){this._isDestroyed||!Gs.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,i){if(this._isDestroyed||this._isFatalError)return;let o=r.path;i!==void 0&&(r.path=Gs.joinPathSegments(i,r.name,this._settings.pathSegmentSeparator)),Gs.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&Gs.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(o,i===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};mc.default=gc});var um=L(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var yP=_c(),yc=class{constructor(r,i){this._root=r,this._settings=i,this._reader=new yP.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(i=>{vP(r,i)}),this._reader.onEntry(i=>{this._storage.push(i)}),this._reader.onEnd(()=>{bP(r,this._storage)}),this._reader.read()}};vc.default=yc;function vP(t,r){t(r)}function bP(t,r){t(null,r)}});var am=L(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var wP=q("stream"),SP=_c(),bc=class{constructor(r,i){this._root=r,this._settings=i,this._reader=new SP.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(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};wc.default=bc});var cm=L(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var xP=Ws(),Ks=Us(),EP=dc(),Sc=class extends EP.default{constructor(){super(...arguments),this._scandir=xP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,i){this._queue.add({directory:r,base:i})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,i){try{let o=this._scandir(r,this._settings.fsScandirSettings);for(let u of o)this._handleEntry(u,i)}catch(o){this._handleError(o)}}_handleError(r){if(!!Ks.isFatalError(this._settings,r))throw r}_handleEntry(r,i){let o=r.path;i!==void 0&&(r.path=Ks.joinPathSegments(i,r.name,this._settings.pathSegmentSeparator)),Ks.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&Ks.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(o,i===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};xc.default=Sc});var lm=L(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var AP=cm(),Ec=class{constructor(r,i){this._root=r,this._settings=i,this._reader=new AP.default(this._root,this._settings)}read(){return this._reader.read()}};Ac.default=Ec});var fm=L(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var CP=q("path"),RP=Ws(),Cc=class{constructor(r={}){this._options=r,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,CP.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(r,i){return r??i}};Rc.default=Cc});var Xs=L(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Settings=Gt.walkStream=Gt.walkSync=Gt.walk=void 0;var hm=um(),PP=am(),TP=lm(),Pc=fm();Gt.Settings=Pc.default;function OP(t,r,i){if(typeof r=="function"){new hm.default(t,js()).read(r);return}new hm.default(t,js(r)).read(i)}Gt.walk=OP;function IP(t,r){let i=js(r);return new TP.default(t,i).read()}Gt.walkSync=IP;function LP(t,r){let i=js(r);return new PP.default(t,i).read()}Gt.walkStream=LP;function js(t={}){return t instanceof Pc.default?t:new Pc.default(t)}});var zs=L(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var kP=q("path"),DP=Fn(),pm=sn(),Tc=class{constructor(r){this._settings=r,this._fsStatSettings=new DP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return kP.resolve(this._settings.cwd,r)}_makeEntry(r,i){let o={name:i,path:i,dirent:pm.fs.createDirentFromStats(i,r)};return this._settings.stats&&(o.stats=r),o}_isFatalError(r){return!pm.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};Oc.default=Tc});var kc=L(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var NP=q("stream"),$P=Fn(),MP=Xs(),FP=zs(),Ic=class extends FP.default{constructor(){super(...arguments),this._walkStream=MP.walkStream,this._stat=$P.stat}dynamic(r,i){return this._walkStream(r,i)}static(r,i){let o=r.map(this._getFullEntryPath,this),u=new NP.PassThrough({objectMode:!0});u._write=(c,f,h)=>this._getEntry(o[c],r[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(r){return new Promise((i,o)=>{this._stat(r,this._fsStatSettings,(u,c)=>u===null?i(c):o(u))})}};Lc.default=Ic});var dm=L(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});var qP=Xs(),HP=zs(),BP=kc(),Dc=class extends HP.default{constructor(){super(...arguments),this._walkAsync=qP.walk,this._readerStream=new BP.default(this._settings)}dynamic(r,i){return new Promise((o,u)=>{this._walkAsync(r,i,(c,f)=>{c===null?o(f):u(c)})})}async static(r,i){let o=[],u=this._readerStream.static(r,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 gm=L(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var vi=sn(),$c=class{constructor(r,i,o){this._patterns=r,this._settings=i,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let r of this._patterns){let i=this._getPatternSegments(r),o=this._splitSegmentsIntoSections(i);this._storage.push({complete:o.length<=1,pattern:r,segments:i,sections:o})}}_getPatternSegments(r){return vi.pattern.getPatternParts(r,this._micromatchOptions).map(o=>vi.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:vi.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(r){return vi.array.splitWhen(r,i=>i.dynamic&&vi.pattern.hasGlobStar(i.pattern))}};Mc.default=$c});var mm=L(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var WP=gm(),Fc=class extends WP.default{match(r){let i=r.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 _m=L(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var Ys=sn(),UP=mm(),Hc=class{constructor(r,i){this._settings=r,this._micromatchOptions=i}getFilter(r,i,o){let u=this._getMatcher(i),c=this._getNegativePatternsRe(o);return f=>this._filter(r,f,u,c)}_getMatcher(r){return new UP.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let i=r.filter(Ys.pattern.isAffectDepthOfReadingPattern);return Ys.pattern.convertPatternsToRe(i,this._micromatchOptions)}_filter(r,i,o,u){if(this._isSkippedByDeep(r,i.path)||this._isSkippedSymbolicLink(i))return!1;let c=Ys.path.removeLeadingDotSegment(i.path);return this._isSkippedByPositivePatterns(c,o)?!1:this._isSkippedByNegativePatterns(c,u)}_isSkippedByDeep(r,i){return this._settings.deep===1/0?!1:this._getEntryLevel(r,i)>=this._settings.deep}_getEntryLevel(r,i){let o=i.split("/").length;if(r==="")return o;let u=r.split("/").length;return o-u}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,i){return!this._settings.baseNameMatch&&!i.match(r)}_isSkippedByNegativePatterns(r,i){return!Ys.pattern.matchAny(r,i)}};Bc.default=Hc});var ym=L(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var qn=sn(),Wc=class{constructor(r,i){this._settings=r,this._micromatchOptions=i,this.index=new Map}getFilter(r,i){let o=qn.pattern.convertPatternsToRe(r,this._micromatchOptions),u=qn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return c=>this._filter(c,o,u)}_filter(r,i,o){let u=qn.path.removeLeadingDotSegment(r.path);if(this._settings.unique&&this._isDuplicateEntry(u)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)||this._isSkippedByAbsoluteNegativePatterns(u,o))return!1;let c=r.dirent.isDirectory(),f=this._isMatchToPatterns(u,i,c)&&!this._isMatchToPatterns(u,o,c);return this._settings.unique&&f&&this._createIndexRecord(u),f}_isDuplicateEntry(r){return this.index.has(r)}_createIndexRecord(r){this.index.set(r,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(r,i){if(!this._settings.absolute)return!1;let o=qn.path.makeAbsolute(this._settings.cwd,r);return qn.pattern.matchAny(o,i)}_isMatchToPatterns(r,i,o){let u=qn.pattern.matchAny(r,i);return!u&&o?qn.pattern.matchAny(r+"/",i):u}};Uc.default=Wc});var vm=L(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var GP=sn(),Gc=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return GP.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};Kc.default=Gc});var wm=L(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var bm=sn(),jc=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let i=r.path;return this._settings.absolute&&(i=bm.path.makeAbsolute(this._settings.cwd,i),i=bm.path.unixify(i)),this._settings.markDirectories&&r.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:i}):i}};Xc.default=jc});var Qs=L(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var KP=q("path"),jP=_m(),XP=ym(),zP=vm(),YP=wm(),zc=class{constructor(r){this._settings=r,this.errorFilter=new zP.default(this._settings),this.entryFilter=new XP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new jP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new YP.default(this._settings)}_getRootDirectory(r){return KP.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let i=r.base==="."?"":r.base;return{basePath:i,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(i,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.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 Sm=L(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var QP=dm(),ZP=Qs(),Qc=class extends ZP.default{constructor(){super(...arguments),this._reader=new QP.default(this._settings)}async read(r){let i=this._getRootDirectory(r),o=this._getReaderOptions(r);return(await this.api(i,r,o)).map(c=>o.transform(c))}api(r,i,o){return i.dynamic?this._reader.dynamic(r,o):this._reader.static(i.patterns,o)}};Zc.default=Qc});var xm=L(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var VP=q("stream"),JP=kc(),eT=Qs(),Vc=class extends eT.default{constructor(){super(...arguments),this._reader=new JP.default(this._settings)}read(r){let i=this._getRootDirectory(r),o=this._getReaderOptions(r),u=this.api(i,r,o),c=new VP.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(r,i,o){return i.dynamic?this._reader.dynamic(r,o):this._reader.static(i.patterns,o)}};Jc.default=Vc});var Em=L(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var tT=Fn(),nT=Xs(),rT=zs(),el=class extends rT.default{constructor(){super(...arguments),this._walkSync=nT.walkSync,this._statSync=tT.statSync}dynamic(r,i){return this._walkSync(r,i)}static(r,i){let o=[];for(let u of r){let c=this._getFullEntryPath(u),f=this._getEntry(c,u,i);f===null||!i.entryFilter(f)||o.push(f)}return o}_getEntry(r,i,o){try{let u=this._getStat(r);return this._makeEntry(u,i)}catch(u){if(o.errorFilter(u))return null;throw u}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};tl.default=el});var Am=L(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var iT=Em(),sT=Qs(),nl=class extends sT.default{constructor(){super(...arguments),this._reader=new iT.default(this._settings)}read(r){let i=this._getRootDirectory(r),o=this._getReaderOptions(r);return this.api(i,r,o).map(o.transform)}api(r,i,o){return i.dynamic?this._reader.dynamic(r,o):this._reader.static(i.patterns,o)}};rl.default=nl});var Cm=L(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gr=q("fs"),oT=q("os"),uT=Math.max(oT.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(r={}){this._options=r,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,uT),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(r,i){return r===void 0?i:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},mr.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};mr.default=il});var al=L((Nk,Pm)=>{"use strict";var Rm=Pg(),aT=Sm(),cT=xm(),lT=Am(),sl=Cm(),Ct=sn();async function ol(t,r){kt(t);let i=ul(t,aT.default,r),o=await Promise.all(i);return Ct.array.flatten(o)}(function(t){t.glob=t,t.globSync=r,t.globStream=i,t.async=t;function r(_,v){kt(_);let x=ul(_,lT.default,v);return Ct.array.flatten(x)}t.sync=r;function i(_,v){kt(_);let x=ul(_,cT.default,v);return Ct.stream.merge(x)}t.stream=i;function o(_,v){kt(_);let x=[].concat(_),S=new sl.default(v);return Rm.generate(x,S)}t.generateTasks=o;function u(_,v){kt(_);let x=new sl.default(v);return Ct.pattern.isDynamicPattern(_,x)}t.isDynamicPattern=u;function c(_){return kt(_),Ct.path.escape(_)}t.escapePath=c;function f(_){return kt(_),Ct.path.convertPathToPattern(_)}t.convertPathToPattern=f;let h;(function(_){function v(S){return kt(S),Ct.path.escapePosixPath(S)}_.escapePath=v;function x(S){return kt(S),Ct.path.convertPosixPathToPattern(S)}_.convertPathToPattern=x})(h=t.posix||(t.posix={}));let g;(function(_){function v(S){return kt(S),Ct.path.escapeWindowsPath(S)}_.escapePath=v;function x(S){return kt(S),Ct.path.convertWindowsPathToPattern(S)}_.convertPathToPattern=x})(g=t.win32||(t.win32={}))})(ol||(ol={}));function ul(t,r,i){let o=[].concat(t),u=new sl.default(i),c=Rm.generate(o,u),f=new r(u);return c.map(f.read,f)}function kt(t){if(![].concat(t).every(o=>Ct.string.isString(o)&&!Ct.string.isEmpty(o)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Pm.exports=ol});var Bm=L((Uk,Hm)=>{function Lm(t){return Array.isArray(t)?t:[t]}var $m="",km=" ",fl="\\",fT=/^\s+$/,hT=/(?:[^\\]|^)\\$/,pT=/^\\!/,dT=/^\\#/,gT=/\r?\n/g,mT=/^\.*\/|^\.+$/,hl="/",Mm="node-ignore";typeof Symbol<"u"&&(Mm=Symbol.for("node-ignore"));var Dm=Mm,_T=(t,r,i)=>Object.defineProperty(t,r,{value:i}),yT=/([0-z])-([0-z])/g,Fm=()=>!1,vT=t=>t.replace(yT,(r,i,o)=>i.charCodeAt(0)<=o.charCodeAt(0)?r:$m),bT=t=>{let{length:r}=t;return t.slice(0,r-r%2)},wT=[[/\\?\s+$/,t=>t.indexOf("\\")===0?km:$m],[/\\\s/g,()=>km],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,r,i)=>r+6{let o=i.replace(/\\\*/g,"[^\\/]*");return r+o}],[/\\\\\\(?=[$.|*+(){^])/g,()=>fl],[/\\\\/g,()=>fl],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,r,i,o,u)=>r===fl?`\\[${i}${bT(o)}${u}`:u==="]"&&o.length%2===0?`[${vT(i)}${o}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,r)=>`${r?`${r}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Nm=Object.create(null),ST=(t,r)=>{let i=Nm[t];return i||(i=wT.reduce((o,u)=>o.replace(u[0],u[1].bind(t)),t),Nm[t]=i),r?new RegExp(i,"i"):new RegExp(i)},gl=t=>typeof t=="string",xT=t=>t&&gl(t)&&!fT.test(t)&&!hT.test(t)&&t.indexOf("#")!==0,ET=t=>t.split(gT),pl=class{constructor(r,i,o,u){this.origin=r,this.pattern=i,this.negative=o,this.regex=u}},AT=(t,r)=>{let i=t,o=!1;t.indexOf("!")===0&&(o=!0,t=t.substr(1)),t=t.replace(pT,"!").replace(dT,"#");let u=ST(t,r);return new pl(i,t,o,u)},CT=(t,r)=>{throw new r(t)},on=(t,r,i)=>gl(t)?t?on.isNotRelative(t)?i(`path should be a \`path.relative()\`d string, but got "${r}"`,RangeError):!0:i("path must not be empty",TypeError):i(`path must be a string, but got \`${r}\``,TypeError),qm=t=>mT.test(t);on.isNotRelative=qm;on.convert=t=>t;var dl=class{constructor({ignorecase:r=!0,ignoreCase:i=r,allowRelativePaths:o=!1}={}){_T(this,Dm,!0),this._rules=[],this._ignoreCase=i,this._allowRelativePaths=o,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(r){if(r&&r[Dm]){this._rules=this._rules.concat(r._rules),this._added=!0;return}if(xT(r)){let i=AT(r,this._ignoreCase);this._added=!0,this._rules.push(i)}}add(r){return this._added=!1,Lm(gl(r)?ET(r):r).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(r){return this.add(r)}_testOne(r,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(r)&&(o=!f,u=f)}),{ignored:o,unignored:u}}_test(r,i,o,u){let c=r&&on.convert(r);return on(c,r,this._allowRelativePaths?Fm:CT),this._t(c,i,o,u)}_t(r,i,o,u){if(r in i)return i[r];if(u||(u=r.split(hl)),u.pop(),!u.length)return i[r]=this._testOne(r,o);let c=this._t(u.join(hl)+hl,i,o,u);return i[r]=c.ignored?c:this._testOne(r,o)}ignores(r){return this._test(r,this._ignoreCache,!1).ignored}createFilter(){return r=>!this.ignores(r)}filter(r){return Lm(r).filter(this.createFilter())}test(r){return this._test(r,this._testCache,!0)}},Vs=t=>new dl(t),RT=t=>on(t&&on.convert(t),t,Fm);Vs.isPathValid=RT;Vs.default=Vs;Hm.exports=Vs;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 r=/^[a-z]:\//i;on.isNotRelative=i=>r.test(i)||qm(i)}});var wr=L((br,Si)=>{(function(){var t,r="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,j=4,W=8,te=16,Y=32,Q=64,N=128,ne=256,Z=512,G=30,ue="...",Pe=800,I=16,ve=1,me=2,$t=3,A=1/0,C=9007199254740991,Be=17976931348623157e292,fe=0/0,Ie=4294967295,gt=Ie-1,Ye=Ie>>>1,Un=[["ary",N],["bind",O],["bindKey",D],["curry",W],["curryRight",te],["flip",Z],["partial",Y],["partialRight",Q],["rearg",ne]],an="[object Arguments]",jt="[object Array]",Xt="[object AsyncFunction]",oe="[object Boolean]",Mt="[object Date]",tu="[object DOMException]",F="[object Error]",_e="[object Function]",$="[object GeneratorFunction]",V="[object Map]",be="[object Number]",We="[object Null]",we="[object Object]",Gn="[object Promise]",Kn="[object Proxy]",Yr="[object RegExp]",Rt="[object Set]",Qr="[object String]",ki="[object Symbol]",vv="[object Undefined]",Zr="[object WeakMap]",bv="[object WeakSet]",Vr="[object ArrayBuffer]",jn="[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,Sv=/\b(__p \+=) '' \+/g,xv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vl=/&(?:amp|lt|gt|quot|#39);/g,Jl=/[&<>"']/g,Ev=RegExp(Vl.source),Av=RegExp(Jl.source),Cv=/<%-([\s\S]+?)%>/g,Rv=/<%([\s\S]+?)%>/g,ef=/<%=([\s\S]+?)%>/g,Pv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tv=/^\w*$/,Ov=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fu=/[\\^$.*+?()[\]{}|]/g,Iv=RegExp(fu.source),hu=/^\s+/,Lv=/\s/,kv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dv=/\{\n\/\* \[wrapped with (.+)\] \*/,Nv=/,? & /,$v=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mv=/[()=,{}\[\]\/\s]/,Fv=/\\(\\)?/g,qv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tf=/\w*$/,Hv=/^[-+]0x[0-9a-f]+$/i,Bv=/^0b[01]+$/i,Wv=/^\[object .+?Constructor\]$/,Uv=/^0o[0-7]+$/i,Gv=/^(?:0|[1-9]\d*)$/,Kv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Di=/($^)/,jv=/['\n\r\u2028\u2029\\]/g,Ni="\\ud800-\\udfff",Xv="\\u0300-\\u036f",zv="\\ufe20-\\ufe2f",Yv="\\u20d0-\\u20ff",nf=Xv+zv+Yv,rf="\\u2700-\\u27bf",sf="a-z\\xdf-\\xf6\\xf8-\\xff",Qv="\\xac\\xb1\\xd7\\xf7",Zv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vv="\\u2000-\\u206f",Jv=" \\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",of="A-Z\\xc0-\\xd6\\xd8-\\xde",uf="\\ufe0e\\ufe0f",af=Qv+Zv+Vv+Jv,pu="['\u2019]",eb="["+Ni+"]",cf="["+af+"]",$i="["+nf+"]",lf="\\d+",tb="["+rf+"]",ff="["+sf+"]",hf="[^"+Ni+af+lf+rf+sf+of+"]",du="\\ud83c[\\udffb-\\udfff]",nb="(?:"+$i+"|"+du+")",pf="[^"+Ni+"]",gu="(?:\\ud83c[\\udde6-\\uddff]){2}",mu="[\\ud800-\\udbff][\\udc00-\\udfff]",Xn="["+of+"]",df="\\u200d",gf="(?:"+ff+"|"+hf+")",rb="(?:"+Xn+"|"+hf+")",mf="(?:"+pu+"(?:d|ll|m|re|s|t|ve))?",_f="(?:"+pu+"(?:D|LL|M|RE|S|T|VE))?",yf=nb+"?",vf="["+uf+"]?",ib="(?:"+df+"(?:"+[pf,gu,mu].join("|")+")"+vf+yf+")*",sb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ob="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bf=vf+yf+ib,ub="(?:"+[tb,gu,mu].join("|")+")"+bf,ab="(?:"+[pf+$i+"?",$i,gu,mu,eb].join("|")+")",cb=RegExp(pu,"g"),lb=RegExp($i,"g"),_u=RegExp(du+"(?="+du+")|"+ab+bf,"g"),fb=RegExp([Xn+"?"+ff+"+"+mf+"(?="+[cf,Xn,"$"].join("|")+")",rb+"+"+_f+"(?="+[cf,Xn+gf,"$"].join("|")+")",Xn+"?"+gf+"+"+mf,Xn+"+"+_f,ob,sb,lf,ub].join("|"),"g"),hb=RegExp("["+df+Ni+nf+uf+"]"),pb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,db=["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"],gb=-1,Ae={};Ae[nu]=Ae[ru]=Ae[iu]=Ae[su]=Ae[ou]=Ae[uu]=Ae[au]=Ae[cu]=Ae[lu]=!0,Ae[an]=Ae[jt]=Ae[Vr]=Ae[oe]=Ae[jn]=Ae[Mt]=Ae[F]=Ae[_e]=Ae[V]=Ae[be]=Ae[we]=Ae[Yr]=Ae[Rt]=Ae[Qr]=Ae[Zr]=!1;var Ee={};Ee[an]=Ee[jt]=Ee[Vr]=Ee[jn]=Ee[oe]=Ee[Mt]=Ee[nu]=Ee[ru]=Ee[iu]=Ee[su]=Ee[ou]=Ee[V]=Ee[be]=Ee[we]=Ee[Yr]=Ee[Rt]=Ee[Qr]=Ee[ki]=Ee[uu]=Ee[au]=Ee[cu]=Ee[lu]=!0,Ee[F]=Ee[_e]=Ee[Zr]=!1;var mb={\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"},_b={"&":"&","<":"<",">":">",'"':""","'":"'"},yb={"&":"&","<":"<",">":">",""":'"',"'":"'"},vb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bb=parseFloat,wb=parseInt,wf=typeof global=="object"&&global&&global.Object===Object&&global,Sb=typeof self=="object"&&self&&self.Object===Object&&self,qe=wf||Sb||Function("return this")(),yu=typeof br=="object"&&br&&!br.nodeType&&br,Rn=yu&&typeof Si=="object"&&Si&&!Si.nodeType&&Si,Sf=Rn&&Rn.exports===yu,vu=Sf&&wf.process,mt=function(){try{var b=Rn&&Rn.require&&Rn.require("util").types;return b||vu&&vu.binding&&vu.binding("util")}catch{}}(),xf=mt&&mt.isArrayBuffer,Ef=mt&&mt.isDate,Af=mt&&mt.isMap,Cf=mt&&mt.isRegExp,Rf=mt&&mt.isSet,Pf=mt&&mt.isTypedArray;function st(b,R,E){switch(E.length){case 0:return b.call(R);case 1:return b.call(R,E[0]);case 2:return b.call(R,E[0],E[1]);case 3:return b.call(R,E[0],E[1],E[2])}return b.apply(R,E)}function xb(b,R,E,B){for(var ie=-1,ge=b==null?0:b.length;++ie-1}function bu(b,R,E){for(var B=-1,ie=b==null?0:b.length;++B-1;);return E}function $f(b,R){for(var E=b.length;E--&&zn(R,b[E],0)>-1;);return E}function Lb(b,R){for(var E=b.length,B=0;E--;)b[E]===R&&++B;return B}var kb=Eu(mb),Db=Eu(_b);function Nb(b){return"\\"+vb[b]}function $b(b,R){return b==null?t:b[R]}function Yn(b){return hb.test(b)}function Mb(b){return pb.test(b)}function Fb(b){for(var R,E=[];!(R=b.next()).done;)E.push(R.value);return E}function Pu(b){var R=-1,E=Array(b.size);return b.forEach(function(B,ie){E[++R]=[ie,B]}),E}function Mf(b,R){return function(E){return b(R(E))}}function fn(b,R){for(var E=-1,B=b.length,ie=0,ge=[];++E-1}function Aw(e,n){var s=this.__data__,a=es(s,e);return a<0?(++this.size,s.push([e,n])):s[a][1]=n,this}zt.prototype.clear=ww,zt.prototype.delete=Sw,zt.prototype.get=xw,zt.prototype.has=Ew,zt.prototype.set=Aw;function Yt(e){var n=-1,s=e==null?0:e.length;for(this.clear();++n=n?e:n)),e}function bt(e,n,s,a,l,d){var m,y=n&_,w=n&v,P=n&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=TS(e),!y)return Je(e,m)}else{var k=je(e),M=k==_e||k==$;if(yn(e))return vh(e,y);if(k==we||k==an||M&&!l){if(m=w||M?{}:Fh(e),!y)return w?yS(e,Bw(m,e)):_S(e,Yf(m,e))}else{if(!Ee[k])return l?e:{};m=OS(e,k,y)}}d||(d=new Tt);var U=d.get(e);if(U)return U;d.set(e,m),pp(e)?e.forEach(function(ee){m.add(bt(ee,n,s,ee,e,d))}):fp(e)&&e.forEach(function(ee,he){m.set(he,bt(ee,n,s,he,e,d))});var J=P?w?ea:Ju:w?tt:He,ce=T?t:J(e);return _t(ce||e,function(ee,he){ce&&(he=ee,ee=e[he]),si(m,he,bt(ee,n,s,he,e,d))}),m}function Ww(e){var n=He(e);return function(s){return Qf(s,e,n)}}function Qf(e,n,s){var a=s.length;if(e==null)return!a;for(e=xe(e);a--;){var l=s[a],d=n[l],m=e[l];if(m===t&&!(l in e)||!d(m))return!1}return!0}function Zf(e,n,s){if(typeof e!="function")throw new yt(u);return hi(function(){e.apply(t,s)},n)}function oi(e,n,s,a){var l=-1,d=Mi,m=!0,y=e.length,w=[],P=n.length;if(!y)return w;s&&(n=Ce(n,ot(s))),a?(d=bu,m=!1):n.length>=i&&(d=Jr,m=!1,n=new On(n));e:for(;++ll?0:l+s),a=a===t||a>l?l:ae(a),a<0&&(a+=l),a=s>a?0:gp(a);s0&&s(y)?n>1?Ue(y,n-1,s,a,l):ln(l,y):a||(l[l.length]=y)}return l}var Nu=Ah(),eh=Ah(!0);function Ft(e,n){return e&&Nu(e,n,He)}function $u(e,n){return e&&eh(e,n,He)}function ns(e,n){return cn(n,function(s){return en(e[s])})}function Ln(e,n){n=mn(n,e);for(var s=0,a=n.length;e!=null&&sn}function Kw(e,n){return e!=null&&Se.call(e,n)}function jw(e,n){return e!=null&&n in xe(e)}function Xw(e,n,s){return e>=Ke(n,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&&Xi.call(y,w,1),Xi.call(e,w,1);return e}function fh(e,n){for(var s=e?n.length:0,a=s-1;s--;){var l=n[s];if(s==a||l!==d){var d=l;Jt(l)?Xi.call(e,l,1):ju(e,l)}}return e}function Uu(e,n){return e+Qi(Kf()*(n-e+1))}function oS(e,n,s,a){for(var l=-1,d=Me(Yi((n-e)/(s||1)),0),m=E(d);d--;)m[a?d:++l]=e,e+=s;return m}function Gu(e,n){var s="";if(!e||n<1||n>C)return s;do n%2&&(s+=e),n=Qi(n/2),n&&(e+=e);while(n);return s}function le(e,n){return ua(Bh(e,n,nt),e+"")}function uS(e){return zf(sr(e))}function aS(e,n){var s=sr(e);return ps(s,In(n,0,s.length))}function ci(e,n,s,a){if(!Te(e))return e;n=mn(n,e);for(var l=-1,d=n.length,m=d-1,y=e;y!=null&&++ll?0:l+n),s=s>l?l:s,s<0&&(s+=l),l=n>s?0:s-n>>>0,n>>>=0;for(var d=E(l);++a>>1,m=e[d];m!==null&&!at(m)&&(s?m<=n:m=i){var P=n?null:SS(e);if(P)return qi(P);m=!1,l=Jr,w=new On}else w=n?[]:y;e:for(;++a=a?e:wt(e,n,s)}var yh=Jb||function(e){return qe.clearTimeout(e)};function vh(e,n){if(n)return e.slice();var s=e.length,a=Hf?Hf(s):new e.constructor(s);return e.copy(a),a}function Qu(e){var n=new e.constructor(e.byteLength);return new Ki(n).set(new Ki(e)),n}function pS(e,n){var s=n?Qu(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function dS(e){var n=new e.constructor(e.source,tf.exec(e));return n.lastIndex=e.lastIndex,n}function gS(e){return ii?xe(ii.call(e)):{}}function bh(e,n){var s=n?Qu(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function wh(e,n){if(e!==n){var s=e!==t,a=e===null,l=e===e,d=at(e),m=n!==t,y=n===null,w=n===n,P=at(n);if(!y&&!P&&!d&&e>n||d&&m&&w&&!y&&!P||a&&m&&w||!s&&w||!l)return 1;if(!a&&!d&&!P&&e=y)return w;var P=s[a];return w*(P=="desc"?-1:1)}}return e.index-n.index}function Sh(e,n,s,a){for(var l=-1,d=e.length,m=s.length,y=-1,w=n.length,P=Me(d-m,0),T=E(w+P),k=!a;++y1?s[l-1]:t,m=l>2?s[2]:t;for(d=e.length>3&&typeof d=="function"?(l--,d):t,m&&Ze(s[0],s[1],m)&&(d=l<3?t:d,l=1),n=xe(n);++a-1?l[d?n[m]:m]:t}}function Ph(e){return Vt(function(n){var s=n.length,a=s,l=vt.prototype.thru;for(e&&n.reverse();a--;){var d=n[a];if(typeof d!="function")throw new yt(u);if(l&&!m&&fs(d)=="wrapper")var m=new vt([],!0)}for(a=m?a:s;++a1&&de.reverse(),T&&wy))return!1;var P=d.get(e),T=d.get(n);if(P&&T)return P==n&&T==e;var k=-1,M=!0,U=s&H?new On:t;for(d.set(e,n),d.set(n,e);++k1?"& ":"")+n[a],n=n.join(s>2?", ":" "),e.replace(kv,`{ +var plugin=(()=>{var e1=Object.create;var Ss=Object.defineProperty;var t1=Object.getOwnPropertyDescriptor;var n1=Object.getOwnPropertyNames;var r1=Object.getPrototypeOf,i1=Object.prototype.hasOwnProperty;var q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,i)=>(typeof require<"u"?require:r)[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,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Pp=(t,r)=>{for(var i in r)Ss(t,i,{get:r[i],enumerable:!0})},Tp=(t,r,i,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of n1(r))!i1.call(t,u)&&u!==i&&Ss(t,u,{get:()=>r[u],enumerable:!(o=t1(r,u))||o.enumerable});return t};var Fe=(t,r,i)=>(i=t!=null?e1(r1(t)):{},Tp(r||!t||!t.__esModule?Ss(i,"default",{value:t,enumerable:!0}):i,t)),s1=t=>Tp(Ss({},"__esModule",{value:!0}),t);var Dp=L((nL,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 Wp=L(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.splitWhen=fr.flatten=void 0;function o1(t){return t.reduce((r,i)=>[].concat(r,i),[])}fr.flatten=o1;function u1(t,r){let i=[[]],o=0;for(let u of t)r(u)?(o++,i[o]=[]):i[o].push(u);return i}fr.splitWhen=u1});var Up=L(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.isEnoentCodeError=void 0;function a1(t){return t.code==="ENOENT"}xs.isEnoentCodeError=a1});var Gp=L(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.createDirentFromStats=void 0;var Aa=class{constructor(r,i){this.name=r,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 c1(t,r){return new Aa(t,r)}Es.createDirentFromStats=c1});var zp=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 l1=q("os"),f1=q("path"),Kp=l1.platform()==="win32",h1=2,p1=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,d1=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,g1=/^\\\\([.?])/,m1=/\\(?![!()+@[\]{}])/g;function _1(t){return t.replace(/\\/g,"/")}Ne.unixify=_1;function y1(t,r){return f1.resolve(t,r)}Ne.makeAbsolute=y1;function v1(t){if(t.charAt(0)==="."){let r=t.charAt(1);if(r==="/"||r==="\\")return t.slice(h1)}return t}Ne.removeLeadingDotSegment=v1;Ne.escape=Kp?Ca:Ra;function Ca(t){return t.replace(d1,"\\$2")}Ne.escapeWindowsPath=Ca;function Ra(t){return t.replace(p1,"\\$2")}Ne.escapePosixPath=Ra;Ne.convertPathToPattern=Kp?jp:Xp;function jp(t){return Ca(t).replace(g1,"//$1").replace(m1,"/")}Ne.convertWindowsPathToPattern=jp;function Xp(t){return Ra(t)}Ne.convertPosixPathToPattern=Xp});var Qp=L((wL,Yp)=>{Yp.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(i[2])return!0;r=r.slice(i.index+i[0].length)}return!1}});var Jp=L((SL,Vp)=>{var b1=Qp(),Zp={"{":"}","(":")","[":"]"},w1=function(t){if(t[0]==="!")return!0;for(var r=0,i=-2,o=-2,u=-2,c=-2,f=-2;rr&&(f===-1||f>o||(f=t.indexOf("\\",r),f===-1||f>o)))||u!==-1&&t[r]==="{"&&t[r+1]!=="}"&&(u=t.indexOf("}",r),u>r&&(f=t.indexOf("\\",r),f===-1||f>u))||c!==-1&&t[r]==="("&&t[r+1]==="?"&&/[:!=]/.test(t[r+2])&&t[r+3]!==")"&&(c=t.indexOf(")",r),c>r&&(f=t.indexOf("\\",r),f===-1||f>c))||i!==-1&&t[r]==="("&&t[r+1]!=="|"&&(ii&&(f=t.indexOf("\\",i),f===-1||f>c))))return!0;if(t[r]==="\\"){var h=t[r+1];r+=2;var g=Zp[h];if(g){var _=t.indexOf(g,r);_!==-1&&(r=_+1)}if(t[r]==="!")return!0}else r++}return!1},S1=function(t){if(t[0]==="!")return!0;for(var r=0;r{"use strict";var x1=Jp(),E1=q("path").posix.dirname,A1=q("os").platform()==="win32",Pa="/",C1=/\\/g,R1=/[\{\[].*[\}\]]$/,P1=/(^|[^\\])([\{\[]|\([^\)]+$)/,T1=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ed.exports=function(r,i){var o=Object.assign({flipBackslashes:!0},i);o.flipBackslashes&&A1&&r.indexOf(Pa)<0&&(r=r.replace(C1,Pa)),R1.test(r)&&(r+=Pa),r+="a";do r=E1(r);while(x1(r)||P1.test(r));return r.replace(T1,"$1")}});var As=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,r)=>t.nodes.find(i=>i.type===r);Et.exceedsLimit=(t,r,i=1,o)=>o===!1||!Et.isInteger(t)||!Et.isInteger(r)?!1:(Number(r)-Number(t))/Number(i)>=o;Et.escapeNode=(t,r=0,i)=>{let o=t.nodes[r];!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((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]);Et.flatten=(...t)=>{let r=[],i=o=>{for(let u=0;u{"use strict";var nd=As();rd.exports=(t,r={})=>{let i=(o,u={})=>{let c=r.escapeInvalid&&nd.isInvalidBrace(u),f=o.invalid===!0&&r.escapeInvalid===!0,h="";if(o.value)return(c||f)&&nd.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 sd=L((CL,id)=>{"use strict";id.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var dd=L((RL,pd)=>{"use strict";var od=sd(),$n=(t,r,i)=>{if(od(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||t===r)return String(t);if(od(r)===!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+":"+r+"="+u+c+f+h;if($n.cache.hasOwnProperty(g))return $n.cache[g].result;let _=Math.min(t,r),v=Math.max(t,r);if(Math.abs(_-v)===1){let D=t+"|"+r;return o.capture?`(${D})`:o.wrap===!1?D:`(?:${D})`}let x=hd(t)||hd(r),S={min:t,max:r,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=ud(D,Math.abs(_),S,o),_=S.a=0}return v>=0&&(H=ud(_,v,S,o)),S.negatives=O,S.positives=H,S.result=O1(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 O1(t,r,i){let o=Ta(t,r,"-",!1,i)||[],u=Ta(r,t,"",!1,i)||[],c=Ta(t,r,"-?",!0,i)||[];return o.concat(c).concat(u).join("|")}function I1(t,r){let i=1,o=1,u=cd(t,i),c=new Set([r]);for(;t<=u&&u<=r;)c.add(u),i+=1,u=cd(t,i);for(u=ld(r+1,o)-1;t1&&h.count.pop(),h.count.push(v.count[0]),h.string=h.pattern+fd(h.count),f=_+1;continue}i.isPadded&&(x=$1(_,i,o)),v.string=x+v.pattern+fd(v.count),c.push(v),f=_+1,h=v}return c}function Ta(t,r,i,o,u){let c=[];for(let f of t){let{string:h}=f;!o&&!ad(r,"string",h)&&c.push(i+h),o&&ad(r,"string",h)&&c.push(i+h)}return c}function k1(t,r){let i=[];for(let o=0;or?1:r>t?-1:0}function ad(t,r,i){return t.some(o=>o[r]===i)}function cd(t,r){return Number(String(t).slice(0,-r)+"9".repeat(r))}function ld(t,r){return t-t%Math.pow(10,r)}function fd(t){let[r=0,i=""]=t;return i||r>1?`{${r+(i?","+i:"")}}`:""}function N1(t,r,i){return`[${t}${r-t===1?"":"-"}${r}]`}function hd(t){return/^-?(0+)\d/.test(t)}function $1(t,r,i){if(!r.isPadded)return t;let o=Math.abs(r.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={};pd.exports=$n});var La=L((PL,Sd)=>{"use strict";var M1=q("util"),_d=dd(),gd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),F1=t=>r=>t===!0?Number(r):String(r),Oa=t=>typeof t=="number"||typeof t=="string"&&t!=="",gi=t=>Number.isInteger(+t),Ia=t=>{let r=`${t}`,i=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++i]==="0";);return i>0},q1=(t,r,i)=>typeof t=="string"||typeof r=="string"?!0:i.stringify===!0,H1=(t,r,i)=>{if(r>0){let o=t[0]==="-"?"-":"";o&&(t=t.slice(1)),t=o+t.padStart(o?r-1:r,"0")}return i===!1?String(t):t},md=(t,r)=>{let i=t[0]==="-"?"-":"";for(i&&(t=t.slice(1),r--);t.length{t.negatives.sort((f,h)=>fh?1:0),t.positives.sort((f,h)=>fh?1:0);let i=r.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,r.wrap?`(${i}${c})`:c},yd=(t,r,i,o)=>{if(i)return _d(t,r,{wrap:!1,...o});let u=String.fromCharCode(t);if(t===r)return u;let c=String.fromCharCode(r);return`[${u}-${c}]`},vd=(t,r,i)=>{if(Array.isArray(t)){let o=i.wrap===!0,u=i.capture?"":"?:";return o?`(${u}${t.join("|")})`:t.join("|")}return _d(t,r,i)},bd=(...t)=>new RangeError("Invalid range arguments: "+M1.inspect(...t)),wd=(t,r,i)=>{if(i.strictRanges===!0)throw bd([t,r]);return[]},W1=(t,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},U1=(t,r,i=1,o={})=>{let u=Number(t),c=Number(r);if(!Number.isInteger(u)||!Number.isInteger(c)){if(o.strictRanges===!0)throw bd([t,r]);return[]}u===0&&(u=0),c===0&&(c=0);let f=u>c,h=String(t),g=String(r),_=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&&q1(t,r,o)===!1,H=o.transform||F1(S);if(o.toRegex&&i===1)return yd(md(t,x),md(r,x),!0,o);let O={negatives:[],positives:[]},D=te=>O[te<0?"negatives":"positives"].push(Math.abs(te)),j=[],W=0;for(;f?u>=c:u<=c;)o.toRegex===!0&&i>1?D(u):j.push(H1(H(u,W),x,S)),u=f?u-i:u+i,W++;return o.toRegex===!0?i>1?B1(O,o):vd(j,null,{wrap:!1,...o}):j},G1=(t,r,i=1,o={})=>{if(!gi(t)&&t.length>1||!gi(r)&&r.length>1)return wd(t,r,o);let u=o.transform||(S=>String.fromCharCode(S)),c=`${t}`.charCodeAt(0),f=`${r}`.charCodeAt(0),h=c>f,g=Math.min(c,f),_=Math.max(c,f);if(o.toRegex&&i===1)return yd(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?vd(v,null,{wrap:!1,options:o}):v},Rs=(t,r,i,o={})=>{if(r==null&&Oa(t))return[t];if(!Oa(t)||!Oa(r))return wd(t,r,o);if(typeof i=="function")return Rs(t,r,1,{transform:i});if(gd(i))return Rs(t,r,0,i);let u={...o};return u.capture===!0&&(u.wrap=!0),i=i||u.step||1,gi(i)?gi(t)&&gi(r)?U1(t,r,i,u):G1(t,r,Math.max(Math.abs(i),1),u):i!=null&&!gd(i)?W1(i,u):Rs(t,r,1,i)};Sd.exports=Rs});var Ad=L((TL,Ed)=>{"use strict";var K1=La(),xd=As(),j1=(t,r={})=>{let i=(o,u={})=>{let c=xd.isInvalidBrace(u),f=o.invalid===!0&&r.escapeInvalid===!0,h=c===!0||f===!0,g=r.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=xd.reduce(o.nodes),x=K1(...v,{...r,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)};Ed.exports=j1});var Pd=L((OL,Rd)=>{"use strict";var X1=La(),Cd=Cs(),hr=As(),Mn=(t="",r="",i=!1)=>{let o=[];if(t=[].concat(t),r=[].concat(r),!r.length)return t;if(!t.length)return i?hr.flatten(r).map(u=>`{${u}}`):r;for(let u of t)if(Array.isArray(u))for(let c of u)o.push(Mn(c,r,i));else for(let c of r)i===!0&&typeof c=="string"&&(c=`{${c}}`),o.push(Array.isArray(c)?Mn(u,c,i):u+c);return hr.flatten(o)},z1=(t,r={})=>{let i=r.rangeLimit===void 0?1e3:r.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(),Cd(u,r)));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=hr.reduce(u.nodes);if(hr.exceedsLimit(...x,r.step,i))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=X1(...x,r);S.length===0&&(S=Cd(u,r)),h.push(Mn(h.pop(),S)),u.nodes=[];return}let g=hr.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";Td.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 Nd=L((LL,Dd)=>{"use strict";var Y1=Cs(),{MAX_LENGTH:Id,CHAR_BACKSLASH:ka,CHAR_BACKTICK:Q1,CHAR_COMMA:Z1,CHAR_DOT:V1,CHAR_LEFT_PARENTHESES:J1,CHAR_RIGHT_PARENTHESES:eC,CHAR_LEFT_CURLY_BRACE:tC,CHAR_RIGHT_CURLY_BRACE:nC,CHAR_LEFT_SQUARE_BRACKET:Ld,CHAR_RIGHT_SQUARE_BRACKET:kd,CHAR_DOUBLE_QUOTE:rC,CHAR_SINGLE_QUOTE:iC,CHAR_NO_BREAK_SPACE:sC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:oC}=Od(),uC=(t,r={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let i=r||{},o=typeof i.maxLength=="number"?Math.min(Id,i.maxLength):Id;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=j=>{if(j.type==="text"&&h.type==="dot"&&(h.type="text"),h&&h.type==="text"&&j.type==="text"){h.value+=j.value;return}return f.nodes.push(j),j.parent=f,j.prev=h,h=j,j};for(D({type:"bos"});v<_;)if(f=c[c.length-1],S=O(),!(S===oC||S===sC)){if(S===ka){D({type:"text",value:(r.keepEscaping?S:"")+O()});continue}if(S===kd){D({type:"text",value:"\\"+S});continue}if(S===Ld){g++;let j=!0,W;for(;v<_&&(W=O());){if(S+=W,W===Ld){g++;continue}if(W===ka){S+=O();continue}if(W===kd&&(g--,g===0))break}D({type:"text",value:S});continue}if(S===J1){f=D({type:"paren",nodes:[]}),c.push(f),D({type:"text",value:S});continue}if(S===eC){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===rC||S===iC||S===Q1){let j=S,W;for(r.keepQuotes!==!0&&(S="");v<_&&(W=O());){if(W===ka){S+=W+O();continue}if(W===j){r.keepQuotes===!0&&(S+=W);break}S+=W}D({type:"text",value:S});continue}if(S===tC){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===nC){if(f.type!=="brace"){D({type:"text",value:S});continue}let j="close";f=c.pop(),f.close=!0,D({type:j,value:S}),x--,f=c[c.length-1];continue}if(S===Z1&&x>0){if(f.ranges>0){f.ranges=0;let j=f.nodes.shift();f.nodes=[j,{type:"text",value:Y1(f)}]}D({type:"comma",value:S}),f.commas++;continue}if(S===V1&&x>0&&f.commas===0){let j=f.nodes;if(x===0||j.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"){j.pop();let W=j[j.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 j=c[c.length-1],W=j.nodes.indexOf(f);j.nodes.splice(W,1,...f.nodes)}while(c.length>0);return D({type:"eos"}),u};Dd.exports=uC});var Fd=L((kL,Md)=>{"use strict";var $d=Cs(),aC=Ad(),cC=Pd(),lC=Nd(),ft=(t,r={})=>{let i=[];if(Array.isArray(t))for(let o of t){let u=ft.create(o,r);Array.isArray(u)?i.push(...u):i.push(u)}else i=[].concat(ft.create(t,r));return r&&r.expand===!0&&r.nodupes===!0&&(i=[...new Set(i)]),i};ft.parse=(t,r={})=>lC(t,r);ft.stringify=(t,r={})=>$d(typeof t=="string"?ft.parse(t,r):t,r);ft.compile=(t,r={})=>(typeof t=="string"&&(t=ft.parse(t,r)),aC(t,r));ft.expand=(t,r={})=>{typeof t=="string"&&(t=ft.parse(t,r));let i=cC(t,r);return r.noempty===!0&&(i=i.filter(Boolean)),r.nodupes===!0&&(i=[...new Set(i)]),i};ft.create=(t,r={})=>t===""||t.length<3?[t]:r.expand!==!0?ft.compile(t,r):ft.expand(t,r);Md.exports=ft});var mi=L((DL,Ud)=>{"use strict";var fC=q("path"),Bt="\\\\/",qd=`[^${Bt}]`,rn="\\.",hC="\\+",pC="\\?",Ps="\\/",dC="(?=.)",Hd="[^/]",Da=`(?:${Ps}|$)`,Bd=`(?:^|${Ps})`,Na=`${rn}{1,2}${Da}`,gC=`(?!${rn})`,mC=`(?!${Bd}${Na})`,_C=`(?!${rn}{0,1}${Da})`,yC=`(?!${Na})`,vC=`[^.${Ps}]`,bC=`${Hd}*?`,Wd={DOT_LITERAL:rn,PLUS_LITERAL:hC,QMARK_LITERAL:pC,SLASH_LITERAL:Ps,ONE_CHAR:dC,QMARK:Hd,END_ANCHOR:Da,DOTS_SLASH:Na,NO_DOT:gC,NO_DOTS:mC,NO_DOT_SLASH:_C,NO_DOTS_SLASH:yC,QMARK_NO_DOT:vC,STAR:bC,START_ANCHOR:Bd},wC={...Wd,SLASH_LITERAL:`[${Bt}]`,QMARK:qd,STAR:`${qd}*?`,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}]|$)`},SC={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"};Ud.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:SC,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:fC.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?wC:Wd}}});var _i=L(rt=>{"use strict";var xC=q("path"),EC=process.platform==="win32",{REGEX_BACKSLASH:AC,REGEX_REMOVE_BACKSLASH:CC,REGEX_SPECIAL_CHARS:RC,REGEX_SPECIAL_CHARS_GLOBAL:PC}=mi();rt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);rt.hasRegexChars=t=>RC.test(t);rt.isRegexChar=t=>t.length===1&&rt.hasRegexChars(t);rt.escapeRegex=t=>t.replace(PC,"\\$1");rt.toPosixSlashes=t=>t.replace(AC,"/");rt.removeBackslashes=t=>t.replace(CC,r=>r==="\\"?"":r);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:EC===!0||xC.sep==="\\";rt.escapeLast=(t,r,i)=>{let o=t.lastIndexOf(r,i);return o===-1?t:t[o-1]==="\\"?rt.escapeLast(t,r,o-1):`${t.slice(0,o)}\\${t.slice(o)}`};rt.removePrefix=(t,r={})=>{let i=t;return i.startsWith("./")&&(i=i.slice(2),r.prefix="./"),i};rt.wrapOutput=(t,r={},i={})=>{let o=i.contains?"":"^",u=i.contains?"":"$",c=`${o}(?:${t})${u}`;return r.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var Zd=L(($L,Qd)=>{"use strict";var Gd=_i(),{CHAR_ASTERISK:$a,CHAR_AT:TC,CHAR_BACKWARD_SLASH:yi,CHAR_COMMA:OC,CHAR_DOT:Ma,CHAR_EXCLAMATION_MARK:Fa,CHAR_FORWARD_SLASH:Yd,CHAR_LEFT_CURLY_BRACE:qa,CHAR_LEFT_PARENTHESES:Ha,CHAR_LEFT_SQUARE_BRACKET:IC,CHAR_PLUS:LC,CHAR_QUESTION_MARK:Kd,CHAR_RIGHT_CURLY_BRACE:kC,CHAR_RIGHT_PARENTHESES:jd,CHAR_RIGHT_SQUARE_BRACKET:DC}=mi(),Xd=t=>t===Yd||t===yi,zd=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},NC=(t,r)=>{let i=r||{},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,j=!1,W=!1,te=!1,Y=!1,Q=!1,N=!1,ne=0,Z,G,ue={value:"",depth:0,isGlob:!1},Pe=()=>_>=o,I=()=>g.charCodeAt(_+1),ve=()=>(Z=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&&Xd(me.charCodeAt(me.length-1))&&(me=me.slice(0,-1)),i.unescape===!0&&(A&&(A=Gd.removeBackslashes(A)),me&&te===!0&&(me=Gd.removeBackslashes(me)));let C={prefix:$t,input:t,start:v,base:me,glob:A,isBrace:S,isBracket:H,isGlob:O,isExtglob:D,isGlobstar:j,negated:Y,negatedExtglob:Q};if(i.tokens===!0&&(C.maxDepth=0,Xd(G)||f.push(ue),C.tokens=f),i.parts===!0||i.tokens===!0){let Be;for(let fe=0;fe{"use strict";var Ts=mi(),ht=_i(),{MAX_LENGTH:Os,POSIX_REGEX_SOURCE:$C,REGEX_NON_SPECIAL_CHARS:MC,REGEX_SPECIAL_CHARS_BACKREF:FC,REPLACEMENTS:Vd}=Ts,qC=(t,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...t,r);t.sort();let i=`[${t.join("-")}]`;try{new RegExp(i)}catch{return t.map(u=>ht.escapeRegex(u)).join("..")}return i},pr=(t,r)=>`Missing ${t}: "${r}" - use "\\\\${r}" to match literal characters`,Ba=(t,r)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Vd[t]||t;let i={...r},o=typeof i.maxLength=="number"?Math.min(Os,i.maxLength):Os,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(r),_=Ts.globChars(g),v=Ts.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:H,ONE_CHAR:O,DOTS_SLASH:D,NO_DOT:j,NO_DOT_SLASH:W,NO_DOTS_SLASH:te,QMARK:Y,QMARK_NO_DOT:Q,STAR:N,START_ANCHOR:ne}=_,Z=F=>`(${h}(?:(?!${ne}${F.dot?D:x}).)*?)`,G=i.dot?"":j,ue=i.dot?Y:Q,Pe=i.bash===!0?Z(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,C,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)},jt=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 V=(i.capture?"(":"")+$.open;jt("parens"),oe({type:F,value:_e,output:I.output?"":O}),oe({type:"paren",extglob:!0,value:Ie(),output:V}),ve.push($)},tu=F=>{let _e=F.close+(i.capture?")":""),$;if(F.type==="negate"){let V=Pe;if(F.inner&&F.inner.length>1&&F.inner.includes("/")&&(V=Z(i)),(V!==Pe||Be()||/^\)+$/.test(gt()))&&(_e=F.close=`)$))${V}`),F.inner.includes("*")&&($=gt())&&/^\.[^\\/.]+$/.test($)){let be=Ba($,{...r,fastpaths:!1}).output;_e=F.close=`)${be})${V})`}F.prev.type==="bos"&&(I.negatedExtglob=!0)}oe({type:"paren",extglob:!0,value:C,output:_e}),Xt("parens")};if(i.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let F=!1,_e=t.replace(FC,($,V,be,We,we,Kn)=>We==="\\"?(F=!0,$):We==="?"?V?V+We+(we?Y.repeat(we.length):""):Kn===0?ue+(we?Y.repeat(we.length):""):Y.repeat(be.length):We==="."?x.repeat(be.length):We==="*"?V?V+We+(we?Pe:""):Pe:V?$:`\\${$}`);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,r),I)}for(;!Be();){if(C=Ie(),C==="\0")continue;if(C==="\\"){let $=fe();if($==="/"&&i.bash!==!0||$==="."||$===";")continue;if(!$){C+="\\",oe({type:"text",value:C});continue}let V=/^\\+/.exec(gt()),be=0;if(V&&V[0].length>2&&(be=V[0].length,I.index+=be,be%2!==0&&(C+="\\")),i.unescape===!0?C=Ie():C+=Ie(),I.brackets===0){oe({type:"text",value:C});continue}}if(I.brackets>0&&(C!=="]"||A.value==="["||A.value==="[^")){if(i.posix!==!1&&C===":"){let $=A.value.slice(1);if($.includes("[")&&(A.posix=!0,$.includes(":"))){let V=A.value.lastIndexOf("["),be=A.value.slice(0,V),We=A.value.slice(V+2),we=$C[We];if(we){A.value=be+we,I.backtrack=!0,Ie(),!c.output&&f.indexOf(A)===1&&(c.output=O);continue}}}(C==="["&&fe()!==":"||C==="-"&&fe()==="]")&&(C=`\\${C}`),C==="]"&&(A.value==="["||A.value==="[^")&&(C=`\\${C}`),i.posix===!0&&C==="!"&&A.value==="["&&(C="^"),A.value+=C,Gn({value:C});continue}if(I.quotes===1&&C!=='"'){C=ht.escapeRegex(C),A.value+=C,Gn({value:C});continue}if(C==='"'){I.quotes=I.quotes===1?0:1,i.keepQuotes===!0&&oe({type:"text",value:C});continue}if(C==="("){jt("parens"),oe({type:"paren",value:C});continue}if(C===")"){if(I.parens===0&&i.strictBrackets===!0)throw new SyntaxError(pr("opening","("));let $=ve[ve.length-1];if($&&I.parens===$.parens+1){tu(ve.pop());continue}oe({type:"paren",value:C,output:I.parens?")":"\\)"}),Xt("parens");continue}if(C==="["){if(i.nobracket===!0||!gt().includes("]")){if(i.nobracket!==!0&&i.strictBrackets===!0)throw new SyntaxError(pr("closing","]"));C=`\\${C}`}else jt("brackets");oe({type:"bracket",value:C});continue}if(C==="]"){if(i.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){oe({type:"text",value:C,output:`\\${C}`});continue}if(I.brackets===0){if(i.strictBrackets===!0)throw new SyntaxError(pr("opening","["));oe({type:"text",value:C,output:`\\${C}`});continue}Xt("brackets");let $=A.value.slice(1);if(A.posix!==!0&&$[0]==="^"&&!$.includes("/")&&(C=`/${C}`),A.value+=C,Gn({value:C}),i.literalBrackets===!1||ht.hasRegexChars($))continue;let V=ht.escapeRegex(A.value);if(I.output=I.output.slice(0,-A.value.length),i.literalBrackets===!0){I.output+=V,A.value=V;continue}A.value=`(${h}${V}|${A.value})`,I.output+=A.value;continue}if(C==="{"&&i.nobrace!==!0){jt("braces");let $={type:"brace",value:C,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};me.push($),oe($);continue}if(C==="}"){let $=me[me.length-1];if(i.nobrace===!0||!$){oe({type:"text",value:C,output:C});continue}let V=")";if($.dots===!0){let be=f.slice(),We=[];for(let we=be.length-1;we>=0&&(f.pop(),be[we].type!=="brace");we--)be[we].type!=="dots"&&We.unshift(be[we].value);V=qC(We,i),I.backtrack=!0}if($.comma!==!0&&$.dots!==!0){let be=I.output.slice(0,$.outputIndex),We=I.tokens.slice($.tokensIndex);$.value=$.output="\\{",C=V="\\}",I.output=be;for(let we of We)I.output+=we.output||we.value}oe({type:"brace",value:C,output:V}),Xt("braces"),me.pop();continue}if(C==="|"){ve.length>0&&ve[ve.length-1].conditions++,oe({type:"text",value:C});continue}if(C===","){let $=C,V=me[me.length-1];V&&$t[$t.length-1]==="braces"&&(V.comma=!0,$="|"),oe({type:"comma",value:C,output:$});continue}if(C==="/"){if(A.type==="dot"&&I.index===I.start+1){I.start=I.index+1,I.consumed="",I.output="",f.pop(),A=c;continue}oe({type:"slash",value:C,output:H});continue}if(C==="."){if(I.braces>0&&A.type==="dot"){A.value==="."&&(A.output=x);let $=me[me.length-1];A.type="dots",A.output+=C,A.value+=C,$.dots=!0;continue}if(I.braces+I.parens===0&&A.type!=="bos"&&A.type!=="slash"){oe({type:"text",value:C,output:x});continue}oe({type:"dot",value:C,output:x});continue}if(C==="?"){if(!(A&&A.value==="(")&&i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("qmark",C);continue}if(A&&A.type==="paren"){let V=fe(),be=C;if(V==="<"&&!ht.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(V)||V==="<"&&!/<([!=]|\w+>)/.test(gt()))&&(be=`\\${C}`),oe({type:"text",value:C,output:be});continue}if(i.dot!==!0&&(A.type==="slash"||A.type==="bos")){oe({type:"qmark",value:C,output:Q});continue}oe({type:"qmark",value:C,output:Y});continue}if(C==="!"){if(i.noextglob!==!0&&fe()==="("&&(fe(2)!=="?"||!/[!=<:]/.test(fe(3)))){Mt("negate",C);continue}if(i.nonegate!==!0&&I.index===0){an();continue}}if(C==="+"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Mt("plus",C);continue}if(A&&A.value==="("||i.regex===!1){oe({type:"plus",value:C,output:S});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||I.parens>0){oe({type:"plus",value:C});continue}oe({type:"plus",value:S});continue}if(C==="@"){if(i.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){oe({type:"at",extglob:!0,value:C,output:""});continue}oe({type:"text",value:C});continue}if(C!=="*"){(C==="$"||C==="^")&&(C=`\\${C}`);let $=MC.exec(gt());$&&(C+=$[0],I.index+=$[0].length),oe({type:"text",value:C});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=C,A.output=Pe,I.backtrack=!0,I.globstar=!0,Ye(C);continue}let F=gt();if(i.noextglob!==!0&&/^\([^?]/.test(F)){Mt("star",C);continue}if(A.type==="star"){if(i.noglobstar===!0){Ye(C);continue}let $=A.prev,V=$.prev,be=$.type==="slash"||$.type==="bos",We=V&&(V.type==="star"||V.type==="globstar");if(i.bash===!0&&(!be||F[0]&&F[0]!=="/")){oe({type:"star",value:C,output:""});continue}let we=I.braces>0&&($.type==="comma"||$.type==="brace"),Kn=ve.length&&($.type==="pipe"||$.type==="paren");if(!be&&$.type!=="paren"&&!we&&!Kn){oe({type:"star",value:C,output:""});continue}for(;F.slice(0,3)==="/**";){let jn=t[I.index+4];if(jn&&jn!=="/")break;F=F.slice(3),Ye("/**",3)}if($.type==="bos"&&Be()){A.type="globstar",A.value+=C,A.output=Z(i),I.output=A.output,I.globstar=!0,Ye(C);continue}if($.type==="slash"&&$.prev.type!=="bos"&&!We&&Be()){I.output=I.output.slice(0,-($.output+A.output).length),$.output=`(?:${$.output}`,A.type="globstar",A.output=Z(i)+(i.strictSlashes?")":"|$)"),A.value+=C,I.globstar=!0,I.output+=$.output+A.output,Ye(C);continue}if($.type==="slash"&&$.prev.type!=="bos"&&F[0]==="/"){let jn=F[1]!==void 0?"|$":"";I.output=I.output.slice(0,-($.output+A.output).length),$.output=`(?:${$.output}`,A.type="globstar",A.output=`${Z(i)}${H}|${H}${jn})`,A.value+=C,I.output+=$.output+A.output,I.globstar=!0,Ye(C+Ie()),oe({type:"slash",value:"/",output:""});continue}if($.type==="bos"&&F[0]==="/"){A.type="globstar",A.value+=C,A.output=`(?:^|${H}|${Z(i)}${H})`,I.output=A.output,I.globstar=!0,Ye(C+Ie()),oe({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-A.output.length),A.type="globstar",A.output=Z(i),A.value+=C,I.output+=A.output,I.globstar=!0,Ye(C);continue}let _e={type:"star",value:C,output:Pe};if(i.bash===!0){_e.output=".*?",(A.type==="bos"||A.type==="slash")&&(_e.output=G+_e.output),oe(_e);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&i.regex===!0){_e.output=C,oe(_e);continue}(I.index===I.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(I.output+=W,A.output+=W):i.dot===!0?(I.output+=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(pr("closing","]"));I.output=ht.escapeLast(I.output,"["),Xt("brackets")}for(;I.parens>0;){if(i.strictBrackets===!0)throw new SyntaxError(pr("closing",")"));I.output=ht.escapeLast(I.output,"("),Xt("parens")}for(;I.braces>0;){if(i.strictBrackets===!0)throw new SyntaxError(pr("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,r)=>{let i={...r},o=typeof i.maxLength=="number"?Math.min(Os,i.maxLength):Os,u=t.length;if(u>o)throw new SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${o}`);t=Vd[t]||t;let c=ht.isWindows(r),{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}=Ts.globChars(c),D=i.dot?x:v,j=i.dot?S:v,W=i.capture?"":"?:",te={negated:!1,prefix:""},Y=i.bash===!0?".*?":H;i.capture&&(Y=`(${Y})`);let Q=G=>G.noglobstar===!0?Y:`(${W}(?:(?!${O}${G.dot?_:f}).)*?)`,N=G=>{switch(G){case"*":return`${D}${g}${Y}`;case".*":return`${f}${g}${Y}`;case"*.*":return`${D}${Y}${f}${g}${Y}`;case"*/*":return`${D}${Y}${h}${g}${j}${Y}`;case"**":return D+Q(i);case"**/*":return`(?:${D}${Q(i)}${h})?${j}${g}${Y}`;case"**/*.*":return`(?:${D}${Q(i)}${h})?${j}${Y}${f}${g}${Y}`;case"**/.*":return`(?:${D}${Q(i)}${h})?${f}${g}${Y}`;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),Z=N(ne);return Z&&i.strictSlashes!==!0&&(Z+=`${h}?`),Z};Jd.exports=Ba});var ng=L((FL,tg)=>{"use strict";var HC=q("path"),BC=Zd(),Wa=eg(),Ua=_i(),WC=mi(),UC=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,r,i=!1)=>{if(Array.isArray(t)){let v=t.map(S=>De(S,r,i));return S=>{for(let H of v){let O=H(S);if(O)return O}return!1}}let o=UC(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let u=r||{},c=Ua.isWindows(r),f=o?De.compileRe(t,r):De.makeRe(t,r,!1,!0),h=f.state;delete f.state;let g=()=>!1;if(u.ignore){let v={...r,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,r,{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,r,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,r,i,u):h=r.exec(g)),{isMatch:Boolean(h),match:h,output:g}};De.matchBase=(t,r,i,o=Ua.isWindows(i))=>(r instanceof RegExp?r:De.makeRe(r,i)).test(HC.basename(t));De.isMatch=(t,r,i)=>De(r,i)(t);De.parse=(t,r)=>Array.isArray(t)?t.map(i=>De.parse(i,r)):Wa(t,{...r,fastpaths:!1});De.scan=(t,r)=>BC(t,r);De.compileRe=(t,r,i=!1,o=!1)=>{if(i===!0)return t.output;let u=r||{},c=u.contains?"":"^",f=u.contains?"":"$",h=`${c}(?:${t.output})${f}`;t&&t.negated===!0&&(h=`^(?!${h}).*$`);let g=De.toRegex(h,r);return o===!0&&(g.state=t),g};De.makeRe=(t,r={},i=!1,o=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(u.output=Wa.fastpaths(t,r)),u.output||(u=Wa(t,r)),De.compileRe(u,r,i,o)};De.toRegex=(t,r)=>{try{let i=r||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(i){if(r&&r.debug===!0)throw i;return/$^/}};De.constants=WC;tg.exports=De});var ig=L((qL,rg)=>{"use strict";rg.exports=ng()});var cg=L((HL,ag)=>{"use strict";var og=q("util"),ug=Fd(),Wt=ig(),Ga=_i(),sg=t=>t===""||t==="./",Re=(t,r,i)=>{r=[].concat(r),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 "${r.join(", ")}"`);if(i.nonull===!0||i.nullglob===!0)return i.unescape?r.map(v=>v.replace(/\\/g,"")):r}return _};Re.match=Re;Re.matcher=(t,r)=>Wt(t,r);Re.isMatch=(t,r,i)=>Wt(r,i)(t);Re.any=Re.isMatch;Re.not=(t,r,i={})=>{r=[].concat(r).map(String);let o=new Set,u=[],c=h=>{i.onResult&&i.onResult(h),u.push(h.output)},f=new Set(Re(t,r,{...i,onResult:c}));for(let h of u)f.has(h)||o.add(h);return[...o]};Re.contains=(t,r,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${og.inspect(t)}"`);if(Array.isArray(r))return r.some(o=>Re.contains(t,o,i));if(typeof r=="string"){if(sg(t)||sg(r))return!1;if(t.includes(r)||t.startsWith("./")&&t.slice(2).includes(r))return!0}return Re.isMatch(t,r,{...i,contains:!0})};Re.matchKeys=(t,r,i)=>{if(!Ga.isObject(t))throw new TypeError("Expected the first argument to be an object");let o=Re(Object.keys(t),r,i),u={};for(let c of o)u[c]=t[c];return u};Re.some=(t,r,i)=>{let o=[].concat(t);for(let u of[].concat(r)){let c=Wt(String(u),i);if(o.some(f=>c(f)))return!0}return!1};Re.every=(t,r,i)=>{let o=[].concat(t);for(let u of[].concat(r)){let c=Wt(String(u),i);if(!o.every(f=>c(f)))return!1}return!0};Re.all=(t,r,i)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${og.inspect(t)}"`);return[].concat(r).every(o=>Wt(o,i)(t))};Re.capture=(t,r,i)=>{let o=Ga.isWindows(i),c=Wt.makeRe(String(t),{...i,capture:!0}).exec(o?Ga.toPosixSlashes(r):r);if(c)return c.slice(1).map(f=>f===void 0?"":f)};Re.makeRe=(...t)=>Wt.makeRe(...t);Re.scan=(...t)=>Wt.scan(...t);Re.parse=(t,r)=>{let i=[];for(let o of[].concat(t||[]))for(let u of ug(String(o),r))i.push(Wt.parse(u,r));return i};Re.braces=(t,r)=>{if(typeof t!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!/\{.*\}/.test(t)?[t]:ug(t,r)};Re.braceExpand=(t,r)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Re.braces(t,{...r,expand:!0})};ag.exports=Re});var _g=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 GC=q("path"),KC=td(),Ka=cg(),lg="**",jC="\\",XC=/[*?]|^!/,zC=/\[[^[]*]/,YC=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,QC=/[!*+?@]\([^(]*\)/,ZC=/,|\.\./,VC=/(?!^)\/{2,}/g;function fg(t,r={}){return!hg(t,r)}re.isStaticPattern=fg;function hg(t,r={}){return t===""?!1:!!(r.caseSensitiveMatch===!1||t.includes(jC)||XC.test(t)||zC.test(t)||YC.test(t)||r.extglob!==!1&&QC.test(t)||r.braceExpansion!==!1&&JC(t))}re.isDynamicPattern=hg;function JC(t){let r=t.indexOf("{");if(r===-1)return!1;let i=t.indexOf("}",r+1);if(i===-1)return!1;let o=t.slice(r,i);return ZC.test(o)}function eR(t){return Is(t)?t.slice(1):t}re.convertToPositivePattern=eR;function tR(t){return"!"+t}re.convertToNegativePattern=tR;function Is(t){return t.startsWith("!")&&t[1]!=="("}re.isNegativePattern=Is;function pg(t){return!Is(t)}re.isPositivePattern=pg;function nR(t){return t.filter(Is)}re.getNegativePatterns=nR;function rR(t){return t.filter(pg)}re.getPositivePatterns=rR;function iR(t){return t.filter(r=>!ja(r))}re.getPatternsInsideCurrentDirectory=iR;function sR(t){return t.filter(ja)}re.getPatternsOutsideCurrentDirectory=sR;function ja(t){return t.startsWith("..")||t.startsWith("./..")}re.isPatternRelatedToParentDirectory=ja;function oR(t){return KC(t,{flipBackslashes:!1})}re.getBaseDirectory=oR;function uR(t){return t.includes(lg)}re.hasGlobStar=uR;function dg(t){return t.endsWith("/"+lg)}re.endsWithSlashGlobStar=dg;function aR(t){let r=GC.basename(t);return dg(t)||fg(r)}re.isAffectDepthOfReadingPattern=aR;function cR(t){return t.reduce((r,i)=>r.concat(gg(i)),[])}re.expandPatternsWithBraceExpansion=cR;function gg(t){let r=Ka.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return r.sort((i,o)=>i.length-o.length),r.filter(i=>i!=="")}re.expandBraceExpansion=gg;function lR(t,r){let{parts:i}=Ka.scan(t,Object.assign(Object.assign({},r),{parts:!0}));return i.length===0&&(i=[t]),i[0].startsWith("/")&&(i[0]=i[0].slice(1),i.unshift("")),i}re.getPatternParts=lR;function mg(t,r){return Ka.makeRe(t,r)}re.makeRe=mg;function fR(t,r){return t.map(i=>mg(i,r))}re.convertPatternsToRe=fR;function hR(t,r){return r.some(i=>i.test(t))}re.matchAny=hR;function pR(t){return t.replace(VC,"/")}re.removeDuplicateSlashes=pR});var wg=L((WL,bg)=>{"use strict";var dR=q("stream"),yg=dR.PassThrough,gR=Array.prototype.slice;bg.exports=mR;function mR(){let t=[],r=gR.call(arguments),i=!1,o=r[r.length-1];o&&!Array.isArray(o)&&o.pipe==null?r.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=yg(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",j),S()}function j(W){f.emit("error",W)}if(O._readableState.endEmitted)return S();O.on("merge2UnpipeEnd",D),O.on("end",D),c&&O.on("error",j),O.pipe(f,{end:!1}),O.resume()}for(let O=0;O{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.merge=void 0;var _R=wg();function yR(t){let r=_R(t);return t.forEach(i=>{i.once("error",o=>r.emit("error",o))}),r.once("close",()=>Sg(t)),r.once("end",()=>Sg(t)),r}Ls.merge=yR;function Sg(t){t.forEach(r=>r.emit("close"))}});var Eg=L(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.isEmpty=dr.isString=void 0;function vR(t){return typeof t=="string"}dr.isString=vR;function bR(t){return t===""}dr.isEmpty=bR});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 wR=Wp();Xe.array=wR;var SR=Up();Xe.errno=SR;var xR=Gp();Xe.fs=xR;var ER=zp();Xe.path=ER;var AR=_g();Xe.pattern=AR;var CR=xg();Xe.stream=CR;var RR=Eg();Xe.string=RR});var Pg=L(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var Lt=sn();function PR(t,r){let i=Ag(t,r),o=Ag(r.ignore,r),u=Cg(i),c=Rg(i,o),f=u.filter(v=>Lt.pattern.isStaticPattern(v,r)),h=u.filter(v=>Lt.pattern.isDynamicPattern(v,r)),g=Xa(f,c,!1),_=Xa(h,c,!0);return g.concat(_)}ze.generate=PR;function Ag(t,r){let i=t;return r.braceExpansion&&(i=Lt.pattern.expandPatternsWithBraceExpansion(i)),r.baseNameMatch&&(i=i.map(o=>o.includes("/")?o:`**/${o}`)),i.map(o=>Lt.pattern.removeDuplicateSlashes(o))}function Xa(t,r,i){let o=[],u=Lt.pattern.getPatternsOutsideCurrentDirectory(t),c=Lt.pattern.getPatternsInsideCurrentDirectory(t),f=za(u),h=za(c);return o.push(...Ya(f,r,i)),"."in h?o.push(Qa(".",c,r,i)):o.push(...Ya(h,r,i)),o}ze.convertPatternsToTasks=Xa;function Cg(t){return Lt.pattern.getPositivePatterns(t)}ze.getPositivePatterns=Cg;function Rg(t,r){return Lt.pattern.getNegativePatterns(t).concat(r).map(Lt.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=Rg;function za(t){let r={};return t.reduce((i,o)=>{let u=Lt.pattern.getBaseDirectory(o);return u in i?i[u].push(o):i[u]=[o],i},r)}ze.groupPatternsByBaseDirectory=za;function Ya(t,r,i){return Object.keys(t).map(o=>Qa(o,t[o],r,i))}ze.convertPatternGroupsToTasks=Ya;function Qa(t,r,i,o){return{dynamic:o,positive:r,negative:i,base:t,patterns:[].concat(r,i.map(Lt.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=Qa});var Og=L(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.read=void 0;function TR(t,r,i){r.fs.lstat(t,(o,u)=>{if(o!==null){Tg(i,o);return}if(!u.isSymbolicLink()||!r.followSymbolicLink){Za(i,u);return}r.fs.stat(t,(c,f)=>{if(c!==null){if(r.throwErrorOnBrokenSymbolicLink){Tg(i,c);return}Za(i,u);return}r.markSymbolicLink&&(f.isSymbolicLink=()=>!0),Za(i,f)})})}ks.read=TR;function Tg(t,r){t(r)}function Za(t,r){t(null,r)}});var Ig=L(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.read=void 0;function OR(t,r){let i=r.fs.lstatSync(t);if(!i.isSymbolicLink()||!r.followSymbolicLink)return i;try{let o=r.fs.statSync(t);return r.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!r.throwErrorOnBrokenSymbolicLink)return i;throw o}}Ds.read=OR});var Lg=L(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.createFileSystemAdapter=vn.FILE_SYSTEM_ADAPTER=void 0;var Ns=q("fs");vn.FILE_SYSTEM_ADAPTER={lstat:Ns.lstat,stat:Ns.stat,lstatSync:Ns.lstatSync,statSync:Ns.statSync};function IR(t){return t===void 0?vn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},vn.FILE_SYSTEM_ADAPTER),t)}vn.createFileSystemAdapter=IR});var kg=L(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var LR=Lg(),Va=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=LR.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,i){return r??i}};Ja.default=Va});var Fn=L(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.statSync=bn.stat=bn.Settings=void 0;var Dg=Og(),kR=Ig(),ec=kg();bn.Settings=ec.default;function DR(t,r,i){if(typeof r=="function"){Dg.read(t,tc(),r);return}Dg.read(t,tc(r),i)}bn.stat=DR;function NR(t,r){let i=tc(r);return kR.read(t,i)}bn.statSync=NR;function tc(t={}){return t instanceof ec.default?t:new ec.default(t)}});var Mg=L((VL,$g)=>{var Ng;$g.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Ng||(Ng=Promise.resolve())).then(t).catch(r=>setTimeout(()=>{throw r},0))});var qg=L((JL,Fg)=>{Fg.exports=MR;var $R=Mg();function MR(t,r){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 _(){r&&r(g,i),r=null}c?$R(_):_()}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(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var $s=process.versions.node.split(".");if($s[0]===void 0||$s[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Hg=Number.parseInt($s[0],10),FR=Number.parseInt($s[1],10),Bg=10,qR=10,HR=Hg>Bg,BR=Hg===Bg&&FR>=qR;Ms.IS_SUPPORT_READDIR_WITH_FILE_TYPES=HR||BR});var Wg=L(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.createDirentFromStats=void 0;var rc=class{constructor(r,i){this.name=r,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 WR(t,r){return new rc(t,r)}Fs.createDirentFromStats=WR});var ic=L(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.fs=void 0;var UR=Wg();qs.fs=UR});var sc=L(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.joinPathSegments=void 0;function GR(t,r,i){return t.endsWith(i)?t+r:t+i+r}Hs.joinPathSegments=GR});var zg=L(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.readdir=wn.readdirWithFileTypes=wn.read=void 0;var KR=Fn(),Ug=qg(),jR=nc(),Gg=ic(),Kg=sc();function XR(t,r,i){if(!r.stats&&jR.IS_SUPPORT_READDIR_WITH_FILE_TYPES){jg(t,r,i);return}Xg(t,r,i)}wn.read=XR;function jg(t,r,i){r.fs.readdir(t,{withFileTypes:!0},(o,u)=>{if(o!==null){Bs(i,o);return}let c=u.map(h=>({dirent:h,name:h.name,path:Kg.joinPathSegments(t,h.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){oc(i,c);return}let f=c.map(h=>zR(h,r));Ug(f,(h,g)=>{if(h!==null){Bs(i,h);return}oc(i,g)})})}wn.readdirWithFileTypes=jg;function zR(t,r){return i=>{if(!t.dirent.isSymbolicLink()){i(null,t);return}r.fs.stat(t.path,(o,u)=>{if(o!==null){if(r.throwErrorOnBrokenSymbolicLink){i(o);return}i(null,t);return}t.dirent=Gg.fs.createDirentFromStats(t.name,u),i(null,t)})}}function Xg(t,r,i){r.fs.readdir(t,(o,u)=>{if(o!==null){Bs(i,o);return}let c=u.map(f=>{let h=Kg.joinPathSegments(t,f,r.pathSegmentSeparator);return g=>{KR.stat(h,r.fsStatSettings,(_,v)=>{if(_!==null){g(_);return}let x={name:f,path:h,dirent:Gg.fs.createDirentFromStats(f,v)};r.stats&&(x.stats=v),g(null,x)})}});Ug(c,(f,h)=>{if(f!==null){Bs(i,f);return}oc(i,h)})})}wn.readdir=Xg;function Bs(t,r){t(r)}function oc(t,r){t(null,r)}});var Jg=L(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.readdir=Sn.readdirWithFileTypes=Sn.read=void 0;var YR=Fn(),QR=nc(),Yg=ic(),Qg=sc();function ZR(t,r){return!r.stats&&QR.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Zg(t,r):Vg(t,r)}Sn.read=ZR;function Zg(t,r){return r.fs.readdirSync(t,{withFileTypes:!0}).map(o=>{let u={dirent:o,name:o.name,path:Qg.joinPathSegments(t,o.name,r.pathSegmentSeparator)};if(u.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let c=r.fs.statSync(u.path);u.dirent=Yg.fs.createDirentFromStats(u.name,c)}catch(c){if(r.throwErrorOnBrokenSymbolicLink)throw c}return u})}Sn.readdirWithFileTypes=Zg;function Vg(t,r){return r.fs.readdirSync(t).map(o=>{let u=Qg.joinPathSegments(t,o,r.pathSegmentSeparator),c=YR.statSync(u,r.fsStatSettings),f={name:o,path:u,dirent:Yg.fs.createDirentFromStats(o,c)};return r.stats&&(f.stats=c),f})}Sn.readdir=Vg});var em=L(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.createFileSystemAdapter=xn.FILE_SYSTEM_ADAPTER=void 0;var gr=q("fs");xn.FILE_SYSTEM_ADAPTER={lstat:gr.lstat,stat:gr.stat,lstatSync:gr.lstatSync,statSync:gr.statSync,readdir:gr.readdir,readdirSync:gr.readdirSync};function VR(t){return t===void 0?xn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xn.FILE_SYSTEM_ADAPTER),t)}xn.createFileSystemAdapter=VR});var tm=L(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var JR=q("path"),eP=Fn(),tP=em(),uc=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=tP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,JR.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new eP.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,i){return r??i}};ac.default=uc});var Ws=L(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.Settings=En.scandirSync=En.scandir=void 0;var nm=zg(),nP=Jg(),cc=tm();En.Settings=cc.default;function rP(t,r,i){if(typeof r=="function"){nm.read(t,lc(),r);return}nm.read(t,lc(r),i)}En.scandir=rP;function iP(t,r){let i=lc(r);return nP.read(t,i)}En.scandirSync=iP;function lc(t={}){return t instanceof cc.default?t:new cc.default(t)}});var im=L((ck,rm)=>{"use strict";function sP(t){var r=new t,i=r;function o(){var c=r;return c.next?r=c.next:(r=new t,i=r),c.next=null,c}function u(c){i.next=c,i=c}return{get:o,release:u}}rm.exports=sP});var om=L((lk,fc)=>{"use strict";var oP=im();function sm(t,r,i){if(typeof t=="function"&&(i=r,r=t,t=null),i<1)throw new Error("fastqueue concurrency must be greater than 1");var o=oP(uP),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:j,empty:At,kill:te,killAndDrain:Y,error:Q};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 cP(t,r){return t.errorFilter===null?!0:!t.errorFilter(r)}Ut.isFatalError=cP;function lP(t,r){return t===null||t(r)}Ut.isAppliedFilter=lP;function fP(t,r){return t.split(/[/\\]/).join(r)}Ut.replacePathSegmentSeparator=fP;function hP(t,r,i){return t===""?r:t.endsWith(i)?t+r:t+i+r}Ut.joinPathSegments=hP});var dc=L(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var pP=Us(),hc=class{constructor(r,i){this._root=r,this._settings=i,this._root=pP.replacePathSegmentSeparator(r,i.pathSegmentSeparator)}};pc.default=hc});var _c=L(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var dP=q("events"),gP=Ws(),mP=om(),Gs=Us(),_P=dc(),gc=class extends _P.default{constructor(r,i){super(r,i),this._settings=i,this._scandir=gP.scandir,this._emitter=new dP.EventEmitter,this._queue=mP(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(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,i){let o={directory:r,base:i};this._queue.push(o,u=>{u!==null&&this._handleError(u)})}_worker(r,i){this._scandir(r.directory,this._settings.fsScandirSettings,(o,u)=>{if(o!==null){i(o,void 0);return}for(let c of u)this._handleEntry(c,r.base);i(null,void 0)})}_handleError(r){this._isDestroyed||!Gs.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,i){if(this._isDestroyed||this._isFatalError)return;let o=r.path;i!==void 0&&(r.path=Gs.joinPathSegments(i,r.name,this._settings.pathSegmentSeparator)),Gs.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&Gs.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(o,i===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};mc.default=gc});var um=L(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var yP=_c(),yc=class{constructor(r,i){this._root=r,this._settings=i,this._reader=new yP.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(i=>{vP(r,i)}),this._reader.onEntry(i=>{this._storage.push(i)}),this._reader.onEnd(()=>{bP(r,this._storage)}),this._reader.read()}};vc.default=yc;function vP(t,r){t(r)}function bP(t,r){t(null,r)}});var am=L(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var wP=q("stream"),SP=_c(),bc=class{constructor(r,i){this._root=r,this._settings=i,this._reader=new SP.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(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};wc.default=bc});var cm=L(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var xP=Ws(),Ks=Us(),EP=dc(),Sc=class extends EP.default{constructor(){super(...arguments),this._scandir=xP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,i){this._queue.add({directory:r,base:i})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,i){try{let o=this._scandir(r,this._settings.fsScandirSettings);for(let u of o)this._handleEntry(u,i)}catch(o){this._handleError(o)}}_handleError(r){if(!!Ks.isFatalError(this._settings,r))throw r}_handleEntry(r,i){let o=r.path;i!==void 0&&(r.path=Ks.joinPathSegments(i,r.name,this._settings.pathSegmentSeparator)),Ks.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&Ks.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(o,i===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};xc.default=Sc});var lm=L(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var AP=cm(),Ec=class{constructor(r,i){this._root=r,this._settings=i,this._reader=new AP.default(this._root,this._settings)}read(){return this._reader.read()}};Ac.default=Ec});var fm=L(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var CP=q("path"),RP=Ws(),Cc=class{constructor(r={}){this._options=r,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,CP.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(r,i){return r??i}};Rc.default=Cc});var Xs=L(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Settings=Gt.walkStream=Gt.walkSync=Gt.walk=void 0;var hm=um(),PP=am(),TP=lm(),Pc=fm();Gt.Settings=Pc.default;function OP(t,r,i){if(typeof r=="function"){new hm.default(t,js()).read(r);return}new hm.default(t,js(r)).read(i)}Gt.walk=OP;function IP(t,r){let i=js(r);return new TP.default(t,i).read()}Gt.walkSync=IP;function LP(t,r){let i=js(r);return new PP.default(t,i).read()}Gt.walkStream=LP;function js(t={}){return t instanceof Pc.default?t:new Pc.default(t)}});var zs=L(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var kP=q("path"),DP=Fn(),pm=sn(),Tc=class{constructor(r){this._settings=r,this._fsStatSettings=new DP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return kP.resolve(this._settings.cwd,r)}_makeEntry(r,i){let o={name:i,path:i,dirent:pm.fs.createDirentFromStats(i,r)};return this._settings.stats&&(o.stats=r),o}_isFatalError(r){return!pm.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};Oc.default=Tc});var kc=L(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var NP=q("stream"),$P=Fn(),MP=Xs(),FP=zs(),Ic=class extends FP.default{constructor(){super(...arguments),this._walkStream=MP.walkStream,this._stat=$P.stat}dynamic(r,i){return this._walkStream(r,i)}static(r,i){let o=r.map(this._getFullEntryPath,this),u=new NP.PassThrough({objectMode:!0});u._write=(c,f,h)=>this._getEntry(o[c],r[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(r){return new Promise((i,o)=>{this._stat(r,this._fsStatSettings,(u,c)=>u===null?i(c):o(u))})}};Lc.default=Ic});var dm=L(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});var qP=Xs(),HP=zs(),BP=kc(),Dc=class extends HP.default{constructor(){super(...arguments),this._walkAsync=qP.walk,this._readerStream=new BP.default(this._settings)}dynamic(r,i){return new Promise((o,u)=>{this._walkAsync(r,i,(c,f)=>{c===null?o(f):u(c)})})}async static(r,i){let o=[],u=this._readerStream.static(r,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 gm=L(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var vi=sn(),$c=class{constructor(r,i,o){this._patterns=r,this._settings=i,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let r of this._patterns){let i=this._getPatternSegments(r),o=this._splitSegmentsIntoSections(i);this._storage.push({complete:o.length<=1,pattern:r,segments:i,sections:o})}}_getPatternSegments(r){return vi.pattern.getPatternParts(r,this._micromatchOptions).map(o=>vi.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:vi.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(r){return vi.array.splitWhen(r,i=>i.dynamic&&vi.pattern.hasGlobStar(i.pattern))}};Mc.default=$c});var mm=L(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var WP=gm(),Fc=class extends WP.default{match(r){let i=r.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 _m=L(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var Ys=sn(),UP=mm(),Hc=class{constructor(r,i){this._settings=r,this._micromatchOptions=i}getFilter(r,i,o){let u=this._getMatcher(i),c=this._getNegativePatternsRe(o);return f=>this._filter(r,f,u,c)}_getMatcher(r){return new UP.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let i=r.filter(Ys.pattern.isAffectDepthOfReadingPattern);return Ys.pattern.convertPatternsToRe(i,this._micromatchOptions)}_filter(r,i,o,u){if(this._isSkippedByDeep(r,i.path)||this._isSkippedSymbolicLink(i))return!1;let c=Ys.path.removeLeadingDotSegment(i.path);return this._isSkippedByPositivePatterns(c,o)?!1:this._isSkippedByNegativePatterns(c,u)}_isSkippedByDeep(r,i){return this._settings.deep===1/0?!1:this._getEntryLevel(r,i)>=this._settings.deep}_getEntryLevel(r,i){let o=i.split("/").length;if(r==="")return o;let u=r.split("/").length;return o-u}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,i){return!this._settings.baseNameMatch&&!i.match(r)}_isSkippedByNegativePatterns(r,i){return!Ys.pattern.matchAny(r,i)}};Bc.default=Hc});var ym=L(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var qn=sn(),Wc=class{constructor(r,i){this._settings=r,this._micromatchOptions=i,this.index=new Map}getFilter(r,i){let o=qn.pattern.convertPatternsToRe(r,this._micromatchOptions),u=qn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return c=>this._filter(c,o,u)}_filter(r,i,o){let u=qn.path.removeLeadingDotSegment(r.path);if(this._settings.unique&&this._isDuplicateEntry(u)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)||this._isSkippedByAbsoluteNegativePatterns(u,o))return!1;let c=r.dirent.isDirectory(),f=this._isMatchToPatterns(u,i,c)&&!this._isMatchToPatterns(u,o,c);return this._settings.unique&&f&&this._createIndexRecord(u),f}_isDuplicateEntry(r){return this.index.has(r)}_createIndexRecord(r){this.index.set(r,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(r,i){if(!this._settings.absolute)return!1;let o=qn.path.makeAbsolute(this._settings.cwd,r);return qn.pattern.matchAny(o,i)}_isMatchToPatterns(r,i,o){let u=qn.pattern.matchAny(r,i);return!u&&o?qn.pattern.matchAny(r+"/",i):u}};Uc.default=Wc});var vm=L(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var GP=sn(),Gc=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return GP.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};Kc.default=Gc});var wm=L(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var bm=sn(),jc=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let i=r.path;return this._settings.absolute&&(i=bm.path.makeAbsolute(this._settings.cwd,i),i=bm.path.unixify(i)),this._settings.markDirectories&&r.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:i}):i}};Xc.default=jc});var Qs=L(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var KP=q("path"),jP=_m(),XP=ym(),zP=vm(),YP=wm(),zc=class{constructor(r){this._settings=r,this.errorFilter=new zP.default(this._settings),this.entryFilter=new XP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new jP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new YP.default(this._settings)}_getRootDirectory(r){return KP.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let i=r.base==="."?"":r.base;return{basePath:i,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(i,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.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 Sm=L(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var QP=dm(),ZP=Qs(),Qc=class extends ZP.default{constructor(){super(...arguments),this._reader=new QP.default(this._settings)}async read(r){let i=this._getRootDirectory(r),o=this._getReaderOptions(r);return(await this.api(i,r,o)).map(c=>o.transform(c))}api(r,i,o){return i.dynamic?this._reader.dynamic(r,o):this._reader.static(i.patterns,o)}};Zc.default=Qc});var xm=L(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var VP=q("stream"),JP=kc(),eT=Qs(),Vc=class extends eT.default{constructor(){super(...arguments),this._reader=new JP.default(this._settings)}read(r){let i=this._getRootDirectory(r),o=this._getReaderOptions(r),u=this.api(i,r,o),c=new VP.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(r,i,o){return i.dynamic?this._reader.dynamic(r,o):this._reader.static(i.patterns,o)}};Jc.default=Vc});var Em=L(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var tT=Fn(),nT=Xs(),rT=zs(),el=class extends rT.default{constructor(){super(...arguments),this._walkSync=nT.walkSync,this._statSync=tT.statSync}dynamic(r,i){return this._walkSync(r,i)}static(r,i){let o=[];for(let u of r){let c=this._getFullEntryPath(u),f=this._getEntry(c,u,i);f===null||!i.entryFilter(f)||o.push(f)}return o}_getEntry(r,i,o){try{let u=this._getStat(r);return this._makeEntry(u,i)}catch(u){if(o.errorFilter(u))return null;throw u}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};tl.default=el});var Am=L(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var iT=Em(),sT=Qs(),nl=class extends sT.default{constructor(){super(...arguments),this._reader=new iT.default(this._settings)}read(r){let i=this._getRootDirectory(r),o=this._getReaderOptions(r);return this.api(i,r,o).map(o.transform)}api(r,i,o){return i.dynamic?this._reader.dynamic(r,o):this._reader.static(i.patterns,o)}};rl.default=nl});var Cm=L(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var mr=q("fs"),oT=q("os"),uT=Math.max(oT.cpus().length,1);_r.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:mr.lstat,lstatSync:mr.lstatSync,stat:mr.stat,statSync:mr.statSync,readdir:mr.readdir,readdirSync:mr.readdirSync};var il=class{constructor(r={}){this._options=r,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,uT),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(r,i){return r===void 0?i:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},_r.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};_r.default=il});var al=L((Nk,Pm)=>{"use strict";var Rm=Pg(),aT=Sm(),cT=xm(),lT=Am(),sl=Cm(),Ct=sn();async function ol(t,r){kt(t);let i=ul(t,aT.default,r),o=await Promise.all(i);return Ct.array.flatten(o)}(function(t){t.glob=t,t.globSync=r,t.globStream=i,t.async=t;function r(_,v){kt(_);let x=ul(_,lT.default,v);return Ct.array.flatten(x)}t.sync=r;function i(_,v){kt(_);let x=ul(_,cT.default,v);return Ct.stream.merge(x)}t.stream=i;function o(_,v){kt(_);let x=[].concat(_),S=new sl.default(v);return Rm.generate(x,S)}t.generateTasks=o;function u(_,v){kt(_);let x=new sl.default(v);return Ct.pattern.isDynamicPattern(_,x)}t.isDynamicPattern=u;function c(_){return kt(_),Ct.path.escape(_)}t.escapePath=c;function f(_){return kt(_),Ct.path.convertPathToPattern(_)}t.convertPathToPattern=f;let h;(function(_){function v(S){return kt(S),Ct.path.escapePosixPath(S)}_.escapePath=v;function x(S){return kt(S),Ct.path.convertPosixPathToPattern(S)}_.convertPathToPattern=x})(h=t.posix||(t.posix={}));let g;(function(_){function v(S){return kt(S),Ct.path.escapeWindowsPath(S)}_.escapePath=v;function x(S){return kt(S),Ct.path.convertWindowsPathToPattern(S)}_.convertPathToPattern=x})(g=t.win32||(t.win32={}))})(ol||(ol={}));function ul(t,r,i){let o=[].concat(t),u=new sl.default(i),c=Rm.generate(o,u),f=new r(u);return c.map(f.read,f)}function kt(t){if(![].concat(t).every(o=>Ct.string.isString(o)&&!Ct.string.isEmpty(o)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Pm.exports=ol});var Bm=L((Uk,Hm)=>{function Lm(t){return Array.isArray(t)?t:[t]}var $m="",km=" ",fl="\\",fT=/^\s+$/,hT=/(?:[^\\]|^)\\$/,pT=/^\\!/,dT=/^\\#/,gT=/\r?\n/g,mT=/^\.*\/|^\.+$/,hl="/",Mm="node-ignore";typeof Symbol<"u"&&(Mm=Symbol.for("node-ignore"));var Dm=Mm,_T=(t,r,i)=>Object.defineProperty(t,r,{value:i}),yT=/([0-z])-([0-z])/g,Fm=()=>!1,vT=t=>t.replace(yT,(r,i,o)=>i.charCodeAt(0)<=o.charCodeAt(0)?r:$m),bT=t=>{let{length:r}=t;return t.slice(0,r-r%2)},wT=[[/\\?\s+$/,t=>t.indexOf("\\")===0?km:$m],[/\\\s/g,()=>km],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,r,i)=>r+6{let o=i.replace(/\\\*/g,"[^\\/]*");return r+o}],[/\\\\\\(?=[$.|*+(){^])/g,()=>fl],[/\\\\/g,()=>fl],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,r,i,o,u)=>r===fl?`\\[${i}${bT(o)}${u}`:u==="]"&&o.length%2===0?`[${vT(i)}${o}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,r)=>`${r?`${r}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Nm=Object.create(null),ST=(t,r)=>{let i=Nm[t];return i||(i=wT.reduce((o,u)=>o.replace(u[0],u[1].bind(t)),t),Nm[t]=i),r?new RegExp(i,"i"):new RegExp(i)},gl=t=>typeof t=="string",xT=t=>t&&gl(t)&&!fT.test(t)&&!hT.test(t)&&t.indexOf("#")!==0,ET=t=>t.split(gT),pl=class{constructor(r,i,o,u){this.origin=r,this.pattern=i,this.negative=o,this.regex=u}},AT=(t,r)=>{let i=t,o=!1;t.indexOf("!")===0&&(o=!0,t=t.substr(1)),t=t.replace(pT,"!").replace(dT,"#");let u=ST(t,r);return new pl(i,t,o,u)},CT=(t,r)=>{throw new r(t)},on=(t,r,i)=>gl(t)?t?on.isNotRelative(t)?i(`path should be a \`path.relative()\`d string, but got "${r}"`,RangeError):!0:i("path must not be empty",TypeError):i(`path must be a string, but got \`${r}\``,TypeError),qm=t=>mT.test(t);on.isNotRelative=qm;on.convert=t=>t;var dl=class{constructor({ignorecase:r=!0,ignoreCase:i=r,allowRelativePaths:o=!1}={}){_T(this,Dm,!0),this._rules=[],this._ignoreCase=i,this._allowRelativePaths=o,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(r){if(r&&r[Dm]){this._rules=this._rules.concat(r._rules),this._added=!0;return}if(xT(r)){let i=AT(r,this._ignoreCase);this._added=!0,this._rules.push(i)}}add(r){return this._added=!1,Lm(gl(r)?ET(r):r).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(r){return this.add(r)}_testOne(r,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(r)&&(o=!f,u=f)}),{ignored:o,unignored:u}}_test(r,i,o,u){let c=r&&on.convert(r);return on(c,r,this._allowRelativePaths?Fm:CT),this._t(c,i,o,u)}_t(r,i,o,u){if(r in i)return i[r];if(u||(u=r.split(hl)),u.pop(),!u.length)return i[r]=this._testOne(r,o);let c=this._t(u.join(hl)+hl,i,o,u);return i[r]=c.ignored?c:this._testOne(r,o)}ignores(r){return this._test(r,this._ignoreCache,!1).ignored}createFilter(){return r=>!this.ignores(r)}filter(r){return Lm(r).filter(this.createFilter())}test(r){return this._test(r,this._testCache,!0)}},Vs=t=>new dl(t),RT=t=>on(t&&on.convert(t),t,Fm);Vs.isPathValid=RT;Vs.default=Vs;Hm.exports=Vs;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 r=/^[a-z]:\//i;on.isNotRelative=i=>r.test(i)||qm(i)}});var Sr=L((wr,Si)=>{(function(){var t,r="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,j=4,W=8,te=16,Y=32,Q=64,N=128,ne=256,Z=512,G=30,ue="...",Pe=800,I=16,ve=1,me=2,$t=3,A=1/0,C=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",Z],["partial",Y],["partialRight",Q],["rearg",ne]],an="[object Arguments]",jt="[object Array]",Xt="[object AsyncFunction]",oe="[object Boolean]",Mt="[object Date]",tu="[object DOMException]",F="[object Error]",_e="[object Function]",$="[object GeneratorFunction]",V="[object Map]",be="[object Number]",We="[object Null]",we="[object Object]",Kn="[object Promise]",jn="[object Proxy]",Yr="[object RegExp]",Rt="[object Set]",Qr="[object String]",ki="[object Symbol]",vv="[object Undefined]",Zr="[object WeakMap]",bv="[object WeakSet]",Vr="[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,Sv=/\b(__p \+=) '' \+/g,xv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vl=/&(?:amp|lt|gt|quot|#39);/g,Jl=/[&<>"']/g,Ev=RegExp(Vl.source),Av=RegExp(Jl.source),Cv=/<%-([\s\S]+?)%>/g,Rv=/<%([\s\S]+?)%>/g,ef=/<%=([\s\S]+?)%>/g,Pv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tv=/^\w*$/,Ov=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fu=/[\\^$.*+?()[\]{}|]/g,Iv=RegExp(fu.source),hu=/^\s+/,Lv=/\s/,kv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dv=/\{\n\/\* \[wrapped with (.+)\] \*/,Nv=/,? & /,$v=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mv=/[()=,{}\[\]\/\s]/,Fv=/\\(\\)?/g,qv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tf=/\w*$/,Hv=/^[-+]0x[0-9a-f]+$/i,Bv=/^0b[01]+$/i,Wv=/^\[object .+?Constructor\]$/,Uv=/^0o[0-7]+$/i,Gv=/^(?:0|[1-9]\d*)$/,Kv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Di=/($^)/,jv=/['\n\r\u2028\u2029\\]/g,Ni="\\ud800-\\udfff",Xv="\\u0300-\\u036f",zv="\\ufe20-\\ufe2f",Yv="\\u20d0-\\u20ff",nf=Xv+zv+Yv,rf="\\u2700-\\u27bf",sf="a-z\\xdf-\\xf6\\xf8-\\xff",Qv="\\xac\\xb1\\xd7\\xf7",Zv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vv="\\u2000-\\u206f",Jv=" \\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",of="A-Z\\xc0-\\xd6\\xd8-\\xde",uf="\\ufe0e\\ufe0f",af=Qv+Zv+Vv+Jv,pu="['\u2019]",eb="["+Ni+"]",cf="["+af+"]",$i="["+nf+"]",lf="\\d+",tb="["+rf+"]",ff="["+sf+"]",hf="[^"+Ni+af+lf+rf+sf+of+"]",du="\\ud83c[\\udffb-\\udfff]",nb="(?:"+$i+"|"+du+")",pf="[^"+Ni+"]",gu="(?:\\ud83c[\\udde6-\\uddff]){2}",mu="[\\ud800-\\udbff][\\udc00-\\udfff]",zn="["+of+"]",df="\\u200d",gf="(?:"+ff+"|"+hf+")",rb="(?:"+zn+"|"+hf+")",mf="(?:"+pu+"(?:d|ll|m|re|s|t|ve))?",_f="(?:"+pu+"(?:D|LL|M|RE|S|T|VE))?",yf=nb+"?",vf="["+uf+"]?",ib="(?:"+df+"(?:"+[pf,gu,mu].join("|")+")"+vf+yf+")*",sb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ob="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bf=vf+yf+ib,ub="(?:"+[tb,gu,mu].join("|")+")"+bf,ab="(?:"+[pf+$i+"?",$i,gu,mu,eb].join("|")+")",cb=RegExp(pu,"g"),lb=RegExp($i,"g"),_u=RegExp(du+"(?="+du+")|"+ab+bf,"g"),fb=RegExp([zn+"?"+ff+"+"+mf+"(?="+[cf,zn,"$"].join("|")+")",rb+"+"+_f+"(?="+[cf,zn+gf,"$"].join("|")+")",zn+"?"+gf+"+"+mf,zn+"+"+_f,ob,sb,lf,ub].join("|"),"g"),hb=RegExp("["+df+Ni+nf+uf+"]"),pb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,db=["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"],gb=-1,Ae={};Ae[nu]=Ae[ru]=Ae[iu]=Ae[su]=Ae[ou]=Ae[uu]=Ae[au]=Ae[cu]=Ae[lu]=!0,Ae[an]=Ae[jt]=Ae[Vr]=Ae[oe]=Ae[Xn]=Ae[Mt]=Ae[F]=Ae[_e]=Ae[V]=Ae[be]=Ae[we]=Ae[Yr]=Ae[Rt]=Ae[Qr]=Ae[Zr]=!1;var Ee={};Ee[an]=Ee[jt]=Ee[Vr]=Ee[Xn]=Ee[oe]=Ee[Mt]=Ee[nu]=Ee[ru]=Ee[iu]=Ee[su]=Ee[ou]=Ee[V]=Ee[be]=Ee[we]=Ee[Yr]=Ee[Rt]=Ee[Qr]=Ee[ki]=Ee[uu]=Ee[au]=Ee[cu]=Ee[lu]=!0,Ee[F]=Ee[_e]=Ee[Zr]=!1;var mb={\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"},_b={"&":"&","<":"<",">":">",'"':""","'":"'"},yb={"&":"&","<":"<",">":">",""":'"',"'":"'"},vb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bb=parseFloat,wb=parseInt,wf=typeof global=="object"&&global&&global.Object===Object&&global,Sb=typeof self=="object"&&self&&self.Object===Object&&self,qe=wf||Sb||Function("return this")(),yu=typeof wr=="object"&&wr&&!wr.nodeType&&wr,Rn=yu&&typeof Si=="object"&&Si&&!Si.nodeType&&Si,Sf=Rn&&Rn.exports===yu,vu=Sf&&wf.process,mt=function(){try{var b=Rn&&Rn.require&&Rn.require("util").types;return b||vu&&vu.binding&&vu.binding("util")}catch{}}(),xf=mt&&mt.isArrayBuffer,Ef=mt&&mt.isDate,Af=mt&&mt.isMap,Cf=mt&&mt.isRegExp,Rf=mt&&mt.isSet,Pf=mt&&mt.isTypedArray;function st(b,R,E){switch(E.length){case 0:return b.call(R);case 1:return b.call(R,E[0]);case 2:return b.call(R,E[0],E[1]);case 3:return b.call(R,E[0],E[1],E[2])}return b.apply(R,E)}function xb(b,R,E,B){for(var ie=-1,ge=b==null?0:b.length;++ie-1}function bu(b,R,E){for(var B=-1,ie=b==null?0:b.length;++B-1;);return E}function $f(b,R){for(var E=b.length;E--&&Yn(R,b[E],0)>-1;);return E}function Lb(b,R){for(var E=b.length,B=0;E--;)b[E]===R&&++B;return B}var kb=Eu(mb),Db=Eu(_b);function Nb(b){return"\\"+vb[b]}function $b(b,R){return b==null?t:b[R]}function Qn(b){return hb.test(b)}function Mb(b){return pb.test(b)}function Fb(b){for(var R,E=[];!(R=b.next()).done;)E.push(R.value);return E}function Pu(b){var R=-1,E=Array(b.size);return b.forEach(function(B,ie){E[++R]=[ie,B]}),E}function Mf(b,R){return function(E){return b(R(E))}}function fn(b,R){for(var E=-1,B=b.length,ie=0,ge=[];++E-1}function Aw(e,n){var s=this.__data__,a=es(s,e);return a<0?(++this.size,s.push([e,n])):s[a][1]=n,this}zt.prototype.clear=ww,zt.prototype.delete=Sw,zt.prototype.get=xw,zt.prototype.has=Ew,zt.prototype.set=Aw;function Yt(e){var n=-1,s=e==null?0:e.length;for(this.clear();++n=n?e:n)),e}function bt(e,n,s,a,l,d){var m,y=n&_,w=n&v,P=n&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=TS(e),!y)return Je(e,m)}else{var k=je(e),M=k==_e||k==$;if(yn(e))return vh(e,y);if(k==we||k==an||M&&!l){if(m=w||M?{}:Fh(e),!y)return w?yS(e,Bw(m,e)):_S(e,Yf(m,e))}else{if(!Ee[k])return l?e:{};m=OS(e,k,y)}}d||(d=new Tt);var U=d.get(e);if(U)return U;d.set(e,m),pp(e)?e.forEach(function(ee){m.add(bt(ee,n,s,ee,e,d))}):fp(e)&&e.forEach(function(ee,he){m.set(he,bt(ee,n,s,he,e,d))});var J=P?w?ea:Ju:w?tt:He,ce=T?t:J(e);return _t(ce||e,function(ee,he){ce&&(he=ee,ee=e[he]),si(m,he,bt(ee,n,s,he,e,d))}),m}function Ww(e){var n=He(e);return function(s){return Qf(s,e,n)}}function Qf(e,n,s){var a=s.length;if(e==null)return!a;for(e=xe(e);a--;){var l=s[a],d=n[l],m=e[l];if(m===t&&!(l in e)||!d(m))return!1}return!0}function Zf(e,n,s){if(typeof e!="function")throw new yt(u);return hi(function(){e.apply(t,s)},n)}function oi(e,n,s,a){var l=-1,d=Mi,m=!0,y=e.length,w=[],P=n.length;if(!y)return w;s&&(n=Ce(n,ot(s))),a?(d=bu,m=!1):n.length>=i&&(d=Jr,m=!1,n=new On(n));e:for(;++ll?0:l+s),a=a===t||a>l?l:ae(a),a<0&&(a+=l),a=s>a?0:gp(a);s0&&s(y)?n>1?Ue(y,n-1,s,a,l):ln(l,y):a||(l[l.length]=y)}return l}var Nu=Ah(),eh=Ah(!0);function Ft(e,n){return e&&Nu(e,n,He)}function $u(e,n){return e&&eh(e,n,He)}function ns(e,n){return cn(n,function(s){return en(e[s])})}function Ln(e,n){n=mn(n,e);for(var s=0,a=n.length;e!=null&&sn}function Kw(e,n){return e!=null&&Se.call(e,n)}function jw(e,n){return e!=null&&n in xe(e)}function Xw(e,n,s){return e>=Ke(n,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&&Xi.call(y,w,1),Xi.call(e,w,1);return e}function fh(e,n){for(var s=e?n.length:0,a=s-1;s--;){var l=n[s];if(s==a||l!==d){var d=l;Jt(l)?Xi.call(e,l,1):ju(e,l)}}return e}function Uu(e,n){return e+Qi(Kf()*(n-e+1))}function oS(e,n,s,a){for(var l=-1,d=Me(Yi((n-e)/(s||1)),0),m=E(d);d--;)m[a?d:++l]=e,e+=s;return m}function Gu(e,n){var s="";if(!e||n<1||n>C)return s;do n%2&&(s+=e),n=Qi(n/2),n&&(e+=e);while(n);return s}function le(e,n){return ua(Bh(e,n,nt),e+"")}function uS(e){return zf(or(e))}function aS(e,n){var s=or(e);return ps(s,In(n,0,s.length))}function ci(e,n,s,a){if(!Te(e))return e;n=mn(n,e);for(var l=-1,d=n.length,m=d-1,y=e;y!=null&&++ll?0:l+n),s=s>l?l:s,s<0&&(s+=l),l=n>s?0:s-n>>>0,n>>>=0;for(var d=E(l);++a>>1,m=e[d];m!==null&&!at(m)&&(s?m<=n:m=i){var P=n?null:SS(e);if(P)return qi(P);m=!1,l=Jr,w=new On}else w=n?[]:y;e:for(;++a=a?e:wt(e,n,s)}var yh=Jb||function(e){return qe.clearTimeout(e)};function vh(e,n){if(n)return e.slice();var s=e.length,a=Hf?Hf(s):new e.constructor(s);return e.copy(a),a}function Qu(e){var n=new e.constructor(e.byteLength);return new Ki(n).set(new Ki(e)),n}function pS(e,n){var s=n?Qu(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function dS(e){var n=new e.constructor(e.source,tf.exec(e));return n.lastIndex=e.lastIndex,n}function gS(e){return ii?xe(ii.call(e)):{}}function bh(e,n){var s=n?Qu(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function wh(e,n){if(e!==n){var s=e!==t,a=e===null,l=e===e,d=at(e),m=n!==t,y=n===null,w=n===n,P=at(n);if(!y&&!P&&!d&&e>n||d&&m&&w&&!y&&!P||a&&m&&w||!s&&w||!l)return 1;if(!a&&!d&&!P&&e=y)return w;var P=s[a];return w*(P=="desc"?-1:1)}}return e.index-n.index}function Sh(e,n,s,a){for(var l=-1,d=e.length,m=s.length,y=-1,w=n.length,P=Me(d-m,0),T=E(w+P),k=!a;++y1?s[l-1]:t,m=l>2?s[2]:t;for(d=e.length>3&&typeof d=="function"?(l--,d):t,m&&Ze(s[0],s[1],m)&&(d=l<3?t:d,l=1),n=xe(n);++a-1?l[d?n[m]:m]:t}}function Ph(e){return Vt(function(n){var s=n.length,a=s,l=vt.prototype.thru;for(e&&n.reverse();a--;){var d=n[a];if(typeof d!="function")throw new yt(u);if(l&&!m&&fs(d)=="wrapper")var m=new vt([],!0)}for(a=m?a:s;++a1&&de.reverse(),T&&wy))return!1;var P=d.get(e),T=d.get(n);if(P&&T)return P==n&&T==e;var k=-1,M=!0,U=s&H?new On:t;for(d.set(e,n),d.set(n,e);++k1?"& ":"")+n[a],n=n.join(s>2?", ":" "),e.replace(kv,`{ /* [wrapped with `+n+`] */ -`)}function LS(e){return se(e)||Nn(e)||!!(Uf&&e&&e[Uf])}function Jt(e,n){var s=typeof e;return n=n??C,!!n&&(s=="number"||s!="symbol"&&Gv.test(e))&&e>-1&&e%1==0&&e0){if(++n>=Pe)return arguments[0]}else n=0;return e.apply(t,arguments)}}function ps(e,n){var s=-1,a=e.length,l=a-1;for(n=n===t?a:n;++s1?e[n-1]:t;return s=typeof s=="function"?(e.pop(),s):t,Jh(e,s)});function ep(e){var n=p(e);return n.__chain__=!0,n}function Ux(e,n){return n(e),e}function ds(e,n){return n(e)}var Gx=Vt(function(e){var n=e.length,s=n?e[0]:0,a=this.__wrapped__,l=function(d){return Du(d,e)};return n>1||this.__actions__.length||!(a instanceof pe)||!Jt(s)?this.thru(l):(a=a.slice(s,+s+(n?1:0)),a.__actions__.push({func:ds,args:[l],thisArg:t}),new vt(a,this.__chain__).thru(function(d){return n&&!d.length&&d.push(t),d}))});function Kx(){return ep(this)}function jx(){return new vt(this.value(),this.__chain__)}function Xx(){this.__values__===t&&(this.__values__=dp(this.value()));var e=this.__index__>=this.__values__.length,n=e?t:this.__values__[this.__index__++];return{done:e,value:n}}function zx(){return this}function Yx(e){for(var n,s=this;s instanceof Ji;){var a=Xh(s);a.__index__=0,a.__values__=t,n?l.__wrapped__=a:n=a;var l=a;s=s.__wrapped__}return l.__wrapped__=e,n}function Qx(){var e=this.__wrapped__;if(e instanceof pe){var n=e;return this.__actions__.length&&(n=new pe(this)),n=n.reverse(),n.__actions__.push({func:ds,args:[aa],thisArg:t}),new vt(n,this.__chain__)}return this.thru(aa)}function Zx(){return mh(this.__wrapped__,this.__actions__)}var Vx=os(function(e,n,s){Se.call(e,s)?++e[s]:Qt(e,s,1)});function Jx(e,n,s){var a=se(e)?Tf:Uw;return s&&Ze(e,n,s)&&(n=t),a(e,z(n,3))}function eE(e,n){var s=se(e)?cn:Jf;return s(e,z(n,3))}var tE=Rh(zh),nE=Rh(Yh);function rE(e,n){return Ue(gs(e,n),1)}function iE(e,n){return Ue(gs(e,n),A)}function sE(e,n,s){return s=s===t?1:ae(s),Ue(gs(e,n),s)}function tp(e,n){var s=se(e)?_t:dn;return s(e,z(n,3))}function np(e,n){var s=se(e)?Eb:Vf;return s(e,z(n,3))}var oE=os(function(e,n,s){Se.call(e,s)?e[s].push(n):Qt(e,s,[n])});function uE(e,n,s,a){e=et(e)?e:sr(e),s=s&&!a?ae(s):0;var l=e.length;return s<0&&(s=Me(l+s,0)),bs(e)?s<=l&&e.indexOf(n,s)>-1:!!l&&zn(e,n,s)>-1}var aE=le(function(e,n,s){var a=-1,l=typeof n=="function",d=et(e)?E(e.length):[];return dn(e,function(m){d[++a]=l?st(n,m,s):ui(m,n,s)}),d}),cE=os(function(e,n,s){Qt(e,s,n)});function gs(e,n){var s=se(e)?Ce:sh;return s(e,z(n,3))}function lE(e,n,s,a){return e==null?[]:(se(n)||(n=n==null?[]:[n]),s=a?t:s,se(s)||(s=s==null?[]:[s]),ch(e,n,s))}var fE=os(function(e,n,s){e[s?0:1].push(n)},function(){return[[],[]]});function hE(e,n,s){var a=se(e)?wu:kf,l=arguments.length<3;return a(e,z(n,4),s,l,dn)}function pE(e,n,s){var a=se(e)?Ab:kf,l=arguments.length<3;return a(e,z(n,4),s,l,Vf)}function dE(e,n){var s=se(e)?cn:Jf;return s(e,ys(z(n,3)))}function gE(e){var n=se(e)?zf:uS;return n(e)}function mE(e,n,s){(s?Ze(e,n,s):n===t)?n=1:n=ae(n);var a=se(e)?Fw:aS;return a(e,n)}function _E(e){var n=se(e)?qw:lS;return n(e)}function yE(e){if(e==null)return 0;if(et(e))return bs(e)?Qn(e):e.length;var n=je(e);return n==V||n==Rt?e.size:Hu(e).length}function vE(e,n,s){var a=se(e)?Su:fS;return s&&Ze(e,n,s)&&(n=t),a(e,z(n,3))}var bE=le(function(e,n){if(e==null)return[];var s=n.length;return s>1&&Ze(e,n[0],n[1])?n=[]:s>2&&Ze(n[0],n[1],n[2])&&(n=[n[0]]),ch(e,Ue(n,1),[])}),ms=ew||function(){return qe.Date.now()};function wE(e,n){if(typeof n!="function")throw new yt(u);return e=ae(e),function(){if(--e<1)return n.apply(this,arguments)}}function rp(e,n,s){return n=s?t:n,n=e&&n==null?e.length:n,Zt(e,N,t,t,t,t,n)}function ip(e,n){var s;if(typeof n!="function")throw new yt(u);return e=ae(e),function(){return--e>0&&(s=n.apply(this,arguments)),e<=1&&(n=t),s}}var la=le(function(e,n,s){var a=O;if(s.length){var l=fn(s,rr(la));a|=Y}return Zt(e,a,n,s,l)}),sp=le(function(e,n,s){var a=O|D;if(s.length){var l=fn(s,rr(sp));a|=Y}return Zt(n,a,e,s,l)});function op(e,n,s){n=s?t:n;var a=Zt(e,W,t,t,t,t,t,n);return a.placeholder=op.placeholder,a}function up(e,n,s){n=s?t:n;var a=Zt(e,te,t,t,t,t,t,n);return a.placeholder=up.placeholder,a}function ap(e,n,s){var a,l,d,m,y,w,P=0,T=!1,k=!1,M=!0;if(typeof e!="function")throw new yt(u);n=xt(n)||0,Te(s)&&(T=!!s.leading,k="maxWait"in s,d=k?Me(xt(s.maxWait)||0,n):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 J(ke){return P=ke,y=hi(he,n),T?U(ke):m}function ce(ke){var It=ke-w,nn=ke-P,Rp=n-It;return k?Ke(Rp,d-nn):Rp}function ee(ke){var It=ke-w,nn=ke-P;return w===t||It>=n||It<0||k&&nn>=d}function he(){var ke=ms();if(ee(ke))return de(ke);y=hi(he,ce(ke))}function de(ke){return y=t,M&&a?U(ke):(a=l=t,m)}function ct(){y!==t&&yh(y),P=0,a=w=l=y=t}function Ve(){return y===t?m:de(ms())}function lt(){var ke=ms(),It=ee(ke);if(a=arguments,l=this,w=ke,It){if(y===t)return J(w);if(k)return yh(y),y=hi(he,n),U(w)}return y===t&&(y=hi(he,n)),m}return lt.cancel=ct,lt.flush=Ve,lt}var SE=le(function(e,n){return Zf(e,1,n)}),xE=le(function(e,n,s){return Zf(e,xt(n)||0,s)});function EE(e){return Zt(e,Z)}function _s(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new yt(u);var s=function(){var a=arguments,l=n?n.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(_s.Cache||Yt),s}_s.Cache=Yt;function ys(e){if(typeof e!="function")throw new yt(u);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function AE(e){return ip(2,e)}var CE=hS(function(e,n){n=n.length==1&&se(n[0])?Ce(n[0],ot(z())):Ce(Ue(n,1),ot(z()));var s=n.length;return le(function(a){for(var l=-1,d=Ke(a.length,s);++l=n}),Nn=nh(function(){return arguments}())?nh:function(e){return Oe(e)&&Se.call(e,"callee")&&!Wf.call(e,"callee")},se=E.isArray,BE=xf?ot(xf):Yw;function et(e){return e!=null&&vs(e.length)&&!en(e)}function Le(e){return Oe(e)&&et(e)}function WE(e){return e===!0||e===!1||Oe(e)&&Qe(e)==oe}var yn=nw||Sa,UE=Ef?ot(Ef):Qw;function GE(e){return Oe(e)&&e.nodeType===1&&!pi(e)}function KE(e){if(e==null)return!0;if(et(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||yn(e)||ir(e)||Nn(e)))return!e.length;var n=je(e);if(n==V||n==Rt)return!e.size;if(fi(e))return!Hu(e).length;for(var s in e)if(Se.call(e,s))return!1;return!0}function jE(e,n){return ai(e,n)}function XE(e,n,s){s=typeof s=="function"?s:t;var a=s?s(e,n):t;return a===t?ai(e,n,t,s):!!a}function ha(e){if(!Oe(e))return!1;var n=Qe(e);return n==F||n==tu||typeof e.message=="string"&&typeof e.name=="string"&&!pi(e)}function zE(e){return typeof e=="number"&&Gf(e)}function en(e){if(!Te(e))return!1;var n=Qe(e);return n==_e||n==$||n==Xt||n==Kn}function lp(e){return typeof e=="number"&&e==ae(e)}function vs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=C}function Te(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Oe(e){return e!=null&&typeof e=="object"}var fp=Af?ot(Af):Vw;function YE(e,n){return e===n||qu(e,n,na(n))}function QE(e,n,s){return s=typeof s=="function"?s:t,qu(e,n,na(n),s)}function ZE(e){return hp(e)&&e!=+e}function VE(e){if(NS(e))throw new ie(o);return rh(e)}function JE(e){return e===null}function e0(e){return e==null}function hp(e){return typeof e=="number"||Oe(e)&&Qe(e)==be}function pi(e){if(!Oe(e)||Qe(e)!=we)return!1;var n=ji(e);if(n===null)return!0;var s=Se.call(n,"constructor")&&n.constructor;return typeof s=="function"&&s instanceof s&&Wi.call(s)==Qb}var pa=Cf?ot(Cf):Jw;function t0(e){return lp(e)&&e>=-C&&e<=C}var pp=Rf?ot(Rf):eS;function bs(e){return typeof e=="string"||!se(e)&&Oe(e)&&Qe(e)==Qr}function at(e){return typeof e=="symbol"||Oe(e)&&Qe(e)==ki}var ir=Pf?ot(Pf):tS;function n0(e){return e===t}function r0(e){return Oe(e)&&je(e)==Zr}function i0(e){return Oe(e)&&Qe(e)==bv}var s0=ls(Bu),o0=ls(function(e,n){return e<=n});function dp(e){if(!e)return[];if(et(e))return bs(e)?Pt(e):Je(e);if(ei&&e[ei])return Fb(e[ei]());var n=je(e),s=n==V?Pu:n==Rt?qi:sr;return s(e)}function tn(e){if(!e)return e===0?e:0;if(e=xt(e),e===A||e===-A){var n=e<0?-1:1;return n*Be}return e===e?e:0}function ae(e){var n=tn(e),s=n%1;return n===n?s?n-s:n:0}function gp(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 n=typeof e.valueOf=="function"?e.valueOf():e;e=Te(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Df(e);var s=Bv.test(e);return s||Uv.test(e)?wb(e.slice(2),s?2:8):Hv.test(e)?fe:+e}function mp(e){return qt(e,tt(e))}function u0(e){return e?In(ae(e),-C,C):e===0?e:0}function ye(e){return e==null?"":ut(e)}var a0=tr(function(e,n){if(fi(n)||et(n)){qt(n,He(n),e);return}for(var s in n)Se.call(n,s)&&si(e,s,n[s])}),_p=tr(function(e,n){qt(n,tt(n),e)}),ws=tr(function(e,n,s,a){qt(n,tt(n),e,a)}),c0=tr(function(e,n,s,a){qt(n,He(n),e,a)}),l0=Vt(Du);function f0(e,n){var s=er(e);return n==null?s:Yf(s,n)}var h0=le(function(e,n){e=xe(e);var s=-1,a=n.length,l=a>2?n[2]:t;for(l&&Ze(n[0],n[1],l)&&(a=1);++s1),d}),qt(e,ea(e),s),a&&(s=bt(s,_|v|x,xS));for(var l=n.length;l--;)ju(s,n[l]);return s});function O0(e,n){return vp(e,ys(z(n)))}var I0=Vt(function(e,n){return e==null?{}:iS(e,n)});function vp(e,n){if(e==null)return{};var s=Ce(ea(e),function(a){return[a]});return n=z(n),lh(e,s,function(a,l){return n(a,l[0])})}function L0(e,n,s){n=mn(n,e);var a=-1,l=n.length;for(l||(l=1,e=t);++an){var a=e;e=n,n=a}if(s||e%1||n%1){var l=Kf();return Ke(e+l*(n-e+bb("1e-"+((l+"").length-1))),n)}return Uu(e,n)}var U0=nr(function(e,n,s){return n=n.toLowerCase(),e+(s?Sp(n):n)});function Sp(e){return ma(ye(e).toLowerCase())}function xp(e){return e=ye(e),e&&e.replace(Kv,kb).replace(lb,"")}function G0(e,n,s){e=ye(e),n=ut(n);var a=e.length;s=s===t?a:In(ae(s),0,a);var l=s;return s-=n.length,s>=0&&e.slice(s,l)==n}function K0(e){return e=ye(e),e&&Av.test(e)?e.replace(Jl,Db):e}function j0(e){return e=ye(e),e&&Iv.test(e)?e.replace(fu,"\\$&"):e}var X0=nr(function(e,n,s){return e+(s?"-":"")+n.toLowerCase()}),z0=nr(function(e,n,s){return e+(s?" ":"")+n.toLowerCase()}),Y0=Ch("toLowerCase");function Q0(e,n,s){e=ye(e),n=ae(n);var a=n?Qn(e):0;if(!n||a>=n)return e;var l=(n-a)/2;return cs(Qi(l),s)+e+cs(Yi(l),s)}function Z0(e,n,s){e=ye(e),n=ae(n);var a=n?Qn(e):0;return n&&a>>0,s?(e=ye(e),e&&(typeof n=="string"||n!=null&&!pa(n))&&(n=ut(n),!n&&Yn(e))?_n(Pt(e),0,s):e.split(n,s)):[]}var iA=nr(function(e,n,s){return e+(s?" ":"")+ma(n)});function sA(e,n,s){return e=ye(e),s=s==null?0:In(ae(s),0,e.length),n=ut(n),e.slice(s,s+n.length)==n}function oA(e,n,s){var a=p.templateSettings;s&&Ze(e,n,s)&&(n=t),e=ye(e),n=ws({},n,a,kh);var l=ws({},n.imports,a.imports,kh),d=He(l),m=Ru(l,d),y,w,P=0,T=n.interpolate||Di,k="__p += '",M=Tu((n.escape||Di).source+"|"+T.source+"|"+(T===ef?qv:Di).source+"|"+(n.evaluate||Di).source+"|$","g"),U="//# sourceURL="+(Se.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gb+"]")+` +`)}function LS(e){return se(e)||Nn(e)||!!(Uf&&e&&e[Uf])}function Jt(e,n){var s=typeof e;return n=n??C,!!n&&(s=="number"||s!="symbol"&&Gv.test(e))&&e>-1&&e%1==0&&e0){if(++n>=Pe)return arguments[0]}else n=0;return e.apply(t,arguments)}}function ps(e,n){var s=-1,a=e.length,l=a-1;for(n=n===t?a:n;++s1?e[n-1]:t;return s=typeof s=="function"?(e.pop(),s):t,Jh(e,s)});function ep(e){var n=p(e);return n.__chain__=!0,n}function Ux(e,n){return n(e),e}function ds(e,n){return n(e)}var Gx=Vt(function(e){var n=e.length,s=n?e[0]:0,a=this.__wrapped__,l=function(d){return Du(d,e)};return n>1||this.__actions__.length||!(a instanceof pe)||!Jt(s)?this.thru(l):(a=a.slice(s,+s+(n?1:0)),a.__actions__.push({func:ds,args:[l],thisArg:t}),new vt(a,this.__chain__).thru(function(d){return n&&!d.length&&d.push(t),d}))});function Kx(){return ep(this)}function jx(){return new vt(this.value(),this.__chain__)}function Xx(){this.__values__===t&&(this.__values__=dp(this.value()));var e=this.__index__>=this.__values__.length,n=e?t:this.__values__[this.__index__++];return{done:e,value:n}}function zx(){return this}function Yx(e){for(var n,s=this;s instanceof Ji;){var a=Xh(s);a.__index__=0,a.__values__=t,n?l.__wrapped__=a:n=a;var l=a;s=s.__wrapped__}return l.__wrapped__=e,n}function Qx(){var e=this.__wrapped__;if(e instanceof pe){var n=e;return this.__actions__.length&&(n=new pe(this)),n=n.reverse(),n.__actions__.push({func:ds,args:[aa],thisArg:t}),new vt(n,this.__chain__)}return this.thru(aa)}function Zx(){return mh(this.__wrapped__,this.__actions__)}var Vx=os(function(e,n,s){Se.call(e,s)?++e[s]:Qt(e,s,1)});function Jx(e,n,s){var a=se(e)?Tf:Uw;return s&&Ze(e,n,s)&&(n=t),a(e,z(n,3))}function eE(e,n){var s=se(e)?cn:Jf;return s(e,z(n,3))}var tE=Rh(zh),nE=Rh(Yh);function rE(e,n){return Ue(gs(e,n),1)}function iE(e,n){return Ue(gs(e,n),A)}function sE(e,n,s){return s=s===t?1:ae(s),Ue(gs(e,n),s)}function tp(e,n){var s=se(e)?_t:dn;return s(e,z(n,3))}function np(e,n){var s=se(e)?Eb:Vf;return s(e,z(n,3))}var oE=os(function(e,n,s){Se.call(e,s)?e[s].push(n):Qt(e,s,[n])});function uE(e,n,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)),bs(e)?s<=l&&e.indexOf(n,s)>-1:!!l&&Yn(e,n,s)>-1}var aE=le(function(e,n,s){var a=-1,l=typeof n=="function",d=et(e)?E(e.length):[];return dn(e,function(m){d[++a]=l?st(n,m,s):ui(m,n,s)}),d}),cE=os(function(e,n,s){Qt(e,s,n)});function gs(e,n){var s=se(e)?Ce:sh;return s(e,z(n,3))}function lE(e,n,s,a){return e==null?[]:(se(n)||(n=n==null?[]:[n]),s=a?t:s,se(s)||(s=s==null?[]:[s]),ch(e,n,s))}var fE=os(function(e,n,s){e[s?0:1].push(n)},function(){return[[],[]]});function hE(e,n,s){var a=se(e)?wu:kf,l=arguments.length<3;return a(e,z(n,4),s,l,dn)}function pE(e,n,s){var a=se(e)?Ab:kf,l=arguments.length<3;return a(e,z(n,4),s,l,Vf)}function dE(e,n){var s=se(e)?cn:Jf;return s(e,ys(z(n,3)))}function gE(e){var n=se(e)?zf:uS;return n(e)}function mE(e,n,s){(s?Ze(e,n,s):n===t)?n=1:n=ae(n);var a=se(e)?Fw:aS;return a(e,n)}function _E(e){var n=se(e)?qw:lS;return n(e)}function yE(e){if(e==null)return 0;if(et(e))return bs(e)?Zn(e):e.length;var n=je(e);return n==V||n==Rt?e.size:Hu(e).length}function vE(e,n,s){var a=se(e)?Su:fS;return s&&Ze(e,n,s)&&(n=t),a(e,z(n,3))}var bE=le(function(e,n){if(e==null)return[];var s=n.length;return s>1&&Ze(e,n[0],n[1])?n=[]:s>2&&Ze(n[0],n[1],n[2])&&(n=[n[0]]),ch(e,Ue(n,1),[])}),ms=ew||function(){return qe.Date.now()};function wE(e,n){if(typeof n!="function")throw new yt(u);return e=ae(e),function(){if(--e<1)return n.apply(this,arguments)}}function rp(e,n,s){return n=s?t:n,n=e&&n==null?e.length:n,Zt(e,N,t,t,t,t,n)}function ip(e,n){var s;if(typeof n!="function")throw new yt(u);return e=ae(e),function(){return--e>0&&(s=n.apply(this,arguments)),e<=1&&(n=t),s}}var la=le(function(e,n,s){var a=O;if(s.length){var l=fn(s,ir(la));a|=Y}return Zt(e,a,n,s,l)}),sp=le(function(e,n,s){var a=O|D;if(s.length){var l=fn(s,ir(sp));a|=Y}return Zt(n,a,e,s,l)});function op(e,n,s){n=s?t:n;var a=Zt(e,W,t,t,t,t,t,n);return a.placeholder=op.placeholder,a}function up(e,n,s){n=s?t:n;var a=Zt(e,te,t,t,t,t,t,n);return a.placeholder=up.placeholder,a}function ap(e,n,s){var a,l,d,m,y,w,P=0,T=!1,k=!1,M=!0;if(typeof e!="function")throw new yt(u);n=xt(n)||0,Te(s)&&(T=!!s.leading,k="maxWait"in s,d=k?Me(xt(s.maxWait)||0,n):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 J(ke){return P=ke,y=hi(he,n),T?U(ke):m}function ce(ke){var It=ke-w,nn=ke-P,Rp=n-It;return k?Ke(Rp,d-nn):Rp}function ee(ke){var It=ke-w,nn=ke-P;return w===t||It>=n||It<0||k&&nn>=d}function he(){var ke=ms();if(ee(ke))return de(ke);y=hi(he,ce(ke))}function de(ke){return y=t,M&&a?U(ke):(a=l=t,m)}function ct(){y!==t&&yh(y),P=0,a=w=l=y=t}function Ve(){return y===t?m:de(ms())}function lt(){var ke=ms(),It=ee(ke);if(a=arguments,l=this,w=ke,It){if(y===t)return J(w);if(k)return yh(y),y=hi(he,n),U(w)}return y===t&&(y=hi(he,n)),m}return lt.cancel=ct,lt.flush=Ve,lt}var SE=le(function(e,n){return Zf(e,1,n)}),xE=le(function(e,n,s){return Zf(e,xt(n)||0,s)});function EE(e){return Zt(e,Z)}function _s(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new yt(u);var s=function(){var a=arguments,l=n?n.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(_s.Cache||Yt),s}_s.Cache=Yt;function ys(e){if(typeof e!="function")throw new yt(u);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function AE(e){return ip(2,e)}var CE=hS(function(e,n){n=n.length==1&&se(n[0])?Ce(n[0],ot(z())):Ce(Ue(n,1),ot(z()));var s=n.length;return le(function(a){for(var l=-1,d=Ke(a.length,s);++l=n}),Nn=nh(function(){return arguments}())?nh:function(e){return Oe(e)&&Se.call(e,"callee")&&!Wf.call(e,"callee")},se=E.isArray,BE=xf?ot(xf):Yw;function et(e){return e!=null&&vs(e.length)&&!en(e)}function Le(e){return Oe(e)&&et(e)}function WE(e){return e===!0||e===!1||Oe(e)&&Qe(e)==oe}var yn=nw||Sa,UE=Ef?ot(Ef):Qw;function GE(e){return Oe(e)&&e.nodeType===1&&!pi(e)}function KE(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 n=je(e);if(n==V||n==Rt)return!e.size;if(fi(e))return!Hu(e).length;for(var s in e)if(Se.call(e,s))return!1;return!0}function jE(e,n){return ai(e,n)}function XE(e,n,s){s=typeof s=="function"?s:t;var a=s?s(e,n):t;return a===t?ai(e,n,t,s):!!a}function ha(e){if(!Oe(e))return!1;var n=Qe(e);return n==F||n==tu||typeof e.message=="string"&&typeof e.name=="string"&&!pi(e)}function zE(e){return typeof e=="number"&&Gf(e)}function en(e){if(!Te(e))return!1;var n=Qe(e);return n==_e||n==$||n==Xt||n==jn}function lp(e){return typeof e=="number"&&e==ae(e)}function vs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=C}function Te(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Oe(e){return e!=null&&typeof e=="object"}var fp=Af?ot(Af):Vw;function YE(e,n){return e===n||qu(e,n,na(n))}function QE(e,n,s){return s=typeof s=="function"?s:t,qu(e,n,na(n),s)}function ZE(e){return hp(e)&&e!=+e}function VE(e){if(NS(e))throw new ie(o);return rh(e)}function JE(e){return e===null}function e0(e){return e==null}function hp(e){return typeof e=="number"||Oe(e)&&Qe(e)==be}function pi(e){if(!Oe(e)||Qe(e)!=we)return!1;var n=ji(e);if(n===null)return!0;var s=Se.call(n,"constructor")&&n.constructor;return typeof s=="function"&&s instanceof s&&Wi.call(s)==Qb}var pa=Cf?ot(Cf):Jw;function t0(e){return lp(e)&&e>=-C&&e<=C}var pp=Rf?ot(Rf):eS;function bs(e){return typeof e=="string"||!se(e)&&Oe(e)&&Qe(e)==Qr}function at(e){return typeof e=="symbol"||Oe(e)&&Qe(e)==ki}var sr=Pf?ot(Pf):tS;function n0(e){return e===t}function r0(e){return Oe(e)&&je(e)==Zr}function i0(e){return Oe(e)&&Qe(e)==bv}var s0=ls(Bu),o0=ls(function(e,n){return e<=n});function dp(e){if(!e)return[];if(et(e))return bs(e)?Pt(e):Je(e);if(ei&&e[ei])return Fb(e[ei]());var n=je(e),s=n==V?Pu:n==Rt?qi:or;return s(e)}function tn(e){if(!e)return e===0?e:0;if(e=xt(e),e===A||e===-A){var n=e<0?-1:1;return n*Be}return e===e?e:0}function ae(e){var n=tn(e),s=n%1;return n===n?s?n-s:n:0}function gp(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 n=typeof e.valueOf=="function"?e.valueOf():e;e=Te(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Df(e);var s=Bv.test(e);return s||Uv.test(e)?wb(e.slice(2),s?2:8):Hv.test(e)?fe:+e}function mp(e){return qt(e,tt(e))}function u0(e){return e?In(ae(e),-C,C):e===0?e:0}function ye(e){return e==null?"":ut(e)}var a0=nr(function(e,n){if(fi(n)||et(n)){qt(n,He(n),e);return}for(var s in n)Se.call(n,s)&&si(e,s,n[s])}),_p=nr(function(e,n){qt(n,tt(n),e)}),ws=nr(function(e,n,s,a){qt(n,tt(n),e,a)}),c0=nr(function(e,n,s,a){qt(n,He(n),e,a)}),l0=Vt(Du);function f0(e,n){var s=tr(e);return n==null?s:Yf(s,n)}var h0=le(function(e,n){e=xe(e);var s=-1,a=n.length,l=a>2?n[2]:t;for(l&&Ze(n[0],n[1],l)&&(a=1);++s1),d}),qt(e,ea(e),s),a&&(s=bt(s,_|v|x,xS));for(var l=n.length;l--;)ju(s,n[l]);return s});function O0(e,n){return vp(e,ys(z(n)))}var I0=Vt(function(e,n){return e==null?{}:iS(e,n)});function vp(e,n){if(e==null)return{};var s=Ce(ea(e),function(a){return[a]});return n=z(n),lh(e,s,function(a,l){return n(a,l[0])})}function L0(e,n,s){n=mn(n,e);var a=-1,l=n.length;for(l||(l=1,e=t);++an){var a=e;e=n,n=a}if(s||e%1||n%1){var l=Kf();return Ke(e+l*(n-e+bb("1e-"+((l+"").length-1))),n)}return Uu(e,n)}var U0=rr(function(e,n,s){return n=n.toLowerCase(),e+(s?Sp(n):n)});function Sp(e){return ma(ye(e).toLowerCase())}function xp(e){return e=ye(e),e&&e.replace(Kv,kb).replace(lb,"")}function G0(e,n,s){e=ye(e),n=ut(n);var a=e.length;s=s===t?a:In(ae(s),0,a);var l=s;return s-=n.length,s>=0&&e.slice(s,l)==n}function K0(e){return e=ye(e),e&&Av.test(e)?e.replace(Jl,Db):e}function j0(e){return e=ye(e),e&&Iv.test(e)?e.replace(fu,"\\$&"):e}var X0=rr(function(e,n,s){return e+(s?"-":"")+n.toLowerCase()}),z0=rr(function(e,n,s){return e+(s?" ":"")+n.toLowerCase()}),Y0=Ch("toLowerCase");function Q0(e,n,s){e=ye(e),n=ae(n);var a=n?Zn(e):0;if(!n||a>=n)return e;var l=(n-a)/2;return cs(Qi(l),s)+e+cs(Yi(l),s)}function Z0(e,n,s){e=ye(e),n=ae(n);var a=n?Zn(e):0;return n&&a>>0,s?(e=ye(e),e&&(typeof n=="string"||n!=null&&!pa(n))&&(n=ut(n),!n&&Qn(e))?_n(Pt(e),0,s):e.split(n,s)):[]}var iA=rr(function(e,n,s){return e+(s?" ":"")+ma(n)});function sA(e,n,s){return e=ye(e),s=s==null?0:In(ae(s),0,e.length),n=ut(n),e.slice(s,s+n.length)==n}function oA(e,n,s){var a=p.templateSettings;s&&Ze(e,n,s)&&(n=t),e=ye(e),n=ws({},n,a,kh);var l=ws({},n.imports,a.imports,kh),d=He(l),m=Ru(l,d),y,w,P=0,T=n.interpolate||Di,k="__p += '",M=Tu((n.escape||Di).source+"|"+T.source+"|"+(T===ef?qv:Di).source+"|"+(n.evaluate||Di).source+"|$","g"),U="//# sourceURL="+(Se.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gb+"]")+` `;e.replace(M,function(ee,he,de,ct,Ve,lt){return de||(de=ct),k+=e.slice(P,lt).replace(jv,Nb),he&&(y=!0,k+=`' + __e(`+he+`) + '`),Ve&&(w=!0,k+=`'; @@ -23,10 +23,10 @@ __p += '`),de&&(k+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+k+`return __p -}`;var ce=Ap(function(){return ge(d,U+"return "+k).apply(t,m)});if(ce.source=k,ha(ce))throw ce;return ce}function uA(e){return ye(e).toLowerCase()}function aA(e){return ye(e).toUpperCase()}function cA(e,n,s){if(e=ye(e),e&&(s||n===t))return Df(e);if(!e||!(n=ut(n)))return e;var a=Pt(e),l=Pt(n),d=Nf(a,l),m=$f(a,l)+1;return _n(a,d,m).join("")}function lA(e,n,s){if(e=ye(e),e&&(s||n===t))return e.slice(0,Ff(e)+1);if(!e||!(n=ut(n)))return e;var a=Pt(e),l=$f(a,Pt(n))+1;return _n(a,0,l).join("")}function fA(e,n,s){if(e=ye(e),e&&(s||n===t))return e.replace(hu,"");if(!e||!(n=ut(n)))return e;var a=Pt(e),l=Nf(a,Pt(n));return _n(a,l).join("")}function hA(e,n){var s=G,a=ue;if(Te(n)){var l="separator"in n?n.separator:l;s="length"in n?ae(n.length):s,a="omission"in n?ut(n.omission):a}e=ye(e);var d=e.length;if(Yn(e)){var m=Pt(e);d=m.length}if(s>=d)return e;var y=s-Qn(a);if(y<1)return a;var w=m?_n(m,0,y).join(""):e.slice(0,y);if(l===t)return w+a;if(m&&(y+=w.length-y),pa(l)){if(e.slice(y).search(l)){var P,T=w;for(l.global||(l=Tu(l.source,ye(tf.exec(l))+"g")),l.lastIndex=0;P=l.exec(T);)var k=P.index;w=w.slice(0,k===t?y:k)}}else if(e.indexOf(ut(l),y)!=y){var M=w.lastIndexOf(l);M>-1&&(w=w.slice(0,M))}return w+a}function pA(e){return e=ye(e),e&&Ev.test(e)?e.replace(Vl,Wb):e}var dA=nr(function(e,n,s){return e+(s?" ":"")+n.toUpperCase()}),ma=Ch("toUpperCase");function Ep(e,n,s){return e=ye(e),n=s?t:n,n===t?Mb(e)?Kb(e):Pb(e):e.match(n)||[]}var Ap=le(function(e,n){try{return st(e,t,n)}catch(s){return ha(s)?s:new ie(s)}}),gA=Vt(function(e,n){return _t(n,function(s){s=Ht(s),Qt(e,s,la(e[s],e))}),e});function mA(e){var n=e==null?0:e.length,s=z();return e=n?Ce(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;++lC)return[];var s=Ie,a=Ke(e,Ie);n=z(n),e-=Ie;for(var l=Cu(a,n);++s0||n<0)?new pe(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),n!==t&&(n=ae(n),s=n<0?s.dropRight(-n):s.take(n-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,n){var s=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),l=p[a?"take"+(n=="last"?"Right":""):n],d=a||/^find/.test(n);!l||(p.prototype[n]=function(){var m=this.__wrapped__,y=a?[1]:arguments,w=m instanceof pe,P=y[0],T=w||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&&(w=T=!1);var M=this.__chain__,U=!!this.__actions__.length,J=d&&!M,ce=w&&!U;if(!d&&T){m=ce?m:new pe(this);var ee=e.apply(m,y);return ee.__actions__.push({func:ds,args:[k],thisArg:t}),new vt(ee,M)}return J&&ce?e.apply(this,y):(ee=this.thru(k),J?a?ee.value()[0]:ee.value():ee)})}),_t(["pop","push","shift","sort","splice","unshift"],function(e){var n=Hi[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 n.apply(se(d)?d:[],l)}return this[s](function(m){return n.apply(se(m)?m:[],l)})}}),Ft(pe.prototype,function(e,n){var s=p[n];if(s){var a=s.name+"";Se.call(Jn,a)||(Jn[a]=[]),Jn[a].push({name:n,func:s})}}),Jn[us(t,D).name]=[{name:"wrapper",func:t}],pe.prototype.clone=pw,pe.prototype.reverse=dw,pe.prototype.value=gw,p.prototype.at=Gx,p.prototype.chain=Kx,p.prototype.commit=jx,p.prototype.next=Xx,p.prototype.plant=Yx,p.prototype.reverse=Qx,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=Zx,p.prototype.first=p.prototype.head,ei&&(p.prototype[ei]=zx),p},hn=jb();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qe._=hn,define(function(){return hn})):Rn?((Rn.exports=hn)._=hn,yu._=hn):qe._=hn}).call(br)});var w_=L((MD,b_)=>{"use strict";b_.exports=t=>function(){let r=arguments.length,i=new Array(r);for(let o=0;o{i.push((c,f)=>{c?u(c):o(f)}),t.apply(null,i)})}});var it=L((FD,S_)=>{"use strict";var eo=q("fs"),DT=w_(),NT=t=>[typeof eo[t]=="function",!t.match(/Sync$/),!t.match(/^[A-Z]/),!t.match(/^create/),!t.match(/^(un)?watch/)].every(Boolean),$T=t=>{let r=eo[t];return DT(r)},MT=()=>{let t={};return Object.keys(eo).forEach(r=>{NT(r)?r==="exists"?t.exists=()=>{throw new Error("fs.exists() is deprecated")}:t[r]=$T(r):t[r]=eo[r]}),t};S_.exports=MT()});var Ge=L((qD,C_)=>{"use strict";var FT=t=>{let r=i=>["a","e","i","o","u"].indexOf(i[0])!==-1?`an ${i}`:`a ${i}`;return t.map(r).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(r=>r===t),Ai=t=>t===null?"null":Array.isArray(t)?"array":Buffer.isBuffer(t)?"buffer":typeof t,qT=(t,r,i)=>i.indexOf(t)===r,HT=t=>{let r=Ai(t),i;return r==="array"&&(i=t.map(o=>Ai(o)).filter(qT),r+=` of ${i.join(", ")}`),r},BT=(t,r)=>{let i=E_(r);return Ai(t)!=="array"?!1:t.every(o=>Ai(o)===i)},bl=(t,r,i,o)=>{if(!o.some(c=>{if(!A_(c))throw new Error(`Unknown type "${c}"`);return x_(c)?BT(i,c):c===Ai(i)}))throw new Error(`Argument "${r}" passed to ${t} must be ${FT(o)}. Received ${HT(i)}`)},WT=(t,r,i,o)=>{i!==void 0&&(bl(t,r,i,["object"]),Object.keys(i).forEach(u=>{let c=`${r}.${u}`;if(o[u]!==void 0)bl(t,c,i[u],o[u]);else throw new Error(`Unknown argument "${c}" passed to ${t}`)}))};C_.exports={argument:bl,options:WT}});var to=L(R_=>{"use strict";R_.normalizeFileMode=t=>{let r;return typeof t=="number"?r=t.toString(8):r=t,r.substring(r.length-3)}});var ro=L(no=>{"use strict";var P_=it(),UT=Ge(),GT=(t,r)=>{let i=`${t}([path])`;UT.argument(i,"path",r,["string","undefined"])},KT=t=>{P_.rmSync(t,{recursive:!0,force:!0,maxRetries:3})},jT=t=>P_.rm(t,{recursive:!0,force:!0,maxRetries:3});no.validateInput=GT;no.sync=KT;no.async=jT});var Wn=L(Pr=>{"use strict";var io=q("path"),Kt=it(),wl=to(),T_=Ge(),O_=ro(),XT=(t,r,i)=>{let o=`${t}(path, [criteria])`;T_.argument(o,"path",r,["string"]),T_.options(o,"criteria",i,{empty:["boolean"],mode:["string","number"]})},I_=t=>{let r=t||{};return typeof r.empty!="boolean"&&(r.empty=!1),r.mode!==void 0&&(r.mode=wl.normalizeFileMode(r.mode)),r},L_=t=>new Error(`Path ${t} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),zT=t=>{let r;try{r=Kt.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(r&&!r.isDirectory())throw L_(t);return r},Sl=(t,r)=>{let i=r||{};try{Kt.mkdirSync(t,i.mode)}catch(o){if(o.code==="ENOENT")Sl(io.dirname(t),i),Kt.mkdirSync(t,i.mode);else if(o.code!=="EEXIST")throw o}},YT=(t,r,i)=>{let o=()=>{let c=wl.normalizeFileMode(r.mode);i.mode!==void 0&&i.mode!==c&&Kt.chmodSync(t,i.mode)},u=()=>{i.empty&&Kt.readdirSync(t).forEach(f=>{O_.sync(io.resolve(t,f))})};o(),u()},QT=(t,r)=>{let i=I_(r),o=zT(t);o?YT(t,o,i):Sl(t,i)},ZT=t=>new Promise((r,i)=>{Kt.stat(t).then(o=>{o.isDirectory()?r(o):i(L_(t))}).catch(o=>{o.code==="ENOENT"?r(void 0):i(o)})}),VT=t=>new Promise((r,i)=>{Kt.readdir(t).then(o=>{let u=c=>{if(c===o.length)r();else{let f=io.resolve(t,o[c]);O_.async(f).then(()=>{u(c+1)})}};u(0)}).catch(i)}),JT=(t,r,i)=>new Promise((o,u)=>{let c=()=>{let h=wl.normalizeFileMode(r.mode);return i.mode!==void 0&&i.mode!==h?Kt.chmod(t,i.mode):Promise.resolve()},f=()=>i.empty?VT(t):Promise.resolve();c().then(f).then(o,u)}),xl=(t,r)=>{let i=r||{};return new Promise((o,u)=>{Kt.mkdir(t,i.mode).then(o).catch(c=>{c.code==="ENOENT"?xl(io.dirname(t),i).then(()=>Kt.mkdir(t,i.mode)).then(o).catch(f=>{f.code==="EEXIST"?o():u(f)}):c.code==="EEXIST"?o():u(c)})})},eO=(t,r)=>new Promise((i,o)=>{let u=I_(r);ZT(t).then(c=>c!==void 0?JT(t,c,u):xl(t,u)).then(i,o)});Pr.validateInput=XT;Pr.sync=QT;Pr.createSync=Sl;Pr.async=eO;Pr.createAsync=xl});var Ci=L(oo=>{"use strict";var k_=q("path"),Tr=it(),El=Ge(),D_=Wn(),tO=(t,r,i,o)=>{let u=`${t}(path, data, [options])`;El.argument(u,"path",r,["string"]),El.argument(u,"data",i,["string","buffer","object","array"]),El.options(u,"options",o,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},so=".__new__",N_=(t,r)=>{let i=r;return typeof i!="number"&&(i=2),typeof t=="object"&&!Buffer.isBuffer(t)&&t!==null?JSON.stringify(t,null,i):t},$_=(t,r,i)=>{try{Tr.writeFileSync(t,r,i)}catch(o){if(o.code==="ENOENT")D_.createSync(k_.dirname(t)),Tr.writeFileSync(t,r,i);else throw o}},nO=(t,r,i)=>{$_(t+so,r,i),Tr.renameSync(t+so,t)},rO=(t,r,i)=>{let o=i||{},u=N_(r,o.jsonIndent),c=$_;o.atomic&&(c=nO),c(t,u,{mode:o.mode})},M_=(t,r,i)=>new Promise((o,u)=>{Tr.writeFile(t,r,i).then(o).catch(c=>{c.code==="ENOENT"?D_.createAsync(k_.dirname(t)).then(()=>Tr.writeFile(t,r,i)).then(o,u):u(c)})}),iO=(t,r,i)=>new Promise((o,u)=>{M_(t+so,r,i).then(()=>Tr.rename(t+so,t)).then(o,u)}),sO=(t,r,i)=>{let o=i||{},u=N_(r,o.jsonIndent),c=M_;return o.atomic&&(c=iO),c(t,u,{mode:o.mode})};oo.validateInput=tO;oo.sync=rO;oo.async=sO});var H_=L(uo=>{"use strict";var F_=it(),q_=Ci(),Al=Ge(),oO=(t,r,i,o)=>{let u=`${t}(path, data, [options])`;Al.argument(u,"path",r,["string"]),Al.argument(u,"data",i,["string","buffer"]),Al.options(u,"options",o,{mode:["string","number"]})},uO=(t,r,i)=>{try{F_.appendFileSync(t,r,i)}catch(o){if(o.code==="ENOENT")q_.sync(t,r,i);else throw o}},aO=(t,r,i)=>new Promise((o,u)=>{F_.appendFile(t,r,i).then(o).catch(c=>{c.code==="ENOENT"?q_.async(t,r,i).then(o,u):u(c)})});uo.validateInput=oO;uo.sync=uO;uo.async=aO});var G_=L(lo=>{"use strict";var ao=it(),Cl=to(),B_=Ge(),co=Ci(),cO=(t,r,i)=>{let o=`${t}(path, [criteria])`;B_.argument(o,"path",r,["string"]),B_.options(o,"criteria",i,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},W_=t=>{let r=t||{};return r.mode!==void 0&&(r.mode=Cl.normalizeFileMode(r.mode)),r},U_=t=>new Error(`Path ${t} exists but is not a file. Halting jetpack.file() call for safety reasons.`),lO=t=>{let r;try{r=ao.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(r&&!r.isFile())throw U_(t);return r},fO=(t,r,i)=>{let o=Cl.normalizeFileMode(r.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()},hO=(t,r)=>{let i="";r.content!==void 0&&(i=r.content),co.sync(t,i,{mode:r.mode,jsonIndent:r.jsonIndent})},pO=(t,r)=>{let i=W_(r),o=lO(t);o!==void 0?fO(t,o,i):hO(t,i)},dO=t=>new Promise((r,i)=>{ao.stat(t).then(o=>{o.isFile()?r(o):i(U_(t))}).catch(o=>{o.code==="ENOENT"?r(void 0):i(o)})}),gO=(t,r,i)=>{let o=Cl.normalizeFileMode(r.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()})},mO=(t,r)=>{let i="";return r.content!==void 0&&(i=r.content),co.async(t,i,{mode:r.mode,jsonIndent:r.jsonIndent})},_O=(t,r)=>new Promise((i,o)=>{let u=W_(r);dO(t).then(c=>c!==void 0?gO(t,c,u):mO(t,u)).then(i,o)});lo.validateInput=cO;lo.sync=pO;lo.async=_O});var Ir=L(Or=>{"use strict";var j_=q("crypto"),yO=q("path"),An=it(),K_=Ge(),Rl=["md5","sha1","sha256","sha512"],Pl=["report","follow"],vO=(t,r,i)=>{let o=`${t}(path, [options])`;if(K_.argument(o,"path",r,["string"]),K_.options(o,"options",i,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Rl.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${Rl.join(", ")}`);if(i&&i.symlinks!==void 0&&Pl.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${Pl.join(", ")}`)},X_=(t,r,i)=>{let o={};return o.name=yO.basename(t),i.isFile()?(o.type="file",o.size=i.size):i.isDirectory()?o.type="dir":i.isSymbolicLink()?o.type="symlink":o.type="other",r.mode&&(o.mode=i.mode),r.times&&(o.accessTime=i.atime,o.modifyTime=i.mtime,o.changeTime=i.ctime,o.birthTime=i.birthtime),r.absolutePath&&(o.absolutePath=t),o},bO=(t,r)=>{let i=j_.createHash(r),o=An.readFileSync(t);return i.update(o),i.digest("hex")},wO=(t,r,i)=>{r.type==="file"&&i.checksum?r[i.checksum]=bO(t,i.checksum):r.type==="symlink"&&(r.pointsAt=An.readlinkSync(t))},SO=(t,r)=>{let i=An.lstatSync,o,u=r||{};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 wO(t,c,u),c},xO=(t,r)=>new Promise((i,o)=>{let u=j_.createHash(r),c=An.createReadStream(t);c.on("data",f=>{u.update(f)}),c.on("end",()=>{i(u.digest("hex"))}),c.on("error",o)}),EO=(t,r,i)=>r.type==="file"&&i.checksum?xO(t,i.checksum).then(o=>(r[i.checksum]=o,r)):r.type==="symlink"?An.readlink(t).then(o=>(r.pointsAt=o,r)):Promise.resolve(r),AO=(t,r)=>new Promise((i,o)=>{let u=An.lstat,c=r||{};c.symlinks==="follow"&&(u=An.stat),u(t).then(f=>{let h=X_(t,c,f);EO(t,h,c).then(i,o)}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Or.supportedChecksumAlgorithms=Rl;Or.symlinkOptions=Pl;Or.validateInput=vO;Or.sync=SO;Or.async=AO});var ho=L(fo=>{"use strict";var z_=it(),CO=Ge(),RO=(t,r)=>{let i=`${t}(path)`;CO.argument(i,"path",r,["string","undefined"])},PO=t=>{try{return z_.readdirSync(t)}catch(r){if(r.code==="ENOENT")return;throw r}},TO=t=>new Promise((r,i)=>{z_.readdir(t).then(o=>{r(o)}).catch(o=>{o.code==="ENOENT"?r(void 0):i(o)})});fo.validateInput=RO;fo.sync=PO;fo.async=TO});var _o=L(Tl=>{"use strict";var po=q("fs"),go=q("path"),Ri=Ir(),zD=ho(),mo=t=>t.isDirectory()?"dir":t.isFile()?"file":t.isSymbolicLink()?"symlink":"other",OO=(t,r,i)=>{r.maxLevelsDeep===void 0&&(r.maxLevelsDeep=1/0);let o=r.inspectOptions!==void 0;r.symlinks&&(r.inspectOptions===void 0?r.inspectOptions={symlinks:r.symlinks}:r.inspectOptions.symlinks=r.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,r.inspectOptions);else if(_){let S=Ri.sync(v,r.inspectOptions);x={name:S.name,type:S.type}}else{let S=mo(g);if(S==="symlink"&&r.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{r.maxLevelsDeep===void 0&&(r.maxLevelsDeep=1/0);let u=r.inspectOptions!==void 0;r.symlinks&&(r.inspectOptions===void 0?r.inspectOptions={symlinks:r.symlinks}:r.inspectOptions.symlinks=r.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(j=>{let W=typeof j=="string",te;if(W?te=go.join(x,j):te=go.join(x,j.name),u||W)g(()=>{Ri.async(te,r.inspectOptions).then(Y=>{Y!==void 0&&(u?i(te,Y):i(te,{name:Y.name,type:Y.type}),H(te,Y)),_()}).catch(Y=>{o(Y)})});else{let Y=mo(j);if(Y==="symlink"&&r.symlinks==="follow")g(()=>{po.stat(te,(Q,N)=>{if(Q)o(Q);else{let ne={name:j.name,type:mo(N)};i(te,ne),H(te,ne),_()}})});else{let Q={name:j.name,type:Y};i(te,Q),H(te,Q)}}}),_())})})};Ri.async(t,r.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)})};Tl.sync=OO;Tl.async=LO});var Q_=L((QD,Y_)=>{var kO=typeof process=="object"&&process&&process.platform==="win32";Y_.exports=kO?{sep:"\\"}:{sep:"/"}});var ty=L((ZD,ey)=>{"use strict";ey.exports=V_;function V_(t,r,i){t instanceof RegExp&&(t=Z_(t,i)),r instanceof RegExp&&(r=Z_(r,i));var o=J_(t,r,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]+r.length)}}function Z_(t,r){var i=r.match(t);return i?i[0]:null}V_.range=J_;function J_(t,r,i){var o,u,c,f,h,g=i.indexOf(t),_=i.indexOf(r,g+1),v=g;if(g>=0&&_>0){if(t===r)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((VD,ay)=>{var ny=ty();ay.exports=$O;var ry="\0SLASH"+Math.random()+"\0",iy="\0OPEN"+Math.random()+"\0",Il="\0CLOSE"+Math.random()+"\0",sy="\0COMMA"+Math.random()+"\0",oy="\0PERIOD"+Math.random()+"\0";function Ol(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function DO(t){return t.split("\\\\").join(ry).split("\\{").join(iy).split("\\}").join(Il).split("\\,").join(sy).split("\\.").join(oy)}function NO(t){return t.split(ry).join("\\").split(iy).join("{").split(Il).join("}").split(sy).join(",").split(oy).join(".")}function uy(t){if(!t)return[""];var r=[],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)),r.push.apply(r,f),r}function $O(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Pi(DO(t),!0).map(NO)):[]}function MO(t){return"{"+t+"}"}function FO(t){return/^-?0\d/.test(t)}function qO(t,r){return t<=r}function HO(t,r){return t>=r}function Pi(t,r){var i=[],o=ny("{","}",t);if(!o)return[t];var u=o.pre,c=o.post.length?Pi(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+Il+o.post,Pi(t)):[t];var S;if(v)S=o.body.split(/\.\./);else if(S=uy(o.body),S.length===1&&(S=Pi(S[0],!1).map(MO),S.length===1))return c.map(function(Pe){return o.pre+S[0]+Pe});var H;if(v){var O=Ol(S[0]),D=Ol(S[1]),j=Math.max(S[0].length,S[1].length),W=S.length==3?Math.abs(Ol(S[2])):1,te=qO,Y=D0){var G=new Array(Z+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=Nl.exports=(t,r,i={})=>(vo(r),!i.nocomment&&r.charAt(0)==="#"?!1:new Lr(r,i).match(t));Nl.exports=pt;var kl=Q_();pt.sep=kl.sep;var Dt=Symbol("globstar **");pt.GLOBSTAR=Dt;var BO=cy(),ly={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Dl="[^/]",Ll=Dl+"*?",WO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",UO="(?:(?!(?:\\/|^)\\.).)*?",py=t=>t.split("").reduce((r,i)=>(r[i]=!0,r),{}),fy=py("().*{}+?[]^$\\!"),GO=py("[.("),hy=/\/+/;pt.filter=(t,r={})=>(i,o,u)=>pt(i,t,r);var Cn=(t,r={})=>{let i={};return Object.keys(t).forEach(o=>i[o]=t[o]),Object.keys(r).forEach(o=>i[o]=r[o]),i};pt.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return pt;let r=pt,i=(o,u,c)=>r(o,u,Cn(t,c));return i.Minimatch=class extends r.Minimatch{constructor(u,c){super(u,Cn(t,c))}},i.Minimatch.defaults=o=>r.defaults(Cn(t,o)).Minimatch,i.filter=(o,u)=>r.filter(o,Cn(t,u)),i.defaults=o=>r.defaults(Cn(t,o)),i.makeRe=(o,u)=>r.makeRe(o,Cn(t,u)),i.braceExpand=(o,u)=>r.braceExpand(o,Cn(t,u)),i.match=(o,u,c)=>r.match(o,u,Cn(t,c)),i};pt.braceExpand=(t,r)=>dy(t,r);var dy=(t,r={})=>(vo(t),r.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:BO(t)),KO=1024*64,vo=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>KO)throw new TypeError("pattern is too long")},yo=Symbol("subparse");pt.makeRe=(t,r)=>new Lr(t,r||{}).makeRe();pt.match=(t,r,i={})=>{let o=new Lr(r,i);return t=t.filter(u=>o.match(u)),o.options.nonull&&!t.length&&t.push(r),t};var jO=t=>t.replace(/\\(.)/g,"$1"),XO=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Lr=class{constructor(r,i){vo(r),i||(i={}),this.options=i,this.set=[],this.pattern=r,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 r=this.pattern,i=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){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 r=this.pattern,i=!1,o=0;for(let u=0;u=d)return e;var y=s-Zn(a);if(y<1)return a;var w=m?_n(m,0,y).join(""):e.slice(0,y);if(l===t)return w+a;if(m&&(y+=w.length-y),pa(l)){if(e.slice(y).search(l)){var P,T=w;for(l.global||(l=Tu(l.source,ye(tf.exec(l))+"g")),l.lastIndex=0;P=l.exec(T);)var k=P.index;w=w.slice(0,k===t?y:k)}}else if(e.indexOf(ut(l),y)!=y){var M=w.lastIndexOf(l);M>-1&&(w=w.slice(0,M))}return w+a}function pA(e){return e=ye(e),e&&Ev.test(e)?e.replace(Vl,Wb):e}var dA=rr(function(e,n,s){return e+(s?" ":"")+n.toUpperCase()}),ma=Ch("toUpperCase");function Ep(e,n,s){return e=ye(e),n=s?t:n,n===t?Mb(e)?Kb(e):Pb(e):e.match(n)||[]}var Ap=le(function(e,n){try{return st(e,t,n)}catch(s){return ha(s)?s:new ie(s)}}),gA=Vt(function(e,n){return _t(n,function(s){s=Ht(s),Qt(e,s,la(e[s],e))}),e});function mA(e){var n=e==null?0:e.length,s=z();return e=n?Ce(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;++lC)return[];var s=Ie,a=Ke(e,Ie);n=z(n),e-=Ie;for(var l=Cu(a,n);++s0||n<0)?new pe(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),n!==t&&(n=ae(n),s=n<0?s.dropRight(-n):s.take(n-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,n){var s=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),l=p[a?"take"+(n=="last"?"Right":""):n],d=a||/^find/.test(n);!l||(p.prototype[n]=function(){var m=this.__wrapped__,y=a?[1]:arguments,w=m instanceof pe,P=y[0],T=w||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&&(w=T=!1);var M=this.__chain__,U=!!this.__actions__.length,J=d&&!M,ce=w&&!U;if(!d&&T){m=ce?m:new pe(this);var ee=e.apply(m,y);return ee.__actions__.push({func:ds,args:[k],thisArg:t}),new vt(ee,M)}return J&&ce?e.apply(this,y):(ee=this.thru(k),J?a?ee.value()[0]:ee.value():ee)})}),_t(["pop","push","shift","sort","splice","unshift"],function(e){var n=Hi[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 n.apply(se(d)?d:[],l)}return this[s](function(m){return n.apply(se(m)?m:[],l)})}}),Ft(pe.prototype,function(e,n){var s=p[n];if(s){var a=s.name+"";Se.call(er,a)||(er[a]=[]),er[a].push({name:n,func:s})}}),er[us(t,D).name]=[{name:"wrapper",func:t}],pe.prototype.clone=pw,pe.prototype.reverse=dw,pe.prototype.value=gw,p.prototype.at=Gx,p.prototype.chain=Kx,p.prototype.commit=jx,p.prototype.next=Xx,p.prototype.plant=Yx,p.prototype.reverse=Qx,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=Zx,p.prototype.first=p.prototype.head,ei&&(p.prototype[ei]=zx),p},hn=jb();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qe._=hn,define(function(){return hn})):Rn?((Rn.exports=hn)._=hn,yu._=hn):qe._=hn}).call(wr)});var w_=L((MD,b_)=>{"use strict";b_.exports=t=>function(){let r=arguments.length,i=new Array(r);for(let o=0;o{i.push((c,f)=>{c?u(c):o(f)}),t.apply(null,i)})}});var it=L((FD,S_)=>{"use strict";var eo=q("fs"),DT=w_(),NT=t=>[typeof eo[t]=="function",!t.match(/Sync$/),!t.match(/^[A-Z]/),!t.match(/^create/),!t.match(/^(un)?watch/)].every(Boolean),$T=t=>{let r=eo[t];return DT(r)},MT=()=>{let t={};return Object.keys(eo).forEach(r=>{NT(r)?r==="exists"?t.exists=()=>{throw new Error("fs.exists() is deprecated")}:t[r]=$T(r):t[r]=eo[r]}),t};S_.exports=MT()});var Ge=L((qD,C_)=>{"use strict";var FT=t=>{let r=i=>["a","e","i","o","u"].indexOf(i[0])!==-1?`an ${i}`:`a ${i}`;return t.map(r).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(r=>r===t),Ai=t=>t===null?"null":Array.isArray(t)?"array":Buffer.isBuffer(t)?"buffer":typeof t,qT=(t,r,i)=>i.indexOf(t)===r,HT=t=>{let r=Ai(t),i;return r==="array"&&(i=t.map(o=>Ai(o)).filter(qT),r+=` of ${i.join(", ")}`),r},BT=(t,r)=>{let i=E_(r);return Ai(t)!=="array"?!1:t.every(o=>Ai(o)===i)},bl=(t,r,i,o)=>{if(!o.some(c=>{if(!A_(c))throw new Error(`Unknown type "${c}"`);return x_(c)?BT(i,c):c===Ai(i)}))throw new Error(`Argument "${r}" passed to ${t} must be ${FT(o)}. Received ${HT(i)}`)},WT=(t,r,i,o)=>{i!==void 0&&(bl(t,r,i,["object"]),Object.keys(i).forEach(u=>{let c=`${r}.${u}`;if(o[u]!==void 0)bl(t,c,i[u],o[u]);else throw new Error(`Unknown argument "${c}" passed to ${t}`)}))};C_.exports={argument:bl,options:WT}});var to=L(R_=>{"use strict";R_.normalizeFileMode=t=>{let r;return typeof t=="number"?r=t.toString(8):r=t,r.substring(r.length-3)}});var ro=L(no=>{"use strict";var P_=it(),UT=Ge(),GT=(t,r)=>{let i=`${t}([path])`;UT.argument(i,"path",r,["string","undefined"])},KT=t=>{P_.rmSync(t,{recursive:!0,force:!0,maxRetries:3})},jT=t=>P_.rm(t,{recursive:!0,force:!0,maxRetries:3});no.validateInput=GT;no.sync=KT;no.async=jT});var Wn=L(Tr=>{"use strict";var io=q("path"),Kt=it(),wl=to(),T_=Ge(),O_=ro(),XT=(t,r,i)=>{let o=`${t}(path, [criteria])`;T_.argument(o,"path",r,["string"]),T_.options(o,"criteria",i,{empty:["boolean"],mode:["string","number"]})},I_=t=>{let r=t||{};return typeof r.empty!="boolean"&&(r.empty=!1),r.mode!==void 0&&(r.mode=wl.normalizeFileMode(r.mode)),r},L_=t=>new Error(`Path ${t} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),zT=t=>{let r;try{r=Kt.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(r&&!r.isDirectory())throw L_(t);return r},Sl=(t,r)=>{let i=r||{};try{Kt.mkdirSync(t,i.mode)}catch(o){if(o.code==="ENOENT")Sl(io.dirname(t),i),Kt.mkdirSync(t,i.mode);else if(o.code!=="EEXIST")throw o}},YT=(t,r,i)=>{let o=()=>{let c=wl.normalizeFileMode(r.mode);i.mode!==void 0&&i.mode!==c&&Kt.chmodSync(t,i.mode)},u=()=>{i.empty&&Kt.readdirSync(t).forEach(f=>{O_.sync(io.resolve(t,f))})};o(),u()},QT=(t,r)=>{let i=I_(r),o=zT(t);o?YT(t,o,i):Sl(t,i)},ZT=t=>new Promise((r,i)=>{Kt.stat(t).then(o=>{o.isDirectory()?r(o):i(L_(t))}).catch(o=>{o.code==="ENOENT"?r(void 0):i(o)})}),VT=t=>new Promise((r,i)=>{Kt.readdir(t).then(o=>{let u=c=>{if(c===o.length)r();else{let f=io.resolve(t,o[c]);O_.async(f).then(()=>{u(c+1)})}};u(0)}).catch(i)}),JT=(t,r,i)=>new Promise((o,u)=>{let c=()=>{let h=wl.normalizeFileMode(r.mode);return i.mode!==void 0&&i.mode!==h?Kt.chmod(t,i.mode):Promise.resolve()},f=()=>i.empty?VT(t):Promise.resolve();c().then(f).then(o,u)}),xl=(t,r)=>{let i=r||{};return new Promise((o,u)=>{Kt.mkdir(t,i.mode).then(o).catch(c=>{c.code==="ENOENT"?xl(io.dirname(t),i).then(()=>Kt.mkdir(t,i.mode)).then(o).catch(f=>{f.code==="EEXIST"?o():u(f)}):c.code==="EEXIST"?o():u(c)})})},eO=(t,r)=>new Promise((i,o)=>{let u=I_(r);ZT(t).then(c=>c!==void 0?JT(t,c,u):xl(t,u)).then(i,o)});Tr.validateInput=XT;Tr.sync=QT;Tr.createSync=Sl;Tr.async=eO;Tr.createAsync=xl});var Ci=L(oo=>{"use strict";var k_=q("path"),Or=it(),El=Ge(),D_=Wn(),tO=(t,r,i,o)=>{let u=`${t}(path, data, [options])`;El.argument(u,"path",r,["string"]),El.argument(u,"data",i,["string","buffer","object","array"]),El.options(u,"options",o,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},so=".__new__",N_=(t,r)=>{let i=r;return typeof i!="number"&&(i=2),typeof t=="object"&&!Buffer.isBuffer(t)&&t!==null?JSON.stringify(t,null,i):t},$_=(t,r,i)=>{try{Or.writeFileSync(t,r,i)}catch(o){if(o.code==="ENOENT")D_.createSync(k_.dirname(t)),Or.writeFileSync(t,r,i);else throw o}},nO=(t,r,i)=>{$_(t+so,r,i),Or.renameSync(t+so,t)},rO=(t,r,i)=>{let o=i||{},u=N_(r,o.jsonIndent),c=$_;o.atomic&&(c=nO),c(t,u,{mode:o.mode})},M_=(t,r,i)=>new Promise((o,u)=>{Or.writeFile(t,r,i).then(o).catch(c=>{c.code==="ENOENT"?D_.createAsync(k_.dirname(t)).then(()=>Or.writeFile(t,r,i)).then(o,u):u(c)})}),iO=(t,r,i)=>new Promise((o,u)=>{M_(t+so,r,i).then(()=>Or.rename(t+so,t)).then(o,u)}),sO=(t,r,i)=>{let o=i||{},u=N_(r,o.jsonIndent),c=M_;return o.atomic&&(c=iO),c(t,u,{mode:o.mode})};oo.validateInput=tO;oo.sync=rO;oo.async=sO});var H_=L(uo=>{"use strict";var F_=it(),q_=Ci(),Al=Ge(),oO=(t,r,i,o)=>{let u=`${t}(path, data, [options])`;Al.argument(u,"path",r,["string"]),Al.argument(u,"data",i,["string","buffer"]),Al.options(u,"options",o,{mode:["string","number"]})},uO=(t,r,i)=>{try{F_.appendFileSync(t,r,i)}catch(o){if(o.code==="ENOENT")q_.sync(t,r,i);else throw o}},aO=(t,r,i)=>new Promise((o,u)=>{F_.appendFile(t,r,i).then(o).catch(c=>{c.code==="ENOENT"?q_.async(t,r,i).then(o,u):u(c)})});uo.validateInput=oO;uo.sync=uO;uo.async=aO});var G_=L(lo=>{"use strict";var ao=it(),Cl=to(),B_=Ge(),co=Ci(),cO=(t,r,i)=>{let o=`${t}(path, [criteria])`;B_.argument(o,"path",r,["string"]),B_.options(o,"criteria",i,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},W_=t=>{let r=t||{};return r.mode!==void 0&&(r.mode=Cl.normalizeFileMode(r.mode)),r},U_=t=>new Error(`Path ${t} exists but is not a file. Halting jetpack.file() call for safety reasons.`),lO=t=>{let r;try{r=ao.statSync(t)}catch(i){if(i.code!=="ENOENT")throw i}if(r&&!r.isFile())throw U_(t);return r},fO=(t,r,i)=>{let o=Cl.normalizeFileMode(r.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()},hO=(t,r)=>{let i="";r.content!==void 0&&(i=r.content),co.sync(t,i,{mode:r.mode,jsonIndent:r.jsonIndent})},pO=(t,r)=>{let i=W_(r),o=lO(t);o!==void 0?fO(t,o,i):hO(t,i)},dO=t=>new Promise((r,i)=>{ao.stat(t).then(o=>{o.isFile()?r(o):i(U_(t))}).catch(o=>{o.code==="ENOENT"?r(void 0):i(o)})}),gO=(t,r,i)=>{let o=Cl.normalizeFileMode(r.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()})},mO=(t,r)=>{let i="";return r.content!==void 0&&(i=r.content),co.async(t,i,{mode:r.mode,jsonIndent:r.jsonIndent})},_O=(t,r)=>new Promise((i,o)=>{let u=W_(r);dO(t).then(c=>c!==void 0?gO(t,c,u):mO(t,u)).then(i,o)});lo.validateInput=cO;lo.sync=pO;lo.async=_O});var Lr=L(Ir=>{"use strict";var j_=q("crypto"),yO=q("path"),An=it(),K_=Ge(),Rl=["md5","sha1","sha256","sha512"],Pl=["report","follow"],vO=(t,r,i)=>{let o=`${t}(path, [options])`;if(K_.argument(o,"path",r,["string"]),K_.options(o,"options",i,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&Rl.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${Rl.join(", ")}`);if(i&&i.symlinks!==void 0&&Pl.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${Pl.join(", ")}`)},X_=(t,r,i)=>{let o={};return o.name=yO.basename(t),i.isFile()?(o.type="file",o.size=i.size):i.isDirectory()?o.type="dir":i.isSymbolicLink()?o.type="symlink":o.type="other",r.mode&&(o.mode=i.mode),r.times&&(o.accessTime=i.atime,o.modifyTime=i.mtime,o.changeTime=i.ctime,o.birthTime=i.birthtime),r.absolutePath&&(o.absolutePath=t),o},bO=(t,r)=>{let i=j_.createHash(r),o=An.readFileSync(t);return i.update(o),i.digest("hex")},wO=(t,r,i)=>{r.type==="file"&&i.checksum?r[i.checksum]=bO(t,i.checksum):r.type==="symlink"&&(r.pointsAt=An.readlinkSync(t))},SO=(t,r)=>{let i=An.lstatSync,o,u=r||{};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 wO(t,c,u),c},xO=(t,r)=>new Promise((i,o)=>{let u=j_.createHash(r),c=An.createReadStream(t);c.on("data",f=>{u.update(f)}),c.on("end",()=>{i(u.digest("hex"))}),c.on("error",o)}),EO=(t,r,i)=>r.type==="file"&&i.checksum?xO(t,i.checksum).then(o=>(r[i.checksum]=o,r)):r.type==="symlink"?An.readlink(t).then(o=>(r.pointsAt=o,r)):Promise.resolve(r),AO=(t,r)=>new Promise((i,o)=>{let u=An.lstat,c=r||{};c.symlinks==="follow"&&(u=An.stat),u(t).then(f=>{let h=X_(t,c,f);EO(t,h,c).then(i,o)}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Ir.supportedChecksumAlgorithms=Rl;Ir.symlinkOptions=Pl;Ir.validateInput=vO;Ir.sync=SO;Ir.async=AO});var ho=L(fo=>{"use strict";var z_=it(),CO=Ge(),RO=(t,r)=>{let i=`${t}(path)`;CO.argument(i,"path",r,["string","undefined"])},PO=t=>{try{return z_.readdirSync(t)}catch(r){if(r.code==="ENOENT")return;throw r}},TO=t=>new Promise((r,i)=>{z_.readdir(t).then(o=>{r(o)}).catch(o=>{o.code==="ENOENT"?r(void 0):i(o)})});fo.validateInput=RO;fo.sync=PO;fo.async=TO});var _o=L(Tl=>{"use strict";var po=q("fs"),go=q("path"),Ri=Lr(),zD=ho(),mo=t=>t.isDirectory()?"dir":t.isFile()?"file":t.isSymbolicLink()?"symlink":"other",OO=(t,r,i)=>{r.maxLevelsDeep===void 0&&(r.maxLevelsDeep=1/0);let o=r.inspectOptions!==void 0;r.symlinks&&(r.inspectOptions===void 0?r.inspectOptions={symlinks:r.symlinks}:r.inspectOptions.symlinks=r.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,r.inspectOptions);else if(_){let S=Ri.sync(v,r.inspectOptions);x={name:S.name,type:S.type}}else{let S=mo(g);if(S==="symlink"&&r.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{r.maxLevelsDeep===void 0&&(r.maxLevelsDeep=1/0);let u=r.inspectOptions!==void 0;r.symlinks&&(r.inspectOptions===void 0?r.inspectOptions={symlinks:r.symlinks}:r.inspectOptions.symlinks=r.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(j=>{let W=typeof j=="string",te;if(W?te=go.join(x,j):te=go.join(x,j.name),u||W)g(()=>{Ri.async(te,r.inspectOptions).then(Y=>{Y!==void 0&&(u?i(te,Y):i(te,{name:Y.name,type:Y.type}),H(te,Y)),_()}).catch(Y=>{o(Y)})});else{let Y=mo(j);if(Y==="symlink"&&r.symlinks==="follow")g(()=>{po.stat(te,(Q,N)=>{if(Q)o(Q);else{let ne={name:j.name,type:mo(N)};i(te,ne),H(te,ne),_()}})});else{let Q={name:j.name,type:Y};i(te,Q),H(te,Q)}}}),_())})})};Ri.async(t,r.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)})};Tl.sync=OO;Tl.async=LO});var Q_=L((QD,Y_)=>{var kO=typeof process=="object"&&process&&process.platform==="win32";Y_.exports=kO?{sep:"\\"}:{sep:"/"}});var ty=L((ZD,ey)=>{"use strict";ey.exports=V_;function V_(t,r,i){t instanceof RegExp&&(t=Z_(t,i)),r instanceof RegExp&&(r=Z_(r,i));var o=J_(t,r,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]+r.length)}}function Z_(t,r){var i=r.match(t);return i?i[0]:null}V_.range=J_;function J_(t,r,i){var o,u,c,f,h,g=i.indexOf(t),_=i.indexOf(r,g+1),v=g;if(g>=0&&_>0){if(t===r)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((VD,ay)=>{var ny=ty();ay.exports=$O;var ry="\0SLASH"+Math.random()+"\0",iy="\0OPEN"+Math.random()+"\0",Il="\0CLOSE"+Math.random()+"\0",sy="\0COMMA"+Math.random()+"\0",oy="\0PERIOD"+Math.random()+"\0";function Ol(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function DO(t){return t.split("\\\\").join(ry).split("\\{").join(iy).split("\\}").join(Il).split("\\,").join(sy).split("\\.").join(oy)}function NO(t){return t.split(ry).join("\\").split(iy).join("{").split(Il).join("}").split(sy).join(",").split(oy).join(".")}function uy(t){if(!t)return[""];var r=[],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)),r.push.apply(r,f),r}function $O(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Pi(DO(t),!0).map(NO)):[]}function MO(t){return"{"+t+"}"}function FO(t){return/^-?0\d/.test(t)}function qO(t,r){return t<=r}function HO(t,r){return t>=r}function Pi(t,r){var i=[],o=ny("{","}",t);if(!o)return[t];var u=o.pre,c=o.post.length?Pi(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+Il+o.post,Pi(t)):[t];var S;if(v)S=o.body.split(/\.\./);else if(S=uy(o.body),S.length===1&&(S=Pi(S[0],!1).map(MO),S.length===1))return c.map(function(Pe){return o.pre+S[0]+Pe});var H;if(v){var O=Ol(S[0]),D=Ol(S[1]),j=Math.max(S[0].length,S[1].length),W=S.length==3?Math.abs(Ol(S[2])):1,te=qO,Y=D0){var G=new Array(Z+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=Nl.exports=(t,r,i={})=>(vo(r),!i.nocomment&&r.charAt(0)==="#"?!1:new kr(r,i).match(t));Nl.exports=pt;var kl=Q_();pt.sep=kl.sep;var Dt=Symbol("globstar **");pt.GLOBSTAR=Dt;var BO=cy(),ly={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Dl="[^/]",Ll=Dl+"*?",WO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",UO="(?:(?!(?:\\/|^)\\.).)*?",py=t=>t.split("").reduce((r,i)=>(r[i]=!0,r),{}),fy=py("().*{}+?[]^$\\!"),GO=py("[.("),hy=/\/+/;pt.filter=(t,r={})=>(i,o,u)=>pt(i,t,r);var Cn=(t,r={})=>{let i={};return Object.keys(t).forEach(o=>i[o]=t[o]),Object.keys(r).forEach(o=>i[o]=r[o]),i};pt.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return pt;let r=pt,i=(o,u,c)=>r(o,u,Cn(t,c));return i.Minimatch=class extends r.Minimatch{constructor(u,c){super(u,Cn(t,c))}},i.Minimatch.defaults=o=>r.defaults(Cn(t,o)).Minimatch,i.filter=(o,u)=>r.filter(o,Cn(t,u)),i.defaults=o=>r.defaults(Cn(t,o)),i.makeRe=(o,u)=>r.makeRe(o,Cn(t,u)),i.braceExpand=(o,u)=>r.braceExpand(o,Cn(t,u)),i.match=(o,u,c)=>r.match(o,u,Cn(t,c)),i};pt.braceExpand=(t,r)=>dy(t,r);var dy=(t,r={})=>(vo(t),r.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:BO(t)),KO=1024*64,vo=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>KO)throw new TypeError("pattern is too long")},yo=Symbol("subparse");pt.makeRe=(t,r)=>new kr(t,r||{}).makeRe();pt.match=(t,r,i={})=>{let o=new kr(r,i);return t=t.filter(u=>o.match(u)),o.options.nonull&&!t.length&&t.push(r),t};var jO=t=>t.replace(/\\(.)/g,"$1"),XO=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),kr=class{constructor(r,i){vo(r),i||(i={}),this.options=i,this.set=[],this.pattern=r,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 r=this.pattern,i=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){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 r=this.pattern,i=!1,o=0;for(let u=0;u>> no match, partial?`,r,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&&r[c]==="";throw new Error("wtf?")}braceExpand(){return dy(this.pattern,this.options)}parse(r,i){vo(r);let o=this.options;if(r==="**")if(o.noglobstar)r="*";else return Dt;if(r==="")return"";let u="",c=!!o.nocase,f=!1,h=[],g=[],_,v=!1,x=-1,S=-1,H,O,D,j=r.charAt(0)==="."?"":o.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",W=()=>{if(_){switch(_){case"*":u+=Ll,c=!0;break;case"?":u+=Dl,c=!0;break;default:u+="\\"+_;break}this.debug("clearStateChar %j %j",_,u),_=!1}};for(let Q=0,N;Q(G||(G="\\"),Z+Z+G+"|")),this.debug(`tail=%j - %s`,Q,Q,O,u);let N=O.type==="*"?Ll:O.type==="?"?Dl:"\\"+O.type;c=!0,u=u.slice(0,O.reStart)+N+"\\("+Q}W(),f&&(u+="\\\\");let te=GO[u.charAt(0)];for(let Q=g.length-1;Q>-1;Q--){let N=g[Q],ne=u.slice(0,N.reStart),Z=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"?XO(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(r,i=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&i)return!0;let o=this.options;kl.sep!=="/"&&(r=r.split(kl.sep).join("/")),r=r.split(hy),this.debug(this.pattern,"split",r);let u=this.set;this.debug(this.pattern,"set",u);let c;for(let f=r.length-1;f>=0&&(c=r[f],!c);f--);for(let f=0;f{"use strict";var zO=gy().Minimatch,YO=(t,r)=>{let i=r.indexOf("/")!==-1,o=/^!?\//.test(r),u=/^!/.test(r),c;if(!o&&i){let f=r.replace(/^!/,"").replace(/^\.\//,"");return/\/$/.test(t)?c="":c="/",u?`!${t}${c}${f}`:`${t}${c}${f}`}return r};my.create=(t,r,i)=>{let o;typeof r=="string"?o=[r]:o=r;let u=o.map(f=>YO(t,f)).map(f=>new zO(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 QO=q("path"),yy=_o(),vy=Ir(),by=$l(),_y=Ge(),ZO=(t,r,i)=>{let o=`${t}([path], options)`;_y.argument(o,"path",r,["string"]),_y.options(o,"options",i,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},wy=t=>{let r=t||{};return r.matching===void 0&&(r.matching="*"),r.files===void 0&&(r.files=!0),r.ignoreCase===void 0&&(r.ignoreCase=!1),r.directories===void 0&&(r.directories=!1),r.recursive===void 0&&(r.recursive=!0),r},Sy=(t,r)=>t.map(i=>QO.relative(r,i)),xy=t=>{let r=new Error(`Path you want to find stuff in doesn't exist ${t}`);return r.code="ENOENT",r},Ey=t=>{let r=new Error(`Path you want to find stuff in must be a directory ${t}`);return r.code="ENOTDIR",r},VO=(t,r)=>{let i=[],o=by.create(t,r.matching,r.ignoreCase),u=1/0;return r.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"&&r.files===!0||f.type==="dir"&&r.directories===!0)&&(r.filter?r.filter(f)&&i.push(c):i.push(c))}),i.sort(),Sy(i,r.cwd)},JO=(t,r)=>{let i=vy.sync(t,{symlinks:"follow"});if(i===void 0)throw xy(t);if(i.type!=="dir")throw Ey(t);return VO(t,wy(r))},eI=(t,r)=>new Promise((i,o)=>{let u=[],c=by.create(t,r.matching,r.ignoreCase),f=1/0;r.recursive===!1&&(f=1);let h=0,g=!1,_=()=>{g&&h===0&&(u.sort(),i(Sy(u,r.cwd)))};yy.async(t,{maxLevelsDeep:f,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(v,x)=>{if(x&&v!==t&&c(v)&&(x.type==="file"&&r.files===!0||x.type==="dir"&&r.directories===!0))if(r.filter){let H=r.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,_())})}),tI=(t,r)=>vy.async(t,{symlinks:"follow"}).then(i=>{if(i===void 0)throw xy(t);if(i.type!=="dir")throw Ey(t);return eI(t,wy(r))});bo.validateInput=ZO;bo.sync=JO;bo.async=tI});var Py=L(xo=>{"use strict";var nI=q("crypto"),So=q("path"),wo=Ir(),rN=ho(),Cy=Ge(),Ry=_o(),rI=(t,r,i)=>{let o=`${t}(path, [options])`;if(Cy.argument(o,"path",r,["string"]),Cy.options(o,"options",i,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&wo.supportedChecksumAlgorithms.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${wo.supportedChecksumAlgorithms.join(", ")}`);if(i&&i.symlinks!==void 0&&wo.symlinkOptions.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${wo.symlinkOptions.join(", ")}`)},iI=(t,r)=>t===void 0?".":t.relativePath+"/"+r.name,sI=(t,r)=>{let i=nI.createHash(r);return t.forEach(o=>{i.update(o.name+o[r])}),i.digest("hex")},Ml=(t,r,i)=>{i.relativePath&&(r.relativePath=iI(t,r)),r.type==="dir"&&(r.children.forEach(o=>{Ml(r,o,i)}),r.size=0,r.children.sort((o,u)=>o.type==="dir"&&u.type==="file"?-1:o.type==="file"&&u.type==="dir"?1:o.name.localeCompare(u.name)),r.children.forEach(o=>{r.size+=o.size||0}),i.checksum&&(r[i.checksum]=sI(r.children,i.checksum)))},Fl=(t,r,i)=>{let o=r[0];if(r.length>1){let u=t.children.find(c=>c.name===o);return Fl(u,r.slice(1),i)}return t},oI=(t,r)=>{let i=r||{},o;return Ry.sync(t,{inspectOptions:i},(u,c)=>{if(c){c.type==="dir"&&(c.children=[]);let f=So.relative(t,u);f===""?o=c:Fl(o,f.split(So.sep),c).children.push(c)}}),o&&Ml(void 0,o,i),o},uI=(t,r)=>{let i=r||{},o;return new Promise((u,c)=>{Ry.async(t,{inspectOptions:i},(f,h)=>{if(h){h.type==="dir"&&(h.children=[]);let g=So.relative(t,f);g===""?o=h:Fl(o,g.split(So.sep),h).children.push(h)}},f=>{f?c(f):(o&&Ml(void 0,o,i),u(o))})})};xo.validateInput=rI;xo.sync=oI;xo.async=uI});var Ao=L(Eo=>{"use strict";var Ty=it(),aI=Ge(),cI=(t,r)=>{let i=`${t}(path)`;aI.argument(i,"path",r,["string"])},lI=t=>{try{let r=Ty.statSync(t);return r.isDirectory()?"dir":r.isFile()?"file":"other"}catch(r){if(r.code!=="ENOENT")throw r}return!1},fI=t=>new Promise((r,i)=>{Ty.stat(t).then(o=>{o.isDirectory()?r("dir"):o.isFile()?r("file"):r("other")}).catch(o=>{o.code==="ENOENT"?r(!1):i(o)})});Eo.validateInput=cI;Eo.sync=lI;Eo.async=fI});var Wl=L(To=>{"use strict";var Ti=q("path"),dt=it(),Bl=Wn(),Co=Ao(),Oy=Ir(),hI=Ci(),pI=$l(),Iy=to(),Ly=_o(),ql=Ge(),dI=(t,r,i,o)=>{let u=`${t}(from, to, [options])`;ql.argument(u,"from",r,["string"]),ql.argument(u,"to",i,["string"]),ql.options(u,"options",o,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},ky=(t,r)=>{let i=t||{},o={};return i.ignoreCase===void 0&&(i.ignoreCase=!1),o.overwrite=i.overwrite,i.matching?o.allowedToCopy=pI.create(r,i.matching,i.ignoreCase):o.allowedToCopy=()=>!0,o},Dy=t=>{let r=new Error(`Path to copy doesn't exist ${t}`);return r.code="ENOENT",r},Ro=t=>{let r=new Error(`Destination path already exists ${t}`);return r.code="EEXIST",r},Po={mode:!0,symlinks:"report",times:!0,absolutePath:!0},Ny=t=>typeof t.opts.overwrite!="function"&&t.opts.overwrite!==!0,gI=(t,r,i)=>{if(!Co.sync(t))throw Dy(t);if(Co.sync(r)&&!i.overwrite)throw Ro(r)},mI=t=>{if(typeof t.opts.overwrite=="function"){let r=Oy.sync(t.destPath,Po);return t.opts.overwrite(t.srcInspectData,r)}return t.opts.overwrite===!0},_I=(t,r,i,o)=>{let u=dt.readFileSync(t);try{dt.writeFileSync(r,u,{mode:i,flag:"wx"})}catch(c){if(c.code==="ENOENT")hI.sync(r,u,{mode:i});else if(c.code==="EEXIST"){if(mI(o))dt.writeFileSync(r,u,{mode:i});else if(Ny(o))throw Ro(o.destPath)}else throw c}},yI=(t,r)=>{let i=dt.readlinkSync(t);try{dt.symlinkSync(i,r)}catch(o){if(o.code==="EEXIST")dt.unlinkSync(r),dt.symlinkSync(i,r);else throw o}},vI=(t,r,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:r,opts:o},c=Iy.normalizeFileMode(r.mode);r.type==="dir"?Bl.createSync(i,{mode:c}):r.type==="file"?_I(t,i,c,u):r.type==="symlink"&&yI(t,i)},bI=(t,r,i)=>{let o=ky(i,t);gI(t,r,o),Ly.sync(t,{inspectOptions:Po},(u,c)=>{let f=Ti.relative(t,u),h=Ti.resolve(r,f);o.allowedToCopy(u,h,c)&&vI(u,c,h,o)})},wI=(t,r,i)=>Co.async(t).then(o=>{if(o)return Co.async(r);throw Dy(t)}).then(o=>{if(o&&!i.overwrite)throw Ro(r)}),SI=t=>new Promise((r,i)=>{typeof t.opts.overwrite=="function"?Oy.async(t.destPath,Po).then(o=>{r(t.opts.overwrite(t.srcInspectData,o))}).catch(i):r(t.opts.overwrite===!0)}),Hl=(t,r,i,o,u)=>new Promise((c,f)=>{let h=u||{},g="wx";h.overwrite&&(g="w");let _=dt.createReadStream(t),v=dt.createWriteStream(r,{mode:i,flags:g});_.on("error",f),v.on("error",x=>{_.resume(),x.code==="ENOENT"?Bl.createAsync(Ti.dirname(r)).then(()=>{Hl(t,r,i,o).then(c,f)}).catch(f):x.code==="EEXIST"?SI(o).then(S=>{S?Hl(t,r,i,o,{overwrite:!0}).then(c,f):Ny(o)?f(Ro(r)):c()}).catch(f):f(x)}),v.on("finish",c),_.pipe(v)}),xI=(t,r)=>dt.readlink(t).then(i=>new Promise((o,u)=>{dt.symlink(i,r).then(o).catch(c=>{c.code==="EEXIST"?dt.unlink(r).then(()=>dt.symlink(i,r)).then(o,u):u(c)})})),EI=(t,r,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:r,opts:o},c=Iy.normalizeFileMode(r.mode);return r.type==="dir"?Bl.createAsync(i,{mode:c}):r.type==="file"?Hl(t,i,c,u):r.type==="symlink"?xI(t,i):Promise.resolve()},AI=(t,r,i)=>new Promise((o,u)=>{let c=ky(i,t);wI(t,r,c).then(()=>{let f=!1,h=0;Ly.async(t,{inspectOptions:Po},(g,_)=>{if(_){let v=Ti.relative(t,g),x=Ti.resolve(r,v);c.allowedToCopy(g,_,x)&&(h+=1,EI(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=dI;To.sync=bI;To.async=AI});var Gl=L(Io=>{"use strict";var $y=q("path"),kr=it(),Ul=Ge(),My=Wl(),Fy=Wn(),Oi=Ao(),Oo=ro(),CI=(t,r,i,o)=>{let u=`${t}(from, to, [options])`;Ul.argument(u,"from",r,["string"]),Ul.argument(u,"to",i,["string"]),Ul.options(u,"options",o,{overwrite:["boolean"]})},qy=t=>t||{},Hy=t=>{let r=new Error(`Destination path already exists ${t}`);return r.code="EEXIST",r},By=t=>{let r=new Error(`Path to move doesn't exist ${t}`);return r.code="ENOENT",r},RI=(t,r,i)=>{let o=qy(i);if(Oi.sync(r)!==!1&&o.overwrite!==!0)throw Hy(r);try{kr.renameSync(t,r)}catch(u){if(u.code==="EISDIR"||u.code==="EPERM")Oo.sync(r),kr.renameSync(t,r);else if(u.code==="EXDEV")My.sync(t,r,{overwrite:!0}),Oo.sync(t);else if(u.code==="ENOENT"){if(!Oi.sync(t))throw By(t);Fy.createSync($y.dirname(r)),kr.renameSync(t,r)}else throw u}},PI=t=>new Promise((r,i)=>{let o=$y.dirname(t);Oi.async(o).then(u=>{u?i():Fy.createAsync(o).then(r,i)}).catch(i)}),TI=(t,r,i)=>{let o=qy(i);return new Promise((u,c)=>{Oi.async(r).then(f=>{f!==!1&&o.overwrite!==!0?c(Hy(r)):kr.rename(t,r).then(u).catch(h=>{h.code==="EISDIR"||h.code==="EPERM"?Oo.async(r).then(()=>kr.rename(t,r)).then(u,c):h.code==="EXDEV"?My.async(t,r,{overwrite:!0}).then(()=>Oo.async(t)).then(u,c):h.code==="ENOENT"?Oi.async(t).then(g=>{g?PI(r).then(()=>kr.rename(t,r)).then(u,c):c(By(t))}).catch(c):c(h)})})})};Io.validateInput=CI;Io.sync=RI;Io.async=TI});var Xy=L(Lo=>{"use strict";var Gy=it(),Wy=Ge(),Uy=["utf8","buffer","json","jsonWithDates"],OI=(t,r,i)=>{let o=`${t}(path, returnAs)`;if(Wy.argument(o,"path",r,["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(", ")}`)},Ky=(t,r)=>typeof r=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(r)?new Date(r):r,jy=(t,r)=>{let i=new Error(`JSON parsing failed while reading ${t} [${r}]`);return i.originalError=r,i},II=(t,r)=>{let i=r||"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,Ky))}catch(c){throw jy(t,c)}return o},LI=(t,r)=>new Promise((i,o)=>{let u=r||"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,Ky):f)}catch(h){o(jy(t,h))}}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Lo.validateInput=OI;Lo.sync=II;Lo.async=LI});var Yy=L(ko=>{"use strict";var Ii=q("path"),zy=Gl(),Kl=Ge(),kI=(t,r,i,o)=>{let u=`${t}(path, newName, [options])`;if(Kl.argument(u,"path",r,["string"]),Kl.argument(u,"newName",i,["string"]),Kl.options(u,"options",o,{overwrite:["boolean"]}),Ii.basename(i)!==i)throw new Error(`Argument "newName" passed to ${u} should be a filename, not a path. Received "${i}"`)},DI=(t,r,i)=>{let o=Ii.join(Ii.dirname(t),r);zy.sync(t,o,i)},NI=(t,r,i)=>{let o=Ii.join(Ii.dirname(t),r);return zy.async(t,o,i)};ko.validateInput=kI;ko.sync=DI;ko.async=NI});var Jy=L(No=>{"use strict";var Zy=q("path"),Do=it(),Qy=Ge(),Vy=Wn(),$I=(t,r,i)=>{let o=`${t}(symlinkValue, path)`;Qy.argument(o,"symlinkValue",r,["string"]),Qy.argument(o,"path",i,["string"])},MI=(t,r)=>{try{Do.symlinkSync(t,r)}catch(i){if(i.code==="ENOENT")Vy.createSync(Zy.dirname(r)),Do.symlinkSync(t,r);else throw i}},FI=(t,r)=>new Promise((i,o)=>{Do.symlink(t,r).then(i).catch(u=>{u.code==="ENOENT"?Vy.createAsync(Zy.dirname(r)).then(()=>Do.symlink(t,r)).then(i,o):o(u)})});No.validateInput=$I;No.sync=MI;No.async=FI});var tv=L(jl=>{"use strict";var ev=q("fs");jl.createWriteStream=ev.createWriteStream;jl.createReadStream=ev.createReadStream});var uv=L($o=>{"use strict";var Xl=q("path"),qI=q("os"),nv=q("crypto"),rv=Wn(),iv=it(),HI=Ge(),BI=(t,r)=>{let i=`${t}([options])`;HI.options(i,"options",r,{prefix:["string"],basePath:["string"]})},sv=(t,r)=>{t=t||{};let i={};return typeof t.prefix!="string"?i.prefix="":i.prefix=t.prefix,typeof t.basePath=="string"?i.basePath=Xl.resolve(r,t.basePath):i.basePath=qI.tmpdir(),i},ov=32,WI=(t,r)=>{let i=sv(r,t),o=nv.randomBytes(ov/2).toString("hex"),u=Xl.join(i.basePath,i.prefix+o);try{iv.mkdirSync(u)}catch(c){if(c.code==="ENOENT")rv.sync(u);else throw c}return u},UI=(t,r)=>new Promise((i,o)=>{let u=sv(r,t);nv.randomBytes(ov/2,(c,f)=>{if(c)o(c);else{let h=f.toString("hex"),g=Xl.join(u.basePath,u.prefix+h);iv.mkdir(g,_=>{_?_.code==="ENOENT"?rv.async(g).then(()=>{i(g)},o):o(_):i(g)})}})});$o.validateInput=BI;$o.sync=WI;$o.async=UI});var hv=L((pN,fv)=>{"use strict";var av=q("util"),zl=q("path"),Mo=H_(),Fo=Wn(),qo=G_(),Ho=Ay(),Bo=Ir(),Wo=Py(),Uo=Wl(),Go=Ao(),Ko=ho(),jo=Gl(),Xo=Xy(),zo=ro(),Yo=Yy(),Qo=Jy(),cv=tv(),Zo=uv(),Vo=Ci(),lv=t=>{let r=()=>t||process.cwd(),i=function(){if(arguments.length===0)return r();let h=Array.prototype.slice.call(arguments),g=[r()].concat(h);return lv(zl.resolve.apply(null,g))},o=h=>zl.resolve(r(),h),u=function(){return Array.prototype.unshift.call(arguments,r()),zl.resolve.apply(null,arguments)},c=h=>{let g=h||{};return g.cwd=r(),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=>(Ko.validateInput("list",h),Ko.sync(o(h||"."))),listAsync:h=>(Ko.validateInput("listAsync",h),Ko.async(o(h||"."))),move:(h,g,_)=>{jo.validateInput("move",h,g,_),jo.sync(o(h),o(g),_)},moveAsync:(h,g,_)=>(jo.validateInput("moveAsync",h,g,_),jo.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(r(),h);return i(g)},tmpDirAsync:h=>(Zo.validateInput("tmpDirAsync",h),new Promise((g,_)=>{Zo.async(r(),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: ${r()}]`),f};fv.exports=lv});var Jo=L((dN,pv)=>{"use strict";var GI=hv();pv.exports=GI()});var XI={};Pp(XI,{default:()=>jI});var Ei={};Pp(Ei,{Browserslist:()=>or,BrowserslistUpdate:()=>Rr,Bud:()=>xi,Build:()=>Dr,Clean:()=>Nr,Contributors:()=>Mr,Dev:()=>Fr,Docs:()=>qr,DocsDev:()=>Hr,Docusaurus:()=>ur,Eslint:()=>ar,Lint:()=>Br,Netlify:()=>cr,PackageCheck:()=>vr,Pm2:()=>Sr,Prettier:()=>xr,RegistryClean:()=>Wr,RegistryStart:()=>Ur,RegistryStop:()=>Gr,Release:()=>Kr,Syncpack:()=>Er,TestRun:()=>jr,Tsc:()=>Ar,Version:()=>Xr,Vitest:()=>Cr,YarnPluginBuild:()=>$r});var Ip=q("clipanion");var Op=q("@yarnpkg/cli"),X=class extends Op.BaseCommand{constructor(){super();this.result=0;this.promised=[]}async throwIfError(i){if(i!==0)throw new Error("command failed")}};var or=class extends X{constructor(){super(...arguments);this.passthrough=Ip.Option.Proxy({name:"browserslist options"})}async execute(){return await this.cli.run(["browserslist",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};or.paths=[["@bud","browserslist"]],or.usage={category:"@bud",description:"run browserslist",examples:[["browserslist usage info","yarn @bud browserslist --help"]]};var Lp=q("clipanion");var ur=class extends X{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"),di={},qp=(di?.url&&typeof di.url<"u"?(0,Fp.fileURLToPath)(di.url):__dirname).split("sources/").shift(),K=(...t)=>(0,Mp.join)(qp,...t),rL=K("package.json"),iL=K("storage"),sL=K("config","tsconfig.json");var oL={config:K("config"),fixtures:K("storage","fixtures"),root:qp,sources:K("sources"),storage:K("storage"),tests:K("tests")},Np;typeof di?.url<"u"?Np=(0,$p.createRequire)(di.url)("../../../config/monorepo.config.cjs"):Np=Dp();var Hp=q("clipanion");var ar=class extends X{constructor(){super(...arguments);this.passthrough=Hp.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)}};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 X{constructor(){super(...arguments);this.dir=xa.Option.String("--dir",K("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 _l=Fe(q("process"),1),e_=Fe(q("fs"),1),Bn=Fe(q("path"),1);var Bp=q("stream");function Ea(t){if(!Array.isArray(t))throw new TypeError(`Expected an array, got \`${typeof t}\`.`);let r=new Bp.PassThrough({objectMode:!0});if(r.setMaxListeners(Number.POSITIVE_INFINITY),t.length===0)return r.end(),r;let i=t.length;for(let o of t){if(typeof o?.pipe!="function")throw new TypeError(`Expected a stream, got: \`${typeof o}\`.`);o.pipe(r,{end:!1}),o.on("end",()=>{i--,i===0&&r.end()}),o.on("error",u=>{r.emit("error",u)})}return r}var yr=Fe(al(),1);var Zs=Fe(q("fs"),1);async function cl(t,r,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await Zs.promises[t](i))[r]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}function ll(t,r,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return Zs.default[t](i)[r]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}var $k=cl.bind(null,"stat","isFile"),Tm=cl.bind(null,"stat","isDirectory"),Mk=cl.bind(null,"lstat","isSymbolicLink"),Fk=ll.bind(null,"statSync","isFile"),Om=ll.bind(null,"statSync","isDirectory"),qk=ll.bind(null,"lstatSync","isSymbolicLink");var Im=q("url");function bi(t){return t instanceof URL?(0,Im.fileURLToPath)(t):t}var Wm=Fe(q("process"),1),Um=Fe(q("fs"),1),Gm=Fe(q("fs/promises"),1),Hn=Fe(q("path"),1),ml=Fe(al(),1),Km=Fe(Bm(),1);function _r(t){return t.startsWith("\\\\?\\")?t:t.replace(/\\/g,"/")}var wi=t=>t[0]==="!";var jm={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},Xm="**/.gitignore",PT=(t,r)=>wi(t)?"!"+Hn.default.posix.join(r,t.slice(1)):Hn.default.posix.join(r,t),TT=(t,r)=>{let i=_r(Hn.default.relative(r,Hn.default.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(o=>o&&!o.startsWith("#")).map(o=>PT(o,i))},OT=(t,r)=>{if(r=_r(r),Hn.default.isAbsolute(t)){if(_r(t).startsWith(r))return Hn.default.relative(r,t);throw new Error(`Path ${t} is not in cwd ${r}`)}return t},zm=(t,r)=>{let i=t.flatMap(u=>TT(u,r)),o=(0,Km.default)().add(i);return u=>(u=bi(u),u=OT(u,r),u?o.ignores(_r(u)):!1)},Ym=(t={})=>({cwd:bi(t.cwd)??Wm.default.cwd(),suppressErrors:Boolean(t.suppressErrors),deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),Qm=async(t,r)=>{let{cwd:i,suppressErrors:o,deep:u}=Ym(r),c=await(0,ml.default)(t,{cwd:i,suppressErrors:o,deep:u,...jm}),f=await Promise.all(c.map(async h=>({filePath:h,content:await Gm.default.readFile(h,"utf8")})));return zm(f,i)},Zm=(t,r)=>{let{cwd:i,suppressErrors:o,deep:u}=Ym(r),f=ml.default.sync(t,{cwd:i,suppressErrors:o,deep:u,...jm}).map(h=>({filePath:h,content:Um.default.readFileSync(h,"utf8")}));return zm(f,i)};var IT=t=>{if(t.some(r=>typeof r!="string"))throw new TypeError("Patterns must be a string or an array of strings")},t_=(t,r)=>{let i=wi(t)?t.slice(1):t;return Bn.default.isAbsolute(i)?i:Bn.default.join(r,i)},n_=({directoryPath:t,files:r,extensions:i})=>{let o=i?.length>0?`.${i.length>1?`{${i.join(",")}}`:i[0]}`:"";return r?r.map(u=>Bn.default.posix.join(t,`**/${Bn.default.extname(u)?u:`${u}${o}`}`)):[Bn.default.posix.join(t,`**${o?`/${o}`:""}`)]},Vm=async(t,{cwd:r=_l.default.cwd(),files:i,extensions:o}={})=>(await Promise.all(t.map(async c=>await Tm(t_(c,r))?n_({directoryPath:c,files:i,extensions:o}):c))).flat(),Jm=(t,{cwd:r=_l.default.cwd(),files:i,extensions:o}={})=>t.flatMap(u=>Om(t_(u,r))?n_({directoryPath:u,files:i,extensions:o}):u),yl=t=>(t=[...new Set([t].flat())],IT(t),t),LT=t=>{if(!t)return;let r;try{r=e_.default.statSync(t)}catch{return}if(!r.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},r_=(t={})=>(t={...t,ignore:t.ignore??[],expandDirectories:t.expandDirectories??!0,cwd:bi(t.cwd)},LT(t.cwd),t),i_=t=>async(r,i)=>t(yl(r),r_(i)),Js=t=>(r,i)=>t(yl(r),r_(i)),s_=t=>{let{ignoreFiles:r,gitignore:i}=t,o=r?yl(r):[];return i&&o.push(Xm),o},kT=async t=>{let r=s_(t);return u_(r.length>0&&await Qm(r,t))},o_=t=>{let r=s_(t);return u_(r.length>0&&Zm(r,t))},u_=t=>{let r=new Set;return i=>{let o=Bn.default.normalize(i.path??i);return r.has(o)||t&&t(o)?!1:(r.add(o),!0)}},a_=(t,r)=>t.flat().filter(i=>r(i)),c_=(t,r)=>{let i=[];for(;t.length>0;){let o=t.findIndex(c=>wi(c));if(o===-1){i.push({patterns:t,options:r});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:{...r,ignore:[...r.ignore,u]}}),t=t.slice(o+1)}return i},l_=(t,r)=>({...r?{cwd:r}:{},...Array.isArray(t)?{files:t}:t}),f_=async(t,r)=>{let i=c_(t,r),{cwd:o,expandDirectories:u}=r;if(!u)return i;let c=l_(u,o);return Promise.all(i.map(async f=>{let{patterns:h,options:g}=f;return[h,g.ignore]=await Promise.all([Vm(h,c),Vm(g.ignore,{cwd:o})]),{patterns:h,options:g}}))},vl=(t,r)=>{let i=c_(t,r),{cwd:o,expandDirectories:u}=r;if(!u)return i;let c=l_(u,o);return i.map(f=>{let{patterns:h,options:g}=f;return h=Jm(h,c),g.ignore=Jm(g.ignore,{cwd:o}),{patterns:h,options:g}})},h_=i_(async(t,r)=>{let[i,o]=await Promise.all([f_(t,r),kT(r)]),u=await Promise.all(i.map(c=>(0,yr.default)(c.patterns,c.options)));return a_(u,o)}),tD=Js((t,r)=>{let i=vl(t,r),o=o_(r),u=i.map(c=>yr.default.sync(c.patterns,c.options));return a_(u,o)}),nD=Js((t,r)=>{let i=vl(t,r),o=o_(r),u=i.map(f=>yr.default.stream(f.patterns,f.options));return Ea(u).filter(f=>o(f))}),rD=Js((t,r)=>t.some(i=>yr.default.isDynamicPattern(i,r))),iD=i_(f_),sD=Js(vl),{convertPathToPattern:oD}=yr.default;var vr=class extends X{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",K("node_modules",".bin","package-check"),"--cwd",o]).then(this.throwIfError).catch(this.catch))).catch(this.catch)).catch(this.catch)}};vr.paths=[["@bud","package-check"]],vr.usage={category:"@bud",description:"PackageCheck passthrough",examples:[["package-check usage info","yarn @bud package-check --help"]]};var d_=q("clipanion"),g_=Fe(wr());var Sr=class extends X{constructor(){super(...arguments);this.passthrough=d_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",K("node_modules",".bin","pm2"),...this.passthrough]).catch(g_.noop)}};Sr.paths=[["@bud","pm2"]],Sr.usage={category:"@bud",description:"registry access",examples:[["pm2 usage info","yarn @bud pm2 --info"]]};var m_=q("clipanion");var xr=class extends X{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",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)}};xr.paths=[["@bud","prettier"]],xr.usage={category:"@bud",description:"Prettier passthrough",examples:[["prettier usage info","yarn @bud prettier --help"]]};var __=q("clipanion");var Er=class extends X{constructor(){super(...arguments);this.passthrough=__.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)}};Er.paths=[["@bud","syncpack"]],Er.usage={category:"@bud",description:"Syncpack passthrough",examples:[["syncpack usage info","yarn @bud syncpack --help"]]};var y_=q("clipanion");var Ar=class extends X{constructor(){super(...arguments);this.passthrough=y_.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)}};Ar.paths=[["@bud","tsc"]],Ar.usage={category:"@bud",description:"Run the typescript compiler",examples:[["tsc usage info","yarn @bud tsc --help"]]};var v_=q("clipanion");var Cr=class extends X{constructor(){super(...arguments);this.passthrough=v_.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)}};Cr.paths=[["@bud","vitest"]],Cr.usage={category:"@bud",description:"Run vitest",examples:[["vitest usage info","yarn @bud vitest --help"]]};var Rr=class extends X{async execute(){await this.cli.run(["update-browserslist-db"])}};Rr.paths=[["@bud","browserslist","update"],["@bud","browserslist","upgrade"]],Rr.usage={category:"@bud",description:"update browserslist",examples:[["update browserslist db","yarn @bud browserslist update"]]};var xi=class extends X{async execute(){process.stdout.write(` + %s`,Q,Q,O,u);let N=O.type==="*"?Ll:O.type==="?"?Dl:"\\"+O.type;c=!0,u=u.slice(0,O.reStart)+N+"\\("+Q}W(),f&&(u+="\\\\");let te=GO[u.charAt(0)];for(let Q=g.length-1;Q>-1;Q--){let N=g[Q],ne=u.slice(0,N.reStart),Z=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"?XO(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(r,i=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&i)return!0;let o=this.options;kl.sep!=="/"&&(r=r.split(kl.sep).join("/")),r=r.split(hy),this.debug(this.pattern,"split",r);let u=this.set;this.debug(this.pattern,"set",u);let c;for(let f=r.length-1;f>=0&&(c=r[f],!c);f--);for(let f=0;f{"use strict";var zO=gy().Minimatch,YO=(t,r)=>{let i=r.indexOf("/")!==-1,o=/^!?\//.test(r),u=/^!/.test(r),c;if(!o&&i){let f=r.replace(/^!/,"").replace(/^\.\//,"");return/\/$/.test(t)?c="":c="/",u?`!${t}${c}${f}`:`${t}${c}${f}`}return r};my.create=(t,r,i)=>{let o;typeof r=="string"?o=[r]:o=r;let u=o.map(f=>YO(t,f)).map(f=>new zO(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 QO=q("path"),yy=_o(),vy=Lr(),by=$l(),_y=Ge(),ZO=(t,r,i)=>{let o=`${t}([path], options)`;_y.argument(o,"path",r,["string"]),_y.options(o,"options",i,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},wy=t=>{let r=t||{};return r.matching===void 0&&(r.matching="*"),r.files===void 0&&(r.files=!0),r.ignoreCase===void 0&&(r.ignoreCase=!1),r.directories===void 0&&(r.directories=!1),r.recursive===void 0&&(r.recursive=!0),r},Sy=(t,r)=>t.map(i=>QO.relative(r,i)),xy=t=>{let r=new Error(`Path you want to find stuff in doesn't exist ${t}`);return r.code="ENOENT",r},Ey=t=>{let r=new Error(`Path you want to find stuff in must be a directory ${t}`);return r.code="ENOTDIR",r},VO=(t,r)=>{let i=[],o=by.create(t,r.matching,r.ignoreCase),u=1/0;return r.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"&&r.files===!0||f.type==="dir"&&r.directories===!0)&&(r.filter?r.filter(f)&&i.push(c):i.push(c))}),i.sort(),Sy(i,r.cwd)},JO=(t,r)=>{let i=vy.sync(t,{symlinks:"follow"});if(i===void 0)throw xy(t);if(i.type!=="dir")throw Ey(t);return VO(t,wy(r))},eI=(t,r)=>new Promise((i,o)=>{let u=[],c=by.create(t,r.matching,r.ignoreCase),f=1/0;r.recursive===!1&&(f=1);let h=0,g=!1,_=()=>{g&&h===0&&(u.sort(),i(Sy(u,r.cwd)))};yy.async(t,{maxLevelsDeep:f,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(v,x)=>{if(x&&v!==t&&c(v)&&(x.type==="file"&&r.files===!0||x.type==="dir"&&r.directories===!0))if(r.filter){let H=r.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,_())})}),tI=(t,r)=>vy.async(t,{symlinks:"follow"}).then(i=>{if(i===void 0)throw xy(t);if(i.type!=="dir")throw Ey(t);return eI(t,wy(r))});bo.validateInput=ZO;bo.sync=JO;bo.async=tI});var Py=L(xo=>{"use strict";var nI=q("crypto"),So=q("path"),wo=Lr(),rN=ho(),Cy=Ge(),Ry=_o(),rI=(t,r,i)=>{let o=`${t}(path, [options])`;if(Cy.argument(o,"path",r,["string"]),Cy.options(o,"options",i,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),i&&i.checksum!==void 0&&wo.supportedChecksumAlgorithms.indexOf(i.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${wo.supportedChecksumAlgorithms.join(", ")}`);if(i&&i.symlinks!==void 0&&wo.symlinkOptions.indexOf(i.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${wo.symlinkOptions.join(", ")}`)},iI=(t,r)=>t===void 0?".":t.relativePath+"/"+r.name,sI=(t,r)=>{let i=nI.createHash(r);return t.forEach(o=>{i.update(o.name+o[r])}),i.digest("hex")},Ml=(t,r,i)=>{i.relativePath&&(r.relativePath=iI(t,r)),r.type==="dir"&&(r.children.forEach(o=>{Ml(r,o,i)}),r.size=0,r.children.sort((o,u)=>o.type==="dir"&&u.type==="file"?-1:o.type==="file"&&u.type==="dir"?1:o.name.localeCompare(u.name)),r.children.forEach(o=>{r.size+=o.size||0}),i.checksum&&(r[i.checksum]=sI(r.children,i.checksum)))},Fl=(t,r,i)=>{let o=r[0];if(r.length>1){let u=t.children.find(c=>c.name===o);return Fl(u,r.slice(1),i)}return t},oI=(t,r)=>{let i=r||{},o;return Ry.sync(t,{inspectOptions:i},(u,c)=>{if(c){c.type==="dir"&&(c.children=[]);let f=So.relative(t,u);f===""?o=c:Fl(o,f.split(So.sep),c).children.push(c)}}),o&&Ml(void 0,o,i),o},uI=(t,r)=>{let i=r||{},o;return new Promise((u,c)=>{Ry.async(t,{inspectOptions:i},(f,h)=>{if(h){h.type==="dir"&&(h.children=[]);let g=So.relative(t,f);g===""?o=h:Fl(o,g.split(So.sep),h).children.push(h)}},f=>{f?c(f):(o&&Ml(void 0,o,i),u(o))})})};xo.validateInput=rI;xo.sync=oI;xo.async=uI});var Ao=L(Eo=>{"use strict";var Ty=it(),aI=Ge(),cI=(t,r)=>{let i=`${t}(path)`;aI.argument(i,"path",r,["string"])},lI=t=>{try{let r=Ty.statSync(t);return r.isDirectory()?"dir":r.isFile()?"file":"other"}catch(r){if(r.code!=="ENOENT")throw r}return!1},fI=t=>new Promise((r,i)=>{Ty.stat(t).then(o=>{o.isDirectory()?r("dir"):o.isFile()?r("file"):r("other")}).catch(o=>{o.code==="ENOENT"?r(!1):i(o)})});Eo.validateInput=cI;Eo.sync=lI;Eo.async=fI});var Wl=L(To=>{"use strict";var Ti=q("path"),dt=it(),Bl=Wn(),Co=Ao(),Oy=Lr(),hI=Ci(),pI=$l(),Iy=to(),Ly=_o(),ql=Ge(),dI=(t,r,i,o)=>{let u=`${t}(from, to, [options])`;ql.argument(u,"from",r,["string"]),ql.argument(u,"to",i,["string"]),ql.options(u,"options",o,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},ky=(t,r)=>{let i=t||{},o={};return i.ignoreCase===void 0&&(i.ignoreCase=!1),o.overwrite=i.overwrite,i.matching?o.allowedToCopy=pI.create(r,i.matching,i.ignoreCase):o.allowedToCopy=()=>!0,o},Dy=t=>{let r=new Error(`Path to copy doesn't exist ${t}`);return r.code="ENOENT",r},Ro=t=>{let r=new Error(`Destination path already exists ${t}`);return r.code="EEXIST",r},Po={mode:!0,symlinks:"report",times:!0,absolutePath:!0},Ny=t=>typeof t.opts.overwrite!="function"&&t.opts.overwrite!==!0,gI=(t,r,i)=>{if(!Co.sync(t))throw Dy(t);if(Co.sync(r)&&!i.overwrite)throw Ro(r)},mI=t=>{if(typeof t.opts.overwrite=="function"){let r=Oy.sync(t.destPath,Po);return t.opts.overwrite(t.srcInspectData,r)}return t.opts.overwrite===!0},_I=(t,r,i,o)=>{let u=dt.readFileSync(t);try{dt.writeFileSync(r,u,{mode:i,flag:"wx"})}catch(c){if(c.code==="ENOENT")hI.sync(r,u,{mode:i});else if(c.code==="EEXIST"){if(mI(o))dt.writeFileSync(r,u,{mode:i});else if(Ny(o))throw Ro(o.destPath)}else throw c}},yI=(t,r)=>{let i=dt.readlinkSync(t);try{dt.symlinkSync(i,r)}catch(o){if(o.code==="EEXIST")dt.unlinkSync(r),dt.symlinkSync(i,r);else throw o}},vI=(t,r,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:r,opts:o},c=Iy.normalizeFileMode(r.mode);r.type==="dir"?Bl.createSync(i,{mode:c}):r.type==="file"?_I(t,i,c,u):r.type==="symlink"&&yI(t,i)},bI=(t,r,i)=>{let o=ky(i,t);gI(t,r,o),Ly.sync(t,{inspectOptions:Po},(u,c)=>{let f=Ti.relative(t,u),h=Ti.resolve(r,f);o.allowedToCopy(u,h,c)&&vI(u,c,h,o)})},wI=(t,r,i)=>Co.async(t).then(o=>{if(o)return Co.async(r);throw Dy(t)}).then(o=>{if(o&&!i.overwrite)throw Ro(r)}),SI=t=>new Promise((r,i)=>{typeof t.opts.overwrite=="function"?Oy.async(t.destPath,Po).then(o=>{r(t.opts.overwrite(t.srcInspectData,o))}).catch(i):r(t.opts.overwrite===!0)}),Hl=(t,r,i,o,u)=>new Promise((c,f)=>{let h=u||{},g="wx";h.overwrite&&(g="w");let _=dt.createReadStream(t),v=dt.createWriteStream(r,{mode:i,flags:g});_.on("error",f),v.on("error",x=>{_.resume(),x.code==="ENOENT"?Bl.createAsync(Ti.dirname(r)).then(()=>{Hl(t,r,i,o).then(c,f)}).catch(f):x.code==="EEXIST"?SI(o).then(S=>{S?Hl(t,r,i,o,{overwrite:!0}).then(c,f):Ny(o)?f(Ro(r)):c()}).catch(f):f(x)}),v.on("finish",c),_.pipe(v)}),xI=(t,r)=>dt.readlink(t).then(i=>new Promise((o,u)=>{dt.symlink(i,r).then(o).catch(c=>{c.code==="EEXIST"?dt.unlink(r).then(()=>dt.symlink(i,r)).then(o,u):u(c)})})),EI=(t,r,i,o)=>{let u={srcPath:t,destPath:i,srcInspectData:r,opts:o},c=Iy.normalizeFileMode(r.mode);return r.type==="dir"?Bl.createAsync(i,{mode:c}):r.type==="file"?Hl(t,i,c,u):r.type==="symlink"?xI(t,i):Promise.resolve()},AI=(t,r,i)=>new Promise((o,u)=>{let c=ky(i,t);wI(t,r,c).then(()=>{let f=!1,h=0;Ly.async(t,{inspectOptions:Po},(g,_)=>{if(_){let v=Ti.relative(t,g),x=Ti.resolve(r,v);c.allowedToCopy(g,_,x)&&(h+=1,EI(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=dI;To.sync=bI;To.async=AI});var Gl=L(Io=>{"use strict";var $y=q("path"),Dr=it(),Ul=Ge(),My=Wl(),Fy=Wn(),Oi=Ao(),Oo=ro(),CI=(t,r,i,o)=>{let u=`${t}(from, to, [options])`;Ul.argument(u,"from",r,["string"]),Ul.argument(u,"to",i,["string"]),Ul.options(u,"options",o,{overwrite:["boolean"]})},qy=t=>t||{},Hy=t=>{let r=new Error(`Destination path already exists ${t}`);return r.code="EEXIST",r},By=t=>{let r=new Error(`Path to move doesn't exist ${t}`);return r.code="ENOENT",r},RI=(t,r,i)=>{let o=qy(i);if(Oi.sync(r)!==!1&&o.overwrite!==!0)throw Hy(r);try{Dr.renameSync(t,r)}catch(u){if(u.code==="EISDIR"||u.code==="EPERM")Oo.sync(r),Dr.renameSync(t,r);else if(u.code==="EXDEV")My.sync(t,r,{overwrite:!0}),Oo.sync(t);else if(u.code==="ENOENT"){if(!Oi.sync(t))throw By(t);Fy.createSync($y.dirname(r)),Dr.renameSync(t,r)}else throw u}},PI=t=>new Promise((r,i)=>{let o=$y.dirname(t);Oi.async(o).then(u=>{u?i():Fy.createAsync(o).then(r,i)}).catch(i)}),TI=(t,r,i)=>{let o=qy(i);return new Promise((u,c)=>{Oi.async(r).then(f=>{f!==!1&&o.overwrite!==!0?c(Hy(r)):Dr.rename(t,r).then(u).catch(h=>{h.code==="EISDIR"||h.code==="EPERM"?Oo.async(r).then(()=>Dr.rename(t,r)).then(u,c):h.code==="EXDEV"?My.async(t,r,{overwrite:!0}).then(()=>Oo.async(t)).then(u,c):h.code==="ENOENT"?Oi.async(t).then(g=>{g?PI(r).then(()=>Dr.rename(t,r)).then(u,c):c(By(t))}).catch(c):c(h)})})})};Io.validateInput=CI;Io.sync=RI;Io.async=TI});var Xy=L(Lo=>{"use strict";var Gy=it(),Wy=Ge(),Uy=["utf8","buffer","json","jsonWithDates"],OI=(t,r,i)=>{let o=`${t}(path, returnAs)`;if(Wy.argument(o,"path",r,["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(", ")}`)},Ky=(t,r)=>typeof r=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(r)?new Date(r):r,jy=(t,r)=>{let i=new Error(`JSON parsing failed while reading ${t} [${r}]`);return i.originalError=r,i},II=(t,r)=>{let i=r||"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,Ky))}catch(c){throw jy(t,c)}return o},LI=(t,r)=>new Promise((i,o)=>{let u=r||"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,Ky):f)}catch(h){o(jy(t,h))}}).catch(f=>{f.code==="ENOENT"?i(void 0):o(f)})});Lo.validateInput=OI;Lo.sync=II;Lo.async=LI});var Yy=L(ko=>{"use strict";var Ii=q("path"),zy=Gl(),Kl=Ge(),kI=(t,r,i,o)=>{let u=`${t}(path, newName, [options])`;if(Kl.argument(u,"path",r,["string"]),Kl.argument(u,"newName",i,["string"]),Kl.options(u,"options",o,{overwrite:["boolean"]}),Ii.basename(i)!==i)throw new Error(`Argument "newName" passed to ${u} should be a filename, not a path. Received "${i}"`)},DI=(t,r,i)=>{let o=Ii.join(Ii.dirname(t),r);zy.sync(t,o,i)},NI=(t,r,i)=>{let o=Ii.join(Ii.dirname(t),r);return zy.async(t,o,i)};ko.validateInput=kI;ko.sync=DI;ko.async=NI});var Jy=L(No=>{"use strict";var Zy=q("path"),Do=it(),Qy=Ge(),Vy=Wn(),$I=(t,r,i)=>{let o=`${t}(symlinkValue, path)`;Qy.argument(o,"symlinkValue",r,["string"]),Qy.argument(o,"path",i,["string"])},MI=(t,r)=>{try{Do.symlinkSync(t,r)}catch(i){if(i.code==="ENOENT")Vy.createSync(Zy.dirname(r)),Do.symlinkSync(t,r);else throw i}},FI=(t,r)=>new Promise((i,o)=>{Do.symlink(t,r).then(i).catch(u=>{u.code==="ENOENT"?Vy.createAsync(Zy.dirname(r)).then(()=>Do.symlink(t,r)).then(i,o):o(u)})});No.validateInput=$I;No.sync=MI;No.async=FI});var tv=L(jl=>{"use strict";var ev=q("fs");jl.createWriteStream=ev.createWriteStream;jl.createReadStream=ev.createReadStream});var uv=L($o=>{"use strict";var Xl=q("path"),qI=q("os"),nv=q("crypto"),rv=Wn(),iv=it(),HI=Ge(),BI=(t,r)=>{let i=`${t}([options])`;HI.options(i,"options",r,{prefix:["string"],basePath:["string"]})},sv=(t,r)=>{t=t||{};let i={};return typeof t.prefix!="string"?i.prefix="":i.prefix=t.prefix,typeof t.basePath=="string"?i.basePath=Xl.resolve(r,t.basePath):i.basePath=qI.tmpdir(),i},ov=32,WI=(t,r)=>{let i=sv(r,t),o=nv.randomBytes(ov/2).toString("hex"),u=Xl.join(i.basePath,i.prefix+o);try{iv.mkdirSync(u)}catch(c){if(c.code==="ENOENT")rv.sync(u);else throw c}return u},UI=(t,r)=>new Promise((i,o)=>{let u=sv(r,t);nv.randomBytes(ov/2,(c,f)=>{if(c)o(c);else{let h=f.toString("hex"),g=Xl.join(u.basePath,u.prefix+h);iv.mkdir(g,_=>{_?_.code==="ENOENT"?rv.async(g).then(()=>{i(g)},o):o(_):i(g)})}})});$o.validateInput=BI;$o.sync=WI;$o.async=UI});var hv=L((pN,fv)=>{"use strict";var av=q("util"),zl=q("path"),Mo=H_(),Fo=Wn(),qo=G_(),Ho=Ay(),Bo=Lr(),Wo=Py(),Uo=Wl(),Go=Ao(),Ko=ho(),jo=Gl(),Xo=Xy(),zo=ro(),Yo=Yy(),Qo=Jy(),cv=tv(),Zo=uv(),Vo=Ci(),lv=t=>{let r=()=>t||process.cwd(),i=function(){if(arguments.length===0)return r();let h=Array.prototype.slice.call(arguments),g=[r()].concat(h);return lv(zl.resolve.apply(null,g))},o=h=>zl.resolve(r(),h),u=function(){return Array.prototype.unshift.call(arguments,r()),zl.resolve.apply(null,arguments)},c=h=>{let g=h||{};return g.cwd=r(),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=>(Ko.validateInput("list",h),Ko.sync(o(h||"."))),listAsync:h=>(Ko.validateInput("listAsync",h),Ko.async(o(h||"."))),move:(h,g,_)=>{jo.validateInput("move",h,g,_),jo.sync(o(h),o(g),_)},moveAsync:(h,g,_)=>(jo.validateInput("moveAsync",h,g,_),jo.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(r(),h);return i(g)},tmpDirAsync:h=>(Zo.validateInput("tmpDirAsync",h),new Promise((g,_)=>{Zo.async(r(),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: ${r()}]`),f};fv.exports=lv});var Jo=L((dN,pv)=>{"use strict";var GI=hv();pv.exports=GI()});var XI={};Pp(XI,{default:()=>jI});var Ei={};Pp(Ei,{Browserslist:()=>ur,BrowserslistUpdate:()=>Pr,Bud:()=>xi,Build:()=>Nr,Clean:()=>$r,Contributors:()=>Fr,Dev:()=>qr,Docs:()=>Hr,DocsDev:()=>Br,Docusaurus:()=>ar,Eslint:()=>cr,Lint:()=>Wr,Netlify:()=>lr,PackageCheck:()=>br,Pm2:()=>xr,Prettier:()=>Er,RegistryClean:()=>Ur,RegistryStart:()=>Gr,RegistryStop:()=>Kr,Release:()=>jr,Syncpack:()=>Ar,TestRun:()=>Xr,Tsc:()=>Cr,Version:()=>zr,Vitest:()=>Rr,YarnPluginBuild:()=>Mr});var Ip=q("clipanion");var Op=q("@yarnpkg/cli"),X=class extends Op.BaseCommand{constructor(){super();this.result=0;this.promised=[]}async throwIfError(i){if(i!==0)throw new Error("command failed")}};var ur=class extends X{constructor(){super(...arguments);this.passthrough=Ip.Option.Proxy({name:"browserslist options"})}async execute(){return await this.cli.run(["browserslist",...this.passthrough??[]]).then(this.throwIfError).catch(this.catch)}};ur.paths=[["@bud","browserslist"]],ur.usage={category:"@bud",description:"run browserslist",examples:[["browserslist usage info","yarn @bud browserslist --help"]]};var Lp=q("clipanion");var ar=class extends X{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)}};ar.paths=[["@bud","docusaurus"]],ar.usage={category:"@bud",description:"run docusaurus",examples:[["docusaurus usage info","yarn @bud docusaurus --help"]]};var $p=q("module"),Mp=q("path"),Fp=q("url"),di={},qp=(di?.url&&typeof di.url<"u"?(0,Fp.fileURLToPath)(di.url):__dirname).split("sources/").shift(),K=(...t)=>(0,Mp.join)(qp,...t),rL=K("package.json"),iL=K("storage"),sL=K("config","tsconfig.json");var oL={config:K("config"),fixtures:K("storage","fixtures"),root:qp,sources:K("sources"),storage:K("storage"),tests:K("tests")},Np;typeof di?.url<"u"?Np=(0,$p.createRequire)(di.url)("../../../config/monorepo.config.cjs"):Np=Dp();var Hp=q("clipanion");var cr=class extends X{constructor(){super(...arguments);this.passthrough=Hp.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)}};cr.paths=[["@bud","eslint"]],cr.usage={category:"@bud",description:"Eslint passthrough",examples:[["eslint usage info","yarn @bud eslint --help"]]};var xa=q("clipanion");var lr=class extends X{constructor(){super(...arguments);this.dir=xa.Option.String("--dir",K("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)}};lr.paths=[["@bud","netlify"]],lr.usage={category:"@bud",description:"run netlify",examples:[["netlify usage info","yarn @bud netlify --help"]]};var p_=q("clipanion");var _l=Fe(q("process"),1),e_=Fe(q("fs"),1),Bn=Fe(q("path"),1);var Bp=q("stream");function Ea(t){if(!Array.isArray(t))throw new TypeError(`Expected an array, got \`${typeof t}\`.`);let r=new Bp.PassThrough({objectMode:!0});if(r.setMaxListeners(Number.POSITIVE_INFINITY),t.length===0)return r.end(),r;let i=t.length;for(let o of t){if(typeof o?.pipe!="function")throw new TypeError(`Expected a stream, got: \`${typeof o}\`.`);o.pipe(r,{end:!1}),o.on("end",()=>{i--,i===0&&r.end()}),o.on("error",u=>{r.emit("error",u)})}return r}var vr=Fe(al(),1);var Zs=Fe(q("fs"),1);async function cl(t,r,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await Zs.promises[t](i))[r]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}function ll(t,r,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return Zs.default[t](i)[r]()}catch(o){if(o.code==="ENOENT")return!1;throw o}}var $k=cl.bind(null,"stat","isFile"),Tm=cl.bind(null,"stat","isDirectory"),Mk=cl.bind(null,"lstat","isSymbolicLink"),Fk=ll.bind(null,"statSync","isFile"),Om=ll.bind(null,"statSync","isDirectory"),qk=ll.bind(null,"lstatSync","isSymbolicLink");var Im=q("url");function bi(t){return t instanceof URL?(0,Im.fileURLToPath)(t):t}var Wm=Fe(q("process"),1),Um=Fe(q("fs"),1),Gm=Fe(q("fs/promises"),1),Hn=Fe(q("path"),1),ml=Fe(al(),1),Km=Fe(Bm(),1);function yr(t){return t.startsWith("\\\\?\\")?t:t.replace(/\\/g,"/")}var wi=t=>t[0]==="!";var jm={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},Xm="**/.gitignore",PT=(t,r)=>wi(t)?"!"+Hn.default.posix.join(r,t.slice(1)):Hn.default.posix.join(r,t),TT=(t,r)=>{let i=yr(Hn.default.relative(r,Hn.default.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(o=>o&&!o.startsWith("#")).map(o=>PT(o,i))},OT=(t,r)=>{if(r=yr(r),Hn.default.isAbsolute(t)){if(yr(t).startsWith(r))return Hn.default.relative(r,t);throw new Error(`Path ${t} is not in cwd ${r}`)}return t},zm=(t,r)=>{let i=t.flatMap(u=>TT(u,r)),o=(0,Km.default)().add(i);return u=>(u=bi(u),u=OT(u,r),u?o.ignores(yr(u)):!1)},Ym=(t={})=>({cwd:bi(t.cwd)??Wm.default.cwd(),suppressErrors:Boolean(t.suppressErrors),deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),Qm=async(t,r)=>{let{cwd:i,suppressErrors:o,deep:u}=Ym(r),c=await(0,ml.default)(t,{cwd:i,suppressErrors:o,deep:u,...jm}),f=await Promise.all(c.map(async h=>({filePath:h,content:await Gm.default.readFile(h,"utf8")})));return zm(f,i)},Zm=(t,r)=>{let{cwd:i,suppressErrors:o,deep:u}=Ym(r),f=ml.default.sync(t,{cwd:i,suppressErrors:o,deep:u,...jm}).map(h=>({filePath:h,content:Um.default.readFileSync(h,"utf8")}));return zm(f,i)};var IT=t=>{if(t.some(r=>typeof r!="string"))throw new TypeError("Patterns must be a string or an array of strings")},t_=(t,r)=>{let i=wi(t)?t.slice(1):t;return Bn.default.isAbsolute(i)?i:Bn.default.join(r,i)},n_=({directoryPath:t,files:r,extensions:i})=>{let o=i?.length>0?`.${i.length>1?`{${i.join(",")}}`:i[0]}`:"";return r?r.map(u=>Bn.default.posix.join(t,`**/${Bn.default.extname(u)?u:`${u}${o}`}`)):[Bn.default.posix.join(t,`**${o?`/${o}`:""}`)]},Vm=async(t,{cwd:r=_l.default.cwd(),files:i,extensions:o}={})=>(await Promise.all(t.map(async c=>await Tm(t_(c,r))?n_({directoryPath:c,files:i,extensions:o}):c))).flat(),Jm=(t,{cwd:r=_l.default.cwd(),files:i,extensions:o}={})=>t.flatMap(u=>Om(t_(u,r))?n_({directoryPath:u,files:i,extensions:o}):u),yl=t=>(t=[...new Set([t].flat())],IT(t),t),LT=t=>{if(!t)return;let r;try{r=e_.default.statSync(t)}catch{return}if(!r.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},r_=(t={})=>(t={...t,ignore:t.ignore??[],expandDirectories:t.expandDirectories??!0,cwd:bi(t.cwd)},LT(t.cwd),t),i_=t=>async(r,i)=>t(yl(r),r_(i)),Js=t=>(r,i)=>t(yl(r),r_(i)),s_=t=>{let{ignoreFiles:r,gitignore:i}=t,o=r?yl(r):[];return i&&o.push(Xm),o},kT=async t=>{let r=s_(t);return u_(r.length>0&&await Qm(r,t))},o_=t=>{let r=s_(t);return u_(r.length>0&&Zm(r,t))},u_=t=>{let r=new Set;return i=>{let o=Bn.default.normalize(i.path??i);return r.has(o)||t&&t(o)?!1:(r.add(o),!0)}},a_=(t,r)=>t.flat().filter(i=>r(i)),c_=(t,r)=>{let i=[];for(;t.length>0;){let o=t.findIndex(c=>wi(c));if(o===-1){i.push({patterns:t,options:r});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:{...r,ignore:[...r.ignore,u]}}),t=t.slice(o+1)}return i},l_=(t,r)=>({...r?{cwd:r}:{},...Array.isArray(t)?{files:t}:t}),f_=async(t,r)=>{let i=c_(t,r),{cwd:o,expandDirectories:u}=r;if(!u)return i;let c=l_(u,o);return Promise.all(i.map(async f=>{let{patterns:h,options:g}=f;return[h,g.ignore]=await Promise.all([Vm(h,c),Vm(g.ignore,{cwd:o})]),{patterns:h,options:g}}))},vl=(t,r)=>{let i=c_(t,r),{cwd:o,expandDirectories:u}=r;if(!u)return i;let c=l_(u,o);return i.map(f=>{let{patterns:h,options:g}=f;return h=Jm(h,c),g.ignore=Jm(g.ignore,{cwd:o}),{patterns:h,options:g}})},h_=i_(async(t,r)=>{let[i,o]=await Promise.all([f_(t,r),kT(r)]),u=await Promise.all(i.map(c=>(0,vr.default)(c.patterns,c.options)));return a_(u,o)}),tD=Js((t,r)=>{let i=vl(t,r),o=o_(r),u=i.map(c=>vr.default.sync(c.patterns,c.options));return a_(u,o)}),nD=Js((t,r)=>{let i=vl(t,r),o=o_(r),u=i.map(f=>vr.default.stream(f.patterns,f.options));return Ea(u).filter(f=>o(f))}),rD=Js((t,r)=>t.some(i=>vr.default.isDynamicPattern(i,r))),iD=i_(f_),sD=Js(vl),{convertPathToPattern:oD}=vr.default;var br=class extends X{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",K("node_modules",".bin","package-check"),"--cwd",o]).then(this.throwIfError).catch(this.catch))).catch(this.catch)).catch(this.catch)}};br.paths=[["@bud","package-check"]],br.usage={category:"@bud",description:"PackageCheck passthrough",examples:[["package-check usage info","yarn @bud package-check --help"]]};var d_=q("clipanion"),g_=Fe(Sr());var xr=class extends X{constructor(){super(...arguments);this.passthrough=d_.Option.Proxy({name:"pm2 options"})}async execute(){await this.cli.run(["node",K("node_modules",".bin","pm2"),...this.passthrough]).catch(g_.noop)}};xr.paths=[["@bud","pm2"]],xr.usage={category:"@bud",description:"registry access",examples:[["pm2 usage info","yarn @bud pm2 --info"]]};var m_=q("clipanion");var Er=class extends X{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",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)}};Er.paths=[["@bud","prettier"]],Er.usage={category:"@bud",description:"Prettier passthrough",examples:[["prettier usage info","yarn @bud prettier --help"]]};var __=q("clipanion");var Ar=class extends X{constructor(){super(...arguments);this.passthrough=__.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)}};Ar.paths=[["@bud","syncpack"]],Ar.usage={category:"@bud",description:"Syncpack passthrough",examples:[["syncpack usage info","yarn @bud syncpack --help"]]};var y_=q("clipanion");var Cr=class extends X{constructor(){super(...arguments);this.passthrough=y_.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)}};Cr.paths=[["@bud","tsc"]],Cr.usage={category:"@bud",description:"Run the typescript compiler",examples:[["tsc usage info","yarn @bud tsc --help"]]};var v_=q("clipanion");var Rr=class extends X{constructor(){super(...arguments);this.passthrough=v_.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)}};Rr.paths=[["@bud","vitest"]],Rr.usage={category:"@bud",description:"Run vitest",examples:[["vitest usage info","yarn @bud vitest --help"]]};var Pr=class extends X{async execute(){await this.cli.run(["update-browserslist-db"])}};Pr.paths=[["@bud","browserslist","update"],["@bud","browserslist","upgrade"]],Pr.usage={category:"@bud",description:"update browserslist",examples:[["update browserslist db","yarn @bud browserslist update"]]};var xi=class extends X{async execute(){process.stdout.write(` _ _ | |__ _ _ __| | | _ \\| | | |/ _ | @@ -34,11 +34,11 @@ globstar while`,r,x,i,S,H),this.matchOne(r.slice(x),i.slice(S),o))return this.de |_.__/ \\__._|\\__._| `),Object.values(Ei).filter(r=>r.usage).forEach(r=>{r.usage.examples?.forEach(([i,o])=>{process.stdout.write(` \x1B[34m${o}\x1B[0m ${i} -`)})})}};xi.paths=[["@bud"]];var Nt=Fe(Jo());var Dr=class extends X{constructor(){super(...arguments);this.tsconfig=K("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(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 o=K("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(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 o=K("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(K("node_modules/html-webpack-plugin/lib/loader.js"),K("sources/@roots/bud-support/vendor/html-webpack-plugin/lib/loader.cjs"),{overwrite:!0}),Nt.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(o=>{throw o}),await this.cli.run(["@bud","tsc","--build",this.tsconfig,"--force"]).catch(o=>{throw o})!==0)throw new Error("Build failed")}};Dr.paths=[["@bud","build"]],Dr.usage={category:"@bud",description:"Build packages",examples:[["build packages","yarn @bud build"]]};var Nr=class extends X{async execute(){await this.cli.run(["exec","git","clean","-fxd"])}};Nr.paths=[["@bud","clean"]],Nr.usage={category:"@bud",description:"clean project artifacts",examples:[["clean project artifacts","yarn @bud clean"]]};var $r=class extends X{async execute(){await this.cli.run(["workspace","@repo/yarn-plugin-bud","build"]).catch(r=>{throw r}).then(r=>{if(r!==0)throw new Error("Plugin could not be built.")})}};$r.paths=[["@bud","plugin","build"]],$r.usage={category:"@bud",examples:[["build @bud yarn plugin","yarn @bud plugin build"]]};var Mr=class extends X{async execute(){await this.cli.run(["workspace","@repo/markdown-kit","exec","node","contributors/index.js"]).catch(r=>{throw r})}};Mr.paths=[["@bud","contributors"]],Mr.usage={category:"@bud",description:"Aggregate contributor data",examples:[["update contributors","yarn @bud contributors"]]};var Fr=class extends X{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)}};Fr.paths=[["@bud","dev"]],Fr.usage={category:"@bud",description:"develop project code",examples:[["run tsc, docusaurus & vitest in watch mode","yarn @bud dev"]]};var qr=class extends X{async execute(){await this.cli.run(["@bud","build"]).then(r=>r!==0&&this.catch(new Error(`\`@bud build\` returned error code ${r}`))).catch(this.catch),await this.cli.run(["workspace","@repo/markdown-kit","run","build"]).then(r=>r!==0&&this.catch(new Error(`\`workspace @repo/markdown-kit run build\` returned error code ${r}`))).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(r=>r!==0&&this.catch(new Error(`\`@bud docusaurus build\` returned error code ${r}`))).catch(this.catch)}};qr.paths=[["@bud","docs"],["@bud","docs","build"]],qr.usage={category:"@bud",description:"build docs and other markdown files",examples:[["build docs and readme","yarn @bud docs"]]};var Hr=class extends X{async execute(){await this.cli.run(["@bud","docs","build"]),await this.cli.run(["@bud","docusaurus","start"])}};Hr.paths=[["@bud","docs","dev"]],Hr.usage={category:"@bud",description:"develop docs",examples:[["develop docs","yarn @bud docs dev"]]};var dv=q("clipanion");var Br=class extends X{constructor(){super(...arguments);this.fix=dv.Option.Boolean("--fix",!1)}async execute(){this.promised.push(this.cli.run(["@bud","eslint",this.fix?"--fix":void 0].filter(Boolean)).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","syncpack"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","prettier",this.fix?"--write":void 0].filter(Boolean)).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","package-check"]).then(this.throwIfError).catch(this.catch)),await Promise.all(this.promised)}};Br.paths=[["@bud","lint"]],Br.usage={category:"@bud",description:"Lint project"};var un=Fe(Jo());var Wr=class extends X{async execute(){if(await un.removeAsync(K("storage/mocks")).catch(this.catch),await un.removeAsync(K("storage","packages")).catch(this.catch),await un.existsAsync(K("storage",".verdaccio-db.json"))){let i=await un.readAsync(K("storage",".verdaccio-db.json"),"json").catch(this.catch);i.list=[],await un.writeAsync(K("storage/.verdaccio-db.json"),i).catch(this.catch)}}};Wr.paths=[["@bud","registry","clean"]],Wr.usage={category:"@bud",description:"clean previously published packages",examples:[["clean previously published packages","yarn @bud registry clean"]]};var Yl=Fe(wr());var Ur=class extends X{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(Yl.noop).finally(async()=>{await this.cli.run(["@bud","pm2","save"]).catch(Yl.noop)})}};Ur.paths=[["@bud","registry","start"]],Ur.usage={category:"@bud",description:"start verdaccio registry",examples:[["start verdaccio server","yarn @bud registry start"]]};var Ql=Fe(wr());var Gr=class extends X{async execute(){await this.cli.run(["@bud","pm2","stop","verdaccio"]).catch(Ql.noop),await this.cli.run(["@bud","pm2","delete","verdaccio"]).catch(Ql.noop)}};Gr.paths=[["@bud","registry","stop"]],Gr.usage={category:"@bud",description:"stop verdaccio registry",examples:[["stop verdaccio server","yarn @bud registry stop"]]};var eu=q("clipanion"),Li=Fe(wr());var Kr=class extends X{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","--all","--no-private","npm","publish","--access","public","--tag",this.tag]).then(this.throwIfError).catch(this.catch),await this.resetRegistry(),this.context.stdout.write(` +`)})})}};xi.paths=[["@bud"]];var Nt=Fe(Jo());var Nr=class extends X{constructor(){super(...arguments);this.tsconfig=K("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(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 o=K("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(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 o=K("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(K("node_modules/html-webpack-plugin/lib/loader.js"),K("sources/@roots/bud-support/vendor/html-webpack-plugin/lib/loader.cjs"),{overwrite:!0}),Nt.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(o=>{throw o}),await this.cli.run(["@bud","tsc","--build",this.tsconfig,"--force"]).catch(o=>{throw o})!==0)throw new Error("Build failed")}};Nr.paths=[["@bud","build"]],Nr.usage={category:"@bud",description:"Build packages",examples:[["build packages","yarn @bud build"]]};var $r=class extends X{async execute(){await this.cli.run(["exec","git","clean","-fxd"])}};$r.paths=[["@bud","clean"]],$r.usage={category:"@bud",description:"clean project artifacts",examples:[["clean project artifacts","yarn @bud clean"]]};var Mr=class extends X{async execute(){await this.cli.run(["workspace","@repo/yarn-plugin-bud","build"]).catch(r=>{throw r}).then(r=>{if(r!==0)throw new Error("Plugin could not be built.")})}};Mr.paths=[["@bud","plugin","build"]],Mr.usage={category:"@bud",examples:[["build @bud yarn plugin","yarn @bud plugin build"]]};var Fr=class extends X{async execute(){await this.cli.run(["workspace","@repo/markdown-kit","exec","node","contributors/index.js"]).catch(r=>{throw r})}};Fr.paths=[["@bud","contributors"]],Fr.usage={category:"@bud",description:"Aggregate contributor data",examples:[["update contributors","yarn @bud contributors"]]};var qr=class extends X{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)}};qr.paths=[["@bud","dev"]],qr.usage={category:"@bud",description:"develop project code",examples:[["run tsc, docusaurus & vitest in watch mode","yarn @bud dev"]]};var Hr=class extends X{async execute(){await this.cli.run(["@bud","build"]).then(r=>r!==0&&this.catch(new Error(`\`@bud build\` returned error code ${r}`))).catch(this.catch),await this.cli.run(["workspace","@repo/markdown-kit","run","build"]).then(r=>r!==0&&this.catch(new Error(`\`workspace @repo/markdown-kit run build\` returned error code ${r}`))).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(r=>r!==0&&this.catch(new Error(`\`@bud docusaurus build\` returned error code ${r}`))).catch(this.catch)}};Hr.paths=[["@bud","docs"],["@bud","docs","build"]],Hr.usage={category:"@bud",description:"build docs and other markdown files",examples:[["build docs and readme","yarn @bud docs"]]};var Br=class extends X{async execute(){await this.cli.run(["@bud","docs","build"]),await this.cli.run(["@bud","docusaurus","start"])}};Br.paths=[["@bud","docs","dev"]],Br.usage={category:"@bud",description:"develop docs",examples:[["develop docs","yarn @bud docs dev"]]};var dv=q("clipanion");var Wr=class extends X{constructor(){super(...arguments);this.fix=dv.Option.Boolean("--fix",!1)}async execute(){this.promised.push(this.cli.run(["@bud","eslint",this.fix?"--fix":void 0].filter(Boolean)).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","syncpack"]).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","prettier",this.fix?"--write":void 0].filter(Boolean)).then(this.throwIfError).catch(this.catch),this.cli.run(["@bud","package-check"]).then(this.throwIfError).catch(this.catch)),await Promise.all(this.promised)}};Wr.paths=[["@bud","lint"]],Wr.usage={category:"@bud",description:"Lint project"};var un=Fe(Jo());var Ur=class extends X{async execute(){if(await un.removeAsync(K("storage/mocks")).catch(this.catch),await un.removeAsync(K("storage","packages")).catch(this.catch),await un.existsAsync(K("storage",".verdaccio-db.json"))){let i=await un.readAsync(K("storage",".verdaccio-db.json"),"json").catch(this.catch);i.list=[],await un.writeAsync(K("storage/.verdaccio-db.json"),i).catch(this.catch)}}};Ur.paths=[["@bud","registry","clean"]],Ur.usage={category:"@bud",description:"clean previously published packages",examples:[["clean previously published packages","yarn @bud registry clean"]]};var Yl=Fe(Sr());var Gr=class extends X{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(Yl.noop).finally(async()=>{await this.cli.run(["@bud","pm2","save"]).catch(Yl.noop)})}};Gr.paths=[["@bud","registry","start"]],Gr.usage={category:"@bud",description:"start verdaccio registry",examples:[["start verdaccio server","yarn @bud registry start"]]};var Ql=Fe(Sr());var Kr=class extends X{async execute(){await this.cli.run(["@bud","pm2","stop","verdaccio"]).catch(Ql.noop),await this.cli.run(["@bud","pm2","delete","verdaccio"]).catch(Ql.noop)}};Kr.paths=[["@bud","registry","stop"]],Kr.usage={category:"@bud",description:"stop verdaccio registry",examples:[["stop verdaccio server","yarn @bud registry stop"]]};var eu=q("clipanion"),Li=Fe(Sr());var jr=class extends X{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","--all","--no-private","npm","publish","--access","public","--tag",this.tag]).then(this.throwIfError).catch(this.catch),await this.resetRegistry(),this.context.stdout.write(` \u{1F4E6} Released: ${this.version} -`)}makeVersion(){let i=new Date,o=[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()],u=[i.getUTCHours(),i.getUTCMinutes()];return[o.join("."),parseInt(u.join(""))].join("-")}async resetRegistry(){await this.cli.run(["config","set","npmPublishRegistry","https://registry.npmjs.org"]).catch(Li.noop),await this.cli.run(["config","set","npmRegistryServer","https://registry.npmjs.org"]).catch(Li.noop),await this.cli.run(["@bud","version","0.0.0"]).catch(Li.noop),await this.cli.run(["install"]).catch(Li.noop)}};Kr.paths=[["@bud","release"]],Kr.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 Zl=q("clipanion"),gv=Fe(Jo());var jr=class extends X{constructor(){super(...arguments);this.configuration=Zl.Option.String({required:!0});this.passthrough=Zl.Option.Proxy({name:"vitest passthrough options"})}async execute(){let i=["@bud","vitest"];return["e2e","integration"].includes(this.configuration)&&(i.push("--run"),await gv.removeAsync(K("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",K("config","vitest",`config.${this.configuration}.ts`)),i.push(...this.passthrough),await this.cli.run(i)}};jr.paths=[["@bud","test"]],jr.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 mv=q("clipanion");var Xr=class extends X{constructor(){super(...arguments);this.version=mv.Option.String()}async execute(){await this.cli.run(["workspaces","foreach","--all","--no-private","package","set","version",this.version]).then(this.throwIfError).catch(this.catch)}};Xr.paths=[["@bud","version"]],Xr.usage={category:"@bud",description:"bump version of public packages",examples:[["Bump packages to x.y.z","yarn @bud version x.y.z"]]};var zr=q("@yarnpkg/shell"),_v=Fe(wr()),yv=async()=>{await(0,zr.execute)("yarn",["@bud","plugin","build"]),await(0,zr.execute)("yarn",["@bud","registry","start"]).catch(_v.noop),await(0,zr.execute)("yarn",["@bud","build"]),await(0,zr.execute)("yarn",["@bud"]),await(0,zr.execute)("yarn",["playwright","install"])};var KI={commands:Object.values(Ei),hooks:{afterAllInstalled:yv}},jI=KI;return s1(XI);})(); +`)}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(Li.noop),await this.cli.run(["config","set","npmRegistryServer","https://registry.npmjs.org"]).catch(Li.noop),await this.cli.run(["@bud","version","0.0.0"]).catch(Li.noop),await this.cli.run(["install"]).catch(Li.noop)}};jr.paths=[["@bud","release"]],jr.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 Zl=q("clipanion"),gv=Fe(Jo());var Xr=class extends X{constructor(){super(...arguments);this.configuration=Zl.Option.String({required:!0});this.passthrough=Zl.Option.Proxy({name:"vitest passthrough options"})}async execute(){let i=["@bud","vitest"];return["e2e","integration"].includes(this.configuration)&&(i.push("--run"),await gv.removeAsync(K("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",K("config","vitest",`config.${this.configuration}.ts`)),i.push(...this.passthrough),await this.cli.run(i)}};Xr.paths=[["@bud","test"]],Xr.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 mv=q("clipanion");var zr=class extends X{constructor(){super(...arguments);this.version=mv.Option.String()}async execute(){await this.cli.run(["workspaces","foreach","--all","--no-private","package","set","version",this.version]).then(this.throwIfError).catch(this.catch)}};zr.paths=[["@bud","version"]],zr.usage={category:"@bud",description:"bump version of public packages",examples:[["Bump packages to x.y.z","yarn @bud version x.y.z"]]};var Un=q("@yarnpkg/shell"),_v=Fe(Sr()),yv=async()=>{await(0,Un.execute)("yarn",["@bud","plugin","build"]),await(0,Un.execute)("yarn",["@bud","registry","start"]).catch(_v.noop),await(0,Un.execute)("yarn",["@bud","build"]),await(0,Un.execute)("yarn",["@bud"]),await(0,Un.execute)("yarn",["playwright","install"]),await(0,Un.execute)("git",["config","core.hooksPath",".github/hooks"])};var KI={commands:Object.values(Ei),hooks:{afterAllInstalled:yv}},jI=KI;return s1(XI);})(); /*! * fill-range * diff --git a/sources/@repo/yarn-plugin-bud/sources/hooks/afterAllInstalled.ts b/sources/@repo/yarn-plugin-bud/sources/hooks/afterAllInstalled.ts index c3a5db0ac0..c442511d44 100644 --- a/sources/@repo/yarn-plugin-bud/sources/hooks/afterAllInstalled.ts +++ b/sources/@repo/yarn-plugin-bud/sources/hooks/afterAllInstalled.ts @@ -8,4 +8,5 @@ export default async () => { await execute(`yarn`, [`@bud`, `build`]) await execute(`yarn`, [`@bud`]) await execute(`yarn`, [`playwright`, `install`]) + await execute(`git`, [`config`, `core.hooksPath`, `.github/hooks`]) }