valaxy 0.19.11 → 0.19.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ZYUVBLR3.cjs → chunk-J5LLA2M3.cjs} +25 -25
- package/dist/{chunk-6H6IDGZO.mjs → chunk-X25DVJU7.mjs} +25 -25
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.mjs +1 -1
- package/package.json +16 -16
- /package/dist/{chunk-LUUQ46JJ.cjs → chunk-2PA6UTKF.cjs} +0 -0
- /package/dist/{chunk-LIAYL4DV.mjs → chunk-LD7IYUN2.mjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{a as B,b as R,c as ee,d as l}from"./chunk-LIAYL4DV.mjs";var le=R((A_,un)=>{"use strict";l();var Ni=process.argv||[],nr=process.env,Lf=!("NO_COLOR"in nr||Ni.includes("--no-color"))&&("FORCE_COLOR"in nr||Ni.includes("--color")||process.platform==="win32"||B!=null&&B("tty").isatty(1)&&nr.TERM!=="dumb"||"CI"in nr),Vf=(e,t,r=e)=>n=>{let o=""+n,i=o.indexOf(t,e.length);return~i?e+jf(o,t,r,i)+t:e+o+t},jf=(e,t,r,n)=>{let o="",i=0;do o+=e.substring(i,n)+r,i=n+t.length,n=e.indexOf(t,i);while(~n);return o+e.substring(i)},Ii=(e=Lf)=>{let t=e?Vf:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};un.exports=Ii();un.exports.createColors=Ii});var Di=R(gt=>{"use strict";l();Object.defineProperty(gt,"__esModule",{value:!0});gt.splitWhen=gt.flatten=void 0;function Hf(e){return e.reduce((t,r)=>[].concat(t,r),[])}gt.flatten=Hf;function qf(e,t){let r=[[]],n=0;for(let o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r}gt.splitWhen=qf});var Li=R(or=>{"use strict";l();Object.defineProperty(or,"__esModule",{value:!0});or.isEnoentCodeError=void 0;function Bf(e){return e.code==="ENOENT"}or.isEnoentCodeError=Bf});var Vi=R(ir=>{"use strict";l();Object.defineProperty(ir,"__esModule",{value:!0});ir.createDirentFromStats=void 0;var fn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Uf(e,t){return new fn(e,t)}ir.createDirentFromStats=Uf});var Bi=R(te=>{"use strict";l();Object.defineProperty(te,"__esModule",{value:!0});te.convertPosixPathToPattern=te.convertWindowsPathToPattern=te.convertPathToPattern=te.escapePosixPath=te.escapeWindowsPath=te.escape=te.removeLeadingDotSegment=te.makeAbsolute=te.unixify=void 0;var Wf=B("os"),Gf=B("path"),ji=Wf.platform()==="win32",zf=2,Kf=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Yf=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Xf=/^\\\\([.?])/,Qf=/\\(?![!()+@[\]{}])/g;function Jf(e){return e.replace(/\\/g,"/")}te.unixify=Jf;function Zf(e,t){return Gf.resolve(e,t)}te.makeAbsolute=Zf;function ep(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(zf)}return e}te.removeLeadingDotSegment=ep;te.escape=ji?pn:dn;function pn(e){return e.replace(Yf,"\\$2")}te.escapeWindowsPath=pn;function dn(e){return e.replace(Kf,"\\$2")}te.escapePosixPath=dn;te.convertPathToPattern=ji?Hi:qi;function Hi(e){return pn(e).replace(Xf,"//$1").replace(Qf,"/")}te.convertWindowsPathToPattern=Hi;function qi(e){return dn(e)}te.convertPosixPathToPattern=qi});var Wi=R((j_,Ui)=>{"use strict";l();Ui.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Ki=R((q_,zi)=>{"use strict";l();var tp=Wi(),Gi={"{":"}","(":")","[":"]"},rp=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,o=-2,i=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(s===-1||s>n||(s=e.indexOf("\\",t),s===-1||s>n)))||o!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(o=e.indexOf("}",t),o>t&&(s=e.indexOf("\\",t),s===-1||s>o))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(s=e.indexOf("\\",t),s===-1||s>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(s=e.indexOf("\\",r),s===-1||s>i))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var c=Gi[a];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},np=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Gi[r];if(n){var o=e.indexOf(n,t);o!==-1&&(t=o+1)}if(e[t]==="!")return!0}else t++}return!1};zi.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(tp(t))return!0;var n=rp;return r&&r.strict===!1&&(n=np),n(t)}});var Xi=R((U_,Yi)=>{"use strict";l();var op=Ki(),ip=B("path").posix.dirname,sp=B("os").platform()==="win32",mn="/",ap=/\\/g,lp=/[\{\[].*[\}\]]$/,cp=/(^|[^\\])([\{\[]|\([^\)]+$)/,up=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Yi.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&sp&&t.indexOf(mn)<0&&(t=t.replace(ap,mn)),lp.test(t)&&(t+=mn),t+="a";do t=ip(t);while(op(t)||cp.test(t));return t.replace(up,"$1")}});var sr=R(ve=>{"use strict";l();ve.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ve.find=(e,t)=>e.nodes.find(r=>r.type===t);ve.exceedsLimit=(e,t,r=1,n)=>n===!1||!ve.isInteger(e)||!ve.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;ve.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};ve.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);ve.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;ve.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ve.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);ve.flatten=(...e)=>{let t=[],r=n=>{for(let o=0;o<n.length;o++){let i=n[o];if(Array.isArray(i)){r(i);continue}i!==void 0&&t.push(i)}return t};return r(e),t}});var ar=R((K_,Ji)=>{"use strict";l();var Qi=sr();Ji.exports=(e,t={})=>{let r=(n,o={})=>{let i=t.escapeInvalid&&Qi.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||s)&&Qi.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(e)}});var es=R((X_,Zi)=>{"use strict";l();Zi.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var cs=R((J_,ls)=>{"use strict";l();var ts=es(),tt=(e,t,r)=>{if(ts(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ts(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let o=String(n.relaxZeros),i=String(n.shorthand),s=String(n.capture),a=String(n.wrap),c=e+":"+t+"="+o+i+s+a;if(tt.cache.hasOwnProperty(c))return tt.cache[c].result;let u=Math.min(e,t),f=Math.max(e,t);if(Math.abs(u-f)===1){let b=e+"|"+t;return n.capture?`(${b})`:n.wrap===!1?b:`(?:${b})`}let d=as(e)||as(t),p={min:e,max:t,a:u,b:f},y=[],v=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),u<0){let b=f<0?Math.abs(f):1;v=rs(b,Math.abs(u),p,n),u=p.a=0}return f>=0&&(y=rs(u,f,p,n)),p.negatives=v,p.positives=y,p.result=fp(v,y,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&y.length+v.length>1&&(p.result=`(?:${p.result})`),tt.cache[c]=p,p.result};function fp(e,t,r){let n=gn(e,t,"-",!1,r)||[],o=gn(t,e,"",!1,r)||[],i=gn(e,t,"-?",!0,r)||[];return n.concat(i).concat(o).join("|")}function pp(e,t){let r=1,n=1,o=os(e,r),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),r+=1,o=os(e,r);for(o=is(t+1,n)-1;e<o&&o<=t;)i.add(o),n+=1,o=is(t+1,n)-1;return i=[...i],i.sort(gp),i}function dp(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=mp(e,t),o=n.length,i="",s=0;for(let a=0;a<o;a++){let[c,u]=n[a];c===u?i+=c:c!=="0"||u!=="9"?i+=hp(c,u,r):s++}return s&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function rs(e,t,r,n){let o=pp(e,t),i=[],s=e,a;for(let c=0;c<o.length;c++){let u=o[c],f=dp(String(s),String(u),n),d="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+ss(a.count),s=u+1;continue}r.isPadded&&(d=yp(u,r,n)),f.string=d+f.pattern+ss(f.count),i.push(f),s=u+1,a=f}return i}function gn(e,t,r,n,o){let i=[];for(let s of e){let{string:a}=s;!n&&!ns(t,"string",a)&&i.push(r+a),n&&ns(t,"string",a)&&i.push(r+a)}return i}function mp(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function gp(e,t){return e>t?1:t>e?-1:0}function ns(e,t,r){return e.some(n=>n[t]===r)}function os(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function is(e,t){return e-e%Math.pow(10,t)}function ss(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function hp(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function as(e){return/^-?(0+)\d/.test(e)}function yp(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),o=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${n}}`:`0{${n}}`}}tt.cache={};tt.clearCache=()=>tt.cache={};ls.exports=tt});var vn=R((e1,hs)=>{"use strict";l();var vp=B("util"),fs=cs(),us=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),xp=e=>t=>e===!0?Number(t):String(t),hn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ft=e=>Number.isInteger(+e),yn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},_p=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,bp=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},cr=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Rp=(e,t,r)=>{e.negatives.sort((a,c)=>a<c?-1:a>c?1:0),e.positives.sort((a,c)=>a<c?-1:a>c?1:0);let n=t.capture?"":"?:",o="",i="",s;return e.positives.length&&(o=e.positives.map(a=>cr(String(a),r)).join("|")),e.negatives.length&&(i=`-(${n}${e.negatives.map(a=>cr(String(a),r)).join("|")})`),o&&i?s=`${o}|${i}`:s=o||i,t.wrap?`(${n}${s})`:s},ps=(e,t,r,n)=>{if(r)return fs(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`},ds=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return fs(e,t,r)},ms=(...e)=>new RangeError("Invalid range arguments: "+vp.inspect(...e)),gs=(e,t,r)=>{if(r.strictRanges===!0)throw ms([e,t]);return[]},wp=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Sp=(e,t,r=1,n={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(n.strictRanges===!0)throw ms([e,t]);return[]}o===0&&(o=0),i===0&&(i=0);let s=o>i,a=String(e),c=String(t),u=String(r);r=Math.max(Math.abs(r),1);let f=yn(a)||yn(c)||yn(u),d=f?Math.max(a.length,c.length,u.length):0,p=f===!1&&_p(e,t,n)===!1,y=n.transform||xp(p);if(n.toRegex&&r===1)return ps(cr(e,d),cr(t,d),!0,n);let v={negatives:[],positives:[]},b=N=>v[N<0?"negatives":"positives"].push(Math.abs(N)),$=[],E=0;for(;s?o>=i:o<=i;)n.toRegex===!0&&r>1?b(o):$.push(bp(y(o,E),d,p)),o=s?o-r:o+r,E++;return n.toRegex===!0?r>1?Rp(v,n,d):ds($,null,{wrap:!1,...n}):$},Cp=(e,t,r=1,n={})=>{if(!Ft(e)&&e.length>1||!Ft(t)&&t.length>1)return gs(e,t,n);let o=n.transform||(p=>String.fromCharCode(p)),i=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=i>s,c=Math.min(i,s),u=Math.max(i,s);if(n.toRegex&&r===1)return ps(c,u,!1,n);let f=[],d=0;for(;a?i>=s:i<=s;)f.push(o(i,d)),i=a?i-r:i+r,d++;return n.toRegex===!0?ds(f,null,{wrap:!1,options:n}):f},lr=(e,t,r,n={})=>{if(t==null&&hn(e))return[e];if(!hn(e)||!hn(t))return gs(e,t,n);if(typeof r=="function")return lr(e,t,1,{transform:r});if(us(r))return lr(e,t,0,r);let o={...n};return o.capture===!0&&(o.wrap=!0),r=r||o.step||1,Ft(r)?Ft(e)&&Ft(t)?Sp(e,t,r,o):Cp(e,t,Math.max(Math.abs(r),1),o):r!=null&&!us(r)?wp(r,o):lr(e,t,1,r)};hs.exports=lr});var xs=R((r1,vs)=>{"use strict";l();var Ep=vn(),ys=sr(),kp=(e,t={})=>{let r=(n,o={})=>{let i=ys.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||s===!0,c=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=ys.reduce(n.nodes),d=Ep(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return f.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let f of n.nodes)u+=r(f,n);return u};return r(e)};vs.exports=kp});var Rs=R((o1,bs)=>{"use strict";l();var Pp=vn(),_s=ar(),ht=sr(),rt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ht.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let i of o)n.push(rt(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?rt(o,i,r):o+i);return ht.flatten(n)},Ap=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(o,i={})=>{o.queue=[];let s=i,a=i.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(o.invalid||o.dollar){a.push(rt(a.pop(),_s(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(rt(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let d=ht.reduce(o.nodes);if(ht.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=Pp(...d,t);p.length===0&&(p=_s(o,t)),a.push(rt(a.pop(),p)),o.nodes=[];return}let c=ht.encloseBrace(o),u=o.queue,f=o;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let d=0;d<o.nodes.length;d++){let p=o.nodes[d];if(p.type==="comma"&&o.type==="brace"){d===1&&u.push(""),u.push("");continue}if(p.type==="close"){a.push(rt(a.pop(),u,c));continue}if(p.value&&p.type!=="open"){u.push(rt(u.pop(),p.value));continue}p.nodes&&n(p,o)}return u};return ht.flatten(n(e))};bs.exports=Ap});var Ss=R((s1,ws)=>{"use strict";l();ws.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
3
|
-
`,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 As=R((l1,Ps)=>{"use strict";l();var Op=ar(),{MAX_LENGTH:Cs,CHAR_BACKSLASH:xn,CHAR_BACKTICK:Tp,CHAR_COMMA:$p,CHAR_DOT:Fp,CHAR_LEFT_PARENTHESES:Mp,CHAR_RIGHT_PARENTHESES:Np,CHAR_LEFT_CURLY_BRACE:Ip,CHAR_RIGHT_CURLY_BRACE:Dp,CHAR_LEFT_SQUARE_BRACKET:Es,CHAR_RIGHT_SQUARE_BRACKET:ks,CHAR_DOUBLE_QUOTE:Lp,CHAR_SINGLE_QUOTE:Vp,CHAR_NO_BREAK_SPACE:jp,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Hp}=Ss(),qp=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Cs,r.maxLength):Cs;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let o={type:"root",input:e,nodes:[]},i=[o],s=o,a=o,c=0,u=e.length,f=0,d=0,p,y=()=>e[f++],v=b=>{if(b.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&b.type==="text"){a.value+=b.value;return}return s.nodes.push(b),b.parent=s,b.prev=a,a=b,b};for(v({type:"bos"});f<u;)if(s=i[i.length-1],p=y(),!(p===Hp||p===jp)){if(p===xn){v({type:"text",value:(t.keepEscaping?p:"")+y()});continue}if(p===ks){v({type:"text",value:"\\"+p});continue}if(p===Es){c++;let b;for(;f<u&&(b=y());){if(p+=b,b===Es){c++;continue}if(b===xn){p+=y();continue}if(b===ks&&(c--,c===0))break}v({type:"text",value:p});continue}if(p===Mp){s=v({type:"paren",nodes:[]}),i.push(s),v({type:"text",value:p});continue}if(p===Np){if(s.type!=="paren"){v({type:"text",value:p});continue}s=i.pop(),v({type:"text",value:p}),s=i[i.length-1];continue}if(p===Lp||p===Vp||p===Tp){let b=p,$;for(t.keepQuotes!==!0&&(p="");f<u&&($=y());){if($===xn){p+=$+y();continue}if($===b){t.keepQuotes===!0&&(p+=$);break}p+=$}v({type:"text",value:p});continue}if(p===Ip){d++;let $={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};s=v($),i.push(s),v({type:"open",value:p});continue}if(p===Dp){if(s.type!=="brace"){v({type:"text",value:p});continue}let b="close";s=i.pop(),s.close=!0,v({type:b,value:p}),d--,s=i[i.length-1];continue}if(p===$p&&d>0){if(s.ranges>0){s.ranges=0;let b=s.nodes.shift();s.nodes=[b,{type:"text",value:Op(s)}]}v({type:"comma",value:p}),s.commas++;continue}if(p===Fp&&d>0&&s.commas===0){let b=s.nodes;if(d===0||b.length===0){v({type:"text",value:p});continue}if(a.type==="dot"){if(s.range=[],a.value+=p,a.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if(a.type==="range"){b.pop();let $=b[b.length-1];$.value+=a.value+p,a=$,s.ranges--;continue}v({type:"dot",value:p});continue}v({type:"text",value:p})}do if(s=i.pop(),s.type!=="root"){s.nodes.forEach(E=>{E.nodes||(E.type==="open"&&(E.isOpen=!0),E.type==="close"&&(E.isClose=!0),E.nodes||(E.type="text"),E.invalid=!0)});let b=i[i.length-1],$=b.nodes.indexOf(s);b.nodes.splice($,1,...s.nodes)}while(i.length>0);return v({type:"eos"}),o};Ps.exports=qp});var $s=R((u1,Ts)=>{"use strict";l();var Os=ar(),Bp=xs(),Up=Rs(),Wp=As(),he=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let o=he.create(n,t);Array.isArray(o)?r.push(...o):r.push(o)}else r=[].concat(he.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};he.parse=(e,t={})=>Wp(e,t);he.stringify=(e,t={})=>Os(typeof e=="string"?he.parse(e,t):e,t);he.compile=(e,t={})=>(typeof e=="string"&&(e=he.parse(e,t)),Bp(e,t));he.expand=(e,t={})=>{typeof e=="string"&&(e=he.parse(e,t));let r=Up(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};he.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?he.compile(e,t):he.expand(e,t);Ts.exports=he});var Mt=R((p1,Ds)=>{"use strict";l();var Gp=B("path"),Ee="\\\\/",Fs=`[^${Ee}]`,Ne="\\.",zp="\\+",Kp="\\?",ur="\\/",Yp="(?=.)",Ms="[^/]",_n=`(?:${ur}|$)`,Ns=`(?:^|${ur})`,bn=`${Ne}{1,2}${_n}`,Xp=`(?!${Ne})`,Qp=`(?!${Ns}${bn})`,Jp=`(?!${Ne}{0,1}${_n})`,Zp=`(?!${bn})`,ed=`[^.${ur}]`,td=`${Ms}*?`,Is={DOT_LITERAL:Ne,PLUS_LITERAL:zp,QMARK_LITERAL:Kp,SLASH_LITERAL:ur,ONE_CHAR:Yp,QMARK:Ms,END_ANCHOR:_n,DOTS_SLASH:bn,NO_DOT:Xp,NO_DOTS:Qp,NO_DOT_SLASH:Jp,NO_DOTS_SLASH:Zp,QMARK_NO_DOT:ed,STAR:td,START_ANCHOR:Ns},rd={...Is,SLASH_LITERAL:`[${Ee}]`,QMARK:Fs,STAR:`${Fs}*?`,DOTS_SLASH:`${Ne}{1,2}(?:[${Ee}]|$)`,NO_DOT:`(?!${Ne})`,NO_DOTS:`(?!(?:^|[${Ee}])${Ne}{1,2}(?:[${Ee}]|$))`,NO_DOT_SLASH:`(?!${Ne}{0,1}(?:[${Ee}]|$))`,NO_DOTS_SLASH:`(?!${Ne}{1,2}(?:[${Ee}]|$))`,QMARK_NO_DOT:`[^.${Ee}]`,START_ANCHOR:`(?:^|[${Ee}])`,END_ANCHOR:`(?:[${Ee}]|$)`},nd={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"};Ds.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:nd,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:Gp.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?rd:Is}}});var Nt=R(ge=>{"use strict";l();var od=B("path"),id=process.platform==="win32",{REGEX_BACKSLASH:sd,REGEX_REMOVE_BACKSLASH:ad,REGEX_SPECIAL_CHARS:ld,REGEX_SPECIAL_CHARS_GLOBAL:cd}=Mt();ge.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ge.hasRegexChars=e=>ld.test(e);ge.isRegexChar=e=>e.length===1&&ge.hasRegexChars(e);ge.escapeRegex=e=>e.replace(cd,"\\$1");ge.toPosixSlashes=e=>e.replace(sd,"/");ge.removeBackslashes=e=>e.replace(ad,t=>t==="\\"?"":t);ge.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ge.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:id===!0||od.sep==="\\";ge.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ge.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ge.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ge.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Ws=R((h1,Us)=>{"use strict";l();var Ls=Nt(),{CHAR_ASTERISK:Rn,CHAR_AT:ud,CHAR_BACKWARD_SLASH:It,CHAR_COMMA:fd,CHAR_DOT:wn,CHAR_EXCLAMATION_MARK:Sn,CHAR_FORWARD_SLASH:Bs,CHAR_LEFT_CURLY_BRACE:Cn,CHAR_LEFT_PARENTHESES:En,CHAR_LEFT_SQUARE_BRACKET:pd,CHAR_PLUS:dd,CHAR_QUESTION_MARK:Vs,CHAR_RIGHT_CURLY_BRACE:md,CHAR_RIGHT_PARENTHESES:js,CHAR_RIGHT_SQUARE_BRACKET:gd}=Mt(),Hs=e=>e===Bs||e===It,qs=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},hd=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],c=e,u=-1,f=0,d=0,p=!1,y=!1,v=!1,b=!1,$=!1,E=!1,N=!1,P=!1,L=!1,A=!1,M=0,S,C,T={value:"",depth:0,isGlob:!1},U=()=>u>=n,h=()=>c.charCodeAt(u+1),O=()=>(S=C,c.charCodeAt(++u));for(;u<n;){C=O();let q;if(C===It){N=T.backslashes=!0,C=O(),C===Cn&&(E=!0);continue}if(E===!0||C===Cn){for(M++;U()!==!0&&(C=O());){if(C===It){N=T.backslashes=!0,O();continue}if(C===Cn){M++;continue}if(E!==!0&&C===wn&&(C=O())===wn){if(p=T.isBrace=!0,v=T.isGlob=!0,A=!0,o===!0)continue;break}if(E!==!0&&C===fd){if(p=T.isBrace=!0,v=T.isGlob=!0,A=!0,o===!0)continue;break}if(C===md&&(M--,M===0)){E=!1,p=T.isBrace=!0,A=!0;break}}if(o===!0)continue;break}if(C===Bs){if(i.push(u),s.push(T),T={value:"",depth:0,isGlob:!1},A===!0)continue;if(S===wn&&u===f+1){f+=2;continue}d=u+1;continue}if(r.noext!==!0&&(C===dd||C===ud||C===Rn||C===Vs||C===Sn)===!0&&h()===En){if(v=T.isGlob=!0,b=T.isExtglob=!0,A=!0,C===Sn&&u===f&&(L=!0),o===!0){for(;U()!==!0&&(C=O());){if(C===It){N=T.backslashes=!0,C=O();continue}if(C===js){v=T.isGlob=!0,A=!0;break}}continue}break}if(C===Rn){if(S===Rn&&($=T.isGlobstar=!0),v=T.isGlob=!0,A=!0,o===!0)continue;break}if(C===Vs){if(v=T.isGlob=!0,A=!0,o===!0)continue;break}if(C===pd){for(;U()!==!0&&(q=O());){if(q===It){N=T.backslashes=!0,O();continue}if(q===gd){y=T.isBracket=!0,v=T.isGlob=!0,A=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&C===Sn&&u===f){P=T.negated=!0,f++;continue}if(r.noparen!==!0&&C===En){if(v=T.isGlob=!0,o===!0){for(;U()!==!0&&(C=O());){if(C===En){N=T.backslashes=!0,C=O();continue}if(C===js){A=!0;break}}continue}break}if(v===!0){if(A=!0,o===!0)continue;break}}r.noext===!0&&(b=!1,v=!1);let I=c,j="",x="";f>0&&(j=c.slice(0,f),c=c.slice(f),d-=f),I&&v===!0&&d>0?(I=c.slice(0,d),x=c.slice(d)):v===!0?(I="",x=c):I=c,I&&I!==""&&I!=="/"&&I!==c&&Hs(I.charCodeAt(I.length-1))&&(I=I.slice(0,-1)),r.unescape===!0&&(x&&(x=Ls.removeBackslashes(x)),I&&N===!0&&(I=Ls.removeBackslashes(I)));let _={prefix:j,input:e,start:f,base:I,glob:x,isBrace:p,isBracket:y,isGlob:v,isExtglob:b,isGlobstar:$,negated:P,negatedExtglob:L};if(r.tokens===!0&&(_.maxDepth=0,Hs(C)||s.push(T),_.tokens=s),r.parts===!0||r.tokens===!0){let q;for(let F=0;F<i.length;F++){let z=q?q+1:f,Z=i[F],Q=e.slice(z,Z);r.tokens&&(F===0&&f!==0?(s[F].isPrefix=!0,s[F].value=j):s[F].value=Q,qs(s[F]),_.maxDepth+=s[F].depth),(F!==0||Q!=="")&&a.push(Q),q=Z}if(q&&q+1<e.length){let F=e.slice(q+1);a.push(F),r.tokens&&(s[s.length-1].value=F,qs(s[s.length-1]),_.maxDepth+=s[s.length-1].depth)}_.slashes=i,_.parts=a}return _};Us.exports=hd});var Ks=R((v1,zs)=>{"use strict";l();var fr=Mt(),ye=Nt(),{MAX_LENGTH:pr,POSIX_REGEX_SOURCE:yd,REGEX_NON_SPECIAL_CHARS:vd,REGEX_SPECIAL_CHARS_BACKREF:xd,REPLACEMENTS:Gs}=fr,_d=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(o=>ye.escapeRegex(o)).join("..")}return r},yt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,kn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Gs[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(pr,r.maxLength):pr,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},s=[i],a=r.capture?"":"?:",c=ye.isWindows(t),u=fr.globChars(c),f=fr.extglobChars(u),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:y,ONE_CHAR:v,DOTS_SLASH:b,NO_DOT:$,NO_DOT_SLASH:E,NO_DOTS_SLASH:N,QMARK:P,QMARK_NO_DOT:L,STAR:A,START_ANCHOR:M}=u,S=k=>`(${a}(?:(?!${M}${k.dot?b:d}).)*?)`,C=r.dot?"":$,T=r.dot?P:L,U=r.bash===!0?S(r):A;r.capture&&(U=`(${U})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let h={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=ye.removePrefix(e,h),o=e.length;let O=[],I=[],j=[],x=i,_,q=()=>h.index===o-1,F=h.peek=(k=1)=>e[h.index+k],z=h.advance=()=>e[++h.index]||"",Z=()=>e.slice(h.index+1),Q=(k="",G=0)=>{h.consumed+=k,h.index+=G},pe=k=>{h.output+=k.output!=null?k.output:k.value,Q(k.value)},se=()=>{let k=1;for(;F()==="!"&&(F(2)!=="("||F(3)==="?");)z(),h.start++,k++;return k%2===0?!1:(h.negated=!0,h.start++,!0)},Me=k=>{h[k]++,j.push(k)},ae=k=>{h[k]--,j.pop()},V=k=>{if(x.type==="globstar"){let G=h.braces>0&&(k.type==="comma"||k.type==="brace"),w=k.extglob===!0||O.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!G&&!w&&(h.output=h.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=U,h.output+=x.output)}if(O.length&&k.type!=="paren"&&(O[O.length-1].inner+=k.value),(k.value||k.output)&&pe(k),x&&x.type==="text"&&k.type==="text"){x.value+=k.value,x.output=(x.output||"")+k.value;return}k.prev=x,s.push(k),x=k},me=(k,G)=>{let w={...f[G],conditions:1,inner:""};w.prev=x,w.parens=h.parens,w.output=h.output;let H=(r.capture?"(":"")+w.open;Me("parens"),V({type:k,value:G,output:h.output?"":v}),V({type:"paren",extglob:!0,value:z(),output:H}),O.push(w)},dt=k=>{let G=k.close+(r.capture?")":""),w;if(k.type==="negate"){let H=U;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(H=S(r)),(H!==U||q()||/^\)+$/.test(Z()))&&(G=k.close=`)$))${H}`),k.inner.includes("*")&&(w=Z())&&/^\.[^\\/.]+$/.test(w)){let Y=kn(w,{...t,fastpaths:!1}).output;G=k.close=`)${Y})${H})`}k.prev.type==="bos"&&(h.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:_,output:G}),ae("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,G=e.replace(xd,(w,H,Y,de,ne,cn)=>de==="\\"?(k=!0,w):de==="?"?H?H+de+(ne?P.repeat(ne.length):""):cn===0?T+(ne?P.repeat(ne.length):""):P.repeat(Y.length):de==="."?d.repeat(Y.length):de==="*"?H?H+de+(ne?U:""):U:H?w:`\\${w}`);return k===!0&&(r.unescape===!0?G=G.replace(/\\/g,""):G=G.replace(/\\+/g,w=>w.length%2===0?"\\\\":w?"\\":"")),G===e&&r.contains===!0?(h.output=e,h):(h.output=ye.wrapOutput(G,h,t),h)}for(;!q();){if(_=z(),_==="\0")continue;if(_==="\\"){let w=F();if(w==="/"&&r.bash!==!0||w==="."||w===";")continue;if(!w){_+="\\",V({type:"text",value:_});continue}let H=/^\\+/.exec(Z()),Y=0;if(H&&H[0].length>2&&(Y=H[0].length,h.index+=Y,Y%2!==0&&(_+="\\")),r.unescape===!0?_=z():_+=z(),h.brackets===0){V({type:"text",value:_});continue}}if(h.brackets>0&&(_!=="]"||x.value==="["||x.value==="[^")){if(r.posix!==!1&&_===":"){let w=x.value.slice(1);if(w.includes("[")&&(x.posix=!0,w.includes(":"))){let H=x.value.lastIndexOf("["),Y=x.value.slice(0,H),de=x.value.slice(H+2),ne=yd[de];if(ne){x.value=Y+ne,h.backtrack=!0,z(),!i.output&&s.indexOf(x)===1&&(i.output=v);continue}}}(_==="["&&F()!==":"||_==="-"&&F()==="]")&&(_=`\\${_}`),_==="]"&&(x.value==="["||x.value==="[^")&&(_=`\\${_}`),r.posix===!0&&_==="!"&&x.value==="["&&(_="^"),x.value+=_,pe({value:_});continue}if(h.quotes===1&&_!=='"'){_=ye.escapeRegex(_),x.value+=_,pe({value:_});continue}if(_==='"'){h.quotes=h.quotes===1?0:1,r.keepQuotes===!0&&V({type:"text",value:_});continue}if(_==="("){Me("parens"),V({type:"paren",value:_});continue}if(_===")"){if(h.parens===0&&r.strictBrackets===!0)throw new SyntaxError(yt("opening","("));let w=O[O.length-1];if(w&&h.parens===w.parens+1){dt(O.pop());continue}V({type:"paren",value:_,output:h.parens?")":"\\)"}),ae("parens");continue}if(_==="["){if(r.nobracket===!0||!Z().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(yt("closing","]"));_=`\\${_}`}else Me("brackets");V({type:"bracket",value:_});continue}if(_==="]"){if(r.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){V({type:"text",value:_,output:`\\${_}`});continue}if(h.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(yt("opening","["));V({type:"text",value:_,output:`\\${_}`});continue}ae("brackets");let w=x.value.slice(1);if(x.posix!==!0&&w[0]==="^"&&!w.includes("/")&&(_=`/${_}`),x.value+=_,pe({value:_}),r.literalBrackets===!1||ye.hasRegexChars(w))continue;let H=ye.escapeRegex(x.value);if(h.output=h.output.slice(0,-x.value.length),r.literalBrackets===!0){h.output+=H,x.value=H;continue}x.value=`(${a}${H}|${x.value})`,h.output+=x.value;continue}if(_==="{"&&r.nobrace!==!0){Me("braces");let w={type:"brace",value:_,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};I.push(w),V(w);continue}if(_==="}"){let w=I[I.length-1];if(r.nobrace===!0||!w){V({type:"text",value:_,output:_});continue}let H=")";if(w.dots===!0){let Y=s.slice(),de=[];for(let ne=Y.length-1;ne>=0&&(s.pop(),Y[ne].type!=="brace");ne--)Y[ne].type!=="dots"&&de.unshift(Y[ne].value);H=_d(de,r),h.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){let Y=h.output.slice(0,w.outputIndex),de=h.tokens.slice(w.tokensIndex);w.value=w.output="\\{",_=H="\\}",h.output=Y;for(let ne of de)h.output+=ne.output||ne.value}V({type:"brace",value:_,output:H}),ae("braces"),I.pop();continue}if(_==="|"){O.length>0&&O[O.length-1].conditions++,V({type:"text",value:_});continue}if(_===","){let w=_,H=I[I.length-1];H&&j[j.length-1]==="braces"&&(H.comma=!0,w="|"),V({type:"comma",value:_,output:w});continue}if(_==="/"){if(x.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",s.pop(),x=i;continue}V({type:"slash",value:_,output:y});continue}if(_==="."){if(h.braces>0&&x.type==="dot"){x.value==="."&&(x.output=d);let w=I[I.length-1];x.type="dots",x.output+=_,x.value+=_,w.dots=!0;continue}if(h.braces+h.parens===0&&x.type!=="bos"&&x.type!=="slash"){V({type:"text",value:_,output:d});continue}V({type:"dot",value:_,output:d});continue}if(_==="?"){if(!(x&&x.value==="(")&&r.noextglob!==!0&&F()==="("&&F(2)!=="?"){me("qmark",_);continue}if(x&&x.type==="paren"){let H=F(),Y=_;if(H==="<"&&!ye.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(Z()))&&(Y=`\\${_}`),V({type:"text",value:_,output:Y});continue}if(r.dot!==!0&&(x.type==="slash"||x.type==="bos")){V({type:"qmark",value:_,output:L});continue}V({type:"qmark",value:_,output:P});continue}if(_==="!"){if(r.noextglob!==!0&&F()==="("&&(F(2)!=="?"||!/[!=<:]/.test(F(3)))){me("negate",_);continue}if(r.nonegate!==!0&&h.index===0){se();continue}}if(_==="+"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){me("plus",_);continue}if(x&&x.value==="("||r.regex===!1){V({type:"plus",value:_,output:p});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||h.parens>0){V({type:"plus",value:_});continue}V({type:"plus",value:p});continue}if(_==="@"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){V({type:"at",extglob:!0,value:_,output:""});continue}V({type:"text",value:_});continue}if(_!=="*"){(_==="$"||_==="^")&&(_=`\\${_}`);let w=vd.exec(Z());w&&(_+=w[0],h.index+=w[0].length),V({type:"text",value:_});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=_,x.output=U,h.backtrack=!0,h.globstar=!0,Q(_);continue}let k=Z();if(r.noextglob!==!0&&/^\([^?]/.test(k)){me("star",_);continue}if(x.type==="star"){if(r.noglobstar===!0){Q(_);continue}let w=x.prev,H=w.prev,Y=w.type==="slash"||w.type==="bos",de=H&&(H.type==="star"||H.type==="globstar");if(r.bash===!0&&(!Y||k[0]&&k[0]!=="/")){V({type:"star",value:_,output:""});continue}let ne=h.braces>0&&(w.type==="comma"||w.type==="brace"),cn=O.length&&(w.type==="pipe"||w.type==="paren");if(!Y&&w.type!=="paren"&&!ne&&!cn){V({type:"star",value:_,output:""});continue}for(;k.slice(0,3)==="/**";){let rr=e[h.index+4];if(rr&&rr!=="/")break;k=k.slice(3),Q("/**",3)}if(w.type==="bos"&&q()){x.type="globstar",x.value+=_,x.output=S(r),h.output=x.output,h.globstar=!0,Q(_);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!de&&q()){h.output=h.output.slice(0,-(w.output+x.output).length),w.output=`(?:${w.output}`,x.type="globstar",x.output=S(r)+(r.strictSlashes?")":"|$)"),x.value+=_,h.globstar=!0,h.output+=w.output+x.output,Q(_);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&k[0]==="/"){let rr=k[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(w.output+x.output).length),w.output=`(?:${w.output}`,x.type="globstar",x.output=`${S(r)}${y}|${y}${rr})`,x.value+=_,h.output+=w.output+x.output,h.globstar=!0,Q(_+z()),V({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&k[0]==="/"){x.type="globstar",x.value+=_,x.output=`(?:^|${y}|${S(r)}${y})`,h.output=x.output,h.globstar=!0,Q(_+z()),V({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-x.output.length),x.type="globstar",x.output=S(r),x.value+=_,h.output+=x.output,h.globstar=!0,Q(_);continue}let G={type:"star",value:_,output:U};if(r.bash===!0){G.output=".*?",(x.type==="bos"||x.type==="slash")&&(G.output=C+G.output),V(G);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&r.regex===!0){G.output=_,V(G);continue}(h.index===h.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(h.output+=E,x.output+=E):r.dot===!0?(h.output+=N,x.output+=N):(h.output+=C,x.output+=C),F()!=="*"&&(h.output+=v,x.output+=v)),V(G)}for(;h.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(yt("closing","]"));h.output=ye.escapeLast(h.output,"["),ae("brackets")}for(;h.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(yt("closing",")"));h.output=ye.escapeLast(h.output,"("),ae("parens")}for(;h.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(yt("closing","}"));h.output=ye.escapeLast(h.output,"{"),ae("braces")}if(r.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${y}?`}),h.backtrack===!0){h.output="";for(let k of h.tokens)h.output+=k.output!=null?k.output:k.value,k.suffix&&(h.output+=k.suffix)}return h};kn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(pr,r.maxLength):pr,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Gs[e]||e;let i=ye.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:y,START_ANCHOR:v}=fr.globChars(i),b=r.dot?d:f,$=r.dot?p:f,E=r.capture?"":"?:",N={negated:!1,prefix:""},P=r.bash===!0?".*?":y;r.capture&&(P=`(${P})`);let L=C=>C.noglobstar===!0?P:`(${E}(?:(?!${v}${C.dot?u:s}).)*?)`,A=C=>{switch(C){case"*":return`${b}${c}${P}`;case".*":return`${s}${c}${P}`;case"*.*":return`${b}${P}${s}${c}${P}`;case"*/*":return`${b}${P}${a}${c}${$}${P}`;case"**":return b+L(r);case"**/*":return`(?:${b}${L(r)}${a})?${$}${c}${P}`;case"**/*.*":return`(?:${b}${L(r)}${a})?${$}${P}${s}${c}${P}`;case"**/.*":return`(?:${b}${L(r)}${a})?${s}${c}${P}`;default:{let T=/^(.*?)\.(\w+)$/.exec(C);if(!T)return;let U=A(T[1]);return U?U+s+T[2]:void 0}}},M=ye.removePrefix(e,N),S=A(M);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};zs.exports=kn});var Xs=R((_1,Ys)=>{"use strict";l();var bd=B("path"),Rd=Ws(),Pn=Ks(),An=Nt(),wd=Mt(),Sd=e=>e&&typeof e=="object"&&!Array.isArray(e),J=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(p=>J(p,t,r));return p=>{for(let y of f){let v=y(p);if(v)return v}return!1}}let n=Sd(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},i=An.isWindows(t),s=n?J.compileRe(e,t):J.makeRe(e,t,!1,!0),a=s.state;delete s.state;let c=()=>!1;if(o.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};c=J(o.ignore,f,r)}let u=(f,d=!1)=>{let{isMatch:p,match:y,output:v}=J.test(f,s,t,{glob:e,posix:i}),b={glob:e,state:a,regex:s,posix:i,input:f,output:v,match:y,isMatch:p};return typeof o.onResult=="function"&&o.onResult(b),p===!1?(b.isMatch=!1,d?b:!1):c(f)?(typeof o.onIgnore=="function"&&o.onIgnore(b),b.isMatch=!1,d?b:!1):(typeof o.onMatch=="function"&&o.onMatch(b),d?b:!0)};return r&&(u.state=a),u};J.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},s=i.format||(o?An.toPosixSlashes:null),a=e===n,c=a&&s?s(e):e;return a===!1&&(c=s?s(e):e,a=c===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=J.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};J.matchBase=(e,t,r,n=An.isWindows(r))=>(t instanceof RegExp?t:J.makeRe(t,r)).test(bd.basename(e));J.isMatch=(e,t,r)=>J(t,r)(e);J.parse=(e,t)=>Array.isArray(e)?e.map(r=>J.parse(r,t)):Pn(e,{...t,fastpaths:!1});J.scan=(e,t)=>Rd(e,t);J.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},i=o.contains?"":"^",s=o.contains?"":"$",a=`${i}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=J.toRegex(a,t);return n===!0&&(c.state=e),c};J.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=Pn.fastpaths(e,t)),o.output||(o=Pn(e,t)),J.compileRe(o,t,r,n)};J.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};J.constants=wd;Ys.exports=J});var Js=R((R1,Qs)=>{"use strict";l();Qs.exports=Xs()});var oa=R((S1,na)=>{"use strict";l();var ea=B("util"),ta=$s(),ke=Js(),On=Nt(),Zs=e=>e===""||e==="./",ra=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},K=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,i=new Set,s=0,a=f=>{i.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let d=ke(String(t[f]),{...r,onResult:a},!0),p=d.state.negated||d.state.negatedExtglob;p&&s++;for(let y of e){let v=d(y,!0);(p?!v.isMatch:v.isMatch)&&(p?n.add(v.output):(n.delete(v.output),o.add(v.output)))}}let u=(s===t.length?[...i]:[...o]).filter(f=>!n.has(f));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return u};K.match=K;K.matcher=(e,t)=>ke(e,t);K.isMatch=(e,t,r)=>ke(t,r)(e);K.any=K.isMatch;K.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],i=a=>{r.onResult&&r.onResult(a),o.push(a.output)},s=new Set(K(e,t,{...r,onResult:i}));for(let a of o)s.has(a)||n.add(a);return[...n]};K.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ea.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>K.contains(e,n,r));if(typeof t=="string"){if(Zs(e)||Zs(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return K.isMatch(e,t,{...r,contains:!0})};K.matchKeys=(e,t,r)=>{if(!On.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=K(Object.keys(e),t,r),o={};for(let i of n)o[i]=e[i];return o};K.some=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=ke(String(o),r);if(n.some(s=>i(s)))return!0}return!1};K.every=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=ke(String(o),r);if(!n.every(s=>i(s)))return!1}return!0};K.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ea.inspect(e)}"`);return[].concat(t).every(n=>ke(n,r)(e))};K.capture=(e,t,r)=>{let n=On.isWindows(r),i=ke.makeRe(String(e),{...r,capture:!0}).exec(n?On.toPosixSlashes(t):t);if(i)return i.slice(1).map(s=>s===void 0?"":s)};K.makeRe=(...e)=>ke.makeRe(...e);K.scan=(...e)=>ke.scan(...e);K.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let o of ta(String(n),t))r.push(ke.parse(o,t));return r};K.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!ra(e)?[e]:ta(e,t)};K.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return K.braces(e,{...t,expand:!0})};K.hasBraces=ra;na.exports=K});var pa=R(D=>{"use strict";l();Object.defineProperty(D,"__esModule",{value:!0});D.removeDuplicateSlashes=D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var Cd=B("path"),Ed=Xi(),Tn=oa(),ia="**",kd="\\",Pd=/[*?]|^!/,Ad=/\[[^[]*]/,Od=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Td=/[!*+?@]\([^(]*\)/,$d=/,|\.\./,Fd=/(?!^)\/{2,}/g;function sa(e,t={}){return!aa(e,t)}D.isStaticPattern=sa;function aa(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(kd)||Pd.test(e)||Ad.test(e)||Od.test(e)||t.extglob!==!1&&Td.test(e)||t.braceExpansion!==!1&&Md(e))}D.isDynamicPattern=aa;function Md(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return $d.test(n)}function Nd(e){return dr(e)?e.slice(1):e}D.convertToPositivePattern=Nd;function Id(e){return"!"+e}D.convertToNegativePattern=Id;function dr(e){return e.startsWith("!")&&e[1]!=="("}D.isNegativePattern=dr;function la(e){return!dr(e)}D.isPositivePattern=la;function Dd(e){return e.filter(dr)}D.getNegativePatterns=Dd;function Ld(e){return e.filter(la)}D.getPositivePatterns=Ld;function Vd(e){return e.filter(t=>!$n(t))}D.getPatternsInsideCurrentDirectory=Vd;function jd(e){return e.filter($n)}D.getPatternsOutsideCurrentDirectory=jd;function $n(e){return e.startsWith("..")||e.startsWith("./..")}D.isPatternRelatedToParentDirectory=$n;function Hd(e){return Ed(e,{flipBackslashes:!1})}D.getBaseDirectory=Hd;function qd(e){return e.includes(ia)}D.hasGlobStar=qd;function ca(e){return e.endsWith("/"+ia)}D.endsWithSlashGlobStar=ca;function Bd(e){let t=Cd.basename(e);return ca(e)||sa(t)}D.isAffectDepthOfReadingPattern=Bd;function Ud(e){return e.reduce((t,r)=>t.concat(ua(r)),[])}D.expandPatternsWithBraceExpansion=Ud;function ua(e){let t=Tn.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}D.expandBraceExpansion=ua;function Wd(e,t){let{parts:r}=Tn.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}D.getPatternParts=Wd;function fa(e,t){return Tn.makeRe(e,t)}D.makeRe=fa;function Gd(e,t){return e.map(r=>fa(r,t))}D.convertPatternsToRe=Gd;function zd(e,t){return t.some(r=>r.test(e))}D.matchAny=zd;function Kd(e){return e.replace(Fd,"/")}D.removeDuplicateSlashes=Kd});var ha=R((P1,ga)=>{"use strict";l();var Yd=B("stream"),da=Yd.PassThrough,Xd=Array.prototype.slice;ga.exports=Qd;function Qd(){let e=[],t=Xd.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let o=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let s=da(n);function a(){for(let f=0,d=arguments.length;f<d;f++)e.push(ma(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let d=f.length+1;function p(){--d>0||(r=!1,c())}function y(v){function b(){v.removeListener("merge2UnpipeEnd",b),v.removeListener("end",b),i&&v.removeListener("error",$),p()}function $(E){s.emit("error",E)}if(v._readableState.endEmitted)return p();v.on("merge2UnpipeEnd",b),v.on("end",b),i&&v.on("error",$),v.pipe(s,{end:!1}),v.resume()}for(let v=0;v<f.length;v++)y(f[v]);p()}function u(){r=!1,s.emit("queueDrain"),o&&s.end()}return s.setMaxListeners(0),s.add=a,s.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),s}function ma(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=ma(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(da(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var va=R(mr=>{"use strict";l();Object.defineProperty(mr,"__esModule",{value:!0});mr.merge=void 0;var Jd=ha();function Zd(e){let t=Jd(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>ya(e)),t.once("end",()=>ya(e)),t}mr.merge=Zd;function ya(e){e.forEach(t=>t.emit("close"))}});var xa=R(vt=>{"use strict";l();Object.defineProperty(vt,"__esModule",{value:!0});vt.isEmpty=vt.isString=void 0;function em(e){return typeof e=="string"}vt.isString=em;function tm(e){return e===""}vt.isEmpty=tm});var Ie=R(ce=>{"use strict";l();Object.defineProperty(ce,"__esModule",{value:!0});ce.string=ce.stream=ce.pattern=ce.path=ce.fs=ce.errno=ce.array=void 0;var rm=Di();ce.array=rm;var nm=Li();ce.errno=nm;var om=Vi();ce.fs=om;var im=Bi();ce.path=im;var sm=pa();ce.pattern=sm;var am=va();ce.stream=am;var lm=xa();ce.string=lm});var wa=R(ue=>{"use strict";l();Object.defineProperty(ue,"__esModule",{value:!0});ue.convertPatternGroupToTask=ue.convertPatternGroupsToTasks=ue.groupPatternsByBaseDirectory=ue.getNegativePatternsAsPositive=ue.getPositivePatterns=ue.convertPatternsToTasks=ue.generate=void 0;var we=Ie();function cm(e,t){let r=_a(e,t),n=_a(t.ignore,t),o=ba(r),i=Ra(r,n),s=o.filter(f=>we.pattern.isStaticPattern(f,t)),a=o.filter(f=>we.pattern.isDynamicPattern(f,t)),c=Fn(s,i,!1),u=Fn(a,i,!0);return c.concat(u)}ue.generate=cm;function _a(e,t){let r=e;return t.braceExpansion&&(r=we.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>we.pattern.removeDuplicateSlashes(n))}function Fn(e,t,r){let n=[],o=we.pattern.getPatternsOutsideCurrentDirectory(e),i=we.pattern.getPatternsInsideCurrentDirectory(e),s=Mn(o),a=Mn(i);return n.push(...Nn(s,t,r)),"."in a?n.push(In(".",i,t,r)):n.push(...Nn(a,t,r)),n}ue.convertPatternsToTasks=Fn;function ba(e){return we.pattern.getPositivePatterns(e)}ue.getPositivePatterns=ba;function Ra(e,t){return we.pattern.getNegativePatterns(e).concat(t).map(we.pattern.convertToPositivePattern)}ue.getNegativePatternsAsPositive=Ra;function Mn(e){let t={};return e.reduce((r,n)=>{let o=we.pattern.getBaseDirectory(n);return o in r?r[o].push(n):r[o]=[n],r},t)}ue.groupPatternsByBaseDirectory=Mn;function Nn(e,t,r){return Object.keys(e).map(n=>In(n,e[n],t,r))}ue.convertPatternGroupsToTasks=Nn;function In(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(we.pattern.convertToNegativePattern))}}ue.convertPatternGroupToTask=In});var Ca=R(gr=>{"use strict";l();Object.defineProperty(gr,"__esModule",{value:!0});gr.read=void 0;function um(e,t,r){t.fs.lstat(e,(n,o)=>{if(n!==null){Sa(r,n);return}if(!o.isSymbolicLink()||!t.followSymbolicLink){Dn(r,o);return}t.fs.stat(e,(i,s)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){Sa(r,i);return}Dn(r,o);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),Dn(r,s)})})}gr.read=um;function Sa(e,t){e(t)}function Dn(e,t){e(null,t)}});var Ea=R(hr=>{"use strict";l();Object.defineProperty(hr,"__esModule",{value:!0});hr.read=void 0;function fm(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}hr.read=fm});var ka=R(Ve=>{"use strict";l();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.createFileSystemAdapter=Ve.FILE_SYSTEM_ADAPTER=void 0;var yr=B("fs");Ve.FILE_SYSTEM_ADAPTER={lstat:yr.lstat,stat:yr.stat,lstatSync:yr.lstatSync,statSync:yr.statSync};function pm(e){return e===void 0?Ve.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ve.FILE_SYSTEM_ADAPTER),e)}Ve.createFileSystemAdapter=pm});var Pa=R(Vn=>{"use strict";l();Object.defineProperty(Vn,"__esModule",{value:!0});var dm=ka(),Ln=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=dm.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};Vn.default=Ln});var nt=R(je=>{"use strict";l();Object.defineProperty(je,"__esModule",{value:!0});je.statSync=je.stat=je.Settings=void 0;var Aa=Ca(),mm=Ea(),jn=Pa();je.Settings=jn.default;function gm(e,t,r){if(typeof t=="function"){Aa.read(e,Hn(),t);return}Aa.read(e,Hn(t),r)}je.stat=gm;function hm(e,t){let r=Hn(t);return mm.read(e,r)}je.statSync=hm;function Hn(e={}){return e instanceof jn.default?e:new jn.default(e)}});var $a=R((K1,Ta)=>{"use strict";l();var Oa;Ta.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Oa||(Oa=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Ma=R((X1,Fa)=>{"use strict";l();Fa.exports=vm;var ym=$a();function vm(e,t){let r,n,o,i=!0;Array.isArray(e)?(r=[],n=e.length):(o=Object.keys(e),r={},n=o.length);function s(c){function u(){t&&t(c,r),t=null}i?ym(u):u()}function a(c,u,f){r[c]=f,(--n===0||u)&&s(u)}n?o?o.forEach(function(c){e[c](function(u,f){a(c,u,f)})}):e.forEach(function(c,u){c(function(f,d){a(u,f,d)})}):s(null),i=!1}});var qn=R(xr=>{"use strict";l();Object.defineProperty(xr,"__esModule",{value:!0});xr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var vr=process.versions.node.split(".");if(vr[0]===void 0||vr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Na=Number.parseInt(vr[0],10),xm=Number.parseInt(vr[1],10),Ia=10,_m=10,bm=Na>Ia,Rm=Na===Ia&&xm>=_m;xr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=bm||Rm});var Da=R(_r=>{"use strict";l();Object.defineProperty(_r,"__esModule",{value:!0});_r.createDirentFromStats=void 0;var Bn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function wm(e,t){return new Bn(e,t)}_r.createDirentFromStats=wm});var Un=R(br=>{"use strict";l();Object.defineProperty(br,"__esModule",{value:!0});br.fs=void 0;var Sm=Da();br.fs=Sm});var Wn=R(Rr=>{"use strict";l();Object.defineProperty(Rr,"__esModule",{value:!0});Rr.joinPathSegments=void 0;function Cm(e,t,r){return e.endsWith(r)?e+t:e+r+t}Rr.joinPathSegments=Cm});var Ba=R(He=>{"use strict";l();Object.defineProperty(He,"__esModule",{value:!0});He.readdir=He.readdirWithFileTypes=He.read=void 0;var Em=nt(),La=Ma(),km=qn(),Va=Un(),ja=Wn();function Pm(e,t,r){if(!t.stats&&km.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ha(e,t,r);return}qa(e,t,r)}He.read=Pm;function Ha(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,o)=>{if(n!==null){wr(r,n);return}let i=o.map(a=>({dirent:a,name:a.name,path:ja.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Gn(r,i);return}let s=i.map(a=>Am(a,t));La(s,(a,c)=>{if(a!==null){wr(r,a);return}Gn(r,c)})})}He.readdirWithFileTypes=Ha;function Am(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,o)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=Va.fs.createDirentFromStats(e.name,o),r(null,e)})}}function qa(e,t,r){t.fs.readdir(e,(n,o)=>{if(n!==null){wr(r,n);return}let i=o.map(s=>{let a=ja.joinPathSegments(e,s,t.pathSegmentSeparator);return c=>{Em.stat(a,t.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let d={name:s,path:a,dirent:Va.fs.createDirentFromStats(s,f)};t.stats&&(d.stats=f),c(null,d)})}});La(i,(s,a)=>{if(s!==null){wr(r,s);return}Gn(r,a)})})}He.readdir=qa;function wr(e,t){e(t)}function Gn(e,t){e(null,t)}});var Ka=R(qe=>{"use strict";l();Object.defineProperty(qe,"__esModule",{value:!0});qe.readdir=qe.readdirWithFileTypes=qe.read=void 0;var Om=nt(),Tm=qn(),Ua=Un(),Wa=Wn();function $m(e,t){return!t.stats&&Tm.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Ga(e,t):za(e,t)}qe.read=$m;function Ga(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let o={dirent:n,name:n.name,path:Wa.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(o.path);o.dirent=Ua.fs.createDirentFromStats(o.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return o})}qe.readdirWithFileTypes=Ga;function za(e,t){return t.fs.readdirSync(e).map(n=>{let o=Wa.joinPathSegments(e,n,t.pathSegmentSeparator),i=Om.statSync(o,t.fsStatSettings),s={name:n,path:o,dirent:Ua.fs.createDirentFromStats(n,i)};return t.stats&&(s.stats=i),s})}qe.readdir=za});var Ya=R(Be=>{"use strict";l();Object.defineProperty(Be,"__esModule",{value:!0});Be.createFileSystemAdapter=Be.FILE_SYSTEM_ADAPTER=void 0;var xt=B("fs");Be.FILE_SYSTEM_ADAPTER={lstat:xt.lstat,stat:xt.stat,lstatSync:xt.lstatSync,statSync:xt.statSync,readdir:xt.readdir,readdirSync:xt.readdirSync};function Fm(e){return e===void 0?Be.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Be.FILE_SYSTEM_ADAPTER),e)}Be.createFileSystemAdapter=Fm});var Xa=R(Kn=>{"use strict";l();Object.defineProperty(Kn,"__esModule",{value:!0});var Mm=B("path"),Nm=nt(),Im=Ya(),zn=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Im.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Mm.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Nm.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Kn.default=zn});var Sr=R(Ue=>{"use strict";l();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.Settings=Ue.scandirSync=Ue.scandir=void 0;var Qa=Ba(),Dm=Ka(),Yn=Xa();Ue.Settings=Yn.default;function Lm(e,t,r){if(typeof t=="function"){Qa.read(e,Xn(),t);return}Qa.read(e,Xn(t),r)}Ue.scandir=Lm;function Vm(e,t){let r=Xn(t);return Dm.read(e,r)}Ue.scandirSync=Vm;function Xn(e={}){return e instanceof Yn.default?e:new Yn.default(e)}});var Za=R((hb,Ja)=>{"use strict";l();function jm(e){var t=new e,r=t;function n(){var i=t;return i.next?t=i.next:(t=new e,r=t),i.next=null,i}function o(i){r.next=i,r=i}return{get:n,release:o}}Ja.exports=jm});var tl=R((vb,Qn)=>{"use strict";l();var Hm=Za();function el(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=Hm(qm),o=null,i=null,s=0,a=null,c={push:b,drain:xe,saturated:xe,pause:f,paused:!1,get concurrency(){return r},set concurrency(A){if(!(A>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=A,!c.paused)for(;o&&s<r;)s++,E()},running:u,resume:y,idle:v,length:d,getQueue:p,unshift:$,empty:xe,kill:N,killAndDrain:P,error:L};return c;function u(){return s}function f(){c.paused=!0}function d(){for(var A=o,M=0;A;)A=A.next,M++;return M}function p(){for(var A=o,M=[];A;)M.push(A.value),A=A.next;return M}function y(){if(c.paused){if(c.paused=!1,o===null){s++,E();return}for(;o&&s<r;)s++,E()}}function v(){return s===0&&c.length()===0}function b(A,M){var S=n.get();S.context=e,S.release=E,S.value=A,S.callback=M||xe,S.errorHandler=a,s>=r||c.paused?i?(i.next=S,i=S):(o=S,i=S,c.saturated()):(s++,t.call(e,S.value,S.worked))}function $(A,M){var S=n.get();S.context=e,S.release=E,S.value=A,S.callback=M||xe,S.errorHandler=a,s>=r||c.paused?o?(S.next=o,o=S):(o=S,i=S,c.saturated()):(s++,t.call(e,S.value,S.worked))}function E(A){A&&n.release(A);var M=o;M&&s<=r?c.paused?s--:(i===o&&(i=null),o=M.next,M.next=null,t.call(e,M.value,M.worked),i===null&&c.empty()):--s===0&&c.drain()}function N(){o=null,i=null,c.drain=xe}function P(){o=null,i=null,c.drain(),c.drain=xe}function L(A){a=A}}function xe(){}function qm(){this.value=null,this.callback=xe,this.next=null,this.release=xe,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var o=e.callback,i=e.errorHandler,s=e.value;e.value=null,e.callback=xe,e.errorHandler&&i(r,s),o.call(e.context,r,n),e.release(e)}}function Bm(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,d){t.call(this,f).then(function(p){d(null,p)},d)}var o=el(e,n,r),i=o.push,s=o.unshift;return o.push=a,o.unshift=c,o.drained=u,o;function a(f){var d=new Promise(function(p,y){i(f,function(v,b){if(v){y(v);return}p(b)})});return d.catch(xe),d}function c(f){var d=new Promise(function(p,y){s(f,function(v,b){if(v){y(v);return}p(b)})});return d.catch(xe),d}function u(){if(o.idle())return new Promise(function(p){p()});var f=o.drain,d=new Promise(function(p){o.drain=function(){f(),p()}});return d}}Qn.exports=el;Qn.exports.promise=Bm});var Cr=R(Pe=>{"use strict";l();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.joinPathSegments=Pe.replacePathSegmentSeparator=Pe.isAppliedFilter=Pe.isFatalError=void 0;function Um(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Pe.isFatalError=Um;function Wm(e,t){return e===null||e(t)}Pe.isAppliedFilter=Wm;function Gm(e,t){return e.split(/[/\\]/).join(t)}Pe.replacePathSegmentSeparator=Gm;function zm(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Pe.joinPathSegments=zm});var eo=R(Zn=>{"use strict";l();Object.defineProperty(Zn,"__esModule",{value:!0});var Km=Cr(),Jn=class{constructor(t,r){this._root=t,this._settings=r,this._root=Km.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Zn.default=Jn});var no=R(ro=>{"use strict";l();Object.defineProperty(ro,"__esModule",{value:!0});var Ym=B("events"),Xm=Sr(),Qm=tl(),Er=Cr(),Jm=eo(),to=class extends Jm.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Xm.scandir,this._emitter=new Ym.EventEmitter,this._queue=Qm(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,o=>{o!==null&&this._handleError(o)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,o)=>{if(n!==null){r(n,void 0);return}for(let i of o)this._handleEntry(i,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Er.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Er.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Er.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Er.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ro.default=to});var rl=R(io=>{"use strict";l();Object.defineProperty(io,"__esModule",{value:!0});var Zm=no(),oo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Zm.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{eg(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{tg(t,this._storage)}),this._reader.read()}};io.default=oo;function eg(e,t){e(t)}function tg(e,t){e(null,t)}});var nl=R(ao=>{"use strict";l();Object.defineProperty(ao,"__esModule",{value:!0});var rg=B("stream"),ng=no(),so=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new ng.default(this._root,this._settings),this._stream=new rg.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};ao.default=so});var ol=R(co=>{"use strict";l();Object.defineProperty(co,"__esModule",{value:!0});var og=Sr(),kr=Cr(),ig=eo(),lo=class extends ig.default{constructor(){super(...arguments),this._scandir=og.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let o of n)this._handleEntry(o,r)}catch(n){this._handleError(n)}}_handleError(t){if(kr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=kr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),kr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&kr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};co.default=lo});var il=R(fo=>{"use strict";l();Object.defineProperty(fo,"__esModule",{value:!0});var sg=ol(),uo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sg.default(this._root,this._settings)}read(){return this._reader.read()}};fo.default=uo});var sl=R(mo=>{"use strict";l();Object.defineProperty(mo,"__esModule",{value:!0});var ag=B("path"),lg=Sr(),po=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ag.sep),this.fsScandirSettings=new lg.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};mo.default=po});var Ar=R(Ae=>{"use strict";l();Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Settings=Ae.walkStream=Ae.walkSync=Ae.walk=void 0;var al=rl(),cg=nl(),ug=il(),go=sl();Ae.Settings=go.default;function fg(e,t,r){if(typeof t=="function"){new al.default(e,Pr()).read(t);return}new al.default(e,Pr(t)).read(r)}Ae.walk=fg;function pg(e,t){let r=Pr(t);return new ug.default(e,r).read()}Ae.walkSync=pg;function dg(e,t){let r=Pr(t);return new cg.default(e,r).read()}Ae.walkStream=dg;function Pr(e={}){return e instanceof go.default?e:new go.default(e)}});var Or=R(yo=>{"use strict";l();Object.defineProperty(yo,"__esModule",{value:!0});var mg=B("path"),gg=nt(),ll=Ie(),ho=class{constructor(t){this._settings=t,this._fsStatSettings=new gg.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return mg.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:ll.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!ll.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};yo.default=ho});var _o=R(xo=>{"use strict";l();Object.defineProperty(xo,"__esModule",{value:!0});var hg=B("stream"),yg=nt(),vg=Ar(),xg=Or(),vo=class extends xg.default{constructor(){super(...arguments),this._walkStream=vg.walkStream,this._stat=yg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),o=new hg.PassThrough({objectMode:!0});o._write=(i,s,a)=>this._getEntry(n[i],t[i],r).then(c=>{c!==null&&r.entryFilter(c)&&o.push(c),i===n.length-1&&o.end(),a()}).catch(a);for(let i=0;i<n.length;i++)o.write(i);return o}_getEntry(t,r,n){return this._getStat(t).then(o=>this._makeEntry(o,r)).catch(o=>{if(n.errorFilter(o))return null;throw o})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(o,i)=>o===null?r(i):n(o))})}};xo.default=vo});var cl=R(Ro=>{"use strict";l();Object.defineProperty(Ro,"__esModule",{value:!0});var _g=Ar(),bg=Or(),Rg=_o(),bo=class extends bg.default{constructor(){super(...arguments),this._walkAsync=_g.walk,this._readerStream=new Rg.default(this._settings)}dynamic(t,r){return new Promise((n,o)=>{this._walkAsync(t,r,(i,s)=>{i===null?n(s):o(i)})})}async static(t,r){let n=[],o=this._readerStream.static(t,r);return new Promise((i,s)=>{o.once("error",s),o.on("data",a=>n.push(a)),o.once("end",()=>i(n))})}};Ro.default=bo});var ul=R(So=>{"use strict";l();Object.defineProperty(So,"__esModule",{value:!0});var Dt=Ie(),wo=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return Dt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Dt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Dt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Dt.array.splitWhen(t,r=>r.dynamic&&Dt.pattern.hasGlobStar(r.pattern))}};So.default=wo});var fl=R(Eo=>{"use strict";l();Object.defineProperty(Eo,"__esModule",{value:!0});var wg=ul(),Co=class extends wg.default{match(t){let r=t.split("/"),n=r.length,o=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of o){let s=i.sections[0];if(!i.complete&&n>s.length||r.every((c,u)=>{let f=i.segments[u];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};Eo.default=Co});var pl=R(Po=>{"use strict";l();Object.defineProperty(Po,"__esModule",{value:!0});var Tr=Ie(),Sg=fl(),ko=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let o=this._getMatcher(r),i=this._getNegativePatternsRe(n);return s=>this._filter(t,s,o,i)}_getMatcher(t){return new Sg.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Tr.pattern.isAffectDepthOfReadingPattern);return Tr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,o){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=Tr.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,o)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let o=t.split("/").length;return n-o}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Tr.pattern.matchAny(t,r)}};Po.default=ko});var dl=R(Oo=>{"use strict";l();Object.defineProperty(Oo,"__esModule",{value:!0});var ot=Ie(),Ao=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=ot.pattern.convertPatternsToRe(t,this._micromatchOptions),o=ot.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return i=>this._filter(i,n,o)}_filter(t,r,n){let o=ot.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(o,n))return!1;let i=t.dirent.isDirectory(),s=this._isMatchToPatterns(o,r,i)&&!this._isMatchToPatterns(o,n,i);return this._settings.unique&&s&&this._createIndexRecord(o),s}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=ot.path.makeAbsolute(this._settings.cwd,t);return ot.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let o=ot.pattern.matchAny(t,r);return!o&&n?ot.pattern.matchAny(t+"/",r):o}};Oo.default=Ao});var ml=R($o=>{"use strict";l();Object.defineProperty($o,"__esModule",{value:!0});var Cg=Ie(),To=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Cg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};$o.default=To});var hl=R(Mo=>{"use strict";l();Object.defineProperty(Mo,"__esModule",{value:!0});var gl=Ie(),Fo=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=gl.path.makeAbsolute(this._settings.cwd,r),r=gl.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Mo.default=Fo});var $r=R(Io=>{"use strict";l();Object.defineProperty(Io,"__esModule",{value:!0});var Eg=B("path"),kg=pl(),Pg=dl(),Ag=ml(),Og=hl(),No=class{constructor(t){this._settings=t,this.errorFilter=new Ag.default(this._settings),this.entryFilter=new Pg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new kg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Og.default(this._settings)}_getRootDirectory(t){return Eg.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Io.default=No});var yl=R(Lo=>{"use strict";l();Object.defineProperty(Lo,"__esModule",{value:!0});var Tg=cl(),$g=$r(),Do=class extends $g.default{constructor(){super(...arguments),this._reader=new Tg.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(i=>n.transform(i))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Lo.default=Do});var vl=R(jo=>{"use strict";l();Object.defineProperty(jo,"__esModule",{value:!0});var Fg=B("stream"),Mg=_o(),Ng=$r(),Vo=class extends Ng.default{constructor(){super(...arguments),this._reader=new Mg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),o=this.api(r,t,n),i=new Fg.Readable({objectMode:!0,read:()=>{}});return o.once("error",s=>i.emit("error",s)).on("data",s=>i.emit("data",n.transform(s))).once("end",()=>i.emit("end")),i.once("close",()=>o.destroy()),i}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};jo.default=Vo});var xl=R(qo=>{"use strict";l();Object.defineProperty(qo,"__esModule",{value:!0});var Ig=nt(),Dg=Ar(),Lg=Or(),Ho=class extends Lg.default{constructor(){super(...arguments),this._walkSync=Dg.walkSync,this._statSync=Ig.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let o of t){let i=this._getFullEntryPath(o),s=this._getEntry(i,o,r);s===null||!r.entryFilter(s)||n.push(s)}return n}_getEntry(t,r,n){try{let o=this._getStat(t);return this._makeEntry(o,r)}catch(o){if(n.errorFilter(o))return null;throw o}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};qo.default=Ho});var _l=R(Uo=>{"use strict";l();Object.defineProperty(Uo,"__esModule",{value:!0});var Vg=xl(),jg=$r(),Bo=class extends jg.default{constructor(){super(...arguments),this._reader=new Vg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Uo.default=Bo});var bl=R(bt=>{"use strict";l();Object.defineProperty(bt,"__esModule",{value:!0});bt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var _t=B("fs"),Hg=B("os"),qg=Math.max(Hg.cpus().length,1);bt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:_t.lstat,lstatSync:_t.lstatSync,stat:_t.stat,statSync:_t.statSync,readdir:_t.readdir,readdirSync:_t.readdirSync};var Wo=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,qg),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(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},bt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};bt.default=Wo});var Fr=R((mR,wl)=>{"use strict";l();var Rl=wa(),Bg=yl(),Ug=vl(),Wg=_l(),Go=bl(),_e=Ie();async function zo(e,t){Se(e);let r=Ko(e,Bg.default,t),n=await Promise.all(r);return _e.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(u,f){Se(u);let d=Ko(u,Wg.default,f);return _e.array.flatten(d)}e.sync=t;function r(u,f){Se(u);let d=Ko(u,Ug.default,f);return _e.stream.merge(d)}e.stream=r;function n(u,f){Se(u);let d=[].concat(u),p=new Go.default(f);return Rl.generate(d,p)}e.generateTasks=n;function o(u,f){Se(u);let d=new Go.default(f);return _e.pattern.isDynamicPattern(u,d)}e.isDynamicPattern=o;function i(u){return Se(u),_e.path.escape(u)}e.escapePath=i;function s(u){return Se(u),_e.path.convertPathToPattern(u)}e.convertPathToPattern=s;let a;(function(u){function f(p){return Se(p),_e.path.escapePosixPath(p)}u.escapePath=f;function d(p){return Se(p),_e.path.convertPosixPathToPattern(p)}u.convertPathToPattern=d})(a=e.posix||(e.posix={}));let c;(function(u){function f(p){return Se(p),_e.path.escapeWindowsPath(p)}u.escapePath=f;function d(p){return Se(p),_e.path.convertWindowsPathToPattern(p)}u.convertPathToPattern=d})(c=e.win32||(e.win32={}))})(zo||(zo={}));function Ko(e,t,r){let n=[].concat(e),o=new Go.default(r),i=Rl.generate(n,o),s=new t(o);return i.map(s.read,s)}function Se(e){if(![].concat(e).every(n=>_e.string.isString(n)&&!_e.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}wl.exports=zo});var Nl=R((OR,Ml)=>{"use strict";l();var{hasOwnProperty:Yo}=Object.prototype,Xo=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
|
|
2
|
+
import{a as B,b as w,c as ee,d as l}from"./chunk-LD7IYUN2.mjs";var le=w((A_,un)=>{"use strict";l();var Ni=process.argv||[],or=process.env,Lf=!("NO_COLOR"in or||Ni.includes("--no-color"))&&("FORCE_COLOR"in or||Ni.includes("--color")||process.platform==="win32"||B!=null&&B("tty").isatty(1)&&or.TERM!=="dumb"||"CI"in or),Vf=(e,t,r=e)=>n=>{let o=""+n,i=o.indexOf(t,e.length);return~i?e+jf(o,t,r,i)+t:e+o+t},jf=(e,t,r,n)=>{let o="",i=0;do o+=e.substring(i,n)+r,i=n+t.length,n=e.indexOf(t,i);while(~n);return o+e.substring(i)},Ii=(e=Lf)=>{let t=e?Vf:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};un.exports=Ii();un.exports.createColors=Ii});var Di=w(gt=>{"use strict";l();Object.defineProperty(gt,"__esModule",{value:!0});gt.splitWhen=gt.flatten=void 0;function Hf(e){return e.reduce((t,r)=>[].concat(t,r),[])}gt.flatten=Hf;function qf(e,t){let r=[[]],n=0;for(let o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r}gt.splitWhen=qf});var Li=w(ir=>{"use strict";l();Object.defineProperty(ir,"__esModule",{value:!0});ir.isEnoentCodeError=void 0;function Bf(e){return e.code==="ENOENT"}ir.isEnoentCodeError=Bf});var Vi=w(sr=>{"use strict";l();Object.defineProperty(sr,"__esModule",{value:!0});sr.createDirentFromStats=void 0;var fn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Uf(e,t){return new fn(e,t)}sr.createDirentFromStats=Uf});var Bi=w(te=>{"use strict";l();Object.defineProperty(te,"__esModule",{value:!0});te.convertPosixPathToPattern=te.convertWindowsPathToPattern=te.convertPathToPattern=te.escapePosixPath=te.escapeWindowsPath=te.escape=te.removeLeadingDotSegment=te.makeAbsolute=te.unixify=void 0;var Wf=B("os"),Gf=B("path"),ji=Wf.platform()==="win32",zf=2,Kf=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Yf=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Xf=/^\\\\([.?])/,Qf=/\\(?![!()+@[\]{}])/g;function Jf(e){return e.replace(/\\/g,"/")}te.unixify=Jf;function Zf(e,t){return Gf.resolve(e,t)}te.makeAbsolute=Zf;function ep(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(zf)}return e}te.removeLeadingDotSegment=ep;te.escape=ji?pn:dn;function pn(e){return e.replace(Yf,"\\$2")}te.escapeWindowsPath=pn;function dn(e){return e.replace(Kf,"\\$2")}te.escapePosixPath=dn;te.convertPathToPattern=ji?Hi:qi;function Hi(e){return pn(e).replace(Xf,"//$1").replace(Qf,"/")}te.convertWindowsPathToPattern=Hi;function qi(e){return dn(e)}te.convertPosixPathToPattern=qi});var Wi=w((j_,Ui)=>{"use strict";l();Ui.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Ki=w((q_,zi)=>{"use strict";l();var tp=Wi(),Gi={"{":"}","(":")","[":"]"},rp=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,o=-2,i=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(s===-1||s>n||(s=e.indexOf("\\",t),s===-1||s>n)))||o!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(o=e.indexOf("}",t),o>t&&(s=e.indexOf("\\",t),s===-1||s>o))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(s=e.indexOf("\\",t),s===-1||s>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(s=e.indexOf("\\",r),s===-1||s>i))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var c=Gi[a];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},np=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Gi[r];if(n){var o=e.indexOf(n,t);o!==-1&&(t=o+1)}if(e[t]==="!")return!0}else t++}return!1};zi.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(tp(t))return!0;var n=rp;return r&&r.strict===!1&&(n=np),n(t)}});var Xi=w((U_,Yi)=>{"use strict";l();var op=Ki(),ip=B("path").posix.dirname,sp=B("os").platform()==="win32",mn="/",ap=/\\/g,lp=/[\{\[].*[\}\]]$/,cp=/(^|[^\\])([\{\[]|\([^\)]+$)/,up=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Yi.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&sp&&t.indexOf(mn)<0&&(t=t.replace(ap,mn)),lp.test(t)&&(t+=mn),t+="a";do t=ip(t);while(op(t)||cp.test(t));return t.replace(up,"$1")}});var ar=w(ve=>{"use strict";l();ve.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ve.find=(e,t)=>e.nodes.find(r=>r.type===t);ve.exceedsLimit=(e,t,r=1,n)=>n===!1||!ve.isInteger(e)||!ve.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;ve.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};ve.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);ve.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;ve.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ve.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);ve.flatten=(...e)=>{let t=[],r=n=>{for(let o=0;o<n.length;o++){let i=n[o];if(Array.isArray(i)){r(i);continue}i!==void 0&&t.push(i)}return t};return r(e),t}});var lr=w((K_,Ji)=>{"use strict";l();var Qi=ar();Ji.exports=(e,t={})=>{let r=(n,o={})=>{let i=t.escapeInvalid&&Qi.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||s)&&Qi.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(e)}});var es=w((X_,Zi)=>{"use strict";l();Zi.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var cs=w((J_,ls)=>{"use strict";l();var ts=es(),tt=(e,t,r)=>{if(ts(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ts(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let o=String(n.relaxZeros),i=String(n.shorthand),s=String(n.capture),a=String(n.wrap),c=e+":"+t+"="+o+i+s+a;if(tt.cache.hasOwnProperty(c))return tt.cache[c].result;let u=Math.min(e,t),f=Math.max(e,t);if(Math.abs(u-f)===1){let b=e+"|"+t;return n.capture?`(${b})`:n.wrap===!1?b:`(?:${b})`}let d=as(e)||as(t),p={min:e,max:t,a:u,b:f},y=[],v=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),u<0){let b=f<0?Math.abs(f):1;v=rs(b,Math.abs(u),p,n),u=p.a=0}return f>=0&&(y=rs(u,f,p,n)),p.negatives=v,p.positives=y,p.result=fp(v,y,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&y.length+v.length>1&&(p.result=`(?:${p.result})`),tt.cache[c]=p,p.result};function fp(e,t,r){let n=gn(e,t,"-",!1,r)||[],o=gn(t,e,"",!1,r)||[],i=gn(e,t,"-?",!0,r)||[];return n.concat(i).concat(o).join("|")}function pp(e,t){let r=1,n=1,o=os(e,r),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),r+=1,o=os(e,r);for(o=is(t+1,n)-1;e<o&&o<=t;)i.add(o),n+=1,o=is(t+1,n)-1;return i=[...i],i.sort(gp),i}function dp(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=mp(e,t),o=n.length,i="",s=0;for(let a=0;a<o;a++){let[c,u]=n[a];c===u?i+=c:c!=="0"||u!=="9"?i+=hp(c,u,r):s++}return s&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function rs(e,t,r,n){let o=pp(e,t),i=[],s=e,a;for(let c=0;c<o.length;c++){let u=o[c],f=dp(String(s),String(u),n),d="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+ss(a.count),s=u+1;continue}r.isPadded&&(d=yp(u,r,n)),f.string=d+f.pattern+ss(f.count),i.push(f),s=u+1,a=f}return i}function gn(e,t,r,n,o){let i=[];for(let s of e){let{string:a}=s;!n&&!ns(t,"string",a)&&i.push(r+a),n&&ns(t,"string",a)&&i.push(r+a)}return i}function mp(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function gp(e,t){return e>t?1:t>e?-1:0}function ns(e,t,r){return e.some(n=>n[t]===r)}function os(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function is(e,t){return e-e%Math.pow(10,t)}function ss(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function hp(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function as(e){return/^-?(0+)\d/.test(e)}function yp(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),o=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${n}}`:`0{${n}}`}}tt.cache={};tt.clearCache=()=>tt.cache={};ls.exports=tt});var vn=w((e1,hs)=>{"use strict";l();var vp=B("util"),fs=cs(),us=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),xp=e=>t=>e===!0?Number(t):String(t),hn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Mt=e=>Number.isInteger(+e),yn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},_p=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,bp=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},ur=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},wp=(e,t,r)=>{e.negatives.sort((a,c)=>a<c?-1:a>c?1:0),e.positives.sort((a,c)=>a<c?-1:a>c?1:0);let n=t.capture?"":"?:",o="",i="",s;return e.positives.length&&(o=e.positives.map(a=>ur(String(a),r)).join("|")),e.negatives.length&&(i=`-(${n}${e.negatives.map(a=>ur(String(a),r)).join("|")})`),o&&i?s=`${o}|${i}`:s=o||i,t.wrap?`(${n}${s})`:s},ps=(e,t,r,n)=>{if(r)return fs(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`},ds=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return fs(e,t,r)},ms=(...e)=>new RangeError("Invalid range arguments: "+vp.inspect(...e)),gs=(e,t,r)=>{if(r.strictRanges===!0)throw ms([e,t]);return[]},Rp=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Sp=(e,t,r=1,n={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(n.strictRanges===!0)throw ms([e,t]);return[]}o===0&&(o=0),i===0&&(i=0);let s=o>i,a=String(e),c=String(t),u=String(r);r=Math.max(Math.abs(r),1);let f=yn(a)||yn(c)||yn(u),d=f?Math.max(a.length,c.length,u.length):0,p=f===!1&&_p(e,t,n)===!1,y=n.transform||xp(p);if(n.toRegex&&r===1)return ps(ur(e,d),ur(t,d),!0,n);let v={negatives:[],positives:[]},b=N=>v[N<0?"negatives":"positives"].push(Math.abs(N)),$=[],E=0;for(;s?o>=i:o<=i;)n.toRegex===!0&&r>1?b(o):$.push(bp(y(o,E),d,p)),o=s?o-r:o+r,E++;return n.toRegex===!0?r>1?wp(v,n,d):ds($,null,{wrap:!1,...n}):$},Cp=(e,t,r=1,n={})=>{if(!Mt(e)&&e.length>1||!Mt(t)&&t.length>1)return gs(e,t,n);let o=n.transform||(p=>String.fromCharCode(p)),i=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=i>s,c=Math.min(i,s),u=Math.max(i,s);if(n.toRegex&&r===1)return ps(c,u,!1,n);let f=[],d=0;for(;a?i>=s:i<=s;)f.push(o(i,d)),i=a?i-r:i+r,d++;return n.toRegex===!0?ds(f,null,{wrap:!1,options:n}):f},cr=(e,t,r,n={})=>{if(t==null&&hn(e))return[e];if(!hn(e)||!hn(t))return gs(e,t,n);if(typeof r=="function")return cr(e,t,1,{transform:r});if(us(r))return cr(e,t,0,r);let o={...n};return o.capture===!0&&(o.wrap=!0),r=r||o.step||1,Mt(r)?Mt(e)&&Mt(t)?Sp(e,t,r,o):Cp(e,t,Math.max(Math.abs(r),1),o):r!=null&&!us(r)?Rp(r,o):cr(e,t,1,r)};hs.exports=cr});var xs=w((r1,vs)=>{"use strict";l();var Ep=vn(),ys=ar(),kp=(e,t={})=>{let r=(n,o={})=>{let i=ys.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||s===!0,c=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=ys.reduce(n.nodes),d=Ep(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return f.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let f of n.nodes)u+=r(f,n);return u};return r(e)};vs.exports=kp});var ws=w((o1,bs)=>{"use strict";l();var Pp=vn(),_s=lr(),ht=ar(),rt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ht.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let i of o)n.push(rt(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?rt(o,i,r):o+i);return ht.flatten(n)},Ap=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(o,i={})=>{o.queue=[];let s=i,a=i.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(o.invalid||o.dollar){a.push(rt(a.pop(),_s(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(rt(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let d=ht.reduce(o.nodes);if(ht.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=Pp(...d,t);p.length===0&&(p=_s(o,t)),a.push(rt(a.pop(),p)),o.nodes=[];return}let c=ht.encloseBrace(o),u=o.queue,f=o;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let d=0;d<o.nodes.length;d++){let p=o.nodes[d];if(p.type==="comma"&&o.type==="brace"){d===1&&u.push(""),u.push("");continue}if(p.type==="close"){a.push(rt(a.pop(),u,c));continue}if(p.value&&p.type!=="open"){u.push(rt(u.pop(),p.value));continue}p.nodes&&n(p,o)}return u};return ht.flatten(n(e))};bs.exports=Ap});var Ss=w((s1,Rs)=>{"use strict";l();Rs.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
3
|
+
`,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 As=w((l1,Ps)=>{"use strict";l();var Op=lr(),{MAX_LENGTH:Cs,CHAR_BACKSLASH:xn,CHAR_BACKTICK:Tp,CHAR_COMMA:$p,CHAR_DOT:Fp,CHAR_LEFT_PARENTHESES:Mp,CHAR_RIGHT_PARENTHESES:Np,CHAR_LEFT_CURLY_BRACE:Ip,CHAR_RIGHT_CURLY_BRACE:Dp,CHAR_LEFT_SQUARE_BRACKET:Es,CHAR_RIGHT_SQUARE_BRACKET:ks,CHAR_DOUBLE_QUOTE:Lp,CHAR_SINGLE_QUOTE:Vp,CHAR_NO_BREAK_SPACE:jp,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Hp}=Ss(),qp=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Cs,r.maxLength):Cs;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let o={type:"root",input:e,nodes:[]},i=[o],s=o,a=o,c=0,u=e.length,f=0,d=0,p,y=()=>e[f++],v=b=>{if(b.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&b.type==="text"){a.value+=b.value;return}return s.nodes.push(b),b.parent=s,b.prev=a,a=b,b};for(v({type:"bos"});f<u;)if(s=i[i.length-1],p=y(),!(p===Hp||p===jp)){if(p===xn){v({type:"text",value:(t.keepEscaping?p:"")+y()});continue}if(p===ks){v({type:"text",value:"\\"+p});continue}if(p===Es){c++;let b;for(;f<u&&(b=y());){if(p+=b,b===Es){c++;continue}if(b===xn){p+=y();continue}if(b===ks&&(c--,c===0))break}v({type:"text",value:p});continue}if(p===Mp){s=v({type:"paren",nodes:[]}),i.push(s),v({type:"text",value:p});continue}if(p===Np){if(s.type!=="paren"){v({type:"text",value:p});continue}s=i.pop(),v({type:"text",value:p}),s=i[i.length-1];continue}if(p===Lp||p===Vp||p===Tp){let b=p,$;for(t.keepQuotes!==!0&&(p="");f<u&&($=y());){if($===xn){p+=$+y();continue}if($===b){t.keepQuotes===!0&&(p+=$);break}p+=$}v({type:"text",value:p});continue}if(p===Ip){d++;let $={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};s=v($),i.push(s),v({type:"open",value:p});continue}if(p===Dp){if(s.type!=="brace"){v({type:"text",value:p});continue}let b="close";s=i.pop(),s.close=!0,v({type:b,value:p}),d--,s=i[i.length-1];continue}if(p===$p&&d>0){if(s.ranges>0){s.ranges=0;let b=s.nodes.shift();s.nodes=[b,{type:"text",value:Op(s)}]}v({type:"comma",value:p}),s.commas++;continue}if(p===Fp&&d>0&&s.commas===0){let b=s.nodes;if(d===0||b.length===0){v({type:"text",value:p});continue}if(a.type==="dot"){if(s.range=[],a.value+=p,a.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if(a.type==="range"){b.pop();let $=b[b.length-1];$.value+=a.value+p,a=$,s.ranges--;continue}v({type:"dot",value:p});continue}v({type:"text",value:p})}do if(s=i.pop(),s.type!=="root"){s.nodes.forEach(E=>{E.nodes||(E.type==="open"&&(E.isOpen=!0),E.type==="close"&&(E.isClose=!0),E.nodes||(E.type="text"),E.invalid=!0)});let b=i[i.length-1],$=b.nodes.indexOf(s);b.nodes.splice($,1,...s.nodes)}while(i.length>0);return v({type:"eos"}),o};Ps.exports=qp});var $s=w((u1,Ts)=>{"use strict";l();var Os=lr(),Bp=xs(),Up=ws(),Wp=As(),he=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let o=he.create(n,t);Array.isArray(o)?r.push(...o):r.push(o)}else r=[].concat(he.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};he.parse=(e,t={})=>Wp(e,t);he.stringify=(e,t={})=>Os(typeof e=="string"?he.parse(e,t):e,t);he.compile=(e,t={})=>(typeof e=="string"&&(e=he.parse(e,t)),Bp(e,t));he.expand=(e,t={})=>{typeof e=="string"&&(e=he.parse(e,t));let r=Up(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};he.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?he.compile(e,t):he.expand(e,t);Ts.exports=he});var Nt=w((p1,Ds)=>{"use strict";l();var Gp=B("path"),Ee="\\\\/",Fs=`[^${Ee}]`,Ie="\\.",zp="\\+",Kp="\\?",fr="\\/",Yp="(?=.)",Ms="[^/]",_n=`(?:${fr}|$)`,Ns=`(?:^|${fr})`,bn=`${Ie}{1,2}${_n}`,Xp=`(?!${Ie})`,Qp=`(?!${Ns}${bn})`,Jp=`(?!${Ie}{0,1}${_n})`,Zp=`(?!${bn})`,ed=`[^.${fr}]`,td=`${Ms}*?`,Is={DOT_LITERAL:Ie,PLUS_LITERAL:zp,QMARK_LITERAL:Kp,SLASH_LITERAL:fr,ONE_CHAR:Yp,QMARK:Ms,END_ANCHOR:_n,DOTS_SLASH:bn,NO_DOT:Xp,NO_DOTS:Qp,NO_DOT_SLASH:Jp,NO_DOTS_SLASH:Zp,QMARK_NO_DOT:ed,STAR:td,START_ANCHOR:Ns},rd={...Is,SLASH_LITERAL:`[${Ee}]`,QMARK:Fs,STAR:`${Fs}*?`,DOTS_SLASH:`${Ie}{1,2}(?:[${Ee}]|$)`,NO_DOT:`(?!${Ie})`,NO_DOTS:`(?!(?:^|[${Ee}])${Ie}{1,2}(?:[${Ee}]|$))`,NO_DOT_SLASH:`(?!${Ie}{0,1}(?:[${Ee}]|$))`,NO_DOTS_SLASH:`(?!${Ie}{1,2}(?:[${Ee}]|$))`,QMARK_NO_DOT:`[^.${Ee}]`,START_ANCHOR:`(?:^|[${Ee}])`,END_ANCHOR:`(?:[${Ee}]|$)`},nd={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"};Ds.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:nd,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:Gp.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?rd:Is}}});var It=w(ge=>{"use strict";l();var od=B("path"),id=process.platform==="win32",{REGEX_BACKSLASH:sd,REGEX_REMOVE_BACKSLASH:ad,REGEX_SPECIAL_CHARS:ld,REGEX_SPECIAL_CHARS_GLOBAL:cd}=Nt();ge.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ge.hasRegexChars=e=>ld.test(e);ge.isRegexChar=e=>e.length===1&&ge.hasRegexChars(e);ge.escapeRegex=e=>e.replace(cd,"\\$1");ge.toPosixSlashes=e=>e.replace(sd,"/");ge.removeBackslashes=e=>e.replace(ad,t=>t==="\\"?"":t);ge.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ge.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:id===!0||od.sep==="\\";ge.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ge.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ge.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ge.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Ws=w((h1,Us)=>{"use strict";l();var Ls=It(),{CHAR_ASTERISK:wn,CHAR_AT:ud,CHAR_BACKWARD_SLASH:Dt,CHAR_COMMA:fd,CHAR_DOT:Rn,CHAR_EXCLAMATION_MARK:Sn,CHAR_FORWARD_SLASH:Bs,CHAR_LEFT_CURLY_BRACE:Cn,CHAR_LEFT_PARENTHESES:En,CHAR_LEFT_SQUARE_BRACKET:pd,CHAR_PLUS:dd,CHAR_QUESTION_MARK:Vs,CHAR_RIGHT_CURLY_BRACE:md,CHAR_RIGHT_PARENTHESES:js,CHAR_RIGHT_SQUARE_BRACKET:gd}=Nt(),Hs=e=>e===Bs||e===Dt,qs=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},hd=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],c=e,u=-1,f=0,d=0,p=!1,y=!1,v=!1,b=!1,$=!1,E=!1,N=!1,P=!1,L=!1,A=!1,M=0,S,C,T={value:"",depth:0,isGlob:!1},U=()=>u>=n,h=()=>c.charCodeAt(u+1),O=()=>(S=C,c.charCodeAt(++u));for(;u<n;){C=O();let q;if(C===Dt){N=T.backslashes=!0,C=O(),C===Cn&&(E=!0);continue}if(E===!0||C===Cn){for(M++;U()!==!0&&(C=O());){if(C===Dt){N=T.backslashes=!0,O();continue}if(C===Cn){M++;continue}if(E!==!0&&C===Rn&&(C=O())===Rn){if(p=T.isBrace=!0,v=T.isGlob=!0,A=!0,o===!0)continue;break}if(E!==!0&&C===fd){if(p=T.isBrace=!0,v=T.isGlob=!0,A=!0,o===!0)continue;break}if(C===md&&(M--,M===0)){E=!1,p=T.isBrace=!0,A=!0;break}}if(o===!0)continue;break}if(C===Bs){if(i.push(u),s.push(T),T={value:"",depth:0,isGlob:!1},A===!0)continue;if(S===Rn&&u===f+1){f+=2;continue}d=u+1;continue}if(r.noext!==!0&&(C===dd||C===ud||C===wn||C===Vs||C===Sn)===!0&&h()===En){if(v=T.isGlob=!0,b=T.isExtglob=!0,A=!0,C===Sn&&u===f&&(L=!0),o===!0){for(;U()!==!0&&(C=O());){if(C===Dt){N=T.backslashes=!0,C=O();continue}if(C===js){v=T.isGlob=!0,A=!0;break}}continue}break}if(C===wn){if(S===wn&&($=T.isGlobstar=!0),v=T.isGlob=!0,A=!0,o===!0)continue;break}if(C===Vs){if(v=T.isGlob=!0,A=!0,o===!0)continue;break}if(C===pd){for(;U()!==!0&&(q=O());){if(q===Dt){N=T.backslashes=!0,O();continue}if(q===gd){y=T.isBracket=!0,v=T.isGlob=!0,A=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&C===Sn&&u===f){P=T.negated=!0,f++;continue}if(r.noparen!==!0&&C===En){if(v=T.isGlob=!0,o===!0){for(;U()!==!0&&(C=O());){if(C===En){N=T.backslashes=!0,C=O();continue}if(C===js){A=!0;break}}continue}break}if(v===!0){if(A=!0,o===!0)continue;break}}r.noext===!0&&(b=!1,v=!1);let I=c,j="",x="";f>0&&(j=c.slice(0,f),c=c.slice(f),d-=f),I&&v===!0&&d>0?(I=c.slice(0,d),x=c.slice(d)):v===!0?(I="",x=c):I=c,I&&I!==""&&I!=="/"&&I!==c&&Hs(I.charCodeAt(I.length-1))&&(I=I.slice(0,-1)),r.unescape===!0&&(x&&(x=Ls.removeBackslashes(x)),I&&N===!0&&(I=Ls.removeBackslashes(I)));let _={prefix:j,input:e,start:f,base:I,glob:x,isBrace:p,isBracket:y,isGlob:v,isExtglob:b,isGlobstar:$,negated:P,negatedExtglob:L};if(r.tokens===!0&&(_.maxDepth=0,Hs(C)||s.push(T),_.tokens=s),r.parts===!0||r.tokens===!0){let q;for(let F=0;F<i.length;F++){let z=q?q+1:f,Z=i[F],Q=e.slice(z,Z);r.tokens&&(F===0&&f!==0?(s[F].isPrefix=!0,s[F].value=j):s[F].value=Q,qs(s[F]),_.maxDepth+=s[F].depth),(F!==0||Q!=="")&&a.push(Q),q=Z}if(q&&q+1<e.length){let F=e.slice(q+1);a.push(F),r.tokens&&(s[s.length-1].value=F,qs(s[s.length-1]),_.maxDepth+=s[s.length-1].depth)}_.slashes=i,_.parts=a}return _};Us.exports=hd});var Ks=w((v1,zs)=>{"use strict";l();var pr=Nt(),ye=It(),{MAX_LENGTH:dr,POSIX_REGEX_SOURCE:yd,REGEX_NON_SPECIAL_CHARS:vd,REGEX_SPECIAL_CHARS_BACKREF:xd,REPLACEMENTS:Gs}=pr,_d=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(o=>ye.escapeRegex(o)).join("..")}return r},yt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,kn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Gs[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(dr,r.maxLength):dr,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},s=[i],a=r.capture?"":"?:",c=ye.isWindows(t),u=pr.globChars(c),f=pr.extglobChars(u),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:y,ONE_CHAR:v,DOTS_SLASH:b,NO_DOT:$,NO_DOT_SLASH:E,NO_DOTS_SLASH:N,QMARK:P,QMARK_NO_DOT:L,STAR:A,START_ANCHOR:M}=u,S=k=>`(${a}(?:(?!${M}${k.dot?b:d}).)*?)`,C=r.dot?"":$,T=r.dot?P:L,U=r.bash===!0?S(r):A;r.capture&&(U=`(${U})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let h={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=ye.removePrefix(e,h),o=e.length;let O=[],I=[],j=[],x=i,_,q=()=>h.index===o-1,F=h.peek=(k=1)=>e[h.index+k],z=h.advance=()=>e[++h.index]||"",Z=()=>e.slice(h.index+1),Q=(k="",G=0)=>{h.consumed+=k,h.index+=G},pe=k=>{h.output+=k.output!=null?k.output:k.value,Q(k.value)},se=()=>{let k=1;for(;F()==="!"&&(F(2)!=="("||F(3)==="?");)z(),h.start++,k++;return k%2===0?!1:(h.negated=!0,h.start++,!0)},Ne=k=>{h[k]++,j.push(k)},ae=k=>{h[k]--,j.pop()},V=k=>{if(x.type==="globstar"){let G=h.braces>0&&(k.type==="comma"||k.type==="brace"),R=k.extglob===!0||O.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!G&&!R&&(h.output=h.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=U,h.output+=x.output)}if(O.length&&k.type!=="paren"&&(O[O.length-1].inner+=k.value),(k.value||k.output)&&pe(k),x&&x.type==="text"&&k.type==="text"){x.value+=k.value,x.output=(x.output||"")+k.value;return}k.prev=x,s.push(k),x=k},me=(k,G)=>{let R={...f[G],conditions:1,inner:""};R.prev=x,R.parens=h.parens,R.output=h.output;let H=(r.capture?"(":"")+R.open;Ne("parens"),V({type:k,value:G,output:h.output?"":v}),V({type:"paren",extglob:!0,value:z(),output:H}),O.push(R)},dt=k=>{let G=k.close+(r.capture?")":""),R;if(k.type==="negate"){let H=U;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(H=S(r)),(H!==U||q()||/^\)+$/.test(Z()))&&(G=k.close=`)$))${H}`),k.inner.includes("*")&&(R=Z())&&/^\.[^\\/.]+$/.test(R)){let X=kn(R,{...t,fastpaths:!1}).output;G=k.close=`)${X})${H})`}k.prev.type==="bos"&&(h.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:_,output:G}),ae("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,G=e.replace(xd,(R,H,X,de,ne,cn)=>de==="\\"?(k=!0,R):de==="?"?H?H+de+(ne?P.repeat(ne.length):""):cn===0?T+(ne?P.repeat(ne.length):""):P.repeat(X.length):de==="."?d.repeat(X.length):de==="*"?H?H+de+(ne?U:""):U:H?R:`\\${R}`);return k===!0&&(r.unescape===!0?G=G.replace(/\\/g,""):G=G.replace(/\\+/g,R=>R.length%2===0?"\\\\":R?"\\":"")),G===e&&r.contains===!0?(h.output=e,h):(h.output=ye.wrapOutput(G,h,t),h)}for(;!q();){if(_=z(),_==="\0")continue;if(_==="\\"){let R=F();if(R==="/"&&r.bash!==!0||R==="."||R===";")continue;if(!R){_+="\\",V({type:"text",value:_});continue}let H=/^\\+/.exec(Z()),X=0;if(H&&H[0].length>2&&(X=H[0].length,h.index+=X,X%2!==0&&(_+="\\")),r.unescape===!0?_=z():_+=z(),h.brackets===0){V({type:"text",value:_});continue}}if(h.brackets>0&&(_!=="]"||x.value==="["||x.value==="[^")){if(r.posix!==!1&&_===":"){let R=x.value.slice(1);if(R.includes("[")&&(x.posix=!0,R.includes(":"))){let H=x.value.lastIndexOf("["),X=x.value.slice(0,H),de=x.value.slice(H+2),ne=yd[de];if(ne){x.value=X+ne,h.backtrack=!0,z(),!i.output&&s.indexOf(x)===1&&(i.output=v);continue}}}(_==="["&&F()!==":"||_==="-"&&F()==="]")&&(_=`\\${_}`),_==="]"&&(x.value==="["||x.value==="[^")&&(_=`\\${_}`),r.posix===!0&&_==="!"&&x.value==="["&&(_="^"),x.value+=_,pe({value:_});continue}if(h.quotes===1&&_!=='"'){_=ye.escapeRegex(_),x.value+=_,pe({value:_});continue}if(_==='"'){h.quotes=h.quotes===1?0:1,r.keepQuotes===!0&&V({type:"text",value:_});continue}if(_==="("){Ne("parens"),V({type:"paren",value:_});continue}if(_===")"){if(h.parens===0&&r.strictBrackets===!0)throw new SyntaxError(yt("opening","("));let R=O[O.length-1];if(R&&h.parens===R.parens+1){dt(O.pop());continue}V({type:"paren",value:_,output:h.parens?")":"\\)"}),ae("parens");continue}if(_==="["){if(r.nobracket===!0||!Z().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(yt("closing","]"));_=`\\${_}`}else Ne("brackets");V({type:"bracket",value:_});continue}if(_==="]"){if(r.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){V({type:"text",value:_,output:`\\${_}`});continue}if(h.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(yt("opening","["));V({type:"text",value:_,output:`\\${_}`});continue}ae("brackets");let R=x.value.slice(1);if(x.posix!==!0&&R[0]==="^"&&!R.includes("/")&&(_=`/${_}`),x.value+=_,pe({value:_}),r.literalBrackets===!1||ye.hasRegexChars(R))continue;let H=ye.escapeRegex(x.value);if(h.output=h.output.slice(0,-x.value.length),r.literalBrackets===!0){h.output+=H,x.value=H;continue}x.value=`(${a}${H}|${x.value})`,h.output+=x.value;continue}if(_==="{"&&r.nobrace!==!0){Ne("braces");let R={type:"brace",value:_,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};I.push(R),V(R);continue}if(_==="}"){let R=I[I.length-1];if(r.nobrace===!0||!R){V({type:"text",value:_,output:_});continue}let H=")";if(R.dots===!0){let X=s.slice(),de=[];for(let ne=X.length-1;ne>=0&&(s.pop(),X[ne].type!=="brace");ne--)X[ne].type!=="dots"&&de.unshift(X[ne].value);H=_d(de,r),h.backtrack=!0}if(R.comma!==!0&&R.dots!==!0){let X=h.output.slice(0,R.outputIndex),de=h.tokens.slice(R.tokensIndex);R.value=R.output="\\{",_=H="\\}",h.output=X;for(let ne of de)h.output+=ne.output||ne.value}V({type:"brace",value:_,output:H}),ae("braces"),I.pop();continue}if(_==="|"){O.length>0&&O[O.length-1].conditions++,V({type:"text",value:_});continue}if(_===","){let R=_,H=I[I.length-1];H&&j[j.length-1]==="braces"&&(H.comma=!0,R="|"),V({type:"comma",value:_,output:R});continue}if(_==="/"){if(x.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",s.pop(),x=i;continue}V({type:"slash",value:_,output:y});continue}if(_==="."){if(h.braces>0&&x.type==="dot"){x.value==="."&&(x.output=d);let R=I[I.length-1];x.type="dots",x.output+=_,x.value+=_,R.dots=!0;continue}if(h.braces+h.parens===0&&x.type!=="bos"&&x.type!=="slash"){V({type:"text",value:_,output:d});continue}V({type:"dot",value:_,output:d});continue}if(_==="?"){if(!(x&&x.value==="(")&&r.noextglob!==!0&&F()==="("&&F(2)!=="?"){me("qmark",_);continue}if(x&&x.type==="paren"){let H=F(),X=_;if(H==="<"&&!ye.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(Z()))&&(X=`\\${_}`),V({type:"text",value:_,output:X});continue}if(r.dot!==!0&&(x.type==="slash"||x.type==="bos")){V({type:"qmark",value:_,output:L});continue}V({type:"qmark",value:_,output:P});continue}if(_==="!"){if(r.noextglob!==!0&&F()==="("&&(F(2)!=="?"||!/[!=<:]/.test(F(3)))){me("negate",_);continue}if(r.nonegate!==!0&&h.index===0){se();continue}}if(_==="+"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){me("plus",_);continue}if(x&&x.value==="("||r.regex===!1){V({type:"plus",value:_,output:p});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||h.parens>0){V({type:"plus",value:_});continue}V({type:"plus",value:p});continue}if(_==="@"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){V({type:"at",extglob:!0,value:_,output:""});continue}V({type:"text",value:_});continue}if(_!=="*"){(_==="$"||_==="^")&&(_=`\\${_}`);let R=vd.exec(Z());R&&(_+=R[0],h.index+=R[0].length),V({type:"text",value:_});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=_,x.output=U,h.backtrack=!0,h.globstar=!0,Q(_);continue}let k=Z();if(r.noextglob!==!0&&/^\([^?]/.test(k)){me("star",_);continue}if(x.type==="star"){if(r.noglobstar===!0){Q(_);continue}let R=x.prev,H=R.prev,X=R.type==="slash"||R.type==="bos",de=H&&(H.type==="star"||H.type==="globstar");if(r.bash===!0&&(!X||k[0]&&k[0]!=="/")){V({type:"star",value:_,output:""});continue}let ne=h.braces>0&&(R.type==="comma"||R.type==="brace"),cn=O.length&&(R.type==="pipe"||R.type==="paren");if(!X&&R.type!=="paren"&&!ne&&!cn){V({type:"star",value:_,output:""});continue}for(;k.slice(0,3)==="/**";){let nr=e[h.index+4];if(nr&&nr!=="/")break;k=k.slice(3),Q("/**",3)}if(R.type==="bos"&&q()){x.type="globstar",x.value+=_,x.output=S(r),h.output=x.output,h.globstar=!0,Q(_);continue}if(R.type==="slash"&&R.prev.type!=="bos"&&!de&&q()){h.output=h.output.slice(0,-(R.output+x.output).length),R.output=`(?:${R.output}`,x.type="globstar",x.output=S(r)+(r.strictSlashes?")":"|$)"),x.value+=_,h.globstar=!0,h.output+=R.output+x.output,Q(_);continue}if(R.type==="slash"&&R.prev.type!=="bos"&&k[0]==="/"){let nr=k[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(R.output+x.output).length),R.output=`(?:${R.output}`,x.type="globstar",x.output=`${S(r)}${y}|${y}${nr})`,x.value+=_,h.output+=R.output+x.output,h.globstar=!0,Q(_+z()),V({type:"slash",value:"/",output:""});continue}if(R.type==="bos"&&k[0]==="/"){x.type="globstar",x.value+=_,x.output=`(?:^|${y}|${S(r)}${y})`,h.output=x.output,h.globstar=!0,Q(_+z()),V({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-x.output.length),x.type="globstar",x.output=S(r),x.value+=_,h.output+=x.output,h.globstar=!0,Q(_);continue}let G={type:"star",value:_,output:U};if(r.bash===!0){G.output=".*?",(x.type==="bos"||x.type==="slash")&&(G.output=C+G.output),V(G);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&r.regex===!0){G.output=_,V(G);continue}(h.index===h.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(h.output+=E,x.output+=E):r.dot===!0?(h.output+=N,x.output+=N):(h.output+=C,x.output+=C),F()!=="*"&&(h.output+=v,x.output+=v)),V(G)}for(;h.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(yt("closing","]"));h.output=ye.escapeLast(h.output,"["),ae("brackets")}for(;h.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(yt("closing",")"));h.output=ye.escapeLast(h.output,"("),ae("parens")}for(;h.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(yt("closing","}"));h.output=ye.escapeLast(h.output,"{"),ae("braces")}if(r.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${y}?`}),h.backtrack===!0){h.output="";for(let k of h.tokens)h.output+=k.output!=null?k.output:k.value,k.suffix&&(h.output+=k.suffix)}return h};kn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(dr,r.maxLength):dr,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Gs[e]||e;let i=ye.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:y,START_ANCHOR:v}=pr.globChars(i),b=r.dot?d:f,$=r.dot?p:f,E=r.capture?"":"?:",N={negated:!1,prefix:""},P=r.bash===!0?".*?":y;r.capture&&(P=`(${P})`);let L=C=>C.noglobstar===!0?P:`(${E}(?:(?!${v}${C.dot?u:s}).)*?)`,A=C=>{switch(C){case"*":return`${b}${c}${P}`;case".*":return`${s}${c}${P}`;case"*.*":return`${b}${P}${s}${c}${P}`;case"*/*":return`${b}${P}${a}${c}${$}${P}`;case"**":return b+L(r);case"**/*":return`(?:${b}${L(r)}${a})?${$}${c}${P}`;case"**/*.*":return`(?:${b}${L(r)}${a})?${$}${P}${s}${c}${P}`;case"**/.*":return`(?:${b}${L(r)}${a})?${s}${c}${P}`;default:{let T=/^(.*?)\.(\w+)$/.exec(C);if(!T)return;let U=A(T[1]);return U?U+s+T[2]:void 0}}},M=ye.removePrefix(e,N),S=A(M);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};zs.exports=kn});var Xs=w((_1,Ys)=>{"use strict";l();var bd=B("path"),wd=Ws(),Pn=Ks(),An=It(),Rd=Nt(),Sd=e=>e&&typeof e=="object"&&!Array.isArray(e),J=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(p=>J(p,t,r));return p=>{for(let y of f){let v=y(p);if(v)return v}return!1}}let n=Sd(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},i=An.isWindows(t),s=n?J.compileRe(e,t):J.makeRe(e,t,!1,!0),a=s.state;delete s.state;let c=()=>!1;if(o.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};c=J(o.ignore,f,r)}let u=(f,d=!1)=>{let{isMatch:p,match:y,output:v}=J.test(f,s,t,{glob:e,posix:i}),b={glob:e,state:a,regex:s,posix:i,input:f,output:v,match:y,isMatch:p};return typeof o.onResult=="function"&&o.onResult(b),p===!1?(b.isMatch=!1,d?b:!1):c(f)?(typeof o.onIgnore=="function"&&o.onIgnore(b),b.isMatch=!1,d?b:!1):(typeof o.onMatch=="function"&&o.onMatch(b),d?b:!0)};return r&&(u.state=a),u};J.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},s=i.format||(o?An.toPosixSlashes:null),a=e===n,c=a&&s?s(e):e;return a===!1&&(c=s?s(e):e,a=c===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=J.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};J.matchBase=(e,t,r,n=An.isWindows(r))=>(t instanceof RegExp?t:J.makeRe(t,r)).test(bd.basename(e));J.isMatch=(e,t,r)=>J(t,r)(e);J.parse=(e,t)=>Array.isArray(e)?e.map(r=>J.parse(r,t)):Pn(e,{...t,fastpaths:!1});J.scan=(e,t)=>wd(e,t);J.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},i=o.contains?"":"^",s=o.contains?"":"$",a=`${i}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=J.toRegex(a,t);return n===!0&&(c.state=e),c};J.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=Pn.fastpaths(e,t)),o.output||(o=Pn(e,t)),J.compileRe(o,t,r,n)};J.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};J.constants=Rd;Ys.exports=J});var Js=w((w1,Qs)=>{"use strict";l();Qs.exports=Xs()});var oa=w((S1,na)=>{"use strict";l();var ea=B("util"),ta=$s(),ke=Js(),On=It(),Zs=e=>e===""||e==="./",ra=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},K=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,i=new Set,s=0,a=f=>{i.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let d=ke(String(t[f]),{...r,onResult:a},!0),p=d.state.negated||d.state.negatedExtglob;p&&s++;for(let y of e){let v=d(y,!0);(p?!v.isMatch:v.isMatch)&&(p?n.add(v.output):(n.delete(v.output),o.add(v.output)))}}let u=(s===t.length?[...i]:[...o]).filter(f=>!n.has(f));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return u};K.match=K;K.matcher=(e,t)=>ke(e,t);K.isMatch=(e,t,r)=>ke(t,r)(e);K.any=K.isMatch;K.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],i=a=>{r.onResult&&r.onResult(a),o.push(a.output)},s=new Set(K(e,t,{...r,onResult:i}));for(let a of o)s.has(a)||n.add(a);return[...n]};K.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ea.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>K.contains(e,n,r));if(typeof t=="string"){if(Zs(e)||Zs(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return K.isMatch(e,t,{...r,contains:!0})};K.matchKeys=(e,t,r)=>{if(!On.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=K(Object.keys(e),t,r),o={};for(let i of n)o[i]=e[i];return o};K.some=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=ke(String(o),r);if(n.some(s=>i(s)))return!0}return!1};K.every=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=ke(String(o),r);if(!n.every(s=>i(s)))return!1}return!0};K.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ea.inspect(e)}"`);return[].concat(t).every(n=>ke(n,r)(e))};K.capture=(e,t,r)=>{let n=On.isWindows(r),i=ke.makeRe(String(e),{...r,capture:!0}).exec(n?On.toPosixSlashes(t):t);if(i)return i.slice(1).map(s=>s===void 0?"":s)};K.makeRe=(...e)=>ke.makeRe(...e);K.scan=(...e)=>ke.scan(...e);K.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let o of ta(String(n),t))r.push(ke.parse(o,t));return r};K.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!ra(e)?[e]:ta(e,t)};K.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return K.braces(e,{...t,expand:!0})};K.hasBraces=ra;na.exports=K});var pa=w(D=>{"use strict";l();Object.defineProperty(D,"__esModule",{value:!0});D.removeDuplicateSlashes=D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var Cd=B("path"),Ed=Xi(),Tn=oa(),ia="**",kd="\\",Pd=/[*?]|^!/,Ad=/\[[^[]*]/,Od=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Td=/[!*+?@]\([^(]*\)/,$d=/,|\.\./,Fd=/(?!^)\/{2,}/g;function sa(e,t={}){return!aa(e,t)}D.isStaticPattern=sa;function aa(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(kd)||Pd.test(e)||Ad.test(e)||Od.test(e)||t.extglob!==!1&&Td.test(e)||t.braceExpansion!==!1&&Md(e))}D.isDynamicPattern=aa;function Md(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return $d.test(n)}function Nd(e){return mr(e)?e.slice(1):e}D.convertToPositivePattern=Nd;function Id(e){return"!"+e}D.convertToNegativePattern=Id;function mr(e){return e.startsWith("!")&&e[1]!=="("}D.isNegativePattern=mr;function la(e){return!mr(e)}D.isPositivePattern=la;function Dd(e){return e.filter(mr)}D.getNegativePatterns=Dd;function Ld(e){return e.filter(la)}D.getPositivePatterns=Ld;function Vd(e){return e.filter(t=>!$n(t))}D.getPatternsInsideCurrentDirectory=Vd;function jd(e){return e.filter($n)}D.getPatternsOutsideCurrentDirectory=jd;function $n(e){return e.startsWith("..")||e.startsWith("./..")}D.isPatternRelatedToParentDirectory=$n;function Hd(e){return Ed(e,{flipBackslashes:!1})}D.getBaseDirectory=Hd;function qd(e){return e.includes(ia)}D.hasGlobStar=qd;function ca(e){return e.endsWith("/"+ia)}D.endsWithSlashGlobStar=ca;function Bd(e){let t=Cd.basename(e);return ca(e)||sa(t)}D.isAffectDepthOfReadingPattern=Bd;function Ud(e){return e.reduce((t,r)=>t.concat(ua(r)),[])}D.expandPatternsWithBraceExpansion=Ud;function ua(e){let t=Tn.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}D.expandBraceExpansion=ua;function Wd(e,t){let{parts:r}=Tn.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}D.getPatternParts=Wd;function fa(e,t){return Tn.makeRe(e,t)}D.makeRe=fa;function Gd(e,t){return e.map(r=>fa(r,t))}D.convertPatternsToRe=Gd;function zd(e,t){return t.some(r=>r.test(e))}D.matchAny=zd;function Kd(e){return e.replace(Fd,"/")}D.removeDuplicateSlashes=Kd});var ha=w((P1,ga)=>{"use strict";l();var Yd=B("stream"),da=Yd.PassThrough,Xd=Array.prototype.slice;ga.exports=Qd;function Qd(){let e=[],t=Xd.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let o=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let s=da(n);function a(){for(let f=0,d=arguments.length;f<d;f++)e.push(ma(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let d=f.length+1;function p(){--d>0||(r=!1,c())}function y(v){function b(){v.removeListener("merge2UnpipeEnd",b),v.removeListener("end",b),i&&v.removeListener("error",$),p()}function $(E){s.emit("error",E)}if(v._readableState.endEmitted)return p();v.on("merge2UnpipeEnd",b),v.on("end",b),i&&v.on("error",$),v.pipe(s,{end:!1}),v.resume()}for(let v=0;v<f.length;v++)y(f[v]);p()}function u(){r=!1,s.emit("queueDrain"),o&&s.end()}return s.setMaxListeners(0),s.add=a,s.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),s}function ma(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=ma(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(da(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var va=w(gr=>{"use strict";l();Object.defineProperty(gr,"__esModule",{value:!0});gr.merge=void 0;var Jd=ha();function Zd(e){let t=Jd(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>ya(e)),t.once("end",()=>ya(e)),t}gr.merge=Zd;function ya(e){e.forEach(t=>t.emit("close"))}});var xa=w(vt=>{"use strict";l();Object.defineProperty(vt,"__esModule",{value:!0});vt.isEmpty=vt.isString=void 0;function em(e){return typeof e=="string"}vt.isString=em;function tm(e){return e===""}vt.isEmpty=tm});var De=w(ce=>{"use strict";l();Object.defineProperty(ce,"__esModule",{value:!0});ce.string=ce.stream=ce.pattern=ce.path=ce.fs=ce.errno=ce.array=void 0;var rm=Di();ce.array=rm;var nm=Li();ce.errno=nm;var om=Vi();ce.fs=om;var im=Bi();ce.path=im;var sm=pa();ce.pattern=sm;var am=va();ce.stream=am;var lm=xa();ce.string=lm});var Ra=w(ue=>{"use strict";l();Object.defineProperty(ue,"__esModule",{value:!0});ue.convertPatternGroupToTask=ue.convertPatternGroupsToTasks=ue.groupPatternsByBaseDirectory=ue.getNegativePatternsAsPositive=ue.getPositivePatterns=ue.convertPatternsToTasks=ue.generate=void 0;var Re=De();function cm(e,t){let r=_a(e,t),n=_a(t.ignore,t),o=ba(r),i=wa(r,n),s=o.filter(f=>Re.pattern.isStaticPattern(f,t)),a=o.filter(f=>Re.pattern.isDynamicPattern(f,t)),c=Fn(s,i,!1),u=Fn(a,i,!0);return c.concat(u)}ue.generate=cm;function _a(e,t){let r=e;return t.braceExpansion&&(r=Re.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Re.pattern.removeDuplicateSlashes(n))}function Fn(e,t,r){let n=[],o=Re.pattern.getPatternsOutsideCurrentDirectory(e),i=Re.pattern.getPatternsInsideCurrentDirectory(e),s=Mn(o),a=Mn(i);return n.push(...Nn(s,t,r)),"."in a?n.push(In(".",i,t,r)):n.push(...Nn(a,t,r)),n}ue.convertPatternsToTasks=Fn;function ba(e){return Re.pattern.getPositivePatterns(e)}ue.getPositivePatterns=ba;function wa(e,t){return Re.pattern.getNegativePatterns(e).concat(t).map(Re.pattern.convertToPositivePattern)}ue.getNegativePatternsAsPositive=wa;function Mn(e){let t={};return e.reduce((r,n)=>{let o=Re.pattern.getBaseDirectory(n);return o in r?r[o].push(n):r[o]=[n],r},t)}ue.groupPatternsByBaseDirectory=Mn;function Nn(e,t,r){return Object.keys(e).map(n=>In(n,e[n],t,r))}ue.convertPatternGroupsToTasks=Nn;function In(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Re.pattern.convertToNegativePattern))}}ue.convertPatternGroupToTask=In});var Ca=w(hr=>{"use strict";l();Object.defineProperty(hr,"__esModule",{value:!0});hr.read=void 0;function um(e,t,r){t.fs.lstat(e,(n,o)=>{if(n!==null){Sa(r,n);return}if(!o.isSymbolicLink()||!t.followSymbolicLink){Dn(r,o);return}t.fs.stat(e,(i,s)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){Sa(r,i);return}Dn(r,o);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),Dn(r,s)})})}hr.read=um;function Sa(e,t){e(t)}function Dn(e,t){e(null,t)}});var Ea=w(yr=>{"use strict";l();Object.defineProperty(yr,"__esModule",{value:!0});yr.read=void 0;function fm(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}yr.read=fm});var ka=w(Ve=>{"use strict";l();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.createFileSystemAdapter=Ve.FILE_SYSTEM_ADAPTER=void 0;var vr=B("fs");Ve.FILE_SYSTEM_ADAPTER={lstat:vr.lstat,stat:vr.stat,lstatSync:vr.lstatSync,statSync:vr.statSync};function pm(e){return e===void 0?Ve.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ve.FILE_SYSTEM_ADAPTER),e)}Ve.createFileSystemAdapter=pm});var Pa=w(Vn=>{"use strict";l();Object.defineProperty(Vn,"__esModule",{value:!0});var dm=ka(),Ln=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=dm.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};Vn.default=Ln});var nt=w(je=>{"use strict";l();Object.defineProperty(je,"__esModule",{value:!0});je.statSync=je.stat=je.Settings=void 0;var Aa=Ca(),mm=Ea(),jn=Pa();je.Settings=jn.default;function gm(e,t,r){if(typeof t=="function"){Aa.read(e,Hn(),t);return}Aa.read(e,Hn(t),r)}je.stat=gm;function hm(e,t){let r=Hn(t);return mm.read(e,r)}je.statSync=hm;function Hn(e={}){return e instanceof jn.default?e:new jn.default(e)}});var $a=w((K1,Ta)=>{"use strict";l();var Oa;Ta.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Oa||(Oa=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Ma=w((X1,Fa)=>{"use strict";l();Fa.exports=vm;var ym=$a();function vm(e,t){let r,n,o,i=!0;Array.isArray(e)?(r=[],n=e.length):(o=Object.keys(e),r={},n=o.length);function s(c){function u(){t&&t(c,r),t=null}i?ym(u):u()}function a(c,u,f){r[c]=f,(--n===0||u)&&s(u)}n?o?o.forEach(function(c){e[c](function(u,f){a(c,u,f)})}):e.forEach(function(c,u){c(function(f,d){a(u,f,d)})}):s(null),i=!1}});var qn=w(_r=>{"use strict";l();Object.defineProperty(_r,"__esModule",{value:!0});_r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xr=process.versions.node.split(".");if(xr[0]===void 0||xr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Na=Number.parseInt(xr[0],10),xm=Number.parseInt(xr[1],10),Ia=10,_m=10,bm=Na>Ia,wm=Na===Ia&&xm>=_m;_r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=bm||wm});var Da=w(br=>{"use strict";l();Object.defineProperty(br,"__esModule",{value:!0});br.createDirentFromStats=void 0;var Bn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Rm(e,t){return new Bn(e,t)}br.createDirentFromStats=Rm});var Un=w(wr=>{"use strict";l();Object.defineProperty(wr,"__esModule",{value:!0});wr.fs=void 0;var Sm=Da();wr.fs=Sm});var Wn=w(Rr=>{"use strict";l();Object.defineProperty(Rr,"__esModule",{value:!0});Rr.joinPathSegments=void 0;function Cm(e,t,r){return e.endsWith(r)?e+t:e+r+t}Rr.joinPathSegments=Cm});var Ba=w(He=>{"use strict";l();Object.defineProperty(He,"__esModule",{value:!0});He.readdir=He.readdirWithFileTypes=He.read=void 0;var Em=nt(),La=Ma(),km=qn(),Va=Un(),ja=Wn();function Pm(e,t,r){if(!t.stats&&km.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ha(e,t,r);return}qa(e,t,r)}He.read=Pm;function Ha(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,o)=>{if(n!==null){Sr(r,n);return}let i=o.map(a=>({dirent:a,name:a.name,path:ja.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Gn(r,i);return}let s=i.map(a=>Am(a,t));La(s,(a,c)=>{if(a!==null){Sr(r,a);return}Gn(r,c)})})}He.readdirWithFileTypes=Ha;function Am(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,o)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=Va.fs.createDirentFromStats(e.name,o),r(null,e)})}}function qa(e,t,r){t.fs.readdir(e,(n,o)=>{if(n!==null){Sr(r,n);return}let i=o.map(s=>{let a=ja.joinPathSegments(e,s,t.pathSegmentSeparator);return c=>{Em.stat(a,t.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let d={name:s,path:a,dirent:Va.fs.createDirentFromStats(s,f)};t.stats&&(d.stats=f),c(null,d)})}});La(i,(s,a)=>{if(s!==null){Sr(r,s);return}Gn(r,a)})})}He.readdir=qa;function Sr(e,t){e(t)}function Gn(e,t){e(null,t)}});var Ka=w(qe=>{"use strict";l();Object.defineProperty(qe,"__esModule",{value:!0});qe.readdir=qe.readdirWithFileTypes=qe.read=void 0;var Om=nt(),Tm=qn(),Ua=Un(),Wa=Wn();function $m(e,t){return!t.stats&&Tm.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Ga(e,t):za(e,t)}qe.read=$m;function Ga(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let o={dirent:n,name:n.name,path:Wa.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(o.path);o.dirent=Ua.fs.createDirentFromStats(o.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return o})}qe.readdirWithFileTypes=Ga;function za(e,t){return t.fs.readdirSync(e).map(n=>{let o=Wa.joinPathSegments(e,n,t.pathSegmentSeparator),i=Om.statSync(o,t.fsStatSettings),s={name:n,path:o,dirent:Ua.fs.createDirentFromStats(n,i)};return t.stats&&(s.stats=i),s})}qe.readdir=za});var Ya=w(Be=>{"use strict";l();Object.defineProperty(Be,"__esModule",{value:!0});Be.createFileSystemAdapter=Be.FILE_SYSTEM_ADAPTER=void 0;var xt=B("fs");Be.FILE_SYSTEM_ADAPTER={lstat:xt.lstat,stat:xt.stat,lstatSync:xt.lstatSync,statSync:xt.statSync,readdir:xt.readdir,readdirSync:xt.readdirSync};function Fm(e){return e===void 0?Be.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Be.FILE_SYSTEM_ADAPTER),e)}Be.createFileSystemAdapter=Fm});var Xa=w(Kn=>{"use strict";l();Object.defineProperty(Kn,"__esModule",{value:!0});var Mm=B("path"),Nm=nt(),Im=Ya(),zn=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Im.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Mm.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Nm.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Kn.default=zn});var Cr=w(Ue=>{"use strict";l();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.Settings=Ue.scandirSync=Ue.scandir=void 0;var Qa=Ba(),Dm=Ka(),Yn=Xa();Ue.Settings=Yn.default;function Lm(e,t,r){if(typeof t=="function"){Qa.read(e,Xn(),t);return}Qa.read(e,Xn(t),r)}Ue.scandir=Lm;function Vm(e,t){let r=Xn(t);return Dm.read(e,r)}Ue.scandirSync=Vm;function Xn(e={}){return e instanceof Yn.default?e:new Yn.default(e)}});var Za=w((hb,Ja)=>{"use strict";l();function jm(e){var t=new e,r=t;function n(){var i=t;return i.next?t=i.next:(t=new e,r=t),i.next=null,i}function o(i){r.next=i,r=i}return{get:n,release:o}}Ja.exports=jm});var tl=w((vb,Qn)=>{"use strict";l();var Hm=Za();function el(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=Hm(qm),o=null,i=null,s=0,a=null,c={push:b,drain:xe,saturated:xe,pause:f,paused:!1,get concurrency(){return r},set concurrency(A){if(!(A>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=A,!c.paused)for(;o&&s<r;)s++,E()},running:u,resume:y,idle:v,length:d,getQueue:p,unshift:$,empty:xe,kill:N,killAndDrain:P,error:L};return c;function u(){return s}function f(){c.paused=!0}function d(){for(var A=o,M=0;A;)A=A.next,M++;return M}function p(){for(var A=o,M=[];A;)M.push(A.value),A=A.next;return M}function y(){if(c.paused){if(c.paused=!1,o===null){s++,E();return}for(;o&&s<r;)s++,E()}}function v(){return s===0&&c.length()===0}function b(A,M){var S=n.get();S.context=e,S.release=E,S.value=A,S.callback=M||xe,S.errorHandler=a,s>=r||c.paused?i?(i.next=S,i=S):(o=S,i=S,c.saturated()):(s++,t.call(e,S.value,S.worked))}function $(A,M){var S=n.get();S.context=e,S.release=E,S.value=A,S.callback=M||xe,S.errorHandler=a,s>=r||c.paused?o?(S.next=o,o=S):(o=S,i=S,c.saturated()):(s++,t.call(e,S.value,S.worked))}function E(A){A&&n.release(A);var M=o;M&&s<=r?c.paused?s--:(i===o&&(i=null),o=M.next,M.next=null,t.call(e,M.value,M.worked),i===null&&c.empty()):--s===0&&c.drain()}function N(){o=null,i=null,c.drain=xe}function P(){o=null,i=null,c.drain(),c.drain=xe}function L(A){a=A}}function xe(){}function qm(){this.value=null,this.callback=xe,this.next=null,this.release=xe,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var o=e.callback,i=e.errorHandler,s=e.value;e.value=null,e.callback=xe,e.errorHandler&&i(r,s),o.call(e.context,r,n),e.release(e)}}function Bm(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,d){t.call(this,f).then(function(p){d(null,p)},d)}var o=el(e,n,r),i=o.push,s=o.unshift;return o.push=a,o.unshift=c,o.drained=u,o;function a(f){var d=new Promise(function(p,y){i(f,function(v,b){if(v){y(v);return}p(b)})});return d.catch(xe),d}function c(f){var d=new Promise(function(p,y){s(f,function(v,b){if(v){y(v);return}p(b)})});return d.catch(xe),d}function u(){if(o.idle())return new Promise(function(p){p()});var f=o.drain,d=new Promise(function(p){o.drain=function(){f(),p()}});return d}}Qn.exports=el;Qn.exports.promise=Bm});var Er=w(Pe=>{"use strict";l();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.joinPathSegments=Pe.replacePathSegmentSeparator=Pe.isAppliedFilter=Pe.isFatalError=void 0;function Um(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Pe.isFatalError=Um;function Wm(e,t){return e===null||e(t)}Pe.isAppliedFilter=Wm;function Gm(e,t){return e.split(/[/\\]/).join(t)}Pe.replacePathSegmentSeparator=Gm;function zm(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Pe.joinPathSegments=zm});var eo=w(Zn=>{"use strict";l();Object.defineProperty(Zn,"__esModule",{value:!0});var Km=Er(),Jn=class{constructor(t,r){this._root=t,this._settings=r,this._root=Km.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Zn.default=Jn});var no=w(ro=>{"use strict";l();Object.defineProperty(ro,"__esModule",{value:!0});var Ym=B("events"),Xm=Cr(),Qm=tl(),kr=Er(),Jm=eo(),to=class extends Jm.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Xm.scandir,this._emitter=new Ym.EventEmitter,this._queue=Qm(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,o=>{o!==null&&this._handleError(o)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,o)=>{if(n!==null){r(n,void 0);return}for(let i of o)this._handleEntry(i,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!kr.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=kr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),kr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&kr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ro.default=to});var rl=w(io=>{"use strict";l();Object.defineProperty(io,"__esModule",{value:!0});var Zm=no(),oo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Zm.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{eg(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{tg(t,this._storage)}),this._reader.read()}};io.default=oo;function eg(e,t){e(t)}function tg(e,t){e(null,t)}});var nl=w(ao=>{"use strict";l();Object.defineProperty(ao,"__esModule",{value:!0});var rg=B("stream"),ng=no(),so=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new ng.default(this._root,this._settings),this._stream=new rg.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};ao.default=so});var ol=w(co=>{"use strict";l();Object.defineProperty(co,"__esModule",{value:!0});var og=Cr(),Pr=Er(),ig=eo(),lo=class extends ig.default{constructor(){super(...arguments),this._scandir=og.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let o of n)this._handleEntry(o,r)}catch(n){this._handleError(n)}}_handleError(t){if(Pr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Pr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Pr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Pr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};co.default=lo});var il=w(fo=>{"use strict";l();Object.defineProperty(fo,"__esModule",{value:!0});var sg=ol(),uo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sg.default(this._root,this._settings)}read(){return this._reader.read()}};fo.default=uo});var sl=w(mo=>{"use strict";l();Object.defineProperty(mo,"__esModule",{value:!0});var ag=B("path"),lg=Cr(),po=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ag.sep),this.fsScandirSettings=new lg.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};mo.default=po});var Or=w(Ae=>{"use strict";l();Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Settings=Ae.walkStream=Ae.walkSync=Ae.walk=void 0;var al=rl(),cg=nl(),ug=il(),go=sl();Ae.Settings=go.default;function fg(e,t,r){if(typeof t=="function"){new al.default(e,Ar()).read(t);return}new al.default(e,Ar(t)).read(r)}Ae.walk=fg;function pg(e,t){let r=Ar(t);return new ug.default(e,r).read()}Ae.walkSync=pg;function dg(e,t){let r=Ar(t);return new cg.default(e,r).read()}Ae.walkStream=dg;function Ar(e={}){return e instanceof go.default?e:new go.default(e)}});var Tr=w(yo=>{"use strict";l();Object.defineProperty(yo,"__esModule",{value:!0});var mg=B("path"),gg=nt(),ll=De(),ho=class{constructor(t){this._settings=t,this._fsStatSettings=new gg.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return mg.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:ll.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!ll.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};yo.default=ho});var _o=w(xo=>{"use strict";l();Object.defineProperty(xo,"__esModule",{value:!0});var hg=B("stream"),yg=nt(),vg=Or(),xg=Tr(),vo=class extends xg.default{constructor(){super(...arguments),this._walkStream=vg.walkStream,this._stat=yg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),o=new hg.PassThrough({objectMode:!0});o._write=(i,s,a)=>this._getEntry(n[i],t[i],r).then(c=>{c!==null&&r.entryFilter(c)&&o.push(c),i===n.length-1&&o.end(),a()}).catch(a);for(let i=0;i<n.length;i++)o.write(i);return o}_getEntry(t,r,n){return this._getStat(t).then(o=>this._makeEntry(o,r)).catch(o=>{if(n.errorFilter(o))return null;throw o})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(o,i)=>o===null?r(i):n(o))})}};xo.default=vo});var cl=w(wo=>{"use strict";l();Object.defineProperty(wo,"__esModule",{value:!0});var _g=Or(),bg=Tr(),wg=_o(),bo=class extends bg.default{constructor(){super(...arguments),this._walkAsync=_g.walk,this._readerStream=new wg.default(this._settings)}dynamic(t,r){return new Promise((n,o)=>{this._walkAsync(t,r,(i,s)=>{i===null?n(s):o(i)})})}async static(t,r){let n=[],o=this._readerStream.static(t,r);return new Promise((i,s)=>{o.once("error",s),o.on("data",a=>n.push(a)),o.once("end",()=>i(n))})}};wo.default=bo});var ul=w(So=>{"use strict";l();Object.defineProperty(So,"__esModule",{value:!0});var Lt=De(),Ro=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return Lt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Lt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Lt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Lt.array.splitWhen(t,r=>r.dynamic&&Lt.pattern.hasGlobStar(r.pattern))}};So.default=Ro});var fl=w(Eo=>{"use strict";l();Object.defineProperty(Eo,"__esModule",{value:!0});var Rg=ul(),Co=class extends Rg.default{match(t){let r=t.split("/"),n=r.length,o=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of o){let s=i.sections[0];if(!i.complete&&n>s.length||r.every((c,u)=>{let f=i.segments[u];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};Eo.default=Co});var pl=w(Po=>{"use strict";l();Object.defineProperty(Po,"__esModule",{value:!0});var $r=De(),Sg=fl(),ko=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let o=this._getMatcher(r),i=this._getNegativePatternsRe(n);return s=>this._filter(t,s,o,i)}_getMatcher(t){return new Sg.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter($r.pattern.isAffectDepthOfReadingPattern);return $r.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,o){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=$r.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,o)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let o=t.split("/").length;return n-o}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!$r.pattern.matchAny(t,r)}};Po.default=ko});var dl=w(Oo=>{"use strict";l();Object.defineProperty(Oo,"__esModule",{value:!0});var ot=De(),Ao=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=ot.pattern.convertPatternsToRe(t,this._micromatchOptions),o=ot.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return i=>this._filter(i,n,o)}_filter(t,r,n){let o=ot.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(o,n))return!1;let i=t.dirent.isDirectory(),s=this._isMatchToPatterns(o,r,i)&&!this._isMatchToPatterns(o,n,i);return this._settings.unique&&s&&this._createIndexRecord(o),s}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=ot.path.makeAbsolute(this._settings.cwd,t);return ot.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let o=ot.pattern.matchAny(t,r);return!o&&n?ot.pattern.matchAny(t+"/",r):o}};Oo.default=Ao});var ml=w($o=>{"use strict";l();Object.defineProperty($o,"__esModule",{value:!0});var Cg=De(),To=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Cg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};$o.default=To});var hl=w(Mo=>{"use strict";l();Object.defineProperty(Mo,"__esModule",{value:!0});var gl=De(),Fo=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=gl.path.makeAbsolute(this._settings.cwd,r),r=gl.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Mo.default=Fo});var Fr=w(Io=>{"use strict";l();Object.defineProperty(Io,"__esModule",{value:!0});var Eg=B("path"),kg=pl(),Pg=dl(),Ag=ml(),Og=hl(),No=class{constructor(t){this._settings=t,this.errorFilter=new Ag.default(this._settings),this.entryFilter=new Pg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new kg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Og.default(this._settings)}_getRootDirectory(t){return Eg.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Io.default=No});var yl=w(Lo=>{"use strict";l();Object.defineProperty(Lo,"__esModule",{value:!0});var Tg=cl(),$g=Fr(),Do=class extends $g.default{constructor(){super(...arguments),this._reader=new Tg.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(i=>n.transform(i))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Lo.default=Do});var vl=w(jo=>{"use strict";l();Object.defineProperty(jo,"__esModule",{value:!0});var Fg=B("stream"),Mg=_o(),Ng=Fr(),Vo=class extends Ng.default{constructor(){super(...arguments),this._reader=new Mg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),o=this.api(r,t,n),i=new Fg.Readable({objectMode:!0,read:()=>{}});return o.once("error",s=>i.emit("error",s)).on("data",s=>i.emit("data",n.transform(s))).once("end",()=>i.emit("end")),i.once("close",()=>o.destroy()),i}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};jo.default=Vo});var xl=w(qo=>{"use strict";l();Object.defineProperty(qo,"__esModule",{value:!0});var Ig=nt(),Dg=Or(),Lg=Tr(),Ho=class extends Lg.default{constructor(){super(...arguments),this._walkSync=Dg.walkSync,this._statSync=Ig.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let o of t){let i=this._getFullEntryPath(o),s=this._getEntry(i,o,r);s===null||!r.entryFilter(s)||n.push(s)}return n}_getEntry(t,r,n){try{let o=this._getStat(t);return this._makeEntry(o,r)}catch(o){if(n.errorFilter(o))return null;throw o}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};qo.default=Ho});var _l=w(Uo=>{"use strict";l();Object.defineProperty(Uo,"__esModule",{value:!0});var Vg=xl(),jg=Fr(),Bo=class extends jg.default{constructor(){super(...arguments),this._reader=new Vg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Uo.default=Bo});var bl=w(bt=>{"use strict";l();Object.defineProperty(bt,"__esModule",{value:!0});bt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var _t=B("fs"),Hg=B("os"),qg=Math.max(Hg.cpus().length,1);bt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:_t.lstat,lstatSync:_t.lstatSync,stat:_t.stat,statSync:_t.statSync,readdir:_t.readdir,readdirSync:_t.readdirSync};var Wo=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,qg),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(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},bt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};bt.default=Wo});var Mr=w((mw,Rl)=>{"use strict";l();var wl=Ra(),Bg=yl(),Ug=vl(),Wg=_l(),Go=bl(),_e=De();async function zo(e,t){Se(e);let r=Ko(e,Bg.default,t),n=await Promise.all(r);return _e.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(u,f){Se(u);let d=Ko(u,Wg.default,f);return _e.array.flatten(d)}e.sync=t;function r(u,f){Se(u);let d=Ko(u,Ug.default,f);return _e.stream.merge(d)}e.stream=r;function n(u,f){Se(u);let d=[].concat(u),p=new Go.default(f);return wl.generate(d,p)}e.generateTasks=n;function o(u,f){Se(u);let d=new Go.default(f);return _e.pattern.isDynamicPattern(u,d)}e.isDynamicPattern=o;function i(u){return Se(u),_e.path.escape(u)}e.escapePath=i;function s(u){return Se(u),_e.path.convertPathToPattern(u)}e.convertPathToPattern=s;let a;(function(u){function f(p){return Se(p),_e.path.escapePosixPath(p)}u.escapePath=f;function d(p){return Se(p),_e.path.convertPosixPathToPattern(p)}u.convertPathToPattern=d})(a=e.posix||(e.posix={}));let c;(function(u){function f(p){return Se(p),_e.path.escapeWindowsPath(p)}u.escapePath=f;function d(p){return Se(p),_e.path.convertWindowsPathToPattern(p)}u.convertPathToPattern=d})(c=e.win32||(e.win32={}))})(zo||(zo={}));function Ko(e,t,r){let n=[].concat(e),o=new Go.default(r),i=wl.generate(n,o),s=new t(o);return i.map(s.read,s)}function Se(e){if(![].concat(e).every(n=>_e.string.isString(n)&&!_e.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Rl.exports=zo});var Nl=w((Ow,Ml)=>{"use strict";l();var{hasOwnProperty:Yo}=Object.prototype,Xo=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
|
|
4
4
|
`:`
|
|
5
|
-
`,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=De(i.filter(u=>e[u]===null||Array.isArray(e[u])||typeof e[u]!="object").map(u=>Array.isArray(e[u])?`${u}[]`:u).concat([""]).reduce((u,f)=>De(u).length>=De(f).length?u:f)).length);let a="",c=t.bracketedArray?"[]":"";for(let u of i){let f=e[u];if(f&&Array.isArray(f))for(let d of f)a+=De(`${u}${c}`).padEnd(s," ")+n+De(d)+r;else f&&typeof f=="object"?o.push(u):a+=De(u).padEnd(s," ")+n+De(f)+r}t.section&&a.length&&(a="["+De(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of o){let f=$l(u,".").join("\\."),d=(t.section?t.section+".":"")+f,p=Xo(e[u],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function $l(e,t){var r=0,n=0,o=0,i=[];do if(o=e.indexOf(t,r),o!==-1){if(r=o+t.length,o>0&&e[o-1]==="\\")continue;i.push(e.slice(n,o)),n=o+t.length}while(o!==-1);return i.push(e.slice(n)),i}var Tl=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,o=null,i=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g),a={};for(let u of s){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let f=u.match(i);if(!f)continue;if(f[1]!==void 0){if(o=Nr(f[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=Nr(f[2]),p;t.bracketedArray?p=d.length>2&&d.slice(-2)==="[]":(a[d]=(a?.[d]||0)+1,p=a[d]>1);let y=p?d.slice(0,-2):d;if(y==="__proto__")continue;let v=f[3]?Nr(f[4]):!0,b=v==="true"||v==="false"||v==="null"?JSON.parse(v):v;p&&(Yo.call(n,y)?Array.isArray(n[y])||(n[y]=[n[y]]):n[y]=[]),Array.isArray(n[y])?n[y].push(b):n[y]=b}let c=[];for(let u of Object.keys(r)){if(!Yo.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let f=$l(u,".");n=r;let d=f.pop(),p=d.replace(/\\\./g,".");for(let y of f)y!=="__proto__"&&((!Yo.call(n,y)||typeof n[y]!="object")&&(n[y]=Object.create(null)),n=n[y]);n===r&&p===d||(n[p]=r[u],c.push(u))}for(let u of c)delete r[u];return r},Fl=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),De=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Fl(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Nr=(e,t)=>{if(e=(e||"").trim(),Fl(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let r=!1,n="";for(let o=0,i=e.length;o<i;o++){let s=e.charAt(o);if(r)"\\;#".indexOf(s)!==-1?n+=s:n+="\\"+s,r=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?r=!0:n+=s}}return r&&(n+="\\"),n.trim()}return e};Ml.exports={parse:Tl,decode:Tl,stringify:Xo,encode:Xo,safe:De,unsafe:Nr}});var Zo=R((LR,jl)=>{"use strict";l();var Zg=B("os");jl.exports=Zg.homedir||function(){var t=process.env.HOME,r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||t||null:process.platform==="darwin"?t||(r?"/Users/"+r:null):process.platform==="linux"?t||(process.getuid()===0?"/root":r?"/home/"+r:null):t||null}});var ei=R((jR,Hl)=>{"use strict";l();Hl.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(r,n){return n};var t=new Error().stack;return Error.prepareStackTrace=e,t[2].getFileName()}});var ql=R((qR,Ht)=>{"use strict";l();var eh=process.platform==="win32",th=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,ti={};function rh(e){return th.exec(e).slice(1)}ti.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=rh(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0]===t[1]?t[0]:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};var nh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,ri={};function oh(e){return nh.exec(e).slice(1)}ri.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=oh(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};eh?Ht.exports=ti.parse:Ht.exports=ri.parse;Ht.exports.posix=ri.parse;Ht.exports.win32=ti.parse});var ni=R((UR,Gl)=>{"use strict";l();var Wl=B("path"),Bl=Wl.parse||ql(),Ul=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=Bl(t);i.dir!==o[o.length-1];)o.push(i.dir),i=Bl(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(c){return Wl.resolve(n,a,c)}))},[])};Gl.exports=function(t,r,n){var o=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(n,t,function(){return Ul(t,o)},r);var i=Ul(t,o);return r&&r.paths?i.concat(r.paths):i}});var oi=R((GR,zl)=>{"use strict";l();zl.exports=function(e,t){return t||{}}});var Xl=R((KR,Yl)=>{"use strict";l();var ih="Function.prototype.bind called on incompatible ",sh=Object.prototype.toString,ah=Math.max,lh="[object Function]",Kl=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},ch=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},uh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Yl.exports=function(t){var r=this;if(typeof r!="function"||sh.apply(r)!==lh)throw new TypeError(ih+r);for(var n=ch(arguments,1),o,i=function(){if(this instanceof o){var f=r.apply(this,Kl(n,arguments));return Object(f)===f?f:this}return r.apply(t,Kl(n,arguments))},s=ah(0,r.length-n.length),a=[],c=0;c<s;c++)a[c]="$"+c;if(o=Function("binder","return function ("+uh(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var Jl=R((XR,Ql)=>{"use strict";l();var fh=Xl();Ql.exports=Function.prototype.bind||fh});var ec=R((JR,Zl)=>{"use strict";l();var ph=Function.prototype.call,dh=Object.prototype.hasOwnProperty,mh=Jl();Zl.exports=mh.call(ph,dh)});var tc=R((ew,gh)=>{gh.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var qt=R((tw,oc)=>{"use strict";l();var hh=ec();function yh(e,t){for(var r=e.split("."),n=t.split(" "),o=n.length>1?n[0]:"=",i=(n.length>1?n[1]:n[0]).split("."),s=0;s<3;++s){var a=parseInt(r[s]||0,10),c=parseInt(i[s]||0,10);if(a!==c)return o==="<"?a<c:o===">="?a>=c:!1}return o===">="}function rc(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!yh(e,r[n]))return!1;return!0}function vh(e,t){if(typeof t=="boolean")return t;var r=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof r!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&typeof t=="object"){for(var n=0;n<t.length;++n)if(rc(r,t[n]))return!0;return!1}return rc(r,t)}var nc=tc();oc.exports=function(t,r){return hh(nc,t)&&vh(r,nc[t])}});var ac=R((nw,sc)=>{"use strict";l();var it=B("fs"),xh=Zo(),re=B("path"),_h=ei(),bh=ni(),Rh=oi(),wh=qt(),Sh=process.platform!=="win32"&&it.realpath&&typeof it.realpath.native=="function"?it.realpath.native:it.realpath,ic=xh(),Ch=function(){return[re.join(ic,".node_modules"),re.join(ic,".node_libraries")]},Eh=function(t,r){it.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},kh=function(t,r){it.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},Ph=function(t,r){Sh(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},Bt=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},Ah=function(t,r,n){t(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch{n(null)}})},Oh=function(t,r,n){for(var o=bh(r,n,t),i=0;i<o.length;i++)o[i]=re.join(o[i],t);return o};sc.exports=function(t,r,n){var o=n,i=r;if(typeof r=="function"&&(o=i,i={}),typeof t!="string"){var s=new TypeError("Path must be a string.");return process.nextTick(function(){o(s)})}i=Rh(t,i);var a=i.isFile||Eh,c=i.isDirectory||kh,u=i.readFile||it.readFile,f=i.realpath||Ph,d=i.readPackage||Ah;if(i.readFile&&i.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(p)})}var y=i.packageIterator,v=i.extensions||[".js"],b=i.includeCoreModules!==!1,$=i.basedir||re.dirname(_h()),E=i.filename||$;i.paths=i.paths||Ch();var N=re.resolve($);Bt(f,N,i,function(h,O){h?o(h):L(O)});var P;function L(h){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))P=re.resolve(h,t),(t==="."||t===".."||t.slice(-1)==="/")&&(P+="/"),/\/$/.test(t)&&P===h?C(P,i.package,A):M(P,i.package,A);else{if(b&&wh(t))return o(null,t);U(t,h,function(O,I,j){if(O)o(O);else{if(I)return Bt(f,I,i,function(_,q){_?o(_):o(null,q,j)});var x=new Error("Cannot find module '"+t+"' from '"+E+"'");x.code="MODULE_NOT_FOUND",o(x)}})}}function A(h,O,I){h?o(h):O?o(null,O,I):C(P,function(j,x,_){if(j)o(j);else if(x)Bt(f,x,i,function(F,z){F?o(F):o(null,z,_)});else{var q=new Error("Cannot find module '"+t+"' from '"+E+"'");q.code="MODULE_NOT_FOUND",o(q)}})}function M(h,O,I){var j=O,x=I;typeof j=="function"&&(x=j,j=void 0);var _=[""].concat(v);q(_,h,j);function q(F,z,Z){if(F.length===0)return x(null,void 0,Z);var Q=z+F[0],pe=Z;pe?se(null,pe):S(re.dirname(Q),se);function se(ae,V,me){if(pe=V,ae)return x(ae);if(me&&pe&&i.pathFilter){var dt=re.relative(me,Q),k=dt.slice(0,dt.length-F[0].length),G=i.pathFilter(pe,z,k);if(G)return q([""].concat(v.slice()),re.resolve(me,G),pe)}a(Q,Me)}function Me(ae,V){if(ae)return x(ae);if(V)return x(null,Q,pe);q(F.slice(1),z,pe)}}}function S(h,O){if(h===""||h==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(h)||/[/\\]node_modules[/\\]*$/.test(h))return O(null);Bt(f,h,i,function(I,j){if(I)return S(re.dirname(h),O);var x=re.join(j,"package.json");a(x,function(_,q){if(!q)return S(re.dirname(h),O);d(u,x,function(F,z){F&&O(F);var Z=z;Z&&i.packageFilter&&(Z=i.packageFilter(Z,x)),O(null,Z,h)})})})}function C(h,O,I){var j=I,x=O;typeof x=="function"&&(j=x,x=i.package),Bt(f,h,i,function(_,q){if(_)return j(_);var F=re.join(q,"package.json");a(F,function(z,Z){if(z)return j(z);if(!Z)return M(re.join(h,"index"),x,j);d(u,F,function(Q,pe){if(Q)return j(Q);var se=pe;if(se&&i.packageFilter&&(se=i.packageFilter(se,F)),se&&se.main){if(typeof se.main!="string"){var Me=new TypeError("package \u201C"+se.name+"\u201D `main` must be a string");return Me.code="INVALID_PACKAGE_MAIN",j(Me)}(se.main==="."||se.main==="./")&&(se.main="index"),M(re.resolve(h,se.main),se,function(ae,V,me){if(ae)return j(ae);if(V)return j(null,V,me);if(!me)return M(re.join(h,"index"),me,j);var dt=re.resolve(h,me.main);C(dt,me,function(k,G,w){if(k)return j(k);if(G)return j(null,G,w);M(re.join(h,"index"),w,j)})});return}M(re.join(h,"/index"),se,j)})})})}function T(h,O){if(O.length===0)return h(null,void 0);var I=O[0];c(re.dirname(I),j);function j(q,F){if(q)return h(q);if(!F)return T(h,O.slice(1));M(I,i.package,x)}function x(q,F,z){if(q)return h(q);if(F)return h(null,F,z);C(I,i.package,_)}function _(q,F,z){if(q)return h(q);if(F)return h(null,F,z);T(h,O.slice(1))}}function U(h,O,I){var j=function(){return Oh(h,O,i)};T(I,y?y(h,O,j,i):j())}}});var lc=R((iw,Th)=>{Th.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var pc=R((sw,fc)=>{"use strict";l();var $h=qt(),cc=lc(),uc={};for(Dr in cc)Object.prototype.hasOwnProperty.call(cc,Dr)&&(uc[Dr]=$h(Dr));var Dr;fc.exports=uc});var mc=R((lw,dc)=>{"use strict";l();var Fh=qt();dc.exports=function(t){return Fh(t)}});var yc=R((uw,hc)=>{"use strict";l();var Mh=qt(),st=B("fs"),fe=B("path"),Nh=Zo(),Ih=ei(),Dh=ni(),Lh=oi(),Vh=process.platform!=="win32"&&st.realpathSync&&typeof st.realpathSync.native=="function"?st.realpathSync.native:st.realpathSync,gc=Nh(),jh=function(){return[fe.join(gc,".node_modules"),fe.join(gc,".node_libraries")]},Hh=function(t){try{var r=st.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},qh=function(t){try{var r=st.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},Bh=function(t){try{return Vh(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Ut=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},Uh=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch{}},Wh=function(t,r,n){for(var o=Dh(r,n,t),i=0;i<o.length;i++)o[i]=fe.join(o[i],t);return o};hc.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=Lh(t,r),o=n.isFile||Hh,i=n.readFileSync||st.readFileSync,s=n.isDirectory||qh,a=n.realpathSync||Bh,c=n.readPackageSync||Uh;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var u=n.packageIterator,f=n.extensions||[".js"],d=n.includeCoreModules!==!1,p=n.basedir||fe.dirname(Ih()),y=n.filename||p;n.paths=n.paths||jh();var v=Ut(a,fe.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var b=fe.resolve(v,t);(t==="."||t===".."||t.slice(-1)==="/")&&(b+="/");var $=P(b)||A(b);if($)return Ut(a,$,n)}else{if(d&&Mh(t))return t;var E=M(t,v);if(E)return Ut(a,E,n)}var N=new Error("Cannot find module '"+t+"' from '"+y+"'");throw N.code="MODULE_NOT_FOUND",N;function P(S){var C=L(fe.dirname(S));if(C&&C.dir&&C.pkg&&n.pathFilter){var T=fe.relative(C.dir,S),U=n.pathFilter(C.pkg,S,T);U&&(S=fe.resolve(C.dir,U))}if(o(S))return S;for(var h=0;h<f.length;h++){var O=S+f[h];if(o(O))return O}}function L(S){if(!(S===""||S==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(S))&&!/[/\\]node_modules[/\\]*$/.test(S)){var C=fe.join(Ut(a,S,n),"package.json");if(!o(C))return L(fe.dirname(S));var T=c(i,C);return T&&n.packageFilter&&(T=n.packageFilter(T,S)),{pkg:T,dir:S}}}function A(S){var C=fe.join(Ut(a,S,n),"/package.json");if(o(C)){try{var T=c(i,C)}catch{}if(T&&n.packageFilter&&(T=n.packageFilter(T,S)),T&&T.main){if(typeof T.main!="string"){var U=new TypeError("package \u201C"+T.name+"\u201D `main` must be a string");throw U.code="INVALID_PACKAGE_MAIN",U}(T.main==="."||T.main==="./")&&(T.main="index");try{var h=P(fe.resolve(S,T.main));if(h)return h;var O=A(fe.resolve(S,T.main));if(O)return O}catch{}}}return P(fe.join(S,"/index"))}function M(S,C){for(var T=function(){return Wh(S,C,n)},U=u?u(S,C,T,n):T(),h=0;h<U.length;h++){var O=U[h];if(s(fe.dirname(O))){var I=P(O);if(I)return I;var j=A(O);if(j)return j}}}}});var xc=R((pw,vc)=>{"use strict";l();var Lr=ac();Lr.core=pc();Lr.isCore=mc();Lr.sync=yc();vc.exports=Lr});l();import S_ from"node:process";import C_ from"yargs";import{hideBin as E_}from"yargs/helpers";var mt="0.19.11";l();var Re=ee(le(),1),Jc=ee(Fr(),1);import{dirname as Py,join as Ay,resolve as zr}from"node:path";import{readFile as Oy}from"node:fs/promises";import Kt from"fs-extra";import Ty from"gray-matter";import $y from"markdown-it";import{Feed as Fy}from"feed";import lt from"consola";l();import Sl from"fs-extra";l();import{spawn as Gg}from"cross-spawn";function Lt(e,t="updated"){return new Promise((r,n)=>{let o=["log"];t==="updated"&&o.push("-1"),o.push('--pretty="%ci"',e),t==="created"&&o.push("|","tail","-1");let i=Gg("git",o),s="";i.stdout.on("data",a=>s+=String(a)),i.on("close",()=>{r(+new Date(s))}),i.on("error",()=>{r(0)})})}async function Cl(e){return await Lt(e,"created")||(await Sl.stat(e)).ctime}async function El(e){return await Lt(e,"created")||(await Sl.stat(e)).mtime}l();import Ol,{CORE_SCHEMA as zg}from"js-yaml";l();var kl="<!-- more -->",Rt=/^https?:/i,Pl=/^pathname:\/\//,wR="/:all(.*)*",Al=new Set(["annotation","math","menclose","mfrac","mglyph","mi","mlabeledtr","mn","mo","mover","mpadded","mphantom","mroot","mrow","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"]),Mr={css:{preprocessorOptions:{scss:{api:"modern-compiler"}}}};var We={excerpt_separator:kl,engines:{yaml:{parse:e=>Ol.load(e,{schema:zg}),stringify:e=>Ol.dump(e)}}};l();var zc=ee(Fr(),1),ze=ee(le(),1);import{dirname as Ry}from"node:path";import Uc from"node:process";import{resolve as zt}from"pathe";import Gc from"fs-extra";import wy from"debug";import{ensureSuffix as Wc,uniq as Sy}from"@antfu/utils";import Kc from"defu";import Yc from"consola";l();l();import{join as _c}from"node:path";import Gh from"is-installed-globally";l();var Dl=ee(Nl(),1);import oe from"node:process";import ie from"node:path";import Qo from"node:os";import Ir from"node:fs";var jt=oe.platform==="win32",Il=e=>{try{return Dl.default.parse(Ir.readFileSync(e,"utf8")).prefix}catch{}},Kg=()=>Object.keys(oe.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?oe.env[t]:e,void 0),Yg=()=>{if(jt&&oe.env.APPDATA)return ie.join(oe.env.APPDATA,"/npm/etc/npmrc");if(oe.execPath.includes("/Cellar/node")){let e=oe.execPath.slice(0,oe.execPath.indexOf("/Cellar/node"));return ie.join(e,"/lib/node_modules/npm/npmrc")}if(oe.execPath.endsWith("/bin/node")){let e=ie.dirname(ie.dirname(oe.execPath));return ie.join(e,"/etc/npmrc")}},Xg=()=>{if(jt){let{APPDATA:e}=oe.env;return e?ie.join(e,"npm"):ie.dirname(oe.execPath)}return ie.dirname(ie.dirname(oe.execPath))},Qg=()=>{let e=Kg();if(e)return e;let t=Il(ie.join(Qo.homedir(),".npmrc"));if(t)return t;if(oe.env.PREFIX)return oe.env.PREFIX;let r=Il(Yg());return r||Xg()},Vt=ie.resolve(Qg()),Ll=()=>{if(jt&&oe.env.LOCALAPPDATA){let e=ie.join(oe.env.LOCALAPPDATA,"Yarn");if(Ir.existsSync(e))return e}return!1},Jg=()=>{if(oe.env.PREFIX)return oe.env.PREFIX;let e=Ll();if(e)return e;let t=ie.join(Qo.homedir(),".config/yarn");if(Ir.existsSync(t))return t;let r=ie.join(Qo.homedir(),".yarn-config");return Ir.existsSync(r)?r:Vt},Oe={};Oe.npm={};Oe.npm.prefix=Vt;Oe.npm.packages=ie.join(Vt,jt?"node_modules":"lib/node_modules");Oe.npm.binaries=jt?Vt:ie.join(Vt,"bin");var Vl=ie.resolve(Jg());Oe.yarn={};Oe.yarn.prefix=Vl;Oe.yarn.packages=ie.join(Vl,Ll()?"Data/global/node_modules":"global/node_modules");Oe.yarn.binaries=ie.join(Oe.yarn.packages,".bin");var Jo=Oe;var Rc=ee(xc(),1);import bc from"consola";function Te(e,t=!1,r={preserveSymlinks:!1}){try{return(0,Rc.sync)(e,r)}catch(n){bc.log(n)}if(Gh){try{return B.resolve(_c(Jo.yarn.packages,e))}catch{}try{return B.resolve(_c(Jo.npm.packages,e))}catch{}}if(t)throw new Error(`Failed to resolve package ${e}`);bc.error(`Failed to resolve package ${e}`)}l();function wc(e){return Rt.test(e)}function zh(e){return e.replace(/\\/g,"/")}function ii(e,t){return t.startsWith(e)?t:e+t}function X(e){return`/@fs${ii("/",zh(e))}`}function Sc(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Cc(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}l();l();import Kh from"node:process";import{fileURLToPath as Yh}from"node:url";import Xh from"fs-extra";import Qh from"jiti";import{resolve as Jh}from"pathe";import Ec from"consola";async function Zh(e){let{name:t,cwd:r}=e,n=Jh(r,`${t}.config.ts`),o={};if(await Xh.exists(n))try{o=Qh(Yh(import.meta.url),{interopDefault:!0,requireCache:!1,esmResolve:!0})(n)}catch{Ec.error(`Failed to load config file: ${n}`)}else Ec.debug(`Config file not found: ${n}`);return{config:o,configFile:n}}async function wt(e,t={}){let{config:r,configFile:n}=await Zh({name:e,cwd:t.cwd||Kh.cwd()}),o=r;return typeof r=="function"&&(o=await r(t.valaxyOptions||{})),{config:o,configFile:n}}l();var Ct=ee(le(),1);import ny from"node:process";import{createDefu as oy}from"defu";import{mergeConfig as iy}from"vite";import{isFunction as Pc}from"@antfu/utils";import sy from"consola";l();function Ge(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}l();var St=ee(le(),1);import{webcrypto as kc}from"node:crypto";import ey from"consola";import{options as ty}from"floating-vue";var Vr={mode:"auto",url:"/",lang:"en",languages:["en","zh-CN"],timezone:"",title:"Valaxy Blog",description:"A blog generated by Valaxy.",subtitle:"Next Generation Static Blog Framework.",author:{avatar:"https://valaxy.site/valaxy-logo.png",email:"i@valaxy.site",link:"https://valaxy.site",name:"VALAXY Developer",status:{emoji:"\u{1F30C}",message:"The moonlight is beautiful."}},favicon:"/favicon.svg",feed:{name:"",favicon:"/favicon.svg"},social:[],lastUpdated:!0,license:{enabled:!0,language:"",type:"by-nc-sa"},sponsor:{enable:!0,description:"\u8FD9\u662F\u5173\u4E8E\u8D5E\u52A9\u7684\u4E00\u4E9B\u63CF\u8FF0",methods:[]},search:{enable:!1,type:"fuse"},fuse:{dataPath:"valaxy-fuse-list.json",options:{keys:[]}},comment:{enable:!1},frontmatter:{time_warning:180*24*60*60*1e3},cdn:{prefix:"https://unpkg.com/"},mediumZoom:{enable:!1,selector:"",options:{}},vanillaLazyload:{enable:!1,options:{}},floatingVue:ty,statistics:{enable:!1,readTime:{speed:{cn:300,en:100}}},pageSize:7,encrypt:{enable:!1,algorithm:"AES-CBC",salt:kc.getRandomValues(new Uint8Array(16)),iv:kc.getRandomValues(new Uint8Array(16))},redirects:{useVueRouter:!0,rules:[]}};function Uw(e){return e}async function ry(e){return wt("site",{cwd:e})}async function jr(e){let t=Ge(),{config:r,configFile:n}=await ry(e),o=t();return r&&n&&ey.success(`Resolve ${(0,St.cyan)("siteConfig")} from ${(0,St.dim)(n)} ${(0,St.yellow)(o)}`),{siteConfig:r,siteConfigFile:n}}var Ac={siteConfig:Vr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},build:{ssgForPagination:!1},deploy:{},runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}},modules:{rss:{enable:!0,fullText:!1}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}},devtools:!0};function ay(e){return e}var tS=ay;async function Wt(e,t){return await wt("valaxy",{cwd:e,valaxyOptions:t})}var at=oy((e,t,r)=>{if(Pc(e[t])&&Pc(r)&&(e[t]=function(...n){e[t].call(this,...n),r.call(this,...n)}),t==="vite")return e[t]=iy(e[t],r),!0});async function Oc(e){let t=e.userRoot||ny.cwd(),r=Ge(),{config:n,configFile:o}=await Wt(t),i=r();o&&n&&Object.keys(n).length!==0&&sy.success(`Resolve ${(0,Ct.cyan)("userValaxyConfig")} from ${(0,Ct.dim)(o)} ${(0,Ct.yellow)(i)}`);let s=e.theme||n?.theme||"yun";return{config:n,configFile:o,theme:s}}l();import ly from"node:path";import cy from"fs-extra";function uy(e){return e}var aS=uy;async function Tc(e,t){let r={};for(let n of e){if(!cy.existsSync(ly.resolve(n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await Wt(n.root,t);o&&(n.configFile=i,r=at(o,r))}return r}l();var Br=ee(le(),1);import my from"defu";l();var Fc=ee(le(),1);import dy from"consola";l();import $c from"node:process";import fy from"node:fs";import py from"node:path";function Gt(){return $c.env.NODE_ENV==="production"}function si(e="development"){$c.env.NODE_ENV=e,$e.level=Gt()?2:3}function Et(){return si("production")}function Hr(e){let t=fy.existsSync(py.resolve(e,"pages"));return t||$e.error(`No pages directory found in ${e}`),t}var $e=dy.create({level:Gt()?2:3}),ai=`${(0,Fc.magenta)("valaxy")}:`,kt={success:e=>$e.success(ai,e),info:e=>$e.info(ai,e),ready:e=>$e.ready(ai,e)};async function qr(e){return wt("theme",{cwd:e})}async function Mc(e){let{config:t,configFile:r}=await qr(e.userRoot);if(t&&r&&$e.info(`Resolve ${(0,Br.cyan)("themeConfig")} from ${(0,Br.dim)(r)}`),e?.themeRoot){let{config:n}=await qr(e.themeRoot);t=my(t||{},n)}return{themeConfig:t,themeConfigFile:r}}function gy(e){return e}var wS=gy;function ES(e){return e}l();var Fe=ee(le(),1);import jc from"node:process";import{resolve as yy}from"pathe";import Dc from"fs-extra";import Lc from"defu";import vy from"ora";l();import{dirname as Nc}from"node:path";import{resolve as Ic}from"pathe";import hy from"fs-extra";function Ur(e,t){if(!e)return"";if(Sc(e))if(t){let r=hy.lstatSync(t).isFile();return Ic(r?Nc(t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return Ic(Nc(Te(`${e}/package.json`)||""))}async function Hc(e,t=jc.cwd()){let r=vy(`Resolve ${(0,Fe.cyan)("addons")} from ${(0,Fe.dim)(t)}`).start(),n={},o=s=>{s&&(n[s.name]=Lc(n[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){o(await Vc(s,{cwd:t}));continue}typeof s=="object"&&o(Lc(await Vc(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{console.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,Fe.yellow)(s.name)} ${(0,Fe.blue)(`v${s.pkg?.version}`)}${s.global?(0,Fe.cyan)(" (global)"):""} ${(0,Fe.dim)(s.pkg.homepage||s.pkg.repository?.url||s.pkg.repository||"")}`)}),i}async function Vc(e,t={}){let r=xy(e,t.cwd||jc.cwd()),n=yy(r,"./package.json");if(!Dc.existsSync(n)){$e.error(`No addon named ${e} found`);return}let o=await Dc.readJSON(n);return{enable:!0,name:o.name,global:!!o.global,root:r,options:{},props:{},pkg:o}}function xy(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Ur(r,t)}l();function qc(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Ur(r,t)}l();import{writeFile as _y}from"node:fs/promises";import{ensureFile as by}from"fs-extra";function Wr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function Gr(e){if(!e)return[];let t=[];for(let r of e)if(Array.isArray(r.from))for(let n of r.from)t.push({from:Wr(n),to:Wr(r.to)});else t.push({from:Wr(r.from),to:Wr(r.to)});return t}async function Bc(e,t){await by(t),await _y(t,`
|
|
5
|
+
`,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=Le(i.filter(u=>e[u]===null||Array.isArray(e[u])||typeof e[u]!="object").map(u=>Array.isArray(e[u])?`${u}[]`:u).concat([""]).reduce((u,f)=>Le(u).length>=Le(f).length?u:f)).length);let a="",c=t.bracketedArray?"[]":"";for(let u of i){let f=e[u];if(f&&Array.isArray(f))for(let d of f)a+=Le(`${u}${c}`).padEnd(s," ")+n+Le(d)+r;else f&&typeof f=="object"?o.push(u):a+=Le(u).padEnd(s," ")+n+Le(f)+r}t.section&&a.length&&(a="["+Le(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of o){let f=$l(u,".").join("\\."),d=(t.section?t.section+".":"")+f,p=Xo(e[u],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function $l(e,t){var r=0,n=0,o=0,i=[];do if(o=e.indexOf(t,r),o!==-1){if(r=o+t.length,o>0&&e[o-1]==="\\")continue;i.push(e.slice(n,o)),n=o+t.length}while(o!==-1);return i.push(e.slice(n)),i}var Tl=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,o=null,i=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g),a={};for(let u of s){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let f=u.match(i);if(!f)continue;if(f[1]!==void 0){if(o=Nr(f[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=Nr(f[2]),p;t.bracketedArray?p=d.length>2&&d.slice(-2)==="[]":(a[d]=(a?.[d]||0)+1,p=a[d]>1);let y=p?d.slice(0,-2):d;if(y==="__proto__")continue;let v=f[3]?Nr(f[4]):!0,b=v==="true"||v==="false"||v==="null"?JSON.parse(v):v;p&&(Yo.call(n,y)?Array.isArray(n[y])||(n[y]=[n[y]]):n[y]=[]),Array.isArray(n[y])?n[y].push(b):n[y]=b}let c=[];for(let u of Object.keys(r)){if(!Yo.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let f=$l(u,".");n=r;let d=f.pop(),p=d.replace(/\\\./g,".");for(let y of f)y!=="__proto__"&&((!Yo.call(n,y)||typeof n[y]!="object")&&(n[y]=Object.create(null)),n=n[y]);n===r&&p===d||(n[p]=r[u],c.push(u))}for(let u of c)delete r[u];return r},Fl=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),Le=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Fl(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Nr=(e,t)=>{if(e=(e||"").trim(),Fl(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let r=!1,n="";for(let o=0,i=e.length;o<i;o++){let s=e.charAt(o);if(r)"\\;#".indexOf(s)!==-1?n+=s:n+="\\"+s,r=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?r=!0:n+=s}}return r&&(n+="\\"),n.trim()}return e};Ml.exports={parse:Tl,decode:Tl,stringify:Xo,encode:Xo,safe:Le,unsafe:Nr}});var Zo=w((Lw,jl)=>{"use strict";l();var Zg=B("os");jl.exports=Zg.homedir||function(){var t=process.env.HOME,r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||t||null:process.platform==="darwin"?t||(r?"/Users/"+r:null):process.platform==="linux"?t||(process.getuid()===0?"/root":r?"/home/"+r:null):t||null}});var ei=w((jw,Hl)=>{"use strict";l();Hl.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(r,n){return n};var t=new Error().stack;return Error.prepareStackTrace=e,t[2].getFileName()}});var ql=w((qw,qt)=>{"use strict";l();var eh=process.platform==="win32",th=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,ti={};function rh(e){return th.exec(e).slice(1)}ti.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=rh(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0]===t[1]?t[0]:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};var nh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,ri={};function oh(e){return nh.exec(e).slice(1)}ri.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=oh(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};eh?qt.exports=ti.parse:qt.exports=ri.parse;qt.exports.posix=ri.parse;qt.exports.win32=ti.parse});var ni=w((Uw,Gl)=>{"use strict";l();var Wl=B("path"),Bl=Wl.parse||ql(),Ul=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=Bl(t);i.dir!==o[o.length-1];)o.push(i.dir),i=Bl(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(c){return Wl.resolve(n,a,c)}))},[])};Gl.exports=function(t,r,n){var o=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(n,t,function(){return Ul(t,o)},r);var i=Ul(t,o);return r&&r.paths?i.concat(r.paths):i}});var oi=w((Gw,zl)=>{"use strict";l();zl.exports=function(e,t){return t||{}}});var Xl=w((Kw,Yl)=>{"use strict";l();var ih="Function.prototype.bind called on incompatible ",sh=Object.prototype.toString,ah=Math.max,lh="[object Function]",Kl=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},ch=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},uh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Yl.exports=function(t){var r=this;if(typeof r!="function"||sh.apply(r)!==lh)throw new TypeError(ih+r);for(var n=ch(arguments,1),o,i=function(){if(this instanceof o){var f=r.apply(this,Kl(n,arguments));return Object(f)===f?f:this}return r.apply(t,Kl(n,arguments))},s=ah(0,r.length-n.length),a=[],c=0;c<s;c++)a[c]="$"+c;if(o=Function("binder","return function ("+uh(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var Jl=w((Xw,Ql)=>{"use strict";l();var fh=Xl();Ql.exports=Function.prototype.bind||fh});var ec=w((Jw,Zl)=>{"use strict";l();var ph=Function.prototype.call,dh=Object.prototype.hasOwnProperty,mh=Jl();Zl.exports=mh.call(ph,dh)});var tc=w((eR,gh)=>{gh.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Bt=w((tR,oc)=>{"use strict";l();var hh=ec();function yh(e,t){for(var r=e.split("."),n=t.split(" "),o=n.length>1?n[0]:"=",i=(n.length>1?n[1]:n[0]).split("."),s=0;s<3;++s){var a=parseInt(r[s]||0,10),c=parseInt(i[s]||0,10);if(a!==c)return o==="<"?a<c:o===">="?a>=c:!1}return o===">="}function rc(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!yh(e,r[n]))return!1;return!0}function vh(e,t){if(typeof t=="boolean")return t;var r=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof r!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&typeof t=="object"){for(var n=0;n<t.length;++n)if(rc(r,t[n]))return!0;return!1}return rc(r,t)}var nc=tc();oc.exports=function(t,r){return hh(nc,t)&&vh(r,nc[t])}});var ac=w((nR,sc)=>{"use strict";l();var it=B("fs"),xh=Zo(),re=B("path"),_h=ei(),bh=ni(),wh=oi(),Rh=Bt(),Sh=process.platform!=="win32"&&it.realpath&&typeof it.realpath.native=="function"?it.realpath.native:it.realpath,ic=xh(),Ch=function(){return[re.join(ic,".node_modules"),re.join(ic,".node_libraries")]},Eh=function(t,r){it.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},kh=function(t,r){it.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},Ph=function(t,r){Sh(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},Ut=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},Ah=function(t,r,n){t(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch{n(null)}})},Oh=function(t,r,n){for(var o=bh(r,n,t),i=0;i<o.length;i++)o[i]=re.join(o[i],t);return o};sc.exports=function(t,r,n){var o=n,i=r;if(typeof r=="function"&&(o=i,i={}),typeof t!="string"){var s=new TypeError("Path must be a string.");return process.nextTick(function(){o(s)})}i=wh(t,i);var a=i.isFile||Eh,c=i.isDirectory||kh,u=i.readFile||it.readFile,f=i.realpath||Ph,d=i.readPackage||Ah;if(i.readFile&&i.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(p)})}var y=i.packageIterator,v=i.extensions||[".js"],b=i.includeCoreModules!==!1,$=i.basedir||re.dirname(_h()),E=i.filename||$;i.paths=i.paths||Ch();var N=re.resolve($);Ut(f,N,i,function(h,O){h?o(h):L(O)});var P;function L(h){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))P=re.resolve(h,t),(t==="."||t===".."||t.slice(-1)==="/")&&(P+="/"),/\/$/.test(t)&&P===h?C(P,i.package,A):M(P,i.package,A);else{if(b&&Rh(t))return o(null,t);U(t,h,function(O,I,j){if(O)o(O);else{if(I)return Ut(f,I,i,function(_,q){_?o(_):o(null,q,j)});var x=new Error("Cannot find module '"+t+"' from '"+E+"'");x.code="MODULE_NOT_FOUND",o(x)}})}}function A(h,O,I){h?o(h):O?o(null,O,I):C(P,function(j,x,_){if(j)o(j);else if(x)Ut(f,x,i,function(F,z){F?o(F):o(null,z,_)});else{var q=new Error("Cannot find module '"+t+"' from '"+E+"'");q.code="MODULE_NOT_FOUND",o(q)}})}function M(h,O,I){var j=O,x=I;typeof j=="function"&&(x=j,j=void 0);var _=[""].concat(v);q(_,h,j);function q(F,z,Z){if(F.length===0)return x(null,void 0,Z);var Q=z+F[0],pe=Z;pe?se(null,pe):S(re.dirname(Q),se);function se(ae,V,me){if(pe=V,ae)return x(ae);if(me&&pe&&i.pathFilter){var dt=re.relative(me,Q),k=dt.slice(0,dt.length-F[0].length),G=i.pathFilter(pe,z,k);if(G)return q([""].concat(v.slice()),re.resolve(me,G),pe)}a(Q,Ne)}function Ne(ae,V){if(ae)return x(ae);if(V)return x(null,Q,pe);q(F.slice(1),z,pe)}}}function S(h,O){if(h===""||h==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(h)||/[/\\]node_modules[/\\]*$/.test(h))return O(null);Ut(f,h,i,function(I,j){if(I)return S(re.dirname(h),O);var x=re.join(j,"package.json");a(x,function(_,q){if(!q)return S(re.dirname(h),O);d(u,x,function(F,z){F&&O(F);var Z=z;Z&&i.packageFilter&&(Z=i.packageFilter(Z,x)),O(null,Z,h)})})})}function C(h,O,I){var j=I,x=O;typeof x=="function"&&(j=x,x=i.package),Ut(f,h,i,function(_,q){if(_)return j(_);var F=re.join(q,"package.json");a(F,function(z,Z){if(z)return j(z);if(!Z)return M(re.join(h,"index"),x,j);d(u,F,function(Q,pe){if(Q)return j(Q);var se=pe;if(se&&i.packageFilter&&(se=i.packageFilter(se,F)),se&&se.main){if(typeof se.main!="string"){var Ne=new TypeError("package \u201C"+se.name+"\u201D `main` must be a string");return Ne.code="INVALID_PACKAGE_MAIN",j(Ne)}(se.main==="."||se.main==="./")&&(se.main="index"),M(re.resolve(h,se.main),se,function(ae,V,me){if(ae)return j(ae);if(V)return j(null,V,me);if(!me)return M(re.join(h,"index"),me,j);var dt=re.resolve(h,me.main);C(dt,me,function(k,G,R){if(k)return j(k);if(G)return j(null,G,R);M(re.join(h,"index"),R,j)})});return}M(re.join(h,"/index"),se,j)})})})}function T(h,O){if(O.length===0)return h(null,void 0);var I=O[0];c(re.dirname(I),j);function j(q,F){if(q)return h(q);if(!F)return T(h,O.slice(1));M(I,i.package,x)}function x(q,F,z){if(q)return h(q);if(F)return h(null,F,z);C(I,i.package,_)}function _(q,F,z){if(q)return h(q);if(F)return h(null,F,z);T(h,O.slice(1))}}function U(h,O,I){var j=function(){return Oh(h,O,i)};T(I,y?y(h,O,j,i):j())}}});var lc=w((iR,Th)=>{Th.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var pc=w((sR,fc)=>{"use strict";l();var $h=Bt(),cc=lc(),uc={};for(Dr in cc)Object.prototype.hasOwnProperty.call(cc,Dr)&&(uc[Dr]=$h(Dr));var Dr;fc.exports=uc});var mc=w((lR,dc)=>{"use strict";l();var Fh=Bt();dc.exports=function(t){return Fh(t)}});var yc=w((uR,hc)=>{"use strict";l();var Mh=Bt(),st=B("fs"),fe=B("path"),Nh=Zo(),Ih=ei(),Dh=ni(),Lh=oi(),Vh=process.platform!=="win32"&&st.realpathSync&&typeof st.realpathSync.native=="function"?st.realpathSync.native:st.realpathSync,gc=Nh(),jh=function(){return[fe.join(gc,".node_modules"),fe.join(gc,".node_libraries")]},Hh=function(t){try{var r=st.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},qh=function(t){try{var r=st.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},Bh=function(t){try{return Vh(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Wt=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},Uh=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch{}},Wh=function(t,r,n){for(var o=Dh(r,n,t),i=0;i<o.length;i++)o[i]=fe.join(o[i],t);return o};hc.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=Lh(t,r),o=n.isFile||Hh,i=n.readFileSync||st.readFileSync,s=n.isDirectory||qh,a=n.realpathSync||Bh,c=n.readPackageSync||Uh;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var u=n.packageIterator,f=n.extensions||[".js"],d=n.includeCoreModules!==!1,p=n.basedir||fe.dirname(Ih()),y=n.filename||p;n.paths=n.paths||jh();var v=Wt(a,fe.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var b=fe.resolve(v,t);(t==="."||t===".."||t.slice(-1)==="/")&&(b+="/");var $=P(b)||A(b);if($)return Wt(a,$,n)}else{if(d&&Mh(t))return t;var E=M(t,v);if(E)return Wt(a,E,n)}var N=new Error("Cannot find module '"+t+"' from '"+y+"'");throw N.code="MODULE_NOT_FOUND",N;function P(S){var C=L(fe.dirname(S));if(C&&C.dir&&C.pkg&&n.pathFilter){var T=fe.relative(C.dir,S),U=n.pathFilter(C.pkg,S,T);U&&(S=fe.resolve(C.dir,U))}if(o(S))return S;for(var h=0;h<f.length;h++){var O=S+f[h];if(o(O))return O}}function L(S){if(!(S===""||S==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(S))&&!/[/\\]node_modules[/\\]*$/.test(S)){var C=fe.join(Wt(a,S,n),"package.json");if(!o(C))return L(fe.dirname(S));var T=c(i,C);return T&&n.packageFilter&&(T=n.packageFilter(T,S)),{pkg:T,dir:S}}}function A(S){var C=fe.join(Wt(a,S,n),"/package.json");if(o(C)){try{var T=c(i,C)}catch{}if(T&&n.packageFilter&&(T=n.packageFilter(T,S)),T&&T.main){if(typeof T.main!="string"){var U=new TypeError("package \u201C"+T.name+"\u201D `main` must be a string");throw U.code="INVALID_PACKAGE_MAIN",U}(T.main==="."||T.main==="./")&&(T.main="index");try{var h=P(fe.resolve(S,T.main));if(h)return h;var O=A(fe.resolve(S,T.main));if(O)return O}catch{}}}return P(fe.join(S,"/index"))}function M(S,C){for(var T=function(){return Wh(S,C,n)},U=u?u(S,C,T,n):T(),h=0;h<U.length;h++){var O=U[h];if(s(fe.dirname(O))){var I=P(O);if(I)return I;var j=A(O);if(j)return j}}}}});var xc=w((pR,vc)=>{"use strict";l();var Lr=ac();Lr.core=pc();Lr.isCore=mc();Lr.sync=yc();vc.exports=Lr});l();import S_ from"node:process";import C_ from"yargs";import{hideBin as E_}from"yargs/helpers";var mt="0.19.13";l();var we=ee(le(),1),Jc=ee(Mr(),1);import{dirname as Py,join as Ay,resolve as zr}from"node:path";import{readFile as Oy}from"node:fs/promises";import Yt from"fs-extra";import Ty from"gray-matter";import $y from"markdown-it";import{Feed as Fy}from"feed";import lt from"consola";l();import Sl from"fs-extra";l();import{spawn as Gg}from"cross-spawn";function Vt(e,t="updated"){return new Promise((r,n)=>{let o=["log"];t==="updated"&&o.push("-1"),o.push('--pretty="%ci"',e),t==="created"&&o.push("|","tail","-1");let i=Gg("git",o),s="";i.stdout.on("data",a=>s+=String(a)),i.on("close",()=>{r(+new Date(s))}),i.on("error",()=>{r(0)})})}async function Cl(e){return await Vt(e,"created")||(await Sl.stat(e)).ctime}async function El(e){return await Vt(e,"created")||(await Sl.stat(e)).mtime}l();import Ol,{CORE_SCHEMA as zg}from"js-yaml";l();var kl="<!-- more -->",wt=/^https?:/i,Pl=/^pathname:\/\//,Rw="/:all(.*)*",Al=new Set(["annotation","math","menclose","mfrac","mglyph","mi","mlabeledtr","mn","mo","mover","mpadded","mphantom","mroot","mrow","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"]),Rt={css:{preprocessorOptions:{scss:{api:"modern-compiler"}}}};var We={excerpt_separator:kl,engines:{yaml:{parse:e=>Ol.load(e,{schema:zg}),stringify:e=>Ol.dump(e)}}};l();var zc=ee(Mr(),1),ze=ee(le(),1);import{dirname as wy}from"node:path";import Uc from"node:process";import{resolve as Kt}from"pathe";import Gc from"fs-extra";import Ry from"debug";import{ensureSuffix as Wc,uniq as Sy}from"@antfu/utils";import Kc from"defu";import Yc from"consola";l();l();import{join as _c}from"node:path";import Gh from"is-installed-globally";l();var Dl=ee(Nl(),1);import oe from"node:process";import ie from"node:path";import Qo from"node:os";import Ir from"node:fs";var Ht=oe.platform==="win32",Il=e=>{try{return Dl.default.parse(Ir.readFileSync(e,"utf8")).prefix}catch{}},Kg=()=>Object.keys(oe.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?oe.env[t]:e,void 0),Yg=()=>{if(Ht&&oe.env.APPDATA)return ie.join(oe.env.APPDATA,"/npm/etc/npmrc");if(oe.execPath.includes("/Cellar/node")){let e=oe.execPath.slice(0,oe.execPath.indexOf("/Cellar/node"));return ie.join(e,"/lib/node_modules/npm/npmrc")}if(oe.execPath.endsWith("/bin/node")){let e=ie.dirname(ie.dirname(oe.execPath));return ie.join(e,"/etc/npmrc")}},Xg=()=>{if(Ht){let{APPDATA:e}=oe.env;return e?ie.join(e,"npm"):ie.dirname(oe.execPath)}return ie.dirname(ie.dirname(oe.execPath))},Qg=()=>{let e=Kg();if(e)return e;let t=Il(ie.join(Qo.homedir(),".npmrc"));if(t)return t;if(oe.env.PREFIX)return oe.env.PREFIX;let r=Il(Yg());return r||Xg()},jt=ie.resolve(Qg()),Ll=()=>{if(Ht&&oe.env.LOCALAPPDATA){let e=ie.join(oe.env.LOCALAPPDATA,"Yarn");if(Ir.existsSync(e))return e}return!1},Jg=()=>{if(oe.env.PREFIX)return oe.env.PREFIX;let e=Ll();if(e)return e;let t=ie.join(Qo.homedir(),".config/yarn");if(Ir.existsSync(t))return t;let r=ie.join(Qo.homedir(),".yarn-config");return Ir.existsSync(r)?r:jt},Oe={};Oe.npm={};Oe.npm.prefix=jt;Oe.npm.packages=ie.join(jt,Ht?"node_modules":"lib/node_modules");Oe.npm.binaries=Ht?jt:ie.join(jt,"bin");var Vl=ie.resolve(Jg());Oe.yarn={};Oe.yarn.prefix=Vl;Oe.yarn.packages=ie.join(Vl,Ll()?"Data/global/node_modules":"global/node_modules");Oe.yarn.binaries=ie.join(Oe.yarn.packages,".bin");var Jo=Oe;var wc=ee(xc(),1);import bc from"consola";function Te(e,t=!1,r={preserveSymlinks:!1}){try{return(0,wc.sync)(e,r)}catch(n){bc.log(n)}if(Gh){try{return B.resolve(_c(Jo.yarn.packages,e))}catch{}try{return B.resolve(_c(Jo.npm.packages,e))}catch{}}if(t)throw new Error(`Failed to resolve package ${e}`);bc.error(`Failed to resolve package ${e}`)}l();function Rc(e){return wt.test(e)}function zh(e){return e.replace(/\\/g,"/")}function ii(e,t){return t.startsWith(e)?t:e+t}function Y(e){return`/@fs${ii("/",zh(e))}`}function Sc(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Cc(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}l();l();import Kh from"node:process";import Yh from"fs-extra";import{createJiti as Xh}from"jiti";import{resolve as Qh}from"pathe";import Ec from"consola";var Jh=Xh(import.meta.url,{interopDefault:!0,moduleCache:!1});async function Zh(e){let{name:t,cwd:r}=e,n=Qh(r,`${t}.config.ts`),o={};if(await Yh.exists(n))try{o=await Jh.import(n)}catch{Ec.error(`Failed to load config file: ${n}`)}else Ec.debug(`Config file not found: ${n}`);return{config:o,configFile:n}}async function St(e,t={}){let{config:r,configFile:n}=await Zh({name:e,cwd:t.cwd||Kh.cwd()}),o=r;return typeof r=="function"&&(o=await r(t.valaxyOptions||{})),{config:o,configFile:n}}l();var Et=ee(le(),1);import ny from"node:process";import{createDefu as oy}from"defu";import{mergeConfig as iy}from"vite";import{isFunction as Pc}from"@antfu/utils";import sy from"consola";l();function Ge(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}l();var Ct=ee(le(),1);import{webcrypto as kc}from"node:crypto";import ey from"consola";import{options as ty}from"floating-vue";var Vr={mode:"auto",url:"/",lang:"en",languages:["en","zh-CN"],timezone:"",title:"Valaxy Blog",description:"A blog generated by Valaxy.",subtitle:"Next Generation Static Blog Framework.",author:{avatar:"https://valaxy.site/valaxy-logo.png",email:"i@valaxy.site",link:"https://valaxy.site",name:"VALAXY Developer",status:{emoji:"\u{1F30C}",message:"The moonlight is beautiful."}},favicon:"/favicon.svg",feed:{name:"",favicon:"/favicon.svg"},social:[],lastUpdated:!0,license:{enabled:!0,language:"",type:"by-nc-sa"},sponsor:{enable:!0,description:"\u8FD9\u662F\u5173\u4E8E\u8D5E\u52A9\u7684\u4E00\u4E9B\u63CF\u8FF0",methods:[]},search:{enable:!1,type:"fuse"},fuse:{dataPath:"valaxy-fuse-list.json",options:{keys:[]}},comment:{enable:!1},frontmatter:{time_warning:180*24*60*60*1e3},cdn:{prefix:"https://unpkg.com/"},mediumZoom:{enable:!1,selector:"",options:{}},vanillaLazyload:{enable:!1,options:{}},floatingVue:ty,statistics:{enable:!1,readTime:{speed:{cn:300,en:100}}},pageSize:7,encrypt:{enable:!1,algorithm:"AES-CBC",salt:kc.getRandomValues(new Uint8Array(16)),iv:kc.getRandomValues(new Uint8Array(16))},redirects:{useVueRouter:!0,rules:[]}};function BR(e){return e}async function ry(e){return St("site",{cwd:e})}async function jr(e){let t=Ge(),{config:r,configFile:n}=await ry(e),o=t();return r&&n&&ey.success(`Resolve ${(0,Ct.cyan)("siteConfig")} from ${(0,Ct.dim)(n)} ${(0,Ct.yellow)(o)}`),{siteConfig:r,siteConfigFile:n}}var Ac={siteConfig:Vr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},build:{ssgForPagination:!1},deploy:{},runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}},modules:{rss:{enable:!0,fullText:!1}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}},devtools:!0};function ay(e){return e}var eS=ay;async function Gt(e,t){return await St("valaxy",{cwd:e,valaxyOptions:t})}var at=oy((e,t,r)=>{if(Pc(e[t])&&Pc(r)&&(e[t]=function(...n){e[t].call(this,...n),r.call(this,...n)}),t==="vite")return e[t]=iy(e[t],r),!0});async function Oc(e){let t=e.userRoot||ny.cwd(),r=Ge(),{config:n,configFile:o}=await Gt(t),i=r();o&&n&&Object.keys(n).length!==0&&sy.success(`Resolve ${(0,Et.cyan)("userValaxyConfig")} from ${(0,Et.dim)(o)} ${(0,Et.yellow)(i)}`);let s=e.theme||n?.theme||"yun";return{config:n,configFile:o,theme:s}}l();import ly from"node:path";import cy from"fs-extra";function uy(e){return e}var sS=uy;async function Tc(e,t){let r={};for(let n of e){if(!cy.existsSync(ly.resolve(n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await Gt(n.root,t);o&&(n.configFile=i,r=at(o,r))}return r}l();var Br=ee(le(),1);import my from"defu";l();var Fc=ee(le(),1);import dy from"consola";l();import $c from"node:process";import fy from"node:fs";import py from"node:path";function zt(){return $c.env.NODE_ENV==="production"}function si(e="development"){$c.env.NODE_ENV=e,$e.level=zt()?2:3}function kt(){return si("production")}function Hr(e){let t=fy.existsSync(py.resolve(e,"pages"));return t||$e.error(`No pages directory found in ${e}`),t}var $e=dy.create({level:zt()?2:3}),ai=`${(0,Fc.magenta)("valaxy")}:`,Pt={success:e=>$e.success(ai,e),info:e=>$e.info(ai,e),ready:e=>$e.ready(ai,e)};async function qr(e){return St("theme",{cwd:e})}async function Mc(e){let{config:t,configFile:r}=await qr(e.userRoot);if(t&&r&&$e.info(`Resolve ${(0,Br.cyan)("themeConfig")} from ${(0,Br.dim)(r)}`),e?.themeRoot){let{config:n}=await qr(e.themeRoot);t=my(t||{},n)}return{themeConfig:t,themeConfigFile:r}}function gy(e){return e}var wS=gy;function CS(e){return e}l();var Fe=ee(le(),1);import jc from"node:process";import{resolve as yy}from"pathe";import Dc from"fs-extra";import Lc from"defu";import vy from"ora";l();import{dirname as Nc}from"node:path";import{resolve as Ic}from"pathe";import hy from"fs-extra";function Ur(e,t){if(!e)return"";if(Sc(e))if(t){let r=hy.lstatSync(t).isFile();return Ic(r?Nc(t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return Ic(Nc(Te(`${e}/package.json`)||""))}async function Hc(e,t=jc.cwd()){let r=vy(`Resolve ${(0,Fe.cyan)("addons")} from ${(0,Fe.dim)(t)}`).start(),n={},o=s=>{s&&(n[s.name]=Lc(n[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){o(await Vc(s,{cwd:t}));continue}typeof s=="object"&&o(Lc(await Vc(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{console.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,Fe.yellow)(s.name)} ${(0,Fe.blue)(`v${s.pkg?.version}`)}${s.global?(0,Fe.cyan)(" (global)"):""} ${(0,Fe.dim)(s.pkg.homepage||s.pkg.repository?.url||s.pkg.repository||"")}`)}),i}async function Vc(e,t={}){let r=xy(e,t.cwd||jc.cwd()),n=yy(r,"./package.json");if(!await Dc.exists(n)){$e.error(`No addon named ${e} found`);return}let o=await Dc.readJSON(n);return{enable:!0,name:o.name,global:!!o.global,root:r,options:{},props:{},pkg:o}}function xy(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Ur(r,t)}l();function qc(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Ur(r,t)}l();import{writeFile as _y}from"node:fs/promises";import{ensureFile as by}from"fs-extra";function Wr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function Gr(e){if(!e)return[];let t=[];for(let r of e)if(Array.isArray(r.from))for(let n of r.from)t.push({from:Wr(n),to:Wr(r.to)});else t.push({from:Wr(r.from),to:Wr(r.to)});return t}async function Bc(e,t){await by(t),await _y(t,`
|
|
6
6
|
<!DOCTYPE html>
|
|
7
7
|
<html lang="en">
|
|
8
8
|
<head>
|
|
@@ -14,18 +14,18 @@ import{a as B,b as R,c as ee,d as l}from"./chunk-LIAYL4DV.mjs";var le=R((A_,un)=
|
|
|
14
14
|
window.location.href = '${e}' + window.location.search + window.location.hash
|
|
15
15
|
</script>
|
|
16
16
|
</html>
|
|
17
|
-
`)}var Cy=
|
|
17
|
+
`)}var Cy=Ry("valaxy:options");async function Ey(e){let{config:t,themeRoot:r,theme:n}=e,o=t.siteConfig;o.url=Wc("/",o.url||""),o.cdn.prefix=Wc("/",o.cdn.prefix||"");let i=Kt(r,"package.json");try{t.themeConfig.pkg=await Gc.readJson(i,"utf-8")}catch{console.error(`valaxy-theme-${n} doesn't have package.json`)}}async function li(e,t){let{clientRoot:r,themeRoot:n,userRoot:o}=e,i=await Hc(t.addons||[],e.userRoot),s=await Tc(i,e);t=at(t,s);let a=Kc(t,Ac);e.config={...a,runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}}},e.addons=i,i.forEach(d=>{e.config.runtimeConfig.addons[d.name]=d});let c=i.map(({root:d})=>d),u=i.map(({name:d})=>d);e.addonRoots=c,e.roots=Sy([r,n,...c,o]);let f=e.config.vite?.build?.rollupOptions?.external||[];return e.config.vite.build.rollupOptions.external=f.filter(d=>!u.includes(d)),await Ey(e),e}async function be(e={userRoot:Uc.cwd()},t="dev"){let r=wy(Te("valaxy/package.json",!0)),n=Kt(r,"client"),o=Kt(e.userRoot||Uc.cwd());Yc.start(`Resolve ${(0,ze.magenta)("valaxy")} config...`);let[i,s,a,c]=await Promise.all([Oc(e),jr(e.userRoot),qr(e.userRoot),(0,zc.default)(["**.md"],{cwd:Kt(o,"pages"),ignore:["**/node_modules"]})]),{config:u,configFile:f,theme:d}=i,p=qc(d,e.userRoot),{siteConfig:y,siteConfigFile:v}=s,{config:b,configFile:$}=a,E=Gr(y.redirects?.rules);u=Kc({siteConfig:y},{themeConfig:b},u);let N={mode:t,pkgRoot:r,tempDir:Kt(o,".valaxy"),clientRoot:n,userRoot:o,themeRoot:p,addonRoots:[],roots:[],theme:d,config:{...u,runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}}},configFile:f||"",siteConfigFile:v||"",themeConfigFile:$||"",pages:c.sort(),addons:[],redirects:E,env:{id:"",links:[]}};Cy(N);let P=await ci(N),L=at(u,P);return N=await li(N,L),Gc.ensureDirSync(N.tempDir),N}async function ci(e){let t=Ge(),{config:r}=await Gt(e.themeRoot,e),n=t();return r&&Yc.success(`Resolve ${(0,ze.cyan)("valaxy.config.ts")} from ${(0,ze.blue)(`theme(${e.theme})`)} ${(0,ze.yellow)(n)}`),r}l();function Ke(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}l();function Xc(e,t){t.forEach(r=>{r.setup?.(e)})}var My=$y({html:!0,breaks:!0,linkify:!0});async function Qc(e){lt.info(`${(0,we.yellow)("RSS Generating ...")}`);let{config:t}=e,r=t.siteConfig;if(!r.url||r.url==="/"){lt.error("You must set `url` (like `https://example.com`) in `site.config.ts` to generate rss.");return}let n=r.url,o=r.url.slice(0,-1),i={name:r.author?.name,email:r.author?.email,link:r.author?.link};lt.info(`RSS Site Url: ${(0,we.cyan)(n)}`);let s=r.license?.type==="zero"?"1.0":"4.0",a={atom:r.feed?.name?`${r.feed?.name}.atom`:"atom.xml",json:`${r.feed?.name||"feed"}.json`,rss:`${r.feed?.name||"feed"}.xml`},c={title:r.title||"Valaxy Blog",description:r.description,id:n||"valaxy",link:n,copyright:`CC ${r.license?.type?.toUpperCase()} ${s} ${new Date().getFullYear()} \xA9 ${r.author?.name}`,feedLinks:{}};Object.keys(a).forEach(E=>{c.feedLinks[E]=`${n}${a[E]}`});let u=await(0,Jc.default)(`${e.userRoot}/pages/posts/**/*.md`),f=e.config.siteConfig.lang||"en",d=[];for await(let E of u){let N=await Oy(E,"utf-8"),{data:P,content:L,excerpt:A}=Ty(N,We);if(P.password)continue;if(P.draft){lt.warn(`Ignore draft post: ${(0,we.dim)(E)}`);continue}if(P.hide)continue;let M=E;P.date||(P.date=await Cl(M)),r.lastUpdated&&(P.updated||(P.updated=await El(M)));let S=e.config.modules.rss.fullText,C=S?L:L.slice(0,100),T=My.render(A||C).replace('src="/',`src="${o}/`);P.image?.startsWith("/")&&(P.image=o+P.image);let U=o+E.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,""),h=`<br/><p>${f==="zh-CN"?`\u8BBF\u95EE <a href="${U}" target="_blank">${U}</a> ${S?"\u67E5\u770B\u539F\u6587":"\u9605\u8BFB\u5168\u6587"}\u3002`:`Visit <a href="${U}" target="_blank">${U}</a> to ${S?"view original article":"read more"}.`}</p>`;d.push({title:"",...P,date:new Date(P.date),published:new Date(P.updated||P.date),content:T+h,author:[i],id:P.id?.toString()||"",link:U})}d.sort((E,N)=>+new Date(N.published||N.date)-+new Date(E.published||E.date));let p=r.author?.avatar||"/favicon.svg";c.author=i,c.image=Rc(p)?r.author?.avatar:`${o}${ii("/",p)}`,c.favicon=`${o}${r.feed?.favicon||r.favicon}`;let y=new Fy(c);d.forEach(E=>y.addItem(E)),await Yt.ensureDir(Py(`./dist/${a.atom}`));let v=zr(e.userRoot,"./dist"),b=zr(e.userRoot,"public");["rss","atom","json"].forEach(async E=>{let N="",P=`${v}/${a[E]}`;E==="rss"?N=y.rss2():E==="atom"?N=y.atom1():E==="json"&&(N=y.json1()),Yt.writeFileSync(P,N,"utf-8"),lt.success(`[${(0,we.cyan)(E)}] dist: ${(0,we.dim)(P)}`);let L=zr(b,a[E]),A=Ay("public",a[E]);Yt.writeFileSync(L,N,"utf-8"),lt.success(`[${(0,we.cyan)(E)}] public: ${(0,we.dim)(P)}`);try{let M=zr(e.userRoot,".gitignore"),S=await Yt.readFile(M,"utf-8"),C=A.replace(/\\/g,"/");S.includes(C)||(await Yt.appendFile(M,`
|
|
18
18
|
# valaxy rss
|
|
19
19
|
${C}
|
|
20
|
-
`),lt.success(`Add ${(0,
|
|
20
|
+
`),lt.success(`Add ${(0,we.dim)(C)} to ${(0,we.dim)(".gitignore")}`))}catch{}})}var Kr={extendCli(e){e.command("rss [root]","generate rss feed",t=>Ke(t).strict().help(),async({root:t})=>{kt();let r=await be({userRoot:t},"build");await Qc(r)})},setup(e){e.hook("build:after",()=>{console.log(),Qc(e.options)})}};l();var Zc=ee(Mr(),1),Xe=ee(le(),1);import At from"node:path";import Ye from"fs-extra";import Ot from"consola";import Ny from"gray-matter";async function Iy(e){Ot.start(`Generate List for Fuse Search by (${(0,Xe.cyan)("fuse.js")}) ...`);let t=await(0,Zc.default)(`${e.userRoot}/pages/posts/**/*.md`),r=[];for await(let n of t){let o=Ye.readFileSync(n,"utf-8"),{data:i,excerpt:s,content:a}=Ny(o,We);if(i.draft){Ot.warn(`Ignore draft post: ${(0,Xe.dim)(n)}`);continue}if(i.hide||i.password)continue;let c=e.config.siteConfig.fuse.options.keys||[],u=n.replace(`${e.userRoot}/pages`,""),f=n.endsWith("index.md")?u.replace(/\/index\.md$/,""):u.replace(/\.md$/,""),d={title:i.title||"",tags:(typeof i.tags=="string"?[i.tags]:i.tags)||[],categories:i.categories||[],author:e.config.siteConfig.author.name,excerpt:s||a.slice(0,100),link:encodeURI(f)};c.includes("content")&&(d.content=a||""),r.push(d)}return r}async function eu(e){Ot.info("Start generate fuse list...");let t=await Iy(e);await Ye.ensureDir("./dist");let r=At.resolve(e.userRoot,"public"),n=At.resolve(r,e.config.siteConfig.fuse.dataPath),o=At.join("public",e.config.siteConfig.fuse.dataPath);await Ye.ensureFile(n),Ye.writeJSONSync(n,t),Ot.success(`Generate fuse list in ${(0,Xe.dim)(r)}`);let i=At.resolve(e.userRoot,"dist"),s=At.resolve(i,e.config.siteConfig.fuse.dataPath);await Ye.ensureDir(i),Ye.writeJSONSync(s,t),Ot.success(`Generate fuse list in ${(0,Xe.dim)(i)}`);try{let a=At.resolve(e.userRoot,".gitignore"),c=await Ye.readFile(a,"utf-8"),u=o.replace(/\\/g,"/");c.includes(u)||(await Ye.appendFile(a,`
|
|
21
21
|
# valaxy fuse
|
|
22
22
|
${u}
|
|
23
|
-
`),
|
|
23
|
+
`),Ot.success(`Add ${(0,Xe.dim)(u)} to ${(0,Xe.dim)(".gitignore")}`))}catch{}}function Dy(e){e.command("fuse [root]","generate fuse list for search",t=>Ke(t).strict().help(),async({root:t})=>{kt();let r=await be({userRoot:t},"build");await eu(r)})}var Yr={extendCli(e){Dy(e)},setup(e){e.hook("build:before",async()=>{await eu(e.options)})}};l();l();var Xr=ee(le(),1);import{join as qy,resolve as nu}from"node:path";import{writeFile as By}from"node:fs/promises";import{render as Uy}from"ejs";import{ensureSuffix as Wy}from"@antfu/utils";import{consola as ui}from"consola";import{format as Gy}from"date-fns";l();import{access as Ly}from"node:fs/promises";async function ct(e){try{return await Ly(e),!0}catch{return!1}}l();import jy from"node:path";import{readFile as Hy}from"node:fs/promises";l();import Vy from"node:process";var Xt=Vy.cwd(),tu=`---
|
|
24
24
|
layout: <%=layout%>
|
|
25
25
|
title: <%=title%>
|
|
26
26
|
date: <%=date%>
|
|
27
27
|
---
|
|
28
|
-
`;async function ru(e){let{clientRoot:t,themeRoot:r}=await be({userRoot:
|
|
28
|
+
`;async function ru(e){let{clientRoot:t,themeRoot:r}=await be({userRoot:Xt}),n=[Xt,r,t];for(let o of n){let i=jy.resolve(o,"scaffolds",`${e}.md`);if(await ct(i))return Hy(i,"utf-8")}return!1}async function ou(e){let t=nu(Xt,"pages"),{path:r,title:n}=e,o=r||qy("posts",n),i=0;for(;;){let s=nu(t,o);if(i&&(s=`${s}-${i}`),s=Wy(".md",s),!await ct(s)){let a=await zy(e);try{await By(s,a,"utf-8"),ui.success(`[valaxy new]: successfully generated file ${(0,Xr.magenta)(s)}`)}catch(c){console.log(c),ui.error(`[valaxy new]: failed to write file ${s}`),ui.warn(`You should run ${(0,Xr.green)("valaxy new")} in your valaxy project root directory.`)}return s}i++}}async function zy({date:e,title:t,layout:r="post"}){let n=await ru(r);return n||(n=tu),Uy(n,{title:t,layout:r,date:e?Gy(new Date,"yyyy-MM-dd HH:mm:ss"):""})}function iu(e){e.command("new <title>","Draft a new post",t=>{t.usage("$0 <title> -p [path] -l [layout]").positional("title",{describe:"The title of the new post",required:!0}).option("path",{alias:"p",type:"string",describe:"the path to generate new post. Customize the path of post to generate"}).option("layout",{alias:"l",type:"string",default:"post"}).option("date",{alias:"d",type:"boolean",default:!0,describe:"Generate post with the current date"}).strict().help()},async({title:t,path:r,date:n,layout:o})=>{await ou({title:t,date:n,layout:o,path:r})})}l();var Ft=ee(le(),1);import $i from"node:path";import f_ from"node:process";import et from"consola";import{mergeConfig as kf}from"vite";l();var xf=ee(le(),1);import{join as hf,resolve as yf}from"node:path";import{mergeConfig as vf,build as Zx}from"vite";import{build as e_}from"vite-ssg/node";import t_ from"vite-ssg-sitemap";import nn from"fs-extra";import on from"consola";l();import zx from"@vitejs/plugin-vue";import Kx from"vite-plugin-vue-layouts";import Yx from"unplugin-vue-components/vite";import Xx from"@intlify/unplugin-vue-i18n/vite";import Qx from"@unhead/addons/vite";import{resolve as Jx}from"pathe";import gf from"consola";l();import{resolve as Zy}from"node:path";import ev from"fs-extra";import{createJiti as tv}from"jiti";import lu from"defu";import{presetAttributify as rv,presetIcons as nv,presetTypography as ov,presetUno as iv,transformerDirectives as sv,transformerVariantGroup as av}from"unocss";l();import{resolve as Ky}from"node:path";import Yy from"fs-extra";import{isObject as Xy}from"@antfu/utils";import{createJiti as Qy}from"jiti";var Jy=Qy(import.meta.url);function su(e,t,r=""){return e={...e},Object.keys(t).forEach(n=>{Xy(e[n])?e[n]=su(e[n],t[n],r?`${r}.${n}`:n):Array.isArray(e[n])?e[n]=[...e[n],...t[n]]:e[n]=t[n]}),e}async function au(e,t,r,n,o=!0){let i=n;for(let s of e){let a=Ky(s,"setup",t);if(Yy.existsSync(a)){let{default:c}=await Jy.import(a),u=await c(r);u!==null&&(i=o?su(i,u):u)}}return i}var lv=tv(import.meta.url);async function cv(e){let{config:t}=e,n=["animate-fade-in","m-auto","text-left","rotate-y-180",...["i-ri-clipboard-line","i-ri-archive-line","i-ri-folder-2-line","i-ri-price-tag-3-line","i-ri-cloud-line"],...e.config.unocss?.safelist??[]],o=t.siteConfig;if(t.markdown?.blocks){let s=t.markdown.blocks;Object.entries(s).forEach(([a,c])=>{c.icon&&n.push(c.icon)})}o.social?.length&&o.social.forEach(s=>n.push(s?.icon||""));let i=o.sponsor?.methods||[];return i.length&&i.forEach(s=>n.push(s?.icon||"")),n}async function uv(e){let{config:t}=e;return{shortcuts:[["flex-center","flex items-center justify-center"],["inline-flex-center","inline-flex items-center justify-center"],["btn","px-4 py-1 rounded inline-block bg-$va-c-primary text-white cursor-pointer transition hover:bg-$va-c-primary-light disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50"],["icon-btn","inline-flex justify-center items-center cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-sky-600"],["va-card","shadow hover:shadow-lg bg-$va-c-bg-light"]],presets:[iv(t.unocssPresets?.uno),rv(t.unocssPresets?.attributify),nv({scale:1.2,...t.unocssPresets?.icons}),ov(t.unocssPresets?.typography)],rules:[["font-serif",{"font-family":"var(--va-font-serif)"}],["font-sans",{"font-family":"var(--va-font-sans)"}],["font-mono",{"font-family":"var(--va-font-mono)"}]],transformers:[sv(),av()],safelist:await cv(e)}}async function cu(e){let t=await import("unocss/vite").then(p=>p.default),{unocss:r}=e.config,n=await uv(e),{themeRoot:o,clientRoot:i,roots:s}=e,a=["uno.config.ts","unocss.config.ts"],c=[];[o,i].forEach(p=>a.forEach(y=>c.push(Zy(p,y))));let f={},d=[];for(let p of c)if(await ev.exists(p)){let y=await lv.import(p);"default"in y&&(y=y.default),f=lu(f,y),d.push(p)}return f=await au(s,"unocss.ts",{},f,!0),t({configDeps:d,configFile:!1,...lu(r||{},f,n)})}l();import{dirname as mv,join as di,resolve as Me}from"node:path";import{mergeConfig as gv,searchForWorkspaceRoot as mi}from"vite";import hv from"is-installed-globally";import{uniq as fu}from"@antfu/utils";l();import{join as fi}from"node:path";import pi from"fs-extra";import{uniq as fv}from"@antfu/utils";import{loadConfigFromFile as pv,mergeConfig as dv}from"vite";async function Qr({userRoot:e,themeRoot:t},r){let n={mode:"development",command:r},o={},i=fv([t,e]).map(s=>fi(s,"vite.config.ts"));for await(let s of i){if(!pi.existsSync(s))continue;let a=await pv(n,s);a?.config&&(o=dv(o,a.config))}return o}async function uu({clientRoot:e,themeRoot:t,userRoot:r,config:n},o){let i=o,s="",a="";n.siteConfig.favicon&&(s+=`<link rel="icon" href="${n.siteConfig.favicon}">`);let c=[r,t];n.siteConfig.mode==="auto"&&(s+=`
|
|
29
29
|
<script>
|
|
30
30
|
;(function () {
|
|
31
31
|
const prefersDark =
|
|
@@ -47,11 +47,11 @@ date: <%=date%>
|
|
|
47
47
|
</script>
|
|
48
48
|
`);for(let u of c){let f=fi(u,"index.html");if(!pi.existsSync(f))continue;let d=await pi.readFile(f,"utf-8");s+=`
|
|
49
49
|
${(d.match(/<head>([\s\S]*?)<\/head>/im)?.[1]||"").trim()}`,a+=`
|
|
50
|
-
${(d.match(/<body>([\s\S]*?)<\/body>/im)?.[1]||"").trim()}`}return i=i.replace("__ENTRY__",
|
|
50
|
+
${(d.match(/<body>([\s\S]*?)<\/body>/im)?.[1]||"").trim()}`}return i=i.replace("__ENTRY__",Y(fi(e,"main.ts"))).replace("<!-- head -->",s).replace("<!-- body -->",a),i}var yv=["@unhead/schema-org","@unhead/vue","@vueuse/integrations/useFuse","defu","katex","nprogress","unocss","vue","vue-router","vue-i18n","fuse.js","medium-zoom","vanilla-lazyload","@vue/devtools-api"],pu=["@docsearch/css","@vueuse/core","@vueuse/shared","@unocss/reset","unocss","vue","vue-router","vue-demi","@vue/devtools-api","meting","valaxy","/@valaxyjs/config","/@valaxyjs/context","/@valaxyjs/addons","/@valaxyjs/locales","/@valaxyjs/styles"];function du(e){let t=Object.keys(e.config.themeConfig.pkg.dependencies||{}),r=e.addons.map(n=>Object.keys(n.pkg.dependencies||{})).flat();return{name:"valaxy:site",enforce:"pre",config(n){let o={root:e.clientRoot,cacheDir:di(e.userRoot,"node_modules/.vite"),publicDir:di(e.userRoot,"public"),define:gi(e),resolve:{alias:vv(e),dedupe:["vue"]},optimizeDeps:{entries:[Me(e.clientRoot,"main.ts")],include:fu([...yv,...t,...r]).filter(i=>!pu.includes(i)),exclude:pu},server:{fs:{allow:fu([mi(e.clientRoot),mi(e.themeRoot),mi(e.userRoot),mv(Te("katex/package.json",!0))])}}};return hv&&(o.cacheDir=di(e.pkgRoot,"node_modules/.vite"),o.resolve.alias.vue=`${Te("vue/dist/vue.esm-browser.js",!0)}`),gv(n,o)},async transformIndexHtml(n){return n=await uu(e,n),{html:n,tags:[]}}}}function gi(e){return{__VUE_PROD_DEVTOOLS__:!1,__INTLIFY_PROD_DEVTOOLS__:!1}}function vv(e){let t=[{find:"~/",replacement:`${Y(e.userRoot)}/`},{find:"valaxy/client/",replacement:`${Y(e.clientRoot)}/`},{find:"valaxy/package.json",replacement:Y(Me(e.clientRoot,"../package.json"))},{find:/^valaxy$/,replacement:Y(Me(e.clientRoot,"index.ts"))},{find:"@valaxyjs/client/",replacement:`${Y(e.clientRoot)}/`},{find:"virtual:valaxy-theme",replacement:`${Y(e.themeRoot)}/client/index.ts`},{find:`valaxy-theme-${e.theme}/client`,replacement:`${Y(Me(e.themeRoot))}/client/index.ts`},{find:`valaxy-theme-${e.theme}/`,replacement:`${Y(Me(e.themeRoot))}/`},{find:`valaxy-theme-${e.theme}`,replacement:`${Y(Me(e.themeRoot))}/client/index.ts`}];return e.config.siteConfig.encrypt.enable&&t.push({find:/^vue$/,replacement:Te("vue/dist/vue.esm-bundler.js",!0)}),e.addons.forEach(r=>{t.push({find:`${r.name}/client/`,replacement:`${Y(`${Me(r.root)}`)}/client/`}),t.push({find:`${r.name}/App.vue`,replacement:`${Y(Me(r.root))}/App.vue`}),t.push({find:r.name,replacement:`${Y(Me(r.root))}/client/index.ts`})}),t.push({find:/^valaxy-addon-(.*)$/,replacement:Y(Me(e.clientRoot,"./addons/index.ts"))}),t}l();import{existsSync as xv}from"node:fs";import{join as _v,resolve as bv}from"node:path";import{slash as wv,uniq as Rv}from"@antfu/utils";function mu({clientRoot:e,themeRoot:t,userRoot:r}){let n=wv(bv(e,"setup"));return{name:"valaxy:setup",enforce:"pre",async transform(o,i){if(i.startsWith(n)){let s=i.slice(n.length+1).replace(/\?.*$/,""),a=[],c=[];return Rv([t,r]).map(f=>_v(f,"setup",s)).forEach((f,d)=>{if(!xv(f))return;a.push(`import __n${d} from '${Y(f)}'`);let p=`__n${d}`;/\binjection_return\b/g.test(o)&&(p=`injection_return = ${p}`),/\binjection_arg\b/g.test(o)?p+="(injection_arg)":p+="()",c.push(`// ${f}`,p)}),o=o.replace("/* __imports__ */",a.join(`
|
|
51
51
|
`)),o=o.replace("/* __injections__ */",c.join(`
|
|
52
|
-
`)),o}return null}}}l();import{objectEntries as Sv}from"@antfu/utils";function gu(e){let t=Sv(gi(e));return[{name:"valaxy:flags",enforce:"pre",transform(r,n){if(n.match(/\.vue($|\?)/)){let o=r;if(t.forEach(([i,s])=>{r=r.replace(new RegExp(i,"g"),s)}),o!==r)return r}}}]}l();import vx from"unplugin-vue-router/vite";import Ai from"fs-extra";import{resolve as xx}from"pathe";import{convert as _x}from"html-to-text";import bx from"markdown-it";import
|
|
53
|
-
`&&s.push(f)}});for(let a of s)o.children.splice(o.children.indexOf(a),1)}}}function Nv(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Jr(e={},t="@shikijs/transformers:notation-map"){let{classMap:r={},classActivePre:n=void 0}=e;return Mv(t,new RegExp(`\\s*(?://|/\\*|<!--|#|--|%{1,2}|;{1,2}|"|')\\s+\\[!code (${Object.keys(r).map(Nv).join("|")})(:\\d+)?\\]\\s*(?:\\*/|-->)?\\s*$`),function([o,i,s=":1"],a,c,u,f){let d=Number.parseInt(s.slice(1),10);return u.slice(f,f+d).forEach(p=>{this.addClassToHast(p,r[i])}),n&&this.addClassToHast(this.pre,n),!0})}function
|
|
54
|
-
The language '${p}' is not loaded, falling back to '${n||"txt"}' for syntax highlighting.`)),p=n);let b=Hv(y),$=new Map,E=L=>v?L:L.replace(f,A=>{let M=$.get(A);return M||(M=jv(),$.set(A,M)),M}),N=L=>($.forEach((A,M)=>{L=L.replaceAll(A,M)}),L);d=E(d).trimEnd();let P=i.codeToHtml(d,{lang:p,transformers:[...s,bu(b),{name:"valaxy:v-pre",pre(L){v&&(L.properties["v-pre"]="")}},{name:"valaxy:empty-line",code(L){L.children.forEach(A=>{A.type==="element"&&A.tagName==="span"&&Array.isArray(A.properties.class)&&A.properties.class.includes("line")&&A.children.length===0&&A.children.push({type:"element",tagName:"wbr",properties:{},children:[]})})}},...o],meta:{__raw:y},...typeof e=="object"&&"light"in e&&"dark"in e?{themes:e,defaultColor:!1}:{theme:e}});return N(P)}}l();import zu from"markdown-it-anchor";import lx from"markdown-it-attrs";import{full as cx}from"markdown-it-emoji";import ux from"markdown-it-footnote";import fx from"markdown-it-task-lists";import px from"markdown-it-image-figures";l();l();var qv={"&":"&","<":"<",">":">","'":"'",'"':"""},Bv=/[&<>'"]/g,ut=e=>e.replace(Bv,t=>qv[t]);var vi=(e,{shouldAllowHtml:t,shouldEscapeText:r})=>{let n=e.children??[],o=["text","emoji","code_inline"];return t&&o.push("html_inline"),n.filter(s=>o.includes(s.type)&&!s.meta?.isPermalinkSymbol).reduce((s,a)=>r&&(a.type==="code_inline"||a.type==="text")?`${s}${ut(a.content)}`:`${s}${a.content}`,"").trim()},Zr=(e,{level:t,shouldAllowHtml:r,shouldAllowNested:n,shouldEscapeText:o,slugify:i,format:s})=>{let a=[],c=[],u=f=>{for(;c.length!==0&&f.level<=c[0].level;)c.shift();c.length===0?(a.push(f),c.push(f)):(c[0].children.push(f),c.unshift(f))};for(let f=0;f<e.length;f+=1){let d=e[f];if(d.type!=="heading_open"||d.level!==0&&!n)continue;let p=Number.parseInt(d.tag.slice(1),10);if(!t.includes(p))continue;let y=e[f+1];if(!y)continue;let v=vi(y,{shouldAllowHtml:r,shouldEscapeText:o}),b=d.attrGet("id")??i(v);u({level:p,title:s?.(v)??v,slug:b,link:`#${b}`,children:[]})}return a},Uv=/[\u0000-\u001f]/g,Wv=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,Gv=/[\u0300-\u036F]/g,ft=e=>e.normalize("NFKD").replace(Gv,"").replace(Uv,"").replace(Wv,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase();var ku=(e,{level:t=[2,3],shouldAllowNested:r=!1,slugify:n=ft,format:o}={})=>{let i=e.renderer.render.bind(e.renderer);e.renderer.render=(s,a,c)=>(c.headers=Zr(s,{level:t,shouldAllowHtml:!1,shouldAllowNested:r,shouldEscapeText:!1,slugify:n,format:o}),i(s,a,c))};l();var Pu="script",Au="style",
|
|
52
|
+
`)),o}return null}}}l();import{objectEntries as Sv}from"@antfu/utils";function gu(e){let t=Sv(gi(e));return[{name:"valaxy:flags",enforce:"pre",transform(r,n){if(n.match(/\.vue($|\?)/)){let o=r;if(t.forEach(([i,s])=>{r=r.replace(new RegExp(i,"g"),s)}),o!==r)return r}}}]}l();import vx from"unplugin-vue-router/vite";import Ai from"fs-extra";import{resolve as xx}from"pathe";import{convert as _x}from"html-to-text";import bx from"markdown-it";import wx from"gray-matter";l();import{existsSync as Cv,readFileSync as Ev}from"node:fs";function kv(e){let t=(e.match(/[\u4E00-\u9FA5]/g)||[]).length,r=(e.replace(/[\u4E00-\u9FA5]/g,"").match(/[a-zA-Z0-9_\u0392-\u03C9\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|[\u00E4\u00C4\u00E5\u00C5\u00F6\u00D6]+|\w+/g)||[]).length;return{cn:t,en:r}}function Pv({cn:e,en:t},r){let n=e/(r.speed.cn||300)+t/(r.speed.en||100);return n<1?1:Math.ceil(n)}function Av({cn:e,en:t}){let r=e+t;return r<1e3?r.toString():`${Math.round(r/100)/10}k`}function Ov(e,t){let r=kv(e);return{countData:r,wordCount:Av(r),readingTime:Pv(r,t.readTime)}}function hu({route:e,options:t}){let r=e.components.get("default")||"";if(Cv(r)){let n=Ev(r,"utf-8"),{wordCount:o,readingTime:i}=Ov(n,{readTime:Object.assign({speed:{cn:300,en:100}},t.readTime)});e.meta.frontmatter&&(e.meta.frontmatter.wordCount||(e.meta.frontmatter.wordCount=o),e.meta.frontmatter.readingTime||(e.meta.frontmatter.readingTime=i))}}l();import nA from"markdown-it";l();l();import vu from"crypto";l();var yu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Tv=128,Qe,Je,xu=e=>{!Qe||Qe.length<e?(Qe=Buffer.allocUnsafe(e*Tv),vu.randomFillSync(Qe),Je=0):Je+e>Qe.length&&(vu.randomFillSync(Qe),Je=0),Je+=e},$v=e=>(xu(e-=0),Qe.subarray(Je-e,Je)),Fv=(e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,o=Math.ceil(1.6*n*t/e.length);return(i=t)=>{let s="";for(;;){let a=r(o),c=o;for(;c--;)if(s+=e[a[c]&n]||"",s.length===i)return s}}},_u=(e,t=21)=>Fv(e,t,$v),hi=(e=21)=>{xu(e-=0);let t="";for(let r=Je-e;r<Je;r++)t+=yu[Qe[r]&63];return t};var Eu=ee(le(),1);l();function bu(e=[]){return{name:"@shikijs/transformers:compact-line-options",line(t,r){let n=e.find(o=>o.line===r);return n?.classes&&this.addClassToHast(t,n.classes),t}}}function Mv(e,t,r,n=!1){return{name:e,code(o){let i=o.children.filter(a=>a.type==="element"),s=[];i.forEach((a,c)=>{let u;for(let f of a.children){if(f.type!=="element")continue;let d=f.children[0];if(d.type!=="text")continue;let p=!1;d.value=d.value.replace(t,(...y)=>r.call(this,y,a,f,i,c)?(p=!0,""):y[0]),p&&!d.value.trim()&&(u=f)}if(u&&(a.children.splice(a.children.indexOf(u),1),a.children.length===0&&(s.push(a),n))){let f=o.children[o.children.indexOf(a)+1];f&&f.type==="text"&&f.value===`
|
|
53
|
+
`&&s.push(f)}});for(let a of s)o.children.splice(o.children.indexOf(a),1)}}}function Nv(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Jr(e={},t="@shikijs/transformers:notation-map"){let{classMap:r={},classActivePre:n=void 0}=e;return Mv(t,new RegExp(`\\s*(?://|/\\*|<!--|#|--|%{1,2}|;{1,2}|"|')\\s+\\[!code (${Object.keys(r).map(Nv).join("|")})(:\\d+)?\\]\\s*(?:\\*/|-->)?\\s*$`),function([o,i,s=":1"],a,c,u,f){let d=Number.parseInt(s.slice(1),10);return u.slice(f,f+d).forEach(p=>{this.addClassToHast(p,r[i])}),n&&this.addClassToHast(this.pre,n),!0})}function wu(e={}){let{classLineAdd:t="diff add",classLineRemove:r="diff remove",classActivePre:n="has-diff"}=e;return Jr({classMap:{"++":t,"--":r},classActivePre:n},"@shikijs/transformers:notation-diff")}function Ru(e={}){let{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:r="has-highlighted"}=e;return Jr({classMap:t,classActivePre:r},"@shikijs/transformers:notation-error-level")}function Su(e={}){let{classActiveLine:t="focused",classActivePre:r="has-focused"}=e;return Jr({classMap:{focus:t},classActivePre:r},"@shikijs/transformers:notation-focus")}function Cu(e={}){let{classActiveLine:t="highlighted",classActivePre:r="has-highlighted"}=e;return Jr({classMap:{highlight:t,hl:t},classActivePre:r},"@shikijs/transformers:notation-highlight")}var hk=Symbol("highlighted-lines");import{addClassToHast as Iv,bundledLanguages as Dv,getHighlighter as Lv,isSpecialLang as Vv}from"shiki";var jv=_u("abcdefghijklmnopqrstuvwxyz",10);function Hv(e){e=e.replace(/^(?:\[.*?\])?.*?([\d,-]+).*/,"$1").trim();let t=[];return e?(e.split(",").map(r=>r.split("-").map(n=>Number.parseInt(n,10))).forEach(([r,n])=>{r&&n?t.push(...Array.from({length:n-r+1},(o,i)=>r+i)):t.push(r)}),t.map(r=>({line:r,classes:["highlighted"]}))):[]}async function yi(e,t,r=console){let{defaultHighlightLang:n="",codeTransformers:o=[]}=t,i=await Lv({themes:typeof e=="object"&&"light"in e&&"dark"in e?[e.light,e.dark]:[e],langs:[...Object.keys(Dv),...t.languages||[]],langAlias:t.languageAlias});await t?.shikiSetup?.(i);let s=[wu(),Su({classActiveLine:"has-focus",classActivePre:"has-focused-lines"}),Cu(),Ru(),{name:"valaxy:add-class",pre(d){Iv(d,"vp-code")}},{name:"valaxy:clean-up",pre(d){delete d.properties.tabindex,delete d.properties.style}}],a=/-vue$/,c=/=(\d*)/,u=/:(no-)?line-numbers(=\d*)?$/,f=/\{\{.*?\}\}/g;return(d,p,y)=>{let v=a.test(p)?"":"v-pre";p=p.replace(c,"").replace(u,"").replace(a,"").toLowerCase()||n,p&&!i.getLoadedLanguages().includes(p)&&!Vv(p)&&(r.warn(Eu.default.yellow(`
|
|
54
|
+
The language '${p}' is not loaded, falling back to '${n||"txt"}' for syntax highlighting.`)),p=n);let b=Hv(y),$=new Map,E=L=>v?L:L.replace(f,A=>{let M=$.get(A);return M||(M=jv(),$.set(A,M)),M}),N=L=>($.forEach((A,M)=>{L=L.replaceAll(A,M)}),L);d=E(d).trimEnd();let P=i.codeToHtml(d,{lang:p,transformers:[...s,bu(b),{name:"valaxy:v-pre",pre(L){v&&(L.properties["v-pre"]="")}},{name:"valaxy:empty-line",code(L){L.children.forEach(A=>{A.type==="element"&&A.tagName==="span"&&Array.isArray(A.properties.class)&&A.properties.class.includes("line")&&A.children.length===0&&A.children.push({type:"element",tagName:"wbr",properties:{},children:[]})})}},...o],meta:{__raw:y},...typeof e=="object"&&"light"in e&&"dark"in e?{themes:e,defaultColor:!1}:{theme:e}});return N(P)}}l();import zu from"markdown-it-anchor";import lx from"markdown-it-attrs";import{full as cx}from"markdown-it-emoji";import ux from"markdown-it-footnote";import fx from"markdown-it-task-lists";import px from"markdown-it-image-figures";l();l();var qv={"&":"&","<":"<",">":">","'":"'",'"':"""},Bv=/[&<>'"]/g,ut=e=>e.replace(Bv,t=>qv[t]);var vi=(e,{shouldAllowHtml:t,shouldEscapeText:r})=>{let n=e.children??[],o=["text","emoji","code_inline"];return t&&o.push("html_inline"),n.filter(s=>o.includes(s.type)&&!s.meta?.isPermalinkSymbol).reduce((s,a)=>r&&(a.type==="code_inline"||a.type==="text")?`${s}${ut(a.content)}`:`${s}${a.content}`,"").trim()},Zr=(e,{level:t,shouldAllowHtml:r,shouldAllowNested:n,shouldEscapeText:o,slugify:i,format:s})=>{let a=[],c=[],u=f=>{for(;c.length!==0&&f.level<=c[0].level;)c.shift();c.length===0?(a.push(f),c.push(f)):(c[0].children.push(f),c.unshift(f))};for(let f=0;f<e.length;f+=1){let d=e[f];if(d.type!=="heading_open"||d.level!==0&&!n)continue;let p=Number.parseInt(d.tag.slice(1),10);if(!t.includes(p))continue;let y=e[f+1];if(!y)continue;let v=vi(y,{shouldAllowHtml:r,shouldEscapeText:o}),b=d.attrGet("id")??i(v);u({level:p,title:s?.(v)??v,slug:b,link:`#${b}`,children:[]})}return a},Uv=/[\u0000-\u001f]/g,Wv=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,Gv=/[\u0300-\u036F]/g,ft=e=>e.normalize("NFKD").replace(Gv,"").replace(Uv,"").replace(Wv,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase();var ku=(e,{level:t=[2,3],shouldAllowNested:r=!1,slugify:n=ft,format:o}={})=>{let i=e.renderer.render.bind(e.renderer);e.renderer.render=(s,a,c)=>(c.headers=Zr(s,{level:t,shouldAllowHtml:!1,shouldAllowNested:r,shouldEscapeText:!1,slugify:n,format:o}),i(s,a,c))};l();var Pu="script",Au="style",Qt="template",zv=/^<script\s+.*?\bsetup\b.*?>$/is,Kv=({customBlocks:e})=>{let t=Array.from(new Set([Pu,Au,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},Ou=(e,{customBlocks:t=[]}={})=>{let r=Kv({customBlocks:t}),n=e.render.bind(e);e.render=(i,s={})=>{s.sfcBlocks={template:null,script:null,scriptSetup:null,scripts:[],styles:[],customBlocks:[]};let a=n(i,s);return s.sfcBlocks.template={type:Qt,content:`<${Qt}>${a}</${Qt}>`,contentStripped:a,tagOpen:`<${Qt}>`,tagClose:`</${Qt}>`},a};let o=e.renderer.rules.html_block;e.renderer.rules.html_block=(i,s,a,c,u)=>{if(!c.sfcBlocks)return o(i,s,a,c,u);let p=i[s].content.match(r);if(!p)return o(i,s,a,c,u);let y=p.groups;return y.type===Pu?(c.sfcBlocks.scripts.push(y),zv.test(y.tagOpen)?c.sfcBlocks.scriptSetup=y:c.sfcBlocks.script=y):y.type===Au?c.sfcBlocks.styles.push(y):c.sfcBlocks.customBlocks.push(y),""}};l();var Tu=e=>{let t=e.renderer.render.bind(e.renderer);e.renderer.render=(r,n,o)=>{let i=r.findIndex(s=>s.tag==="h1");return o.title=i>-1?vi(r[i+1],{shouldAllowHtml:!1,shouldEscapeText:!1}):"",t(r,n,o)}};l();var Yv=({listTag:e,listClass:t,itemClass:r,linkTag:n,linkClass:o})=>{let i=ut(e),s=t?` class="${ut(t)}"`:"",a="li",c=r?` class="${ut(r)}"`:"",u=ut(n),f=o?` class="${ut(o)}"`:"",d=y=>n==="router-link"?` to="${y}"`:` href="${y}"`,p=y=>`<${i}${s}>${y.map(v=>`<${a}${c}><${u}${f}${d(v.link)}>${v.title}</${u}>${v.children.length>0?p(v.children):""}</${a}>`).join("")}</${i}>`;return p},Xv=({pattern:e,containerTag:t,containerClass:r})=>(n,o,i,s)=>{if(n.sCount[o]-n.blkIndent>=4)return!1;let a=n.bMarks[o]+n.tShift[o],c=n.eMarks[o],u=n.src.slice(a,c).split(" ")[0];if(!e.test(u))return!1;if(s)return!0;n.line=o+1;let f=n.push("toc_open",t,1);f.markup="",f.map=[o,n.line],r&&f.attrSet("class",r);let d=n.push("toc_body","",0);d.markup=u,d.map=[o,n.line],d.hidden=!0;let p=n.push("toc_close",t,-1);return p.markup="",d.map=[o,n.line],!0},$u=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:r=ft,format:n,level:o=[2,3],shouldAllowNested:i=!1,containerTag:s="nav",containerClass:a="table-of-contents",listTag:c="ul",listClass:u="",itemClass:f="",linkTag:d="a",linkClass:p=""}={})=>{e.block.ruler.before("heading","toc",Xv({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});let y=Yv({listTag:c,listClass:u,itemClass:f,linkTag:d,linkClass:p});e.renderer.rules.toc_body=v=>y(Zr(v,{level:o,shouldAllowHtml:!0,shouldAllowNested:i,shouldEscapeText:!0,slugify:r,format:n}))};import{cssI18nContainer as dx}from"css-i18n";l();import Fu from"katex";function Mu(e,t){let r=e.posMax,n=!0,o=!0,i=t>0?e.src.charCodeAt(t-1):-1,s=t+1<=r?e.src.charCodeAt(t+1):-1;return(i===32||i===9||s>=48&&s<=57)&&(o=!1),(s===32||s===9)&&(n=!1),{can_open:n,can_close:o}}function Qv(e,t){let r,n,o,i;if(e.src[e.pos]!=="$")return!1;if(o=Mu(e,e.pos),!o.can_open)return t||(e.pending+="$"),e.pos+=1,!0;let s=e.pos+1;for(r=s;(r=e.src.indexOf("$",r))!==-1;){for(i=r-1;e.src[i]==="\\";)i-=1;if((r-i)%2===1)break;r+=1}return r===-1?(t||(e.pending+="$"),e.pos=s,!0):r-s===0?(t||(e.pending+="$$"),e.pos=s+1,!0):(o=Mu(e,r),o.can_close?(t||(n=e.push("math_inline","math",0),n.markup="$",n.content=e.src.slice(s,r)),e.pos=r+1,!0):(t||(e.pending+="$"),e.pos=s,!0))}function Jv(e,t,r,n){let o,i,s,a,c=!1,u=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(u+2>f||e.src.slice(u,u+2)!=="$$")return!1;if(u+=2,o=e.src.slice(u,f),n)return!0;for(o.trim().slice(-2)==="$$"&&(o=o.trim().slice(0,-2),c=!0),s=t;!c&&(s++,!(s>=r||(u=e.bMarks[s]+e.tShift[s],f=e.eMarks[s],u<f&&e.tShift[s]<e.blkIndent)));)e.src.slice(u,f).trim().slice(-2)==="$$"&&(a=e.src.slice(0,f).lastIndexOf("$$"),i=e.src.slice(u,a),c=!0);e.line=s+1;let d=e.push("math_block","math",0);return d.block=!0,d.content=(o&&o.trim()?`${o}
|
|
55
55
|
`:"")+e.getLines(t+1,s,e.tShift[t],!0)+(i&&i.trim()?i:""),d.map=[t,e.line],d.markup="$$",!0}function xi(e,t){t=t||{};let r=function(s){t.displayMode=!1;try{return Fu.renderToString(s,t)}catch(a){return t.throwOnError&&console.warn(a),s}},n=function(s,a){return r(s[a].content)},o=function(s){t.displayMode=!0;try{return`<p>${Fu.renderToString(s,t)}</p>`}catch(a){return t.throwOnError&&console.warn(a),s}},i=function(s,a){return`${o(s[a].content)}
|
|
56
56
|
`};e.inline.ruler.after("escape","math_inline",Qv),e.block.ruler.after("blockquote","math_block",Jv,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=n,e.renderer.rules.math_block=i}l();import bi from"markdown-it-container";l();function Nu(e){return e.trim().replace(/=(\d*)/,"").replace(/:(no-)?line-numbers({| |$|=\d*).*/,"").replace(/(-vue|{| ).*$/,"").replace(/^vue-html$/,"template").replace(/^ansi$/,"")}function _i(e){return e.hasSingleTheme?"":" vp-adaptive-theme"}function Iu(e,t=!1){return t?e.replace(/<!--[^]*?-->/g,"").match(/data-title="(.*?)"/)?.[1]||"":e.match(/\[(.*)\]/)?.[1]||Nu(e)||"txt"}function Zv(e,t){let r=t.frontmatter?.codeHeightLimit||e?.siteConfig?.codeHeightLimit;return r===void 0||r<=0?"":`style="max-height: ${r}px;"`}function Du(e,t){let r=e.renderer.rules.fence;e.renderer.rules.fence=(...n)=>{let[o,i,s,a]=n,c=o[i];c.info=c.info.replace(/\[.*\]/,"");let u=Nu(c.info),f=r(...n);return`
|
|
57
57
|
<div ${Zv(t,a)} class="language-${u}${_i(t)}${/ active( |$)/.test(c.info)?" active":""}">
|
|
@@ -64,13 +64,13 @@ The language '${p}' is not loaded, falling back to '${n||"txt"}' for syntax high
|
|
|
64
64
|
`:`</div>
|
|
65
65
|
`})})}function tx(e){return[bi,"code-group",{render(t,r){if(t[r].nesting===1){let n=hi(5),o="",i='checked="checked"';for(let s=r+1;!(t[s].nesting===-1&&t[s].type==="container_code-group_close");++s){let a=t[s].type==="html_block";if(t[s].type==="fence"&&t[s].tag==="code"||a){let c=Iu(a?t[s].content:t[s].info,a);if(c){let u=hi(7);o+=`<input type="radio" name="group-${n}" id="tab-${u}" ${i}><label for="tab-${u}">${c}</label>`,i&&!a&&(t[s].info+=" active"),i=""}}}return`<div class="vp-code-group${_i(e)}"><div class="tabs">${o}</div><div class="blocks">
|
|
66
66
|
`}return`</div></div>
|
|
67
|
-
`}}]}l();var
|
|
68
|
-
`),y=`<div class="line-numbers-wrapper" aria-hidden="true">${[...Array(d.length)].map((b,$)=>`<span class="line-number">${$+c}</span><br>`).join("")}</div>`;return o.replace(/<\/div>$/,`${y}</div>`).replace(/"(language-[^"]*?)"/,'"$1 line-numbers-mode"')}}l();import Bu from"pathe";import
|
|
67
|
+
`}}]}l();var wi=/{([\d,-]+)}/;function ju(e){let t=e.renderer.rules.fence;e.renderer.rules.fence=(...r)=>{let[n,o]=r,i=n[o],s=i.attrs&&i.attrs[0],a=null;if(!s){let c=i.info;if(!c||!wi.test(c))return t(...r);let u=c.replace(wi,"").trim();i.info=u,a=wi.exec(c)[1]}return!a&&(a=s[0],!a||!/[\d,-]+/.test(a))?t(...r):(i.info+=` ${a}`,t(...r))}}l();import{URL as rx}from"node:url";var nx=/(^|.*\/)index.md(#?.*)$/i;function Hu(e,t,r){e.renderer.rules.link_open=(i,s,a,c,u)=>{let f=i[s],d=f.attrIndex("href");if(d>=0){let p=f.attrs[d],y=p[1];wt.test(y)?(Object.entries(t).forEach(([b,$])=>{f.attrSet(b,$)}),p[1]=y.replace(Pl,"")):!y.startsWith("#")&&!y.startsWith("mailto:")&&!/\.(?!html|md)\w+($|\?)/i.test(y)&&n(p,c),p[1]=p[1].replace(/\bimport\.meta/g,"import%2Emeta").replace(/\bprocess\.env/g,"process%2Eenv")}return u.renderToken(i,s,a)};function n(i,s){let a=i[1],c=a.match(nx);if(c){let[,u,f]=c;a=u+f}else{let u=a.replace(/[?#].*$/,"");u.endsWith(".md")&&(u=u.replace(/\.md$/,s.cleanUrls==="disabled"?".html":"")),s.cleanUrls==="disabled"&&!u.endsWith(".html")&&!u.endsWith("/")&&(u+=".html");let f=new rx(a,"http://a.com");a=u+f.search+f.hash}!a.startsWith("/")&&!/^\.\//.test(a)&&(a=`./${a}`),o(a.replace(/\.html$/,""),s),a.startsWith("/")&&(a=`${r}${a}`.replace(/\/+/g,"/")),i[1]=decodeURI(a)}function o(i,s){(s.links||(s.links=[])).push(i)}}l();function qu(e,t=!1){let r=e.renderer.rules.fence;e.renderer.rules.fence=(...n)=>{let o=r(...n),[i,s]=n,a=i[s].info;if(!t&&!/:line-numbers($| |=)/.test(a)||t&&/:no-line-numbers($| )/.test(a))return o;let c=1,u=a.match(/=(\d*)/);u&&u[1]&&(c=Number.parseInt(u[1]));let d=o.slice(o.indexOf("<code>"),o.indexOf("</code>")).split(`
|
|
68
|
+
`),y=`<div class="line-numbers-wrapper" aria-hidden="true">${[...Array(d.length)].map((b,$)=>`<span class="line-number">${$+c}</span><br>`).join("")}</div>`;return o.replace(/<\/div>$/,`${y}</div>`).replace(/"(language-[^"]*?)"/,'"$1 line-numbers-mode"')}}l();import Bu from"pathe";import Ri from"fs-extra";var ox=/^(.+?(?:(?:\.([a-z0-9]+))?))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))? ?(?:\[(.+)\])?$/;function ix(e){let[t="",r="",n="",o="",i="",s=""]=(ox.exec(e)||[]).slice(1),a=s||t.split("/").pop()||"";return{filepath:t,extension:r,region:n,lines:o,lang:i,title:a}}function sx(e){let t=e.split(`
|
|
69
69
|
`),r=t.reduce((n,o)=>{for(let i=0;i<o.length;i++)if(o[i]!==" "&&o[i]!==" ")return Math.min(i,n);return n},Number.POSITIVE_INFINITY);return r<Number.POSITIVE_INFINITY?t.map(n=>n.slice(r)).join(`
|
|
70
|
-
`):e}function Uu(e,t,r,n=!1){let[o,i,s]=t.exec(e.trim())||[];return o&&i&&s===r&&i.match(n?/^[Ee]nd ?[rR]egion$/:/^[rR]egion$/)}function ax(e,t){let r=[/^\/\/ ?#?((?:end)?region) ([\w*-]+)$/,/^\/\* ?#((?:end)?region) ([\w*-]+) ?\*\/$/,/^#pragma ((?:end)?region) ([\w*-]+)$/,/^<!-- #?((?:end)?region) ([\w*-]+) -->$/,/^#((?:End )Region) ([\w*-]+)$/,/^::#((?:end)region) ([\w*-]+)$/,/^# ?((?:end)?region) ([\w*-]+)$/],n=null,o=-1;for(let[i,s]of e.entries())if(n===null){for(let a of r)if(Uu(s,a,t)){o=i+1,n=a;break}}else if(Uu(s,n,t,!0))return{start:o,end:i,regexp:n};return null}function Wu(e,t){let r=(o,i,s,a)=>{let u=o.bMarks[i]+o.tShift[i],f=o.eMarks[i];if(o.sCount[i]-o.blkIndent>=4)return!1;for(let C=0;C<3;++C)if(o.src.charCodeAt(u+C)!==60||u+C>=f)return!1;if(a)return!0;let d=u+3,p=o.skipSpacesBack(f,u),y=o.src.slice(d,p).trim().replace(/^@/,t).trim(),{filepath:v,extension:b,region:$,lines:E,lang:N,title:P}=ix(y);o.line=i+1;let L=o.push("fence","code",0);L.info=`${N||b}${E?`{${E}}`:""}${P?`[${P}]`:""}`;let{realPath:A,path:M}=o.env,S=Bu.resolve(Bu.dirname(A??M),v);return L.src=[S,$.slice(1)],L.markup="```",L.map=[i,i+1],!0},n=e.renderer.rules.fence;e.renderer.rules.fence=(...o)=>{let[i,s,,{includes:a}]=o,c=i[s],[u,f]=c.src??[];if(!u)return n(...o);a&&a.push(u);let d=
|
|
71
|
-
`)))}return c.content=p,n(...o)},e.block.ruler.before("fence","snippet",r)}l();function Gu(e){let t=e.renderer.rules.footnote_ref,r=e.renderer.rules.footnote_open,n=e.renderer.rules.footnote_close,o=e.renderer.rules.footnote_anchor;e.renderer.rules.footnote_ref=function(i,s,a,c,u){let f=t(i,s,a,c,u),d=f.match(/href="(.*?)"/)[0],p=f.match(/id="(.*?)"/)[0];return`<ValaxyFootnoteRef ${d} ${p}>${f}</ValaxyFootnoteRef>`},e.renderer.rules.footnote_open=function(i,s,a,c,u){let f=r(i,s,a,c,u);return`<ValaxyFootnoteItem ${f.match(/id="(.*?)"/)[0]}>${f}<ValaxyFootnoteContent>`},e.renderer.rules.footnote_close=function(i,s,a,c,u){return`</ValaxyFootnoteContent>${n(i,s,a,c,u)}</ValaxyFootnoteItem>`},e.renderer.rules.footnote_anchor=function(i,s,a,c,u){let f=o(i,s,a,c,u);return`<ValaxyFootnoteAnchor ${f.match(/href="(.*?)"/)[0]}>${f}</ValaxyFootnoteAnchor>`}}var en={light:"github-light",dark:"github-dark"};async function
|
|
70
|
+
`):e}function Uu(e,t,r,n=!1){let[o,i,s]=t.exec(e.trim())||[];return o&&i&&s===r&&i.match(n?/^[Ee]nd ?[rR]egion$/:/^[rR]egion$/)}function ax(e,t){let r=[/^\/\/ ?#?((?:end)?region) ([\w*-]+)$/,/^\/\* ?#((?:end)?region) ([\w*-]+) ?\*\/$/,/^#pragma ((?:end)?region) ([\w*-]+)$/,/^<!-- #?((?:end)?region) ([\w*-]+) -->$/,/^#((?:End )Region) ([\w*-]+)$/,/^::#((?:end)region) ([\w*-]+)$/,/^# ?((?:end)?region) ([\w*-]+)$/],n=null,o=-1;for(let[i,s]of e.entries())if(n===null){for(let a of r)if(Uu(s,a,t)){o=i+1,n=a;break}}else if(Uu(s,n,t,!0))return{start:o,end:i,regexp:n};return null}function Wu(e,t){let r=(o,i,s,a)=>{let u=o.bMarks[i]+o.tShift[i],f=o.eMarks[i];if(o.sCount[i]-o.blkIndent>=4)return!1;for(let C=0;C<3;++C)if(o.src.charCodeAt(u+C)!==60||u+C>=f)return!1;if(a)return!0;let d=u+3,p=o.skipSpacesBack(f,u),y=o.src.slice(d,p).trim().replace(/^@/,t).trim(),{filepath:v,extension:b,region:$,lines:E,lang:N,title:P}=ix(y);o.line=i+1;let L=o.push("fence","code",0);L.info=`${N||b}${E?`{${E}}`:""}${P?`[${P}]`:""}`;let{realPath:A,path:M}=o.env,S=Bu.resolve(Bu.dirname(A??M),v);return L.src=[S,$.slice(1)],L.markup="```",L.map=[i,i+1],!0},n=e.renderer.rules.fence;e.renderer.rules.fence=(...o)=>{let[i,s,,{includes:a}]=o,c=i[s],[u,f]=c.src??[];if(!u)return n(...o);a&&a.push(u);let d=Ri.statSync(u).isFile();if(!Ri.existsSync(u)||!d)return c.content=d?`Code snippet path not found: ${u}`:"Invalid code snippet option",c.info="",n(...o);let p=Ri.readFileSync(u,"utf8");if(f){let y=p.split(/\r?\n/),v=ax(y,f);v&&(p=sx(y.slice(v.start,v.end).filter(b=>!v.regexp.test(b.trim())).join(`
|
|
71
|
+
`)))}return c.content=p,n(...o)},e.block.ruler.before("fence","snippet",r)}l();function Gu(e){let t=e.renderer.rules.footnote_ref,r=e.renderer.rules.footnote_open,n=e.renderer.rules.footnote_close,o=e.renderer.rules.footnote_anchor;e.renderer.rules.footnote_ref=function(i,s,a,c,u){let f=t(i,s,a,c,u),d=f.match(/href="(.*?)"/)[0],p=f.match(/id="(.*?)"/)[0];return`<ValaxyFootnoteRef ${d} ${p}>${f}</ValaxyFootnoteRef>`},e.renderer.rules.footnote_open=function(i,s,a,c,u){let f=r(i,s,a,c,u);return`<ValaxyFootnoteItem ${f.match(/id="(.*?)"/)[0]}>${f}<ValaxyFootnoteContent>`},e.renderer.rules.footnote_close=function(i,s,a,c,u){return`</ValaxyFootnoteContent>${n(i,s,a,c,u)}</ValaxyFootnoteItem>`},e.renderer.rules.footnote_anchor=function(i,s,a,c,u){let f=o(i,s,a,c,u);return`<ValaxyFootnoteAnchor ${f.match(/href="(.*?)"/)[0]}>${f}</ValaxyFootnoteAnchor>`}}var en={light:"github-light",dark:"github-dark"};async function Jt(e,t,r="/"){let n=t?.config.markdown||{},o=n.theme??en,i=typeof o=="string"||"name"in o,s=t?.config.siteConfig||{};n.preConfig&&n.preConfig(e),e.use(ju).use(Du,{theme:o,siteConfig:s}).use(Wu,t?.userRoot).use(Vu,{hasSingleTheme:i},{...n.blocks,...n?.container}).use(dx,{languages:t?.config.siteConfig.languages}).use(Hu,{target:"_blank",rel:"noreferrer",...n.externalLinks},r),e.use(qu,n.lineNumbers),n.attrs?.disable||e.use(lx,n.attrs),e.use(cx).use(ux).use(Gu),e.use(zu,{slugify:ft,permalink:zu.permalink.linkInsideHeader({symbol:"​",renderAttrs:(c,u)=>{let f=u.tokens.findIndex(p=>{let v=p.attrs?.find(b=>b[0]==="id");return v&&c===v[1]});return{"aria-label":`Permalink to "${u.tokens[f+1].content}"`}}}),...n.anchor}),e.use(ku,{slugify:ft,...typeof n.headers=="boolean"?void 0:n.headers}).use(Ou,{...n.sfc}).use(Tu).use($u,{...n.toc}),e.use(xi,n.katex);let a=t?.config.siteConfig.vanillaLazyload||{enable:!1};return e.use(px,{figcaption:!0,lazy:!0,async:!0,...a.enable?{lazy:!0,async:!0,classes:"lazy"}:{},...n.imageFigures}),e.use(fx),n.config&&n.config(e),e}l();l();import yx from"unplugin-vue-markdown/vite";l();import Pi from"pathe";import{slash as gx}from"@antfu/utils";l();l();import Si from"node:process";var Ci=new Set;function Ku(e){if(Ci.size===0){let r=typeof Si=="object"&&Si.env.VITE_EXTRA_EXTENSIONS||Si.env?.VITE_EXTRA_EXTENSIONS||"";`3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip${r&&typeof r=="string"?`,${r}`:""}`.split(",").forEach(n=>Ci.add(n))}let t=e.split(".").pop();return t==null||!Ci.has(t.toLowerCase())}l();import Ei from"node:path";import mx from"fs-extra";function ki(e,t,r){let n=/<!--\s*@include:\s*(.*?)\s*-->/g,o=/\{(\d*),(\d*)\}$/;return t.replace(n,(i,s)=>{if(!s.length)return i;let a=s.match(o);a&&(s=s.slice(0,-a[0].length));let c=s[0]==="@";try{let u=c?Ei.join(e,s.slice(s[1]==="/"?2:1)):Ei.join(Ei.dirname(r),s),f=mx.readFileSync(u,"utf-8");if(a){let[,d,p]=a;f=f.split(/\r?\n/).slice(d?Number.parseInt(d,10)-1:void 0,p?Number.parseInt(p,10):void 0).join(`
|
|
72
72
|
`)}return f=`<!-- @included: ${s} -->
|
|
73
|
-
${f}`,ki(e,f,u)}catch{return i}})}var hx=/<!--\s*@included:\s*(.*?)\s*-->/g;function Yu(e){let t=e.userRoot;return(r,n)=>ki(t,r,n)}function Xu(e,t,r){let n=[],o=Pi.dirname(t);return e=e.replace(hx,(i,s)=>{let c=s.startsWith("@")?Pi.resolve(r.userRoot,s.slice(s[1]==="/"?2:1)):Pi.join(o,s);return n.push(gx(c)),""}),{code:e,includes:n}}l();import*as Qu from"js-base64";function Ju(e){return e=e.replace(/^````txt\n```mermaid/mg,"````txt\n\\`\\`\\`mermaid"),e=e.replace(/^```mermaid\s*?({.*?})?\n([\s\S]+?)\n```/mg,(t,r="",n="")=>(n=n.trim(),r=r.trim()||"{}",`<ValaxyMermaid :code="'${Qu.encode(n,!0)}'" v-bind="${r}" />`)),e=e.replace(/^````txt\n\\`\\`\\`mermaid/mg,"````txt\n```mermaid"),e}async function Zu(e){let t=e?.config.markdown||{},r=t.theme??en,n=Yu(e);return yx({include:[/\.md$/],wrapperClasses:"",frontmatter:!0,exportFrontmatter:!1,frontmatterOptions:{grayMatterOptions:We},escapeCodeTagInterpolation:!0,markdownItOptions:{quotes:`""''`,html:!0,xhtmlOut:!0,linkify:!0,highlight:await yi(r,t),...t?.markdownItOptions},async markdownItSetup(o){o.linkify.set({fuzzyLink:!1}),await
|
|
73
|
+
${f}`,ki(e,f,u)}catch{return i}})}var hx=/<!--\s*@included:\s*(.*?)\s*-->/g;function Yu(e){let t=e.userRoot;return(r,n)=>ki(t,r,n)}function Xu(e,t,r){let n=[],o=Pi.dirname(t);return e=e.replace(hx,(i,s)=>{let c=s.startsWith("@")?Pi.resolve(r.userRoot,s.slice(s[1]==="/"?2:1)):Pi.join(o,s);return n.push(gx(c)),""}),{code:e,includes:n}}l();import*as Qu from"js-base64";function Ju(e){return e=e.replace(/^````txt\n```mermaid/mg,"````txt\n\\`\\`\\`mermaid"),e=e.replace(/^```mermaid\s*?({.*?})?\n([\s\S]+?)\n```/mg,(t,r="",n="")=>(n=n.trim(),r=r.trim()||"{}",`<ValaxyMermaid :code="'${Qu.encode(n,!0)}'" v-bind="${r}" />`)),e=e.replace(/^````txt\n\\`\\`\\`mermaid/mg,"````txt\n```mermaid"),e}async function Zu(e){let t=e?.config.markdown||{},r=t.theme??en,n=Yu(e);return yx({include:[/\.md$/],wrapperClasses:"",frontmatter:!0,exportFrontmatter:!1,frontmatterOptions:{grayMatterOptions:We},escapeCodeTagInterpolation:!0,markdownItOptions:{quotes:`""''`,html:!0,xhtmlOut:!0,linkify:!0,highlight:await yi(r,t),...t?.markdownItOptions},async markdownItSetup(o){o.linkify.set({fuzzyLink:!1}),await Jt(o,e),e?.config.markdown?.markdownItSetup?.(o);function i(s){s.core.ruler.push("valaxy_md_env",a=>{e.env=a.env})}o.use(i)},transforms:{before(o,i){return o=Ju(o),o=n(o,i),o}},...t})}function Rx(e="",t="html",r){switch(t){case"ai":case"md":return e;case"html":return r.render(e);case"text":return _x(r.render(e));default:return e}}async function ef(e){let{options:t}=e,{roots:r,config:n}=t,o=new bx({html:!0});return await Jt(o,t),vx({extensions:[".vue",".md"],routesFolder:r.map(i=>`${i}/pages`),dts:xx(t.tempDir,"typed-router.d.ts"),...n.router,async extendRoute(i){let s=JSON.parse(JSON.stringify(n.siteConfig.frontmatter))||{};if(i.meta&&i.meta.frontmatter){let{frontmatter:c,otherMeta:u}=i.meta;i.meta=u}i.addToMeta({frontmatter:s}),(i.fullPath==="/"||i.fullPath==="/page")&&i.addToMeta({layout:"home"}),i.fullPath==="/posts"?i.addToMeta({layout:!1}):i.fullPath.startsWith("/posts/")&&i.children.length===0&&i.addToMeta({layout:"post"});let a=i.components.get("default")||"";if(a.endsWith(".md")){let c=Ai.readFileSync(a,"utf-8"),{data:u,excerpt:f,content:d}=wx(c,We),p=u,y=t.config.siteConfig.lastUpdated;if(delete p.password,p.gallery_password&&(delete p.gallery_password,delete p.photos),p.date||(p.date=Ai.statSync(a).mtime),y&&(p.updated||(p.updated=Ai.statSync(a).ctime)),p.from&&(Array.isArray(p.from)?p.from.forEach(b=>{t.redirects.push({from:b,to:i.fullPath})}):t.redirects.push({from:p.from,to:i.fullPath})),i.addToMeta({frontmatter:p,excerpt:f?Rx(f,p.excerpt_type,o):""}),u.layout&&i.addToMeta({layout:u.layout}),i.meta.frontmatter?.updated||(i.meta.frontmatter.updated=i.meta.frontmatter.date),i.meta.frontmatter.tags){let b=i.meta.frontmatter.tags;typeof b=="string"&&(i.meta.frontmatter.tags=[b])}n.siteConfig.statistics.enable&&hu({options:n.siteConfig.statistics,route:i});let v={route:i,data:u,excerpt:f,content:d,path:a};n.extendMd?.(v)}return await e.hooks.callHook("vue-router:extendRoute",i),n.router?.extendRoute?.(i)}})}l();var rn=ee(le(),1);import{join as Zt,relative as Lx,resolve as Vx}from"pathe";import er from"fs-extra";import{defu as jx}from"defu";import Hx from"pascalcase";import df from"consola";l();import{LRUCache as Mx}from"lru-cache";import Nx from"debug";import Ix from"pathe";l();import Tt from"pathe";import{slash as Sx}from"@antfu/utils";import Cx from"fs-extra";function tf(e){let t=Tt.resolve(e.userRoot,"pages"),{ignoreDeadLinks:r}=e.config,n=e.config.vite?.publicDir||"public";return(o,i)=>{let{links:s=[]}=e.env,a=i,c=i,u=[],f=p=>{u.push({url:p,file:Tt.relative(t,a)})};function d(p){return r?r===!0?!0:r==="localhostLinks"?p.replace(wt,"").startsWith("//localhost"):r.some(y=>typeof y=="string"?p===y:y instanceof RegExp?y.test(p):typeof y=="function"?y(p):!1):!1}if(s){let p=Tt.dirname(c);for(let y of s){let{pathname:v}=new URL(y,"http://a.com");if(!Ku(v))continue;y=y.replace(/[?#].*$/,"").replace(/\.(html|md)$/,""),y.endsWith("/")&&(y+="index");let b=decodeURIComponent(Sx(y.startsWith("/")?y.slice(1):Tt.relative(t,Tt.resolve(p,y)))).replace(/\/index$/,"");!e.pages.includes(b)&&!Cx.existsSync(Tt.resolve(p,n,`${b}.html`))&&!d(y)&&f(y)}}return u}}l();function Ex(e){return["import { provide } from 'vue'","import { useRoute } from 'vue-router'",`
|
|
74
74
|
const data = ${Cc(e)}
|
|
75
75
|
const route = useRoute()`,`const $frontmatter = data.frontmatter || {}
|
|
76
76
|
route.meta.frontmatter = Object.assign(route.meta.frontmatter || {}, data.frontmatter || {})
|
|
@@ -86,21 +86,21 @@ ${s.join(`
|
|
|
86
86
|
</script>
|
|
87
87
|
${t}`;let c=t.indexOf("<template>")+10,u=t.lastIndexOf("</template>"),f=t.slice(c,u).trim();return f.startsWith("<div>")&&f.endsWith("</div>")&&(f=f.slice(5,-6)),t=`${t.slice(0,c)}
|
|
88
88
|
${nf(f)}
|
|
89
|
-
${t.slice(u)}`,t}}l();import kx from"pathe";function Px(e,t){if(!e||!e.length)return;let r=e.find(([n,o={}])=>n==="meta"&&o.name===t&&o.content);return r&&r[1].content}function Ax(e){let{description:t,head:r}=e;return t!==void 0?t:r&&Px(r,"description")||""}async function of(e,t,r){let{frontmatter:n={}}=r.env,o=kx.relative(r.userRoot,t),i=JSON.parse(JSON.stringify(n)),s={title:i.title||r.env.title||"",titleTemplate:i.titleTemplate,description:Ax(i),frontmatter:i,headers:r.env.headers||[],relativePath:o,path:t};return s.lastUpdated=await
|
|
90
|
-
`} Please ${(0
|
|
89
|
+
${t.slice(u)}`,t}}l();import kx from"pathe";function Px(e,t){if(!e||!e.length)return;let r=e.find(([n,o={}])=>n==="meta"&&o.name===t&&o.content);return r&&r[1].content}function Ax(e){let{description:t,head:r}=e;return t!==void 0?t:r&&Px(r,"description")||""}async function of(e,t,r){let{frontmatter:n={}}=r.env,o=kx.relative(r.userRoot,t),i=JSON.parse(JSON.stringify(n)),s={title:i.title||r.env.title||"",titleTemplate:i.titleTemplate,description:Ax(i),frontmatter:i,headers:r.env.headers||[],relativePath:o,path:t};return s.lastUpdated=await Vt(t),s}l();function Ox(e,t,r){if(typeof r!="number"||r<=0)return e;let n=t.config.siteConfig.codeHeightLimit;return e=e.replaceAll(/<div.+class="language-\w+">/g,o=>(n!==void 0&&n>0?o=o.replace(/\d+/,r.toString()):o=`${o.slice(0,5)}style="max-height: ${r}px;"${o.slice(5)}`,o)),e}function sf(e){return t=>{let{frontmatter:r={}}=e.env;return Ox(t,e,r.codeHeightLimit)}}l();l();import{webcrypto as Oi}from"node:crypto";function Tx(e){let t=new TextEncoder;return Oi.subtle.importKey("raw",t.encode(e),"PBKDF2",!1,["deriveBits","deriveKey"])}function $x(e,t){return Oi.subtle.deriveKey({name:"PBKDF2",salt:t,iterations:1e5,hash:"SHA-256"},e,{name:"AES-CBC",length:256},!0,["encrypt","decrypt"])}async function tn(e,t){let{password:r,iv:n,salt:o}=t,i=await Tx(r),s=await $x(i,o),a=new TextEncoder,c=await Oi.subtle.encrypt({name:"AES-CBC",iv:n},s,a.encode(e));return String.fromCharCode(...new Uint8Array(c))}function af(e){let{config:{siteConfig:{encrypt:t}}}=e;return async(r,n,o)=>{let{frontmatter:i={}}=o;if(t.enable){let s=/<!-- valaxy-encrypt-start:(?<password>\w+) -->(?<content>.*?)<!-- valaxy-encrypt-end -->/gs,a=/((<!-- valaxy-encrypt-start:\w+ -->)|(<!-- valaxy-encrypt-end -->))/g;if(i.password)r=r.replaceAll(a,"");else{let c=[];for(let f of r.matchAll(s))c.push(await tn(f.groups.content,{password:f.groups.password,iv:t.iv,salt:t.salt}));let u=0;c.length&&(i.partiallyEncryptedContents=c,r=r.replaceAll(s,()=>`<ClientOnly><ValaxyDecrypt :encrypted-content="${`$frontmatter.partiallyEncryptedContents[${u++}]`}" /></ClientOnly>`))}if(i.password){let c=r.indexOf("<template>"),u=r.lastIndexOf("</template>"),f=r.slice(c+10,u),d=await tn(f,{password:i.password,iv:t.iv,salt:t.salt});i.encryptedContent=d,i.encrypt=!0,delete i.password,r=r.replace(f,'<ClientOnly><ValaxyDecrypt :encrypted-content="$frontmatter.encryptedContent" /></ClientOnly>');let y=r.lastIndexOf("<script setup>"),v=r.lastIndexOf("</script>"),b=r.slice(y+14,v);r=r.replace(b,"")}if(i.gallery_password){let c=await tn(JSON.stringify(i.photos),{password:i.gallery_password,iv:t.iv,salt:t.salt});i.encryptedPhotos=c,delete i.gallery_password,delete i.photos}}return r}}l();var $t=ee(le(),1);import Fx from"consola";function lf(e,t){return e.includes("{%")&&e.includes("%}")&&Fx.error(`${`${t}
|
|
90
|
+
`} Please ${(0,$t.red)("remove")} ${(0,$t.cyan)("{% %}")}, because it conflicts with ${(0,$t.yellow)("markdown-it-attrs")}.`),e.replace("{%","{%"),e.replace("%}","%}"),e}l();function cf(e){let t=new Map;return e.replace(/<ValaxyFootnoteItem id="(.*?)">(.*?)<\/ValaxyFootnoteItem>/gs,(r,n,o)=>{let i=o.match(/<ValaxyFootnoteContent>(.*?)<\/ValaxyFootnoteContent>/s)[1].replace(/<ValaxyFootnoteAnchor(?:.*?)>(.*?)<\/ValaxyFootnoteAnchor>/gs,""),s=o.replace(/<ValaxyFootnoteContent>(.*?)<\/ValaxyFootnoteContent>/gs,(a,c)=>c).replace(/<ValaxyFootnoteAnchor(?:.*?)>(.*?)<\/ValaxyFootnoteAnchor>/gs,(a,c)=>c);return t.set(n,i),s}).replace(/<ValaxyFootnoteRef href="#(.*?)"(?:.*?)>(.*?)<\/ValaxyFootnoteRef>/gs,(r,n,o)=>`<ValaxyFootnoteTooltip>${o}<template #popper>${t.get(n)}</template></ValaxyFootnoteTooltip>`)}var uf=Nx("valaxy:md"),ff=new Mx({max:128});function Dx(){return["main-header","main-header-after","main-nav","main-content","main-content-after","main-nav-before","main-nav-after","comment","footer","aside","aside-custom"].map(r=>`<template #${r}><slot name="${r}" /></template>`).join("")}function nf(e){let t="ValaxyMain";return`
|
|
91
91
|
<${t} :frontmatter="$frontmatter">
|
|
92
92
|
<template #main-content-md>${e}</template>
|
|
93
93
|
${Dx()}
|
|
94
94
|
<slot />
|
|
95
95
|
</${t}>
|
|
96
|
-
`}async function pf(e,t){e.pages=e.pages.map(c=>c.replace(/\.md$/,"").replace(/\/index$/,""));let r=sf(e),n=rf(e),o=af(e),i=tf(e),s=e.userRoot,a=e.mode==="build";return async(c,u)=>{let f=u,d=Ix.relative(s,f),p=i(c,u),y=JSON.stringify({code:c,id:u});if(a){let P=JSON.stringify({code:c,id:u}),L=ff.get(P);if(L)return uf(`[cache hit] ${d}`),L}let v=Date.now(),b=await of(c,u,e);c=lf(c,u);let $=Xu(c,u,e),E=$.includes;c=$.code,c=r(c),c=await o(c,u,b),c=cf(c),c=n(c,u,b),uf(`[render] ${f} in ${Date.now()-v}ms.`);let N={code:c,pageData:b,deadLinks:p,includes:E};return a&&ff.set(y,N),N}}function qx(e){let t=e.redirects.map(r=>({path:r.from,redirect:r.to}));return e.config.runtimeConfig.redirects={useVueRouter:
|
|
97
|
-
`)}function Ux(e){let t=['import { defu } from "defu"','const messages = { "zh-CN": {}, en: {} }'],r=["zh-CN","en"];return e.forEach((n,o)=>{r.forEach(i=>{let s=`${n}/locales/${i}.yml`;if(
|
|
98
|
-
`)}function Wx(e){let t=e.addons.filter(i=>i.global).filter(i=>
|
|
96
|
+
`}async function pf(e,t){e.pages=e.pages.map(c=>c.replace(/\.md$/,"").replace(/\/index$/,""));let r=sf(e),n=rf(e),o=af(e),i=tf(e),s=e.userRoot,a=e.mode==="build";return async(c,u)=>{let f=u,d=Ix.relative(s,f),p=i(c,u),y=JSON.stringify({code:c,id:u});if(a){let P=JSON.stringify({code:c,id:u}),L=ff.get(P);if(L)return uf(`[cache hit] ${d}`),L}let v=Date.now(),b=await of(c,u,e);c=lf(c,u);let $=Xu(c,u,e),E=$.includes;c=$.code,c=r(c),c=await o(c,u,b),c=cf(c),c=n(c,u,b),uf(`[render] ${f} in ${Date.now()-v}ms.`);let N={code:c,pageData:b,deadLinks:p,includes:E};return a&&ff.set(y,N),N}}function qx(e){let t=e.redirects.map(r=>({path:r.from,redirect:r.to}));return e.config.runtimeConfig.redirects={useVueRouter:zt()?e.config.siteConfig.redirects.useVueRouter:!0,redirectRoutes:t},`export default ${JSON.stringify(JSON.stringify(e.config))}`}function Bx(e,t){let r=[];t.config.features?.katex&&(r.push(`import "${Y(Te("katex/dist/katex.min.css",!0))}"`),r.push(`import "${Y(Zt(t.clientRoot,"styles/third/katex.scss"))}"`));for(let n of e){let o=[];["css-vars","index"].forEach(s=>{o.push(Zt(n,"styles",`${s}.css`)),o.push(Zt(n,"styles",`${s}.scss`))});for(let s of o)er.existsSync(s)&&r.push(`import "${Y(s)}"`)}return r.join(`
|
|
97
|
+
`)}function Ux(e){let t=['import { defu } from "defu"','const messages = { "zh-CN": {}, en: {} }'],r=["zh-CN","en"];return e.forEach((n,o)=>{r.forEach(i=>{let s=`${n}/locales/${i}.yml`;if(er.existsSync(s)&&er.readFileSync(s,"utf-8")){let a=i.replace("-","")+o;t.unshift(`import ${a} from "${Y(s)}"`),t.push(`messages['${i}'] = defu(${a}, messages['${i}'])`)}})}),t.push("export default messages"),t.join(`
|
|
98
|
+
`)}function Wx(e){let t=e.addons.filter(i=>i.global).filter(i=>er.existsSync(Zt(i.root,"./App.vue"))),r=i=>`Addon${Hx(i)}App`,n=t.map(i=>`import ${r(i.name)} from "${i.name}/App.vue"`).join(`
|
|
99
99
|
`),o=t.map(i=>`{ component: ${r(i.name)}, props: ${JSON.stringify(i.props)} }`).join(",");return`${n}
|
|
100
|
-
export default [${o}]`}var Gx='import { defineComponent } from "vue"; export default defineComponent({ render: () => null });';function Ti(e){let t=
|
|
101
|
-
`):Gx}async function mf(e,t={}){let{config:r}=e,n="/@valaxy",o=e.roots,i=!1,s,a;return[{name:"valaxy:loader",enforce:"pre",async configResolved(c){a=c,s=await pf(e,a)},configureServer(c){c.watcher.add([e.configFile,e.clientRoot,e.themeRoot,e.userRoot])},resolveId(c){return c.startsWith(n)?c:null},load(c){if(c==="/@valaxyjs/config")return qx(e);if(c==="/@valaxyjs/context")return`export default ${JSON.stringify(JSON.stringify({userRoot:e.userRoot}))}`;if(c==="/@valaxyjs/styles")return Bx(o,e);if(c==="/@valaxyjs/locales")return Ux(o);if(c==="/@valaxyjs/addons")return Wx(e);if(c==="/@valaxyjs/AppVue")return Ti(e.clientRoot);if(c==="/@valaxyjs/UserAppVue")return Ti(e.userRoot);if(c==="/@valaxyjs/ThemeAppVue")return Ti(e.themeRoot);if(c.startsWith(n))return{code:"",map:{mappings:""}}},async transform(c,u){if(u.endsWith(".md")){let{code:f,deadLinks:d,includes:p}=await s(c,u);return d.length&&(i=!0,df.error(`Dead links found in ${u}`),df.error(d)),p.length&&p.forEach(y=>{this.addWatchFile(y)}),f}},renderStart(){if(i&&!(r.ignoreDeadLinks||r.build.ignoreDeadLinks))throw new Error("One or more pages contain dead links.")},async handleHotUpdate(c){let{file:u,server:f,read:d}=c,p=v=>{t.onConfigReload?.(v,e.config),Object.assign(e.config,v),r=v;let b=["/@valaxyjs/config","/@valaxyjs/context"];return[...Array.from(b).map(E=>f.moduleGraph.getModuleById(E))].filter(E=>!!E)};if([e.configFile].includes(u)){let{config:v}=await be({userRoot:e.userRoot});return p(v)}if(u===e.siteConfigFile){let{siteConfig:v}=await jr(e.userRoot);return r.siteConfig=jx(v,Vr),p(r)}if(u===e.themeConfigFile){let{themeConfig:v}=await Mc(e),b=r.themeConfig.pkg;return v.pkg=b,r.themeConfig=v,p(r)}if(u===Vx(e.themeRoot,"valaxy.config.ts")){let v=await ci(e),b=at(e.config,v),{config:$}=await li(e,b);return p($)}if(u.endsWith(".md")){let v=Ge(),b=await d(),{code:$,pageData:E}=await s(b,u),P={path:`/${Lx(`${e.userRoot}/pages`,u)}`,pageData:E};f.hot.send({type:"custom",event:"valaxy:pageData",data:P}),
|
|
102
|
-
`),console.error(o),Ze.exit(1)}}function Ef(e){Ze.stdin.resume(),Ze.stdin.setEncoding("utf8"),Cf.emitKeypressEvents(Ze.stdin),Ze.stdin.isTTY&&Ze.stdin.setRawMode(!0),Ze.stdin.on("keypress",(t,r)=>{if(r.ctrl&&r.name==="c")Ze.exit();else{let[n]=e.filter(o=>o.name===t);if(n)try{n.action()}catch(o){console.error(`Failed to execute shortcut ${n.fullName}`,o)}}})}async function Fi({ssg:e,root:t,output:r,log:n}){
|
|
103
|
-
`),n.pipe(n)});r.listen(e,"0.0.0.0"),r.on("error",()=>{t(!1)}),r.on("listening",()=>{r.close(),t(!0)})})}function Af(e){e.command("* [root]","Start a local server for Valaxy",t=>Ke(t).option("port",{alias:"p",type:"number",describe:"port"}).option("open",{alias:"o",default:!1,type:"boolean",describe:"open in browser"}).option("remote",{default:!0,type:"boolean",describe:"listen public host and enable remote control"}).option("log",{default:"info",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({root:t,port:r,open:n,remote:o,log:i})=>{si(),Hr(t)||h_.exit(0);let s=r||await Mi(4859),a=await be({userRoot:t}),c=sn(a),u=v_({configFile:m_.resolve(a.clientRoot,"vite.config.ts"),server:{watch:{ignored:[`!${a.themeRoot}/**`,`${a.userRoot}/**.md`]},port:s,strictPort:!0,open:n,host:o?"0.0.0.0":"localhost"},logLevel:i},a.config.vite||{});await
|
|
100
|
+
export default [${o}]`}var Gx='import { defineComponent } from "vue"; export default defineComponent({ render: () => null });';function Ti(e){let t=Zt(e,"App.vue");return er.existsSync(t)?[`import AppVue from "${Y(t)}"`,"export default AppVue"].join(`
|
|
101
|
+
`):Gx}async function mf(e,t={}){let{config:r}=e,n="/@valaxy",o=e.roots,i=!1,s,a;return[{name:"valaxy:loader",enforce:"pre",async configResolved(c){a=c,s=await pf(e,a)},configureServer(c){c.watcher.add([e.configFile,e.clientRoot,e.themeRoot,e.userRoot])},resolveId(c){return c.startsWith(n)?c:null},load(c){if(c==="/@valaxyjs/config")return qx(e);if(c==="/@valaxyjs/context")return`export default ${JSON.stringify(JSON.stringify({userRoot:e.userRoot}))}`;if(c==="/@valaxyjs/styles")return Bx(o,e);if(c==="/@valaxyjs/locales")return Ux(o);if(c==="/@valaxyjs/addons")return Wx(e);if(c==="/@valaxyjs/AppVue")return Ti(e.clientRoot);if(c==="/@valaxyjs/UserAppVue")return Ti(e.userRoot);if(c==="/@valaxyjs/ThemeAppVue")return Ti(e.themeRoot);if(c.startsWith(n))return{code:"",map:{mappings:""}}},async transform(c,u){if(u.endsWith(".md")){let{code:f,deadLinks:d,includes:p}=await s(c,u);return d.length&&(i=!0,df.error(`Dead links found in ${u}`),df.error(d)),p.length&&p.forEach(y=>{this.addWatchFile(y)}),f}},renderStart(){if(i&&!(r.ignoreDeadLinks||r.build.ignoreDeadLinks))throw new Error("One or more pages contain dead links.")},async handleHotUpdate(c){let{file:u,server:f,read:d}=c,p=v=>{t.onConfigReload?.(v,e.config),Object.assign(e.config,v),r=v;let b=["/@valaxyjs/config","/@valaxyjs/context"];return[...Array.from(b).map(E=>f.moduleGraph.getModuleById(E))].filter(E=>!!E)};if([e.configFile].includes(u)){let{config:v}=await be({userRoot:e.userRoot});return p(v)}if(u===e.siteConfigFile){let{siteConfig:v}=await jr(e.userRoot);return r.siteConfig=jx(v,Vr),p(r)}if(u===e.themeConfigFile){let{themeConfig:v}=await Mc(e),b=r.themeConfig.pkg;return v.pkg=b,r.themeConfig=v,p(r)}if(u===Vx(e.themeRoot,"valaxy.config.ts")){let v=await ci(e),b=at(e.config,v),{config:$}=await li(e,b);return p($)}if(u.endsWith(".md")){let v=Ge(),b=await d(),{code:$,pageData:E}=await s(b,u),P={path:`/${Lx(`${e.userRoot}/pages`,u)}`,pageData:E};f.hot.send({type:"custom",event:"valaxy:pageData",data:P}),Pt.success(`${(0,rn.yellow)("[HMR]")} ${u} ${(0,rn.dim)(`updated in ${v()}`)}`),c.read=()=>$}}}]}async function tr(e,t={}){let{options:r}=e,{roots:n,config:o}=r,i=await Zu(r),s=await mf(r,t),a=[i,du(r),mu(r),zx({include:[/\.vue$/,/\.md$/],exclude:[],template:{compilerOptions:{isCustomElement:c=>{let u=Al.has(c);return o.vue?.isCustomElement?.forEach(f=>{u=u||f(c)}),u}}},...o.vue}),s,Qx(),await ef(e),Kx({layoutsDirs:n.map(c=>`${c}/layouts`),...o.layouts}),Yx({extensions:["vue","md"],include:[/\.vue$/,/\.vue\?vue/,/\.md$/],exclude:[],allowOverrides:!0,dirs:n.map(c=>`${c}/components`).concat(["src/components","components"]),dts:Jx(r.tempDir,"components.d.ts"),...o.components}),await cu(r),Xx({runtimeOnly:!0,compositionOnly:!0,include:n.map(c=>`${c}/locales/**`),jitCompilation:!1}),gu(r)];if(o.visualizer)try{let c=(await import("rollup-plugin-visualizer")).visualizer;a.push(c({open:!0,gzipSize:!0,...o.visualizer}))}catch{console.error("Failed to load rollup-plugin-visualizer"),gf.error("Please install `rollup-plugin-visualizer` to enable the feature"),console.log(),gf.info("pnpm add -D rollup-plugin-visualizer"),console.log()}return a}async function _f(e,t=Rt){let r=vf(t,{...Rt,plugins:await tr(e)});await Zx(r)}async function bf(e,t={}){let{options:r}=e,n={...Rt,plugins:await tr(e),ssr:{noExternal:["workbox-window",/vue-i18n/,"@vue/devtools-api"]}};n.ssgOptions={script:"async",formatting:"minify",crittersOptions:{reduceInlineStyles:!1},onFinished(){t_({hostname:r.config.siteConfig.url})}},r.config.build.ssgForPagination&&(n.ssgOptions.includedRoutes=(i,s)=>{let a=i,c=i.filter(f=>f.startsWith("/posts/")),u=Math.ceil(c.length/r.config.siteConfig.pageSize);on.info(`Generate ${xf.default.yellow(u)} pages for pagination.`);for(let f=1;f<=u;f++)a.push(`/page/${f}`);return r.config.vite?.ssgOptions?.includeAllRoutes?a:a.filter(f=>!f.split("/").some(d=>d.startsWith(":")))});let o=vf(n,t);await e_({},o)}async function wf(e){let{userRoot:t}=e,r=yf(t,"dist/index.html");if(nn.existsSync(r)){on.info("post process for ssg...");let n=await nn.readFile(r,"utf-8"),o="</html>";if(!n.endsWith(o)){on.warn("fix incomplete index.html...");let i=n.lastIndexOf(o);await nn.writeFile(r,n.slice(0,i+o.length),"utf-8")}}e.config.siteConfig.redirects?.useVueRouter||await r_(e)}async function r_(e){on.info("generate client redirects...");let t=yf(e.userRoot,"dist"),n=Gr(e.redirects).map(async o=>{let i=hf(t,`${o.from}.html`),s=hf(t,`${o.to}.html`);if(!await nn.pathExists(s))throw new Error(`the route of '${o.to}' not exists`);await Bc(o.to,i)});await Promise.all(n)}l();l();l();l();import Rf from"node:process";import{createServer as n_,mergeConfig as o_}from"vite";async function Sf(e,t={},r={}){Rf.env.EDITOR=Rf.env.EDITOR||"code";let{options:n}=e,o=await tr(e,r),i=n.mode==="dev"&&n.config.devtools,s=[...o];i&&s.push((await import("vite-plugin-vue-devtools")).default(),(await import("@valaxyjs/devtools")).default());let a=o_(t,{plugins:s});return await n_(a)}l();l();import{createHooks as i_}from"hookable";var s_=["build:before","build:after"];function sn(e){let t=i_();typeof e.config.hooks=="object"&&Object.keys(e.config.hooks).forEach(n=>{let o=n,i=e.config.hooks[o];typeof i=="function"&&(s_.includes(o)?e.mode==="build"&&t.hook(o,i):t.hook(o,i))});let r={version:mt,hooks:t,hook:t.hook,options:e};return e.addons.forEach(n=>{typeof n.setup=="function"&&n.setup(r)}),r}l();var W=ee(le(),1);import*as Cf from"node:readline";import a_ from"node:path";import l_ from"node:os";import Ze from"node:process";import c_ from"consola";import{mergeConfig as u_}from"vite";var an;function ln(e,t,r){if(console.log(),console.log(` ${(0,W.bold)("\u{1F30C} Valaxy")} ${(0,W.blue)(`v${mt}`)}`),console.log(),console.log(`${(0,W.dim)(" \u{1FA90} theme ")} > ${e.theme?(0,W.green)(e.theme):(0,W.gray)("none")}`),console.log(` ${(0,W.dim)("\u{1F4C1}")} ${(0,W.dim)(a_.resolve(e.userRoot))}`),t){console.log(),console.log(`${(0,W.dim)(" Preview ")} > ${(0,W.cyan)(`http://localhost:${(0,W.bold)(t)}/`)}`),r&&Object.values(l_.networkInterfaces()).forEach(c=>(c||[]).filter(u=>u.family==="IPv4"&&!u.address.includes("127.0.0.1")).forEach(({address:u})=>{console.log(`${(0,W.dim)(" Network ")} > ${(0,W.blue)(`http://${u}:${(0,W.bold)(t)}/`)}`)})),console.log();let n=`${(0,W.underline)("r")}${(0,W.dim)("estart")}`,o=`${(0,W.underline)("e")}${(0,W.dim)("dit")}`,i=`${(0,W.underline)("o")}${(0,W.dim)("pen")}`,s=`${(0,W.underline)("q")}${(0,W.dim)("r")}`,a=`${(0,W.dim)(" | ")}`;console.log(`${(0,W.dim)(" shortcuts ")} > ${n}${a}${i}${a}${s}${a}${o}`)}console.log()}async function rr(e,t){an&&(Pt.info("close server..."),await an.close());let{options:r}=e,n=u_(await Qr(r,"serve"),t);try{an=await Sf(e,n,{async onConfigReload(o,i,s=!1){s&&(Pt.info(`${(0,W.yellow)("force")} reload the server`),rr(e,t));let a=!1;o.theme!==i.theme&&(a=!0),a&&rr(e,t)}}),await an.listen(),Pt.ready("server ready")}catch(o){c_.error(`failed to start server. error:
|
|
102
|
+
`),console.error(o),Ze.exit(1)}}function Ef(e){Ze.stdin.resume(),Ze.stdin.setEncoding("utf8"),Cf.emitKeypressEvents(Ze.stdin),Ze.stdin.isTTY&&Ze.stdin.setRawMode(!0),Ze.stdin.on("keypress",(t,r)=>{if(r.ctrl&&r.name==="c")Ze.exit();else{let[n]=e.filter(o=>o.name===t);if(n)try{n.action()}catch(o){console.error(`Failed to execute shortcut ${n.fullName}`,o)}}})}async function Fi({ssg:e,root:t,output:r,log:n}){kt(),Hr(t)||f_.exit(0);let o=$i.resolve(t),i=await be({userRoot:o},"build");ln(i);let s=sn(i);et.start(`Run ${(0,Ft.yellow)("options:resolved")} hooks`),await s.hooks.callHook("options:resolved");let a=[];i.config.siteConfig.search.type==="fuse"&&a.push(Yr),i.config.modules.rss.enable&&a.push(Kr),Xc(s,a);let c=kf(await Qr(i,"build"),i.config.vite||{}),u=kf(c,{configFile:$i.resolve(i.clientRoot,"vite.config.ts"),build:{emptyOutDir:!0,outDir:$i.resolve(i.userRoot,r)},logLevel:n});et.start(`Run ${(0,Ft.yellow)("config:init")} hooks`),await s.hooks.callHook("config:init"),et.start(`Run ${(0,Ft.yellow)("build:before")} hooks`),await s.hooks.callHook("build:before"),et.box("\u{1F320} Start building...");try{if(e){et.info(`use ${(0,Ft.yellow)("vite-ssg")} to do ssg build...`);try{await bf(s,u),await wf(i)}catch(f){et.error("[vite-ssg] An internal error occurred."),console.log(f)}}else et.info("use vite do spa build..."),await _f(s,u)}catch(f){console.log(f)}finally{et.start(`Run ${(0,Ft.yellow)("build:after")} hooks`),await s.hooks.callHook("build:after")}}function Pf(e){e.command("build [root]","build your blog to static content",t=>Ke(t).option("ssg",{alias:"s",type:"boolean",default:!1,describe:"static site generate"}).option("output",{alias:"o",type:"string",default:"dist",describe:"output dir"}).option("log",{default:"warn",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({ssg:t,root:r,output:n,log:o})=>{await Fi({ssg:t,root:r,output:n,log:o})})}l();import m_ from"node:path";import{exec as g_}from"node:child_process";import h_ from"node:process";import y_ from"node:os";import{mergeConfig as v_}from"vite";import x_ from"qrcode";l();import p_ from"node:net";async function Mi(e){return await d_(e)?e:await Mi(e+1)}function d_(e){return new Promise(t=>{let r=p_.createServer(n=>{n.write(`Echo server\r
|
|
103
|
+
`),n.pipe(n)});r.listen(e,"0.0.0.0"),r.on("error",()=>{t(!1)}),r.on("listening",()=>{r.close(),t(!0)})})}function Af(e){e.command("* [root]","Start a local server for Valaxy",t=>Ke(t).option("port",{alias:"p",type:"number",describe:"port"}).option("open",{alias:"o",default:!1,type:"boolean",describe:"open in browser"}).option("remote",{default:!0,type:"boolean",describe:"listen public host and enable remote control"}).option("log",{default:"info",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({root:t,port:r,open:n,remote:o,log:i})=>{si(),Hr(t)||h_.exit(0);let s=r||await Mi(4859),a=await be({userRoot:t}),c=sn(a),u=v_({...Rt,configFile:m_.resolve(a.clientRoot,"vite.config.ts"),server:{watch:{ignored:[`!${a.themeRoot}/**`,`${a.userRoot}/**.md`]},port:s,strictPort:!0,open:n,host:o?"0.0.0.0":"localhost"},logLevel:i},a.config.vite||{});await rr(c,u),ln(a,s,o),Ef([{name:"r",fullName:"restart",action(){rr(c,u)}},{name:"o",fullName:"open",async action(){let{default:d}=await import("open");d(`http://localhost:${s}`)}},{name:"q",fullName:"qr",action(){let p=`http://${Object.values(y_.networkInterfaces()).flat().filter(y=>y?.family==="IPv4"&&!y.address.includes("127.0.0.1"))[0]?.address||"localhost"}:${s}`;x_.toString(p,{type:"terminal"},(y,v)=>{if(y)throw y;console.log(v)})}},{name:"e",fullName:"edit",action(){g_(`code "${t}"`)}}])})}l();import Of from"node:path";import Tf from"node:process";import $f from"fs-extra";import Ce from"consola";async function __(){let e=Of.join(Tf.cwd(),"dist"),t=Of.join(Tf.cwd(),".valaxy");if(Ce.box("\u{1F9F9} Starting clean..."),await ct(e)){Ce.info("dist directory exists, removing...");try{await $f.rm(e,{recursive:!0,force:!0}),Ce.success("dist directory has been successfully removed.")}catch(r){Ce.error("Failed to remove dist directory."),Ce.error(r)}}else Ce.info("No dist directory found, nothing to clean.");if(await ct(t)){Ce.info(".valaxy cache directory exists, removing...");try{await $f.rm(t,{recursive:!0,force:!0}),Ce.success(".valaxy cache directory has been successfully removed.")}catch(r){Ce.error("Failed to remove .valaxy cache directory."),Ce.error(r)}}else Ce.info("No .valaxy cache directory found, nothing to clean.")}function Ff(e){e.command("clean","Clean the dist folder and cache",()=>{},async()=>{await __()})}l();import b_ from"node:process";import{confirm as Mf,intro as w_,outro as Nf,select as R_}from"@clack/prompts";function If(e){e.command("deploy","deploy your blog to the cloud",async()=>{if(w_("Deploying Your Blog"),await Mf({message:"Do you want to build your blog before deploying?"})&&await Fi({ssg:!0,root:b_.cwd(),output:"dist",log:"info"}),await R_({message:"Where do you want to deploy?",options:[{label:"GitHub Pages",value:"gh-pages",hint:"You need install `gh-pages` dependencies."},{label:"Your Own Server",value:"server"}]})==="gh-pages"){let n=!1;try{await import("gh-pages"),n=!0}catch(o){console.error(o),await Mf({message:"Do you want to install `gh-pages` now?"})?(await import("@antfu/install-pkg").then(s=>s.installPackage("gh-pages",{dev:!0})),n=!0):Nf("Please install `gh-pages` before deploying to GitHub Pages.")}if(n){let{publish:o}=await import("gh-pages");await o("dist",{branch:"gh-pages",message:"chore: deploy by valaxy"}),Nf("Done!")}}})}var pt=C_(E_(S_.argv)).scriptName("valaxy").usage("$0 [args]").version(mt).showHelpOnFail(!1).alias("h","help").alias("v","version");Af(pt);Pf(pt);iu(pt);Ff(pt);If(pt);var k_=[Yr,Kr];k_.forEach(e=>{e.extendCli?.(pt)});function LT(){pt.help().parse()}export{Vt as a,kl as b,wt as c,Pl as d,Rw as e,Al as f,Rt as g,Te as h,Rc as i,zh as j,ii as k,Y as l,Sc as m,Cc as n,Zh as o,St as p,Vr as q,BR as r,ry as s,jr as t,Ac as u,ay as v,eS as w,Gt as x,at as y,Oc as z,uy as A,sS as B,Tc as C,qr as D,Mc as E,gy as F,wS as G,CS as H,li as I,be as J,ci as K,Qr as L,uu as M,mf as N,tr as O,_f as P,bf as Q,wf as R,r_ as S,Sf as T,pt as U,LT as V};
|
|
104
104
|
/*! Bundled license information:
|
|
105
105
|
|
|
106
106
|
is-extglob/index.js:
|